@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,239 @@
|
|
|
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 { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, renderList, toDisplayString, unref, useModel, withCtx } from "vue";
|
|
7
|
+
import { SelectContent, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectPortal, SelectRoot, SelectTrigger, SelectValue, SelectViewport } from "reka-ui";
|
|
8
|
+
import { sva } from "@webflare/ui/css";
|
|
9
|
+
// src/internal/controls/selectStyles.ts
|
|
10
|
+
/** Select menu. The trigger uses `controlStyles` with `element: 'select'`. */
|
|
11
|
+
var selectStyles = sva({
|
|
12
|
+
slots: [
|
|
13
|
+
"content",
|
|
14
|
+
"viewport",
|
|
15
|
+
"item",
|
|
16
|
+
"itemIndicator"
|
|
17
|
+
],
|
|
18
|
+
base: {
|
|
19
|
+
content: {
|
|
20
|
+
zIndex: "50",
|
|
21
|
+
overflow: "hidden",
|
|
22
|
+
backgroundColor: "surface",
|
|
23
|
+
borderWidth: "1px",
|
|
24
|
+
borderStyle: "solid",
|
|
25
|
+
borderColor: "border",
|
|
26
|
+
borderRadius: "lg",
|
|
27
|
+
boxShadow: "lg",
|
|
28
|
+
minWidth: "var(--reka-select-trigger-width)",
|
|
29
|
+
maxHeight: "18rem"
|
|
30
|
+
},
|
|
31
|
+
viewport: { p: "xs" },
|
|
32
|
+
item: {
|
|
33
|
+
"display": "flex",
|
|
34
|
+
"alignItems": "center",
|
|
35
|
+
"gap": "sm",
|
|
36
|
+
"borderRadius": "md",
|
|
37
|
+
"paddingX": "md",
|
|
38
|
+
"paddingY": "sm",
|
|
39
|
+
"paddingLeft": "2rem",
|
|
40
|
+
"fontSize": "md",
|
|
41
|
+
"fontWeight": "450",
|
|
42
|
+
"color": "neutral",
|
|
43
|
+
"cursor": "pointer",
|
|
44
|
+
"outline": "none",
|
|
45
|
+
"userSelect": "none",
|
|
46
|
+
"position": "relative",
|
|
47
|
+
"&[data-highlighted]": { backgroundColor: "neutral.subtle" },
|
|
48
|
+
"&[data-disabled]": {
|
|
49
|
+
opacity: "0.5",
|
|
50
|
+
cursor: "not-allowed"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
itemIndicator: {
|
|
54
|
+
position: "absolute",
|
|
55
|
+
left: "md",
|
|
56
|
+
display: "inline-flex",
|
|
57
|
+
width: "1em",
|
|
58
|
+
color: "primary"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
// src/internal/controls/ControlSelect.vue
|
|
63
|
+
var ControlSelect_default = /* @__PURE__ */ defineComponent({
|
|
64
|
+
__name: "ControlSelect",
|
|
65
|
+
props: /*@__PURE__*/ mergeModels({
|
|
66
|
+
id: {},
|
|
67
|
+
name: {},
|
|
68
|
+
options: { default: () => [] },
|
|
69
|
+
placeholder: {},
|
|
70
|
+
disabled: { type: Boolean },
|
|
71
|
+
required: { type: Boolean },
|
|
72
|
+
size: { default: "md" },
|
|
73
|
+
valid: {
|
|
74
|
+
type: [Boolean, String],
|
|
75
|
+
default: "none"
|
|
76
|
+
},
|
|
77
|
+
class: {}
|
|
78
|
+
}, {
|
|
79
|
+
"modelValue": {},
|
|
80
|
+
"modelModifiers": {}
|
|
81
|
+
}),
|
|
82
|
+
emits: ["update:modelValue"],
|
|
83
|
+
setup(__props) {
|
|
84
|
+
/**
|
|
85
|
+
* @component ControlSelect
|
|
86
|
+
* @description Select built on reka-ui Select primitives.
|
|
87
|
+
*/
|
|
88
|
+
const props = __props;
|
|
89
|
+
const model = useModel(__props, "modelValue");
|
|
90
|
+
const { id, describedBy, valid, invalid } = useFieldControl(props);
|
|
91
|
+
const classes = selectStyles();
|
|
92
|
+
const handleUpdate = (value) => {
|
|
93
|
+
if (value == null) return;
|
|
94
|
+
model.value = String(value);
|
|
95
|
+
};
|
|
96
|
+
return (_ctx, _cache) => {
|
|
97
|
+
return openBlock(), createBlock(unref(SelectRoot), {
|
|
98
|
+
"model-value": model.value || void 0,
|
|
99
|
+
name: __props.name || void 0,
|
|
100
|
+
required: __props.required,
|
|
101
|
+
disabled: __props.disabled,
|
|
102
|
+
"onUpdate:modelValue": handleUpdate
|
|
103
|
+
}, {
|
|
104
|
+
default: withCtx(() => [createVNode(unref(SelectTrigger), {
|
|
105
|
+
id: unref(id),
|
|
106
|
+
class: normalizeClass([unref(controlStyles)({
|
|
107
|
+
element: "select",
|
|
108
|
+
size: __props.size,
|
|
109
|
+
valid: unref(valid)
|
|
110
|
+
}), props.class]),
|
|
111
|
+
"aria-invalid": unref(invalid),
|
|
112
|
+
"aria-describedby": unref(describedBy)
|
|
113
|
+
}, {
|
|
114
|
+
default: withCtx(() => [createVNode(unref(SelectValue), { placeholder: __props.placeholder || void 0 }, null, 8, ["placeholder"]), createVNode(unref(SelectIcon), { "as-child": "" }, {
|
|
115
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("span", { class: "icon icon-caret-down-bold" }, null, -1)])]),
|
|
116
|
+
_: 1
|
|
117
|
+
})]),
|
|
118
|
+
_: 1
|
|
119
|
+
}, 8, [
|
|
120
|
+
"id",
|
|
121
|
+
"class",
|
|
122
|
+
"aria-invalid",
|
|
123
|
+
"aria-describedby"
|
|
124
|
+
]), createVNode(unref(SelectPortal), null, {
|
|
125
|
+
default: withCtx(() => [createVNode(unref(SelectContent), {
|
|
126
|
+
position: "popper",
|
|
127
|
+
"side-offset": 4,
|
|
128
|
+
class: normalizeClass(unref(classes).content)
|
|
129
|
+
}, {
|
|
130
|
+
default: withCtx(() => [createVNode(unref(SelectViewport), { class: normalizeClass(unref(classes).viewport) }, {
|
|
131
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
132
|
+
return openBlock(), createBlock(unref(SelectItem), {
|
|
133
|
+
key: option.value,
|
|
134
|
+
value: option.value,
|
|
135
|
+
disabled: option.disabled,
|
|
136
|
+
class: normalizeClass(unref(classes).item)
|
|
137
|
+
}, {
|
|
138
|
+
default: withCtx(() => [createElementVNode("span", { class: normalizeClass(unref(classes).itemIndicator) }, [createVNode(unref(SelectItemIndicator), null, {
|
|
139
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("span", { class: "icon icon-check-bold" }, null, -1)])]),
|
|
140
|
+
_: 1
|
|
141
|
+
})], 2), createVNode(unref(SelectItemText), null, {
|
|
142
|
+
default: withCtx(() => [createTextVNode(toDisplayString(option.label), 1)]),
|
|
143
|
+
_: 2
|
|
144
|
+
}, 1024)]),
|
|
145
|
+
_: 2
|
|
146
|
+
}, 1032, [
|
|
147
|
+
"value",
|
|
148
|
+
"disabled",
|
|
149
|
+
"class"
|
|
150
|
+
]);
|
|
151
|
+
}), 128))]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["class"])]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["class"])]),
|
|
156
|
+
_: 1
|
|
157
|
+
})]),
|
|
158
|
+
_: 1
|
|
159
|
+
}, 8, [
|
|
160
|
+
"model-value",
|
|
161
|
+
"name",
|
|
162
|
+
"required",
|
|
163
|
+
"disabled"
|
|
164
|
+
]);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
// src/components/Field/FieldSelect.vue
|
|
169
|
+
var FieldSelect_default = /* @__PURE__ */ defineComponent({
|
|
170
|
+
__name: "FieldSelect",
|
|
171
|
+
props: /*@__PURE__*/ mergeModels({
|
|
172
|
+
id: {},
|
|
173
|
+
name: {},
|
|
174
|
+
label: {},
|
|
175
|
+
disabled: { type: Boolean },
|
|
176
|
+
required: { type: Boolean },
|
|
177
|
+
size: { default: "md" },
|
|
178
|
+
message: {},
|
|
179
|
+
error: {},
|
|
180
|
+
class: {},
|
|
181
|
+
placeholder: {},
|
|
182
|
+
options: { default: () => [] }
|
|
183
|
+
}, {
|
|
184
|
+
"modelValue": {},
|
|
185
|
+
"modelModifiers": {}
|
|
186
|
+
}),
|
|
187
|
+
emits: ["update:modelValue"],
|
|
188
|
+
setup(__props) {
|
|
189
|
+
/**
|
|
190
|
+
* @component FieldSelect
|
|
191
|
+
* @description Select with label, helper text, and error.
|
|
192
|
+
*/
|
|
193
|
+
const props = __props;
|
|
194
|
+
const model = useModel(__props, "modelValue");
|
|
195
|
+
return (_ctx, _cache) => {
|
|
196
|
+
return openBlock(), createBlock(FieldBase_default, {
|
|
197
|
+
id: __props.id || void 0,
|
|
198
|
+
error: __props.error,
|
|
199
|
+
message: __props.message
|
|
200
|
+
}, {
|
|
201
|
+
default: withCtx(() => [
|
|
202
|
+
__props.label ? (openBlock(), createBlock(FieldLabel_default, {
|
|
203
|
+
key: 0,
|
|
204
|
+
label: __props.label,
|
|
205
|
+
required: __props.required,
|
|
206
|
+
size: "sm"
|
|
207
|
+
}, null, 8, ["label", "required"])) : createCommentVNode("", true),
|
|
208
|
+
createVNode(ControlSelect_default, {
|
|
209
|
+
modelValue: model.value,
|
|
210
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
211
|
+
placeholder: __props.placeholder,
|
|
212
|
+
options: __props.options,
|
|
213
|
+
name: __props.name,
|
|
214
|
+
disabled: __props.disabled,
|
|
215
|
+
required: __props.required,
|
|
216
|
+
size: __props.size,
|
|
217
|
+
class: normalizeClass(props.class)
|
|
218
|
+
}, null, 8, [
|
|
219
|
+
"modelValue",
|
|
220
|
+
"placeholder",
|
|
221
|
+
"options",
|
|
222
|
+
"name",
|
|
223
|
+
"disabled",
|
|
224
|
+
"required",
|
|
225
|
+
"size",
|
|
226
|
+
"class"
|
|
227
|
+
]),
|
|
228
|
+
createVNode(FieldFooter_default)
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, [
|
|
232
|
+
"id",
|
|
233
|
+
"error",
|
|
234
|
+
"message"
|
|
235
|
+
]);
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
export { FieldSelect_default as t };
|
|
@@ -0,0 +1,243 @@
|
|
|
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_controlStyles = require("./controlStyles-CClWH9EG.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/selectStyles.ts
|
|
9
|
+
/** Select menu. The trigger uses `controlStyles` with `element: 'select'`. */
|
|
10
|
+
var selectStyles = (0, require("@webflare/ui/css").sva)({
|
|
11
|
+
slots: [
|
|
12
|
+
"content",
|
|
13
|
+
"viewport",
|
|
14
|
+
"item",
|
|
15
|
+
"itemIndicator"
|
|
16
|
+
],
|
|
17
|
+
base: {
|
|
18
|
+
content: {
|
|
19
|
+
zIndex: "50",
|
|
20
|
+
overflow: "hidden",
|
|
21
|
+
backgroundColor: "surface",
|
|
22
|
+
borderWidth: "1px",
|
|
23
|
+
borderStyle: "solid",
|
|
24
|
+
borderColor: "border",
|
|
25
|
+
borderRadius: "lg",
|
|
26
|
+
boxShadow: "lg",
|
|
27
|
+
minWidth: "var(--reka-select-trigger-width)",
|
|
28
|
+
maxHeight: "18rem"
|
|
29
|
+
},
|
|
30
|
+
viewport: { p: "xs" },
|
|
31
|
+
item: {
|
|
32
|
+
"display": "flex",
|
|
33
|
+
"alignItems": "center",
|
|
34
|
+
"gap": "sm",
|
|
35
|
+
"borderRadius": "md",
|
|
36
|
+
"paddingX": "md",
|
|
37
|
+
"paddingY": "sm",
|
|
38
|
+
"paddingLeft": "2rem",
|
|
39
|
+
"fontSize": "md",
|
|
40
|
+
"fontWeight": "450",
|
|
41
|
+
"color": "neutral",
|
|
42
|
+
"cursor": "pointer",
|
|
43
|
+
"outline": "none",
|
|
44
|
+
"userSelect": "none",
|
|
45
|
+
"position": "relative",
|
|
46
|
+
"&[data-highlighted]": { backgroundColor: "neutral.subtle" },
|
|
47
|
+
"&[data-disabled]": {
|
|
48
|
+
opacity: "0.5",
|
|
49
|
+
cursor: "not-allowed"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
itemIndicator: {
|
|
53
|
+
position: "absolute",
|
|
54
|
+
left: "md",
|
|
55
|
+
display: "inline-flex",
|
|
56
|
+
width: "1em",
|
|
57
|
+
color: "primary"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
// src/internal/controls/ControlSelect.vue
|
|
62
|
+
var ControlSelect_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
63
|
+
__name: "ControlSelect",
|
|
64
|
+
props: /*@__PURE__*/ (0, vue.mergeModels)({
|
|
65
|
+
id: {},
|
|
66
|
+
name: {},
|
|
67
|
+
options: { default: () => [] },
|
|
68
|
+
placeholder: {},
|
|
69
|
+
disabled: { type: Boolean },
|
|
70
|
+
required: { type: Boolean },
|
|
71
|
+
size: { default: "md" },
|
|
72
|
+
valid: {
|
|
73
|
+
type: [Boolean, String],
|
|
74
|
+
default: "none"
|
|
75
|
+
},
|
|
76
|
+
class: {}
|
|
77
|
+
}, {
|
|
78
|
+
"modelValue": {},
|
|
79
|
+
"modelModifiers": {}
|
|
80
|
+
}),
|
|
81
|
+
emits: ["update:modelValue"],
|
|
82
|
+
setup(__props) {
|
|
83
|
+
/**
|
|
84
|
+
* @component ControlSelect
|
|
85
|
+
* @description Select built on reka-ui Select primitives.
|
|
86
|
+
*/
|
|
87
|
+
const props = __props;
|
|
88
|
+
const model = (0, vue.useModel)(__props, "modelValue");
|
|
89
|
+
const { id, describedBy, valid, invalid } = require_useFieldControl.useFieldControl(props);
|
|
90
|
+
const classes = selectStyles();
|
|
91
|
+
const handleUpdate = (value) => {
|
|
92
|
+
if (value == null) return;
|
|
93
|
+
model.value = String(value);
|
|
94
|
+
};
|
|
95
|
+
return (_ctx, _cache) => {
|
|
96
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.SelectRoot), {
|
|
97
|
+
"model-value": model.value || void 0,
|
|
98
|
+
name: __props.name || void 0,
|
|
99
|
+
required: __props.required,
|
|
100
|
+
disabled: __props.disabled,
|
|
101
|
+
"onUpdate:modelValue": handleUpdate
|
|
102
|
+
}, {
|
|
103
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.SelectTrigger), {
|
|
104
|
+
id: (0, vue.unref)(id),
|
|
105
|
+
class: (0, vue.normalizeClass)([(0, vue.unref)(require_controlStyles.controlStyles)({
|
|
106
|
+
element: "select",
|
|
107
|
+
size: __props.size,
|
|
108
|
+
valid: (0, vue.unref)(valid)
|
|
109
|
+
}), props.class]),
|
|
110
|
+
"aria-invalid": (0, vue.unref)(invalid),
|
|
111
|
+
"aria-describedby": (0, vue.unref)(describedBy)
|
|
112
|
+
}, {
|
|
113
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.SelectValue), { placeholder: __props.placeholder || void 0 }, null, 8, ["placeholder"]), (0, vue.createVNode)((0, vue.unref)(reka_ui.SelectIcon), { "as-child": "" }, {
|
|
114
|
+
default: (0, vue.withCtx)(() => [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("span", { class: "icon icon-caret-down-bold" }, null, -1)])]),
|
|
115
|
+
_: 1
|
|
116
|
+
})]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, [
|
|
119
|
+
"id",
|
|
120
|
+
"class",
|
|
121
|
+
"aria-invalid",
|
|
122
|
+
"aria-describedby"
|
|
123
|
+
]), (0, vue.createVNode)((0, vue.unref)(reka_ui.SelectPortal), null, {
|
|
124
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.SelectContent), {
|
|
125
|
+
position: "popper",
|
|
126
|
+
"side-offset": 4,
|
|
127
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(classes).content)
|
|
128
|
+
}, {
|
|
129
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.SelectViewport), { class: (0, vue.normalizeClass)((0, vue.unref)(classes).viewport) }, {
|
|
130
|
+
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.options, (option) => {
|
|
131
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.SelectItem), {
|
|
132
|
+
key: option.value,
|
|
133
|
+
value: option.value,
|
|
134
|
+
disabled: option.disabled,
|
|
135
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(classes).item)
|
|
136
|
+
}, {
|
|
137
|
+
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)((0, vue.unref)(classes).itemIndicator) }, [(0, vue.createVNode)((0, vue.unref)(reka_ui.SelectItemIndicator), null, {
|
|
138
|
+
default: (0, vue.withCtx)(() => [..._cache[1] || (_cache[1] = [(0, vue.createElementVNode)("span", { class: "icon icon-check-bold" }, null, -1)])]),
|
|
139
|
+
_: 1
|
|
140
|
+
})], 2), (0, vue.createVNode)((0, vue.unref)(reka_ui.SelectItemText), null, {
|
|
141
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(option.label), 1)]),
|
|
142
|
+
_: 2
|
|
143
|
+
}, 1024)]),
|
|
144
|
+
_: 2
|
|
145
|
+
}, 1032, [
|
|
146
|
+
"value",
|
|
147
|
+
"disabled",
|
|
148
|
+
"class"
|
|
149
|
+
]);
|
|
150
|
+
}), 128))]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["class"])]),
|
|
153
|
+
_: 1
|
|
154
|
+
}, 8, ["class"])]),
|
|
155
|
+
_: 1
|
|
156
|
+
})]),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 8, [
|
|
159
|
+
"model-value",
|
|
160
|
+
"name",
|
|
161
|
+
"required",
|
|
162
|
+
"disabled"
|
|
163
|
+
]);
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
// src/components/Field/FieldSelect.vue
|
|
168
|
+
var FieldSelect_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
169
|
+
__name: "FieldSelect",
|
|
170
|
+
props: /*@__PURE__*/ (0, vue.mergeModels)({
|
|
171
|
+
id: {},
|
|
172
|
+
name: {},
|
|
173
|
+
label: {},
|
|
174
|
+
disabled: { type: Boolean },
|
|
175
|
+
required: { type: Boolean },
|
|
176
|
+
size: { default: "md" },
|
|
177
|
+
message: {},
|
|
178
|
+
error: {},
|
|
179
|
+
class: {},
|
|
180
|
+
placeholder: {},
|
|
181
|
+
options: { default: () => [] }
|
|
182
|
+
}, {
|
|
183
|
+
"modelValue": {},
|
|
184
|
+
"modelModifiers": {}
|
|
185
|
+
}),
|
|
186
|
+
emits: ["update:modelValue"],
|
|
187
|
+
setup(__props) {
|
|
188
|
+
/**
|
|
189
|
+
* @component FieldSelect
|
|
190
|
+
* @description Select with label, helper text, and error.
|
|
191
|
+
*/
|
|
192
|
+
const props = __props;
|
|
193
|
+
const model = (0, vue.useModel)(__props, "modelValue");
|
|
194
|
+
return (_ctx, _cache) => {
|
|
195
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(require_FieldBase.FieldBase_default, {
|
|
196
|
+
id: __props.id || void 0,
|
|
197
|
+
error: __props.error,
|
|
198
|
+
message: __props.message
|
|
199
|
+
}, {
|
|
200
|
+
default: (0, vue.withCtx)(() => [
|
|
201
|
+
__props.label ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_FieldLabel.FieldLabel_default, {
|
|
202
|
+
key: 0,
|
|
203
|
+
label: __props.label,
|
|
204
|
+
required: __props.required,
|
|
205
|
+
size: "sm"
|
|
206
|
+
}, null, 8, ["label", "required"])) : (0, vue.createCommentVNode)("", true),
|
|
207
|
+
(0, vue.createVNode)(ControlSelect_default, {
|
|
208
|
+
modelValue: model.value,
|
|
209
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
210
|
+
placeholder: __props.placeholder,
|
|
211
|
+
options: __props.options,
|
|
212
|
+
name: __props.name,
|
|
213
|
+
disabled: __props.disabled,
|
|
214
|
+
required: __props.required,
|
|
215
|
+
size: __props.size,
|
|
216
|
+
class: (0, vue.normalizeClass)(props.class)
|
|
217
|
+
}, null, 8, [
|
|
218
|
+
"modelValue",
|
|
219
|
+
"placeholder",
|
|
220
|
+
"options",
|
|
221
|
+
"name",
|
|
222
|
+
"disabled",
|
|
223
|
+
"required",
|
|
224
|
+
"size",
|
|
225
|
+
"class"
|
|
226
|
+
]),
|
|
227
|
+
(0, vue.createVNode)(require_FieldFooter.FieldFooter_default)
|
|
228
|
+
]),
|
|
229
|
+
_: 1
|
|
230
|
+
}, 8, [
|
|
231
|
+
"id",
|
|
232
|
+
"error",
|
|
233
|
+
"message"
|
|
234
|
+
]);
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
Object.defineProperty(exports, "FieldSelect_default", {
|
|
239
|
+
enumerable: true,
|
|
240
|
+
get: function() {
|
|
241
|
+
return FieldSelect_default;
|
|
242
|
+
}
|
|
243
|
+
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
const require_FieldBase = require("./FieldBase-X1FWOqPU.cjs");
|
|
2
|
+
const require_FieldFooter = require("./FieldFooter-05GxwrFg.cjs");
|
|
3
|
+
const require_ControlSwitch = require("./ControlSwitch-C-pzHgWm.cjs");
|
|
4
|
+
let vue = require("vue");
|
|
5
|
+
// src/components/Field/FieldSwitch.vue
|
|
6
|
+
var FieldSwitch_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
7
|
+
__name: "FieldSwitch",
|
|
8
|
+
props: /*@__PURE__*/ (0, vue.mergeModels)({
|
|
9
|
+
id: {},
|
|
10
|
+
name: {},
|
|
11
|
+
label: {},
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
required: { type: Boolean },
|
|
14
|
+
size: { default: "md" },
|
|
15
|
+
message: {},
|
|
16
|
+
error: {},
|
|
17
|
+
class: {},
|
|
18
|
+
css: {}
|
|
19
|
+
}, {
|
|
20
|
+
"modelValue": { type: [Boolean, null] },
|
|
21
|
+
"modelModifiers": {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(__props) {
|
|
25
|
+
/**
|
|
26
|
+
* @component FieldSwitch
|
|
27
|
+
* @description Switch with helper text and error. The label sits next to the switch.
|
|
28
|
+
*/
|
|
29
|
+
const props = __props;
|
|
30
|
+
const model = (0, vue.useModel)(__props, "modelValue");
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(require_FieldBase.FieldBase_default, {
|
|
33
|
+
id: __props.id || void 0,
|
|
34
|
+
error: __props.error,
|
|
35
|
+
message: __props.message
|
|
36
|
+
}, {
|
|
37
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(require_ControlSwitch.ControlSwitch_default, {
|
|
38
|
+
modelValue: model.value,
|
|
39
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
40
|
+
label: __props.label,
|
|
41
|
+
css: props.css,
|
|
42
|
+
name: __props.name,
|
|
43
|
+
disabled: __props.disabled,
|
|
44
|
+
required: __props.required,
|
|
45
|
+
size: __props.size,
|
|
46
|
+
class: (0, vue.normalizeClass)(props.class)
|
|
47
|
+
}, null, 8, [
|
|
48
|
+
"modelValue",
|
|
49
|
+
"label",
|
|
50
|
+
"css",
|
|
51
|
+
"name",
|
|
52
|
+
"disabled",
|
|
53
|
+
"required",
|
|
54
|
+
"size",
|
|
55
|
+
"class"
|
|
56
|
+
]), (0, vue.createVNode)(require_FieldFooter.FieldFooter_default)]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, [
|
|
59
|
+
"id",
|
|
60
|
+
"error",
|
|
61
|
+
"message"
|
|
62
|
+
]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "FieldSwitch_default", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function() {
|
|
69
|
+
return FieldSwitch_default;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { t as FieldBase_default } from "./FieldBase-BwD6Dput.js";
|
|
2
|
+
import { t as FieldFooter_default } from "./FieldFooter-CE598o7n.js";
|
|
3
|
+
import { t as ControlSwitch_default } from "./ControlSwitch-C0Rj6fSW.js";
|
|
4
|
+
import { createBlock, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, useModel, withCtx } from "vue";
|
|
5
|
+
// src/components/Field/FieldSwitch.vue
|
|
6
|
+
var FieldSwitch_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "FieldSwitch",
|
|
8
|
+
props: /*@__PURE__*/ mergeModels({
|
|
9
|
+
id: {},
|
|
10
|
+
name: {},
|
|
11
|
+
label: {},
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
required: { type: Boolean },
|
|
14
|
+
size: { default: "md" },
|
|
15
|
+
message: {},
|
|
16
|
+
error: {},
|
|
17
|
+
class: {},
|
|
18
|
+
css: {}
|
|
19
|
+
}, {
|
|
20
|
+
"modelValue": { type: [Boolean, null] },
|
|
21
|
+
"modelModifiers": {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(__props) {
|
|
25
|
+
/**
|
|
26
|
+
* @component FieldSwitch
|
|
27
|
+
* @description Switch with helper text and error. The label sits next to the switch.
|
|
28
|
+
*/
|
|
29
|
+
const props = __props;
|
|
30
|
+
const model = useModel(__props, "modelValue");
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createBlock(FieldBase_default, {
|
|
33
|
+
id: __props.id || void 0,
|
|
34
|
+
error: __props.error,
|
|
35
|
+
message: __props.message
|
|
36
|
+
}, {
|
|
37
|
+
default: withCtx(() => [createVNode(ControlSwitch_default, {
|
|
38
|
+
modelValue: model.value,
|
|
39
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
40
|
+
label: __props.label,
|
|
41
|
+
css: props.css,
|
|
42
|
+
name: __props.name,
|
|
43
|
+
disabled: __props.disabled,
|
|
44
|
+
required: __props.required,
|
|
45
|
+
size: __props.size,
|
|
46
|
+
class: normalizeClass(props.class)
|
|
47
|
+
}, null, 8, [
|
|
48
|
+
"modelValue",
|
|
49
|
+
"label",
|
|
50
|
+
"css",
|
|
51
|
+
"name",
|
|
52
|
+
"disabled",
|
|
53
|
+
"required",
|
|
54
|
+
"size",
|
|
55
|
+
"class"
|
|
56
|
+
]), createVNode(FieldFooter_default)]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, [
|
|
59
|
+
"id",
|
|
60
|
+
"error",
|
|
61
|
+
"message"
|
|
62
|
+
]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export { FieldSwitch_default as t };
|