diff --git a/.changeset/quick-rockets-sit.md b/.changeset/quick-rockets-sit.md new file mode 100644 index 000000000..7e4d5fa5e --- /dev/null +++ b/.changeset/quick-rockets-sit.md @@ -0,0 +1,11 @@ +--- +'@launchpad-ui/split-button': patch +'@launchpad-ui/inline-edit': patch +'@launchpad-ui/snackbar': patch +'@launchpad-ui/button': patch +'@launchpad-ui/alert': patch +'@launchpad-ui/form': patch +'@launchpad-ui/core': patch +--- + +[Button, SplitButton] Convert to css modules diff --git a/.changeset/quiet-emus-teach.md b/.changeset/quiet-emus-teach.md new file mode 100644 index 000000000..d2b9fe55d --- /dev/null +++ b/.changeset/quiet-emus-teach.md @@ -0,0 +1,6 @@ +--- +'@launchpad-ui/tokens': minor +'@launchpad-ui/core': patch +--- + +Feat: remap colors from 9 to 12 steps diff --git a/.changeset/selfish-pens-mate.md b/.changeset/selfish-pens-mate.md new file mode 100644 index 000000000..180c5f0d4 --- /dev/null +++ b/.changeset/selfish-pens-mate.md @@ -0,0 +1,5 @@ +--- +'@launchpad-ui/tokens': patch +--- + +Add typography tokens diff --git a/.changeset/thick-radios-report.md b/.changeset/thick-radios-report.md new file mode 100644 index 000000000..7ce6caf75 --- /dev/null +++ b/.changeset/thick-radios-report.md @@ -0,0 +1,6 @@ +--- +'@launchpad-ui/core': patch +'@launchpad-ui/menu': patch +--- + +[Menu] Use CSS modules diff --git a/.changeset/warm-papayas-hear.md b/.changeset/warm-papayas-hear.md new file mode 100644 index 000000000..f0a77b13f --- /dev/null +++ b/.changeset/warm-papayas-hear.md @@ -0,0 +1,5 @@ +--- +'@launchpad-ui/tokens': patch +--- + +Keep CSS color keywords diff --git a/.changeset/wise-buckets-deliver.md b/.changeset/wise-buckets-deliver.md new file mode 100644 index 000000000..469007a67 --- /dev/null +++ b/.changeset/wise-buckets-deliver.md @@ -0,0 +1,7 @@ +--- +'@launchpad-ui/popover': patch +'@launchpad-ui/core': patch +'@launchpad-ui/menu': patch +--- + +Refresh menu styles diff --git a/.storybook/Audimat3000-Regulier.var-subset.woff2 b/.storybook/Audimat3000-Regulier.var-subset.woff2 new file mode 100644 index 000000000..56c22a969 Binary files /dev/null and b/.storybook/Audimat3000-Regulier.var-subset.woff2 differ diff --git a/.storybook/styles.css b/.storybook/styles.css index cd34f293f..2a2d1e4d5 100644 --- a/.storybook/styles.css +++ b/.storybook/styles.css @@ -33,7 +33,7 @@ h3 { @font-face { font-family: Inter; font-style: normal; - font-weight: 300 700; + font-weight: 300 800; font-display: swap; src: url('https://fonts.gstatic.com/s/inter/v7/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2') format('woff2'); @@ -41,6 +41,14 @@ h3 { U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } +@font-face { + font-family: 'Audimat 3000 Regulier'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('Audimat3000-Regulier.var-subset.woff2') format('woff2'); +} + .sb-main-padded.sb-show-main { padding: 0; margin: 0; diff --git a/apps/remix/app/routes/components.box.tsx b/apps/remix/app/routes/components.box.tsx index ac47ee9c0..38c4ae77a 100644 --- a/apps/remix/app/routes/components.box.tsx +++ b/apps/remix/app/routes/components.box.tsx @@ -2,7 +2,7 @@ import { Box } from '@launchpad-ui/core'; export default function Index() { return ( - + I am a box ); diff --git a/apps/remix/app/styles/global.css b/apps/remix/app/styles/global.css index d0e814645..fe1c24090 100644 --- a/apps/remix/app/styles/global.css +++ b/apps/remix/app/styles/global.css @@ -14,7 +14,7 @@ body { @font-face { font-family: Inter; font-style: normal; - font-weight: 300 700; + font-weight: 300 800; font-display: swap; src: url('https://fonts.gstatic.com/s/inter/v7/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2') format('woff2'); diff --git a/packages/alert/CHANGELOG.md b/packages/alert/CHANGELOG.md index eb9ae4ded..b811c84a9 100644 --- a/packages/alert/CHANGELOG.md +++ b/packages/alert/CHANGELOG.md @@ -1,5 +1,38 @@ # @launchpad-ui/alert +## 0.8.5-alpha.0 + +### Patch Changes + +- [#1030](https://github.com/launchdarkly/launchpad-ui/pull/1030) [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687) Thanks [@Niznikr](https://github.com/Niznikr)! - [Button, SplitButton] Convert to css modules + +- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687), [`941d2d60`](https://github.com/launchdarkly/launchpad-ui/commit/941d2d60c96f095e7043852f02bc6b5f157edb3b), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53), [`260d052f`](https://github.com/launchdarkly/launchpad-ui/commit/260d052f3f47043cca470747e7d861417873fa41)]: + - @launchpad-ui/tokens@0.9.0-alpha.2 + - @launchpad-ui/button@0.11.5-alpha.0 + - @launchpad-ui/icons@0.14.5-alpha.0 + +## 0.8.3-alpha.0 + +### Patch Changes + +- [#1030](https://github.com/launchdarkly/launchpad-ui/pull/1030) [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687) Thanks [@Niznikr](https://github.com/Niznikr)! - [Button, SplitButton] Convert to css modules + +- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53)]: + - @launchpad-ui/tokens@0.9.0-alpha.1 + - @launchpad-ui/button@0.11.3-alpha.0 + - @launchpad-ui/icons@0.14.3-alpha.0 + +## 0.8.1-alpha.0 + +### Patch Changes + +- [#1030](https://github.com/launchdarkly/launchpad-ui/pull/1030) [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687) Thanks [@Niznikr](https://github.com/Niznikr)! - [Button, SplitButton] Convert to css modules + +- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53)]: + - @launchpad-ui/tokens@0.9.0-alpha.0 + - @launchpad-ui/button@0.11.1-alpha.0 + - @launchpad-ui/icons@0.14.1-alpha.0 + ## 0.8.5 ### Patch Changes diff --git a/packages/alert/src/styles/Alert.module.css b/packages/alert/src/styles/Alert.module.css index d0a739b8f..b03491fd1 100644 --- a/packages/alert/src/styles/Alert.module.css +++ b/packages/alert/src/styles/Alert.module.css @@ -1,12 +1,12 @@ :root { - --lp-component-alert-notification-flair-strong-color-text: var(--lp-color-white-0); - --lp-component-alert-notification-flair-strong-color-fill: var(--lp-color-white-0); - --lp-component-alert-notification-flair-strong-button-color-bg: var(--lp-color-white-0); + --lp-component-alert-notification-flair-strong-color-text: var(--lp-color-white-950); + --lp-component-alert-notification-flair-strong-color-fill: var(--lp-color-white-950); + --lp-component-alert-notification-flair-strong-button-color-bg: var(--lp-color-white-950); --lp-component-alert-notification-flair-strong-button-color-bg-hover: var(--lp-color-gray-100); --lp-component-alert-notification-flair-strong-button-color-bg-focus: var(--lp-color-gray-200); --lp-component-alert-notification-flair-strong-button-color-bg-active: var(--lp-color-gray-200); --lp-component-alert-notification-flair-strong-button-button-color-border: var( - --lp-color-white-0 + --lp-color-white-950 ); --lp-component-alert-notification-flair-strong-button-color-text: var(--lp-color-black-300); --lp-component-alert-notification-flair-strong-button-color-text-hover: var(--lp-color-black-300); @@ -41,7 +41,7 @@ line-height: 1.25; } -.Alert :global(.ButtonGroup) { +.Alert :global([class*='_ButtonGroup_']) { margin-top: 0.75rem; } @@ -197,7 +197,7 @@ margin-left: auto; } -.Alert-content :global(a:not(.Button)) { +.Alert-content :global(a:not([class*='_Button_'])) { color: var(--lp-color-text-interactive-base); &:hover { diff --git a/packages/avatar/src/styles/Avatar.module.css b/packages/avatar/src/styles/Avatar.module.css index e9400d7f5..d944e5d88 100644 --- a/packages/avatar/src/styles/Avatar.module.css +++ b/packages/avatar/src/styles/Avatar.module.css @@ -15,15 +15,15 @@ .Avatar--initials { border: none; - color: var(--lp-color-white-0); + color: var(--lp-color-white-950); } .Avatar--color0 { - background-color: var(--lp-color-yellow-800); + background-color: var(--lp-color-yellow-900); } .Avatar--color1 { - background-color: var(--lp-color-blue-500); + background-color: var(--lp-color-blue-600); } .Avatar--color2 { @@ -31,11 +31,11 @@ } .Avatar--color3 { - background-color: var(--lp-color-cyan-600); + background-color: var(--lp-color-cyan-500); } .Avatar--color4 { - background-color: var(--lp-color-purple-500); + background-color: var(--lp-color-purple-600); } .Avatar-initials-content { diff --git a/packages/banner/CHANGELOG.md b/packages/banner/CHANGELOG.md index 5d6b9637c..e92a416de 100644 --- a/packages/banner/CHANGELOG.md +++ b/packages/banner/CHANGELOG.md @@ -1,5 +1,32 @@ # @launchpad-ui/banner +## 0.10.5-alpha.0 + +### Patch Changes + +- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687), [`941d2d60`](https://github.com/launchdarkly/launchpad-ui/commit/941d2d60c96f095e7043852f02bc6b5f157edb3b), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53), [`260d052f`](https://github.com/launchdarkly/launchpad-ui/commit/260d052f3f47043cca470747e7d861417873fa41)]: + - @launchpad-ui/tokens@0.9.0-alpha.2 + - @launchpad-ui/button@0.11.5-alpha.0 + - @launchpad-ui/icons@0.14.5-alpha.0 + +## 0.10.3-alpha.0 + +### Patch Changes + +- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53)]: + - @launchpad-ui/tokens@0.9.0-alpha.1 + - @launchpad-ui/button@0.11.3-alpha.0 + - @launchpad-ui/icons@0.14.3-alpha.0 + +## 0.10.1-alpha.0 + +### Patch Changes + +- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53)]: + - @launchpad-ui/tokens@0.9.0-alpha.0 + - @launchpad-ui/button@0.11.1-alpha.0 + - @launchpad-ui/icons@0.14.1-alpha.0 + ## 0.10.4 ### Patch Changes diff --git a/packages/box/__tests__/Box.spec.tsx b/packages/box/__tests__/Box.spec.tsx index 525dcecdf..aa92e6269 100644 --- a/packages/box/__tests__/Box.spec.tsx +++ b/packages/box/__tests__/Box.spec.tsx @@ -6,13 +6,13 @@ import { Box } from '../src'; describe('Box', () => { it('renders', () => { - render(I am a box); + render(I am a box); expect(screen.getByText('I am a box')).toBeVisible(); }); it('supports asChild prop', () => { render( - + ); diff --git a/packages/box/stories/Box.stories.tsx b/packages/box/stories/Box.stories.tsx index 4dc5cf408..9288f4b64 100644 --- a/packages/box/stories/Box.stories.tsx +++ b/packages/box/stories/Box.stories.tsx @@ -19,8 +19,8 @@ type Story = StoryObj; export const Example: Story = { args: { - backgroundColor: { default: '$black.100', dark: '$gray.700' }, - color: '$white.0', + backgroundColor: { default: '$black.800', dark: '$gray.700' }, + color: '$white.950', padding: { desktop: '$400', tablet: '$300', mobile: '$200' }, width: { desktop: '$400', tablet: '$256', mobile: '$192' }, children: 'I am a box', @@ -31,7 +31,7 @@ export const Composition: Story = { args: { background: '$yellow-cyan', borderColor: '$cyan.500', - color: '$black.0', + color: '$black.900', asChild: true, children: , }, diff --git a/packages/button/CHANGELOG.md b/packages/button/CHANGELOG.md index 137470f6d..18219ae70 100644 --- a/packages/button/CHANGELOG.md +++ b/packages/button/CHANGELOG.md @@ -1,5 +1,35 @@ # @launchpad-ui/button +## 0.11.5-alpha.0 + +### Patch Changes + +- [#1030](https://github.com/launchdarkly/launchpad-ui/pull/1030) [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687) Thanks [@Niznikr](https://github.com/Niznikr)! - [Button, SplitButton] Convert to css modules + +- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`941d2d60`](https://github.com/launchdarkly/launchpad-ui/commit/941d2d60c96f095e7043852f02bc6b5f157edb3b), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53), [`260d052f`](https://github.com/launchdarkly/launchpad-ui/commit/260d052f3f47043cca470747e7d861417873fa41)]: + - @launchpad-ui/tokens@0.9.0-alpha.2 + - @launchpad-ui/icons@0.14.5-alpha.0 + +## 0.11.3-alpha.0 + +### Patch Changes + +- [#1030](https://github.com/launchdarkly/launchpad-ui/pull/1030) [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687) Thanks [@Niznikr](https://github.com/Niznikr)! - [Button, SplitButton] Convert to css modules + +- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53)]: + - @launchpad-ui/tokens@0.9.0-alpha.1 + - @launchpad-ui/icons@0.14.3-alpha.0 + +## 0.11.1-alpha.0 + +### Patch Changes + +- [#1030](https://github.com/launchdarkly/launchpad-ui/pull/1030) [`e48d0df6`](https://github.com/launchdarkly/launchpad-ui/commit/e48d0df69e5085bc31c6378fe2eaad581a5eb687) Thanks [@Niznikr](https://github.com/Niznikr)! - [Button, SplitButton] Convert to css modules + +- Updated dependencies [[`00bee445`](https://github.com/launchdarkly/launchpad-ui/commit/00bee445065c0e48f31e1ca88105e5a418729c81), [`c041a984`](https://github.com/launchdarkly/launchpad-ui/commit/c041a984c3fd0c95f5e1e4a07416f6907ff75eac), [`3f9e1881`](https://github.com/launchdarkly/launchpad-ui/commit/3f9e1881f5d878ad6c0dc26ea1f8c5623605db53)]: + - @launchpad-ui/tokens@0.9.0-alpha.0 + - @launchpad-ui/icons@0.14.1-alpha.0 + ## 0.11.4 ### Patch Changes diff --git a/packages/button/__tests__/ButtonGroup.spec.tsx b/packages/button/__tests__/ButtonGroup.spec.tsx index 40f8b3bd0..b8067a8c8 100644 --- a/packages/button/__tests__/ButtonGroup.spec.tsx +++ b/packages/button/__tests__/ButtonGroup.spec.tsx @@ -23,7 +23,7 @@ describe('ButtonGroup', () => { ); // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access - expect(container.querySelector('.ButtonGroup--compact')).not.toBeNull(); + expect(container.querySelector('[class*="_ButtonGroup--compact_"]')).not.toBeNull(); expect(screen.getByRole('button', { name: 'One' })).toBeInTheDocument(); expect(screen.getByRole('button', { name: 'Two' })).toBeInTheDocument(); }); @@ -36,7 +36,7 @@ describe('ButtonGroup', () => { ); // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access - expect(container.querySelector('.ButtonGroup--large')).not.toBeNull(); + expect(container.querySelector('[class*="_ButtonGroup--large_"]')).not.toBeNull(); expect(screen.getByRole('button', { name: 'One' })).toBeInTheDocument(); expect(screen.getByRole('button', { name: 'Two' })).toBeInTheDocument(); }); diff --git a/packages/button/src/Button.tsx b/packages/button/src/Button.tsx index f28c2f590..add7998eb 100644 --- a/packages/button/src/Button.tsx +++ b/packages/button/src/Button.tsx @@ -12,7 +12,7 @@ import { Slot } from '@radix-ui/react-slot'; import { cx } from 'classix'; import { isValidElement, cloneElement, forwardRef, memo } from 'react'; -import './styles/Button.css'; +import styles from './styles/Button.module.css'; type ButtonProps = ButtonHTMLAttributes & { isLoading?: boolean; @@ -59,11 +59,10 @@ const ButtonComponent = forwardRef((props, ref) const Component: ElementType = asChild ? Slot : 'button'; const classes = cx( - 'Button', - `Button--${kind}`, - disabled && 'Button--disabled', - size && `Button--${size}`, - fit && 'Button--fit', + styles.Button, + styles[`Button--${kind}`], + size && styles[`Button--${size}`], + fit && styles['Button--fit'], className ); @@ -83,7 +82,7 @@ const ButtonComponent = forwardRef((props, ref) key: 'icon', size: getIconSize(), 'aria-hidden': true, - className: cx(icon.props.className, 'Button-icon'), + className: cx(icon.props.className, styles['Button-icon']), }); const getFinalChildren = (c: ReactNode) => [ diff --git a/packages/button/src/ButtonGroup.tsx b/packages/button/src/ButtonGroup.tsx index 61e6acc84..242eeafd0 100644 --- a/packages/button/src/ButtonGroup.tsx +++ b/packages/button/src/ButtonGroup.tsx @@ -2,7 +2,7 @@ import type { ComponentProps } from 'react'; import { cx } from 'classix'; -import './styles/ButtonGroup.css'; +import styles from './styles/Button.module.css'; type ButtonGroupProps = ComponentProps<'div'> & { spacing?: 'compact' | 'normal' | 'large'; @@ -16,7 +16,7 @@ const ButtonGroup = ({ 'data-test-id': testId = 'button-group', ...rest }: ButtonGroupProps) => { - const classes = cx('ButtonGroup', `ButtonGroup--${spacing}`, className); + const classes = cx(styles.ButtonGroup, styles[`ButtonGroup--${spacing}`], className); return (
diff --git a/packages/button/src/IconButton.tsx b/packages/button/src/IconButton.tsx index 8a87b7582..c91bd413a 100644 --- a/packages/button/src/IconButton.tsx +++ b/packages/button/src/IconButton.tsx @@ -11,7 +11,7 @@ import { Slot } from '@radix-ui/react-slot'; import { cx } from 'classix'; import { isValidElement, cloneElement, forwardRef, memo } from 'react'; -import './styles/Button.css'; +import styles from './styles/Button.module.css'; type IconButtonProps = ButtonHTMLAttributes & { kind?: 'default' | 'primary' | 'destructive' | 'minimal' | 'close'; @@ -41,12 +41,11 @@ const IconButtonComponent = forwardRef((prop const Component: ElementType = asChild ? Slot : 'button'; const classes = cx( - 'IconButton', - 'Button', - 'Button--icon', - `Button--${kind}`, - disabled && 'Button--disabled', - size && `Button--${size}`, + styles.IconButton, + styles.Button, + styles['Button--icon'], + styles[`Button--${kind}`], + size && styles[`Button--${size}`], className ); diff --git a/packages/button/src/UploadButton.tsx b/packages/button/src/UploadButton.tsx index b485bd05e..2a61587d3 100644 --- a/packages/button/src/UploadButton.tsx +++ b/packages/button/src/UploadButton.tsx @@ -1,7 +1,6 @@ import type { ButtonProps } from './Button'; import type { ChangeEventHandler, KeyboardEvent } from 'react'; -import { cx } from 'classix'; import { useRef } from 'react'; import { Button } from './Button'; @@ -25,7 +24,6 @@ const UploadButton = ({ ...rest }: UploadButtonProps) => { const inputRef = useRef(null); - const classes = cx('UploadButton', className); const handleClick = () => { inputRef.current?.click(); @@ -61,10 +59,9 @@ const UploadButton = ({ }; return ( - + -