@womp/kookie-ui 0.16.0 → 0.17.0

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 (703) hide show
  1. package/codemods/space-0.17.py +71 -0
  2. package/components.css +2159 -3085
  3. package/dist/cjs/components/_internal/base-button.d.ts +0 -2
  4. package/dist/cjs/components/_internal/base-button.d.ts.map +1 -1
  5. package/dist/cjs/components/_internal/base-button.js +1 -1
  6. package/dist/cjs/components/_internal/base-button.js.map +3 -3
  7. package/dist/cjs/components/_internal/base-button.props.d.ts +0 -17
  8. package/dist/cjs/components/_internal/base-button.props.d.ts.map +1 -1
  9. package/dist/cjs/components/_internal/base-button.props.js +1 -1
  10. package/dist/cjs/components/_internal/base-button.props.js.map +3 -3
  11. package/dist/cjs/components/_internal/base-menu.props.d.ts +0 -10
  12. package/dist/cjs/components/_internal/base-menu.props.d.ts.map +1 -1
  13. package/dist/cjs/components/_internal/base-menu.props.js +1 -1
  14. package/dist/cjs/components/_internal/base-menu.props.js.map +3 -3
  15. package/dist/cjs/components/_internal/base-menu.utils.d.ts +3 -9
  16. package/dist/cjs/components/_internal/base-menu.utils.d.ts.map +1 -1
  17. package/dist/cjs/components/_internal/base-menu.utils.js +1 -1
  18. package/dist/cjs/components/_internal/base-menu.utils.js.map +3 -3
  19. package/dist/cjs/components/_internal/base-tab-list.props.d.ts +0 -5
  20. package/dist/cjs/components/_internal/base-tab-list.props.d.ts.map +1 -1
  21. package/dist/cjs/components/_internal/base-tab-list.props.js +1 -1
  22. package/dist/cjs/components/_internal/base-tab-list.props.js.map +3 -3
  23. package/dist/cjs/components/_internal/menu-context.d.ts +2 -3
  24. package/dist/cjs/components/_internal/menu-context.d.ts.map +1 -1
  25. package/dist/cjs/components/_internal/menu-context.js +1 -1
  26. package/dist/cjs/components/_internal/menu-context.js.map +4 -4
  27. package/dist/cjs/components/_internal/pane-chrome.d.ts +14 -2
  28. package/dist/cjs/components/_internal/pane-chrome.d.ts.map +1 -1
  29. package/dist/cjs/components/_internal/pane-chrome.js +1 -1
  30. package/dist/cjs/components/_internal/pane-chrome.js.map +3 -3
  31. package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
  32. package/dist/cjs/components/_internal/shell-sidebar.js.map +3 -3
  33. package/dist/cjs/components/accordion.d.ts.map +1 -1
  34. package/dist/cjs/components/accordion.js +1 -1
  35. package/dist/cjs/components/accordion.js.map +3 -3
  36. package/dist/cjs/components/accordion.props.d.ts +0 -7
  37. package/dist/cjs/components/accordion.props.d.ts.map +1 -1
  38. package/dist/cjs/components/accordion.props.js +1 -1
  39. package/dist/cjs/components/accordion.props.js.map +3 -3
  40. package/dist/cjs/components/alert-dialog.d.ts.map +1 -1
  41. package/dist/cjs/components/alert-dialog.js +1 -1
  42. package/dist/cjs/components/alert-dialog.js.map +3 -3
  43. package/dist/cjs/components/alert-dialog.props.d.ts +0 -5
  44. package/dist/cjs/components/alert-dialog.props.d.ts.map +1 -1
  45. package/dist/cjs/components/alert-dialog.props.js +1 -1
  46. package/dist/cjs/components/alert-dialog.props.js.map +3 -3
  47. package/dist/cjs/components/badge.js +1 -1
  48. package/dist/cjs/components/badge.js.map +3 -3
  49. package/dist/cjs/components/button.js +2 -2
  50. package/dist/cjs/components/button.js.map +3 -3
  51. package/dist/cjs/components/button.props.js +1 -1
  52. package/dist/cjs/components/button.props.js.map +3 -3
  53. package/dist/cjs/components/card.d.ts.map +1 -1
  54. package/dist/cjs/components/card.js +1 -1
  55. package/dist/cjs/components/card.js.map +3 -3
  56. package/dist/cjs/components/card.props.d.ts +0 -5
  57. package/dist/cjs/components/card.props.d.ts.map +1 -1
  58. package/dist/cjs/components/card.props.js +1 -1
  59. package/dist/cjs/components/card.props.js.map +3 -3
  60. package/dist/cjs/components/chatbar.d.ts +0 -2
  61. package/dist/cjs/components/chatbar.d.ts.map +1 -1
  62. package/dist/cjs/components/chatbar.js +2 -2
  63. package/dist/cjs/components/chatbar.js.map +3 -3
  64. package/dist/cjs/components/checkbox-cards.d.ts.map +1 -1
  65. package/dist/cjs/components/checkbox-cards.js +1 -1
  66. package/dist/cjs/components/checkbox-cards.js.map +4 -4
  67. package/dist/cjs/components/checkbox-cards.props.d.ts +0 -5
  68. package/dist/cjs/components/checkbox-cards.props.d.ts.map +1 -1
  69. package/dist/cjs/components/checkbox-cards.props.js +1 -1
  70. package/dist/cjs/components/checkbox-cards.props.js.map +3 -3
  71. package/dist/cjs/components/combobox.d.ts.map +1 -1
  72. package/dist/cjs/components/combobox.js +1 -1
  73. package/dist/cjs/components/combobox.js.map +3 -3
  74. package/dist/cjs/components/combobox.props.d.ts +0 -9
  75. package/dist/cjs/components/combobox.props.d.ts.map +1 -1
  76. package/dist/cjs/components/combobox.props.js +1 -1
  77. package/dist/cjs/components/combobox.props.js.map +3 -3
  78. package/dist/cjs/components/context-menu.d.ts.map +1 -1
  79. package/dist/cjs/components/context-menu.js +1 -1
  80. package/dist/cjs/components/context-menu.js.map +4 -4
  81. package/dist/cjs/components/context-menu.props.js +1 -1
  82. package/dist/cjs/components/context-menu.props.js.map +3 -3
  83. package/dist/cjs/components/dialog.d.ts.map +1 -1
  84. package/dist/cjs/components/dialog.js +1 -1
  85. package/dist/cjs/components/dialog.js.map +3 -3
  86. package/dist/cjs/components/dialog.props.d.ts +0 -5
  87. package/dist/cjs/components/dialog.props.d.ts.map +1 -1
  88. package/dist/cjs/components/dialog.props.js +1 -1
  89. package/dist/cjs/components/dialog.props.js.map +3 -3
  90. package/dist/cjs/components/dropdown-menu.d.ts.map +1 -1
  91. package/dist/cjs/components/dropdown-menu.js +1 -1
  92. package/dist/cjs/components/dropdown-menu.js.map +4 -4
  93. package/dist/cjs/components/dropdown-menu.props.js +1 -1
  94. package/dist/cjs/components/dropdown-menu.props.js.map +3 -3
  95. package/dist/cjs/components/hover-card.js +1 -1
  96. package/dist/cjs/components/hover-card.js.map +3 -3
  97. package/dist/cjs/components/icon-button.js +2 -2
  98. package/dist/cjs/components/icon-button.js.map +3 -3
  99. package/dist/cjs/components/icon-button.props.js +1 -1
  100. package/dist/cjs/components/icon-button.props.js.map +3 -3
  101. package/dist/cjs/components/index.js +5 -5
  102. package/dist/cjs/components/index.js.map +4 -4
  103. package/dist/cjs/components/message-scroller.js +2 -2
  104. package/dist/cjs/components/message-scroller.js.map +3 -3
  105. package/dist/cjs/components/notice.d.ts +0 -2
  106. package/dist/cjs/components/notice.d.ts.map +1 -1
  107. package/dist/cjs/components/notice.js +2 -2
  108. package/dist/cjs/components/notice.js.map +3 -3
  109. package/dist/cjs/components/popover.d.ts.map +1 -1
  110. package/dist/cjs/components/popover.js +1 -1
  111. package/dist/cjs/components/popover.js.map +3 -3
  112. package/dist/cjs/components/popover.props.d.ts +0 -5
  113. package/dist/cjs/components/popover.props.d.ts.map +1 -1
  114. package/dist/cjs/components/popover.props.js +1 -1
  115. package/dist/cjs/components/popover.props.js.map +3 -3
  116. package/dist/cjs/components/radio-cards.d.ts.map +1 -1
  117. package/dist/cjs/components/radio-cards.js +1 -1
  118. package/dist/cjs/components/radio-cards.js.map +4 -4
  119. package/dist/cjs/components/radio-cards.props.d.ts +0 -5
  120. package/dist/cjs/components/radio-cards.props.d.ts.map +1 -1
  121. package/dist/cjs/components/radio-cards.props.js +1 -1
  122. package/dist/cjs/components/radio-cards.props.js.map +3 -3
  123. package/dist/cjs/components/schemas/base-button.schema.d.ts +0 -4
  124. package/dist/cjs/components/schemas/base-button.schema.d.ts.map +1 -1
  125. package/dist/cjs/components/schemas/base-button.schema.js +1 -1
  126. package/dist/cjs/components/schemas/base-button.schema.js.map +2 -2
  127. package/dist/cjs/components/schemas/button.schema.d.ts +0 -4
  128. package/dist/cjs/components/schemas/button.schema.d.ts.map +1 -1
  129. package/dist/cjs/components/schemas/button.schema.js +1 -1
  130. package/dist/cjs/components/schemas/button.schema.js.map +2 -2
  131. package/dist/cjs/components/schemas/icon-button.schema.d.ts +0 -4
  132. package/dist/cjs/components/schemas/icon-button.schema.d.ts.map +1 -1
  133. package/dist/cjs/components/schemas/icon-button.schema.js +1 -1
  134. package/dist/cjs/components/schemas/icon-button.schema.js.map +2 -2
  135. package/dist/cjs/components/schemas/index.js +1 -1
  136. package/dist/cjs/components/schemas/index.js.map +2 -2
  137. package/dist/cjs/components/schemas/toggle-button.schema.d.ts +0 -4
  138. package/dist/cjs/components/schemas/toggle-button.schema.d.ts.map +1 -1
  139. package/dist/cjs/components/schemas/toggle-button.schema.js +1 -1
  140. package/dist/cjs/components/schemas/toggle-button.schema.js.map +2 -2
  141. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts +0 -4
  142. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  143. package/dist/cjs/components/schemas/toggle-icon-button.schema.js +1 -1
  144. package/dist/cjs/components/schemas/toggle-icon-button.schema.js.map +2 -2
  145. package/dist/cjs/components/segmented-control.d.ts.map +1 -1
  146. package/dist/cjs/components/segmented-control.js +1 -1
  147. package/dist/cjs/components/segmented-control.js.map +3 -3
  148. package/dist/cjs/components/segmented-control.props.d.ts +0 -4
  149. package/dist/cjs/components/segmented-control.props.d.ts.map +1 -1
  150. package/dist/cjs/components/segmented-control.props.js +1 -1
  151. package/dist/cjs/components/segmented-control.props.js.map +2 -2
  152. package/dist/cjs/components/select.d.ts.map +1 -1
  153. package/dist/cjs/components/select.js +1 -1
  154. package/dist/cjs/components/select.js.map +3 -3
  155. package/dist/cjs/components/select.props.d.ts +0 -4
  156. package/dist/cjs/components/select.props.d.ts.map +1 -1
  157. package/dist/cjs/components/select.props.js +1 -1
  158. package/dist/cjs/components/select.props.js.map +2 -2
  159. package/dist/cjs/components/sheet.d.ts +0 -1
  160. package/dist/cjs/components/sheet.d.ts.map +1 -1
  161. package/dist/cjs/components/sheet.js +1 -1
  162. package/dist/cjs/components/sheet.js.map +3 -3
  163. package/dist/cjs/components/shell.js +1 -1
  164. package/dist/cjs/components/shell.js.map +3 -3
  165. package/dist/cjs/components/sidebar.js +1 -1
  166. package/dist/cjs/components/sidebar.js.map +4 -4
  167. package/dist/cjs/components/switch.js.map +2 -2
  168. package/dist/cjs/components/switch.props.d.ts.map +1 -1
  169. package/dist/cjs/components/switch.props.js.map +2 -2
  170. package/dist/cjs/components/tab-nav.d.ts.map +1 -1
  171. package/dist/cjs/components/tab-nav.js +1 -1
  172. package/dist/cjs/components/tab-nav.js.map +3 -3
  173. package/dist/cjs/components/tab-nav.props.js +1 -1
  174. package/dist/cjs/components/tab-nav.props.js.map +3 -3
  175. package/dist/cjs/components/tabs.d.ts.map +1 -1
  176. package/dist/cjs/components/tabs.js +1 -1
  177. package/dist/cjs/components/tabs.js.map +3 -3
  178. package/dist/cjs/components/tabs.props.js +1 -1
  179. package/dist/cjs/components/tabs.props.js.map +3 -3
  180. package/dist/cjs/components/text-area.d.ts.map +1 -1
  181. package/dist/cjs/components/text-area.js +1 -1
  182. package/dist/cjs/components/text-area.js.map +3 -3
  183. package/dist/cjs/components/text-area.props.d.ts +0 -5
  184. package/dist/cjs/components/text-area.props.d.ts.map +1 -1
  185. package/dist/cjs/components/text-area.props.js +1 -1
  186. package/dist/cjs/components/text-area.props.js.map +3 -3
  187. package/dist/cjs/components/text-field.d.ts.map +1 -1
  188. package/dist/cjs/components/text-field.js +2 -2
  189. package/dist/cjs/components/text-field.js.map +3 -3
  190. package/dist/cjs/components/text-field.props.d.ts +0 -5
  191. package/dist/cjs/components/text-field.props.d.ts.map +1 -1
  192. package/dist/cjs/components/text-field.props.js +1 -1
  193. package/dist/cjs/components/text-field.props.js.map +3 -3
  194. package/dist/cjs/components/theme-panel.d.ts.map +1 -1
  195. package/dist/cjs/components/theme-panel.js +3 -3
  196. package/dist/cjs/components/theme-panel.js.map +4 -4
  197. package/dist/cjs/components/theme.d.ts +0 -6
  198. package/dist/cjs/components/theme.d.ts.map +1 -1
  199. package/dist/cjs/components/theme.js +1 -1
  200. package/dist/cjs/components/theme.js.map +3 -3
  201. package/dist/cjs/components/theme.props.d.ts +0 -19
  202. package/dist/cjs/components/theme.props.d.ts.map +1 -1
  203. package/dist/cjs/components/theme.props.js +1 -1
  204. package/dist/cjs/components/theme.props.js.map +3 -3
  205. package/dist/cjs/components/toggle-button.js +3 -3
  206. package/dist/cjs/components/toggle-button.js.map +3 -3
  207. package/dist/cjs/components/toggle-icon-button.js +3 -3
  208. package/dist/cjs/components/toggle-icon-button.js.map +3 -3
  209. package/dist/cjs/components/toolbar.d.ts.map +1 -1
  210. package/dist/cjs/components/toolbar.js +2 -2
  211. package/dist/cjs/components/toolbar.js.map +4 -4
  212. package/dist/cjs/components/toolbar.props.d.ts +2 -1
  213. package/dist/cjs/components/toolbar.props.d.ts.map +1 -1
  214. package/dist/cjs/components/toolbar.props.js.map +2 -2
  215. package/dist/cjs/components/tooltip.js +1 -1
  216. package/dist/cjs/components/tooltip.js.map +3 -3
  217. package/dist/cjs/components/virtual-menu.d.ts.map +1 -1
  218. package/dist/cjs/components/virtual-menu.js +1 -1
  219. package/dist/cjs/components/virtual-menu.js.map +4 -4
  220. package/dist/cjs/index.js +7 -7
  221. package/dist/cjs/index.js.map +4 -4
  222. package/dist/cjs/props/index.js +1 -1
  223. package/dist/cjs/props/index.js.map +3 -3
  224. package/dist/esm/chunk-2CNQGDY3.js +2 -0
  225. package/dist/esm/{chunk-MNC2O6QW.js.map → chunk-2CNQGDY3.js.map} +3 -3
  226. package/dist/esm/chunk-2HUAVZZL.js +2 -0
  227. package/dist/esm/chunk-2HUAVZZL.js.map +7 -0
  228. package/dist/esm/chunk-2O3WL25H.js +2 -0
  229. package/dist/esm/chunk-2O3WL25H.js.map +7 -0
  230. package/dist/esm/{chunk-MD3QCXRD.js → chunk-4STOJSJZ.js} +2 -2
  231. package/dist/esm/{chunk-R4CN4Q3G.js → chunk-534LGOWC.js} +2 -2
  232. package/dist/esm/chunk-5LGWS5QS.js +2 -0
  233. package/dist/esm/chunk-5LGWS5QS.js.map +7 -0
  234. package/dist/esm/{chunk-7UW7D77E.js → chunk-5UU2IMGX.js} +2 -2
  235. package/dist/esm/chunk-655TAWHX.js +2 -0
  236. package/dist/esm/chunk-655TAWHX.js.map +7 -0
  237. package/dist/esm/{chunk-MQT3YJKY.js → chunk-6HRBG5H2.js} +2 -2
  238. package/dist/esm/chunk-6VPYP3VN.js +2 -0
  239. package/dist/esm/chunk-6VPYP3VN.js.map +7 -0
  240. package/dist/esm/{chunk-PTEAQFHI.js → chunk-6WFEMPCF.js} +2 -2
  241. package/dist/esm/chunk-6XHM724Y.js +2 -0
  242. package/dist/esm/chunk-6XHM724Y.js.map +7 -0
  243. package/dist/esm/chunk-6YWJUNMB.js +2 -0
  244. package/dist/esm/chunk-6YWJUNMB.js.map +7 -0
  245. package/dist/esm/chunk-AHOUZS3V.js +2 -0
  246. package/dist/esm/chunk-AHOUZS3V.js.map +7 -0
  247. package/dist/esm/chunk-B6RH4CTY.js +2 -0
  248. package/dist/esm/chunk-B6RH4CTY.js.map +7 -0
  249. package/dist/esm/chunk-BOLRYGFQ.js +2 -0
  250. package/dist/esm/chunk-BOLRYGFQ.js.map +7 -0
  251. package/dist/esm/chunk-BUEYZEAY.js +2 -0
  252. package/dist/esm/chunk-BUEYZEAY.js.map +7 -0
  253. package/dist/esm/chunk-CC4GNSKL.js +2 -0
  254. package/dist/esm/chunk-CC4GNSKL.js.map +7 -0
  255. package/dist/esm/chunk-CG54MBMW.js +2 -0
  256. package/dist/esm/chunk-CG54MBMW.js.map +7 -0
  257. package/dist/esm/{chunk-2PO6TZ7L.js → chunk-COSHAOEK.js} +2 -2
  258. package/dist/esm/{chunk-F2XQYWBE.js → chunk-CRYT55SY.js} +2 -2
  259. package/dist/esm/chunk-DKALDTCN.js +2 -0
  260. package/dist/esm/chunk-DKALDTCN.js.map +7 -0
  261. package/dist/esm/{chunk-ELZEAEN2.js → chunk-DP3OWU5T.js} +2 -2
  262. package/dist/esm/{chunk-UI2EFF6F.js → chunk-E3754NJZ.js} +2 -2
  263. package/dist/esm/chunk-EJOVE3JH.js +2 -0
  264. package/dist/esm/chunk-EJOVE3JH.js.map +7 -0
  265. package/dist/esm/chunk-ENPQJYXZ.js +2 -0
  266. package/dist/esm/chunk-ENPQJYXZ.js.map +7 -0
  267. package/dist/esm/chunk-EO7WQYFO.js +2 -0
  268. package/dist/esm/chunk-EO7WQYFO.js.map +7 -0
  269. package/dist/esm/chunk-EUSKAXHP.js +2 -0
  270. package/dist/esm/chunk-EUSKAXHP.js.map +7 -0
  271. package/dist/esm/chunk-FPDLBLO3.js +2 -0
  272. package/dist/esm/chunk-FPDLBLO3.js.map +7 -0
  273. package/dist/esm/{chunk-6ERCPRXX.js → chunk-FSKZAL5H.js} +2 -2
  274. package/dist/esm/chunk-GOYI2U6F.js +2 -0
  275. package/dist/esm/chunk-GOYI2U6F.js.map +7 -0
  276. package/dist/esm/chunk-HSFQO4QM.js +2 -0
  277. package/dist/esm/chunk-HSFQO4QM.js.map +7 -0
  278. package/dist/esm/chunk-IF4PYIUV.js +2 -0
  279. package/dist/esm/chunk-IF4PYIUV.js.map +7 -0
  280. package/dist/esm/chunk-IGBEDJBC.js +2 -0
  281. package/dist/esm/chunk-IGBEDJBC.js.map +7 -0
  282. package/dist/esm/chunk-JCOALADA.js +5 -0
  283. package/dist/esm/chunk-JCOALADA.js.map +7 -0
  284. package/dist/esm/{chunk-ZUOK3KFY.js → chunk-K7VO7TND.js} +1 -1
  285. package/dist/esm/{chunk-ZUOK3KFY.js.map → chunk-K7VO7TND.js.map} +2 -2
  286. package/dist/esm/{chunk-DIGT74P3.js → chunk-KPACVWV4.js} +1 -1
  287. package/dist/esm/{chunk-DIGT74P3.js.map → chunk-KPACVWV4.js.map} +2 -2
  288. package/dist/esm/chunk-KU3LLWFU.js +2 -0
  289. package/dist/esm/{chunk-UPCRXJB2.js.map → chunk-KU3LLWFU.js.map} +2 -2
  290. package/dist/esm/chunk-M55KFXYV.js +2 -0
  291. package/dist/esm/chunk-M55KFXYV.js.map +7 -0
  292. package/dist/esm/chunk-MAI7FEU7.js +2 -0
  293. package/dist/esm/chunk-MAI7FEU7.js.map +7 -0
  294. package/dist/esm/chunk-MDHXSEGH.js +2 -0
  295. package/dist/esm/chunk-MDHXSEGH.js.map +7 -0
  296. package/dist/esm/{chunk-YKGLZEXX.js → chunk-MJC4NKYG.js} +2 -2
  297. package/dist/esm/chunk-MOYLXCMW.js +2 -0
  298. package/dist/esm/chunk-MOYLXCMW.js.map +7 -0
  299. package/dist/esm/{chunk-Y4IB7KDZ.js → chunk-MZQDDG5K.js} +2 -2
  300. package/dist/esm/chunk-NCDOMH5I.js +2 -0
  301. package/dist/esm/chunk-NCDOMH5I.js.map +7 -0
  302. package/dist/esm/{chunk-DDYII5NA.js → chunk-NOSR2XWD.js} +2 -2
  303. package/dist/esm/chunk-OMUUPPJO.js +2 -0
  304. package/dist/esm/chunk-OMUUPPJO.js.map +7 -0
  305. package/dist/esm/{chunk-J43ZS6TI.js → chunk-ORMCQAPS.js} +2 -2
  306. package/dist/esm/chunk-PNIVUG5D.js +2 -0
  307. package/dist/esm/chunk-PNIVUG5D.js.map +7 -0
  308. package/dist/esm/chunk-PYYI64XK.js +2 -0
  309. package/dist/esm/chunk-PYYI64XK.js.map +7 -0
  310. package/dist/esm/chunk-Q7S5LQBQ.js +2 -0
  311. package/dist/esm/chunk-Q7S5LQBQ.js.map +7 -0
  312. package/dist/esm/chunk-QOPRXQGR.js +2 -0
  313. package/dist/esm/chunk-QOPRXQGR.js.map +7 -0
  314. package/dist/esm/{chunk-MLJLEOZ5.js → chunk-R2FUNQTI.js} +2 -2
  315. package/dist/esm/{chunk-MLJLEOZ5.js.map → chunk-R2FUNQTI.js.map} +2 -2
  316. package/dist/esm/chunk-RFURPE7W.js +10 -0
  317. package/dist/esm/chunk-RFURPE7W.js.map +7 -0
  318. package/dist/esm/chunk-RJ6SA7AY.js +2 -0
  319. package/dist/esm/chunk-RJ6SA7AY.js.map +7 -0
  320. package/dist/esm/chunk-RSJSVJ6A.js +2 -0
  321. package/dist/esm/chunk-RSJSVJ6A.js.map +7 -0
  322. package/dist/esm/chunk-SM27AC7E.js +2 -0
  323. package/dist/esm/chunk-SM27AC7E.js.map +7 -0
  324. package/dist/esm/chunk-WKMJIWFP.js +2 -0
  325. package/dist/esm/chunk-WKMJIWFP.js.map +7 -0
  326. package/dist/esm/{chunk-5RHODJDJ.js → chunk-X5KCVLKG.js} +2 -2
  327. package/dist/esm/chunk-YDRFILTX.js +2 -0
  328. package/dist/esm/chunk-YDRFILTX.js.map +7 -0
  329. package/dist/esm/chunk-YGPUKJEB.js +2 -0
  330. package/dist/esm/chunk-YGPUKJEB.js.map +7 -0
  331. package/dist/esm/{chunk-PAB6HVKC.js → chunk-YZABQ4LS.js} +2 -2
  332. package/dist/esm/components/_internal/base-button.d.ts +0 -2
  333. package/dist/esm/components/_internal/base-button.d.ts.map +1 -1
  334. package/dist/esm/components/_internal/base-button.js +1 -1
  335. package/dist/esm/components/_internal/base-button.props.d.ts +0 -17
  336. package/dist/esm/components/_internal/base-button.props.d.ts.map +1 -1
  337. package/dist/esm/components/_internal/base-button.props.js +1 -1
  338. package/dist/esm/components/_internal/base-menu.props.d.ts +0 -10
  339. package/dist/esm/components/_internal/base-menu.props.d.ts.map +1 -1
  340. package/dist/esm/components/_internal/base-menu.props.js +1 -1
  341. package/dist/esm/components/_internal/base-menu.utils.d.ts +3 -9
  342. package/dist/esm/components/_internal/base-menu.utils.d.ts.map +1 -1
  343. package/dist/esm/components/_internal/base-menu.utils.js +1 -1
  344. package/dist/esm/components/_internal/base-tab-list.props.d.ts +0 -5
  345. package/dist/esm/components/_internal/base-tab-list.props.d.ts.map +1 -1
  346. package/dist/esm/components/_internal/base-tab-list.props.js +1 -1
  347. package/dist/esm/components/_internal/menu-context.d.ts +2 -3
  348. package/dist/esm/components/_internal/menu-context.d.ts.map +1 -1
  349. package/dist/esm/components/_internal/menu-context.js +1 -1
  350. package/dist/esm/components/_internal/pane-chrome.d.ts +14 -2
  351. package/dist/esm/components/_internal/pane-chrome.d.ts.map +1 -1
  352. package/dist/esm/components/_internal/pane-chrome.js +1 -1
  353. package/dist/esm/components/_internal/shell-sidebar.js +1 -1
  354. package/dist/esm/components/accordion.d.ts.map +1 -1
  355. package/dist/esm/components/accordion.js +1 -1
  356. package/dist/esm/components/accordion.props.d.ts +0 -7
  357. package/dist/esm/components/accordion.props.d.ts.map +1 -1
  358. package/dist/esm/components/accordion.props.js +1 -1
  359. package/dist/esm/components/alert-dialog.d.ts.map +1 -1
  360. package/dist/esm/components/alert-dialog.js +1 -1
  361. package/dist/esm/components/alert-dialog.props.d.ts +0 -5
  362. package/dist/esm/components/alert-dialog.props.d.ts.map +1 -1
  363. package/dist/esm/components/alert-dialog.props.js +1 -1
  364. package/dist/esm/components/badge.js +1 -1
  365. package/dist/esm/components/button.js +1 -1
  366. package/dist/esm/components/button.props.js +1 -1
  367. package/dist/esm/components/card.d.ts.map +1 -1
  368. package/dist/esm/components/card.js +1 -1
  369. package/dist/esm/components/card.props.d.ts +0 -5
  370. package/dist/esm/components/card.props.d.ts.map +1 -1
  371. package/dist/esm/components/card.props.js +1 -1
  372. package/dist/esm/components/chatbar.d.ts +0 -2
  373. package/dist/esm/components/chatbar.d.ts.map +1 -1
  374. package/dist/esm/components/chatbar.js +1 -1
  375. package/dist/esm/components/checkbox-cards.d.ts.map +1 -1
  376. package/dist/esm/components/checkbox-cards.js +1 -1
  377. package/dist/esm/components/checkbox-cards.props.d.ts +0 -5
  378. package/dist/esm/components/checkbox-cards.props.d.ts.map +1 -1
  379. package/dist/esm/components/checkbox-cards.props.js +1 -1
  380. package/dist/esm/components/combobox.d.ts.map +1 -1
  381. package/dist/esm/components/combobox.js +1 -1
  382. package/dist/esm/components/combobox.props.d.ts +0 -9
  383. package/dist/esm/components/combobox.props.d.ts.map +1 -1
  384. package/dist/esm/components/combobox.props.js +1 -1
  385. package/dist/esm/components/context-menu.d.ts.map +1 -1
  386. package/dist/esm/components/context-menu.js +1 -1
  387. package/dist/esm/components/context-menu.props.js +1 -1
  388. package/dist/esm/components/dialog.d.ts.map +1 -1
  389. package/dist/esm/components/dialog.js +1 -1
  390. package/dist/esm/components/dialog.props.d.ts +0 -5
  391. package/dist/esm/components/dialog.props.d.ts.map +1 -1
  392. package/dist/esm/components/dialog.props.js +1 -1
  393. package/dist/esm/components/dropdown-menu.d.ts.map +1 -1
  394. package/dist/esm/components/dropdown-menu.js +1 -1
  395. package/dist/esm/components/dropdown-menu.props.js +1 -1
  396. package/dist/esm/components/hover-card.js +1 -1
  397. package/dist/esm/components/icon-button.js +1 -1
  398. package/dist/esm/components/icon-button.props.js +1 -1
  399. package/dist/esm/components/index.js +1 -1
  400. package/dist/esm/components/message-scroller.js +1 -1
  401. package/dist/esm/components/notice.d.ts +0 -2
  402. package/dist/esm/components/notice.d.ts.map +1 -1
  403. package/dist/esm/components/notice.js +1 -1
  404. package/dist/esm/components/popover.d.ts.map +1 -1
  405. package/dist/esm/components/popover.js +1 -1
  406. package/dist/esm/components/popover.props.d.ts +0 -5
  407. package/dist/esm/components/popover.props.d.ts.map +1 -1
  408. package/dist/esm/components/popover.props.js +1 -1
  409. package/dist/esm/components/radio-cards.d.ts.map +1 -1
  410. package/dist/esm/components/radio-cards.js +1 -1
  411. package/dist/esm/components/radio-cards.props.d.ts +0 -5
  412. package/dist/esm/components/radio-cards.props.d.ts.map +1 -1
  413. package/dist/esm/components/radio-cards.props.js +1 -1
  414. package/dist/esm/components/schemas/base-button.schema.d.ts +0 -4
  415. package/dist/esm/components/schemas/base-button.schema.d.ts.map +1 -1
  416. package/dist/esm/components/schemas/base-button.schema.js +1 -1
  417. package/dist/esm/components/schemas/button.schema.d.ts +0 -4
  418. package/dist/esm/components/schemas/button.schema.d.ts.map +1 -1
  419. package/dist/esm/components/schemas/button.schema.js +1 -1
  420. package/dist/esm/components/schemas/icon-button.schema.d.ts +0 -4
  421. package/dist/esm/components/schemas/icon-button.schema.d.ts.map +1 -1
  422. package/dist/esm/components/schemas/icon-button.schema.js +1 -1
  423. package/dist/esm/components/schemas/index.js +1 -1
  424. package/dist/esm/components/schemas/toggle-button.schema.d.ts +0 -4
  425. package/dist/esm/components/schemas/toggle-button.schema.d.ts.map +1 -1
  426. package/dist/esm/components/schemas/toggle-button.schema.js +1 -1
  427. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts +0 -4
  428. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  429. package/dist/esm/components/schemas/toggle-icon-button.schema.js +1 -1
  430. package/dist/esm/components/segmented-control.d.ts.map +1 -1
  431. package/dist/esm/components/segmented-control.js +1 -1
  432. package/dist/esm/components/segmented-control.props.d.ts +0 -4
  433. package/dist/esm/components/segmented-control.props.d.ts.map +1 -1
  434. package/dist/esm/components/segmented-control.props.js +1 -1
  435. package/dist/esm/components/select.d.ts.map +1 -1
  436. package/dist/esm/components/select.js +1 -1
  437. package/dist/esm/components/select.props.d.ts +0 -4
  438. package/dist/esm/components/select.props.d.ts.map +1 -1
  439. package/dist/esm/components/select.props.js +1 -1
  440. package/dist/esm/components/sheet.d.ts +0 -1
  441. package/dist/esm/components/sheet.d.ts.map +1 -1
  442. package/dist/esm/components/sheet.js +1 -1
  443. package/dist/esm/components/shell.js +1 -1
  444. package/dist/esm/components/sidebar.js +1 -1
  445. package/dist/esm/components/switch.js +1 -1
  446. package/dist/esm/components/switch.props.d.ts.map +1 -1
  447. package/dist/esm/components/switch.props.js +1 -1
  448. package/dist/esm/components/tab-nav.d.ts.map +1 -1
  449. package/dist/esm/components/tab-nav.js +1 -1
  450. package/dist/esm/components/tab-nav.props.js +1 -1
  451. package/dist/esm/components/tabs.d.ts.map +1 -1
  452. package/dist/esm/components/tabs.js +1 -1
  453. package/dist/esm/components/tabs.props.js +1 -1
  454. package/dist/esm/components/text-area.d.ts.map +1 -1
  455. package/dist/esm/components/text-area.js +1 -1
  456. package/dist/esm/components/text-area.props.d.ts +0 -5
  457. package/dist/esm/components/text-area.props.d.ts.map +1 -1
  458. package/dist/esm/components/text-area.props.js +1 -1
  459. package/dist/esm/components/text-field.d.ts.map +1 -1
  460. package/dist/esm/components/text-field.js +1 -1
  461. package/dist/esm/components/text-field.props.d.ts +0 -5
  462. package/dist/esm/components/text-field.props.d.ts.map +1 -1
  463. package/dist/esm/components/text-field.props.js +1 -1
  464. package/dist/esm/components/theme-panel.d.ts.map +1 -1
  465. package/dist/esm/components/theme-panel.js +1 -1
  466. package/dist/esm/components/theme.d.ts +0 -6
  467. package/dist/esm/components/theme.d.ts.map +1 -1
  468. package/dist/esm/components/theme.js +1 -1
  469. package/dist/esm/components/theme.props.d.ts +0 -19
  470. package/dist/esm/components/theme.props.d.ts.map +1 -1
  471. package/dist/esm/components/theme.props.js +1 -1
  472. package/dist/esm/components/toggle-button.js +1 -1
  473. package/dist/esm/components/toggle-icon-button.js +1 -1
  474. package/dist/esm/components/toolbar.d.ts.map +1 -1
  475. package/dist/esm/components/toolbar.js +1 -1
  476. package/dist/esm/components/toolbar.props.d.ts +2 -1
  477. package/dist/esm/components/toolbar.props.d.ts.map +1 -1
  478. package/dist/esm/components/toolbar.props.js +1 -1
  479. package/dist/esm/components/tooltip.js +1 -1
  480. package/dist/esm/components/virtual-menu.d.ts.map +1 -1
  481. package/dist/esm/components/virtual-menu.js +1 -1
  482. package/dist/esm/helpers/index.js +1 -1
  483. package/dist/esm/index.js +1 -1
  484. package/dist/esm/props/index.js +1 -1
  485. package/layout/components.css +48 -48
  486. package/layout/tokens.css +65 -31
  487. package/layout.css +113 -79
  488. package/package.json +2 -1
  489. package/schemas/base-button.json +0 -8
  490. package/schemas/button.json +0 -8
  491. package/schemas/icon-button.json +0 -8
  492. package/schemas/index.json +0 -40
  493. package/schemas/toggle-button.json +0 -8
  494. package/schemas/toggle-icon-button.json +0 -8
  495. package/src/components/_internal/base-button.css +19 -100
  496. package/src/components/_internal/base-button.props.ts +0 -26
  497. package/src/components/_internal/base-button.tsx +0 -6
  498. package/src/components/_internal/base-card.css +32 -194
  499. package/src/components/_internal/base-checkbox.css +16 -53
  500. package/src/components/_internal/base-dialog.css +13 -45
  501. package/src/components/_internal/base-menu.css +24 -57
  502. package/src/components/_internal/base-menu.props.ts +0 -8
  503. package/src/components/_internal/base-menu.utils.tsx +4 -15
  504. package/src/components/_internal/base-radio.css +14 -51
  505. package/src/components/_internal/base-sidebar-menu.css +21 -19
  506. package/src/components/_internal/base-sidebar.css +2 -3
  507. package/src/components/_internal/base-tab-list.css +14 -61
  508. package/src/components/_internal/base-tab-list.props.ts +0 -3
  509. package/src/components/_internal/menu-context.tsx +6 -10
  510. package/src/components/_internal/pane-chrome.tsx +40 -8
  511. package/src/components/accordion.css +17 -263
  512. package/src/components/accordion.props.tsx +0 -4
  513. package/src/components/accordion.tsx +1 -4
  514. package/src/components/alert-dialog.props.tsx +0 -4
  515. package/src/components/alert-dialog.tsx +1 -14
  516. package/src/components/avatar.css +19 -57
  517. package/src/components/badge.css +28 -41
  518. package/src/components/blockquote.css +2 -2
  519. package/src/components/button.css +13 -13
  520. package/src/components/card.props.tsx +0 -3
  521. package/src/components/card.tsx +1 -3
  522. package/src/components/chatbar.css +44 -124
  523. package/src/components/chatbar.tsx +1 -7
  524. package/src/components/checkbox-cards.css +11 -11
  525. package/src/components/checkbox-cards.props.tsx +0 -3
  526. package/src/components/checkbox-cards.tsx +0 -5
  527. package/src/components/checkbox-group.css +1 -1
  528. package/src/components/combobox.css +4 -9
  529. package/src/components/combobox.props.tsx +0 -5
  530. package/src/components/combobox.tsx +1 -11
  531. package/src/components/context-menu.tsx +6 -19
  532. package/src/components/data-list.css +4 -4
  533. package/src/components/dialog.css +0 -12
  534. package/src/components/dialog.props.tsx +0 -3
  535. package/src/components/dialog.tsx +1 -14
  536. package/src/components/dropdown-menu.css +1 -1
  537. package/src/components/dropdown-menu.tsx +5 -19
  538. package/src/components/hover-card.css +3 -3
  539. package/src/components/icon-button.css +4 -4
  540. package/src/components/image.css +1 -1
  541. package/src/components/kbd.css +14 -14
  542. package/src/components/message-scroller.css +1 -1
  543. package/src/components/navbar.css +6 -6
  544. package/src/components/notice.css +9 -15
  545. package/src/components/notice.tsx +1 -4
  546. package/src/components/popover.css +15 -37
  547. package/src/components/popover.props.tsx +0 -3
  548. package/src/components/popover.tsx +0 -5
  549. package/src/components/progress.css +0 -69
  550. package/src/components/radio-cards.css +6 -6
  551. package/src/components/radio-cards.props.tsx +0 -3
  552. package/src/components/radio-cards.tsx +0 -5
  553. package/src/components/radio-group.css +1 -1
  554. package/src/components/schemas/base-button.schema.ts +0 -9
  555. package/src/components/scroll-area.css +14 -14
  556. package/src/components/section.css +8 -8
  557. package/src/components/segmented-control.css +25 -68
  558. package/src/components/segmented-control.props.tsx +0 -2
  559. package/src/components/segmented-control.tsx +0 -4
  560. package/src/components/select.css +24 -363
  561. package/src/components/select.props.tsx +0 -2
  562. package/src/components/select.tsx +0 -2
  563. package/src/components/separator.css +3 -3
  564. package/src/components/sheet.css +0 -11
  565. package/src/components/sheet.tsx +1 -18
  566. package/src/components/shell.css +45 -30
  567. package/src/components/sidebar.css +108 -198
  568. package/src/components/skeleton.css +1 -1
  569. package/src/components/slider.css +16 -87
  570. package/src/components/spinner.css +6 -6
  571. package/src/components/switch.css +10 -37
  572. package/src/components/switch.props.tsx +0 -8
  573. package/src/components/tab-nav.tsx +1 -3
  574. package/src/components/table.css +10 -18
  575. package/src/components/tabs.tsx +1 -3
  576. package/src/components/text-area.css +41 -154
  577. package/src/components/text-area.props.tsx +0 -3
  578. package/src/components/text-area.tsx +1 -3
  579. package/src/components/text-field.css +36 -244
  580. package/src/components/text-field.props.tsx +0 -3
  581. package/src/components/text-field.tsx +1 -3
  582. package/src/components/theme-panel.css +4 -4
  583. package/src/components/theme-panel.tsx +19 -236
  584. package/src/components/theme.props.tsx +0 -15
  585. package/src/components/theme.tsx +0 -35
  586. package/src/components/toolbar.css +9 -9
  587. package/src/components/toolbar.props.tsx +2 -1
  588. package/src/components/toolbar.tsx +5 -2
  589. package/src/components/tooltip.css +1 -1
  590. package/src/components/virtual-menu.tsx +2 -4
  591. package/src/styles/tokens/base.css +0 -2
  592. package/src/styles/tokens/color.css +4 -32
  593. package/src/styles/tokens/constants.css +23 -51
  594. package/src/styles/tokens/layout.css +1 -1
  595. package/src/styles/tokens/radius.css +24 -24
  596. package/src/styles/tokens/space.css +88 -21
  597. package/src/styles/tokens/typography.css +39 -39
  598. package/styles.css +2418 -3410
  599. package/tokens/base.css +229 -283
  600. package/tokens.css +252 -318
  601. package/dist/esm/chunk-23WDP4JG.js +0 -2
  602. package/dist/esm/chunk-23WDP4JG.js.map +0 -7
  603. package/dist/esm/chunk-2IWL4V4H.js +0 -2
  604. package/dist/esm/chunk-2IWL4V4H.js.map +0 -7
  605. package/dist/esm/chunk-2MYYU7ST.js +0 -2
  606. package/dist/esm/chunk-2MYYU7ST.js.map +0 -7
  607. package/dist/esm/chunk-2NNB4ZZ5.js +0 -2
  608. package/dist/esm/chunk-2NNB4ZZ5.js.map +0 -7
  609. package/dist/esm/chunk-2NNCZM7P.js +0 -2
  610. package/dist/esm/chunk-2NNCZM7P.js.map +0 -7
  611. package/dist/esm/chunk-3PT3AOD5.js +0 -2
  612. package/dist/esm/chunk-3PT3AOD5.js.map +0 -7
  613. package/dist/esm/chunk-4EBCFKNC.js +0 -2
  614. package/dist/esm/chunk-4EBCFKNC.js.map +0 -7
  615. package/dist/esm/chunk-5PG5YGIW.js +0 -2
  616. package/dist/esm/chunk-5PG5YGIW.js.map +0 -7
  617. package/dist/esm/chunk-BDOMLGLZ.js +0 -2
  618. package/dist/esm/chunk-BDOMLGLZ.js.map +0 -7
  619. package/dist/esm/chunk-CAUFRKTK.js +0 -2
  620. package/dist/esm/chunk-CAUFRKTK.js.map +0 -7
  621. package/dist/esm/chunk-CJ4UZDW5.js +0 -2
  622. package/dist/esm/chunk-CJ4UZDW5.js.map +0 -7
  623. package/dist/esm/chunk-DD5QHU6R.js +0 -2
  624. package/dist/esm/chunk-DD5QHU6R.js.map +0 -7
  625. package/dist/esm/chunk-DQTJMIRO.js +0 -2
  626. package/dist/esm/chunk-DQTJMIRO.js.map +0 -7
  627. package/dist/esm/chunk-E5DJILUI.js +0 -2
  628. package/dist/esm/chunk-E5DJILUI.js.map +0 -7
  629. package/dist/esm/chunk-EJG2UNTM.js +0 -2
  630. package/dist/esm/chunk-EJG2UNTM.js.map +0 -7
  631. package/dist/esm/chunk-FK6F6ROH.js +0 -2
  632. package/dist/esm/chunk-FK6F6ROH.js.map +0 -7
  633. package/dist/esm/chunk-HI3JY3DJ.js +0 -2
  634. package/dist/esm/chunk-HI3JY3DJ.js.map +0 -7
  635. package/dist/esm/chunk-IMYZP5OY.js +0 -2
  636. package/dist/esm/chunk-IMYZP5OY.js.map +0 -7
  637. package/dist/esm/chunk-IYXR46Q6.js +0 -5
  638. package/dist/esm/chunk-IYXR46Q6.js.map +0 -7
  639. package/dist/esm/chunk-JGB6LNTP.js +0 -2
  640. package/dist/esm/chunk-JGB6LNTP.js.map +0 -7
  641. package/dist/esm/chunk-JLHJHYVQ.js +0 -2
  642. package/dist/esm/chunk-JLHJHYVQ.js.map +0 -7
  643. package/dist/esm/chunk-LRFAOQK6.js +0 -2
  644. package/dist/esm/chunk-LRFAOQK6.js.map +0 -7
  645. package/dist/esm/chunk-LXSARUXD.js +0 -2
  646. package/dist/esm/chunk-LXSARUXD.js.map +0 -7
  647. package/dist/esm/chunk-MNC2O6QW.js +0 -2
  648. package/dist/esm/chunk-MOMYWKIO.js +0 -2
  649. package/dist/esm/chunk-MOMYWKIO.js.map +0 -7
  650. package/dist/esm/chunk-PRRJ4WRE.js +0 -2
  651. package/dist/esm/chunk-PRRJ4WRE.js.map +0 -7
  652. package/dist/esm/chunk-QE2EF7A7.js +0 -2
  653. package/dist/esm/chunk-QE2EF7A7.js.map +0 -7
  654. package/dist/esm/chunk-QJSSCW3B.js +0 -2
  655. package/dist/esm/chunk-QJSSCW3B.js.map +0 -7
  656. package/dist/esm/chunk-QPNYHS6A.js +0 -2
  657. package/dist/esm/chunk-QPNYHS6A.js.map +0 -7
  658. package/dist/esm/chunk-RA4U6VVZ.js +0 -2
  659. package/dist/esm/chunk-RA4U6VVZ.js.map +0 -7
  660. package/dist/esm/chunk-ULSNYQOY.js +0 -2
  661. package/dist/esm/chunk-ULSNYQOY.js.map +0 -7
  662. package/dist/esm/chunk-UPCRXJB2.js +0 -2
  663. package/dist/esm/chunk-URLG45A4.js +0 -2
  664. package/dist/esm/chunk-URLG45A4.js.map +0 -7
  665. package/dist/esm/chunk-UZS3BA2Z.js +0 -2
  666. package/dist/esm/chunk-UZS3BA2Z.js.map +0 -7
  667. package/dist/esm/chunk-W7VAP3WE.js +0 -2
  668. package/dist/esm/chunk-W7VAP3WE.js.map +0 -7
  669. package/dist/esm/chunk-WGNIFXUE.js +0 -2
  670. package/dist/esm/chunk-WGNIFXUE.js.map +0 -7
  671. package/dist/esm/chunk-WNSG5P3U.js +0 -2
  672. package/dist/esm/chunk-WNSG5P3U.js.map +0 -7
  673. package/dist/esm/chunk-X3UTLDGG.js +0 -2
  674. package/dist/esm/chunk-X3UTLDGG.js.map +0 -7
  675. package/dist/esm/chunk-XCDXQLWS.js +0 -2
  676. package/dist/esm/chunk-XCDXQLWS.js.map +0 -7
  677. package/dist/esm/chunk-XKAWVGBL.js +0 -2
  678. package/dist/esm/chunk-XKAWVGBL.js.map +0 -7
  679. package/dist/esm/chunk-Y3FVBAN2.js +0 -2
  680. package/dist/esm/chunk-Y3FVBAN2.js.map +0 -7
  681. package/dist/esm/chunk-YSHEXVBI.js +0 -10
  682. package/dist/esm/chunk-YSHEXVBI.js.map +0 -7
  683. package/dist/esm/chunk-Z2LGVLUB.js +0 -2
  684. package/dist/esm/chunk-Z2LGVLUB.js.map +0 -7
  685. package/src/styles/tokens/blur.css +0 -63
  686. package/src/styles/tokens/opacity.css +0 -32
  687. package/src/styles/tokens/scaling.css +0 -17
  688. /package/dist/esm/{chunk-MD3QCXRD.js.map → chunk-4STOJSJZ.js.map} +0 -0
  689. /package/dist/esm/{chunk-R4CN4Q3G.js.map → chunk-534LGOWC.js.map} +0 -0
  690. /package/dist/esm/{chunk-7UW7D77E.js.map → chunk-5UU2IMGX.js.map} +0 -0
  691. /package/dist/esm/{chunk-MQT3YJKY.js.map → chunk-6HRBG5H2.js.map} +0 -0
  692. /package/dist/esm/{chunk-PTEAQFHI.js.map → chunk-6WFEMPCF.js.map} +0 -0
  693. /package/dist/esm/{chunk-2PO6TZ7L.js.map → chunk-COSHAOEK.js.map} +0 -0
  694. /package/dist/esm/{chunk-F2XQYWBE.js.map → chunk-CRYT55SY.js.map} +0 -0
  695. /package/dist/esm/{chunk-ELZEAEN2.js.map → chunk-DP3OWU5T.js.map} +0 -0
  696. /package/dist/esm/{chunk-UI2EFF6F.js.map → chunk-E3754NJZ.js.map} +0 -0
  697. /package/dist/esm/{chunk-6ERCPRXX.js.map → chunk-FSKZAL5H.js.map} +0 -0
  698. /package/dist/esm/{chunk-YKGLZEXX.js.map → chunk-MJC4NKYG.js.map} +0 -0
  699. /package/dist/esm/{chunk-Y4IB7KDZ.js.map → chunk-MZQDDG5K.js.map} +0 -0
  700. /package/dist/esm/{chunk-DDYII5NA.js.map → chunk-NOSR2XWD.js.map} +0 -0
  701. /package/dist/esm/{chunk-J43ZS6TI.js.map → chunk-ORMCQAPS.js.map} +0 -0
  702. /package/dist/esm/{chunk-5RHODJDJ.js.map → chunk-X5KCVLKG.js.map} +0 -0
  703. /package/dist/esm/{chunk-PAB6HVKC.js.map → chunk-YZABQ4LS.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/schemas/toggle-button.schema.ts", "../../../../src/components/schemas/button.schema.ts", "../../../../src/components/schemas/base-button.schema.ts"],
4
- "sourcesContent": ["import { z } from 'zod';\nimport { ButtonSchema } from './button.schema.js';\n\n/**\n * ToggleButton Zod schema - Single source of truth for ToggleButton component props\n *\n * ToggleButton extends Button with toggle functionality using Radix UI's Toggle primitive.\n * It provides proper accessibility announcements, controlled/uncontrolled state management,\n * and seamless integration with the existing Button component.\n *\n * Key features:\n * - Controlled and uncontrolled state management\n * - Live accessibility announcements for screen readers\n * - Automatic state validation and warnings\n * - Seamless integration with Button props and styling\n * - Proper ARIA attributes for toggle functionality\n *\n * @example\n * ```tsx\n * // Uncontrolled toggle button\n * const props = ToggleButtonSchema.parse({\n * defaultPressed: false,\n * variant: 'outline'\n * });\n *\n * // Controlled toggle button\n * const controlledProps = ToggleButtonSchema.parse({\n * pressed: true,\n * onPressedChange: (pressed) => console.log(pressed),\n * variant: 'soft'\n * });\n *\n * // Toggle button with tooltip\n * const tooltipProps = ToggleButtonSchema.parse({\n * defaultPressed: false,\n * tooltip: 'Toggle dark mode',\n * children: 'Dark Mode'\n * });\n * ```\n */\nexport const ToggleButtonSchema = ButtonSchema.extend({\n /**\n * Controlled pressed state\n * When provided, the component is controlled and the pressed state is managed externally\n */\n pressed: z.boolean().optional().describe('Controlled pressed state'),\n\n /**\n * Callback when pressed state changes\n * Called with the new pressed state when the toggle is activated\n */\n onPressedChange: z.function().optional().describe('Callback when pressed state changes'),\n\n /**\n * Default pressed state for uncontrolled usage\n * Used as the initial pressed state when the component is uncontrolled\n */\n defaultPressed: z.boolean().optional().describe('Default pressed state for uncontrolled usage'),\n})\n .refine(\n (data) => {\n // If pressed is provided, onPressedChange should also be provided for controlled usage\n if (data.pressed !== undefined && data.onPressedChange === undefined) {\n return false;\n }\n return true;\n },\n {\n message: 'When using controlled mode (pressed prop), onPressedChange must also be provided',\n path: ['onPressedChange'],\n },\n )\n .refine(\n (data) => {\n // Cannot have both controlled and uncontrolled props\n if (data.pressed !== undefined && data.defaultPressed !== undefined) {\n return false;\n }\n return true;\n },\n {\n message:\n 'Cannot use both controlled (pressed) and uncontrolled (defaultPressed) props together',\n path: ['pressed', 'defaultPressed'],\n },\n );\n\n/**\n * Type derived from ToggleButton Zod schema\n * This ensures type safety and consistency with the schema\n */\nexport type ToggleButtonProps = z.infer<typeof ToggleButtonSchema>;\n\n/**\n * Development-only helper to validate and normalize ToggleButton props\n * This function should only be used in development mode\n *\n * @param props - Props to validate and normalize\n * @returns Validated and normalized props\n *\n * @example\n * ```tsx\n * // In development, this will validate props and show helpful errors\n * const invalidProps = parseToggleButtonProps({\n * pressed: true,\n * defaultPressed: false\n * // Missing onPressedChange and conflicting controlled/uncontrolled\n * });\n * // Throws: \"Cannot use both controlled (pressed) and uncontrolled (defaultPressed) props together\"\n *\n * const validProps = parseToggleButtonProps({\n * pressed: true,\n * onPressedChange: (pressed) => setPressed(pressed)\n * });\n * ```\n */\nexport function parseToggleButtonProps(props: unknown): ToggleButtonProps {\n if (process.env.NODE_ENV === 'development') {\n return ToggleButtonSchema.parse(props);\n }\n return props as ToggleButtonProps;\n}\n", "import { z } from 'zod';\nimport { BaseButtonSchema } from './base-button.schema.js';\n\n/**\n * Button Zod schema - Single source of truth for Button component props\n *\n * The Button component is the primary interactive element in the Kookie User Interface.\n * It provides six visual variants, four sizes, comprehensive color options, and built-in\n * tooltip support. The component automatically handles icon sizing, supports responsive\n * layouts, and provides accessibility compliance out of the box.\n *\n * @example\n * ```tsx\n * // Basic button validation\n * const props = ButtonSchema.parse({ variant: 'solid', size: '2' });\n *\n * // Button with tooltip\n * const tooltipProps = ButtonSchema.parse({\n * tooltip: 'Save your progress',\n * tooltipSide: 'top'\n * });\n *\n * // Polymorphic button as link\n * const linkProps = ButtonSchema.parse({\n * as: 'a',\n * href: '/dashboard',\n * children: 'Go to Dashboard'\n * });\n * ```\n */\nexport const ButtonSchema = BaseButtonSchema.extend({\n /**\n * Content to display in the tooltip on hover/focus\n */\n tooltip: z.string().optional().describe('Content to display in the tooltip on hover/focus'),\n\n /**\n * Side of the button where the tooltip should appear\n * @default 'top'\n */\n tooltipSide: z\n .enum(['top', 'right', 'bottom', 'left'])\n .optional()\n .default('top')\n .describe('Side of the button where the tooltip should appear'),\n\n /**\n * The button's rank: loud is solid, medium is raised, quiet is ghost. Pass this or `variant`, not both.\n */\n emphasis: z.enum(['loud', 'medium', 'quiet']).optional().describe(\"The button's rank: loud (solid), medium (raised) or quiet (ghost). Not with variant.\"),\n\n /**\n * A square button holding only an icon. Needs an accessible name.\n */\n iconOnly: z.boolean().optional().default(false).describe('Square button holding only an icon; needs aria-label'),\n\n /**\n * Expands the button to fill its container. Ignored when iconOnly is set.\n */\n fullWidth: z.boolean().optional().default(false).describe('Expands the button to fill its container'),\n\n /**\n * Alignment of the tooltip relative to the button\n * @default 'center'\n */\n tooltipAlign: z\n .enum(['start', 'center', 'end'])\n .optional()\n .default('center')\n .describe('Alignment of the tooltip relative to the button'),\n\n /**\n * Delay before showing the tooltip (in milliseconds)\n */\n tooltipDelayDuration: z\n .number()\n .optional()\n .describe('Delay before showing the tooltip (in milliseconds)'),\n\n /**\n * Whether to disable hoverable content behavior\n * @default false\n */\n tooltipDisableHoverableContent: z\n .boolean()\n .optional()\n .default(false)\n .describe('Whether to disable hoverable content behavior'),\n}).strict();\n\n/**\n * Type derived from Button Zod schema\n * This ensures type safety and consistency with the schema\n */\nexport type ButtonProps = z.infer<typeof ButtonSchema>;\n\n/**\n * Development-only helper to validate and normalize Button props\n * This function should only be used in development mode\n *\n * @param props - Props to validate and normalize\n * @returns Validated and normalized props\n *\n * @example\n * ```tsx\n * // In development, this will validate props and show helpful errors\n * const validatedProps = parseButtonProps({\n * variant: 'invalid',\n * tooltipSide: 'invalid'\n * });\n * // Throws validation errors for invalid enum values\n * ```\n */\nexport function parseButtonProps(props: unknown): ButtonProps {\n if (process.env.NODE_ENV === 'development') {\n return ButtonSchema.parse(props);\n }\n return props as ButtonProps;\n}\n", "import { z } from 'zod';\n\n/**\n * BaseButton Zod schema - Single source of truth for all button component props\n *\n * This schema defines the core button functionality used by Button, IconButton,\n * ToggleButton, and ToggleIconButton components. It ensures consistency across\n * the design system and provides machine-readable validation.\n *\n * @example\n * ```tsx\n * // Basic validation\n * const props = BaseButtonSchema.parse({ size: '2', variant: 'solid' });\n *\n * // With responsive props\n * const responsiveProps = BaseButtonSchema.parse({\n * size: { initial: '1', sm: '2', md: '3' },\n * variant: 'solid'\n * });\n * ```\n */\nexport const BaseButtonSchema = z\n .object({\n /**\n * Polymorphic rendering - render as different HTML elements\n * @default 'button'\n */\n as: z.string().optional().describe('HTML element type to render as'),\n\n /**\n * Use asChild to merge props with child element\n * @default false\n */\n asChild: z\n .boolean()\n .optional()\n .describe('Merge props with child element instead of rendering wrapper'),\n\n /**\n * Button size for responsive design and interface density\n * Supports responsive objects: { initial: '1', sm: '2', md: '3', lg: '4' }\n * @default '2'\n */\n size: z\n .union([\n z.enum(['1', '2', '3', '4']),\n z.object({\n initial: z.enum(['1', '2', '3', '4']).optional(),\n sm: z.enum(['1', '2', '3', '4']).optional(),\n md: z.enum(['1', '2', '3', '4']).optional(),\n lg: z.enum(['1', '2', '3', '4']).optional(),\n xl: z.enum(['1', '2', '3', '4']).optional(),\n }),\n ])\n .default('2')\n .describe('Button size for responsive design and interface density'),\n\n /**\n * Visual variant that determines the button's appearance and context\n * @default 'solid'\n */\n variant: z\n .enum(['raised', 'solid', 'soft', 'surface', 'outline', 'ghost'])\n .default('solid')\n .describe(\"Visual variant that determines the button's appearance and context\"),\n\n /**\n * Accent color for the button\n */\n color: z\n .enum([\n 'tomato',\n 'red',\n 'ruby',\n 'crimson',\n 'pink',\n 'plum',\n 'purple',\n 'violet',\n 'iris',\n 'indigo',\n 'blue',\n 'cyan',\n 'teal',\n 'jade',\n 'green',\n 'grass',\n 'brown',\n 'orange',\n 'sky',\n 'mint',\n 'lime',\n 'yellow',\n 'amber',\n 'gold',\n 'bronze',\n 'gray',\n ])\n .optional()\n .describe('Accent color for the button'),\n\n /**\n * Border radius for the button\n */\n radius: z\n .enum(['none', 'small', 'medium', 'large', 'full'])\n .optional()\n .describe('Border radius for the button'),\n\n /**\n * Loading state that shows a spinner and disables interaction\n * Automatically sets disabled=true and provides accessibility announcements\n * @default false\n */\n loading: z\n .boolean()\n .optional()\n .default(false)\n .describe('Loading state that shows a spinner and disables interaction'),\n\n /**\n * Material type for visual rendering and depth effects\n * Controls how the button renders its visual elements\n */\n material: z\n .enum(['solid', 'translucent'])\n .optional()\n .describe('Material type for visual rendering and depth effects'),\n\n /**\n * Flush mode that removes visual padding for seamless text integration\n * Only effective with ghost variant\n * @default false\n */\n flush: z\n .boolean()\n .optional()\n .default(false)\n .describe('Flush mode that removes visual padding for seamless text integration'),\n\n /**\n * Disabled state\n * @default false\n */\n disabled: z.boolean().optional().default(false).describe('Disabled state'),\n\n /**\n * Type attribute for form buttons\n * @default 'button'\n */\n type: z\n .enum(['button', 'submit', 'reset'])\n .optional()\n .describe('Type attribute for form buttons'),\n\n /**\n * Additional CSS class name\n */\n className: z.string().optional().describe('Additional CSS class name'),\n\n /**\n * Inline styles\n */\n style: z\n .record(z.string(), z.union([z.string(), z.number()]))\n .optional()\n .describe('Inline styles'),\n\n /**\n * Click handler\n */\n onClick: z.function().optional().describe('Click handler'),\n\n /**\n * Focus handler\n */\n onFocus: z.function().optional().describe('Focus handler'),\n\n /**\n * Blur handler\n */\n onBlur: z.function().optional().describe('Blur handler'),\n\n /**\n * Mouse enter handler\n */\n onMouseEnter: z.function().optional().describe('Mouse enter handler'),\n\n /**\n * Mouse leave handler\n */\n onMouseLeave: z.function().optional().describe('Mouse leave handler'),\n\n /**\n * Key down handler\n */\n onKeyDown: z.function().optional().describe('Key down handler'),\n\n /**\n * Key up handler\n */\n onKeyUp: z.function().optional().describe('Key up handler'),\n\n /**\n * Form submission handler\n */\n onSubmit: z.function().optional().describe('Form submission handler'),\n\n /**\n * Tab index for keyboard navigation\n */\n tabIndex: z.number().optional().describe('Tab index for keyboard navigation'),\n\n /**\n * ARIA label for accessibility\n */\n 'aria-label': z.string().optional().describe('ARIA label for accessibility'),\n\n /**\n * ARIA labelled by reference\n */\n 'aria-labelledby': z.string().optional().describe('ARIA labelled by reference'),\n\n /**\n * ARIA described by reference\n */\n 'aria-describedby': z.string().optional().describe('ARIA described by reference'),\n\n /**\n * ARIA expanded state\n */\n 'aria-expanded': z.boolean().optional().describe('ARIA expanded state'),\n\n /**\n * ARIA pressed state\n */\n 'aria-pressed': z.boolean().optional().describe('ARIA pressed state'),\n\n /**\n * ARIA current state\n */\n 'aria-current': z\n .union([z.boolean(), z.enum(['page', 'step', 'location', 'date', 'time'])])\n .optional()\n .describe('ARIA current state'),\n\n /**\n * ARIA controls reference\n */\n 'aria-controls': z.string().optional().describe('ARIA controls reference'),\n\n /**\n * ARIA owns reference\n */\n 'aria-owns': z.string().optional().describe('ARIA owns reference'),\n\n /**\n * Data attributes\n */\n 'data-*': z.record(z.string(), z.string()).optional().describe('Data attributes'),\n\n /**\n * ID attribute\n */\n id: z.string().optional().describe('ID attribute'),\n\n /**\n * Title attribute for tooltip\n */\n title: z.string().optional().describe('Title attribute for tooltip'),\n\n /**\n * Role attribute\n */\n role: z.string().optional().describe('Role attribute'),\n\n /**\n * Children elements\n */\n children: z.any().optional().describe('Children elements'),\n })\n .strict();\n\n/**\n * Type derived from BaseButton Zod schema\n * This ensures type safety and consistency with the schema\n */\nexport type BaseButtonProps = z.infer<typeof BaseButtonSchema>;\n\n/**\n * Development-only helper to validate and normalize props\n * This function should only be used in development mode\n *\n * @param props - Props to validate and normalize\n * @returns Validated and normalized props\n *\n * @example\n * ```tsx\n * // In development, this will validate props and show helpful errors\n * const validatedProps = parseBaseButtonProps({ size: 'invalid', variant: 'solid' });\n * // Throws: \"Invalid enum value. Expected '1' | '2' | '3' | '4', received 'invalid'\"\n * ```\n */\nexport function parseBaseButtonProps(props: unknown): BaseButtonProps {\n if (process.env.NODE_ENV === 'development') {\n return BaseButtonSchema.parse(props);\n }\n return props as BaseButtonProps;\n}\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,2BAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAAkB,eCAlB,IAAAC,EAAkB,eCAlB,IAAAC,EAAkB,eAqBLC,EAAmB,IAC7B,OAAO,CAKN,GAAI,IAAE,OAAO,EAA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EAAK,EACb,SAAS,+CAA+C,CAC7D,CAAC,EAAE,OAAO,EDhDH,IAAMC,EAAqBC,EAAa,OAAO,CAKpD,QAAS,IAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,0BAA0B,EAMnE,gBAAiB,IAAE,SAAS,EAAE,SAAS,EAAE,SAAS,qCAAqC,EAMvF,eAAgB,IAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,8CAA8C,CAChG,CAAC,EACE,OACEC,GAEK,EAAAA,EAAK,UAAY,QAAaA,EAAK,kBAAoB,QAK7D,CACE,QAAS,mFACT,KAAM,CAAC,iBAAiB,CAC1B,CACF,EACC,OACEA,GAEK,EAAAA,EAAK,UAAY,QAAaA,EAAK,iBAAmB,QAK5D,CACE,QACE,wFACF,KAAM,CAAC,UAAW,gBAAgB,CACpC,CACF,EA+BK,SAASC,EAAuBC,EAAmC,CAIxE,OAAOA,CACT",
4
+ "sourcesContent": ["import { z } from 'zod';\nimport { ButtonSchema } from './button.schema.js';\n\n/**\n * ToggleButton Zod schema - Single source of truth for ToggleButton component props\n *\n * ToggleButton extends Button with toggle functionality using Radix UI's Toggle primitive.\n * It provides proper accessibility announcements, controlled/uncontrolled state management,\n * and seamless integration with the existing Button component.\n *\n * Key features:\n * - Controlled and uncontrolled state management\n * - Live accessibility announcements for screen readers\n * - Automatic state validation and warnings\n * - Seamless integration with Button props and styling\n * - Proper ARIA attributes for toggle functionality\n *\n * @example\n * ```tsx\n * // Uncontrolled toggle button\n * const props = ToggleButtonSchema.parse({\n * defaultPressed: false,\n * variant: 'outline'\n * });\n *\n * // Controlled toggle button\n * const controlledProps = ToggleButtonSchema.parse({\n * pressed: true,\n * onPressedChange: (pressed) => console.log(pressed),\n * variant: 'soft'\n * });\n *\n * // Toggle button with tooltip\n * const tooltipProps = ToggleButtonSchema.parse({\n * defaultPressed: false,\n * tooltip: 'Toggle dark mode',\n * children: 'Dark Mode'\n * });\n * ```\n */\nexport const ToggleButtonSchema = ButtonSchema.extend({\n /**\n * Controlled pressed state\n * When provided, the component is controlled and the pressed state is managed externally\n */\n pressed: z.boolean().optional().describe('Controlled pressed state'),\n\n /**\n * Callback when pressed state changes\n * Called with the new pressed state when the toggle is activated\n */\n onPressedChange: z.function().optional().describe('Callback when pressed state changes'),\n\n /**\n * Default pressed state for uncontrolled usage\n * Used as the initial pressed state when the component is uncontrolled\n */\n defaultPressed: z.boolean().optional().describe('Default pressed state for uncontrolled usage'),\n})\n .refine(\n (data) => {\n // If pressed is provided, onPressedChange should also be provided for controlled usage\n if (data.pressed !== undefined && data.onPressedChange === undefined) {\n return false;\n }\n return true;\n },\n {\n message: 'When using controlled mode (pressed prop), onPressedChange must also be provided',\n path: ['onPressedChange'],\n },\n )\n .refine(\n (data) => {\n // Cannot have both controlled and uncontrolled props\n if (data.pressed !== undefined && data.defaultPressed !== undefined) {\n return false;\n }\n return true;\n },\n {\n message:\n 'Cannot use both controlled (pressed) and uncontrolled (defaultPressed) props together',\n path: ['pressed', 'defaultPressed'],\n },\n );\n\n/**\n * Type derived from ToggleButton Zod schema\n * This ensures type safety and consistency with the schema\n */\nexport type ToggleButtonProps = z.infer<typeof ToggleButtonSchema>;\n\n/**\n * Development-only helper to validate and normalize ToggleButton props\n * This function should only be used in development mode\n *\n * @param props - Props to validate and normalize\n * @returns Validated and normalized props\n *\n * @example\n * ```tsx\n * // In development, this will validate props and show helpful errors\n * const invalidProps = parseToggleButtonProps({\n * pressed: true,\n * defaultPressed: false\n * // Missing onPressedChange and conflicting controlled/uncontrolled\n * });\n * // Throws: \"Cannot use both controlled (pressed) and uncontrolled (defaultPressed) props together\"\n *\n * const validProps = parseToggleButtonProps({\n * pressed: true,\n * onPressedChange: (pressed) => setPressed(pressed)\n * });\n * ```\n */\nexport function parseToggleButtonProps(props: unknown): ToggleButtonProps {\n if (process.env.NODE_ENV === 'development') {\n return ToggleButtonSchema.parse(props);\n }\n return props as ToggleButtonProps;\n}\n", "import { z } from 'zod';\nimport { BaseButtonSchema } from './base-button.schema.js';\n\n/**\n * Button Zod schema - Single source of truth for Button component props\n *\n * The Button component is the primary interactive element in the Kookie User Interface.\n * It provides six visual variants, four sizes, comprehensive color options, and built-in\n * tooltip support. The component automatically handles icon sizing, supports responsive\n * layouts, and provides accessibility compliance out of the box.\n *\n * @example\n * ```tsx\n * // Basic button validation\n * const props = ButtonSchema.parse({ variant: 'solid', size: '2' });\n *\n * // Button with tooltip\n * const tooltipProps = ButtonSchema.parse({\n * tooltip: 'Save your progress',\n * tooltipSide: 'top'\n * });\n *\n * // Polymorphic button as link\n * const linkProps = ButtonSchema.parse({\n * as: 'a',\n * href: '/dashboard',\n * children: 'Go to Dashboard'\n * });\n * ```\n */\nexport const ButtonSchema = BaseButtonSchema.extend({\n /**\n * Content to display in the tooltip on hover/focus\n */\n tooltip: z.string().optional().describe('Content to display in the tooltip on hover/focus'),\n\n /**\n * Side of the button where the tooltip should appear\n * @default 'top'\n */\n tooltipSide: z\n .enum(['top', 'right', 'bottom', 'left'])\n .optional()\n .default('top')\n .describe('Side of the button where the tooltip should appear'),\n\n /**\n * The button's rank: loud is solid, medium is raised, quiet is ghost. Pass this or `variant`, not both.\n */\n emphasis: z.enum(['loud', 'medium', 'quiet']).optional().describe(\"The button's rank: loud (solid), medium (raised) or quiet (ghost). Not with variant.\"),\n\n /**\n * A square button holding only an icon. Needs an accessible name.\n */\n iconOnly: z.boolean().optional().default(false).describe('Square button holding only an icon; needs aria-label'),\n\n /**\n * Expands the button to fill its container. Ignored when iconOnly is set.\n */\n fullWidth: z.boolean().optional().default(false).describe('Expands the button to fill its container'),\n\n /**\n * Alignment of the tooltip relative to the button\n * @default 'center'\n */\n tooltipAlign: z\n .enum(['start', 'center', 'end'])\n .optional()\n .default('center')\n .describe('Alignment of the tooltip relative to the button'),\n\n /**\n * Delay before showing the tooltip (in milliseconds)\n */\n tooltipDelayDuration: z\n .number()\n .optional()\n .describe('Delay before showing the tooltip (in milliseconds)'),\n\n /**\n * Whether to disable hoverable content behavior\n * @default false\n */\n tooltipDisableHoverableContent: z\n .boolean()\n .optional()\n .default(false)\n .describe('Whether to disable hoverable content behavior'),\n}).strict();\n\n/**\n * Type derived from Button Zod schema\n * This ensures type safety and consistency with the schema\n */\nexport type ButtonProps = z.infer<typeof ButtonSchema>;\n\n/**\n * Development-only helper to validate and normalize Button props\n * This function should only be used in development mode\n *\n * @param props - Props to validate and normalize\n * @returns Validated and normalized props\n *\n * @example\n * ```tsx\n * // In development, this will validate props and show helpful errors\n * const validatedProps = parseButtonProps({\n * variant: 'invalid',\n * tooltipSide: 'invalid'\n * });\n * // Throws validation errors for invalid enum values\n * ```\n */\nexport function parseButtonProps(props: unknown): ButtonProps {\n if (process.env.NODE_ENV === 'development') {\n return ButtonSchema.parse(props);\n }\n return props as ButtonProps;\n}\n", "import { z } from 'zod';\n\n/**\n * BaseButton Zod schema - Single source of truth for all button component props\n *\n * This schema defines the core button functionality used by Button, IconButton,\n * ToggleButton, and ToggleIconButton components. It ensures consistency across\n * the design system and provides machine-readable validation.\n *\n * @example\n * ```tsx\n * // Basic validation\n * const props = BaseButtonSchema.parse({ size: '2', variant: 'solid' });\n *\n * // With responsive props\n * const responsiveProps = BaseButtonSchema.parse({\n * size: { initial: '1', sm: '2', md: '3' },\n * variant: 'solid'\n * });\n * ```\n */\nexport const BaseButtonSchema = z\n .object({\n /**\n * Polymorphic rendering - render as different HTML elements\n * @default 'button'\n */\n as: z.string().optional().describe('HTML element type to render as'),\n\n /**\n * Use asChild to merge props with child element\n * @default false\n */\n asChild: z\n .boolean()\n .optional()\n .describe('Merge props with child element instead of rendering wrapper'),\n\n /**\n * Button size for responsive design and interface density\n * Supports responsive objects: { initial: '1', sm: '2', md: '3', lg: '4' }\n * @default '2'\n */\n size: z\n .union([\n z.enum(['1', '2', '3', '4']),\n z.object({\n initial: z.enum(['1', '2', '3', '4']).optional(),\n sm: z.enum(['1', '2', '3', '4']).optional(),\n md: z.enum(['1', '2', '3', '4']).optional(),\n lg: z.enum(['1', '2', '3', '4']).optional(),\n xl: z.enum(['1', '2', '3', '4']).optional(),\n }),\n ])\n .default('2')\n .describe('Button size for responsive design and interface density'),\n\n /**\n * Visual variant that determines the button's appearance and context\n * @default 'solid'\n */\n variant: z\n .enum(['raised', 'solid', 'soft', 'surface', 'outline', 'ghost'])\n .default('solid')\n .describe(\"Visual variant that determines the button's appearance and context\"),\n\n /**\n * Accent color for the button\n */\n color: z\n .enum([\n 'tomato',\n 'red',\n 'ruby',\n 'crimson',\n 'pink',\n 'plum',\n 'purple',\n 'violet',\n 'iris',\n 'indigo',\n 'blue',\n 'cyan',\n 'teal',\n 'jade',\n 'green',\n 'grass',\n 'brown',\n 'orange',\n 'sky',\n 'mint',\n 'lime',\n 'yellow',\n 'amber',\n 'gold',\n 'bronze',\n 'gray',\n ])\n .optional()\n .describe('Accent color for the button'),\n\n /**\n * Border radius for the button\n */\n radius: z\n .enum(['none', 'small', 'medium', 'large', 'full'])\n .optional()\n .describe('Border radius for the button'),\n\n /**\n * Loading state that shows a spinner and disables interaction\n * Automatically sets disabled=true and provides accessibility announcements\n * @default false\n */\n loading: z\n .boolean()\n .optional()\n .default(false)\n .describe('Loading state that shows a spinner and disables interaction'),\n\n /**\n * Flush mode that removes visual padding for seamless text integration\n * Only effective with ghost variant\n * @default false\n */\n flush: z\n .boolean()\n .optional()\n .default(false)\n .describe('Flush mode that removes visual padding for seamless text integration'),\n\n /**\n * Disabled state\n * @default false\n */\n disabled: z.boolean().optional().default(false).describe('Disabled state'),\n\n /**\n * Type attribute for form buttons\n * @default 'button'\n */\n type: z\n .enum(['button', 'submit', 'reset'])\n .optional()\n .describe('Type attribute for form buttons'),\n\n /**\n * Additional CSS class name\n */\n className: z.string().optional().describe('Additional CSS class name'),\n\n /**\n * Inline styles\n */\n style: z\n .record(z.string(), z.union([z.string(), z.number()]))\n .optional()\n .describe('Inline styles'),\n\n /**\n * Click handler\n */\n onClick: z.function().optional().describe('Click handler'),\n\n /**\n * Focus handler\n */\n onFocus: z.function().optional().describe('Focus handler'),\n\n /**\n * Blur handler\n */\n onBlur: z.function().optional().describe('Blur handler'),\n\n /**\n * Mouse enter handler\n */\n onMouseEnter: z.function().optional().describe('Mouse enter handler'),\n\n /**\n * Mouse leave handler\n */\n onMouseLeave: z.function().optional().describe('Mouse leave handler'),\n\n /**\n * Key down handler\n */\n onKeyDown: z.function().optional().describe('Key down handler'),\n\n /**\n * Key up handler\n */\n onKeyUp: z.function().optional().describe('Key up handler'),\n\n /**\n * Form submission handler\n */\n onSubmit: z.function().optional().describe('Form submission handler'),\n\n /**\n * Tab index for keyboard navigation\n */\n tabIndex: z.number().optional().describe('Tab index for keyboard navigation'),\n\n /**\n * ARIA label for accessibility\n */\n 'aria-label': z.string().optional().describe('ARIA label for accessibility'),\n\n /**\n * ARIA labelled by reference\n */\n 'aria-labelledby': z.string().optional().describe('ARIA labelled by reference'),\n\n /**\n * ARIA described by reference\n */\n 'aria-describedby': z.string().optional().describe('ARIA described by reference'),\n\n /**\n * ARIA expanded state\n */\n 'aria-expanded': z.boolean().optional().describe('ARIA expanded state'),\n\n /**\n * ARIA pressed state\n */\n 'aria-pressed': z.boolean().optional().describe('ARIA pressed state'),\n\n /**\n * ARIA current state\n */\n 'aria-current': z\n .union([z.boolean(), z.enum(['page', 'step', 'location', 'date', 'time'])])\n .optional()\n .describe('ARIA current state'),\n\n /**\n * ARIA controls reference\n */\n 'aria-controls': z.string().optional().describe('ARIA controls reference'),\n\n /**\n * ARIA owns reference\n */\n 'aria-owns': z.string().optional().describe('ARIA owns reference'),\n\n /**\n * Data attributes\n */\n 'data-*': z.record(z.string(), z.string()).optional().describe('Data attributes'),\n\n /**\n * ID attribute\n */\n id: z.string().optional().describe('ID attribute'),\n\n /**\n * Title attribute for tooltip\n */\n title: z.string().optional().describe('Title attribute for tooltip'),\n\n /**\n * Role attribute\n */\n role: z.string().optional().describe('Role attribute'),\n\n /**\n * Children elements\n */\n children: z.any().optional().describe('Children elements'),\n })\n .strict();\n\n/**\n * Type derived from BaseButton Zod schema\n * This ensures type safety and consistency with the schema\n */\nexport type BaseButtonProps = z.infer<typeof BaseButtonSchema>;\n\n/**\n * Development-only helper to validate and normalize props\n * This function should only be used in development mode\n *\n * @param props - Props to validate and normalize\n * @returns Validated and normalized props\n *\n * @example\n * ```tsx\n * // In development, this will validate props and show helpful errors\n * const validatedProps = parseBaseButtonProps({ size: 'invalid', variant: 'solid' });\n * // Throws: \"Invalid enum value. Expected '1' | '2' | '3' | '4', received 'invalid'\"\n * ```\n */\nexport function parseBaseButtonProps(props: unknown): BaseButtonProps {\n if (process.env.NODE_ENV === 'development') {\n return BaseButtonSchema.parse(props);\n }\n return props as BaseButtonProps;\n}\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,2BAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAAkB,eCAlB,IAAAC,EAAkB,eCAlB,IAAAC,EAAkB,eAqBLC,EAAmB,IAC7B,OAAO,CAKN,GAAI,IAAE,OAAO,EAAE,SAAS,EAAE,SAAS,gCAAgC,EAMnE,QAAS,IACN,QAAQ,EACR,SAAS,EACT,SAAS,6DAA6D,EAOzE,KAAM,IACH,MAAM,CACL,IAAE,KAAK,CAAC,IAAK,IAAK,IAAK,GAAG,CAAC,EAC3B,IAAE,OAAO,CACP,QAAS,IAAE,KAAK,CAAC,IAAK,IAAK,IAAK,GAAG,CAAC,EAAE,SAAS,EAC/C,GAAI,IAAE,KAAK,CAAC,IAAK,IAAK,IAAK,GAAG,CAAC,EAAE,SAAS,EAC1C,GAAI,IAAE,KAAK,CAAC,IAAK,IAAK,IAAK,GAAG,CAAC,EAAE,SAAS,EAC1C,GAAI,IAAE,KAAK,CAAC,IAAK,IAAK,IAAK,GAAG,CAAC,EAAE,SAAS,EAC1C,GAAI,IAAE,KAAK,CAAC,IAAK,IAAK,IAAK,GAAG,CAAC,EAAE,SAAS,CAC5C,CAAC,CACH,CAAC,EACA,QAAQ,GAAG,E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a,IACV,KAAK,CAAC,MAAO,QAAS,SAAU,MAAM,CAAC,EACvC,SAAS,EACT,QAAQ,KAAK,EACb,SAAS,oDAAoD,EAKhE,SAAU,IAAE,KAAK,CAAC,OAAQ,SAAU,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS,sFAAsF,EAKxJ,SAAU,IAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAK,EAAE,SAAS,sDAAsD,EAK/G,UAAW,IAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAK,EAAE,SAAS,0CAA0C,EAMpG,aAAc,IACX,KAAK,CAAC,QAAS,SAAU,KAAK,CAAC,EAC/B,SAAS,EACT,QAAQ,QAAQ,EAChB,SAAS,iDAAiD,EAK7D,qBAAsB,IACnB,OAAO,EACP,SAAS,EACT,SAAS,oDAAoD,EAMhE,+BAAgC,IAC7B,QAAQ,EACR,SAAS,EACT,QAAQ,EAAK,EACb,SAAS,+CAA+C,CAC7D,CAAC,EAAE,OAAO,EDhDH,IAAMC,EAAqBC,EAAa,OAAO,CAKpD,QAAS,IAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,0BAA0B,EAMnE,gBAAiB,IAAE,SAAS,EAAE,SAAS,EAAE,SAAS,qCAAqC,EAMvF,eAAgB,IAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,8CAA8C,CAChG,CAAC,EACE,OACEC,GAEK,EAAAA,EAAK,UAAY,QAAaA,EAAK,kBAAoB,QAK7D,CACE,QAAS,mFACT,KAAM,CAAC,iBAAiB,CAC1B,CACF,EACC,OACEA,GAEK,EAAAA,EAAK,UAAY,QAAaA,EAAK,iBAAmB,QAK5D,CACE,QACE,wFACF,KAAM,CAAC,UAAW,gBAAgB,CACpC,CACF,EA+BK,SAASC,EAAuBC,EAAmC,CAIxE,OAAOA,CACT",
6
6
  "names": ["toggle_button_schema_exports", "__export", "ToggleButtonSchema", "parseToggleButtonProps", "__toCommonJS", "import_zod", "import_zod", "import_zod", "BaseButtonSchema", "ButtonSchema", "BaseButtonSchema", "ToggleButtonSchema", "ButtonSchema", "data", "parseToggleButtonProps", "props"]
7
7
  }
@@ -123,10 +123,6 @@ export declare const ToggleIconButtonSchema: z.ZodObject<{
123
123
  full: "full";
124
124
  }>>;
125
125
  loading: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
126
- material: z.ZodOptional<z.ZodEnum<{
127
- solid: "solid";
128
- translucent: "translucent";
129
- }>>;
130
126
  flush: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
131
127
  disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
132
128
  type: z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-icon-button.schema.d.ts","sourceRoot":"","sources":["../../../../src/components/schemas/toggle-icon-button.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkHhC,CAAC;AAEJ;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,CAKhF"}
1
+ {"version":3,"file":"toggle-icon-button.schema.d.ts","sourceRoot":"","sources":["../../../../src/components/schemas/toggle-icon-button.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkHhC,CAAC;AAEJ;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,CAKhF"}
@@ -1,2 +1,2 @@
1
- "use strict";var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(o,n)=>{for(var i in n)a(o,i,{get:n[i],enumerable:!0})},b=(o,n,i,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of p(n))!c.call(o,r)&&r!==i&&a(o,r,{get:()=>n[r],enumerable:!(s=d(n,r))||s.enumerable});return o};var f=o=>b(a({},"__esModule",{value:!0}),o);var h={};u(h,{ToggleIconButtonSchema:()=>m,parseToggleIconButtonProps:()=>g});module.exports=f(h);var t=require("zod");var e=require("zod"),l=e.z.object({as:e.z.string().optional().describe("HTML element type to render as"),asChild:e.z.boolean().optional().describe("Merge props with child element instead of rendering wrapper"),size:e.z.union([e.z.enum(["1","2","3","4"]),e.z.object({initial:e.z.enum(["1","2","3","4"]).optional(),sm:e.z.enum(["1","2","3","4"]).optional(),md:e.z.enum(["1","2","3","4"]).optional(),lg:e.z.enum(["1","2","3","4"]).optional(),xl:e.z.enum(["1","2","3","4"]).optional()})]).default("2").describe("Button size for responsive design and interface density"),variant:e.z.enum(["raised","solid","soft","surface","outline","ghost"]).default("solid").describe("Visual variant that determines the button's appearance and context"),color:e.z.enum(["tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","brown","orange","sky","mint","lime","yellow","amber","gold","bronze","gray"]).optional().describe("Accent color for the button"),radius:e.z.enum(["none","small","medium","large","full"]).optional().describe("Border radius for the button"),loading:e.z.boolean().optional().default(!1).describe("Loading state that shows a spinner and disables interaction"),material:e.z.enum(["solid","translucent"]).optional().describe("Material type for visual rendering and depth effects"),flush:e.z.boolean().optional().default(!1).describe("Flush mode that removes visual padding for seamless text integration"),disabled:e.z.boolean().optional().default(!1).describe("Disabled state"),type:e.z.enum(["button","submit","reset"]).optional().describe("Type attribute for form buttons"),className:e.z.string().optional().describe("Additional CSS class name"),style:e.z.record(e.z.string(),e.z.union([e.z.string(),e.z.number()])).optional().describe("Inline styles"),onClick:e.z.function().optional().describe("Click handler"),onFocus:e.z.function().optional().describe("Focus handler"),onBlur:e.z.function().optional().describe("Blur handler"),onMouseEnter:e.z.function().optional().describe("Mouse enter handler"),onMouseLeave:e.z.function().optional().describe("Mouse leave handler"),onKeyDown:e.z.function().optional().describe("Key down handler"),onKeyUp:e.z.function().optional().describe("Key up handler"),onSubmit:e.z.function().optional().describe("Form submission handler"),tabIndex:e.z.number().optional().describe("Tab index for keyboard navigation"),"aria-label":e.z.string().optional().describe("ARIA label for accessibility"),"aria-labelledby":e.z.string().optional().describe("ARIA labelled by reference"),"aria-describedby":e.z.string().optional().describe("ARIA described by reference"),"aria-expanded":e.z.boolean().optional().describe("ARIA expanded state"),"aria-pressed":e.z.boolean().optional().describe("ARIA pressed state"),"aria-current":e.z.union([e.z.boolean(),e.z.enum(["page","step","location","date","time"])]).optional().describe("ARIA current state"),"aria-controls":e.z.string().optional().describe("ARIA controls reference"),"aria-owns":e.z.string().optional().describe("ARIA owns reference"),"data-*":e.z.record(e.z.string(),e.z.string()).optional().describe("Data attributes"),id:e.z.string().optional().describe("ID attribute"),title:e.z.string().optional().describe("Title attribute for tooltip"),role:e.z.string().optional().describe("Role attribute"),children:e.z.any().optional().describe("Children elements")}).strict();var m=l.extend({tooltip:t.z.string().optional().describe("Content to display in the tooltip on hover/focus"),tooltipSide:t.z.enum(["top","right","bottom","left"]).optional().default("top").describe("Side of the button where the tooltip should appear"),tooltipAlign:t.z.enum(["start","center","end"]).optional().default("center").describe("Alignment of the tooltip relative to the button"),tooltipDelayDuration:t.z.number().optional().describe("Delay before showing the tooltip (in milliseconds)"),tooltipDisableHoverableContent:t.z.boolean().optional().default(!1).describe("Whether to disable hoverable content behavior"),"aria-label":t.z.string().optional().describe("ARIA label for accessibility"),"aria-labelledby":t.z.string().optional().describe("ARIA labelled by reference"),children:t.z.any().optional().describe("Children elements (required for accessibility if no aria-label)"),pressed:t.z.boolean().optional().describe("Controlled pressed state"),onPressedChange:t.z.function().optional().describe("Callback when pressed state changes"),defaultPressed:t.z.boolean().optional().describe("Default pressed state for uncontrolled usage")}).refine(o=>o["aria-label"]||o["aria-labelledby"]||o.children,{message:"ToggleIconButton must have either 'aria-label', 'aria-labelledby', or 'children' for accessibility",path:["aria-label","aria-labelledby","children"]}).refine(o=>!(o.pressed!==void 0&&o.onPressedChange===void 0),{message:"When using controlled mode (pressed prop), onPressedChange must also be provided",path:["onPressedChange"]}).refine(o=>!(o.pressed!==void 0&&o.defaultPressed!==void 0),{message:"Cannot use both controlled (pressed) and uncontrolled (defaultPressed) props together",path:["pressed","defaultPressed"]});function g(o){return o}
1
+ "use strict";var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(o,n)=>{for(var i in n)a(o,i,{get:n[i],enumerable:!0})},b=(o,n,i,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of p(n))!c.call(o,r)&&r!==i&&a(o,r,{get:()=>n[r],enumerable:!(s=d(n,r))||s.enumerable});return o};var f=o=>b(a({},"__esModule",{value:!0}),o);var h={};u(h,{ToggleIconButtonSchema:()=>m,parseToggleIconButtonProps:()=>g});module.exports=f(h);var t=require("zod");var e=require("zod"),l=e.z.object({as:e.z.string().optional().describe("HTML element type to render as"),asChild:e.z.boolean().optional().describe("Merge props with child element instead of rendering wrapper"),size:e.z.union([e.z.enum(["1","2","3","4"]),e.z.object({initial:e.z.enum(["1","2","3","4"]).optional(),sm:e.z.enum(["1","2","3","4"]).optional(),md:e.z.enum(["1","2","3","4"]).optional(),lg:e.z.enum(["1","2","3","4"]).optional(),xl:e.z.enum(["1","2","3","4"]).optional()})]).default("2").describe("Button size for responsive design and interface density"),variant:e.z.enum(["raised","solid","soft","surface","outline","ghost"]).default("solid").describe("Visual variant that determines the button's appearance and context"),color:e.z.enum(["tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","brown","orange","sky","mint","lime","yellow","amber","gold","bronze","gray"]).optional().describe("Accent color for the button"),radius:e.z.enum(["none","small","medium","large","full"]).optional().describe("Border radius for the button"),loading:e.z.boolean().optional().default(!1).describe("Loading state that shows a spinner and disables interaction"),flush:e.z.boolean().optional().default(!1).describe("Flush mode that removes visual padding for seamless text integration"),disabled:e.z.boolean().optional().default(!1).describe("Disabled state"),type:e.z.enum(["button","submit","reset"]).optional().describe("Type attribute for form buttons"),className:e.z.string().optional().describe("Additional CSS class name"),style:e.z.record(e.z.string(),e.z.union([e.z.string(),e.z.number()])).optional().describe("Inline styles"),onClick:e.z.function().optional().describe("Click handler"),onFocus:e.z.function().optional().describe("Focus handler"),onBlur:e.z.function().optional().describe("Blur handler"),onMouseEnter:e.z.function().optional().describe("Mouse enter handler"),onMouseLeave:e.z.function().optional().describe("Mouse leave handler"),onKeyDown:e.z.function().optional().describe("Key down handler"),onKeyUp:e.z.function().optional().describe("Key up handler"),onSubmit:e.z.function().optional().describe("Form submission handler"),tabIndex:e.z.number().optional().describe("Tab index for keyboard navigation"),"aria-label":e.z.string().optional().describe("ARIA label for accessibility"),"aria-labelledby":e.z.string().optional().describe("ARIA labelled by reference"),"aria-describedby":e.z.string().optional().describe("ARIA described by reference"),"aria-expanded":e.z.boolean().optional().describe("ARIA expanded state"),"aria-pressed":e.z.boolean().optional().describe("ARIA pressed state"),"aria-current":e.z.union([e.z.boolean(),e.z.enum(["page","step","location","date","time"])]).optional().describe("ARIA current state"),"aria-controls":e.z.string().optional().describe("ARIA controls reference"),"aria-owns":e.z.string().optional().describe("ARIA owns reference"),"data-*":e.z.record(e.z.string(),e.z.string()).optional().describe("Data attributes"),id:e.z.string().optional().describe("ID attribute"),title:e.z.string().optional().describe("Title attribute for tooltip"),role:e.z.string().optional().describe("Role attribute"),children:e.z.any().optional().describe("Children elements")}).strict();var m=l.extend({tooltip:t.z.string().optional().describe("Content to display in the tooltip on hover/focus"),tooltipSide:t.z.enum(["top","right","bottom","left"]).optional().default("top").describe("Side of the button where the tooltip should appear"),tooltipAlign:t.z.enum(["start","center","end"]).optional().default("center").describe("Alignment of the tooltip relative to the button"),tooltipDelayDuration:t.z.number().optional().describe("Delay before showing the tooltip (in milliseconds)"),tooltipDisableHoverableContent:t.z.boolean().optional().default(!1).describe("Whether to disable hoverable content behavior"),"aria-label":t.z.string().optional().describe("ARIA label for accessibility"),"aria-labelledby":t.z.string().optional().describe("ARIA labelled by reference"),children:t.z.any().optional().describe("Children elements (required for accessibility if no aria-label)"),pressed:t.z.boolean().optional().describe("Controlled pressed state"),onPressedChange:t.z.function().optional().describe("Callback when pressed state changes"),defaultPressed:t.z.boolean().optional().describe("Default pressed state for uncontrolled usage")}).refine(o=>o["aria-label"]||o["aria-labelledby"]||o.children,{message:"ToggleIconButton must have either 'aria-label', 'aria-labelledby', or 'children' for accessibility",path:["aria-label","aria-labelledby","children"]}).refine(o=>!(o.pressed!==void 0&&o.onPressedChange===void 0),{message:"When using controlled mode (pressed prop), onPressedChange must also be provided",path:["onPressedChange"]}).refine(o=>!(o.pressed!==void 0&&o.defaultPressed!==void 0),{message:"Cannot use both controlled (pressed) and uncontrolled (defaultPressed) props together",path:["pressed","defaultPressed"]});function g(o){return o}
2
2
  //# sourceMappingURL=toggle-icon-button.schema.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/schemas/toggle-icon-button.schema.ts", "../../../../src/components/schemas/base-button.schema.ts"],
4
- "sourcesContent": ["import { z } from 'zod';\nimport { BaseButtonSchema } from './base-button.schema.js';\n\n/**\n * ToggleIconButton Zod schema - Single source of truth for ToggleIconButton component props\n *\n * ToggleIconButton extends IconButton with toggle functionality using Radix UI's Toggle primitive.\n * It provides proper accessibility announcements, controlled/uncontrolled state management,\n * and seamless integration with the existing IconButton component.\n *\n * Key features:\n * - Required accessibility attributes (aria-label, aria-labelledby, or children)\n * - Controlled and uncontrolled state management\n * - Live accessibility announcements for screen readers\n * - Tooltip support for better UX\n * - Proper ARIA attributes for toggle functionality\n *\n * @example\n * ```tsx\n * // Uncontrolled toggle icon button\n * const props = ToggleIconButtonSchema.parse({\n * 'aria-label': 'Toggle sidebar',\n * defaultPressed: false,\n * variant: 'ghost'\n * });\n *\n * // Controlled toggle icon button\n * const controlledProps = ToggleIconButtonSchema.parse({\n * 'aria-label': 'Toggle dark mode',\n * pressed: true,\n * onPressedChange: (pressed) => setDarkMode(pressed),\n * variant: 'soft'\n * });\n *\n * // Toggle icon button with tooltip\n * const tooltipProps = ToggleIconButtonSchema.parse({\n * 'aria-label': 'Toggle notifications',\n * defaultPressed: false,\n * tooltip: 'Toggle notification settings',\n * tooltipSide: 'right'\n * });\n * ```\n */\nexport const ToggleIconButtonSchema = BaseButtonSchema.extend({\n /**\n * Content to display in the tooltip on hover/focus\n */\n tooltip: z.string().optional().describe('Content to display in the tooltip on hover/focus'),\n\n /**\n * Side of the button where the tooltip should appear\n * @default 'top'\n */\n tooltipSide: z\n .enum(['top', 'right', 'bottom', 'left'])\n .optional()\n .default('top')\n .describe('Side of the button where the tooltip should appear'),\n\n /**\n * Alignment of the tooltip relative to the button\n * @default 'center'\n */\n tooltipAlign: z\n .enum(['start', 'center', 'end'])\n .optional()\n .default('center')\n .describe('Alignment of the tooltip relative to the button'),\n\n /**\n * Delay before showing the tooltip (in milliseconds)\n */\n tooltipDelayDuration: z\n .number()\n .optional()\n .describe('Delay before showing the tooltip (in milliseconds)'),\n\n /**\n * Whether to disable hoverable content behavior\n * @default false\n */\n tooltipDisableHoverableContent: z\n .boolean()\n .optional()\n .default(false)\n .describe('Whether to disable hoverable content behavior'),\n\n /**\n * ARIA label for accessibility (required if no aria-labelledby or children)\n * Icon buttons must have an accessible name to meet WCAG guidelines\n */\n 'aria-label': z.string().optional().describe('ARIA label for accessibility'),\n\n /**\n * ARIA labelled by reference (required if no aria-label or children)\n * Icon buttons must have an accessible name to meet WCAG guidelines\n */\n 'aria-labelledby': z.string().optional().describe('ARIA labelled by reference'),\n\n /**\n * Children elements (required if no aria-label or aria-labelledby)\n * Icon buttons must have an accessible name to meet WCAG guidelines\n */\n children: z\n .any()\n .optional()\n .describe('Children elements (required for accessibility if no aria-label)'),\n\n /**\n * Controlled pressed state\n * When provided, the component is controlled and the pressed state is managed externally\n */\n pressed: z.boolean().optional().describe('Controlled pressed state'),\n\n /**\n * Callback when pressed state changes\n * Called with the new pressed state when the toggle is activated\n */\n onPressedChange: z.function().optional().describe('Callback when pressed state changes'),\n\n /**\n * Default pressed state for uncontrolled usage\n * Used as the initial pressed state when the component is uncontrolled\n */\n defaultPressed: z.boolean().optional().describe('Default pressed state for uncontrolled usage'),\n})\n .refine((data: any) => data['aria-label'] || data['aria-labelledby'] || data.children, {\n message:\n \"ToggleIconButton must have either 'aria-label', 'aria-labelledby', or 'children' for accessibility\",\n path: ['aria-label', 'aria-labelledby', 'children'],\n })\n .refine(\n (data: any) => {\n // If pressed is provided, onPressedChange should also be provided for controlled usage\n if (data.pressed !== undefined && data.onPressedChange === undefined) {\n return false;\n }\n return true;\n },\n {\n message: 'When using controlled mode (pressed prop), onPressedChange must also be provided',\n path: ['onPressedChange'],\n },\n )\n .refine(\n (data: any) => {\n // Cannot have both controlled and uncontrolled props\n if (data.pressed !== undefined && data.defaultPressed !== undefined) {\n return false;\n }\n return true;\n },\n {\n message:\n 'Cannot use both controlled (pressed) and uncontrolled (defaultPressed) props together',\n path: ['pressed', 'defaultPressed'],\n },\n );\n\n/**\n * Type derived from ToggleIconButton Zod schema\n * This ensures type safety and consistency with the schema\n */\nexport type ToggleIconButtonProps = z.infer<typeof ToggleIconButtonSchema>;\n\n/**\n * Development-only helper to validate and normalize ToggleIconButton props\n * This function should only be used in development mode\n *\n * @param props - Props to validate and normalize\n * @returns Validated and normalized props\n *\n * @example\n * ```tsx\n * // In development, this will validate props and show helpful errors\n * const invalidProps = parseToggleIconButtonProps({\n * pressed: true,\n * defaultPressed: false\n * // Missing onPressedChange, conflicting controlled/uncontrolled, and missing accessibility\n * });\n * // Throws multiple validation errors\n *\n * const validProps = parseToggleIconButtonProps({\n * 'aria-label': 'Toggle menu',\n * pressed: true,\n * onPressedChange: (pressed) => setMenuOpen(pressed)\n * });\n * ```\n */\nexport function parseToggleIconButtonProps(props: unknown): ToggleIconButtonProps {\n if (process.env.NODE_ENV === 'development') {\n return ToggleIconButtonSchema.parse(props);\n }\n return props as ToggleIconButtonProps;\n}\n", "import { z } from 'zod';\n\n/**\n * BaseButton Zod schema - Single source of truth for all button component props\n *\n * This schema defines the core button functionality used by Button, IconButton,\n * ToggleButton, and ToggleIconButton components. It ensures consistency across\n * the design system and provides machine-readable validation.\n *\n * @example\n * ```tsx\n * // Basic validation\n * const props = BaseButtonSchema.parse({ size: '2', variant: 'solid' });\n *\n * // With responsive props\n * const responsiveProps = BaseButtonSchema.parse({\n * size: { initial: '1', sm: '2', md: '3' },\n * variant: 'solid'\n * });\n * ```\n */\nexport const BaseButtonSchema = z\n .object({\n /**\n * Polymorphic rendering - render as different HTML elements\n * @default 'button'\n */\n as: z.string().optional().describe('HTML element type to render as'),\n\n /**\n * Use asChild to merge props with child element\n * @default false\n */\n asChild: z\n .boolean()\n .optional()\n .describe('Merge props with child element instead of rendering wrapper'),\n\n /**\n * Button size for responsive design and interface density\n * Supports responsive objects: { initial: '1', sm: '2', md: '3', lg: '4' }\n * @default '2'\n */\n size: z\n .union([\n z.enum(['1', '2', '3', '4']),\n z.object({\n initial: z.enum(['1', '2', '3', '4']).optional(),\n sm: z.enum(['1', '2', '3', '4']).optional(),\n md: z.enum(['1', '2', '3', '4']).optional(),\n lg: z.enum(['1', '2', '3', '4']).optional(),\n xl: z.enum(['1', '2', '3', '4']).optional(),\n }),\n ])\n .default('2')\n .describe('Button size for responsive design and interface density'),\n\n /**\n * Visual variant that determines the button's appearance and context\n * @default 'solid'\n */\n variant: z\n .enum(['raised', 'solid', 'soft', 'surface', 'outline', 'ghost'])\n .default('solid')\n .describe(\"Visual variant that determines the button's appearance and context\"),\n\n /**\n * Accent color for the button\n */\n color: z\n .enum([\n 'tomato',\n 'red',\n 'ruby',\n 'crimson',\n 'pink',\n 'plum',\n 'purple',\n 'violet',\n 'iris',\n 'indigo',\n 'blue',\n 'cyan',\n 'teal',\n 'jade',\n 'green',\n 'grass',\n 'brown',\n 'orange',\n 'sky',\n 'mint',\n 'lime',\n 'yellow',\n 'amber',\n 'gold',\n 'bronze',\n 'gray',\n ])\n .optional()\n .describe('Accent color for the button'),\n\n /**\n * Border radius for the button\n */\n radius: z\n .enum(['none', 'small', 'medium', 'large', 'full'])\n .optional()\n .describe('Border radius for the button'),\n\n /**\n * Loading state that shows a spinner and disables interaction\n * Automatically sets disabled=true and provides accessibility announcements\n * @default false\n */\n loading: z\n .boolean()\n .optional()\n .default(false)\n .describe('Loading state that shows a spinner and disables interaction'),\n\n /**\n * Material type for visual rendering and depth effects\n * Controls how the button renders its visual elements\n */\n material: z\n .enum(['solid', 'translucent'])\n .optional()\n .describe('Material type for visual rendering and depth effects'),\n\n /**\n * Flush mode that removes visual padding for seamless text integration\n * Only effective with ghost variant\n * @default false\n */\n flush: z\n .boolean()\n .optional()\n .default(false)\n .describe('Flush mode that removes visual padding for seamless text integration'),\n\n /**\n * Disabled state\n * @default false\n */\n disabled: z.boolean().optional().default(false).describe('Disabled state'),\n\n /**\n * Type attribute for form buttons\n * @default 'button'\n */\n type: z\n .enum(['button', 'submit', 'reset'])\n .optional()\n .describe('Type attribute for form buttons'),\n\n /**\n * Additional CSS class name\n */\n className: z.string().optional().describe('Additional CSS class name'),\n\n /**\n * Inline styles\n */\n style: z\n .record(z.string(), z.union([z.string(), z.number()]))\n .optional()\n .describe('Inline styles'),\n\n /**\n * Click handler\n */\n onClick: z.function().optional().describe('Click handler'),\n\n /**\n * Focus handler\n */\n onFocus: z.function().optional().describe('Focus handler'),\n\n /**\n * Blur handler\n */\n onBlur: z.function().optional().describe('Blur handler'),\n\n /**\n * Mouse enter handler\n */\n onMouseEnter: z.function().optional().describe('Mouse enter handler'),\n\n /**\n * Mouse leave handler\n */\n onMouseLeave: z.function().optional().describe('Mouse leave handler'),\n\n /**\n * Key down handler\n */\n onKeyDown: z.function().optional().describe('Key down handler'),\n\n /**\n * Key up handler\n */\n onKeyUp: z.function().optional().describe('Key up handler'),\n\n /**\n * Form submission handler\n */\n onSubmit: z.function().optional().describe('Form submission handler'),\n\n /**\n * Tab index for keyboard navigation\n */\n tabIndex: z.number().optional().describe('Tab index for keyboard navigation'),\n\n /**\n * ARIA label for accessibility\n */\n 'aria-label': z.string().optional().describe('ARIA label for accessibility'),\n\n /**\n * ARIA labelled by reference\n */\n 'aria-labelledby': z.string().optional().describe('ARIA labelled by reference'),\n\n /**\n * ARIA described by reference\n */\n 'aria-describedby': z.string().optional().describe('ARIA described by reference'),\n\n /**\n * ARIA expanded state\n */\n 'aria-expanded': z.boolean().optional().describe('ARIA expanded state'),\n\n /**\n * ARIA pressed state\n */\n 'aria-pressed': z.boolean().optional().describe('ARIA pressed state'),\n\n /**\n * ARIA current state\n */\n 'aria-current': z\n .union([z.boolean(), z.enum(['page', 'step', 'location', 'date', 'time'])])\n .optional()\n .describe('ARIA current state'),\n\n /**\n * ARIA controls reference\n */\n 'aria-controls': z.string().optional().describe('ARIA controls reference'),\n\n /**\n * ARIA owns reference\n */\n 'aria-owns': z.string().optional().describe('ARIA owns reference'),\n\n /**\n * Data attributes\n */\n 'data-*': z.record(z.string(), z.string()).optional().describe('Data attributes'),\n\n /**\n * ID attribute\n */\n id: z.string().optional().describe('ID attribute'),\n\n /**\n * Title attribute for tooltip\n */\n title: z.string().optional().describe('Title attribute for tooltip'),\n\n /**\n * Role attribute\n */\n role: z.string().optional().describe('Role attribute'),\n\n /**\n * Children elements\n */\n children: z.any().optional().describe('Children elements'),\n })\n .strict();\n\n/**\n * Type derived from BaseButton Zod schema\n * This ensures type safety and consistency with the schema\n */\nexport type BaseButtonProps = z.infer<typeof BaseButtonSchema>;\n\n/**\n * Development-only helper to validate and normalize props\n * This function should only be used in development mode\n *\n * @param props - Props to validate and normalize\n * @returns Validated and normalized props\n *\n * @example\n * ```tsx\n * // In development, this will validate props and show helpful errors\n * const validatedProps = parseBaseButtonProps({ size: 'invalid', variant: 'solid' });\n * // Throws: \"Invalid enum value. Expected '1' | '2' | '3' | '4', received 'invalid'\"\n * ```\n */\nexport function parseBaseButtonProps(props: unknown): BaseButtonProps {\n if (process.env.NODE_ENV === 'development') {\n return BaseButtonSchema.parse(props);\n }\n return props as BaseButtonProps;\n}\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,4BAAAE,EAAA,+BAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAAkB,eCAlB,IAAAC,EAAkB,eAqBLC,EAAmB,IAC7B,OAAO,CAKN,GAAI,IAAE,OAAO,EAAE,SAAS,EAAE,SAAS,gCAAgC,EAMnE,QAAS,IACN,QAAQ,EACR,SAAS,EACT,SAAS,6DAA6D,EAOzE,KAAM,IACH,MAAM,CACL,IAAE,KAAK,CAAC,IAAK,IAAK,IAAK,GAAG,CAAC,EAC3B,IAAE,OAAO,CACP,QAAS,IAAE,KAAK,CAAC,IAAK,IAAK,IAAK,GAAG,CAAC,EAAE,SAAS,EAC/C,GAAI,IAAE,KAAK,CAAC,IAAK,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GAEK,EAAAA,EAAK,UAAY,QAAaA,EAAK,kBAAoB,QAK7D,CACE,QAAS,mFACT,KAAM,CAAC,iBAAiB,CAC1B,CACF,EACC,OACEA,GAEK,EAAAA,EAAK,UAAY,QAAaA,EAAK,iBAAmB,QAK5D,CACE,QACE,wFACF,KAAM,CAAC,UAAW,gBAAgB,CACpC,CACF,EAgCK,SAASC,EAA2BC,EAAuC,CAIhF,OAAOA,CACT",
4
+ "sourcesContent": ["import { z } from 'zod';\nimport { BaseButtonSchema } from './base-button.schema.js';\n\n/**\n * ToggleIconButton Zod schema - Single source of truth for ToggleIconButton component props\n *\n * ToggleIconButton extends IconButton with toggle functionality using Radix UI's Toggle primitive.\n * It provides proper accessibility announcements, controlled/uncontrolled state management,\n * and seamless integration with the existing IconButton component.\n *\n * Key features:\n * - Required accessibility attributes (aria-label, aria-labelledby, or children)\n * - Controlled and uncontrolled state management\n * - Live accessibility announcements for screen readers\n * - Tooltip support for better UX\n * - Proper ARIA attributes for toggle functionality\n *\n * @example\n * ```tsx\n * // Uncontrolled toggle icon button\n * const props = ToggleIconButtonSchema.parse({\n * 'aria-label': 'Toggle sidebar',\n * defaultPressed: false,\n * variant: 'ghost'\n * });\n *\n * // Controlled toggle icon button\n * const controlledProps = ToggleIconButtonSchema.parse({\n * 'aria-label': 'Toggle dark mode',\n * pressed: true,\n * onPressedChange: (pressed) => setDarkMode(pressed),\n * variant: 'soft'\n * });\n *\n * // Toggle icon button with tooltip\n * const tooltipProps = ToggleIconButtonSchema.parse({\n * 'aria-label': 'Toggle notifications',\n * defaultPressed: false,\n * tooltip: 'Toggle notification settings',\n * tooltipSide: 'right'\n * });\n * ```\n */\nexport const ToggleIconButtonSchema = BaseButtonSchema.extend({\n /**\n * Content to display in the tooltip on hover/focus\n */\n tooltip: z.string().optional().describe('Content to display in the tooltip on hover/focus'),\n\n /**\n * Side of the button where the tooltip should appear\n * @default 'top'\n */\n tooltipSide: z\n .enum(['top', 'right', 'bottom', 'left'])\n .optional()\n .default('top')\n .describe('Side of the button where the tooltip should appear'),\n\n /**\n * Alignment of the tooltip relative to the button\n * @default 'center'\n */\n tooltipAlign: z\n .enum(['start', 'center', 'end'])\n .optional()\n .default('center')\n .describe('Alignment of the tooltip relative to the button'),\n\n /**\n * Delay before showing the tooltip (in milliseconds)\n */\n tooltipDelayDuration: z\n .number()\n .optional()\n .describe('Delay before showing the tooltip (in milliseconds)'),\n\n /**\n * Whether to disable hoverable content behavior\n * @default false\n */\n tooltipDisableHoverableContent: z\n .boolean()\n .optional()\n .default(false)\n .describe('Whether to disable hoverable content behavior'),\n\n /**\n * ARIA label for accessibility (required if no aria-labelledby or children)\n * Icon buttons must have an accessible name to meet WCAG guidelines\n */\n 'aria-label': z.string().optional().describe('ARIA label for accessibility'),\n\n /**\n * ARIA labelled by reference (required if no aria-label or children)\n * Icon buttons must have an accessible name to meet WCAG guidelines\n */\n 'aria-labelledby': z.string().optional().describe('ARIA labelled by reference'),\n\n /**\n * Children elements (required if no aria-label or aria-labelledby)\n * Icon buttons must have an accessible name to meet WCAG guidelines\n */\n children: z\n .any()\n .optional()\n .describe('Children elements (required for accessibility if no aria-label)'),\n\n /**\n * Controlled pressed state\n * When provided, the component is controlled and the pressed state is managed externally\n */\n pressed: z.boolean().optional().describe('Controlled pressed state'),\n\n /**\n * Callback when pressed state changes\n * Called with the new pressed state when the toggle is activated\n */\n onPressedChange: z.function().optional().describe('Callback when pressed state changes'),\n\n /**\n * Default pressed state for uncontrolled usage\n * Used as the initial pressed state when the component is uncontrolled\n */\n defaultPressed: z.boolean().optional().describe('Default pressed state for uncontrolled usage'),\n})\n .refine((data: any) => data['aria-label'] || data['aria-labelledby'] || data.children, {\n message:\n \"ToggleIconButton must have either 'aria-label', 'aria-labelledby', or 'children' for accessibility\",\n path: ['aria-label', 'aria-labelledby', 'children'],\n })\n .refine(\n (data: any) => {\n // If pressed is provided, onPressedChange should also be provided for controlled usage\n if (data.pressed !== undefined && data.onPressedChange === undefined) {\n return false;\n }\n return true;\n },\n {\n message: 'When using controlled mode (pressed prop), onPressedChange must also be provided',\n path: ['onPressedChange'],\n },\n )\n .refine(\n (data: any) => {\n // Cannot have both controlled and uncontrolled props\n if (data.pressed !== undefined && data.defaultPressed !== undefined) {\n return false;\n }\n return true;\n },\n {\n message:\n 'Cannot use both controlled (pressed) and uncontrolled (defaultPressed) props together',\n path: ['pressed', 'defaultPressed'],\n },\n );\n\n/**\n * Type derived from ToggleIconButton Zod schema\n * This ensures type safety and consistency with the schema\n */\nexport type ToggleIconButtonProps = z.infer<typeof ToggleIconButtonSchema>;\n\n/**\n * Development-only helper to validate and normalize ToggleIconButton props\n * This function should only be used in development mode\n *\n * @param props - Props to validate and normalize\n * @returns Validated and normalized props\n *\n * @example\n * ```tsx\n * // In development, this will validate props and show helpful errors\n * const invalidProps = parseToggleIconButtonProps({\n * pressed: true,\n * defaultPressed: false\n * // Missing onPressedChange, conflicting controlled/uncontrolled, and missing accessibility\n * });\n * // Throws multiple validation errors\n *\n * const validProps = parseToggleIconButtonProps({\n * 'aria-label': 'Toggle menu',\n * pressed: true,\n * onPressedChange: (pressed) => setMenuOpen(pressed)\n * });\n * ```\n */\nexport function parseToggleIconButtonProps(props: unknown): ToggleIconButtonProps {\n if (process.env.NODE_ENV === 'development') {\n return ToggleIconButtonSchema.parse(props);\n }\n return props as ToggleIconButtonProps;\n}\n", "import { z } from 'zod';\n\n/**\n * BaseButton Zod schema - Single source of truth for all button component props\n *\n * This schema defines the core button functionality used by Button, IconButton,\n * ToggleButton, and ToggleIconButton components. It ensures consistency across\n * the design system and provides machine-readable validation.\n *\n * @example\n * ```tsx\n * // Basic validation\n * const props = BaseButtonSchema.parse({ size: '2', variant: 'solid' });\n *\n * // With responsive props\n * const responsiveProps = BaseButtonSchema.parse({\n * size: { initial: '1', sm: '2', md: '3' },\n * variant: 'solid'\n * });\n * ```\n */\nexport const BaseButtonSchema = z\n .object({\n /**\n * Polymorphic rendering - render as different HTML elements\n * @default 'button'\n */\n as: z.string().optional().describe('HTML element type to render as'),\n\n /**\n * Use asChild to merge props with child element\n * @default false\n */\n asChild: z\n .boolean()\n .optional()\n .describe('Merge props with child element instead of rendering wrapper'),\n\n /**\n * Button size for responsive design and interface density\n * Supports responsive objects: { initial: '1', sm: '2', md: '3', lg: '4' }\n * @default '2'\n */\n size: z\n .union([\n z.enum(['1', '2', '3', '4']),\n z.object({\n initial: z.enum(['1', '2', '3', '4']).optional(),\n sm: z.enum(['1', '2', '3', '4']).optional(),\n md: z.enum(['1', '2', '3', '4']).optional(),\n lg: z.enum(['1', '2', '3', '4']).optional(),\n xl: z.enum(['1', '2', '3', '4']).optional(),\n }),\n ])\n .default('2')\n .describe('Button size for responsive design and interface density'),\n\n /**\n * Visual variant that determines the button's appearance and context\n * @default 'solid'\n */\n variant: z\n .enum(['raised', 'solid', 'soft', 'surface', 'outline', 'ghost'])\n .default('solid')\n .describe(\"Visual variant that determines the button's appearance and context\"),\n\n /**\n * Accent color for the button\n */\n color: z\n .enum([\n 'tomato',\n 'red',\n 'ruby',\n 'crimson',\n 'pink',\n 'plum',\n 'purple',\n 'violet',\n 'iris',\n 'indigo',\n 'blue',\n 'cyan',\n 'teal',\n 'jade',\n 'green',\n 'grass',\n 'brown',\n 'orange',\n 'sky',\n 'mint',\n 'lime',\n 'yellow',\n 'amber',\n 'gold',\n 'bronze',\n 'gray',\n ])\n .optional()\n .describe('Accent color for the button'),\n\n /**\n * Border radius for the button\n */\n radius: z\n .enum(['none', 'small', 'medium', 'large', 'full'])\n .optional()\n .describe('Border radius for the button'),\n\n /**\n * Loading state that shows a spinner and disables interaction\n * Automatically sets disabled=true and provides accessibility announcements\n * @default false\n */\n loading: z\n .boolean()\n .optional()\n .default(false)\n .describe('Loading state that shows a spinner and disables interaction'),\n\n /**\n * Flush mode that removes visual padding for seamless text integration\n * Only effective with ghost variant\n * @default false\n */\n flush: z\n .boolean()\n .optional()\n .default(false)\n .describe('Flush mode that removes visual padding for seamless text integration'),\n\n /**\n * Disabled state\n * @default false\n */\n disabled: z.boolean().optional().default(false).describe('Disabled state'),\n\n /**\n * Type attribute for form buttons\n * @default 'button'\n */\n type: z\n .enum(['button', 'submit', 'reset'])\n .optional()\n .describe('Type attribute for form buttons'),\n\n /**\n * Additional CSS class name\n */\n className: z.string().optional().describe('Additional CSS class name'),\n\n /**\n * Inline styles\n */\n style: z\n .record(z.string(), z.union([z.string(), z.number()]))\n .optional()\n .describe('Inline styles'),\n\n /**\n * Click handler\n */\n onClick: z.function().optional().describe('Click handler'),\n\n /**\n * Focus handler\n */\n onFocus: z.function().optional().describe('Focus handler'),\n\n /**\n * Blur handler\n */\n onBlur: z.function().optional().describe('Blur handler'),\n\n /**\n * Mouse enter handler\n */\n onMouseEnter: z.function().optional().describe('Mouse enter handler'),\n\n /**\n * Mouse leave handler\n */\n onMouseLeave: z.function().optional().describe('Mouse leave handler'),\n\n /**\n * Key down handler\n */\n onKeyDown: z.function().optional().describe('Key down handler'),\n\n /**\n * Key up handler\n */\n onKeyUp: z.function().optional().describe('Key up handler'),\n\n /**\n * Form submission handler\n */\n onSubmit: z.function().optional().describe('Form submission handler'),\n\n /**\n * Tab index for keyboard navigation\n */\n tabIndex: z.number().optional().describe('Tab index for keyboard navigation'),\n\n /**\n * ARIA label for accessibility\n */\n 'aria-label': z.string().optional().describe('ARIA label for accessibility'),\n\n /**\n * ARIA labelled by reference\n */\n 'aria-labelledby': z.string().optional().describe('ARIA labelled by reference'),\n\n /**\n * ARIA described by reference\n */\n 'aria-describedby': z.string().optional().describe('ARIA described by reference'),\n\n /**\n * ARIA expanded state\n */\n 'aria-expanded': z.boolean().optional().describe('ARIA expanded state'),\n\n /**\n * ARIA pressed state\n */\n 'aria-pressed': z.boolean().optional().describe('ARIA pressed state'),\n\n /**\n * ARIA current state\n */\n 'aria-current': z\n .union([z.boolean(), z.enum(['page', 'step', 'location', 'date', 'time'])])\n .optional()\n .describe('ARIA current state'),\n\n /**\n * ARIA controls reference\n */\n 'aria-controls': z.string().optional().describe('ARIA controls reference'),\n\n /**\n * ARIA owns reference\n */\n 'aria-owns': z.string().optional().describe('ARIA owns reference'),\n\n /**\n * Data attributes\n */\n 'data-*': z.record(z.string(), z.string()).optional().describe('Data attributes'),\n\n /**\n * ID attribute\n */\n id: z.string().optional().describe('ID attribute'),\n\n /**\n * Title attribute for tooltip\n */\n title: z.string().optional().describe('Title attribute for tooltip'),\n\n /**\n * Role attribute\n */\n role: z.string().optional().describe('Role attribute'),\n\n /**\n * Children elements\n */\n children: z.any().optional().describe('Children elements'),\n })\n .strict();\n\n/**\n * Type derived from BaseButton Zod schema\n * This ensures type safety and consistency with the schema\n */\nexport type BaseButtonProps = z.infer<typeof BaseButtonSchema>;\n\n/**\n * Development-only helper to validate and normalize props\n * This function should only be used in development mode\n *\n * @param props - Props to validate and normalize\n * @returns Validated and normalized props\n *\n * @example\n * ```tsx\n * // In development, this will validate props and show helpful errors\n * const validatedProps = parseBaseButtonProps({ size: 'invalid', variant: 'solid' });\n * // Throws: \"Invalid enum value. Expected '1' | '2' | '3' | '4', received 'invalid'\"\n * ```\n */\nexport function parseBaseButtonProps(props: unknown): BaseButtonProps {\n if (process.env.NODE_ENV === 'development') {\n return BaseButtonSchema.parse(props);\n }\n return props as BaseButtonProps;\n}\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,4BAAAE,EAAA,+BAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAAkB,eCAlB,IAAAC,EAAkB,eAqBLC,EAAmB,IAC7B,OAAO,CAKN,GAAI,IAAE,OAAO,EAAE,SAAS,EAAE,SAAS,gCAAgC,EAMnE,QAAS,IACN,QAAQ,EACR,SAAS,EACT,SAAS,6DAA6D,EAOzE,KAAM,IACH,MAAM,CACL,IAAE,KAAK,CAAC,IAAK,IAAK,IAAK,GAAG,CAAC,EAC3B,IAAE,OAAO,CACP,QAAS,IAAE,KAAK,CAAC,IAAK,IAAK,IAAK,GAAG,CAAC,EAAE,SA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BAAoB,QAK7D,CACE,QAAS,mFACT,KAAM,CAAC,iBAAiB,CAC1B,CACF,EACC,OACEA,GAEK,EAAAA,EAAK,UAAY,QAAaA,EAAK,iBAAmB,QAK5D,CACE,QACE,wFACF,KAAM,CAAC,UAAW,gBAAgB,CACpC,CACF,EAgCK,SAASC,EAA2BC,EAAuC,CAIhF,OAAOA,CACT",
6
6
  "names": ["toggle_icon_button_schema_exports", "__export", "ToggleIconButtonSchema", "parseToggleIconButtonProps", "__toCommonJS", "import_zod", "import_zod", "BaseButtonSchema", "ToggleIconButtonSchema", "BaseButtonSchema", "data", "parseToggleIconButtonProps", "props"]
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"segmented-control.d.ts","sourceRoot":"","sources":["../../../src/components/segmented-control.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAG/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAI5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,KAAK,4BAA4B,GAAG,eAAe,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEzF,UAAU,yBACR,SAAQ,qBAAqB,CAAC,KAAK,EAAE,YAAY,GAAG,KAAK,CAAC,EACxD,4BAA4B,EAC5B,WAAW;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,QAAA,MAAM,oBAAoB,kGA4CzB,CAAC;AAIF,UAAU,4BAA4B;IACpC,KAAK,EAAE,MA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ACd,mEAAmE;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,yBACR,SAAQ,qBAAqB,CACzB,OAAO,oBAAoB,CAAC,IAAI,EAChC,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAC7C,EACD,4BAA4B;CAAG;AAEnC,QAAA,MAAM,oBAAoB,qGAmBzB,CAAC;AAIF,OAAO,EAAE,oBAAoB,IAAI,IAAI,EAAE,oBAAoB,IAAI,IAAI,EAAE,CAAC;AACtE,YAAY,EAAE,yBAAyB,IAAI,SAAS,EAAE,yBAAyB,IAAI,SAAS,EAAE,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";"use client";var M=Object.create;var y=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var A=(t,e)=>{for(var n in e)y(t,n,{get:e[n],enumerable:!0})},T=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of W(e))!U.call(t,o)&&o!==n&&y(t,o,{get:()=>e[o],enumerable:!(i=B(e,o))||i.enumerable});return t};var D=(t,e,n)=>(n=t!=null?M(z(t)):{},T(e||!t||!t.__esModule?y(n,"default",{value:t,enumerable:!0}):n,t)),L=t=>T(y({},"__esModule",{value:!0}),t);var ne={};A(ne,{Item:()=>K,Root:()=>E});module.exports=L(ne);var m=D(require("react")),C=D(require("classnames")),N=require("radix-ui"),$=require("radix-ui/internal");var q=["none","small","medium","large","full"],V={radius:{type:"enum",values:q,default:void 0}};var H=["1","2","3","4"],Y=["horizontal","vertical"],x={disabled:{type:"boolean",className:"disabled",default:!1},size:{type:"enum",className:"rt-r-size",values:H,default:"2",responsive:!0},orientation:{type:"enum",className:"rt-r-orientation",values:Y,default:"horizontal",responsive:!0},material:{type:"enum",values:["solid","translucent"]},...V};var j=D(require("classnames"));var _=[],F=new Set;function J(t){let e=Object.assign({},...t),n=[],i=[],o=new Set;for(let p in e){let s=e[p],l=s.values??_,a={key:p,type:s.type,default:s.default,hasDefault:s.default!==void 0,responsive:"responsive"in s,className:s.className,customProperties:s.customProperties,parseValue:s.parseValue,values:l,valueSet:l.length>0?new Set(l):F,enumValueSet:s.type==="enum"?new Set([s.default,...l]):void 0};s.className?(n.push(a),o.add(p)):(a.hasDefault||s.type==="enum")&&i.push(a)}return{styling:n,passthrough:i,stylingKeys:o}}var Q={children:new WeakMap};function k(t){let e=Q;for(let n=0;n<t.length;n++){let i=t[n],o=e.children.get(i);o===void 0&&(o={children:new WeakMap},e.children.set(i,o)),e=o}return e.compiled??(e.compiled=J(t))}var X=["initial","xs","sm","md","lg","xl"],v=new Set(X);function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Z=new Set(["initial","xs","sm","md","lg","xl"]);function d(t){if(typeof t!="object"||t===null)return!1;for(let e in t)if(Z.has(e))return!0;return!1}function P(t,e,n){return e!==void 0?e.has(n):t.includes(n)}function w({className:t,customProperties:e,...n}){let i=S({allowArbitraryValues:!0,className:t,...n}),o=ee({customProperties:e,...n});return[i,o]}function S({allowArbitraryValues:t,value:e,className:n,propValues:i,propValueSet:o,parseValue:p=s=>s}){if(e){if(typeof e=="string")return P(i,o,e)?O(n,e,p):t?n:void 0;if(d(e)){let s=e,l=[];for(let a in s){if(!R(s,a)||!v.has(a))continue;let r=s[a];if(r!==void 0){if(P(i,o,r)){let u=O(n,r,p),f=a==="initial"?u:`${a}:${u}`;l.push(f)}else if(t){let u=a==="initial"?n:`${a}:${n}`;l.push(u)}}}return l.length>0?l.join(" "):""}if(t)return n}}function O(t,e,n){let i=t?"-":"",o=n(e),p=o?.startsWith("-"),s=p?"-":"",l=p?o?.substring(1):o;return`${s}${t}${i}${l}`}function ee({customProperties:t,value:e,propValues:n,propValueSet:i,parseValue:o=p=>p}){if(!e||typeof e=="string"&&P(n,i,e))return;let p;if(typeof e=="string"){let s=o(e);p={};for(let l of t)p[l]=s;return p}if(d(e)){let s=e;for(let l in s){if(!R(s,l)||!v.has(l))continue;let a=s[l];if(a===void 0||P(n,i,a))continue;let r=o(a);p??(p={});for(let u of t){let f=l==="initial"?u:`${u}-${l}`;p[f]=r}}}return p??{}}function b(...t){let e;for(let n of t)n&&(e===void 0&&(e={}),Object.assign(e,n));return e}function te(t,e){let n=t.initial,i=!1;return e.hasDefault&&n===void 0&&(n=e.default,i=!0),e.enumValueSet!==void 0&&!e.enumValueSet.has(n)&&(n=e.default,i=!0),i?{...t,initial:n}:t}function I(t,...e){let{styling:n,passthrough:i,stylingKeys:o}=k(e),p={};for(let a in t)o.has(a)||(p[a]=t[a]);for(let a=0;a<i.length;a++){let r=i[a],u=p[r.key];if(u===void 0){r.hasDefault&&(p[r.key]=r.default);continue}r.enumValueSet!==void 0&&!r.enumValueSet.has(u)&&!d(u)&&(p[r.key]=r.default)}let s,l=[];for(let a=0;a<n.length;a++){let r=n[a],u=t[r.key];if(u===void 0&&r.hasDefault&&(u=r.default),r.enumValueSet!==void 0&&!r.enumValueSet.has(u)&&!d(u)&&(u=r.default),!!u){if(d(u)){if(!r.responsive)continue;u=te(u,r)}if(r.type==="enum"){let f=S({allowArbitraryValues:!1,value:u,className:r.className,propValues:r.values,propValueSet:r.valueSet,parseValue:r.parseValue});f&&l.push(f);continue}if(r.type==="string"||r.type==="enum | string"){let[f,g]=w({className:r.className,customProperties:r.customProperties,propValues:r.type==="string"?[]:r.values,propValueSet:r.type==="string"?void 0:r.valueSet,parseValue:r.parseValue,value:u});g&&(s=b(s,g)),f&&l.push(f);continue}if(r.type==="boolean"){l.push(r.className);continue}}}return p.className=(0,j.default)(l.length>0?l.join(" "):void 0,t.className),p.style=b(s,t.style),p}var c=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10","-11","-12"],G={m:{type:"enum | string",values:c,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:c,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:c,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:c,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:c,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:c,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:c,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var E=m.forwardRef((t,e)=>{let{className:n,children:i,radius:o,value:p,defaultValue:s,onValueChange:l,material:a,...r}=I(t,x,G),u=a,[f,g]=(0,$.useControllableState)({prop:p,onChange:l,defaultProp:s??""});return m.createElement(N.ToggleGroup.Root,{"data-disabled":t.disabled||void 0,"data-radius":o,"data-material":u,ref:e,className:(0,C.default)("rt-SegmentedControlRoot",n),onValueChange:h=>{h&&g(h)},...r,type:"single",value:f,asChild:!1,disabled:!!t.disabled},i,m.createElement("div",{className:"rt-SegmentedControlIndicator"}))});E.displayName="SegmentedControl.Root";var K=m.forwardRef(({children:t,className:e,iconOnly:n,...i},o)=>m.createElement(N.ToggleGroup.Item,{ref:o,className:(0,C.default)("rt-reset","rt-SegmentedControlItem",e),"data-icon-only":n||void 0,...i,disabled:!1,asChild:!1},m.createElement("span",{className:"rt-SegmentedControlItemSeparator"}),m.createElement("span",{className:"rt-SegmentedControlItemLabel"},m.createElement("span",{className:"rt-SegmentedControlItemLabelActive"},t),m.createElement("span",{className:"rt-SegmentedControlItemLabelInactive","aria-hidden":!0},t))));K.displayName="SegmentedControl.Item";
1
+ "use strict";"use client";var K=Object.create;var g=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var n in e)g(t,n,{get:e[n],enumerable:!0})},h=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of B(e))!z.call(t,o)&&o!==n&&g(t,o,{get:()=>e[o],enumerable:!(i=M(e,o))||i.enumerable});return t};var P=(t,e,n)=>(n=t!=null?K(W(t)):{},h(e||!t||!t.__esModule?g(n,"default",{value:t,enumerable:!0}):n,t)),A=t=>h(g({},"__esModule",{value:!0}),t);var te={};U(te,{Item:()=>E,Root:()=>$});module.exports=A(te);var m=P(require("react")),b=P(require("classnames")),C=require("radix-ui"),G=require("radix-ui/internal");var L=["none","small","medium","large","full"],T={radius:{type:"enum",values:L,default:void 0}};var q=["1","2","3","4"],H=["horizontal","vertical"],V={disabled:{type:"boolean",className:"disabled",default:!1},size:{type:"enum",className:"rt-r-size",values:q,default:"2",responsive:!0},orientation:{type:"enum",className:"rt-r-orientation",values:H,default:"horizontal",responsive:!0},...T};var w=P(require("classnames"));var Y=[],_=new Set;function F(t){let e=Object.assign({},...t),n=[],i=[],o=new Set;for(let p in e){let r=e[p],l=r.values??Y,a={key:p,type:r.type,default:r.default,hasDefault:r.default!==void 0,responsive:"responsive"in r,className:r.className,customProperties:r.customProperties,parseValue:r.parseValue,values:l,valueSet:l.length>0?new Set(l):_,enumValueSet:r.type==="enum"?new Set([r.default,...l]):void 0};r.className?(n.push(a),o.add(p)):(a.hasDefault||r.type==="enum")&&i.push(a)}return{styling:n,passthrough:i,stylingKeys:o}}var J={children:new WeakMap};function x(t){let e=J;for(let n=0;n<t.length;n++){let i=t[n],o=e.children.get(i);o===void 0&&(o={children:new WeakMap},e.children.set(i,o)),e=o}return e.compiled??(e.compiled=F(t))}var Q=["initial","xs","sm","md","lg","xl"],D=new Set(Q);function v(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var X=new Set(["initial","xs","sm","md","lg","xl"]);function d(t){if(typeof t!="object"||t===null)return!1;for(let e in t)if(X.has(e))return!0;return!1}function y(t,e,n){return e!==void 0?e.has(n):t.includes(n)}function O({className:t,customProperties:e,...n}){let i=R({allowArbitraryValues:!0,className:t,...n}),o=Z({customProperties:e,...n});return[i,o]}function R({allowArbitraryValues:t,value:e,className:n,propValues:i,propValueSet:o,parseValue:p=r=>r}){if(e){if(typeof e=="string")return y(i,o,e)?k(n,e,p):t?n:void 0;if(d(e)){let r=e,l=[];for(let a in r){if(!v(r,a)||!D.has(a))continue;let s=r[a];if(s!==void 0){if(y(i,o,s)){let f=k(n,s,p),u=a==="initial"?f:`${a}:${f}`;l.push(u)}else if(t){let f=a==="initial"?n:`${a}:${n}`;l.push(f)}}}return l.length>0?l.join(" "):""}if(t)return n}}function k(t,e,n){let i=t?"-":"",o=n(e),p=o?.startsWith("-"),r=p?"-":"",l=p?o?.substring(1):o;return`${r}${t}${i}${l}`}function Z({customProperties:t,value:e,propValues:n,propValueSet:i,parseValue:o=p=>p}){if(!e||typeof e=="string"&&y(n,i,e))return;let p;if(typeof e=="string"){let r=o(e);p={};for(let l of t)p[l]=r;return p}if(d(e)){let r=e;for(let l in r){if(!v(r,l)||!D.has(l))continue;let a=r[l];if(a===void 0||y(n,i,a))continue;let s=o(a);p??(p={});for(let f of t){let u=l==="initial"?f:`${f}-${l}`;p[u]=s}}}return p??{}}function S(...t){let e;for(let n of t)n&&(e===void 0&&(e={}),Object.assign(e,n));return e}function ee(t,e){let n=t.initial,i=!1;return e.hasDefault&&n===void 0&&(n=e.default,i=!0),e.enumValueSet!==void 0&&!e.enumValueSet.has(n)&&(n=e.default,i=!0),i?{...t,initial:n}:t}function j(t,...e){let{styling:n,passthrough:i,stylingKeys:o}=x(e),p={};for(let a in t)o.has(a)||(p[a]=t[a]);for(let a=0;a<i.length;a++){let s=i[a],f=p[s.key];if(f===void 0){s.hasDefault&&(p[s.key]=s.default);continue}s.enumValueSet!==void 0&&!s.enumValueSet.has(f)&&!d(f)&&(p[s.key]=s.default)}let r,l=[];for(let a=0;a<n.length;a++){let s=n[a],f=t[s.key];if(f===void 0&&s.hasDefault&&(f=s.default),s.enumValueSet!==void 0&&!s.enumValueSet.has(f)&&!d(f)&&(f=s.default),!!f){if(d(f)){if(!s.responsive)continue;f=ee(f,s)}if(s.type==="enum"){let u=R({allowArbitraryValues:!1,value:f,className:s.className,propValues:s.values,propValueSet:s.valueSet,parseValue:s.parseValue});u&&l.push(u);continue}if(s.type==="string"||s.type==="enum | string"){let[u,N]=O({className:s.className,customProperties:s.customProperties,propValues:s.type==="string"?[]:s.values,propValueSet:s.type==="string"?void 0:s.valueSet,parseValue:s.parseValue,value:f});N&&(r=S(r,N)),u&&l.push(u);continue}if(s.type==="boolean"){l.push(s.className);continue}}}return p.className=(0,w.default)(l.length>0?l.join(" "):void 0,t.className),p.style=S(r,t.style),p}var c=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10","-11","-12"],I={m:{type:"enum | string",values:c,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:c,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:c,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:c,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:c,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:c,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:c,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var $=m.forwardRef((t,e)=>{let{className:n,children:i,radius:o,value:p,defaultValue:r,onValueChange:l,...a}=j(t,V,I),[s,f]=(0,G.useControllableState)({prop:p,onChange:l,defaultProp:r??""});return m.createElement(C.ToggleGroup.Root,{"data-disabled":t.disabled||void 0,"data-radius":o,ref:e,className:(0,b.default)("rt-SegmentedControlRoot",n),onValueChange:u=>{u&&f(u)},...a,type:"single",value:s,asChild:!1,disabled:!!t.disabled},i,m.createElement("div",{className:"rt-SegmentedControlIndicator"}))});$.displayName="SegmentedControl.Root";var E=m.forwardRef(({children:t,className:e,iconOnly:n,...i},o)=>m.createElement(C.ToggleGroup.Item,{ref:o,className:(0,b.default)("rt-reset","rt-SegmentedControlItem",e),"data-icon-only":n||void 0,...i,disabled:!1,asChild:!1},m.createElement("span",{className:"rt-SegmentedControlItemSeparator"}),m.createElement("span",{className:"rt-SegmentedControlItemLabel"},m.createElement("span",{className:"rt-SegmentedControlItemLabelActive"},t),m.createElement("span",{className:"rt-SegmentedControlItemLabelInactive","aria-hidden":!0},t))));E.displayName="SegmentedControl.Item";
2
2
  //# sourceMappingURL=segmented-control.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/segmented-control.tsx", "../../../src/props/radius.prop.ts", "../../../src/components/segmented-control.props.tsx", "../../../src/helpers/extract-props.ts", "../../../src/helpers/compile-prop-defs.ts", "../../../src/props/prop-def.ts", "../../../src/helpers/has-own-property.ts", "../../../src/helpers/is-responsive-object.ts", "../../../src/helpers/get-responsive-styles.ts", "../../../src/helpers/merge-styles.ts", "../../../src/props/margin.props.ts"],
4
- "sourcesContent": ["'use client';\n\nimport { warnDeprecated } from '../helpers/warn-deprecated.js';\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui';\nimport { useControllableState } from 'radix-ui/internal';\n\nimport { segmentedControlRootPropDefs } from './segmented-control.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype SegmentedControlRootOwnProps = GetPropDefTypes<typeof segmentedControlRootPropDefs>;\n\ninterface SegmentedControlRootProps\n extends ComponentPropsWithout<'div', RemovedProps | 'dir'>,\n SegmentedControlRootOwnProps,\n MarginProps {\n value?: string;\n defaultValue?: string;\n onValueChange?(value: string): void;\n}\n\nconst SegmentedControlRoot = React.forwardRef<HTMLDivElement, SegmentedControlRootProps>(\n (props, forwardedRef) => {\n const {\n className,\n children,\n radius,\n value: valueProp,\n defaultValue: defaultValueProp,\n onValueChange: onValueChangeProp,\n material: materialProp,\n ...rootProps\n } = extractProps(props, segmentedControlRootPropDefs, marginPropDefs);\n const material = materialProp;\n\n\n const [value, setValue] = useControllableState({\n prop: valueProp,\n onChange: onValueChangeProp,\n defaultProp: defaultValueProp ?? '',\n });\n\n return (\n <ToggleGroupPrimitive.Root\n data-disabled={props.disabled || undefined}\n data-radius={radius}\n data-material={material}\n ref={forwardedRef}\n className={classNames('rt-SegmentedControlRoot', className)}\n onValueChange={(value) => {\n if (value) {\n setValue(value);\n }\n }}\n {...rootProps}\n type=\"single\"\n value={value}\n asChild={false}\n disabled={!!props.disabled}\n >\n {children}\n <div className=\"rt-SegmentedControlIndicator\" />\n </ToggleGroupPrimitive.Root>\n );\n },\n);\n\nSegmentedControlRoot.displayName = 'SegmentedControl.Root';\n\ninterface SegmentedControlItemOwnProps {\n value: string;\n /** When true, applies fixed square width for icon-only segments */\n iconOnly?: boolean;\n}\n\ninterface SegmentedControlItemProps\n extends ComponentPropsWithout<\n typeof ToggleGroupPrimitive.Item,\n RemovedProps | 'disabled' | 'type' | 'value'\n >,\n SegmentedControlItemOwnProps {}\n\nconst SegmentedControlItem = React.forwardRef<HTMLButtonElement, SegmentedControlItemProps>(\n ({ children, className, iconOnly, ...props }, forwardedRef) => (\n <ToggleGroupPrimitive.Item\n ref={forwardedRef}\n className={classNames('rt-reset', 'rt-SegmentedControlItem', className)}\n data-icon-only={iconOnly || undefined}\n {...props}\n disabled={false}\n asChild={false}\n >\n <span className=\"rt-SegmentedControlItemSeparator\" />\n <span className=\"rt-SegmentedControlItemLabel\">\n <span className=\"rt-SegmentedControlItemLabelActive\">{children}</span>\n <span className=\"rt-SegmentedControlItemLabelInactive\" aria-hidden>\n {children}\n </span>\n </span>\n </ToggleGroupPrimitive.Item>\n ),\n);\n\nSegmentedControlItem.displayName = 'SegmentedControl.Item';\n\nexport { SegmentedControlRoot as Root, SegmentedControlItem as Item };\nexport type { SegmentedControlRootProps as RootProps, SegmentedControlItemProps as ItemProps };\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n", "import { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst orientations = ['horizontal', 'vertical'] as const;\n\nconst segmentedControlRootPropDefs = {\n disabled: { type: 'boolean', className: 'disabled', default: false },\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n orientation: {\n type: 'enum',\n className: 'rt-r-orientation',\n values: orientations,\n default: 'horizontal',\n responsive: true,\n },\n material: { type: 'enum', values: ['solid', 'translucent'] },\n ...radiusPropDef,\n} satisfies {\n disabled?: PropDef<boolean>;\n size: PropDef<(typeof sizes)[number]>;\n orientation: PropDef<(typeof orientations)[number]>;\n material: PropDef<'solid' | 'translucent'>;\n};\n\nexport { segmentedControlRootPropDefs };\n", "import classNames from 'classnames';\n\nimport { getCompiledPropDefs } from './compile-prop-defs.js';\nimport { getResponsiveClassNames, getResponsiveStyles } from './get-responsive-styles.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\nimport { mergeStyles } from './merge-styles.js';\n\nimport type { CompiledPropDef } from './compile-prop-defs.js';\nimport type * as React from 'react';\nimport type { PropDef } from '../props/prop-def.js';\n\ntype PropDefsWithClassName<T> = T extends Record<string, PropDef> ? { [K in keyof T]: T[K] extends { className: string } ? K : never }[keyof T] : never;\n\ntype ResponsiveValue = Record<string, string | undefined>;\n\n/**\n * Fills in the `initial` breakpoint of a responsive value from the prop def's\n * default, and coerces an invalid `initial` enum value back to that default.\n *\n * Returns the value untouched when nothing needs changing, and a copy otherwise\n * \u2014 callers routinely hoist responsive objects to module scope, so mutating the\n * caller's object would corrupt it for every later render.\n */\nfunction normalizeResponsiveValue(value: ResponsiveValue, propDef: CompiledPropDef) {\n let initial = value.initial;\n let changed = false;\n\n if (propDef.hasDefault && initial === undefined) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(initial)) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n return changed ? { ...value, initial } : value;\n}\n\n/**\n * Takes props, checks them against prop defs that have a `className` on them,\n * adds necessary CSS classes and inline styles, and returns the props without\n * the corresponding prop defs that were used to formulate the new `className`\n * and `style` values. Also applies prop def defaults to every prop.\n */\nfunction extractProps<P extends { className?: string; style?: React.CSSProperties; [key: string]: any }, T extends Record<string, PropDef>[]>(\n props: P,\n ...propDefs: T\n): Omit<P & { className?: string; style?: React.CSSProperties }, PropDefsWithClassName<T[number]>> {\n const { styling, passthrough, stylingKeys } = getCompiledPropDefs(propDefs);\n\n // Copy the props that survive to the element rather than spreading and then\n // deleting the styling keys. Deleting off a spread demotes the object to\n // dictionary mode in V8, and this object is on the render path of every\n // component in the library.\n const extractedProps: Record<string, any> = {};\n for (const key in props) {\n if (stylingKeys.has(key)) continue;\n extractedProps[key] = props[key];\n }\n\n for (let i = 0; i < passthrough.length; i++) {\n const propDef = passthrough[i];\n const value = extractedProps[propDef.key];\n\n if (value === undefined) {\n if (propDef.hasDefault) extractedProps[propDef.key] = propDef.default;\n continue;\n }\n\n // Fall back to the default when the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n extractedProps[propDef.key] = propDef.default;\n }\n }\n\n let style: ReturnType<typeof mergeStyles>;\n const classes: string[] = [];\n\n for (let i = 0; i < styling.length; i++) {\n const propDef = styling[i];\n let value = props[propDef.key];\n\n // Apply prop def defaults\n if (value === undefined && propDef.hasDefault) {\n value = propDef.default;\n }\n\n // Apply the default value if the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n value = propDef.default;\n }\n\n if (!value) continue;\n\n if (isResponsiveObject(value)) {\n // Make sure we are not threading through responsive values for non-responsive prop defs\n if (!propDef.responsive) continue;\n value = normalizeResponsiveValue(value, propDef);\n }\n\n if (propDef.type === 'enum') {\n const propClassName = getResponsiveClassNames({\n allowArbitraryValues: false,\n value,\n className: propDef.className!,\n propValues: propDef.values,\n propValueSet: propDef.valueSet,\n parseValue: propDef.parseValue,\n });\n\n if (propClassName) classes.push(propClassName);\n continue;\n }\n\n if (propDef.type === 'string' || propDef.type === 'enum | string') {\n const [propClassNames, propCustomProperties] = getResponsiveStyles({\n className: propDef.className!,\n customProperties: propDef.customProperties!,\n // `string` prop defs have no enum values, so every value is arbitrary\n propValues: propDef.type === 'string' ? [] : propDef.values,\n propValueSet: propDef.type === 'string' ? undefined : propDef.valueSet,\n parseValue: propDef.parseValue,\n value,\n });\n\n if (propCustomProperties) style = mergeStyles(style, propCustomProperties);\n if (propClassNames) classes.push(propClassNames);\n continue;\n }\n\n if (propDef.type === 'boolean') {\n // TODO handle responsive boolean props\n classes.push(propDef.className!);\n continue;\n }\n }\n\n extractedProps.className = classNames(classes.length > 0 ? classes.join(' ') : undefined, props.className);\n extractedProps.style = mergeStyles(style, props.style);\n return extractedProps as ReturnType<typeof extractProps<P, T>>;\n}\n\nexport { extractProps };\n", "import type { PropDef } from '../props/prop-def.js';\n\n/**\n * A prop def pre-processed into the exact shape `extractProps` needs at render\n * time. Everything that can be derived from the static prop def \u2014 enum\n * membership sets, whether the def is responsive, whether it carries a default\n * \u2014 is computed once here instead of on every render.\n */\ninterface CompiledPropDef {\n key: string;\n type: PropDef['type'];\n default: unknown;\n hasDefault: boolean;\n responsive: boolean;\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n /** The prop def's own enum values, kept for the responsive class name helpers. */\n values: readonly string[];\n /** O(1) membership for `values`. */\n valueSet: ReadonlySet<string>;\n /**\n * `values` plus the default, used to coerce invalid enum values back to the\n * default. Only present for `type: 'enum'` \u2014 `'enum | string'` props accept\n * arbitrary strings and must not be coerced.\n */\n enumValueSet?: ReadonlySet<unknown>;\n}\n\ninterface CompiledPropDefs {\n /** Defs that contribute a class name and/or custom properties. */\n styling: CompiledPropDef[];\n /**\n * Defs that pass through to the element but still need a default applied or\n * an invalid enum value coerced. Defs that can do neither are omitted\n * entirely \u2014 they are already correct as passed.\n */\n passthrough: CompiledPropDef[];\n /** Keys consumed by `styling`, so they can be skipped when copying props. */\n stylingKeys: ReadonlySet<string>;\n}\n\nconst EMPTY_VALUES: readonly string[] = [];\nconst EMPTY_SET: ReadonlySet<string> = new Set();\n\nfunction compile(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n const merged: Record<string, PropDef> = Object.assign({}, ...propDefs);\n const styling: CompiledPropDef[] = [];\n const passthrough: CompiledPropDef[] = [];\n const stylingKeys = new Set<string>();\n\n for (const key in merged) {\n // The PropDef union is narrowed per-field below; reading the optional\n // members off the union directly is what the runtime actually needs.\n const def = merged[key] as PropDef & {\n default?: unknown;\n values?: readonly string[];\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n responsive?: true;\n };\n\n const values = def.values ?? EMPTY_VALUES;\n const compiled: CompiledPropDef = {\n key,\n type: def.type,\n default: def.default,\n hasDefault: def.default !== undefined,\n responsive: 'responsive' in def,\n className: def.className,\n customProperties: def.customProperties,\n parseValue: def.parseValue,\n values,\n valueSet: values.length > 0 ? new Set(values) : EMPTY_SET,\n enumValueSet: def.type === 'enum' ? new Set<unknown>([def.default, ...values]) : undefined,\n };\n\n if (def.className) {\n styling.push(compiled);\n stylingKeys.add(key);\n } else if (compiled.hasDefault || def.type === 'enum') {\n // Anything else is copied through untouched, so there is nothing to do.\n passthrough.push(compiled);\n }\n }\n\n return { styling, passthrough, stylingKeys };\n}\n\ninterface CacheNode {\n children: WeakMap<object, CacheNode>;\n compiled?: CompiledPropDefs;\n}\n\nconst cacheRoot: CacheNode = { children: new WeakMap() };\n\n/**\n * Compiles a set of prop defs, memoized on the identity of the prop def objects\n * themselves. Components always pass the same module-level constants, so after\n * the first render of a given component this is a couple of WeakMap lookups\n * instead of merging 50-odd prop defs into a fresh object.\n */\nfunction getCompiledPropDefs(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n let node = cacheRoot;\n\n for (let i = 0; i < propDefs.length; i++) {\n const propDef = propDefs[i];\n let child = node.children.get(propDef);\n if (child === undefined) {\n child = { children: new WeakMap() };\n node.children.set(propDef, child);\n }\n node = child;\n }\n\n return (node.compiled ??= compile(propDefs));\n}\n\nexport { getCompiledPropDefs };\nexport type { CompiledPropDef, CompiledPropDefs };\n", "import type React from 'react';\n\n// Creates a union type of string literals with strings, but retains intellisense for the literals.\n// Union<string, 'foo' | 'bar'> => string | Omit<string, 'foo' | 'bar'>\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>;\n\nconst breakpoints = ['initial', 'xs', 'sm', 'md', 'lg', 'xl'] as const;\nconst breakpointSet: Set<string> = new Set(breakpoints);\ntype Breakpoint = (typeof breakpoints)[number];\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>;\n\ntype BooleanPropDef = {\n type: 'boolean';\n default?: boolean;\n required?: boolean;\n className?: string;\n};\ntype StringPropDef = {\n type: 'string';\n default?: string;\n required?: boolean;\n};\ntype ReactNodePropDef = {\n type: 'ReactNode';\n default?: React.ReactNode;\n required?: boolean;\n};\ntype EnumPropDef<T> = {\n type: 'enum';\n values: readonly T[];\n default?: T;\n required?: boolean;\n};\ntype EnumOrStringPropDef<T> = {\n type: 'enum | string';\n values: readonly T[];\n default?: T | string;\n required?: boolean;\n};\n\ntype NonStylingPropDef = {\n className?: never;\n customProperties?: never;\n parseValue?: never;\n};\n\ntype StylingPropDef = {\n className: string;\n parseValue?: (value: string) => string | undefined;\n};\n\ntype ArbitraryStylingPropDef = {\n className: string;\n customProperties: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n};\n\ntype RegularPropDef<T> =\n | ReactNodePropDef\n | BooleanPropDef\n | (StringPropDef & ArbitraryStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & ArbitraryStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef);\ntype ResponsivePropDef<T = any> = RegularPropDef<T> & { responsive: true };\ntype PropDef<T = any> = RegularPropDef<T> | ResponsivePropDef<T>;\n\n// prettier-ignore\ntype GetPropDefType<Def> =\n Def extends BooleanPropDef ? (Def extends ResponsivePropDef ? Responsive<boolean> : boolean)\n : Def extends StringPropDef ? (Def extends ResponsivePropDef ? Responsive<string> : string)\n : Def extends ReactNodePropDef ? (Def extends ResponsivePropDef ? Responsive<React.ReactNode> : React.ReactNode)\n : Def extends EnumOrStringPropDef<infer Type> ?\n Def extends ResponsivePropDef<infer Type extends string> ? Responsive<Union<string, Type>> : Type\n : Def extends EnumPropDef<infer Type> ? (Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type)\n : never;\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>;\n};\n\nexport { breakpoints, breakpointSet };\nexport type {\n PropDef,\n GetPropDefTypes,\n ResponsivePropDef,\n //\n Breakpoint,\n Responsive,\n Union,\n};\n", "/** A util to check whether the object has a key, while inferring the correct key type */\nfunction hasOwnProperty<K extends string | number | symbol>(\n obj: Record<K, unknown>,\n key: string | number | symbol\n): key is K {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexport { hasOwnProperty };\n", "import type { Responsive, Breakpoint } from '../props/prop-def.js';\n\n// Use a Set for O(1) lookup instead of array.includes() which is O(n)\nconst breakpointSet = new Set<string>(['initial', 'xs', 'sm', 'md', 'lg', 'xl']);\n\nexport function isResponsiveObject<Value extends string>(\n obj: Responsive<Value | Omit<string, Value>> | undefined\n): obj is Record<Breakpoint, string> {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n // Use for...in to avoid Object.keys() array allocation\n for (const key in obj) {\n if (breakpointSet.has(key)) {\n return true;\n }\n }\n return false;\n}\n", "import { breakpointSet } from '../props/prop-def.js';\nimport { hasOwnProperty } from './has-own-property.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\n\nimport type { Responsive, Union } from '../props/prop-def.js';\n\n/**\n * Membership test against a prop def's enum values. Callers that already hold a\n * compiled prop def pass `propValueSet` for an O(1) lookup; the handful of call\n * sites that build options inline fall back to scanning the array.\n */\nfunction includesValue(propValues: string[] | readonly string[], propValueSet: ReadonlySet<string> | undefined, value: string): boolean {\n return propValueSet !== undefined ? propValueSet.has(value) : propValues.includes(value);\n}\n\ninterface GetResponsiveStylesOptions {\n className: string;\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveStyles({ className, customProperties, ...args }: GetResponsiveStylesOptions) {\n const responsiveClassNames = getResponsiveClassNames({\n allowArbitraryValues: true,\n className,\n ...args,\n });\n\n const responsiveCustomProperties = getResponsiveCustomProperties({ customProperties, ...args });\n return [responsiveClassNames, responsiveCustomProperties] as const;\n}\n\ninterface GetResponsiveClassNamesOptions {\n allowArbitraryValues?: boolean;\n className: string;\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveClassNames({ allowArbitraryValues, value, className, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveClassNamesOptions): string | undefined {\n if (!value) {\n return undefined;\n }\n\n if (typeof value === 'string') {\n if (includesValue(propValues, propValueSet, value)) {\n return getBaseClassName(className, value, parseValue);\n }\n return allowArbitraryValues ? className : undefined;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n const classNames: string[] = [];\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n if (value !== undefined) {\n if (includesValue(propValues, propValueSet, value)) {\n const baseClassName = getBaseClassName(className, value, parseValue);\n const bpClassName = bp === 'initial' ? baseClassName : `${bp}:${baseClassName}`;\n classNames.push(bpClassName);\n } else if (allowArbitraryValues) {\n const bpClassName = bp === 'initial' ? className : `${bp}:${className}`;\n classNames.push(bpClassName);\n }\n }\n }\n\n return classNames.length > 0 ? classNames.join(' ') : '';\n }\n\n if (allowArbitraryValues) {\n return className;\n }\n}\n\nfunction getBaseClassName(className: string, value: string, parseValue: (value: string) => string | undefined): string {\n const delimiter = className ? '-' : '';\n const matchedValue = parseValue(value);\n const isNegative = matchedValue?.startsWith('-');\n const minus = isNegative ? '-' : '';\n const absoluteValue = isNegative ? matchedValue?.substring(1) : matchedValue;\n return `${minus}${className}${delimiter}${absoluteValue}`;\n}\n\ninterface GetResponsiveCustomPropertiesOptions {\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveCustomProperties({ customProperties, value, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveCustomPropertiesOptions) {\n // Don't generate custom properties if the value is not arbitrary\n if (!value || (typeof value === 'string' && includesValue(propValues, propValueSet, value))) {\n return undefined;\n }\n\n let styles: Record<string, string | undefined> | undefined;\n\n if (typeof value === 'string') {\n const parsed = parseValue(value);\n styles = {};\n for (const customProperty of customProperties) {\n styles[customProperty] = parsed;\n }\n return styles;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n // Don't generate a custom property if the value is not arbitrary\n if (value === undefined || includesValue(propValues, propValueSet, value)) {\n continue;\n }\n\n const parsed = parseValue(value);\n styles ??= {};\n for (const customProperty of customProperties) {\n const bpProperty = bp === 'initial' ? customProperty : `${customProperty}-${bp}`;\n styles[bpProperty] = parsed;\n }\n }\n }\n\n return styles ?? {};\n}\n\nexport { getResponsiveStyles, getResponsiveCustomProperties, getResponsiveClassNames };\n", "type InlineStyle =\n | React.CSSProperties\n | Record<string, string | number | null | undefined>\n | undefined;\n\n// Merges CSS styles like `classNames` merges CSS classes\n// Optimized to avoid object spread in loop - uses Object.assign for in-place mutation\nexport function mergeStyles(...styles: Array<InlineStyle>): InlineStyle {\n let result: Record<string, string | number | null | undefined> | undefined;\n\n for (const style of styles) {\n if (style) {\n if (result === undefined) {\n // First non-empty style - create result object\n result = {};\n }\n Object.assign(result, style);\n }\n }\n\n return result;\n}\n", "import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\n// prettier-ignore\nconst marginValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '-1', '-2', '-3', '-4', '-5', '-6', '-7', '-8', '-9', '-10', '-11', '-12'] as const;\n\nconst marginPropDefs = {\n /**\n * Sets the CSS **margin** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * m=\"4\"\n * m=\"100px\"\n * m={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n */\n m: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-m',\n customProperties: ['--m'],\n },\n /**\n * Sets the CSS **margin-left** and **margin-right** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mx=\"4\"\n * mx=\"100px\"\n * mx={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mx: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mx',\n customProperties: ['--ml', '--mr'],\n },\n /**\n * Sets the CSS **margin-top** and **margin-bottom** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * my=\"4\"\n * my=\"100px\"\n * my={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n my: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-my',\n customProperties: ['--mt', '--mb'],\n },\n /**\n * Sets the CSS **margin-top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mt=\"4\"\n * mt=\"100px\"\n * mt={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n */\n mt: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mt',\n customProperties: ['--mt'],\n },\n /**\n * Sets the CSS **margin-right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mr=\"4\"\n * mr=\"100px\"\n * mr={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mr: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mr',\n customProperties: ['--mr'],\n },\n /**\n * Sets the CSS **margin-bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mb=\"4\"\n * mb=\"100px\"\n * mb={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n mb: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mb',\n customProperties: ['--mb'],\n },\n /**\n * Sets the CSS **margin-left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * ml=\"4\"\n * ml=\"100px\"\n * ml={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n */\n ml: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-ml',\n customProperties: ['--ml'],\n },\n} satisfies {\n m: PropDef<(typeof marginValues)[number]>;\n mx: PropDef<(typeof marginValues)[number]>;\n my: PropDef<(typeof marginValues)[number]>;\n mt: PropDef<(typeof marginValues)[number]>;\n mr: PropDef<(typeof marginValues)[number]>;\n mb: PropDef<(typeof marginValues)[number]>;\n ml: PropDef<(typeof marginValues)[number]>;\n};\n\ntype MarginProps = GetPropDefTypes<typeof marginPropDefs>;\n\nexport { marginPropDefs };\nexport type { MarginProps };\n"],
5
- "mappings": "ukBAAA,IAAAA,GAAA,GAAAC,EAAAD,GAAA,UAAAE,EAAA,SAAAC,IAAA,eAAAC,EAAAJ,IAGA,IAAAK,EAAuB,oBACvBC,EAAuB,yBACvBC,EAAoD,oBACpDC,EAAqC,6BCJrC,IAAMC,EAAQ,CAAC,OAAQ,QAAS,SAAU,QAAS,MAAM,EAEnDC,EAAgB,CACpB,OAAQ,CACN,KAAM,OACN,OAAQD,EACR,QAAS,MACX,CACF,ECNA,IAAME,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAe,CAAC,aAAc,UAAU,EAExCC,EAA+B,CACnC,SAAU,CAAE,KAAM,UAAW,UAAW,WAAY,QAAS,EAAM,EACnE,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQF,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,YAAa,CACX,KAAM,OACN,UAAW,mBACX,OAAQC,EACR,QAAS,aACT,WAAY,EACd,EACA,SAAU,CAAE,KAAM,OAAQ,OAAQ,CAAC,QAAS,aAAa,CAAE,EAC3D,GAAGE,CACL,ECnBA,IAAAC,EAAuB,yBC0CvB,IAAMC,EAAkC,CAAC,EACnCC,EAAiC,IAAI,IAE3C,SAASC,EAAQC,EAAgE,CAC/E,IAAMC,EAAkC,OAAO,OAAO,CAAC,EAAG,GAAGD,CAAQ,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B,CAC7C,KAAMV,EACN,SAAUE,EACV,YAAaD,GAAoB,EACnC,CAAC,EAED,OACE,gBAAC,EAAAU,YAAqB,KAArB,CACC,gBAAehB,EAAM,UAAY,OACjC,cAAaI,EACb,gBAAeS,EACf,IAAKZ,EACL,aAAW,EAAAgB,SAAW,0BAA2Bf,CAAS,EAC1D,cAAgBY,GAAU,CACpBA,GACFC,EAASD,CAAK,CAElB,EACC,GAAGL,EACJ,KAAK,SACL,MAAOK,EACP,QAAS,GACT,SAAU,CAAC,CAACd,EAAM,UAEjBG,EACD,gBAAC,OAAI,UAAU,+BAA+B,CAChD,CAEJ,CACF,EAEAJ,EAAqB,YAAc,wBAenC,IAAMmB,EAA6B,aACjC,CAAC,CAAE,SAAAf,EAAU,UAAAD,EAAW,SAAAiB,EAAU,GAAGnB,CAAM,EAAGC,IAC5C,gBAAC,EAAAe,YAAqB,KAArB,CACC,IAAKf,EACL,aAAW,EAAAgB,SAAW,WAAY,0BAA2Bf,CAAS,EACtE,iBAAgBiB,GAAY,OAC3B,GAAGnB,EACJ,SAAU,GACV,QAAS,IAET,gBAAC,QAAK,UAAU,mCAAmC,EACnD,gBAAC,QAAK,UAAU,gCACd,gBAAC,QAAK,UAAU,sCAAsCG,CAAS,EAC/D,gBAAC,QAAK,UAAU,uCAAuC,cAAW,IAC/DA,CACH,CACF,CACF,CAEJ,EAEAe,EAAqB,YAAc",
6
- "names": ["segmented_control_exports", "__export", "SegmentedControlItem", "SegmentedControlRoot", "__toCommonJS", "React", "import_classnames", "import_radix_ui", "import_internal", "radii", "radiusPropDef", "sizes", "orientations", "segmentedControlRootPropDefs", "radiusPropDef", "import_classnames", "EMPTY_VALUES", "EMPTY_SET", "compile", "propDefs", "merged", "styling", "passthrough", "stylingKeys", "key", "def", "values", "compiled", "cacheRoot", "getCompiledPropDefs", "node", "i", "propDef", "child", "breakpoints", "breakpointSet", "hasOwnProperty", "obj", "key", "breakpointSet", "isResponsiveObject", "obj", "key", "includesValue", "propValues", "propValueSet", "value", "getResponsiveStyles", "className", "customProperties", "args", "responsiveClassNames", "getResponsiveClassNames", "responsiveCustomProperties", "getResponsiveCustomProperties", "allowArbitraryValues", "parseValue", "getBaseClassName", "isResponsiveObject", "object", "classNames", "bp", "hasOwnProperty", "breakpointSet", "baseClassName", "bpClassName", "delimiter", "matchedValue", "isNegative", "minus", "absoluteValue", "styles", "parsed", "customProperty", "bpProperty", "mergeStyles", "styles", "result", "style", "normalizeResponsiveValue", "value", "propDef", "initial", "changed", "extractProps", "props", "propDefs", "styling", "passthrough", "stylingKeys", "getCompiledPropDefs", "extractedProps", "key", "i", "isResponsiveObject", "style", "classes", "propClassName", "getResponsiveClassNames", "propClassNames", "propCustomProperties", "getResponsiveStyles", "mergeStyles", "classNames", "marginValues", "marginPropDefs", "SegmentedControlRoot", "props", "forwardedRef", "className", "children", "radius", "valueProp", "defaultValueProp", "onValueChangeProp", "materialProp", "rootProps", "extractProps", "segmentedControlRootPropDefs", "marginPropDefs", "material", "value", "setValue", "ToggleGroupPrimitive", "classNames", "SegmentedControlItem", "iconOnly"]
4
+ "sourcesContent": ["'use client';\n\nimport { warnDeprecated } from '../helpers/warn-deprecated.js';\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui';\nimport { useControllableState } from 'radix-ui/internal';\n\nimport { segmentedControlRootPropDefs } from './segmented-control.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype SegmentedControlRootOwnProps = GetPropDefTypes<typeof segmentedControlRootPropDefs>;\n\ninterface SegmentedControlRootProps\n extends ComponentPropsWithout<'div', RemovedProps | 'dir'>,\n SegmentedControlRootOwnProps,\n MarginProps {\n value?: string;\n defaultValue?: string;\n onValueChange?(value: string): void;\n}\n\nconst SegmentedControlRoot = React.forwardRef<HTMLDivElement, SegmentedControlRootProps>(\n (props, forwardedRef) => {\n const {\n className,\n children,\n radius,\n value: valueProp,\n defaultValue: defaultValueProp,\n onValueChange: onValueChangeProp,\n ...rootProps\n } = extractProps(props, segmentedControlRootPropDefs, marginPropDefs);\n\n const [value, setValue] = useControllableState({\n prop: valueProp,\n onChange: onValueChangeProp,\n defaultProp: defaultValueProp ?? '',\n });\n\n return (\n <ToggleGroupPrimitive.Root\n data-disabled={props.disabled || undefined}\n data-radius={radius}\n ref={forwardedRef}\n className={classNames('rt-SegmentedControlRoot', className)}\n onValueChange={(value) => {\n if (value) {\n setValue(value);\n }\n }}\n {...rootProps}\n type=\"single\"\n value={value}\n asChild={false}\n disabled={!!props.disabled}\n >\n {children}\n <div className=\"rt-SegmentedControlIndicator\" />\n </ToggleGroupPrimitive.Root>\n );\n },\n);\n\nSegmentedControlRoot.displayName = 'SegmentedControl.Root';\n\ninterface SegmentedControlItemOwnProps {\n value: string;\n /** When true, applies fixed square width for icon-only segments */\n iconOnly?: boolean;\n}\n\ninterface SegmentedControlItemProps\n extends ComponentPropsWithout<\n typeof ToggleGroupPrimitive.Item,\n RemovedProps | 'disabled' | 'type' | 'value'\n >,\n SegmentedControlItemOwnProps {}\n\nconst SegmentedControlItem = React.forwardRef<HTMLButtonElement, SegmentedControlItemProps>(\n ({ children, className, iconOnly, ...props }, forwardedRef) => (\n <ToggleGroupPrimitive.Item\n ref={forwardedRef}\n className={classNames('rt-reset', 'rt-SegmentedControlItem', className)}\n data-icon-only={iconOnly || undefined}\n {...props}\n disabled={false}\n asChild={false}\n >\n <span className=\"rt-SegmentedControlItemSeparator\" />\n <span className=\"rt-SegmentedControlItemLabel\">\n <span className=\"rt-SegmentedControlItemLabelActive\">{children}</span>\n <span className=\"rt-SegmentedControlItemLabelInactive\" aria-hidden>\n {children}\n </span>\n </span>\n </ToggleGroupPrimitive.Item>\n ),\n);\n\nSegmentedControlItem.displayName = 'SegmentedControl.Item';\n\nexport { SegmentedControlRoot as Root, SegmentedControlItem as Item };\nexport type { SegmentedControlRootProps as RootProps, SegmentedControlItemProps as ItemProps };\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n", "import { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst orientations = ['horizontal', 'vertical'] as const;\n\nconst segmentedControlRootPropDefs = {\n disabled: { type: 'boolean', className: 'disabled', default: false },\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n orientation: {\n type: 'enum',\n className: 'rt-r-orientation',\n values: orientations,\n default: 'horizontal',\n responsive: true,\n },\n ...radiusPropDef,\n} satisfies {\n disabled?: PropDef<boolean>;\n size: PropDef<(typeof sizes)[number]>;\n orientation: PropDef<(typeof orientations)[number]>;\n};\n\nexport { segmentedControlRootPropDefs };\n", "import classNames from 'classnames';\n\nimport { getCompiledPropDefs } from './compile-prop-defs.js';\nimport { getResponsiveClassNames, getResponsiveStyles } from './get-responsive-styles.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\nimport { mergeStyles } from './merge-styles.js';\n\nimport type { CompiledPropDef } from './compile-prop-defs.js';\nimport type * as React from 'react';\nimport type { PropDef } from '../props/prop-def.js';\n\ntype PropDefsWithClassName<T> = T extends Record<string, PropDef> ? { [K in keyof T]: T[K] extends { className: string } ? K : never }[keyof T] : never;\n\ntype ResponsiveValue = Record<string, string | undefined>;\n\n/**\n * Fills in the `initial` breakpoint of a responsive value from the prop def's\n * default, and coerces an invalid `initial` enum value back to that default.\n *\n * Returns the value untouched when nothing needs changing, and a copy otherwise\n * \u2014 callers routinely hoist responsive objects to module scope, so mutating the\n * caller's object would corrupt it for every later render.\n */\nfunction normalizeResponsiveValue(value: ResponsiveValue, propDef: CompiledPropDef) {\n let initial = value.initial;\n let changed = false;\n\n if (propDef.hasDefault && initial === undefined) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(initial)) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n return changed ? { ...value, initial } : value;\n}\n\n/**\n * Takes props, checks them against prop defs that have a `className` on them,\n * adds necessary CSS classes and inline styles, and returns the props without\n * the corresponding prop defs that were used to formulate the new `className`\n * and `style` values. Also applies prop def defaults to every prop.\n */\nfunction extractProps<P extends { className?: string; style?: React.CSSProperties; [key: string]: any }, T extends Record<string, PropDef>[]>(\n props: P,\n ...propDefs: T\n): Omit<P & { className?: string; style?: React.CSSProperties }, PropDefsWithClassName<T[number]>> {\n const { styling, passthrough, stylingKeys } = getCompiledPropDefs(propDefs);\n\n // Copy the props that survive to the element rather than spreading and then\n // deleting the styling keys. Deleting off a spread demotes the object to\n // dictionary mode in V8, and this object is on the render path of every\n // component in the library.\n const extractedProps: Record<string, any> = {};\n for (const key in props) {\n if (stylingKeys.has(key)) continue;\n extractedProps[key] = props[key];\n }\n\n for (let i = 0; i < passthrough.length; i++) {\n const propDef = passthrough[i];\n const value = extractedProps[propDef.key];\n\n if (value === undefined) {\n if (propDef.hasDefault) extractedProps[propDef.key] = propDef.default;\n continue;\n }\n\n // Fall back to the default when the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n extractedProps[propDef.key] = propDef.default;\n }\n }\n\n let style: ReturnType<typeof mergeStyles>;\n const classes: string[] = [];\n\n for (let i = 0; i < styling.length; i++) {\n const propDef = styling[i];\n let value = props[propDef.key];\n\n // Apply prop def defaults\n if (value === undefined && propDef.hasDefault) {\n value = propDef.default;\n }\n\n // Apply the default value if the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n value = propDef.default;\n }\n\n if (!value) continue;\n\n if (isResponsiveObject(value)) {\n // Make sure we are not threading through responsive values for non-responsive prop defs\n if (!propDef.responsive) continue;\n value = normalizeResponsiveValue(value, propDef);\n }\n\n if (propDef.type === 'enum') {\n const propClassName = getResponsiveClassNames({\n allowArbitraryValues: false,\n value,\n className: propDef.className!,\n propValues: propDef.values,\n propValueSet: propDef.valueSet,\n parseValue: propDef.parseValue,\n });\n\n if (propClassName) classes.push(propClassName);\n continue;\n }\n\n if (propDef.type === 'string' || propDef.type === 'enum | string') {\n const [propClassNames, propCustomProperties] = getResponsiveStyles({\n className: propDef.className!,\n customProperties: propDef.customProperties!,\n // `string` prop defs have no enum values, so every value is arbitrary\n propValues: propDef.type === 'string' ? [] : propDef.values,\n propValueSet: propDef.type === 'string' ? undefined : propDef.valueSet,\n parseValue: propDef.parseValue,\n value,\n });\n\n if (propCustomProperties) style = mergeStyles(style, propCustomProperties);\n if (propClassNames) classes.push(propClassNames);\n continue;\n }\n\n if (propDef.type === 'boolean') {\n // TODO handle responsive boolean props\n classes.push(propDef.className!);\n continue;\n }\n }\n\n extractedProps.className = classNames(classes.length > 0 ? classes.join(' ') : undefined, props.className);\n extractedProps.style = mergeStyles(style, props.style);\n return extractedProps as ReturnType<typeof extractProps<P, T>>;\n}\n\nexport { extractProps };\n", "import type { PropDef } from '../props/prop-def.js';\n\n/**\n * A prop def pre-processed into the exact shape `extractProps` needs at render\n * time. Everything that can be derived from the static prop def \u2014 enum\n * membership sets, whether the def is responsive, whether it carries a default\n * \u2014 is computed once here instead of on every render.\n */\ninterface CompiledPropDef {\n key: string;\n type: PropDef['type'];\n default: unknown;\n hasDefault: boolean;\n responsive: boolean;\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n /** The prop def's own enum values, kept for the responsive class name helpers. */\n values: readonly string[];\n /** O(1) membership for `values`. */\n valueSet: ReadonlySet<string>;\n /**\n * `values` plus the default, used to coerce invalid enum values back to the\n * default. Only present for `type: 'enum'` \u2014 `'enum | string'` props accept\n * arbitrary strings and must not be coerced.\n */\n enumValueSet?: ReadonlySet<unknown>;\n}\n\ninterface CompiledPropDefs {\n /** Defs that contribute a class name and/or custom properties. */\n styling: CompiledPropDef[];\n /**\n * Defs that pass through to the element but still need a default applied or\n * an invalid enum value coerced. Defs that can do neither are omitted\n * entirely \u2014 they are already correct as passed.\n */\n passthrough: CompiledPropDef[];\n /** Keys consumed by `styling`, so they can be skipped when copying props. */\n stylingKeys: ReadonlySet<string>;\n}\n\nconst EMPTY_VALUES: readonly string[] = [];\nconst EMPTY_SET: ReadonlySet<string> = new Set();\n\nfunction compile(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n const merged: Record<string, PropDef> = Object.assign({}, ...propDefs);\n const styling: CompiledPropDef[] = [];\n const passthrough: CompiledPropDef[] = [];\n const stylingKeys = new Set<string>();\n\n for (const key in merged) {\n // The PropDef union is narrowed per-field below; reading the optional\n // members off the union directly is what the runtime actually needs.\n const def = merged[key] as PropDef & {\n default?: unknown;\n values?: readonly string[];\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n responsive?: true;\n };\n\n const values = def.values ?? EMPTY_VALUES;\n const compiled: CompiledPropDef = {\n key,\n type: def.type,\n default: def.default,\n hasDefault: def.default !== undefined,\n responsive: 'responsive' in def,\n className: def.className,\n customProperties: def.customProperties,\n parseValue: def.parseValue,\n values,\n valueSet: values.length > 0 ? new Set(values) : EMPTY_SET,\n enumValueSet: def.type === 'enum' ? new Set<unknown>([def.default, ...values]) : undefined,\n };\n\n if (def.className) {\n styling.push(compiled);\n stylingKeys.add(key);\n } else if (compiled.hasDefault || def.type === 'enum') {\n // Anything else is copied through untouched, so there is nothing to do.\n passthrough.push(compiled);\n }\n }\n\n return { styling, passthrough, stylingKeys };\n}\n\ninterface CacheNode {\n children: WeakMap<object, CacheNode>;\n compiled?: CompiledPropDefs;\n}\n\nconst cacheRoot: CacheNode = { children: new WeakMap() };\n\n/**\n * Compiles a set of prop defs, memoized on the identity of the prop def objects\n * themselves. Components always pass the same module-level constants, so after\n * the first render of a given component this is a couple of WeakMap lookups\n * instead of merging 50-odd prop defs into a fresh object.\n */\nfunction getCompiledPropDefs(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n let node = cacheRoot;\n\n for (let i = 0; i < propDefs.length; i++) {\n const propDef = propDefs[i];\n let child = node.children.get(propDef);\n if (child === undefined) {\n child = { children: new WeakMap() };\n node.children.set(propDef, child);\n }\n node = child;\n }\n\n return (node.compiled ??= compile(propDefs));\n}\n\nexport { getCompiledPropDefs };\nexport type { CompiledPropDef, CompiledPropDefs };\n", "import type React from 'react';\n\n// Creates a union type of string literals with strings, but retains intellisense for the literals.\n// Union<string, 'foo' | 'bar'> => string | Omit<string, 'foo' | 'bar'>\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>;\n\nconst breakpoints = ['initial', 'xs', 'sm', 'md', 'lg', 'xl'] as const;\nconst breakpointSet: Set<string> = new Set(breakpoints);\ntype Breakpoint = (typeof breakpoints)[number];\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>;\n\ntype BooleanPropDef = {\n type: 'boolean';\n default?: boolean;\n required?: boolean;\n className?: string;\n};\ntype StringPropDef = {\n type: 'string';\n default?: string;\n required?: boolean;\n};\ntype ReactNodePropDef = {\n type: 'ReactNode';\n default?: React.ReactNode;\n required?: boolean;\n};\ntype EnumPropDef<T> = {\n type: 'enum';\n values: readonly T[];\n default?: T;\n required?: boolean;\n};\ntype EnumOrStringPropDef<T> = {\n type: 'enum | string';\n values: readonly T[];\n default?: T | string;\n required?: boolean;\n};\n\ntype NonStylingPropDef = {\n className?: never;\n customProperties?: never;\n parseValue?: never;\n};\n\ntype StylingPropDef = {\n className: string;\n parseValue?: (value: string) => string | undefined;\n};\n\ntype ArbitraryStylingPropDef = {\n className: string;\n customProperties: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n};\n\ntype RegularPropDef<T> =\n | ReactNodePropDef\n | BooleanPropDef\n | (StringPropDef & ArbitraryStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & ArbitraryStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef);\ntype ResponsivePropDef<T = any> = RegularPropDef<T> & { responsive: true };\ntype PropDef<T = any> = RegularPropDef<T> | ResponsivePropDef<T>;\n\n// prettier-ignore\ntype GetPropDefType<Def> =\n Def extends BooleanPropDef ? (Def extends ResponsivePropDef ? Responsive<boolean> : boolean)\n : Def extends StringPropDef ? (Def extends ResponsivePropDef ? Responsive<string> : string)\n : Def extends ReactNodePropDef ? (Def extends ResponsivePropDef ? Responsive<React.ReactNode> : React.ReactNode)\n : Def extends EnumOrStringPropDef<infer Type> ?\n Def extends ResponsivePropDef<infer Type extends string> ? Responsive<Union<string, Type>> : Type\n : Def extends EnumPropDef<infer Type> ? (Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type)\n : never;\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>;\n};\n\nexport { breakpoints, breakpointSet };\nexport type {\n PropDef,\n GetPropDefTypes,\n ResponsivePropDef,\n //\n Breakpoint,\n Responsive,\n Union,\n};\n", "/** A util to check whether the object has a key, while inferring the correct key type */\nfunction hasOwnProperty<K extends string | number | symbol>(\n obj: Record<K, unknown>,\n key: string | number | symbol\n): key is K {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexport { hasOwnProperty };\n", "import type { Responsive, Breakpoint } from '../props/prop-def.js';\n\n// Use a Set for O(1) lookup instead of array.includes() which is O(n)\nconst breakpointSet = new Set<string>(['initial', 'xs', 'sm', 'md', 'lg', 'xl']);\n\nexport function isResponsiveObject<Value extends string>(\n obj: Responsive<Value | Omit<string, Value>> | undefined\n): obj is Record<Breakpoint, string> {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n // Use for...in to avoid Object.keys() array allocation\n for (const key in obj) {\n if (breakpointSet.has(key)) {\n return true;\n }\n }\n return false;\n}\n", "import { breakpointSet } from '../props/prop-def.js';\nimport { hasOwnProperty } from './has-own-property.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\n\nimport type { Responsive, Union } from '../props/prop-def.js';\n\n/**\n * Membership test against a prop def's enum values. Callers that already hold a\n * compiled prop def pass `propValueSet` for an O(1) lookup; the handful of call\n * sites that build options inline fall back to scanning the array.\n */\nfunction includesValue(propValues: string[] | readonly string[], propValueSet: ReadonlySet<string> | undefined, value: string): boolean {\n return propValueSet !== undefined ? propValueSet.has(value) : propValues.includes(value);\n}\n\ninterface GetResponsiveStylesOptions {\n className: string;\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveStyles({ className, customProperties, ...args }: GetResponsiveStylesOptions) {\n const responsiveClassNames = getResponsiveClassNames({\n allowArbitraryValues: true,\n className,\n ...args,\n });\n\n const responsiveCustomProperties = getResponsiveCustomProperties({ customProperties, ...args });\n return [responsiveClassNames, responsiveCustomProperties] as const;\n}\n\ninterface GetResponsiveClassNamesOptions {\n allowArbitraryValues?: boolean;\n className: string;\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveClassNames({ allowArbitraryValues, value, className, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveClassNamesOptions): string | undefined {\n if (!value) {\n return undefined;\n }\n\n if (typeof value === 'string') {\n if (includesValue(propValues, propValueSet, value)) {\n return getBaseClassName(className, value, parseValue);\n }\n return allowArbitraryValues ? className : undefined;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n const classNames: string[] = [];\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n if (value !== undefined) {\n if (includesValue(propValues, propValueSet, value)) {\n const baseClassName = getBaseClassName(className, value, parseValue);\n const bpClassName = bp === 'initial' ? baseClassName : `${bp}:${baseClassName}`;\n classNames.push(bpClassName);\n } else if (allowArbitraryValues) {\n const bpClassName = bp === 'initial' ? className : `${bp}:${className}`;\n classNames.push(bpClassName);\n }\n }\n }\n\n return classNames.length > 0 ? classNames.join(' ') : '';\n }\n\n if (allowArbitraryValues) {\n return className;\n }\n}\n\nfunction getBaseClassName(className: string, value: string, parseValue: (value: string) => string | undefined): string {\n const delimiter = className ? '-' : '';\n const matchedValue = parseValue(value);\n const isNegative = matchedValue?.startsWith('-');\n const minus = isNegative ? '-' : '';\n const absoluteValue = isNegative ? matchedValue?.substring(1) : matchedValue;\n return `${minus}${className}${delimiter}${absoluteValue}`;\n}\n\ninterface GetResponsiveCustomPropertiesOptions {\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveCustomProperties({ customProperties, value, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveCustomPropertiesOptions) {\n // Don't generate custom properties if the value is not arbitrary\n if (!value || (typeof value === 'string' && includesValue(propValues, propValueSet, value))) {\n return undefined;\n }\n\n let styles: Record<string, string | undefined> | undefined;\n\n if (typeof value === 'string') {\n const parsed = parseValue(value);\n styles = {};\n for (const customProperty of customProperties) {\n styles[customProperty] = parsed;\n }\n return styles;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n // Don't generate a custom property if the value is not arbitrary\n if (value === undefined || includesValue(propValues, propValueSet, value)) {\n continue;\n }\n\n const parsed = parseValue(value);\n styles ??= {};\n for (const customProperty of customProperties) {\n const bpProperty = bp === 'initial' ? customProperty : `${customProperty}-${bp}`;\n styles[bpProperty] = parsed;\n }\n }\n }\n\n return styles ?? {};\n}\n\nexport { getResponsiveStyles, getResponsiveCustomProperties, getResponsiveClassNames };\n", "type InlineStyle =\n | React.CSSProperties\n | Record<string, string | number | null | undefined>\n | undefined;\n\n// Merges CSS styles like `classNames` merges CSS classes\n// Optimized to avoid object spread in loop - uses Object.assign for in-place mutation\nexport function mergeStyles(...styles: Array<InlineStyle>): InlineStyle {\n let result: Record<string, string | number | null | undefined> | undefined;\n\n for (const style of styles) {\n if (style) {\n if (result === undefined) {\n // First non-empty style - create result object\n result = {};\n }\n Object.assign(result, style);\n }\n }\n\n return result;\n}\n", "import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\n// prettier-ignore\nconst marginValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '-1', '-2', '-3', '-4', '-5', '-6', '-7', '-8', '-9', '-10', '-11', '-12'] as const;\n\nconst marginPropDefs = {\n /**\n * Sets the CSS **margin** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * m=\"4\"\n * m=\"100px\"\n * m={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n */\n m: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-m',\n customProperties: ['--m'],\n },\n /**\n * Sets the CSS **margin-left** and **margin-right** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mx=\"4\"\n * mx=\"100px\"\n * mx={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mx: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mx',\n customProperties: ['--ml', '--mr'],\n },\n /**\n * Sets the CSS **margin-top** and **margin-bottom** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * my=\"4\"\n * my=\"100px\"\n * my={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n my: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-my',\n customProperties: ['--mt', '--mb'],\n },\n /**\n * Sets the CSS **margin-top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mt=\"4\"\n * mt=\"100px\"\n * mt={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n */\n mt: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mt',\n customProperties: ['--mt'],\n },\n /**\n * Sets the CSS **margin-right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mr=\"4\"\n * mr=\"100px\"\n * mr={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mr: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mr',\n customProperties: ['--mr'],\n },\n /**\n * Sets the CSS **margin-bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mb=\"4\"\n * mb=\"100px\"\n * mb={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n mb: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mb',\n customProperties: ['--mb'],\n },\n /**\n * Sets the CSS **margin-left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * ml=\"4\"\n * ml=\"100px\"\n * ml={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n */\n ml: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-ml',\n customProperties: ['--ml'],\n },\n} satisfies {\n m: PropDef<(typeof marginValues)[number]>;\n mx: PropDef<(typeof marginValues)[number]>;\n my: PropDef<(typeof marginValues)[number]>;\n mt: PropDef<(typeof marginValues)[number]>;\n mr: PropDef<(typeof marginValues)[number]>;\n mb: PropDef<(typeof marginValues)[number]>;\n ml: PropDef<(typeof marginValues)[number]>;\n};\n\ntype MarginProps = GetPropDefTypes<typeof marginPropDefs>;\n\nexport { marginPropDefs };\nexport type { MarginProps };\n"],
5
+ "mappings": "ukBAAA,IAAAA,GAAA,GAAAC,EAAAD,GAAA,UAAAE,EAAA,SAAAC,IAAA,eAAAC,EAAAJ,IAGA,IAAAK,EAAuB,oBACvBC,EAAuB,yBACvBC,EAAoD,oBACpDC,EAAqC,6BCJrC,IAAMC,EAAQ,CAAC,OAAQ,QAAS,SAAU,QAAS,MAAM,EAEnDC,EAAgB,CACpB,OAAQ,CACN,KAAM,OACN,OAAQD,EACR,QAAS,MACX,CACF,ECNA,IAAME,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAe,CAAC,aAAc,UAAU,EAExCC,EAA+B,CACnC,SAAU,CAAE,KAAM,UAAW,UAAW,WAAY,QAAS,EAAM,EACnE,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQF,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,YAAa,CACX,KAAM,OACN,UAAW,mBACX,OAAQC,EACR,QAAS,aACT,WAAY,EACd,EACA,GAAGE,CACL,EClBA,IAAAC,EAAuB,yBC0CvB,IAAMC,EAAkC,CAAC,EACnCC,EAAiC,IAAI,IAE3C,SAASC,EAAQC,EAAgE,CAC/E,IAAMC,EAAkC,OAAO,OAAO,CAAC,EAAG,GAAGD,CAAQ,EAC/DE,EAA6B,CAAC,EAC9BC,EAAiC,CAAC,EAClCC,EAAc,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,YAAqB,KAArB,CACC,gBAAed,EAAM,UAAY,OACjC,cAAaI,EACb,IAAKH,EACL,aAAW,EAAAc,SAAW,0BAA2Bb,CAAS,EAC1D,cAAgBU,GAAU,CACpBA,GACFC,EAASD,CAAK,CAElB,EACC,GAAGJ,EACJ,KAAK,SACL,MAAOI,EACP,QAAS,GACT,SAAU,CAAC,CAACZ,EAAM,UAEjBG,EACD,gBAAC,OAAI,UAAU,+BAA+B,CAChD,CAEJ,CACF,EAEAJ,EAAqB,YAAc,wBAenC,IAAMiB,EAA6B,aACjC,CAAC,CAAE,SAAAb,EAAU,UAAAD,EAAW,SAAAe,EAAU,GAAGjB,CAAM,EAAGC,IAC5C,gBAAC,EAAAa,YAAqB,KAArB,CACC,IAAKb,EACL,aAAW,EAAAc,SAAW,WAAY,0BAA2Bb,CAAS,EACtE,iBAAgBe,GAAY,OAC3B,GAAGjB,EACJ,SAAU,GACV,QAAS,IAET,gBAAC,QAAK,UAAU,mCAAmC,EACnD,gBAAC,QAAK,UAAU,gCACd,gBAAC,QAAK,UAAU,sCAAsCG,CAAS,EAC/D,gBAAC,QAAK,UAAU,uCAAuC,cAAW,IAC/DA,CACH,CACF,CACF,CAEJ,EAEAa,EAAqB,YAAc",
6
+ "names": ["segmented_control_exports", "__export", "SegmentedControlItem", "SegmentedControlRoot", "__toCommonJS", "React", "import_classnames", "import_radix_ui", "import_internal", "radii", "radiusPropDef", "sizes", "orientations", "segmentedControlRootPropDefs", "radiusPropDef", "import_classnames", "EMPTY_VALUES", "EMPTY_SET", "compile", "propDefs", "merged", "styling", "passthrough", "stylingKeys", "key", "def", "values", "compiled", "cacheRoot", "getCompiledPropDefs", "node", "i", "propDef", "child", "breakpoints", "breakpointSet", "hasOwnProperty", "obj", "key", "breakpointSet", "isResponsiveObject", "obj", "key", "includesValue", "propValues", "propValueSet", "value", "getResponsiveStyles", "className", "customProperties", "args", "responsiveClassNames", "getResponsiveClassNames", "responsiveCustomProperties", "getResponsiveCustomProperties", "allowArbitraryValues", "parseValue", "getBaseClassName", "isResponsiveObject", "object", "classNames", "bp", "hasOwnProperty", "breakpointSet", "baseClassName", "bpClassName", "delimiter", "matchedValue", "isNegative", "minus", "absoluteValue", "styles", "parsed", "customProperty", "bpProperty", "mergeStyles", "styles", "result", "style", "normalizeResponsiveValue", "value", "propDef", "initial", "changed", "extractProps", "props", "propDefs", "styling", "passthrough", "stylingKeys", "getCompiledPropDefs", "extractedProps", "key", "i", "isResponsiveObject", "style", "classes", "propClassName", "getResponsiveClassNames", "propClassNames", "propCustomProperties", "getResponsiveStyles", "mergeStyles", "classNames", "marginValues", "marginPropDefs", "SegmentedControlRoot", "props", "forwardedRef", "className", "children", "radius", "valueProp", "defaultValueProp", "onValueChangeProp", "rootProps", "extractProps", "segmentedControlRootPropDefs", "marginPropDefs", "value", "setValue", "ToggleGroupPrimitive", "classNames", "SegmentedControlItem", "iconOnly"]
7
7
  }
@@ -23,10 +23,6 @@ declare const segmentedControlRootPropDefs: {
23
23
  default: "horizontal";
24
24
  responsive: true;
25
25
  };
26
- material: {
27
- type: "enum";
28
- values: ("solid" | "translucent")[];
29
- };
30
26
  };
31
27
  export { segmentedControlRootPropDefs };
32
28
  //# sourceMappingURL=segmented-control.props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"segmented-control.props.d.ts","sourceRoot":"","sources":["../../../src/components/segmented-control.props.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBjC,CAAC;AAEF,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
1
+ {"version":3,"file":"segmented-control.props.d.ts","sourceRoot":"","sources":["../../../src/components/segmented-control.props.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;CAejC,CAAC;AAEF,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var r=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var f=(o,e)=>{for(var t in e)r(o,t,{get:e[t],enumerable:!0})},u=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of p(e))!l.call(o,s)&&s!==t&&r(o,s,{get:()=>e[s],enumerable:!(a=n(e,s))||a.enumerable});return o};var d=o=>u(r({},"__esModule",{value:!0}),o);var P={};f(P,{segmentedControlRootPropDefs:()=>D});module.exports=d(P);var m=["none","small","medium","large","full"],i={radius:{type:"enum",values:m,default:void 0}};var c=["1","2","3","4"],y=["horizontal","vertical"],D={disabled:{type:"boolean",className:"disabled",default:!1},size:{type:"enum",className:"rt-r-size",values:c,default:"2",responsive:!0},orientation:{type:"enum",className:"rt-r-orientation",values:y,default:"horizontal",responsive:!0},material:{type:"enum",values:["solid","translucent"]},...i};
1
+ "use strict";var r=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var l=(o,e)=>{for(var t in e)r(o,t,{get:e[t],enumerable:!0})},d=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of p(e))!f.call(o,s)&&s!==t&&r(o,s,{get:()=>e[s],enumerable:!(a=n(e,s))||a.enumerable});return o};var u=o=>d(r({},"__esModule",{value:!0}),o);var P={};l(P,{segmentedControlRootPropDefs:()=>D});module.exports=u(P);var m=["none","small","medium","large","full"],i={radius:{type:"enum",values:m,default:void 0}};var c=["1","2","3","4"],y=["horizontal","vertical"],D={disabled:{type:"boolean",className:"disabled",default:!1},size:{type:"enum",className:"rt-r-size",values:c,default:"2",responsive:!0},orientation:{type:"enum",className:"rt-r-orientation",values:y,default:"horizontal",responsive:!0},...i};
2
2
  //# sourceMappingURL=segmented-control.props.js.map