thread-ui 0.1.3 → 0.1.6
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/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +3 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/make-styles/index.d.ts +2 -0
- package/dist/client/make-styles/index.d.ts.map +1 -0
- package/dist/client/make-styles/index.js +2 -0
- package/dist/client/make-styles/index.js.map +1 -0
- package/dist/client/make-styles/make-styles.d.ts +58 -0
- package/dist/client/make-styles/make-styles.d.ts.map +1 -0
- package/dist/client/make-styles/make-styles.js +128 -0
- package/dist/client/make-styles/make-styles.js.map +1 -0
- package/dist/client/theme/index.d.ts +3 -0
- package/dist/client/theme/index.d.ts.map +1 -0
- package/dist/client/theme/index.js +2 -0
- package/dist/client/theme/index.js.map +1 -0
- package/dist/client/theme/theme-provider/index.d.ts +3 -0
- package/dist/client/theme/theme-provider/index.d.ts.map +1 -0
- package/dist/client/theme/theme-provider/index.js +2 -0
- package/dist/client/theme/theme-provider/index.js.map +1 -0
- package/dist/client/theme/theme-provider/set-theme.d.ts +8 -0
- package/dist/client/theme/theme-provider/set-theme.d.ts.map +1 -0
- package/dist/client/theme/theme-provider/set-theme.js +59 -0
- package/dist/client/theme/theme-provider/set-theme.js.map +1 -0
- package/dist/client/theme/theme-provider/theme-provider.d.ts +21 -0
- package/dist/client/theme/theme-provider/theme-provider.d.ts.map +1 -0
- package/dist/client/theme/theme-provider/theme-provider.js +196 -0
- package/dist/client/theme/theme-provider/theme-provider.js.map +1 -0
- package/dist/client/theme/theme-provider/theme-provider.types.d.ts +13 -0
- package/dist/client/theme/theme-provider/theme-provider.types.d.ts.map +1 -0
- package/dist/client/theme/theme-provider/theme-provider.types.js +2 -0
- package/dist/client/theme/theme-provider/theme-provider.types.js.map +1 -0
- package/dist/client/theme/theme.types.d.ts +48 -0
- package/dist/client/theme/theme.types.d.ts.map +1 -0
- package/dist/client/theme/theme.types.js +2 -0
- package/dist/client/theme/theme.types.js.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +6 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/{column-layout → layouts/column-layout}/column-layout.d.ts +3 -0
- package/dist/components/layouts/column-layout/column-layout.d.ts.map +1 -0
- package/dist/components/layouts/column-layout/column-layout.js +44 -0
- package/dist/components/layouts/column-layout/column-layout.js.map +1 -0
- package/dist/components/layouts/column-layout/column-layout.types.d.ts +32 -0
- package/dist/components/layouts/column-layout/column-layout.types.d.ts.map +1 -0
- package/dist/components/layouts/column-layout/column-layout.types.js.map +1 -0
- package/dist/{internal-components → components/layouts/column-layout}/column-skeleton/column-skeleton.d.ts +1 -0
- package/dist/components/layouts/column-layout/column-skeleton/column-skeleton.d.ts.map +1 -0
- package/dist/components/layouts/column-layout/column-skeleton/column-skeleton.js +30 -0
- package/dist/components/layouts/column-layout/column-skeleton/column-skeleton.js.map +1 -0
- package/dist/{internal-components → components/layouts/column-layout}/column-skeleton/column-skeleton.types.d.ts +2 -2
- package/dist/components/layouts/column-layout/column-skeleton/column-skeleton.types.d.ts.map +1 -0
- package/dist/components/layouts/column-layout/column-skeleton/column-skeleton.types.js.map +1 -0
- package/dist/components/layouts/column-layout/column-skeleton/index.d.ts +3 -0
- package/dist/components/layouts/column-layout/column-skeleton/index.d.ts.map +1 -0
- package/dist/components/layouts/column-layout/column-skeleton/index.js.map +1 -0
- package/dist/components/layouts/column-layout/index.d.ts +3 -0
- package/dist/components/layouts/column-layout/index.d.ts.map +1 -0
- package/dist/components/layouts/column-layout/index.js.map +1 -0
- package/dist/components/layouts/footer/footer.d.ts.map +1 -0
- package/dist/components/layouts/footer/footer.js +40 -0
- package/dist/components/layouts/footer/footer.js.map +1 -0
- package/dist/components/{footer → layouts/footer}/footer.types.d.ts +1 -4
- package/dist/components/layouts/footer/footer.types.d.ts.map +1 -0
- package/dist/components/layouts/footer/footer.types.js.map +1 -0
- package/dist/components/layouts/footer/index.d.ts +3 -0
- package/dist/components/layouts/footer/index.d.ts.map +1 -0
- package/dist/components/layouts/footer/index.js +2 -0
- package/dist/components/layouts/footer/index.js.map +1 -0
- package/dist/components/layouts/index.d.ts +4 -0
- package/dist/components/layouts/index.d.ts.map +1 -0
- package/dist/components/layouts/index.js +4 -0
- package/dist/components/layouts/index.js.map +1 -0
- package/dist/components/layouts/masonry-layout/index.d.ts +3 -0
- package/dist/components/layouts/masonry-layout/index.d.ts.map +1 -0
- package/dist/components/layouts/masonry-layout/index.js.map +1 -0
- package/dist/components/layouts/masonry-layout/masonry-layout.d.ts.map +1 -0
- package/dist/components/layouts/masonry-layout/masonry-layout.js +22 -0
- package/dist/components/layouts/masonry-layout/masonry-layout.js.map +1 -0
- package/dist/components/layouts/masonry-layout/masonry-layout.types.d.ts.map +1 -0
- package/dist/components/layouts/masonry-layout/masonry-layout.types.js.map +1 -0
- package/dist/components/media/image-panel/image-panel.d.ts +3 -0
- package/dist/components/media/image-panel/image-panel.d.ts.map +1 -0
- package/dist/components/media/image-panel/image-panel.js +81 -0
- package/dist/components/media/image-panel/image-panel.js.map +1 -0
- package/dist/components/media/image-panel/image-panel.types.d.ts +12 -0
- package/dist/components/media/image-panel/image-panel.types.d.ts.map +1 -0
- package/dist/components/media/image-panel/image-panel.types.js +2 -0
- package/dist/components/media/image-panel/image-panel.types.js.map +1 -0
- package/dist/components/media/image-panel/index.d.ts +3 -0
- package/dist/components/media/image-panel/index.d.ts.map +1 -0
- package/dist/components/media/image-panel/index.js +2 -0
- package/dist/components/media/image-panel/index.js.map +1 -0
- package/dist/components/media/index.d.ts +3 -0
- package/dist/components/media/index.d.ts.map +1 -0
- package/dist/components/media/index.js +3 -0
- package/dist/components/media/index.js.map +1 -0
- package/dist/components/media/info-card/index.d.ts.map +1 -0
- package/dist/components/media/info-card/index.js.map +1 -0
- package/dist/components/media/info-card/info-card.d.ts.map +1 -0
- package/dist/components/media/info-card/info-card.js +57 -0
- package/dist/components/media/info-card/info-card.js.map +1 -0
- package/dist/components/media/info-card/info-card.types.d.ts.map +1 -0
- package/dist/components/media/info-card/info-card.types.js.map +1 -0
- package/dist/components/navigation/index.d.ts +2 -0
- package/dist/components/navigation/index.d.ts.map +1 -0
- package/dist/components/navigation/index.js +2 -0
- package/dist/components/navigation/index.js.map +1 -0
- package/dist/components/navigation/nav-menu/index.d.ts +3 -0
- package/dist/components/navigation/nav-menu/index.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/index.js.map +1 -0
- package/dist/components/navigation/nav-menu/items/base-item/base-item.d.ts +3 -0
- package/dist/components/navigation/nav-menu/items/base-item/base-item.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/base-item/base-item.js +49 -0
- package/dist/components/navigation/nav-menu/items/base-item/base-item.js.map +1 -0
- package/dist/components/{nav-menu → navigation/nav-menu}/items/base-item/base-item.types.d.ts +1 -1
- package/dist/components/navigation/nav-menu/items/base-item/base-item.types.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/base-item/base-item.types.js.map +1 -0
- package/dist/components/navigation/nav-menu/items/base-item/index.d.ts +3 -0
- package/dist/components/navigation/nav-menu/items/base-item/index.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/base-item/index.js.map +1 -0
- package/dist/components/navigation/nav-menu/items/index.d.ts +5 -0
- package/dist/components/navigation/nav-menu/items/index.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/index.js +5 -0
- package/dist/components/navigation/nav-menu/items/index.js.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-drop-down-item/index.d.ts +3 -0
- package/dist/components/navigation/nav-menu/items/nav-drop-down-item/index.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-drop-down-item/index.js.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-drop-down-item/nav-drop-down-item.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-drop-down-item/nav-drop-down-item.js +75 -0
- package/dist/components/navigation/nav-menu/items/nav-drop-down-item/nav-drop-down-item.js.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-drop-down-item/nav-drop-down-item.types.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-drop-down-item/nav-drop-down-item.types.js.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-icon-item/index.d.ts +3 -0
- package/dist/components/navigation/nav-menu/items/nav-icon-item/index.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-icon-item/index.js.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-icon-item/nav-icon-item.d.ts.map +1 -0
- package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-icon-item/nav-icon-item.js +1 -1
- package/dist/components/navigation/nav-menu/items/nav-icon-item/nav-icon-item.js.map +1 -0
- package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-icon-item/nav-icon-item.types.d.ts +1 -1
- package/dist/components/navigation/nav-menu/items/nav-icon-item/nav-icon-item.types.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-icon-item/nav-icon-item.types.js.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-item/index.d.ts +3 -0
- package/dist/components/navigation/nav-menu/items/nav-item/index.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-item/index.js.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-item/nav-item.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-item/nav-item.js +6 -0
- package/dist/components/navigation/nav-menu/items/nav-item/nav-item.js.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-item/nav-item.types.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/items/nav-item/nav-item.types.js.map +1 -0
- package/dist/components/navigation/nav-menu/nav-menu-styles.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/nav-menu-styles.js.map +1 -0
- package/dist/components/navigation/nav-menu/nav-menu.d.ts.map +1 -0
- package/dist/components/{nav-menu → navigation/nav-menu}/nav-menu.js +56 -73
- package/dist/components/navigation/nav-menu/nav-menu.js.map +1 -0
- package/dist/components/navigation/nav-menu/nav-menu.types.d.ts.map +1 -0
- package/dist/components/navigation/nav-menu/nav-menu.types.js.map +1 -0
- package/dist/components/typography/index.d.ts +3 -0
- package/dist/components/typography/index.d.ts.map +1 -0
- package/dist/components/typography/index.js +2 -0
- package/dist/components/typography/index.js.map +1 -0
- package/dist/components/typography/typography.d.ts +20 -0
- package/dist/components/typography/typography.d.ts.map +1 -0
- package/dist/components/typography/typography.js +68 -0
- package/dist/components/typography/typography.js.map +1 -0
- package/dist/components/ui/button/button-recipe.d.ts +2 -0
- package/dist/components/ui/button/button-recipe.d.ts.map +1 -0
- package/dist/components/ui/button/button-recipe.js +240 -0
- package/dist/components/ui/button/button-recipe.js.map +1 -0
- package/dist/components/ui/button/button.d.ts +3 -0
- package/dist/components/ui/button/button.d.ts.map +1 -0
- package/dist/components/ui/button/button.js +12 -0
- package/dist/components/ui/button/button.js.map +1 -0
- package/dist/components/ui/button/button.types.d.ts +13 -0
- package/dist/components/ui/button/button.types.d.ts.map +1 -0
- package/dist/components/ui/button/button.types.js.map +1 -0
- package/dist/components/ui/button/index.d.ts +3 -0
- package/dist/components/ui/button/index.d.ts.map +1 -0
- package/dist/components/ui/button/index.js.map +1 -0
- package/dist/components/ui/divider/divider.d.ts.map +1 -0
- package/dist/components/ui/divider/divider.js +36 -0
- package/dist/components/ui/divider/divider.js.map +1 -0
- package/dist/components/ui/divider/divider.types.d.ts +6 -0
- package/dist/components/ui/divider/divider.types.d.ts.map +1 -0
- package/dist/components/ui/divider/divider.types.js.map +1 -0
- package/dist/components/ui/divider/index.d.ts +3 -0
- package/dist/components/ui/divider/index.d.ts.map +1 -0
- package/dist/components/ui/divider/index.js.map +1 -0
- package/dist/components/{icon → ui/icon}/icon.d.ts +1 -2
- package/dist/components/ui/icon/icon.d.ts.map +1 -0
- package/dist/components/{icon → ui/icon}/icon.js +2 -2
- package/dist/components/ui/icon/icon.js.map +1 -0
- package/dist/components/{icon → ui/icon}/icon.types.d.ts +2 -3
- package/dist/components/ui/icon/icon.types.d.ts.map +1 -0
- package/dist/components/ui/icon/icon.types.js.map +1 -0
- package/dist/components/ui/icon/index.d.ts +3 -0
- package/dist/components/ui/icon/index.d.ts.map +1 -0
- package/dist/components/ui/icon/index.js.map +1 -0
- package/dist/components/ui/icon-button/icon-button.d.ts +3 -0
- package/dist/components/ui/icon-button/icon-button.d.ts.map +1 -0
- package/dist/components/ui/icon-button/icon-button.js +11 -0
- package/dist/components/ui/icon-button/icon-button.js.map +1 -0
- package/dist/components/ui/icon-button/icon-button.types.d.ts +8 -0
- package/dist/components/ui/icon-button/icon-button.types.d.ts.map +1 -0
- package/dist/components/ui/icon-button/icon-button.types.js.map +1 -0
- package/dist/components/ui/icon-button/index.d.ts +3 -0
- package/dist/components/ui/icon-button/index.d.ts.map +1 -0
- package/dist/components/ui/icon-button/index.js.map +1 -0
- package/dist/components/ui/index.d.ts +7 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +7 -0
- package/dist/components/ui/index.js.map +1 -0
- package/dist/components/ui/mode-controller/index.d.ts +2 -0
- package/dist/components/ui/mode-controller/index.d.ts.map +1 -0
- package/dist/components/ui/mode-controller/index.js +2 -0
- package/dist/components/ui/mode-controller/index.js.map +1 -0
- package/dist/components/ui/mode-controller/mode-controller.d.ts +2 -0
- package/dist/components/ui/mode-controller/mode-controller.d.ts.map +1 -0
- package/dist/components/ui/mode-controller/mode-controller.js +15 -0
- package/dist/components/ui/mode-controller/mode-controller.js.map +1 -0
- package/dist/components/ui/toggle/index.d.ts +3 -0
- package/dist/components/ui/toggle/index.d.ts.map +1 -0
- package/dist/components/ui/toggle/index.js +2 -0
- package/dist/components/ui/toggle/index.js.map +1 -0
- package/dist/components/ui/toggle/toggle.d.ts.map +1 -0
- package/dist/components/{toggle → ui/toggle}/toggle.js +3 -4
- package/dist/components/ui/toggle/toggle.js.map +1 -0
- package/dist/components/{toggle → ui/toggle}/toggle.types.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.types.d.ts.map +1 -0
- package/dist/components/ui/toggle/toggle.types.js.map +1 -0
- package/dist/defaults/container/container.d.ts +6 -0
- package/dist/defaults/container/container.d.ts.map +1 -0
- package/dist/defaults/container/container.js +12 -0
- package/dist/defaults/container/container.js.map +1 -0
- package/dist/defaults/container/index.d.ts +2 -0
- package/dist/defaults/container/index.d.ts.map +1 -0
- package/dist/defaults/container/index.js +2 -0
- package/dist/defaults/container/index.js.map +1 -0
- package/dist/defaults/index.d.ts +1 -1
- package/dist/defaults/index.d.ts.map +1 -1
- package/dist/defaults/index.js +1 -2
- package/dist/defaults/index.js.map +1 -1
- package/dist/index.d.ts +2 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -12
- package/dist/index.js.map +1 -1
- package/dist/internal-components/image/index.d.ts +2 -0
- package/dist/internal-components/image/index.d.ts.map +1 -0
- package/dist/internal-components/image/index.js +2 -0
- package/dist/internal-components/image/index.js.map +1 -0
- package/dist/internal-components/image/is-html-image-props.d.ts +3 -0
- package/dist/internal-components/image/is-html-image-props.d.ts.map +1 -0
- package/dist/internal-components/image/is-html-image-props.js +9 -0
- package/dist/internal-components/image/is-html-image-props.js.map +1 -0
- package/dist/internal-components/image/render-image.d.ts +4 -0
- package/dist/internal-components/image/render-image.d.ts.map +1 -0
- package/dist/internal-components/image/render-image.js +25 -0
- package/dist/internal-components/image/render-image.js.map +1 -0
- package/dist/internal-components/index.d.ts +1 -1
- package/dist/internal-components/index.d.ts.map +1 -1
- package/dist/internal-components/index.js +1 -1
- package/dist/internal-components/index.js.map +1 -1
- package/dist/internal-components/link-wrapper/index.d.ts +1 -1
- package/dist/internal-components/link-wrapper/index.d.ts.map +1 -1
- package/dist/styled-system/css/conditions.mjs +36 -0
- package/dist/styled-system/css/css.d.ts +22 -0
- package/dist/styled-system/css/css.mjs +45 -0
- package/dist/styled-system/css/cva.d.ts +6 -0
- package/dist/styled-system/css/cva.mjs +87 -0
- package/dist/styled-system/css/cx.d.ts +5 -0
- package/dist/styled-system/css/cx.mjs +15 -0
- package/dist/styled-system/css/index.d.ts +5 -0
- package/dist/styled-system/css/index.mjs +4 -0
- package/dist/styled-system/css/sva.d.ts +4 -0
- package/dist/styled-system/css/sva.mjs +41 -0
- package/dist/styled-system/debug/config.json +7433 -0
- package/dist/styled-system/helpers.mjs +327 -0
- package/dist/styled-system/patterns/aspect-ratio.d.ts +20 -0
- package/dist/styled-system/patterns/aspect-ratio.mjs +38 -0
- package/dist/styled-system/patterns/bleed.d.ts +21 -0
- package/dist/styled-system/patterns/bleed.mjs +24 -0
- package/dist/styled-system/patterns/box.d.ts +20 -0
- package/dist/styled-system/patterns/box.mjs +15 -0
- package/dist/styled-system/patterns/center.d.ts +20 -0
- package/dist/styled-system/patterns/center.mjs +21 -0
- package/dist/styled-system/patterns/circle.d.ts +20 -0
- package/dist/styled-system/patterns/circle.mjs +25 -0
- package/dist/styled-system/patterns/container.d.ts +22 -0
- package/dist/styled-system/patterns/container.mjs +15 -0
- package/dist/styled-system/patterns/cq.d.ts +21 -0
- package/dist/styled-system/patterns/cq.mjs +21 -0
- package/dist/styled-system/patterns/divider.d.ts +22 -0
- package/dist/styled-system/patterns/divider.mjs +25 -0
- package/dist/styled-system/patterns/flex.d.ts +26 -0
- package/dist/styled-system/patterns/flex.mjs +26 -0
- package/dist/styled-system/patterns/float.d.ts +23 -0
- package/dist/styled-system/patterns/float.mjs +52 -0
- package/dist/styled-system/patterns/grid-item.d.ts +25 -0
- package/dist/styled-system/patterns/grid-item.mjs +25 -0
- package/dist/styled-system/patterns/grid.d.ts +24 -0
- package/dist/styled-system/patterns/grid.mjs +27 -0
- package/dist/styled-system/patterns/hstack.d.ts +21 -0
- package/dist/styled-system/patterns/hstack.mjs +24 -0
- package/dist/styled-system/patterns/index.d.ts +21 -0
- package/dist/styled-system/patterns/index.mjs +20 -0
- package/dist/styled-system/patterns/link-overlay.d.ts +20 -0
- package/dist/styled-system/patterns/link-overlay.mjs +24 -0
- package/dist/styled-system/patterns/spacer.d.ts +20 -0
- package/dist/styled-system/patterns/spacer.mjs +21 -0
- package/dist/styled-system/patterns/square.d.ts +20 -0
- package/dist/styled-system/patterns/square.mjs +24 -0
- package/dist/styled-system/patterns/stack.d.ts +23 -0
- package/dist/styled-system/patterns/stack.mjs +24 -0
- package/dist/styled-system/patterns/visually-hidden.d.ts +20 -0
- package/dist/styled-system/patterns/visually-hidden.mjs +18 -0
- package/dist/styled-system/patterns/vstack.d.ts +21 -0
- package/dist/styled-system/patterns/vstack.mjs +24 -0
- package/dist/styled-system/patterns/wrap.d.ts +24 -0
- package/dist/styled-system/patterns/wrap.mjs +25 -0
- package/dist/styled-system/recipes/button.d.ts +43 -0
- package/dist/styled-system/recipes/button.mjs +154 -0
- package/dist/styled-system/recipes/create-recipe.mjs +82 -0
- package/dist/styled-system/recipes/index.d.ts +2 -0
- package/dist/styled-system/recipes/index.mjs +1 -0
- package/dist/styled-system/styles.css +750 -0
- package/dist/styled-system/tokens/index.d.ts +9 -0
- package/dist/styled-system/tokens/index.mjs +2060 -0
- package/dist/styled-system/tokens/tokens.d.ts +63 -0
- package/dist/styled-system/types/composition.d.ts +164 -0
- package/dist/styled-system/types/conditions.d.ts +306 -0
- package/dist/styled-system/types/csstype.d.ts +21298 -0
- package/dist/styled-system/types/global.d.ts +20 -0
- package/dist/styled-system/types/index.d.ts +7 -0
- package/dist/styled-system/types/parts.d.ts +8 -0
- package/dist/styled-system/types/pattern.d.ts +78 -0
- package/dist/styled-system/types/prop-type.d.ts +255 -0
- package/dist/styled-system/types/recipe.d.ts +181 -0
- package/dist/styled-system/types/selectors.d.ts +59 -0
- package/dist/styled-system/types/static-css.d.ts +56 -0
- package/dist/styled-system/types/style-props.d.ts +7491 -0
- package/dist/styled-system/types/system-types.d.ts +193 -0
- package/dist/styles/panda.css +1610 -0
- package/dist/styles/styles.css +692 -0
- package/dist/styles/thread.css +136 -819
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +2 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/thread-theme.d.ts +4 -0
- package/dist/theme/thread-theme.d.ts.map +1 -0
- package/dist/theme/thread-theme.js +84 -0
- package/dist/theme/thread-theme.js.map +1 -0
- package/dist/types/colors/index.d.ts +2 -0
- package/dist/types/colors/index.d.ts.map +1 -0
- package/dist/{components/footer → types/colors}/index.js.map +1 -1
- package/dist/types/colors/utility-color-options.types.d.ts +2 -1
- package/dist/types/colors/utility-color-options.types.d.ts.map +1 -1
- package/dist/types/image/image.types.d.ts +8 -5
- package/dist/types/image/image.types.d.ts.map +1 -1
- package/dist/types/image/index.d.ts +2 -0
- package/dist/types/image/index.d.ts.map +1 -0
- package/dist/types/image/index.js +2 -0
- package/dist/types/image/index.js.map +1 -0
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +8 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/index.d.ts.map +1 -0
- package/dist/types/theme/index.js +2 -0
- package/dist/types/theme/index.js.map +1 -0
- package/dist/types/theme/theme.types.d.ts +45 -16
- package/dist/types/theme/theme.types.d.ts.map +1 -1
- package/dist/types/utility/deep-partial.types.d.ts +4 -0
- package/dist/types/utility/deep-partial.types.d.ts.map +1 -0
- package/dist/types/utility/deep-partial.types.js +2 -0
- package/dist/types/utility/deep-partial.types.js.map +1 -0
- package/dist/types/utility/index.d.ts +2 -0
- package/dist/types/utility/index.d.ts.map +1 -0
- package/dist/types/utility/index.js +2 -0
- package/dist/types/utility/index.js.map +1 -0
- package/dist/utils/deep-merge/deep-merge.d.ts +1 -3
- package/dist/utils/deep-merge/deep-merge.d.ts.map +1 -1
- package/dist/utils/deep-merge/deep-merge.js.map +1 -1
- package/dist/utils/deep-merge/index.d.ts +2 -0
- package/dist/utils/deep-merge/index.d.ts.map +1 -0
- package/dist/utils/deep-merge/index.js +2 -0
- package/dist/utils/deep-merge/index.js.map +1 -0
- package/dist/utils/get-colored-text-color/get-colored-text-color.d.ts +8 -0
- package/dist/utils/get-colored-text-color/get-colored-text-color.d.ts.map +1 -0
- package/dist/utils/get-colored-text-color/get-colored-text-color.js +37 -0
- package/dist/utils/get-colored-text-color/get-colored-text-color.js.map +1 -0
- package/dist/utils/get-colored-text-color/index.d.ts +2 -0
- package/dist/utils/get-colored-text-color/index.d.ts.map +1 -0
- package/dist/utils/get-colored-text-color/index.js +2 -0
- package/dist/utils/get-colored-text-color/index.js.map +1 -0
- package/dist/utils/get-text-color/get-text-color.d.ts +8 -0
- package/dist/utils/get-text-color/get-text-color.d.ts.map +1 -0
- package/dist/utils/get-text-color/get-text-color.js +19 -0
- package/dist/utils/get-text-color/get-text-color.js.map +1 -0
- package/dist/utils/get-text-color/index.d.ts +2 -0
- package/dist/utils/get-text-color/index.d.ts.map +1 -0
- package/dist/utils/get-text-color/index.js +2 -0
- package/dist/utils/get-text-color/index.js.map +1 -0
- package/dist/utils/get-utility-color/get-utility-color-value.d.ts +5 -0
- package/dist/utils/get-utility-color/get-utility-color-value.d.ts.map +1 -1
- package/dist/utils/get-utility-color/get-utility-color-value.js +17 -14
- package/dist/utils/get-utility-color/get-utility-color-value.js.map +1 -1
- package/dist/utils/get-utility-color/index.d.ts +2 -0
- package/dist/utils/get-utility-color/index.d.ts.map +1 -0
- package/dist/utils/get-utility-color/index.js +2 -0
- package/dist/utils/get-utility-color/index.js.map +1 -0
- package/dist/utils/get-utility-font-size/getUtilityFontSize.d.ts +3 -0
- package/dist/utils/get-utility-font-size/getUtilityFontSize.d.ts.map +1 -0
- package/dist/utils/get-utility-font-size/getUtilityFontSize.js +11 -0
- package/dist/utils/get-utility-font-size/getUtilityFontSize.js.map +1 -0
- package/dist/utils/get-utility-font-size/index.d.ts +2 -0
- package/dist/utils/get-utility-font-size/index.d.ts.map +1 -0
- package/dist/utils/get-utility-font-size/index.js +2 -0
- package/dist/utils/get-utility-font-size/index.js.map +1 -0
- package/dist/utils/get-utility-icon-size/get-utility-icon-size.d.ts +4 -0
- package/dist/utils/get-utility-icon-size/get-utility-icon-size.d.ts.map +1 -0
- package/dist/utils/get-utility-icon-size/get-utility-icon-size.js +13 -0
- package/dist/utils/get-utility-icon-size/get-utility-icon-size.js.map +1 -0
- package/dist/utils/get-utility-icon-size/index.d.ts +2 -0
- package/dist/utils/get-utility-icon-size/index.d.ts.map +1 -0
- package/dist/utils/get-utility-icon-size/index.js +2 -0
- package/dist/utils/get-utility-icon-size/index.js.map +1 -0
- package/dist/utils/get-utility-size-value/get-utility-size-value.d.ts +3 -0
- package/dist/utils/get-utility-size-value/get-utility-size-value.d.ts.map +1 -0
- package/dist/utils/{get-utility-size → get-utility-size-value}/get-utility-size-value.js +4 -5
- package/dist/utils/get-utility-size-value/get-utility-size-value.js.map +1 -0
- package/dist/utils/get-utility-size-value/index.d.ts +2 -0
- package/dist/utils/get-utility-size-value/index.d.ts.map +1 -0
- package/dist/utils/get-utility-size-value/index.js +2 -0
- package/dist/utils/get-utility-size-value/index.js.map +1 -0
- package/dist/utils/index.d.ts +7 -5
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +7 -5
- package/dist/utils/index.js.map +1 -1
- package/package.json +21 -11
- package/dist/components/button/base-button/base-button.d.ts +0 -3
- package/dist/components/button/base-button/base-button.d.ts.map +0 -1
- package/dist/components/button/base-button/base-button.js +0 -40
- package/dist/components/button/base-button/base-button.js.map +0 -1
- package/dist/components/button/base-button/base-button.types.d.ts +0 -15
- package/dist/components/button/base-button/base-button.types.d.ts.map +0 -1
- package/dist/components/button/base-button/base-button.types.js +0 -2
- package/dist/components/button/base-button/base-button.types.js.map +0 -1
- package/dist/components/button/button.d.ts +0 -3
- package/dist/components/button/button.d.ts.map +0 -1
- package/dist/components/button/button.js +0 -7
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button/button.types.d.ts +0 -6
- package/dist/components/button/button.types.d.ts.map +0 -1
- package/dist/components/button/button.types.js.map +0 -1
- package/dist/components/button/index.d.ts +0 -3
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/column-layout/column-layout.d.ts.map +0 -1
- package/dist/components/column-layout/column-layout.js +0 -9
- package/dist/components/column-layout/column-layout.js.map +0 -1
- package/dist/components/column-layout/column-layout.types.d.ts +0 -17
- package/dist/components/column-layout/column-layout.types.d.ts.map +0 -1
- package/dist/components/column-layout/column-layout.types.js.map +0 -1
- package/dist/components/column-layout/index.d.ts +0 -3
- package/dist/components/column-layout/index.d.ts.map +0 -1
- package/dist/components/column-layout/index.js.map +0 -1
- package/dist/components/divider/divider.d.ts.map +0 -1
- package/dist/components/divider/divider.js +0 -31
- package/dist/components/divider/divider.js.map +0 -1
- package/dist/components/divider/divider.types.d.ts +0 -6
- package/dist/components/divider/divider.types.d.ts.map +0 -1
- package/dist/components/divider/divider.types.js.map +0 -1
- package/dist/components/divider/index.d.ts +0 -3
- package/dist/components/divider/index.d.ts.map +0 -1
- package/dist/components/divider/index.js.map +0 -1
- package/dist/components/footer/footer.d.ts.map +0 -1
- package/dist/components/footer/footer.js +0 -25
- package/dist/components/footer/footer.js.map +0 -1
- package/dist/components/footer/footer.types.d.ts.map +0 -1
- package/dist/components/footer/footer.types.js.map +0 -1
- package/dist/components/footer/index.d.ts +0 -2
- package/dist/components/footer/index.d.ts.map +0 -1
- package/dist/components/icon/icon.d.ts.map +0 -1
- package/dist/components/icon/icon.js.map +0 -1
- package/dist/components/icon/icon.types.d.ts.map +0 -1
- package/dist/components/icon/icon.types.js.map +0 -1
- package/dist/components/icon/index.d.ts +0 -3
- package/dist/components/icon/index.d.ts.map +0 -1
- package/dist/components/icon/index.js.map +0 -1
- package/dist/components/icon-button/icon-button.d.ts +0 -3
- package/dist/components/icon-button/icon-button.d.ts.map +0 -1
- package/dist/components/icon-button/icon-button.js +0 -10
- package/dist/components/icon-button/icon-button.js.map +0 -1
- package/dist/components/icon-button/icon-button.types.d.ts +0 -8
- package/dist/components/icon-button/icon-button.types.d.ts.map +0 -1
- package/dist/components/icon-button/icon-button.types.js.map +0 -1
- package/dist/components/icon-button/index.d.ts +0 -3
- package/dist/components/icon-button/index.d.ts.map +0 -1
- package/dist/components/icon-button/index.js.map +0 -1
- package/dist/components/info-card/index.d.ts.map +0 -1
- package/dist/components/info-card/index.js.map +0 -1
- package/dist/components/info-card/info-card.d.ts.map +0 -1
- package/dist/components/info-card/info-card.js +0 -5
- package/dist/components/info-card/info-card.js.map +0 -1
- package/dist/components/info-card/info-card.types.d.ts.map +0 -1
- package/dist/components/info-card/info-card.types.js.map +0 -1
- package/dist/components/masonry-layout/index.d.ts +0 -3
- package/dist/components/masonry-layout/index.d.ts.map +0 -1
- package/dist/components/masonry-layout/index.js.map +0 -1
- package/dist/components/masonry-layout/masonry-layout.d.ts.map +0 -1
- package/dist/components/masonry-layout/masonry-layout.js +0 -5
- package/dist/components/masonry-layout/masonry-layout.js.map +0 -1
- package/dist/components/masonry-layout/masonry-layout.types.d.ts.map +0 -1
- package/dist/components/masonry-layout/masonry-layout.types.js.map +0 -1
- package/dist/components/nav-menu/index.d.ts +0 -3
- package/dist/components/nav-menu/index.d.ts.map +0 -1
- package/dist/components/nav-menu/index.js.map +0 -1
- package/dist/components/nav-menu/items/base-item/base-item.d.ts +0 -3
- package/dist/components/nav-menu/items/base-item/base-item.d.ts.map +0 -1
- package/dist/components/nav-menu/items/base-item/base-item.js +0 -47
- package/dist/components/nav-menu/items/base-item/base-item.js.map +0 -1
- package/dist/components/nav-menu/items/base-item/base-item.types.d.ts.map +0 -1
- package/dist/components/nav-menu/items/base-item/base-item.types.js.map +0 -1
- package/dist/components/nav-menu/items/base-item/index.d.ts +0 -3
- package/dist/components/nav-menu/items/base-item/index.d.ts.map +0 -1
- package/dist/components/nav-menu/items/base-item/index.js.map +0 -1
- package/dist/components/nav-menu/items/nav-drop-down-item/index.d.ts +0 -3
- package/dist/components/nav-menu/items/nav-drop-down-item/index.d.ts.map +0 -1
- package/dist/components/nav-menu/items/nav-drop-down-item/index.js.map +0 -1
- package/dist/components/nav-menu/items/nav-drop-down-item/nav-drop-down-item.d.ts.map +0 -1
- package/dist/components/nav-menu/items/nav-drop-down-item/nav-drop-down-item.js +0 -64
- package/dist/components/nav-menu/items/nav-drop-down-item/nav-drop-down-item.js.map +0 -1
- package/dist/components/nav-menu/items/nav-drop-down-item/nav-drop-down-item.types.d.ts.map +0 -1
- package/dist/components/nav-menu/items/nav-drop-down-item/nav-drop-down-item.types.js.map +0 -1
- package/dist/components/nav-menu/items/nav-icon-item/index.d.ts +0 -3
- package/dist/components/nav-menu/items/nav-icon-item/index.d.ts.map +0 -1
- package/dist/components/nav-menu/items/nav-icon-item/index.js.map +0 -1
- package/dist/components/nav-menu/items/nav-icon-item/nav-icon-item.d.ts.map +0 -1
- package/dist/components/nav-menu/items/nav-icon-item/nav-icon-item.js.map +0 -1
- package/dist/components/nav-menu/items/nav-icon-item/nav-icon-item.types.d.ts.map +0 -1
- package/dist/components/nav-menu/items/nav-icon-item/nav-icon-item.types.js.map +0 -1
- package/dist/components/nav-menu/items/nav-item/index.d.ts +0 -3
- package/dist/components/nav-menu/items/nav-item/index.d.ts.map +0 -1
- package/dist/components/nav-menu/items/nav-item/index.js.map +0 -1
- package/dist/components/nav-menu/items/nav-item/nav-item.d.ts.map +0 -1
- package/dist/components/nav-menu/items/nav-item/nav-item.js +0 -14
- package/dist/components/nav-menu/items/nav-item/nav-item.js.map +0 -1
- package/dist/components/nav-menu/items/nav-item/nav-item.types.d.ts.map +0 -1
- package/dist/components/nav-menu/items/nav-item/nav-item.types.js.map +0 -1
- package/dist/components/nav-menu/nav-menu-styles.d.ts.map +0 -1
- package/dist/components/nav-menu/nav-menu-styles.js.map +0 -1
- package/dist/components/nav-menu/nav-menu.d.ts.map +0 -1
- package/dist/components/nav-menu/nav-menu.js.map +0 -1
- package/dist/components/nav-menu/nav-menu.types.d.ts.map +0 -1
- package/dist/components/nav-menu/nav-menu.types.js.map +0 -1
- package/dist/components/toggle/index.d.ts +0 -4
- package/dist/components/toggle/index.d.ts.map +0 -1
- package/dist/components/toggle/index.js +0 -3
- package/dist/components/toggle/index.js.map +0 -1
- package/dist/components/toggle/mode-toggle/mode-toggle.d.ts +0 -2
- package/dist/components/toggle/mode-toggle/mode-toggle.d.ts.map +0 -1
- package/dist/components/toggle/mode-toggle/mode-toggle.js +0 -9
- package/dist/components/toggle/mode-toggle/mode-toggle.js.map +0 -1
- package/dist/components/toggle/toggle.d.ts.map +0 -1
- package/dist/components/toggle/toggle.js.map +0 -1
- package/dist/components/toggle/toggle.types.d.ts.map +0 -1
- package/dist/components/toggle/toggle.types.js.map +0 -1
- package/dist/defaults/theme/default-theme.d.ts +0 -3
- package/dist/defaults/theme/default-theme.d.ts.map +0 -1
- package/dist/defaults/theme/default-theme.js +0 -92
- package/dist/defaults/theme/default-theme.js.map +0 -1
- package/dist/internal-components/column-skeleton/column-skeleton.d.ts.map +0 -1
- package/dist/internal-components/column-skeleton/column-skeleton.js +0 -27
- package/dist/internal-components/column-skeleton/column-skeleton.js.map +0 -1
- package/dist/internal-components/column-skeleton/column-skeleton.types.d.ts.map +0 -1
- package/dist/internal-components/column-skeleton/column-skeleton.types.js.map +0 -1
- package/dist/internal-components/column-skeleton/index.d.ts +0 -3
- package/dist/internal-components/column-skeleton/index.d.ts.map +0 -1
- package/dist/internal-components/column-skeleton/index.js.map +0 -1
- package/dist/types/theme/borders/borders.types.d.ts +0 -11
- package/dist/types/theme/borders/borders.types.d.ts.map +0 -1
- package/dist/types/theme/borders/borders.types.js +0 -2
- package/dist/types/theme/borders/borders.types.js.map +0 -1
- package/dist/types/theme/colors/colors.types.d.ts +0 -37
- package/dist/types/theme/colors/colors.types.d.ts.map +0 -1
- package/dist/types/theme/colors/colors.types.js +0 -2
- package/dist/types/theme/colors/colors.types.js.map +0 -1
- package/dist/types/theme/size/themeSizes.types.d.ts +0 -9
- package/dist/types/theme/size/themeSizes.types.d.ts.map +0 -1
- package/dist/types/theme/size/themeSizes.types.js +0 -2
- package/dist/types/theme/size/themeSizes.types.js.map +0 -1
- package/dist/utils/get-utility-size/get-utility-size-value.d.ts +0 -3
- package/dist/utils/get-utility-size/get-utility-size-value.d.ts.map +0 -1
- package/dist/utils/get-utility-size/get-utility-size-value.js.map +0 -1
- package/dist/utils/is-next-env/index.d.ts +0 -2
- package/dist/utils/is-next-env/index.d.ts.map +0 -1
- package/dist/utils/is-next-env/index.js +0 -2
- package/dist/utils/is-next-env/index.js.map +0 -1
- package/dist/utils/is-next-env/is-next-env.d.ts +0 -2
- package/dist/utils/is-next-env/is-next-env.d.ts.map +0 -1
- package/dist/utils/is-next-env/is-next-env.js +0 -18
- package/dist/utils/is-next-env/is-next-env.js.map +0 -1
- package/dist/utils/responsive/responsive-styles.d.ts +0 -4
- package/dist/utils/responsive/responsive-styles.d.ts.map +0 -1
- package/dist/utils/responsive/responsive-styles.js +0 -55
- package/dist/utils/responsive/responsive-styles.js.map +0 -1
- package/dist/utils/responsive/responsive-styles.types.d.ts +0 -8
- package/dist/utils/responsive/responsive-styles.types.d.ts.map +0 -1
- package/dist/utils/responsive/responsive-styles.types.js +0 -2
- package/dist/utils/responsive/responsive-styles.types.js.map +0 -1
- package/dist/utils/theme/create-theme.d.ts +0 -5
- package/dist/utils/theme/create-theme.d.ts.map +0 -1
- package/dist/utils/theme/create-theme.js +0 -18
- package/dist/utils/theme/create-theme.js.map +0 -1
- package/dist/utils/theme/use-theme.d.ts +0 -9
- package/dist/utils/theme/use-theme.d.ts.map +0 -1
- package/dist/utils/theme/use-theme.js +0 -32
- package/dist/utils/theme/use-theme.js.map +0 -1
- /package/dist/components/{column-layout → layouts/column-layout}/column-layout.types.js +0 -0
- /package/dist/{internal-components → components/layouts/column-layout}/column-skeleton/column-skeleton.types.js +0 -0
- /package/dist/{internal-components → components/layouts/column-layout}/column-skeleton/index.js +0 -0
- /package/dist/components/{column-layout → layouts/column-layout}/index.js +0 -0
- /package/dist/components/{footer → layouts/footer}/footer.d.ts +0 -0
- /package/dist/components/{footer → layouts/footer}/footer.types.js +0 -0
- /package/dist/components/{masonry-layout → layouts/masonry-layout}/index.js +0 -0
- /package/dist/components/{masonry-layout → layouts/masonry-layout}/masonry-layout.d.ts +0 -0
- /package/dist/components/{masonry-layout → layouts/masonry-layout}/masonry-layout.types.d.ts +0 -0
- /package/dist/components/{masonry-layout → layouts/masonry-layout}/masonry-layout.types.js +0 -0
- /package/dist/components/{info-card → media/info-card}/index.d.ts +0 -0
- /package/dist/components/{info-card → media/info-card}/index.js +0 -0
- /package/dist/components/{info-card → media/info-card}/info-card.d.ts +0 -0
- /package/dist/components/{info-card → media/info-card}/info-card.types.d.ts +0 -0
- /package/dist/components/{info-card → media/info-card}/info-card.types.js +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/index.js +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/base-item/base-item.types.js +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/base-item/index.js +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-drop-down-item/index.js +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-drop-down-item/nav-drop-down-item.d.ts +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-drop-down-item/nav-drop-down-item.types.d.ts +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-drop-down-item/nav-drop-down-item.types.js +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-icon-item/index.js +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-icon-item/nav-icon-item.d.ts +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-icon-item/nav-icon-item.types.js +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-item/index.js +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-item/nav-item.d.ts +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-item/nav-item.types.d.ts +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/items/nav-item/nav-item.types.js +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/nav-menu-styles.d.ts +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/nav-menu-styles.js +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/nav-menu.d.ts +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/nav-menu.types.d.ts +0 -0
- /package/dist/components/{nav-menu → navigation/nav-menu}/nav-menu.types.js +0 -0
- /package/dist/components/{button → ui/button}/button.types.js +0 -0
- /package/dist/components/{button → ui/button}/index.js +0 -0
- /package/dist/components/{divider → ui/divider}/divider.d.ts +0 -0
- /package/dist/components/{divider → ui/divider}/divider.types.js +0 -0
- /package/dist/components/{divider → ui/divider}/index.js +0 -0
- /package/dist/components/{icon → ui/icon}/icon.types.js +0 -0
- /package/dist/components/{icon → ui/icon}/index.js +0 -0
- /package/dist/components/{icon-button → ui/icon-button}/icon-button.types.js +0 -0
- /package/dist/components/{icon-button → ui/icon-button}/index.js +0 -0
- /package/dist/components/{toggle → ui/toggle}/toggle.d.ts +0 -0
- /package/dist/components/{toggle → ui/toggle}/toggle.types.js +0 -0
- /package/dist/{components/footer → types/colors}/index.js +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
import type * as Panda from '@pandacss/dev'
|
|
4
|
+
import type { RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig } from './recipe';
|
|
5
|
+
import type { Parts } from './parts';
|
|
6
|
+
import type { PatternConfig, PatternProperties } from './pattern';
|
|
7
|
+
import type { GlobalStyleObject, SystemStyleObject } from './system-types';
|
|
8
|
+
import type { CompositionStyles } from './composition';
|
|
9
|
+
|
|
10
|
+
declare module '@pandacss/dev' {
|
|
11
|
+
export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): Panda.RecipeConfig
|
|
12
|
+
export function defineSlotRecipe<S extends string, V extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, V>): Panda.SlotRecipeConfig
|
|
13
|
+
export function defineStyles(definition: SystemStyleObject): SystemStyleObject
|
|
14
|
+
export function defineGlobalStyles(definition: GlobalStyleObject): Panda.GlobalStyleObject
|
|
15
|
+
export function defineTextStyles(definition: CompositionStyles['textStyles']): Panda.TextStyles
|
|
16
|
+
export function defineAnimationStyles(definition: CompositionStyles['animationStyles']): Panda.AnimationStyles
|
|
17
|
+
export function defineLayerStyles(definition: CompositionStyles['layerStyles']): Panda.LayerStyles
|
|
18
|
+
export function definePattern<T extends PatternProperties>(config: PatternConfig<T>): Panda.PatternConfig
|
|
19
|
+
export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
|
|
20
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { CssProperty, SystemStyleObject } from './system-types';
|
|
3
|
+
import type { TokenCategory } from '../tokens/index';
|
|
4
|
+
|
|
5
|
+
type Primitive = string | number | boolean | null | undefined
|
|
6
|
+
type LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)
|
|
7
|
+
|
|
8
|
+
export type PatternProperty =
|
|
9
|
+
| { type: 'property'; value: CssProperty }
|
|
10
|
+
| { type: 'enum'; value: string[] }
|
|
11
|
+
| { type: 'token'; value: TokenCategory; property?: CssProperty }
|
|
12
|
+
| { type: 'string' | 'boolean' | 'number' }
|
|
13
|
+
|
|
14
|
+
export interface PatternHelpers {
|
|
15
|
+
map: (value: any, fn: (value: string) => string | undefined) => any
|
|
16
|
+
isCssUnit: (value: any) => boolean
|
|
17
|
+
isCssVar: (value: any) => boolean
|
|
18
|
+
isCssFunction: (value: any) => boolean
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface PatternProperties {
|
|
22
|
+
[key: string]: PatternProperty
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type InferProps<T> = Record<LiteralUnion<keyof T>, any>
|
|
26
|
+
|
|
27
|
+
export type PatternDefaultValue<T> = Partial<InferProps<T>>
|
|
28
|
+
|
|
29
|
+
export type PatternDefaultValueFn<T> = (props: InferProps<T>) => PatternDefaultValue<T>
|
|
30
|
+
|
|
31
|
+
export interface PatternConfig<T extends PatternProperties = PatternProperties> {
|
|
32
|
+
/**
|
|
33
|
+
* The description of the pattern. This will be used in the JSDoc comment.
|
|
34
|
+
*/
|
|
35
|
+
description?: string
|
|
36
|
+
/**
|
|
37
|
+
* The JSX element rendered by the pattern
|
|
38
|
+
* @default 'div'
|
|
39
|
+
*/
|
|
40
|
+
jsxElement?: string
|
|
41
|
+
/**
|
|
42
|
+
* The properties of the pattern.
|
|
43
|
+
*/
|
|
44
|
+
properties?: T
|
|
45
|
+
/**
|
|
46
|
+
* The default values of the pattern.
|
|
47
|
+
*/
|
|
48
|
+
defaultValues?: PatternDefaultValue<T> | PatternDefaultValueFn<T>
|
|
49
|
+
/**
|
|
50
|
+
* The css object this pattern will generate.
|
|
51
|
+
*/
|
|
52
|
+
transform?: (props: InferProps<T>, helpers: PatternHelpers) => SystemStyleObject
|
|
53
|
+
/**
|
|
54
|
+
* Whether the pattern is deprecated.
|
|
55
|
+
*/
|
|
56
|
+
deprecated?: boolean | string
|
|
57
|
+
/**
|
|
58
|
+
* The jsx element name this pattern will generate.
|
|
59
|
+
*/
|
|
60
|
+
jsxName?: string
|
|
61
|
+
/**
|
|
62
|
+
* The jsx elements to track for this pattern. Can be string or Regexp.
|
|
63
|
+
*
|
|
64
|
+
* @default capitalize(pattern.name)
|
|
65
|
+
* @example ['Button', 'Link', /Button$/]
|
|
66
|
+
*/
|
|
67
|
+
jsx?: Array<string | RegExp>
|
|
68
|
+
/**
|
|
69
|
+
* Whether to only generate types for the specified properties.
|
|
70
|
+
* This will disallow css properties
|
|
71
|
+
*/
|
|
72
|
+
strict?: boolean
|
|
73
|
+
/**
|
|
74
|
+
* @experimental
|
|
75
|
+
* Disallow certain css properties for this pattern
|
|
76
|
+
*/
|
|
77
|
+
blocklist?: LiteralUnion<CssProperty>[]
|
|
78
|
+
}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from './conditions';
|
|
3
|
+
import type { CssProperties } from './system-types';
|
|
4
|
+
import type { Tokens } from '../tokens/index';
|
|
5
|
+
|
|
6
|
+
export interface UtilityValues {
|
|
7
|
+
aspectRatio: Tokens["aspectRatios"];
|
|
8
|
+
top: Tokens["spacing"];
|
|
9
|
+
left: Tokens["spacing"];
|
|
10
|
+
inset: "auto" | Tokens["spacing"];
|
|
11
|
+
insetInline: Tokens["spacing"];
|
|
12
|
+
insetBlock: Tokens["spacing"];
|
|
13
|
+
insetBlockEnd: Tokens["spacing"];
|
|
14
|
+
insetBlockStart: Tokens["spacing"];
|
|
15
|
+
insetInlineEnd: Tokens["spacing"];
|
|
16
|
+
insetInlineStart: Tokens["spacing"];
|
|
17
|
+
right: Tokens["spacing"];
|
|
18
|
+
bottom: Tokens["spacing"];
|
|
19
|
+
float: "start" | "end" | CssProperties["float"];
|
|
20
|
+
hideFrom: Tokens["breakpoints"];
|
|
21
|
+
hideBelow: Tokens["breakpoints"];
|
|
22
|
+
flexBasis: Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "full";
|
|
23
|
+
flex: "1" | "auto" | "initial" | "none";
|
|
24
|
+
gridAutoColumns: "min" | "max" | "fr";
|
|
25
|
+
gridAutoRows: "min" | "max" | "fr";
|
|
26
|
+
gap: Tokens["spacing"];
|
|
27
|
+
gridGap: Tokens["spacing"];
|
|
28
|
+
gridRowGap: Tokens["spacing"];
|
|
29
|
+
gridColumnGap: Tokens["spacing"];
|
|
30
|
+
rowGap: Tokens["spacing"];
|
|
31
|
+
columnGap: Tokens["spacing"];
|
|
32
|
+
padding: Tokens["spacing"];
|
|
33
|
+
paddingLeft: Tokens["spacing"];
|
|
34
|
+
paddingRight: Tokens["spacing"];
|
|
35
|
+
paddingTop: Tokens["spacing"];
|
|
36
|
+
paddingBottom: Tokens["spacing"];
|
|
37
|
+
paddingBlock: Tokens["spacing"];
|
|
38
|
+
paddingBlockEnd: Tokens["spacing"];
|
|
39
|
+
paddingBlockStart: Tokens["spacing"];
|
|
40
|
+
paddingInline: Tokens["spacing"];
|
|
41
|
+
paddingInlineEnd: Tokens["spacing"];
|
|
42
|
+
paddingInlineStart: Tokens["spacing"];
|
|
43
|
+
marginLeft: "auto" | Tokens["spacing"];
|
|
44
|
+
marginRight: "auto" | Tokens["spacing"];
|
|
45
|
+
marginTop: "auto" | Tokens["spacing"];
|
|
46
|
+
marginBottom: "auto" | Tokens["spacing"];
|
|
47
|
+
margin: "auto" | Tokens["spacing"];
|
|
48
|
+
marginBlock: "auto" | Tokens["spacing"];
|
|
49
|
+
marginBlockEnd: "auto" | Tokens["spacing"];
|
|
50
|
+
marginBlockStart: "auto" | Tokens["spacing"];
|
|
51
|
+
marginInline: "auto" | Tokens["spacing"];
|
|
52
|
+
marginInlineEnd: "auto" | Tokens["spacing"];
|
|
53
|
+
marginInlineStart: "auto" | Tokens["spacing"];
|
|
54
|
+
spaceX: "auto" | Tokens["spacing"] | CssProperties["marginInlineStart"];
|
|
55
|
+
spaceY: "auto" | Tokens["spacing"] | CssProperties["marginBlockStart"];
|
|
56
|
+
outlineWidth: Tokens["borderWidths"];
|
|
57
|
+
outlineColor: Tokens["colors"];
|
|
58
|
+
outline: Tokens["borders"];
|
|
59
|
+
outlineOffset: Tokens["spacing"];
|
|
60
|
+
divideX: Tokens["borderWidths"];
|
|
61
|
+
divideY: Tokens["borderWidths"];
|
|
62
|
+
divideColor: Tokens["colors"];
|
|
63
|
+
divideStyle: CssProperties["borderStyle"];
|
|
64
|
+
width: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
65
|
+
inlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
66
|
+
minWidth: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
67
|
+
minInlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
68
|
+
maxWidth: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
69
|
+
maxInlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
70
|
+
height: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
71
|
+
blockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
72
|
+
minHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
73
|
+
minBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
74
|
+
maxHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
75
|
+
maxBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
76
|
+
color: Tokens["colors"];
|
|
77
|
+
fontFamily: Tokens["fonts"];
|
|
78
|
+
fontSize: Tokens["fontSizes"];
|
|
79
|
+
fontWeight: Tokens["fontWeights"];
|
|
80
|
+
fontSmoothing: "antialiased" | "subpixel-antialiased";
|
|
81
|
+
letterSpacing: Tokens["letterSpacings"];
|
|
82
|
+
lineHeight: Tokens["lineHeights"];
|
|
83
|
+
textDecorationColor: Tokens["colors"];
|
|
84
|
+
textEmphasisColor: Tokens["colors"];
|
|
85
|
+
textIndent: Tokens["spacing"];
|
|
86
|
+
textShadow: Tokens["shadows"];
|
|
87
|
+
textShadowColor: Tokens["colors"];
|
|
88
|
+
textWrap: "wrap" | "balance" | "nowrap";
|
|
89
|
+
truncate: boolean;
|
|
90
|
+
background: Tokens["colors"];
|
|
91
|
+
backgroundColor: Tokens["colors"];
|
|
92
|
+
backgroundGradient: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
93
|
+
textGradient: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
94
|
+
gradientFrom: Tokens["colors"];
|
|
95
|
+
gradientTo: Tokens["colors"];
|
|
96
|
+
gradientVia: Tokens["colors"];
|
|
97
|
+
borderRadius: Tokens["radii"];
|
|
98
|
+
borderTopLeftRadius: Tokens["radii"];
|
|
99
|
+
borderTopRightRadius: Tokens["radii"];
|
|
100
|
+
borderBottomRightRadius: Tokens["radii"];
|
|
101
|
+
borderBottomLeftRadius: Tokens["radii"];
|
|
102
|
+
borderTopRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
103
|
+
borderRightRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
104
|
+
borderBottomRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
105
|
+
borderLeftRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
106
|
+
borderStartStartRadius: Tokens["radii"];
|
|
107
|
+
borderStartEndRadius: Tokens["radii"];
|
|
108
|
+
borderStartRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
109
|
+
borderEndStartRadius: Tokens["radii"];
|
|
110
|
+
borderEndEndRadius: Tokens["radii"];
|
|
111
|
+
borderEndRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
112
|
+
border: Tokens["borders"];
|
|
113
|
+
borderWidth: Tokens["borderWidths"];
|
|
114
|
+
borderTopWidth: Tokens["borderWidths"];
|
|
115
|
+
borderLeftWidth: Tokens["borderWidths"];
|
|
116
|
+
borderRightWidth: Tokens["borderWidths"];
|
|
117
|
+
borderBottomWidth: Tokens["borderWidths"];
|
|
118
|
+
borderBlockStartWidth: Tokens["borderWidths"];
|
|
119
|
+
borderBlockEndWidth: Tokens["borderWidths"];
|
|
120
|
+
borderColor: Tokens["colors"];
|
|
121
|
+
borderInline: Tokens["borders"];
|
|
122
|
+
borderInlineWidth: Tokens["borderWidths"];
|
|
123
|
+
borderInlineColor: Tokens["colors"];
|
|
124
|
+
borderBlock: Tokens["borders"];
|
|
125
|
+
borderBlockWidth: Tokens["borderWidths"];
|
|
126
|
+
borderBlockColor: Tokens["colors"];
|
|
127
|
+
borderLeft: Tokens["borders"];
|
|
128
|
+
borderLeftColor: Tokens["colors"];
|
|
129
|
+
borderInlineStart: Tokens["borders"];
|
|
130
|
+
borderInlineStartWidth: Tokens["borderWidths"];
|
|
131
|
+
borderInlineStartColor: Tokens["colors"];
|
|
132
|
+
borderRight: Tokens["borders"];
|
|
133
|
+
borderRightColor: Tokens["colors"];
|
|
134
|
+
borderInlineEnd: Tokens["borders"];
|
|
135
|
+
borderInlineEndWidth: Tokens["borderWidths"];
|
|
136
|
+
borderInlineEndColor: Tokens["colors"];
|
|
137
|
+
borderTop: Tokens["borders"];
|
|
138
|
+
borderTopColor: Tokens["colors"];
|
|
139
|
+
borderBottom: Tokens["borders"];
|
|
140
|
+
borderBottomColor: Tokens["colors"];
|
|
141
|
+
borderBlockEnd: Tokens["borders"];
|
|
142
|
+
borderBlockEndColor: Tokens["colors"];
|
|
143
|
+
borderBlockStart: Tokens["borders"];
|
|
144
|
+
borderBlockStartColor: Tokens["colors"];
|
|
145
|
+
boxShadow: Tokens["shadows"];
|
|
146
|
+
boxShadowColor: Tokens["colors"];
|
|
147
|
+
filter: "auto";
|
|
148
|
+
blur: Tokens["blurs"];
|
|
149
|
+
backdropFilter: "auto";
|
|
150
|
+
backdropBlur: Tokens["blurs"];
|
|
151
|
+
borderSpacing: Tokens["spacing"] | "auto";
|
|
152
|
+
borderSpacingX: Tokens["spacing"];
|
|
153
|
+
borderSpacingY: Tokens["spacing"];
|
|
154
|
+
transitionTimingFunction: Tokens["easings"];
|
|
155
|
+
transitionDelay: Tokens["durations"];
|
|
156
|
+
transitionDuration: Tokens["durations"];
|
|
157
|
+
transition: "all" | "common" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
158
|
+
animation: Tokens["animations"];
|
|
159
|
+
animationName: "spin" | "ping" | "pulse" | "bounce";
|
|
160
|
+
animationTimingFunction: Tokens["easings"];
|
|
161
|
+
animationDuration: Tokens["durations"];
|
|
162
|
+
animationDelay: Tokens["durations"];
|
|
163
|
+
rotate: "auto" | "auto-3d" | CssProperties["rotate"];
|
|
164
|
+
rotateX: CssProperties["rotate"];
|
|
165
|
+
rotateY: CssProperties["rotate"];
|
|
166
|
+
rotateZ: CssProperties["rotate"];
|
|
167
|
+
scale: "auto" | CssProperties["scale"];
|
|
168
|
+
translate: "auto" | "auto-3d" | CssProperties["translate"];
|
|
169
|
+
translateX: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
|
|
170
|
+
translateY: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
|
|
171
|
+
translateZ: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
|
|
172
|
+
accentColor: Tokens["colors"];
|
|
173
|
+
caretColor: Tokens["colors"];
|
|
174
|
+
scrollbar: "visible" | "hidden";
|
|
175
|
+
scrollbarColor: Tokens["colors"];
|
|
176
|
+
scrollbarWidth: Tokens["sizes"];
|
|
177
|
+
scrollMargin: Tokens["spacing"];
|
|
178
|
+
scrollMarginLeft: Tokens["spacing"];
|
|
179
|
+
scrollMarginRight: Tokens["spacing"];
|
|
180
|
+
scrollMarginTop: Tokens["spacing"];
|
|
181
|
+
scrollMarginBottom: Tokens["spacing"];
|
|
182
|
+
scrollMarginBlock: Tokens["spacing"];
|
|
183
|
+
scrollMarginBlockEnd: Tokens["spacing"];
|
|
184
|
+
scrollMarginBlockStart: Tokens["spacing"];
|
|
185
|
+
scrollMarginInline: Tokens["spacing"];
|
|
186
|
+
scrollMarginInlineEnd: Tokens["spacing"];
|
|
187
|
+
scrollMarginInlineStart: Tokens["spacing"];
|
|
188
|
+
scrollPadding: Tokens["spacing"];
|
|
189
|
+
scrollPaddingBlock: Tokens["spacing"];
|
|
190
|
+
scrollPaddingBlockStart: Tokens["spacing"];
|
|
191
|
+
scrollPaddingBlockEnd: Tokens["spacing"];
|
|
192
|
+
scrollPaddingInline: Tokens["spacing"];
|
|
193
|
+
scrollPaddingInlineEnd: Tokens["spacing"];
|
|
194
|
+
scrollPaddingInlineStart: Tokens["spacing"];
|
|
195
|
+
scrollPaddingLeft: Tokens["spacing"];
|
|
196
|
+
scrollPaddingRight: Tokens["spacing"];
|
|
197
|
+
scrollPaddingTop: Tokens["spacing"];
|
|
198
|
+
scrollPaddingBottom: Tokens["spacing"];
|
|
199
|
+
scrollSnapType: "none" | "x" | "y" | "both";
|
|
200
|
+
scrollSnapStrictness: "mandatory" | "proximity";
|
|
201
|
+
scrollSnapMargin: Tokens["spacing"];
|
|
202
|
+
scrollSnapMarginTop: Tokens["spacing"];
|
|
203
|
+
scrollSnapMarginBottom: Tokens["spacing"];
|
|
204
|
+
scrollSnapMarginLeft: Tokens["spacing"];
|
|
205
|
+
scrollSnapMarginRight: Tokens["spacing"];
|
|
206
|
+
fill: Tokens["colors"];
|
|
207
|
+
stroke: Tokens["colors"];
|
|
208
|
+
strokeWidth: Tokens["borderWidths"];
|
|
209
|
+
srOnly: boolean;
|
|
210
|
+
debug: boolean;
|
|
211
|
+
containerName: CssProperties["containerName"];
|
|
212
|
+
colorPalette: "current" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "violet" | "indigo" | "blue" | "sky" | "cyan" | "teal" | "emerald" | "green" | "lime" | "yellow" | "amber" | "orange" | "red" | "neutral" | "stone" | "zinc" | "slate" | "primary" | "secondary" | "tertiary" | "white" | "black" | "gray" | "success" | "warning" | "error" | "info" | "background" | "surface" | "elevated" | "structure" | "text";
|
|
213
|
+
textStyle: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
type WithColorOpacityModifier<T> = [T] extends [string] ? `${T}/${string}` & { __colorOpacityModifier?: true } : never
|
|
219
|
+
|
|
220
|
+
type ImportantMark = "!" | "!important"
|
|
221
|
+
type WhitespaceImportant = ` ${ImportantMark}`
|
|
222
|
+
type Important = ImportantMark | WhitespaceImportant
|
|
223
|
+
type WithImportant<T> = [T] extends [string] ? `${T}${Important}` & { __important?: true } : never
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Only relevant when using `strictTokens` or `strictPropertyValues` in your config.
|
|
227
|
+
* - Allows you to use an escape hatch (e.g. `[123px]`) to use any string as a value.
|
|
228
|
+
* - Allows you to use a color opacity modifier (e.g. `red/300`) with known color values.
|
|
229
|
+
* - Allows you to use an important mark (e.g. `!` or `!important`) in the value.
|
|
230
|
+
*
|
|
231
|
+
* This is useful when you want to use a value that is not defined in the config or want to opt-out of the defaults.
|
|
232
|
+
*
|
|
233
|
+
* @example
|
|
234
|
+
* css({
|
|
235
|
+
* fontSize: '[123px]', // ⚠️ will not throw even if you haven't defined 123px as a token
|
|
236
|
+
* })
|
|
237
|
+
*
|
|
238
|
+
* @see https://panda-css.com/docs/concepts/writing-styles#stricttokens
|
|
239
|
+
* @see https://panda-css.com/docs/concepts/writing-styles#strictpropertyvalues
|
|
240
|
+
*/
|
|
241
|
+
export type WithEscapeHatch<T> = T | `[${string}]` | WithColorOpacityModifier<T> | WithImportant<T>
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Will restrict the value of properties that have predefined values to those values only.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* css({
|
|
248
|
+
* display: 'abc', // ❌ will throw
|
|
249
|
+
* })
|
|
250
|
+
*
|
|
251
|
+
* @see https://panda-css.com/docs/concepts/writing-styles#strictpropertyvalues
|
|
252
|
+
*/
|
|
253
|
+
export type OnlyKnown<Key, Value> = Value extends boolean
|
|
254
|
+
? Value
|
|
255
|
+
: Value extends `${infer _}` ? Value : never
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { RecipeRule } from './static-css';
|
|
3
|
+
import type { SystemStyleObject, DistributiveOmit, Pretty } from './system-types';
|
|
4
|
+
|
|
5
|
+
type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T
|
|
6
|
+
|
|
7
|
+
export type RecipeVariantRecord = Record<any, Record<any, SystemStyleObject>>
|
|
8
|
+
|
|
9
|
+
export type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends keyof T
|
|
10
|
+
? {}
|
|
11
|
+
: {
|
|
12
|
+
[K in keyof T]?: StringToBoolean<keyof T[K]> | undefined
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Extract the variant as optional props from a `cva` function.
|
|
19
|
+
* Intended to be used with a JSX component, prefer `RecipeVariant` for a more strict type.
|
|
20
|
+
*/
|
|
21
|
+
export type RecipeVariantProps<
|
|
22
|
+
T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
|
|
23
|
+
> = Pretty<Parameters<T>[0]>
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Extract the variants from a `cva` function.
|
|
27
|
+
*/
|
|
28
|
+
export type RecipeVariant<
|
|
29
|
+
T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
|
|
30
|
+
> = Exclude<Pretty<Required<RecipeVariantProps<T>>>, undefined>
|
|
31
|
+
|
|
32
|
+
type RecipeVariantMap<T extends RecipeVariantRecord> = {
|
|
33
|
+
[K in keyof T]: Array<keyof T[K]>
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* -----------------------------------------------------------------------------
|
|
37
|
+
* Recipe / Standard
|
|
38
|
+
* -----------------------------------------------------------------------------*/
|
|
39
|
+
|
|
40
|
+
export interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVariantFn<T> {
|
|
41
|
+
__type: RecipeSelection<T>
|
|
42
|
+
variantKeys: (keyof T)[]
|
|
43
|
+
variantMap: RecipeVariantMap<T>
|
|
44
|
+
raw: (props?: RecipeSelection<T>) => SystemStyleObject
|
|
45
|
+
config: RecipeConfig<T>
|
|
46
|
+
splitVariantProps<Props extends RecipeSelection<T>>(
|
|
47
|
+
props: Props,
|
|
48
|
+
): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]
|
|
49
|
+
getVariantProps: (props?: RecipeSelection<T>) => RecipeSelection<T>
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type OneOrMore<T> = T | Array<T>
|
|
53
|
+
|
|
54
|
+
export type RecipeCompoundSelection<T> = {
|
|
55
|
+
[K in keyof T]?: OneOrMore<StringToBoolean<keyof T[K]>> | undefined
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type RecipeCompoundVariant<T> = T & {
|
|
59
|
+
css: SystemStyleObject
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantRecord> {
|
|
63
|
+
/**
|
|
64
|
+
* The base styles of the recipe.
|
|
65
|
+
*/
|
|
66
|
+
base?: SystemStyleObject
|
|
67
|
+
/**
|
|
68
|
+
* Whether the recipe is deprecated.
|
|
69
|
+
*/
|
|
70
|
+
deprecated?: boolean | string
|
|
71
|
+
/**
|
|
72
|
+
* The multi-variant styles of the recipe.
|
|
73
|
+
*/
|
|
74
|
+
variants?: T
|
|
75
|
+
/**
|
|
76
|
+
* The default variants of the recipe.
|
|
77
|
+
*/
|
|
78
|
+
defaultVariants?: RecipeSelection<T>
|
|
79
|
+
/**
|
|
80
|
+
* The styles to apply when a combination of variants is selected.
|
|
81
|
+
*/
|
|
82
|
+
compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>
|
|
86
|
+
|
|
87
|
+
interface RecipeConfigMeta {
|
|
88
|
+
/**
|
|
89
|
+
* The class name of the recipe.
|
|
90
|
+
*/
|
|
91
|
+
className: string
|
|
92
|
+
/**
|
|
93
|
+
* The description of the recipe. This will be used in the JSDoc comment.
|
|
94
|
+
*/
|
|
95
|
+
description?: string
|
|
96
|
+
/**
|
|
97
|
+
* The jsx elements to track for this recipe. Can be string or Regexp.
|
|
98
|
+
*
|
|
99
|
+
* @default capitalize(recipe.name)
|
|
100
|
+
* @example ['Button', 'Link', /Button$/]
|
|
101
|
+
*/
|
|
102
|
+
jsx?: Array<string | RegExp>
|
|
103
|
+
/**
|
|
104
|
+
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
105
|
+
*/
|
|
106
|
+
staticCss?: RecipeRule[]
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord>
|
|
110
|
+
extends RecipeDefinition<T>,
|
|
111
|
+
RecipeConfigMeta {}
|
|
112
|
+
|
|
113
|
+
/* -----------------------------------------------------------------------------
|
|
114
|
+
* Recipe / Slot
|
|
115
|
+
* -----------------------------------------------------------------------------*/
|
|
116
|
+
|
|
117
|
+
type SlotRecord<S extends string, T> = Partial<Record<S, T>>
|
|
118
|
+
|
|
119
|
+
export type SlotRecipeVariantRecord<S extends string> = Record<any, Record<any, SlotRecord<S, SystemStyleObject>>>
|
|
120
|
+
|
|
121
|
+
export type SlotRecipeVariantFn<S extends string, T extends RecipeVariantRecord> = (
|
|
122
|
+
props?: RecipeSelection<T>,
|
|
123
|
+
) => SlotRecord<S, string>
|
|
124
|
+
|
|
125
|
+
export interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>>
|
|
126
|
+
extends SlotRecipeVariantFn<S, T> {
|
|
127
|
+
raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>
|
|
128
|
+
variantKeys: (keyof T)[]
|
|
129
|
+
variantMap: RecipeVariantMap<T>
|
|
130
|
+
splitVariantProps<Props extends RecipeSelection<T>>(
|
|
131
|
+
props: Props,
|
|
132
|
+
): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]
|
|
133
|
+
getVariantProps: (props?: RecipeSelection<T>) => RecipeSelection<T>
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export type SlotRecipeCompoundVariant<S extends string, T> = T & {
|
|
137
|
+
css: SlotRecord<S, SystemStyleObject>
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface SlotRecipeDefinition<
|
|
141
|
+
S extends string = string,
|
|
142
|
+
T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
|
|
143
|
+
> {
|
|
144
|
+
/**
|
|
145
|
+
* An optional class name that can be used to target slots in the DOM.
|
|
146
|
+
*/
|
|
147
|
+
className?: string
|
|
148
|
+
/**
|
|
149
|
+
* Whether the recipe is deprecated.
|
|
150
|
+
*/
|
|
151
|
+
deprecated?: boolean | string
|
|
152
|
+
/**
|
|
153
|
+
* The parts/slots of the recipe.
|
|
154
|
+
*/
|
|
155
|
+
slots: S[] | Readonly<S[]>
|
|
156
|
+
/**
|
|
157
|
+
* The base styles of the recipe.
|
|
158
|
+
*/
|
|
159
|
+
base?: SlotRecord<S, SystemStyleObject>
|
|
160
|
+
/**
|
|
161
|
+
* The multi-variant styles of the recipe.
|
|
162
|
+
*/
|
|
163
|
+
variants?: T
|
|
164
|
+
/**
|
|
165
|
+
* The default variants of the recipe.
|
|
166
|
+
*/
|
|
167
|
+
defaultVariants?: RecipeSelection<T>
|
|
168
|
+
/**
|
|
169
|
+
* The styles to apply when a combination of variants is selected.
|
|
170
|
+
*/
|
|
171
|
+
compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type SlotRecipeCreatorFn = <S extends string, T extends SlotRecipeVariantRecord<S>>(
|
|
175
|
+
config: SlotRecipeDefinition<S, T>,
|
|
176
|
+
) => SlotRecipeRuntimeFn<S, T>
|
|
177
|
+
|
|
178
|
+
export type SlotRecipeConfig<
|
|
179
|
+
S extends string = string,
|
|
180
|
+
T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
|
|
181
|
+
> = SlotRecipeDefinition<S, T> & RecipeConfigMeta
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { Pseudos } from './csstype';
|
|
3
|
+
|
|
4
|
+
type AriaAttributes =
|
|
5
|
+
| '[aria-disabled]'
|
|
6
|
+
| '[aria-hidden]'
|
|
7
|
+
| '[aria-invalid]'
|
|
8
|
+
| '[aria-readonly]'
|
|
9
|
+
| '[aria-required]'
|
|
10
|
+
| '[aria-selected]'
|
|
11
|
+
| '[aria-checked]'
|
|
12
|
+
| '[aria-expanded]'
|
|
13
|
+
| '[aria-pressed]'
|
|
14
|
+
| `[aria-current=${'page' | 'step' | 'location' | 'date' | 'time'}]`
|
|
15
|
+
| '[aria-invalid]'
|
|
16
|
+
| `[aria-sort=${'ascending' | 'descending'}]`
|
|
17
|
+
|
|
18
|
+
type DataAttributes =
|
|
19
|
+
| '[data-selected]'
|
|
20
|
+
| '[data-highlighted]'
|
|
21
|
+
| '[data-hover]'
|
|
22
|
+
| '[data-active]'
|
|
23
|
+
| '[data-checked]'
|
|
24
|
+
| '[data-disabled]'
|
|
25
|
+
| '[data-readonly]'
|
|
26
|
+
| '[data-focus]'
|
|
27
|
+
| '[data-focus-visible]'
|
|
28
|
+
| '[data-focus-visible-added]'
|
|
29
|
+
| '[data-invalid]'
|
|
30
|
+
| '[data-pressed]'
|
|
31
|
+
| '[data-expanded]'
|
|
32
|
+
| '[data-grabbed]'
|
|
33
|
+
| '[data-dragged]'
|
|
34
|
+
| '[data-orientation=horizontal]'
|
|
35
|
+
| '[data-orientation=vertical]'
|
|
36
|
+
| '[data-in-range]'
|
|
37
|
+
| '[data-out-of-range]'
|
|
38
|
+
| '[data-placeholder-shown]'
|
|
39
|
+
| `[data-part=${string}]`
|
|
40
|
+
| `[data-attr=${string}]`
|
|
41
|
+
| `[data-placement=${string}]`
|
|
42
|
+
| `[data-theme=${string}]`
|
|
43
|
+
| `[data-size=${string}]`
|
|
44
|
+
| `[data-state=${string}]`
|
|
45
|
+
| '[data-empty]'
|
|
46
|
+
| '[data-loading]'
|
|
47
|
+
| '[data-loaded]'
|
|
48
|
+
| '[data-enter]'
|
|
49
|
+
| '[data-entering]'
|
|
50
|
+
| '[data-exited]'
|
|
51
|
+
| '[data-exiting]'
|
|
52
|
+
|
|
53
|
+
type AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`
|
|
54
|
+
type ParentSelector = `${DataAttributes | AriaAttributes} &`
|
|
55
|
+
|
|
56
|
+
type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page' | 'scope' | 'starting-style'
|
|
57
|
+
|
|
58
|
+
export type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`
|
|
59
|
+
export type Selectors = AttributeSelector | ParentSelector
|