@jongh/ui 1.6.5 → 2.20260905.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/dist/base.css +1103 -0
- package/dist/blue.css +155 -0
- package/dist/chunks/component-accordion-fyrDP4PS.js +28 -0
- package/dist/chunks/component-avatar-Cl7qxXL7.js +15 -0
- package/dist/chunks/component-badge-BqDGL-KR.js +23 -0
- package/dist/chunks/component-box-BVJJ_2Ye.js +27 -0
- package/dist/chunks/component-button-6iooYVkM.js +21 -0
- package/dist/chunks/component-calendar-BIBA_BgQ.js +241 -0
- package/dist/chunks/component-center-rifwb_-x.js +33 -0
- package/dist/chunks/component-checkbox-KSwDeqdV.js +54 -0
- package/dist/chunks/component-dialog-xLex6FJh.js +36 -0
- package/dist/chunks/component-grid-aWgGm3Ad.js +39 -0
- package/dist/chunks/component-h-stack-Cj62v71l.js +37 -0
- package/dist/chunks/component-select-B35mHD7A.js +52 -0
- package/dist/chunks/component-slider-CPcl-o95.js +16 -0
- package/dist/chunks/component-tabs-2-w8TPID.js +58 -0
- package/dist/chunks/component-textfield-CaSHslMS.js +53 -0
- package/dist/chunks/component-v-stack-BzMHYpjP.js +37 -0
- package/dist/chunks/panda-runtime-C6bA3kfx.js +496 -0
- package/dist/chunks/recipe-accordion-recipe-CchKveXQ.js +27 -0
- package/dist/chunks/recipe-avatar-recipe-5VMtXIhg.js +24 -0
- package/dist/chunks/recipe-badge-recipe-D02izv1z.js +136 -0
- package/dist/chunks/recipe-button-recipe-CjRb9Hj9.js +36 -0
- package/dist/chunks/recipe-calendar-recipe-BUUS4QEd.js +31 -0
- package/dist/chunks/recipe-center-recipe-_gQI_rG1.js +24 -0
- package/dist/chunks/recipe-checkbox-recipe-D72btvoT.js +31 -0
- package/dist/chunks/recipe-dialog-recipe-RKZYROxV.js +31 -0
- package/dist/chunks/recipe-layout-recipe-BMWtqxiV.js +20 -0
- package/dist/chunks/recipe-select-recipe-BbGnyPQ_.js +33 -0
- package/dist/chunks/recipe-slider-recipe-BHAFeUmN.js +25 -0
- package/dist/chunks/recipe-tabs-recipe-Cbr23IZY.js +26 -0
- package/dist/chunks/recipe-textfield-recipe-C2tyOCzn.js +27 -0
- package/dist/chunks/rolldown-runtime-CKyOoeiN.js +12 -0
- package/dist/index.d.ts +21694 -0
- package/dist/index.js +93 -0
- package/dist/purple.css +155 -0
- package/dist/recipes/accordion-recipe.css +118 -0
- package/dist/recipes/avatar-recipe.css +44 -0
- package/dist/recipes/badge-recipe.css +47 -0
- package/dist/recipes/button-recipe.css +153 -0
- package/dist/recipes/calendar-recipe.css +145 -0
- package/dist/recipes/center-recipe.css +13 -0
- package/dist/recipes/checkbox-recipe.css +156 -0
- package/dist/recipes/dialog-recipe.css +101 -0
- package/dist/recipes/layout-recipe.css +427 -0
- package/dist/recipes/select-recipe.css +175 -0
- package/dist/recipes/slider-recipe.css +60 -0
- package/dist/recipes/tabs-recipe.css +76 -0
- package/dist/recipes/textfield-recipe.css +95 -0
- package/dist/style.css +1 -0
- package/package.json +64 -39
- package/.storybook/index.css +0 -1
- package/.storybook/main.ts +0 -40
- package/.storybook/preview.ts +0 -16
- package/.storybook/vitest.setup.ts +0 -9
- package/.turbo/turbo-build.log +0 -79
- package/CHANGELOG.md +0 -54
- package/chromatic.config.json +0 -6
- package/eslint.config.mjs +0 -14
- package/index.html +0 -13
- package/panda.config.ts +0 -13
- package/postcss.config.cjs +0 -3
- package/preset.ts +0 -134
- package/src/component/accordion/ui/index.tsx +0 -80
- package/src/component/accordion/ui/recipe.ts +0 -65
- package/src/component/avatar/ui/index.tsx +0 -47
- package/src/component/avatar/ui/recipe.ts +0 -30
- package/src/component/button/ui/index.tsx +0 -29
- package/src/component/button/ui/recipe.ts +0 -102
- package/src/component/chip/ui/index.tsx +0 -30
- package/src/component/chip/ui/recipe.ts +0 -112
- package/src/component/dialog/ui/index.tsx +0 -73
- package/src/component/dialog/ui/recipe.ts +0 -92
- package/src/component/select/ui/index.tsx +0 -128
- package/src/component/select/ui/recipe.ts +0 -142
- package/src/component/slider/ui/index.tsx +0 -61
- package/src/component/slider/ui/recipe.ts +0 -52
- package/src/component/tabs/ui/index.tsx +0 -61
- package/src/component/tabs/ui/recipe.ts +0 -59
- package/src/hooks/createContext.tsx +0 -34
- package/src/hooks/useComposedRefs.ts +0 -20
- package/src/hooks/useControllableState.ts +0 -87
- package/src/hooks/useKeyboardEvent.ts +0 -58
- package/src/stories/accordion.stories.tsx +0 -63
- package/src/stories/avatar.stories.tsx +0 -33
- package/src/stories/button.stories.tsx +0 -53
- package/src/stories/chip.stories.tsx +0 -69
- package/src/stories/dialog.stories.tsx +0 -134
- package/src/stories/select.stories.tsx +0 -35
- package/src/stories/slider.stories.tsx +0 -31
- package/src/stories/tabs.stories.tsx +0 -63
- package/src/test/accordion.test.tsx +0 -66
- package/src/test/tabs.test.tsx +0 -30
- package/src/types/index.ts +0 -1
- package/src/utils/createStyleContext.tsx +0 -108
- package/src/utils/defineSafe.ts +0 -46
- package/src/utils/getObjectKeys.ts +0 -20
- package/src/vite-env.d.ts +0 -1
- package/storybook-static/assets/Color-F6OSRLHC-CrKta8Qx.js +0 -1
- package/storybook-static/assets/DocsRenderer-CFRXHY34-Crd9Mepd.js +0 -586
- package/storybook-static/assets/_commonjsHelpers-Cpj98o6Y.js +0 -1
- package/storybook-static/assets/accordion.stories-0Om0AnMm.js +0 -50
- package/storybook-static/assets/avatar.stories-DMDsrSks.js +0 -16
- package/storybook-static/assets/axe-Dzet_oDA.js +0 -30
- package/storybook-static/assets/button.stories-CuVC-3x-.js +0 -40
- package/storybook-static/assets/chip.stories-FBIp8XNi.js +0 -48
- package/storybook-static/assets/chunk-XP5HYGXS-D5tuasO7.js +0 -1
- package/storybook-static/assets/createLucideIcon-DmXe7Z8R.js +0 -21
- package/storybook-static/assets/dialog.stories-3WsEvXt4.js +0 -106
- package/storybook-static/assets/entry-preview-Bkgdgq1b.js +0 -10
- package/storybook-static/assets/entry-preview-docs-zLz1Es7d.js +0 -46
- package/storybook-static/assets/iframe-LPPPXabV.js +0 -199
- package/storybook-static/assets/index-Bklpsb39.js +0 -1
- package/storybook-static/assets/index-BrlJLjep.js +0 -24
- package/storybook-static/assets/index-C2tRLqin.js +0 -41
- package/storybook-static/assets/index-CBft-ReK.js +0 -8
- package/storybook-static/assets/index-CSbWd7UJ.js +0 -1
- package/storybook-static/assets/index-ClcD9ViR.js +0 -9
- package/storybook-static/assets/index-Cu4lwwaE.js +0 -1
- package/storybook-static/assets/index-Cvkemp2J.js +0 -1
- package/storybook-static/assets/index-D59aU5s_.js +0 -240
- package/storybook-static/assets/index-DNo8LKN3.js +0 -1
- package/storybook-static/assets/index-DUy19JZU.js +0 -1
- package/storybook-static/assets/index-D_35mznO.js +0 -1
- package/storybook-static/assets/index-DrFu-skq.js +0 -6
- package/storybook-static/assets/index-DvbTp2M2.js +0 -1
- package/storybook-static/assets/index-rtmQni2k.js +0 -1
- package/storybook-static/assets/jsx-runtime-BYYWji4R.js +0 -9
- package/storybook-static/assets/matchers-57EZJSQE-oeXCqs4p.js +0 -14
- package/storybook-static/assets/preview-1l6V4UsQ.js +0 -1
- package/storybook-static/assets/preview-B3PTUHS7.js +0 -1
- package/storybook-static/assets/preview-BBWR9nbA.js +0 -1
- package/storybook-static/assets/preview-BCV5r-Ja.js +0 -1
- package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
- package/storybook-static/assets/preview-Bb56VplF.js +0 -2
- package/storybook-static/assets/preview-Bl8rsKRy.js +0 -1
- package/storybook-static/assets/preview-Bm-a94Ct.js +0 -2
- package/storybook-static/assets/preview-Br-h4d84.js +0 -1
- package/storybook-static/assets/preview-D77C14du.js +0 -34
- package/storybook-static/assets/preview-DC8N7cZb.css +0 -1
- package/storybook-static/assets/preview-DGUiP6tS.js +0 -7
- package/storybook-static/assets/react-18-BPs3tMGP.js +0 -1
- package/storybook-static/assets/select.stories-AN8Hb81Z.js +0 -20
- package/storybook-static/assets/slider.stories-CxOczq0y.js +0 -12
- package/storybook-static/assets/tabs.stories-BbTU4QU3.js +0 -28
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -666
- package/storybook-static/index.html +0 -193
- package/storybook-static/index.json +0 -1
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/a11y-12/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/a11y-12/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +0 -331
- package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +0 -51
- package/storybook-static/sb-addons/controls-11/manager-bundle.js +0 -391
- package/storybook-static/sb-addons/controls-11/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +0 -12
- package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +0 -391
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js +0 -230
- package/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-1/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/links-1/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/storybook-experimental-addon-test-13/manager-bundle.js +0 -211
- package/storybook-static/sb-addons/storybook-experimental-addon-test-13/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +0 -1037
- package/storybook-static/sb-manager/globals-runtime.js +0 -40857
- package/storybook-static/sb-manager/globals.js +0 -48
- package/storybook-static/sb-manager/runtime.js +0 -11963
- package/styled-system/css/conditions.mjs +0 -36
- package/styled-system/css/css.d.ts +0 -22
- package/styled-system/css/css.mjs +0 -45
- package/styled-system/css/cva.d.ts +0 -6
- package/styled-system/css/cva.mjs +0 -87
- package/styled-system/css/cx.d.ts +0 -5
- package/styled-system/css/cx.mjs +0 -15
- package/styled-system/css/index.d.ts +0 -5
- package/styled-system/css/index.mjs +0 -4
- package/styled-system/css/sva.d.ts +0 -4
- package/styled-system/css/sva.mjs +0 -41
- package/styled-system/helpers.mjs +0 -336
- package/styled-system/jsx/aspect-ratio.d.ts +0 -10
- package/styled-system/jsx/aspect-ratio.mjs +0 -14
- package/styled-system/jsx/bleed.d.ts +0 -10
- package/styled-system/jsx/bleed.mjs +0 -14
- package/styled-system/jsx/box.d.ts +0 -10
- package/styled-system/jsx/box.mjs +0 -14
- package/styled-system/jsx/center.d.ts +0 -10
- package/styled-system/jsx/center.mjs +0 -14
- package/styled-system/jsx/circle.d.ts +0 -10
- package/styled-system/jsx/circle.mjs +0 -14
- package/styled-system/jsx/container.d.ts +0 -10
- package/styled-system/jsx/container.mjs +0 -14
- package/styled-system/jsx/cq.d.ts +0 -10
- package/styled-system/jsx/cq.mjs +0 -14
- package/styled-system/jsx/divider.d.ts +0 -10
- package/styled-system/jsx/divider.mjs +0 -14
- package/styled-system/jsx/factory-helper.mjs +0 -22
- package/styled-system/jsx/factory.d.ts +0 -3
- package/styled-system/jsx/factory.mjs +0 -80
- package/styled-system/jsx/flex.d.ts +0 -10
- package/styled-system/jsx/flex.mjs +0 -14
- package/styled-system/jsx/float.d.ts +0 -10
- package/styled-system/jsx/float.mjs +0 -14
- package/styled-system/jsx/grid-item.d.ts +0 -10
- package/styled-system/jsx/grid-item.mjs +0 -14
- package/styled-system/jsx/grid.d.ts +0 -10
- package/styled-system/jsx/grid.mjs +0 -14
- package/styled-system/jsx/hstack.d.ts +0 -10
- package/styled-system/jsx/hstack.mjs +0 -14
- package/styled-system/jsx/index.d.ts +0 -24
- package/styled-system/jsx/index.mjs +0 -22
- package/styled-system/jsx/is-valid-prop.d.ts +0 -11
- package/styled-system/jsx/is-valid-prop.mjs +0 -17
- package/styled-system/jsx/link-overlay.d.ts +0 -10
- package/styled-system/jsx/link-overlay.mjs +0 -14
- package/styled-system/jsx/spacer.d.ts +0 -10
- package/styled-system/jsx/spacer.mjs +0 -14
- package/styled-system/jsx/square.d.ts +0 -10
- package/styled-system/jsx/square.mjs +0 -14
- package/styled-system/jsx/stack.d.ts +0 -10
- package/styled-system/jsx/stack.mjs +0 -14
- package/styled-system/jsx/visually-hidden.d.ts +0 -10
- package/styled-system/jsx/visually-hidden.mjs +0 -14
- package/styled-system/jsx/vstack.d.ts +0 -10
- package/styled-system/jsx/vstack.mjs +0 -14
- package/styled-system/jsx/wrap.d.ts +0 -10
- package/styled-system/jsx/wrap.mjs +0 -14
- package/styled-system/patterns/aspect-ratio.d.ts +0 -21
- package/styled-system/patterns/aspect-ratio.mjs +0 -38
- package/styled-system/patterns/bleed.d.ts +0 -22
- package/styled-system/patterns/bleed.mjs +0 -24
- package/styled-system/patterns/box.d.ts +0 -21
- package/styled-system/patterns/box.mjs +0 -15
- package/styled-system/patterns/center.d.ts +0 -21
- package/styled-system/patterns/center.mjs +0 -21
- package/styled-system/patterns/circle.d.ts +0 -21
- package/styled-system/patterns/circle.mjs +0 -25
- package/styled-system/patterns/container.d.ts +0 -21
- package/styled-system/patterns/container.mjs +0 -21
- package/styled-system/patterns/cq.d.ts +0 -22
- package/styled-system/patterns/cq.mjs +0 -21
- package/styled-system/patterns/divider.d.ts +0 -23
- package/styled-system/patterns/divider.mjs +0 -25
- package/styled-system/patterns/flex.d.ts +0 -27
- package/styled-system/patterns/flex.mjs +0 -26
- package/styled-system/patterns/float.d.ts +0 -24
- package/styled-system/patterns/float.mjs +0 -52
- package/styled-system/patterns/grid-item.d.ts +0 -26
- package/styled-system/patterns/grid-item.mjs +0 -25
- package/styled-system/patterns/grid.d.ts +0 -25
- package/styled-system/patterns/grid.mjs +0 -27
- package/styled-system/patterns/hstack.d.ts +0 -22
- package/styled-system/patterns/hstack.mjs +0 -24
- package/styled-system/patterns/index.d.ts +0 -21
- package/styled-system/patterns/index.mjs +0 -20
- package/styled-system/patterns/link-overlay.d.ts +0 -21
- package/styled-system/patterns/link-overlay.mjs +0 -24
- package/styled-system/patterns/spacer.d.ts +0 -21
- package/styled-system/patterns/spacer.mjs +0 -21
- package/styled-system/patterns/square.d.ts +0 -21
- package/styled-system/patterns/square.mjs +0 -24
- package/styled-system/patterns/stack.d.ts +0 -24
- package/styled-system/patterns/stack.mjs +0 -24
- package/styled-system/patterns/visually-hidden.d.ts +0 -21
- package/styled-system/patterns/visually-hidden.mjs +0 -18
- package/styled-system/patterns/vstack.d.ts +0 -22
- package/styled-system/patterns/vstack.mjs +0 -24
- package/styled-system/patterns/wrap.d.ts +0 -25
- package/styled-system/patterns/wrap.mjs +0 -25
- package/styled-system/tokens/index.d.ts +0 -9
- package/styled-system/tokens/index.mjs +0 -1992
- package/styled-system/tokens/tokens.d.ts +0 -60
- package/styled-system/types/composition.d.ts +0 -164
- package/styled-system/types/conditions.d.ts +0 -274
- package/styled-system/types/csstype.d.ts +0 -21298
- package/styled-system/types/global.d.ts +0 -20
- package/styled-system/types/index.d.ts +0 -8
- package/styled-system/types/jsx.d.ts +0 -52
- package/styled-system/types/parts.d.ts +0 -8
- package/styled-system/types/pattern.d.ts +0 -78
- package/styled-system/types/prop-type.d.ts +0 -235
- package/styled-system/types/recipe.d.ts +0 -181
- package/styled-system/types/selectors.d.ts +0 -59
- package/styled-system/types/static-css.d.ts +0 -56
- package/styled-system/types/style-props.d.ts +0 -7468
- package/styled-system/types/system-types.d.ts +0 -109
- package/tsconfig.json +0 -13
- package/turbo/generators/config.cjs +0 -7
- package/turbo/generators/stories.cjs +0 -23
- package/turbo/generators/templates/stories.tsx.hbs +0 -16
- package/turbo/generators/templates/ui.tsx.hbs +0 -8
- package/turbo/generators/ui.cjs +0 -19
- package/vite.config.ts +0 -7
- package/vitest.config.ts +0 -45
package/.turbo/turbo-build.log
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @jongh/ui@1.6.5 build /home/runner/work/j-design-system/j-design-system/packages/ui
|
|
3
|
-
> storybook build
|
|
4
|
-
|
|
5
|
-
[1m@storybook/core v8.5.6
|
|
6
|
-
[22m
|
|
7
|
-
info => Cleaning outputDir: [36mstorybook-static[39m
|
|
8
|
-
[33mThe CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.[39m
|
|
9
|
-
info => Loading presets
|
|
10
|
-
info => Building manager..
|
|
11
|
-
WARN unable to find package.json for radix-ui
|
|
12
|
-
info => Manager built ([38;2;181;126;229m242 ms[39m)
|
|
13
|
-
info => Building preview..
|
|
14
|
-
WARN No story files found for the specified pattern: [34msrc/**/*.mdx[39m
|
|
15
|
-
info Using tsconfig paths for react-docgen
|
|
16
|
-
[36mvite v5.4.14 [32mbuilding for production...[36m[39m
|
|
17
|
-
transforming...
|
|
18
|
-
🐼 info [hrtime] Extracted in (88.18ms)
|
|
19
|
-
../../node_modules/.pnpm/@storybook+core@8.5.6_prettier@3.5.2/node_modules/@storybook/core/dist/preview/runtime.js (3212:15): Use of eval in "../../node_modules/.pnpm/@storybook+core@8.5.6_prettier@3.5.2/node_modules/@storybook/core/dist/preview/runtime.js" is strongly discouraged as it poses security risks and may cause issues with minification.
|
|
20
|
-
../../node_modules/.pnpm/@storybook+core@8.5.6_prettier@3.5.2/node_modules/@storybook/core/dist/preview/runtime.js (3214:16): Use of eval in "../../node_modules/.pnpm/@storybook+core@8.5.6_prettier@3.5.2/node_modules/@storybook/core/dist/preview/runtime.js" is strongly discouraged as it poses security risks and may cause issues with minification.
|
|
21
|
-
[32m✓[39m 1839 modules transformed.
|
|
22
|
-
rendering chunks...
|
|
23
|
-
computing gzip size...
|
|
24
|
-
[2mstorybook-static/[22m[32miframe.html [39m[1m[2m 17.75 kB[22m[1m[22m[2m │ gzip: 5.00 kB[22m
|
|
25
|
-
[2mstorybook-static/[22m[2massets/[22m[35mpreview-DC8N7cZb.css [39m[1m[2m 44.77 kB[22m[1m[22m[2m │ gzip: 9.65 kB[22m
|
|
26
|
-
[2mstorybook-static/[22m[2massets/[22m[36mpreview-BCV5r-Ja.js [39m[1m[2m 0.13 kB[22m[1m[22m[2m │ gzip: 0.13 kB[22m
|
|
27
|
-
[2mstorybook-static/[22m[2massets/[22m[36mpreview-Bl8rsKRy.js [39m[1m[2m 0.17 kB[22m[1m[22m[2m │ gzip: 0.16 kB[22m
|
|
28
|
-
[2mstorybook-static/[22m[2massets/[22m[36mpreview-Br-h4d84.js [39m[1m[2m 0.17 kB[22m[1m[22m[2m │ gzip: 0.15 kB[22m
|
|
29
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-DNo8LKN3.js [39m[1m[2m 0.23 kB[22m[1m[22m[2m │ gzip: 0.21 kB[22m
|
|
30
|
-
[2mstorybook-static/[22m[2massets/[22m[36m_commonjsHelpers-Cpj98o6Y.js [39m[1m[2m 0.24 kB[22m[1m[22m[2m │ gzip: 0.18 kB[22m
|
|
31
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-DUy19JZU.js [39m[1m[2m 0.46 kB[22m[1m[22m[2m │ gzip: 0.30 kB[22m
|
|
32
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-Cvkemp2J.js [39m[1m[2m 0.63 kB[22m[1m[22m[2m │ gzip: 0.40 kB[22m
|
|
33
|
-
[2mstorybook-static/[22m[2massets/[22m[36mpreview-B3PTUHS7.js [39m[1m[2m 0.64 kB[22m[1m[22m[2m │ gzip: 0.44 kB[22m
|
|
34
|
-
[2mstorybook-static/[22m[2massets/[22m[36mpreview-DGUiP6tS.js [39m[1m[2m 0.71 kB[22m[1m[22m[2m │ gzip: 0.50 kB[22m
|
|
35
|
-
[2mstorybook-static/[22m[2massets/[22m[36mchunk-XP5HYGXS-D5tuasO7.js [39m[1m[2m 0.72 kB[22m[1m[22m[2m │ gzip: 0.40 kB[22m
|
|
36
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-DrFu-skq.js [39m[1m[2m 0.77 kB[22m[1m[22m[2m │ gzip: 0.47 kB[22m
|
|
37
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-rtmQni2k.js [39m[1m[2m 0.79 kB[22m[1m[22m[2m │ gzip: 0.45 kB[22m
|
|
38
|
-
[2mstorybook-static/[22m[2massets/[22m[36mpreview-Bm-a94Ct.js [39m[1m[2m 0.84 kB[22m[1m[22m[2m │ gzip: 0.54 kB[22m
|
|
39
|
-
[2mstorybook-static/[22m[2massets/[22m[36mreact-18-BPs3tMGP.js [39m[1m[2m 0.84 kB[22m[1m[22m[2m │ gzip: 0.49 kB[22m
|
|
40
|
-
[2mstorybook-static/[22m[2massets/[22m[36mjsx-runtime-BYYWji4R.js [39m[1m[2m 0.92 kB[22m[1m[22m[2m │ gzip: 0.58 kB[22m
|
|
41
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-Bklpsb39.js [39m[1m[2m 1.36 kB[22m[1m[22m[2m │ gzip: 0.67 kB[22m
|
|
42
|
-
[2mstorybook-static/[22m[2massets/[22m[36mcreateLucideIcon-DmXe7Z8R.js [39m[1m[2m 1.58 kB[22m[1m[22m[2m │ gzip: 0.66 kB[22m
|
|
43
|
-
[2mstorybook-static/[22m[2massets/[22m[36mpreview-Bb56VplF.js [39m[1m[2m 2.12 kB[22m[1m[22m[2m │ gzip: 1.17 kB[22m
|
|
44
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-CSbWd7UJ.js [39m[1m[2m 2.15 kB[22m[1m[22m[2m │ gzip: 0.94 kB[22m
|
|
45
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-Cu4lwwaE.js [39m[1m[2m 2.58 kB[22m[1m[22m[2m │ gzip: 1.26 kB[22m
|
|
46
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-D_35mznO.js [39m[1m[2m 2.83 kB[22m[1m[22m[2m │ gzip: 1.29 kB[22m
|
|
47
|
-
[2mstorybook-static/[22m[2massets/[22m[36mpreview-1l6V4UsQ.js [39m[1m[2m 3.50 kB[22m[1m[22m[2m │ gzip: 1.69 kB[22m
|
|
48
|
-
[2mstorybook-static/[22m[2massets/[22m[36mavatar.stories-DMDsrSks.js [39m[1m[2m 3.85 kB[22m[1m[22m[2m │ gzip: 1.53 kB[22m
|
|
49
|
-
[2mstorybook-static/[22m[2massets/[22m[36mbutton.stories-CuVC-3x-.js [39m[1m[2m 4.09 kB[22m[1m[22m[2m │ gzip: 1.43 kB[22m
|
|
50
|
-
[2mstorybook-static/[22m[2massets/[22m[36mchip.stories-FBIp8XNi.js [39m[1m[2m 4.82 kB[22m[1m[22m[2m │ gzip: 1.84 kB[22m
|
|
51
|
-
[2mstorybook-static/[22m[2massets/[22m[36mpreview-D77C14du.js [39m[1m[2m 5.03 kB[22m[1m[22m[2m │ gzip: 1.86 kB[22m
|
|
52
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-ClcD9ViR.js [39m[1m[2m 7.18 kB[22m[1m[22m[2m │ gzip: 2.92 kB[22m
|
|
53
|
-
[2mstorybook-static/[22m[2massets/[22m[36mpreview-BWzBA1C2.js [39m[1m[2m 7.62 kB[22m[1m[22m[2m │ gzip: 1.56 kB[22m
|
|
54
|
-
[2mstorybook-static/[22m[2massets/[22m[36mpreview-BBWR9nbA.js [39m[1m[2m 8.12 kB[22m[1m[22m[2m │ gzip: 3.10 kB[22m
|
|
55
|
-
[2mstorybook-static/[22m[2massets/[22m[36mtabs.stories-BbTU4QU3.js [39m[1m[2m 9.68 kB[22m[1m[22m[2m │ gzip: 3.44 kB[22m
|
|
56
|
-
[2mstorybook-static/[22m[2massets/[22m[36mslider.stories-CxOczq0y.js [39m[1m[2m 10.35 kB[22m[1m[22m[2m │ gzip: 3.97 kB[22m
|
|
57
|
-
[2mstorybook-static/[22m[2massets/[22m[36maccordion.stories-0Om0AnMm.js [39m[1m[2m 10.82 kB[22m[1m[22m[2m │ gzip: 3.56 kB[22m
|
|
58
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-DvbTp2M2.js [39m[1m[2m 17.33 kB[22m[1m[22m[2m │ gzip: 6.88 kB[22m
|
|
59
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-C2tRLqin.js [39m[1m[2m 20.57 kB[22m[1m[22m[2m │ gzip: 7.38 kB[22m
|
|
60
|
-
[2mstorybook-static/[22m[2massets/[22m[36mColor-F6OSRLHC-CrKta8Qx.js [39m[1m[2m 29.40 kB[22m[1m[22m[2m │ gzip: 11.08 kB[22m
|
|
61
|
-
[2mstorybook-static/[22m[2massets/[22m[36mmatchers-57EZJSQE-oeXCqs4p.js [39m[1m[2m 29.72 kB[22m[1m[22m[2m │ gzip: 10.28 kB[22m
|
|
62
|
-
[2mstorybook-static/[22m[2massets/[22m[36mentry-preview-Bkgdgq1b.js [39m[1m[2m 41.76 kB[22m[1m[22m[2m │ gzip: 14.06 kB[22m
|
|
63
|
-
[2mstorybook-static/[22m[2massets/[22m[36mdialog.stories-3WsEvXt4.js [39m[1m[2m 44.57 kB[22m[1m[22m[2m │ gzip: 11.86 kB[22m
|
|
64
|
-
[2mstorybook-static/[22m[2massets/[22m[36mselect.stories-AN8Hb81Z.js [39m[1m[2m 50.87 kB[22m[1m[22m[2m │ gzip: 17.65 kB[22m
|
|
65
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-CBft-ReK.js [39m[1m[2m 53.73 kB[22m[1m[22m[2m │ gzip: 15.56 kB[22m
|
|
66
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-BrlJLjep.js [39m[1m[2m134.00 kB[22m[1m[22m[2m │ gzip: 43.17 kB[22m
|
|
67
|
-
[2mstorybook-static/[22m[2massets/[22m[36miframe-LPPPXabV.js [39m[1m[2m193.17 kB[22m[1m[22m[2m │ gzip: 66.90 kB[22m
|
|
68
|
-
[2mstorybook-static/[22m[2massets/[22m[36mentry-preview-docs-zLz1Es7d.js [39m[1m[2m244.61 kB[22m[1m[22m[2m │ gzip: 73.41 kB[22m
|
|
69
|
-
[33m
|
|
70
|
-
(!) Some chunks are larger than 500 kB after minification. Consider:
|
|
71
|
-
[2mstorybook-static/[22m[2massets/[22m[36maxe-Dzet_oDA.js [39m[1m[33m572.30 kB[39m[22m[2m │ gzip: 157.93 kB[22m
|
|
72
|
-
[2mstorybook-static/[22m[2massets/[22m[36mindex-D59aU5s_.js [39m[1m[33m661.29 kB[39m[22m[2m │ gzip: 156.45 kB[22m
|
|
73
|
-
[2mstorybook-static/[22m[2massets/[22m[36mDocsRenderer-CFRXHY34-Crd9Mepd.js [39m[1m[33m868.48 kB[39m[22m[2m │ gzip: 272.24 kB[22m
|
|
74
|
-
[32m✓ built in 13.18s[39m
|
|
75
|
-
- Using dynamic import() to code-split the application
|
|
76
|
-
info => Preview built ([38;2;181;126;229m16 s[39m)
|
|
77
|
-
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
|
|
78
|
-
info => Output directory: /home/runner/work/j-design-system/j-design-system/packages/ui/storybook-static
|
|
79
|
-
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.[39m
|
package/CHANGELOG.md
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# @jongh/ui
|
|
2
|
-
|
|
3
|
-
## 1.6.5
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Updated dependencies [2b064ae]
|
|
8
|
-
- panda-animation@0.1.0
|
|
9
|
-
|
|
10
|
-
## 1.6.4
|
|
11
|
-
|
|
12
|
-
### Patch Changes
|
|
13
|
-
|
|
14
|
-
- Updated dependencies [7b2feec]
|
|
15
|
-
- panda-animation@0.0.2
|
|
16
|
-
|
|
17
|
-
## 1.6.3
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- Updated dependencies [412a4ca]
|
|
22
|
-
- @jongh/panda-preset@1.4.0
|
|
23
|
-
|
|
24
|
-
## 1.6.2
|
|
25
|
-
|
|
26
|
-
### Patch Changes
|
|
27
|
-
|
|
28
|
-
- Updated dependencies [cb4aefa]
|
|
29
|
-
- @jongh/panda-preset@1.3.0
|
|
30
|
-
|
|
31
|
-
## 1.6.1
|
|
32
|
-
|
|
33
|
-
### Patch Changes
|
|
34
|
-
|
|
35
|
-
- Updated dependencies [fc499b8]
|
|
36
|
-
- @jongh/panda-preset@1.2.0
|
|
37
|
-
|
|
38
|
-
## 1.6.0
|
|
39
|
-
|
|
40
|
-
### Minor Changes
|
|
41
|
-
|
|
42
|
-
- a27c196: add fadeIn keyframes in preset
|
|
43
|
-
|
|
44
|
-
### Patch Changes
|
|
45
|
-
|
|
46
|
-
- Updated dependencies [a27c196]
|
|
47
|
-
- @jongh/panda-preset@1.1.0
|
|
48
|
-
|
|
49
|
-
## 1.5.22
|
|
50
|
-
|
|
51
|
-
### Patch Changes
|
|
52
|
-
|
|
53
|
-
- Updated dependencies
|
|
54
|
-
- @jongh/panda-preset@1.0.0
|
package/chromatic.config.json
DELETED
package/eslint.config.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { config } from "@jongh/eslint/react-internal"
|
|
2
|
-
|
|
3
|
-
/** @type {import("eslint").Linter.Config} */
|
|
4
|
-
export default [
|
|
5
|
-
...config,
|
|
6
|
-
{
|
|
7
|
-
rules: {
|
|
8
|
-
"react/display-name": "off",
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
ignores: ["styled-system/*", ".storybook/*", "postcss.config.*"],
|
|
13
|
-
},
|
|
14
|
-
]
|
package/index.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>Vite + React + TS</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="root"></div>
|
|
11
|
-
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
package/panda.config.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "@pandacss/dev"
|
|
2
|
-
import { preset } from "panda-animation"
|
|
3
|
-
|
|
4
|
-
import { defaultPreset } from "./preset"
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
preflight: true,
|
|
7
|
-
presets: [preset(), "@pandacss/preset-panda", defaultPreset],
|
|
8
|
-
jsxFramework: "react",
|
|
9
|
-
include: ["./src/**/*.{js,jsx,ts,tsx}", "./src/stories/*.{js,jsx,ts,tsx}"],
|
|
10
|
-
outdir: "styled-system",
|
|
11
|
-
strictPropertyValues: true,
|
|
12
|
-
strictTokens: true,
|
|
13
|
-
})
|
package/postcss.config.cjs
DELETED
package/preset.ts
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
defineGlobalStyles,
|
|
3
|
-
definePreset,
|
|
4
|
-
defineSemanticTokens,
|
|
5
|
-
defineTokens,
|
|
6
|
-
} from "@pandacss/dev"
|
|
7
|
-
|
|
8
|
-
const globalCss = defineGlobalStyles({
|
|
9
|
-
"html, body": {
|
|
10
|
-
w: "full",
|
|
11
|
-
h: "full",
|
|
12
|
-
},
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
const radii = defineTokens.radii({
|
|
16
|
-
radius: { value: "0.5rem" },
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
export const semanticColors = defineSemanticTokens.colors({
|
|
20
|
-
background: {
|
|
21
|
-
value: { base: "hsl(0 0% 100%)", _dark: "hsl(222.2 84% 4.9%)" },
|
|
22
|
-
},
|
|
23
|
-
foreground: {
|
|
24
|
-
value: { base: "hsl(222.2 84% 4.9%)", _dark: "hsl(210 40% 98%)" },
|
|
25
|
-
},
|
|
26
|
-
card: {
|
|
27
|
-
DEFAULT: {
|
|
28
|
-
value: { base: "hsl(0 0% 100%)", _dark: "hsl(222.2 84% 4.9%)" },
|
|
29
|
-
},
|
|
30
|
-
foreground: {
|
|
31
|
-
value: { base: "hsl(222.2 84% 4.9%)", _dark: "hsl(210 40% 98%)" },
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
popover: {
|
|
35
|
-
DEFAULT: {
|
|
36
|
-
value: { base: "hsl(0 0% 100%)", _dark: "hsl(222.2 84% 4.9%)" },
|
|
37
|
-
},
|
|
38
|
-
foreground: {
|
|
39
|
-
value: { base: "hsl(222.2 84% 4.9%)", _dark: "hsl(210 40% 98%)" },
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
primary: {
|
|
43
|
-
DEFAULT: {
|
|
44
|
-
value: { base: "hsl(222.2 47.4% 11.2%)", _dark: "hsl(210 40% 98%)" },
|
|
45
|
-
},
|
|
46
|
-
foreground: {
|
|
47
|
-
value: { base: "hsl(210 40% 98%)", _dark: "hsl(222.2 47.4% 11.2%)" },
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
secondary: {
|
|
51
|
-
DEFAULT: {
|
|
52
|
-
value: { base: "hsl(210 40% 96.1%)", _dark: "hsl(217.2 32.6% 17.5%)" },
|
|
53
|
-
},
|
|
54
|
-
foreground: {
|
|
55
|
-
value: { base: "hsl(222.2 47.4% 11.2%)", _dark: "hsl(210 40% 98%)" },
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
muted: {
|
|
59
|
-
DEFAULT: {
|
|
60
|
-
value: { base: "hsl(210 40% 96.1%)", _dark: "hsl(217.2 32.6% 17.5%)" },
|
|
61
|
-
},
|
|
62
|
-
foreground: {
|
|
63
|
-
value: {
|
|
64
|
-
base: "hsl(215.4 16.3% 46.9%)",
|
|
65
|
-
_dark: "hsl(215 20.2% 65.1%)",
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
accent: {
|
|
70
|
-
DEFAULT: {
|
|
71
|
-
value: { base: "hsl(210 40% 96.1%)", _dark: "hsl(217.2 32.6% 17.5%)" },
|
|
72
|
-
},
|
|
73
|
-
foreground: {
|
|
74
|
-
value: { base: "hsl(222.2 47.4% 11.2%)", _dark: "hsl(210 40% 98%)" },
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
destructive: {
|
|
78
|
-
DEFAULT: {
|
|
79
|
-
value: { base: "hsl(0 84.2% 60.2%)", _dark: "hsl(0 62.8% 30.6%)" },
|
|
80
|
-
},
|
|
81
|
-
foreground: {
|
|
82
|
-
value: { base: "hsl(210 40% 98%)", _dark: "hsl(210 40% 98%)" },
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
border: {
|
|
86
|
-
value: {
|
|
87
|
-
base: "hsl(214.3 31.8% 91.4%)",
|
|
88
|
-
_dark: "hsl(217.2 32.6% 17.5%)",
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
input: {
|
|
92
|
-
value: {
|
|
93
|
-
base: "hsl(214.3 31.8% 91.4%)",
|
|
94
|
-
_dark: "hsl(217.2 32.6% 17.5%)",
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
ring: {
|
|
98
|
-
value: { base: "hsl(222.2 84% 4.9%)", _dark: "hsl(212.7 26.8% 83.9%)" },
|
|
99
|
-
},
|
|
100
|
-
})
|
|
101
|
-
|
|
102
|
-
const borders = defineSemanticTokens.borders({
|
|
103
|
-
base: { value: "1px solid {colors.border}" },
|
|
104
|
-
input: { value: "1px solid {colors.input}" },
|
|
105
|
-
primary: { value: "1px solid {colors.primary}" },
|
|
106
|
-
destructive: { value: "1px solid {colors.destructive}" },
|
|
107
|
-
})
|
|
108
|
-
|
|
109
|
-
export const radius = defineSemanticTokens.radii({
|
|
110
|
-
xl: { value: `calc({radii.radius} + 4px)` },
|
|
111
|
-
lg: { value: `{radii.radius}` },
|
|
112
|
-
md: { value: `calc({radii.radius} - 2px)` },
|
|
113
|
-
sm: { value: "calc({radii.radius} - 4px)" },
|
|
114
|
-
})
|
|
115
|
-
|
|
116
|
-
export const defaultPreset = definePreset({
|
|
117
|
-
name: "default",
|
|
118
|
-
globalCss,
|
|
119
|
-
theme: {
|
|
120
|
-
extend: {
|
|
121
|
-
tokens: {
|
|
122
|
-
radii,
|
|
123
|
-
},
|
|
124
|
-
semanticTokens: {
|
|
125
|
-
colors: semanticColors,
|
|
126
|
-
radii: radius,
|
|
127
|
-
borders: borders,
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
staticCss: {
|
|
132
|
-
recipes: "*",
|
|
133
|
-
},
|
|
134
|
-
})
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { css, cx } from "@styled-system/css"
|
|
2
|
-
import { Accordion as AccordionPrimitive } from "radix-ui"
|
|
3
|
-
import { type ComponentPropsWithoutRef, ElementRef, forwardRef } from "react"
|
|
4
|
-
|
|
5
|
-
import { recipe } from "./recipe"
|
|
6
|
-
|
|
7
|
-
export const Root = forwardRef<
|
|
8
|
-
ElementRef<typeof AccordionPrimitive.Root>,
|
|
9
|
-
ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>
|
|
10
|
-
>(({ className, ...props }, ref) => {
|
|
11
|
-
const styles = recipe.raw()
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<AccordionPrimitive.Root
|
|
15
|
-
ref={ref}
|
|
16
|
-
className={cx(css(styles.root), className)}
|
|
17
|
-
{...props}
|
|
18
|
-
/>
|
|
19
|
-
)
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
export const Header = forwardRef<
|
|
23
|
-
ElementRef<typeof AccordionPrimitive.Header>,
|
|
24
|
-
ComponentPropsWithoutRef<typeof AccordionPrimitive.Header>
|
|
25
|
-
>(({ className, ...props }, ref) => {
|
|
26
|
-
const styles = recipe.raw()
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<AccordionPrimitive.Header
|
|
30
|
-
ref={ref}
|
|
31
|
-
className={cx(css(styles.header), className)}
|
|
32
|
-
{...props}
|
|
33
|
-
/>
|
|
34
|
-
)
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
export const Item = forwardRef<
|
|
38
|
-
ElementRef<typeof AccordionPrimitive.Item>,
|
|
39
|
-
ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
|
|
40
|
-
>(({ className, ...props }, ref) => {
|
|
41
|
-
const styles = recipe.raw()
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<AccordionPrimitive.Item
|
|
45
|
-
ref={ref}
|
|
46
|
-
className={cx(css(styles.item), className)}
|
|
47
|
-
{...props}
|
|
48
|
-
/>
|
|
49
|
-
)
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
export const Trigger = forwardRef<
|
|
53
|
-
ElementRef<typeof AccordionPrimitive.Trigger>,
|
|
54
|
-
ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
|
|
55
|
-
>(({ className, ...props }, ref) => {
|
|
56
|
-
const styles = recipe.raw()
|
|
57
|
-
|
|
58
|
-
return (
|
|
59
|
-
<AccordionPrimitive.Trigger
|
|
60
|
-
ref={ref}
|
|
61
|
-
className={cx(css(styles.trigger), className)}
|
|
62
|
-
{...props}
|
|
63
|
-
/>
|
|
64
|
-
)
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
export const Content = forwardRef<
|
|
68
|
-
ElementRef<typeof AccordionPrimitive.Content>,
|
|
69
|
-
ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>
|
|
70
|
-
>(({ className, ...props }, ref) => {
|
|
71
|
-
const styles = recipe.raw()
|
|
72
|
-
|
|
73
|
-
return (
|
|
74
|
-
<AccordionPrimitive.Content
|
|
75
|
-
ref={ref}
|
|
76
|
-
className={cx(css(styles.content), className)}
|
|
77
|
-
{...props}
|
|
78
|
-
/>
|
|
79
|
-
)
|
|
80
|
-
})
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { sva } from "@styled-system/css"
|
|
2
|
-
|
|
3
|
-
export const recipe = sva({
|
|
4
|
-
slots: ["root", "item", "header", "trigger", "content"],
|
|
5
|
-
base: {
|
|
6
|
-
item: {
|
|
7
|
-
borderBottom: "base",
|
|
8
|
-
},
|
|
9
|
-
header: {
|
|
10
|
-
display: "flex",
|
|
11
|
-
},
|
|
12
|
-
trigger: {
|
|
13
|
-
display: "flex",
|
|
14
|
-
flex: "1",
|
|
15
|
-
alignItems: "center",
|
|
16
|
-
justifyContent: "space-between",
|
|
17
|
-
py: "4",
|
|
18
|
-
fontWeight: "medium",
|
|
19
|
-
transition: "all",
|
|
20
|
-
cursor: "pointer",
|
|
21
|
-
_hover: {
|
|
22
|
-
textDecoration: "underline",
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
"& > svg": {
|
|
26
|
-
h: "4",
|
|
27
|
-
w: "4",
|
|
28
|
-
flexShrink: "0",
|
|
29
|
-
transition: "transform",
|
|
30
|
-
transitionDuration: "normal",
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
"&[data-state=open] > svg": {
|
|
34
|
-
transform: "rotate(180deg)",
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
content: {
|
|
38
|
-
overflow: "hidden",
|
|
39
|
-
textStyle: "sm",
|
|
40
|
-
transition: "all",
|
|
41
|
-
|
|
42
|
-
"&[data-state=closed]": {
|
|
43
|
-
animationName: "accordion-up_radix",
|
|
44
|
-
animationDuration: "normal",
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
"&[data-state=open]": {
|
|
48
|
-
animationName: "accordion-down_radix",
|
|
49
|
-
animationDuration: "normal",
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
variants: {
|
|
54
|
-
variant: {
|
|
55
|
-
sm: {
|
|
56
|
-
trigger: {
|
|
57
|
-
color: "amber.700",
|
|
58
|
-
},
|
|
59
|
-
content: {
|
|
60
|
-
color: "pink.300",
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
})
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { css, cx } from "@styled-system/css"
|
|
2
|
-
import { Avatar as AvatarPrimitive } from "radix-ui"
|
|
3
|
-
import { type ComponentPropsWithoutRef, ElementRef, forwardRef } from "react"
|
|
4
|
-
|
|
5
|
-
import { recipe } from "./recipe"
|
|
6
|
-
|
|
7
|
-
export const Root = forwardRef<
|
|
8
|
-
ElementRef<typeof AvatarPrimitive.Root>,
|
|
9
|
-
ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
|
|
10
|
-
>(({ className, ...props }, ref) => {
|
|
11
|
-
const styles = recipe.raw()
|
|
12
|
-
return (
|
|
13
|
-
<AvatarPrimitive.Root
|
|
14
|
-
ref={ref}
|
|
15
|
-
className={cx(css(styles.root), className)}
|
|
16
|
-
{...props}
|
|
17
|
-
/>
|
|
18
|
-
)
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
export const Image = forwardRef<
|
|
22
|
-
ElementRef<typeof AvatarPrimitive.Image>,
|
|
23
|
-
ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
|
|
24
|
-
>(({ className, ...props }, ref) => {
|
|
25
|
-
const styles = recipe.raw()
|
|
26
|
-
return (
|
|
27
|
-
<AvatarPrimitive.Image
|
|
28
|
-
ref={ref}
|
|
29
|
-
className={cx(css(styles.image), className)}
|
|
30
|
-
{...props}
|
|
31
|
-
/>
|
|
32
|
-
)
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
export const Fallback = forwardRef<
|
|
36
|
-
ElementRef<typeof AvatarPrimitive.Fallback>,
|
|
37
|
-
ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
|
|
38
|
-
>(({ className, ...props }, ref) => {
|
|
39
|
-
const styles = recipe.raw()
|
|
40
|
-
return (
|
|
41
|
-
<AvatarPrimitive.Fallback
|
|
42
|
-
ref={ref}
|
|
43
|
-
className={cx(css(styles.fallback), className)}
|
|
44
|
-
{...props}
|
|
45
|
-
/>
|
|
46
|
-
)
|
|
47
|
-
})
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { sva } from "@styled-system/css"
|
|
2
|
-
|
|
3
|
-
export const recipe = sva({
|
|
4
|
-
slots: ["root", "image", "fallback"],
|
|
5
|
-
base: {
|
|
6
|
-
root: {
|
|
7
|
-
position: "relative",
|
|
8
|
-
display: "flex",
|
|
9
|
-
h: "12",
|
|
10
|
-
w: "12",
|
|
11
|
-
flexShrink: "0",
|
|
12
|
-
overflow: "hidden",
|
|
13
|
-
rounded: "full",
|
|
14
|
-
},
|
|
15
|
-
image: {
|
|
16
|
-
aspectRatio: "square",
|
|
17
|
-
h: "full",
|
|
18
|
-
w: "full",
|
|
19
|
-
},
|
|
20
|
-
fallback: {
|
|
21
|
-
display: "flex",
|
|
22
|
-
h: "full",
|
|
23
|
-
w: "full",
|
|
24
|
-
alignItems: "center",
|
|
25
|
-
justifyContent: "center",
|
|
26
|
-
rounded: "full",
|
|
27
|
-
bg: "muted",
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
})
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { css, cx } from "@styled-system/css"
|
|
2
|
-
import { Slot } from "radix-ui"
|
|
3
|
-
import type { ComponentPropsWithoutRef } from "react"
|
|
4
|
-
import { forwardRef } from "react"
|
|
5
|
-
|
|
6
|
-
import { ButtonVariantProps, recipe } from "./recipe"
|
|
7
|
-
|
|
8
|
-
export type ButtonProps = ComponentPropsWithoutRef<"button"> & {
|
|
9
|
-
asChild?: boolean
|
|
10
|
-
} & ButtonVariantProps
|
|
11
|
-
|
|
12
|
-
export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
|
13
|
-
({ asChild, className, ...props }, ref) => {
|
|
14
|
-
const Comp = asChild ? Slot.Root : "button"
|
|
15
|
-
const [variantProps, componentProps] = recipe.splitVariantProps(props)
|
|
16
|
-
const styles = recipe.raw(variantProps)
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<Comp
|
|
20
|
-
role="button"
|
|
21
|
-
ref={ref}
|
|
22
|
-
className={cx(css(styles), className)}
|
|
23
|
-
{...componentProps}
|
|
24
|
-
/>
|
|
25
|
-
)
|
|
26
|
-
},
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
Button.displayName = "Button"
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { cva, type RecipeVariantProps } from "@styled-system/css"
|
|
2
|
-
|
|
3
|
-
export type ButtonVariantProps = RecipeVariantProps<typeof recipe>
|
|
4
|
-
export const recipe = cva({
|
|
5
|
-
base: {
|
|
6
|
-
display: "inline-flex",
|
|
7
|
-
alignItems: "center",
|
|
8
|
-
justifyContent: "center",
|
|
9
|
-
rounded: "md",
|
|
10
|
-
textStyle: "sm",
|
|
11
|
-
fontWeight: "medium",
|
|
12
|
-
transition: "colors",
|
|
13
|
-
cursor: "pointer",
|
|
14
|
-
gap: "2",
|
|
15
|
-
_focusVisible: {
|
|
16
|
-
ringWidth: "1",
|
|
17
|
-
ringColor: "ring",
|
|
18
|
-
ringOffset: "1",
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
_disabled: {
|
|
22
|
-
cursor: "not-allowed",
|
|
23
|
-
opacity: "50%",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
variants: {
|
|
27
|
-
variant: {
|
|
28
|
-
default: {
|
|
29
|
-
bg: "primary",
|
|
30
|
-
color: "primary.foreground",
|
|
31
|
-
|
|
32
|
-
_hover: {
|
|
33
|
-
bg: "primary/90",
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
destructive: {
|
|
37
|
-
bg: "destructive",
|
|
38
|
-
color: "destructive.foreground",
|
|
39
|
-
|
|
40
|
-
_hover: {
|
|
41
|
-
bg: "destructive/90",
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
outline: {
|
|
45
|
-
border: "input",
|
|
46
|
-
bg: "background",
|
|
47
|
-
|
|
48
|
-
_hover: {
|
|
49
|
-
bg: "accent",
|
|
50
|
-
color: "accent.foreground",
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
secondary: {
|
|
54
|
-
bg: "secondary",
|
|
55
|
-
color: "secondary.foreground",
|
|
56
|
-
|
|
57
|
-
_hover: {
|
|
58
|
-
bga: "secondary/90",
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
ghost: {
|
|
62
|
-
_hover: {
|
|
63
|
-
bg: "accent",
|
|
64
|
-
color: "accent.foreground",
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
link: {
|
|
68
|
-
color: "primary",
|
|
69
|
-
textUnderlineOffset: "4px",
|
|
70
|
-
|
|
71
|
-
_hover: {
|
|
72
|
-
textDecoration: "underline",
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
size: {
|
|
77
|
-
default: {
|
|
78
|
-
h: "10",
|
|
79
|
-
px: "4",
|
|
80
|
-
py: "2",
|
|
81
|
-
},
|
|
82
|
-
sm: {
|
|
83
|
-
h: "9",
|
|
84
|
-
rounded: "md",
|
|
85
|
-
px: "3",
|
|
86
|
-
},
|
|
87
|
-
lg: {
|
|
88
|
-
h: "11",
|
|
89
|
-
rounded: "md",
|
|
90
|
-
px: "8",
|
|
91
|
-
},
|
|
92
|
-
icon: {
|
|
93
|
-
h: "10",
|
|
94
|
-
w: "10",
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
defaultVariants: {
|
|
99
|
-
variant: "default",
|
|
100
|
-
size: "default",
|
|
101
|
-
},
|
|
102
|
-
})
|