@sprawlify/solid 0.0.111 → 0.0.113

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 (257) hide show
  1. package/dist/{alert-dialog-anatomy-C2_0cMsp.d.ts → alert-dialog-anatomy-BcjgVO3J.d.ts} +1 -1
  2. package/dist/{carousel-anatomy-D6Mj7oF7.d.ts → carousel-anatomy-C_9lwmlQ.d.ts} +1 -1
  3. package/dist/{checkbox-anatomy-6YrEMoE8.d.ts → checkbox-anatomy-PPxvbQhr.d.ts} +1 -1
  4. package/dist/{collapsible-CqDl0d8N.js → collapsible-Dl7EhB4_.js} +2 -2
  5. package/dist/{color-picker-anatomy-CYCuI0Qh.d.ts → color-picker-anatomy-BKvQhJHb.d.ts} +1 -1
  6. package/dist/combobox-anatomy-DzhicAwp.d.ts +6 -0
  7. package/dist/components/accordion/index.d.ts +5 -5
  8. package/dist/components/accordion/index.js +3 -3
  9. package/dist/components/alert-dialog/index.d.ts +5 -5
  10. package/dist/components/alert-dialog/index.js +5 -4
  11. package/dist/components/alert-dialog/index.jsx +2 -1
  12. package/dist/components/anatomy.d.ts +53 -52
  13. package/dist/components/anatomy.js +12 -11
  14. package/dist/components/angle-slider/index.d.ts +4 -4
  15. package/dist/components/angle-slider/index.js +1 -1
  16. package/dist/components/aspect-ratio/index.d.ts +3 -3
  17. package/dist/components/aspect-ratio/index.js +1 -1
  18. package/dist/components/avatar/index.d.ts +4 -4
  19. package/dist/components/avatar/index.js +1 -1
  20. package/dist/components/carousel/index.d.ts +4 -4
  21. package/dist/components/carousel/index.js +1 -1
  22. package/dist/components/checkbox/index.d.ts +4 -4
  23. package/dist/components/checkbox/index.js +4 -4
  24. package/dist/components/checkbox/index.jsx +2 -2
  25. package/dist/components/clipboard/index.d.ts +4 -4
  26. package/dist/components/clipboard/index.js +1 -1
  27. package/dist/components/collapsible/index.d.ts +5 -5
  28. package/dist/components/collapsible/index.js +3 -3
  29. package/dist/components/collection/index.d.ts +1 -1
  30. package/dist/components/collection/index.js +1 -1
  31. package/dist/components/collection/index.jsx +1 -1
  32. package/dist/components/color-picker/index.d.ts +5 -5
  33. package/dist/components/color-picker/index.js +7 -6
  34. package/dist/components/color-picker/index.jsx +4 -3
  35. package/dist/components/combobox/index.d.ts +6 -6
  36. package/dist/components/combobox/index.js +8 -7
  37. package/dist/components/combobox/index.jsx +5 -4
  38. package/dist/components/date-picker/index.d.ts +22 -7
  39. package/dist/components/date-picker/index.js +25 -5
  40. package/dist/components/date-picker/index.jsx +22 -2
  41. package/dist/components/dialog/index.d.ts +5 -5
  42. package/dist/components/dialog/index.js +5 -4
  43. package/dist/components/dialog/index.jsx +2 -1
  44. package/dist/components/download-trigger/index.d.ts +2 -2
  45. package/dist/components/drawer/index.d.ts +5 -5
  46. package/dist/components/drawer/index.js +5 -4
  47. package/dist/components/drawer/index.jsx +2 -1
  48. package/dist/components/dropdown-menu/index.d.ts +5 -5
  49. package/dist/components/dropdown-menu/index.js +5 -4
  50. package/dist/components/dropdown-menu/index.jsx +2 -1
  51. package/dist/components/editable/index.d.ts +4 -4
  52. package/dist/components/editable/index.js +4 -4
  53. package/dist/components/editable/index.jsx +2 -2
  54. package/dist/components/field/index.d.ts +3 -3
  55. package/dist/components/field/index.js +4 -4
  56. package/dist/components/field/index.jsx +2 -2
  57. package/dist/components/fieldset/index.d.ts +3 -3
  58. package/dist/components/fieldset/index.js +3 -3
  59. package/dist/components/fieldset/index.jsx +1 -1
  60. package/dist/components/file-upload/index.d.ts +4 -4
  61. package/dist/components/file-upload/index.js +4 -4
  62. package/dist/components/file-upload/index.jsx +2 -2
  63. package/dist/components/floating-panel/index.d.ts +5 -5
  64. package/dist/components/floating-panel/index.js +5 -4
  65. package/dist/components/floating-panel/index.jsx +2 -1
  66. package/dist/components/focus-trap/index.d.ts +2 -2
  67. package/dist/components/focus-trap/index.js +2 -2
  68. package/dist/components/frame/index.d.ts +1 -1
  69. package/dist/components/frame/index.js +1 -1
  70. package/dist/components/highlight/index.d.ts +1 -1
  71. package/dist/components/highlight/index.js +1 -1
  72. package/dist/components/hover-card/index.d.ts +5 -5
  73. package/dist/components/hover-card/index.js +5 -4
  74. package/dist/components/hover-card/index.jsx +2 -1
  75. package/dist/components/image-cropper/index.d.ts +4 -4
  76. package/dist/components/image-cropper/index.js +1 -1
  77. package/dist/components/json-tree-view/index.d.ts +1 -1
  78. package/dist/components/json-tree-view/index.js +5 -5
  79. package/dist/components/json-tree-view/index.jsx +2 -2
  80. package/dist/components/listbox/index.d.ts +5 -5
  81. package/dist/components/listbox/index.js +2 -2
  82. package/dist/components/listbox/index.jsx +1 -1
  83. package/dist/components/marquee/index.d.ts +4 -4
  84. package/dist/components/marquee/index.js +1 -1
  85. package/dist/components/navigation-menu/index.d.ts +5 -5
  86. package/dist/components/navigation-menu/index.js +5 -4
  87. package/dist/components/navigation-menu/index.jsx +2 -1
  88. package/dist/components/number-input/index.d.ts +4 -4
  89. package/dist/components/number-input/index.js +4 -4
  90. package/dist/components/number-input/index.jsx +2 -2
  91. package/dist/components/pagination/index.d.ts +4 -4
  92. package/dist/components/pagination/index.js +1 -1
  93. package/dist/components/password-input/index.d.ts +4 -4
  94. package/dist/components/password-input/index.js +4 -4
  95. package/dist/components/password-input/index.jsx +2 -2
  96. package/dist/components/pin-input/index.d.ts +4 -4
  97. package/dist/components/pin-input/index.js +4 -4
  98. package/dist/components/pin-input/index.jsx +2 -2
  99. package/dist/components/popover/index.d.ts +5 -5
  100. package/dist/components/popover/index.js +5 -4
  101. package/dist/components/popover/index.jsx +2 -1
  102. package/dist/components/presence/index.d.ts +2 -1
  103. package/dist/components/presence/index.js +5 -4
  104. package/dist/components/presence/index.jsx +2 -1
  105. package/dist/components/progress/index.d.ts +4 -4
  106. package/dist/components/progress/index.js +1 -1
  107. package/dist/components/qr-code/index.d.ts +4 -4
  108. package/dist/components/qr-code/index.js +1 -1
  109. package/dist/components/radio-group/index.d.ts +4 -4
  110. package/dist/components/radio-group/index.js +3 -3
  111. package/dist/components/radio-group/index.jsx +1 -1
  112. package/dist/components/rating-group/index.d.ts +4 -4
  113. package/dist/components/rating-group/index.js +4 -4
  114. package/dist/components/rating-group/index.jsx +2 -2
  115. package/dist/components/scroll-area/index.d.ts +4 -4
  116. package/dist/components/scroll-area/index.js +1 -1
  117. package/dist/components/segment-group/index.d.ts +4 -4
  118. package/dist/components/segment-group/index.js +1 -1
  119. package/dist/components/select/index.d.ts +6 -6
  120. package/dist/components/select/index.js +8 -7
  121. package/dist/components/select/index.jsx +5 -4
  122. package/dist/components/separator/index.d.ts +4 -4
  123. package/dist/components/separator/index.js +1 -1
  124. package/dist/components/signature-pad/index.d.ts +4 -4
  125. package/dist/components/signature-pad/index.js +4 -4
  126. package/dist/components/signature-pad/index.jsx +2 -2
  127. package/dist/components/slider/index.d.ts +4 -4
  128. package/dist/components/slider/index.js +1 -1
  129. package/dist/components/splitter/index.d.ts +4 -4
  130. package/dist/components/splitter/index.js +1 -1
  131. package/dist/components/steps/index.d.ts +4 -4
  132. package/dist/components/steps/index.js +1 -1
  133. package/dist/components/swap/index.d.ts +69 -0
  134. package/dist/components/swap/index.js +123 -0
  135. package/dist/components/swap/index.jsx +110 -0
  136. package/dist/components/switch/index.d.ts +4 -4
  137. package/dist/components/switch/index.js +5 -5
  138. package/dist/components/switch/index.jsx +2 -2
  139. package/dist/components/tabs/index.d.ts +5 -5
  140. package/dist/components/tabs/index.js +6 -5
  141. package/dist/components/tabs/index.jsx +2 -1
  142. package/dist/components/tags-input/index.d.ts +4 -4
  143. package/dist/components/tags-input/index.js +5 -5
  144. package/dist/components/tags-input/index.jsx +2 -2
  145. package/dist/components/timer/index.d.ts +4 -4
  146. package/dist/components/timer/index.js +2 -2
  147. package/dist/components/toast/index.d.ts +4 -4
  148. package/dist/components/toast/index.js +1 -1
  149. package/dist/components/toggle/index.d.ts +3 -3
  150. package/dist/components/toggle/index.js +2 -2
  151. package/dist/components/toggle-group/index.d.ts +4 -4
  152. package/dist/components/toggle-group/index.js +2 -2
  153. package/dist/components/tooltip/index.d.ts +5 -5
  154. package/dist/components/tooltip/index.js +6 -5
  155. package/dist/components/tooltip/index.jsx +2 -1
  156. package/dist/components/tour/index.d.ts +5 -5
  157. package/dist/components/tour/index.js +6 -5
  158. package/dist/components/tour/index.jsx +2 -1
  159. package/dist/components/tree-view/index.d.ts +3 -3
  160. package/dist/components/tree-view/index.js +6 -6
  161. package/dist/components/tree-view/index.jsx +2 -2
  162. package/dist/{date-picker-anatomy-DFw6S35t.d.ts → date-picker-anatomy-DUOU1iQb.d.ts} +1 -1
  163. package/dist/{factory-DkYIAa1r.d.ts → factory-BWHPCsSi.d.ts} +1 -1
  164. package/dist/{factory-BxBlXUD3.d.ts → factory-Czr-_Ofr.d.ts} +1 -1
  165. package/dist/{field-GL4C0tUr.js → field-C70Ji8uk.js} +3 -3
  166. package/dist/{field-Blp6NDsc.jsx → field-DXEYzw2T.jsx} +1 -1
  167. package/dist/{field-anatomy-DfP5AI6N.d.ts → field-anatomy-BasO5CS7.d.ts} +1 -1
  168. package/dist/{fieldset-DQUqxXN2.js → fieldset-BtF74SAd.js} +2 -2
  169. package/dist/{fieldset-anatomy-CKytu4jl.d.ts → fieldset-anatomy-DJxvxcg3.d.ts} +1 -1
  170. package/dist/{index-CdpGOel-.d.ts → index-BswdUT0r.d.ts} +1 -1
  171. package/dist/{index-Dho3m7QX.d.ts → index-By9-0uzG.d.ts} +3 -24
  172. package/dist/{index-DJkj8LZ-.d.ts → index-D99Vniel.d.ts} +5 -5
  173. package/dist/{index-D1ooJgqW.d.ts → index-DIvFpCUM.d.ts} +1 -1
  174. package/dist/{index-ZHZGSdr3.d.ts → index-Dwb6sILP.d.ts} +1 -1
  175. package/dist/{index-BbGXwXgM.d.ts → index-WabVOPPI.d.ts} +1 -1
  176. package/dist/{index-Ywo5uneC.d.ts → index-ZwF3el_9.d.ts} +3 -24
  177. package/dist/{index-DiSjSt81.d.ts → index-kdZWirLQ.d.ts} +5 -5
  178. package/dist/index.d.ts +4 -4
  179. package/dist/{listbox-anatomy-C6Bu4F-s.d.ts → listbox-anatomy-_0Ln9pD_.d.ts} +1 -1
  180. package/dist/presence-DKT1oc5F.js +47 -0
  181. package/dist/presence-DRsmHLrP.jsx +34 -0
  182. package/dist/{render-strategy-BAqQL-Hs.js → render-strategy-Cq9ZZosp.js} +1 -1
  183. package/dist/{segment-group-anatomy-DKBcX-Mi.d.ts → segment-group-anatomy-DW5nrFOt.d.ts} +1 -1
  184. package/dist/swap-anatomy-CCWSAMZh.d.ts +6 -0
  185. package/dist/swap-anatomy-DoDvoWlX.js +6 -0
  186. package/dist/{tour-anatomy-BrwK1nVa.d.ts → tour-anatomy-DPnxBCKE.d.ts} +1 -1
  187. package/dist/{tree-view-DqjhHVfK.js → tree-view-Bg4RiWRk.js} +3 -3
  188. package/dist/use-presence-1Kxv6PoO.jsx +33 -0
  189. package/dist/use-presence-BLO11KjZ.d.ts +25 -0
  190. package/dist/use-presence-BWP_tdWv.js +33 -0
  191. package/dist/use-presence-Dz4pi-k1.d.ts +25 -0
  192. package/package.json +7 -2
  193. package/dist/combobox-anatomy-BP3wcKDL.d.ts +0 -6
  194. package/dist/presence-BcYjLSBT.jsx +0 -63
  195. package/dist/presence-CuZG4SWb.js +0 -76
  196. /package/dist/{accordion-anatomy-Dlbi7hWX.d.ts → accordion-anatomy-C429Vw0w.d.ts} +0 -0
  197. /package/dist/{angle-slider-anatomy-D9WEbUDV.d.ts → angle-slider-anatomy-Dv78eP47.d.ts} +0 -0
  198. /package/dist/{avatar-anatomy-B1gugBlI.d.ts → avatar-anatomy-DHXW281Q.d.ts} +0 -0
  199. /package/dist/{clipboard-anatomy-nY5kNeMj.d.ts → clipboard-anatomy-gpC-or8a.d.ts} +0 -0
  200. /package/dist/{collapsible-anatomy-B75vA5QB.d.ts → collapsible-anatomy-ClRt7ESN.d.ts} +0 -0
  201. /package/dist/{collection-D83ZAzYd.js → collection-DnSW_ep2.js} +0 -0
  202. /package/dist/{collection-CotDTAMT.jsx → collection-UvoAoZwM.jsx} +0 -0
  203. /package/dist/{compose-refs-BKcaHXR8.js → compose-refs-CErSWGrI.js} +0 -0
  204. /package/dist/{create-split-props-OE-yOtGc.js → create-split-props-48F6HUEZ.js} +0 -0
  205. /package/dist/{dialog-anatomy-fsIDNa4U.d.ts → dialog-anatomy-BleGXY-0.d.ts} +0 -0
  206. /package/dist/{drawer-anatomy-BX_dO1CK.d.ts → drawer-anatomy--gagvSDB.d.ts} +0 -0
  207. /package/dist/{dropdown-menu-anatomy-6hFasLVn.d.ts → dropdown-menu-anatomy-Bi0jYnCG.d.ts} +0 -0
  208. /package/dist/{editable-anatomy-CDcZMAjM.d.ts → editable-anatomy-BjHWEjJ7.d.ts} +0 -0
  209. /package/dist/{fieldset-Lbk9tsVV.jsx → fieldset-DGggJ3qa.jsx} +0 -0
  210. /package/dist/{file-upload-anatomy-oz5HPKAl.d.ts → file-upload-anatomy-Kr9Qtpm4.d.ts} +0 -0
  211. /package/dist/{floating-panel-anatomy-CWHJO-gk.d.ts → floating-panel-anatomy-DwzhDYGr.d.ts} +0 -0
  212. /package/dist/{hover-card-anatomy-CrEsa3XF.d.ts → hover-card-anatomy-BeL7Wdzl.d.ts} +0 -0
  213. /package/dist/{image-cropper-anatomy-S1DPpjWp.d.ts → image-cropper-anatomy-SiJH9k2p.d.ts} +0 -0
  214. /package/dist/{index-Bnd2Fp7Q.d.ts → index-BNNwG8TW.d.ts} +0 -0
  215. /package/dist/{index-CRqsjDZx.d.ts → index-DcVpvJuo.d.ts} +0 -0
  216. /package/dist/{marquee-anatomy-B0VBpa40.d.ts → marquee-anatomy-CGqQSKHO.d.ts} +0 -0
  217. /package/dist/{navigation-menu-anatomy-6TacFtNy.d.ts → navigation-menu-anatomy-0kxxhca-.d.ts} +0 -0
  218. /package/dist/{number-input-anatomy-Be06g82m.d.ts → number-input-anatomy-DrXRPc-2.d.ts} +0 -0
  219. /package/dist/{pagination-anatomy-hb5d75ds.d.ts → pagination-anatomy-IbVBkvDE.d.ts} +0 -0
  220. /package/dist/{password-input-anatomy-DY3Btk4Z.d.ts → password-input-anatomy-DukzKaA_.d.ts} +0 -0
  221. /package/dist/{pin-input-anatomy-Dh7dVbsT.d.ts → pin-input-anatomy-Dod0i2Fj.d.ts} +0 -0
  222. /package/dist/{popover-anatomy-CIt7PUmS.d.ts → popover-anatomy-BRUYTStu.d.ts} +0 -0
  223. /package/dist/{progress-anatomy-Bh9Sh8d2.d.ts → progress-anatomy-CdUb6E_m.d.ts} +0 -0
  224. /package/dist/{qr-code-anatomy-Daeh1gXt.d.ts → qr-code-anatomy-HIK_cqc4.d.ts} +0 -0
  225. /package/dist/{radio-group-anatomy-fu9jDbmu.d.ts → radio-group-anatomy-4AtLbTvX.d.ts} +0 -0
  226. /package/dist/{rating-group-anatomy-B8hoEZBE.d.ts → rating-group-anatomy-C4MeQJFb.d.ts} +0 -0
  227. /package/dist/{render-strategy-C-bqwyH6.d.ts → render-strategy-Ci6JQxar.d.ts} +0 -0
  228. /package/dist/{render-strategy-RoCfkF8z.d.ts → render-strategy-VFaN_ls2.d.ts} +0 -0
  229. /package/dist/{scroll-area-anatomy-Eg5UQD6w.d.ts → scroll-area-anatomy-DpXR-8Ka.d.ts} +0 -0
  230. /package/dist/{select-anatomy-C85MRleF.d.ts → select-anatomy-DvmePPct.d.ts} +0 -0
  231. /package/dist/{separator-anatomy-CoRBCozn.d.ts → separator-anatomy-DcmKkhH4.d.ts} +0 -0
  232. /package/dist/{signature-pad-anatomy-69rnG-8v.d.ts → signature-pad-anatomy-CE3VaGlN.d.ts} +0 -0
  233. /package/dist/{slider-anatomy-Bi2M9sIn.d.ts → slider-anatomy-Bcn8infz.d.ts} +0 -0
  234. /package/dist/{splitter-anatomy-DOrZZHLS.d.ts → splitter-anatomy-CcU7r6nC.d.ts} +0 -0
  235. /package/dist/{steps-anatomy-DyFBdyZm.d.ts → steps-anatomy-BFfGItPO.d.ts} +0 -0
  236. /package/dist/{switch-anatomy-D5Q54mGY.js → switch-anatomy-BBKGer2O.js} +0 -0
  237. /package/dist/{switch-anatomy-ChIrrzPM.d.ts → switch-anatomy-V7-avrsf.d.ts} +0 -0
  238. /package/dist/{tabs-anatomy-DU5e5PwZ.js → tabs-anatomy-CSIjHllD.js} +0 -0
  239. /package/dist/{tabs-anatomy-Cx19UTVm.d.ts → tabs-anatomy-Sf4easVm.d.ts} +0 -0
  240. /package/dist/{tags-input-anatomy-BhGRRfIw.js → tags-input-anatomy-BVSVhUIY.js} +0 -0
  241. /package/dist/{tags-input-anatomy-Bwspep5o.d.ts → tags-input-anatomy-klR6M57D.d.ts} +0 -0
  242. /package/dist/{timer-anatomy-GlYZryvG.js → timer-anatomy-Bi9rZW6m.js} +0 -0
  243. /package/dist/{timer-anatomy-EHPlHptt.d.ts → timer-anatomy-DiFPa7w2.d.ts} +0 -0
  244. /package/dist/{toast-anatomy-DiPVPI_x.js → toast-anatomy-T5C60YOF.js} +0 -0
  245. /package/dist/{toast-anatomy-DtLjq13p.d.ts → toast-anatomy-TiT_rATb.d.ts} +0 -0
  246. /package/dist/{toggle-anatomy-Bh7LJ9JI.d.ts → toggle-anatomy-BEf2ev_N.d.ts} +0 -0
  247. /package/dist/{toggle-anatomy-DLOZu83X.js → toggle-anatomy-Cvb2YZ0Z.js} +0 -0
  248. /package/dist/{toggle-group-anatomy-lQ9EYEIt.js → toggle-group-anatomy-CY3buWoP.js} +0 -0
  249. /package/dist/{toggle-group-anatomy-DEo8iu_3.d.ts → toggle-group-anatomy-DPihvPM-.d.ts} +0 -0
  250. /package/dist/{tooltip-anatomy-CamCIpK3.d.ts → tooltip-anatomy-fBuzAg1k.d.ts} +0 -0
  251. /package/dist/{tooltip-anatomy-Py7dhRtQ.js → tooltip-anatomy-tX33r13s.js} +0 -0
  252. /package/dist/{tour-anatomy-VBbJhmJa.js → tour-anatomy-CmrXDTeQ.js} +0 -0
  253. /package/dist/{tree-view-nwQzRTs2.jsx → tree-view-Dj3OcF2q.jsx} +0 -0
  254. /package/dist/{tree-view-anatomy-DFap3OjP.d.ts → tree-view-anatomy-BqdaCO-D.d.ts} +0 -0
  255. /package/dist/{tree-view-anatomy-BK8OR6TX.js → tree-view-anatomy-Dmaz5yOz.js} +0 -0
  256. /package/dist/{types-BiaKY56E.d.ts → types-B4c9Wnje.d.ts} +0 -0
  257. /package/dist/{types-C0L5xDeS.d.ts → types-CgX1JJNs.d.ts} +0 -0
@@ -6,8 +6,8 @@ import { a as useLocaleContext, s as useEnvironmentContext } from "../../provide
6
6
  import { t as sprawlify } from "../../factory-B95XvEzz.jsx";
7
7
  import { t as createSplitProps } from "../../create-split-props-B2Gc7D9P.jsx";
8
8
  import "../../compose-refs-Jq47jedK.jsx";
9
- import "../../fieldset-Lbk9tsVV.jsx";
10
- import { m as useFieldContext } from "../../field-Blp6NDsc.jsx";
9
+ import "../../fieldset-DGggJ3qa.jsx";
10
+ import { m as useFieldContext } from "../../field-DXEYzw2T.jsx";
11
11
  import { createMemo, createUniqueId } from "solid-js";
12
12
  import * as ratingGroup from "@sprawlify/primitives/machines/rating-group";
13
13
  import { anatomy as ratingGroupAnatomy } from "@sprawlify/primitives/machines/rating-group";
@@ -1,7 +1,7 @@
1
- import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
2
- import { i as Optional, t as Assign } from "../../types-C0L5xDeS.js";
3
- import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
4
- import { t as scrollAreaAnatomy } from "../../scroll-area-anatomy-Eg5UQD6w.js";
1
+ import { n as PropTypes } from "../../index-BNNwG8TW.js";
2
+ import { i as Optional, t as Assign } from "../../types-B4c9Wnje.js";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
4
+ import { t as scrollAreaAnatomy } from "../../scroll-area-anatomy-DpXR-8Ka.js";
5
5
  import * as solid_js0 from "solid-js";
6
6
  import { Accessor, JSX } from "solid-js";
7
7
  import * as scrollArea from "@sprawlify/primitives/machines/scroll-area";
@@ -4,7 +4,7 @@ import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
4
4
  import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
5
5
  import { t as sprawlify } from "../../factory-DORgzART.js";
6
6
  import { t as scrollAreaAnatomy } from "../../scroll-area-anatomy-12L_PN6-.js";
7
- import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
7
+ import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
8
8
  import { createMemo, createUniqueId } from "solid-js";
9
9
  import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
10
10
  import * as scrollArea from "@sprawlify/primitives/machines/scroll-area";
@@ -1,7 +1,7 @@
1
- import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
2
- import { i as Optional, n as MaybeAccessor } from "../../types-C0L5xDeS.js";
3
- import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
4
- import { t as segmentGroupAnatomy } from "../../segment-group-anatomy-DKBcX-Mi.js";
1
+ import { n as PropTypes } from "../../index-BNNwG8TW.js";
2
+ import { i as Optional, n as MaybeAccessor } from "../../types-B4c9Wnje.js";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
4
+ import { t as segmentGroupAnatomy } from "../../segment-group-anatomy-DW5nrFOt.js";
5
5
  import * as solid_js0 from "solid-js";
6
6
  import { Accessor, JSX } from "solid-js";
7
7
  import * as segmentGroup from "@sprawlify/primitives/machines/radio-group";
@@ -5,7 +5,7 @@ import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
5
5
  import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
6
6
  import { t as sprawlify } from "../../factory-DORgzART.js";
7
7
  import { n as segmentGroupAnatomy, t as parts } from "../../segment-group-anatomy-CfDAqJG5.js";
8
- import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
8
+ import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
9
9
  import { createMemo, createUniqueId } from "solid-js";
10
10
  import { createComponent } from "solid-js/web";
11
11
  import * as segmentGroup from "@sprawlify/primitives/machines/radio-group";
@@ -1,9 +1,9 @@
1
- import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
2
- import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-C0L5xDeS.js";
3
- import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
4
- import { s as UsePresenceProps } from "../../index-Dho3m7QX.js";
5
- import { t as selectAnatomy } from "../../select-anatomy-C85MRleF.js";
6
- import { _ as CollectionItem, b as createListCollection, i as UseListCollectionProps, o as useListCollection, y as ListCollection } from "../../index-BbGXwXgM.js";
1
+ import { n as PropTypes } from "../../index-BNNwG8TW.js";
2
+ import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-B4c9Wnje.js";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
4
+ import { t as UsePresenceProps } from "../../use-presence-BLO11KjZ.js";
5
+ import { t as selectAnatomy } from "../../select-anatomy-DvmePPct.js";
6
+ import { _ as CollectionItem, b as createListCollection, i as UseListCollectionProps, o as useListCollection, y as ListCollection } from "../../index-WabVOPPI.js";
7
7
  import * as solid_js0 from "solid-js";
8
8
  import { Accessor, JSX } from "solid-js";
9
9
  import * as select from "@sprawlify/primitives/machines/select";
@@ -7,13 +7,14 @@ import { t as sprawlify } from "../../factory-DORgzART.js";
7
7
  import "../../field-anatomy-BloFzq7T.js";
8
8
  import "../../fieldset-anatomy-DBAg0hLg.js";
9
9
  import { t as selectAnatomy } from "../../select-anatomy-C3xVuuOA.js";
10
- import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
11
- import "../../render-strategy-BAqQL-Hs.js";
12
- import { t as composeRefs } from "../../compose-refs-BKcaHXR8.js";
13
- import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, t as PresenceProvider } from "../../presence-CuZG4SWb.js";
14
- import "../../fieldset-DQUqxXN2.js";
15
- import { p as useFieldContext } from "../../field-GL4C0tUr.js";
16
- import { n as useListCollection, o as createListCollection } from "../../collection-D83ZAzYd.js";
10
+ import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
11
+ import "../../render-strategy-Cq9ZZosp.js";
12
+ import { t as composeRefs } from "../../compose-refs-CErSWGrI.js";
13
+ import { i as splitPresenceProps, n as usePresenceContext, t as PresenceProvider } from "../../presence-DKT1oc5F.js";
14
+ import { t as usePresence } from "../../use-presence-BWP_tdWv.js";
15
+ import "../../fieldset-BtF74SAd.js";
16
+ import { p as useFieldContext } from "../../field-C70Ji8uk.js";
17
+ import { n as useListCollection, o as createListCollection } from "../../collection-DnSW_ep2.js";
17
18
  import { Index, Show, createMemo, createUniqueId } from "solid-js";
18
19
  import { createComponent, effect, insert, mergeProps as mergeProps$1, template } from "solid-js/web";
19
20
  import * as select from "@sprawlify/primitives/machines/select";
@@ -7,10 +7,11 @@ import { t as sprawlify } from "../../factory-B95XvEzz.jsx";
7
7
  import { t as createSplitProps } from "../../create-split-props-B2Gc7D9P.jsx";
8
8
  import "../../render-strategy-6LT04Ztx.jsx";
9
9
  import { t as composeRefs } from "../../compose-refs-Jq47jedK.jsx";
10
- import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, t as PresenceProvider } from "../../presence-BcYjLSBT.jsx";
11
- import "../../fieldset-Lbk9tsVV.jsx";
12
- import { m as useFieldContext } from "../../field-Blp6NDsc.jsx";
13
- import { n as useListCollection, o as createListCollection } from "../../collection-CotDTAMT.jsx";
10
+ import { i as splitPresenceProps, n as usePresenceContext, t as PresenceProvider } from "../../presence-DRsmHLrP.jsx";
11
+ import { t as usePresence } from "../../use-presence-1Kxv6PoO.jsx";
12
+ import "../../fieldset-DGggJ3qa.jsx";
13
+ import { m as useFieldContext } from "../../field-DXEYzw2T.jsx";
14
+ import { n as useListCollection, o as createListCollection } from "../../collection-UvoAoZwM.jsx";
14
15
  import { Index, Show, createMemo, createUniqueId } from "solid-js";
15
16
  import * as select from "@sprawlify/primitives/machines/select";
16
17
  import { anatomy as selectAnatomy } from "@sprawlify/primitives/machines/select";
@@ -1,7 +1,7 @@
1
- import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
2
- import { i as Optional, n as MaybeAccessor } from "../../types-C0L5xDeS.js";
3
- import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
4
- import { t as separatorAnatomy } from "../../separator-anatomy-CoRBCozn.js";
1
+ import { n as PropTypes } from "../../index-BNNwG8TW.js";
2
+ import { i as Optional, n as MaybeAccessor } from "../../types-B4c9Wnje.js";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
4
+ import { t as separatorAnatomy } from "../../separator-anatomy-DcmKkhH4.js";
5
5
  import * as solid_js0 from "solid-js";
6
6
  import { Accessor, JSX } from "solid-js";
7
7
  import * as separator from "@sprawlify/primitives/machines/separator";
@@ -5,7 +5,7 @@ import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
5
5
  import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
6
6
  import { t as sprawlify } from "../../factory-DORgzART.js";
7
7
  import { t as separatorAnatomy } from "../../separator-anatomy-DNo6fxgH.js";
8
- import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
8
+ import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
9
9
  import { createMemo, createUniqueId } from "solid-js";
10
10
  import { createComponent } from "solid-js/web";
11
11
  import * as separator from "@sprawlify/primitives/machines/separator";
@@ -1,7 +1,7 @@
1
- import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
2
- import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-C0L5xDeS.js";
3
- import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
4
- import { t as signaturePadAnatomy } from "../../signature-pad-anatomy-69rnG-8v.js";
1
+ import { n as PropTypes } from "../../index-BNNwG8TW.js";
2
+ import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-B4c9Wnje.js";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
4
+ import { t as signaturePadAnatomy } from "../../signature-pad-anatomy-CE3VaGlN.js";
5
5
  import * as solid_js0 from "solid-js";
6
6
  import { Accessor, JSX } from "solid-js";
7
7
  import * as signaturePad from "@sprawlify/primitives/machines/signature-pad";
@@ -7,10 +7,10 @@ import { t as sprawlify } from "../../factory-DORgzART.js";
7
7
  import "../../field-anatomy-BloFzq7T.js";
8
8
  import "../../fieldset-anatomy-DBAg0hLg.js";
9
9
  import { t as signaturePadAnatomy } from "../../signature-pad-anatomy--FrLBUvh.js";
10
- import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
11
- import "../../compose-refs-BKcaHXR8.js";
12
- import "../../fieldset-DQUqxXN2.js";
13
- import { p as useFieldContext } from "../../field-GL4C0tUr.js";
10
+ import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
11
+ import "../../compose-refs-CErSWGrI.js";
12
+ import "../../fieldset-BtF74SAd.js";
13
+ import { p as useFieldContext } from "../../field-C70Ji8uk.js";
14
14
  import { For, Show, createMemo, createUniqueId } from "solid-js";
15
15
  import { createComponent, mergeProps as mergeProps$1, spread, template } from "solid-js/web";
16
16
  import * as signaturePad from "@sprawlify/primitives/machines/signature-pad";
@@ -6,8 +6,8 @@ import { a as useLocaleContext, s as useEnvironmentContext } from "../../provide
6
6
  import { t as sprawlify } from "../../factory-B95XvEzz.jsx";
7
7
  import { t as createSplitProps } from "../../create-split-props-B2Gc7D9P.jsx";
8
8
  import "../../compose-refs-Jq47jedK.jsx";
9
- import "../../fieldset-Lbk9tsVV.jsx";
10
- import { m as useFieldContext } from "../../field-Blp6NDsc.jsx";
9
+ import "../../fieldset-DGggJ3qa.jsx";
10
+ import { m as useFieldContext } from "../../field-DXEYzw2T.jsx";
11
11
  import { For, Show, createMemo, createUniqueId } from "solid-js";
12
12
  import * as signaturePad from "@sprawlify/primitives/machines/signature-pad";
13
13
  import { anatomy as signaturePadAnatomy } from "@sprawlify/primitives/machines/signature-pad";
@@ -1,7 +1,7 @@
1
- import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
2
- import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-C0L5xDeS.js";
3
- import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
4
- import { t as sliderAnatomy } from "../../slider-anatomy-Bi2M9sIn.js";
1
+ import { n as PropTypes } from "../../index-BNNwG8TW.js";
2
+ import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-B4c9Wnje.js";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
4
+ import { t as sliderAnatomy } from "../../slider-anatomy-Bcn8infz.js";
5
5
  import * as solid_js0 from "solid-js";
6
6
  import { Accessor, JSX } from "solid-js";
7
7
  import * as slider from "@sprawlify/primitives/machines/slider";
@@ -5,7 +5,7 @@ import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
5
5
  import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
6
6
  import { t as sprawlify } from "../../factory-DORgzART.js";
7
7
  import { t as sliderAnatomy } from "../../slider-anatomy-B4hwb17i.js";
8
- import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
8
+ import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
9
9
  import { createMemo, createUniqueId } from "solid-js";
10
10
  import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
11
11
  import * as slider from "@sprawlify/primitives/machines/slider";
@@ -1,7 +1,7 @@
1
- import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
2
- import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-C0L5xDeS.js";
3
- import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
4
- import { t as splitterAnatomy } from "../../splitter-anatomy-DOrZZHLS.js";
1
+ import { n as PropTypes } from "../../index-BNNwG8TW.js";
2
+ import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-B4c9Wnje.js";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
4
+ import { t as splitterAnatomy } from "../../splitter-anatomy-CcU7r6nC.js";
5
5
  import * as solid_js0 from "solid-js";
6
6
  import { Accessor, JSX } from "solid-js";
7
7
  import * as splitter from "@sprawlify/primitives/machines/splitter";
@@ -5,7 +5,7 @@ import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
5
5
  import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
6
6
  import { t as sprawlify } from "../../factory-DORgzART.js";
7
7
  import { t as splitterAnatomy } from "../../splitter-anatomy-C3pN_mFn.js";
8
- import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
8
+ import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
9
9
  import { createMemo, createUniqueId } from "solid-js";
10
10
  import { createComponent } from "solid-js/web";
11
11
  import * as splitter from "@sprawlify/primitives/machines/splitter";
@@ -1,7 +1,7 @@
1
- import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
2
- import { i as Optional, n as MaybeAccessor } from "../../types-C0L5xDeS.js";
3
- import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
4
- import { t as stepsAnatomy } from "../../steps-anatomy-DyFBdyZm.js";
1
+ import { n as PropTypes } from "../../index-BNNwG8TW.js";
2
+ import { i as Optional, n as MaybeAccessor } from "../../types-B4c9Wnje.js";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
4
+ import { t as stepsAnatomy } from "../../steps-anatomy-BFfGItPO.js";
5
5
  import * as solid_js0 from "solid-js";
6
6
  import { Accessor, JSX } from "solid-js";
7
7
  import * as steps from "@sprawlify/primitives/machines/steps";
@@ -5,7 +5,7 @@ import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
5
5
  import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
6
6
  import { t as sprawlify } from "../../factory-DORgzART.js";
7
7
  import { t as stepsAnatomy } from "../../steps-anatomy-CbPJUew1.js";
8
- import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
8
+ import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
9
9
  import { createMemo, createUniqueId } from "solid-js";
10
10
  import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
11
11
  import * as steps from "@sprawlify/primitives/machines/steps";
@@ -0,0 +1,69 @@
1
+ import { n as MaybeAccessor } from "../../types-B4c9Wnje.js";
2
+ import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
3
+ import { t as RenderStrategyProps } from "../../render-strategy-VFaN_ls2.js";
4
+ import { n as UsePresenceReturn } from "../../use-presence-BLO11KjZ.js";
5
+ import { t as swapAnatomy } from "../../swap-anatomy-CCWSAMZh.js";
6
+ import * as solid_js0 from "solid-js";
7
+ import { Accessor } from "solid-js";
8
+
9
+ //#region src/components/swap/swap-indicator.d.ts
10
+ interface SwapIndicatorBaseProps extends PolymorphicProps<"span"> {
11
+ type: "on" | "off";
12
+ }
13
+ interface SwapIndicatorProps extends HTMLProps<"span">, SwapIndicatorBaseProps {}
14
+ declare const SwapIndicator: (props: SwapIndicatorProps) => solid_js0.JSX.Element;
15
+ //#endregion
16
+ //#region src/components/swap/use-swap.d.ts
17
+ interface UseSwapProps extends RenderStrategyProps {
18
+ /**
19
+ * Whether the swap is in the "on" state.
20
+ * @default false
21
+ */
22
+ swap?: boolean;
23
+ }
24
+ interface IndicatorProps {
25
+ type: "on" | "off";
26
+ }
27
+ interface UseSwapReturn {
28
+ /**
29
+ * Whether the swap is in the "on" state.
30
+ */
31
+ swap: boolean;
32
+ /**
33
+ * The presence instance for the "on" indicator.
34
+ */
35
+ onPresence: UsePresenceReturn;
36
+ /**
37
+ * The presence instance for the "off" indicator.
38
+ */
39
+ offPresence: UsePresenceReturn;
40
+ /**
41
+ * Props for the root element.
42
+ */
43
+ getRootProps: () => HTMLProps<"span">;
44
+ /**
45
+ * Props for the indicator element.
46
+ */
47
+ getIndicatorProps: (props: IndicatorProps) => HTMLProps<"span">;
48
+ }
49
+ declare const useSwap: (props?: MaybeAccessor<UseSwapProps>) => Accessor<UseSwapReturn>;
50
+ //#endregion
51
+ //#region src/components/swap/swap-root.d.ts
52
+ interface SwapRootBaseProps extends UseSwapProps, PolymorphicProps<"span"> {}
53
+ interface SwapRootProps extends HTMLProps<"span">, SwapRootBaseProps {}
54
+ declare const SwapRoot: (props: SwapRootProps) => solid_js0.JSX.Element;
55
+ //#endregion
56
+ //#region src/components/swap/swap-root-provider.d.ts
57
+ interface SwapRootProviderBaseProps extends PolymorphicProps<"span"> {
58
+ value: Accessor<UseSwapReturn>;
59
+ }
60
+ interface SwapRootProviderProps extends HTMLProps<"span">, SwapRootProviderBaseProps {}
61
+ declare const SwapRootProvider: (props: SwapRootProviderProps) => solid_js0.JSX.Element;
62
+ declare namespace swap_d_exports {
63
+ export { SwapIndicator as Indicator, SwapIndicatorBaseProps as IndicatorBaseProps, SwapIndicatorProps as IndicatorProps, SwapRoot as Root, SwapRootBaseProps as RootBaseProps, SwapRootProps as RootProps, SwapRootProvider as RootProvider, SwapRootProviderBaseProps as RootProviderBaseProps, SwapRootProviderProps as RootProviderProps, swapAnatomy };
64
+ }
65
+ //#endregion
66
+ //#region src/components/swap/use-swap-context.d.ts
67
+ interface UseSwapContext extends Accessor<UseSwapReturn> {}
68
+ //#endregion
69
+ export { swap_d_exports as Swap, SwapIndicator, type SwapIndicatorBaseProps, type SwapIndicatorProps, SwapRoot, type SwapRootBaseProps, type SwapRootProps, SwapRootProvider, type SwapRootProviderBaseProps, type SwapRootProviderProps, type UseSwapContext, type UseSwapProps, type UseSwapReturn, swapAnatomy, useSwap, useSwapContext };
@@ -0,0 +1,123 @@
1
+ import { t as __exportAll } from "../../chunk-pbuEa-1d.js";
2
+ import { r as mergeProps$2 } from "../../core-BHfpfUk-.js";
3
+ import { t as runIfFn } from "../../run-if-fn-BV7F-Eeb.js";
4
+ import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
5
+ import { t as sprawlify } from "../../factory-DORgzART.js";
6
+ import { n as swapAnatomy, t as parts } from "../../swap-anatomy-DoDvoWlX.js";
7
+ import "../../create-split-props-48F6HUEZ.js";
8
+ import "../../render-strategy-Cq9ZZosp.js";
9
+ import { t as composeRefs } from "../../compose-refs-CErSWGrI.js";
10
+ import { t as usePresence } from "../../use-presence-BWP_tdWv.js";
11
+ import { Show, createMemo, splitProps } from "solid-js";
12
+ import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
13
+ //#region src/components/swap/use-swap-context.ts
14
+ const [SwapProvider, useSwapContext] = createContext$1({
15
+ hookName: "useSwapContext",
16
+ providerName: "<SwapProvider />"
17
+ });
18
+ //#endregion
19
+ //#region src/components/swap/swap-indicator.tsx
20
+ const SwapIndicator = (props) => {
21
+ const [localProps, restProps] = splitProps(props, ["type", "ref"]);
22
+ const swap = useSwapContext();
23
+ const presence = () => {
24
+ return (localProps.type === "on" ? swap().onPresence : swap().offPresence)();
25
+ };
26
+ const mergedProps = mergeProps$2(() => swap().getIndicatorProps({ type: localProps.type }), restProps);
27
+ return createComponent(Show, {
28
+ get when() {
29
+ return !presence().unmounted;
30
+ },
31
+ get children() {
32
+ return createComponent(sprawlify.span, mergeProps$1(mergedProps, { ref(r$) {
33
+ var _ref$ = composeRefs(presence().ref, localProps.ref);
34
+ typeof _ref$ === "function" && _ref$(r$);
35
+ } }));
36
+ }
37
+ });
38
+ };
39
+ //#endregion
40
+ //#region src/components/swap/use-swap.ts
41
+ const useSwap = (props = {}) => {
42
+ const resolved = createMemo(() => runIfFn(props));
43
+ const onPresence = usePresence(mergeProps$2(() => ({
44
+ present: resolved().swap ?? false,
45
+ lazyMount: resolved().lazyMount,
46
+ unmountOnExit: resolved().unmountOnExit,
47
+ skipAnimationOnMount: true
48
+ })));
49
+ const offPresence = usePresence(mergeProps$2(() => ({
50
+ present: !(resolved().swap ?? false),
51
+ lazyMount: resolved().lazyMount,
52
+ unmountOnExit: resolved().unmountOnExit,
53
+ skipAnimationOnMount: true
54
+ })));
55
+ return createMemo(() => {
56
+ const swap = resolved().swap ?? false;
57
+ return {
58
+ swap,
59
+ onPresence,
60
+ offPresence,
61
+ getRootProps() {
62
+ return {
63
+ ...parts.root.attrs,
64
+ "data-swap": swap ? "on" : "off",
65
+ style: { display: "inline-grid" }
66
+ };
67
+ },
68
+ getIndicatorProps({ type }) {
69
+ const presence = type === "on" ? onPresence() : offPresence();
70
+ return {
71
+ ...parts.indicator.attrs,
72
+ ...presence.presenceProps,
73
+ "data-type": type,
74
+ style: {
75
+ "grid-area": "1 / 1",
76
+ display: "inline-flex"
77
+ }
78
+ };
79
+ }
80
+ };
81
+ });
82
+ };
83
+ //#endregion
84
+ //#region src/components/swap/swap-root.tsx
85
+ const SwapRoot = (props) => {
86
+ const [swapProps, localProps] = splitProps(props, [
87
+ "swap",
88
+ "lazyMount",
89
+ "unmountOnExit"
90
+ ]);
91
+ const swap = useSwap(() => swapProps);
92
+ const mergedProps = mergeProps$2(() => swap().getRootProps(), localProps);
93
+ return createComponent(SwapProvider, {
94
+ value: swap,
95
+ get children() {
96
+ return createComponent(sprawlify.span, mergedProps);
97
+ }
98
+ });
99
+ };
100
+ //#endregion
101
+ //#region src/components/swap/swap-root-provider.tsx
102
+ const SwapRootProvider = (props) => {
103
+ const [providerProps, localProps] = splitProps(props, ["value"]);
104
+ const mergedProps = mergeProps$2(() => providerProps.value().getRootProps(), localProps);
105
+ return createComponent(SwapProvider, {
106
+ get value() {
107
+ return providerProps.value;
108
+ },
109
+ get children() {
110
+ return createComponent(sprawlify.span, mergedProps);
111
+ }
112
+ });
113
+ };
114
+ //#endregion
115
+ //#region src/components/swap/swap.ts
116
+ var swap_exports = /* @__PURE__ */ __exportAll({
117
+ Indicator: () => SwapIndicator,
118
+ Root: () => SwapRoot,
119
+ RootProvider: () => SwapRootProvider,
120
+ swapAnatomy: () => swapAnatomy
121
+ });
122
+ //#endregion
123
+ export { swap_exports as Swap, SwapIndicator, SwapRoot, SwapRootProvider, swapAnatomy, useSwap, useSwapContext };
@@ -0,0 +1,110 @@
1
+ import { t as __exportAll } from "../../chunk-pQxUBDkX.jsx";
2
+ import { r as mergeProps$1 } from "../../core-DUR6M1Mz.jsx";
3
+ import { t as runIfFn } from "../../run-if-fn-qkd0iQPO.jsx";
4
+ import { t as createContext$1 } from "../../create-context-iBxaUhvx.jsx";
5
+ import { t as sprawlify } from "../../factory-B95XvEzz.jsx";
6
+ import "../../create-split-props-B2Gc7D9P.jsx";
7
+ import "../../render-strategy-6LT04Ztx.jsx";
8
+ import { t as composeRefs } from "../../compose-refs-Jq47jedK.jsx";
9
+ import { t as usePresence } from "../../use-presence-1Kxv6PoO.jsx";
10
+ import { Show, createMemo, splitProps } from "solid-js";
11
+ import { createAnatomy } from "@sprawlify/primitives/anatomy";
12
+ //#region src/components/swap/use-swap-context.ts
13
+ const [SwapProvider, useSwapContext] = createContext$1({
14
+ hookName: "useSwapContext",
15
+ providerName: "<SwapProvider />"
16
+ });
17
+ //#endregion
18
+ //#region src/components/swap/swap-indicator.tsx
19
+ const SwapIndicator = (props) => {
20
+ const [localProps, restProps] = splitProps(props, ["type", "ref"]);
21
+ const swap = useSwapContext();
22
+ const presence = () => {
23
+ return (localProps.type === "on" ? swap().onPresence : swap().offPresence)();
24
+ };
25
+ const mergedProps = mergeProps$1(() => swap().getIndicatorProps({ type: localProps.type }), restProps);
26
+ return <Show when={!presence().unmounted}>
27
+ <sprawlify.span {...mergedProps} ref={composeRefs(presence().ref, localProps.ref)} />
28
+ </Show>;
29
+ };
30
+ //#endregion
31
+ //#region src/components/swap/swap-anatomy.ts
32
+ const swapAnatomy = createAnatomy("swap", ["root", "indicator"]);
33
+ const parts = swapAnatomy.build();
34
+ //#endregion
35
+ //#region src/components/swap/use-swap.ts
36
+ const useSwap = (props = {}) => {
37
+ const resolved = createMemo(() => runIfFn(props));
38
+ const onPresence = usePresence(mergeProps$1(() => ({
39
+ present: resolved().swap ?? false,
40
+ lazyMount: resolved().lazyMount,
41
+ unmountOnExit: resolved().unmountOnExit,
42
+ skipAnimationOnMount: true
43
+ })));
44
+ const offPresence = usePresence(mergeProps$1(() => ({
45
+ present: !(resolved().swap ?? false),
46
+ lazyMount: resolved().lazyMount,
47
+ unmountOnExit: resolved().unmountOnExit,
48
+ skipAnimationOnMount: true
49
+ })));
50
+ return createMemo(() => {
51
+ const swap = resolved().swap ?? false;
52
+ return {
53
+ swap,
54
+ onPresence,
55
+ offPresence,
56
+ getRootProps() {
57
+ return {
58
+ ...parts.root.attrs,
59
+ "data-swap": swap ? "on" : "off",
60
+ style: { display: "inline-grid" }
61
+ };
62
+ },
63
+ getIndicatorProps({ type }) {
64
+ const presence = type === "on" ? onPresence() : offPresence();
65
+ return {
66
+ ...parts.indicator.attrs,
67
+ ...presence.presenceProps,
68
+ "data-type": type,
69
+ style: {
70
+ "grid-area": "1 / 1",
71
+ display: "inline-flex"
72
+ }
73
+ };
74
+ }
75
+ };
76
+ });
77
+ };
78
+ //#endregion
79
+ //#region src/components/swap/swap-root.tsx
80
+ const SwapRoot = (props) => {
81
+ const [swapProps, localProps] = splitProps(props, [
82
+ "swap",
83
+ "lazyMount",
84
+ "unmountOnExit"
85
+ ]);
86
+ const swap = useSwap(() => swapProps);
87
+ const mergedProps = mergeProps$1(() => swap().getRootProps(), localProps);
88
+ return <SwapProvider value={swap}>
89
+ <sprawlify.span {...mergedProps} />
90
+ </SwapProvider>;
91
+ };
92
+ //#endregion
93
+ //#region src/components/swap/swap-root-provider.tsx
94
+ const SwapRootProvider = (props) => {
95
+ const [providerProps, localProps] = splitProps(props, ["value"]);
96
+ const mergedProps = mergeProps$1(() => providerProps.value().getRootProps(), localProps);
97
+ return <SwapProvider value={providerProps.value}>
98
+ <sprawlify.span {...mergedProps} />
99
+ </SwapProvider>;
100
+ };
101
+ //#endregion
102
+ //#region src/components/swap/swap.ts
103
+ var swap_exports = /* @__PURE__ */ __exportAll({
104
+ Indicator: () => SwapIndicator,
105
+ Root: () => SwapRoot,
106
+ RootProvider: () => SwapRootProvider,
107
+ swapAnatomy: () => swapAnatomy
108
+ });
109
+ //#endregion
110
+ export { swap_exports as Swap, SwapIndicator, SwapRoot, SwapRootProvider, swapAnatomy, useSwap, useSwapContext };
@@ -1,7 +1,7 @@
1
- import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
2
- import { i as Optional, n as MaybeAccessor } from "../../types-C0L5xDeS.js";
3
- import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
4
- import { t as switchAnatomy } from "../../switch-anatomy-ChIrrzPM.js";
1
+ import { n as PropTypes } from "../../index-BNNwG8TW.js";
2
+ import { i as Optional, n as MaybeAccessor } from "../../types-B4c9Wnje.js";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
4
+ import { t as switchAnatomy } from "../../switch-anatomy-V7-avrsf.js";
5
5
  import * as solid_js0 from "solid-js";
6
6
  import { Accessor, JSX } from "solid-js";
7
7
  import * as sprawlifySwitch from "@sprawlify/primitives/machines/switch";
@@ -6,11 +6,11 @@ import { a as useLocaleContext, s as useEnvironmentContext } from "../../provide
6
6
  import { t as sprawlify } from "../../factory-DORgzART.js";
7
7
  import "../../field-anatomy-BloFzq7T.js";
8
8
  import "../../fieldset-anatomy-DBAg0hLg.js";
9
- import { t as switchAnatomy } from "../../switch-anatomy-D5Q54mGY.js";
10
- import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
11
- import "../../compose-refs-BKcaHXR8.js";
12
- import "../../fieldset-DQUqxXN2.js";
13
- import { p as useFieldContext } from "../../field-GL4C0tUr.js";
9
+ import { t as switchAnatomy } from "../../switch-anatomy-BBKGer2O.js";
10
+ import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
11
+ import "../../compose-refs-CErSWGrI.js";
12
+ import "../../fieldset-BtF74SAd.js";
13
+ import { p as useFieldContext } from "../../field-C70Ji8uk.js";
14
14
  import { createMemo, createUniqueId } from "solid-js";
15
15
  import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
16
16
  import * as sprawlifySwitch from "@sprawlify/primitives/machines/switch";
@@ -6,8 +6,8 @@ import { a as useLocaleContext, s as useEnvironmentContext } from "../../provide
6
6
  import { t as sprawlify } from "../../factory-B95XvEzz.jsx";
7
7
  import { t as createSplitProps } from "../../create-split-props-B2Gc7D9P.jsx";
8
8
  import "../../compose-refs-Jq47jedK.jsx";
9
- import "../../fieldset-Lbk9tsVV.jsx";
10
- import { m as useFieldContext } from "../../field-Blp6NDsc.jsx";
9
+ import "../../fieldset-DGggJ3qa.jsx";
10
+ import { m as useFieldContext } from "../../field-DXEYzw2T.jsx";
11
11
  import { createMemo, createUniqueId } from "solid-js";
12
12
  import * as sprawlifySwitch from "@sprawlify/primitives/machines/switch";
13
13
  import { anatomy as switchAnatomy } from "@sprawlify/primitives/machines/switch";
@@ -1,8 +1,8 @@
1
- import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
2
- import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-C0L5xDeS.js";
3
- import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
4
- import { t as RenderStrategyProps } from "../../render-strategy-RoCfkF8z.js";
5
- import { t as tabsAnatomy } from "../../tabs-anatomy-Cx19UTVm.js";
1
+ import { n as PropTypes } from "../../index-BNNwG8TW.js";
2
+ import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-B4c9Wnje.js";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
4
+ import { t as RenderStrategyProps } from "../../render-strategy-VFaN_ls2.js";
5
+ import { t as tabsAnatomy } from "../../tabs-anatomy-Sf4easVm.js";
6
6
  import * as solid_js0 from "solid-js";
7
7
  import { Accessor, JSX } from "solid-js";
8
8
  import * as tabs from "@sprawlify/primitives/machines/tabs";