@webflare/ui 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +234 -2
- package/dist/AccordionRoot-CNPxdTtA.cjs +182 -0
- package/dist/AccordionRoot-CmK-jaZz.js +178 -0
- package/dist/AlertRoot-B-M0xDFC.js +274 -0
- package/dist/AlertRoot-DRRwRAhA.cjs +278 -0
- package/dist/BadgeRoot-CzUSTR0W.cjs +136 -0
- package/dist/BadgeRoot-ffbcCd5B.js +132 -0
- package/dist/Button-A9BiKfSl.js +240 -0
- package/dist/Button-CwVAoJjO.cjs +244 -0
- package/dist/CardBody-BEbTLrA2.cjs +21 -0
- package/dist/CardBody-DbSW-Ssx.js +16 -0
- package/dist/CardHeader-Cx1pE9No.cjs +36 -0
- package/dist/CardHeader-DDRGpYth.js +31 -0
- package/dist/CardRoot-CZpgncJQ.cjs +49 -0
- package/dist/CardRoot-ia9NDth1.js +44 -0
- package/dist/CarouselItem-CJ9Kj2lU.cjs +21 -0
- package/dist/CarouselItem-Crs28MA9.js +16 -0
- package/dist/CarouselNavigation-BUZyy5GA.cjs +53 -0
- package/dist/CarouselNavigation-aM0v6IoI.js +48 -0
- package/dist/CarouselRoot-Co9IuVve.cjs +45 -0
- package/dist/CarouselRoot-DlGJZCox.js +40 -0
- package/dist/ControlSwitch-C-pzHgWm.cjs +188 -0
- package/dist/ControlSwitch-C0Rj6fSW.js +184 -0
- package/dist/DialogRoot-BiH9G8Jm.js +170 -0
- package/dist/DialogRoot-C6icP9Fb.cjs +174 -0
- package/dist/FieldBase-BwD6Dput.js +42 -0
- package/dist/FieldBase-X1FWOqPU.cjs +47 -0
- package/dist/FieldCheckbox-CYuyWgbl.cjs +139 -0
- package/dist/FieldCheckbox-DsQsNeX7.js +134 -0
- package/dist/FieldError-BPjk-uZc.js +36 -0
- package/dist/FieldError-XRz98TFe.cjs +41 -0
- package/dist/FieldFooter-05GxwrFg.cjs +29 -0
- package/dist/FieldFooter-CE598o7n.js +24 -0
- package/dist/FieldInput-bnC_fTws.cjs +155 -0
- package/dist/FieldInput-h3MgGC6J.js +150 -0
- package/dist/FieldLabel-BYlOJvXY.js +37 -0
- package/dist/FieldLabel-DBKhMbql.cjs +42 -0
- package/dist/FieldMessage-C83iNsEp.cjs +40 -0
- package/dist/FieldMessage-GyO_RQdK.js +35 -0
- package/dist/FieldRadioGroup-CLWFr3aL.cjs +158 -0
- package/dist/FieldRadioGroup-CmQ5JOjv.js +153 -0
- package/dist/FieldRequired-7fJtYCdt.js +16 -0
- package/dist/FieldRequired-CJtyr3cL.cjs +21 -0
- package/dist/FieldSelect-D6X_BwTS.js +239 -0
- package/dist/FieldSelect-DVcgCsHL.cjs +243 -0
- package/dist/FieldSwitch-C7VMSMoE.cjs +71 -0
- package/dist/FieldSwitch-DqagDsKK.js +66 -0
- package/dist/FieldTextarea-DBufxMQf.cjs +148 -0
- package/dist/FieldTextarea-_BtGkI0v.js +143 -0
- package/dist/FieldUrl-CcIOyPSl.js +387 -0
- package/dist/FieldUrl-DNnXDfBR.cjs +391 -0
- package/dist/FlyoutDropdown-Bw3pD8Tk.cjs +90 -0
- package/dist/FlyoutDropdown-ByXW9lqH.js +74 -0
- package/dist/FlyoutRoot-CuXnqpf8.js +110 -0
- package/dist/FlyoutRoot-DUoOHEoX.cjs +115 -0
- package/dist/FormPrompt-BDAVKk5i.cjs +63 -0
- package/dist/FormPrompt-BuS1lg-K.js +58 -0
- package/dist/FormPromptFooter-BhwWsaib.cjs +21 -0
- package/dist/FormPromptFooter-BrUOs40t.js +16 -0
- package/dist/HeroLead-BU-74-fX.js +151 -0
- package/dist/HeroLead-D52JBlM2.cjs +155 -0
- package/dist/ListItem-1sYxrNuv.cjs +164 -0
- package/dist/ListItem-rD49tsLw.js +148 -0
- package/dist/ListRoot-BRrC79y6.cjs +42 -0
- package/dist/ListRoot-CP7smMl_.js +37 -0
- package/dist/Loader-CMEggjED.cjs +121 -0
- package/dist/Loader-DSLPdX6P.js +116 -0
- package/dist/PricingCardBadge-DoHnRqTM.cjs +25 -0
- package/dist/PricingCardBadge-lh3Oq5fB.js +20 -0
- package/dist/PricingCardBody--EB7FzUU.cjs +60 -0
- package/dist/PricingCardBody-Dai1zKDL.js +49 -0
- package/dist/PricingCardHeader-DCEG6BUA.js +39 -0
- package/dist/PricingCardHeader-yebSjw8M.cjs +44 -0
- package/dist/PricingCardPricing-DvdbyMEh.cjs +30 -0
- package/dist/PricingCardPricing-Vbs2D8Fm.js +25 -0
- package/dist/PricingCardRoot-B9ztC1u9.cjs +46 -0
- package/dist/PricingCardRoot-Dagig8jr.js +41 -0
- package/dist/ProgressRoot-BV_wQKYv.js +251 -0
- package/dist/ProgressRoot-CWWNmB99.cjs +255 -0
- package/dist/SwitchRoot-CcipiBzA.cjs +61 -0
- package/dist/SwitchRoot-DGFu9ZWR.js +56 -0
- package/dist/TabItem--4wiBton.cjs +114 -0
- package/dist/TabItem-BTIrtLtp.js +104 -0
- package/dist/TabRoot-BNp4_dI_.cjs +77 -0
- package/dist/TabRoot-DDDJe5FC.js +72 -0
- package/dist/carousel-BrCOR927.cjs +144 -0
- package/dist/carousel-CBw9xA_6.js +139 -0
- package/dist/choiceStyles-DIVBtoZF.cjs +175 -0
- package/dist/choiceStyles-DRjL1Y2d.js +164 -0
- package/dist/components/Accordion/AccordionRoot.vue.d.ts +31 -0
- package/dist/components/Accordion/index.d.ts +59 -0
- package/dist/components/Accordion/styles.d.ts +67 -0
- package/dist/components/Accordion/types.d.ts +15 -0
- package/dist/components/Alert/AlertRoot.vue.d.ts +38 -0
- package/dist/components/Alert/index.d.ts +54 -0
- package/dist/components/Alert/styles.d.ts +132 -0
- package/dist/components/Alert/types.d.ts +6 -0
- package/dist/components/Badge/BadgeRoot.vue.d.ts +26 -0
- package/dist/components/Badge/index.d.ts +49 -0
- package/dist/components/Badge/styles.d.ts +94 -0
- package/dist/components/Button/Button.vue.d.ts +26 -0
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Button/styles.d.ts +140 -0
- package/dist/components/Card/CardBody.vue.d.ts +17 -0
- package/dist/components/Card/CardHeader.vue.d.ts +25 -0
- package/dist/components/Card/CardRoot.vue.d.ts +39 -0
- package/dist/components/Card/index.d.ts +98 -0
- package/dist/components/Card/styles.d.ts +169 -0
- package/dist/components/Card/types.d.ts +8 -0
- package/dist/components/Carousel/CarouselItem.vue.d.ts +17 -0
- package/dist/components/Carousel/CarouselNavigation.vue.d.ts +30 -0
- package/dist/components/Carousel/CarouselRoot.vue.d.ts +30 -0
- package/dist/components/Carousel/index.d.ts +117 -0
- package/dist/components/Carousel/styles.d.ts +1 -0
- package/dist/components/Carousel/types.d.ts +11 -0
- package/dist/components/Dialog/DialogRoot.vue.d.ts +39 -0
- package/dist/components/Dialog/index.d.ts +68 -0
- package/dist/components/Dialog/styles.d.ts +1 -0
- package/dist/components/Field/FieldBase.vue.d.ts +22 -0
- package/dist/components/Field/FieldCheckbox.vue.d.ts +15 -0
- package/dist/components/Field/FieldError.vue.d.ts +10 -0
- package/dist/components/Field/FieldFooter.vue.d.ts +3 -0
- package/dist/components/Field/FieldInput.vue.d.ts +21 -0
- package/dist/components/Field/FieldLabel.vue.d.ts +13 -0
- package/dist/components/Field/FieldMessage.vue.d.ts +10 -0
- package/dist/components/Field/FieldRadioGroup.vue.d.ts +19 -0
- package/dist/components/Field/FieldRequired.vue.d.ts +3 -0
- package/dist/components/Field/FieldSelect.vue.d.ts +20 -0
- package/dist/components/Field/FieldSwitch.vue.d.ts +18 -0
- package/dist/components/Field/FieldTextarea.vue.d.ts +19 -0
- package/dist/components/Field/FieldUrl.vue.d.ts +24 -0
- package/dist/components/Field/index.d.ts +220 -0
- package/dist/components/Field/styles.d.ts +20 -0
- package/dist/components/Field/types.d.ts +17 -0
- package/dist/components/Flyout/FlyoutDropdown.vue.d.ts +19 -0
- package/dist/components/Flyout/FlyoutRoot.vue.d.ts +43 -0
- package/dist/components/Flyout/index.d.ts +74 -0
- package/dist/components/Flyout/styles.d.ts +1 -0
- package/dist/components/Flyout/types.d.ts +10 -0
- package/dist/components/Form/FormPrompt.vue.d.ts +43 -0
- package/dist/components/Form/FormPromptFooter.vue.d.ts +20 -0
- package/dist/components/Form/index.d.ts +72 -0
- package/dist/components/Form/styles.d.ts +1 -0
- package/dist/components/Hero/HeroLead.vue.d.ts +39 -0
- package/dist/components/Hero/index.d.ts +49 -0
- package/dist/components/Hero/styles.d.ts +111 -0
- package/dist/components/List/ListItem.vue.d.ts +24 -0
- package/dist/components/List/ListRoot.vue.d.ts +26 -0
- package/dist/components/List/index.d.ts +74 -0
- package/dist/components/List/styles.d.ts +90 -0
- package/dist/components/List/types.d.ts +12 -0
- package/dist/components/Loader/Loader.vue.d.ts +14 -0
- package/dist/components/Loader/index.d.ts +4 -0
- package/dist/components/Loader/styles.d.ts +62 -0
- package/dist/components/PricingCard/PricingCardBadge.vue.d.ts +20 -0
- package/dist/components/PricingCard/PricingCardBody.vue.d.ts +20 -0
- package/dist/components/PricingCard/PricingCardHeader.vue.d.ts +28 -0
- package/dist/components/PricingCard/PricingCardPricing.vue.d.ts +22 -0
- package/dist/components/PricingCard/PricingCardRoot.vue.d.ts +27 -0
- package/dist/components/PricingCard/index.d.ts +138 -0
- package/dist/components/PricingCard/styles.d.ts +10 -0
- package/dist/components/PricingCard/types.d.ts +21 -0
- package/dist/components/Progress/ProgressRoot.vue.d.ts +41 -0
- package/dist/components/Progress/index.d.ts +81 -0
- package/dist/components/Progress/styles.d.ts +560 -0
- package/dist/components/Progress/types.d.ts +4 -0
- package/dist/components/Switch/SwitchRoot.vue.d.ts +25 -0
- package/dist/components/Switch/index.d.ts +35 -0
- package/dist/components/Switch/types.d.ts +2 -0
- package/dist/components/Tab/TabItem.vue.d.ts +19 -0
- package/dist/components/Tab/TabRoot.vue.d.ts +32 -0
- package/dist/components/Tab/index.d.ts +97 -0
- package/dist/components/Tab/styles.d.ts +1 -0
- package/dist/components/Tab/types.d.ts +14 -0
- package/dist/composables/carousel.d.ts +29 -0
- package/dist/composables/flyout.d.ts +30 -0
- package/dist/composables/form.d.ts +18 -0
- package/dist/composables/injection-key.d.ts +2 -0
- package/dist/context-Bk4uIMQS.js +4 -0
- package/dist/context-cK3z69qT.cjs +8 -0
- package/dist/controlStyles-Bf6fx2rL.js +92 -0
- package/dist/controlStyles-CClWH9EG.cjs +96 -0
- package/dist/css-BRRSQx3P.cjs +21 -0
- package/dist/css-DWYlz0rn.js +16 -0
- package/dist/flyout-BaVoXePQ.cjs +67 -0
- package/dist/flyout-QHh1jKmV.js +62 -0
- package/dist/form-BtxAsfYs.cjs +34 -0
- package/dist/form-CB12X8xv.js +29 -0
- package/dist/index.cjs +233 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +168 -0
- package/dist/injection-key-BQYV9vIr.js +5 -0
- package/dist/injection-key-DPb_AXnh.cjs +10 -0
- package/dist/internal/controls/ControlCheckbox.vue.d.ts +23 -0
- package/dist/internal/controls/ControlInput.vue.d.ts +28 -0
- package/dist/internal/controls/ControlRadioGroup.vue.d.ts +24 -0
- package/dist/internal/controls/ControlSelect.vue.d.ts +27 -0
- package/dist/internal/controls/ControlSwitch.vue.d.ts +25 -0
- package/dist/internal/controls/ControlTextarea.vue.d.ts +27 -0
- package/dist/internal/controls/ControlUrl.vue.d.ts +31 -0
- package/dist/internal/controls/choiceStyles.d.ts +64 -0
- package/dist/internal/controls/context.d.ts +10 -0
- package/dist/internal/controls/controlStyles.d.ts +54 -0
- package/dist/internal/controls/index.d.ts +14 -0
- package/dist/internal/controls/selectStyles.d.ts +2 -0
- package/dist/internal/controls/switchStyles.d.ts +46 -0
- package/dist/internal/controls/types.d.ts +10 -0
- package/dist/internal/controls/urlStyles.d.ts +84 -0
- package/dist/internal/controls/urlUtils.d.ts +14 -0
- package/dist/internal/controls/useFieldControl.d.ts +17 -0
- package/dist/internal/css.d.ts +24 -0
- package/dist/nuxt/module.d.mts +21 -0
- package/dist/nuxt/module.json +9 -0
- package/dist/nuxt/module.mjs +126 -0
- package/dist/nuxt/types.d.mts +3 -0
- package/dist/nuxt-entries.json +49 -0
- package/dist/panda/buildinfo.json +5432 -0
- package/dist/panda/lib.json +18 -0
- package/dist/panda/preset.mjs +4092 -0
- package/dist/plugin.d.ts +3 -0
- package/dist/preset/index.cjs +692 -0
- package/dist/preset/index.d.cts +18 -0
- package/dist/preset/index.d.ts +18 -0
- package/dist/preset/index.js +656 -0
- package/dist/style.css +153 -0
- package/dist/styled-system/css/conditions.d.ts +7 -0
- package/dist/styled-system/css/conditions.js +32 -0
- package/dist/styled-system/css/css.d.ts +22 -0
- package/dist/styled-system/css/css.js +63 -0
- package/dist/styled-system/css/cva.d.ts +5 -0
- package/dist/styled-system/css/cva.js +51 -0
- package/dist/styled-system/css/cx.d.ts +6 -0
- package/dist/styled-system/css/cx.js +16 -0
- package/dist/styled-system/css/first-that-works.d.ts +22 -0
- package/dist/styled-system/css/first-that-works.js +1 -0
- package/dist/styled-system/css/index.d.ts +8 -0
- package/dist/styled-system/css/index.js +8 -0
- package/dist/styled-system/css/keyframes.d.ts +5 -0
- package/dist/styled-system/css/keyframes.js +8 -0
- package/dist/styled-system/css/position-try.d.ts +5 -0
- package/dist/styled-system/css/position-try.js +11 -0
- package/dist/styled-system/css/sva.d.ts +3 -0
- package/dist/styled-system/css/sva.js +49 -0
- package/dist/styled-system/css/view-transition.d.ts +7 -0
- package/dist/styled-system/css/view-transition.js +18 -0
- package/dist/styled-system/helpers.d.ts +67 -0
- package/dist/styled-system/helpers.js +624 -0
- package/dist/styled-system/patterns/aspect-ratio.d.ts +19 -0
- package/dist/styled-system/patterns/aspect-ratio.js +37 -0
- package/dist/styled-system/patterns/bleed.d.ts +20 -0
- package/dist/styled-system/patterns/bleed.js +30 -0
- package/dist/styled-system/patterns/box.d.ts +17 -0
- package/dist/styled-system/patterns/box.js +16 -0
- package/dist/styled-system/patterns/center.d.ts +19 -0
- package/dist/styled-system/patterns/center.js +22 -0
- package/dist/styled-system/patterns/circle.d.ts +19 -0
- package/dist/styled-system/patterns/circle.js +26 -0
- package/dist/styled-system/patterns/container.d.ts +17 -0
- package/dist/styled-system/patterns/container.js +37 -0
- package/dist/styled-system/patterns/cq.d.ts +21 -0
- package/dist/styled-system/patterns/cq.js +24 -0
- package/dist/styled-system/patterns/divider.d.ts +22 -0
- package/dist/styled-system/patterns/divider.js +31 -0
- package/dist/styled-system/patterns/flex.d.ts +25 -0
- package/dist/styled-system/patterns/flex.js +27 -0
- package/dist/styled-system/patterns/float.d.ts +23 -0
- package/dist/styled-system/patterns/float.js +78 -0
- package/dist/styled-system/patterns/grid-item.d.ts +24 -0
- package/dist/styled-system/patterns/grid-item.js +26 -0
- package/dist/styled-system/patterns/grid.d.ts +24 -0
- package/dist/styled-system/patterns/grid.js +30 -0
- package/dist/styled-system/patterns/hstack.d.ts +20 -0
- package/dist/styled-system/patterns/hstack.js +27 -0
- package/dist/styled-system/patterns/index.d.ts +20 -0
- package/dist/styled-system/patterns/index.js +20 -0
- package/dist/styled-system/patterns/link-overlay.d.ts +17 -0
- package/dist/styled-system/patterns/link-overlay.js +25 -0
- package/dist/styled-system/patterns/runtime.js +25 -0
- package/dist/styled-system/patterns/spacer.d.ts +20 -0
- package/dist/styled-system/patterns/spacer.js +25 -0
- package/dist/styled-system/patterns/square.d.ts +19 -0
- package/dist/styled-system/patterns/square.js +25 -0
- package/dist/styled-system/patterns/stack.d.ts +22 -0
- package/dist/styled-system/patterns/stack.js +30 -0
- package/dist/styled-system/patterns/visually-hidden.d.ts +17 -0
- package/dist/styled-system/patterns/visually-hidden.js +19 -0
- package/dist/styled-system/patterns/vstack.d.ts +20 -0
- package/dist/styled-system/patterns/vstack.js +27 -0
- package/dist/styled-system/patterns/wrap.d.ts +23 -0
- package/dist/styled-system/patterns/wrap.js +26 -0
- package/dist/styled-system/recipes/runtime.js +133 -0
- package/dist/styled-system/tokens/index.d.ts +8 -0
- package/dist/styled-system/tokens/index.js +18 -0
- package/dist/styled-system/types/index.d.ts +5 -0
- package/dist/styled-system/types/pattern.d.ts +26 -0
- package/dist/styled-system/types/recipe.d.ts +89 -0
- package/dist/styled-system/types/register.d.ts +36 -0
- package/dist/styled-system/types/system.d.ts +1880 -0
- package/dist/styled-system/types/tokens.d.ts +60 -0
- package/dist/styles-8a0pzMRc.js +88 -0
- package/dist/styles-BU90HeKh.js +72 -0
- package/dist/styles-BvLgeNpb.cjs +42 -0
- package/dist/styles-CK7DJVwO.js +72 -0
- package/dist/styles-Cjlvkx8i.cjs +92 -0
- package/dist/styles-CuN4CHU4.cjs +76 -0
- package/dist/styles-WOyB8APA.js +38 -0
- package/dist/styles-_I-I4HYc.cjs +76 -0
- package/dist/types-B1vOzUjg.js +5 -0
- package/dist/types-Boy3jvmf.js +4 -0
- package/dist/types-CBApDh_h.js +149 -0
- package/dist/types-D2v625uE.cjs +8 -0
- package/dist/types-DzEK6W6x.cjs +16 -0
- package/dist/types-cLDeFros.cjs +166 -0
- package/dist/useFieldControl-BkQi1zak.js +29 -0
- package/dist/useFieldControl-CEI7IRAa.cjs +34 -0
- package/dist/vue/AccordionRoot.cjs +6 -0
- package/dist/vue/AccordionRoot.d.ts +1 -0
- package/dist/vue/AccordionRoot.js +1 -0
- package/dist/vue/AlertRoot.cjs +6 -0
- package/dist/vue/AlertRoot.d.ts +1 -0
- package/dist/vue/AlertRoot.js +1 -0
- package/dist/vue/BadgeRoot.cjs +6 -0
- package/dist/vue/BadgeRoot.d.ts +1 -0
- package/dist/vue/BadgeRoot.js +1 -0
- package/dist/vue/Button.cjs +6 -0
- package/dist/vue/Button.d.ts +1 -0
- package/dist/vue/Button.js +1 -0
- package/dist/vue/CardBody.cjs +6 -0
- package/dist/vue/CardBody.d.ts +1 -0
- package/dist/vue/CardBody.js +1 -0
- package/dist/vue/CardHeader.cjs +6 -0
- package/dist/vue/CardHeader.d.ts +1 -0
- package/dist/vue/CardHeader.js +1 -0
- package/dist/vue/CardRoot.cjs +6 -0
- package/dist/vue/CardRoot.d.ts +1 -0
- package/dist/vue/CardRoot.js +1 -0
- package/dist/vue/CarouselItem.cjs +6 -0
- package/dist/vue/CarouselItem.d.ts +1 -0
- package/dist/vue/CarouselItem.js +1 -0
- package/dist/vue/CarouselNavigation.cjs +6 -0
- package/dist/vue/CarouselNavigation.d.ts +1 -0
- package/dist/vue/CarouselNavigation.js +1 -0
- package/dist/vue/CarouselRoot.cjs +6 -0
- package/dist/vue/CarouselRoot.d.ts +1 -0
- package/dist/vue/CarouselRoot.js +1 -0
- package/dist/vue/DialogRoot.cjs +6 -0
- package/dist/vue/DialogRoot.d.ts +1 -0
- package/dist/vue/DialogRoot.js +1 -0
- package/dist/vue/FieldBase.cjs +6 -0
- package/dist/vue/FieldBase.d.ts +1 -0
- package/dist/vue/FieldBase.js +1 -0
- package/dist/vue/FieldCheckbox.cjs +6 -0
- package/dist/vue/FieldCheckbox.d.ts +1 -0
- package/dist/vue/FieldCheckbox.js +1 -0
- package/dist/vue/FieldError.cjs +6 -0
- package/dist/vue/FieldError.d.ts +1 -0
- package/dist/vue/FieldError.js +1 -0
- package/dist/vue/FieldInput.cjs +6 -0
- package/dist/vue/FieldInput.d.ts +1 -0
- package/dist/vue/FieldInput.js +1 -0
- package/dist/vue/FieldLabel.cjs +6 -0
- package/dist/vue/FieldLabel.d.ts +1 -0
- package/dist/vue/FieldLabel.js +1 -0
- package/dist/vue/FieldMessage.cjs +6 -0
- package/dist/vue/FieldMessage.d.ts +1 -0
- package/dist/vue/FieldMessage.js +1 -0
- package/dist/vue/FieldRadioGroup.cjs +6 -0
- package/dist/vue/FieldRadioGroup.d.ts +1 -0
- package/dist/vue/FieldRadioGroup.js +1 -0
- package/dist/vue/FieldRequired.cjs +6 -0
- package/dist/vue/FieldRequired.d.ts +1 -0
- package/dist/vue/FieldRequired.js +1 -0
- package/dist/vue/FieldSelect.cjs +6 -0
- package/dist/vue/FieldSelect.d.ts +1 -0
- package/dist/vue/FieldSelect.js +1 -0
- package/dist/vue/FieldSwitch.cjs +6 -0
- package/dist/vue/FieldSwitch.d.ts +1 -0
- package/dist/vue/FieldSwitch.js +1 -0
- package/dist/vue/FieldTextarea.cjs +6 -0
- package/dist/vue/FieldTextarea.d.ts +1 -0
- package/dist/vue/FieldTextarea.js +1 -0
- package/dist/vue/FieldUrl.cjs +6 -0
- package/dist/vue/FieldUrl.d.ts +1 -0
- package/dist/vue/FieldUrl.js +1 -0
- package/dist/vue/FlyoutDropdown.cjs +6 -0
- package/dist/vue/FlyoutDropdown.d.ts +1 -0
- package/dist/vue/FlyoutDropdown.js +1 -0
- package/dist/vue/FlyoutRoot.cjs +6 -0
- package/dist/vue/FlyoutRoot.d.ts +1 -0
- package/dist/vue/FlyoutRoot.js +1 -0
- package/dist/vue/FormPrompt.cjs +6 -0
- package/dist/vue/FormPrompt.d.ts +1 -0
- package/dist/vue/FormPrompt.js +1 -0
- package/dist/vue/FormPromptFooter.cjs +6 -0
- package/dist/vue/FormPromptFooter.d.ts +1 -0
- package/dist/vue/FormPromptFooter.js +1 -0
- package/dist/vue/HeroLead.cjs +6 -0
- package/dist/vue/HeroLead.d.ts +1 -0
- package/dist/vue/HeroLead.js +1 -0
- package/dist/vue/ListItem.cjs +6 -0
- package/dist/vue/ListItem.d.ts +1 -0
- package/dist/vue/ListItem.js +1 -0
- package/dist/vue/ListRoot.cjs +6 -0
- package/dist/vue/ListRoot.d.ts +1 -0
- package/dist/vue/ListRoot.js +1 -0
- package/dist/vue/Loader.cjs +6 -0
- package/dist/vue/Loader.d.ts +1 -0
- package/dist/vue/Loader.js +1 -0
- package/dist/vue/PricingCardBadge.cjs +6 -0
- package/dist/vue/PricingCardBadge.d.ts +1 -0
- package/dist/vue/PricingCardBadge.js +1 -0
- package/dist/vue/PricingCardBody.cjs +6 -0
- package/dist/vue/PricingCardBody.d.ts +1 -0
- package/dist/vue/PricingCardBody.js +1 -0
- package/dist/vue/PricingCardHeader.cjs +6 -0
- package/dist/vue/PricingCardHeader.d.ts +1 -0
- package/dist/vue/PricingCardHeader.js +1 -0
- package/dist/vue/PricingCardPricing.cjs +6 -0
- package/dist/vue/PricingCardPricing.d.ts +1 -0
- package/dist/vue/PricingCardPricing.js +1 -0
- package/dist/vue/PricingCardRoot.cjs +6 -0
- package/dist/vue/PricingCardRoot.d.ts +1 -0
- package/dist/vue/PricingCardRoot.js +1 -0
- package/dist/vue/ProgressRoot.cjs +6 -0
- package/dist/vue/ProgressRoot.d.ts +1 -0
- package/dist/vue/ProgressRoot.js +1 -0
- package/dist/vue/SwitchRoot.cjs +6 -0
- package/dist/vue/SwitchRoot.d.ts +1 -0
- package/dist/vue/SwitchRoot.js +1 -0
- package/dist/vue/TabItem.cjs +6 -0
- package/dist/vue/TabItem.d.ts +1 -0
- package/dist/vue/TabItem.js +1 -0
- package/dist/vue/TabRoot.cjs +6 -0
- package/dist/vue/TabRoot.d.ts +1 -0
- package/dist/vue/TabRoot.js +1 -0
- package/dist/vue/useCarousel.cjs +3 -0
- package/dist/vue/useCarousel.d.ts +1 -0
- package/dist/vue/useCarousel.js +1 -0
- package/dist/vue/useFlyout.cjs +3 -0
- package/dist/vue/useFlyout.d.ts +1 -0
- package/dist/vue/useFlyout.js +1 -0
- package/dist/vue/useFormData.cjs +3 -0
- package/dist/vue/useFormData.d.ts +1 -0
- package/dist/vue/useFormData.js +1 -0
- package/dist/vue-components.d.ts +17 -0
- package/package.json +172 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './aspect-ratio.js';
|
|
2
|
+
export * from './bleed.js';
|
|
3
|
+
export * from './box.js';
|
|
4
|
+
export * from './center.js';
|
|
5
|
+
export * from './circle.js';
|
|
6
|
+
export * from './container.js';
|
|
7
|
+
export * from './cq.js';
|
|
8
|
+
export * from './divider.js';
|
|
9
|
+
export * from './flex.js';
|
|
10
|
+
export * from './float.js';
|
|
11
|
+
export * from './grid.js';
|
|
12
|
+
export * from './grid-item.js';
|
|
13
|
+
export * from './hstack.js';
|
|
14
|
+
export * from './link-overlay.js';
|
|
15
|
+
export * from './spacer.js';
|
|
16
|
+
export * from './square.js';
|
|
17
|
+
export * from './stack.js';
|
|
18
|
+
export * from './visually-hidden.js';
|
|
19
|
+
export * from './vstack.js';
|
|
20
|
+
export * from './wrap.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface LinkOverlayProperties {}
|
|
4
|
+
|
|
5
|
+
type LinkOverlayRestStyles = Omit<SystemStyleObject, keyof LinkOverlayProperties>
|
|
6
|
+
|
|
7
|
+
interface LinkOverlayStyles extends LinkOverlayProperties, LinkOverlayRestStyles {}
|
|
8
|
+
|
|
9
|
+
interface LinkOverlayPatternFn {
|
|
10
|
+
(styles?: LinkOverlayStyles): string
|
|
11
|
+
raw: (styles?: LinkOverlayStyles) => SystemStyleObject
|
|
12
|
+
propKeys: Array<keyof LinkOverlayProperties>
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export declare function linkOverlayRaw(styles?: LinkOverlayStyles): SystemStyleObject;
|
|
16
|
+
|
|
17
|
+
export declare const linkOverlay: LinkOverlayPatternFn;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const linkOverlayConfig = { 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 function linkOverlayRaw(styles) {
|
|
19
|
+
const s = getPatternStyles(linkOverlayConfig, styles || {})
|
|
20
|
+
return linkOverlayConfig.transform(s, patternFns)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const linkOverlay = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function linkOverlay(styles = {}) {
|
|
24
|
+
return css(linkOverlayRaw(styles))
|
|
25
|
+
}), { raw: linkOverlayRaw, propKeys: [] })
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { mapObject, withDefaults } from '../helpers.js';
|
|
2
|
+
|
|
3
|
+
const CSS_FUNCTION_REGEX = /^(min|max|clamp|calc)\(.*\)/
|
|
4
|
+
const CSS_VAR_REGEX = /^var\(--.+\)$/
|
|
5
|
+
const CSS_UNIT_REGEX = /^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?(?:cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cqw|cqh|cqi|cqb|cqmin|cqmax|%)$/
|
|
6
|
+
|
|
7
|
+
export function isCssFunction(v) {
|
|
8
|
+
return typeof v === "string" && CSS_FUNCTION_REGEX.test(v)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function isCssVar(v) {
|
|
12
|
+
return typeof v === "string" && CSS_VAR_REGEX.test(v)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function isCssUnit(v) {
|
|
16
|
+
return typeof v === "string" && CSS_UNIT_REGEX.test(v)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const patternFns = { map: mapObject, isCssFunction, isCssVar, isCssUnit }
|
|
20
|
+
|
|
21
|
+
export function getPatternStyles(pattern, styles) {
|
|
22
|
+
if (!pattern?.defaultValues) return styles
|
|
23
|
+
const defaults = typeof pattern.defaultValues === "function" ? pattern.defaultValues(styles) : pattern.defaultValues
|
|
24
|
+
return withDefaults(defaults, styles)
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TokenValue } from '../types/tokens.js';
|
|
2
|
+
import type { ConditionalValue, SystemStyleObject } from '../types/system.js';
|
|
3
|
+
|
|
4
|
+
export interface SpacerProperties {
|
|
5
|
+
size?: ConditionalValue<TokenValue<"spacing">>
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type SpacerRestStyles = Omit<SystemStyleObject, keyof SpacerProperties>
|
|
9
|
+
|
|
10
|
+
interface SpacerStyles extends SpacerProperties, SpacerRestStyles {}
|
|
11
|
+
|
|
12
|
+
interface SpacerPatternFn {
|
|
13
|
+
(styles?: SpacerStyles): string
|
|
14
|
+
raw: (styles?: SpacerStyles) => SystemStyleObject
|
|
15
|
+
propKeys: Array<keyof SpacerProperties>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare function spacerRaw(styles?: SpacerStyles): SystemStyleObject;
|
|
19
|
+
|
|
20
|
+
export declare const spacer: SpacerPatternFn;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const spacerConfig = { transform(props, { map, isCssUnit, isCssVar }) {
|
|
6
|
+
const { size, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
alignSelf: "stretch",
|
|
9
|
+
justifySelf: "stretch",
|
|
10
|
+
flex: map(size, (v) => {
|
|
11
|
+
if (v == null) return "1";
|
|
12
|
+
return `0 0 ${isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`}`;
|
|
13
|
+
}),
|
|
14
|
+
...rest
|
|
15
|
+
};
|
|
16
|
+
} }
|
|
17
|
+
|
|
18
|
+
export function spacerRaw(styles) {
|
|
19
|
+
const s = getPatternStyles(spacerConfig, styles || {})
|
|
20
|
+
return spacerConfig.transform(s, patternFns)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const spacer = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function spacer(styles = {}) {
|
|
24
|
+
return css(spacerRaw(styles))
|
|
25
|
+
}), { raw: spacerRaw, propKeys: ["size"] })
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SystemProperties, SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface SquareProperties {
|
|
4
|
+
size?: SystemProperties["width"]
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type SquareRestStyles = Omit<SystemStyleObject, keyof SquareProperties>
|
|
8
|
+
|
|
9
|
+
interface SquareStyles extends SquareProperties, SquareRestStyles {}
|
|
10
|
+
|
|
11
|
+
interface SquarePatternFn {
|
|
12
|
+
(styles?: SquareStyles): string
|
|
13
|
+
raw: (styles?: SquareStyles) => SystemStyleObject
|
|
14
|
+
propKeys: Array<keyof SquareProperties>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare function squareRaw(styles?: SquareStyles): SystemStyleObject;
|
|
18
|
+
|
|
19
|
+
export declare const square: SquarePatternFn;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const squareConfig = { 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 function squareRaw(styles) {
|
|
19
|
+
const s = getPatternStyles(squareConfig, styles || {})
|
|
20
|
+
return squareConfig.transform(s, patternFns)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const square = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function square(styles = {}) {
|
|
24
|
+
return css(squareRaw(styles))
|
|
25
|
+
}), { raw: squareRaw, propKeys: ["size"] })
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SystemProperties, SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface StackProperties {
|
|
4
|
+
align?: SystemProperties["alignItems"]
|
|
5
|
+
direction?: SystemProperties["flexDirection"]
|
|
6
|
+
gap?: SystemProperties["gap"]
|
|
7
|
+
justify?: SystemProperties["justifyContent"]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type StackRestStyles = Omit<SystemStyleObject, keyof StackProperties>
|
|
11
|
+
|
|
12
|
+
interface StackStyles extends StackProperties, StackRestStyles {}
|
|
13
|
+
|
|
14
|
+
interface StackPatternFn {
|
|
15
|
+
(styles?: StackStyles): string
|
|
16
|
+
raw: (styles?: StackStyles) => SystemStyleObject
|
|
17
|
+
propKeys: Array<keyof StackProperties>
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export declare function stackRaw(styles?: StackStyles): SystemStyleObject;
|
|
21
|
+
|
|
22
|
+
export declare const stack: StackPatternFn;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const stackConfig = {
|
|
6
|
+
transform(props) {
|
|
7
|
+
const { align, justify, direction, gap, ...rest } = props;
|
|
8
|
+
return {
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: direction,
|
|
11
|
+
alignItems: align,
|
|
12
|
+
justifyContent: justify,
|
|
13
|
+
gap,
|
|
14
|
+
...rest
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
defaultValues: {
|
|
18
|
+
direction: "column",
|
|
19
|
+
gap: "8px"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function stackRaw(styles) {
|
|
24
|
+
const s = getPatternStyles(stackConfig, styles || {})
|
|
25
|
+
return stackConfig.transform(s, patternFns)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const stack = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function stack(styles = {}) {
|
|
29
|
+
return css(stackRaw(styles))
|
|
30
|
+
}), { raw: stackRaw, propKeys: ["align","direction","gap","justify"] })
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface VisuallyHiddenProperties {}
|
|
4
|
+
|
|
5
|
+
type VisuallyHiddenRestStyles = Omit<SystemStyleObject, keyof VisuallyHiddenProperties>
|
|
6
|
+
|
|
7
|
+
interface VisuallyHiddenStyles extends VisuallyHiddenProperties, VisuallyHiddenRestStyles {}
|
|
8
|
+
|
|
9
|
+
interface VisuallyHiddenPatternFn {
|
|
10
|
+
(styles?: VisuallyHiddenStyles): string
|
|
11
|
+
raw: (styles?: VisuallyHiddenStyles) => SystemStyleObject
|
|
12
|
+
propKeys: Array<keyof VisuallyHiddenProperties>
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export declare function visuallyHiddenRaw(styles?: VisuallyHiddenStyles): SystemStyleObject;
|
|
16
|
+
|
|
17
|
+
export declare const visuallyHidden: VisuallyHiddenPatternFn;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const visuallyHiddenConfig = { transform(props) {
|
|
6
|
+
return {
|
|
7
|
+
srOnly: true,
|
|
8
|
+
...props
|
|
9
|
+
};
|
|
10
|
+
} }
|
|
11
|
+
|
|
12
|
+
export function visuallyHiddenRaw(styles) {
|
|
13
|
+
const s = getPatternStyles(visuallyHiddenConfig, styles || {})
|
|
14
|
+
return visuallyHiddenConfig.transform(s, patternFns)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const visuallyHidden = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function visuallyHidden(styles = {}) {
|
|
18
|
+
return css(visuallyHiddenRaw(styles))
|
|
19
|
+
}), { raw: visuallyHiddenRaw, propKeys: [] })
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SystemProperties, SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface VstackProperties {
|
|
4
|
+
gap?: SystemProperties["gap"]
|
|
5
|
+
justify?: SystemProperties["justifyContent"]
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type VstackRestStyles = Omit<SystemStyleObject, keyof VstackProperties>
|
|
9
|
+
|
|
10
|
+
interface VstackStyles extends VstackProperties, VstackRestStyles {}
|
|
11
|
+
|
|
12
|
+
interface VstackPatternFn {
|
|
13
|
+
(styles?: VstackStyles): string
|
|
14
|
+
raw: (styles?: VstackStyles) => SystemStyleObject
|
|
15
|
+
propKeys: Array<keyof VstackProperties>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare function vstackRaw(styles?: VstackStyles): SystemStyleObject;
|
|
19
|
+
|
|
20
|
+
export declare const vstack: VstackPatternFn;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const vstackConfig = {
|
|
6
|
+
transform(props) {
|
|
7
|
+
const { justify, gap, ...rest } = props;
|
|
8
|
+
return {
|
|
9
|
+
display: "flex",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
justifyContent: justify,
|
|
12
|
+
gap,
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
...rest
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
defaultValues: { gap: "8px" }
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function vstackRaw(styles) {
|
|
21
|
+
const s = getPatternStyles(vstackConfig, styles || {})
|
|
22
|
+
return vstackConfig.transform(s, patternFns)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const vstack = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function vstack(styles = {}) {
|
|
26
|
+
return css(vstackRaw(styles))
|
|
27
|
+
}), { raw: vstackRaw, propKeys: ["gap","justify"] })
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { SystemProperties, SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface WrapProperties {
|
|
4
|
+
align?: SystemProperties["alignItems"]
|
|
5
|
+
columnGap?: SystemProperties["gap"]
|
|
6
|
+
gap?: SystemProperties["gap"]
|
|
7
|
+
justify?: SystemProperties["justifyContent"]
|
|
8
|
+
rowGap?: SystemProperties["gap"]
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type WrapRestStyles = Omit<SystemStyleObject, keyof WrapProperties>
|
|
12
|
+
|
|
13
|
+
interface WrapStyles extends WrapProperties, WrapRestStyles {}
|
|
14
|
+
|
|
15
|
+
interface WrapPatternFn {
|
|
16
|
+
(styles?: WrapStyles): string
|
|
17
|
+
raw: (styles?: WrapStyles) => SystemStyleObject
|
|
18
|
+
propKeys: Array<keyof WrapProperties>
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare function wrapRaw(styles?: WrapStyles): SystemStyleObject;
|
|
22
|
+
|
|
23
|
+
export declare const wrap: WrapPatternFn;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const wrapConfig = { transform(props) {
|
|
6
|
+
const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "8px", 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 function wrapRaw(styles) {
|
|
20
|
+
const s = getPatternStyles(wrapConfig, styles || {})
|
|
21
|
+
return wrapConfig.transform(s, patternFns)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const wrap = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function wrap(styles = {}) {
|
|
25
|
+
return css(wrapRaw(styles))
|
|
26
|
+
}), { raw: wrapRaw, propKeys: ["align","columnGap","gap","justify","rowGap"] })
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { createSerializeCss, getCompoundVariantClassNames, getSlotCompoundVariant, memo, splitProps, toHash, uniq, withDefaults, withoutSpace } from '../helpers.js';
|
|
2
|
+
import { breakpointKeys, finalizeConditions, sortConditions } from '../css/conditions.js';
|
|
3
|
+
import { cx } from '../css/cx.js';
|
|
4
|
+
|
|
5
|
+
function normalize(config) {
|
|
6
|
+
const variantMap = config.variantMap ?? {}
|
|
7
|
+
return {
|
|
8
|
+
name: config.name,
|
|
9
|
+
className: config.className ?? config.name,
|
|
10
|
+
slots: config.slots ?? [],
|
|
11
|
+
variantMap,
|
|
12
|
+
variantKeys: Object.keys(variantMap),
|
|
13
|
+
defaults: config.defaultVariants ?? {},
|
|
14
|
+
compounds: config.compoundVariants ?? [],
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function createRecipe(config) {
|
|
19
|
+
const { name, className, variantMap, variantKeys, defaults, compounds } = normalize(config)
|
|
20
|
+
const classPrefix = null
|
|
21
|
+
|
|
22
|
+
const recipeCss = /* @__PURE__ */ createSerializeCss({
|
|
23
|
+
hash: false,
|
|
24
|
+
conditions: {
|
|
25
|
+
shift: sortConditions,
|
|
26
|
+
finalize: finalizeConditions,
|
|
27
|
+
breakpoints: { keys: breakpointKeys },
|
|
28
|
+
},
|
|
29
|
+
utility: {
|
|
30
|
+
prefix: classPrefix,
|
|
31
|
+
toHash(path, hashFn) {
|
|
32
|
+
return hashFn(path.join(":"))
|
|
33
|
+
},
|
|
34
|
+
transform(prop, value) {
|
|
35
|
+
return { className: value === "__ignore__" ? className : `${className}--${prop}_${withoutSpace(value)}` }
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
})
|
|
39
|
+
const formatClassName = (name) => {
|
|
40
|
+
const next = false ? toHash(name) : name
|
|
41
|
+
return classPrefix ? `${classPrefix}-${next}` : next
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function resolve(props = {}) {
|
|
45
|
+
return { [className]: "__ignore__", ...withDefaults(defaults, props) }
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function assertNoConditions(props) {
|
|
49
|
+
if (compounds.length === 0) return
|
|
50
|
+
for (const key of variantKeys) {
|
|
51
|
+
const value = props[key]
|
|
52
|
+
if (value != null && typeof value === "object") {
|
|
53
|
+
throw new Error(`[recipe:${className}:${key}] Conditions are not supported when using compound variants.`)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function compoundClasses(props) {
|
|
59
|
+
return getCompoundVariantClassNames(compounds, resolve(props), formatClassName)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const recipe = attach(memo(function recipeFn(props = {}, withCompoundVariants = true) {
|
|
63
|
+
assertNoConditions(props)
|
|
64
|
+
const recipeClass = recipeCss(resolve(props))
|
|
65
|
+
if (!withCompoundVariants) return recipeClass
|
|
66
|
+
const compoundsClass = compoundClasses(props)
|
|
67
|
+
return cx(recipeClass, compoundsClass)
|
|
68
|
+
}), name, variantKeys, variantMap, resolve)
|
|
69
|
+
recipe.__recipe__ = true
|
|
70
|
+
recipe.__getCompoundVariantClasses__ = compoundClasses
|
|
71
|
+
recipe.merge = function merge(other) {
|
|
72
|
+
return mergeRecipes(recipe, other)
|
|
73
|
+
}
|
|
74
|
+
return recipe
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function createSlotRecipe(config) {
|
|
78
|
+
const { name, className, slots, variantMap, variantKeys, defaults, compounds } = normalize(config)
|
|
79
|
+
|
|
80
|
+
const slotFns = slots.map(function toSlotRecipe(slot) {
|
|
81
|
+
return [slot, createRecipe({
|
|
82
|
+
name,
|
|
83
|
+
className: `${className}__${slot}`,
|
|
84
|
+
variantMap,
|
|
85
|
+
defaultVariants: defaults,
|
|
86
|
+
compoundVariants: getSlotCompoundVariant(compounds, slot),
|
|
87
|
+
})]
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
const recipe = memo(function slotRecipeFn(props = {}) {
|
|
91
|
+
const result = {}
|
|
92
|
+
for (const [slot, slotFn] of slotFns) result[slot] = slotFn(props)
|
|
93
|
+
return result
|
|
94
|
+
})
|
|
95
|
+
attach(recipe, name, variantKeys, variantMap, function getVariantProps(props = {}) {
|
|
96
|
+
return withDefaults(defaults, props)
|
|
97
|
+
})
|
|
98
|
+
recipe.__recipe__ = false
|
|
99
|
+
recipe.classNameMap = {}
|
|
100
|
+
return recipe
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function mergeRecipes(recipeA, recipeB) {
|
|
104
|
+
if (recipeA && !recipeB) return recipeA
|
|
105
|
+
if (!recipeA && recipeB) return recipeB
|
|
106
|
+
function merged(...args) {
|
|
107
|
+
const classA = recipeA(...args)
|
|
108
|
+
const classB = recipeB(...args)
|
|
109
|
+
return classA && classB ? `${classA} ${classB}` : classA || classB
|
|
110
|
+
}
|
|
111
|
+
const variantKeys = uniq(recipeA.variantKeys, recipeB.variantKeys)
|
|
112
|
+
const variantMap = {}
|
|
113
|
+
for (const key of variantKeys) variantMap[key] = uniq(recipeA.variantMap[key], recipeB.variantMap[key])
|
|
114
|
+
attach(merged, `${recipeA.__name__} ${recipeB.__name__}`, variantKeys, variantMap, function getVariantProps(props) {
|
|
115
|
+
return props
|
|
116
|
+
})
|
|
117
|
+
merged.__recipe__ = true
|
|
118
|
+
return merged
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function attach(recipe, name, variantKeys, variantMap, getVariantProps) {
|
|
122
|
+
recipe.__name__ = name
|
|
123
|
+
recipe.raw = function raw(props) {
|
|
124
|
+
return props
|
|
125
|
+
}
|
|
126
|
+
recipe.variantKeys = variantKeys
|
|
127
|
+
recipe.variantMap = variantMap
|
|
128
|
+
recipe.splitVariantProps = function splitVariantProps(props) {
|
|
129
|
+
return splitProps(props, variantKeys)
|
|
130
|
+
}
|
|
131
|
+
recipe.getVariantProps = getVariantProps
|
|
132
|
+
return recipe
|
|
133
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { colorMix, toCssVar } from '../helpers.js';
|
|
2
|
+
|
|
3
|
+
const tokens = {"breakpoints.2xl":"1440px","breakpoints.2xs":"420px","breakpoints.3xl":"1640px","breakpoints.3xs":"360px","breakpoints.4xl":"1920px","breakpoints.lg":"1024px","breakpoints.md":"768px","breakpoints.sm":"640px","breakpoints.xl":"1280px","breakpoints.xs":"520px","colors.accent-border":"","colors.accent-subtle":"","colors.accent-text":"","colors.black":"#000000","colors.blue.100":"#dbeafe","colors.blue.200":"#bfdbfe","colors.blue.300":"#93c5fd","colors.blue.400":"#60a5fa","colors.blue.50":"#eff6ff","colors.blue.500":"#3b82f6","colors.blue.600":"#2563eb","colors.blue.700":"#1d4ed8","colors.blue.800":"#1e40af","colors.blue.900":"#1e3a8a","colors.blue.950":"#172554","colors.border":"","colors.border.card":"","colors.border.hover":"","colors.border.subtle":"","colors.brand.100":"#FFD9CE","colors.brand.200":"#FFBAAA","colors.brand.300":"#FD9B85","colors.brand.400":"#f87960","colors.brand.50":"#FDF1EB","colors.brand.500":"#E75F45","colors.brand.600":"#C6543F","colors.brand.700":"#A44C3B","colors.brand.800":"#834235","colors.brand.900":"#66382E","colors.colorPalette":"","colors.colorPalette.100":"","colors.colorPalette.200":"","colors.colorPalette.300":"","colors.colorPalette.400":"","colors.colorPalette.50":"","colors.colorPalette.500":"","colors.colorPalette.600":"","colors.colorPalette.700":"","colors.colorPalette.800":"","colors.colorPalette.900":"","colors.colorPalette.950":"","colors.colorPalette.card":"","colors.colorPalette.hover":"","colors.colorPalette.inverse":"","colors.colorPalette.light":"","colors.colorPalette.muted":"","colors.colorPalette.placeholder":"","colors.colorPalette.raised":"","colors.colorPalette.subtle":"","colors.colorPalette.subtle.light":"","colors.colorPalette.text":"","colors.colorPalette.track":"","colors.danger":"","colors.danger.subtle":"","colors.danger.subtle.light":"","colors.danger.text":"var(--colors-red-900)","colors.green.100":"#dcfce7","colors.green.200":"#bbf7d0","colors.green.300":"#86efac","colors.green.400":"#4ade80","colors.green.50":"#f0fdf4","colors.green.500":"#22c55e","colors.green.600":"#16a34a","colors.green.700":"#15803d","colors.green.800":"#166534","colors.green.900":"#14532d","colors.green.950":"#052e16","colors.grey.100":"#e5e5e5","colors.grey.200":"#d4d4d4","colors.grey.300":"#a3a3a3","colors.grey.400":"#737373","colors.grey.50":"#fafafa","colors.grey.500":"#525252","colors.grey.600":"#404040","colors.grey.700":"#333333","colors.grey.800":"#262626","colors.grey.900":"#1d1d1d","colors.grey.950":"#171717","colors.info":"","colors.info.subtle":"","colors.info.subtle.light":"","colors.info.text":"var(--colors-blue-900)","colors.input-bg":"","colors.input-border":"","colors.input-color":"var(--colors-grey-400)","colors.input-disabled-bg":"","colors.loader.track":"","colors.muted":"","colors.neutral":"","colors.neutral.inverse":"","colors.neutral.light":"var(--colors-grey-400)","colors.neutral.subtle":"","colors.primary":"var(--colors-brand-400)","colors.primary-pale":"var(--colors-brand-50)","colors.red.100":"#fee2e2","colors.red.200":"#fecaca","colors.red.300":"#fca5a5","colors.red.400":"#f87171","colors.red.50":"#fef2f2","colors.red.500":"#ef4444","colors.red.600":"#dc2626","colors.red.700":"#b91c1c","colors.red.800":"#991b1b","colors.red.900":"#7f1d1d","colors.red.950":"#450a0a","colors.success":"","colors.success.subtle":"","colors.success.subtle.light":"","colors.success.text":"var(--colors-green-900)","colors.surface":"","colors.surface-muted":"","colors.surface.raised":"","colors.text.muted":"","colors.text.placeholder":"","colors.transparent":"#00000000","colors.warning":"","colors.warning.subtle":"","colors.warning.subtle.light":"","colors.warning.text":"var(--colors-yellow-900)","colors.white":"#FFFFFF","colors.yellow.100":"#fef3c7","colors.yellow.200":"#fde68a","colors.yellow.300":"#fcd34d","colors.yellow.400":"#fbbf24","colors.yellow.50":"#fffbeb","colors.yellow.500":"#f59e0b","colors.yellow.600":"#d97706","colors.yellow.700":"#b45309","colors.yellow.800":"#92400e","colors.yellow.900":"#78350f","colors.yellow.950":"#451a03","durations.fast":"150ms","durations.normal":"300ms","durations.slow":"600ms","easings.default":"cubic-bezier(0.4, 0, 0.2, 1)","easings.out":"cubic-bezier(0.16, 1, 0.3, 1)","fontSizes.2xl":"32px","fontSizes.3xl":"40px","fontSizes.4xl":"48px","fontSizes.5xl":"64px","fontSizes.lg":"20px","fontSizes.md":"16px","fontSizes.sm":"14px","fontSizes.xl":"24px","fontSizes.xs":"12px","fontWeights.bold":"700","fontWeights.extrabold":"800","fontWeights.medium":"500","fontWeights.normal":"400","fontWeights.regular":"400","fontWeights.semibold":"600","fonts.body":"var(--fonts-sans)","fonts.mono":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace","fonts.sans":"Figtree, ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"","fonts.serif":"ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif","letterSpacings.normal":"0","letterSpacings.tight":"-0.02em","letterSpacings.tighter":"-0.035em","letterSpacings.wide":"0.08em","lineHeights.heading":"1.08","lineHeights.none":"1","lineHeights.normal":"1.5","lineHeights.relaxed":"1.65","lineHeights.tight":"1.25","opacity.color.neutral":"","opacity.color.neutral.lighter":"","opacity.color.status":"","opacity.color.status.lighter":"25%","radii.2xl":"20px","radii.3xl":"24px","radii.4xl":"32px","radii.5xl":"40px","radii.lg":"10px","radii.md":"6px","radii.pill":"99rem","radii.sm":"4px","radii.xl":"16px","shadows.card":"","shadows.float":"","shadows.focus":"0 0 0 4px color-mix(in srgb, var(--colors-primary) 30%, transparent)","shadows.focus-danger":"0 0 0 4px color-mix(in srgb, var(--colors-red-600) 30%, transparent)","shadows.focus-success":"0 0 0 4px color-mix(in srgb, var(--colors-green-600) 30%, transparent)","sizes.breakpoint-2xl":"1440px","sizes.breakpoint-2xs":"420px","sizes.breakpoint-3xl":"1640px","sizes.breakpoint-3xs":"360px","sizes.breakpoint-4xl":"1920px","sizes.breakpoint-lg":"1024px","sizes.breakpoint-md":"768px","sizes.breakpoint-sm":"640px","sizes.breakpoint-xl":"1280px","sizes.breakpoint-xs":"520px","sizes.container":"1200px","sizes.prose":"44rem","spacing.-10xl":"calc(var(--spacing-10xl) * -1)","spacing.-11xl":"calc(var(--spacing-11xl) * -1)","spacing.-12xl":"calc(var(--spacing-12xl) * -1)","spacing.-2xl":"calc(var(--spacing-2xl) * -1)","spacing.-2xs":"calc(var(--spacing-2xs) * -1)","spacing.-3xl":"calc(var(--spacing-3xl) * -1)","spacing.-3xs":"calc(var(--spacing-3xs) * -1)","spacing.-4xl":"calc(var(--spacing-4xl) * -1)","spacing.-5xl":"calc(var(--spacing-5xl) * -1)","spacing.-6xl":"calc(var(--spacing-6xl) * -1)","spacing.-7xl":"calc(var(--spacing-7xl) * -1)","spacing.-8xl":"calc(var(--spacing-8xl) * -1)","spacing.-9xl":"calc(var(--spacing-9xl) * -1)","spacing.-lg":"calc(var(--spacing-lg) * -1)","spacing.-md":"calc(var(--spacing-md) * -1)","spacing.-sm":"calc(var(--spacing-sm) * -1)","spacing.-xl":"calc(var(--spacing-xl) * -1)","spacing.-xs":"calc(var(--spacing-xs) * -1)","spacing.10xl":"128px","spacing.11xl":"144px","spacing.12xl":"160px","spacing.2xl":"32px","spacing.2xs":"4px","spacing.3xl":"40px","spacing.3xs":"2px","spacing.4xl":"48px","spacing.5xl":"56px","spacing.6xl":"64px","spacing.7xl":"72px","spacing.8xl":"80px","spacing.9xl":"96px","spacing.lg":"20px","spacing.md":"16px","spacing.sm":"12px","spacing.xl":"24px","spacing.xs":"8px"}
|
|
4
|
+
|
|
5
|
+
const tokenVars = {"spacing.-10xl":"var(--spacing-10xl)","spacing.-11xl":"var(--spacing-11xl)","spacing.-12xl":"var(--spacing-12xl)","spacing.-2xl":"var(--spacing-2xl)","spacing.-2xs":"var(--spacing-2xs)","spacing.-3xl":"var(--spacing-3xl)","spacing.-3xs":"var(--spacing-3xs)","spacing.-4xl":"var(--spacing-4xl)","spacing.-5xl":"var(--spacing-5xl)","spacing.-6xl":"var(--spacing-6xl)","spacing.-7xl":"var(--spacing-7xl)","spacing.-8xl":"var(--spacing-8xl)","spacing.-9xl":"var(--spacing-9xl)","spacing.-lg":"var(--spacing-lg)","spacing.-md":"var(--spacing-md)","spacing.-sm":"var(--spacing-sm)","spacing.-xl":"var(--spacing-xl)","spacing.-xs":"var(--spacing-xs)"}
|
|
6
|
+
const resolveVar = (path) => tokenVars[path] || toCssVar(path)
|
|
7
|
+
|
|
8
|
+
export const token = /* @__PURE__ */ Object.assign(
|
|
9
|
+
function token(path, fallback) {
|
|
10
|
+
const value = tokens[path]
|
|
11
|
+
return value === undefined ? colorMix(tokens, path, resolveVar) || fallback : value || resolveVar(path)
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
var: function tokenVar(path, fallback) {
|
|
15
|
+
return tokens[path] === undefined ? fallback : resolveVar(path)
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ConditionalValue, SystemProperties, SystemStyleObject } from './system.js';
|
|
2
|
+
|
|
3
|
+
export type PatternPrimitive = string | number | boolean
|
|
4
|
+
|
|
5
|
+
export type PatternPropertyValue<Property extends keyof SystemProperties> = SystemProperties[Property]
|
|
6
|
+
|
|
7
|
+
export type PatternTokenValue<Value> = ConditionalValue<Value>
|
|
8
|
+
|
|
9
|
+
export interface PatternHelpers {
|
|
10
|
+
map(value: unknown, fn: (value: string) => string | undefined): unknown
|
|
11
|
+
isCssUnit(value: unknown): boolean
|
|
12
|
+
isCssVar(value: unknown): boolean
|
|
13
|
+
isCssFunction(value: unknown): boolean
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface PatternConfig<Props extends object = object> {
|
|
17
|
+
properties?: Props
|
|
18
|
+
defaultValues?: Partial<Props> | ((props: Props) => Partial<Props>)
|
|
19
|
+
transform?: (props: Props, helpers: PatternHelpers) => SystemStyleObject
|
|
20
|
+
strict?: boolean
|
|
21
|
+
blocklist?: Array<keyof SystemProperties>
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface PatternRuntimeConfig<Props extends object = object> extends PatternConfig<Props> {
|
|
25
|
+
transform: (props: Props, helpers: PatternHelpers) => SystemStyleObject
|
|
26
|
+
}
|