@webflare/ui 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,184 @@
|
|
|
1
|
+
import { t as withCss } from "./css-DWYlz0rn.js";
|
|
2
|
+
import { t as useFieldControl } from "./useFieldControl-BkQi1zak.js";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref, useModel, withCtx } from "vue";
|
|
4
|
+
import { SwitchRoot, SwitchThumb } from "reka-ui";
|
|
5
|
+
import { sva } from "@webflare/ui/css";
|
|
6
|
+
// src/internal/controls/switchStyles.ts
|
|
7
|
+
var switchStyles = sva({
|
|
8
|
+
slots: [
|
|
9
|
+
"root",
|
|
10
|
+
"track",
|
|
11
|
+
"thumb",
|
|
12
|
+
"label"
|
|
13
|
+
],
|
|
14
|
+
base: {
|
|
15
|
+
root: {
|
|
16
|
+
display: "inline-flex",
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
gap: "sm",
|
|
19
|
+
cursor: "pointer",
|
|
20
|
+
userSelect: "none",
|
|
21
|
+
_disabled: {
|
|
22
|
+
cursor: "not-allowed",
|
|
23
|
+
opacity: "0.5"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
track: {
|
|
27
|
+
"transition": "all 300ms",
|
|
28
|
+
"overflow": "hidden",
|
|
29
|
+
"display": "flex",
|
|
30
|
+
"flexDir": "row",
|
|
31
|
+
"cursor": "pointer",
|
|
32
|
+
"justifyContent": "start",
|
|
33
|
+
"borderWidth": "1px",
|
|
34
|
+
"borderStyle": "solid",
|
|
35
|
+
"borderColor": {
|
|
36
|
+
base: "grey.300",
|
|
37
|
+
_dark: "grey.300/75",
|
|
38
|
+
_osDark: "grey.300/75"
|
|
39
|
+
},
|
|
40
|
+
"padding": "2px",
|
|
41
|
+
"borderRadius": "pill",
|
|
42
|
+
"bgColor": {
|
|
43
|
+
base: "grey.100",
|
|
44
|
+
_dark: "grey.950",
|
|
45
|
+
_osDark: "grey.950"
|
|
46
|
+
},
|
|
47
|
+
"flexShrink": "0",
|
|
48
|
+
"_hover": { borderColor: {
|
|
49
|
+
base: "grey.400",
|
|
50
|
+
_dark: "grey.400",
|
|
51
|
+
_osDark: "grey.400"
|
|
52
|
+
} },
|
|
53
|
+
"&[data-state=\"checked\"]": { bgColor: {
|
|
54
|
+
base: "primary",
|
|
55
|
+
_dark: "primary",
|
|
56
|
+
_osDark: "primary"
|
|
57
|
+
} },
|
|
58
|
+
"&[data-disabled]": { cursor: "not-allowed" },
|
|
59
|
+
"&[data-invalid]": { borderColor: {
|
|
60
|
+
base: "danger.subtle",
|
|
61
|
+
_dark: "danger.subtle",
|
|
62
|
+
_osDark: "danger.subtle"
|
|
63
|
+
} }
|
|
64
|
+
},
|
|
65
|
+
thumb: {
|
|
66
|
+
transition: "all 300ms",
|
|
67
|
+
aspectRatio: "1",
|
|
68
|
+
display: "block",
|
|
69
|
+
borderRadius: "pill",
|
|
70
|
+
bgColor: "white",
|
|
71
|
+
translate: "auto",
|
|
72
|
+
translateX: "0",
|
|
73
|
+
shadow: "0 0 16px var(--shadow-color)",
|
|
74
|
+
shadowColor: {
|
|
75
|
+
base: "grey.400",
|
|
76
|
+
_dark: "grey.950",
|
|
77
|
+
_osDark: "grey.950"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
label: {
|
|
81
|
+
fontWeight: "500",
|
|
82
|
+
color: "neutral",
|
|
83
|
+
lineHeight: "1.4"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
variants: { size: {
|
|
87
|
+
sm: {
|
|
88
|
+
track: { width: "32px" },
|
|
89
|
+
thumb: {
|
|
90
|
+
"width": "12px",
|
|
91
|
+
"[data-state=\"checked\"] &": { translateX: "14px" }
|
|
92
|
+
},
|
|
93
|
+
label: { fontSize: "sm" }
|
|
94
|
+
},
|
|
95
|
+
md: {
|
|
96
|
+
track: { width: "40px" },
|
|
97
|
+
thumb: {
|
|
98
|
+
"width": "16px",
|
|
99
|
+
"[data-state=\"checked\"] &": { translateX: "18px" }
|
|
100
|
+
},
|
|
101
|
+
label: { fontSize: "md" }
|
|
102
|
+
},
|
|
103
|
+
lg: {
|
|
104
|
+
track: { width: "48px" },
|
|
105
|
+
thumb: {
|
|
106
|
+
"width": "20px",
|
|
107
|
+
"[data-state=\"checked\"] &": { translateX: "22px" }
|
|
108
|
+
},
|
|
109
|
+
label: { fontSize: "lg" }
|
|
110
|
+
}
|
|
111
|
+
} },
|
|
112
|
+
defaultVariants: { size: "md" }
|
|
113
|
+
});
|
|
114
|
+
// src/internal/controls/ControlSwitch.vue
|
|
115
|
+
var ControlSwitch_default = /* @__PURE__ */ defineComponent({
|
|
116
|
+
__name: "ControlSwitch",
|
|
117
|
+
props: /*@__PURE__*/ mergeModels({
|
|
118
|
+
id: {},
|
|
119
|
+
name: {},
|
|
120
|
+
label: {},
|
|
121
|
+
disabled: { type: Boolean },
|
|
122
|
+
required: { type: Boolean },
|
|
123
|
+
size: { default: "md" },
|
|
124
|
+
css: {},
|
|
125
|
+
class: {}
|
|
126
|
+
}, {
|
|
127
|
+
"modelValue": {
|
|
128
|
+
type: [Boolean, null],
|
|
129
|
+
default: false
|
|
130
|
+
},
|
|
131
|
+
"modelModifiers": {}
|
|
132
|
+
}),
|
|
133
|
+
emits: ["update:modelValue"],
|
|
134
|
+
setup(__props) {
|
|
135
|
+
/**
|
|
136
|
+
* @component ControlSwitch
|
|
137
|
+
* @description Switch built on reka-ui Switch primitives.
|
|
138
|
+
*/
|
|
139
|
+
const props = __props;
|
|
140
|
+
const model = useModel(__props, "modelValue");
|
|
141
|
+
const { id, describedBy, invalid } = useFieldControl(props);
|
|
142
|
+
const styles = computed(() => switchStyles.raw({ size: props.size }));
|
|
143
|
+
const handleUpdate = (value) => {
|
|
144
|
+
model.value = value;
|
|
145
|
+
};
|
|
146
|
+
return (_ctx, _cache) => {
|
|
147
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.label ? "label" : "div"), {
|
|
148
|
+
class: normalizeClass([unref(withCss)(styles.value.root, props.css?.root), props.class]),
|
|
149
|
+
"data-disabled": __props.disabled ? "" : void 0
|
|
150
|
+
}, {
|
|
151
|
+
default: withCtx(() => [createVNode(unref(SwitchRoot), {
|
|
152
|
+
id: unref(id),
|
|
153
|
+
name: __props.name || void 0,
|
|
154
|
+
required: __props.required,
|
|
155
|
+
disabled: __props.disabled,
|
|
156
|
+
"model-value": Boolean(model.value),
|
|
157
|
+
"aria-invalid": unref(invalid),
|
|
158
|
+
"aria-describedby": unref(describedBy),
|
|
159
|
+
"data-invalid": unref(invalid) ? "" : void 0,
|
|
160
|
+
class: normalizeClass(unref(withCss)(styles.value.track, props.css?.track)),
|
|
161
|
+
"onUpdate:modelValue": handleUpdate
|
|
162
|
+
}, {
|
|
163
|
+
default: withCtx(() => [createVNode(unref(SwitchThumb), { class: normalizeClass(unref(withCss)(styles.value.thumb, props.css?.thumb)) }, null, 8, ["class"])]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, [
|
|
166
|
+
"id",
|
|
167
|
+
"name",
|
|
168
|
+
"required",
|
|
169
|
+
"disabled",
|
|
170
|
+
"model-value",
|
|
171
|
+
"aria-invalid",
|
|
172
|
+
"aria-describedby",
|
|
173
|
+
"data-invalid",
|
|
174
|
+
"class"
|
|
175
|
+
]), __props.label ? (openBlock(), createElementBlock("span", {
|
|
176
|
+
key: 0,
|
|
177
|
+
class: normalizeClass(unref(withCss)(styles.value.label, props.css?.label))
|
|
178
|
+
}, toDisplayString(__props.label), 3)) : createCommentVNode("", true)]),
|
|
179
|
+
_: 1
|
|
180
|
+
}, 8, ["class", "data-disabled"]);
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
export { ControlSwitch_default as t };
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { t as withCss } from "./css-DWYlz0rn.js";
|
|
2
|
+
import { createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, renderSlot, toDisplayString, unref, useModel, withCtx } from "vue";
|
|
3
|
+
import { DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogRoot, DialogTitle } from "reka-ui";
|
|
4
|
+
import { sva } from "@webflare/ui/css";
|
|
5
|
+
// src/components/Dialog/styles.ts
|
|
6
|
+
var dialogStyles = sva({
|
|
7
|
+
slots: [
|
|
8
|
+
"overlay",
|
|
9
|
+
"content",
|
|
10
|
+
"header",
|
|
11
|
+
"titleWrap",
|
|
12
|
+
"title",
|
|
13
|
+
"description",
|
|
14
|
+
"close",
|
|
15
|
+
"body"
|
|
16
|
+
],
|
|
17
|
+
base: {
|
|
18
|
+
overlay: {
|
|
19
|
+
position: "fixed",
|
|
20
|
+
inset: "0",
|
|
21
|
+
zIndex: "200",
|
|
22
|
+
bg: "black/75",
|
|
23
|
+
backdropFilter: "blur(20px)"
|
|
24
|
+
},
|
|
25
|
+
content: {
|
|
26
|
+
position: "fixed",
|
|
27
|
+
top: "50%",
|
|
28
|
+
left: "50%",
|
|
29
|
+
transform: "translate(-50%, -50%)",
|
|
30
|
+
zIndex: "300",
|
|
31
|
+
width: "calc(100% - 2rem)",
|
|
32
|
+
maxWidth: "720px",
|
|
33
|
+
maxHeight: "min(90vh, 900px)",
|
|
34
|
+
display: "flex",
|
|
35
|
+
flexDirection: "column",
|
|
36
|
+
bg: "surface",
|
|
37
|
+
borderWidth: "1px",
|
|
38
|
+
borderStyle: "solid",
|
|
39
|
+
borderColor: "border.subtle",
|
|
40
|
+
borderRadius: "lg",
|
|
41
|
+
boxShadow: {
|
|
42
|
+
base: "0 0 24px token(colors.black/12)",
|
|
43
|
+
_dark: "0 0 24px token(colors.black/45)",
|
|
44
|
+
_osDark: "0 0 24px token(colors.black/45)"
|
|
45
|
+
},
|
|
46
|
+
outline: "none",
|
|
47
|
+
overflow: "hidden"
|
|
48
|
+
},
|
|
49
|
+
header: {
|
|
50
|
+
display: "flex",
|
|
51
|
+
alignItems: "flex-start",
|
|
52
|
+
justifyContent: "space-between",
|
|
53
|
+
gap: "md",
|
|
54
|
+
p: "xl",
|
|
55
|
+
borderBottomWidth: "1px",
|
|
56
|
+
borderBottomStyle: "solid",
|
|
57
|
+
borderBottomColor: "border.subtle"
|
|
58
|
+
},
|
|
59
|
+
titleWrap: {
|
|
60
|
+
display: "flex",
|
|
61
|
+
flexDirection: "column",
|
|
62
|
+
gap: "2xs",
|
|
63
|
+
minW: "0"
|
|
64
|
+
},
|
|
65
|
+
title: {
|
|
66
|
+
fontSize: "lg",
|
|
67
|
+
fontWeight: "700",
|
|
68
|
+
textWrap: "balance",
|
|
69
|
+
color: "neutral"
|
|
70
|
+
},
|
|
71
|
+
description: {
|
|
72
|
+
fontSize: "sm",
|
|
73
|
+
color: "text.muted"
|
|
74
|
+
},
|
|
75
|
+
close: {
|
|
76
|
+
display: "inline-flex",
|
|
77
|
+
alignItems: "center",
|
|
78
|
+
cursor: "pointer",
|
|
79
|
+
flexShrink: 0,
|
|
80
|
+
color: {
|
|
81
|
+
base: "grey.800",
|
|
82
|
+
_dark: "primary",
|
|
83
|
+
_osDark: "primary"
|
|
84
|
+
},
|
|
85
|
+
fontSize: "lg"
|
|
86
|
+
},
|
|
87
|
+
body: {
|
|
88
|
+
p: "xl",
|
|
89
|
+
overflow: "auto",
|
|
90
|
+
flex: "1",
|
|
91
|
+
minH: "0"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
// src/components/Dialog/DialogRoot.vue
|
|
96
|
+
var DialogRoot_default = /* @__PURE__ */ defineComponent({
|
|
97
|
+
__name: "DialogRoot",
|
|
98
|
+
props: /*@__PURE__*/ mergeModels({
|
|
99
|
+
title: {},
|
|
100
|
+
description: {},
|
|
101
|
+
closeLabel: { default: "Close" },
|
|
102
|
+
css: {}
|
|
103
|
+
}, {
|
|
104
|
+
"open": {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: false
|
|
107
|
+
},
|
|
108
|
+
"openModifiers": {}
|
|
109
|
+
}),
|
|
110
|
+
emits: ["update:open"],
|
|
111
|
+
setup(__props) {
|
|
112
|
+
/**
|
|
113
|
+
* @component DialogRoot
|
|
114
|
+
* @description Modal dialog built on reka-ui Dialog primitives.
|
|
115
|
+
*
|
|
116
|
+
* @prop {boolean} [open=false] - Controlled open state (`v-model:open`).
|
|
117
|
+
* @prop {string} [title] - Dialog title text.
|
|
118
|
+
* @prop {string} [description] - Dialog description text.
|
|
119
|
+
* @prop {string} [closeLabel='Close'] - Accessible label for the close button.
|
|
120
|
+
* @prop {DialogCss} [css] - Style overrides per slot. Wrap values in `css.raw()`.
|
|
121
|
+
*
|
|
122
|
+
* @slot default - Dialog body content.
|
|
123
|
+
* @slot title - Override the title region.
|
|
124
|
+
* @slot description - Override the description region.
|
|
125
|
+
* @slot close-icon - Override the close button icon.
|
|
126
|
+
* @slot header - Override the entire header.
|
|
127
|
+
*/
|
|
128
|
+
const open = useModel(__props, "open");
|
|
129
|
+
const props = __props;
|
|
130
|
+
const styles = dialogStyles.raw();
|
|
131
|
+
return (_ctx, _cache) => {
|
|
132
|
+
return openBlock(), createBlock(unref(DialogRoot), {
|
|
133
|
+
open: open.value,
|
|
134
|
+
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event)
|
|
135
|
+
}, {
|
|
136
|
+
default: withCtx(() => [createVNode(unref(DialogPortal), null, {
|
|
137
|
+
default: withCtx(() => [createVNode(unref(DialogOverlay), { class: normalizeClass(unref(withCss)(unref(styles).overlay, props.css?.overlay)) }, null, 8, ["class"]), createVNode(unref(DialogContent), { class: normalizeClass(unref(withCss)(unref(styles).content, props.css?.content)) }, {
|
|
138
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "header", {}, () => [createElementVNode("div", { class: normalizeClass(unref(withCss)(unref(styles).header, props.css?.header)) }, [createElementVNode("div", { class: normalizeClass(unref(withCss)(unref(styles).titleWrap, props.css?.titleWrap)) }, [renderSlot(_ctx.$slots, "title", {}, () => [props.title ? (openBlock(), createBlock(unref(DialogTitle), {
|
|
139
|
+
key: 0,
|
|
140
|
+
class: normalizeClass(unref(withCss)(unref(styles).title, props.css?.title))
|
|
141
|
+
}, {
|
|
142
|
+
default: withCtx(() => [createTextVNode(toDisplayString(props.title), 1)]),
|
|
143
|
+
_: 1
|
|
144
|
+
}, 8, ["class"])) : createCommentVNode("", true)]), renderSlot(_ctx.$slots, "description", {}, () => [props.description ? (openBlock(), createBlock(unref(DialogDescription), {
|
|
145
|
+
key: 0,
|
|
146
|
+
class: normalizeClass(unref(withCss)(unref(styles).description, props.css?.description))
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx(() => [createTextVNode(toDisplayString(props.description), 1)]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["class"])) : createCommentVNode("", true)])], 2), createVNode(unref(DialogClose), {
|
|
151
|
+
type: "button",
|
|
152
|
+
"aria-label": props.closeLabel,
|
|
153
|
+
class: normalizeClass(unref(withCss)(unref(styles).close, props.css?.close))
|
|
154
|
+
}, {
|
|
155
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "close-icon", {}, () => [_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
156
|
+
class: "icon icon-x-bold",
|
|
157
|
+
"aria-hidden": "true"
|
|
158
|
+
}, null, -1))])]),
|
|
159
|
+
_: 3
|
|
160
|
+
}, 8, ["aria-label", "class"])], 2)]), createElementVNode("div", { class: normalizeClass(unref(withCss)(unref(styles).body, props.css?.body)) }, [renderSlot(_ctx.$slots, "default")], 2)]),
|
|
161
|
+
_: 3
|
|
162
|
+
}, 8, ["class"])]),
|
|
163
|
+
_: 3
|
|
164
|
+
})]),
|
|
165
|
+
_: 3
|
|
166
|
+
}, 8, ["open"]);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
export { DialogRoot_default as t };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
const require_css = require("./css-BRRSQx3P.cjs");
|
|
2
|
+
let vue = require("vue");
|
|
3
|
+
let reka_ui = require("reka-ui");
|
|
4
|
+
// src/components/Dialog/styles.ts
|
|
5
|
+
var dialogStyles = (0, require("@webflare/ui/css").sva)({
|
|
6
|
+
slots: [
|
|
7
|
+
"overlay",
|
|
8
|
+
"content",
|
|
9
|
+
"header",
|
|
10
|
+
"titleWrap",
|
|
11
|
+
"title",
|
|
12
|
+
"description",
|
|
13
|
+
"close",
|
|
14
|
+
"body"
|
|
15
|
+
],
|
|
16
|
+
base: {
|
|
17
|
+
overlay: {
|
|
18
|
+
position: "fixed",
|
|
19
|
+
inset: "0",
|
|
20
|
+
zIndex: "200",
|
|
21
|
+
bg: "black/75",
|
|
22
|
+
backdropFilter: "blur(20px)"
|
|
23
|
+
},
|
|
24
|
+
content: {
|
|
25
|
+
position: "fixed",
|
|
26
|
+
top: "50%",
|
|
27
|
+
left: "50%",
|
|
28
|
+
transform: "translate(-50%, -50%)",
|
|
29
|
+
zIndex: "300",
|
|
30
|
+
width: "calc(100% - 2rem)",
|
|
31
|
+
maxWidth: "720px",
|
|
32
|
+
maxHeight: "min(90vh, 900px)",
|
|
33
|
+
display: "flex",
|
|
34
|
+
flexDirection: "column",
|
|
35
|
+
bg: "surface",
|
|
36
|
+
borderWidth: "1px",
|
|
37
|
+
borderStyle: "solid",
|
|
38
|
+
borderColor: "border.subtle",
|
|
39
|
+
borderRadius: "lg",
|
|
40
|
+
boxShadow: {
|
|
41
|
+
base: "0 0 24px token(colors.black/12)",
|
|
42
|
+
_dark: "0 0 24px token(colors.black/45)",
|
|
43
|
+
_osDark: "0 0 24px token(colors.black/45)"
|
|
44
|
+
},
|
|
45
|
+
outline: "none",
|
|
46
|
+
overflow: "hidden"
|
|
47
|
+
},
|
|
48
|
+
header: {
|
|
49
|
+
display: "flex",
|
|
50
|
+
alignItems: "flex-start",
|
|
51
|
+
justifyContent: "space-between",
|
|
52
|
+
gap: "md",
|
|
53
|
+
p: "xl",
|
|
54
|
+
borderBottomWidth: "1px",
|
|
55
|
+
borderBottomStyle: "solid",
|
|
56
|
+
borderBottomColor: "border.subtle"
|
|
57
|
+
},
|
|
58
|
+
titleWrap: {
|
|
59
|
+
display: "flex",
|
|
60
|
+
flexDirection: "column",
|
|
61
|
+
gap: "2xs",
|
|
62
|
+
minW: "0"
|
|
63
|
+
},
|
|
64
|
+
title: {
|
|
65
|
+
fontSize: "lg",
|
|
66
|
+
fontWeight: "700",
|
|
67
|
+
textWrap: "balance",
|
|
68
|
+
color: "neutral"
|
|
69
|
+
},
|
|
70
|
+
description: {
|
|
71
|
+
fontSize: "sm",
|
|
72
|
+
color: "text.muted"
|
|
73
|
+
},
|
|
74
|
+
close: {
|
|
75
|
+
display: "inline-flex",
|
|
76
|
+
alignItems: "center",
|
|
77
|
+
cursor: "pointer",
|
|
78
|
+
flexShrink: 0,
|
|
79
|
+
color: {
|
|
80
|
+
base: "grey.800",
|
|
81
|
+
_dark: "primary",
|
|
82
|
+
_osDark: "primary"
|
|
83
|
+
},
|
|
84
|
+
fontSize: "lg"
|
|
85
|
+
},
|
|
86
|
+
body: {
|
|
87
|
+
p: "xl",
|
|
88
|
+
overflow: "auto",
|
|
89
|
+
flex: "1",
|
|
90
|
+
minH: "0"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
// src/components/Dialog/DialogRoot.vue
|
|
95
|
+
var DialogRoot_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
96
|
+
__name: "DialogRoot",
|
|
97
|
+
props: /*@__PURE__*/ (0, vue.mergeModels)({
|
|
98
|
+
title: {},
|
|
99
|
+
description: {},
|
|
100
|
+
closeLabel: { default: "Close" },
|
|
101
|
+
css: {}
|
|
102
|
+
}, {
|
|
103
|
+
"open": {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: false
|
|
106
|
+
},
|
|
107
|
+
"openModifiers": {}
|
|
108
|
+
}),
|
|
109
|
+
emits: ["update:open"],
|
|
110
|
+
setup(__props) {
|
|
111
|
+
/**
|
|
112
|
+
* @component DialogRoot
|
|
113
|
+
* @description Modal dialog built on reka-ui Dialog primitives.
|
|
114
|
+
*
|
|
115
|
+
* @prop {boolean} [open=false] - Controlled open state (`v-model:open`).
|
|
116
|
+
* @prop {string} [title] - Dialog title text.
|
|
117
|
+
* @prop {string} [description] - Dialog description text.
|
|
118
|
+
* @prop {string} [closeLabel='Close'] - Accessible label for the close button.
|
|
119
|
+
* @prop {DialogCss} [css] - Style overrides per slot. Wrap values in `css.raw()`.
|
|
120
|
+
*
|
|
121
|
+
* @slot default - Dialog body content.
|
|
122
|
+
* @slot title - Override the title region.
|
|
123
|
+
* @slot description - Override the description region.
|
|
124
|
+
* @slot close-icon - Override the close button icon.
|
|
125
|
+
* @slot header - Override the entire header.
|
|
126
|
+
*/
|
|
127
|
+
const open = (0, vue.useModel)(__props, "open");
|
|
128
|
+
const props = __props;
|
|
129
|
+
const styles = dialogStyles.raw();
|
|
130
|
+
return (_ctx, _cache) => {
|
|
131
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DialogRoot), {
|
|
132
|
+
open: open.value,
|
|
133
|
+
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event)
|
|
134
|
+
}, {
|
|
135
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.DialogPortal), null, {
|
|
136
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.DialogOverlay), { class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).overlay, props.css?.overlay)) }, null, 8, ["class"]), (0, vue.createVNode)((0, vue.unref)(reka_ui.DialogContent), { class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).content, props.css?.content)) }, {
|
|
137
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "header", {}, () => [(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).header, props.css?.header)) }, [(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).titleWrap, props.css?.titleWrap)) }, [(0, vue.renderSlot)(_ctx.$slots, "title", {}, () => [props.title ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DialogTitle), {
|
|
138
|
+
key: 0,
|
|
139
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).title, props.css?.title))
|
|
140
|
+
}, {
|
|
141
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(props.title), 1)]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["class"])) : (0, vue.createCommentVNode)("", true)]), (0, vue.renderSlot)(_ctx.$slots, "description", {}, () => [props.description ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DialogDescription), {
|
|
144
|
+
key: 0,
|
|
145
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).description, props.css?.description))
|
|
146
|
+
}, {
|
|
147
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(props.description), 1)]),
|
|
148
|
+
_: 1
|
|
149
|
+
}, 8, ["class"])) : (0, vue.createCommentVNode)("", true)])], 2), (0, vue.createVNode)((0, vue.unref)(reka_ui.DialogClose), {
|
|
150
|
+
type: "button",
|
|
151
|
+
"aria-label": props.closeLabel,
|
|
152
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).close, props.css?.close))
|
|
153
|
+
}, {
|
|
154
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "close-icon", {}, () => [_cache[1] || (_cache[1] = (0, vue.createElementVNode)("span", {
|
|
155
|
+
class: "icon icon-x-bold",
|
|
156
|
+
"aria-hidden": "true"
|
|
157
|
+
}, null, -1))])]),
|
|
158
|
+
_: 3
|
|
159
|
+
}, 8, ["aria-label", "class"])], 2)]), (0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).body, props.css?.body)) }, [(0, vue.renderSlot)(_ctx.$slots, "default")], 2)]),
|
|
160
|
+
_: 3
|
|
161
|
+
}, 8, ["class"])]),
|
|
162
|
+
_: 3
|
|
163
|
+
})]),
|
|
164
|
+
_: 3
|
|
165
|
+
}, 8, ["open"]);
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
Object.defineProperty(exports, "DialogRoot_default", {
|
|
170
|
+
enumerable: true,
|
|
171
|
+
get: function() {
|
|
172
|
+
return DialogRoot_default;
|
|
173
|
+
}
|
|
174
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { t as fieldStyles } from "./styles-BU90HeKh.js";
|
|
2
|
+
import { t as fieldContextKey } from "./context-Bk4uIMQS.js";
|
|
3
|
+
import { computed, createElementBlock, defineComponent, normalizeClass, openBlock, provide, renderSlot, unref, useId } from "vue";
|
|
4
|
+
// src/components/Field/FieldBase.vue
|
|
5
|
+
var FieldBase_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "FieldBase",
|
|
7
|
+
props: {
|
|
8
|
+
id: {},
|
|
9
|
+
error: { default: null },
|
|
10
|
+
message: { default: null },
|
|
11
|
+
class: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
/**
|
|
15
|
+
* @component FieldBase
|
|
16
|
+
* @description Wrapper for composing a field from a label, a control, a message, and an error.
|
|
17
|
+
* Provides the field context: generated ids, ARIA links, and validity.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <Field.Base :error="emailError" message="We'll never share your email">
|
|
21
|
+
* <Field.Label label="Email" />
|
|
22
|
+
* <Field.Input name="email" v-model="email" />
|
|
23
|
+
* </Field.Base>
|
|
24
|
+
*/
|
|
25
|
+
const props = __props;
|
|
26
|
+
const autoId = useId();
|
|
27
|
+
const fieldId = computed(() => props.id || `field-${autoId}`);
|
|
28
|
+
provide(fieldContextKey, {
|
|
29
|
+
fieldId,
|
|
30
|
+
errorId: computed(() => props.error ? `${fieldId.value}-error` : null),
|
|
31
|
+
messageId: computed(() => props.message ? `${fieldId.value}-message` : null),
|
|
32
|
+
hasError: computed(() => !!props.error),
|
|
33
|
+
errorMessage: computed(() => props.error ?? null),
|
|
34
|
+
message: computed(() => props.message ?? null)
|
|
35
|
+
});
|
|
36
|
+
const classes = fieldStyles();
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([unref(classes).root, props.class]) }, [renderSlot(_ctx.$slots, "default")], 2);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export { FieldBase_default as t };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const require_styles = require("./styles-CuN4CHU4.cjs");
|
|
2
|
+
const require_context = require("./context-cK3z69qT.cjs");
|
|
3
|
+
let vue = require("vue");
|
|
4
|
+
// src/components/Field/FieldBase.vue
|
|
5
|
+
var FieldBase_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
6
|
+
__name: "FieldBase",
|
|
7
|
+
props: {
|
|
8
|
+
id: {},
|
|
9
|
+
error: { default: null },
|
|
10
|
+
message: { default: null },
|
|
11
|
+
class: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
/**
|
|
15
|
+
* @component FieldBase
|
|
16
|
+
* @description Wrapper for composing a field from a label, a control, a message, and an error.
|
|
17
|
+
* Provides the field context: generated ids, ARIA links, and validity.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <Field.Base :error="emailError" message="We'll never share your email">
|
|
21
|
+
* <Field.Label label="Email" />
|
|
22
|
+
* <Field.Input name="email" v-model="email" />
|
|
23
|
+
* </Field.Base>
|
|
24
|
+
*/
|
|
25
|
+
const props = __props;
|
|
26
|
+
const autoId = (0, vue.useId)();
|
|
27
|
+
const fieldId = (0, vue.computed)(() => props.id || `field-${autoId}`);
|
|
28
|
+
(0, vue.provide)(require_context.fieldContextKey, {
|
|
29
|
+
fieldId,
|
|
30
|
+
errorId: (0, vue.computed)(() => props.error ? `${fieldId.value}-error` : null),
|
|
31
|
+
messageId: (0, vue.computed)(() => props.message ? `${fieldId.value}-message` : null),
|
|
32
|
+
hasError: (0, vue.computed)(() => !!props.error),
|
|
33
|
+
errorMessage: (0, vue.computed)(() => props.error ?? null),
|
|
34
|
+
message: (0, vue.computed)(() => props.message ?? null)
|
|
35
|
+
});
|
|
36
|
+
const classes = require_styles.fieldStyles();
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", { class: (0, vue.normalizeClass)([(0, vue.unref)(classes).root, props.class]) }, [(0, vue.renderSlot)(_ctx.$slots, "default")], 2);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "FieldBase_default", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function() {
|
|
45
|
+
return FieldBase_default;
|
|
46
|
+
}
|
|
47
|
+
});
|