@womp/kookie-ui 0.16.0 → 0.18.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 (969) hide show
  1. package/codemods/space-0.17.py +71 -0
  2. package/components.css +2857 -5012
  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 +4 -4
  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-checkbox.props.d.ts +1 -1
  12. package/dist/cjs/components/_internal/base-checkbox.props.js +1 -1
  13. package/dist/cjs/components/_internal/base-checkbox.props.js.map +2 -2
  14. package/dist/cjs/components/_internal/base-menu.props.d.ts +0 -10
  15. package/dist/cjs/components/_internal/base-menu.props.d.ts.map +1 -1
  16. package/dist/cjs/components/_internal/base-menu.props.js +1 -1
  17. package/dist/cjs/components/_internal/base-menu.props.js.map +3 -3
  18. package/dist/cjs/components/_internal/base-menu.utils.d.ts +3 -9
  19. package/dist/cjs/components/_internal/base-menu.utils.d.ts.map +1 -1
  20. package/dist/cjs/components/_internal/base-menu.utils.js +1 -1
  21. package/dist/cjs/components/_internal/base-menu.utils.js.map +3 -3
  22. package/dist/cjs/components/_internal/base-radio.props.d.ts +1 -1
  23. package/dist/cjs/components/_internal/base-radio.props.js +1 -1
  24. package/dist/cjs/components/_internal/base-radio.props.js.map +2 -2
  25. package/dist/cjs/components/_internal/base-tab-list.props.d.ts +0 -5
  26. package/dist/cjs/components/_internal/base-tab-list.props.d.ts.map +1 -1
  27. package/dist/cjs/components/_internal/base-tab-list.props.js +1 -1
  28. package/dist/cjs/components/_internal/base-tab-list.props.js.map +3 -3
  29. package/dist/cjs/components/_internal/menu-context.d.ts +2 -3
  30. package/dist/cjs/components/_internal/menu-context.d.ts.map +1 -1
  31. package/dist/cjs/components/_internal/menu-context.js +1 -1
  32. package/dist/cjs/components/_internal/menu-context.js.map +4 -4
  33. package/dist/cjs/components/_internal/pane-chrome.d.ts +14 -2
  34. package/dist/cjs/components/_internal/pane-chrome.d.ts.map +1 -1
  35. package/dist/cjs/components/_internal/pane-chrome.js +1 -1
  36. package/dist/cjs/components/_internal/pane-chrome.js.map +3 -3
  37. package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
  38. package/dist/cjs/components/_internal/shell-sidebar.js.map +3 -3
  39. package/dist/cjs/components/accordion.d.ts.map +1 -1
  40. package/dist/cjs/components/accordion.js +1 -1
  41. package/dist/cjs/components/accordion.js.map +4 -4
  42. package/dist/cjs/components/accordion.props.d.ts +0 -7
  43. package/dist/cjs/components/accordion.props.d.ts.map +1 -1
  44. package/dist/cjs/components/accordion.props.js +1 -1
  45. package/dist/cjs/components/accordion.props.js.map +3 -3
  46. package/dist/cjs/components/alert-dialog.d.ts.map +1 -1
  47. package/dist/cjs/components/alert-dialog.js +1 -1
  48. package/dist/cjs/components/alert-dialog.js.map +4 -4
  49. package/dist/cjs/components/alert-dialog.props.d.ts +0 -5
  50. package/dist/cjs/components/alert-dialog.props.d.ts.map +1 -1
  51. package/dist/cjs/components/alert-dialog.props.js +1 -1
  52. package/dist/cjs/components/alert-dialog.props.js.map +3 -3
  53. package/dist/cjs/components/badge.js +1 -1
  54. package/dist/cjs/components/badge.js.map +4 -4
  55. package/dist/cjs/components/badge.props.d.ts +1 -1
  56. package/dist/cjs/components/badge.props.js +1 -1
  57. package/dist/cjs/components/badge.props.js.map +1 -1
  58. package/dist/cjs/components/button.js +2 -2
  59. package/dist/cjs/components/button.js.map +4 -4
  60. package/dist/cjs/components/button.props.js +1 -1
  61. package/dist/cjs/components/button.props.js.map +3 -3
  62. package/dist/cjs/components/card.d.ts.map +1 -1
  63. package/dist/cjs/components/card.js +1 -1
  64. package/dist/cjs/components/card.js.map +3 -3
  65. package/dist/cjs/components/card.props.d.ts +0 -5
  66. package/dist/cjs/components/card.props.d.ts.map +1 -1
  67. package/dist/cjs/components/card.props.js +1 -1
  68. package/dist/cjs/components/card.props.js.map +3 -3
  69. package/dist/cjs/components/chatbar.d.ts +0 -2
  70. package/dist/cjs/components/chatbar.d.ts.map +1 -1
  71. package/dist/cjs/components/chatbar.js +2 -2
  72. package/dist/cjs/components/chatbar.js.map +4 -4
  73. package/dist/cjs/components/checkbox-cards.d.ts.map +1 -1
  74. package/dist/cjs/components/checkbox-cards.js +1 -1
  75. package/dist/cjs/components/checkbox-cards.js.map +4 -4
  76. package/dist/cjs/components/checkbox-cards.props.d.ts +0 -5
  77. package/dist/cjs/components/checkbox-cards.props.d.ts.map +1 -1
  78. package/dist/cjs/components/checkbox-cards.props.js +1 -1
  79. package/dist/cjs/components/checkbox-cards.props.js.map +3 -3
  80. package/dist/cjs/components/checkbox-group.d.ts.map +1 -1
  81. package/dist/cjs/components/checkbox-group.js +1 -1
  82. package/dist/cjs/components/checkbox-group.js.map +4 -4
  83. package/dist/cjs/components/checkbox-group.props.d.ts +1 -1
  84. package/dist/cjs/components/checkbox-group.props.js +1 -1
  85. package/dist/cjs/components/checkbox-group.props.js.map +2 -2
  86. package/dist/cjs/components/checkbox.d.ts.map +1 -1
  87. package/dist/cjs/components/checkbox.js +1 -1
  88. package/dist/cjs/components/checkbox.js.map +4 -4
  89. package/dist/cjs/components/checkbox.props.js +1 -1
  90. package/dist/cjs/components/checkbox.props.js.map +2 -2
  91. package/dist/cjs/components/combobox.d.ts.map +1 -1
  92. package/dist/cjs/components/combobox.js +1 -1
  93. package/dist/cjs/components/combobox.js.map +4 -4
  94. package/dist/cjs/components/combobox.props.d.ts +0 -9
  95. package/dist/cjs/components/combobox.props.d.ts.map +1 -1
  96. package/dist/cjs/components/combobox.props.js +1 -1
  97. package/dist/cjs/components/combobox.props.js.map +3 -3
  98. package/dist/cjs/components/context-menu.d.ts.map +1 -1
  99. package/dist/cjs/components/context-menu.js +1 -1
  100. package/dist/cjs/components/context-menu.js.map +4 -4
  101. package/dist/cjs/components/context-menu.props.js +1 -1
  102. package/dist/cjs/components/context-menu.props.js.map +3 -3
  103. package/dist/cjs/components/data-list.d.ts.map +1 -1
  104. package/dist/cjs/components/data-list.js +1 -1
  105. package/dist/cjs/components/data-list.js.map +4 -4
  106. package/dist/cjs/components/dialog.d.ts.map +1 -1
  107. package/dist/cjs/components/dialog.js +1 -1
  108. package/dist/cjs/components/dialog.js.map +4 -4
  109. package/dist/cjs/components/dialog.props.d.ts +0 -5
  110. package/dist/cjs/components/dialog.props.d.ts.map +1 -1
  111. package/dist/cjs/components/dialog.props.js +1 -1
  112. package/dist/cjs/components/dialog.props.js.map +3 -3
  113. package/dist/cjs/components/dropdown-menu.d.ts.map +1 -1
  114. package/dist/cjs/components/dropdown-menu.js +1 -1
  115. package/dist/cjs/components/dropdown-menu.js.map +4 -4
  116. package/dist/cjs/components/dropdown-menu.props.js +1 -1
  117. package/dist/cjs/components/dropdown-menu.props.js.map +3 -3
  118. package/dist/cjs/components/hover-card.d.ts.map +1 -1
  119. package/dist/cjs/components/hover-card.js +1 -1
  120. package/dist/cjs/components/hover-card.js.map +4 -4
  121. package/dist/cjs/components/icon-button.js +2 -2
  122. package/dist/cjs/components/icon-button.js.map +4 -4
  123. package/dist/cjs/components/icon-button.props.js +1 -1
  124. package/dist/cjs/components/icon-button.props.js.map +3 -3
  125. package/dist/cjs/components/index.js +5 -5
  126. package/dist/cjs/components/index.js.map +4 -4
  127. package/dist/cjs/components/message-scroller.js +2 -2
  128. package/dist/cjs/components/message-scroller.js.map +4 -4
  129. package/dist/cjs/components/navbar.d.ts.map +1 -1
  130. package/dist/cjs/components/navbar.js +1 -1
  131. package/dist/cjs/components/navbar.js.map +4 -4
  132. package/dist/cjs/components/notice.d.ts +1 -3
  133. package/dist/cjs/components/notice.d.ts.map +1 -1
  134. package/dist/cjs/components/notice.js +2 -2
  135. package/dist/cjs/components/notice.js.map +4 -4
  136. package/dist/cjs/components/popover.d.ts.map +1 -1
  137. package/dist/cjs/components/popover.js +1 -1
  138. package/dist/cjs/components/popover.js.map +4 -4
  139. package/dist/cjs/components/popover.props.d.ts +0 -5
  140. package/dist/cjs/components/popover.props.d.ts.map +1 -1
  141. package/dist/cjs/components/popover.props.js +1 -1
  142. package/dist/cjs/components/popover.props.js.map +3 -3
  143. package/dist/cjs/components/progress.js +1 -1
  144. package/dist/cjs/components/progress.js.map +3 -3
  145. package/dist/cjs/components/progress.props.d.ts +0 -7
  146. package/dist/cjs/components/progress.props.d.ts.map +1 -1
  147. package/dist/cjs/components/progress.props.js +1 -1
  148. package/dist/cjs/components/progress.props.js.map +3 -3
  149. package/dist/cjs/components/radio-cards.d.ts.map +1 -1
  150. package/dist/cjs/components/radio-cards.js +1 -1
  151. package/dist/cjs/components/radio-cards.js.map +4 -4
  152. package/dist/cjs/components/radio-cards.props.d.ts +0 -5
  153. package/dist/cjs/components/radio-cards.props.d.ts.map +1 -1
  154. package/dist/cjs/components/radio-cards.props.js +1 -1
  155. package/dist/cjs/components/radio-cards.props.js.map +3 -3
  156. package/dist/cjs/components/radio-group.d.ts.map +1 -1
  157. package/dist/cjs/components/radio-group.js +1 -1
  158. package/dist/cjs/components/radio-group.js.map +4 -4
  159. package/dist/cjs/components/radio-group.props.d.ts +1 -1
  160. package/dist/cjs/components/radio-group.props.js +1 -1
  161. package/dist/cjs/components/radio-group.props.js.map +2 -2
  162. package/dist/cjs/components/radio.d.ts.map +1 -1
  163. package/dist/cjs/components/radio.js +1 -1
  164. package/dist/cjs/components/radio.js.map +4 -4
  165. package/dist/cjs/components/radio.props.js +1 -1
  166. package/dist/cjs/components/radio.props.js.map +2 -2
  167. package/dist/cjs/components/schemas/base-button.schema.d.ts +0 -4
  168. package/dist/cjs/components/schemas/base-button.schema.d.ts.map +1 -1
  169. package/dist/cjs/components/schemas/base-button.schema.js +1 -1
  170. package/dist/cjs/components/schemas/base-button.schema.js.map +2 -2
  171. package/dist/cjs/components/schemas/button.schema.d.ts +0 -4
  172. package/dist/cjs/components/schemas/button.schema.d.ts.map +1 -1
  173. package/dist/cjs/components/schemas/button.schema.js +1 -1
  174. package/dist/cjs/components/schemas/button.schema.js.map +2 -2
  175. package/dist/cjs/components/schemas/icon-button.schema.d.ts +0 -4
  176. package/dist/cjs/components/schemas/icon-button.schema.d.ts.map +1 -1
  177. package/dist/cjs/components/schemas/icon-button.schema.js +1 -1
  178. package/dist/cjs/components/schemas/icon-button.schema.js.map +2 -2
  179. package/dist/cjs/components/schemas/index.js +1 -1
  180. package/dist/cjs/components/schemas/index.js.map +2 -2
  181. package/dist/cjs/components/schemas/toggle-button.schema.d.ts +0 -4
  182. package/dist/cjs/components/schemas/toggle-button.schema.d.ts.map +1 -1
  183. package/dist/cjs/components/schemas/toggle-button.schema.js +1 -1
  184. package/dist/cjs/components/schemas/toggle-button.schema.js.map +2 -2
  185. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts +0 -4
  186. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  187. package/dist/cjs/components/schemas/toggle-icon-button.schema.js +1 -1
  188. package/dist/cjs/components/schemas/toggle-icon-button.schema.js.map +2 -2
  189. package/dist/cjs/components/scroll-area.d.ts.map +1 -1
  190. package/dist/cjs/components/scroll-area.js +1 -1
  191. package/dist/cjs/components/scroll-area.js.map +3 -3
  192. package/dist/cjs/components/scroll-area.props.d.ts +0 -7
  193. package/dist/cjs/components/scroll-area.props.d.ts.map +1 -1
  194. package/dist/cjs/components/scroll-area.props.js +1 -1
  195. package/dist/cjs/components/scroll-area.props.js.map +3 -3
  196. package/dist/cjs/components/segmented-control.d.ts.map +1 -1
  197. package/dist/cjs/components/segmented-control.js +1 -1
  198. package/dist/cjs/components/segmented-control.js.map +4 -4
  199. package/dist/cjs/components/segmented-control.props.d.ts +0 -4
  200. package/dist/cjs/components/segmented-control.props.d.ts.map +1 -1
  201. package/dist/cjs/components/segmented-control.props.js +1 -1
  202. package/dist/cjs/components/segmented-control.props.js.map +2 -2
  203. package/dist/cjs/components/select.d.ts.map +1 -1
  204. package/dist/cjs/components/select.js +1 -1
  205. package/dist/cjs/components/select.js.map +4 -4
  206. package/dist/cjs/components/select.props.d.ts +0 -4
  207. package/dist/cjs/components/select.props.d.ts.map +1 -1
  208. package/dist/cjs/components/select.props.js +1 -1
  209. package/dist/cjs/components/select.props.js.map +2 -2
  210. package/dist/cjs/components/separator.js +1 -1
  211. package/dist/cjs/components/separator.js.map +3 -3
  212. package/dist/cjs/components/separator.props.d.ts +0 -7
  213. package/dist/cjs/components/separator.props.d.ts.map +1 -1
  214. package/dist/cjs/components/separator.props.js +1 -1
  215. package/dist/cjs/components/separator.props.js.map +3 -3
  216. package/dist/cjs/components/sheet.d.ts +0 -1
  217. package/dist/cjs/components/sheet.d.ts.map +1 -1
  218. package/dist/cjs/components/sheet.js +1 -1
  219. package/dist/cjs/components/sheet.js.map +4 -4
  220. package/dist/cjs/components/shell.d.ts +1 -1
  221. package/dist/cjs/components/shell.d.ts.map +1 -1
  222. package/dist/cjs/components/shell.js +1 -1
  223. package/dist/cjs/components/shell.js.map +4 -4
  224. package/dist/cjs/components/sidebar.js +1 -1
  225. package/dist/cjs/components/sidebar.js.map +4 -4
  226. package/dist/cjs/components/slider.d.ts.map +1 -1
  227. package/dist/cjs/components/slider.js +1 -1
  228. package/dist/cjs/components/slider.js.map +4 -4
  229. package/dist/cjs/components/spinner.js +1 -1
  230. package/dist/cjs/components/spinner.js.map +3 -3
  231. package/dist/cjs/components/spinner.props.d.ts +0 -7
  232. package/dist/cjs/components/spinner.props.d.ts.map +1 -1
  233. package/dist/cjs/components/spinner.props.js +1 -1
  234. package/dist/cjs/components/spinner.props.js.map +3 -3
  235. package/dist/cjs/components/switch.d.ts.map +1 -1
  236. package/dist/cjs/components/switch.js +1 -1
  237. package/dist/cjs/components/switch.js.map +4 -4
  238. package/dist/cjs/components/switch.props.d.ts.map +1 -1
  239. package/dist/cjs/components/switch.props.js.map +2 -2
  240. package/dist/cjs/components/tab-nav.d.ts.map +1 -1
  241. package/dist/cjs/components/tab-nav.js +1 -1
  242. package/dist/cjs/components/tab-nav.js.map +4 -4
  243. package/dist/cjs/components/tab-nav.props.js +1 -1
  244. package/dist/cjs/components/tab-nav.props.js.map +3 -3
  245. package/dist/cjs/components/table.d.ts.map +1 -1
  246. package/dist/cjs/components/table.js +1 -1
  247. package/dist/cjs/components/table.js.map +4 -4
  248. package/dist/cjs/components/table.props.d.ts +1 -1
  249. package/dist/cjs/components/table.props.js +1 -1
  250. package/dist/cjs/components/table.props.js.map +2 -2
  251. package/dist/cjs/components/tabs.d.ts.map +1 -1
  252. package/dist/cjs/components/tabs.js +1 -1
  253. package/dist/cjs/components/tabs.js.map +4 -4
  254. package/dist/cjs/components/tabs.props.js +1 -1
  255. package/dist/cjs/components/tabs.props.js.map +3 -3
  256. package/dist/cjs/components/text-area.d.ts.map +1 -1
  257. package/dist/cjs/components/text-area.js +1 -1
  258. package/dist/cjs/components/text-area.js.map +4 -4
  259. package/dist/cjs/components/text-area.props.d.ts +0 -5
  260. package/dist/cjs/components/text-area.props.d.ts.map +1 -1
  261. package/dist/cjs/components/text-area.props.js +1 -1
  262. package/dist/cjs/components/text-area.props.js.map +3 -3
  263. package/dist/cjs/components/text-field.d.ts.map +1 -1
  264. package/dist/cjs/components/text-field.js +2 -2
  265. package/dist/cjs/components/text-field.js.map +4 -4
  266. package/dist/cjs/components/text-field.props.d.ts +0 -5
  267. package/dist/cjs/components/text-field.props.d.ts.map +1 -1
  268. package/dist/cjs/components/text-field.props.js +1 -1
  269. package/dist/cjs/components/text-field.props.js.map +3 -3
  270. package/dist/cjs/components/theme-panel.d.ts.map +1 -1
  271. package/dist/cjs/components/theme-panel.js +3 -3
  272. package/dist/cjs/components/theme-panel.js.map +4 -4
  273. package/dist/cjs/components/theme.d.ts +3 -6
  274. package/dist/cjs/components/theme.d.ts.map +1 -1
  275. package/dist/cjs/components/theme.js +1 -1
  276. package/dist/cjs/components/theme.js.map +4 -4
  277. package/dist/cjs/components/theme.props.d.ts +12 -19
  278. package/dist/cjs/components/theme.props.d.ts.map +1 -1
  279. package/dist/cjs/components/theme.props.js +1 -1
  280. package/dist/cjs/components/theme.props.js.map +3 -3
  281. package/dist/cjs/components/toggle-button.js +3 -3
  282. package/dist/cjs/components/toggle-button.js.map +4 -4
  283. package/dist/cjs/components/toggle-icon-button.js +3 -3
  284. package/dist/cjs/components/toggle-icon-button.js.map +4 -4
  285. package/dist/cjs/components/toolbar.d.ts.map +1 -1
  286. package/dist/cjs/components/toolbar.js +2 -2
  287. package/dist/cjs/components/toolbar.js.map +4 -4
  288. package/dist/cjs/components/toolbar.props.d.ts +2 -1
  289. package/dist/cjs/components/toolbar.props.d.ts.map +1 -1
  290. package/dist/cjs/components/toolbar.props.js.map +2 -2
  291. package/dist/cjs/components/tooltip.js +1 -1
  292. package/dist/cjs/components/tooltip.js.map +4 -4
  293. package/dist/cjs/components/virtual-menu.d.ts.map +1 -1
  294. package/dist/cjs/components/virtual-menu.js +1 -1
  295. package/dist/cjs/components/virtual-menu.js.map +4 -4
  296. package/dist/cjs/helpers/index.d.ts +1 -0
  297. package/dist/cjs/helpers/index.d.ts.map +1 -1
  298. package/dist/cjs/helpers/index.js +3 -3
  299. package/dist/cjs/helpers/index.js.map +4 -4
  300. package/dist/cjs/helpers/map-prop-values.d.ts +1 -4
  301. package/dist/cjs/helpers/map-prop-values.d.ts.map +1 -1
  302. package/dist/cjs/helpers/map-prop-values.js +1 -1
  303. package/dist/cjs/helpers/map-prop-values.js.map +3 -3
  304. package/dist/cjs/helpers/theme-size.d.ts +41 -0
  305. package/dist/cjs/helpers/theme-size.d.ts.map +1 -0
  306. package/dist/cjs/helpers/theme-size.js +2 -0
  307. package/dist/cjs/helpers/theme-size.js.map +7 -0
  308. package/dist/cjs/index.js +6 -6
  309. package/dist/cjs/index.js.map +4 -4
  310. package/dist/cjs/props/index.js +1 -1
  311. package/dist/cjs/props/index.js.map +3 -3
  312. package/dist/esm/chunk-2CNQGDY3.js +2 -0
  313. package/dist/esm/{chunk-MNC2O6QW.js.map → chunk-2CNQGDY3.js.map} +3 -3
  314. package/dist/esm/chunk-2O3WL25H.js +2 -0
  315. package/dist/esm/chunk-2O3WL25H.js.map +7 -0
  316. package/dist/esm/{chunk-XZ5XZS5O.js → chunk-35HNDWWM.js} +2 -2
  317. package/dist/esm/chunk-3YLYGKFB.js +2 -0
  318. package/dist/esm/chunk-3YLYGKFB.js.map +7 -0
  319. package/dist/esm/chunk-4DE3ONED.js +2 -0
  320. package/dist/esm/chunk-4DE3ONED.js.map +7 -0
  321. package/dist/esm/chunk-4M55YJMR.js +2 -0
  322. package/dist/esm/chunk-4M55YJMR.js.map +7 -0
  323. package/dist/esm/chunk-4YQXYWDQ.js +2 -0
  324. package/dist/esm/chunk-4YQXYWDQ.js.map +7 -0
  325. package/dist/esm/{chunk-R4CN4Q3G.js → chunk-534LGOWC.js} +2 -2
  326. package/dist/esm/chunk-54KMG7NX.js +2 -0
  327. package/dist/esm/chunk-54KMG7NX.js.map +7 -0
  328. package/dist/esm/chunk-5LGWS5QS.js +2 -0
  329. package/dist/esm/chunk-5LGWS5QS.js.map +7 -0
  330. package/dist/esm/chunk-5R2WX2FU.js +2 -0
  331. package/dist/esm/chunk-5R2WX2FU.js.map +7 -0
  332. package/dist/esm/{chunk-7UW7D77E.js → chunk-5UU2IMGX.js} +2 -2
  333. package/dist/esm/chunk-5VBJT2VY.js +2 -0
  334. package/dist/esm/chunk-5VBJT2VY.js.map +7 -0
  335. package/dist/esm/chunk-6AZV4VFW.js +2 -0
  336. package/dist/esm/chunk-6AZV4VFW.js.map +7 -0
  337. package/dist/esm/chunk-6YWDEANN.js +2 -0
  338. package/dist/esm/chunk-6YWDEANN.js.map +7 -0
  339. package/dist/esm/chunk-6YWJUNMB.js +2 -0
  340. package/dist/esm/chunk-6YWJUNMB.js.map +7 -0
  341. package/dist/esm/{chunk-Y4IB7KDZ.js → chunk-7FZPCM7W.js} +2 -2
  342. package/dist/esm/chunk-7J2QS2UT.js +5 -0
  343. package/dist/esm/chunk-7J2QS2UT.js.map +7 -0
  344. package/dist/esm/chunk-ABS275QZ.js +2 -0
  345. package/dist/esm/chunk-AKPAHQYE.js +2 -0
  346. package/dist/esm/chunk-AKPAHQYE.js.map +7 -0
  347. package/dist/esm/chunk-B6RH4CTY.js +2 -0
  348. package/dist/esm/chunk-B6RH4CTY.js.map +7 -0
  349. package/dist/esm/chunk-BN24ZBO7.js +2 -0
  350. package/dist/esm/chunk-BN24ZBO7.js.map +7 -0
  351. package/dist/esm/chunk-BZ6YBP2S.js +2 -0
  352. package/dist/esm/chunk-BZ6YBP2S.js.map +7 -0
  353. package/dist/esm/chunk-CC4GNSKL.js +2 -0
  354. package/dist/esm/chunk-CC4GNSKL.js.map +7 -0
  355. package/dist/esm/chunk-CHPZ3LNC.js +2 -0
  356. package/dist/esm/chunk-CHPZ3LNC.js.map +7 -0
  357. package/dist/esm/chunk-CRK34MWY.js +2 -0
  358. package/dist/esm/chunk-CRK34MWY.js.map +7 -0
  359. package/dist/esm/{chunk-PAB6HVKC.js → chunk-DFSW4QR4.js} +2 -2
  360. package/dist/esm/chunk-DJFTDR6Y.js +2 -0
  361. package/dist/esm/chunk-DJFTDR6Y.js.map +7 -0
  362. package/dist/esm/{chunk-UI2EFF6F.js → chunk-E3754NJZ.js} +2 -2
  363. package/dist/esm/chunk-EA2XSEFH.js +2 -0
  364. package/dist/esm/chunk-EA2XSEFH.js.map +7 -0
  365. package/dist/esm/{chunk-F2XQYWBE.js → chunk-EHUSLPWN.js} +2 -2
  366. package/dist/esm/chunk-ENPQJYXZ.js +2 -0
  367. package/dist/esm/chunk-ENPQJYXZ.js.map +7 -0
  368. package/dist/esm/chunk-ENSDQ3XQ.js +2 -0
  369. package/dist/esm/chunk-ENSDQ3XQ.js.map +7 -0
  370. package/dist/esm/chunk-EO7WQYFO.js +2 -0
  371. package/dist/esm/chunk-EO7WQYFO.js.map +7 -0
  372. package/dist/esm/chunk-EUSKAXHP.js +2 -0
  373. package/dist/esm/chunk-EUSKAXHP.js.map +7 -0
  374. package/dist/esm/chunk-F3XBIUXB.js +2 -0
  375. package/dist/esm/chunk-F3XBIUXB.js.map +7 -0
  376. package/dist/esm/{chunk-6ERCPRXX.js → chunk-FSKZAL5H.js} +2 -2
  377. package/dist/esm/chunk-GHD3TKCA.js +2 -0
  378. package/dist/esm/chunk-GHD3TKCA.js.map +7 -0
  379. package/dist/esm/chunk-GQBQHGEF.js +2 -0
  380. package/dist/esm/chunk-GQBQHGEF.js.map +7 -0
  381. package/dist/esm/chunk-GTVFQXLJ.js +2 -0
  382. package/dist/esm/chunk-GTVFQXLJ.js.map +7 -0
  383. package/dist/esm/chunk-HIEGLLY7.js +2 -0
  384. package/dist/esm/chunk-HIEGLLY7.js.map +7 -0
  385. package/dist/esm/chunk-HZYE46V2.js +2 -0
  386. package/dist/esm/chunk-HZYE46V2.js.map +7 -0
  387. package/dist/esm/chunk-IF4PYIUV.js +2 -0
  388. package/dist/esm/chunk-IF4PYIUV.js.map +7 -0
  389. package/dist/esm/chunk-IWT3Q2PD.js +2 -0
  390. package/dist/esm/chunk-IWT3Q2PD.js.map +7 -0
  391. package/dist/esm/chunk-JCRBBT4X.js +2 -0
  392. package/dist/esm/chunk-JCRBBT4X.js.map +7 -0
  393. package/dist/esm/{chunk-ZUOK3KFY.js → chunk-K7VO7TND.js} +1 -1
  394. package/dist/esm/{chunk-ZUOK3KFY.js.map → chunk-K7VO7TND.js.map} +2 -2
  395. package/dist/esm/chunk-KFQ4B5YC.js +2 -0
  396. package/dist/esm/chunk-KFQ4B5YC.js.map +7 -0
  397. package/dist/esm/{chunk-DIGT74P3.js → chunk-KPACVWV4.js} +1 -1
  398. package/dist/esm/{chunk-DIGT74P3.js.map → chunk-KPACVWV4.js.map} +2 -2
  399. package/dist/esm/{chunk-MQT3YJKY.js → chunk-KPPIW4OJ.js} +2 -2
  400. package/dist/esm/{chunk-PTEAQFHI.js → chunk-KRXCFIRK.js} +2 -2
  401. package/dist/esm/{chunk-5SQL4ZRC.js → chunk-KSZOVI57.js} +2 -2
  402. package/dist/esm/{chunk-5SQL4ZRC.js.map → chunk-KSZOVI57.js.map} +1 -1
  403. package/dist/esm/chunk-KU3LLWFU.js +2 -0
  404. package/dist/esm/{chunk-UPCRXJB2.js.map → chunk-KU3LLWFU.js.map} +2 -2
  405. package/dist/esm/chunk-MAI7FEU7.js +2 -0
  406. package/dist/esm/chunk-MAI7FEU7.js.map +7 -0
  407. package/dist/esm/chunk-MDHXSEGH.js +2 -0
  408. package/dist/esm/chunk-MDHXSEGH.js.map +7 -0
  409. package/dist/esm/{chunk-2PO6TZ7L.js → chunk-MJEYJI5G.js} +2 -2
  410. package/dist/esm/chunk-MLXHD7YF.js +2 -0
  411. package/dist/esm/chunk-MLXHD7YF.js.map +7 -0
  412. package/dist/esm/chunk-MPN33CKR.js +2 -0
  413. package/dist/esm/chunk-MPN33CKR.js.map +7 -0
  414. package/dist/esm/chunk-MQDZBF4J.js +2 -0
  415. package/dist/esm/chunk-MQDZBF4J.js.map +7 -0
  416. package/dist/esm/chunk-NCDOMH5I.js +2 -0
  417. package/dist/esm/chunk-NCDOMH5I.js.map +7 -0
  418. package/dist/esm/chunk-NFVOEHZS.js +2 -0
  419. package/dist/esm/chunk-NFVOEHZS.js.map +7 -0
  420. package/dist/esm/{chunk-J43ZS6TI.js → chunk-PAQS6C2A.js} +2 -2
  421. package/dist/esm/chunk-PUVZFRTQ.js +2 -0
  422. package/dist/esm/chunk-PUVZFRTQ.js.map +7 -0
  423. package/dist/esm/chunk-Q7S5LQBQ.js +2 -0
  424. package/dist/esm/chunk-Q7S5LQBQ.js.map +7 -0
  425. package/dist/esm/chunk-QAUYOVVL.js +2 -0
  426. package/dist/esm/chunk-QAUYOVVL.js.map +7 -0
  427. package/dist/esm/chunk-QOPRXQGR.js +2 -0
  428. package/dist/esm/chunk-QOPRXQGR.js.map +7 -0
  429. package/dist/esm/{chunk-MLJLEOZ5.js → chunk-R2FUNQTI.js} +2 -2
  430. package/dist/esm/{chunk-MLJLEOZ5.js.map → chunk-R2FUNQTI.js.map} +2 -2
  431. package/dist/esm/chunk-RC7TBVLO.js +2 -0
  432. package/dist/esm/chunk-RC7TBVLO.js.map +7 -0
  433. package/dist/esm/chunk-RJ6SA7AY.js +2 -0
  434. package/dist/esm/chunk-RJ6SA7AY.js.map +7 -0
  435. package/dist/esm/chunk-RSJSVJ6A.js +2 -0
  436. package/dist/esm/chunk-RSJSVJ6A.js.map +7 -0
  437. package/dist/esm/chunk-STMTXK7U.js +2 -0
  438. package/dist/esm/chunk-STMTXK7U.js.map +7 -0
  439. package/dist/esm/chunk-U7PDXTRX.js +2 -0
  440. package/dist/esm/chunk-U7PDXTRX.js.map +7 -0
  441. package/dist/esm/chunk-UNRG6Z5I.js +2 -0
  442. package/dist/esm/chunk-UNRG6Z5I.js.map +7 -0
  443. package/dist/esm/chunk-UONSKZQT.js +2 -0
  444. package/dist/esm/chunk-UONSKZQT.js.map +7 -0
  445. package/dist/esm/{chunk-2IPVLV6B.js → chunk-UQZHW3EJ.js} +2 -2
  446. package/dist/esm/chunk-VIDXAECE.js +2 -0
  447. package/dist/esm/chunk-VIDXAECE.js.map +7 -0
  448. package/dist/esm/chunk-VLLJ7A6P.js +2 -0
  449. package/dist/esm/chunk-VLLJ7A6P.js.map +7 -0
  450. package/dist/esm/{chunk-ELZEAEN2.js → chunk-VT4AAF7Q.js} +2 -2
  451. package/dist/esm/chunk-WKMJIWFP.js +2 -0
  452. package/dist/esm/chunk-WKMJIWFP.js.map +7 -0
  453. package/dist/esm/chunk-XVKFQSLI.js +2 -0
  454. package/dist/esm/chunk-XVKFQSLI.js.map +7 -0
  455. package/dist/esm/chunk-YF3MFME4.js +10 -0
  456. package/dist/esm/chunk-YF3MFME4.js.map +7 -0
  457. package/dist/esm/chunk-YGPUKJEB.js +2 -0
  458. package/dist/esm/chunk-YGPUKJEB.js.map +7 -0
  459. package/dist/esm/{chunk-MD3QCXRD.js → chunk-YVMQWSHA.js} +2 -2
  460. package/dist/esm/{chunk-MD3QCXRD.js.map → chunk-YVMQWSHA.js.map} +2 -2
  461. package/dist/esm/chunk-ZCAI2PRH.js +2 -0
  462. package/dist/esm/chunk-ZCAI2PRH.js.map +7 -0
  463. package/dist/esm/{chunk-S53ZQNHK.js → chunk-ZFBLPW3X.js} +2 -2
  464. package/dist/esm/chunk-ZH2B7WEH.js +2 -0
  465. package/dist/esm/chunk-ZH2B7WEH.js.map +7 -0
  466. package/dist/esm/chunk-ZJZIV2JH.js +2 -0
  467. package/dist/esm/chunk-ZJZIV2JH.js.map +7 -0
  468. package/dist/esm/components/_internal/base-button.d.ts +0 -2
  469. package/dist/esm/components/_internal/base-button.d.ts.map +1 -1
  470. package/dist/esm/components/_internal/base-button.js +1 -1
  471. package/dist/esm/components/_internal/base-button.props.d.ts +0 -17
  472. package/dist/esm/components/_internal/base-button.props.d.ts.map +1 -1
  473. package/dist/esm/components/_internal/base-button.props.js +1 -1
  474. package/dist/esm/components/_internal/base-checkbox.props.d.ts +1 -1
  475. package/dist/esm/components/_internal/base-checkbox.props.js +1 -1
  476. package/dist/esm/components/_internal/base-menu.props.d.ts +0 -10
  477. package/dist/esm/components/_internal/base-menu.props.d.ts.map +1 -1
  478. package/dist/esm/components/_internal/base-menu.props.js +1 -1
  479. package/dist/esm/components/_internal/base-menu.utils.d.ts +3 -9
  480. package/dist/esm/components/_internal/base-menu.utils.d.ts.map +1 -1
  481. package/dist/esm/components/_internal/base-menu.utils.js +1 -1
  482. package/dist/esm/components/_internal/base-radio.props.d.ts +1 -1
  483. package/dist/esm/components/_internal/base-radio.props.js +1 -1
  484. package/dist/esm/components/_internal/base-tab-list.props.d.ts +0 -5
  485. package/dist/esm/components/_internal/base-tab-list.props.d.ts.map +1 -1
  486. package/dist/esm/components/_internal/base-tab-list.props.js +1 -1
  487. package/dist/esm/components/_internal/menu-context.d.ts +2 -3
  488. package/dist/esm/components/_internal/menu-context.d.ts.map +1 -1
  489. package/dist/esm/components/_internal/menu-context.js +1 -1
  490. package/dist/esm/components/_internal/pane-chrome.d.ts +14 -2
  491. package/dist/esm/components/_internal/pane-chrome.d.ts.map +1 -1
  492. package/dist/esm/components/_internal/pane-chrome.js +1 -1
  493. package/dist/esm/components/_internal/shell-sidebar.js +1 -1
  494. package/dist/esm/components/accordion.d.ts.map +1 -1
  495. package/dist/esm/components/accordion.js +1 -1
  496. package/dist/esm/components/accordion.props.d.ts +0 -7
  497. package/dist/esm/components/accordion.props.d.ts.map +1 -1
  498. package/dist/esm/components/accordion.props.js +1 -1
  499. package/dist/esm/components/alert-dialog.d.ts.map +1 -1
  500. package/dist/esm/components/alert-dialog.js +1 -1
  501. package/dist/esm/components/alert-dialog.props.d.ts +0 -5
  502. package/dist/esm/components/alert-dialog.props.d.ts.map +1 -1
  503. package/dist/esm/components/alert-dialog.props.js +1 -1
  504. package/dist/esm/components/badge.js +1 -1
  505. package/dist/esm/components/badge.props.d.ts +1 -1
  506. package/dist/esm/components/badge.props.js +1 -1
  507. package/dist/esm/components/button.js +1 -1
  508. package/dist/esm/components/button.props.js +1 -1
  509. package/dist/esm/components/card.d.ts.map +1 -1
  510. package/dist/esm/components/card.js +1 -1
  511. package/dist/esm/components/card.props.d.ts +0 -5
  512. package/dist/esm/components/card.props.d.ts.map +1 -1
  513. package/dist/esm/components/card.props.js +1 -1
  514. package/dist/esm/components/chatbar.d.ts +0 -2
  515. package/dist/esm/components/chatbar.d.ts.map +1 -1
  516. package/dist/esm/components/chatbar.js +1 -1
  517. package/dist/esm/components/checkbox-cards.d.ts.map +1 -1
  518. package/dist/esm/components/checkbox-cards.js +1 -1
  519. package/dist/esm/components/checkbox-cards.props.d.ts +0 -5
  520. package/dist/esm/components/checkbox-cards.props.d.ts.map +1 -1
  521. package/dist/esm/components/checkbox-cards.props.js +1 -1
  522. package/dist/esm/components/checkbox-group.d.ts.map +1 -1
  523. package/dist/esm/components/checkbox-group.js +1 -1
  524. package/dist/esm/components/checkbox-group.props.d.ts +1 -1
  525. package/dist/esm/components/checkbox-group.props.js +1 -1
  526. package/dist/esm/components/checkbox.d.ts.map +1 -1
  527. package/dist/esm/components/checkbox.js +1 -1
  528. package/dist/esm/components/checkbox.props.js +1 -1
  529. package/dist/esm/components/combobox.d.ts.map +1 -1
  530. package/dist/esm/components/combobox.js +1 -1
  531. package/dist/esm/components/combobox.props.d.ts +0 -9
  532. package/dist/esm/components/combobox.props.d.ts.map +1 -1
  533. package/dist/esm/components/combobox.props.js +1 -1
  534. package/dist/esm/components/context-menu.d.ts.map +1 -1
  535. package/dist/esm/components/context-menu.js +1 -1
  536. package/dist/esm/components/context-menu.props.js +1 -1
  537. package/dist/esm/components/data-list.d.ts.map +1 -1
  538. package/dist/esm/components/data-list.js +1 -1
  539. package/dist/esm/components/dialog.d.ts.map +1 -1
  540. package/dist/esm/components/dialog.js +1 -1
  541. package/dist/esm/components/dialog.props.d.ts +0 -5
  542. package/dist/esm/components/dialog.props.d.ts.map +1 -1
  543. package/dist/esm/components/dialog.props.js +1 -1
  544. package/dist/esm/components/dropdown-menu.d.ts.map +1 -1
  545. package/dist/esm/components/dropdown-menu.js +1 -1
  546. package/dist/esm/components/dropdown-menu.props.js +1 -1
  547. package/dist/esm/components/hover-card.d.ts.map +1 -1
  548. package/dist/esm/components/hover-card.js +1 -1
  549. package/dist/esm/components/icon-button.js +1 -1
  550. package/dist/esm/components/icon-button.props.js +1 -1
  551. package/dist/esm/components/index.js +1 -1
  552. package/dist/esm/components/message-scroller.js +1 -1
  553. package/dist/esm/components/navbar.d.ts.map +1 -1
  554. package/dist/esm/components/navbar.js +1 -1
  555. package/dist/esm/components/notice.d.ts +1 -3
  556. package/dist/esm/components/notice.d.ts.map +1 -1
  557. package/dist/esm/components/notice.js +1 -1
  558. package/dist/esm/components/popover.d.ts.map +1 -1
  559. package/dist/esm/components/popover.js +1 -1
  560. package/dist/esm/components/popover.props.d.ts +0 -5
  561. package/dist/esm/components/popover.props.d.ts.map +1 -1
  562. package/dist/esm/components/popover.props.js +1 -1
  563. package/dist/esm/components/progress.js +1 -1
  564. package/dist/esm/components/progress.props.d.ts +0 -7
  565. package/dist/esm/components/progress.props.d.ts.map +1 -1
  566. package/dist/esm/components/progress.props.js +1 -1
  567. package/dist/esm/components/radio-cards.d.ts.map +1 -1
  568. package/dist/esm/components/radio-cards.js +1 -1
  569. package/dist/esm/components/radio-cards.props.d.ts +0 -5
  570. package/dist/esm/components/radio-cards.props.d.ts.map +1 -1
  571. package/dist/esm/components/radio-cards.props.js +1 -1
  572. package/dist/esm/components/radio-group.d.ts.map +1 -1
  573. package/dist/esm/components/radio-group.js +1 -1
  574. package/dist/esm/components/radio-group.props.d.ts +1 -1
  575. package/dist/esm/components/radio-group.props.js +1 -1
  576. package/dist/esm/components/radio.d.ts.map +1 -1
  577. package/dist/esm/components/radio.js +1 -1
  578. package/dist/esm/components/radio.props.js +1 -1
  579. package/dist/esm/components/schemas/base-button.schema.d.ts +0 -4
  580. package/dist/esm/components/schemas/base-button.schema.d.ts.map +1 -1
  581. package/dist/esm/components/schemas/base-button.schema.js +1 -1
  582. package/dist/esm/components/schemas/button.schema.d.ts +0 -4
  583. package/dist/esm/components/schemas/button.schema.d.ts.map +1 -1
  584. package/dist/esm/components/schemas/button.schema.js +1 -1
  585. package/dist/esm/components/schemas/icon-button.schema.d.ts +0 -4
  586. package/dist/esm/components/schemas/icon-button.schema.d.ts.map +1 -1
  587. package/dist/esm/components/schemas/icon-button.schema.js +1 -1
  588. package/dist/esm/components/schemas/index.js +1 -1
  589. package/dist/esm/components/schemas/toggle-button.schema.d.ts +0 -4
  590. package/dist/esm/components/schemas/toggle-button.schema.d.ts.map +1 -1
  591. package/dist/esm/components/schemas/toggle-button.schema.js +1 -1
  592. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts +0 -4
  593. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  594. package/dist/esm/components/schemas/toggle-icon-button.schema.js +1 -1
  595. package/dist/esm/components/scroll-area.d.ts.map +1 -1
  596. package/dist/esm/components/scroll-area.js +1 -1
  597. package/dist/esm/components/scroll-area.props.d.ts +0 -7
  598. package/dist/esm/components/scroll-area.props.d.ts.map +1 -1
  599. package/dist/esm/components/scroll-area.props.js +1 -1
  600. package/dist/esm/components/segmented-control.d.ts.map +1 -1
  601. package/dist/esm/components/segmented-control.js +1 -1
  602. package/dist/esm/components/segmented-control.props.d.ts +0 -4
  603. package/dist/esm/components/segmented-control.props.d.ts.map +1 -1
  604. package/dist/esm/components/segmented-control.props.js +1 -1
  605. package/dist/esm/components/select.d.ts.map +1 -1
  606. package/dist/esm/components/select.js +1 -1
  607. package/dist/esm/components/select.props.d.ts +0 -4
  608. package/dist/esm/components/select.props.d.ts.map +1 -1
  609. package/dist/esm/components/select.props.js +1 -1
  610. package/dist/esm/components/separator.js +1 -1
  611. package/dist/esm/components/separator.props.d.ts +0 -7
  612. package/dist/esm/components/separator.props.d.ts.map +1 -1
  613. package/dist/esm/components/separator.props.js +1 -1
  614. package/dist/esm/components/sheet.d.ts +0 -1
  615. package/dist/esm/components/sheet.d.ts.map +1 -1
  616. package/dist/esm/components/sheet.js +1 -1
  617. package/dist/esm/components/shell.d.ts +1 -1
  618. package/dist/esm/components/shell.d.ts.map +1 -1
  619. package/dist/esm/components/shell.js +1 -1
  620. package/dist/esm/components/sidebar.js +1 -1
  621. package/dist/esm/components/slider.d.ts.map +1 -1
  622. package/dist/esm/components/slider.js +1 -1
  623. package/dist/esm/components/spinner.js +1 -1
  624. package/dist/esm/components/spinner.props.d.ts +0 -7
  625. package/dist/esm/components/spinner.props.d.ts.map +1 -1
  626. package/dist/esm/components/spinner.props.js +1 -1
  627. package/dist/esm/components/switch.d.ts.map +1 -1
  628. package/dist/esm/components/switch.js +1 -1
  629. package/dist/esm/components/switch.props.d.ts.map +1 -1
  630. package/dist/esm/components/switch.props.js +1 -1
  631. package/dist/esm/components/tab-nav.d.ts.map +1 -1
  632. package/dist/esm/components/tab-nav.js +1 -1
  633. package/dist/esm/components/tab-nav.props.js +1 -1
  634. package/dist/esm/components/table.d.ts.map +1 -1
  635. package/dist/esm/components/table.js +1 -1
  636. package/dist/esm/components/table.props.d.ts +1 -1
  637. package/dist/esm/components/table.props.js +1 -1
  638. package/dist/esm/components/tabs.d.ts.map +1 -1
  639. package/dist/esm/components/tabs.js +1 -1
  640. package/dist/esm/components/tabs.props.js +1 -1
  641. package/dist/esm/components/text-area.d.ts.map +1 -1
  642. package/dist/esm/components/text-area.js +1 -1
  643. package/dist/esm/components/text-area.props.d.ts +0 -5
  644. package/dist/esm/components/text-area.props.d.ts.map +1 -1
  645. package/dist/esm/components/text-area.props.js +1 -1
  646. package/dist/esm/components/text-field.d.ts.map +1 -1
  647. package/dist/esm/components/text-field.js +1 -1
  648. package/dist/esm/components/text-field.props.d.ts +0 -5
  649. package/dist/esm/components/text-field.props.d.ts.map +1 -1
  650. package/dist/esm/components/text-field.props.js +1 -1
  651. package/dist/esm/components/theme-panel.d.ts.map +1 -1
  652. package/dist/esm/components/theme-panel.js +1 -1
  653. package/dist/esm/components/theme.d.ts +3 -6
  654. package/dist/esm/components/theme.d.ts.map +1 -1
  655. package/dist/esm/components/theme.js +1 -1
  656. package/dist/esm/components/theme.props.d.ts +12 -19
  657. package/dist/esm/components/theme.props.d.ts.map +1 -1
  658. package/dist/esm/components/theme.props.js +1 -1
  659. package/dist/esm/components/toggle-button.js +1 -1
  660. package/dist/esm/components/toggle-icon-button.js +1 -1
  661. package/dist/esm/components/toolbar.d.ts.map +1 -1
  662. package/dist/esm/components/toolbar.js +1 -1
  663. package/dist/esm/components/toolbar.props.d.ts +2 -1
  664. package/dist/esm/components/toolbar.props.d.ts.map +1 -1
  665. package/dist/esm/components/toolbar.props.js +1 -1
  666. package/dist/esm/components/tooltip.js +1 -1
  667. package/dist/esm/components/virtual-menu.d.ts.map +1 -1
  668. package/dist/esm/components/virtual-menu.js +1 -1
  669. package/dist/esm/helpers/index.d.ts +1 -0
  670. package/dist/esm/helpers/index.d.ts.map +1 -1
  671. package/dist/esm/helpers/index.js +1 -1
  672. package/dist/esm/helpers/map-prop-values.d.ts +1 -4
  673. package/dist/esm/helpers/map-prop-values.d.ts.map +1 -1
  674. package/dist/esm/helpers/map-prop-values.js +1 -1
  675. package/dist/esm/helpers/theme-size.d.ts +41 -0
  676. package/dist/esm/helpers/theme-size.d.ts.map +1 -0
  677. package/dist/esm/helpers/theme-size.js +2 -0
  678. package/dist/esm/helpers/theme-size.js.map +7 -0
  679. package/dist/esm/index.js +1 -1
  680. package/dist/esm/props/index.js +1 -1
  681. package/layout/components.css +48 -48
  682. package/layout/tokens.css +79 -31
  683. package/layout.css +127 -79
  684. package/package.json +2 -1
  685. package/schemas/base-button.json +0 -8
  686. package/schemas/button.json +0 -8
  687. package/schemas/icon-button.json +0 -8
  688. package/schemas/index.json +0 -40
  689. package/schemas/toggle-button.json +0 -8
  690. package/schemas/toggle-icon-button.json +0 -8
  691. package/src/components/_internal/base-button.css +130 -175
  692. package/src/components/_internal/base-button.props.ts +0 -26
  693. package/src/components/_internal/base-button.tsx +47 -14
  694. package/src/components/_internal/base-card.css +32 -194
  695. package/src/components/_internal/base-checkbox.css +104 -58
  696. package/src/components/_internal/base-checkbox.props.ts +1 -1
  697. package/src/components/_internal/base-dialog.css +13 -45
  698. package/src/components/_internal/base-menu.css +24 -57
  699. package/src/components/_internal/base-menu.props.ts +0 -8
  700. package/src/components/_internal/base-menu.utils.tsx +4 -15
  701. package/src/components/_internal/base-radio.css +79 -54
  702. package/src/components/_internal/base-radio.props.ts +1 -1
  703. package/src/components/_internal/base-sidebar-menu.css +21 -19
  704. package/src/components/_internal/base-sidebar.css +2 -3
  705. package/src/components/_internal/base-tab-list.css +39 -78
  706. package/src/components/_internal/base-tab-list.props.ts +0 -3
  707. package/src/components/_internal/menu-context.tsx +6 -10
  708. package/src/components/_internal/pane-chrome.tsx +40 -8
  709. package/src/components/accordion.css +17 -263
  710. package/src/components/accordion.props.tsx +0 -4
  711. package/src/components/accordion.tsx +4 -5
  712. package/src/components/alert-dialog.props.tsx +0 -4
  713. package/src/components/alert-dialog.tsx +1 -14
  714. package/src/components/avatar.css +35 -67
  715. package/src/components/badge.css +27 -49
  716. package/src/components/badge.props.tsx +1 -1
  717. package/src/components/blockquote.css +2 -2
  718. package/src/components/button.css +5 -175
  719. package/src/components/card.props.tsx +0 -3
  720. package/src/components/card.tsx +1 -3
  721. package/src/components/chatbar.css +44 -124
  722. package/src/components/chatbar.tsx +10 -11
  723. package/src/components/checkbox-cards.css +11 -11
  724. package/src/components/checkbox-cards.props.tsx +0 -3
  725. package/src/components/checkbox-cards.tsx +0 -5
  726. package/src/components/checkbox-group.css +7 -12
  727. package/src/components/checkbox-group.tsx +3 -1
  728. package/src/components/checkbox.css +6 -11
  729. package/src/components/checkbox.tsx +3 -1
  730. package/src/components/combobox.css +4 -9
  731. package/src/components/combobox.props.tsx +0 -5
  732. package/src/components/combobox.tsx +4 -12
  733. package/src/components/context-menu.tsx +9 -20
  734. package/src/components/data-list.css +4 -4
  735. package/src/components/data-list.tsx +3 -1
  736. package/src/components/dialog.css +0 -12
  737. package/src/components/dialog.props.tsx +0 -3
  738. package/src/components/dialog.tsx +1 -14
  739. package/src/components/dropdown-menu.css +1 -1
  740. package/src/components/dropdown-menu.tsx +8 -20
  741. package/src/components/hover-card.css +3 -3
  742. package/src/components/hover-card.tsx +3 -1
  743. package/src/components/icon-button.css +4 -152
  744. package/src/components/image.css +1 -1
  745. package/src/components/kbd.css +14 -14
  746. package/src/components/message-scroller.css +1 -1
  747. package/src/components/message-scroller.tsx +1 -1
  748. package/src/components/navbar.css +6 -6
  749. package/src/components/navbar.tsx +3 -1
  750. package/src/components/notice.css +9 -15
  751. package/src/components/notice.tsx +8 -7
  752. package/src/components/popover.css +15 -37
  753. package/src/components/popover.props.tsx +0 -3
  754. package/src/components/popover.tsx +3 -6
  755. package/src/components/progress.css +4 -106
  756. package/src/components/progress.props.tsx +0 -3
  757. package/src/components/radio-cards.css +6 -6
  758. package/src/components/radio-cards.props.tsx +0 -3
  759. package/src/components/radio-cards.tsx +0 -5
  760. package/src/components/radio-group.css +1 -1
  761. package/src/components/radio-group.props.tsx +1 -1
  762. package/src/components/radio-group.tsx +3 -1
  763. package/src/components/radio.tsx +3 -1
  764. package/src/components/schemas/base-button.schema.ts +0 -9
  765. package/src/components/scroll-area.css +13 -34
  766. package/src/components/scroll-area.props.tsx +0 -3
  767. package/src/components/scroll-area.tsx +2 -18
  768. package/src/components/section.css +8 -8
  769. package/src/components/segmented-control.css +47 -83
  770. package/src/components/segmented-control.props.tsx +0 -2
  771. package/src/components/segmented-control.tsx +3 -5
  772. package/src/components/select.css +87 -424
  773. package/src/components/select.props.tsx +0 -2
  774. package/src/components/select.tsx +4 -4
  775. package/src/components/separator.css +2 -23
  776. package/src/components/separator.props.tsx +0 -3
  777. package/src/components/sheet.css +0 -11
  778. package/src/components/sheet.tsx +1 -18
  779. package/src/components/shell.css +45 -30
  780. package/src/components/shell.tsx +8 -2
  781. package/src/components/sidebar.css +108 -198
  782. package/src/components/skeleton.css +1 -1
  783. package/src/components/slider.css +35 -98
  784. package/src/components/slider.tsx +3 -1
  785. package/src/components/spinner.css +2 -23
  786. package/src/components/spinner.props.tsx +0 -4
  787. package/src/components/switch.css +56 -49
  788. package/src/components/switch.props.tsx +0 -8
  789. package/src/components/switch.tsx +3 -1
  790. package/src/components/tab-nav.tsx +4 -4
  791. package/src/components/table.css +10 -18
  792. package/src/components/table.props.tsx +1 -1
  793. package/src/components/table.tsx +3 -1
  794. package/src/components/tabs.css +2 -1
  795. package/src/components/tabs.tsx +4 -4
  796. package/src/components/text-area.css +71 -236
  797. package/src/components/text-area.props.tsx +0 -3
  798. package/src/components/text-area.tsx +9 -9
  799. package/src/components/text-field.css +136 -342
  800. package/src/components/text-field.props.tsx +0 -3
  801. package/src/components/text-field.tsx +9 -9
  802. package/src/components/theme-panel.css +4 -4
  803. package/src/components/theme-panel.tsx +19 -236
  804. package/src/components/theme.props.tsx +10 -15
  805. package/src/components/theme.tsx +86 -106
  806. package/src/components/toolbar.css +9 -9
  807. package/src/components/toolbar.props.tsx +2 -1
  808. package/src/components/toolbar.tsx +7 -2
  809. package/src/components/tooltip.css +1 -1
  810. package/src/components/virtual-menu.tsx +2 -4
  811. package/src/helpers/index.ts +1 -0
  812. package/src/helpers/map-prop-values.ts +1 -18
  813. package/src/helpers/theme-size.ts +73 -0
  814. package/src/styles/tokens/base.css +0 -2
  815. package/src/styles/tokens/color.css +4 -32
  816. package/src/styles/tokens/constants.css +27 -51
  817. package/src/styles/tokens/layout.css +1 -1
  818. package/src/styles/tokens/radius.css +24 -24
  819. package/src/styles/tokens/space.css +107 -24
  820. package/src/styles/tokens/typography.css +39 -39
  821. package/styles.css +3091 -5296
  822. package/tokens/base.css +243 -283
  823. package/tokens.css +268 -318
  824. package/dist/esm/chunk-23WDP4JG.js +0 -2
  825. package/dist/esm/chunk-23WDP4JG.js.map +0 -7
  826. package/dist/esm/chunk-2IWL4V4H.js +0 -2
  827. package/dist/esm/chunk-2IWL4V4H.js.map +0 -7
  828. package/dist/esm/chunk-2MYYU7ST.js +0 -2
  829. package/dist/esm/chunk-2MYYU7ST.js.map +0 -7
  830. package/dist/esm/chunk-2NNB4ZZ5.js +0 -2
  831. package/dist/esm/chunk-2NNB4ZZ5.js.map +0 -7
  832. package/dist/esm/chunk-2NNCZM7P.js +0 -2
  833. package/dist/esm/chunk-2NNCZM7P.js.map +0 -7
  834. package/dist/esm/chunk-2XSRO44Q.js +0 -2
  835. package/dist/esm/chunk-2XSRO44Q.js.map +0 -7
  836. package/dist/esm/chunk-3KB2XWBE.js +0 -2
  837. package/dist/esm/chunk-3KB2XWBE.js.map +0 -7
  838. package/dist/esm/chunk-3PT3AOD5.js +0 -2
  839. package/dist/esm/chunk-3PT3AOD5.js.map +0 -7
  840. package/dist/esm/chunk-4D7OU2UA.js +0 -2
  841. package/dist/esm/chunk-4D7OU2UA.js.map +0 -7
  842. package/dist/esm/chunk-4EBCFKNC.js +0 -2
  843. package/dist/esm/chunk-4EBCFKNC.js.map +0 -7
  844. package/dist/esm/chunk-5GYIQIPW.js +0 -2
  845. package/dist/esm/chunk-5GYIQIPW.js.map +0 -7
  846. package/dist/esm/chunk-5PG5YGIW.js +0 -2
  847. package/dist/esm/chunk-5PG5YGIW.js.map +0 -7
  848. package/dist/esm/chunk-5RHODJDJ.js +0 -2
  849. package/dist/esm/chunk-5RHODJDJ.js.map +0 -7
  850. package/dist/esm/chunk-7BE6N3KY.js +0 -2
  851. package/dist/esm/chunk-7BE6N3KY.js.map +0 -7
  852. package/dist/esm/chunk-BALS3AVM.js +0 -2
  853. package/dist/esm/chunk-BALS3AVM.js.map +0 -7
  854. package/dist/esm/chunk-BDOMLGLZ.js +0 -2
  855. package/dist/esm/chunk-BDOMLGLZ.js.map +0 -7
  856. package/dist/esm/chunk-CAUFRKTK.js +0 -2
  857. package/dist/esm/chunk-CAUFRKTK.js.map +0 -7
  858. package/dist/esm/chunk-CJ4UZDW5.js +0 -2
  859. package/dist/esm/chunk-CJ4UZDW5.js.map +0 -7
  860. package/dist/esm/chunk-DD5QHU6R.js +0 -2
  861. package/dist/esm/chunk-DD5QHU6R.js.map +0 -7
  862. package/dist/esm/chunk-DDYII5NA.js +0 -2
  863. package/dist/esm/chunk-DDYII5NA.js.map +0 -7
  864. package/dist/esm/chunk-DQTJMIRO.js +0 -2
  865. package/dist/esm/chunk-DQTJMIRO.js.map +0 -7
  866. package/dist/esm/chunk-E5DJILUI.js +0 -2
  867. package/dist/esm/chunk-E5DJILUI.js.map +0 -7
  868. package/dist/esm/chunk-EJG2UNTM.js +0 -2
  869. package/dist/esm/chunk-EJG2UNTM.js.map +0 -7
  870. package/dist/esm/chunk-FK6F6ROH.js +0 -2
  871. package/dist/esm/chunk-FK6F6ROH.js.map +0 -7
  872. package/dist/esm/chunk-HI3JY3DJ.js +0 -2
  873. package/dist/esm/chunk-HI3JY3DJ.js.map +0 -7
  874. package/dist/esm/chunk-HKRQ3E3I.js +0 -2
  875. package/dist/esm/chunk-HKRQ3E3I.js.map +0 -7
  876. package/dist/esm/chunk-HVQ3SLQC.js +0 -2
  877. package/dist/esm/chunk-HVQ3SLQC.js.map +0 -7
  878. package/dist/esm/chunk-IMYZP5OY.js +0 -2
  879. package/dist/esm/chunk-IMYZP5OY.js.map +0 -7
  880. package/dist/esm/chunk-IYXR46Q6.js +0 -5
  881. package/dist/esm/chunk-IYXR46Q6.js.map +0 -7
  882. package/dist/esm/chunk-JGB6LNTP.js +0 -2
  883. package/dist/esm/chunk-JGB6LNTP.js.map +0 -7
  884. package/dist/esm/chunk-JLHJHYVQ.js +0 -2
  885. package/dist/esm/chunk-JLHJHYVQ.js.map +0 -7
  886. package/dist/esm/chunk-K7J23OPW.js +0 -2
  887. package/dist/esm/chunk-K7J23OPW.js.map +0 -7
  888. package/dist/esm/chunk-LRFAOQK6.js +0 -2
  889. package/dist/esm/chunk-LRFAOQK6.js.map +0 -7
  890. package/dist/esm/chunk-LXSARUXD.js +0 -2
  891. package/dist/esm/chunk-LXSARUXD.js.map +0 -7
  892. package/dist/esm/chunk-MGSHX5N5.js +0 -2
  893. package/dist/esm/chunk-MGSHX5N5.js.map +0 -7
  894. package/dist/esm/chunk-MNC2O6QW.js +0 -2
  895. package/dist/esm/chunk-MOMYWKIO.js +0 -2
  896. package/dist/esm/chunk-MOMYWKIO.js.map +0 -7
  897. package/dist/esm/chunk-MVW2SY4F.js +0 -2
  898. package/dist/esm/chunk-MVW2SY4F.js.map +0 -7
  899. package/dist/esm/chunk-PRRJ4WRE.js +0 -2
  900. package/dist/esm/chunk-PRRJ4WRE.js.map +0 -7
  901. package/dist/esm/chunk-PSS45RHX.js +0 -2
  902. package/dist/esm/chunk-PSS45RHX.js.map +0 -7
  903. package/dist/esm/chunk-QE2EF7A7.js +0 -2
  904. package/dist/esm/chunk-QE2EF7A7.js.map +0 -7
  905. package/dist/esm/chunk-QJFAGWBO.js +0 -2
  906. package/dist/esm/chunk-QJFAGWBO.js.map +0 -7
  907. package/dist/esm/chunk-QJSSCW3B.js +0 -2
  908. package/dist/esm/chunk-QJSSCW3B.js.map +0 -7
  909. package/dist/esm/chunk-QPNYHS6A.js +0 -2
  910. package/dist/esm/chunk-QPNYHS6A.js.map +0 -7
  911. package/dist/esm/chunk-QWFFYUFH.js +0 -2
  912. package/dist/esm/chunk-QWFFYUFH.js.map +0 -7
  913. package/dist/esm/chunk-RA4U6VVZ.js +0 -2
  914. package/dist/esm/chunk-RA4U6VVZ.js.map +0 -7
  915. package/dist/esm/chunk-RVHKSNMJ.js +0 -2
  916. package/dist/esm/chunk-RVHKSNMJ.js.map +0 -7
  917. package/dist/esm/chunk-RYURXQLJ.js +0 -2
  918. package/dist/esm/chunk-RYURXQLJ.js.map +0 -7
  919. package/dist/esm/chunk-UA6FP7HS.js +0 -2
  920. package/dist/esm/chunk-ULSNYQOY.js +0 -2
  921. package/dist/esm/chunk-ULSNYQOY.js.map +0 -7
  922. package/dist/esm/chunk-UPCRXJB2.js +0 -2
  923. package/dist/esm/chunk-URLG45A4.js +0 -2
  924. package/dist/esm/chunk-URLG45A4.js.map +0 -7
  925. package/dist/esm/chunk-UZS3BA2Z.js +0 -2
  926. package/dist/esm/chunk-UZS3BA2Z.js.map +0 -7
  927. package/dist/esm/chunk-V7UP4SLZ.js +0 -2
  928. package/dist/esm/chunk-V7UP4SLZ.js.map +0 -7
  929. package/dist/esm/chunk-W7VAP3WE.js +0 -2
  930. package/dist/esm/chunk-W7VAP3WE.js.map +0 -7
  931. package/dist/esm/chunk-WGNIFXUE.js +0 -2
  932. package/dist/esm/chunk-WGNIFXUE.js.map +0 -7
  933. package/dist/esm/chunk-WNSG5P3U.js +0 -2
  934. package/dist/esm/chunk-WNSG5P3U.js.map +0 -7
  935. package/dist/esm/chunk-X3UTLDGG.js +0 -2
  936. package/dist/esm/chunk-X3UTLDGG.js.map +0 -7
  937. package/dist/esm/chunk-XCDXQLWS.js +0 -2
  938. package/dist/esm/chunk-XCDXQLWS.js.map +0 -7
  939. package/dist/esm/chunk-XKAWVGBL.js +0 -2
  940. package/dist/esm/chunk-XKAWVGBL.js.map +0 -7
  941. package/dist/esm/chunk-XPRPYCII.js +0 -2
  942. package/dist/esm/chunk-XPRPYCII.js.map +0 -7
  943. package/dist/esm/chunk-Y3FVBAN2.js +0 -2
  944. package/dist/esm/chunk-Y3FVBAN2.js.map +0 -7
  945. package/dist/esm/chunk-YKGLZEXX.js +0 -2
  946. package/dist/esm/chunk-YKGLZEXX.js.map +0 -7
  947. package/dist/esm/chunk-YSHEXVBI.js +0 -10
  948. package/dist/esm/chunk-YSHEXVBI.js.map +0 -7
  949. package/dist/esm/chunk-Z2LGVLUB.js +0 -2
  950. package/dist/esm/chunk-Z2LGVLUB.js.map +0 -7
  951. package/src/styles/tokens/blur.css +0 -63
  952. package/src/styles/tokens/opacity.css +0 -32
  953. package/src/styles/tokens/scaling.css +0 -17
  954. /package/dist/esm/{chunk-XZ5XZS5O.js.map → chunk-35HNDWWM.js.map} +0 -0
  955. /package/dist/esm/{chunk-R4CN4Q3G.js.map → chunk-534LGOWC.js.map} +0 -0
  956. /package/dist/esm/{chunk-7UW7D77E.js.map → chunk-5UU2IMGX.js.map} +0 -0
  957. /package/dist/esm/{chunk-Y4IB7KDZ.js.map → chunk-7FZPCM7W.js.map} +0 -0
  958. /package/dist/esm/{chunk-UA6FP7HS.js.map → chunk-ABS275QZ.js.map} +0 -0
  959. /package/dist/esm/{chunk-PAB6HVKC.js.map → chunk-DFSW4QR4.js.map} +0 -0
  960. /package/dist/esm/{chunk-UI2EFF6F.js.map → chunk-E3754NJZ.js.map} +0 -0
  961. /package/dist/esm/{chunk-F2XQYWBE.js.map → chunk-EHUSLPWN.js.map} +0 -0
  962. /package/dist/esm/{chunk-6ERCPRXX.js.map → chunk-FSKZAL5H.js.map} +0 -0
  963. /package/dist/esm/{chunk-MQT3YJKY.js.map → chunk-KPPIW4OJ.js.map} +0 -0
  964. /package/dist/esm/{chunk-PTEAQFHI.js.map → chunk-KRXCFIRK.js.map} +0 -0
  965. /package/dist/esm/{chunk-2PO6TZ7L.js.map → chunk-MJEYJI5G.js.map} +0 -0
  966. /package/dist/esm/{chunk-J43ZS6TI.js.map → chunk-PAQS6C2A.js.map} +0 -0
  967. /package/dist/esm/{chunk-2IPVLV6B.js.map → chunk-UQZHW3EJ.js.map} +0 -0
  968. /package/dist/esm/{chunk-ELZEAEN2.js.map → chunk-VT4AAF7Q.js.map} +0 -0
  969. /package/dist/esm/{chunk-S53ZQNHK.js.map → chunk-ZFBLPW3X.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";"use client";var G=Object.create;var c=Object.defineProperty;var K=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var s in e)c(t,s,{get:e[s],enumerable:!0})},h=(t,e,s,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of B(e))!M.call(t,o)&&o!==s&&c(t,o,{get:()=>e[o],enumerable:!(p=K(e,o))||p.enumerable});return t};var P=(t,e,s)=>(s=t!=null?G(A(t)):{},h(e||!t||!t.__esModule?c(s,"default",{value:t,enumerable:!0}):s,t)),W=t=>h(c({},"__esModule",{value:!0}),t);var Z={};U(Z,{Radio:()=>$});module.exports=W(Z);var g=P(require("react")),w=P(require("classnames")),E=require("radix-ui/internal");var z=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"];var C={color:{type:"enum",values:z,default:void 0}};var I=["1","2","3"],q=["raised","solid","soft","outline","surface"],D={size:{type:"enum",className:"rt-r-size",values:I,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:q,default:"raised"},...C};var m=["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"],T={m:{type:"enum | string",values:m,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:m,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:m,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var j=P(require("classnames"));var Y=[],_=new Set;function H(t){let e=Object.assign({},...t),s=[],p=[],o=new Set;for(let i in e){let n=e[i],a=n.values??Y,l={key:i,type:n.type,default:n.default,hasDefault:n.default!==void 0,responsive:"responsive"in n,className:n.className,customProperties:n.customProperties,parseValue:n.parseValue,values:a,valueSet:a.length>0?new Set(a):_,enumValueSet:n.type==="enum"?new Set([n.default,...a]):void 0};n.className?(s.push(l),o.add(i)):(l.hasDefault||n.type==="enum")&&p.push(l)}return{styling:s,passthrough:p,stylingKeys:o}}var L={children:new WeakMap};function V(t){let e=L;for(let s=0;s<t.length;s++){let p=t[s],o=e.children.get(p);o===void 0&&(o={children:new WeakMap},e.children.set(p,o)),e=o}return e.compiled??(e.compiled=H(t))}var F=["initial","xs","sm","md","lg","xl"],R=new Set(F);function v(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var J=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(J.has(e))return!0;return!1}function y(t,e,s){return e!==void 0?e.has(s):t.includes(s)}function k({className:t,customProperties:e,...s}){let p=b({allowArbitraryValues:!0,className:t,...s}),o=Q({customProperties:e,...s});return[p,o]}function b({allowArbitraryValues:t,value:e,className:s,propValues:p,propValueSet:o,parseValue:i=n=>n}){if(e){if(typeof e=="string")return y(p,o,e)?x(s,e,i):t?s:void 0;if(d(e)){let n=e,a=[];for(let l in n){if(!v(n,l)||!R.has(l))continue;let r=n[l];if(r!==void 0){if(y(p,o,r)){let u=x(s,r,i),f=l==="initial"?u:`${l}:${u}`;a.push(f)}else if(t){let u=l==="initial"?s:`${l}:${s}`;a.push(u)}}}return a.length>0?a.join(" "):""}if(t)return s}}function x(t,e,s){let p=t?"-":"",o=s(e),i=o?.startsWith("-"),n=i?"-":"",a=i?o?.substring(1):o;return`${n}${t}${p}${a}`}function Q({customProperties:t,value:e,propValues:s,propValueSet:p,parseValue:o=i=>i}){if(!e||typeof e=="string"&&y(s,p,e))return;let i;if(typeof e=="string"){let n=o(e);i={};for(let a of t)i[a]=n;return i}if(d(e)){let n=e;for(let a in n){if(!v(n,a)||!R.has(a))continue;let l=n[a];if(l===void 0||y(s,p,l))continue;let r=o(l);i??(i={});for(let u of t){let f=a==="initial"?u:`${u}-${a}`;i[f]=r}}}return i??{}}function S(...t){let e;for(let s of t)s&&(e===void 0&&(e={}),Object.assign(e,s));return e}function X(t,e){let s=t.initial,p=!1;return e.hasDefault&&s===void 0&&(s=e.default,p=!0),e.enumValueSet!==void 0&&!e.enumValueSet.has(s)&&(s=e.default,p=!0),p?{...t,initial:s}:t}function O(t,...e){let{styling:s,passthrough:p,stylingKeys:o}=V(e),i={};for(let l in t)o.has(l)||(i[l]=t[l]);for(let l=0;l<p.length;l++){let r=p[l],u=i[r.key];if(u===void 0){r.hasDefault&&(i[r.key]=r.default);continue}r.enumValueSet!==void 0&&!r.enumValueSet.has(u)&&!d(u)&&(i[r.key]=r.default)}let n,a=[];for(let l=0;l<s.length;l++){let r=s[l],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=X(u,r)}if(r.type==="enum"){let f=b({allowArbitraryValues:!1,value:u,className:r.className,propValues:r.values,propValueSet:r.valueSet,parseValue:r.parseValue});f&&a.push(f);continue}if(r.type==="string"||r.type==="enum | string"){let[f,N]=k({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});N&&(n=S(n,N)),f&&a.push(f);continue}if(r.type==="boolean"){a.push(r.className);continue}}}return i.className=(0,j.default)(a.length>0?a.join(" "):void 0,t.className),i.style=S(n,t.style),i}var $=g.forwardRef((t,e)=>{let{className:s,color:p,onChange:o,onValueChange:i,...n}=O(t,D,T);return g.createElement("input",{type:"radio","data-accent-color":p,...n,onChange:(0,E.composeEventHandlers)(o,a=>i?.(a.currentTarget.value)),ref:e,className:(0,w.default)("rt-reset","rt-BaseRadioRoot","rt-RadioRoot",s)})});$.displayName="Radio";
1
+ "use strict";"use client";var M=Object.create;var c=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var W=(t,e)=>{for(var n in e)c(t,n,{get:e[n],enumerable:!0})},N=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of B(e))!U.call(t,p)&&p!==n&&c(t,p,{get:()=>e[p],enumerable:!(i=A(e,p))||i.enumerable});return t};var y=(t,e,n)=>(n=t!=null?M(I(t)):{},N(e||!t||!t.__esModule?c(n,"default",{value:t,enumerable:!0}):n,t)),q=t=>N(c({},"__esModule",{value:!0}),t);var se={};W(se,{Radio:()=>K});module.exports=q(se);var R=y(require("react")),$=y(require("classnames")),G=require("radix-ui/internal");var _=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"];var C={color:{type:"enum",values:_,default:void 0}};var H=["1","2","3","4"],L=["raised","solid","soft","outline","surface"],g={size:{type:"enum",className:"rt-r-size",values:H,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:L,default:"raised"},...C};var m=["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"],x={m:{type:"enum | string",values:m,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:m,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:m,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var j=y(require("classnames"));var Y=[],F=new Set;function Z(t){let e=Object.assign({},...t),n=[],i=[],p=new Set;for(let o in e){let s=e[o],u=s.values??Y,a={key:o,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:u,valueSet:u.length>0?new Set(u):F,enumValueSet:s.type==="enum"?new Set([s.default,...u]):void 0};s.className?(n.push(a),p.add(o)):(a.hasDefault||s.type==="enum")&&i.push(a)}return{styling:n,passthrough:i,stylingKeys:p}}var J={children:new WeakMap};function V(t){let e=J;for(let n=0;n<t.length;n++){let i=t[n],p=e.children.get(i);p===void 0&&(p={children:new WeakMap},e.children.set(i,p)),e=p}return e.compiled??(e.compiled=Z(t))}var Q=["initial","xs","sm","md","lg","xl"],v=new Set(Q);function S(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 P(t,e,n){return e!==void 0?e.has(n):t.includes(n)}function z({className:t,customProperties:e,...n}){let i=b({allowArbitraryValues:!0,className:t,...n}),p=ee({customProperties:e,...n});return[i,p]}function b({allowArbitraryValues:t,value:e,className:n,propValues:i,propValueSet:p,parseValue:o=s=>s}){if(e){if(typeof e=="string")return P(i,p,e)?k(n,e,o):t?n:void 0;if(d(e)){let s=e,u=[];for(let a in s){if(!S(s,a)||!v.has(a))continue;let r=s[a];if(r!==void 0){if(P(i,p,r)){let f=k(n,r,o),l=a==="initial"?f:`${a}:${f}`;u.push(l)}else if(t){let f=a==="initial"?n:`${a}:${n}`;u.push(f)}}}return u.length>0?u.join(" "):""}if(t)return n}}function k(t,e,n){let i=t?"-":"",p=n(e),o=p?.startsWith("-"),s=o?"-":"",u=o?p?.substring(1):p;return`${s}${t}${i}${u}`}function ee({customProperties:t,value:e,propValues:n,propValueSet:i,parseValue:p=o=>o}){if(!e||typeof e=="string"&&P(n,i,e))return;let o;if(typeof e=="string"){let s=p(e);o={};for(let u of t)o[u]=s;return o}if(d(e)){let s=e;for(let u in s){if(!S(s,u)||!v.has(u))continue;let a=s[u];if(a===void 0||P(n,i,a))continue;let r=p(a);o??(o={});for(let f of t){let l=u==="initial"?f:`${f}-${u}`;o[l]=r}}}return o??{}}function h(...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 O(t,...e){let{styling:n,passthrough:i,stylingKeys:p}=V(e),o={};for(let a in t)p.has(a)||(o[a]=t[a]);for(let a=0;a<i.length;a++){let r=i[a],f=o[r.key];if(f===void 0){r.hasDefault&&(o[r.key]=r.default);continue}r.enumValueSet!==void 0&&!r.enumValueSet.has(f)&&!d(f)&&(o[r.key]=r.default)}let s,u=[];for(let a=0;a<n.length;a++){let r=n[a],f=t[r.key];if(f===void 0&&r.hasDefault&&(f=r.default),r.enumValueSet!==void 0&&!r.enumValueSet.has(f)&&!d(f)&&(f=r.default),!!f){if(d(f)){if(!r.responsive)continue;f=te(f,r)}if(r.type==="enum"){let l=b({allowArbitraryValues:!1,value:f,className:r.className,propValues:r.values,propValueSet:r.valueSet,parseValue:r.parseValue});l&&u.push(l);continue}if(r.type==="string"||r.type==="enum | string"){let[l,T]=z({className:r.className,customProperties:r.customProperties,propValues:r.type==="string"?[]:r.values,propValueSet:r.type==="string"?void 0:r.valueSet,parseValue:r.parseValue,value:f});T&&(s=h(s,T)),l&&u.push(l);continue}if(r.type==="boolean"){u.push(r.className);continue}}}return o.className=(0,j.default)(u.length>0?u.join(" "):void 0,t.className),o.style=h(s,t.style),o}var D=y(require("react")),ne="2",w=D.createContext(ne);w.displayName="ThemeSizeContext";function re(t,e){if(e.includes(t))return t;let n=Number(t),i=e[0],p=1/0;for(let o=0;o<e.length;o++){let s=Math.abs(Number(e[o])-n);s<p&&(p=s,i=e[o])}return i}function E(t,e){let n=D.useContext(w);if(t.size!==void 0)return t;let i=re(n,e.values);return i===e.default?t:{...t,size:i}}var K=R.forwardRef((t,e)=>{let n=E(t,g.size),{className:i,color:p,onChange:o,onValueChange:s,...u}=O(n,g,x);return R.createElement("input",{type:"radio","data-accent-color":p,...u,onChange:(0,G.composeEventHandlers)(o,a=>s?.(a.currentTarget.value)),ref:e,className:(0,$.default)("rt-reset","rt-BaseRadioRoot","rt-RadioRoot",i)})});K.displayName="Radio";
2
2
  //# sourceMappingURL=radio.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/components/radio.tsx", "../../../src/props/color.prop.ts", "../../../src/components/_internal/base-radio.props.ts", "../../../src/props/margin.props.ts", "../../../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"],
4
- "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { composeEventHandlers } from 'radix-ui/internal';\n\nimport { radioPropDefs } from './radio.props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { ComponentPropsWithout } from '../helpers/component-props.js';\nimport type { NotInputRadioAttributes } from '../helpers/input-attributes.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype RadioElement = React.ElementRef<'input'>;\ntype RadioOwnProps = GetPropDefTypes<typeof radioPropDefs> & {\n value: string;\n onValueChange?: (value: string) => void;\n};\ntype RadioInputProps = ComponentPropsWithout<\n 'input',\n NotInputRadioAttributes | 'color' | 'defaultValue' | 'value'\n>;\ninterface RadioProps extends RadioInputProps, MarginProps, RadioOwnProps {}\n\nconst Radio = React.forwardRef<RadioElement, RadioProps>((props, forwardedRef) => {\n const { className, color, onChange, onValueChange, ...radioProps } = extractProps(\n props,\n radioPropDefs,\n marginPropDefs,\n );\n return (\n <input\n type=\"radio\"\n data-accent-color={color}\n {...radioProps}\n onChange={composeEventHandlers(onChange, (event) =>\n onValueChange?.(event.currentTarget.value),\n )}\n ref={forwardedRef}\n className={classNames('rt-reset', 'rt-BaseRadioRoot', 'rt-RadioRoot', className)}\n />\n );\n});\nRadio.displayName = 'Radio';\n\nexport { Radio };\nexport type { RadioProps };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3'] as const;\nconst variants = ['raised', 'solid', 'soft', 'outline', 'surface'] as const;\n\nconst baseRadioPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'raised' },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { baseRadioPropDefs };\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", "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"],
5
- "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,IAAA,eAAAC,EAAAH,GAEA,IAAAI,EAAuB,oBACvBC,EAAuB,yBACvBC,EAAqC,6BCDrC,IAAMC,EAAe,CAAC,OAAQ,OAAQ,SAAU,QAAS,SAAU,QAAS,SAAU,SAAU,MAAO,OAAQ,UAAW,OAAQ,OAAQ,SAAU,SAAU,OAAQ,SAAU,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,OAAQ,OAAQ,KAAK,EAIvP,IAAMC,EAAe,CACnB,MAAO,CACL,KAAM,OACN,OAAQC,EACR,QAAS,MACX,CACF,ECTA,IAAMC,EAAQ,CAAC,IAAK,IAAK,GAAG,EACtBC,EAAW,CAAC,SAAU,QAAS,OAAQ,UAAW,SAAS,EAE3DC,EAAoB,CACxB,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQF,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,QAAS,EACtF,GAA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C,EAAO,SAAAC,EAAU,cAAAC,EAAe,GAAGC,CAAW,EAAIC,EACnEP,EACAQ,EACAC,CACF,EACA,OACE,gBAAC,SACC,KAAK,QACL,oBAAmBN,EAClB,GAAGG,EACJ,YAAU,wBAAqBF,EAAWM,GACxCL,IAAgBK,EAAM,cAAc,KAAK,CAC3C,EACA,IAAKT,EACL,aAAW,EAAAU,SAAW,WAAY,mBAAoB,eAAgBT,CAAS,EACjF,CAEJ,CAAC,EACDH,EAAM,YAAc",
6
- "names": ["radio_exports", "__export", "Radio", "__toCommonJS", "React", "import_classnames", "import_internal", "accentColors", "colorPropDef", "accentColors", "sizes", "variants", "baseRadioPropDefs", "colorPropDef", "marginValues", "marginPropDefs", "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", "Radio", "props", "forwardedRef", "className", "color", "onChange", "onValueChange", "radioProps", "extractProps", "baseRadioPropDefs", "marginPropDefs", "event", "classNames"]
3
+ "sources": ["../../../src/components/radio.tsx", "../../../src/props/color.prop.ts", "../../../src/components/_internal/base-radio.props.ts", "../../../src/props/margin.props.ts", "../../../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/helpers/theme-size.ts"],
4
+ "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { composeEventHandlers } from 'radix-ui/internal';\n\nimport { radioPropDefs } from './radio.props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { useThemeSizeProps } from '../helpers/theme-size.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { ComponentPropsWithout } from '../helpers/component-props.js';\nimport type { NotInputRadioAttributes } from '../helpers/input-attributes.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype RadioElement = React.ElementRef<'input'>;\ntype RadioOwnProps = GetPropDefTypes<typeof radioPropDefs> & {\n value: string;\n onValueChange?: (value: string) => void;\n};\ntype RadioInputProps = ComponentPropsWithout<\n 'input',\n NotInputRadioAttributes | 'color' | 'defaultValue' | 'value'\n>;\ninterface RadioProps extends RadioInputProps, MarginProps, RadioOwnProps {}\n\nconst Radio = React.forwardRef<RadioElement, RadioProps>((ownProps, forwardedRef) => {\n const props = useThemeSizeProps(ownProps, radioPropDefs.size);\n const { className, color, onChange, onValueChange, ...radioProps } = extractProps(\n props,\n radioPropDefs,\n marginPropDefs,\n );\n return (\n <input\n type=\"radio\"\n data-accent-color={color}\n {...radioProps}\n onChange={composeEventHandlers(onChange, (event) =>\n onValueChange?.(event.currentTarget.value),\n )}\n ref={forwardedRef}\n className={classNames('rt-reset', 'rt-BaseRadioRoot', 'rt-RadioRoot', className)}\n />\n );\n});\nRadio.displayName = 'Radio';\n\nexport { Radio };\nexport type { RadioProps };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['raised', 'solid', 'soft', 'outline', 'surface'] as const;\n\nconst baseRadioPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'raised' },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { baseRadioPropDefs };\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", "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", "'use client';\n\nimport * as React from 'react';\n\ntype ThemeSize = '1' | '2' | '3' | '4';\n\n/** The rest of the 1-4 index when no Theme states a size. */\nconst THEME_SIZE_DEFAULT: ThemeSize = '2';\n\n/**\n * The app-wide size index, provided by `Theme` beside `ThemeContext`.\n *\n * It is its own context, holding one string, so a component that only needs\n * the size does not re-render when the accent colour or appearance changes.\n */\nconst ThemeSizeContext = React.createContext<ThemeSize>(THEME_SIZE_DEFAULT);\nThemeSizeContext.displayName = 'ThemeSizeContext';\n\ninterface SizePropDef {\n values: readonly string[];\n default?: string;\n}\n\n/**\n * Maps the theme size onto a component's own range: the value itself when the\n * component has it, otherwise the nearest end of the range (`4` on a 1-3 scale\n * is `3`, on a 1-2 scale it is `2`).\n */\nfunction clampSize(size: ThemeSize, values: readonly string[]): string {\n if (values.includes(size)) return size;\n const n = Number(size);\n let nearest = values[0];\n let distance = Infinity;\n for (let i = 0; i < values.length; i++) {\n const d = Math.abs(Number(values[i]) - n);\n if (d < distance) {\n distance = d;\n nearest = values[i];\n }\n }\n return nearest;\n}\n\n/**\n * The size a component on the 1-4 index takes: what the caller said, else the\n * nearest Theme's size, mapped into the component's range.\n */\nfunction useThemeSize<V>(explicit: V | undefined, propDef: SizePropDef): V {\n const themeSize = React.useContext(ThemeSizeContext);\n if (explicit !== undefined) return explicit;\n // The clamped value is one of `propDef.values`, which is what `V` ranges over.\n return clampSize(themeSize, propDef.values) as V;\n}\n\n/**\n * Fills `size` from the nearest Theme when the caller left it unset, so the\n * result can go straight into `extractProps`. An explicit size, responsive\n * object included, wins.\n *\n * Returns the same props object when there is nothing to fill: when a size is\n * set, or when the theme size resolves to the prop def's own default (the\n * common case, a Theme with no size), so `extractProps` applies it as before.\n */\nfunction useThemeSizeProps<P extends { size?: unknown }>(props: P, propDef: SizePropDef): P {\n const themeSize = React.useContext(ThemeSizeContext);\n if (props.size !== undefined) return props;\n const size = clampSize(themeSize, propDef.values);\n if (size === propDef.default) return props;\n return { ...props, size };\n}\n\nexport { ThemeSizeContext, THEME_SIZE_DEFAULT, clampSize, useThemeSize, useThemeSizeProps };\nexport type { ThemeSize };\n"],
5
+ "mappings": "ukBAAA,IAAAA,GAAA,GAAAC,EAAAD,GAAA,WAAAE,IAAA,eAAAC,EAAAH,IAEA,IAAAI,EAAuB,oBACvBC,EAAuB,yBACvBC,EAAqC,6BCDrC,IAAMC,EAAe,CAAC,OAAQ,OAAQ,SAAU,QAAS,SAAU,QAAS,SAAU,SAAU,MAAO,OAAQ,UAAW,OAAQ,OAAQ,SAAU,SAAU,O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EACA,OACE,gBAAC,SACC,KAAK,QACL,oBAAmBL,EAClB,GAAGG,EACJ,YAAU,wBAAqBF,EAAWK,GACxCJ,IAAgBI,EAAM,cAAc,KAAK,CAC3C,EACA,IAAKX,EACL,aAAW,EAAAY,SAAW,WAAY,mBAAoB,eAAgBR,CAAS,EACjF,CAEJ,CAAC,EACDN,EAAM,YAAc",
6
+ "names": ["radio_exports", "__export", "Radio", "__toCommonJS", "React", "import_classnames", "import_internal", "accentColors", "colorPropDef", "accentColors", "sizes", "variants", "baseRadioPropDefs", "colorPropDef", "marginValues", "marginPropDefs", "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", "React", "THEME_SIZE_DEFAULT", "ThemeSizeContext", "clampSize", "size", "values", "nearest", "distance", "i", "d", "useThemeSizeProps", "props", "propDef", "themeSize", "ThemeSizeContext", "size", "clampSize", "Radio", "ownProps", "forwardedRef", "props", "useThemeSizeProps", "baseRadioPropDefs", "className", "color", "onChange", "onValueChange", "radioProps", "extractProps", "marginPropDefs", "event", "classNames"]
7
7
  }
@@ -1,2 +1,2 @@
1
- "use strict";var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var i=(o,e)=>{for(var s in e)a(o,s,{get:e[s],enumerable:!0})},u=(o,e,s,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!f.call(o,r)&&r!==s&&a(o,r,{get:()=>e[r],enumerable:!(t=c(e,r))||t.enumerable});return o};var m=o=>u(a({},"__esModule",{value:!0}),o);var v={};i(v,{radioPropDefs:()=>p});module.exports=m(v);var y=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"];var n={color:{type:"enum",values:y,default:void 0}};var d=["1","2","3"],b=["raised","solid","soft","outline","surface"],p={size:{type:"enum",className:"rt-r-size",values:d,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:b,default:"raised"},...n};
1
+ "use strict";var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var i=(o,e)=>{for(var s in e)a(o,s,{get:e[s],enumerable:!0})},u=(o,e,s,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!f.call(o,r)&&r!==s&&a(o,r,{get:()=>e[r],enumerable:!(t=c(e,r))||t.enumerable});return o};var m=o=>u(a({},"__esModule",{value:!0}),o);var v={};i(v,{radioPropDefs:()=>p});module.exports=m(v);var y=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"];var n={color:{type:"enum",values:y,default:void 0}};var d=["1","2","3","4"],b=["raised","solid","soft","outline","surface"],p={size:{type:"enum",className:"rt-r-size",values:d,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:b,default:"raised"},...n};
2
2
  //# sourceMappingURL=radio.props.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/radio.props.tsx", "../../../src/props/color.prop.ts", "../../../src/components/_internal/base-radio.props.ts"],
4
- "sourcesContent": ["export { baseRadioPropDefs as radioPropDefs } from './_internal/base-radio.props.js';\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3'] as const;\nconst variants = ['raised', 'solid', 'soft', 'outline', 'surface'] as const;\n\nconst baseRadioPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'raised' },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { baseRadioPropDefs };\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,IAAA,eAAAC,EAAAH,GCGA,IAAMI,EAAe,CAAC,OAAQ,OAAQ,SAAU,QAAS,SAAU,QAAS,SAAU,SAAU,MAAO,OAAQ,UAAW,OAAQ,OAAQ,SAAU,SAAU,OAAQ,SAAU,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,OAAQ,OAAQ,KAAK,EAIvP,IAAMC,EAAe,CACnB,MAAO,CACL,KAAM,OACN,OAAQC,EACR,QAAS,MACX,CACF,ECTA,IAAMC,EAAQ,CAAC,IAAK,IAAK,GAAG,EACtBC,EAAW,CAAC,SAAU,QAAS,OAAQ,UAAW,SAAS,EAE3DC,EAAoB,CACxB,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQF,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,QAAS,EACtF,GAAGE,CACL",
4
+ "sourcesContent": ["export { baseRadioPropDefs as radioPropDefs } from './_internal/base-radio.props.js';\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['gray', 'gold', 'bronze', 'brown', 'yellow', 'amber', 'orange', 'tomato', 'red', 'ruby', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue', 'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['raised', 'solid', 'soft', 'outline', 'surface'] as const;\n\nconst baseRadioPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'raised' },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { baseRadioPropDefs };\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,IAAA,eAAAC,EAAAH,GCGA,IAAMI,EAAe,CAAC,OAAQ,OAAQ,SAAU,QAAS,SAAU,QAAS,SAAU,SAAU,MAAO,OAAQ,UAAW,OAAQ,OAAQ,SAAU,SAAU,OAAQ,SAAU,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,OAAQ,OAAQ,KAAK,EAIvP,IAAMC,EAAe,CACnB,MAAO,CACL,KAAM,OACN,OAAQC,EACR,QAAS,MACX,CACF,ECTA,IAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAW,CAAC,SAAU,QAAS,OAAQ,UAAW,SAAS,EAE3DC,EAAoB,CACxB,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQF,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,QAAS,EACtF,GAAGE,CACL",
6
6
  "names": ["radio_props_exports", "__export", "baseRadioPropDefs", "__toCommonJS", "accentColors", "colorPropDef", "accentColors", "sizes", "variants", "baseRadioPropDefs", "colorPropDef"]
7
7
  }
@@ -102,10 +102,6 @@ export declare const BaseButtonSchema: z.ZodObject<{
102
102
  full: "full";
103
103
  }>>;
104
104
  loading: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
105
- material: z.ZodOptional<z.ZodEnum<{
106
- solid: "solid";
107
- translucent: "translucent";
108
- }>>;
109
105
  flush: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
110
106
  disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
111
107
  type: z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"base-button.schema.d.ts","sourceRoot":"","sources":["../../../../src/components/schemas/base-button.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoQlB,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAKpE"}
1
+ {"version":3,"file":"base-button.schema.d.ts","sourceRoot":"","sources":["../../../../src/components/schemas/base-button.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2PlB,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAKpE"}
@@ -1,2 +1,2 @@
1
- "use strict";var a=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var c=(n,o)=>{for(var i in o)a(n,i,{get:o[i],enumerable:!0})},u=(n,o,i,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of l(o))!d.call(n,t)&&t!==i&&a(n,t,{get:()=>o[t],enumerable:!(r=s(o,t))||r.enumerable});return n};var b=n=>u(a({},"__esModule",{value:!0}),n);var f={};c(f,{BaseButtonSchema:()=>p,parseBaseButtonProps:()=>m});module.exports=b(f);var e=require("zod"),p=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();function m(n){return n}
1
+ "use strict";var a=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var c=(o,n)=>{for(var i in n)a(o,i,{get:n[i],enumerable:!0})},b=(o,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of l(n))!d.call(o,t)&&t!==i&&a(o,t,{get:()=>n[t],enumerable:!(r=s(n,t))||r.enumerable});return o};var u=o=>b(a({},"__esModule",{value:!0}),o);var f={};c(f,{BaseButtonSchema:()=>p,parseBaseButtonProps:()=>m});module.exports=u(f);var e=require("zod"),p=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();function m(o){return o}
2
2
  //# sourceMappingURL=base-button.schema.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/schemas/base-button.schema.ts"],
4
- "sourcesContent": ["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,sBAAAE,EAAA,yBAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAAkB,eAqBLH,EA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E,eAAgB,IACb,MAAM,CAAC,IAAE,QAAQ,EAAG,IAAE,KAAK,CAAC,OAAQ,OAAQ,WAAY,OAAQ,MAAM,CAAC,CAAC,CAAC,EACzE,SAAS,EACT,SAAS,oBAAoB,EAKhC,gBAAiB,IAAE,OAAO,EAAE,SAAS,EAAE,SAAS,yBAAyB,EAKzE,YAAa,IAAE,OAAO,EAAE,SAAS,EAAE,SAAS,qBAAqB,EAKjE,SAAU,IAAE,OAAO,IAAE,OAAO,EAAG,IAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS,iBAAiB,EAKhF,GAAI,IAAE,OAAO,EAAE,SAAS,EAAE,SAAS,cAAc,EAKjD,MAAO,IAAE,OAAO,EAAE,SAAS,EAAE,SAAS,6BAA6B,EAKnE,KAAM,IAAE,OAAO,EAAE,SAAS,EAAE,SAAS,gBAAgB,EAKrD,SAAU,IAAE,IAAI,EAAE,SAAS,EAAE,SAAS,mBAAmB,CAC3D,CAAC,EACA,OAAO,EAsBH,SAASC,EAAqBG,EAAiC,CAIpE,OAAOA,CACT",
4
+ "sourcesContent": ["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,sBAAAE,EAAA,yBAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAAkB,eAqBLH,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,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AAE,SAAS,mBAAmB,CAC3D,CAAC,EACA,OAAO,EAsBH,SAASC,EAAqBG,EAAiC,CAIpE,OAAOA,CACT",
6
6
  "names": ["base_button_schema_exports", "__export", "BaseButtonSchema", "parseBaseButtonProps", "__toCommonJS", "import_zod", "props"]
7
7
  }
@@ -110,10 +110,6 @@ export declare const ButtonSchema: z.ZodObject<{
110
110
  full: "full";
111
111
  }>>;
112
112
  loading: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
113
- material: z.ZodOptional<z.ZodEnum<{
114
- solid: "solid";
115
- translucent: "translucent";
116
- }>>;
117
113
  flush: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
118
114
  disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
119
115
  type: z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"button.schema.d.ts","sourceRoot":"","sources":["../../../../src/components/schemas/button.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA0Dd,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAK5D"}
1
+ {"version":3,"file":"button.schema.d.ts","sourceRoot":"","sources":["../../../../src/components/schemas/button.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA0Dd,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAK5D"}
@@ -1,2 +1,2 @@
1
- "use strict";var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var c=(o,t)=>{for(var a in t)r(o,a,{get:t[a],enumerable:!0})},b=(o,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of p(t))!u.call(o,i)&&i!==a&&r(o,i,{get:()=>t[i],enumerable:!(s=d(t,i))||s.enumerable});return o};var m=o=>b(r({},"__esModule",{value:!0}),o);var g={};c(g,{ButtonSchema:()=>f,parseButtonProps:()=>h});module.exports=m(g);var n=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 f=l.extend({tooltip:n.z.string().optional().describe("Content to display in the tooltip on hover/focus"),tooltipSide:n.z.enum(["top","right","bottom","left"]).optional().default("top").describe("Side of the button where the tooltip should appear"),emphasis:n.z.enum(["loud","medium","quiet"]).optional().describe("The button's rank: loud (solid), medium (raised) or quiet (ghost). Not with variant."),iconOnly:n.z.boolean().optional().default(!1).describe("Square button holding only an icon; needs aria-label"),fullWidth:n.z.boolean().optional().default(!1).describe("Expands the button to fill its container"),tooltipAlign:n.z.enum(["start","center","end"]).optional().default("center").describe("Alignment of the tooltip relative to the button"),tooltipDelayDuration:n.z.number().optional().describe("Delay before showing the tooltip (in milliseconds)"),tooltipDisableHoverableContent:n.z.boolean().optional().default(!1).describe("Whether to disable hoverable content behavior")}).strict();function h(o){return o}
1
+ "use strict";var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var c=(o,t)=>{for(var a in t)r(o,a,{get:t[a],enumerable:!0})},b=(o,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of p(t))!u.call(o,i)&&i!==a&&r(o,i,{get:()=>t[i],enumerable:!(s=d(t,i))||s.enumerable});return o};var m=o=>b(r({},"__esModule",{value:!0}),o);var g={};c(g,{ButtonSchema:()=>f,parseButtonProps:()=>h});module.exports=m(g);var n=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 f=l.extend({tooltip:n.z.string().optional().describe("Content to display in the tooltip on hover/focus"),tooltipSide:n.z.enum(["top","right","bottom","left"]).optional().default("top").describe("Side of the button where the tooltip should appear"),emphasis:n.z.enum(["loud","medium","quiet"]).optional().describe("The button's rank: loud (solid), medium (raised) or quiet (ghost). Not with variant."),iconOnly:n.z.boolean().optional().default(!1).describe("Square button holding only an icon; needs aria-label"),fullWidth:n.z.boolean().optional().default(!1).describe("Expands the button to fill its container"),tooltipAlign:n.z.enum(["start","center","end"]).optional().default("center").describe("Alignment of the tooltip relative to the button"),tooltipDelayDuration:n.z.number().optional().describe("Delay before showing the tooltip (in milliseconds)"),tooltipDisableHoverableContent:n.z.boolean().optional().default(!1).describe("Whether to disable hoverable content behavior")}).strict();function h(o){return o}
2
2
  //# sourceMappingURL=button.schema.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/schemas/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 * 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,EA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,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,EAyBH,SAASC,EAAiBC,EAA6B,CAI5D,OAAOA,CACT",
4
+ "sourcesContent": ["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,kBAAAE,EAAA,qBAAAC,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,IAAK,IAAK,GAAG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,OAAO,EAAE,SAAS,EAAE,SAAS,6BAA6B,EAKnE,KAAM,IAAE,OAAO,EAAE,SAAS,EAAE,SAAS,gBAAgB,EAKrD,SAAU,IAAE,IAAI,EAAE,SAAS,EAAE,SAAS,mBAAmB,CAC3D,CAAC,EACA,OAAO,EDlPH,IAAMC,EAAeC,EAAiB,OAAO,CAIlD,QAAS,IAAE,OAAO,EAAE,SAAS,EAAE,SAAS,kDAAkD,EAM1F,YAAa,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,EAyBH,SAASC,EAAiBC,EAA6B,CAI5D,OAAOA,CACT",
6
6
  "names": ["button_schema_exports", "__export", "ButtonSchema", "parseButtonProps", "__toCommonJS", "import_zod", "import_zod", "BaseButtonSchema", "ButtonSchema", "BaseButtonSchema", "parseButtonProps", "props"]
7
7
  }
@@ -118,10 +118,6 @@ export declare const IconButtonSchema: z.ZodObject<{
118
118
  full: "full";
119
119
  }>>;
120
120
  loading: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
121
- material: z.ZodOptional<z.ZodEnum<{
122
- solid: "solid";
123
- translucent: "translucent";
124
- }>>;
125
121
  flush: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
126
122
  disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
127
123
  type: z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button.schema.d.ts","sourceRoot":"","sources":["../../../../src/components/schemas/icon-button.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoE3B,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAKpE"}
1
+ {"version":3,"file":"icon-button.schema.d.ts","sourceRoot":"","sources":["../../../../src/components/schemas/icon-button.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoE3B,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAKpE"}