@nori-ui/core 0.0.5 → 1.0.2

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 (387) hide show
  1. package/dist/animation/animated-view.cjs +13 -0
  2. package/dist/animation/animated-view.cjs.map +1 -0
  3. package/dist/animation/animated-view.d.cts +6 -0
  4. package/dist/animation/animated-view.d.ts +6 -0
  5. package/dist/animation/animated-view.js +4 -0
  6. package/dist/animation/animated-view.js.map +1 -0
  7. package/dist/animation/animated-view.web.cjs +9 -0
  8. package/dist/animation/animated-view.web.cjs.map +1 -0
  9. package/dist/animation/animated-view.web.d.cts +5 -0
  10. package/dist/animation/animated-view.web.d.ts +5 -0
  11. package/dist/animation/animated-view.web.js +8 -0
  12. package/dist/animation/animated-view.web.js.map +1 -0
  13. package/dist/animation/use-animated-number.cjs +80 -0
  14. package/dist/animation/use-animated-number.cjs.map +1 -0
  15. package/dist/animation/use-animated-number.d.cts +8 -0
  16. package/dist/animation/use-animated-number.d.ts +8 -0
  17. package/dist/animation/use-animated-number.js +4 -0
  18. package/dist/animation/use-animated-number.js.map +1 -0
  19. package/dist/animation/use-animated-number.web.cjs +28 -0
  20. package/dist/animation/use-animated-number.web.cjs.map +1 -0
  21. package/dist/animation/use-animated-number.web.d.cts +8 -0
  22. package/dist/animation/use-animated-number.web.d.ts +8 -0
  23. package/dist/animation/use-animated-number.web.js +25 -0
  24. package/dist/animation/use-animated-number.web.js.map +1 -0
  25. package/dist/{chunk-RX7UULY3.js → chunk-33S7ADWM.js} +3 -3
  26. package/dist/{chunk-RX7UULY3.js.map → chunk-33S7ADWM.js.map} +1 -1
  27. package/dist/chunk-3BDDPFCI.js +108 -0
  28. package/dist/chunk-3BDDPFCI.js.map +1 -0
  29. package/dist/chunk-3F4TXKDY.js +314 -0
  30. package/dist/chunk-3F4TXKDY.js.map +1 -0
  31. package/dist/chunk-5A2QOOVN.js +15 -0
  32. package/dist/chunk-5A2QOOVN.js.map +1 -0
  33. package/dist/chunk-5XEGZFG5.js +208 -0
  34. package/dist/chunk-5XEGZFG5.js.map +1 -0
  35. package/dist/chunk-6AD6KCVB.js +178 -0
  36. package/dist/chunk-6AD6KCVB.js.map +1 -0
  37. package/dist/chunk-7GPDNQSX.js +967 -0
  38. package/dist/chunk-7GPDNQSX.js.map +1 -0
  39. package/dist/chunk-7UKRN73P.js +42 -0
  40. package/dist/chunk-7UKRN73P.js.map +1 -0
  41. package/dist/chunk-7Z4NMNX6.js +64 -0
  42. package/dist/chunk-7Z4NMNX6.js.map +1 -0
  43. package/dist/chunk-ACLHDHX3.js +29 -0
  44. package/dist/chunk-ACLHDHX3.js.map +1 -0
  45. package/dist/chunk-BZLT6R62.js +80 -0
  46. package/dist/chunk-BZLT6R62.js.map +1 -0
  47. package/dist/chunk-CCUXO2HN.js +450 -0
  48. package/dist/chunk-CCUXO2HN.js.map +1 -0
  49. package/dist/chunk-CHXHRJNZ.js +43 -0
  50. package/dist/chunk-CHXHRJNZ.js.map +1 -0
  51. package/dist/chunk-DDGMLLS3.js +188 -0
  52. package/dist/chunk-DDGMLLS3.js.map +1 -0
  53. package/dist/chunk-EWWQQ5DB.js +654 -0
  54. package/dist/chunk-EWWQQ5DB.js.map +1 -0
  55. package/dist/chunk-FEPTH5RV.js +169 -0
  56. package/dist/chunk-FEPTH5RV.js.map +1 -0
  57. package/dist/{chunk-SSTXLK5I.js → chunk-FT2XBBQJ.js} +42 -6
  58. package/dist/chunk-FT2XBBQJ.js.map +1 -0
  59. package/dist/chunk-IKLA2CVQ.js +260 -0
  60. package/dist/chunk-IKLA2CVQ.js.map +1 -0
  61. package/dist/chunk-JQQ3FBN7.js +18 -0
  62. package/dist/chunk-JQQ3FBN7.js.map +1 -0
  63. package/dist/chunk-JSAG5YO7.js +69 -0
  64. package/dist/chunk-JSAG5YO7.js.map +1 -0
  65. package/dist/chunk-JZ774T7U.js +76 -0
  66. package/dist/chunk-JZ774T7U.js.map +1 -0
  67. package/dist/chunk-KWRDJPP3.js +10 -0
  68. package/dist/chunk-KWRDJPP3.js.map +1 -0
  69. package/dist/chunk-LVWNMQGR.js +1106 -0
  70. package/dist/chunk-LVWNMQGR.js.map +1 -0
  71. package/dist/chunk-LWLK6HSW.js +143 -0
  72. package/dist/chunk-LWLK6HSW.js.map +1 -0
  73. package/dist/chunk-MDOZGILD.js +134 -0
  74. package/dist/chunk-MDOZGILD.js.map +1 -0
  75. package/dist/chunk-MKSDYRWQ.js +446 -0
  76. package/dist/chunk-MKSDYRWQ.js.map +1 -0
  77. package/dist/chunk-MRJWPRCX.js +80 -0
  78. package/dist/chunk-MRJWPRCX.js.map +1 -0
  79. package/dist/chunk-NRYWNOG5.js +410 -0
  80. package/dist/chunk-NRYWNOG5.js.map +1 -0
  81. package/dist/chunk-OMU4R4Y5.js +144 -0
  82. package/dist/chunk-OMU4R4Y5.js.map +1 -0
  83. package/dist/chunk-PNP7L4TA.js +103 -0
  84. package/dist/chunk-PNP7L4TA.js.map +1 -0
  85. package/dist/chunk-QI6646JZ.js +3 -0
  86. package/dist/{chunk-UAKFCMWK.js.map → chunk-QI6646JZ.js.map} +1 -1
  87. package/dist/chunk-QJNV7YQP.js +138 -0
  88. package/dist/chunk-QJNV7YQP.js.map +1 -0
  89. package/dist/chunk-R5JMDDCB.js +292 -0
  90. package/dist/chunk-R5JMDDCB.js.map +1 -0
  91. package/dist/chunk-RB3YBWQ4.js +77 -0
  92. package/dist/chunk-RB3YBWQ4.js.map +1 -0
  93. package/dist/chunk-RFW5SRZA.js +23 -0
  94. package/dist/chunk-RFW5SRZA.js.map +1 -0
  95. package/dist/chunk-RGJ3NBKE.js +8 -0
  96. package/dist/chunk-RGJ3NBKE.js.map +1 -0
  97. package/dist/chunk-SFNDR6DI.js +485 -0
  98. package/dist/chunk-SFNDR6DI.js.map +1 -0
  99. package/dist/chunk-SWC5CNKE.js +13 -0
  100. package/dist/chunk-SWC5CNKE.js.map +1 -0
  101. package/dist/chunk-TLS54G6Y.js +15 -0
  102. package/dist/chunk-TLS54G6Y.js.map +1 -0
  103. package/dist/chunk-WCQVDF3K.js +12 -0
  104. package/dist/{chunk-7QVYU63E.js.map → chunk-WCQVDF3K.js.map} +1 -1
  105. package/dist/chunk-WGT345SV.js +427 -0
  106. package/dist/chunk-WGT345SV.js.map +1 -0
  107. package/dist/chunk-X7APG7G2.js +1566 -0
  108. package/dist/chunk-X7APG7G2.js.map +1 -0
  109. package/dist/chunk-XALU6LOT.js +306 -0
  110. package/dist/chunk-XALU6LOT.js.map +1 -0
  111. package/dist/chunk-YNKKEO2A.js +336 -0
  112. package/dist/chunk-YNKKEO2A.js.map +1 -0
  113. package/dist/chunk-ZBW3BA5R.js +148 -0
  114. package/dist/chunk-ZBW3BA5R.js.map +1 -0
  115. package/dist/{chunk-FXKIWONG.js → chunk-ZIBNLXIV.js} +12 -6
  116. package/dist/chunk-ZIBNLXIV.js.map +1 -0
  117. package/dist/chunk-ZMSIYLSI.js +563 -0
  118. package/dist/chunk-ZMSIYLSI.js.map +1 -0
  119. package/dist/chunk-ZQMNGPLE.js +981 -0
  120. package/dist/chunk-ZQMNGPLE.js.map +1 -0
  121. package/dist/chunk-ZRD4FQBT.js +153 -0
  122. package/dist/chunk-ZRD4FQBT.js.map +1 -0
  123. package/dist/client.cjs +11289 -439
  124. package/dist/client.cjs.map +1 -1
  125. package/dist/client.d.cts +68 -117
  126. package/dist/client.d.ts +68 -117
  127. package/dist/client.js +58 -40
  128. package/dist/client.js.map +1 -1
  129. package/dist/components/Accordion/index.cjs +900 -0
  130. package/dist/components/Accordion/index.cjs.map +1 -0
  131. package/dist/components/Accordion/index.d.cts +72 -0
  132. package/dist/components/Accordion/index.d.ts +72 -0
  133. package/dist/components/Accordion/index.js +10 -0
  134. package/dist/components/Accordion/index.js.map +1 -0
  135. package/dist/components/Alert/index.cjs +567 -0
  136. package/dist/components/Alert/index.cjs.map +1 -0
  137. package/dist/components/Alert/index.d.cts +41 -0
  138. package/dist/components/Alert/index.d.ts +41 -0
  139. package/dist/components/Alert/index.js +8 -0
  140. package/dist/components/Alert/index.js.map +1 -0
  141. package/dist/components/AlertDialog/index.cjs +892 -0
  142. package/dist/components/AlertDialog/index.cjs.map +1 -0
  143. package/dist/components/AlertDialog/index.d.cts +68 -0
  144. package/dist/components/AlertDialog/index.d.ts +68 -0
  145. package/dist/components/AlertDialog/index.js +9 -0
  146. package/dist/components/AlertDialog/index.js.map +1 -0
  147. package/dist/components/Avatar/index.cjs +427 -0
  148. package/dist/components/Avatar/index.cjs.map +1 -0
  149. package/dist/components/Avatar/index.d.cts +40 -0
  150. package/dist/components/Avatar/index.d.ts +40 -0
  151. package/dist/components/Avatar/index.js +7 -0
  152. package/dist/components/Avatar/index.js.map +1 -0
  153. package/dist/components/Badge/index.cjs +433 -0
  154. package/dist/components/Badge/index.cjs.map +1 -0
  155. package/dist/components/Badge/index.d.cts +35 -0
  156. package/dist/components/Badge/index.d.ts +35 -0
  157. package/dist/components/Badge/index.js +7 -0
  158. package/dist/components/Badge/index.js.map +1 -0
  159. package/dist/components/Box/index.cjs +415 -0
  160. package/dist/components/Box/index.cjs.map +1 -0
  161. package/dist/components/Box/index.d.cts +24 -0
  162. package/dist/components/Box/index.d.ts +24 -0
  163. package/dist/components/Box/index.js +9 -0
  164. package/dist/components/Box/index.js.map +1 -0
  165. package/dist/components/Breadcrumb/index.cjs +1939 -0
  166. package/dist/components/Breadcrumb/index.cjs.map +1 -0
  167. package/dist/components/Breadcrumb/index.d.cts +186 -0
  168. package/dist/components/Breadcrumb/index.d.ts +186 -0
  169. package/dist/components/Breadcrumb/index.js +11 -0
  170. package/dist/components/Breadcrumb/index.js.map +1 -0
  171. package/dist/components/Button/index.cjs +631 -0
  172. package/dist/components/Button/index.cjs.map +1 -0
  173. package/dist/components/Button/index.d.cts +27 -0
  174. package/dist/components/Button/index.d.ts +27 -0
  175. package/dist/components/Button/index.js +9 -0
  176. package/dist/components/Button/index.js.map +1 -0
  177. package/dist/components/Calendar/index.cjs +3017 -0
  178. package/dist/components/Calendar/index.cjs.map +1 -0
  179. package/dist/components/Calendar/index.d.cts +169 -0
  180. package/dist/components/Calendar/index.d.ts +169 -0
  181. package/dist/components/Calendar/index.js +11 -0
  182. package/dist/components/Calendar/index.js.map +1 -0
  183. package/dist/components/Card/index.cjs +469 -0
  184. package/dist/components/Card/index.cjs.map +1 -0
  185. package/dist/components/Card/index.d.cts +33 -0
  186. package/dist/components/Card/index.d.ts +33 -0
  187. package/dist/components/Card/index.js +7 -0
  188. package/dist/components/Card/index.js.map +1 -0
  189. package/dist/components/Checkbox/index.cjs +590 -0
  190. package/dist/components/Checkbox/index.cjs.map +1 -0
  191. package/dist/components/Checkbox/index.d.cts +22 -0
  192. package/dist/components/Checkbox/index.d.ts +22 -0
  193. package/dist/components/Checkbox/index.js +9 -0
  194. package/dist/components/Checkbox/index.js.map +1 -0
  195. package/dist/components/Dialog/index.cjs +888 -0
  196. package/dist/components/Dialog/index.cjs.map +1 -0
  197. package/dist/components/Dialog/index.d.cts +56 -0
  198. package/dist/components/Dialog/index.d.ts +56 -0
  199. package/dist/components/Dialog/index.js +10 -0
  200. package/dist/components/Dialog/index.js.map +1 -0
  201. package/dist/components/FloatButton/index.cjs +1254 -0
  202. package/dist/components/FloatButton/index.cjs.map +1 -0
  203. package/dist/components/FloatButton/index.d.cts +133 -0
  204. package/dist/components/FloatButton/index.d.ts +133 -0
  205. package/dist/components/FloatButton/index.js +11 -0
  206. package/dist/components/FloatButton/index.js.map +1 -0
  207. package/dist/components/HStack/index.cjs +480 -0
  208. package/dist/components/HStack/index.cjs.map +1 -0
  209. package/dist/components/HStack/index.d.cts +24 -0
  210. package/dist/components/HStack/index.d.ts +24 -0
  211. package/dist/components/HStack/index.js +9 -0
  212. package/dist/components/HStack/index.js.map +1 -0
  213. package/dist/components/InputGroup/index.cjs +638 -0
  214. package/dist/components/InputGroup/index.cjs.map +1 -0
  215. package/dist/components/InputGroup/index.d.cts +33 -0
  216. package/dist/components/InputGroup/index.d.ts +33 -0
  217. package/dist/components/InputGroup/index.js +7 -0
  218. package/dist/components/InputGroup/index.js.map +1 -0
  219. package/dist/components/Pagination/index.cjs +2501 -0
  220. package/dist/components/Pagination/index.cjs.map +1 -0
  221. package/dist/components/Pagination/index.d.cts +164 -0
  222. package/dist/components/Pagination/index.d.ts +164 -0
  223. package/dist/components/Pagination/index.js +12 -0
  224. package/dist/components/Pagination/index.js.map +1 -0
  225. package/dist/components/Popover/index.cjs +739 -0
  226. package/dist/components/Popover/index.cjs.map +1 -0
  227. package/dist/components/Popover/index.d.cts +44 -0
  228. package/dist/components/Popover/index.d.ts +44 -0
  229. package/dist/components/Popover/index.js +8 -0
  230. package/dist/components/Popover/index.js.map +1 -0
  231. package/dist/components/Progress/index.cjs +493 -0
  232. package/dist/components/Progress/index.cjs.map +1 -0
  233. package/dist/components/Progress/index.d.cts +63 -0
  234. package/dist/components/Progress/index.d.ts +63 -0
  235. package/dist/components/Progress/index.js +7 -0
  236. package/dist/components/Progress/index.js.map +1 -0
  237. package/dist/components/Radio/index.cjs +584 -0
  238. package/dist/components/Radio/index.cjs.map +1 -0
  239. package/dist/components/Radio/index.d.cts +51 -0
  240. package/dist/components/Radio/index.d.ts +51 -0
  241. package/dist/components/Radio/index.js +7 -0
  242. package/dist/components/Radio/index.js.map +1 -0
  243. package/dist/components/SegmentedControl/index.cjs +502 -0
  244. package/dist/components/SegmentedControl/index.cjs.map +1 -0
  245. package/dist/components/SegmentedControl/index.d.cts +45 -0
  246. package/dist/components/SegmentedControl/index.d.ts +45 -0
  247. package/dist/components/SegmentedControl/index.js +7 -0
  248. package/dist/components/SegmentedControl/index.js.map +1 -0
  249. package/dist/components/Select/index.cjs +1359 -0
  250. package/dist/components/Select/index.cjs.map +1 -0
  251. package/dist/components/Select/index.d.cts +140 -0
  252. package/dist/components/Select/index.d.ts +140 -0
  253. package/dist/components/Select/index.js +8 -0
  254. package/dist/components/Select/index.js.map +1 -0
  255. package/dist/components/Separator/index.cjs +358 -0
  256. package/dist/components/Separator/index.cjs.map +1 -0
  257. package/dist/components/Separator/index.d.cts +28 -0
  258. package/dist/components/Separator/index.d.ts +28 -0
  259. package/dist/components/Separator/index.js +6 -0
  260. package/dist/components/Separator/index.js.map +1 -0
  261. package/dist/components/Skeleton/index.cjs +384 -0
  262. package/dist/components/Skeleton/index.cjs.map +1 -0
  263. package/dist/components/Skeleton/index.d.cts +30 -0
  264. package/dist/components/Skeleton/index.d.ts +30 -0
  265. package/dist/components/Skeleton/index.js +6 -0
  266. package/dist/components/Skeleton/index.js.map +1 -0
  267. package/dist/components/Slider/index.cjs +880 -0
  268. package/dist/components/Slider/index.cjs.map +1 -0
  269. package/dist/components/Slider/index.d.cts +84 -0
  270. package/dist/components/Slider/index.d.ts +84 -0
  271. package/dist/components/Slider/index.js +6 -0
  272. package/dist/components/Slider/index.js.map +1 -0
  273. package/dist/components/Spinner/index.cjs +32 -0
  274. package/dist/components/Spinner/index.cjs.map +1 -0
  275. package/dist/components/Spinner/index.d.cts +25 -0
  276. package/dist/components/Spinner/index.d.ts +25 -0
  277. package/dist/components/Spinner/index.js +4 -0
  278. package/dist/components/Spinner/index.js.map +1 -0
  279. package/dist/components/Switch/index.cjs +623 -0
  280. package/dist/components/Switch/index.cjs.map +1 -0
  281. package/dist/components/Switch/index.d.cts +22 -0
  282. package/dist/components/Switch/index.d.ts +22 -0
  283. package/dist/components/Switch/index.js +10 -0
  284. package/dist/components/Switch/index.js.map +1 -0
  285. package/dist/components/Tabs/index.cjs +630 -0
  286. package/dist/components/Tabs/index.cjs.map +1 -0
  287. package/dist/components/Tabs/index.d.cts +63 -0
  288. package/dist/components/Tabs/index.d.ts +63 -0
  289. package/dist/components/Tabs/index.js +7 -0
  290. package/dist/components/Tabs/index.js.map +1 -0
  291. package/dist/components/Text/index.cjs +401 -0
  292. package/dist/components/Text/index.cjs.map +1 -0
  293. package/dist/components/Text/index.d.cts +24 -0
  294. package/dist/components/Text/index.d.ts +24 -0
  295. package/dist/components/Text/index.js +7 -0
  296. package/dist/components/Text/index.js.map +1 -0
  297. package/dist/components/TextArea/index.cjs +482 -0
  298. package/dist/components/TextArea/index.cjs.map +1 -0
  299. package/dist/components/TextArea/index.d.cts +25 -0
  300. package/dist/components/TextArea/index.d.ts +25 -0
  301. package/dist/components/TextArea/index.js +8 -0
  302. package/dist/components/TextArea/index.js.map +1 -0
  303. package/dist/components/TextInput/index.cjs +477 -0
  304. package/dist/components/TextInput/index.cjs.map +1 -0
  305. package/dist/components/TextInput/index.d.cts +33 -0
  306. package/dist/components/TextInput/index.d.ts +33 -0
  307. package/dist/components/TextInput/index.js +7 -0
  308. package/dist/components/TextInput/index.js.map +1 -0
  309. package/dist/components/Toast/index.cjs +167 -0
  310. package/dist/components/Toast/index.cjs.map +1 -0
  311. package/dist/components/Toast/index.d.cts +143 -0
  312. package/dist/components/Toast/index.d.ts +143 -0
  313. package/dist/components/Toast/index.js +4 -0
  314. package/dist/components/Toast/index.js.map +1 -0
  315. package/dist/components/Toggle/index.cjs +770 -0
  316. package/dist/components/Toggle/index.cjs.map +1 -0
  317. package/dist/components/Toggle/index.d.cts +83 -0
  318. package/dist/components/Toggle/index.d.ts +83 -0
  319. package/dist/components/Toggle/index.js +7 -0
  320. package/dist/components/Toggle/index.js.map +1 -0
  321. package/dist/components/Tooltip/index.cjs +813 -0
  322. package/dist/components/Tooltip/index.cjs.map +1 -0
  323. package/dist/components/Tooltip/index.d.cts +55 -0
  324. package/dist/components/Tooltip/index.d.ts +55 -0
  325. package/dist/components/Tooltip/index.js +8 -0
  326. package/dist/components/Tooltip/index.js.map +1 -0
  327. package/dist/components/VStack/index.cjs +480 -0
  328. package/dist/components/VStack/index.cjs.map +1 -0
  329. package/dist/components/VStack/index.d.cts +19 -0
  330. package/dist/components/VStack/index.d.ts +19 -0
  331. package/dist/components/VStack/index.js +9 -0
  332. package/dist/components/VStack/index.js.map +1 -0
  333. package/dist/i18n/index.cjs +39 -3
  334. package/dist/i18n/index.cjs.map +1 -1
  335. package/dist/i18n/index.d.cts +4 -60
  336. package/dist/i18n/index.d.ts +4 -60
  337. package/dist/i18n/index.js +3 -2
  338. package/dist/icons/index.cjs +326 -26
  339. package/dist/icons/index.cjs.map +1 -1
  340. package/dist/icons/index.js +4 -3
  341. package/dist/index-D3_M3G6U.d.ts +19 -0
  342. package/dist/index-uXPK_Rg8.d.cts +19 -0
  343. package/dist/index.cjs +11176 -463
  344. package/dist/index.cjs.map +1 -1
  345. package/dist/index.d.cts +39 -183
  346. package/dist/index.d.ts +39 -183
  347. package/dist/index.js +49 -9
  348. package/dist/resolve-D-GOaxZy.d.cts +60 -0
  349. package/dist/resolve-D-GOaxZy.d.ts +60 -0
  350. package/dist/slot/index.cjs +9 -3
  351. package/dist/slot/index.cjs.map +1 -1
  352. package/dist/slot/index.js +2 -2
  353. package/dist/stories/index.cjs +108 -0
  354. package/dist/stories/index.cjs.map +1 -0
  355. package/dist/stories/index.d.cts +46 -0
  356. package/dist/stories/index.d.ts +46 -0
  357. package/dist/stories/index.js +94 -0
  358. package/dist/stories/index.js.map +1 -0
  359. package/dist/theme/index.cjs +259 -26
  360. package/dist/theme/index.cjs.map +1 -1
  361. package/dist/theme/index.d.cts +26 -0
  362. package/dist/theme/index.d.ts +26 -0
  363. package/dist/theme/index.js +4 -3
  364. package/dist/use-theme-CoqfnvRs.d.cts +112 -0
  365. package/dist/use-theme-CoqfnvRs.d.ts +112 -0
  366. package/dist/utils/cn.cjs +18 -6
  367. package/dist/utils/cn.cjs.map +1 -1
  368. package/dist/utils/cn.js +2 -2
  369. package/package.json +41 -10
  370. package/dist/chunk-6OABNXBY.js +0 -213
  371. package/dist/chunk-6OABNXBY.js.map +0 -1
  372. package/dist/chunk-7QVYU63E.js +0 -6
  373. package/dist/chunk-FXKIWONG.js.map +0 -1
  374. package/dist/chunk-NDEDMCHT.js +0 -40
  375. package/dist/chunk-NDEDMCHT.js.map +0 -1
  376. package/dist/chunk-SSTXLK5I.js.map +0 -1
  377. package/dist/chunk-UAKFCMWK.js +0 -3
  378. package/dist/chunk-X3AJNNF6.js +0 -539
  379. package/dist/chunk-X3AJNNF6.js.map +0 -1
  380. package/dist/chunk-XGM2K4TT.js +0 -31
  381. package/dist/chunk-XGM2K4TT.js.map +0 -1
  382. package/dist/stories/story-registry.cjs +0 -776
  383. package/dist/stories/story-registry.cjs.map +0 -1
  384. package/dist/stories/story-registry.d.cts +0 -13
  385. package/dist/stories/story-registry.d.ts +0 -13
  386. package/dist/stories/story-registry.js +0 -106
  387. package/dist/stories/story-registry.js.map +0 -1
@@ -0,0 +1,880 @@
1
+ 'use strict';
2
+
3
+ var react = require('react');
4
+ var reactNative = require('react-native');
5
+ var jsxRuntime = require('nativewind/jsx-runtime');
6
+
7
+ var __defProp = Object.defineProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
+
10
+ // ../tokens/build/theme.ts
11
+ var theme = {
12
+ color: {
13
+ danger: "#ef4444",
14
+ info: "#3b82f6",
15
+ neutral: {
16
+ "100": "#f4f4f5",
17
+ "200": "#e4e4e7",
18
+ "300": "#d4d4d8",
19
+ "400": "#a1a1aa",
20
+ "50": "#fafafa",
21
+ "500": "#71717a",
22
+ "600": "#52525b",
23
+ "700": "#3f3f46",
24
+ "800": "#27272a",
25
+ "900": "#18181b"
26
+ },
27
+ primary: {
28
+ "100": "#ccfbf1",
29
+ "200": "#99f6e4",
30
+ "300": "#5eead4",
31
+ "400": "#2dd4bf",
32
+ "50": "#f0fdfa",
33
+ "500": "#14b8a6",
34
+ "600": "#0d9488",
35
+ "700": "#0f766e",
36
+ "800": "#115e59",
37
+ "900": "#134e4a"
38
+ },
39
+ success: "#22c55e",
40
+ warning: "#f59e0b"
41
+ },
42
+ fontFamily: {
43
+ body: "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
44
+ display: "ui-serif, Georgia, 'Times New Roman', serif",
45
+ mono: "ui-monospace, 'SF Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace"
46
+ },
47
+ fontSize: {
48
+ "2xl": "24px",
49
+ "3xl": "30px",
50
+ "4xl": "36px",
51
+ lg: "18px",
52
+ md: "16px",
53
+ sm: "14px",
54
+ xl: "20px",
55
+ xs: "12px"
56
+ },
57
+ fontWeight: {
58
+ bold: "700",
59
+ medium: "500",
60
+ regular: "400",
61
+ semibold: "600"
62
+ },
63
+ lineHeight: {
64
+ normal: "1.4",
65
+ relaxed: "1.6",
66
+ tight: "1.2"
67
+ },
68
+ radius: {
69
+ "2xl": "16px",
70
+ full: "9999px",
71
+ lg: "8px",
72
+ md: "6px",
73
+ none: "0px",
74
+ sm: "4px",
75
+ xl: "12px"
76
+ },
77
+ semantic: {
78
+ background: {
79
+ default: "#fafafa",
80
+ elevated: "#ffffff",
81
+ subtle: "#f4f4f5"
82
+ },
83
+ border: {
84
+ default: "#e4e4e7",
85
+ strong: "#d4d4d8"
86
+ },
87
+ interactive: {
88
+ destructive: "#ef4444",
89
+ primary: "#0d9488",
90
+ primaryHover: "#0f766e",
91
+ primaryPressed: "#115e59"
92
+ },
93
+ text: {
94
+ default: "#18181b",
95
+ inverted: "#fafafa",
96
+ muted: "#52525b"
97
+ }
98
+ },
99
+ shadow: {
100
+ lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",
101
+ md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)",
102
+ sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)"
103
+ },
104
+ spacing: {
105
+ "0": "0px",
106
+ "1": "4px",
107
+ "10": "40px",
108
+ "12": "48px",
109
+ "16": "64px",
110
+ "2": "8px",
111
+ "20": "80px",
112
+ "24": "96px",
113
+ "3": "12px",
114
+ "4": "16px",
115
+ "5": "20px",
116
+ "6": "24px",
117
+ "8": "32px"
118
+ }
119
+ };
120
+ var themeDark = {
121
+ color: {
122
+ danger: "#ef4444",
123
+ info: "#3b82f6",
124
+ neutral: {
125
+ "100": "#f4f4f5",
126
+ "200": "#e4e4e7",
127
+ "300": "#d4d4d8",
128
+ "400": "#a1a1aa",
129
+ "50": "#fafafa",
130
+ "500": "#71717a",
131
+ "600": "#52525b",
132
+ "700": "#3f3f46",
133
+ "800": "#27272a",
134
+ "900": "#18181b"
135
+ },
136
+ primary: {
137
+ "100": "#ccfbf1",
138
+ "200": "#99f6e4",
139
+ "300": "#5eead4",
140
+ "400": "#2dd4bf",
141
+ "50": "#f0fdfa",
142
+ "500": "#14b8a6",
143
+ "600": "#0d9488",
144
+ "700": "#0f766e",
145
+ "800": "#115e59",
146
+ "900": "#134e4a"
147
+ },
148
+ success: "#22c55e",
149
+ warning: "#f59e0b"
150
+ },
151
+ fontFamily: {
152
+ body: "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
153
+ display: "ui-serif, Georgia, 'Times New Roman', serif",
154
+ mono: "ui-monospace, 'SF Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace"
155
+ },
156
+ fontSize: {
157
+ "2xl": "24px",
158
+ "3xl": "30px",
159
+ "4xl": "36px",
160
+ lg: "18px",
161
+ md: "16px",
162
+ sm: "14px",
163
+ xl: "20px",
164
+ xs: "12px"
165
+ },
166
+ fontWeight: {
167
+ bold: "700",
168
+ medium: "500",
169
+ regular: "400",
170
+ semibold: "600"
171
+ },
172
+ lineHeight: {
173
+ normal: "1.4",
174
+ relaxed: "1.6",
175
+ tight: "1.2"
176
+ },
177
+ radius: {
178
+ "2xl": "16px",
179
+ full: "9999px",
180
+ lg: "8px",
181
+ md: "6px",
182
+ none: "0px",
183
+ sm: "4px",
184
+ xl: "12px"
185
+ },
186
+ semantic: {
187
+ background: {
188
+ default: "#18181b",
189
+ elevated: "#3f3f46",
190
+ subtle: "#27272a"
191
+ },
192
+ border: {
193
+ default: "#3f3f46",
194
+ strong: "#52525b"
195
+ },
196
+ interactive: {
197
+ destructive: "#ef4444",
198
+ primary: "#2dd4bf",
199
+ primaryHover: "#5eead4",
200
+ primaryPressed: "#99f6e4"
201
+ },
202
+ text: {
203
+ default: "#fafafa",
204
+ inverted: "#18181b",
205
+ muted: "#a1a1aa"
206
+ }
207
+ },
208
+ shadow: {
209
+ lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",
210
+ md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)",
211
+ sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)"
212
+ },
213
+ spacing: {
214
+ "0": "0px",
215
+ "1": "4px",
216
+ "10": "40px",
217
+ "12": "48px",
218
+ "16": "64px",
219
+ "2": "8px",
220
+ "20": "80px",
221
+ "24": "96px",
222
+ "3": "12px",
223
+ "4": "16px",
224
+ "5": "20px",
225
+ "6": "24px",
226
+ "8": "32px"
227
+ }
228
+ };
229
+ var defaultTheme = {
230
+ light: theme,
231
+ dark: themeDark
232
+ };
233
+ var ThemeContext = react.createContext(defaultTheme);
234
+ ThemeContext.displayName = "ThemeContext";
235
+ var ColorSchemeOverrideContext = react.createContext(null);
236
+ ColorSchemeOverrideContext.displayName = "ColorSchemeOverrideContext";
237
+ var isWeb = reactNative.Platform.OS === "web";
238
+ function readWebScheme() {
239
+ if (typeof document === "undefined") {
240
+ return "light";
241
+ }
242
+ const root = document.documentElement;
243
+ if (root.classList.contains("dark")) {
244
+ return "dark";
245
+ }
246
+ if (root.getAttribute("data-theme") === "dark") {
247
+ return "dark";
248
+ }
249
+ return "light";
250
+ }
251
+ __name(readWebScheme, "readWebScheme");
252
+ function useColorScheme() {
253
+ const override = react.useContext(ColorSchemeOverrideContext);
254
+ const [scheme, setScheme] = react.useState(() => {
255
+ if (isWeb) {
256
+ return readWebScheme();
257
+ }
258
+ return reactNative.Appearance.getColorScheme() ?? "light";
259
+ });
260
+ react.useEffect(() => {
261
+ if (isWeb) {
262
+ const root = document.documentElement;
263
+ const update = /* @__PURE__ */ __name(() => setScheme(readWebScheme()), "update");
264
+ const observer = new MutationObserver(update);
265
+ observer.observe(root, { attributes: true, attributeFilter: ["class", "data-theme"] });
266
+ update();
267
+ return () => observer.disconnect();
268
+ }
269
+ const sub = reactNative.Appearance.addChangeListener(({ colorScheme }) => {
270
+ setScheme(colorScheme ?? "light");
271
+ });
272
+ return () => sub.remove();
273
+ }, []);
274
+ return override ?? scheme;
275
+ }
276
+ __name(useColorScheme, "useColorScheme");
277
+
278
+ // src/theme/use-theme-colors.ts
279
+ function useThemeColors() {
280
+ const scheme = useColorScheme();
281
+ const themePair = react.useContext(ThemeContext);
282
+ return scheme === "dark" ? themePair.dark : themePair.light;
283
+ }
284
+ __name(useThemeColors, "useThemeColors");
285
+
286
+ // src/utils/cn.ts
287
+ function cn(...inputs) {
288
+ const out = [];
289
+ for (const input of inputs) {
290
+ append(out, input);
291
+ }
292
+ return out.join(" ");
293
+ }
294
+ __name(cn, "cn");
295
+ function append(out, input) {
296
+ if (!input) {
297
+ return;
298
+ }
299
+ if (typeof input === "string") {
300
+ if (input.length > 0) {
301
+ out.push(input);
302
+ }
303
+ return;
304
+ }
305
+ if (typeof input === "number") {
306
+ return;
307
+ }
308
+ if (Array.isArray(input)) {
309
+ for (const inner of input) {
310
+ append(out, inner);
311
+ }
312
+ return;
313
+ }
314
+ if (typeof input === "object") {
315
+ for (const key of Object.keys(input)) {
316
+ if (input[key]) {
317
+ out.push(key);
318
+ }
319
+ }
320
+ }
321
+ }
322
+ __name(append, "append");
323
+ var Ctx = react.createContext(null);
324
+ function SliderGestureProvider({ children }) {
325
+ const activeCount = react.useRef(0);
326
+ const subs = react.useRef(/* @__PURE__ */ new Set());
327
+ const broadcast = react.useCallback(() => {
328
+ const isActive = activeCount.current > 0;
329
+ for (const s of subs.current) {
330
+ s(isActive);
331
+ }
332
+ }, []);
333
+ const bus = react.useMemo(
334
+ () => ({
335
+ begin: /* @__PURE__ */ __name(() => {
336
+ activeCount.current += 1;
337
+ broadcast();
338
+ let released = false;
339
+ return () => {
340
+ if (released) {
341
+ return;
342
+ }
343
+ released = true;
344
+ activeCount.current = Math.max(0, activeCount.current - 1);
345
+ broadcast();
346
+ };
347
+ }, "begin"),
348
+ subscribe: /* @__PURE__ */ __name((s) => {
349
+ subs.current.add(s);
350
+ return () => {
351
+ subs.current.delete(s);
352
+ };
353
+ }, "subscribe")
354
+ }),
355
+ [broadcast]
356
+ );
357
+ return /* @__PURE__ */ jsxRuntime.jsx(Ctx.Provider, { value: bus, children });
358
+ }
359
+ __name(SliderGestureProvider, "SliderGestureProvider");
360
+ function useSliderGesturePublisher() {
361
+ const bus = react.useContext(Ctx);
362
+ const releaseRef = react.useRef(null);
363
+ return react.useMemo(
364
+ () => ({
365
+ begin: /* @__PURE__ */ __name(() => {
366
+ if (!bus) {
367
+ return;
368
+ }
369
+ if (releaseRef.current) {
370
+ return;
371
+ }
372
+ releaseRef.current = bus.begin();
373
+ }, "begin"),
374
+ end: /* @__PURE__ */ __name(() => {
375
+ if (!bus) {
376
+ return;
377
+ }
378
+ releaseRef.current?.();
379
+ releaseRef.current = null;
380
+ }, "end")
381
+ }),
382
+ [bus]
383
+ );
384
+ }
385
+ __name(useSliderGesturePublisher, "useSliderGesturePublisher");
386
+ function useSliderInteractionActive() {
387
+ const bus = react.useContext(Ctx);
388
+ const [active, setActive] = react.useState(false);
389
+ react.useEffect(() => {
390
+ if (!bus) {
391
+ return;
392
+ }
393
+ const unsubscribe = bus.subscribe(setActive);
394
+ return unsubscribe;
395
+ }, [bus]);
396
+ return active;
397
+ }
398
+ __name(useSliderInteractionActive, "useSliderInteractionActive");
399
+ var TRACK_THICKNESS = 6;
400
+ var THUMB_SIZE = 18;
401
+ var THUMB_HIT_SLOP = 8;
402
+ var snap = /* @__PURE__ */ __name((raw, min, max, step) => {
403
+ const clamped = Math.min(max, Math.max(min, raw));
404
+ if (step <= 0) {
405
+ return clamped;
406
+ }
407
+ const stepped = Math.round((clamped - min) / step) * step + min;
408
+ return Math.min(max, Math.max(min, Number.parseFloat(stepped.toFixed(10))));
409
+ }, "snap");
410
+ var updateAt = /* @__PURE__ */ __name((values, index, next, gap) => {
411
+ const out = values.slice();
412
+ out[index] = next;
413
+ const left = index > 0 ? out[index - 1] : void 0;
414
+ const right = index < out.length - 1 ? out[index + 1] : void 0;
415
+ if (left !== void 0 && next < left + gap) {
416
+ out[index] = left + gap;
417
+ }
418
+ if (right !== void 0 && next > right - gap) {
419
+ out[index] = right - gap;
420
+ }
421
+ return out;
422
+ }, "updateAt");
423
+ var Slider = /* @__PURE__ */ __name(({
424
+ value,
425
+ defaultValue,
426
+ onChange,
427
+ onValueCommit,
428
+ onInteractionStart,
429
+ onInteractionEnd,
430
+ min = 0,
431
+ max = 100,
432
+ step = 1,
433
+ minStepsBetweenThumbs = 0,
434
+ orientation = "horizontal",
435
+ dir = "ltr",
436
+ inverted = false,
437
+ disabled = false,
438
+ ariaLabelForThumb,
439
+ length = 200,
440
+ className,
441
+ testID,
442
+ ...rest
443
+ }) => {
444
+ const colors = useThemeColors();
445
+ const ariaLabel = rest["aria-label"];
446
+ const isVertical = orientation === "vertical";
447
+ const reversed = isVertical ? Boolean(inverted) : dir === "rtl" ? !inverted : Boolean(inverted);
448
+ const gap = step * minStepsBetweenThumbs;
449
+ const initial = (defaultValue ?? value ?? [min]).map((v) => snap(v, min, max, step));
450
+ const [inner, setInner] = react.useState(initial);
451
+ const isControlled = value !== void 0;
452
+ const current = isControlled ? value.map((v) => snap(v, min, max, step)) : inner;
453
+ const trackRef = react.useRef(null);
454
+ const trackRectRef = react.useRef(null);
455
+ const measure = react.useCallback(() => {
456
+ const node = trackRef.current;
457
+ if (!node) {
458
+ return;
459
+ }
460
+ if (reactNative.Platform.OS === "web") {
461
+ const webNode = node;
462
+ if (typeof window === "undefined" || typeof webNode.getBoundingClientRect !== "function") {
463
+ return;
464
+ }
465
+ const rect = webNode.getBoundingClientRect();
466
+ trackRectRef.current = { x: rect.left, y: rect.top, width: rect.width, height: rect.height };
467
+ return;
468
+ }
469
+ if (typeof node.measureInWindow === "function") {
470
+ node.measureInWindow((x, y, width, height) => {
471
+ trackRectRef.current = { x, y, width, height };
472
+ });
473
+ }
474
+ }, []);
475
+ react.useEffect(() => {
476
+ if (reactNative.Platform.OS !== "web") {
477
+ return;
478
+ }
479
+ measure();
480
+ window.addEventListener("resize", measure);
481
+ return () => window.removeEventListener("resize", measure);
482
+ }, [measure]);
483
+ const setValues = react.useCallback(
484
+ (next) => {
485
+ if (!isControlled) {
486
+ setInner(next);
487
+ }
488
+ onChange?.(next);
489
+ },
490
+ [isControlled, onChange]
491
+ );
492
+ const commitValues = react.useCallback(
493
+ (next) => {
494
+ onValueCommit?.(next);
495
+ },
496
+ [onValueCommit]
497
+ );
498
+ const valueFromClient = react.useCallback(
499
+ (clientX, clientY) => {
500
+ const rect = trackRectRef.current;
501
+ if (!rect) {
502
+ return min;
503
+ }
504
+ const len = isVertical ? rect.height : rect.width;
505
+ if (len <= 0) {
506
+ return min;
507
+ }
508
+ const offset = isVertical ? clientY - rect.y : clientX - rect.x;
509
+ let ratio = offset / len;
510
+ ratio = Math.min(1, Math.max(0, ratio));
511
+ if (isVertical) {
512
+ ratio = 1 - ratio;
513
+ }
514
+ if (reversed) {
515
+ ratio = 1 - ratio;
516
+ }
517
+ const raw = min + ratio * (max - min);
518
+ return snap(raw, min, max, step);
519
+ },
520
+ [isVertical, reversed, min, max, step]
521
+ );
522
+ const closestThumbIndex = react.useCallback(
523
+ (target) => {
524
+ let best = 0;
525
+ let bestDelta = Number.POSITIVE_INFINITY;
526
+ for (let i = 0; i < current.length; i += 1) {
527
+ const cv = current[i];
528
+ if (cv === void 0) {
529
+ continue;
530
+ }
531
+ const delta = Math.abs(cv - target);
532
+ if (delta < bestDelta) {
533
+ best = i;
534
+ bestDelta = delta;
535
+ }
536
+ }
537
+ return best;
538
+ },
539
+ [current]
540
+ );
541
+ const draggingRef = react.useRef(null);
542
+ const gesturePublisher = useSliderGesturePublisher();
543
+ const onTrackPointerDown = react.useCallback(
544
+ (event) => {
545
+ if (disabled) {
546
+ return;
547
+ }
548
+ measure();
549
+ const targetValue = valueFromClient(event.clientX, event.clientY);
550
+ const idx = closestThumbIndex(targetValue);
551
+ const next = updateAt(current, idx, targetValue, gap);
552
+ setValues(next);
553
+ draggingRef.current = { index: idx, pointerId: event.pointerId };
554
+ event.currentTarget.setPointerCapture?.(event.pointerId);
555
+ gesturePublisher.begin();
556
+ onInteractionStart?.();
557
+ },
558
+ [
559
+ disabled,
560
+ measure,
561
+ valueFromClient,
562
+ closestThumbIndex,
563
+ current,
564
+ gap,
565
+ setValues,
566
+ gesturePublisher,
567
+ onInteractionStart
568
+ ]
569
+ );
570
+ const onTrackPointerMove = react.useCallback(
571
+ (event) => {
572
+ const drag = draggingRef.current;
573
+ if (!drag || drag.pointerId !== event.pointerId) {
574
+ return;
575
+ }
576
+ const targetValue = valueFromClient(event.clientX, event.clientY);
577
+ const next = updateAt(current, drag.index, targetValue, gap);
578
+ setValues(next);
579
+ },
580
+ [valueFromClient, current, gap, setValues]
581
+ );
582
+ const onTrackPointerUp = react.useCallback(
583
+ (event) => {
584
+ const drag = draggingRef.current;
585
+ if (!drag || drag.pointerId !== event.pointerId) {
586
+ return;
587
+ }
588
+ draggingRef.current = null;
589
+ commitValues(current);
590
+ gesturePublisher.end();
591
+ onInteractionEnd?.();
592
+ },
593
+ [commitValues, current, gesturePublisher, onInteractionEnd]
594
+ );
595
+ const handleThumbKeyDown = react.useCallback(
596
+ (index) => (event) => {
597
+ if (disabled) {
598
+ return;
599
+ }
600
+ const cv = current[index];
601
+ if (cv === void 0) {
602
+ return;
603
+ }
604
+ const range = max - min;
605
+ const big = Math.max(step * 10, range / 10);
606
+ const arrowSign = /* @__PURE__ */ __name((key) => {
607
+ const base = key === "inc" ? 1 : -1;
608
+ return reversed ? -base : base;
609
+ }, "arrowSign");
610
+ let nextValue = cv;
611
+ switch (event.key) {
612
+ case "ArrowRight":
613
+ case "ArrowUp":
614
+ nextValue = cv + step * arrowSign("inc");
615
+ break;
616
+ case "ArrowLeft":
617
+ case "ArrowDown":
618
+ nextValue = cv + step * arrowSign("dec");
619
+ break;
620
+ case "PageUp":
621
+ nextValue = cv + big * arrowSign("inc");
622
+ break;
623
+ case "PageDown":
624
+ nextValue = cv + big * arrowSign("dec");
625
+ break;
626
+ case "Home":
627
+ nextValue = min;
628
+ break;
629
+ case "End":
630
+ nextValue = max;
631
+ break;
632
+ default:
633
+ return;
634
+ }
635
+ event.preventDefault();
636
+ const snapped = snap(nextValue, min, max, step);
637
+ const next = updateAt(current, index, snapped, gap);
638
+ setValues(next);
639
+ commitValues(next);
640
+ },
641
+ [disabled, current, max, min, step, reversed, gap, setValues, commitValues]
642
+ );
643
+ const pctSig = /* @__PURE__ */ __name((n) => `${Math.round(n * 1e4) / 1e4}%`, "pctSig");
644
+ const thumbPositionStyle = /* @__PURE__ */ __name((val) => {
645
+ const ratio = (val - min) / (max - min || 1);
646
+ const offset = pctSig((reversed ? 1 - ratio : ratio) * 100);
647
+ if (isVertical) {
648
+ const verticalOffset = pctSig((reversed ? ratio : 1 - ratio) * 100);
649
+ return {
650
+ position: "absolute",
651
+ top: verticalOffset,
652
+ left: pctSig(50),
653
+ marginLeft: -THUMB_SIZE / 2,
654
+ marginTop: -THUMB_SIZE / 2
655
+ };
656
+ }
657
+ return {
658
+ position: "absolute",
659
+ left: offset,
660
+ top: pctSig(50),
661
+ marginLeft: -THUMB_SIZE / 2,
662
+ marginTop: -THUMB_SIZE / 2
663
+ };
664
+ }, "thumbPositionStyle");
665
+ const sortedValues = react.useMemo(() => current.slice().sort((a, b) => a - b), [current]);
666
+ const isSingle = sortedValues.length <= 1;
667
+ const fillStart = isSingle ? min : sortedValues[0] ?? min;
668
+ const fillEnd = isSingle ? sortedValues[0] ?? min : sortedValues[sortedValues.length - 1] ?? min;
669
+ const startRatio = (fillStart - min) / (max - min || 1);
670
+ const endRatio = (fillEnd - min) / (max - min || 1);
671
+ const pct = /* @__PURE__ */ __name((n) => `${Math.round(n * 1e4) / 1e4}%`, "pct");
672
+ const rangeStyle = isVertical ? {
673
+ position: "absolute",
674
+ left: 0,
675
+ right: 0,
676
+ bottom: pct((reversed ? 1 - endRatio : startRatio) * 100),
677
+ top: pct((reversed ? startRatio : 1 - endRatio) * 100),
678
+ backgroundColor: disabled ? colors.color.neutral["400"] : colors.semantic.interactive.primary
679
+ } : {
680
+ position: "absolute",
681
+ top: 0,
682
+ bottom: 0,
683
+ left: pct((reversed ? 1 - endRatio : startRatio) * 100),
684
+ right: pct((reversed ? startRatio : 1 - endRatio) * 100),
685
+ backgroundColor: disabled ? colors.color.neutral["400"] : colors.semantic.interactive.primary
686
+ };
687
+ const trackStyle = isVertical ? {
688
+ width: TRACK_THICKNESS,
689
+ height: length,
690
+ backgroundColor: colors.semantic.background.subtle,
691
+ borderRadius: TRACK_THICKNESS / 2,
692
+ position: "relative"
693
+ // No overflow: hidden here — the thumb is a child and we don't
694
+ // want it clipped at the track's edge. The fill below sits in
695
+ // its own absolutely-positioned slot inside the track and
696
+ // already paints within the track's rounded corners thanks to
697
+ // matching borderRadius, so we don't need to clip.
698
+ } : {
699
+ height: TRACK_THICKNESS,
700
+ width: "100%",
701
+ backgroundColor: colors.semantic.background.subtle,
702
+ borderRadius: TRACK_THICKNESS / 2,
703
+ position: "relative"
704
+ // No overflow: hidden here — the thumb is a child and we don't
705
+ // want it clipped at the track's edge. The fill below sits in
706
+ // its own absolutely-positioned slot inside the track and
707
+ // already paints within the track's rounded corners thanks to
708
+ // matching borderRadius, so we don't need to clip.
709
+ };
710
+ const containerStyle = isVertical ? {
711
+ flexDirection: "column",
712
+ alignItems: "center",
713
+ justifyContent: "center",
714
+ paddingVertical: THUMB_HIT_SLOP,
715
+ paddingHorizontal: THUMB_SIZE,
716
+ opacity: disabled ? 0.5 : 1
717
+ } : {
718
+ flexDirection: "row",
719
+ alignItems: "center",
720
+ paddingVertical: THUMB_HIT_SLOP,
721
+ paddingHorizontal: THUMB_SIZE / 2,
722
+ opacity: disabled ? 0.5 : 1
723
+ };
724
+ const onTrackResponderGrant = react.useCallback(
725
+ (event) => {
726
+ if (disabled) {
727
+ return;
728
+ }
729
+ measure();
730
+ const { pageX, pageY } = event.nativeEvent;
731
+ const targetValue = valueFromClient(pageX, pageY);
732
+ const idx = closestThumbIndex(targetValue);
733
+ const next = updateAt(current, idx, targetValue, gap);
734
+ setValues(next);
735
+ draggingRef.current = { index: idx, pointerId: 0 };
736
+ gesturePublisher.begin();
737
+ onInteractionStart?.();
738
+ },
739
+ [
740
+ disabled,
741
+ measure,
742
+ valueFromClient,
743
+ closestThumbIndex,
744
+ current,
745
+ gap,
746
+ setValues,
747
+ gesturePublisher,
748
+ onInteractionStart
749
+ ]
750
+ );
751
+ const onTrackResponderMove = react.useCallback(
752
+ (event) => {
753
+ if (!draggingRef.current) {
754
+ return;
755
+ }
756
+ const { pageX, pageY } = event.nativeEvent;
757
+ const targetValue = valueFromClient(pageX, pageY);
758
+ const next = updateAt(current, draggingRef.current.index, targetValue, gap);
759
+ setValues(next);
760
+ },
761
+ [valueFromClient, current, gap, setValues]
762
+ );
763
+ const onTrackResponderRelease = react.useCallback(() => {
764
+ if (!draggingRef.current) {
765
+ return;
766
+ }
767
+ draggingRef.current = null;
768
+ commitValues(current);
769
+ gesturePublisher.end();
770
+ onInteractionEnd?.();
771
+ }, [commitValues, current, gesturePublisher, onInteractionEnd]);
772
+ const trackPointerProps = reactNative.Platform.OS === "web" ? {
773
+ onPointerDown: onTrackPointerDown,
774
+ onPointerMove: onTrackPointerMove,
775
+ onPointerUp: onTrackPointerUp,
776
+ onPointerCancel: onTrackPointerUp
777
+ } : {
778
+ // Capture variants run BEFORE non-capture handlers and
779
+ // walk root → leaf, so they win the gesture against an
780
+ // ancestor ScrollView whose own `onStartShould` would
781
+ // otherwise claim the touch first. Without these, a
782
+ // vertical slider inside a vertical ScrollView lets the
783
+ // ScrollView swallow the drag.
784
+ onStartShouldSetResponderCapture: /* @__PURE__ */ __name(() => !disabled, "onStartShouldSetResponderCapture"),
785
+ onMoveShouldSetResponderCapture: /* @__PURE__ */ __name(() => !disabled, "onMoveShouldSetResponderCapture"),
786
+ onStartShouldSetResponder: /* @__PURE__ */ __name(() => !disabled, "onStartShouldSetResponder"),
787
+ onMoveShouldSetResponder: /* @__PURE__ */ __name(() => !disabled, "onMoveShouldSetResponder"),
788
+ onResponderGrant: onTrackResponderGrant,
789
+ onResponderMove: onTrackResponderMove,
790
+ onResponderRelease: onTrackResponderRelease,
791
+ onResponderTerminate: onTrackResponderRelease,
792
+ onResponderTerminationRequest: /* @__PURE__ */ __name(() => false, "onResponderTerminationRequest")
793
+ };
794
+ return /* @__PURE__ */ jsxRuntime.jsx(
795
+ reactNative.View,
796
+ {
797
+ ...testID !== void 0 ? { testID } : {},
798
+ role: "group",
799
+ accessibilityRole: "adjustable",
800
+ ...ariaLabel !== void 0 ? { "aria-label": ariaLabel, accessibilityLabel: ariaLabel } : {},
801
+ ...disabled ? { "aria-disabled": true } : {},
802
+ className: cn(
803
+ isVertical ? "flex-col items-center" : "flex-row items-center",
804
+ disabled ? "opacity-50" : void 0,
805
+ className
806
+ ),
807
+ style: containerStyle,
808
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
809
+ reactNative.View,
810
+ {
811
+ ref: trackRef,
812
+ onLayout: measure,
813
+ ...trackPointerProps,
814
+ className: cn("relative bg-neutral-200 rounded-full"),
815
+ style: trackStyle,
816
+ children: [
817
+ /* @__PURE__ */ jsxRuntime.jsx(
818
+ reactNative.View,
819
+ {
820
+ pointerEvents: "none",
821
+ style: {
822
+ position: "absolute",
823
+ top: 0,
824
+ left: 0,
825
+ right: 0,
826
+ bottom: 0,
827
+ borderRadius: TRACK_THICKNESS / 2,
828
+ overflow: "hidden"
829
+ },
830
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: rangeStyle })
831
+ }
832
+ ),
833
+ current.map((val, index) => {
834
+ const ratio = (val - min) / (max - min || 1);
835
+ const thumbProps = {
836
+ role: "slider",
837
+ accessibilityRole: "adjustable",
838
+ "aria-valuemin": min,
839
+ "aria-valuemax": max,
840
+ "aria-valuenow": val,
841
+ "aria-orientation": orientation,
842
+ "aria-label": ariaLabelForThumb?.(index) ?? ariaLabel,
843
+ tabIndex: disabled ? -1 : 0,
844
+ onKeyDown: handleThumbKeyDown(index),
845
+ "data-thumb-index": index,
846
+ "data-value": val,
847
+ "data-ratio": ratio
848
+ };
849
+ return /* @__PURE__ */ jsxRuntime.jsx(
850
+ reactNative.View,
851
+ {
852
+ ...thumbProps,
853
+ style: [
854
+ thumbPositionStyle(val),
855
+ {
856
+ width: THUMB_SIZE,
857
+ height: THUMB_SIZE,
858
+ borderRadius: THUMB_SIZE / 2,
859
+ backgroundColor: colors.semantic.background.elevated,
860
+ borderWidth: 2,
861
+ borderColor: disabled ? colors.color.neutral["400"] : colors.semantic.interactive.primary,
862
+ ...reactNative.Platform.OS === "web" ? { boxShadow: "0 1px 2px rgba(0,0,0,0.1)" } : {}
863
+ }
864
+ ]
865
+ },
866
+ `thumb-${index}`
867
+ );
868
+ })
869
+ ]
870
+ }
871
+ )
872
+ }
873
+ );
874
+ }, "Slider");
875
+
876
+ exports.Slider = Slider;
877
+ exports.SliderGestureProvider = SliderGestureProvider;
878
+ exports.useSliderInteractionActive = useSliderInteractionActive;
879
+ //# sourceMappingURL=index.cjs.map
880
+ //# sourceMappingURL=index.cjs.map