@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,150 @@
|
|
|
1
|
+
import { t as FieldBase_default } from "./FieldBase-BwD6Dput.js";
|
|
2
|
+
import { t as FieldLabel_default } from "./FieldLabel-BYlOJvXY.js";
|
|
3
|
+
import { t as FieldFooter_default } from "./FieldFooter-CE598o7n.js";
|
|
4
|
+
import { t as controlStyles } from "./controlStyles-Bf6fx2rL.js";
|
|
5
|
+
import { t as useFieldControl } from "./useFieldControl-BkQi1zak.js";
|
|
6
|
+
import { createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, openBlock, unref, useModel, withCtx } from "vue";
|
|
7
|
+
// src/internal/controls/ControlInput.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _hoisted_1 = [
|
|
9
|
+
"id",
|
|
10
|
+
"name",
|
|
11
|
+
"type",
|
|
12
|
+
"placeholder",
|
|
13
|
+
"value",
|
|
14
|
+
"disabled",
|
|
15
|
+
"required",
|
|
16
|
+
"autocomplete",
|
|
17
|
+
"aria-invalid",
|
|
18
|
+
"aria-describedby"
|
|
19
|
+
];
|
|
20
|
+
// src/internal/controls/ControlInput.vue
|
|
21
|
+
var ControlInput_default = /* @__PURE__ */ defineComponent({
|
|
22
|
+
__name: "ControlInput",
|
|
23
|
+
props: /*@__PURE__*/ mergeModels({
|
|
24
|
+
type: { default: "text" },
|
|
25
|
+
id: {},
|
|
26
|
+
name: {},
|
|
27
|
+
placeholder: {},
|
|
28
|
+
disabled: { type: Boolean },
|
|
29
|
+
required: { type: Boolean },
|
|
30
|
+
autocomplete: {},
|
|
31
|
+
size: { default: "md" },
|
|
32
|
+
valid: {
|
|
33
|
+
type: [Boolean, String],
|
|
34
|
+
default: "none"
|
|
35
|
+
},
|
|
36
|
+
class: {}
|
|
37
|
+
}, {
|
|
38
|
+
"modelValue": {},
|
|
39
|
+
"modelModifiers": {}
|
|
40
|
+
}),
|
|
41
|
+
emits: ["update:modelValue"],
|
|
42
|
+
setup(__props) {
|
|
43
|
+
/**
|
|
44
|
+
* @component ControlInput
|
|
45
|
+
* @description Text input. Reads id, ARIA links, and validity from Field.Base.
|
|
46
|
+
*/
|
|
47
|
+
const props = __props;
|
|
48
|
+
const model = useModel(__props, "modelValue");
|
|
49
|
+
const { id, describedBy, valid, invalid } = useFieldControl(props);
|
|
50
|
+
const handleInput = (event) => {
|
|
51
|
+
model.value = event.target.value;
|
|
52
|
+
};
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return openBlock(), createElementBlock("input", {
|
|
55
|
+
id: unref(id),
|
|
56
|
+
name: __props.name || void 0,
|
|
57
|
+
class: normalizeClass([unref(controlStyles)({
|
|
58
|
+
size: __props.size,
|
|
59
|
+
valid: unref(valid)
|
|
60
|
+
}), props.class]),
|
|
61
|
+
type: __props.type,
|
|
62
|
+
placeholder: __props.placeholder || void 0,
|
|
63
|
+
value: model.value ?? "",
|
|
64
|
+
disabled: __props.disabled,
|
|
65
|
+
required: __props.required,
|
|
66
|
+
autocomplete: __props.autocomplete || void 0,
|
|
67
|
+
"aria-invalid": unref(invalid),
|
|
68
|
+
"aria-describedby": unref(describedBy),
|
|
69
|
+
onInput: handleInput
|
|
70
|
+
}, null, 42, _hoisted_1);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
// src/components/Field/FieldInput.vue
|
|
75
|
+
var FieldInput_default = /* @__PURE__ */ defineComponent({
|
|
76
|
+
inheritAttrs: false,
|
|
77
|
+
__name: "FieldInput",
|
|
78
|
+
props: /*@__PURE__*/ mergeModels({
|
|
79
|
+
id: {},
|
|
80
|
+
name: {},
|
|
81
|
+
label: {},
|
|
82
|
+
disabled: { type: Boolean },
|
|
83
|
+
required: { type: Boolean },
|
|
84
|
+
size: { default: "md" },
|
|
85
|
+
message: {},
|
|
86
|
+
error: {},
|
|
87
|
+
class: {},
|
|
88
|
+
type: { default: "text" },
|
|
89
|
+
placeholder: {},
|
|
90
|
+
autocomplete: {}
|
|
91
|
+
}, {
|
|
92
|
+
"modelValue": {},
|
|
93
|
+
"modelModifiers": {}
|
|
94
|
+
}),
|
|
95
|
+
emits: ["update:modelValue"],
|
|
96
|
+
setup(__props) {
|
|
97
|
+
/**
|
|
98
|
+
* @component FieldInput
|
|
99
|
+
* @description Text input with label, helper text, and error. Native input attributes fall through to the input.
|
|
100
|
+
*/
|
|
101
|
+
const props = __props;
|
|
102
|
+
const model = useModel(__props, "modelValue");
|
|
103
|
+
return (_ctx, _cache) => {
|
|
104
|
+
return openBlock(), createBlock(FieldBase_default, {
|
|
105
|
+
id: __props.id || void 0,
|
|
106
|
+
error: __props.error,
|
|
107
|
+
message: __props.message
|
|
108
|
+
}, {
|
|
109
|
+
default: withCtx(() => [
|
|
110
|
+
__props.label ? (openBlock(), createBlock(FieldLabel_default, {
|
|
111
|
+
key: 0,
|
|
112
|
+
label: __props.label,
|
|
113
|
+
required: __props.required,
|
|
114
|
+
size: "sm"
|
|
115
|
+
}, null, 8, ["label", "required"])) : createCommentVNode("", true),
|
|
116
|
+
createVNode(ControlInput_default, mergeProps({
|
|
117
|
+
modelValue: model.value,
|
|
118
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event)
|
|
119
|
+
}, _ctx.$attrs, {
|
|
120
|
+
type: __props.type,
|
|
121
|
+
placeholder: __props.placeholder,
|
|
122
|
+
autocomplete: __props.autocomplete,
|
|
123
|
+
name: __props.name,
|
|
124
|
+
disabled: __props.disabled,
|
|
125
|
+
required: __props.required,
|
|
126
|
+
size: __props.size,
|
|
127
|
+
class: props.class
|
|
128
|
+
}), null, 16, [
|
|
129
|
+
"modelValue",
|
|
130
|
+
"type",
|
|
131
|
+
"placeholder",
|
|
132
|
+
"autocomplete",
|
|
133
|
+
"name",
|
|
134
|
+
"disabled",
|
|
135
|
+
"required",
|
|
136
|
+
"size",
|
|
137
|
+
"class"
|
|
138
|
+
]),
|
|
139
|
+
createVNode(FieldFooter_default)
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 8, [
|
|
143
|
+
"id",
|
|
144
|
+
"error",
|
|
145
|
+
"message"
|
|
146
|
+
]);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
export { FieldInput_default as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { t as fieldStyles } from "./styles-BU90HeKh.js";
|
|
2
|
+
import { t as FieldRequired_default } from "./FieldRequired-7fJtYCdt.js";
|
|
3
|
+
import { t as fieldContextKey } from "./context-Bk4uIMQS.js";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, inject, normalizeClass, openBlock, toDisplayString } from "vue";
|
|
5
|
+
// src/components/Field/FieldLabel.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = ["for", "aria-disabled"];
|
|
7
|
+
// src/components/Field/FieldLabel.vue
|
|
8
|
+
var FieldLabel_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "FieldLabel",
|
|
10
|
+
props: {
|
|
11
|
+
label: {},
|
|
12
|
+
for: {},
|
|
13
|
+
size: { default: "md" },
|
|
14
|
+
required: { type: Boolean },
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
class: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
/**
|
|
20
|
+
* @component FieldLabel
|
|
21
|
+
* @description Field label with size variants and a required mark.
|
|
22
|
+
* Points at the control through `for` or the Field.Base context.
|
|
23
|
+
*/
|
|
24
|
+
const props = __props;
|
|
25
|
+
const fieldContext = inject(fieldContextKey, null);
|
|
26
|
+
const htmlFor = computed(() => props.for || fieldContext?.fieldId.value || void 0);
|
|
27
|
+
const classes = computed(() => fieldStyles({ size: props.size }));
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createElementBlock("label", {
|
|
30
|
+
for: htmlFor.value,
|
|
31
|
+
class: normalizeClass([classes.value.label, props.class]),
|
|
32
|
+
"aria-disabled": props.disabled || void 0
|
|
33
|
+
}, [createTextVNode(toDisplayString(props.label) + " ", 1), props.required ? (openBlock(), createBlock(FieldRequired_default, { key: 0 })) : createCommentVNode("", true)], 10, _hoisted_1);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export { FieldLabel_default as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_styles = require("./styles-CuN4CHU4.cjs");
|
|
2
|
+
const require_FieldRequired = require("./FieldRequired-CJtyr3cL.cjs");
|
|
3
|
+
const require_context = require("./context-cK3z69qT.cjs");
|
|
4
|
+
let vue = require("vue");
|
|
5
|
+
// src/components/Field/FieldLabel.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = ["for", "aria-disabled"];
|
|
7
|
+
// src/components/Field/FieldLabel.vue
|
|
8
|
+
var FieldLabel_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
9
|
+
__name: "FieldLabel",
|
|
10
|
+
props: {
|
|
11
|
+
label: {},
|
|
12
|
+
for: {},
|
|
13
|
+
size: { default: "md" },
|
|
14
|
+
required: { type: Boolean },
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
class: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
/**
|
|
20
|
+
* @component FieldLabel
|
|
21
|
+
* @description Field label with size variants and a required mark.
|
|
22
|
+
* Points at the control through `for` or the Field.Base context.
|
|
23
|
+
*/
|
|
24
|
+
const props = __props;
|
|
25
|
+
const fieldContext = (0, vue.inject)(require_context.fieldContextKey, null);
|
|
26
|
+
const htmlFor = (0, vue.computed)(() => props.for || fieldContext?.fieldId.value || void 0);
|
|
27
|
+
const classes = (0, vue.computed)(() => require_styles.fieldStyles({ size: props.size }));
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("label", {
|
|
30
|
+
for: htmlFor.value,
|
|
31
|
+
class: (0, vue.normalizeClass)([classes.value.label, props.class]),
|
|
32
|
+
"aria-disabled": props.disabled || void 0
|
|
33
|
+
}, [(0, vue.createTextVNode)((0, vue.toDisplayString)(props.label) + " ", 1), props.required ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_FieldRequired.FieldRequired_default, { key: 0 })) : (0, vue.createCommentVNode)("", true)], 10, _hoisted_1);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "FieldLabel_default", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function() {
|
|
40
|
+
return FieldLabel_default;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
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/FieldMessage.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _hoisted_1 = ["id", "innerHTML"];
|
|
6
|
+
// src/components/Field/FieldMessage.vue
|
|
7
|
+
var FieldMessage_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
8
|
+
__name: "FieldMessage",
|
|
9
|
+
props: {
|
|
10
|
+
message: { default: null },
|
|
11
|
+
id: {},
|
|
12
|
+
class: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
/**
|
|
16
|
+
* @component FieldMessage
|
|
17
|
+
* @description Helper text. Reads the Field.Base context when `message` is omitted.
|
|
18
|
+
* Rendered as HTML.
|
|
19
|
+
*/
|
|
20
|
+
const props = __props;
|
|
21
|
+
const fieldContext = (0, vue.inject)(require_context.fieldContextKey, null);
|
|
22
|
+
const displayMessage = (0, vue.computed)(() => props.message || fieldContext?.message.value || null);
|
|
23
|
+
const messageId = (0, vue.computed)(() => props.id || fieldContext?.messageId.value || void 0);
|
|
24
|
+
const classes = require_styles.fieldStyles();
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return displayMessage.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
27
|
+
key: 0,
|
|
28
|
+
id: messageId.value,
|
|
29
|
+
class: (0, vue.normalizeClass)([(0, vue.unref)(classes).message, props.class]),
|
|
30
|
+
innerHTML: displayMessage.value
|
|
31
|
+
}, null, 10, _hoisted_1)) : (0, vue.createCommentVNode)("", true);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "FieldMessage_default", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function() {
|
|
38
|
+
return FieldMessage_default;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as fieldStyles } from "./styles-BU90HeKh.js";
|
|
2
|
+
import { t as fieldContextKey } from "./context-Bk4uIMQS.js";
|
|
3
|
+
import { computed, createCommentVNode, createElementBlock, defineComponent, inject, normalizeClass, openBlock, unref } from "vue";
|
|
4
|
+
// src/components/Field/FieldMessage.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _hoisted_1 = ["id", "innerHTML"];
|
|
6
|
+
// src/components/Field/FieldMessage.vue
|
|
7
|
+
var FieldMessage_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "FieldMessage",
|
|
9
|
+
props: {
|
|
10
|
+
message: { default: null },
|
|
11
|
+
id: {},
|
|
12
|
+
class: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
/**
|
|
16
|
+
* @component FieldMessage
|
|
17
|
+
* @description Helper text. Reads the Field.Base context when `message` is omitted.
|
|
18
|
+
* Rendered as HTML.
|
|
19
|
+
*/
|
|
20
|
+
const props = __props;
|
|
21
|
+
const fieldContext = inject(fieldContextKey, null);
|
|
22
|
+
const displayMessage = computed(() => props.message || fieldContext?.message.value || null);
|
|
23
|
+
const messageId = computed(() => props.id || fieldContext?.messageId.value || void 0);
|
|
24
|
+
const classes = fieldStyles();
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return displayMessage.value ? (openBlock(), createElementBlock("span", {
|
|
27
|
+
key: 0,
|
|
28
|
+
id: messageId.value,
|
|
29
|
+
class: normalizeClass([unref(classes).message, props.class]),
|
|
30
|
+
innerHTML: displayMessage.value
|
|
31
|
+
}, null, 10, _hoisted_1)) : createCommentVNode("", true);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export { FieldMessage_default as t };
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
const require_FieldBase = require("./FieldBase-X1FWOqPU.cjs");
|
|
2
|
+
const require_FieldLabel = require("./FieldLabel-DBKhMbql.cjs");
|
|
3
|
+
const require_FieldFooter = require("./FieldFooter-05GxwrFg.cjs");
|
|
4
|
+
const require_choiceStyles = require("./choiceStyles-DIVBtoZF.cjs");
|
|
5
|
+
const require_useFieldControl = require("./useFieldControl-CEI7IRAa.cjs");
|
|
6
|
+
let vue = require("vue");
|
|
7
|
+
let reka_ui = require("reka-ui");
|
|
8
|
+
// src/internal/controls/ControlRadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var _hoisted_1 = ["data-disabled"];
|
|
10
|
+
// src/internal/controls/ControlRadioGroup.vue
|
|
11
|
+
var ControlRadioGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
12
|
+
__name: "ControlRadioGroup",
|
|
13
|
+
props: /*@__PURE__*/ (0, vue.mergeModels)({
|
|
14
|
+
id: {},
|
|
15
|
+
name: {},
|
|
16
|
+
options: { default: () => [] },
|
|
17
|
+
disabled: { type: Boolean },
|
|
18
|
+
required: { type: Boolean },
|
|
19
|
+
size: { default: "md" },
|
|
20
|
+
class: {}
|
|
21
|
+
}, {
|
|
22
|
+
"modelValue": {},
|
|
23
|
+
"modelModifiers": {}
|
|
24
|
+
}),
|
|
25
|
+
emits: ["update:modelValue"],
|
|
26
|
+
setup(__props) {
|
|
27
|
+
/**
|
|
28
|
+
* @component ControlRadioGroup
|
|
29
|
+
* @description Radio group built on reka-ui RadioGroup primitives.
|
|
30
|
+
*/
|
|
31
|
+
const props = __props;
|
|
32
|
+
const model = (0, vue.useModel)(__props, "modelValue");
|
|
33
|
+
const { id, describedBy, invalid } = require_useFieldControl.useFieldControl(props);
|
|
34
|
+
const classes = (0, vue.computed)(() => require_choiceStyles.radioGroupStyles({ size: props.size }));
|
|
35
|
+
const handleUpdate = (value) => {
|
|
36
|
+
if (value == null) return;
|
|
37
|
+
model.value = String(value);
|
|
38
|
+
};
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.RadioGroupRoot), {
|
|
41
|
+
id: (0, vue.unref)(id),
|
|
42
|
+
name: __props.name || void 0,
|
|
43
|
+
required: __props.required,
|
|
44
|
+
disabled: __props.disabled,
|
|
45
|
+
"model-value": model.value || void 0,
|
|
46
|
+
"aria-invalid": (0, vue.unref)(invalid),
|
|
47
|
+
"aria-describedby": (0, vue.unref)(describedBy),
|
|
48
|
+
class: (0, vue.normalizeClass)([classes.value.root, props.class]),
|
|
49
|
+
"onUpdate:modelValue": handleUpdate
|
|
50
|
+
}, {
|
|
51
|
+
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.options, (option) => {
|
|
52
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("label", {
|
|
53
|
+
key: option.value,
|
|
54
|
+
class: (0, vue.normalizeClass)(classes.value.item),
|
|
55
|
+
"data-disabled": __props.disabled || option.disabled ? "" : void 0
|
|
56
|
+
}, [(0, vue.createVNode)((0, vue.unref)(reka_ui.RadioGroupItem), {
|
|
57
|
+
value: option.value,
|
|
58
|
+
disabled: __props.disabled || option.disabled,
|
|
59
|
+
"aria-invalid": (0, vue.unref)(invalid),
|
|
60
|
+
class: (0, vue.normalizeClass)(classes.value.control)
|
|
61
|
+
}, {
|
|
62
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.RadioGroupIndicator), { class: (0, vue.normalizeClass)(classes.value.indicator) }, null, 8, ["class"])]),
|
|
63
|
+
_: 1
|
|
64
|
+
}, 8, [
|
|
65
|
+
"value",
|
|
66
|
+
"disabled",
|
|
67
|
+
"aria-invalid",
|
|
68
|
+
"class"
|
|
69
|
+
]), (0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)(classes.value.label) }, (0, vue.toDisplayString)(option.label), 3)], 10, _hoisted_1);
|
|
70
|
+
}), 128))]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, [
|
|
73
|
+
"id",
|
|
74
|
+
"name",
|
|
75
|
+
"required",
|
|
76
|
+
"disabled",
|
|
77
|
+
"model-value",
|
|
78
|
+
"aria-invalid",
|
|
79
|
+
"aria-describedby",
|
|
80
|
+
"class"
|
|
81
|
+
]);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
// src/components/Field/FieldRadioGroup.vue
|
|
86
|
+
var FieldRadioGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
87
|
+
__name: "FieldRadioGroup",
|
|
88
|
+
props: /*@__PURE__*/ (0, vue.mergeModels)({
|
|
89
|
+
id: {},
|
|
90
|
+
name: {},
|
|
91
|
+
label: {},
|
|
92
|
+
disabled: { type: Boolean },
|
|
93
|
+
required: { type: Boolean },
|
|
94
|
+
size: { default: "md" },
|
|
95
|
+
message: {},
|
|
96
|
+
error: {},
|
|
97
|
+
class: {},
|
|
98
|
+
options: { default: () => [] }
|
|
99
|
+
}, {
|
|
100
|
+
"modelValue": {},
|
|
101
|
+
"modelModifiers": {}
|
|
102
|
+
}),
|
|
103
|
+
emits: ["update:modelValue"],
|
|
104
|
+
setup(__props) {
|
|
105
|
+
/**
|
|
106
|
+
* @component FieldRadioGroup
|
|
107
|
+
* @description Radio group with label, helper text, and error.
|
|
108
|
+
*/
|
|
109
|
+
const props = __props;
|
|
110
|
+
const model = (0, vue.useModel)(__props, "modelValue");
|
|
111
|
+
return (_ctx, _cache) => {
|
|
112
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(require_FieldBase.FieldBase_default, {
|
|
113
|
+
id: __props.id || void 0,
|
|
114
|
+
error: __props.error,
|
|
115
|
+
message: __props.message
|
|
116
|
+
}, {
|
|
117
|
+
default: (0, vue.withCtx)(() => [
|
|
118
|
+
__props.label ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_FieldLabel.FieldLabel_default, {
|
|
119
|
+
key: 0,
|
|
120
|
+
label: __props.label,
|
|
121
|
+
required: __props.required,
|
|
122
|
+
size: "sm"
|
|
123
|
+
}, null, 8, ["label", "required"])) : (0, vue.createCommentVNode)("", true),
|
|
124
|
+
(0, vue.createVNode)(ControlRadioGroup_default, {
|
|
125
|
+
modelValue: model.value,
|
|
126
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
127
|
+
options: __props.options,
|
|
128
|
+
name: __props.name,
|
|
129
|
+
disabled: __props.disabled,
|
|
130
|
+
required: __props.required,
|
|
131
|
+
size: __props.size,
|
|
132
|
+
class: (0, vue.normalizeClass)(props.class)
|
|
133
|
+
}, null, 8, [
|
|
134
|
+
"modelValue",
|
|
135
|
+
"options",
|
|
136
|
+
"name",
|
|
137
|
+
"disabled",
|
|
138
|
+
"required",
|
|
139
|
+
"size",
|
|
140
|
+
"class"
|
|
141
|
+
]),
|
|
142
|
+
(0, vue.createVNode)(require_FieldFooter.FieldFooter_default)
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, [
|
|
146
|
+
"id",
|
|
147
|
+
"error",
|
|
148
|
+
"message"
|
|
149
|
+
]);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(exports, "FieldRadioGroup_default", {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function() {
|
|
156
|
+
return FieldRadioGroup_default;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { t as FieldBase_default } from "./FieldBase-BwD6Dput.js";
|
|
2
|
+
import { t as FieldLabel_default } from "./FieldLabel-BYlOJvXY.js";
|
|
3
|
+
import { t as FieldFooter_default } from "./FieldFooter-CE598o7n.js";
|
|
4
|
+
import { n as radioGroupStyles } from "./choiceStyles-DRjL1Y2d.js";
|
|
5
|
+
import { t as useFieldControl } from "./useFieldControl-BkQi1zak.js";
|
|
6
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, renderList, toDisplayString, unref, useModel, withCtx } from "vue";
|
|
7
|
+
import { RadioGroupIndicator, RadioGroupItem, RadioGroupRoot } from "reka-ui";
|
|
8
|
+
// src/internal/controls/ControlRadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var _hoisted_1 = ["data-disabled"];
|
|
10
|
+
// src/internal/controls/ControlRadioGroup.vue
|
|
11
|
+
var ControlRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "ControlRadioGroup",
|
|
13
|
+
props: /*@__PURE__*/ mergeModels({
|
|
14
|
+
id: {},
|
|
15
|
+
name: {},
|
|
16
|
+
options: { default: () => [] },
|
|
17
|
+
disabled: { type: Boolean },
|
|
18
|
+
required: { type: Boolean },
|
|
19
|
+
size: { default: "md" },
|
|
20
|
+
class: {}
|
|
21
|
+
}, {
|
|
22
|
+
"modelValue": {},
|
|
23
|
+
"modelModifiers": {}
|
|
24
|
+
}),
|
|
25
|
+
emits: ["update:modelValue"],
|
|
26
|
+
setup(__props) {
|
|
27
|
+
/**
|
|
28
|
+
* @component ControlRadioGroup
|
|
29
|
+
* @description Radio group built on reka-ui RadioGroup primitives.
|
|
30
|
+
*/
|
|
31
|
+
const props = __props;
|
|
32
|
+
const model = useModel(__props, "modelValue");
|
|
33
|
+
const { id, describedBy, invalid } = useFieldControl(props);
|
|
34
|
+
const classes = computed(() => radioGroupStyles({ size: props.size }));
|
|
35
|
+
const handleUpdate = (value) => {
|
|
36
|
+
if (value == null) return;
|
|
37
|
+
model.value = String(value);
|
|
38
|
+
};
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return openBlock(), createBlock(unref(RadioGroupRoot), {
|
|
41
|
+
id: unref(id),
|
|
42
|
+
name: __props.name || void 0,
|
|
43
|
+
required: __props.required,
|
|
44
|
+
disabled: __props.disabled,
|
|
45
|
+
"model-value": model.value || void 0,
|
|
46
|
+
"aria-invalid": unref(invalid),
|
|
47
|
+
"aria-describedby": unref(describedBy),
|
|
48
|
+
class: normalizeClass([classes.value.root, props.class]),
|
|
49
|
+
"onUpdate:modelValue": handleUpdate
|
|
50
|
+
}, {
|
|
51
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
52
|
+
return openBlock(), createElementBlock("label", {
|
|
53
|
+
key: option.value,
|
|
54
|
+
class: normalizeClass(classes.value.item),
|
|
55
|
+
"data-disabled": __props.disabled || option.disabled ? "" : void 0
|
|
56
|
+
}, [createVNode(unref(RadioGroupItem), {
|
|
57
|
+
value: option.value,
|
|
58
|
+
disabled: __props.disabled || option.disabled,
|
|
59
|
+
"aria-invalid": unref(invalid),
|
|
60
|
+
class: normalizeClass(classes.value.control)
|
|
61
|
+
}, {
|
|
62
|
+
default: withCtx(() => [createVNode(unref(RadioGroupIndicator), { class: normalizeClass(classes.value.indicator) }, null, 8, ["class"])]),
|
|
63
|
+
_: 1
|
|
64
|
+
}, 8, [
|
|
65
|
+
"value",
|
|
66
|
+
"disabled",
|
|
67
|
+
"aria-invalid",
|
|
68
|
+
"class"
|
|
69
|
+
]), createElementVNode("span", { class: normalizeClass(classes.value.label) }, toDisplayString(option.label), 3)], 10, _hoisted_1);
|
|
70
|
+
}), 128))]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, [
|
|
73
|
+
"id",
|
|
74
|
+
"name",
|
|
75
|
+
"required",
|
|
76
|
+
"disabled",
|
|
77
|
+
"model-value",
|
|
78
|
+
"aria-invalid",
|
|
79
|
+
"aria-describedby",
|
|
80
|
+
"class"
|
|
81
|
+
]);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
// src/components/Field/FieldRadioGroup.vue
|
|
86
|
+
var FieldRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
87
|
+
__name: "FieldRadioGroup",
|
|
88
|
+
props: /*@__PURE__*/ mergeModels({
|
|
89
|
+
id: {},
|
|
90
|
+
name: {},
|
|
91
|
+
label: {},
|
|
92
|
+
disabled: { type: Boolean },
|
|
93
|
+
required: { type: Boolean },
|
|
94
|
+
size: { default: "md" },
|
|
95
|
+
message: {},
|
|
96
|
+
error: {},
|
|
97
|
+
class: {},
|
|
98
|
+
options: { default: () => [] }
|
|
99
|
+
}, {
|
|
100
|
+
"modelValue": {},
|
|
101
|
+
"modelModifiers": {}
|
|
102
|
+
}),
|
|
103
|
+
emits: ["update:modelValue"],
|
|
104
|
+
setup(__props) {
|
|
105
|
+
/**
|
|
106
|
+
* @component FieldRadioGroup
|
|
107
|
+
* @description Radio group with label, helper text, and error.
|
|
108
|
+
*/
|
|
109
|
+
const props = __props;
|
|
110
|
+
const model = useModel(__props, "modelValue");
|
|
111
|
+
return (_ctx, _cache) => {
|
|
112
|
+
return openBlock(), createBlock(FieldBase_default, {
|
|
113
|
+
id: __props.id || void 0,
|
|
114
|
+
error: __props.error,
|
|
115
|
+
message: __props.message
|
|
116
|
+
}, {
|
|
117
|
+
default: withCtx(() => [
|
|
118
|
+
__props.label ? (openBlock(), createBlock(FieldLabel_default, {
|
|
119
|
+
key: 0,
|
|
120
|
+
label: __props.label,
|
|
121
|
+
required: __props.required,
|
|
122
|
+
size: "sm"
|
|
123
|
+
}, null, 8, ["label", "required"])) : createCommentVNode("", true),
|
|
124
|
+
createVNode(ControlRadioGroup_default, {
|
|
125
|
+
modelValue: model.value,
|
|
126
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
127
|
+
options: __props.options,
|
|
128
|
+
name: __props.name,
|
|
129
|
+
disabled: __props.disabled,
|
|
130
|
+
required: __props.required,
|
|
131
|
+
size: __props.size,
|
|
132
|
+
class: normalizeClass(props.class)
|
|
133
|
+
}, null, 8, [
|
|
134
|
+
"modelValue",
|
|
135
|
+
"options",
|
|
136
|
+
"name",
|
|
137
|
+
"disabled",
|
|
138
|
+
"required",
|
|
139
|
+
"size",
|
|
140
|
+
"class"
|
|
141
|
+
]),
|
|
142
|
+
createVNode(FieldFooter_default)
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, [
|
|
146
|
+
"id",
|
|
147
|
+
"error",
|
|
148
|
+
"message"
|
|
149
|
+
]);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
export { FieldRadioGroup_default as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as fieldStyles } from "./styles-BU90HeKh.js";
|
|
2
|
+
import { createElementBlock, defineComponent, normalizeClass, openBlock, unref } from "vue";
|
|
3
|
+
// src/components/Field/FieldRequired.vue
|
|
4
|
+
var FieldRequired_default = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "FieldRequired",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
const classes = fieldStyles();
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
return openBlock(), createElementBlock("span", {
|
|
10
|
+
class: normalizeClass(unref(classes).required),
|
|
11
|
+
"aria-hidden": "true"
|
|
12
|
+
}, "*", 2);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export { FieldRequired_default as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_styles = require("./styles-CuN4CHU4.cjs");
|
|
2
|
+
let vue = require("vue");
|
|
3
|
+
// src/components/Field/FieldRequired.vue
|
|
4
|
+
var FieldRequired_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
5
|
+
__name: "FieldRequired",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
const classes = require_styles.fieldStyles();
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
10
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(classes).required),
|
|
11
|
+
"aria-hidden": "true"
|
|
12
|
+
}, "*", 2);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "FieldRequired_default", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function() {
|
|
19
|
+
return FieldRequired_default;
|
|
20
|
+
}
|
|
21
|
+
});
|