@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,30 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const bleedConfig = {
6
+ transform(props, { map, isCssUnit, isCssVar }) {
7
+ const { inline, block, ...rest } = props;
8
+ const valueFn = (v) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
9
+ return {
10
+ "--bleed-x": map(inline, valueFn),
11
+ "--bleed-y": map(block, valueFn),
12
+ marginInline: "calc(var(--bleed-x, 0) * -1)",
13
+ marginBlock: "calc(var(--bleed-y, 0) * -1)",
14
+ ...rest
15
+ };
16
+ },
17
+ defaultValues: {
18
+ inline: "0",
19
+ block: "0"
20
+ }
21
+ }
22
+
23
+ export function bleedRaw(styles) {
24
+ const s = getPatternStyles(bleedConfig, styles || {})
25
+ return bleedConfig.transform(s, patternFns)
26
+ }
27
+
28
+ export const bleed = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function bleed(styles = {}) {
29
+ return css(bleedRaw(styles))
30
+ }), { raw: bleedRaw, propKeys: ["block","inline"] })
@@ -0,0 +1,17 @@
1
+ import type { SystemStyleObject } from '../types/system.js';
2
+
3
+ export interface BoxProperties {}
4
+
5
+ type BoxRestStyles = Omit<SystemStyleObject, keyof BoxProperties>
6
+
7
+ interface BoxStyles extends BoxProperties, BoxRestStyles {}
8
+
9
+ interface BoxPatternFn {
10
+ (styles?: BoxStyles): string
11
+ raw: (styles?: BoxStyles) => SystemStyleObject
12
+ propKeys: Array<keyof BoxProperties>
13
+ }
14
+
15
+ export declare function boxRaw(styles?: BoxStyles): SystemStyleObject;
16
+
17
+ export declare const box: BoxPatternFn;
@@ -0,0 +1,16 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const boxConfig = { transform(props) {
6
+ return props;
7
+ } }
8
+
9
+ export function boxRaw(styles) {
10
+ const s = getPatternStyles(boxConfig, styles || {})
11
+ return boxConfig.transform(s, patternFns)
12
+ }
13
+
14
+ export const box = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function box(styles = {}) {
15
+ return css(boxRaw(styles))
16
+ }), { raw: boxRaw, propKeys: [] })
@@ -0,0 +1,19 @@
1
+ import type { ConditionalValue, SystemStyleObject } from '../types/system.js';
2
+
3
+ export interface CenterProperties {
4
+ inline?: ConditionalValue<boolean>
5
+ }
6
+
7
+ type CenterRestStyles = Omit<SystemStyleObject, keyof CenterProperties>
8
+
9
+ interface CenterStyles extends CenterProperties, CenterRestStyles {}
10
+
11
+ interface CenterPatternFn {
12
+ (styles?: CenterStyles): string
13
+ raw: (styles?: CenterStyles) => SystemStyleObject
14
+ propKeys: Array<keyof CenterProperties>
15
+ }
16
+
17
+ export declare function centerRaw(styles?: CenterStyles): SystemStyleObject;
18
+
19
+ export declare const center: CenterPatternFn;
@@ -0,0 +1,22 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const centerConfig = { transform(props) {
6
+ const { inline, ...rest } = props;
7
+ return {
8
+ display: inline ? "inline-flex" : "flex",
9
+ alignItems: "center",
10
+ justifyContent: "center",
11
+ ...rest
12
+ };
13
+ } }
14
+
15
+ export function centerRaw(styles) {
16
+ const s = getPatternStyles(centerConfig, styles || {})
17
+ return centerConfig.transform(s, patternFns)
18
+ }
19
+
20
+ export const center = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function center(styles = {}) {
21
+ return css(centerRaw(styles))
22
+ }), { raw: centerRaw, propKeys: ["inline"] })
@@ -0,0 +1,19 @@
1
+ import type { SystemProperties, SystemStyleObject } from '../types/system.js';
2
+
3
+ export interface CircleProperties {
4
+ size?: SystemProperties["width"]
5
+ }
6
+
7
+ type CircleRestStyles = Omit<SystemStyleObject, keyof CircleProperties>
8
+
9
+ interface CircleStyles extends CircleProperties, CircleRestStyles {}
10
+
11
+ interface CirclePatternFn {
12
+ (styles?: CircleStyles): string
13
+ raw: (styles?: CircleStyles) => SystemStyleObject
14
+ propKeys: Array<keyof CircleProperties>
15
+ }
16
+
17
+ export declare function circleRaw(styles?: CircleStyles): SystemStyleObject;
18
+
19
+ export declare const circle: CirclePatternFn;
@@ -0,0 +1,26 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const circleConfig = { transform(props) {
6
+ const { size, ...rest } = props;
7
+ return {
8
+ display: "flex",
9
+ alignItems: "center",
10
+ justifyContent: "center",
11
+ flex: "0 0 auto",
12
+ width: size,
13
+ height: size,
14
+ borderRadius: "9999px",
15
+ ...rest
16
+ };
17
+ } }
18
+
19
+ export function circleRaw(styles) {
20
+ const s = getPatternStyles(circleConfig, styles || {})
21
+ return circleConfig.transform(s, patternFns)
22
+ }
23
+
24
+ export const circle = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function circle(styles = {}) {
25
+ return css(circleRaw(styles))
26
+ }), { raw: circleRaw, propKeys: ["size"] })
@@ -0,0 +1,17 @@
1
+ import type { SystemStyleObject } from '../types/system.js';
2
+
3
+ export interface ContainerProperties {}
4
+
5
+ type ContainerRestStyles = Omit<SystemStyleObject, keyof ContainerProperties>
6
+
7
+ interface ContainerStyles extends ContainerProperties, ContainerRestStyles {}
8
+
9
+ interface ContainerPatternFn {
10
+ (styles?: ContainerStyles): string
11
+ raw: (styles?: ContainerStyles) => SystemStyleObject
12
+ propKeys: Array<keyof ContainerProperties>
13
+ }
14
+
15
+ export declare function containerRaw(styles?: ContainerStyles): SystemStyleObject;
16
+
17
+ export declare const container: ContainerPatternFn;
@@ -0,0 +1,37 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const containerConfig = { transform({ maxWidth, px }) {
6
+ return {
7
+ position: "relative",
8
+ maxWidth: {
9
+ "base": "360px",
10
+ "3xs": "360px",
11
+ "2xs": "400px",
12
+ "xs": "500px",
13
+ "sm": "620px",
14
+ "md": "740px",
15
+ "lg": "1000px",
16
+ "xl": "1200px",
17
+ "2xl": "1400px",
18
+ "3xl": "1600px",
19
+ ...maxWidth
20
+ },
21
+ mx: "auto",
22
+ px: {
23
+ base: "lg",
24
+ ...px
25
+ },
26
+ transition: "max-width 200ms"
27
+ };
28
+ } }
29
+
30
+ export function containerRaw(styles) {
31
+ const s = getPatternStyles(containerConfig, styles || {})
32
+ return containerConfig.transform(s, patternFns)
33
+ }
34
+
35
+ export const container = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function container(styles = {}) {
36
+ return css(containerRaw(styles))
37
+ }), { raw: containerRaw, propKeys: [] })
@@ -0,0 +1,21 @@
1
+ import type { TokenValue } from '../types/tokens.js';
2
+ import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system.js';
3
+
4
+ export interface CqProperties {
5
+ name?: ConditionalValue<TokenValue<"containerNames"> | SystemProperties["containerName"]>
6
+ type?: SystemProperties["containerType"]
7
+ }
8
+
9
+ type CqRestStyles = Omit<SystemStyleObject, keyof CqProperties>
10
+
11
+ interface CqStyles extends CqProperties, CqRestStyles {}
12
+
13
+ interface CqPatternFn {
14
+ (styles?: CqStyles): string
15
+ raw: (styles?: CqStyles) => SystemStyleObject
16
+ propKeys: Array<keyof CqProperties>
17
+ }
18
+
19
+ export declare function cqRaw(styles?: CqStyles): SystemStyleObject;
20
+
21
+ export declare const cq: CqPatternFn;
@@ -0,0 +1,24 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const cqConfig = {
6
+ transform(props) {
7
+ const { name, type, ...rest } = props;
8
+ return {
9
+ containerType: type,
10
+ containerName: name,
11
+ ...rest
12
+ };
13
+ },
14
+ defaultValues: { type: "inline-size" }
15
+ }
16
+
17
+ export function cqRaw(styles) {
18
+ const s = getPatternStyles(cqConfig, styles || {})
19
+ return cqConfig.transform(s, patternFns)
20
+ }
21
+
22
+ export const cq = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function cq(styles = {}) {
23
+ return css(cqRaw(styles))
24
+ }), { raw: cqRaw, propKeys: ["name","type"] })
@@ -0,0 +1,22 @@
1
+ import type { TokenValue } from '../types/tokens.js';
2
+ import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system.js';
3
+
4
+ export interface DividerProperties {
5
+ color?: ConditionalValue<TokenValue<"colors"> | SystemProperties["borderColor"]>
6
+ orientation?: ConditionalValue<"horizontal" | "vertical">
7
+ thickness?: ConditionalValue<TokenValue<"sizes"> | SystemProperties["borderWidth"]>
8
+ }
9
+
10
+ type DividerRestStyles = Omit<SystemStyleObject, keyof DividerProperties>
11
+
12
+ interface DividerStyles extends DividerProperties, DividerRestStyles {}
13
+
14
+ interface DividerPatternFn {
15
+ (styles?: DividerStyles): string
16
+ raw: (styles?: DividerStyles) => SystemStyleObject
17
+ propKeys: Array<keyof DividerProperties>
18
+ }
19
+
20
+ export declare function dividerRaw(styles?: DividerStyles): SystemStyleObject;
21
+
22
+ export declare const divider: DividerPatternFn;
@@ -0,0 +1,31 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const dividerConfig = {
6
+ transform(props, { map }) {
7
+ const { orientation, thickness, color: color2, ...rest } = props;
8
+ return {
9
+ "--thickness": thickness,
10
+ width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
11
+ height: map(orientation, (v) => v === "horizontal" ? void 0 : "100%"),
12
+ borderBlockEndWidth: map(orientation, (v) => v === "horizontal" ? "var(--thickness)" : void 0),
13
+ borderInlineEndWidth: map(orientation, (v) => v === "vertical" ? "var(--thickness)" : void 0),
14
+ borderColor: color2,
15
+ ...rest
16
+ };
17
+ },
18
+ defaultValues: {
19
+ orientation: "horizontal",
20
+ thickness: "1px"
21
+ }
22
+ }
23
+
24
+ export function dividerRaw(styles) {
25
+ const s = getPatternStyles(dividerConfig, styles || {})
26
+ return dividerConfig.transform(s, patternFns)
27
+ }
28
+
29
+ export const divider = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function divider(styles = {}) {
30
+ return css(dividerRaw(styles))
31
+ }), { raw: dividerRaw, propKeys: ["color","orientation","thickness"] })
@@ -0,0 +1,25 @@
1
+ import type { SystemProperties, SystemStyleObject } from '../types/system.js';
2
+
3
+ export interface FlexProperties {
4
+ align?: SystemProperties["alignItems"]
5
+ basis?: SystemProperties["flexBasis"]
6
+ direction?: SystemProperties["flexDirection"]
7
+ grow?: SystemProperties["flexGrow"]
8
+ justify?: SystemProperties["justifyContent"]
9
+ shrink?: SystemProperties["flexShrink"]
10
+ wrap?: SystemProperties["flexWrap"]
11
+ }
12
+
13
+ type FlexRestStyles = Omit<SystemStyleObject, keyof FlexProperties>
14
+
15
+ interface FlexStyles extends FlexProperties, FlexRestStyles {}
16
+
17
+ interface FlexPatternFn {
18
+ (styles?: FlexStyles): string
19
+ raw: (styles?: FlexStyles) => SystemStyleObject
20
+ propKeys: Array<keyof FlexProperties>
21
+ }
22
+
23
+ export declare function flexRaw(styles?: FlexStyles): SystemStyleObject;
24
+
25
+ export declare const flex: FlexPatternFn;
@@ -0,0 +1,27 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const flexConfig = { transform(props) {
6
+ const { direction, align, justify, wrap: wrap2, basis, grow, shrink, ...rest } = props;
7
+ return {
8
+ display: "flex",
9
+ flexDirection: direction,
10
+ alignItems: align,
11
+ justifyContent: justify,
12
+ flexWrap: wrap2,
13
+ flexBasis: basis,
14
+ flexGrow: grow,
15
+ flexShrink: shrink,
16
+ ...rest
17
+ };
18
+ } }
19
+
20
+ export function flexRaw(styles) {
21
+ const s = getPatternStyles(flexConfig, styles || {})
22
+ return flexConfig.transform(s, patternFns)
23
+ }
24
+
25
+ export const flex = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function flex(styles = {}) {
26
+ return css(flexRaw(styles))
27
+ }), { raw: flexRaw, propKeys: ["align","basis","direction","grow","justify","shrink","wrap"] })
@@ -0,0 +1,23 @@
1
+ import type { TokenValue } from '../types/tokens.js';
2
+ import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system.js';
3
+
4
+ export interface FloatProperties {
5
+ offset?: ConditionalValue<TokenValue<"spacing"> | SystemProperties["top"]>
6
+ offsetX?: ConditionalValue<TokenValue<"spacing"> | SystemProperties["left"]>
7
+ offsetY?: ConditionalValue<TokenValue<"spacing"> | SystemProperties["top"]>
8
+ placement?: ConditionalValue<"bottom-end" | "bottom-start" | "top-end" | "top-start" | "bottom-center" | "top-center" | "middle-center" | "middle-end" | "middle-start">
9
+ }
10
+
11
+ type FloatRestStyles = Omit<SystemStyleObject, keyof FloatProperties>
12
+
13
+ interface FloatStyles extends FloatProperties, FloatRestStyles {}
14
+
15
+ interface FloatPatternFn {
16
+ (styles?: FloatStyles): string
17
+ raw: (styles?: FloatStyles) => SystemStyleObject
18
+ propKeys: Array<keyof FloatProperties>
19
+ }
20
+
21
+ export declare function floatRaw(styles?: FloatStyles): SystemStyleObject;
22
+
23
+ export declare const float: FloatPatternFn;
@@ -0,0 +1,78 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const floatConfig = {
6
+ transform(props, { map }) {
7
+ const { offset, offsetX, offsetY, placement, ...rest } = props;
8
+ return {
9
+ display: "inline-flex",
10
+ justifyContent: "center",
11
+ alignItems: "center",
12
+ position: "absolute",
13
+ insetBlockStart: map(placement, (v) => {
14
+ const [side] = v.split("-");
15
+ return {
16
+ top: offsetY,
17
+ middle: "50%",
18
+ bottom: "auto"
19
+ }[side];
20
+ }),
21
+ insetBlockEnd: map(placement, (v) => {
22
+ const [side] = v.split("-");
23
+ return {
24
+ top: "auto",
25
+ middle: "50%",
26
+ bottom: offsetY
27
+ }[side];
28
+ }),
29
+ insetInlineStart: map(placement, (v) => {
30
+ const [, align] = v.split("-");
31
+ return {
32
+ start: offsetX,
33
+ center: "50%",
34
+ end: "auto"
35
+ }[align];
36
+ }),
37
+ insetInlineEnd: map(placement, (v) => {
38
+ const [, align] = v.split("-");
39
+ return {
40
+ start: "auto",
41
+ center: "50%",
42
+ end: offsetX
43
+ }[align];
44
+ }),
45
+ translate: map(placement, (v) => {
46
+ const [side, align] = v.split("-");
47
+ return `${{
48
+ start: "-50%",
49
+ center: "-50%",
50
+ end: "50%"
51
+ }[align]} ${{
52
+ top: "-50%",
53
+ middle: "-50%",
54
+ bottom: "50%"
55
+ }[side]}`;
56
+ }),
57
+ ...rest
58
+ };
59
+ },
60
+ defaultValues(props) {
61
+ const offset = props.offset || "0";
62
+ return {
63
+ offset,
64
+ offsetX: offset,
65
+ offsetY: offset,
66
+ placement: "top-end"
67
+ };
68
+ }
69
+ }
70
+
71
+ export function floatRaw(styles) {
72
+ const s = getPatternStyles(floatConfig, styles || {})
73
+ return floatConfig.transform(s, patternFns)
74
+ }
75
+
76
+ export const float = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function float(styles = {}) {
77
+ return css(floatRaw(styles))
78
+ }), { raw: floatRaw, propKeys: ["offset","offsetX","offsetY","placement"] })
@@ -0,0 +1,24 @@
1
+ import type { ConditionalValue, SystemStyleObject } from '../types/system.js';
2
+
3
+ export interface GridItemProperties {
4
+ colEnd?: ConditionalValue<number>
5
+ colSpan?: ConditionalValue<number>
6
+ colStart?: ConditionalValue<number>
7
+ rowEnd?: ConditionalValue<number>
8
+ rowSpan?: ConditionalValue<number>
9
+ rowStart?: ConditionalValue<number>
10
+ }
11
+
12
+ type GridItemRestStyles = Omit<SystemStyleObject, keyof GridItemProperties>
13
+
14
+ interface GridItemStyles extends GridItemProperties, GridItemRestStyles {}
15
+
16
+ interface GridItemPatternFn {
17
+ (styles?: GridItemStyles): string
18
+ raw: (styles?: GridItemStyles) => SystemStyleObject
19
+ propKeys: Array<keyof GridItemProperties>
20
+ }
21
+
22
+ export declare function gridItemRaw(styles?: GridItemStyles): SystemStyleObject;
23
+
24
+ export declare const gridItem: GridItemPatternFn;
@@ -0,0 +1,26 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const gridItemConfig = { transform(props, { map }) {
6
+ const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props;
7
+ const spanFn = (v) => v === "auto" ? v : `span ${v}`;
8
+ return {
9
+ gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
10
+ gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
11
+ gridColumnStart: colStart,
12
+ gridColumnEnd: colEnd,
13
+ gridRowStart: rowStart,
14
+ gridRowEnd: rowEnd,
15
+ ...rest
16
+ };
17
+ } }
18
+
19
+ export function gridItemRaw(styles) {
20
+ const s = getPatternStyles(gridItemConfig, styles || {})
21
+ return gridItemConfig.transform(s, patternFns)
22
+ }
23
+
24
+ export const gridItem = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function gridItem(styles = {}) {
25
+ return css(gridItemRaw(styles))
26
+ }), { raw: gridItemRaw, propKeys: ["colEnd","colSpan","colStart","rowEnd","rowSpan","rowStart"] })
@@ -0,0 +1,24 @@
1
+ import type { TokenValue } from '../types/tokens.js';
2
+ import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system.js';
3
+
4
+ export interface GridProperties {
5
+ columnGap?: SystemProperties["gap"]
6
+ columns?: ConditionalValue<number>
7
+ gap?: SystemProperties["gap"]
8
+ minChildWidth?: ConditionalValue<TokenValue<"sizes"> | SystemProperties["width"]>
9
+ rowGap?: SystemProperties["gap"]
10
+ }
11
+
12
+ type GridRestStyles = Omit<SystemStyleObject, keyof GridProperties>
13
+
14
+ interface GridStyles extends GridProperties, GridRestStyles {}
15
+
16
+ interface GridPatternFn {
17
+ (styles?: GridStyles): string
18
+ raw: (styles?: GridStyles) => SystemStyleObject
19
+ propKeys: Array<keyof GridProperties>
20
+ }
21
+
22
+ export declare function gridRaw(styles?: GridStyles): SystemStyleObject;
23
+
24
+ export declare const grid: GridPatternFn;
@@ -0,0 +1,30 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const gridConfig = {
6
+ transform(props, { map, isCssUnit }) {
7
+ const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props;
8
+ const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
9
+ return {
10
+ display: "grid",
11
+ gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
12
+ gap,
13
+ columnGap,
14
+ rowGap,
15
+ ...rest
16
+ };
17
+ },
18
+ defaultValues(props) {
19
+ return { gap: props.columnGap || props.rowGap ? void 0 : "8px" };
20
+ }
21
+ }
22
+
23
+ export function gridRaw(styles) {
24
+ const s = getPatternStyles(gridConfig, styles || {})
25
+ return gridConfig.transform(s, patternFns)
26
+ }
27
+
28
+ export const grid = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function grid(styles = {}) {
29
+ return css(gridRaw(styles))
30
+ }), { raw: gridRaw, propKeys: ["columnGap","columns","gap","minChildWidth","rowGap"] })
@@ -0,0 +1,20 @@
1
+ import type { SystemProperties, SystemStyleObject } from '../types/system.js';
2
+
3
+ export interface HstackProperties {
4
+ gap?: SystemProperties["gap"]
5
+ justify?: SystemProperties["justifyContent"]
6
+ }
7
+
8
+ type HstackRestStyles = Omit<SystemStyleObject, keyof HstackProperties>
9
+
10
+ interface HstackStyles extends HstackProperties, HstackRestStyles {}
11
+
12
+ interface HstackPatternFn {
13
+ (styles?: HstackStyles): string
14
+ raw: (styles?: HstackStyles) => SystemStyleObject
15
+ propKeys: Array<keyof HstackProperties>
16
+ }
17
+
18
+ export declare function hstackRaw(styles?: HstackStyles): SystemStyleObject;
19
+
20
+ export declare const hstack: HstackPatternFn;
@@ -0,0 +1,27 @@
1
+ import { getPatternStyles, patternFns } from './runtime.js';
2
+ import { memo } from '../helpers.js';
3
+ import { css } from '../css/index.js';
4
+
5
+ const hstackConfig = {
6
+ transform(props) {
7
+ const { justify, gap, ...rest } = props;
8
+ return {
9
+ display: "flex",
10
+ alignItems: "center",
11
+ justifyContent: justify,
12
+ gap,
13
+ flexDirection: "row",
14
+ ...rest
15
+ };
16
+ },
17
+ defaultValues: { gap: "8px" }
18
+ }
19
+
20
+ export function hstackRaw(styles) {
21
+ const s = getPatternStyles(hstackConfig, styles || {})
22
+ return hstackConfig.transform(s, patternFns)
23
+ }
24
+
25
+ export const hstack = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function hstack(styles = {}) {
26
+ return css(hstackRaw(styles))
27
+ }), { raw: hstackRaw, propKeys: ["gap","justify"] })
@@ -0,0 +1,20 @@
1
+ export * from './aspect-ratio.js';
2
+ export * from './bleed.js';
3
+ export * from './box.js';
4
+ export * from './center.js';
5
+ export * from './circle.js';
6
+ export * from './container.js';
7
+ export * from './cq.js';
8
+ export * from './divider.js';
9
+ export * from './flex.js';
10
+ export * from './float.js';
11
+ export * from './grid.js';
12
+ export * from './grid-item.js';
13
+ export * from './hstack.js';
14
+ export * from './link-overlay.js';
15
+ export * from './spacer.js';
16
+ export * from './square.js';
17
+ export * from './stack.js';
18
+ export * from './visually-hidden.js';
19
+ export * from './vstack.js';
20
+ export * from './wrap.js';