@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,64 @@
|
|
|
1
|
+
/** Checkbox: label wrapper, box, check indicator, text. */
|
|
2
|
+
export declare const checkboxStyles: import("../../../styled-system/types").SvaRuntimeFn<"root" | "indicator" | "label" | "control", {
|
|
3
|
+
size: {
|
|
4
|
+
sm: {
|
|
5
|
+
control: {
|
|
6
|
+
width: "1rem";
|
|
7
|
+
height: "1rem";
|
|
8
|
+
};
|
|
9
|
+
label: {
|
|
10
|
+
fontSize: "sm";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
md: {
|
|
14
|
+
control: {
|
|
15
|
+
width: "1.125rem";
|
|
16
|
+
height: "1.125rem";
|
|
17
|
+
};
|
|
18
|
+
label: {
|
|
19
|
+
fontSize: "md";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
lg: {
|
|
23
|
+
control: {
|
|
24
|
+
width: "1.375rem";
|
|
25
|
+
height: "1.375rem";
|
|
26
|
+
};
|
|
27
|
+
label: {
|
|
28
|
+
fontSize: "lg";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
/** Radio group: shares the box, label, and size scale with the checkbox. */
|
|
34
|
+
export declare const radioGroupStyles: import("../../../styled-system/types").SvaRuntimeFn<"root" | "item" | "indicator" | "label" | "control", {
|
|
35
|
+
size: {
|
|
36
|
+
sm: {
|
|
37
|
+
control: {
|
|
38
|
+
width: "1rem";
|
|
39
|
+
height: "1rem";
|
|
40
|
+
};
|
|
41
|
+
label: {
|
|
42
|
+
fontSize: "sm";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
md: {
|
|
46
|
+
control: {
|
|
47
|
+
width: "1.125rem";
|
|
48
|
+
height: "1.125rem";
|
|
49
|
+
};
|
|
50
|
+
label: {
|
|
51
|
+
fontSize: "md";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
lg: {
|
|
55
|
+
control: {
|
|
56
|
+
width: "1.375rem";
|
|
57
|
+
height: "1.375rem";
|
|
58
|
+
};
|
|
59
|
+
label: {
|
|
60
|
+
fontSize: "lg";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
export type FieldContext = {
|
|
3
|
+
fieldId: ComputedRef<string>;
|
|
4
|
+
errorId: ComputedRef<string | null>;
|
|
5
|
+
messageId: ComputedRef<string | null>;
|
|
6
|
+
hasError: ComputedRef<boolean>;
|
|
7
|
+
errorMessage: ComputedRef<string | null>;
|
|
8
|
+
message: ComputedRef<string | null>;
|
|
9
|
+
};
|
|
10
|
+
export declare const fieldContextKey: InjectionKey<FieldContext>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/** Text-like field controls: input, textarea, and the select trigger. */
|
|
2
|
+
export declare const controlStyles: import("../../../styled-system/types").CvaRuntimeFn<{
|
|
3
|
+
element: {
|
|
4
|
+
input: {};
|
|
5
|
+
textarea: {
|
|
6
|
+
alignItems: "flex-start";
|
|
7
|
+
resize: "vertical";
|
|
8
|
+
minHeight: "6rem";
|
|
9
|
+
};
|
|
10
|
+
select: {
|
|
11
|
+
justifyContent: "space-between";
|
|
12
|
+
gap: "md";
|
|
13
|
+
cursor: "pointer";
|
|
14
|
+
textAlign: "left";
|
|
15
|
+
_disabled: {
|
|
16
|
+
cursor: "not-allowed";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
sm: {
|
|
22
|
+
paddingX: "md";
|
|
23
|
+
paddingY: "xs";
|
|
24
|
+
fontSize: "sm";
|
|
25
|
+
};
|
|
26
|
+
md: {
|
|
27
|
+
paddingX: "lg";
|
|
28
|
+
paddingY: "sm";
|
|
29
|
+
fontSize: "md";
|
|
30
|
+
};
|
|
31
|
+
lg: {
|
|
32
|
+
paddingX: "xl";
|
|
33
|
+
paddingY: "md";
|
|
34
|
+
fontSize: "lg";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
valid: {
|
|
38
|
+
true: {
|
|
39
|
+
borderColor: "success.subtle !important";
|
|
40
|
+
_focus: {
|
|
41
|
+
borderColor: "success.subtle !important";
|
|
42
|
+
outlineColor: "success.subtle/50 !important";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
false: {
|
|
46
|
+
borderColor: "danger.subtle !important";
|
|
47
|
+
_focus: {
|
|
48
|
+
borderColor: "danger.subtle !important";
|
|
49
|
+
outlineColor: "danger.subtle/50 !important";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
none: {};
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import ControlInput from './ControlInput.vue';
|
|
2
|
+
import ControlTextarea from './ControlTextarea.vue';
|
|
3
|
+
import ControlSelect from './ControlSelect.vue';
|
|
4
|
+
import ControlCheckbox from './ControlCheckbox.vue';
|
|
5
|
+
import ControlRadioGroup from './ControlRadioGroup.vue';
|
|
6
|
+
import ControlSwitch from './ControlSwitch.vue';
|
|
7
|
+
import ControlUrl from './ControlUrl.vue';
|
|
8
|
+
export type { ControlInputType, ControlSize, ControlValid, FieldOption, UrlCss } from './types';
|
|
9
|
+
export type { UrlProtocol } from './urlUtils';
|
|
10
|
+
export { fieldContextKey } from './context';
|
|
11
|
+
export type { FieldContext } from './context';
|
|
12
|
+
export { useFieldControl } from './useFieldControl';
|
|
13
|
+
export { parseUrlValue, sanitizeHostPathInput, joinUrl } from './urlUtils';
|
|
14
|
+
export { ControlInput, ControlTextarea, ControlSelect, ControlCheckbox, ControlRadioGroup, ControlSwitch, ControlUrl, };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/** Select menu. The trigger uses `controlStyles` with `element: 'select'`. */
|
|
2
|
+
export declare const selectStyles: import("../../../styled-system/types").SvaRuntimeFn<"item" | "content" | "viewport" | "itemIndicator", import("../../../styled-system/types").SlotRecipeVariantRecord<"item" | "content" | "viewport" | "itemIndicator">>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const switchStyles: import("../../../styled-system/types").SvaRuntimeFn<"root" | "label" | "track" | "thumb", {
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
track: {
|
|
5
|
+
width: "32px";
|
|
6
|
+
};
|
|
7
|
+
thumb: {
|
|
8
|
+
width: "12px";
|
|
9
|
+
'[data-state="checked"] &': {
|
|
10
|
+
translateX: "14px";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
label: {
|
|
14
|
+
fontSize: "sm";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
md: {
|
|
18
|
+
track: {
|
|
19
|
+
width: "40px";
|
|
20
|
+
};
|
|
21
|
+
thumb: {
|
|
22
|
+
width: "16px";
|
|
23
|
+
'[data-state="checked"] &': {
|
|
24
|
+
translateX: "18px";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
label: {
|
|
28
|
+
fontSize: "md";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
lg: {
|
|
32
|
+
track: {
|
|
33
|
+
width: "48px";
|
|
34
|
+
};
|
|
35
|
+
thumb: {
|
|
36
|
+
width: "20px";
|
|
37
|
+
'[data-state="checked"] &': {
|
|
38
|
+
translateX: "22px";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
label: {
|
|
42
|
+
fontSize: "lg";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CssMap } from '../css';
|
|
2
|
+
export type ControlSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export type ControlValid = true | false | 'none';
|
|
4
|
+
export type ControlInputType = 'text' | 'email' | 'url' | 'tel' | 'search' | 'password' | 'number' | 'date';
|
|
5
|
+
export type FieldOption = {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type UrlCss = CssMap<'root' | 'protocol' | 'input'>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/** URL field: clickable protocol prefix plus host/path input. */
|
|
2
|
+
export declare const urlStyles: import("../../../styled-system/types").SvaRuntimeFn<"root" | "input" | "protocol", {
|
|
3
|
+
size: {
|
|
4
|
+
sm: {
|
|
5
|
+
root: {
|
|
6
|
+
fontSize: "sm";
|
|
7
|
+
};
|
|
8
|
+
protocol: {
|
|
9
|
+
paddingInline: "sm";
|
|
10
|
+
paddingBlock: "xs";
|
|
11
|
+
};
|
|
12
|
+
input: {
|
|
13
|
+
paddingInlineStart: "sm";
|
|
14
|
+
paddingInlineEnd: "md";
|
|
15
|
+
paddingBlock: "xs";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
md: {
|
|
19
|
+
root: {
|
|
20
|
+
fontSize: "md";
|
|
21
|
+
};
|
|
22
|
+
protocol: {
|
|
23
|
+
paddingInline: "sm";
|
|
24
|
+
paddingBlock: "sm";
|
|
25
|
+
};
|
|
26
|
+
input: {
|
|
27
|
+
paddingInlineStart: "sm";
|
|
28
|
+
paddingInlineEnd: "lg";
|
|
29
|
+
paddingBlock: "sm";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
lg: {
|
|
33
|
+
root: {
|
|
34
|
+
fontSize: "lg";
|
|
35
|
+
};
|
|
36
|
+
protocol: {
|
|
37
|
+
paddingInline: "md";
|
|
38
|
+
paddingBlock: "md";
|
|
39
|
+
};
|
|
40
|
+
input: {
|
|
41
|
+
paddingInlineStart: "md";
|
|
42
|
+
paddingInlineEnd: "xl";
|
|
43
|
+
paddingBlock: "md";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
valid: {
|
|
48
|
+
true: {
|
|
49
|
+
root: {
|
|
50
|
+
borderColor: "success.subtle !important";
|
|
51
|
+
_focusWithin: {
|
|
52
|
+
borderColor: "success.subtle !important";
|
|
53
|
+
outlineColor: "success.subtle/50 !important";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
false: {
|
|
58
|
+
root: {
|
|
59
|
+
borderColor: "danger.subtle !important";
|
|
60
|
+
_focusWithin: {
|
|
61
|
+
borderColor: "danger.subtle !important";
|
|
62
|
+
outlineColor: "danger.subtle/50 !important";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
none: {};
|
|
67
|
+
};
|
|
68
|
+
secure: {
|
|
69
|
+
true: {
|
|
70
|
+
protocol: {
|
|
71
|
+
'& .icon': {
|
|
72
|
+
color: "success.subtle";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
false: {
|
|
77
|
+
protocol: {
|
|
78
|
+
'& .icon': {
|
|
79
|
+
color: "text.placeholder";
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type UrlProtocol = 'http' | 'https';
|
|
2
|
+
export declare function parseUrlValue(value: string | null | undefined, defaultProtocol?: UrlProtocol): {
|
|
3
|
+
protocol: UrlProtocol;
|
|
4
|
+
hostPath: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Strip a leading http(s):// (or //) from user input/paste and capture the protocol.
|
|
8
|
+
* Input without a scheme is returned unchanged, so typing is not disturbed.
|
|
9
|
+
*/
|
|
10
|
+
export declare function sanitizeHostPathInput(input: string): {
|
|
11
|
+
protocol?: UrlProtocol;
|
|
12
|
+
hostPath: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function joinUrl(protocol: UrlProtocol, hostPath: string): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ControlValid } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Wiring every control shares with `FieldBase`: the element id, ARIA links to
|
|
4
|
+
* the message and error, and the validity state.
|
|
5
|
+
*
|
|
6
|
+
* `valid` on the control wins. Otherwise an error on the surrounding field
|
|
7
|
+
* marks the control invalid.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useFieldControl(props: {
|
|
10
|
+
id?: string;
|
|
11
|
+
valid?: ControlValid;
|
|
12
|
+
}): {
|
|
13
|
+
id: import("vue").ComputedRef<string | undefined>;
|
|
14
|
+
describedBy: import("vue").ComputedRef<string | undefined>;
|
|
15
|
+
valid: import("vue").ComputedRef<ControlValid>;
|
|
16
|
+
invalid: import("vue").ComputedRef<boolean>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SystemStyleObject } from 'styled-system/types';
|
|
2
|
+
/**
|
|
3
|
+
* Per-component `css` prop: style objects keyed by the component's slot names.
|
|
4
|
+
* `root` is always the outermost element.
|
|
5
|
+
*
|
|
6
|
+
* Panda only generates CSS for objects it can see at build time, so pass each
|
|
7
|
+
* slot through `css.raw()` from the app's own `styled-system/css`:
|
|
8
|
+
*
|
|
9
|
+
* ```vue
|
|
10
|
+
* <WfAlertRoot :css="{ root: css.raw({ maxWidth: 'md' }) }" />
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export type CssMap<K extends string> = Partial<Record<K, SystemStyleObject>>;
|
|
14
|
+
/**
|
|
15
|
+
* Class for one slot: the component's style object merged with the consumer's
|
|
16
|
+
* override.
|
|
17
|
+
*
|
|
18
|
+
* Component styles are atomic classes, so appending an override class would
|
|
19
|
+
* leave both `bg_x` and `bg_y` on the element and let stylesheet order decide.
|
|
20
|
+
* Merging the objects first gives one class per property, and the override wins.
|
|
21
|
+
*
|
|
22
|
+
* Pass `styles.raw(…)` (or a slot of it), not the class string from `styles(…)`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function withCss(style: SystemStyleObject | undefined, override?: SystemStyleObject | null): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
|
|
3
|
+
interface ModuleOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Prefix for auto-registered components.
|
|
6
|
+
* `Button` becomes `WfButton` when prefix is `Wf`.
|
|
7
|
+
* @default 'Wf'
|
|
8
|
+
*/
|
|
9
|
+
prefix?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Inject the icon stylesheet from `@webflare/ui`.
|
|
12
|
+
* Component styles are generated by Panda CSS in the consuming app
|
|
13
|
+
* via `designSystem: '@webflare/ui'`.
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
icons?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
19
|
+
|
|
20
|
+
export { _default as default };
|
|
21
|
+
export type { ModuleOptions };
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { dirname } from 'node:path';
|
|
4
|
+
import { useLogger, defineNuxtModule, addComponent, addImports } from '@nuxt/kit';
|
|
5
|
+
|
|
6
|
+
const require$1 = createRequire(import.meta.url);
|
|
7
|
+
const logger = useLogger("@webflare/ui");
|
|
8
|
+
function resolveFromPackage(specifier) {
|
|
9
|
+
try {
|
|
10
|
+
return require$1.resolve(specifier);
|
|
11
|
+
} catch {
|
|
12
|
+
return void 0;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function resolveIconCss() {
|
|
16
|
+
return resolveFromPackage("@webflare/ui/style.css");
|
|
17
|
+
}
|
|
18
|
+
function readModuleVersion() {
|
|
19
|
+
try {
|
|
20
|
+
const pkgPath = require$1.resolve("@webflare/ui/package.json");
|
|
21
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
|
|
22
|
+
return pkg.version ?? "0.0.0";
|
|
23
|
+
} catch {
|
|
24
|
+
return "0.0.0";
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function loadNuxtEntries() {
|
|
28
|
+
const entriesPath = resolveFromPackage("@webflare/ui/nuxt-entries.json");
|
|
29
|
+
if (!entriesPath) {
|
|
30
|
+
return { components: {}, composables: [] };
|
|
31
|
+
}
|
|
32
|
+
return JSON.parse(readFileSync(entriesPath, "utf8"));
|
|
33
|
+
}
|
|
34
|
+
function resolveComponentsDist() {
|
|
35
|
+
const entriesPath = resolveFromPackage("@webflare/ui/nuxt-entries.json");
|
|
36
|
+
return entriesPath ? dirname(entriesPath) : void 0;
|
|
37
|
+
}
|
|
38
|
+
function hasPandaPostcssPlugin(postcss) {
|
|
39
|
+
const plugins = postcss?.plugins;
|
|
40
|
+
if (!plugins) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
return Object.prototype.hasOwnProperty.call(plugins, "@pandacss/dev/postcss");
|
|
44
|
+
}
|
|
45
|
+
function warnIfPandaSetupLooksMissing(nuxt) {
|
|
46
|
+
if (!resolveFromPackage("@webflare/ui/panda/lib.json")) {
|
|
47
|
+
logger.warn("Could not resolve @webflare/ui/panda/lib.json. Set designSystem: '@webflare/ui' in panda.config.ts so component styles generate.");
|
|
48
|
+
}
|
|
49
|
+
if (nuxt.options.dev && !hasPandaPostcssPlugin(nuxt.options.postcss)) {
|
|
50
|
+
logger.warn("Panda PostCSS is not configured. Set postcss.plugins['@pandacss/dev/postcss'] in nuxt.config and keep @layer reset, base, tokens, recipes, utilities in your CSS.");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function escapeRegExp(value) {
|
|
54
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
55
|
+
}
|
|
56
|
+
function allowLinkedFsDir(vite, dir) {
|
|
57
|
+
if (!dir) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
vite.server ??= {};
|
|
61
|
+
vite.server.fs ??= {};
|
|
62
|
+
vite.server.fs.allow ??= [];
|
|
63
|
+
if (!vite.server.fs.allow.includes(dir)) {
|
|
64
|
+
vite.server.fs.allow.push(dir);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function excludeLinkedVueDist(imports, dir) {
|
|
68
|
+
if (!dir) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
imports.transform ??= {};
|
|
72
|
+
imports.transform.exclude ??= [];
|
|
73
|
+
const pattern = new RegExp(escapeRegExp(dir));
|
|
74
|
+
if (!imports.transform.exclude.some((existing) => existing.source === pattern.source)) {
|
|
75
|
+
imports.transform.exclude.push(pattern);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const module$1 = defineNuxtModule({
|
|
79
|
+
meta: {
|
|
80
|
+
name: "@webflare/ui",
|
|
81
|
+
configKey: "wfUi",
|
|
82
|
+
version: readModuleVersion()
|
|
83
|
+
},
|
|
84
|
+
defaults: {
|
|
85
|
+
prefix: "Wf",
|
|
86
|
+
icons: true
|
|
87
|
+
},
|
|
88
|
+
setup(options, nuxt) {
|
|
89
|
+
const prefix = options.prefix ?? "Wf";
|
|
90
|
+
const { components, composables } = loadNuxtEntries();
|
|
91
|
+
nuxt.options.build.transpile.push("reka-ui");
|
|
92
|
+
const componentsDist = resolveComponentsDist();
|
|
93
|
+
allowLinkedFsDir(nuxt.options.vite, componentsDist);
|
|
94
|
+
excludeLinkedVueDist(nuxt.options.imports, componentsDist);
|
|
95
|
+
warnIfPandaSetupLooksMissing(nuxt);
|
|
96
|
+
if (options.icons !== false) {
|
|
97
|
+
const cssPath = resolveIconCss();
|
|
98
|
+
if (cssPath) {
|
|
99
|
+
if (!nuxt.options.css.includes(cssPath)) {
|
|
100
|
+
nuxt.options.css.push(cssPath);
|
|
101
|
+
}
|
|
102
|
+
allowLinkedFsDir(nuxt.options.vite, dirname(cssPath));
|
|
103
|
+
} else {
|
|
104
|
+
logger.warn("Could not resolve @webflare/ui/style.css. Iconify icons will be missing.");
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (Object.keys(components).length === 0) {
|
|
108
|
+
logger.warn("Could not resolve @webflare/ui/nuxt-entries.json. Auto-imports are skipped.");
|
|
109
|
+
}
|
|
110
|
+
for (const name of Object.keys(components)) {
|
|
111
|
+
addComponent({
|
|
112
|
+
name: `${prefix}${name}`,
|
|
113
|
+
export: name,
|
|
114
|
+
filePath: "@webflare/ui"
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
for (const name of composables) {
|
|
118
|
+
addImports({
|
|
119
|
+
name,
|
|
120
|
+
from: "@webflare/ui"
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
export { module$1 as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"components": {
|
|
3
|
+
"AccordionRoot": "AccordionRoot",
|
|
4
|
+
"AlertRoot": "AlertRoot",
|
|
5
|
+
"BadgeRoot": "BadgeRoot",
|
|
6
|
+
"Button": "Button",
|
|
7
|
+
"CardRoot": "CardRoot",
|
|
8
|
+
"CardBody": "CardBody",
|
|
9
|
+
"CardHeader": "CardHeader",
|
|
10
|
+
"CarouselRoot": "CarouselRoot",
|
|
11
|
+
"CarouselItem": "CarouselItem",
|
|
12
|
+
"CarouselNavigation": "CarouselNavigation",
|
|
13
|
+
"DialogRoot": "DialogRoot",
|
|
14
|
+
"FieldInput": "FieldInput",
|
|
15
|
+
"FieldTextarea": "FieldTextarea",
|
|
16
|
+
"FieldSelect": "FieldSelect",
|
|
17
|
+
"FieldCheckbox": "FieldCheckbox",
|
|
18
|
+
"FieldRadioGroup": "FieldRadioGroup",
|
|
19
|
+
"FieldSwitch": "FieldSwitch",
|
|
20
|
+
"FieldUrl": "FieldUrl",
|
|
21
|
+
"FieldBase": "FieldBase",
|
|
22
|
+
"FieldLabel": "FieldLabel",
|
|
23
|
+
"FieldError": "FieldError",
|
|
24
|
+
"FieldMessage": "FieldMessage",
|
|
25
|
+
"FieldRequired": "FieldRequired",
|
|
26
|
+
"FlyoutRoot": "FlyoutRoot",
|
|
27
|
+
"FlyoutDropdown": "FlyoutDropdown",
|
|
28
|
+
"FormPrompt": "FormPrompt",
|
|
29
|
+
"FormPromptFooter": "FormPromptFooter",
|
|
30
|
+
"HeroLead": "HeroLead",
|
|
31
|
+
"ListRoot": "ListRoot",
|
|
32
|
+
"ListItem": "ListItem",
|
|
33
|
+
"Loader": "Loader",
|
|
34
|
+
"PricingCardRoot": "PricingCardRoot",
|
|
35
|
+
"PricingCardHeader": "PricingCardHeader",
|
|
36
|
+
"PricingCardPricing": "PricingCardPricing",
|
|
37
|
+
"PricingCardBody": "PricingCardBody",
|
|
38
|
+
"PricingCardBadge": "PricingCardBadge",
|
|
39
|
+
"ProgressRoot": "ProgressRoot",
|
|
40
|
+
"SwitchRoot": "SwitchRoot",
|
|
41
|
+
"TabRoot": "TabRoot",
|
|
42
|
+
"TabItem": "TabItem"
|
|
43
|
+
},
|
|
44
|
+
"composables": [
|
|
45
|
+
"useCarousel",
|
|
46
|
+
"useFlyout",
|
|
47
|
+
"useFormData"
|
|
48
|
+
]
|
|
49
|
+
}
|