@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.
Files changed (447) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +234 -2
  3. package/dist/AccordionRoot-CNPxdTtA.cjs +182 -0
  4. package/dist/AccordionRoot-CmK-jaZz.js +178 -0
  5. package/dist/AlertRoot-B-M0xDFC.js +274 -0
  6. package/dist/AlertRoot-DRRwRAhA.cjs +278 -0
  7. package/dist/BadgeRoot-CzUSTR0W.cjs +136 -0
  8. package/dist/BadgeRoot-ffbcCd5B.js +132 -0
  9. package/dist/Button-A9BiKfSl.js +240 -0
  10. package/dist/Button-CwVAoJjO.cjs +244 -0
  11. package/dist/CardBody-BEbTLrA2.cjs +21 -0
  12. package/dist/CardBody-DbSW-Ssx.js +16 -0
  13. package/dist/CardHeader-Cx1pE9No.cjs +36 -0
  14. package/dist/CardHeader-DDRGpYth.js +31 -0
  15. package/dist/CardRoot-CZpgncJQ.cjs +49 -0
  16. package/dist/CardRoot-ia9NDth1.js +44 -0
  17. package/dist/CarouselItem-CJ9Kj2lU.cjs +21 -0
  18. package/dist/CarouselItem-Crs28MA9.js +16 -0
  19. package/dist/CarouselNavigation-BUZyy5GA.cjs +53 -0
  20. package/dist/CarouselNavigation-aM0v6IoI.js +48 -0
  21. package/dist/CarouselRoot-Co9IuVve.cjs +45 -0
  22. package/dist/CarouselRoot-DlGJZCox.js +40 -0
  23. package/dist/ControlSwitch-C-pzHgWm.cjs +188 -0
  24. package/dist/ControlSwitch-C0Rj6fSW.js +184 -0
  25. package/dist/DialogRoot-BiH9G8Jm.js +170 -0
  26. package/dist/DialogRoot-C6icP9Fb.cjs +174 -0
  27. package/dist/FieldBase-BwD6Dput.js +42 -0
  28. package/dist/FieldBase-X1FWOqPU.cjs +47 -0
  29. package/dist/FieldCheckbox-CYuyWgbl.cjs +139 -0
  30. package/dist/FieldCheckbox-DsQsNeX7.js +134 -0
  31. package/dist/FieldError-BPjk-uZc.js +36 -0
  32. package/dist/FieldError-XRz98TFe.cjs +41 -0
  33. package/dist/FieldFooter-05GxwrFg.cjs +29 -0
  34. package/dist/FieldFooter-CE598o7n.js +24 -0
  35. package/dist/FieldInput-bnC_fTws.cjs +155 -0
  36. package/dist/FieldInput-h3MgGC6J.js +150 -0
  37. package/dist/FieldLabel-BYlOJvXY.js +37 -0
  38. package/dist/FieldLabel-DBKhMbql.cjs +42 -0
  39. package/dist/FieldMessage-C83iNsEp.cjs +40 -0
  40. package/dist/FieldMessage-GyO_RQdK.js +35 -0
  41. package/dist/FieldRadioGroup-CLWFr3aL.cjs +158 -0
  42. package/dist/FieldRadioGroup-CmQ5JOjv.js +153 -0
  43. package/dist/FieldRequired-7fJtYCdt.js +16 -0
  44. package/dist/FieldRequired-CJtyr3cL.cjs +21 -0
  45. package/dist/FieldSelect-D6X_BwTS.js +239 -0
  46. package/dist/FieldSelect-DVcgCsHL.cjs +243 -0
  47. package/dist/FieldSwitch-C7VMSMoE.cjs +71 -0
  48. package/dist/FieldSwitch-DqagDsKK.js +66 -0
  49. package/dist/FieldTextarea-DBufxMQf.cjs +148 -0
  50. package/dist/FieldTextarea-_BtGkI0v.js +143 -0
  51. package/dist/FieldUrl-CcIOyPSl.js +387 -0
  52. package/dist/FieldUrl-DNnXDfBR.cjs +391 -0
  53. package/dist/FlyoutDropdown-Bw3pD8Tk.cjs +90 -0
  54. package/dist/FlyoutDropdown-ByXW9lqH.js +74 -0
  55. package/dist/FlyoutRoot-CuXnqpf8.js +110 -0
  56. package/dist/FlyoutRoot-DUoOHEoX.cjs +115 -0
  57. package/dist/FormPrompt-BDAVKk5i.cjs +63 -0
  58. package/dist/FormPrompt-BuS1lg-K.js +58 -0
  59. package/dist/FormPromptFooter-BhwWsaib.cjs +21 -0
  60. package/dist/FormPromptFooter-BrUOs40t.js +16 -0
  61. package/dist/HeroLead-BU-74-fX.js +151 -0
  62. package/dist/HeroLead-D52JBlM2.cjs +155 -0
  63. package/dist/ListItem-1sYxrNuv.cjs +164 -0
  64. package/dist/ListItem-rD49tsLw.js +148 -0
  65. package/dist/ListRoot-BRrC79y6.cjs +42 -0
  66. package/dist/ListRoot-CP7smMl_.js +37 -0
  67. package/dist/Loader-CMEggjED.cjs +121 -0
  68. package/dist/Loader-DSLPdX6P.js +116 -0
  69. package/dist/PricingCardBadge-DoHnRqTM.cjs +25 -0
  70. package/dist/PricingCardBadge-lh3Oq5fB.js +20 -0
  71. package/dist/PricingCardBody--EB7FzUU.cjs +60 -0
  72. package/dist/PricingCardBody-Dai1zKDL.js +49 -0
  73. package/dist/PricingCardHeader-DCEG6BUA.js +39 -0
  74. package/dist/PricingCardHeader-yebSjw8M.cjs +44 -0
  75. package/dist/PricingCardPricing-DvdbyMEh.cjs +30 -0
  76. package/dist/PricingCardPricing-Vbs2D8Fm.js +25 -0
  77. package/dist/PricingCardRoot-B9ztC1u9.cjs +46 -0
  78. package/dist/PricingCardRoot-Dagig8jr.js +41 -0
  79. package/dist/ProgressRoot-BV_wQKYv.js +251 -0
  80. package/dist/ProgressRoot-CWWNmB99.cjs +255 -0
  81. package/dist/SwitchRoot-CcipiBzA.cjs +61 -0
  82. package/dist/SwitchRoot-DGFu9ZWR.js +56 -0
  83. package/dist/TabItem--4wiBton.cjs +114 -0
  84. package/dist/TabItem-BTIrtLtp.js +104 -0
  85. package/dist/TabRoot-BNp4_dI_.cjs +77 -0
  86. package/dist/TabRoot-DDDJe5FC.js +72 -0
  87. package/dist/carousel-BrCOR927.cjs +144 -0
  88. package/dist/carousel-CBw9xA_6.js +139 -0
  89. package/dist/choiceStyles-DIVBtoZF.cjs +175 -0
  90. package/dist/choiceStyles-DRjL1Y2d.js +164 -0
  91. package/dist/components/Accordion/AccordionRoot.vue.d.ts +31 -0
  92. package/dist/components/Accordion/index.d.ts +59 -0
  93. package/dist/components/Accordion/styles.d.ts +67 -0
  94. package/dist/components/Accordion/types.d.ts +15 -0
  95. package/dist/components/Alert/AlertRoot.vue.d.ts +38 -0
  96. package/dist/components/Alert/index.d.ts +54 -0
  97. package/dist/components/Alert/styles.d.ts +132 -0
  98. package/dist/components/Alert/types.d.ts +6 -0
  99. package/dist/components/Badge/BadgeRoot.vue.d.ts +26 -0
  100. package/dist/components/Badge/index.d.ts +49 -0
  101. package/dist/components/Badge/styles.d.ts +94 -0
  102. package/dist/components/Button/Button.vue.d.ts +26 -0
  103. package/dist/components/Button/index.d.ts +4 -0
  104. package/dist/components/Button/styles.d.ts +140 -0
  105. package/dist/components/Card/CardBody.vue.d.ts +17 -0
  106. package/dist/components/Card/CardHeader.vue.d.ts +25 -0
  107. package/dist/components/Card/CardRoot.vue.d.ts +39 -0
  108. package/dist/components/Card/index.d.ts +98 -0
  109. package/dist/components/Card/styles.d.ts +169 -0
  110. package/dist/components/Card/types.d.ts +8 -0
  111. package/dist/components/Carousel/CarouselItem.vue.d.ts +17 -0
  112. package/dist/components/Carousel/CarouselNavigation.vue.d.ts +30 -0
  113. package/dist/components/Carousel/CarouselRoot.vue.d.ts +30 -0
  114. package/dist/components/Carousel/index.d.ts +117 -0
  115. package/dist/components/Carousel/styles.d.ts +1 -0
  116. package/dist/components/Carousel/types.d.ts +11 -0
  117. package/dist/components/Dialog/DialogRoot.vue.d.ts +39 -0
  118. package/dist/components/Dialog/index.d.ts +68 -0
  119. package/dist/components/Dialog/styles.d.ts +1 -0
  120. package/dist/components/Field/FieldBase.vue.d.ts +22 -0
  121. package/dist/components/Field/FieldCheckbox.vue.d.ts +15 -0
  122. package/dist/components/Field/FieldError.vue.d.ts +10 -0
  123. package/dist/components/Field/FieldFooter.vue.d.ts +3 -0
  124. package/dist/components/Field/FieldInput.vue.d.ts +21 -0
  125. package/dist/components/Field/FieldLabel.vue.d.ts +13 -0
  126. package/dist/components/Field/FieldMessage.vue.d.ts +10 -0
  127. package/dist/components/Field/FieldRadioGroup.vue.d.ts +19 -0
  128. package/dist/components/Field/FieldRequired.vue.d.ts +3 -0
  129. package/dist/components/Field/FieldSelect.vue.d.ts +20 -0
  130. package/dist/components/Field/FieldSwitch.vue.d.ts +18 -0
  131. package/dist/components/Field/FieldTextarea.vue.d.ts +19 -0
  132. package/dist/components/Field/FieldUrl.vue.d.ts +24 -0
  133. package/dist/components/Field/index.d.ts +220 -0
  134. package/dist/components/Field/styles.d.ts +20 -0
  135. package/dist/components/Field/types.d.ts +17 -0
  136. package/dist/components/Flyout/FlyoutDropdown.vue.d.ts +19 -0
  137. package/dist/components/Flyout/FlyoutRoot.vue.d.ts +43 -0
  138. package/dist/components/Flyout/index.d.ts +74 -0
  139. package/dist/components/Flyout/styles.d.ts +1 -0
  140. package/dist/components/Flyout/types.d.ts +10 -0
  141. package/dist/components/Form/FormPrompt.vue.d.ts +43 -0
  142. package/dist/components/Form/FormPromptFooter.vue.d.ts +20 -0
  143. package/dist/components/Form/index.d.ts +72 -0
  144. package/dist/components/Form/styles.d.ts +1 -0
  145. package/dist/components/Hero/HeroLead.vue.d.ts +39 -0
  146. package/dist/components/Hero/index.d.ts +49 -0
  147. package/dist/components/Hero/styles.d.ts +111 -0
  148. package/dist/components/List/ListItem.vue.d.ts +24 -0
  149. package/dist/components/List/ListRoot.vue.d.ts +26 -0
  150. package/dist/components/List/index.d.ts +74 -0
  151. package/dist/components/List/styles.d.ts +90 -0
  152. package/dist/components/List/types.d.ts +12 -0
  153. package/dist/components/Loader/Loader.vue.d.ts +14 -0
  154. package/dist/components/Loader/index.d.ts +4 -0
  155. package/dist/components/Loader/styles.d.ts +62 -0
  156. package/dist/components/PricingCard/PricingCardBadge.vue.d.ts +20 -0
  157. package/dist/components/PricingCard/PricingCardBody.vue.d.ts +20 -0
  158. package/dist/components/PricingCard/PricingCardHeader.vue.d.ts +28 -0
  159. package/dist/components/PricingCard/PricingCardPricing.vue.d.ts +22 -0
  160. package/dist/components/PricingCard/PricingCardRoot.vue.d.ts +27 -0
  161. package/dist/components/PricingCard/index.d.ts +138 -0
  162. package/dist/components/PricingCard/styles.d.ts +10 -0
  163. package/dist/components/PricingCard/types.d.ts +21 -0
  164. package/dist/components/Progress/ProgressRoot.vue.d.ts +41 -0
  165. package/dist/components/Progress/index.d.ts +81 -0
  166. package/dist/components/Progress/styles.d.ts +560 -0
  167. package/dist/components/Progress/types.d.ts +4 -0
  168. package/dist/components/Switch/SwitchRoot.vue.d.ts +25 -0
  169. package/dist/components/Switch/index.d.ts +35 -0
  170. package/dist/components/Switch/types.d.ts +2 -0
  171. package/dist/components/Tab/TabItem.vue.d.ts +19 -0
  172. package/dist/components/Tab/TabRoot.vue.d.ts +32 -0
  173. package/dist/components/Tab/index.d.ts +97 -0
  174. package/dist/components/Tab/styles.d.ts +1 -0
  175. package/dist/components/Tab/types.d.ts +14 -0
  176. package/dist/composables/carousel.d.ts +29 -0
  177. package/dist/composables/flyout.d.ts +30 -0
  178. package/dist/composables/form.d.ts +18 -0
  179. package/dist/composables/injection-key.d.ts +2 -0
  180. package/dist/context-Bk4uIMQS.js +4 -0
  181. package/dist/context-cK3z69qT.cjs +8 -0
  182. package/dist/controlStyles-Bf6fx2rL.js +92 -0
  183. package/dist/controlStyles-CClWH9EG.cjs +96 -0
  184. package/dist/css-BRRSQx3P.cjs +21 -0
  185. package/dist/css-DWYlz0rn.js +16 -0
  186. package/dist/flyout-BaVoXePQ.cjs +67 -0
  187. package/dist/flyout-QHh1jKmV.js +62 -0
  188. package/dist/form-BtxAsfYs.cjs +34 -0
  189. package/dist/form-CB12X8xv.js +29 -0
  190. package/dist/index.cjs +233 -0
  191. package/dist/index.d.ts +41 -0
  192. package/dist/index.js +168 -0
  193. package/dist/injection-key-BQYV9vIr.js +5 -0
  194. package/dist/injection-key-DPb_AXnh.cjs +10 -0
  195. package/dist/internal/controls/ControlCheckbox.vue.d.ts +23 -0
  196. package/dist/internal/controls/ControlInput.vue.d.ts +28 -0
  197. package/dist/internal/controls/ControlRadioGroup.vue.d.ts +24 -0
  198. package/dist/internal/controls/ControlSelect.vue.d.ts +27 -0
  199. package/dist/internal/controls/ControlSwitch.vue.d.ts +25 -0
  200. package/dist/internal/controls/ControlTextarea.vue.d.ts +27 -0
  201. package/dist/internal/controls/ControlUrl.vue.d.ts +31 -0
  202. package/dist/internal/controls/choiceStyles.d.ts +64 -0
  203. package/dist/internal/controls/context.d.ts +10 -0
  204. package/dist/internal/controls/controlStyles.d.ts +54 -0
  205. package/dist/internal/controls/index.d.ts +14 -0
  206. package/dist/internal/controls/selectStyles.d.ts +2 -0
  207. package/dist/internal/controls/switchStyles.d.ts +46 -0
  208. package/dist/internal/controls/types.d.ts +10 -0
  209. package/dist/internal/controls/urlStyles.d.ts +84 -0
  210. package/dist/internal/controls/urlUtils.d.ts +14 -0
  211. package/dist/internal/controls/useFieldControl.d.ts +17 -0
  212. package/dist/internal/css.d.ts +24 -0
  213. package/dist/nuxt/module.d.mts +21 -0
  214. package/dist/nuxt/module.json +9 -0
  215. package/dist/nuxt/module.mjs +126 -0
  216. package/dist/nuxt/types.d.mts +3 -0
  217. package/dist/nuxt-entries.json +49 -0
  218. package/dist/panda/buildinfo.json +5432 -0
  219. package/dist/panda/lib.json +18 -0
  220. package/dist/panda/preset.mjs +4092 -0
  221. package/dist/plugin.d.ts +3 -0
  222. package/dist/preset/index.cjs +692 -0
  223. package/dist/preset/index.d.cts +18 -0
  224. package/dist/preset/index.d.ts +18 -0
  225. package/dist/preset/index.js +656 -0
  226. package/dist/style.css +153 -0
  227. package/dist/styled-system/css/conditions.d.ts +7 -0
  228. package/dist/styled-system/css/conditions.js +32 -0
  229. package/dist/styled-system/css/css.d.ts +22 -0
  230. package/dist/styled-system/css/css.js +63 -0
  231. package/dist/styled-system/css/cva.d.ts +5 -0
  232. package/dist/styled-system/css/cva.js +51 -0
  233. package/dist/styled-system/css/cx.d.ts +6 -0
  234. package/dist/styled-system/css/cx.js +16 -0
  235. package/dist/styled-system/css/first-that-works.d.ts +22 -0
  236. package/dist/styled-system/css/first-that-works.js +1 -0
  237. package/dist/styled-system/css/index.d.ts +8 -0
  238. package/dist/styled-system/css/index.js +8 -0
  239. package/dist/styled-system/css/keyframes.d.ts +5 -0
  240. package/dist/styled-system/css/keyframes.js +8 -0
  241. package/dist/styled-system/css/position-try.d.ts +5 -0
  242. package/dist/styled-system/css/position-try.js +11 -0
  243. package/dist/styled-system/css/sva.d.ts +3 -0
  244. package/dist/styled-system/css/sva.js +49 -0
  245. package/dist/styled-system/css/view-transition.d.ts +7 -0
  246. package/dist/styled-system/css/view-transition.js +18 -0
  247. package/dist/styled-system/helpers.d.ts +67 -0
  248. package/dist/styled-system/helpers.js +624 -0
  249. package/dist/styled-system/patterns/aspect-ratio.d.ts +19 -0
  250. package/dist/styled-system/patterns/aspect-ratio.js +37 -0
  251. package/dist/styled-system/patterns/bleed.d.ts +20 -0
  252. package/dist/styled-system/patterns/bleed.js +30 -0
  253. package/dist/styled-system/patterns/box.d.ts +17 -0
  254. package/dist/styled-system/patterns/box.js +16 -0
  255. package/dist/styled-system/patterns/center.d.ts +19 -0
  256. package/dist/styled-system/patterns/center.js +22 -0
  257. package/dist/styled-system/patterns/circle.d.ts +19 -0
  258. package/dist/styled-system/patterns/circle.js +26 -0
  259. package/dist/styled-system/patterns/container.d.ts +17 -0
  260. package/dist/styled-system/patterns/container.js +37 -0
  261. package/dist/styled-system/patterns/cq.d.ts +21 -0
  262. package/dist/styled-system/patterns/cq.js +24 -0
  263. package/dist/styled-system/patterns/divider.d.ts +22 -0
  264. package/dist/styled-system/patterns/divider.js +31 -0
  265. package/dist/styled-system/patterns/flex.d.ts +25 -0
  266. package/dist/styled-system/patterns/flex.js +27 -0
  267. package/dist/styled-system/patterns/float.d.ts +23 -0
  268. package/dist/styled-system/patterns/float.js +78 -0
  269. package/dist/styled-system/patterns/grid-item.d.ts +24 -0
  270. package/dist/styled-system/patterns/grid-item.js +26 -0
  271. package/dist/styled-system/patterns/grid.d.ts +24 -0
  272. package/dist/styled-system/patterns/grid.js +30 -0
  273. package/dist/styled-system/patterns/hstack.d.ts +20 -0
  274. package/dist/styled-system/patterns/hstack.js +27 -0
  275. package/dist/styled-system/patterns/index.d.ts +20 -0
  276. package/dist/styled-system/patterns/index.js +20 -0
  277. package/dist/styled-system/patterns/link-overlay.d.ts +17 -0
  278. package/dist/styled-system/patterns/link-overlay.js +25 -0
  279. package/dist/styled-system/patterns/runtime.js +25 -0
  280. package/dist/styled-system/patterns/spacer.d.ts +20 -0
  281. package/dist/styled-system/patterns/spacer.js +25 -0
  282. package/dist/styled-system/patterns/square.d.ts +19 -0
  283. package/dist/styled-system/patterns/square.js +25 -0
  284. package/dist/styled-system/patterns/stack.d.ts +22 -0
  285. package/dist/styled-system/patterns/stack.js +30 -0
  286. package/dist/styled-system/patterns/visually-hidden.d.ts +17 -0
  287. package/dist/styled-system/patterns/visually-hidden.js +19 -0
  288. package/dist/styled-system/patterns/vstack.d.ts +20 -0
  289. package/dist/styled-system/patterns/vstack.js +27 -0
  290. package/dist/styled-system/patterns/wrap.d.ts +23 -0
  291. package/dist/styled-system/patterns/wrap.js +26 -0
  292. package/dist/styled-system/recipes/runtime.js +133 -0
  293. package/dist/styled-system/tokens/index.d.ts +8 -0
  294. package/dist/styled-system/tokens/index.js +18 -0
  295. package/dist/styled-system/types/index.d.ts +5 -0
  296. package/dist/styled-system/types/pattern.d.ts +26 -0
  297. package/dist/styled-system/types/recipe.d.ts +89 -0
  298. package/dist/styled-system/types/register.d.ts +36 -0
  299. package/dist/styled-system/types/system.d.ts +1880 -0
  300. package/dist/styled-system/types/tokens.d.ts +60 -0
  301. package/dist/styles-8a0pzMRc.js +88 -0
  302. package/dist/styles-BU90HeKh.js +72 -0
  303. package/dist/styles-BvLgeNpb.cjs +42 -0
  304. package/dist/styles-CK7DJVwO.js +72 -0
  305. package/dist/styles-Cjlvkx8i.cjs +92 -0
  306. package/dist/styles-CuN4CHU4.cjs +76 -0
  307. package/dist/styles-WOyB8APA.js +38 -0
  308. package/dist/styles-_I-I4HYc.cjs +76 -0
  309. package/dist/types-B1vOzUjg.js +5 -0
  310. package/dist/types-Boy3jvmf.js +4 -0
  311. package/dist/types-CBApDh_h.js +149 -0
  312. package/dist/types-D2v625uE.cjs +8 -0
  313. package/dist/types-DzEK6W6x.cjs +16 -0
  314. package/dist/types-cLDeFros.cjs +166 -0
  315. package/dist/useFieldControl-BkQi1zak.js +29 -0
  316. package/dist/useFieldControl-CEI7IRAa.cjs +34 -0
  317. package/dist/vue/AccordionRoot.cjs +6 -0
  318. package/dist/vue/AccordionRoot.d.ts +1 -0
  319. package/dist/vue/AccordionRoot.js +1 -0
  320. package/dist/vue/AlertRoot.cjs +6 -0
  321. package/dist/vue/AlertRoot.d.ts +1 -0
  322. package/dist/vue/AlertRoot.js +1 -0
  323. package/dist/vue/BadgeRoot.cjs +6 -0
  324. package/dist/vue/BadgeRoot.d.ts +1 -0
  325. package/dist/vue/BadgeRoot.js +1 -0
  326. package/dist/vue/Button.cjs +6 -0
  327. package/dist/vue/Button.d.ts +1 -0
  328. package/dist/vue/Button.js +1 -0
  329. package/dist/vue/CardBody.cjs +6 -0
  330. package/dist/vue/CardBody.d.ts +1 -0
  331. package/dist/vue/CardBody.js +1 -0
  332. package/dist/vue/CardHeader.cjs +6 -0
  333. package/dist/vue/CardHeader.d.ts +1 -0
  334. package/dist/vue/CardHeader.js +1 -0
  335. package/dist/vue/CardRoot.cjs +6 -0
  336. package/dist/vue/CardRoot.d.ts +1 -0
  337. package/dist/vue/CardRoot.js +1 -0
  338. package/dist/vue/CarouselItem.cjs +6 -0
  339. package/dist/vue/CarouselItem.d.ts +1 -0
  340. package/dist/vue/CarouselItem.js +1 -0
  341. package/dist/vue/CarouselNavigation.cjs +6 -0
  342. package/dist/vue/CarouselNavigation.d.ts +1 -0
  343. package/dist/vue/CarouselNavigation.js +1 -0
  344. package/dist/vue/CarouselRoot.cjs +6 -0
  345. package/dist/vue/CarouselRoot.d.ts +1 -0
  346. package/dist/vue/CarouselRoot.js +1 -0
  347. package/dist/vue/DialogRoot.cjs +6 -0
  348. package/dist/vue/DialogRoot.d.ts +1 -0
  349. package/dist/vue/DialogRoot.js +1 -0
  350. package/dist/vue/FieldBase.cjs +6 -0
  351. package/dist/vue/FieldBase.d.ts +1 -0
  352. package/dist/vue/FieldBase.js +1 -0
  353. package/dist/vue/FieldCheckbox.cjs +6 -0
  354. package/dist/vue/FieldCheckbox.d.ts +1 -0
  355. package/dist/vue/FieldCheckbox.js +1 -0
  356. package/dist/vue/FieldError.cjs +6 -0
  357. package/dist/vue/FieldError.d.ts +1 -0
  358. package/dist/vue/FieldError.js +1 -0
  359. package/dist/vue/FieldInput.cjs +6 -0
  360. package/dist/vue/FieldInput.d.ts +1 -0
  361. package/dist/vue/FieldInput.js +1 -0
  362. package/dist/vue/FieldLabel.cjs +6 -0
  363. package/dist/vue/FieldLabel.d.ts +1 -0
  364. package/dist/vue/FieldLabel.js +1 -0
  365. package/dist/vue/FieldMessage.cjs +6 -0
  366. package/dist/vue/FieldMessage.d.ts +1 -0
  367. package/dist/vue/FieldMessage.js +1 -0
  368. package/dist/vue/FieldRadioGroup.cjs +6 -0
  369. package/dist/vue/FieldRadioGroup.d.ts +1 -0
  370. package/dist/vue/FieldRadioGroup.js +1 -0
  371. package/dist/vue/FieldRequired.cjs +6 -0
  372. package/dist/vue/FieldRequired.d.ts +1 -0
  373. package/dist/vue/FieldRequired.js +1 -0
  374. package/dist/vue/FieldSelect.cjs +6 -0
  375. package/dist/vue/FieldSelect.d.ts +1 -0
  376. package/dist/vue/FieldSelect.js +1 -0
  377. package/dist/vue/FieldSwitch.cjs +6 -0
  378. package/dist/vue/FieldSwitch.d.ts +1 -0
  379. package/dist/vue/FieldSwitch.js +1 -0
  380. package/dist/vue/FieldTextarea.cjs +6 -0
  381. package/dist/vue/FieldTextarea.d.ts +1 -0
  382. package/dist/vue/FieldTextarea.js +1 -0
  383. package/dist/vue/FieldUrl.cjs +6 -0
  384. package/dist/vue/FieldUrl.d.ts +1 -0
  385. package/dist/vue/FieldUrl.js +1 -0
  386. package/dist/vue/FlyoutDropdown.cjs +6 -0
  387. package/dist/vue/FlyoutDropdown.d.ts +1 -0
  388. package/dist/vue/FlyoutDropdown.js +1 -0
  389. package/dist/vue/FlyoutRoot.cjs +6 -0
  390. package/dist/vue/FlyoutRoot.d.ts +1 -0
  391. package/dist/vue/FlyoutRoot.js +1 -0
  392. package/dist/vue/FormPrompt.cjs +6 -0
  393. package/dist/vue/FormPrompt.d.ts +1 -0
  394. package/dist/vue/FormPrompt.js +1 -0
  395. package/dist/vue/FormPromptFooter.cjs +6 -0
  396. package/dist/vue/FormPromptFooter.d.ts +1 -0
  397. package/dist/vue/FormPromptFooter.js +1 -0
  398. package/dist/vue/HeroLead.cjs +6 -0
  399. package/dist/vue/HeroLead.d.ts +1 -0
  400. package/dist/vue/HeroLead.js +1 -0
  401. package/dist/vue/ListItem.cjs +6 -0
  402. package/dist/vue/ListItem.d.ts +1 -0
  403. package/dist/vue/ListItem.js +1 -0
  404. package/dist/vue/ListRoot.cjs +6 -0
  405. package/dist/vue/ListRoot.d.ts +1 -0
  406. package/dist/vue/ListRoot.js +1 -0
  407. package/dist/vue/Loader.cjs +6 -0
  408. package/dist/vue/Loader.d.ts +1 -0
  409. package/dist/vue/Loader.js +1 -0
  410. package/dist/vue/PricingCardBadge.cjs +6 -0
  411. package/dist/vue/PricingCardBadge.d.ts +1 -0
  412. package/dist/vue/PricingCardBadge.js +1 -0
  413. package/dist/vue/PricingCardBody.cjs +6 -0
  414. package/dist/vue/PricingCardBody.d.ts +1 -0
  415. package/dist/vue/PricingCardBody.js +1 -0
  416. package/dist/vue/PricingCardHeader.cjs +6 -0
  417. package/dist/vue/PricingCardHeader.d.ts +1 -0
  418. package/dist/vue/PricingCardHeader.js +1 -0
  419. package/dist/vue/PricingCardPricing.cjs +6 -0
  420. package/dist/vue/PricingCardPricing.d.ts +1 -0
  421. package/dist/vue/PricingCardPricing.js +1 -0
  422. package/dist/vue/PricingCardRoot.cjs +6 -0
  423. package/dist/vue/PricingCardRoot.d.ts +1 -0
  424. package/dist/vue/PricingCardRoot.js +1 -0
  425. package/dist/vue/ProgressRoot.cjs +6 -0
  426. package/dist/vue/ProgressRoot.d.ts +1 -0
  427. package/dist/vue/ProgressRoot.js +1 -0
  428. package/dist/vue/SwitchRoot.cjs +6 -0
  429. package/dist/vue/SwitchRoot.d.ts +1 -0
  430. package/dist/vue/SwitchRoot.js +1 -0
  431. package/dist/vue/TabItem.cjs +6 -0
  432. package/dist/vue/TabItem.d.ts +1 -0
  433. package/dist/vue/TabItem.js +1 -0
  434. package/dist/vue/TabRoot.cjs +6 -0
  435. package/dist/vue/TabRoot.d.ts +1 -0
  436. package/dist/vue/TabRoot.js +1 -0
  437. package/dist/vue/useCarousel.cjs +3 -0
  438. package/dist/vue/useCarousel.d.ts +1 -0
  439. package/dist/vue/useCarousel.js +1 -0
  440. package/dist/vue/useFlyout.cjs +3 -0
  441. package/dist/vue/useFlyout.d.ts +1 -0
  442. package/dist/vue/useFlyout.js +1 -0
  443. package/dist/vue/useFormData.cjs +3 -0
  444. package/dist/vue/useFormData.d.ts +1 -0
  445. package/dist/vue/useFormData.js +1 -0
  446. package/dist/vue-components.d.ts +17 -0
  447. package/package.json +172 -4
@@ -0,0 +1,132 @@
1
+ import { t as withCss } from "./css-DWYlz0rn.js";
2
+ import { computed, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString } from "vue";
3
+ import { cva } from "@webflare/ui/css";
4
+ // src/components/Badge/styles.ts
5
+ var badgeStyles = cva({
6
+ base: {
7
+ display: "inline-flex",
8
+ alignItems: "center",
9
+ justifyContent: "center",
10
+ fontWeight: "600",
11
+ lineHeight: "1.2",
12
+ borderRadius: "pill",
13
+ userSelect: "none",
14
+ borderWidth: "1px",
15
+ borderStyle: "solid",
16
+ borderColor: "transparent",
17
+ transition: "all 300ms"
18
+ },
19
+ variants: {
20
+ color: {
21
+ default: {
22
+ backgroundColor: "neutral.subtle",
23
+ color: "neutral",
24
+ borderColor: "border"
25
+ },
26
+ primary: {
27
+ backgroundColor: "primary",
28
+ color: "grey.800",
29
+ borderColor: "primary"
30
+ },
31
+ success: {
32
+ backgroundColor: "success.subtle",
33
+ color: {
34
+ base: "success.text",
35
+ _dark: "white",
36
+ _osDark: "white"
37
+ },
38
+ borderColor: "success.subtle.light"
39
+ },
40
+ info: {
41
+ backgroundColor: "info.subtle",
42
+ color: {
43
+ base: "info.text",
44
+ _dark: "white",
45
+ _osDark: "white"
46
+ },
47
+ borderColor: "info.subtle.light"
48
+ },
49
+ danger: {
50
+ backgroundColor: "danger.subtle",
51
+ color: {
52
+ base: "danger.text",
53
+ _dark: "white",
54
+ _osDark: "white"
55
+ },
56
+ borderColor: "danger.subtle.light"
57
+ }
58
+ },
59
+ size: {
60
+ sm: {
61
+ fontSize: {
62
+ base: "xs",
63
+ lg: "sm"
64
+ },
65
+ gap: { base: "xs" },
66
+ paddingBlock: { base: "2xs" },
67
+ paddingInline: { base: "sm" }
68
+ },
69
+ md: {
70
+ fontSize: {
71
+ base: "sm",
72
+ lg: "md"
73
+ },
74
+ gap: {
75
+ base: "xs",
76
+ lg: "sm"
77
+ },
78
+ paddingBlock: {
79
+ base: "xs",
80
+ lg: "sm"
81
+ },
82
+ paddingInline: {
83
+ base: "md",
84
+ lg: "lg"
85
+ }
86
+ },
87
+ lg: {
88
+ fontSize: {
89
+ base: "md",
90
+ lg: "lg"
91
+ },
92
+ gap: {
93
+ base: "sm",
94
+ lg: "md"
95
+ },
96
+ paddingBlock: {
97
+ base: "sm",
98
+ lg: "md"
99
+ },
100
+ paddingInline: {
101
+ base: "lg",
102
+ lg: "xl"
103
+ }
104
+ }
105
+ }
106
+ },
107
+ defaultVariants: {
108
+ color: "default",
109
+ size: "md"
110
+ }
111
+ });
112
+ // src/components/Badge/BadgeRoot.vue
113
+ var BadgeRoot_default = /* @__PURE__ */ defineComponent({
114
+ __name: "BadgeRoot",
115
+ props: {
116
+ label: {},
117
+ color: { default: "default" },
118
+ size: { default: "md" },
119
+ css: {}
120
+ },
121
+ setup(__props) {
122
+ const props = __props;
123
+ const badgeClass = computed(() => withCss(badgeStyles.raw({
124
+ color: props.color ?? "default",
125
+ size: props.size
126
+ }), props.css?.root));
127
+ return (_ctx, _cache) => {
128
+ return openBlock(), createElementBlock("span", { class: normalizeClass(badgeClass.value) }, [renderSlot(_ctx.$slots, "icon"), renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 2);
129
+ };
130
+ }
131
+ });
132
+ export { BadgeRoot_default as t };
@@ -0,0 +1,240 @@
1
+ import { t as withCss } from "./css-DWYlz0rn.js";
2
+ import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, normalizeClass, openBlock, resolveDynamicComponent, withCtx } from "vue";
3
+ import { cva } from "@webflare/ui/css";
4
+ // src/components/Button/styles.ts
5
+ var buttonStyles = cva({
6
+ base: {
7
+ display: "inline flex",
8
+ alignItems: "center",
9
+ justifyContent: "center",
10
+ fontWeight: "600",
11
+ fontFamily: "inherit",
12
+ lineHeight: "1.5",
13
+ borderRadius: "lg",
14
+ borderStyle: "solid",
15
+ borderWidth: "1px",
16
+ userSelect: "none",
17
+ transition: "all 300ms",
18
+ cursor: "pointer",
19
+ _disabled: {
20
+ pointerEvents: "none",
21
+ opacity: "0.5"
22
+ }
23
+ },
24
+ variants: {
25
+ color: {
26
+ primary: {
27
+ backgroundColor: "primary",
28
+ color: "grey.800",
29
+ borderColor: "primary",
30
+ _hover: {
31
+ backgroundColor: "brand.500",
32
+ borderColor: "brand.500"
33
+ },
34
+ _active: {
35
+ backgroundColor: "brand.600",
36
+ borderColor: "brand.600"
37
+ }
38
+ },
39
+ secondary: {
40
+ "bg": {
41
+ base: "primary-pale",
42
+ _dark: "grey.800",
43
+ _osDark: "grey.800"
44
+ },
45
+ "borderColor": {
46
+ base: "primary-pale",
47
+ _dark: "grey.600",
48
+ _osDark: "grey.600"
49
+ },
50
+ "color": {
51
+ base: "grey.800",
52
+ _dark: "neutral",
53
+ _osDark: "neutral"
54
+ },
55
+ "& .btn-icon": { color: {
56
+ base: "grey.800",
57
+ _dark: "primary",
58
+ _osDark: "primary"
59
+ } },
60
+ "_hover": { backgroundColor: {
61
+ base: "brand.100",
62
+ _dark: "grey.700",
63
+ _osDark: "grey.700"
64
+ } },
65
+ "_active": {
66
+ backgroundColor: {
67
+ base: "brand.200",
68
+ _dark: "grey.950",
69
+ _osDark: "grey.950"
70
+ },
71
+ borderColor: {
72
+ base: "brand.200",
73
+ _dark: "grey.600",
74
+ _osDark: "grey.600"
75
+ }
76
+ }
77
+ },
78
+ transparent: {
79
+ "backgroundColor": "transparent",
80
+ "borderColor": "transparent",
81
+ "color": "neutral",
82
+ "& .btn-icon": { color: "primary" },
83
+ "& .btn-label": {
84
+ textDecoration: "underline",
85
+ textDecorationColor: {
86
+ base: "black/50",
87
+ _dark: "white/50",
88
+ _osDark: "white/50"
89
+ },
90
+ textDecorationThickness: "1px",
91
+ textUnderlineOffset: "25%"
92
+ },
93
+ "_hover": { backgroundColor: {
94
+ base: "primary-pale",
95
+ _dark: "grey.800",
96
+ _osDark: "grey.800"
97
+ } },
98
+ "_active": { backgroundColor: {
99
+ base: "brand.100",
100
+ _dark: "black",
101
+ _osDark: "black"
102
+ } }
103
+ }
104
+ },
105
+ size: {
106
+ sm: {
107
+ fontSize: "sm",
108
+ gap: "sm",
109
+ paddingBlock: "xs",
110
+ paddingInline: "lg"
111
+ },
112
+ md: {
113
+ "fontSize": "md",
114
+ "gap": "sm",
115
+ "paddingBlock": "sm",
116
+ "paddingInline": "lg",
117
+ "& .btn-icon": { fontSize: "lg" }
118
+ },
119
+ lg: {
120
+ fontSize: "lg",
121
+ gap: "md",
122
+ paddingBlock: "md",
123
+ paddingInline: "xl"
124
+ }
125
+ },
126
+ fullWidth: {
127
+ true: {
128
+ width: "100%",
129
+ boxSizing: "border-box"
130
+ },
131
+ false: {}
132
+ },
133
+ order: {
134
+ regular: {
135
+ "& .btn-icon": { order: "1" },
136
+ "& .btn-label": { order: "2" }
137
+ },
138
+ inverse: {
139
+ "& .btn-icon": { order: "2" },
140
+ "& .btn-label": { order: "1" }
141
+ }
142
+ }
143
+ },
144
+ defaultVariants: {
145
+ color: "secondary",
146
+ size: "md",
147
+ order: "regular",
148
+ fullWidth: false
149
+ }
150
+ });
151
+ // src/components/Button/Button.vue?vue&type=script&setup=true&lang.ts
152
+ var _hoisted_1 = ["innerHTML"];
153
+ // src/components/Button/Button.vue
154
+ var Button_default = /* @__PURE__ */ defineComponent({
155
+ name: "WfButton",
156
+ __name: "Button",
157
+ props: {
158
+ label: { default: null },
159
+ icon: { default: null },
160
+ to: { default: null },
161
+ type: { default: null },
162
+ color: { default: "secondary" },
163
+ size: { default: "md" },
164
+ fullWidth: { type: Boolean },
165
+ order: { default: "regular" },
166
+ external: { type: Boolean },
167
+ disabled: { type: Boolean },
168
+ css: {}
169
+ },
170
+ setup(__props) {
171
+ /**
172
+ * @component Button
173
+ * @description Renders a `<button>`, or an `<a>` when `to` is set.
174
+ *
175
+ * @prop {string|null} label - Button text, rendered as HTML. Sanitize untrusted strings before passing them.
176
+ * @prop {string|null} [icon] - Icon name, rendered as `icon icon-<name>`.
177
+ * @prop {string|null} [to] - Renders an anchor with this `href`.
178
+ * @prop {'button'|'submit'|'reset'|null} [type] - Button type. Defaults to `button`. Ignored for links.
179
+ * @prop {'secondary'|'primary'|'transparent'} [color='secondary'] - Color scheme.
180
+ * @prop {'sm'|'md'|'lg'} [size='md'] - Size.
181
+ * @prop {'regular'|'inverse'} [order='regular'] - Icon before or after the label.
182
+ * @prop {boolean} [fullWidth=false] - Stretch to the container width.
183
+ * @prop {boolean} [external=false] - For links: open in a new tab with `rel="noopener noreferrer"`.
184
+ * @prop {boolean} [disabled=false] - Disable the button. A disabled link loses its `href` and gets `aria-disabled`.
185
+ * @prop {ButtonCss} [css] - Style overrides (`root`). Wrap values in `css.raw()`.
186
+ *
187
+ * @example
188
+ * <Button label="Click me" />
189
+ * <Button label="Visit Site" to="https://example.com" external />
190
+ * <Button color="primary" size="lg" label="Large Primary Button" />
191
+ */
192
+ const props = __props;
193
+ const isLink = computed(() => Boolean(props.to));
194
+ /** `title` is an attribute, so an HTML label is reduced to its text. */
195
+ const title = computed(() => props.label ? props.label.replace(/<[^>]*>/g, "").trim() : void 0);
196
+ const attrs = computed(() => {
197
+ if (!isLink.value) return {
198
+ type: props.type ?? "button",
199
+ disabled: props.disabled || void 0
200
+ };
201
+ if (props.disabled) return {
202
+ "role": "link",
203
+ "aria-disabled": "true"
204
+ };
205
+ return {
206
+ href: props.to,
207
+ target: props.external ? "_blank" : void 0,
208
+ rel: props.external ? "noopener noreferrer" : void 0
209
+ };
210
+ });
211
+ const buttonClass = computed(() => withCss(buttonStyles.raw({
212
+ color: props.color,
213
+ size: props.size,
214
+ order: props.order,
215
+ fullWidth: props.fullWidth
216
+ }), props.css?.root));
217
+ return (_ctx, _cache) => {
218
+ return openBlock(), createBlock(resolveDynamicComponent(isLink.value ? "a" : "button"), mergeProps({
219
+ class: ["btn", buttonClass.value],
220
+ title: title.value
221
+ }, attrs.value), {
222
+ default: withCtx(() => [props.icon ? (openBlock(), createElementBlock("span", {
223
+ key: 0,
224
+ class: normalizeClass([
225
+ "btn-icon",
226
+ "icon",
227
+ `icon-${props.icon}`
228
+ ]),
229
+ "aria-hidden": "true"
230
+ }, null, 2)) : createCommentVNode("", true), props.label ? (openBlock(), createElementBlock("span", {
231
+ key: 1,
232
+ class: "btn-label",
233
+ innerHTML: props.label
234
+ }, null, 8, _hoisted_1)) : createCommentVNode("", true)]),
235
+ _: 1
236
+ }, 16, ["class", "title"]);
237
+ };
238
+ }
239
+ });
240
+ export { Button_default as t };
@@ -0,0 +1,244 @@
1
+ const require_css = require("./css-BRRSQx3P.cjs");
2
+ let vue = require("vue");
3
+ // src/components/Button/styles.ts
4
+ var buttonStyles = (0, require("@webflare/ui/css").cva)({
5
+ base: {
6
+ display: "inline flex",
7
+ alignItems: "center",
8
+ justifyContent: "center",
9
+ fontWeight: "600",
10
+ fontFamily: "inherit",
11
+ lineHeight: "1.5",
12
+ borderRadius: "lg",
13
+ borderStyle: "solid",
14
+ borderWidth: "1px",
15
+ userSelect: "none",
16
+ transition: "all 300ms",
17
+ cursor: "pointer",
18
+ _disabled: {
19
+ pointerEvents: "none",
20
+ opacity: "0.5"
21
+ }
22
+ },
23
+ variants: {
24
+ color: {
25
+ primary: {
26
+ backgroundColor: "primary",
27
+ color: "grey.800",
28
+ borderColor: "primary",
29
+ _hover: {
30
+ backgroundColor: "brand.500",
31
+ borderColor: "brand.500"
32
+ },
33
+ _active: {
34
+ backgroundColor: "brand.600",
35
+ borderColor: "brand.600"
36
+ }
37
+ },
38
+ secondary: {
39
+ "bg": {
40
+ base: "primary-pale",
41
+ _dark: "grey.800",
42
+ _osDark: "grey.800"
43
+ },
44
+ "borderColor": {
45
+ base: "primary-pale",
46
+ _dark: "grey.600",
47
+ _osDark: "grey.600"
48
+ },
49
+ "color": {
50
+ base: "grey.800",
51
+ _dark: "neutral",
52
+ _osDark: "neutral"
53
+ },
54
+ "& .btn-icon": { color: {
55
+ base: "grey.800",
56
+ _dark: "primary",
57
+ _osDark: "primary"
58
+ } },
59
+ "_hover": { backgroundColor: {
60
+ base: "brand.100",
61
+ _dark: "grey.700",
62
+ _osDark: "grey.700"
63
+ } },
64
+ "_active": {
65
+ backgroundColor: {
66
+ base: "brand.200",
67
+ _dark: "grey.950",
68
+ _osDark: "grey.950"
69
+ },
70
+ borderColor: {
71
+ base: "brand.200",
72
+ _dark: "grey.600",
73
+ _osDark: "grey.600"
74
+ }
75
+ }
76
+ },
77
+ transparent: {
78
+ "backgroundColor": "transparent",
79
+ "borderColor": "transparent",
80
+ "color": "neutral",
81
+ "& .btn-icon": { color: "primary" },
82
+ "& .btn-label": {
83
+ textDecoration: "underline",
84
+ textDecorationColor: {
85
+ base: "black/50",
86
+ _dark: "white/50",
87
+ _osDark: "white/50"
88
+ },
89
+ textDecorationThickness: "1px",
90
+ textUnderlineOffset: "25%"
91
+ },
92
+ "_hover": { backgroundColor: {
93
+ base: "primary-pale",
94
+ _dark: "grey.800",
95
+ _osDark: "grey.800"
96
+ } },
97
+ "_active": { backgroundColor: {
98
+ base: "brand.100",
99
+ _dark: "black",
100
+ _osDark: "black"
101
+ } }
102
+ }
103
+ },
104
+ size: {
105
+ sm: {
106
+ fontSize: "sm",
107
+ gap: "sm",
108
+ paddingBlock: "xs",
109
+ paddingInline: "lg"
110
+ },
111
+ md: {
112
+ "fontSize": "md",
113
+ "gap": "sm",
114
+ "paddingBlock": "sm",
115
+ "paddingInline": "lg",
116
+ "& .btn-icon": { fontSize: "lg" }
117
+ },
118
+ lg: {
119
+ fontSize: "lg",
120
+ gap: "md",
121
+ paddingBlock: "md",
122
+ paddingInline: "xl"
123
+ }
124
+ },
125
+ fullWidth: {
126
+ true: {
127
+ width: "100%",
128
+ boxSizing: "border-box"
129
+ },
130
+ false: {}
131
+ },
132
+ order: {
133
+ regular: {
134
+ "& .btn-icon": { order: "1" },
135
+ "& .btn-label": { order: "2" }
136
+ },
137
+ inverse: {
138
+ "& .btn-icon": { order: "2" },
139
+ "& .btn-label": { order: "1" }
140
+ }
141
+ }
142
+ },
143
+ defaultVariants: {
144
+ color: "secondary",
145
+ size: "md",
146
+ order: "regular",
147
+ fullWidth: false
148
+ }
149
+ });
150
+ // src/components/Button/Button.vue?vue&type=script&setup=true&lang.ts
151
+ var _hoisted_1 = ["innerHTML"];
152
+ // src/components/Button/Button.vue
153
+ var Button_default = /* @__PURE__ */ (0, vue.defineComponent)({
154
+ name: "WfButton",
155
+ __name: "Button",
156
+ props: {
157
+ label: { default: null },
158
+ icon: { default: null },
159
+ to: { default: null },
160
+ type: { default: null },
161
+ color: { default: "secondary" },
162
+ size: { default: "md" },
163
+ fullWidth: { type: Boolean },
164
+ order: { default: "regular" },
165
+ external: { type: Boolean },
166
+ disabled: { type: Boolean },
167
+ css: {}
168
+ },
169
+ setup(__props) {
170
+ /**
171
+ * @component Button
172
+ * @description Renders a `<button>`, or an `<a>` when `to` is set.
173
+ *
174
+ * @prop {string|null} label - Button text, rendered as HTML. Sanitize untrusted strings before passing them.
175
+ * @prop {string|null} [icon] - Icon name, rendered as `icon icon-<name>`.
176
+ * @prop {string|null} [to] - Renders an anchor with this `href`.
177
+ * @prop {'button'|'submit'|'reset'|null} [type] - Button type. Defaults to `button`. Ignored for links.
178
+ * @prop {'secondary'|'primary'|'transparent'} [color='secondary'] - Color scheme.
179
+ * @prop {'sm'|'md'|'lg'} [size='md'] - Size.
180
+ * @prop {'regular'|'inverse'} [order='regular'] - Icon before or after the label.
181
+ * @prop {boolean} [fullWidth=false] - Stretch to the container width.
182
+ * @prop {boolean} [external=false] - For links: open in a new tab with `rel="noopener noreferrer"`.
183
+ * @prop {boolean} [disabled=false] - Disable the button. A disabled link loses its `href` and gets `aria-disabled`.
184
+ * @prop {ButtonCss} [css] - Style overrides (`root`). Wrap values in `css.raw()`.
185
+ *
186
+ * @example
187
+ * <Button label="Click me" />
188
+ * <Button label="Visit Site" to="https://example.com" external />
189
+ * <Button color="primary" size="lg" label="Large Primary Button" />
190
+ */
191
+ const props = __props;
192
+ const isLink = (0, vue.computed)(() => Boolean(props.to));
193
+ /** `title` is an attribute, so an HTML label is reduced to its text. */
194
+ const title = (0, vue.computed)(() => props.label ? props.label.replace(/<[^>]*>/g, "").trim() : void 0);
195
+ const attrs = (0, vue.computed)(() => {
196
+ if (!isLink.value) return {
197
+ type: props.type ?? "button",
198
+ disabled: props.disabled || void 0
199
+ };
200
+ if (props.disabled) return {
201
+ "role": "link",
202
+ "aria-disabled": "true"
203
+ };
204
+ return {
205
+ href: props.to,
206
+ target: props.external ? "_blank" : void 0,
207
+ rel: props.external ? "noopener noreferrer" : void 0
208
+ };
209
+ });
210
+ const buttonClass = (0, vue.computed)(() => require_css.withCss(buttonStyles.raw({
211
+ color: props.color,
212
+ size: props.size,
213
+ order: props.order,
214
+ fullWidth: props.fullWidth
215
+ }), props.css?.root));
216
+ return (_ctx, _cache) => {
217
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(isLink.value ? "a" : "button"), (0, vue.mergeProps)({
218
+ class: ["btn", buttonClass.value],
219
+ title: title.value
220
+ }, attrs.value), {
221
+ default: (0, vue.withCtx)(() => [props.icon ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
222
+ key: 0,
223
+ class: (0, vue.normalizeClass)([
224
+ "btn-icon",
225
+ "icon",
226
+ `icon-${props.icon}`
227
+ ]),
228
+ "aria-hidden": "true"
229
+ }, null, 2)) : (0, vue.createCommentVNode)("", true), props.label ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
230
+ key: 1,
231
+ class: "btn-label",
232
+ innerHTML: props.label
233
+ }, null, 8, _hoisted_1)) : (0, vue.createCommentVNode)("", true)]),
234
+ _: 1
235
+ }, 16, ["class", "title"]);
236
+ };
237
+ }
238
+ });
239
+ Object.defineProperty(exports, "Button_default", {
240
+ enumerable: true,
241
+ get: function() {
242
+ return Button_default;
243
+ }
244
+ });
@@ -0,0 +1,21 @@
1
+ const require_types = require("./types-cLDeFros.cjs");
2
+ const require_css = require("./css-BRRSQx3P.cjs");
3
+ let vue = require("vue");
4
+ // src/components/Card/CardBody.vue
5
+ var CardBody_default = /* @__PURE__ */ (0, vue.defineComponent)({
6
+ __name: "CardBody",
7
+ props: { css: {} },
8
+ setup(__props) {
9
+ const props = __props;
10
+ const styles = (0, vue.inject)(require_types.CardStylesKey, (0, vue.computed)(() => require_types.cardStyles.raw()));
11
+ return (_ctx, _cache) => {
12
+ return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", { class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).body, props.css?.root)) }, [(0, vue.renderSlot)(_ctx.$slots, "default")], 2);
13
+ };
14
+ }
15
+ });
16
+ Object.defineProperty(exports, "CardBody_default", {
17
+ enumerable: true,
18
+ get: function() {
19
+ return CardBody_default;
20
+ }
21
+ });
@@ -0,0 +1,16 @@
1
+ import { r as cardStyles, t as CardStylesKey } from "./types-CBApDh_h.js";
2
+ import { t as withCss } from "./css-DWYlz0rn.js";
3
+ import { computed, createElementBlock, defineComponent, inject, normalizeClass, openBlock, renderSlot, unref } from "vue";
4
+ // src/components/Card/CardBody.vue
5
+ var CardBody_default = /* @__PURE__ */ defineComponent({
6
+ __name: "CardBody",
7
+ props: { css: {} },
8
+ setup(__props) {
9
+ const props = __props;
10
+ const styles = inject(CardStylesKey, computed(() => cardStyles.raw()));
11
+ return (_ctx, _cache) => {
12
+ return openBlock(), createElementBlock("div", { class: normalizeClass(unref(withCss)(unref(styles).body, props.css?.root)) }, [renderSlot(_ctx.$slots, "default")], 2);
13
+ };
14
+ }
15
+ });
16
+ export { CardBody_default as t };
@@ -0,0 +1,36 @@
1
+ const require_types = require("./types-cLDeFros.cjs");
2
+ const require_css = require("./css-BRRSQx3P.cjs");
3
+ let vue = require("vue");
4
+ // src/components/Card/CardHeader.vue?vue&type=script&setup=true&lang.ts
5
+ var _hoisted_1 = ["innerHTML"];
6
+ var _hoisted_2 = ["innerHTML"];
7
+ // src/components/Card/CardHeader.vue
8
+ var CardHeader_default = /* @__PURE__ */ (0, vue.defineComponent)({
9
+ __name: "CardHeader",
10
+ props: {
11
+ title: {},
12
+ subtitle: {},
13
+ css: {}
14
+ },
15
+ setup(__props) {
16
+ const props = __props;
17
+ const styles = (0, vue.inject)(require_types.CardStylesKey, (0, vue.computed)(() => require_types.cardStyles.raw()));
18
+ return (_ctx, _cache) => {
19
+ return (0, vue.openBlock)(), (0, vue.createElementBlock)("header", { class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).header, props.css?.root)) }, [(0, vue.renderSlot)(_ctx.$slots, "icon"), (0, vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).headerBody, props.css?.body)) }, [(0, vue.renderSlot)(_ctx.$slots, "title", {}, () => [__props.title ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
20
+ key: 0,
21
+ class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).headerTitle, props.css?.title)),
22
+ innerHTML: __props.title
23
+ }, null, 10, _hoisted_1)) : (0, vue.createCommentVNode)("", true)]), (0, vue.renderSlot)(_ctx.$slots, "subtitle", {}, () => [__props.subtitle ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
24
+ key: 0,
25
+ class: (0, vue.normalizeClass)((0, vue.unref)(require_css.withCss)((0, vue.unref)(styles).headerSubtitle, props.css?.subtitle)),
26
+ innerHTML: __props.subtitle
27
+ }, null, 10, _hoisted_2)) : (0, vue.createCommentVNode)("", true)])], 2)])], 2);
28
+ };
29
+ }
30
+ });
31
+ Object.defineProperty(exports, "CardHeader_default", {
32
+ enumerable: true,
33
+ get: function() {
34
+ return CardHeader_default;
35
+ }
36
+ });