-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: create components react package #613
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
0b5916a
to
d7009bc
Compare
3dac57c
to
1d4f0d9
Compare
a31ba43
to
79e84e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hidde @AndreaBusse29 I think to really illustrate the point of the "sparkly button", the button should properly extend the Utrecht button component and expand on its features.
d7009bc
to
6b9081f
Compare
6b9081f
to
e8cbbe7
Compare
e8cbbe7
to
f06a128
Compare
jest.config.mjs
Outdated
// transformIgnorePatterns: ['node_modules/(?!@utrecht/web-component-library-react)'], | ||
}; | ||
|
||
export default createJestConfig(customJestConfig); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not be in the root of the project, but in packages/components-react/
where the next
and jest
dependencies are.
appearance: { | ||
control: { type: 'select' }, | ||
options: [undefined, 'primary-action-button', 'secondary-action-button', 'subtle-button'], | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appearance
is a property here, but there is no implementation of it in the component. Probably less confusing to not show this in Storybook.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this.
children: 'Read more...', | ||
}, | ||
parameters: { | ||
tokensPrefix: 'utrecht-button', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first glance I'd say the prefix should be example-button
, not utrecht-button
.
However, the tokensPrefix
is only meaningful when we actually display the tokens, and in Utrecht this is done with a custom component. Since we don't yet support automatic design token docs in the example repo, I think we shouldn't include it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this.
@@ -0,0 +1,84 @@ | |||
{ | |||
"version": "1.0.0-alpha.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated this package to start at alpha.0
instead of alpha.340
.
No description provided.