@aurora-ds/lib-test 0.0.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +134 -0
- package/dist/components/actions/_shared/buttons/constants/index.d.ts +4 -0
- package/dist/components/actions/_shared/buttons/styles/buttonShared.css.d.ts +349 -0
- package/dist/components/actions/_shared/buttons/styles/variants/contained.d.ts +107 -0
- package/dist/components/actions/_shared/buttons/styles/variants/ghost.d.ts +100 -0
- package/dist/components/actions/_shared/buttons/styles/variants/outlined.d.ts +106 -0
- package/dist/components/actions/_shared/buttons/types/index.d.ts +6 -0
- package/dist/components/actions/button/Button.css.d.ts +36 -0
- package/dist/components/actions/button/Button.d.ts +4 -0
- package/dist/components/actions/button/constants/index.d.ts +4 -0
- package/dist/components/actions/button/index.d.ts +4 -0
- package/dist/components/actions/button/types/Button.props.d.ts +11 -0
- package/dist/components/actions/button/types/Button.types.d.ts +7 -0
- package/dist/components/actions/icon-button/IconButton.css.d.ts +35 -0
- package/dist/components/actions/icon-button/IconButton.d.ts +4 -0
- package/dist/components/actions/icon-button/constants/index.d.ts +2 -0
- package/dist/components/actions/icon-button/index.d.ts +4 -0
- package/dist/components/actions/icon-button/types/IconButton.props.d.ts +9 -0
- package/dist/components/actions/icon-button/types/IconButton.types.d.ts +7 -0
- package/dist/components/data-display/index.d.ts +1 -0
- package/dist/components/data-display/table/Table.css.d.ts +40 -0
- package/dist/components/data-display/table/Table.d.ts +4 -0
- package/dist/components/data-display/table/components/index.d.ts +9 -0
- package/dist/components/data-display/table/components/table-body/TableBody.css.d.ts +2 -0
- package/dist/components/data-display/table/components/table-body/TableBody.d.ts +4 -0
- package/dist/components/data-display/table/components/table-body/index.d.ts +3 -0
- package/dist/components/data-display/table/components/table-body/types/TableBody.props.d.ts +2 -0
- package/dist/components/data-display/table/components/table-caption/TableCaption.css.d.ts +1 -0
- package/dist/components/data-display/table/components/table-caption/TableCaption.d.ts +4 -0
- package/dist/components/data-display/table/components/table-caption/index.d.ts +3 -0
- package/dist/components/data-display/table/components/table-caption/types/TableCaption.props.d.ts +2 -0
- package/dist/components/data-display/table/components/table-cell/TableCell.css.d.ts +27 -0
- package/dist/components/data-display/table/components/table-cell/TableCell.d.ts +4 -0
- package/dist/components/data-display/table/components/table-cell/index.d.ts +3 -0
- package/dist/components/data-display/table/components/table-cell/types/TableCell.props.d.ts +15 -0
- package/dist/components/data-display/table/components/table-col/TableCol.d.ts +4 -0
- package/dist/components/data-display/table/components/table-col/index.d.ts +2 -0
- package/dist/components/data-display/table/components/table-col/types/TableCol.props.d.ts +18 -0
- package/dist/components/data-display/table/components/table-col-group/TableColGroup.d.ts +4 -0
- package/dist/components/data-display/table/components/table-col-group/index.d.ts +2 -0
- package/dist/components/data-display/table/components/table-col-group/types/TableColGroup.props.d.ts +2 -0
- package/dist/components/data-display/table/components/table-footer/TableFooter.css.d.ts +1 -0
- package/dist/components/data-display/table/components/table-footer/TableFooter.d.ts +4 -0
- package/dist/components/data-display/table/components/table-footer/index.d.ts +3 -0
- package/dist/components/data-display/table/components/table-footer/types/TableFooter.props.d.ts +2 -0
- package/dist/components/data-display/table/components/table-head/TableHead.css.d.ts +23 -0
- package/dist/components/data-display/table/components/table-head/TableHead.d.ts +4 -0
- package/dist/components/data-display/table/components/table-head/index.d.ts +3 -0
- package/dist/components/data-display/table/components/table-head/types/TableHead.props.d.ts +15 -0
- package/dist/components/data-display/table/components/table-header/TableHeader.css.d.ts +1 -0
- package/dist/components/data-display/table/components/table-header/TableHeader.d.ts +4 -0
- package/dist/components/data-display/table/components/table-header/index.d.ts +3 -0
- package/dist/components/data-display/table/components/table-header/types/TableHeader.props.d.ts +2 -0
- package/dist/components/data-display/table/components/table-row/TableRow.css.d.ts +56 -0
- package/dist/components/data-display/table/components/table-row/TableRow.d.ts +4 -0
- package/dist/components/data-display/table/components/table-row/index.d.ts +3 -0
- package/dist/components/data-display/table/components/table-row/types/TableRow.props.d.ts +11 -0
- package/dist/components/data-display/table/constants/index.d.ts +5 -0
- package/dist/components/data-display/table/index.d.ts +5 -0
- package/dist/components/data-display/table/types/Table.props.d.ts +14 -0
- package/dist/components/data-display/table/types/Table.types.d.ts +4 -0
- package/dist/components/forms/_shared/checkboxVisual.css.d.ts +16 -0
- package/dist/components/forms/_shared/radioVisual.css.d.ts +12 -0
- package/dist/components/forms/checkbox/Checkbox.css.d.ts +22 -0
- package/dist/components/forms/checkbox/Checkbox.d.ts +15 -0
- package/dist/components/forms/checkbox/index.d.ts +3 -0
- package/dist/components/forms/checkbox/types/Checkbox.props.d.ts +6 -0
- package/dist/components/forms/index.d.ts +2 -0
- package/dist/components/forms/radio-group/RadioGroup.d.ts +16 -0
- package/dist/components/forms/radio-group/components/radio-item/RadioItem.css.d.ts +16 -0
- package/dist/components/forms/radio-group/components/radio-item/RadioItem.d.ts +13 -0
- package/dist/components/forms/radio-group/components/radio-item/types/RadioItem.props.d.ts +6 -0
- package/dist/components/forms/radio-group/index.d.ts +5 -0
- package/dist/components/forms/radio-group/types/RadioGroup.props.d.ts +3 -0
- package/dist/components/foundation/icon/Icon.css.d.ts +35 -0
- package/dist/components/foundation/icon/Icon.d.ts +4 -0
- package/dist/components/foundation/icon/index.d.ts +4 -0
- package/dist/components/foundation/icon/types/Icon.props.d.ts +7 -0
- package/dist/components/foundation/icon/types/Icon.types.d.ts +1 -0
- package/dist/components/foundation/typography/Typography.css.d.ts +198 -0
- package/dist/components/foundation/typography/Typography.d.ts +4 -0
- package/dist/components/foundation/typography/constants/index.d.ts +26 -0
- package/dist/components/foundation/typography/index.d.ts +5 -0
- package/dist/components/foundation/typography/types/Typography.props.d.ts +12 -0
- package/dist/components/foundation/typography/types/Typography.types.d.ts +6 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/layout/box/Box.css.d.ts +938 -0
- package/dist/components/layout/box/Box.d.ts +4 -0
- package/dist/components/layout/box/index.d.ts +5 -0
- package/dist/components/layout/box/types/Box.props.d.ts +8 -0
- package/dist/components/layout/box/types/Box.types.d.ts +2 -0
- package/dist/components/layout/flex/Flex.css.d.ts +74 -0
- package/dist/components/layout/flex/Flex.d.ts +4 -0
- package/dist/components/layout/flex/index.d.ts +5 -0
- package/dist/components/layout/flex/types/Flex.props.d.ts +3 -0
- package/dist/components/layout/flex/types/Flex.types.d.ts +8 -0
- package/dist/components/layout/grid/Grid.css.d.ts +153 -0
- package/dist/components/layout/grid/Grid.d.ts +4 -0
- package/dist/components/layout/grid/index.d.ts +5 -0
- package/dist/components/layout/grid/types/Grid.props.d.ts +3 -0
- package/dist/components/layout/grid/types/Grid.types.d.ts +14 -0
- package/dist/components/layout/index.d.ts +3 -0
- package/dist/components/overlay/dropdown-menu/DropdownMenu.d.ts +10 -0
- package/dist/components/overlay/dropdown-menu/components/_shared/item.css.d.ts +14 -0
- package/dist/components/overlay/dropdown-menu/components/_shared/useViewportShift.d.ts +1 -0
- package/dist/components/overlay/dropdown-menu/components/content/dropdown-menu-content/DropdownMenuContent.css.d.ts +6 -0
- package/dist/components/overlay/dropdown-menu/components/content/dropdown-menu-content/DropdownMenuContent.d.ts +16 -0
- package/dist/components/overlay/dropdown-menu/components/content/dropdown-menu-content/types/DropdownMenuContent.props.d.ts +24 -0
- package/dist/components/overlay/dropdown-menu/components/groups/dropdown-menu-group/DropdownMenuGroup.d.ts +9 -0
- package/dist/components/overlay/dropdown-menu/components/groups/dropdown-menu-group/types/DropdownMenuGroup.props.d.ts +2 -0
- package/dist/components/overlay/dropdown-menu/components/groups/dropdown-menu-radio-group/DropdownMenuRadioGroup.d.ts +10 -0
- package/dist/components/overlay/dropdown-menu/components/groups/dropdown-menu-radio-group/types/DropdownMenuRadioGroup.props.d.ts +2 -0
- package/dist/components/overlay/dropdown-menu/components/index.d.ts +26 -0
- package/dist/components/overlay/dropdown-menu/components/items/dropdown-menu-checkbox-item/DropdownMenuCheckboxItem.d.ts +4 -0
- package/dist/components/overlay/dropdown-menu/components/items/dropdown-menu-checkbox-item/types/DropdownMenuCheckboxItem.props.d.ts +6 -0
- package/dist/components/overlay/dropdown-menu/components/items/dropdown-menu-item/DropdownMenuItem.d.ts +18 -0
- package/dist/components/overlay/dropdown-menu/components/items/dropdown-menu-item/types/DropdownMenuItem.props.d.ts +14 -0
- package/dist/components/overlay/dropdown-menu/components/items/dropdown-menu-radio-item/DropdownMenuRadioItem.d.ts +4 -0
- package/dist/components/overlay/dropdown-menu/components/items/dropdown-menu-radio-item/types/DropdownMenuRadioItem.props.d.ts +6 -0
- package/dist/components/overlay/dropdown-menu/components/label/dropdown-menu-label/DropdownMenuLabel.css.d.ts +5 -0
- package/dist/components/overlay/dropdown-menu/components/label/dropdown-menu-label/DropdownMenuLabel.d.ts +10 -0
- package/dist/components/overlay/dropdown-menu/components/label/dropdown-menu-label/types/DropdownMenuLabel.props.d.ts +6 -0
- package/dist/components/overlay/dropdown-menu/components/separator/dropdown-menu-separator/DropdownMenuSeparator.css.d.ts +5 -0
- package/dist/components/overlay/dropdown-menu/components/separator/dropdown-menu-separator/DropdownMenuSeparator.d.ts +9 -0
- package/dist/components/overlay/dropdown-menu/components/separator/dropdown-menu-separator/types/DropdownMenuSeparator.props.d.ts +2 -0
- package/dist/components/overlay/dropdown-menu/components/shortcut/dropdown-menu-shortcut/DropdownMenuShortcut.css.d.ts +6 -0
- package/dist/components/overlay/dropdown-menu/components/shortcut/dropdown-menu-shortcut/DropdownMenuShortcut.d.ts +10 -0
- package/dist/components/overlay/dropdown-menu/components/shortcut/dropdown-menu-shortcut/types/DropdownMenuShortcut.props.d.ts +2 -0
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub/DropdownMenuSub.d.ts +10 -0
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub/types/DropdownMenuSub.props.d.ts +2 -0
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-content/DropdownMenuSubContent.css.d.ts +6 -0
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-content/DropdownMenuSubContent.d.ts +13 -0
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-content/types/DropdownMenuSubContent.props.d.ts +16 -0
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-trigger/DropdownMenuSubTrigger.css.d.ts +9 -0
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-trigger/DropdownMenuSubTrigger.d.ts +10 -0
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-trigger/types/DropdownMenuSubTrigger.props.d.ts +8 -0
- package/dist/components/overlay/dropdown-menu/components/trigger/dropdown-menu-trigger/DropdownMenuTrigger.d.ts +10 -0
- package/dist/components/overlay/dropdown-menu/components/trigger/dropdown-menu-trigger/types/DropdownMenuTrigger.props.d.ts +2 -0
- package/dist/components/overlay/dropdown-menu/index.d.ts +6 -0
- package/dist/components/overlay/dropdown-menu/types/DropdownMenu.props.d.ts +4 -0
- package/dist/components/overlay/dropdown-menu/types/DropdownMenu.types.d.ts +4 -0
- package/dist/components/overlay/tooltip/Tooltip.css.d.ts +2 -0
- package/dist/components/overlay/tooltip/Tooltip.d.ts +4 -0
- package/dist/components/overlay/tooltip/index.d.ts +5 -0
- package/dist/components/overlay/tooltip/types/Tooltip.props.d.ts +28 -0
- package/dist/components/overlay/tooltip/types/Tooltip.types.d.ts +29 -0
- package/dist/components/theme-provider/ThemeProvider.context.d.ts +30 -0
- package/dist/components/theme-provider/ThemeProvider.d.ts +36 -0
- package/dist/components/theme-provider/index.d.ts +4 -0
- package/dist/components/theme-provider/types/ThemeProvider.props.d.ts +32 -0
- package/dist/components/theme-provider/utils/getSystemTheme.utils.d.ts +5 -0
- package/dist/components/theme-provider/utils/resolveTheme.utils.d.ts +2 -0
- package/dist/constants/animations/fade/fadeIn.css.d.ts +1 -0
- package/dist/constants/animations/fade/fadeOut.css.d.ts +1 -0
- package/dist/constants/animations/index.d.ts +11 -0
- package/dist/constants/animations/slide/slideDownIn.css.d.ts +1 -0
- package/dist/constants/animations/slide/slideDownOut.css.d.ts +1 -0
- package/dist/constants/animations/slide/slideLeftIn.css.d.ts +1 -0
- package/dist/constants/animations/slide/slideLeftOut.css.d.ts +1 -0
- package/dist/constants/animations/slide/slideRightIn.css.d.ts +1 -0
- package/dist/constants/animations/slide/slideRightOut.css.d.ts +1 -0
- package/dist/constants/animations/slide/slideUpIn.css.d.ts +1 -0
- package/dist/constants/animations/slide/slideUpOut.css.d.ts +1 -0
- package/dist/constants/animations/spin/spinAnimation.css.d.ts +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-viewport-shift/constants/index.d.ts +1 -0
- package/dist/hooks/use-viewport-shift/helpers/createCorrector.helper.d.ts +11 -0
- package/dist/hooks/use-viewport-shift/helpers/guardAccidentalSelection.helper.d.ts +15 -0
- package/dist/hooks/use-viewport-shift/helpers/normalizePadding.helper.d.ts +3 -0
- package/dist/hooks/use-viewport-shift/helpers/watchRepositions.helper.d.ts +10 -0
- package/dist/hooks/use-viewport-shift/types/index.d.ts +12 -0
- package/dist/hooks/use-viewport-shift/useViewportShift.hook.d.ts +13 -0
- package/dist/index.cjs +42 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +6970 -0
- package/dist/index.js.map +1 -0
- package/dist/stories/overview/theme/colors/components/color-group-card/ColorGroupCard.d.ts +2 -0
- package/dist/stories/overview/theme/colors/components/color-group-card/ColorGroupCard.styles.d.ts +5 -0
- package/dist/stories/overview/theme/colors/components/color-group-card/types/index.d.ts +11 -0
- package/dist/stories/overview/theme/colors/components/color-palette-section/ColorPaletteSection.d.ts +2 -0
- package/dist/stories/overview/theme/colors/components/color-palette-section/ColorPaletteSection.styles.d.ts +5 -0
- package/dist/stories/overview/theme/colors/components/color-palette-section/types/index.d.ts +11 -0
- package/dist/stories/overview/theme/colors/components/color-swatch/ColorSwatch.d.ts +2 -0
- package/dist/stories/overview/theme/colors/components/color-swatch/ColorSwatch.styles.d.ts +8 -0
- package/dist/stories/overview/theme/colors/components/color-swatch/types/index.d.ts +5 -0
- package/dist/stories/overview/theme/colors/components/index.d.ts +4 -0
- package/dist/stories/overview/theme/css-variables/components/copy-mui-button/CopyMuiButton.d.ts +1 -0
- package/dist/stories/overview/theme/css-variables/components/copy-mui-button/index.d.ts +1 -0
- package/dist/stories/overview/theme/css-variables/components/copy-plain-css-button/CopyPlainCssButton.d.ts +1 -0
- package/dist/stories/overview/theme/css-variables/components/copy-plain-css-button/index.d.ts +1 -0
- package/dist/stories/overview/theme/css-variables/components/copy-tailwind-button/CopyTailwindButton.d.ts +1 -0
- package/dist/stories/overview/theme/css-variables/components/copy-tailwind-button/index.d.ts +1 -0
- package/dist/stories/overview/theme/css-variables/components/copy-theme-button/CopyThemeButton.d.ts +1 -0
- package/dist/stories/overview/theme/css-variables/components/copy-theme-button/index.d.ts +1 -0
- package/dist/stories/overview/theme/css-variables/components/copy-vanilla-extract-button/CopyVanillaExtractButton.d.ts +1 -0
- package/dist/stories/overview/theme/css-variables/components/copy-vanilla-extract-button/index.d.ts +1 -0
- package/dist/stories/overview/theme/css-variables/components/var-table/VarTable.css.d.ts +5 -0
- package/dist/stories/overview/theme/css-variables/components/var-table/VarTable.d.ts +2 -0
- package/dist/stories/overview/theme/css-variables/components/var-table/index.d.ts +2 -0
- package/dist/stories/overview/theme/css-variables/components/var-table/types/index.d.ts +6 -0
- package/dist/stories/overview/theme/css-variables/types/index.d.ts +6 -0
- package/dist/stories/overview/theme/css-variables/utils/theme.utils.d.ts +27 -0
- package/dist/stories/overview/theme/tokens/components/copy-badge/CopyBadge.d.ts +2 -0
- package/dist/stories/overview/theme/tokens/components/copy-badge/CopyBadge.styles.d.ts +2 -0
- package/dist/stories/overview/theme/tokens/components/copy-badge/types/index.d.ts +3 -0
- package/dist/stories/overview/theme/tokens/components/index.d.ts +9 -0
- package/dist/stories/overview/theme/tokens/components/motion-section/MotionSection.d.ts +1 -0
- package/dist/stories/overview/theme/tokens/components/motion-section/MotionSection.styles.d.ts +11 -0
- package/dist/stories/overview/theme/tokens/components/radius-section/RadiusSection.d.ts +1 -0
- package/dist/stories/overview/theme/tokens/components/radius-section/RadiusSection.styles.d.ts +2 -0
- package/dist/stories/overview/theme/tokens/components/shadow-section/ShadowSection.d.ts +1 -0
- package/dist/stories/overview/theme/tokens/components/shadow-section/ShadowSection.styles.d.ts +7 -0
- package/dist/stories/overview/theme/tokens/components/spacing-section/SpacingSection.d.ts +1 -0
- package/dist/stories/overview/theme/tokens/components/spacing-section/SpacingSection.styles.d.ts +9 -0
- package/dist/stories/overview/theme/tokens/components/spacing-section/utils/toPx.d.ts +5 -0
- package/dist/stories/overview/theme/tokens/components/token-card/TokenCard.d.ts +2 -0
- package/dist/stories/overview/theme/tokens/components/token-card/TokenCard.styles.d.ts +6 -0
- package/dist/stories/overview/theme/tokens/components/token-card/types/index.d.ts +6 -0
- package/dist/stories/overview/theme/tokens/components/token-section/TokenSection.d.ts +2 -0
- package/dist/stories/overview/theme/tokens/components/token-section/TokenSection.styles.d.ts +5 -0
- package/dist/stories/overview/theme/tokens/components/token-section/types/index.d.ts +6 -0
- package/dist/stories/overview/theme/tokens/components/typography-section/TypographySection.d.ts +1 -0
- package/dist/stories/overview/theme/tokens/components/typography-section/TypographySection.styles.d.ts +6 -0
- package/dist/stories/overview/theme/tokens/components/zindex-section/ZIndexSection.d.ts +1 -0
- package/dist/stories/overview/theme/tokens/components/zindex-section/ZIndexSection.styles.d.ts +7 -0
- package/dist/theme/colors/dark.d.ts +2 -0
- package/dist/theme/colors/index.d.ts +3 -0
- package/dist/theme/colors/light.d.ts +72 -0
- package/dist/theme/contract.css.d.ts +191 -0
- package/dist/theme/globalStyles.css.d.ts +1 -0
- package/dist/theme/index.d.ts +10 -0
- package/dist/theme/override.d.ts +11 -0
- package/dist/theme/tokens/index.d.ts +294 -0
- package/dist/theme/tokens/motion.d.ts +17 -0
- package/dist/theme/tokens/palette.d.ts +85 -0
- package/dist/theme/tokens/radii.d.ts +11 -0
- package/dist/theme/tokens/shadows.d.ts +21 -0
- package/dist/theme/tokens/spacing.d.ts +16 -0
- package/dist/theme/tokens/typography.d.ts +50 -0
- package/dist/theme/tokens/zIndex.d.ts +14 -0
- package/dist/theme/types/index.d.ts +6 -0
- package/dist/ui-kit.css +2 -0
- package/dist/utils/cn.d.ts +7 -0
- package/dist/vite-env.d.ts +3 -0
- package/package.json +95 -0
package/README.md
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# @my-org/ui-kit
|
|
2
|
+
|
|
3
|
+
A React 19 UI kit built with **Vite 8** (library mode), **Vanilla Extract**
|
|
4
|
+
(zero-runtime, typed CSS-in-TS) and **Radix UI** primitives. Components are
|
|
5
|
+
previewed with **Storybook**.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- ⚛️ React 19 + TypeScript, ships ESM + CJS + type declarations
|
|
10
|
+
- 🎨 Vanilla Extract design system — a fully typed token theme
|
|
11
|
+
(colors, spacing, radius, font sizes/weights, shadows, z-index)
|
|
12
|
+
- 🧩 Radix-based components styled with Vanilla Extract `recipe()` (the typed
|
|
13
|
+
replacement for `cva`), composed with `clsx`
|
|
14
|
+
- 📚 Storybook for interactive component docs
|
|
15
|
+
- ✅ ESLint flat config (typescript-eslint, react-hooks, jsx-a11y, storybook) + Prettier
|
|
16
|
+
|
|
17
|
+
## Install (in a consuming app)
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
yarn add @my-org/ui-kit react react-dom
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Import the stylesheet once (e.g. in your root layout/entry):
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import '@my-org/ui-kit/styles.css';
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Then use components:
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
import { Text } from '@my-org/ui-kit';
|
|
33
|
+
|
|
34
|
+
export function Example() {
|
|
35
|
+
return (
|
|
36
|
+
<>
|
|
37
|
+
<Text variant="h1">Hello world</Text>
|
|
38
|
+
<Text variant="muted">A typographic primitive.</Text>
|
|
39
|
+
<Text variant="code">@my-org/ui-kit</Text>
|
|
40
|
+
</>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Theming
|
|
46
|
+
|
|
47
|
+
The design system is the single source of truth for tokens, organised by
|
|
48
|
+
category under `src/theme/tokens/` (`colors.ts`, `spacing.ts`, `radii.ts`,
|
|
49
|
+
`typography.ts`, `shadows.ts`, `zIndex.ts`, `motion.ts`) and built on top of a
|
|
50
|
+
primitive OKLCH `palette.ts`. The typed contract and the light/dark theme
|
|
51
|
+
registration live in `src/theme/contract.css.ts`.
|
|
52
|
+
|
|
53
|
+
The kit ships with complete **light and dark** themes. Dark mode follows the
|
|
54
|
+
OS by default (`prefers-color-scheme`) and can be forced per-subtree:
|
|
55
|
+
|
|
56
|
+
```html
|
|
57
|
+
<html data-theme="dark"> ... <!-- force dark -->
|
|
58
|
+
<html data-theme="light"> ... <!-- force light -->
|
|
59
|
+
<html> ... <!-- auto: follow the OS -->
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Tokens are available two ways:
|
|
63
|
+
|
|
64
|
+
**1. Typed `vars` (inside `*.css.ts`, fully autocompleted):**
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
import { style } from '@vanilla-extract/css';
|
|
68
|
+
import { vars } from '@my-org/ui-kit';
|
|
69
|
+
|
|
70
|
+
export const card = style({
|
|
71
|
+
backgroundColor: vars.color.card,
|
|
72
|
+
color: vars.color.cardForeground,
|
|
73
|
+
padding: vars.space.lg,
|
|
74
|
+
borderRadius: vars.radius.md,
|
|
75
|
+
boxShadow: vars.shadow.sm,
|
|
76
|
+
});
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**2. Plain CSS variables** — every token is emitted on `:root` with a stable,
|
|
80
|
+
human-readable name derived from its path (`--color-primary`, `--space-md`,
|
|
81
|
+
`--radius-sm`, …). Use them in any stylesheet, or override them to retheme:
|
|
82
|
+
|
|
83
|
+
```css
|
|
84
|
+
:root {
|
|
85
|
+
--color-primary: oklch(0.55 0.2 250); /* rebrand the whole kit */
|
|
86
|
+
--radius-md: 0.25rem;
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Both stay in sync automatically — overriding a CSS variable also updates every
|
|
91
|
+
component that references it through `vars`.
|
|
92
|
+
|
|
93
|
+
## Components
|
|
94
|
+
|
|
95
|
+
### `Text`
|
|
96
|
+
|
|
97
|
+
Polymorphic typography primitive.
|
|
98
|
+
|
|
99
|
+
| Prop | Type | Default | Description |
|
|
100
|
+
| ---------- | --------------------------------------------------------------------------------------------- | ------- | -------------------------------------------- |
|
|
101
|
+
| `variant` | `h1 \| h2 \| h3 \| h4 \| p \| lead \| large \| small \| muted \| blockquote \| code` | `p` | Visual style + default semantic HTML element |
|
|
102
|
+
| `weight` | `normal \| medium \| semibold \| bold` | — | Font weight override |
|
|
103
|
+
| `align` | `left \| center \| right` | — | Text alignment |
|
|
104
|
+
| `truncate` | `boolean` | — | Truncate overflow with ellipsis |
|
|
105
|
+
| `as` | `React.ElementType` | — | Override the rendered element |
|
|
106
|
+
|
|
107
|
+
## Scripts
|
|
108
|
+
|
|
109
|
+
| Command | Description |
|
|
110
|
+
| ---------------------- | -------------------------------------------- |
|
|
111
|
+
| `yarn dev` | Build the library in watch mode |
|
|
112
|
+
| `yarn build` | Type-check and build (ESM, CJS, d.ts, CSS) |
|
|
113
|
+
| `yarn storybook` | Run Storybook dev server on port 6006 |
|
|
114
|
+
| `yarn build-storybook` | Build the static Storybook site |
|
|
115
|
+
| `yarn lint` | Run ESLint |
|
|
116
|
+
| `yarn typecheck` | Type-check without emitting |
|
|
117
|
+
| `yarn format` | Format with Prettier |
|
|
118
|
+
|
|
119
|
+
## Publishing
|
|
120
|
+
|
|
121
|
+
`yarn build` produces `dist/`. The `prepublishOnly` hook runs the build
|
|
122
|
+
automatically, and `files` limits the published package to `dist/`.
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
yarn publish --access public
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Adding more components
|
|
129
|
+
|
|
130
|
+
Place new components under `src/components/<group>/<name>/` (e.g. `actions/`,
|
|
131
|
+
`foundation/`), re-export them from `src/index.ts`, and add a `*.stories.tsx`
|
|
132
|
+
file next to each component. Define styles in a colocated `*.styles.css.ts`
|
|
133
|
+
file using Vanilla Extract `recipe()` / `style()` and the design tokens
|
|
134
|
+
(`vars`), then compose class names with the `mergeClassNames()` helper.
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
export declare const iconReset: string;
|
|
2
|
+
export declare const buttonBaseStyles: {
|
|
3
|
+
display: "inline-flex";
|
|
4
|
+
alignItems: "center";
|
|
5
|
+
justifyContent: "center";
|
|
6
|
+
lineHeight: `var(--${string})`;
|
|
7
|
+
borderRadius: `var(--${string})`;
|
|
8
|
+
border: "1px solid transparent";
|
|
9
|
+
cursor: "pointer";
|
|
10
|
+
fontFamily: `var(--${string})`;
|
|
11
|
+
transition: string;
|
|
12
|
+
selectors: {
|
|
13
|
+
'&:focus-visible': {
|
|
14
|
+
outline: "none";
|
|
15
|
+
boxShadow: `0 0 0 2px var(--${string}), 0 0 0 4px var(--${string})`;
|
|
16
|
+
};
|
|
17
|
+
'&:disabled': {
|
|
18
|
+
pointerEvents: "none";
|
|
19
|
+
opacity: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
/** Variant dimension shared by Button and IconButton. */
|
|
24
|
+
export declare const sharedButtonVariantVariants: {
|
|
25
|
+
contained: {};
|
|
26
|
+
outlined: {
|
|
27
|
+
backgroundColor: "transparent";
|
|
28
|
+
};
|
|
29
|
+
ghost: {
|
|
30
|
+
backgroundColor: "transparent";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/** Color dimension shared by Button and IconButton. */
|
|
34
|
+
export declare const sharedButtonColorVariants: {
|
|
35
|
+
primary: {};
|
|
36
|
+
secondary: {};
|
|
37
|
+
destructive: {};
|
|
38
|
+
success: {};
|
|
39
|
+
warning: {};
|
|
40
|
+
info: {};
|
|
41
|
+
};
|
|
42
|
+
/** Compound variants shared by Button and IconButton (variant × color). */
|
|
43
|
+
export declare const sharedButtonCompoundVariants: ({
|
|
44
|
+
readonly variants: {
|
|
45
|
+
readonly variant: "contained";
|
|
46
|
+
readonly color: "primary";
|
|
47
|
+
};
|
|
48
|
+
readonly style: {
|
|
49
|
+
readonly backgroundColor: `var(--${string})`;
|
|
50
|
+
readonly color: `var(--${string})`;
|
|
51
|
+
readonly selectors: {
|
|
52
|
+
readonly '&:hover': {
|
|
53
|
+
readonly backgroundColor: `var(--${string})`;
|
|
54
|
+
};
|
|
55
|
+
readonly '&:active': {
|
|
56
|
+
readonly backgroundColor: `var(--${string})`;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
} | {
|
|
61
|
+
readonly variants: {
|
|
62
|
+
readonly variant: "contained";
|
|
63
|
+
readonly color: "secondary";
|
|
64
|
+
};
|
|
65
|
+
readonly style: {
|
|
66
|
+
readonly backgroundColor: `var(--${string})`;
|
|
67
|
+
readonly color: `var(--${string})`;
|
|
68
|
+
readonly selectors: {
|
|
69
|
+
readonly '&:hover': {
|
|
70
|
+
readonly backgroundColor: `var(--${string})`;
|
|
71
|
+
};
|
|
72
|
+
readonly '&:active': {
|
|
73
|
+
readonly backgroundColor: `var(--${string})`;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
} | {
|
|
78
|
+
readonly variants: {
|
|
79
|
+
readonly variant: "contained";
|
|
80
|
+
readonly color: "destructive";
|
|
81
|
+
};
|
|
82
|
+
readonly style: {
|
|
83
|
+
readonly backgroundColor: `var(--${string})`;
|
|
84
|
+
readonly color: `var(--${string})`;
|
|
85
|
+
readonly selectors: {
|
|
86
|
+
readonly '&:hover': {
|
|
87
|
+
readonly backgroundColor: `var(--${string})`;
|
|
88
|
+
};
|
|
89
|
+
readonly '&:active': {
|
|
90
|
+
readonly backgroundColor: `var(--${string})`;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
} | {
|
|
95
|
+
readonly variants: {
|
|
96
|
+
readonly variant: "contained";
|
|
97
|
+
readonly color: "success";
|
|
98
|
+
};
|
|
99
|
+
readonly style: {
|
|
100
|
+
readonly backgroundColor: `var(--${string})`;
|
|
101
|
+
readonly color: `var(--${string})`;
|
|
102
|
+
readonly selectors: {
|
|
103
|
+
readonly '&:hover': {
|
|
104
|
+
readonly backgroundColor: `var(--${string})`;
|
|
105
|
+
};
|
|
106
|
+
readonly '&:active': {
|
|
107
|
+
readonly backgroundColor: `var(--${string})`;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
} | {
|
|
112
|
+
readonly variants: {
|
|
113
|
+
readonly variant: "contained";
|
|
114
|
+
readonly color: "warning";
|
|
115
|
+
};
|
|
116
|
+
readonly style: {
|
|
117
|
+
readonly backgroundColor: `var(--${string})`;
|
|
118
|
+
readonly color: `var(--${string})`;
|
|
119
|
+
readonly selectors: {
|
|
120
|
+
readonly '&:hover': {
|
|
121
|
+
readonly backgroundColor: `var(--${string})`;
|
|
122
|
+
};
|
|
123
|
+
readonly '&:active': {
|
|
124
|
+
readonly backgroundColor: `var(--${string})`;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
} | {
|
|
129
|
+
readonly variants: {
|
|
130
|
+
readonly variant: "contained";
|
|
131
|
+
readonly color: "info";
|
|
132
|
+
};
|
|
133
|
+
readonly style: {
|
|
134
|
+
readonly backgroundColor: `var(--${string})`;
|
|
135
|
+
readonly color: `var(--${string})`;
|
|
136
|
+
readonly selectors: {
|
|
137
|
+
readonly '&:hover': {
|
|
138
|
+
readonly backgroundColor: `var(--${string})`;
|
|
139
|
+
};
|
|
140
|
+
readonly '&:active': {
|
|
141
|
+
readonly backgroundColor: `var(--${string})`;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
} | {
|
|
146
|
+
readonly variants: {
|
|
147
|
+
readonly variant: "outlined";
|
|
148
|
+
readonly color: "primary";
|
|
149
|
+
};
|
|
150
|
+
readonly style: {
|
|
151
|
+
readonly borderColor: `var(--${string})`;
|
|
152
|
+
readonly color: `var(--${string})`;
|
|
153
|
+
readonly selectors: {
|
|
154
|
+
readonly '&:hover': {
|
|
155
|
+
readonly backgroundColor: `var(--${string})`;
|
|
156
|
+
};
|
|
157
|
+
readonly '&:active': {
|
|
158
|
+
readonly backgroundColor: `var(--${string})`;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
} | {
|
|
163
|
+
readonly variants: {
|
|
164
|
+
readonly variant: "outlined";
|
|
165
|
+
readonly color: "secondary";
|
|
166
|
+
};
|
|
167
|
+
readonly style: {
|
|
168
|
+
readonly borderColor: `var(--${string})`;
|
|
169
|
+
readonly color: `var(--${string})`;
|
|
170
|
+
readonly selectors: {
|
|
171
|
+
readonly '&:hover': {
|
|
172
|
+
readonly backgroundColor: `var(--${string})`;
|
|
173
|
+
};
|
|
174
|
+
readonly '&:active': {
|
|
175
|
+
readonly backgroundColor: `var(--${string})`;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
} | {
|
|
180
|
+
readonly variants: {
|
|
181
|
+
readonly variant: "outlined";
|
|
182
|
+
readonly color: "destructive";
|
|
183
|
+
};
|
|
184
|
+
readonly style: {
|
|
185
|
+
readonly borderColor: `var(--${string})`;
|
|
186
|
+
readonly color: `var(--${string})`;
|
|
187
|
+
readonly selectors: {
|
|
188
|
+
readonly '&:hover': {
|
|
189
|
+
readonly backgroundColor: `var(--${string})`;
|
|
190
|
+
};
|
|
191
|
+
readonly '&:active': {
|
|
192
|
+
readonly backgroundColor: `var(--${string})`;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
} | {
|
|
197
|
+
readonly variants: {
|
|
198
|
+
readonly variant: "outlined";
|
|
199
|
+
readonly color: "success";
|
|
200
|
+
};
|
|
201
|
+
readonly style: {
|
|
202
|
+
readonly borderColor: `var(--${string})`;
|
|
203
|
+
readonly color: `var(--${string})`;
|
|
204
|
+
readonly selectors: {
|
|
205
|
+
readonly '&:hover': {
|
|
206
|
+
readonly backgroundColor: `var(--${string})`;
|
|
207
|
+
};
|
|
208
|
+
readonly '&:active': {
|
|
209
|
+
readonly backgroundColor: `var(--${string})`;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
} | {
|
|
214
|
+
readonly variants: {
|
|
215
|
+
readonly variant: "outlined";
|
|
216
|
+
readonly color: "warning";
|
|
217
|
+
};
|
|
218
|
+
readonly style: {
|
|
219
|
+
readonly borderColor: `var(--${string})`;
|
|
220
|
+
readonly color: `var(--${string})`;
|
|
221
|
+
readonly selectors: {
|
|
222
|
+
readonly '&:hover': {
|
|
223
|
+
readonly backgroundColor: `var(--${string})`;
|
|
224
|
+
};
|
|
225
|
+
readonly '&:active': {
|
|
226
|
+
readonly backgroundColor: `var(--${string})`;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
} | {
|
|
231
|
+
readonly variants: {
|
|
232
|
+
readonly variant: "outlined";
|
|
233
|
+
readonly color: "info";
|
|
234
|
+
};
|
|
235
|
+
readonly style: {
|
|
236
|
+
readonly borderColor: `var(--${string})`;
|
|
237
|
+
readonly color: `var(--${string})`;
|
|
238
|
+
readonly selectors: {
|
|
239
|
+
readonly '&:hover': {
|
|
240
|
+
readonly backgroundColor: `var(--${string})`;
|
|
241
|
+
};
|
|
242
|
+
readonly '&:active': {
|
|
243
|
+
readonly backgroundColor: `var(--${string})`;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
} | {
|
|
248
|
+
readonly variants: {
|
|
249
|
+
readonly variant: "ghost";
|
|
250
|
+
readonly color: "primary";
|
|
251
|
+
};
|
|
252
|
+
readonly style: {
|
|
253
|
+
readonly color: `var(--${string})`;
|
|
254
|
+
readonly selectors: {
|
|
255
|
+
readonly '&:hover': {
|
|
256
|
+
readonly backgroundColor: `var(--${string})`;
|
|
257
|
+
};
|
|
258
|
+
readonly '&:active': {
|
|
259
|
+
readonly backgroundColor: `var(--${string})`;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
} | {
|
|
264
|
+
readonly variants: {
|
|
265
|
+
readonly variant: "ghost";
|
|
266
|
+
readonly color: "secondary";
|
|
267
|
+
};
|
|
268
|
+
readonly style: {
|
|
269
|
+
readonly color: `var(--${string})`;
|
|
270
|
+
readonly selectors: {
|
|
271
|
+
readonly '&:hover': {
|
|
272
|
+
readonly backgroundColor: `var(--${string})`;
|
|
273
|
+
};
|
|
274
|
+
readonly '&:active': {
|
|
275
|
+
readonly backgroundColor: `var(--${string})`;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
} | {
|
|
280
|
+
readonly variants: {
|
|
281
|
+
readonly variant: "ghost";
|
|
282
|
+
readonly color: "destructive";
|
|
283
|
+
};
|
|
284
|
+
readonly style: {
|
|
285
|
+
readonly color: `var(--${string})`;
|
|
286
|
+
readonly selectors: {
|
|
287
|
+
readonly '&:hover': {
|
|
288
|
+
readonly backgroundColor: `var(--${string})`;
|
|
289
|
+
};
|
|
290
|
+
readonly '&:active': {
|
|
291
|
+
readonly backgroundColor: `var(--${string})`;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
} | {
|
|
296
|
+
readonly variants: {
|
|
297
|
+
readonly variant: "ghost";
|
|
298
|
+
readonly color: "success";
|
|
299
|
+
};
|
|
300
|
+
readonly style: {
|
|
301
|
+
readonly color: `var(--${string})`;
|
|
302
|
+
readonly selectors: {
|
|
303
|
+
readonly '&:hover': {
|
|
304
|
+
readonly backgroundColor: `var(--${string})`;
|
|
305
|
+
};
|
|
306
|
+
readonly '&:active': {
|
|
307
|
+
readonly backgroundColor: `var(--${string})`;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
} | {
|
|
312
|
+
readonly variants: {
|
|
313
|
+
readonly variant: "ghost";
|
|
314
|
+
readonly color: "warning";
|
|
315
|
+
};
|
|
316
|
+
readonly style: {
|
|
317
|
+
readonly color: `var(--${string})`;
|
|
318
|
+
readonly selectors: {
|
|
319
|
+
readonly '&:hover': {
|
|
320
|
+
readonly backgroundColor: `var(--${string})`;
|
|
321
|
+
};
|
|
322
|
+
readonly '&:active': {
|
|
323
|
+
readonly backgroundColor: `var(--${string})`;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
} | {
|
|
328
|
+
readonly variants: {
|
|
329
|
+
readonly variant: "ghost";
|
|
330
|
+
readonly color: "info";
|
|
331
|
+
};
|
|
332
|
+
readonly style: {
|
|
333
|
+
readonly color: `var(--${string})`;
|
|
334
|
+
readonly selectors: {
|
|
335
|
+
readonly '&:hover': {
|
|
336
|
+
readonly backgroundColor: `var(--${string})`;
|
|
337
|
+
};
|
|
338
|
+
readonly '&:active': {
|
|
339
|
+
readonly backgroundColor: `var(--${string})`;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
})[];
|
|
344
|
+
/** Default variants shared by Button and IconButton. */
|
|
345
|
+
export declare const sharedButtonDefaultVariants: {
|
|
346
|
+
variant: "contained";
|
|
347
|
+
color: "primary";
|
|
348
|
+
size: "md";
|
|
349
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compound variants for the "contained" (solid) visual variant.
|
|
3
|
+
* Every intent follows the same pattern: solid fill + Hover/Active states.
|
|
4
|
+
*/
|
|
5
|
+
export declare const containedCompoundVariants: readonly [{
|
|
6
|
+
readonly variants: {
|
|
7
|
+
readonly variant: "contained";
|
|
8
|
+
readonly color: "primary";
|
|
9
|
+
};
|
|
10
|
+
readonly style: {
|
|
11
|
+
readonly backgroundColor: `var(--${string})`;
|
|
12
|
+
readonly color: `var(--${string})`;
|
|
13
|
+
readonly selectors: {
|
|
14
|
+
readonly '&:hover': {
|
|
15
|
+
readonly backgroundColor: `var(--${string})`;
|
|
16
|
+
};
|
|
17
|
+
readonly '&:active': {
|
|
18
|
+
readonly backgroundColor: `var(--${string})`;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
readonly variants: {
|
|
24
|
+
readonly variant: "contained";
|
|
25
|
+
readonly color: "secondary";
|
|
26
|
+
};
|
|
27
|
+
readonly style: {
|
|
28
|
+
readonly backgroundColor: `var(--${string})`;
|
|
29
|
+
readonly color: `var(--${string})`;
|
|
30
|
+
readonly selectors: {
|
|
31
|
+
readonly '&:hover': {
|
|
32
|
+
readonly backgroundColor: `var(--${string})`;
|
|
33
|
+
};
|
|
34
|
+
readonly '&:active': {
|
|
35
|
+
readonly backgroundColor: `var(--${string})`;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
readonly variants: {
|
|
41
|
+
readonly variant: "contained";
|
|
42
|
+
readonly color: "destructive";
|
|
43
|
+
};
|
|
44
|
+
readonly style: {
|
|
45
|
+
readonly backgroundColor: `var(--${string})`;
|
|
46
|
+
readonly color: `var(--${string})`;
|
|
47
|
+
readonly selectors: {
|
|
48
|
+
readonly '&:hover': {
|
|
49
|
+
readonly backgroundColor: `var(--${string})`;
|
|
50
|
+
};
|
|
51
|
+
readonly '&:active': {
|
|
52
|
+
readonly backgroundColor: `var(--${string})`;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}, {
|
|
57
|
+
readonly variants: {
|
|
58
|
+
readonly variant: "contained";
|
|
59
|
+
readonly color: "success";
|
|
60
|
+
};
|
|
61
|
+
readonly style: {
|
|
62
|
+
readonly backgroundColor: `var(--${string})`;
|
|
63
|
+
readonly color: `var(--${string})`;
|
|
64
|
+
readonly selectors: {
|
|
65
|
+
readonly '&:hover': {
|
|
66
|
+
readonly backgroundColor: `var(--${string})`;
|
|
67
|
+
};
|
|
68
|
+
readonly '&:active': {
|
|
69
|
+
readonly backgroundColor: `var(--${string})`;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
readonly variants: {
|
|
75
|
+
readonly variant: "contained";
|
|
76
|
+
readonly color: "warning";
|
|
77
|
+
};
|
|
78
|
+
readonly style: {
|
|
79
|
+
readonly backgroundColor: `var(--${string})`;
|
|
80
|
+
readonly color: `var(--${string})`;
|
|
81
|
+
readonly selectors: {
|
|
82
|
+
readonly '&:hover': {
|
|
83
|
+
readonly backgroundColor: `var(--${string})`;
|
|
84
|
+
};
|
|
85
|
+
readonly '&:active': {
|
|
86
|
+
readonly backgroundColor: `var(--${string})`;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
91
|
+
readonly variants: {
|
|
92
|
+
readonly variant: "contained";
|
|
93
|
+
readonly color: "info";
|
|
94
|
+
};
|
|
95
|
+
readonly style: {
|
|
96
|
+
readonly backgroundColor: `var(--${string})`;
|
|
97
|
+
readonly color: `var(--${string})`;
|
|
98
|
+
readonly selectors: {
|
|
99
|
+
readonly '&:hover': {
|
|
100
|
+
readonly backgroundColor: `var(--${string})`;
|
|
101
|
+
};
|
|
102
|
+
readonly '&:active': {
|
|
103
|
+
readonly backgroundColor: `var(--${string})`;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}];
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compound variants for the "ghost" visual variant.
|
|
3
|
+
*/
|
|
4
|
+
export declare const ghostCompoundVariants: readonly [{
|
|
5
|
+
readonly variants: {
|
|
6
|
+
readonly variant: "ghost";
|
|
7
|
+
readonly color: "primary";
|
|
8
|
+
};
|
|
9
|
+
readonly style: {
|
|
10
|
+
readonly color: `var(--${string})`;
|
|
11
|
+
readonly selectors: {
|
|
12
|
+
readonly '&:hover': {
|
|
13
|
+
readonly backgroundColor: `var(--${string})`;
|
|
14
|
+
};
|
|
15
|
+
readonly '&:active': {
|
|
16
|
+
readonly backgroundColor: `var(--${string})`;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
readonly variants: {
|
|
22
|
+
readonly variant: "ghost";
|
|
23
|
+
readonly color: "secondary";
|
|
24
|
+
};
|
|
25
|
+
readonly style: {
|
|
26
|
+
readonly color: `var(--${string})`;
|
|
27
|
+
readonly selectors: {
|
|
28
|
+
readonly '&:hover': {
|
|
29
|
+
readonly backgroundColor: `var(--${string})`;
|
|
30
|
+
};
|
|
31
|
+
readonly '&:active': {
|
|
32
|
+
readonly backgroundColor: `var(--${string})`;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
readonly variants: {
|
|
38
|
+
readonly variant: "ghost";
|
|
39
|
+
readonly color: "destructive";
|
|
40
|
+
};
|
|
41
|
+
readonly style: {
|
|
42
|
+
readonly color: `var(--${string})`;
|
|
43
|
+
readonly selectors: {
|
|
44
|
+
readonly '&:hover': {
|
|
45
|
+
readonly backgroundColor: `var(--${string})`;
|
|
46
|
+
};
|
|
47
|
+
readonly '&:active': {
|
|
48
|
+
readonly backgroundColor: `var(--${string})`;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
readonly variants: {
|
|
54
|
+
readonly variant: "ghost";
|
|
55
|
+
readonly color: "success";
|
|
56
|
+
};
|
|
57
|
+
readonly style: {
|
|
58
|
+
readonly color: `var(--${string})`;
|
|
59
|
+
readonly selectors: {
|
|
60
|
+
readonly '&:hover': {
|
|
61
|
+
readonly backgroundColor: `var(--${string})`;
|
|
62
|
+
};
|
|
63
|
+
readonly '&:active': {
|
|
64
|
+
readonly backgroundColor: `var(--${string})`;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
readonly variants: {
|
|
70
|
+
readonly variant: "ghost";
|
|
71
|
+
readonly color: "warning";
|
|
72
|
+
};
|
|
73
|
+
readonly style: {
|
|
74
|
+
readonly color: `var(--${string})`;
|
|
75
|
+
readonly selectors: {
|
|
76
|
+
readonly '&:hover': {
|
|
77
|
+
readonly backgroundColor: `var(--${string})`;
|
|
78
|
+
};
|
|
79
|
+
readonly '&:active': {
|
|
80
|
+
readonly backgroundColor: `var(--${string})`;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}, {
|
|
85
|
+
readonly variants: {
|
|
86
|
+
readonly variant: "ghost";
|
|
87
|
+
readonly color: "info";
|
|
88
|
+
};
|
|
89
|
+
readonly style: {
|
|
90
|
+
readonly color: `var(--${string})`;
|
|
91
|
+
readonly selectors: {
|
|
92
|
+
readonly '&:hover': {
|
|
93
|
+
readonly backgroundColor: `var(--${string})`;
|
|
94
|
+
};
|
|
95
|
+
readonly '&:active': {
|
|
96
|
+
readonly backgroundColor: `var(--${string})`;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}];
|