@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,30 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const bleedConfig = {
|
|
6
|
+
transform(props, { map, isCssUnit, isCssVar }) {
|
|
7
|
+
const { inline, block, ...rest } = props;
|
|
8
|
+
const valueFn = (v) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
|
|
9
|
+
return {
|
|
10
|
+
"--bleed-x": map(inline, valueFn),
|
|
11
|
+
"--bleed-y": map(block, valueFn),
|
|
12
|
+
marginInline: "calc(var(--bleed-x, 0) * -1)",
|
|
13
|
+
marginBlock: "calc(var(--bleed-y, 0) * -1)",
|
|
14
|
+
...rest
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
defaultValues: {
|
|
18
|
+
inline: "0",
|
|
19
|
+
block: "0"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function bleedRaw(styles) {
|
|
24
|
+
const s = getPatternStyles(bleedConfig, styles || {})
|
|
25
|
+
return bleedConfig.transform(s, patternFns)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const bleed = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function bleed(styles = {}) {
|
|
29
|
+
return css(bleedRaw(styles))
|
|
30
|
+
}), { raw: bleedRaw, propKeys: ["block","inline"] })
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface BoxProperties {}
|
|
4
|
+
|
|
5
|
+
type BoxRestStyles = Omit<SystemStyleObject, keyof BoxProperties>
|
|
6
|
+
|
|
7
|
+
interface BoxStyles extends BoxProperties, BoxRestStyles {}
|
|
8
|
+
|
|
9
|
+
interface BoxPatternFn {
|
|
10
|
+
(styles?: BoxStyles): string
|
|
11
|
+
raw: (styles?: BoxStyles) => SystemStyleObject
|
|
12
|
+
propKeys: Array<keyof BoxProperties>
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export declare function boxRaw(styles?: BoxStyles): SystemStyleObject;
|
|
16
|
+
|
|
17
|
+
export declare const box: BoxPatternFn;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const boxConfig = { transform(props) {
|
|
6
|
+
return props;
|
|
7
|
+
} }
|
|
8
|
+
|
|
9
|
+
export function boxRaw(styles) {
|
|
10
|
+
const s = getPatternStyles(boxConfig, styles || {})
|
|
11
|
+
return boxConfig.transform(s, patternFns)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const box = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function box(styles = {}) {
|
|
15
|
+
return css(boxRaw(styles))
|
|
16
|
+
}), { raw: boxRaw, propKeys: [] })
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ConditionalValue, SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface CenterProperties {
|
|
4
|
+
inline?: ConditionalValue<boolean>
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type CenterRestStyles = Omit<SystemStyleObject, keyof CenterProperties>
|
|
8
|
+
|
|
9
|
+
interface CenterStyles extends CenterProperties, CenterRestStyles {}
|
|
10
|
+
|
|
11
|
+
interface CenterPatternFn {
|
|
12
|
+
(styles?: CenterStyles): string
|
|
13
|
+
raw: (styles?: CenterStyles) => SystemStyleObject
|
|
14
|
+
propKeys: Array<keyof CenterProperties>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare function centerRaw(styles?: CenterStyles): SystemStyleObject;
|
|
18
|
+
|
|
19
|
+
export declare const center: CenterPatternFn;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const centerConfig = { transform(props) {
|
|
6
|
+
const { inline, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: inline ? "inline-flex" : "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
...rest
|
|
12
|
+
};
|
|
13
|
+
} }
|
|
14
|
+
|
|
15
|
+
export function centerRaw(styles) {
|
|
16
|
+
const s = getPatternStyles(centerConfig, styles || {})
|
|
17
|
+
return centerConfig.transform(s, patternFns)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const center = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function center(styles = {}) {
|
|
21
|
+
return css(centerRaw(styles))
|
|
22
|
+
}), { raw: centerRaw, propKeys: ["inline"] })
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SystemProperties, SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface CircleProperties {
|
|
4
|
+
size?: SystemProperties["width"]
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type CircleRestStyles = Omit<SystemStyleObject, keyof CircleProperties>
|
|
8
|
+
|
|
9
|
+
interface CircleStyles extends CircleProperties, CircleRestStyles {}
|
|
10
|
+
|
|
11
|
+
interface CirclePatternFn {
|
|
12
|
+
(styles?: CircleStyles): string
|
|
13
|
+
raw: (styles?: CircleStyles) => SystemStyleObject
|
|
14
|
+
propKeys: Array<keyof CircleProperties>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare function circleRaw(styles?: CircleStyles): SystemStyleObject;
|
|
18
|
+
|
|
19
|
+
export declare const circle: CirclePatternFn;
|
|
@@ -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 circleConfig = { 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
|
+
borderRadius: "9999px",
|
|
15
|
+
...rest
|
|
16
|
+
};
|
|
17
|
+
} }
|
|
18
|
+
|
|
19
|
+
export function circleRaw(styles) {
|
|
20
|
+
const s = getPatternStyles(circleConfig, styles || {})
|
|
21
|
+
return circleConfig.transform(s, patternFns)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const circle = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function circle(styles = {}) {
|
|
25
|
+
return css(circleRaw(styles))
|
|
26
|
+
}), { raw: circleRaw, propKeys: ["size"] })
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface ContainerProperties {}
|
|
4
|
+
|
|
5
|
+
type ContainerRestStyles = Omit<SystemStyleObject, keyof ContainerProperties>
|
|
6
|
+
|
|
7
|
+
interface ContainerStyles extends ContainerProperties, ContainerRestStyles {}
|
|
8
|
+
|
|
9
|
+
interface ContainerPatternFn {
|
|
10
|
+
(styles?: ContainerStyles): string
|
|
11
|
+
raw: (styles?: ContainerStyles) => SystemStyleObject
|
|
12
|
+
propKeys: Array<keyof ContainerProperties>
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export declare function containerRaw(styles?: ContainerStyles): SystemStyleObject;
|
|
16
|
+
|
|
17
|
+
export declare const container: ContainerPatternFn;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const containerConfig = { transform({ maxWidth, px }) {
|
|
6
|
+
return {
|
|
7
|
+
position: "relative",
|
|
8
|
+
maxWidth: {
|
|
9
|
+
"base": "360px",
|
|
10
|
+
"3xs": "360px",
|
|
11
|
+
"2xs": "400px",
|
|
12
|
+
"xs": "500px",
|
|
13
|
+
"sm": "620px",
|
|
14
|
+
"md": "740px",
|
|
15
|
+
"lg": "1000px",
|
|
16
|
+
"xl": "1200px",
|
|
17
|
+
"2xl": "1400px",
|
|
18
|
+
"3xl": "1600px",
|
|
19
|
+
...maxWidth
|
|
20
|
+
},
|
|
21
|
+
mx: "auto",
|
|
22
|
+
px: {
|
|
23
|
+
base: "lg",
|
|
24
|
+
...px
|
|
25
|
+
},
|
|
26
|
+
transition: "max-width 200ms"
|
|
27
|
+
};
|
|
28
|
+
} }
|
|
29
|
+
|
|
30
|
+
export function containerRaw(styles) {
|
|
31
|
+
const s = getPatternStyles(containerConfig, styles || {})
|
|
32
|
+
return containerConfig.transform(s, patternFns)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const container = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function container(styles = {}) {
|
|
36
|
+
return css(containerRaw(styles))
|
|
37
|
+
}), { raw: containerRaw, propKeys: [] })
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TokenValue } from '../types/tokens.js';
|
|
2
|
+
import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system.js';
|
|
3
|
+
|
|
4
|
+
export interface CqProperties {
|
|
5
|
+
name?: ConditionalValue<TokenValue<"containerNames"> | SystemProperties["containerName"]>
|
|
6
|
+
type?: SystemProperties["containerType"]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type CqRestStyles = Omit<SystemStyleObject, keyof CqProperties>
|
|
10
|
+
|
|
11
|
+
interface CqStyles extends CqProperties, CqRestStyles {}
|
|
12
|
+
|
|
13
|
+
interface CqPatternFn {
|
|
14
|
+
(styles?: CqStyles): string
|
|
15
|
+
raw: (styles?: CqStyles) => SystemStyleObject
|
|
16
|
+
propKeys: Array<keyof CqProperties>
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export declare function cqRaw(styles?: CqStyles): SystemStyleObject;
|
|
20
|
+
|
|
21
|
+
export declare const cq: CqPatternFn;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const cqConfig = {
|
|
6
|
+
transform(props) {
|
|
7
|
+
const { name, type, ...rest } = props;
|
|
8
|
+
return {
|
|
9
|
+
containerType: type,
|
|
10
|
+
containerName: name,
|
|
11
|
+
...rest
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
defaultValues: { type: "inline-size" }
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function cqRaw(styles) {
|
|
18
|
+
const s = getPatternStyles(cqConfig, styles || {})
|
|
19
|
+
return cqConfig.transform(s, patternFns)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const cq = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function cq(styles = {}) {
|
|
23
|
+
return css(cqRaw(styles))
|
|
24
|
+
}), { raw: cqRaw, propKeys: ["name","type"] })
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TokenValue } from '../types/tokens.js';
|
|
2
|
+
import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system.js';
|
|
3
|
+
|
|
4
|
+
export interface DividerProperties {
|
|
5
|
+
color?: ConditionalValue<TokenValue<"colors"> | SystemProperties["borderColor"]>
|
|
6
|
+
orientation?: ConditionalValue<"horizontal" | "vertical">
|
|
7
|
+
thickness?: ConditionalValue<TokenValue<"sizes"> | SystemProperties["borderWidth"]>
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type DividerRestStyles = Omit<SystemStyleObject, keyof DividerProperties>
|
|
11
|
+
|
|
12
|
+
interface DividerStyles extends DividerProperties, DividerRestStyles {}
|
|
13
|
+
|
|
14
|
+
interface DividerPatternFn {
|
|
15
|
+
(styles?: DividerStyles): string
|
|
16
|
+
raw: (styles?: DividerStyles) => SystemStyleObject
|
|
17
|
+
propKeys: Array<keyof DividerProperties>
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export declare function dividerRaw(styles?: DividerStyles): SystemStyleObject;
|
|
21
|
+
|
|
22
|
+
export declare const divider: DividerPatternFn;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const dividerConfig = {
|
|
6
|
+
transform(props, { map }) {
|
|
7
|
+
const { orientation, thickness, color: color2, ...rest } = props;
|
|
8
|
+
return {
|
|
9
|
+
"--thickness": thickness,
|
|
10
|
+
width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
|
|
11
|
+
height: map(orientation, (v) => v === "horizontal" ? void 0 : "100%"),
|
|
12
|
+
borderBlockEndWidth: map(orientation, (v) => v === "horizontal" ? "var(--thickness)" : void 0),
|
|
13
|
+
borderInlineEndWidth: map(orientation, (v) => v === "vertical" ? "var(--thickness)" : void 0),
|
|
14
|
+
borderColor: color2,
|
|
15
|
+
...rest
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
defaultValues: {
|
|
19
|
+
orientation: "horizontal",
|
|
20
|
+
thickness: "1px"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function dividerRaw(styles) {
|
|
25
|
+
const s = getPatternStyles(dividerConfig, styles || {})
|
|
26
|
+
return dividerConfig.transform(s, patternFns)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const divider = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function divider(styles = {}) {
|
|
30
|
+
return css(dividerRaw(styles))
|
|
31
|
+
}), { raw: dividerRaw, propKeys: ["color","orientation","thickness"] })
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { SystemProperties, SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface FlexProperties {
|
|
4
|
+
align?: SystemProperties["alignItems"]
|
|
5
|
+
basis?: SystemProperties["flexBasis"]
|
|
6
|
+
direction?: SystemProperties["flexDirection"]
|
|
7
|
+
grow?: SystemProperties["flexGrow"]
|
|
8
|
+
justify?: SystemProperties["justifyContent"]
|
|
9
|
+
shrink?: SystemProperties["flexShrink"]
|
|
10
|
+
wrap?: SystemProperties["flexWrap"]
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type FlexRestStyles = Omit<SystemStyleObject, keyof FlexProperties>
|
|
14
|
+
|
|
15
|
+
interface FlexStyles extends FlexProperties, FlexRestStyles {}
|
|
16
|
+
|
|
17
|
+
interface FlexPatternFn {
|
|
18
|
+
(styles?: FlexStyles): string
|
|
19
|
+
raw: (styles?: FlexStyles) => SystemStyleObject
|
|
20
|
+
propKeys: Array<keyof FlexProperties>
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export declare function flexRaw(styles?: FlexStyles): SystemStyleObject;
|
|
24
|
+
|
|
25
|
+
export declare const flex: FlexPatternFn;
|
|
@@ -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 flexConfig = { transform(props) {
|
|
6
|
+
const { direction, align, justify, wrap: wrap2, basis, grow, shrink, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: direction,
|
|
10
|
+
alignItems: align,
|
|
11
|
+
justifyContent: justify,
|
|
12
|
+
flexWrap: wrap2,
|
|
13
|
+
flexBasis: basis,
|
|
14
|
+
flexGrow: grow,
|
|
15
|
+
flexShrink: shrink,
|
|
16
|
+
...rest
|
|
17
|
+
};
|
|
18
|
+
} }
|
|
19
|
+
|
|
20
|
+
export function flexRaw(styles) {
|
|
21
|
+
const s = getPatternStyles(flexConfig, styles || {})
|
|
22
|
+
return flexConfig.transform(s, patternFns)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const flex = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function flex(styles = {}) {
|
|
26
|
+
return css(flexRaw(styles))
|
|
27
|
+
}), { raw: flexRaw, propKeys: ["align","basis","direction","grow","justify","shrink","wrap"] })
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TokenValue } from '../types/tokens.js';
|
|
2
|
+
import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system.js';
|
|
3
|
+
|
|
4
|
+
export interface FloatProperties {
|
|
5
|
+
offset?: ConditionalValue<TokenValue<"spacing"> | SystemProperties["top"]>
|
|
6
|
+
offsetX?: ConditionalValue<TokenValue<"spacing"> | SystemProperties["left"]>
|
|
7
|
+
offsetY?: ConditionalValue<TokenValue<"spacing"> | SystemProperties["top"]>
|
|
8
|
+
placement?: ConditionalValue<"bottom-end" | "bottom-start" | "top-end" | "top-start" | "bottom-center" | "top-center" | "middle-center" | "middle-end" | "middle-start">
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type FloatRestStyles = Omit<SystemStyleObject, keyof FloatProperties>
|
|
12
|
+
|
|
13
|
+
interface FloatStyles extends FloatProperties, FloatRestStyles {}
|
|
14
|
+
|
|
15
|
+
interface FloatPatternFn {
|
|
16
|
+
(styles?: FloatStyles): string
|
|
17
|
+
raw: (styles?: FloatStyles) => SystemStyleObject
|
|
18
|
+
propKeys: Array<keyof FloatProperties>
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare function floatRaw(styles?: FloatStyles): SystemStyleObject;
|
|
22
|
+
|
|
23
|
+
export declare const float: FloatPatternFn;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime.js';
|
|
2
|
+
import { memo } from '../helpers.js';
|
|
3
|
+
import { css } from '../css/index.js';
|
|
4
|
+
|
|
5
|
+
const floatConfig = {
|
|
6
|
+
transform(props, { map }) {
|
|
7
|
+
const { offset, offsetX, offsetY, placement, ...rest } = props;
|
|
8
|
+
return {
|
|
9
|
+
display: "inline-flex",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
position: "absolute",
|
|
13
|
+
insetBlockStart: map(placement, (v) => {
|
|
14
|
+
const [side] = v.split("-");
|
|
15
|
+
return {
|
|
16
|
+
top: offsetY,
|
|
17
|
+
middle: "50%",
|
|
18
|
+
bottom: "auto"
|
|
19
|
+
}[side];
|
|
20
|
+
}),
|
|
21
|
+
insetBlockEnd: map(placement, (v) => {
|
|
22
|
+
const [side] = v.split("-");
|
|
23
|
+
return {
|
|
24
|
+
top: "auto",
|
|
25
|
+
middle: "50%",
|
|
26
|
+
bottom: offsetY
|
|
27
|
+
}[side];
|
|
28
|
+
}),
|
|
29
|
+
insetInlineStart: map(placement, (v) => {
|
|
30
|
+
const [, align] = v.split("-");
|
|
31
|
+
return {
|
|
32
|
+
start: offsetX,
|
|
33
|
+
center: "50%",
|
|
34
|
+
end: "auto"
|
|
35
|
+
}[align];
|
|
36
|
+
}),
|
|
37
|
+
insetInlineEnd: map(placement, (v) => {
|
|
38
|
+
const [, align] = v.split("-");
|
|
39
|
+
return {
|
|
40
|
+
start: "auto",
|
|
41
|
+
center: "50%",
|
|
42
|
+
end: offsetX
|
|
43
|
+
}[align];
|
|
44
|
+
}),
|
|
45
|
+
translate: map(placement, (v) => {
|
|
46
|
+
const [side, align] = v.split("-");
|
|
47
|
+
return `${{
|
|
48
|
+
start: "-50%",
|
|
49
|
+
center: "-50%",
|
|
50
|
+
end: "50%"
|
|
51
|
+
}[align]} ${{
|
|
52
|
+
top: "-50%",
|
|
53
|
+
middle: "-50%",
|
|
54
|
+
bottom: "50%"
|
|
55
|
+
}[side]}`;
|
|
56
|
+
}),
|
|
57
|
+
...rest
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
defaultValues(props) {
|
|
61
|
+
const offset = props.offset || "0";
|
|
62
|
+
return {
|
|
63
|
+
offset,
|
|
64
|
+
offsetX: offset,
|
|
65
|
+
offsetY: offset,
|
|
66
|
+
placement: "top-end"
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function floatRaw(styles) {
|
|
72
|
+
const s = getPatternStyles(floatConfig, styles || {})
|
|
73
|
+
return floatConfig.transform(s, patternFns)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const float = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function float(styles = {}) {
|
|
77
|
+
return css(floatRaw(styles))
|
|
78
|
+
}), { raw: floatRaw, propKeys: ["offset","offsetX","offsetY","placement"] })
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ConditionalValue, SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface GridItemProperties {
|
|
4
|
+
colEnd?: ConditionalValue<number>
|
|
5
|
+
colSpan?: ConditionalValue<number>
|
|
6
|
+
colStart?: ConditionalValue<number>
|
|
7
|
+
rowEnd?: ConditionalValue<number>
|
|
8
|
+
rowSpan?: ConditionalValue<number>
|
|
9
|
+
rowStart?: ConditionalValue<number>
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type GridItemRestStyles = Omit<SystemStyleObject, keyof GridItemProperties>
|
|
13
|
+
|
|
14
|
+
interface GridItemStyles extends GridItemProperties, GridItemRestStyles {}
|
|
15
|
+
|
|
16
|
+
interface GridItemPatternFn {
|
|
17
|
+
(styles?: GridItemStyles): string
|
|
18
|
+
raw: (styles?: GridItemStyles) => SystemStyleObject
|
|
19
|
+
propKeys: Array<keyof GridItemProperties>
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare function gridItemRaw(styles?: GridItemStyles): SystemStyleObject;
|
|
23
|
+
|
|
24
|
+
export declare const gridItem: GridItemPatternFn;
|
|
@@ -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 gridItemConfig = { transform(props, { map }) {
|
|
6
|
+
const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props;
|
|
7
|
+
const spanFn = (v) => v === "auto" ? v : `span ${v}`;
|
|
8
|
+
return {
|
|
9
|
+
gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
|
|
10
|
+
gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
|
|
11
|
+
gridColumnStart: colStart,
|
|
12
|
+
gridColumnEnd: colEnd,
|
|
13
|
+
gridRowStart: rowStart,
|
|
14
|
+
gridRowEnd: rowEnd,
|
|
15
|
+
...rest
|
|
16
|
+
};
|
|
17
|
+
} }
|
|
18
|
+
|
|
19
|
+
export function gridItemRaw(styles) {
|
|
20
|
+
const s = getPatternStyles(gridItemConfig, styles || {})
|
|
21
|
+
return gridItemConfig.transform(s, patternFns)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const gridItem = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function gridItem(styles = {}) {
|
|
25
|
+
return css(gridItemRaw(styles))
|
|
26
|
+
}), { raw: gridItemRaw, propKeys: ["colEnd","colSpan","colStart","rowEnd","rowSpan","rowStart"] })
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TokenValue } from '../types/tokens.js';
|
|
2
|
+
import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system.js';
|
|
3
|
+
|
|
4
|
+
export interface GridProperties {
|
|
5
|
+
columnGap?: SystemProperties["gap"]
|
|
6
|
+
columns?: ConditionalValue<number>
|
|
7
|
+
gap?: SystemProperties["gap"]
|
|
8
|
+
minChildWidth?: ConditionalValue<TokenValue<"sizes"> | SystemProperties["width"]>
|
|
9
|
+
rowGap?: SystemProperties["gap"]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type GridRestStyles = Omit<SystemStyleObject, keyof GridProperties>
|
|
13
|
+
|
|
14
|
+
interface GridStyles extends GridProperties, GridRestStyles {}
|
|
15
|
+
|
|
16
|
+
interface GridPatternFn {
|
|
17
|
+
(styles?: GridStyles): string
|
|
18
|
+
raw: (styles?: GridStyles) => SystemStyleObject
|
|
19
|
+
propKeys: Array<keyof GridProperties>
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare function gridRaw(styles?: GridStyles): SystemStyleObject;
|
|
23
|
+
|
|
24
|
+
export declare const grid: GridPatternFn;
|
|
@@ -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 gridConfig = {
|
|
6
|
+
transform(props, { map, isCssUnit }) {
|
|
7
|
+
const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props;
|
|
8
|
+
const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
|
|
9
|
+
return {
|
|
10
|
+
display: "grid",
|
|
11
|
+
gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
|
|
12
|
+
gap,
|
|
13
|
+
columnGap,
|
|
14
|
+
rowGap,
|
|
15
|
+
...rest
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
defaultValues(props) {
|
|
19
|
+
return { gap: props.columnGap || props.rowGap ? void 0 : "8px" };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function gridRaw(styles) {
|
|
24
|
+
const s = getPatternStyles(gridConfig, styles || {})
|
|
25
|
+
return gridConfig.transform(s, patternFns)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const grid = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function grid(styles = {}) {
|
|
29
|
+
return css(gridRaw(styles))
|
|
30
|
+
}), { raw: gridRaw, propKeys: ["columnGap","columns","gap","minChildWidth","rowGap"] })
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SystemProperties, SystemStyleObject } from '../types/system.js';
|
|
2
|
+
|
|
3
|
+
export interface HstackProperties {
|
|
4
|
+
gap?: SystemProperties["gap"]
|
|
5
|
+
justify?: SystemProperties["justifyContent"]
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type HstackRestStyles = Omit<SystemStyleObject, keyof HstackProperties>
|
|
9
|
+
|
|
10
|
+
interface HstackStyles extends HstackProperties, HstackRestStyles {}
|
|
11
|
+
|
|
12
|
+
interface HstackPatternFn {
|
|
13
|
+
(styles?: HstackStyles): string
|
|
14
|
+
raw: (styles?: HstackStyles) => SystemStyleObject
|
|
15
|
+
propKeys: Array<keyof HstackProperties>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare function hstackRaw(styles?: HstackStyles): SystemStyleObject;
|
|
19
|
+
|
|
20
|
+
export declare const hstack: HstackPatternFn;
|
|
@@ -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 hstackConfig = {
|
|
6
|
+
transform(props) {
|
|
7
|
+
const { justify, gap, ...rest } = props;
|
|
8
|
+
return {
|
|
9
|
+
display: "flex",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
justifyContent: justify,
|
|
12
|
+
gap,
|
|
13
|
+
flexDirection: "row",
|
|
14
|
+
...rest
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
defaultValues: { gap: "8px" }
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function hstackRaw(styles) {
|
|
21
|
+
const s = getPatternStyles(hstackConfig, styles || {})
|
|
22
|
+
return hstackConfig.transform(s, patternFns)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const hstack = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function hstack(styles = {}) {
|
|
26
|
+
return css(hstackRaw(styles))
|
|
27
|
+
}), { raw: hstackRaw, propKeys: ["gap","justify"] })
|
|
@@ -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';
|