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!: color refresh #1084

Merged
merged 21 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
607822b
chore: enter prerelease mode
Niznikr Oct 4, 2023
c041a98
feat(tokens)!: move color primitives to themes.css (#1020)
Niznikr Oct 4, 2023
e48d0df
refactor(button): convert to css modules (#1030)
Niznikr Oct 6, 2023
00bee44
refactor(tokens)!: update color primitives and aliases for product re…
Niznikr Oct 10, 2023
b69b5a3
chore: merge branch 'main' into release/color-refresh (#1036)
Niznikr Oct 11, 2023
3f9e188
feat(tokens): add typography tokens (#1037)
Niznikr Oct 13, 2023
4c2037b
chore: version packages (alpha) (#1028)
pd-sa-github-launchpad-ui Oct 13, 2023
6cc6da2
feat: refresh menu component (#1043)
matthewferry Oct 19, 2023
36b47d4
refactor(menu): use CSS modules (#1046)
Niznikr Oct 19, 2023
cac9253
chore: version packages (alpha) (#1045)
pd-sa-github-launchpad-ui Oct 19, 2023
d593f31
chore: merge branch 'main' into release/color-refresh (#1049)
Niznikr Oct 20, 2023
c6a56ac
fix: correct tokens version (#1051)
Niznikr Oct 20, 2023
2ef5b48
chore: version packages (alpha) (#1050)
pd-sa-github-launchpad-ui Oct 20, 2023
260d052
fix(tokens): keep css color keywords (#1060)
Niznikr Oct 24, 2023
941d2d6
feat: Update color steps from 9 to 12 (#1068)
matthewferry Nov 6, 2023
c2728a7
chore: merge branch 'main' into release/color-refresh (#1073)
Niznikr Nov 6, 2023
37dd217
chore: version packages (alpha) (#1061)
pd-sa-github-launchpad-ui Nov 6, 2023
95460a9
Merge remote-tracking branch 'origin/main' into chore/merge-main
Niznikr Nov 17, 2023
a8504e8
chore: move primitives back to index.css
Niznikr Nov 17, 2023
c8480e5
chore: exit prerelease
Niznikr Nov 17, 2023
f84a6f5
fix: update box colors
Niznikr Nov 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/quick-rockets-sit.md
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions .changeset/quiet-emus-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@launchpad-ui/tokens': minor
'@launchpad-ui/core': patch
---

Feat: remap colors from 9 to 12 steps
5 changes: 5 additions & 0 deletions .changeset/selfish-pens-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@launchpad-ui/tokens': patch
---

Add typography tokens
6 changes: 6 additions & 0 deletions .changeset/thick-radios-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@launchpad-ui/core': patch
'@launchpad-ui/menu': patch
---

[Menu] Use CSS modules
5 changes: 5 additions & 0 deletions .changeset/warm-papayas-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@launchpad-ui/tokens': patch
---

Keep CSS color keywords
7 changes: 7 additions & 0 deletions .changeset/wise-buckets-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@launchpad-ui/popover': patch
'@launchpad-ui/core': patch
'@launchpad-ui/menu': patch
---

Refresh menu styles
Binary file not shown.
10 changes: 9 additions & 1 deletion .storybook/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,22 @@ 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');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
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;
Expand Down
2 changes: 1 addition & 1 deletion apps/remix/app/routes/components.box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Box } from '@launchpad-ui/core';

export default function Index() {
return (
<Box backgroundColor={{ default: '$black.100', dark: '$gray.700' }} color="$white.0">
<Box backgroundColor={{ default: '$black.800', dark: '$gray.700' }} color="$white.950">
I am a box
</Box>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/remix/app/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
33 changes: 33 additions & 0 deletions packages/alert/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- @launchpad-ui/[email protected]
- @launchpad-ui/[email protected]

## 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/[email protected]
- @launchpad-ui/[email protected]
- @launchpad-ui/[email protected]

## 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/[email protected]
- @launchpad-ui/[email protected]
- @launchpad-ui/[email protected]

## 0.8.5

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions packages/alert/src/styles/Alert.module.css
Original file line number Diff line number Diff line change
@@ -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);
Expand Down Expand Up @@ -41,7 +41,7 @@
line-height: 1.25;
}

.Alert :global(.ButtonGroup) {
.Alert :global([class*='_ButtonGroup_']) {
margin-top: 0.75rem;
}

Expand Down Expand Up @@ -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 {
Expand Down
10 changes: 5 additions & 5 deletions packages/avatar/src/styles/Avatar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@

.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 {
background-color: var(--lp-color-pink-500);
}

.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 {
Expand Down
27 changes: 27 additions & 0 deletions packages/banner/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- @launchpad-ui/[email protected]
- @launchpad-ui/[email protected]

## 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/[email protected]
- @launchpad-ui/[email protected]
- @launchpad-ui/[email protected]

## 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/[email protected]
- @launchpad-ui/[email protected]
- @launchpad-ui/[email protected]

## 0.10.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/box/__tests__/Box.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import { Box } from '../src';

describe('Box', () => {
it('renders', () => {
render(<Box backgroundColor="$black.100">I am a box</Box>);
render(<Box backgroundColor="$black.800">I am a box</Box>);
expect(screen.getByText('I am a box')).toBeVisible();
});

it('supports asChild prop', () => {
render(
<Box backgroundColor="$black.100" asChild>
<Box backgroundColor="$black.800" asChild>
<Button>I am a button</Button>
</Box>
);
Expand Down
6 changes: 3 additions & 3 deletions packages/box/stories/Box.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type Story = StoryObj<typeof Box>;

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',
Expand All @@ -31,7 +31,7 @@ export const Composition: Story = {
args: {
background: '$yellow-cyan',
borderColor: '$cyan.500',
color: '$black.0',
color: '$black.900',
asChild: true,
children: <Button>Button</Button>,
},
Expand Down
30 changes: 30 additions & 0 deletions packages/button/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- @launchpad-ui/[email protected]

## 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/[email protected]
- @launchpad-ui/[email protected]

## 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/[email protected]
- @launchpad-ui/[email protected]

## 0.11.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/button/__tests__/ButtonGroup.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('ButtonGroup', () => {
</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();
});
Expand All @@ -36,7 +36,7 @@ describe('ButtonGroup', () => {
</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();
});
Expand Down
13 changes: 6 additions & 7 deletions packages/button/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLButtonElement> & {
isLoading?: boolean;
Expand Down Expand Up @@ -59,11 +59,10 @@ const ButtonComponent = forwardRef<HTMLButtonElement, ButtonProps>((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
);

Expand All @@ -83,7 +82,7 @@ const ButtonComponent = forwardRef<HTMLButtonElement, ButtonProps>((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) => [
Expand Down
4 changes: 2 additions & 2 deletions packages/button/src/ButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 (
<div className={classes} data-test-id={testId} {...rest}>
Expand Down
13 changes: 6 additions & 7 deletions packages/button/src/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLButtonElement> & {
kind?: 'default' | 'primary' | 'destructive' | 'minimal' | 'close';
Expand Down Expand Up @@ -41,12 +41,11 @@ const IconButtonComponent = forwardRef<HTMLButtonElement, IconButtonProps>((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
);

Expand Down
Loading