Skip to content
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

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

AndreaBusse29
Copy link
Contributor

No description provided.

@AndreaBusse29 AndreaBusse29 requested a review from a team July 25, 2023 13:08
@vercel
Copy link

vercel bot commented Jul 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2023 5:15pm

@AndreaBusse29 AndreaBusse29 force-pushed the chore/create-components-react-package branch from 0b5916a to d7009bc Compare July 26, 2023 07:06
@AndreaBusse29 AndreaBusse29 force-pushed the chore/documentation-dir-to-packages branch from 3dac57c to 1d4f0d9 Compare July 31, 2023 14:53
@Robbert Robbert force-pushed the chore/documentation-dir-to-packages branch 2 times, most recently from a31ba43 to 79e84e9 Compare August 7, 2023 15:14
Copy link
Member

@Robbert Robbert left a 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.

Base automatically changed from chore/documentation-dir-to-packages to main August 7, 2023 15:23
@Robbert Robbert changed the title feat: create components react package with sparkle button component feat: create components react package Aug 7, 2023
@Robbert Robbert force-pushed the chore/create-components-react-package branch from e8cbbe7 to f06a128 Compare August 7, 2023 17:15
jest.config.mjs Outdated
// transformIgnorePatterns: ['node_modules/(?!@utrecht/web-component-library-react)'],
};

export default createJestConfig(customJestConfig);
Copy link
Member

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'],
},
Copy link
Member

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.

Copy link
Member

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',
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this.

packages/components-react/package.json Show resolved Hide resolved
packages/components-react/src/Button.tsx Outdated Show resolved Hide resolved
packages/components-react/src/Button.tsx Outdated Show resolved Hide resolved
@@ -0,0 +1,84 @@
{
"version": "1.0.0-alpha.0",
Copy link
Member

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.

@Robbert Robbert merged commit 7105410 into main Aug 7, 2023
7 checks passed
@Robbert Robbert deleted the chore/create-components-react-package branch August 7, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants