@koide-labs/ui 0.0.0 → 0.0.2
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 +53 -3
- package/{src/-types.ts → dist/-types.d.ts} +1 -6
- package/dist/-types.js +1 -0
- package/dist/-utils.d.ts +19 -0
- package/dist/-utils.js +33 -0
- package/dist/Button-DrPFFzo7.js +31 -0
- package/dist/CompositeRoot-CVk5a-pR.js +233 -0
- package/dist/DirectionContext-C2o_MF_i.js +9 -0
- package/dist/FieldItemContext-DAvk99to.js +11 -0
- package/dist/FloatingPortal-tWyuKRSN.js +435 -0
- package/dist/FloatingPortalLite-DVyq6YhV.js +28 -0
- package/dist/InternalBackdrop-jYAiOJ8v.js +574 -0
- package/dist/LabelableContext-BMvjVwor.js +169 -0
- package/dist/ToolbarRootContext-CvvL0Tk1.js +9 -0
- package/dist/clamp-D0KDAQIz.js +6 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/accordion/index.d.ts +12 -0
- package/dist/components/accordion/index.js +699 -0
- package/dist/components/alert-dialog/index.d.ts +26 -0
- package/dist/components/alert-dialog/index.js +136 -0
- package/dist/components/anchor/index.d.ts +8 -0
- package/dist/components/anchor/index.js +38 -0
- package/dist/components/avatar/index.d.ts +21 -0
- package/dist/components/avatar/index.js +161 -0
- package/dist/components/badge/index.d.ts +16 -0
- package/dist/components/badge/index.js +40 -0
- package/dist/components/button/index.d.ts +24 -0
- package/dist/components/button/index.js +47 -0
- package/dist/components/checkbox/index.d.ts +9 -0
- package/dist/components/checkbox/index.js +269 -0
- package/dist/components/code/index.d.ts +9 -0
- package/dist/components/code/index.js +10 -0
- package/dist/components/collapse/index.d.ts +11 -0
- package/dist/components/collapse/index.js +41 -0
- package/dist/components/command/index.d.ts +14 -0
- package/dist/components/command/index.js +1695 -0
- package/dist/components/context-menu/index.d.ts +42 -0
- package/dist/components/context-menu/index.js +1444 -0
- package/dist/components/dialog/index.d.ts +48 -0
- package/dist/components/dialog/index.js +138 -0
- package/dist/components/heading/index.d.ts +44 -0
- package/dist/components/heading/index.js +56 -0
- package/dist/components/icon/icon-names.d.ts +1 -0
- package/dist/components/icon/icon-names.js +1 -0
- package/dist/components/icon/index.d.ts +24 -0
- package/dist/components/icon/index.js +43 -0
- package/dist/components/icon-button/index.d.ts +12 -0
- package/dist/components/icon-button/index.js +45 -0
- package/dist/components/inline-code/index.d.ts +6 -0
- package/dist/components/inline-code/index.js +22 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/index.js +119 -0
- package/dist/components/meter/index.d.ts +18 -0
- package/dist/components/meter/index.js +165 -0
- package/dist/components/multiline-input/index.d.ts +6 -0
- package/dist/components/multiline-input/index.js +100 -0
- package/dist/components/number-input/index.d.ts +10 -0
- package/dist/components/number-input/index.js +1169 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/index.js +29 -0
- package/dist/components/pill/index.d.ts +13 -0
- package/dist/components/pill/index.js +38 -0
- package/dist/components/popover/index.d.ts +21 -0
- package/dist/components/popover/index.js +636 -0
- package/dist/components/preview-card/index.d.ts +17 -0
- package/dist/components/preview-card/index.js +402 -0
- package/dist/components/radio/index.d.ts +13 -0
- package/dist/components/radio/index.js +404 -0
- package/dist/components/search-bar/index.d.ts +12 -0
- package/dist/components/search-bar/index.js +48 -0
- package/dist/components/select/index.d.ts +16 -0
- package/dist/components/select/index.js +1263 -0
- package/dist/components/separator/index.d.ts +7 -0
- package/dist/components/separator/index.js +6 -0
- package/dist/components/slider/index.d.ts +5 -0
- package/dist/components/slider/index.js +902 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.js +13 -0
- package/dist/components/stacked-avatars/index.d.ts +14 -0
- package/dist/components/stacked-avatars/index.js +92 -0
- package/dist/components/status-banner/index.d.ts +17 -0
- package/dist/components/status-banner/index.js +69 -0
- package/dist/components/surface/index.d.ts +27 -0
- package/dist/components/surface/index.js +41 -0
- package/dist/components/switch/index.d.ts +5 -0
- package/dist/components/switch/index.js +196 -0
- package/dist/components/tabs/index.d.ts +18 -0
- package/dist/components/tabs/index.js +509 -0
- package/dist/components/text/index.d.ts +26 -0
- package/dist/components/text/index.js +51 -0
- package/dist/components/theme-provider/index.d.ts +2 -0
- package/dist/components/theme-provider/index.js +6 -0
- package/dist/components/theme-provider/theme-context.d.ts +9 -0
- package/dist/components/theme-provider/theme-context.js +13 -0
- package/dist/components/theme-provider/theme-provider.d.ts +17 -0
- package/dist/components/theme-provider/theme-provider.js +30 -0
- package/dist/components/timestamp/index.d.ts +23 -0
- package/dist/components/timestamp/index.js +1392 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/index.js +7 -0
- package/dist/components/toast/toast.d.ts +2 -0
- package/dist/components/toast/toast.js +878 -0
- package/dist/components/toast/use-toast-manager.d.ts +27 -0
- package/dist/components/toast/use-toast-manager.js +4 -0
- package/dist/components/tooltip/index.d.ts +14 -0
- package/dist/components/tooltip/index.js +712 -0
- package/dist/components/tooltip/tooltip-arrow.d.ts +3 -0
- package/dist/components/tooltip/tooltip-arrow.js +6 -0
- package/dist/components/view/index.d.ts +30 -0
- package/dist/components/view/index.js +84 -0
- package/dist/components/visually-hidden/index.d.ts +1 -0
- package/dist/components/visually-hidden/index.js +4 -0
- package/dist/composite-Bx7Szd_T.js +208 -0
- package/dist/composite-C9L5QmZL.js +66 -0
- package/dist/createBaseUIEventDetails-D8M2Yl-a.js +59 -0
- package/dist/detectBrowser-I-s3yzIE.js +43 -0
- package/dist/dialog.css +1 -0
- package/dist/dialog.module-BeF-6XAo.js +415 -0
- package/dist/element-CZEOj04G.js +80 -0
- package/dist/event-CKoGyQEJ.js +30 -0
- package/dist/floating-ui.utils-C7pRWMZ_.js +128 -0
- package/dist/floating-ui.utils.dom-C7FS5id0.js +135 -0
- package/dist/formatErrorMessage-BqPuTBN-.js +7 -0
- package/dist/formatNumber-1UNwjeqf.js +25 -0
- package/dist/getDisabledMountTransitionStyles-YfHPge6T.js +1510 -0
- package/dist/index-BX1XbbRk.js +1206 -0
- package/dist/index-CeuccO-T.js +109 -0
- package/dist/index-DN9Bn1qm.js +29 -0
- package/dist/index-FMoPxlJ2.js +52 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +108 -0
- package/dist/index10.css +1 -0
- package/dist/index11.css +1 -0
- package/dist/index12.css +1 -0
- package/dist/index13.css +1 -0
- package/dist/index14.css +1 -0
- package/dist/index15.css +1 -0
- package/dist/index16.css +1 -0
- package/dist/index17.css +1 -0
- package/dist/index18.css +1 -0
- package/dist/index19.css +1 -0
- package/dist/index2.css +1 -0
- package/dist/index20.css +1 -0
- package/dist/index21.css +1 -0
- package/dist/index22.css +1 -0
- package/dist/index23.css +1 -0
- package/dist/index24.css +1 -0
- package/dist/index25.css +1 -0
- package/dist/index26.css +1 -0
- package/dist/index27.css +1 -0
- package/dist/index28.css +1 -0
- package/dist/index29.css +1 -0
- package/dist/index3.css +1 -0
- package/dist/index30.css +1 -0
- package/dist/index31.css +1 -0
- package/dist/index32.css +1 -0
- package/dist/index33.css +1 -0
- package/dist/index34.css +1 -0
- package/dist/index35.css +1 -0
- package/dist/index36.css +1 -0
- package/dist/index37.css +1 -0
- package/dist/index4.css +1 -0
- package/dist/index5.css +1 -0
- package/dist/index6.css +1 -0
- package/dist/index7.css +1 -0
- package/dist/index8.css +1 -0
- package/dist/index9.css +1 -0
- package/dist/inertValue-BCYGsdmf.js +7 -0
- package/dist/input.css +1 -0
- package/dist/input.module-DDQY_Ij6.js +7 -0
- package/dist/integrations/react-markdown/index.d.ts +5 -0
- package/dist/integrations/react-markdown/index.js +6895 -0
- package/dist/integrations/remix/index.d.ts +9 -0
- package/{src/integrations/remix.ts → dist/integrations/remix/index.js} +7 -4
- package/dist/integrations/tailwind.css +1 -0
- package/dist/integrations/twemoij/index.d.ts +3 -0
- package/dist/integrations/twemoij/index.js +18 -0
- package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
- package/dist/owner-rKN292Q9.js +6 -0
- package/dist/safePolygon-DWy1dGKJ.js +308 -0
- package/dist/styles/core.css +1 -0
- package/dist/styles/tokens.d.ts +400 -0
- package/{src/styles/tokens.ts → dist/styles/tokens.js} +54 -96
- package/dist/toast.css +1 -0
- package/dist/tooltip-arrow-C1qXdi5T.js +24 -0
- package/dist/tooltip-arrow.css +1 -0
- package/dist/transitions.css +1 -0
- package/dist/transitions.module-CWX8e5cx.js +1343 -0
- package/dist/use-toast-manager-Dq-44AuW.js +37 -0
- package/dist/useAnimationFrame-451ugS_6.js +68 -0
- package/dist/useBaseUiId-B7WyxtIE.js +7 -0
- package/dist/useButton-DfIwsdb8.js +127 -0
- package/dist/useCompositeListItem-OkcAim_1.js +148 -0
- package/dist/useControlled-Du4sJyMj.js +31 -0
- package/dist/useHoverReferenceInteraction-SfOBPoXM.js +264 -0
- package/dist/useId-C5kyn6tA.js +22 -0
- package/dist/useIsoLayoutEffect-CIDbvm3Q.js +6 -0
- package/dist/useLabelableId-Ci_jDvmv.js +29 -0
- package/dist/useOnMount-VRW6CK2u.js +8 -0
- package/dist/useOpenChangeComplete-Dse9kY9E.js +61 -0
- package/dist/usePopupAutoResize-CNR6Ekmx.js +85 -0
- package/dist/useRender-CLx7dR_1.js +7 -0
- package/dist/useRenderElement-DwToLA61.js +244 -0
- package/dist/useRole-oDBdbuwQ.js +77 -0
- package/dist/useStableCallback-CkTrVkNX.js +29 -0
- package/dist/useSyncedFloatingRootContext-Dorsv-jf.js +167 -0
- package/dist/useTimeout-CflX-kz3.js +32 -0
- package/dist/useTransitionStatus-CUfcuGAV.js +42 -0
- package/dist/useTypeahead-D85V2IUx.js +333 -0
- package/dist/useValueAsRef-HURLzret.js +19 -0
- package/dist/useValueChanged-DL757-yD.js +14 -0
- package/dist/valueToPercent-DaP9qN4u.js +6 -0
- package/dist/view.css +1 -0
- package/dist/view.module-DfDLgJE0.js +6 -0
- package/dist/visuallyHidden-CpJ-mhai.js +16 -0
- package/dist/warn-CKtX8MLJ.js +11 -0
- package/package.json +18 -2
- package/.husky/pre-commit +0 -1
- package/.storybook/main.ts +0 -25
- package/.storybook/preview-head.html +0 -6
- package/.storybook/preview.tsx +0 -48
- package/.storybook/vitest.setup.ts +0 -8
- package/eslint.config.mjs +0 -29
- package/lint-staged.config.js +0 -15
- package/pnpm-workspace.yaml +0 -2
- package/postcss.config.mjs +0 -7
- package/prettier.config.mjs +0 -24
- package/scripts/build-icon-types.ts +0 -38
- package/src/-utils.tsx +0 -64
- package/src/components/accordion/accordion.module.css +0 -44
- package/src/components/accordion/accordion.stories.tsx +0 -36
- package/src/components/accordion/index.tsx +0 -67
- package/src/components/alert-dialog/alert-dialog.module.css +0 -5
- package/src/components/alert-dialog/alert-dialog.stories.tsx +0 -53
- package/src/components/alert-dialog/index.tsx +0 -138
- package/src/components/anchor/anchor.module.css +0 -18
- package/src/components/anchor/anchor.stories.tsx +0 -28
- package/src/components/anchor/index.tsx +0 -45
- package/src/components/avatar/avatar.module.css +0 -56
- package/src/components/avatar/avatar.stories.tsx +0 -61
- package/src/components/avatar/index.tsx +0 -82
- package/src/components/badge/badge.module.css +0 -35
- package/src/components/badge/badge.stories.tsx +0 -60
- package/src/components/badge/index.tsx +0 -71
- package/src/components/button/button.module.css +0 -42
- package/src/components/button/button.stories.tsx +0 -108
- package/src/components/button/index.tsx +0 -63
- package/src/components/checkbox/checkbox.module.css +0 -36
- package/src/components/checkbox/checkbox.stories.tsx +0 -21
- package/src/components/checkbox/index.tsx +0 -41
- package/src/components/code/code.module.css +0 -20
- package/src/components/code/code.stories.tsx +0 -42
- package/src/components/code/index.tsx +0 -73
- package/src/components/collapse/collapse.module.css +0 -27
- package/src/components/collapse/collapse.stories.tsx +0 -27
- package/src/components/collapse/index.tsx +0 -59
- package/src/components/command/command.module.css +0 -95
- package/src/components/command/command.stories.tsx +0 -38
- package/src/components/command/index.tsx +0 -108
- package/src/components/context-menu/context-menu.module.css +0 -36
- package/src/components/context-menu/context-menu.stories.tsx +0 -99
- package/src/components/context-menu/index.tsx +0 -242
- package/src/components/dialog/dialog.module.css +0 -71
- package/src/components/dialog/dialog.stories.tsx +0 -29
- package/src/components/dialog/index.tsx +0 -148
- package/src/components/heading/heading.module.css +0 -3
- package/src/components/heading/heading.stories.tsx +0 -52
- package/src/components/heading/index.tsx +0 -112
- package/src/components/icon/icon-names.ts +0 -3189
- package/src/components/icon/icon.module.css +0 -36
- package/src/components/icon/icon.stories.tsx +0 -40
- package/src/components/icon/index.tsx +0 -60
- package/src/components/icon-button/icon-button.module.css +0 -33
- package/src/components/icon-button/icon-button.stories.tsx +0 -59
- package/src/components/icon-button/index.tsx +0 -48
- package/src/components/inline-code/index.tsx +0 -29
- package/src/components/inline-code/inline-code.module.css +0 -13
- package/src/components/inline-code/inline-code.stories.tsx +0 -31
- package/src/components/input/index.tsx +0 -22
- package/src/components/input/input.module.css +0 -23
- package/src/components/input/input.stories.tsx +0 -52
- package/src/components/meter/index.tsx +0 -55
- package/src/components/meter/meter.module.css +0 -23
- package/src/components/meter/meter.stories.tsx +0 -31
- package/src/components/multiline-input/index.tsx +0 -58
- package/src/components/multiline-input/multiline-input.stories.tsx +0 -26
- package/src/components/number-input/index.tsx +0 -74
- package/src/components/number-input/number-input.module.css +0 -41
- package/src/components/number-input/number-input.stories.tsx +0 -24
- package/src/components/password-input/index.tsx +0 -24
- package/src/components/password-input/password-input.module.css +0 -10
- package/src/components/password-input/password-input.stories.tsx +0 -24
- package/src/components/pill/index.tsx +0 -45
- package/src/components/pill/pill.module.css +0 -22
- package/src/components/pill/pill.stories.tsx +0 -83
- package/src/components/popover/index.tsx +0 -94
- package/src/components/popover/popover.module.css +0 -8
- package/src/components/popover/popover.stories.tsx +0 -53
- package/src/components/preview-card/index.tsx +0 -68
- package/src/components/preview-card/preview-card.module.css +0 -5
- package/src/components/preview-card/preview-card.stories.tsx +0 -58
- package/src/components/radio/index.tsx +0 -67
- package/src/components/radio/radio-group.module.css +0 -5
- package/src/components/radio/radio.module.css +0 -36
- package/src/components/radio/radio.stories.tsx +0 -27
- package/src/components/search-bar/index.tsx +0 -60
- package/src/components/search-bar/search-bar.module.css +0 -29
- package/src/components/search-bar/search-bar.stories.tsx +0 -37
- package/src/components/select/index.tsx +0 -132
- package/src/components/select/select.module.css +0 -63
- package/src/components/select/select.stories.tsx +0 -49
- package/src/components/separator/index.tsx +0 -28
- package/src/components/separator/separator.module.css +0 -24
- package/src/components/separator/separator.stories.tsx +0 -40
- package/src/components/slider/index.tsx +0 -28
- package/src/components/slider/slider.module.css +0 -52
- package/src/components/slider/slider.stories.tsx +0 -53
- package/src/components/spinner/index.tsx +0 -14
- package/src/components/spinner/spinner.module.css +0 -13
- package/src/components/spinner/spinner.stories.tsx +0 -17
- package/src/components/stacked-avatars/index.tsx +0 -88
- package/src/components/stacked-avatars/stacked-avatars.module.css +0 -79
- package/src/components/stacked-avatars/stacked-avatars.stories.tsx +0 -48
- package/src/components/status-banner/index.tsx +0 -96
- package/src/components/status-banner/status-banner.module.css +0 -52
- package/src/components/status-banner/status-banner.stories.tsx +0 -44
- package/src/components/surface/index.tsx +0 -83
- package/src/components/surface/surface.module.css +0 -35
- package/src/components/surface/surface.stories.tsx +0 -84
- package/src/components/switch/index.tsx +0 -23
- package/src/components/switch/switch.module.css +0 -45
- package/src/components/switch/switch.stories.tsx +0 -48
- package/src/components/tabs/index.tsx +0 -126
- package/src/components/tabs/tabs.module.css +0 -134
- package/src/components/tabs/tabs.stories.tsx +0 -88
- package/src/components/text/index.tsx +0 -69
- package/src/components/text/text.module.css +0 -76
- package/src/components/text/text.stories.tsx +0 -107
- package/src/components/theme-provider/index.ts +0 -2
- package/src/components/theme-provider/theme-context.tsx +0 -18
- package/src/components/theme-provider/theme-provider.stories.tsx +0 -47
- package/src/components/theme-provider/theme-provider.tsx +0 -77
- package/src/components/timestamp/index.tsx +0 -131
- package/src/components/timestamp/timestamp.module.css +0 -8
- package/src/components/timestamp/timestamp.stories.tsx +0 -37
- package/src/components/toast/index.ts +0 -2
- package/src/components/toast/toast.module.css +0 -163
- package/src/components/toast/toast.stories.tsx +0 -53
- package/src/components/toast/toast.tsx +0 -104
- package/src/components/toast/use-toast-manager.ts +0 -63
- package/src/components/tooltip/index.tsx +0 -61
- package/src/components/tooltip/tooltip-arrow.tsx +0 -17
- package/src/components/tooltip/tooltip.module.css +0 -44
- package/src/components/tooltip/tooltip.stories.tsx +0 -76
- package/src/components/view/index.tsx +0 -137
- package/src/components/view/view.module.css +0 -11
- package/src/components/view/view.stories.tsx +0 -131
- package/src/components/view/view_colorway.module.css +0 -280
- package/src/components/view/view_interactive.module.css +0 -127
- package/src/components/view/view_loading.module.css +0 -58
- package/src/components/visually-hidden/index.ts +0 -1
- package/src/index.ts +0 -49
- package/src/integrations/react-markdown/index.tsx +0 -134
- package/src/integrations/react-markdown/react-markdown.module.css +0 -62
- package/src/integrations/react-markdown/react-markdown.stories.tsx +0 -31
- package/src/integrations/tailwind.css +0 -173
- package/src/integrations/twemoij/index.tsx +0 -13
- package/src/integrations/twemoij/twemoji.module.css +0 -7
- package/src/integrations/twemoij/twemoji.stories.tsx +0 -40
- package/src/stories/components/all-variants.tsx +0 -40
- package/src/stories/data.ts +0 -72
- package/src/stories/utils.ts +0 -20
- package/src/styles/core.css +0 -153
- package/src/styles/themes/dark.css +0 -86
- package/src/styles/themes/light.css +0 -86
- package/src/styles/transitions.module.css +0 -31
- package/stylelint.config.mjs +0 -29
- package/tsconfig.app.json +0 -35
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -103
- package/vitest.shims.d.ts +0 -1
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { InvertRecord, ValueOf } from '../-types';
|
|
2
|
+
/**
|
|
3
|
+
* Size variants for widths, buttons, icon sizes, you name it!
|
|
4
|
+
* Use `Extract` if you don't want to support all of them but ensure we reuse
|
|
5
|
+
* correct values.
|
|
6
|
+
* @example
|
|
7
|
+
* // only support a subset of size variants
|
|
8
|
+
* Extract<Size, "sm" | "md" | "lg">
|
|
9
|
+
*/
|
|
10
|
+
export type Size = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
11
|
+
export type SpaceToken = ValueOf<typeof spaceTokens>;
|
|
12
|
+
export type ColorToken = ValueOf<typeof colorTokens>;
|
|
13
|
+
export type InteractiveToken = ValueOf<typeof interactiveTokens>;
|
|
14
|
+
export type Token = ValueOf<typeof tokens>;
|
|
15
|
+
export declare const colorTokens: {
|
|
16
|
+
readonly backgroundRoot: "var(--background-root)";
|
|
17
|
+
readonly backgroundDefault: "var(--background-default)";
|
|
18
|
+
readonly backgroundHigher: "var(--background-higher)";
|
|
19
|
+
readonly backgroundHighest: "var(--background-highest)";
|
|
20
|
+
readonly backgroundOverlay: "var(--background-overlay)";
|
|
21
|
+
readonly foregroundDefault: "var(--foreground-default)";
|
|
22
|
+
readonly foregroundDimmer: "var(--foreground-dimmer)";
|
|
23
|
+
readonly foregroundDimmest: "var(--foreground-dimmest)";
|
|
24
|
+
readonly outlineDimmest: "var(--outline-dimmest)";
|
|
25
|
+
readonly outlineDimmer: "var(--outline-dimmer)";
|
|
26
|
+
readonly outlineDefault: "var(--outline-default)";
|
|
27
|
+
readonly outlineStronger: "var(--outline-stronger)";
|
|
28
|
+
readonly outlineStrongest: "var(--outline-strongest)";
|
|
29
|
+
readonly primaryDimmest: "var(--primary-dimmest)";
|
|
30
|
+
readonly primaryDimmer: "var(--primary-dimmer)";
|
|
31
|
+
readonly primaryDefault: "var(--primary-default)";
|
|
32
|
+
readonly primaryStronger: "var(--primary-stronger)";
|
|
33
|
+
readonly primaryStrongest: "var(--primary-strongest)";
|
|
34
|
+
readonly positiveDimmest: "var(--positive-dimmest)";
|
|
35
|
+
readonly positiveDimmer: "var(--positive-dimmer)";
|
|
36
|
+
readonly positiveDefault: "var(--positive-default)";
|
|
37
|
+
readonly positiveStronger: "var(--positive-stronger)";
|
|
38
|
+
readonly positiveStrongest: "var(--positive-strongest)";
|
|
39
|
+
readonly negativeDimmest: "var(--negative-dimmest)";
|
|
40
|
+
readonly negativeDimmer: "var(--negative-dimmer)";
|
|
41
|
+
readonly negativeDefault: "var(--negative-default)";
|
|
42
|
+
readonly negativeStronger: "var(--negative-stronger)";
|
|
43
|
+
readonly negativeStrongest: "var(--negative-strongest)";
|
|
44
|
+
readonly redDimmest: "var(--red-dimmest)";
|
|
45
|
+
readonly redDimmer: "var(--red-dimmer)";
|
|
46
|
+
readonly redDefault: "var(--red-default)";
|
|
47
|
+
readonly redStronger: "var(--red-stronger)";
|
|
48
|
+
readonly redStrongest: "var(--red-strongest)";
|
|
49
|
+
readonly orangeDimmest: "var(--orange-dimmest)";
|
|
50
|
+
readonly orangeDimmer: "var(--orange-dimmer)";
|
|
51
|
+
readonly orangeDefault: "var(--orange-default)";
|
|
52
|
+
readonly orangeStronger: "var(--orange-stronger)";
|
|
53
|
+
readonly orangeStrongest: "var(--orange-strongest)";
|
|
54
|
+
readonly yellowDimmest: "var(--yellow-dimmest)";
|
|
55
|
+
readonly yellowDimmer: "var(--yellow-dimmer)";
|
|
56
|
+
readonly yellowDefault: "var(--yellow-default)";
|
|
57
|
+
readonly yellowStronger: "var(--yellow-stronger)";
|
|
58
|
+
readonly yellowStrongest: "var(--yellow-strongest)";
|
|
59
|
+
readonly limeDimmest: "var(--lime-dimmest)";
|
|
60
|
+
readonly limeDimmer: "var(--lime-dimmer)";
|
|
61
|
+
readonly limeDefault: "var(--lime-default)";
|
|
62
|
+
readonly limeStronger: "var(--lime-stronger)";
|
|
63
|
+
readonly limeStrongest: "var(--lime-strongest)";
|
|
64
|
+
readonly greenDimmest: "var(--green-dimmest)";
|
|
65
|
+
readonly greenDimmer: "var(--green-dimmer)";
|
|
66
|
+
readonly greenDefault: "var(--green-default)";
|
|
67
|
+
readonly greenStronger: "var(--green-stronger)";
|
|
68
|
+
readonly greenStrongest: "var(--green-strongest)";
|
|
69
|
+
readonly tealDimmest: "var(--teal-dimmest)";
|
|
70
|
+
readonly tealDimmer: "var(--teal-dimmer)";
|
|
71
|
+
readonly tealDefault: "var(--teal-default)";
|
|
72
|
+
readonly tealStronger: "var(--teal-stronger)";
|
|
73
|
+
readonly tealStrongest: "var(--teal-strongest)";
|
|
74
|
+
readonly blueDimmest: "var(--blue-dimmest)";
|
|
75
|
+
readonly blueDimmer: "var(--blue-dimmer)";
|
|
76
|
+
readonly blueDefault: "var(--blue-default)";
|
|
77
|
+
readonly blueStronger: "var(--blue-stronger)";
|
|
78
|
+
readonly blueStrongest: "var(--blue-strongest)";
|
|
79
|
+
readonly blurpleDimmest: "var(--blurple-dimmest)";
|
|
80
|
+
readonly blurpleDimmer: "var(--blurple-dimmer)";
|
|
81
|
+
readonly blurpleDefault: "var(--blurple-default)";
|
|
82
|
+
readonly blurpleStronger: "var(--blurple-stronger)";
|
|
83
|
+
readonly blurpleStrongest: "var(--blurple-strongest)";
|
|
84
|
+
readonly purpleDimmest: "var(--purple-dimmest)";
|
|
85
|
+
readonly purpleDimmer: "var(--purple-dimmer)";
|
|
86
|
+
readonly purpleDefault: "var(--purple-default)";
|
|
87
|
+
readonly purpleStronger: "var(--purple-stronger)";
|
|
88
|
+
readonly purpleStrongest: "var(--purple-strongest)";
|
|
89
|
+
readonly magentaDimmest: "var(--magenta-dimmest)";
|
|
90
|
+
readonly magentaDimmer: "var(--magenta-dimmer)";
|
|
91
|
+
readonly magentaDefault: "var(--magenta-default)";
|
|
92
|
+
readonly magentaStronger: "var(--magenta-stronger)";
|
|
93
|
+
readonly magentaStrongest: "var(--magenta-strongest)";
|
|
94
|
+
readonly pinkDimmest: "var(--pink-dimmest)";
|
|
95
|
+
readonly pinkDimmer: "var(--pink-dimmer)";
|
|
96
|
+
readonly pinkDefault: "var(--pink-default)";
|
|
97
|
+
readonly pinkStronger: "var(--pink-stronger)";
|
|
98
|
+
readonly pinkStrongest: "var(--pink-strongest)";
|
|
99
|
+
readonly greyDimmest: "var(--grey-dimmest)";
|
|
100
|
+
readonly greyDimmer: "var(--grey-dimmer)";
|
|
101
|
+
readonly greyDefault: "var(--grey-default)";
|
|
102
|
+
readonly greyStronger: "var(--grey-stronger)";
|
|
103
|
+
readonly greyStrongest: "var(--grey-strongest)";
|
|
104
|
+
readonly brownDimmest: "var(--brown-dimmest)";
|
|
105
|
+
readonly brownDimmer: "var(--brown-dimmer)";
|
|
106
|
+
readonly brownDefault: "var(--brown-default)";
|
|
107
|
+
readonly brownStronger: "var(--brown-stronger)";
|
|
108
|
+
readonly brownStrongest: "var(--brown-strongest)";
|
|
109
|
+
readonly black: "var(--black)";
|
|
110
|
+
readonly white: "var(--white)";
|
|
111
|
+
};
|
|
112
|
+
export declare const interactiveTokens: {
|
|
113
|
+
readonly surfaceBackground: "var(--surface-background)";
|
|
114
|
+
readonly interactiveBackground: "var(--surface-interactive-background)";
|
|
115
|
+
readonly interactiveBackgroundActive: "var(--surface-interactive-background--active)";
|
|
116
|
+
readonly interactiveBorder: "var(--surface-interactive-border)";
|
|
117
|
+
readonly interactiveBorderHover: "var(--surface-interactive-border--hover)";
|
|
118
|
+
};
|
|
119
|
+
export declare const colorwayTokens: {
|
|
120
|
+
readonly colorwayDimmest: "var(--view-colorway-dimmest)";
|
|
121
|
+
readonly colorwayDimmer: "var(--view-colorway-dimmer)";
|
|
122
|
+
readonly colorwayDefault: "var(--view-colorway-default)";
|
|
123
|
+
readonly colorwayStronger: "var(--view-colorway-stronger)";
|
|
124
|
+
readonly colorwayStrongest: "var(--view-colorway-strongest)";
|
|
125
|
+
};
|
|
126
|
+
export declare const spaceTokens: {
|
|
127
|
+
readonly space1: "var(--space-1)";
|
|
128
|
+
readonly space2: "var(--space-2)";
|
|
129
|
+
readonly space4: "var(--space-4)";
|
|
130
|
+
readonly space6: "var(--space-6)";
|
|
131
|
+
readonly space8: "var(--space-8)";
|
|
132
|
+
readonly space12: "var(--space-12)";
|
|
133
|
+
readonly space16: "var(--space-16)";
|
|
134
|
+
readonly space20: "var(--space-20)";
|
|
135
|
+
readonly space24: "var(--space-24)";
|
|
136
|
+
readonly space28: "var(--space-28)";
|
|
137
|
+
readonly space32: "var(--space-32)";
|
|
138
|
+
readonly space40: "var(--space-40)";
|
|
139
|
+
readonly space48: "var(--space-48)";
|
|
140
|
+
readonly space56: "var(--space-56)";
|
|
141
|
+
readonly space64: "var(--space-64)";
|
|
142
|
+
readonly space80: "var(--space-80)";
|
|
143
|
+
readonly space96: "var(--space-96)";
|
|
144
|
+
readonly space128: "var(--space-128)";
|
|
145
|
+
readonly space256: "var(--space-256)";
|
|
146
|
+
readonly spaceDefault: "var(--space-default)";
|
|
147
|
+
};
|
|
148
|
+
export declare const borderTokens: {
|
|
149
|
+
readonly borderRadius1: "var(--border-radius-1)";
|
|
150
|
+
readonly borderRadius2: "var(--border-radius-2)";
|
|
151
|
+
readonly borderRadius4: "var(--border-radius-4)";
|
|
152
|
+
readonly borderRadius6: "var(--border-radius-6)";
|
|
153
|
+
readonly borderRadius8: "var(--border-radius-8)";
|
|
154
|
+
readonly borderRadius12: "var(--border-radius-12)";
|
|
155
|
+
readonly borderRadius16: "var(--border-radius-16)";
|
|
156
|
+
readonly borderRadiusDefault: "var(--border-radius-default)";
|
|
157
|
+
readonly borderRadiusRound: "var(--border-radius-round)";
|
|
158
|
+
readonly borderWidthDefault: "var(--border-width-default)";
|
|
159
|
+
};
|
|
160
|
+
export declare const shadowTokens: {
|
|
161
|
+
readonly shadow1: "var(--shadow-1)";
|
|
162
|
+
readonly shadow2: "var(--shadow-2)";
|
|
163
|
+
readonly shadow3: "var(--shadow-3)";
|
|
164
|
+
readonly shadowDefault: "var(--shadow-default)";
|
|
165
|
+
};
|
|
166
|
+
export declare const typographyTokens: {
|
|
167
|
+
readonly fontFamilyDefault: "var(--font-family-default)";
|
|
168
|
+
readonly fontFamilyCode: "var(--font-family-code)";
|
|
169
|
+
readonly fontSizeSmall: "var(--font-size-small)";
|
|
170
|
+
readonly fontSizeDefault: "var(--font-size-default)";
|
|
171
|
+
readonly fontSizeSubheadDefault: "var(--font-size-subhead-default)";
|
|
172
|
+
readonly fontSizeSubheadBig: "var(--font-size-subhead-big)";
|
|
173
|
+
readonly fontSizeHeaderDefault: "var(--font-size-header-default)";
|
|
174
|
+
readonly fontSizeHeaderBig: "var(--font-size-header-big)";
|
|
175
|
+
readonly lineHeightSmall: "var(--line-height-small)";
|
|
176
|
+
readonly lineHeightDefault: "var(--line-height-default)";
|
|
177
|
+
readonly lineHeightSubheadDefault: "var(--line-height-subhead-default)";
|
|
178
|
+
readonly lineHeightSubheadBig: "var(--line-height-subhead-big)";
|
|
179
|
+
readonly lineHeightHeaderDefault: "var(--line-height-header-default)";
|
|
180
|
+
readonly lineHeightHeaderBig: "var(--line-height-header-big)";
|
|
181
|
+
readonly lineHeightSingle: "var(--line-height-single)";
|
|
182
|
+
readonly lineHeightInput: "var(--line-height-input)";
|
|
183
|
+
readonly fontWeightRegular: "var(--font-weight-regular)";
|
|
184
|
+
readonly fontWeightMedium: "var(--font-weight-medium)";
|
|
185
|
+
readonly fontWeightBold: "var(--font-weight-bold)";
|
|
186
|
+
};
|
|
187
|
+
export declare const transitionTokens: {
|
|
188
|
+
readonly transitionDurationSnappy: "var(--transition-duration-snappy)";
|
|
189
|
+
readonly transitionTimingFunctionSnappy: "var(--transition-timing-function-snappy)";
|
|
190
|
+
readonly transitionDurationChill: "var(--transition-duration-chill)";
|
|
191
|
+
readonly transitionTimingFunctionChill: "var(--transition-timing-function-chill)";
|
|
192
|
+
};
|
|
193
|
+
export declare const tokens: {
|
|
194
|
+
readonly transitionDurationSnappy: "var(--transition-duration-snappy)";
|
|
195
|
+
readonly transitionTimingFunctionSnappy: "var(--transition-timing-function-snappy)";
|
|
196
|
+
readonly transitionDurationChill: "var(--transition-duration-chill)";
|
|
197
|
+
readonly transitionTimingFunctionChill: "var(--transition-timing-function-chill)";
|
|
198
|
+
readonly fontFamilyDefault: "var(--font-family-default)";
|
|
199
|
+
readonly fontFamilyCode: "var(--font-family-code)";
|
|
200
|
+
readonly fontSizeSmall: "var(--font-size-small)";
|
|
201
|
+
readonly fontSizeDefault: "var(--font-size-default)";
|
|
202
|
+
readonly fontSizeSubheadDefault: "var(--font-size-subhead-default)";
|
|
203
|
+
readonly fontSizeSubheadBig: "var(--font-size-subhead-big)";
|
|
204
|
+
readonly fontSizeHeaderDefault: "var(--font-size-header-default)";
|
|
205
|
+
readonly fontSizeHeaderBig: "var(--font-size-header-big)";
|
|
206
|
+
readonly lineHeightSmall: "var(--line-height-small)";
|
|
207
|
+
readonly lineHeightDefault: "var(--line-height-default)";
|
|
208
|
+
readonly lineHeightSubheadDefault: "var(--line-height-subhead-default)";
|
|
209
|
+
readonly lineHeightSubheadBig: "var(--line-height-subhead-big)";
|
|
210
|
+
readonly lineHeightHeaderDefault: "var(--line-height-header-default)";
|
|
211
|
+
readonly lineHeightHeaderBig: "var(--line-height-header-big)";
|
|
212
|
+
readonly lineHeightSingle: "var(--line-height-single)";
|
|
213
|
+
readonly lineHeightInput: "var(--line-height-input)";
|
|
214
|
+
readonly fontWeightRegular: "var(--font-weight-regular)";
|
|
215
|
+
readonly fontWeightMedium: "var(--font-weight-medium)";
|
|
216
|
+
readonly fontWeightBold: "var(--font-weight-bold)";
|
|
217
|
+
readonly shadow1: "var(--shadow-1)";
|
|
218
|
+
readonly shadow2: "var(--shadow-2)";
|
|
219
|
+
readonly shadow3: "var(--shadow-3)";
|
|
220
|
+
readonly shadowDefault: "var(--shadow-default)";
|
|
221
|
+
readonly space1: "var(--space-1)";
|
|
222
|
+
readonly space2: "var(--space-2)";
|
|
223
|
+
readonly space4: "var(--space-4)";
|
|
224
|
+
readonly space6: "var(--space-6)";
|
|
225
|
+
readonly space8: "var(--space-8)";
|
|
226
|
+
readonly space12: "var(--space-12)";
|
|
227
|
+
readonly space16: "var(--space-16)";
|
|
228
|
+
readonly space20: "var(--space-20)";
|
|
229
|
+
readonly space24: "var(--space-24)";
|
|
230
|
+
readonly space28: "var(--space-28)";
|
|
231
|
+
readonly space32: "var(--space-32)";
|
|
232
|
+
readonly space40: "var(--space-40)";
|
|
233
|
+
readonly space48: "var(--space-48)";
|
|
234
|
+
readonly space56: "var(--space-56)";
|
|
235
|
+
readonly space64: "var(--space-64)";
|
|
236
|
+
readonly space80: "var(--space-80)";
|
|
237
|
+
readonly space96: "var(--space-96)";
|
|
238
|
+
readonly space128: "var(--space-128)";
|
|
239
|
+
readonly space256: "var(--space-256)";
|
|
240
|
+
readonly spaceDefault: "var(--space-default)";
|
|
241
|
+
readonly borderRadius1: "var(--border-radius-1)";
|
|
242
|
+
readonly borderRadius2: "var(--border-radius-2)";
|
|
243
|
+
readonly borderRadius4: "var(--border-radius-4)";
|
|
244
|
+
readonly borderRadius6: "var(--border-radius-6)";
|
|
245
|
+
readonly borderRadius8: "var(--border-radius-8)";
|
|
246
|
+
readonly borderRadius12: "var(--border-radius-12)";
|
|
247
|
+
readonly borderRadius16: "var(--border-radius-16)";
|
|
248
|
+
readonly borderRadiusDefault: "var(--border-radius-default)";
|
|
249
|
+
readonly borderRadiusRound: "var(--border-radius-round)";
|
|
250
|
+
readonly borderWidthDefault: "var(--border-width-default)";
|
|
251
|
+
readonly surfaceBackground: "var(--surface-background)";
|
|
252
|
+
readonly interactiveBackground: "var(--surface-interactive-background)";
|
|
253
|
+
readonly interactiveBackgroundActive: "var(--surface-interactive-background--active)";
|
|
254
|
+
readonly interactiveBorder: "var(--surface-interactive-border)";
|
|
255
|
+
readonly interactiveBorderHover: "var(--surface-interactive-border--hover)";
|
|
256
|
+
readonly colorwayDimmest: "var(--view-colorway-dimmest)";
|
|
257
|
+
readonly colorwayDimmer: "var(--view-colorway-dimmer)";
|
|
258
|
+
readonly colorwayDefault: "var(--view-colorway-default)";
|
|
259
|
+
readonly colorwayStronger: "var(--view-colorway-stronger)";
|
|
260
|
+
readonly colorwayStrongest: "var(--view-colorway-strongest)";
|
|
261
|
+
readonly backgroundRoot: "var(--background-root)";
|
|
262
|
+
readonly backgroundDefault: "var(--background-default)";
|
|
263
|
+
readonly backgroundHigher: "var(--background-higher)";
|
|
264
|
+
readonly backgroundHighest: "var(--background-highest)";
|
|
265
|
+
readonly backgroundOverlay: "var(--background-overlay)";
|
|
266
|
+
readonly foregroundDefault: "var(--foreground-default)";
|
|
267
|
+
readonly foregroundDimmer: "var(--foreground-dimmer)";
|
|
268
|
+
readonly foregroundDimmest: "var(--foreground-dimmest)";
|
|
269
|
+
readonly outlineDimmest: "var(--outline-dimmest)";
|
|
270
|
+
readonly outlineDimmer: "var(--outline-dimmer)";
|
|
271
|
+
readonly outlineDefault: "var(--outline-default)";
|
|
272
|
+
readonly outlineStronger: "var(--outline-stronger)";
|
|
273
|
+
readonly outlineStrongest: "var(--outline-strongest)";
|
|
274
|
+
readonly primaryDimmest: "var(--primary-dimmest)";
|
|
275
|
+
readonly primaryDimmer: "var(--primary-dimmer)";
|
|
276
|
+
readonly primaryDefault: "var(--primary-default)";
|
|
277
|
+
readonly primaryStronger: "var(--primary-stronger)";
|
|
278
|
+
readonly primaryStrongest: "var(--primary-strongest)";
|
|
279
|
+
readonly positiveDimmest: "var(--positive-dimmest)";
|
|
280
|
+
readonly positiveDimmer: "var(--positive-dimmer)";
|
|
281
|
+
readonly positiveDefault: "var(--positive-default)";
|
|
282
|
+
readonly positiveStronger: "var(--positive-stronger)";
|
|
283
|
+
readonly positiveStrongest: "var(--positive-strongest)";
|
|
284
|
+
readonly negativeDimmest: "var(--negative-dimmest)";
|
|
285
|
+
readonly negativeDimmer: "var(--negative-dimmer)";
|
|
286
|
+
readonly negativeDefault: "var(--negative-default)";
|
|
287
|
+
readonly negativeStronger: "var(--negative-stronger)";
|
|
288
|
+
readonly negativeStrongest: "var(--negative-strongest)";
|
|
289
|
+
readonly redDimmest: "var(--red-dimmest)";
|
|
290
|
+
readonly redDimmer: "var(--red-dimmer)";
|
|
291
|
+
readonly redDefault: "var(--red-default)";
|
|
292
|
+
readonly redStronger: "var(--red-stronger)";
|
|
293
|
+
readonly redStrongest: "var(--red-strongest)";
|
|
294
|
+
readonly orangeDimmest: "var(--orange-dimmest)";
|
|
295
|
+
readonly orangeDimmer: "var(--orange-dimmer)";
|
|
296
|
+
readonly orangeDefault: "var(--orange-default)";
|
|
297
|
+
readonly orangeStronger: "var(--orange-stronger)";
|
|
298
|
+
readonly orangeStrongest: "var(--orange-strongest)";
|
|
299
|
+
readonly yellowDimmest: "var(--yellow-dimmest)";
|
|
300
|
+
readonly yellowDimmer: "var(--yellow-dimmer)";
|
|
301
|
+
readonly yellowDefault: "var(--yellow-default)";
|
|
302
|
+
readonly yellowStronger: "var(--yellow-stronger)";
|
|
303
|
+
readonly yellowStrongest: "var(--yellow-strongest)";
|
|
304
|
+
readonly limeDimmest: "var(--lime-dimmest)";
|
|
305
|
+
readonly limeDimmer: "var(--lime-dimmer)";
|
|
306
|
+
readonly limeDefault: "var(--lime-default)";
|
|
307
|
+
readonly limeStronger: "var(--lime-stronger)";
|
|
308
|
+
readonly limeStrongest: "var(--lime-strongest)";
|
|
309
|
+
readonly greenDimmest: "var(--green-dimmest)";
|
|
310
|
+
readonly greenDimmer: "var(--green-dimmer)";
|
|
311
|
+
readonly greenDefault: "var(--green-default)";
|
|
312
|
+
readonly greenStronger: "var(--green-stronger)";
|
|
313
|
+
readonly greenStrongest: "var(--green-strongest)";
|
|
314
|
+
readonly tealDimmest: "var(--teal-dimmest)";
|
|
315
|
+
readonly tealDimmer: "var(--teal-dimmer)";
|
|
316
|
+
readonly tealDefault: "var(--teal-default)";
|
|
317
|
+
readonly tealStronger: "var(--teal-stronger)";
|
|
318
|
+
readonly tealStrongest: "var(--teal-strongest)";
|
|
319
|
+
readonly blueDimmest: "var(--blue-dimmest)";
|
|
320
|
+
readonly blueDimmer: "var(--blue-dimmer)";
|
|
321
|
+
readonly blueDefault: "var(--blue-default)";
|
|
322
|
+
readonly blueStronger: "var(--blue-stronger)";
|
|
323
|
+
readonly blueStrongest: "var(--blue-strongest)";
|
|
324
|
+
readonly blurpleDimmest: "var(--blurple-dimmest)";
|
|
325
|
+
readonly blurpleDimmer: "var(--blurple-dimmer)";
|
|
326
|
+
readonly blurpleDefault: "var(--blurple-default)";
|
|
327
|
+
readonly blurpleStronger: "var(--blurple-stronger)";
|
|
328
|
+
readonly blurpleStrongest: "var(--blurple-strongest)";
|
|
329
|
+
readonly purpleDimmest: "var(--purple-dimmest)";
|
|
330
|
+
readonly purpleDimmer: "var(--purple-dimmer)";
|
|
331
|
+
readonly purpleDefault: "var(--purple-default)";
|
|
332
|
+
readonly purpleStronger: "var(--purple-stronger)";
|
|
333
|
+
readonly purpleStrongest: "var(--purple-strongest)";
|
|
334
|
+
readonly magentaDimmest: "var(--magenta-dimmest)";
|
|
335
|
+
readonly magentaDimmer: "var(--magenta-dimmer)";
|
|
336
|
+
readonly magentaDefault: "var(--magenta-default)";
|
|
337
|
+
readonly magentaStronger: "var(--magenta-stronger)";
|
|
338
|
+
readonly magentaStrongest: "var(--magenta-strongest)";
|
|
339
|
+
readonly pinkDimmest: "var(--pink-dimmest)";
|
|
340
|
+
readonly pinkDimmer: "var(--pink-dimmer)";
|
|
341
|
+
readonly pinkDefault: "var(--pink-default)";
|
|
342
|
+
readonly pinkStronger: "var(--pink-stronger)";
|
|
343
|
+
readonly pinkStrongest: "var(--pink-strongest)";
|
|
344
|
+
readonly greyDimmest: "var(--grey-dimmest)";
|
|
345
|
+
readonly greyDimmer: "var(--grey-dimmer)";
|
|
346
|
+
readonly greyDefault: "var(--grey-default)";
|
|
347
|
+
readonly greyStronger: "var(--grey-stronger)";
|
|
348
|
+
readonly greyStrongest: "var(--grey-strongest)";
|
|
349
|
+
readonly brownDimmest: "var(--brown-dimmest)";
|
|
350
|
+
readonly brownDimmer: "var(--brown-dimmer)";
|
|
351
|
+
readonly brownDefault: "var(--brown-default)";
|
|
352
|
+
readonly brownStronger: "var(--brown-stronger)";
|
|
353
|
+
readonly brownStrongest: "var(--brown-strongest)";
|
|
354
|
+
readonly black: "var(--black)";
|
|
355
|
+
readonly white: "var(--white)";
|
|
356
|
+
};
|
|
357
|
+
declare const invertedTokens: InvertRecord<{
|
|
358
|
+
space1: "var(--space-1)";
|
|
359
|
+
space2: "var(--space-2)";
|
|
360
|
+
space4: "var(--space-4)";
|
|
361
|
+
space6: "var(--space-6)";
|
|
362
|
+
space8: "var(--space-8)";
|
|
363
|
+
space12: "var(--space-12)";
|
|
364
|
+
space16: "var(--space-16)";
|
|
365
|
+
space20: "var(--space-20)";
|
|
366
|
+
space24: "var(--space-24)";
|
|
367
|
+
space28: "var(--space-28)";
|
|
368
|
+
space32: "var(--space-32)";
|
|
369
|
+
space40: "var(--space-40)";
|
|
370
|
+
space48: "var(--space-48)";
|
|
371
|
+
space56: "var(--space-56)";
|
|
372
|
+
space64: "var(--space-64)";
|
|
373
|
+
space80: "var(--space-80)";
|
|
374
|
+
space96: "var(--space-96)";
|
|
375
|
+
space128: "var(--space-128)";
|
|
376
|
+
space256: "var(--space-256)";
|
|
377
|
+
spaceDefault: "var(--space-default)";
|
|
378
|
+
borderRadius1: "var(--border-radius-1)";
|
|
379
|
+
borderRadius2: "var(--border-radius-2)";
|
|
380
|
+
borderRadius4: "var(--border-radius-4)";
|
|
381
|
+
borderRadius6: "var(--border-radius-6)";
|
|
382
|
+
borderRadius8: "var(--border-radius-8)";
|
|
383
|
+
borderRadius12: "var(--border-radius-12)";
|
|
384
|
+
borderRadius16: "var(--border-radius-16)";
|
|
385
|
+
borderRadiusDefault: "var(--border-radius-default)";
|
|
386
|
+
borderRadiusRound: "var(--border-radius-round)";
|
|
387
|
+
borderWidthDefault: "var(--border-width-default)";
|
|
388
|
+
}>;
|
|
389
|
+
/**
|
|
390
|
+
* Get the actual value from a CSS variable \
|
|
391
|
+
* You really can't get color values reliably without extracting them from the DOM because of theming
|
|
392
|
+
* @param token (CSS variable)
|
|
393
|
+
* @returns Raw value, or null if one is not found
|
|
394
|
+
*
|
|
395
|
+
* @example
|
|
396
|
+
* getTokenValue(tokens.space80)
|
|
397
|
+
* getTokenValue("var(--space-80)")
|
|
398
|
+
*/
|
|
399
|
+
export declare function getTokenValue(token: keyof typeof invertedTokens): 2 | 1 | 4 | 6 | 8 | 12 | 16 | 1028 | 20 | 24 | 28 | 32 | 40 | 48 | 56 | 64 | 80 | 96 | 128 | 256;
|
|
400
|
+
export {};
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Size variants for widths, buttons, icon sizes, you name it!
|
|
5
|
-
* Use `Extract` if you don't want to support all of them but ensure we reuse
|
|
6
|
-
* correct values.
|
|
7
|
-
* @example
|
|
8
|
-
* // only support a subset of size variants
|
|
9
|
-
* Extract<Size, "sm" | "md" | "lg">
|
|
10
|
-
*/
|
|
11
|
-
export type Size = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
12
|
-
|
|
13
|
-
export type SpaceToken = ValueOf<typeof spaceTokens>;
|
|
14
|
-
export type ColorToken = ValueOf<typeof colorTokens>;
|
|
15
|
-
export type InteractiveToken = ValueOf<typeof interactiveTokens>;
|
|
16
|
-
export type Token = ValueOf<typeof tokens>;
|
|
17
|
-
|
|
18
|
-
export const colorTokens = {
|
|
1
|
+
const n = {
|
|
19
2
|
backgroundRoot: "var(--background-root)",
|
|
20
3
|
backgroundDefault: "var(--background-default)",
|
|
21
4
|
backgroundHigher: "var(--background-higher)",
|
|
@@ -110,26 +93,20 @@ export const colorTokens = {
|
|
|
110
93
|
brownStronger: "var(--brown-stronger)",
|
|
111
94
|
brownStrongest: "var(--brown-strongest)",
|
|
112
95
|
black: "var(--black)",
|
|
113
|
-
white: "var(--white)"
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export const interactiveTokens = {
|
|
96
|
+
white: "var(--white)"
|
|
97
|
+
}, s = {
|
|
117
98
|
surfaceBackground: "var(--surface-background)",
|
|
118
99
|
interactiveBackground: "var(--surface-interactive-background)",
|
|
119
100
|
interactiveBackgroundActive: "var(--surface-interactive-background--active)",
|
|
120
101
|
interactiveBorder: "var(--surface-interactive-border)",
|
|
121
|
-
interactiveBorderHover: "var(--surface-interactive-border--hover)"
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export const colorwayTokens = {
|
|
102
|
+
interactiveBorderHover: "var(--surface-interactive-border--hover)"
|
|
103
|
+
}, l = {
|
|
125
104
|
colorwayDimmest: "var(--view-colorway-dimmest)",
|
|
126
105
|
colorwayDimmer: "var(--view-colorway-dimmer)",
|
|
127
106
|
colorwayDefault: "var(--view-colorway-default)",
|
|
128
107
|
colorwayStronger: "var(--view-colorway-stronger)",
|
|
129
|
-
colorwayStrongest: "var(--view-colorway-strongest)"
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export const spaceTokens = {
|
|
108
|
+
colorwayStrongest: "var(--view-colorway-strongest)"
|
|
109
|
+
}, a = {
|
|
133
110
|
space1: "var(--space-1)",
|
|
134
111
|
space2: "var(--space-2)",
|
|
135
112
|
space4: "var(--space-4)",
|
|
@@ -149,10 +126,8 @@ export const spaceTokens = {
|
|
|
149
126
|
space96: "var(--space-96)",
|
|
150
127
|
space128: "var(--space-128)",
|
|
151
128
|
space256: "var(--space-256)",
|
|
152
|
-
spaceDefault: "var(--space-default)"
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export const borderTokens = {
|
|
129
|
+
spaceDefault: "var(--space-default)"
|
|
130
|
+
}, t = {
|
|
156
131
|
borderRadius1: "var(--border-radius-1)",
|
|
157
132
|
borderRadius2: "var(--border-radius-2)",
|
|
158
133
|
borderRadius4: "var(--border-radius-4)",
|
|
@@ -162,27 +137,21 @@ export const borderTokens = {
|
|
|
162
137
|
borderRadius16: "var(--border-radius-16)",
|
|
163
138
|
borderRadiusDefault: "var(--border-radius-default)",
|
|
164
139
|
borderRadiusRound: "var(--border-radius-round)",
|
|
165
|
-
borderWidthDefault: "var(--border-width-default)"
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export const shadowTokens = {
|
|
140
|
+
borderWidthDefault: "var(--border-width-default)"
|
|
141
|
+
}, d = {
|
|
169
142
|
shadow1: "var(--shadow-1)",
|
|
170
143
|
shadow2: "var(--shadow-2)",
|
|
171
144
|
shadow3: "var(--shadow-3)",
|
|
172
|
-
shadowDefault: "var(--shadow-default)"
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export const typographyTokens = {
|
|
145
|
+
shadowDefault: "var(--shadow-default)"
|
|
146
|
+
}, v = {
|
|
176
147
|
fontFamilyDefault: "var(--font-family-default)",
|
|
177
148
|
fontFamilyCode: "var(--font-family-code)",
|
|
178
|
-
|
|
179
149
|
fontSizeSmall: "var(--font-size-small)",
|
|
180
150
|
fontSizeDefault: "var(--font-size-default)",
|
|
181
151
|
fontSizeSubheadDefault: "var(--font-size-subhead-default)",
|
|
182
152
|
fontSizeSubheadBig: "var(--font-size-subhead-big)",
|
|
183
153
|
fontSizeHeaderDefault: "var(--font-size-header-default)",
|
|
184
154
|
fontSizeHeaderBig: "var(--font-size-header-big)",
|
|
185
|
-
|
|
186
155
|
lineHeightSmall: "var(--line-height-small)",
|
|
187
156
|
lineHeightDefault: "var(--line-height-default)",
|
|
188
157
|
lineHeightSubheadDefault: "var(--line-height-subhead-default)",
|
|
@@ -191,46 +160,37 @@ export const typographyTokens = {
|
|
|
191
160
|
lineHeightHeaderBig: "var(--line-height-header-big)",
|
|
192
161
|
lineHeightSingle: "var(--line-height-single)",
|
|
193
162
|
lineHeightInput: "var(--line-height-input)",
|
|
194
|
-
|
|
195
163
|
fontWeightRegular: "var(--font-weight-regular)",
|
|
196
164
|
fontWeightMedium: "var(--font-weight-medium)",
|
|
197
|
-
fontWeightBold: "var(--font-weight-bold)"
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export const transitionTokens = {
|
|
165
|
+
fontWeightBold: "var(--font-weight-bold)"
|
|
166
|
+
}, m = {
|
|
201
167
|
transitionDurationSnappy: "var(--transition-duration-snappy)",
|
|
202
168
|
transitionTimingFunctionSnappy: "var(--transition-timing-function-snappy)",
|
|
203
169
|
transitionDurationChill: "var(--transition-duration-chill)",
|
|
204
|
-
transitionTimingFunctionChill: "var(--transition-timing-function-chill)"
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
...
|
|
209
|
-
...
|
|
210
|
-
...
|
|
211
|
-
...
|
|
212
|
-
...
|
|
213
|
-
...
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
(acc, [key, value]) => ({
|
|
221
|
-
...acc,
|
|
222
|
-
[value]: key,
|
|
170
|
+
transitionTimingFunctionChill: "var(--transition-timing-function-chill)"
|
|
171
|
+
}, c = {
|
|
172
|
+
...n,
|
|
173
|
+
...l,
|
|
174
|
+
...s,
|
|
175
|
+
...t,
|
|
176
|
+
...a,
|
|
177
|
+
...d,
|
|
178
|
+
...v,
|
|
179
|
+
...m
|
|
180
|
+
};
|
|
181
|
+
function u(e) {
|
|
182
|
+
return Object.entries(e).reduce(
|
|
183
|
+
(r, [i, o]) => ({
|
|
184
|
+
...r,
|
|
185
|
+
[o]: i
|
|
223
186
|
}),
|
|
224
|
-
{}
|
|
225
|
-
)
|
|
187
|
+
{}
|
|
188
|
+
);
|
|
226
189
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
...
|
|
230
|
-
|
|
231
|
-
});
|
|
232
|
-
|
|
233
|
-
const rawTokenValues = {
|
|
190
|
+
const g = u({
|
|
191
|
+
...t,
|
|
192
|
+
...a
|
|
193
|
+
}), p = {
|
|
234
194
|
borderRadius1: 1,
|
|
235
195
|
borderRadius2: 2,
|
|
236
196
|
borderRadius4: 4,
|
|
@@ -260,23 +220,21 @@ const rawTokenValues = {
|
|
|
260
220
|
space96: 96,
|
|
261
221
|
space128: 128,
|
|
262
222
|
space256: 256,
|
|
263
|
-
spaceDefault: 8
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
* You really can't get color values reliably without extracting them from the DOM because of theming
|
|
269
|
-
* @param token (CSS variable)
|
|
270
|
-
* @returns Raw value, or null if one is not found
|
|
271
|
-
*
|
|
272
|
-
* @example
|
|
273
|
-
* getTokenValue(tokens.space80)
|
|
274
|
-
* getTokenValue("var(--space-80)")
|
|
275
|
-
*/
|
|
276
|
-
export function getTokenValue(token: keyof typeof invertedTokens) {
|
|
277
|
-
// TODO create JS values alongside css themes
|
|
278
|
-
// something like getTokenValue(token.primaryDefault, "light")
|
|
279
|
-
// or try dom extraction?
|
|
280
|
-
const tokenKey = invertedTokens[token];
|
|
281
|
-
return rawTokenValues[tokenKey];
|
|
223
|
+
spaceDefault: 8
|
|
224
|
+
};
|
|
225
|
+
function f(e) {
|
|
226
|
+
const r = g[e];
|
|
227
|
+
return p[r];
|
|
282
228
|
}
|
|
229
|
+
export {
|
|
230
|
+
t as borderTokens,
|
|
231
|
+
n as colorTokens,
|
|
232
|
+
l as colorwayTokens,
|
|
233
|
+
f as getTokenValue,
|
|
234
|
+
s as interactiveTokens,
|
|
235
|
+
d as shadowTokens,
|
|
236
|
+
a as spaceTokens,
|
|
237
|
+
c as tokens,
|
|
238
|
+
m as transitionTokens,
|
|
239
|
+
v as typographyTokens
|
|
240
|
+
};
|
package/dist/toast.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._toast__viewport_km0zn_1{position:fixed;z-index:1;margin:0 auto;inset:auto var(--space-8) var(--space-8) auto;width:var(--space-256)}@media(min-width:512px){._toast__viewport_km0zn_1{right:var(--space-16);bottom:var(--space-16)}}._toast_km0zn_1{--toast-custom-gap: var(--space-12);--toast-custom-peek: var(--space-12);--toast-custom-scale: max(0, 1 - (var(--toast-index) * .1)) ;--toast-custom-shrink: calc(1 - var(--toast-custom-scale));--toast-custom-height: var(--toast-frontmost-height, var(--toast-height));--toast-custom-offset-y: calc( var(--toast-offset-y) * -1 + (var(--toast-index) * var(--toast-custom-gap) * -1) + var(--toast-swipe-movement-y) );display:flex;position:absolute;right:0;bottom:0;left:auto;flex-direction:row;align-items:center;gap:var(--space-8);transform:translate(var(--toast-swipe-movement-x)) translateY(calc(var(--toast-swipe-movement-y) - (var(--toast-index) * var(--toast-custom-peek)) - (var(--toast-custom-shrink) * var(--toast-custom-height)))) scale(var(--toast-custom-scale));transform-origin:bottom center;z-index:calc(1000 - var(--toast-index));transition:transform .6s cubic-bezier(.22,1,.36,1),opacity .6s,height var(--transition-duration-snappy);cursor:default;box-sizing:border-box;margin:0 0 0 auto;border-width:1px;border-style:solid;border-radius:var(--border-radius-default);background-clip:padding-box;width:100%;height:var(--toast-custom-height);-webkit-user-select:none;-moz-user-select:none;user-select:none}._toast_km0zn_1[data-expanded]{transform:translate(var(--toast-swipe-movement-x)) translateY(var(--toast-custom-offset-y));height:var(--toast-height)}._toast_km0zn_1[data-starting-style],._toast_km0zn_1[data-ending-style]{transform:translateY(150%)}._toast_km0zn_1[data-limited],._toast_km0zn_1[data-ending-style]{opacity:0}._toast_km0zn_1[data-ending-style][data-swipe-direction=up]{transform:translateY(calc(var(--toast-swipe-movement-y) - 50%))}._toast_km0zn_1[data-ending-style][data-swipe-direction=left]{transform:translate(calc(var(--toast-swipe-movement-x) - 50%)) translateY(var(--toast-custom-offset-y))}._toast_km0zn_1[data-ending-style][data-swipe-direction=right]{transform:translate(calc(var(--toast-swipe-movement-x) + 50%)) translateY(var(--toast-custom-offset-y))}._toast_km0zn_1[data-ending-style][data-swipe-direction=down]{transform:translateY(calc(var(--toast-swipe-movement-y) + 50%))}._toast_km0zn_1:after{display:block;position:absolute;top:100%;left:0;width:100%;height:calc(var(--toast-custom-gap) + 1px);content:""}._toast_variant_neutral_km0zn_109{border-color:var(--surface-interactive-border);background:var(--surface-background);color:var(--foreground-default)}._toast_variant_colorway_km0zn_115{border-color:var(--view-colorway-dimmer);background:var(--view-colorway-dimmest);color:var(--view-colorway-strongest)}._toast__content_km0zn_121{flex-grow:1;flex-shrink:1;gap:var(--space-16);transition:opacity var(--transition-duration-snappy) var(--transition-timing-function-snappy);padding:var(--space-12);overflow:hidden}._toast__content_km0zn_121[data-behind]{opacity:0}._toast__content_km0zn_121[data-expanded]{opacity:1}._toast__header_km0zn_139{flex:1 1 auto;gap:var(--space-4)}._toast__row_km0zn_144{flex:1 1 auto;flex-direction:row;justify-content:space-between;gap:var(--space-4)}._toast__title_km0zn_151,._toast__description_km0zn_155{flex:1 1 auto}._toast__close_km0zn_159{position:absolute;top:0;right:0}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as r } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
import './tooltip-arrow.css';const i = "_tooltip_nun1r_1", _ = "_tooltip__arrow_nun1r_10", n = {
|
|
4
|
+
tooltip: i,
|
|
5
|
+
tooltip__arrow: _,
|
|
6
|
+
"tooltip__arrow-icon": "_tooltip__arrow-icon_nun1r_35"
|
|
7
|
+
};
|
|
8
|
+
function s(t) {
|
|
9
|
+
return /* @__PURE__ */ o(
|
|
10
|
+
"svg",
|
|
11
|
+
{
|
|
12
|
+
width: "10",
|
|
13
|
+
height: "5",
|
|
14
|
+
viewBox: "0 0 30 10",
|
|
15
|
+
preserveAspectRatio: "none",
|
|
16
|
+
className: r(n["tooltip__arrow-icon"], t.className),
|
|
17
|
+
children: /* @__PURE__ */ o("polygon", { points: "0,0 30,0 15,10" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
s as T,
|
|
23
|
+
n as t
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._tooltip_nun1r_1{z-index:50;box-shadow:var(--shadow-1);border:1px solid var(--outline-dimmer);border-radius:var(--border-radius-default);background-color:var(--surface-background);padding:var(--space-4) var(--space-8)}._tooltip__arrow_nun1r_10[data-instant]{transition:none}._tooltip__arrow_nun1r_10[data-side=top]{bottom:-4px}._tooltip__arrow_nun1r_10[data-side=bottom]{top:-4px;rotate:180deg}._tooltip__arrow_nun1r_10[data-side=left]{right:-7px;rotate:-90deg}._tooltip__arrow_nun1r_10[data-side=right]{left:-7px;rotate:90deg}._tooltip__arrow-icon_nun1r_35{display:block;position:relative;fill:var(--surface-background)!important;stroke:var(--outline-dimmer);stroke-dasharray:0 30 22 0 22;stroke-linejoin:round;stroke-width:2;border-top:1px solid var(--surface-background)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._transition_opacity_18csa_1{transition:opacity var(--transition-duration-snappy) var(--transition-timing-function-snappy)}._transition_opacity_18csa_1[data-starting-style],._transition_opacity_18csa_1[data-ending-style]{opacity:0}._transition_fade-out_18csa_11[data-ending-style]{opacity:0;transition:opacity var(--transition-duration-snappy) var(--transition-timing-function-snappy)}._transition_scale_18csa_19{transition:opacity var(--transition-duration-snappy) var(--transition-timing-function-snappy),transform var(--transition-duration-snappy) var(--transition-timing-function-snappy)}._transition_scale_18csa_19[data-starting-style],._transition_scale_18csa_19[data-ending-style]{transform:scale(.96);opacity:0}
|