@koide-labs/ui 0.0.0 → 0.0.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 +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 +23 -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
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
[data-theme="light"] {
|
|
2
|
-
@nested-import "prismjs/themes/prism.css";
|
|
3
|
-
|
|
4
|
-
--shadow-1: 0px 4px 8px 0px rgba(2, 2, 3, 0.1);
|
|
5
|
-
--shadow-2: 0px 8px 16px 0px rgba(2, 2, 3, 0.15);
|
|
6
|
-
--shadow-3: 0px 16px 32px 0px rgba(2, 2, 3, 0.2);
|
|
7
|
-
|
|
8
|
-
--background-root: #ebeced;
|
|
9
|
-
--background-default: #fcfcfc;
|
|
10
|
-
--background-higher: #f0f1f2;
|
|
11
|
-
--background-highest: #e4e5e6;
|
|
12
|
-
--background-overlay: #f0f1f2a0;
|
|
13
|
-
--foreground-default: #07080a;
|
|
14
|
-
--foreground-dimmer: #3d4047;
|
|
15
|
-
--foreground-dimmest: #5c5f66;
|
|
16
|
-
--outline-dimmest: #d2d4d6;
|
|
17
|
-
--outline-dimmer: #c0c3c4;
|
|
18
|
-
--outline-default: #afb1b3;
|
|
19
|
-
--outline-stronger: #98999c;
|
|
20
|
-
--outline-strongest: #74767a;
|
|
21
|
-
--red-dimmest: #ffc7c7;
|
|
22
|
-
--red-dimmer: #ff9494;
|
|
23
|
-
--red-default: #fa4b4b;
|
|
24
|
-
--red-stronger: #c20a0a;
|
|
25
|
-
--red-strongest: #8a0000;
|
|
26
|
-
--orange-dimmest: #ffcc99;
|
|
27
|
-
--orange-dimmer: #ff9933;
|
|
28
|
-
--orange-default: #d96d00;
|
|
29
|
-
--orange-stronger: #964b00;
|
|
30
|
-
--orange-strongest: #693400;
|
|
31
|
-
--yellow-dimmest: #ebd66e;
|
|
32
|
-
--yellow-dimmer: #cfb015;
|
|
33
|
-
--yellow-default: #a68a00;
|
|
34
|
-
--yellow-stronger: #736000;
|
|
35
|
-
--yellow-strongest: #4f4200;
|
|
36
|
-
--lime-dimmest: #c0e378;
|
|
37
|
-
--lime-dimmer: #93c926;
|
|
38
|
-
--lime-default: #639400;
|
|
39
|
-
--lime-stronger: #466900;
|
|
40
|
-
--lime-strongest: #3a5700;
|
|
41
|
-
--green-dimmest: #7aeb8d;
|
|
42
|
-
--green-dimmer: #3cc954;
|
|
43
|
-
--green-default: #00a11b;
|
|
44
|
-
--green-stronger: #036e15;
|
|
45
|
-
--green-strongest: #004d0d;
|
|
46
|
-
--teal-dimmest: #6fe5fc;
|
|
47
|
-
--teal-dimmer: #22c1e0;
|
|
48
|
-
--teal-default: #0093b0;
|
|
49
|
-
--teal-stronger: #00687d;
|
|
50
|
-
--teal-strongest: #004857;
|
|
51
|
-
--blue-dimmest: #b2d9ff;
|
|
52
|
-
--blue-dimmer: #6bb5ff;
|
|
53
|
-
--blue-default: #0f87ff;
|
|
54
|
-
--blue-stronger: #005cb8;
|
|
55
|
-
--blue-strongest: #004182;
|
|
56
|
-
--blurple-dimmest: #d7cfff;
|
|
57
|
-
--blurple-dimmer: #b2a3ff;
|
|
58
|
-
--blurple-default: #8e78ff;
|
|
59
|
-
--blurple-stronger: #5b40e3;
|
|
60
|
-
--blurple-strongest: #412f9c;
|
|
61
|
-
--purple-dimmest: #e6ccff;
|
|
62
|
-
--purple-dimmer: #d0a1ff;
|
|
63
|
-
--purple-default: #b266ff;
|
|
64
|
-
--purple-stronger: #7f38c7;
|
|
65
|
-
--purple-strongest: #5b278f;
|
|
66
|
-
--magenta-dimmest: #ffbfff;
|
|
67
|
-
--magenta-dimmer: #ff82ff;
|
|
68
|
-
--magenta-default: #eb3beb;
|
|
69
|
-
--magenta-stronger: #a321a3;
|
|
70
|
-
--magenta-strongest: #731c73;
|
|
71
|
-
--pink-dimmest: #ffc7ec;
|
|
72
|
-
--pink-dimmer: #ff87d7;
|
|
73
|
-
--pink-default: #f545ba;
|
|
74
|
-
--pink-stronger: #ab2980;
|
|
75
|
-
--pink-strongest: #781e5a;
|
|
76
|
-
--grey-dimmest: #d5d5d5;
|
|
77
|
-
--grey-dimmer: #b0b0b0;
|
|
78
|
-
--grey-default: #898989;
|
|
79
|
-
--grey-stronger: #616161;
|
|
80
|
-
--grey-strongest: #454545;
|
|
81
|
-
--brown-dimmest: #ffc9ab;
|
|
82
|
-
--brown-dimmer: #dea483;
|
|
83
|
-
--brown-default: #b07f63;
|
|
84
|
-
--brown-stronger: #805740;
|
|
85
|
-
--brown-strongest: #573e30;
|
|
86
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
.transition_opacity {
|
|
2
|
-
transition: opacity var(--transition-duration-snappy)
|
|
3
|
-
var(--transition-timing-function-snappy);
|
|
4
|
-
|
|
5
|
-
&[data-starting-style],
|
|
6
|
-
&[data-ending-style] {
|
|
7
|
-
opacity: 0;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.transition_fade-out {
|
|
12
|
-
&[data-ending-style] {
|
|
13
|
-
opacity: 0;
|
|
14
|
-
transition: opacity var(--transition-duration-snappy)
|
|
15
|
-
var(--transition-timing-function-snappy);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.transition_scale {
|
|
20
|
-
transition:
|
|
21
|
-
opacity var(--transition-duration-snappy)
|
|
22
|
-
var(--transition-timing-function-snappy),
|
|
23
|
-
transform var(--transition-duration-snappy)
|
|
24
|
-
var(--transition-timing-function-snappy);
|
|
25
|
-
|
|
26
|
-
&[data-starting-style],
|
|
27
|
-
&[data-ending-style] {
|
|
28
|
-
transform: scale(0.96);
|
|
29
|
-
opacity: 0;
|
|
30
|
-
}
|
|
31
|
-
}
|
package/stylelint.config.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/** @type {import("stylelint").Config} */
|
|
2
|
-
export default {
|
|
3
|
-
extends: ["stylelint-config-standard"],
|
|
4
|
-
plugins: ["stylelint-selector-bem-pattern"],
|
|
5
|
-
/**
|
|
6
|
-
* I kind of want to ignore globals since we break a shit ton of rules
|
|
7
|
-
* https://stylelint.io/user-guide/configure#ignorefiles
|
|
8
|
-
*/
|
|
9
|
-
ignoreFiles: ["src/styles/**/*.css", "src/integrations/tailwind.css"],
|
|
10
|
-
rules: {
|
|
11
|
-
/**
|
|
12
|
-
* We want to use BEM instead
|
|
13
|
-
* Defined here:
|
|
14
|
-
* https://github.com/postcss/postcss-bem-linter?tab=readme-ov-file
|
|
15
|
-
* https://en.bem.info/methodology/naming-convention/
|
|
16
|
-
*/
|
|
17
|
-
"selector-class-pattern": null,
|
|
18
|
-
"plugin/selector-bem-pattern": {
|
|
19
|
-
preset: "bem",
|
|
20
|
-
implicitComponents: true,
|
|
21
|
-
},
|
|
22
|
-
"max-nesting-depth": [
|
|
23
|
-
1,
|
|
24
|
-
{
|
|
25
|
-
ignore: ["pseudo-classes", "blockless-at-rules"],
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
};
|
package/tsconfig.app.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
-
"target": "ES2022",
|
|
5
|
-
"useDefineForClassFields": true,
|
|
6
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"types": ["vite/client"],
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
|
|
11
|
-
/* Bundler mode */
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"allowImportingTsExtensions": true,
|
|
14
|
-
"verbatimModuleSyntax": true,
|
|
15
|
-
"moduleDetection": "force",
|
|
16
|
-
"noEmit": true,
|
|
17
|
-
"jsx": "react-jsx",
|
|
18
|
-
|
|
19
|
-
/* Linting */
|
|
20
|
-
"strict": true,
|
|
21
|
-
"noUnusedLocals": true,
|
|
22
|
-
"noUnusedParameters": true,
|
|
23
|
-
"erasableSyntaxOnly": true,
|
|
24
|
-
"noFallthroughCasesInSwitch": true,
|
|
25
|
-
"noUncheckedSideEffectImports": true,
|
|
26
|
-
|
|
27
|
-
"plugins": [{ "name": "typescript-plugin-css-modules" }],
|
|
28
|
-
|
|
29
|
-
"baseUrl": ".",
|
|
30
|
-
"paths": {
|
|
31
|
-
"~/*": ["./src/*"]
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"include": ["src"]
|
|
35
|
-
}
|
package/tsconfig.json
DELETED
package/tsconfig.node.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": ["ES2023"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"types": ["node"],
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
|
|
10
|
-
/* Bundler mode */
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"allowImportingTsExtensions": true,
|
|
13
|
-
"verbatimModuleSyntax": true,
|
|
14
|
-
"moduleDetection": "force",
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
|
|
17
|
-
/* Linting */
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"erasableSyntaxOnly": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": true,
|
|
23
|
-
"noUncheckedSideEffectImports": true
|
|
24
|
-
},
|
|
25
|
-
"include": ["vite.config.ts"]
|
|
26
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/// <reference types="vitest/config" />
|
|
2
|
-
// https://vite.dev/config/
|
|
3
|
-
|
|
4
|
-
import { fileURLToPath } from "node:url";
|
|
5
|
-
import path from "path";
|
|
6
|
-
import { storybookTest } from "@storybook/addon-vitest/vitest-plugin";
|
|
7
|
-
import react from "@vitejs/plugin-react";
|
|
8
|
-
import { playwright } from "@vitest/browser-playwright";
|
|
9
|
-
import { glob } from "glob";
|
|
10
|
-
import { defineConfig } from "vite";
|
|
11
|
-
import dts from "vite-plugin-dts";
|
|
12
|
-
import { libInjectCss } from "vite-plugin-lib-inject-css";
|
|
13
|
-
import tsconfigPaths from "vite-tsconfig-paths";
|
|
14
|
-
|
|
15
|
-
const dirname =
|
|
16
|
-
typeof __dirname !== "undefined"
|
|
17
|
-
? __dirname
|
|
18
|
-
: path.dirname(fileURLToPath(import.meta.url));
|
|
19
|
-
|
|
20
|
-
const IGNORE_STORIES = ["src/**/*.stories.tsx", "src/stories/**/*"];
|
|
21
|
-
|
|
22
|
-
// More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon
|
|
23
|
-
export default defineConfig({
|
|
24
|
-
plugins: [
|
|
25
|
-
tsconfigPaths(),
|
|
26
|
-
libInjectCss(),
|
|
27
|
-
react(),
|
|
28
|
-
dts({
|
|
29
|
-
include: ["src"],
|
|
30
|
-
exclude: IGNORE_STORIES,
|
|
31
|
-
tsconfigPath: "./tsconfig.app.json",
|
|
32
|
-
}),
|
|
33
|
-
],
|
|
34
|
-
build: {
|
|
35
|
-
minify: "esbuild",
|
|
36
|
-
lib: {
|
|
37
|
-
entry: {
|
|
38
|
-
index: path.resolve(__dirname, "src/index.ts"),
|
|
39
|
-
},
|
|
40
|
-
formats: ["es"],
|
|
41
|
-
},
|
|
42
|
-
rollupOptions: {
|
|
43
|
-
external: ["react", "react/jsx-runtime", "react-dom"],
|
|
44
|
-
input: Object.fromEntries(
|
|
45
|
-
glob
|
|
46
|
-
.sync(
|
|
47
|
-
[
|
|
48
|
-
"src/**/!(*.d).{ts,tsx}",
|
|
49
|
-
"src/styles/core.css",
|
|
50
|
-
"src/styles/reset.css",
|
|
51
|
-
"src/integrations/tailwind.css",
|
|
52
|
-
],
|
|
53
|
-
{
|
|
54
|
-
ignore: IGNORE_STORIES,
|
|
55
|
-
},
|
|
56
|
-
)
|
|
57
|
-
.map((file) => [
|
|
58
|
-
path.relative(
|
|
59
|
-
"src",
|
|
60
|
-
file.substring(0, file.length - path.extname(file).length),
|
|
61
|
-
),
|
|
62
|
-
path.resolve(__dirname, file),
|
|
63
|
-
]),
|
|
64
|
-
),
|
|
65
|
-
output: {
|
|
66
|
-
globals: {
|
|
67
|
-
react: "React",
|
|
68
|
-
"react/jsx-runtime": "react/jsx-runtime",
|
|
69
|
-
"react-dom": "ReactDOM",
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
copyPublicDir: false,
|
|
74
|
-
},
|
|
75
|
-
test: {
|
|
76
|
-
projects: [
|
|
77
|
-
{
|
|
78
|
-
extends: true,
|
|
79
|
-
plugins: [
|
|
80
|
-
// The plugin will run tests for the stories defined in your Storybook config
|
|
81
|
-
// See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest
|
|
82
|
-
storybookTest({
|
|
83
|
-
configDir: path.join(dirname, ".storybook"),
|
|
84
|
-
}),
|
|
85
|
-
],
|
|
86
|
-
test: {
|
|
87
|
-
name: "storybook",
|
|
88
|
-
browser: {
|
|
89
|
-
enabled: true,
|
|
90
|
-
headless: true,
|
|
91
|
-
provider: playwright({}),
|
|
92
|
-
instances: [
|
|
93
|
-
{
|
|
94
|
-
browser: "chromium",
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
setupFiles: [".storybook/vitest.setup.ts"],
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
},
|
|
103
|
-
});
|
package/vitest.shims.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="@vitest/browser-playwright" />
|