@jongh/ui 1.6.5 → 2.20260902.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-CNhK3gho.js +27 -0
- package/dist/chunks/component-avatar-C5ox3FhU.js +15 -0
- package/dist/chunks/component-badge-GyL8C7n9.js +23 -0
- package/dist/chunks/component-box-BnXf833v.js +26 -0
- package/dist/chunks/component-button-cnnLKCl_.js +21 -0
- package/dist/chunks/component-calendar-D53mkOdW.js +240 -0
- package/dist/chunks/component-center-BIp6NkIt.js +32 -0
- package/dist/chunks/component-checkbox-cJlGSnlk.js +54 -0
- package/dist/chunks/component-dialog-yBIkthjw.js +35 -0
- package/dist/chunks/component-grid-BKLFatKL.js +38 -0
- package/dist/chunks/component-h-stack-ODw00BMb.js +36 -0
- package/dist/chunks/component-select-CHwGLpGT.js +52 -0
- package/dist/chunks/component-slider-Ba5H5eY3.js +16 -0
- package/dist/chunks/component-tabs-BIWU8zcA.js +58 -0
- package/dist/chunks/component-textfield-CCdnfRzb.js +53 -0
- package/dist/chunks/component-v-stack-_k842HHc.js +36 -0
- package/dist/chunks/recipe-accordion-recipe-DPDnNF9J.js +27 -0
- package/dist/chunks/recipe-avatar-recipe-HkwMS2OJ.js +24 -0
- package/dist/chunks/recipe-badge-recipe-DWojym5V.js +136 -0
- package/dist/chunks/recipe-button-recipe-BA1JNmBF.js +36 -0
- package/dist/chunks/recipe-calendar-recipe-CUjveeyt.js +31 -0
- package/dist/chunks/recipe-center-recipe-CBm4FTPj.js +24 -0
- package/dist/chunks/recipe-checkbox-recipe-CCDU79zw.js +31 -0
- package/dist/chunks/recipe-dialog-recipe-Dp_2WfN_.js +31 -0
- package/dist/chunks/recipe-layout-recipe-CXAjEcDn.js +20 -0
- package/dist/chunks/recipe-select-recipe-Chdpfb_N.js +33 -0
- package/dist/chunks/recipe-slider-recipe-Bn_q7Je8.js +25 -0
- package/dist/chunks/recipe-tabs-recipe-Bo5qcI1u.js +26 -0
- package/dist/chunks/recipe-textfield-recipe-szIwdV6q.js +27 -0
- package/dist/chunks/rolldown-runtime-CKyOoeiN.js +12 -0
- package/dist/index.d.ts +21694 -0
- package/dist/index.js +583 -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 +62 -37
- 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
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const gridItemConfig = {
|
|
5
|
-
transform(props, { map }) {
|
|
6
|
-
const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props;
|
|
7
|
-
const spanFn = (v) => v === "auto" ? v : `span ${v}`;
|
|
8
|
-
return {
|
|
9
|
-
gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
|
|
10
|
-
gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
|
|
11
|
-
gridColumnStart: colStart,
|
|
12
|
-
gridColumnEnd: colEnd,
|
|
13
|
-
gridRowStart: rowStart,
|
|
14
|
-
gridRowEnd: rowEnd,
|
|
15
|
-
...rest
|
|
16
|
-
};
|
|
17
|
-
}}
|
|
18
|
-
|
|
19
|
-
export const getGridItemStyle = (styles = {}) => {
|
|
20
|
-
const _styles = getPatternStyles(gridItemConfig, styles)
|
|
21
|
-
return gridItemConfig.transform(_styles, patternFns)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const gridItem = (styles) => css(getGridItemStyle(styles))
|
|
25
|
-
gridItem.raw = getGridItemStyle
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface GridProperties {
|
|
9
|
-
gap?: SystemProperties["gap"]
|
|
10
|
-
columnGap?: SystemProperties["gap"]
|
|
11
|
-
rowGap?: SystemProperties["gap"]
|
|
12
|
-
columns?: ConditionalValue<number>
|
|
13
|
-
minChildWidth?: ConditionalValue<Tokens["sizes"] | Properties["width"]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
interface GridStyles extends GridProperties, DistributiveOmit<SystemStyleObject, keyof GridProperties > {}
|
|
18
|
-
|
|
19
|
-
interface GridPatternFn {
|
|
20
|
-
(styles?: GridStyles): string
|
|
21
|
-
raw: (styles?: GridStyles) => SystemStyleObject
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare const grid: GridPatternFn;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const gridConfig = {
|
|
5
|
-
transform(props, { map, isCssUnit }) {
|
|
6
|
-
const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props;
|
|
7
|
-
const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
|
|
8
|
-
return {
|
|
9
|
-
display: "grid",
|
|
10
|
-
gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
|
|
11
|
-
gap,
|
|
12
|
-
columnGap,
|
|
13
|
-
rowGap,
|
|
14
|
-
...rest
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
defaultValues(props) {
|
|
18
|
-
return { gap: props.columnGap || props.rowGap ? void 0 : "10px" };
|
|
19
|
-
}}
|
|
20
|
-
|
|
21
|
-
export const getGridStyle = (styles = {}) => {
|
|
22
|
-
const _styles = getPatternStyles(gridConfig, styles)
|
|
23
|
-
return gridConfig.transform(_styles, patternFns)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const grid = (styles) => css(getGridStyle(styles))
|
|
27
|
-
grid.raw = getGridStyle
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface HstackProperties {
|
|
9
|
-
justify?: SystemProperties["justifyContent"]
|
|
10
|
-
gap?: SystemProperties["gap"]
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
interface HstackStyles extends HstackProperties, DistributiveOmit<SystemStyleObject, keyof HstackProperties > {}
|
|
15
|
-
|
|
16
|
-
interface HstackPatternFn {
|
|
17
|
-
(styles?: HstackStyles): string
|
|
18
|
-
raw: (styles?: HstackStyles) => SystemStyleObject
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare const hstack: HstackPatternFn;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const hstackConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { justify, gap, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
justifyContent: justify,
|
|
11
|
-
gap,
|
|
12
|
-
flexDirection: "row",
|
|
13
|
-
...rest
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
defaultValues:{gap:'10px'}}
|
|
17
|
-
|
|
18
|
-
export const getHstackStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(hstackConfig, styles)
|
|
20
|
-
return hstackConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const hstack = (styles) => css(getHstackStyle(styles))
|
|
24
|
-
hstack.raw = getHstackStyle
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
export * from './box';
|
|
3
|
-
export * from './flex';
|
|
4
|
-
export * from './stack';
|
|
5
|
-
export * from './vstack';
|
|
6
|
-
export * from './hstack';
|
|
7
|
-
export * from './spacer';
|
|
8
|
-
export * from './square';
|
|
9
|
-
export * from './circle';
|
|
10
|
-
export * from './center';
|
|
11
|
-
export * from './link-overlay';
|
|
12
|
-
export * from './aspect-ratio';
|
|
13
|
-
export * from './grid';
|
|
14
|
-
export * from './grid-item';
|
|
15
|
-
export * from './wrap';
|
|
16
|
-
export * from './container';
|
|
17
|
-
export * from './divider';
|
|
18
|
-
export * from './float';
|
|
19
|
-
export * from './bleed';
|
|
20
|
-
export * from './visually-hidden';
|
|
21
|
-
export * from './cq';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from './box.mjs';
|
|
2
|
-
export * from './flex.mjs';
|
|
3
|
-
export * from './stack.mjs';
|
|
4
|
-
export * from './vstack.mjs';
|
|
5
|
-
export * from './hstack.mjs';
|
|
6
|
-
export * from './spacer.mjs';
|
|
7
|
-
export * from './square.mjs';
|
|
8
|
-
export * from './circle.mjs';
|
|
9
|
-
export * from './center.mjs';
|
|
10
|
-
export * from './link-overlay.mjs';
|
|
11
|
-
export * from './aspect-ratio.mjs';
|
|
12
|
-
export * from './grid.mjs';
|
|
13
|
-
export * from './grid-item.mjs';
|
|
14
|
-
export * from './wrap.mjs';
|
|
15
|
-
export * from './container.mjs';
|
|
16
|
-
export * from './divider.mjs';
|
|
17
|
-
export * from './float.mjs';
|
|
18
|
-
export * from './bleed.mjs';
|
|
19
|
-
export * from './visually-hidden.mjs';
|
|
20
|
-
export * from './cq.mjs';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface LinkOverlayProperties {
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
interface LinkOverlayStyles extends LinkOverlayProperties, DistributiveOmit<SystemStyleObject, keyof LinkOverlayProperties > {}
|
|
14
|
-
|
|
15
|
-
interface LinkOverlayPatternFn {
|
|
16
|
-
(styles?: LinkOverlayStyles): string
|
|
17
|
-
raw: (styles?: LinkOverlayStyles) => SystemStyleObject
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const linkOverlay: LinkOverlayPatternFn;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const linkOverlayConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
return {
|
|
7
|
-
_before: {
|
|
8
|
-
content: '""',
|
|
9
|
-
position: "absolute",
|
|
10
|
-
inset: "0",
|
|
11
|
-
zIndex: "0",
|
|
12
|
-
...props["_before"]
|
|
13
|
-
},
|
|
14
|
-
...props
|
|
15
|
-
};
|
|
16
|
-
}}
|
|
17
|
-
|
|
18
|
-
export const getLinkOverlayStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(linkOverlayConfig, styles)
|
|
20
|
-
return linkOverlayConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const linkOverlay = (styles) => css(getLinkOverlayStyle(styles))
|
|
24
|
-
linkOverlay.raw = getLinkOverlayStyle
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface SpacerProperties {
|
|
9
|
-
size?: ConditionalValue<Tokens["spacing"]>
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
interface SpacerStyles extends SpacerProperties, DistributiveOmit<SystemStyleObject, keyof SpacerProperties > {}
|
|
14
|
-
|
|
15
|
-
interface SpacerPatternFn {
|
|
16
|
-
(styles?: SpacerStyles): string
|
|
17
|
-
raw: (styles?: SpacerStyles) => SystemStyleObject
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const spacer: SpacerPatternFn;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const spacerConfig = {
|
|
5
|
-
transform(props, { map }) {
|
|
6
|
-
const { size, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
alignSelf: "stretch",
|
|
9
|
-
justifySelf: "stretch",
|
|
10
|
-
flex: map(size, (v) => v == null ? "1" : `0 0 ${v}`),
|
|
11
|
-
...rest
|
|
12
|
-
};
|
|
13
|
-
}}
|
|
14
|
-
|
|
15
|
-
export const getSpacerStyle = (styles = {}) => {
|
|
16
|
-
const _styles = getPatternStyles(spacerConfig, styles)
|
|
17
|
-
return spacerConfig.transform(_styles, patternFns)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const spacer = (styles) => css(getSpacerStyle(styles))
|
|
21
|
-
spacer.raw = getSpacerStyle
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface SquareProperties {
|
|
9
|
-
size?: SystemProperties["width"]
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
interface SquareStyles extends SquareProperties, DistributiveOmit<SystemStyleObject, keyof SquareProperties > {}
|
|
14
|
-
|
|
15
|
-
interface SquarePatternFn {
|
|
16
|
-
(styles?: SquareStyles): string
|
|
17
|
-
raw: (styles?: SquareStyles) => SystemStyleObject
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const square: SquarePatternFn;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const squareConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { size, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
justifyContent: "center",
|
|
11
|
-
flex: "0 0 auto",
|
|
12
|
-
width: size,
|
|
13
|
-
height: size,
|
|
14
|
-
...rest
|
|
15
|
-
};
|
|
16
|
-
}}
|
|
17
|
-
|
|
18
|
-
export const getSquareStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(squareConfig, styles)
|
|
20
|
-
return squareConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const square = (styles) => css(getSquareStyle(styles))
|
|
24
|
-
square.raw = getSquareStyle
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface StackProperties {
|
|
9
|
-
align?: SystemProperties["alignItems"]
|
|
10
|
-
justify?: SystemProperties["justifyContent"]
|
|
11
|
-
direction?: SystemProperties["flexDirection"]
|
|
12
|
-
gap?: SystemProperties["gap"]
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
interface StackStyles extends StackProperties, DistributiveOmit<SystemStyleObject, keyof StackProperties > {}
|
|
17
|
-
|
|
18
|
-
interface StackPatternFn {
|
|
19
|
-
(styles?: StackStyles): string
|
|
20
|
-
raw: (styles?: StackStyles) => SystemStyleObject
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export declare const stack: StackPatternFn;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const stackConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { align, justify, direction, gap, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
flexDirection: direction,
|
|
10
|
-
alignItems: align,
|
|
11
|
-
justifyContent: justify,
|
|
12
|
-
gap,
|
|
13
|
-
...rest
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
defaultValues:{direction:'column',gap:'10px'}}
|
|
17
|
-
|
|
18
|
-
export const getStackStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(stackConfig, styles)
|
|
20
|
-
return stackConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const stack = (styles) => css(getStackStyle(styles))
|
|
24
|
-
stack.raw = getStackStyle
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface VisuallyHiddenProperties {
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
interface VisuallyHiddenStyles extends VisuallyHiddenProperties, DistributiveOmit<SystemStyleObject, keyof VisuallyHiddenProperties > {}
|
|
14
|
-
|
|
15
|
-
interface VisuallyHiddenPatternFn {
|
|
16
|
-
(styles?: VisuallyHiddenStyles): string
|
|
17
|
-
raw: (styles?: VisuallyHiddenStyles) => SystemStyleObject
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const visuallyHidden: VisuallyHiddenPatternFn;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const visuallyHiddenConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
return {
|
|
7
|
-
srOnly: true,
|
|
8
|
-
...props
|
|
9
|
-
};
|
|
10
|
-
}}
|
|
11
|
-
|
|
12
|
-
export const getVisuallyHiddenStyle = (styles = {}) => {
|
|
13
|
-
const _styles = getPatternStyles(visuallyHiddenConfig, styles)
|
|
14
|
-
return visuallyHiddenConfig.transform(_styles, patternFns)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const visuallyHidden = (styles) => css(getVisuallyHiddenStyle(styles))
|
|
18
|
-
visuallyHidden.raw = getVisuallyHiddenStyle
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface VstackProperties {
|
|
9
|
-
justify?: SystemProperties["justifyContent"]
|
|
10
|
-
gap?: SystemProperties["gap"]
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
interface VstackStyles extends VstackProperties, DistributiveOmit<SystemStyleObject, keyof VstackProperties > {}
|
|
15
|
-
|
|
16
|
-
interface VstackPatternFn {
|
|
17
|
-
(styles?: VstackStyles): string
|
|
18
|
-
raw: (styles?: VstackStyles) => SystemStyleObject
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare const vstack: VstackPatternFn;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const vstackConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { justify, gap, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
justifyContent: justify,
|
|
11
|
-
gap,
|
|
12
|
-
flexDirection: "column",
|
|
13
|
-
...rest
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
defaultValues:{gap:'10px'}}
|
|
17
|
-
|
|
18
|
-
export const getVstackStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(vstackConfig, styles)
|
|
20
|
-
return vstackConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const vstack = (styles) => css(getVstackStyle(styles))
|
|
24
|
-
vstack.raw = getVstackStyle
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface WrapProperties {
|
|
9
|
-
gap?: SystemProperties["gap"]
|
|
10
|
-
rowGap?: SystemProperties["gap"]
|
|
11
|
-
columnGap?: SystemProperties["gap"]
|
|
12
|
-
align?: SystemProperties["alignItems"]
|
|
13
|
-
justify?: SystemProperties["justifyContent"]
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
interface WrapStyles extends WrapProperties, DistributiveOmit<SystemStyleObject, keyof WrapProperties > {}
|
|
18
|
-
|
|
19
|
-
interface WrapPatternFn {
|
|
20
|
-
(styles?: WrapStyles): string
|
|
21
|
-
raw: (styles?: WrapStyles) => SystemStyleObject
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare const wrap: WrapPatternFn;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const wrapConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", align, justify, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
flexWrap: "wrap",
|
|
10
|
-
alignItems: align,
|
|
11
|
-
justifyContent: justify,
|
|
12
|
-
gap,
|
|
13
|
-
columnGap,
|
|
14
|
-
rowGap,
|
|
15
|
-
...rest
|
|
16
|
-
};
|
|
17
|
-
}}
|
|
18
|
-
|
|
19
|
-
export const getWrapStyle = (styles = {}) => {
|
|
20
|
-
const _styles = getPatternStyles(wrapConfig, styles)
|
|
21
|
-
return wrapConfig.transform(_styles, patternFns)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const wrap = (styles) => css(getWrapStyle(styles))
|
|
25
|
-
wrap.raw = getWrapStyle
|