@womp/kookie-ui 0.6.2 → 0.8.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 (1047) hide show
  1. package/components.css +741 -1078
  2. package/dist/cjs/components/_internal/base-button.js +1 -1
  3. package/dist/cjs/components/_internal/base-button.js.map +4 -4
  4. package/dist/cjs/components/_internal/base-button.props.d.ts +2 -7
  5. package/dist/cjs/components/_internal/base-button.props.d.ts.map +1 -1
  6. package/dist/cjs/components/_internal/base-button.props.js +1 -1
  7. package/dist/cjs/components/_internal/base-button.props.js.map +4 -4
  8. package/dist/cjs/components/_internal/base-checkbox.props.d.ts +0 -5
  9. package/dist/cjs/components/_internal/base-checkbox.props.d.ts.map +1 -1
  10. package/dist/cjs/components/_internal/base-checkbox.props.js +1 -1
  11. package/dist/cjs/components/_internal/base-checkbox.props.js.map +4 -4
  12. package/dist/cjs/components/_internal/base-menu.props.d.ts +0 -10
  13. package/dist/cjs/components/_internal/base-menu.props.d.ts.map +1 -1
  14. package/dist/cjs/components/_internal/base-menu.props.js +1 -1
  15. package/dist/cjs/components/_internal/base-menu.props.js.map +4 -4
  16. package/dist/cjs/components/_internal/base-menu.utils.js +1 -1
  17. package/dist/cjs/components/_internal/base-menu.utils.js.map +3 -3
  18. package/dist/cjs/components/_internal/base-radio.props.d.ts +0 -5
  19. package/dist/cjs/components/_internal/base-radio.props.d.ts.map +1 -1
  20. package/dist/cjs/components/_internal/base-radio.props.js +1 -1
  21. package/dist/cjs/components/_internal/base-radio.props.js.map +4 -4
  22. package/dist/cjs/components/_internal/base-tab-list.props.d.ts +0 -5
  23. package/dist/cjs/components/_internal/base-tab-list.props.d.ts.map +1 -1
  24. package/dist/cjs/components/_internal/base-tab-list.props.js +1 -1
  25. package/dist/cjs/components/_internal/base-tab-list.props.js.map +4 -4
  26. package/dist/cjs/components/_internal/menu-context.js +1 -1
  27. package/dist/cjs/components/_internal/menu-context.js.map +3 -3
  28. package/dist/cjs/components/_internal/shell-bottom.d.ts +6 -7
  29. package/dist/cjs/components/_internal/shell-bottom.d.ts.map +1 -1
  30. package/dist/cjs/components/_internal/shell-bottom.js +1 -1
  31. package/dist/cjs/components/_internal/shell-bottom.js.map +4 -4
  32. package/dist/cjs/components/_internal/shell-handles.d.ts +9 -0
  33. package/dist/cjs/components/_internal/shell-handles.d.ts.map +1 -1
  34. package/dist/cjs/components/_internal/shell-handles.js +1 -1
  35. package/dist/cjs/components/_internal/shell-handles.js.map +3 -3
  36. package/dist/cjs/components/_internal/shell-inspector.d.ts +4 -6
  37. package/dist/cjs/components/_internal/shell-inspector.d.ts.map +1 -1
  38. package/dist/cjs/components/_internal/shell-inspector.js +1 -1
  39. package/dist/cjs/components/_internal/shell-inspector.js.map +4 -4
  40. package/dist/cjs/components/_internal/shell-pane.d.ts +70 -0
  41. package/dist/cjs/components/_internal/shell-pane.d.ts.map +1 -0
  42. package/dist/cjs/components/_internal/shell-pane.js +2 -0
  43. package/dist/cjs/components/_internal/shell-pane.js.map +7 -0
  44. package/dist/cjs/components/_internal/shell-resizable.d.ts +48 -0
  45. package/dist/cjs/components/_internal/shell-resizable.d.ts.map +1 -0
  46. package/dist/cjs/components/_internal/shell-resizable.js +2 -0
  47. package/dist/cjs/components/_internal/shell-resizable.js.map +7 -0
  48. package/dist/cjs/components/_internal/shell-resize.d.ts +11 -3
  49. package/dist/cjs/components/_internal/shell-resize.d.ts.map +1 -1
  50. package/dist/cjs/components/_internal/shell-resize.js +1 -1
  51. package/dist/cjs/components/_internal/shell-resize.js.map +2 -2
  52. package/dist/cjs/components/_internal/shell-rest.d.ts +27 -0
  53. package/dist/cjs/components/_internal/shell-rest.d.ts.map +1 -0
  54. package/dist/cjs/components/_internal/shell-rest.js +2 -0
  55. package/dist/cjs/components/_internal/shell-rest.js.map +7 -0
  56. package/dist/cjs/components/_internal/shell-sidebar.d.ts +7 -12
  57. package/dist/cjs/components/_internal/shell-sidebar.d.ts.map +1 -1
  58. package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
  59. package/dist/cjs/components/_internal/shell-sidebar.js.map +4 -4
  60. package/dist/cjs/components/_internal/shell-store.d.ts +99 -0
  61. package/dist/cjs/components/_internal/shell-store.d.ts.map +1 -0
  62. package/dist/cjs/components/_internal/shell-store.js +2 -0
  63. package/dist/cjs/components/_internal/shell-store.js.map +7 -0
  64. package/dist/cjs/components/accordion.js +1 -1
  65. package/dist/cjs/components/accordion.js.map +4 -4
  66. package/dist/cjs/components/accordion.props.d.ts +0 -6
  67. package/dist/cjs/components/accordion.props.d.ts.map +1 -1
  68. package/dist/cjs/components/accordion.props.js +1 -1
  69. package/dist/cjs/components/accordion.props.js.map +4 -4
  70. package/dist/cjs/components/alert-dialog.js +1 -1
  71. package/dist/cjs/components/alert-dialog.js.map +4 -4
  72. package/dist/cjs/components/avatar.js +1 -1
  73. package/dist/cjs/components/avatar.js.map +4 -4
  74. package/dist/cjs/components/avatar.props.d.ts +0 -5
  75. package/dist/cjs/components/avatar.props.d.ts.map +1 -1
  76. package/dist/cjs/components/avatar.props.js +1 -1
  77. package/dist/cjs/components/avatar.props.js.map +4 -4
  78. package/dist/cjs/components/badge.js +1 -1
  79. package/dist/cjs/components/badge.js.map +4 -4
  80. package/dist/cjs/components/badge.props.d.ts +0 -5
  81. package/dist/cjs/components/badge.props.d.ts.map +1 -1
  82. package/dist/cjs/components/badge.props.js +1 -1
  83. package/dist/cjs/components/badge.props.js.map +4 -4
  84. package/dist/cjs/components/blockquote.js +1 -1
  85. package/dist/cjs/components/blockquote.js.map +4 -4
  86. package/dist/cjs/components/blockquote.props.d.ts +3 -2
  87. package/dist/cjs/components/blockquote.props.d.ts.map +1 -1
  88. package/dist/cjs/components/blockquote.props.js +1 -1
  89. package/dist/cjs/components/blockquote.props.js.map +4 -4
  90. package/dist/cjs/components/button.js +1 -1
  91. package/dist/cjs/components/button.js.map +4 -4
  92. package/dist/cjs/components/button.props.js +1 -1
  93. package/dist/cjs/components/button.props.js.map +4 -4
  94. package/dist/cjs/components/callout.js +1 -1
  95. package/dist/cjs/components/callout.js.map +4 -4
  96. package/dist/cjs/components/callout.props.d.ts +0 -5
  97. package/dist/cjs/components/callout.props.d.ts.map +1 -1
  98. package/dist/cjs/components/callout.props.js +1 -1
  99. package/dist/cjs/components/callout.props.js.map +4 -4
  100. package/dist/cjs/components/chatbar.d.ts.map +1 -1
  101. package/dist/cjs/components/chatbar.js +2 -2
  102. package/dist/cjs/components/chatbar.js.map +4 -4
  103. package/dist/cjs/components/checkbox-cards.d.ts.map +1 -1
  104. package/dist/cjs/components/checkbox-cards.js +1 -1
  105. package/dist/cjs/components/checkbox-cards.js.map +4 -4
  106. package/dist/cjs/components/checkbox-cards.props.d.ts +0 -5
  107. package/dist/cjs/components/checkbox-cards.props.d.ts.map +1 -1
  108. package/dist/cjs/components/checkbox-cards.props.js +1 -1
  109. package/dist/cjs/components/checkbox-cards.props.js.map +4 -4
  110. package/dist/cjs/components/checkbox-group.d.ts.map +1 -1
  111. package/dist/cjs/components/checkbox-group.js +1 -1
  112. package/dist/cjs/components/checkbox-group.js.map +4 -4
  113. package/dist/cjs/components/checkbox-group.props.d.ts +0 -5
  114. package/dist/cjs/components/checkbox-group.props.d.ts.map +1 -1
  115. package/dist/cjs/components/checkbox-group.props.js +1 -1
  116. package/dist/cjs/components/checkbox-group.props.js.map +4 -4
  117. package/dist/cjs/components/checkbox.js +1 -1
  118. package/dist/cjs/components/checkbox.js.map +4 -4
  119. package/dist/cjs/components/checkbox.props.js +1 -1
  120. package/dist/cjs/components/checkbox.props.js.map +4 -4
  121. package/dist/cjs/components/code.js +1 -1
  122. package/dist/cjs/components/code.js.map +4 -4
  123. package/dist/cjs/components/code.props.d.ts +3 -2
  124. package/dist/cjs/components/code.props.d.ts.map +1 -1
  125. package/dist/cjs/components/code.props.js +1 -1
  126. package/dist/cjs/components/code.props.js.map +4 -4
  127. package/dist/cjs/components/combobox.d.ts.map +1 -1
  128. package/dist/cjs/components/combobox.js +1 -1
  129. package/dist/cjs/components/combobox.js.map +4 -4
  130. package/dist/cjs/components/combobox.props.d.ts +1 -11
  131. package/dist/cjs/components/combobox.props.d.ts.map +1 -1
  132. package/dist/cjs/components/combobox.props.js +1 -1
  133. package/dist/cjs/components/combobox.props.js.map +4 -4
  134. package/dist/cjs/components/context-menu.d.ts.map +1 -1
  135. package/dist/cjs/components/context-menu.js +1 -1
  136. package/dist/cjs/components/context-menu.js.map +4 -4
  137. package/dist/cjs/components/context-menu.props.js +1 -1
  138. package/dist/cjs/components/context-menu.props.js.map +4 -4
  139. package/dist/cjs/components/data-list.js +1 -1
  140. package/dist/cjs/components/data-list.js.map +4 -4
  141. package/dist/cjs/components/data-list.props.d.ts +4 -3
  142. package/dist/cjs/components/data-list.props.d.ts.map +1 -1
  143. package/dist/cjs/components/data-list.props.js +1 -1
  144. package/dist/cjs/components/data-list.props.js.map +4 -4
  145. package/dist/cjs/components/dialog.js +1 -1
  146. package/dist/cjs/components/dialog.js.map +4 -4
  147. package/dist/cjs/components/dropdown-menu.d.ts.map +1 -1
  148. package/dist/cjs/components/dropdown-menu.js +1 -1
  149. package/dist/cjs/components/dropdown-menu.js.map +4 -4
  150. package/dist/cjs/components/dropdown-menu.props.js +1 -1
  151. package/dist/cjs/components/dropdown-menu.props.js.map +4 -4
  152. package/dist/cjs/components/heading.js +1 -1
  153. package/dist/cjs/components/heading.js.map +4 -4
  154. package/dist/cjs/components/heading.props.d.ts +3 -2
  155. package/dist/cjs/components/heading.props.d.ts.map +1 -1
  156. package/dist/cjs/components/heading.props.js +1 -1
  157. package/dist/cjs/components/heading.props.js.map +4 -4
  158. package/dist/cjs/components/hover-card.js.map +1 -1
  159. package/dist/cjs/components/icon-button.js +2 -2
  160. package/dist/cjs/components/icon-button.js.map +4 -4
  161. package/dist/cjs/components/icon-button.props.js +1 -1
  162. package/dist/cjs/components/icon-button.props.js.map +4 -4
  163. package/dist/cjs/components/index.js +5 -5
  164. package/dist/cjs/components/index.js.map +4 -4
  165. package/dist/cjs/components/link.js +1 -1
  166. package/dist/cjs/components/link.js.map +4 -4
  167. package/dist/cjs/components/link.props.d.ts +0 -5
  168. package/dist/cjs/components/link.props.d.ts.map +1 -1
  169. package/dist/cjs/components/link.props.js +1 -1
  170. package/dist/cjs/components/link.props.js.map +4 -4
  171. package/dist/cjs/components/popover.js.map +1 -1
  172. package/dist/cjs/components/progress.js +1 -1
  173. package/dist/cjs/components/progress.js.map +4 -4
  174. package/dist/cjs/components/progress.props.d.ts +0 -5
  175. package/dist/cjs/components/progress.props.d.ts.map +1 -1
  176. package/dist/cjs/components/progress.props.js +1 -1
  177. package/dist/cjs/components/progress.props.js.map +4 -4
  178. package/dist/cjs/components/radio-cards.js +1 -1
  179. package/dist/cjs/components/radio-cards.js.map +4 -4
  180. package/dist/cjs/components/radio-cards.props.d.ts +0 -5
  181. package/dist/cjs/components/radio-cards.props.d.ts.map +1 -1
  182. package/dist/cjs/components/radio-cards.props.js +1 -1
  183. package/dist/cjs/components/radio-cards.props.js.map +4 -4
  184. package/dist/cjs/components/radio-group.d.ts.map +1 -1
  185. package/dist/cjs/components/radio-group.js +1 -1
  186. package/dist/cjs/components/radio-group.js.map +4 -4
  187. package/dist/cjs/components/radio-group.props.d.ts +0 -5
  188. package/dist/cjs/components/radio-group.props.d.ts.map +1 -1
  189. package/dist/cjs/components/radio-group.props.js +1 -1
  190. package/dist/cjs/components/radio-group.props.js.map +4 -4
  191. package/dist/cjs/components/radio.js +1 -1
  192. package/dist/cjs/components/radio.js.map +4 -4
  193. package/dist/cjs/components/radio.props.js +1 -1
  194. package/dist/cjs/components/radio.props.js.map +4 -4
  195. package/dist/cjs/components/schemas/base-button.schema.d.ts +0 -1
  196. package/dist/cjs/components/schemas/base-button.schema.d.ts.map +1 -1
  197. package/dist/cjs/components/schemas/base-button.schema.js +1 -1
  198. package/dist/cjs/components/schemas/base-button.schema.js.map +2 -2
  199. package/dist/cjs/components/schemas/button.schema.d.ts +0 -1
  200. package/dist/cjs/components/schemas/button.schema.d.ts.map +1 -1
  201. package/dist/cjs/components/schemas/button.schema.js +1 -1
  202. package/dist/cjs/components/schemas/button.schema.js.map +2 -2
  203. package/dist/cjs/components/schemas/icon-button.schema.d.ts +0 -1
  204. package/dist/cjs/components/schemas/icon-button.schema.d.ts.map +1 -1
  205. package/dist/cjs/components/schemas/icon-button.schema.js +1 -1
  206. package/dist/cjs/components/schemas/icon-button.schema.js.map +2 -2
  207. package/dist/cjs/components/schemas/index.js +1 -1
  208. package/dist/cjs/components/schemas/index.js.map +3 -3
  209. package/dist/cjs/components/schemas/shell.schema.d.ts +277 -229
  210. package/dist/cjs/components/schemas/shell.schema.d.ts.map +1 -1
  211. package/dist/cjs/components/schemas/shell.schema.js +1 -1
  212. package/dist/cjs/components/schemas/shell.schema.js.map +3 -3
  213. package/dist/cjs/components/schemas/toggle-button.schema.d.ts +0 -1
  214. package/dist/cjs/components/schemas/toggle-button.schema.d.ts.map +1 -1
  215. package/dist/cjs/components/schemas/toggle-button.schema.js +1 -1
  216. package/dist/cjs/components/schemas/toggle-button.schema.js.map +2 -2
  217. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts +0 -1
  218. package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  219. package/dist/cjs/components/schemas/toggle-icon-button.schema.js +1 -1
  220. package/dist/cjs/components/schemas/toggle-icon-button.schema.js.map +2 -2
  221. package/dist/cjs/components/select.js +1 -1
  222. package/dist/cjs/components/select.js.map +4 -4
  223. package/dist/cjs/components/select.props.d.ts +0 -5
  224. package/dist/cjs/components/select.props.d.ts.map +1 -1
  225. package/dist/cjs/components/select.props.js +1 -1
  226. package/dist/cjs/components/select.props.js.map +4 -4
  227. package/dist/cjs/components/separator.js.map +1 -1
  228. package/dist/cjs/components/separator.props.js.map +1 -1
  229. package/dist/cjs/components/sheet.js +1 -1
  230. package/dist/cjs/components/sheet.js.map +4 -4
  231. package/dist/cjs/components/shell.context.d.ts +25 -114
  232. package/dist/cjs/components/shell.context.d.ts.map +1 -1
  233. package/dist/cjs/components/shell.context.js +1 -1
  234. package/dist/cjs/components/shell.context.js.map +4 -4
  235. package/dist/cjs/components/shell.d.ts +42 -21
  236. package/dist/cjs/components/shell.d.ts.map +1 -1
  237. package/dist/cjs/components/shell.hooks.d.ts +7 -23
  238. package/dist/cjs/components/shell.hooks.d.ts.map +1 -1
  239. package/dist/cjs/components/shell.hooks.js +1 -1
  240. package/dist/cjs/components/shell.hooks.js.map +4 -4
  241. package/dist/cjs/components/shell.js +1 -1
  242. package/dist/cjs/components/shell.js.map +4 -4
  243. package/dist/cjs/components/shell.types.d.ts +19 -2
  244. package/dist/cjs/components/shell.types.d.ts.map +1 -1
  245. package/dist/cjs/components/shell.types.js +1 -1
  246. package/dist/cjs/components/shell.types.js.map +3 -3
  247. package/dist/cjs/components/sidebar.d.ts +0 -1
  248. package/dist/cjs/components/sidebar.d.ts.map +1 -1
  249. package/dist/cjs/components/sidebar.js +1 -1
  250. package/dist/cjs/components/sidebar.js.map +4 -4
  251. package/dist/cjs/components/sidebar.props.d.ts +0 -5
  252. package/dist/cjs/components/sidebar.props.d.ts.map +1 -1
  253. package/dist/cjs/components/sidebar.props.js +1 -1
  254. package/dist/cjs/components/sidebar.props.js.map +4 -4
  255. package/dist/cjs/components/slider.js +1 -1
  256. package/dist/cjs/components/slider.js.map +4 -4
  257. package/dist/cjs/components/slider.props.d.ts +0 -5
  258. package/dist/cjs/components/slider.props.d.ts.map +1 -1
  259. package/dist/cjs/components/slider.props.js +1 -1
  260. package/dist/cjs/components/slider.props.js.map +4 -4
  261. package/dist/cjs/components/switch.d.ts.map +1 -1
  262. package/dist/cjs/components/switch.js +1 -1
  263. package/dist/cjs/components/switch.js.map +4 -4
  264. package/dist/cjs/components/switch.props.d.ts +0 -5
  265. package/dist/cjs/components/switch.props.d.ts.map +1 -1
  266. package/dist/cjs/components/switch.props.js +1 -1
  267. package/dist/cjs/components/switch.props.js.map +4 -4
  268. package/dist/cjs/components/tab-nav.js +1 -1
  269. package/dist/cjs/components/tab-nav.js.map +4 -4
  270. package/dist/cjs/components/tab-nav.props.js +1 -1
  271. package/dist/cjs/components/tab-nav.props.js.map +4 -4
  272. package/dist/cjs/components/tabs.js +1 -1
  273. package/dist/cjs/components/tabs.js.map +4 -4
  274. package/dist/cjs/components/tabs.props.js +1 -1
  275. package/dist/cjs/components/tabs.props.js.map +4 -4
  276. package/dist/cjs/components/text-area.js.map +1 -1
  277. package/dist/cjs/components/text-area.props.js.map +1 -1
  278. package/dist/cjs/components/text-field.js.map +1 -1
  279. package/dist/cjs/components/text-field.props.js.map +1 -1
  280. package/dist/cjs/components/text.js +1 -1
  281. package/dist/cjs/components/text.js.map +4 -4
  282. package/dist/cjs/components/text.props.d.ts +3 -2
  283. package/dist/cjs/components/text.props.d.ts.map +1 -1
  284. package/dist/cjs/components/text.props.js +1 -1
  285. package/dist/cjs/components/text.props.js.map +4 -4
  286. package/dist/cjs/components/theme-panel.js +3 -3
  287. package/dist/cjs/components/theme-panel.js.map +4 -4
  288. package/dist/cjs/components/theme.js.map +1 -1
  289. package/dist/cjs/components/theme.props.js.map +1 -1
  290. package/dist/cjs/components/toggle-button.js +2 -2
  291. package/dist/cjs/components/toggle-button.js.map +4 -4
  292. package/dist/cjs/components/toggle-icon-button.js +3 -3
  293. package/dist/cjs/components/toggle-icon-button.js.map +4 -4
  294. package/dist/cjs/components/toolbar.js +1 -1
  295. package/dist/cjs/components/toolbar.js.map +4 -4
  296. package/dist/cjs/components/tooltip.js +1 -1
  297. package/dist/cjs/components/tooltip.js.map +4 -4
  298. package/dist/cjs/components/user-card.d.ts.map +1 -1
  299. package/dist/cjs/components/user-card.js +1 -1
  300. package/dist/cjs/components/user-card.js.map +4 -4
  301. package/dist/cjs/components/user-card.props.d.ts +0 -5
  302. package/dist/cjs/components/user-card.props.d.ts.map +1 -1
  303. package/dist/cjs/components/user-card.props.js +1 -1
  304. package/dist/cjs/components/user-card.props.js.map +4 -4
  305. package/dist/cjs/components/virtual-menu.js.map +1 -1
  306. package/dist/cjs/hooks/use-breakpoint.d.ts +5 -0
  307. package/dist/cjs/hooks/use-breakpoint.d.ts.map +1 -1
  308. package/dist/cjs/hooks/use-breakpoint.js +1 -1
  309. package/dist/cjs/hooks/use-breakpoint.js.map +3 -3
  310. package/dist/cjs/index.js +5 -5
  311. package/dist/cjs/index.js.map +4 -4
  312. package/dist/cjs/props/color.prop.js.map +1 -1
  313. package/dist/cjs/props/emphasis.prop.d.ts +11 -0
  314. package/dist/cjs/props/emphasis.prop.d.ts.map +1 -0
  315. package/dist/cjs/props/emphasis.prop.js +2 -0
  316. package/dist/cjs/props/emphasis.prop.js.map +7 -0
  317. package/dist/cjs/props/index.d.ts +1 -1
  318. package/dist/cjs/props/index.d.ts.map +1 -1
  319. package/dist/cjs/props/index.js +1 -1
  320. package/dist/cjs/props/index.js.map +4 -4
  321. package/dist/esm/{chunk-MBCBP73P.js → chunk-25X75TI7.js} +2 -2
  322. package/dist/esm/chunk-26I257HE.js +2 -0
  323. package/dist/esm/chunk-26I257HE.js.map +7 -0
  324. package/dist/esm/chunk-2CMM7MEL.js +2 -0
  325. package/dist/esm/chunk-2CMM7MEL.js.map +7 -0
  326. package/dist/esm/chunk-2EQWBT2S.js +2 -0
  327. package/dist/esm/chunk-2EQWBT2S.js.map +7 -0
  328. package/dist/esm/{chunk-GLERJXVS.js → chunk-2Q7BJ7YG.js} +2 -2
  329. package/dist/esm/chunk-3AOFY2B4.js +2 -0
  330. package/dist/esm/chunk-3AOFY2B4.js.map +7 -0
  331. package/dist/esm/chunk-3J6AUDID.js +2 -0
  332. package/dist/esm/chunk-3J6AUDID.js.map +7 -0
  333. package/dist/esm/chunk-3KSGRY6I.js +2 -0
  334. package/dist/esm/chunk-3KSGRY6I.js.map +7 -0
  335. package/dist/esm/chunk-3PTSRBVY.js +2 -0
  336. package/dist/esm/{chunk-SZTZ2XLI.js.map → chunk-3PTSRBVY.js.map} +2 -2
  337. package/dist/esm/chunk-3XSB7YIM.js +2 -0
  338. package/dist/esm/{chunk-FMBECDL4.js.map → chunk-3XSB7YIM.js.map} +3 -3
  339. package/dist/esm/{chunk-FIB3XATL.js → chunk-44JZYS7A.js} +3 -3
  340. package/dist/esm/{chunk-FIB3XATL.js.map → chunk-44JZYS7A.js.map} +2 -2
  341. package/dist/esm/{chunk-CTA5ODAO.js → chunk-4WU2WKUJ.js} +2 -2
  342. package/dist/esm/chunk-4WVNMGI5.js +2 -0
  343. package/dist/esm/chunk-4WVNMGI5.js.map +7 -0
  344. package/dist/esm/chunk-5M7STAH3.js +2 -0
  345. package/dist/esm/chunk-5M7STAH3.js.map +7 -0
  346. package/dist/esm/chunk-5SNHUVDA.js +2 -0
  347. package/dist/esm/{chunk-H7ST535H.js → chunk-5TAHT6VC.js} +2 -2
  348. package/dist/esm/chunk-5XV4QEP5.js +2 -0
  349. package/dist/esm/chunk-5XV4QEP5.js.map +7 -0
  350. package/dist/esm/chunk-667BKCUG.js +2 -0
  351. package/dist/esm/chunk-667BKCUG.js.map +7 -0
  352. package/dist/esm/{chunk-MHPPVJDB.js → chunk-67MKPTZJ.js} +2 -2
  353. package/dist/esm/{chunk-UFI53QUC.js → chunk-6J6YX2VX.js} +2 -2
  354. package/dist/esm/chunk-7FKKGUHK.js +2 -0
  355. package/dist/esm/chunk-7FKKGUHK.js.map +7 -0
  356. package/dist/esm/{chunk-UUUZXUIP.js → chunk-7NYODT3Z.js} +2 -2
  357. package/dist/esm/{chunk-NVDXXGVW.js → chunk-7PMMYHZV.js} +2 -2
  358. package/dist/esm/chunk-A2XVR7GL.js +2 -0
  359. package/dist/esm/chunk-A2XVR7GL.js.map +7 -0
  360. package/dist/esm/chunk-ADXZNG4F.js +2 -0
  361. package/dist/esm/chunk-ADXZNG4F.js.map +7 -0
  362. package/dist/esm/chunk-AF6XKU3W.js +2 -0
  363. package/dist/esm/chunk-AF6XKU3W.js.map +7 -0
  364. package/dist/esm/chunk-AGNIFHOE.js +2 -0
  365. package/dist/esm/chunk-AGNIFHOE.js.map +7 -0
  366. package/dist/esm/chunk-AIHQ3MVK.js +2 -0
  367. package/dist/esm/{chunk-SO67YEVQ.js.map → chunk-AIHQ3MVK.js.map} +2 -2
  368. package/dist/esm/{chunk-UBOOUDS4.js → chunk-AO32NT75.js} +2 -2
  369. package/dist/esm/chunk-BZZXXZ3O.js +2 -0
  370. package/dist/esm/chunk-BZZXXZ3O.js.map +7 -0
  371. package/dist/esm/{chunk-JDGJSNWT.js → chunk-C5RVO3C3.js} +2 -2
  372. package/dist/esm/{chunk-IHK3H2OM.js → chunk-CBNTPHYK.js} +2 -2
  373. package/dist/esm/chunk-CFNESRYI.js +2 -0
  374. package/dist/esm/chunk-CFNESRYI.js.map +7 -0
  375. package/dist/esm/{chunk-SESAEJ6W.js → chunk-CLMOWP5T.js} +2 -2
  376. package/dist/esm/{chunk-BBJUB52V.js → chunk-CRBOJ7N7.js} +2 -2
  377. package/dist/esm/{chunk-DUHJVT64.js → chunk-CRSHBENJ.js} +2 -2
  378. package/dist/esm/{chunk-56TS6OKQ.js → chunk-DCIQHXAR.js} +2 -2
  379. package/dist/esm/chunk-EBQZ3Z22.js +2 -0
  380. package/dist/esm/chunk-EBQZ3Z22.js.map +7 -0
  381. package/dist/esm/chunk-EDKQURDU.js +2 -0
  382. package/dist/esm/chunk-EDKQURDU.js.map +7 -0
  383. package/dist/esm/{chunk-43A5GUSI.js → chunk-EHBAK3LQ.js} +2 -2
  384. package/dist/esm/{chunk-2TIADHPD.js → chunk-F3AXE27Q.js} +2 -2
  385. package/dist/esm/chunk-F6V7GBNQ.js +2 -0
  386. package/dist/esm/chunk-F6V7GBNQ.js.map +7 -0
  387. package/dist/esm/{chunk-VA4CTVQL.js → chunk-FB3PD4Z3.js} +2 -2
  388. package/dist/esm/{chunk-OYF6YXH7.js → chunk-FEAOFF77.js} +2 -2
  389. package/dist/esm/chunk-G4YKBAZT.js +2 -0
  390. package/dist/esm/{chunk-666GX7O5.js.map → chunk-G4YKBAZT.js.map} +2 -2
  391. package/dist/esm/{chunk-ADBLURLJ.js → chunk-GDAKJS64.js} +2 -2
  392. package/dist/esm/{chunk-IEWCQU2S.js → chunk-GGSJXOKR.js} +2 -2
  393. package/dist/esm/chunk-GM7KMQDI.js +2 -0
  394. package/dist/esm/chunk-GMHA5CFH.js +2 -0
  395. package/dist/esm/chunk-GMHA5CFH.js.map +7 -0
  396. package/dist/esm/{chunk-HBR42MIX.js → chunk-H4GR4262.js} +2 -2
  397. package/dist/esm/chunk-HBIF43PT.js +2 -0
  398. package/dist/esm/chunk-HBIF43PT.js.map +7 -0
  399. package/dist/esm/chunk-HCNO7PX6.js +2 -0
  400. package/dist/esm/chunk-HCNO7PX6.js.map +7 -0
  401. package/dist/esm/chunk-HMSSFU6I.js +2 -0
  402. package/dist/esm/{chunk-UIRSGVJG.js.map → chunk-HMSSFU6I.js.map} +2 -2
  403. package/dist/esm/chunk-HWQ3NTJP.js +2 -0
  404. package/dist/esm/chunk-HWQ3NTJP.js.map +7 -0
  405. package/dist/esm/{chunk-S5C5YRBS.js → chunk-IDUVJJYG.js} +2 -2
  406. package/dist/esm/{chunk-P7IAHW4V.js → chunk-IK3MQHA5.js} +2 -2
  407. package/dist/esm/{chunk-SPIU5JYC.js → chunk-JDEBKA56.js} +2 -2
  408. package/dist/esm/{chunk-E67CIG6A.js → chunk-JDWCQ2XP.js} +2 -2
  409. package/dist/esm/chunk-JFWMAYEH.js +2 -0
  410. package/dist/esm/chunk-JFWMAYEH.js.map +7 -0
  411. package/dist/esm/chunk-JQSZF3E2.js +2 -0
  412. package/dist/esm/chunk-JQSZF3E2.js.map +7 -0
  413. package/dist/esm/{chunk-JBO5YOUM.js → chunk-JQW4XYBS.js} +2 -2
  414. package/dist/esm/{chunk-P5OSU4NX.js → chunk-JRFZ535T.js} +2 -2
  415. package/dist/esm/{chunk-GYBLXQ4R.js → chunk-KEEPKI2X.js} +2 -2
  416. package/dist/esm/{chunk-WXP6MMUB.js → chunk-KOFEFBB3.js} +2 -2
  417. package/dist/esm/{chunk-YMUGKYGW.js → chunk-KV4SZP3F.js} +2 -2
  418. package/dist/esm/chunk-KZYFTDGO.js +2 -0
  419. package/dist/esm/chunk-KZYFTDGO.js.map +7 -0
  420. package/dist/esm/{chunk-FG7XM7KJ.js → chunk-LJCUPAOI.js} +2 -2
  421. package/dist/esm/{chunk-MBE2YSBU.js → chunk-MBCQA7UZ.js} +2 -2
  422. package/dist/esm/chunk-MM5IHQFM.js +2 -0
  423. package/dist/esm/{chunk-YVBCDTTD.js → chunk-MN3XALXD.js} +2 -2
  424. package/dist/esm/chunk-NIIEIZKQ.js +2 -0
  425. package/dist/esm/chunk-NIIEIZKQ.js.map +7 -0
  426. package/dist/esm/{chunk-3R7XMRV5.js → chunk-NQXRWBQM.js} +2 -2
  427. package/dist/esm/{chunk-CSKZZOI2.js → chunk-NTNMJX5M.js} +2 -2
  428. package/dist/esm/chunk-NV3P2CKH.js +2 -0
  429. package/dist/esm/chunk-NV3P2CKH.js.map +7 -0
  430. package/dist/esm/{chunk-4ME6O27S.js → chunk-O4CSXNST.js} +2 -2
  431. package/dist/esm/chunk-ODCVOXEV.js +2 -0
  432. package/dist/esm/{chunk-DMJJM5IS.js → chunk-OEEF6KJG.js} +2 -2
  433. package/dist/esm/chunk-OGVKSYLL.js +2 -0
  434. package/dist/esm/chunk-OGVKSYLL.js.map +7 -0
  435. package/dist/esm/{chunk-ABSKRHVM.js → chunk-OJSOX3AX.js} +2 -2
  436. package/dist/esm/chunk-OJU5GCDZ.js +2 -0
  437. package/dist/esm/chunk-OJU5GCDZ.js.map +7 -0
  438. package/dist/esm/{chunk-JGLAE5G7.js → chunk-OQU2SKLN.js} +2 -2
  439. package/dist/esm/chunk-OTKQN2KY.js +2 -0
  440. package/dist/esm/chunk-OTKQN2KY.js.map +7 -0
  441. package/dist/esm/{chunk-UWT6TE5D.js → chunk-OTXCKEWT.js} +2 -2
  442. package/dist/esm/chunk-OWMA6GTG.js +2 -0
  443. package/dist/esm/chunk-OWMA6GTG.js.map +7 -0
  444. package/dist/esm/{chunk-LAOMR7SE.js → chunk-P27KV2LS.js} +2 -2
  445. package/dist/esm/{chunk-LAOMR7SE.js.map → chunk-P27KV2LS.js.map} +3 -3
  446. package/dist/esm/{chunk-JUY7CBSL.js → chunk-PBFSBHBS.js} +2 -2
  447. package/dist/esm/{chunk-L6PVH3RM.js → chunk-PDUHBDFC.js} +2 -2
  448. package/dist/esm/{chunk-HW324FK3.js → chunk-POG3YABW.js} +2 -2
  449. package/dist/esm/chunk-PYHEBG5I.js +2 -0
  450. package/dist/esm/chunk-PYHEBG5I.js.map +7 -0
  451. package/dist/esm/{chunk-TOOSHJOA.js → chunk-PYXMGEO7.js} +2 -2
  452. package/dist/esm/{chunk-T4UHUQFJ.js → chunk-QEGEUD4D.js} +2 -2
  453. package/dist/esm/chunk-QEL55MLF.js +2 -0
  454. package/dist/esm/chunk-QFPHEY77.js +2 -0
  455. package/dist/esm/chunk-QFPHEY77.js.map +7 -0
  456. package/dist/esm/{chunk-F7IYL2VW.js → chunk-QJVAS7AK.js} +2 -2
  457. package/dist/esm/chunk-QQ62LO3X.js +2 -0
  458. package/dist/esm/chunk-QQ62LO3X.js.map +7 -0
  459. package/dist/esm/chunk-RDAMYQFF.js +2 -0
  460. package/dist/esm/chunk-RDAMYQFF.js.map +7 -0
  461. package/dist/esm/chunk-ROSWI2CL.js +2 -0
  462. package/dist/esm/chunk-ROSWI2CL.js.map +7 -0
  463. package/dist/esm/chunk-RY67WG3O.js +2 -0
  464. package/dist/esm/chunk-RY67WG3O.js.map +7 -0
  465. package/dist/esm/{chunk-DXL6V2A5.js → chunk-SEY4NA45.js} +2 -2
  466. package/dist/esm/{chunk-TS623UPD.js → chunk-TLGXIWAS.js} +2 -2
  467. package/dist/esm/{chunk-6FLLFCBU.js → chunk-UBSLEGQZ.js} +2 -2
  468. package/dist/esm/{chunk-37OGSEQR.js → chunk-UNWPH3SO.js} +2 -2
  469. package/dist/esm/chunk-V5ZSDDVZ.js +2 -0
  470. package/dist/esm/chunk-V5ZSDDVZ.js.map +7 -0
  471. package/dist/esm/chunk-VLTXI4A7.js +2 -0
  472. package/dist/esm/chunk-VLTXI4A7.js.map +7 -0
  473. package/dist/esm/{chunk-HIKVMKYQ.js → chunk-VTIL55SR.js} +2 -2
  474. package/dist/esm/{chunk-CQNPBTM5.js → chunk-W2LD2YE6.js} +2 -2
  475. package/dist/esm/chunk-WGWUEU4K.js +2 -0
  476. package/dist/esm/chunk-WGWUEU4K.js.map +7 -0
  477. package/dist/esm/{chunk-NMKPFUNP.js → chunk-WIDJYVZF.js} +2 -2
  478. package/dist/esm/{chunk-3OBXZUFJ.js → chunk-WJBOOAIO.js} +2 -2
  479. package/dist/esm/chunk-WMGIFPI2.js +2 -0
  480. package/dist/esm/chunk-WMGIFPI2.js.map +7 -0
  481. package/dist/esm/{chunk-7FC7HF76.js → chunk-WQCB7KSH.js} +2 -2
  482. package/dist/esm/{chunk-OWAUCLRT.js → chunk-WZFVTC7P.js} +2 -2
  483. package/dist/esm/chunk-XDDKT4NF.js +2 -0
  484. package/dist/esm/{chunk-DX5JJYMZ.js → chunk-XYVLQDGR.js} +2 -2
  485. package/dist/esm/{chunk-KFA53SVQ.js → chunk-YA5DF67M.js} +2 -2
  486. package/dist/esm/chunk-YA5DF67M.js.map +7 -0
  487. package/dist/esm/chunk-YAQBIO2B.js +2 -0
  488. package/dist/esm/chunk-YAQBIO2B.js.map +7 -0
  489. package/dist/esm/{chunk-VNPNEJI6.js → chunk-YG66IRW4.js} +2 -2
  490. package/dist/esm/chunk-YVSM2LGS.js +2 -0
  491. package/dist/esm/chunk-YVSM2LGS.js.map +7 -0
  492. package/dist/esm/chunk-Z7AZNMNX.js +2 -0
  493. package/dist/esm/chunk-Z7AZNMNX.js.map +7 -0
  494. package/dist/esm/chunk-ZJ33QP5N.js +2 -0
  495. package/dist/esm/{chunk-66ZLZAAJ.js → chunk-ZNK6AH2G.js} +1 -1
  496. package/dist/esm/{chunk-66ZLZAAJ.js.map → chunk-ZNK6AH2G.js.map} +1 -1
  497. package/dist/esm/{chunk-KPBG7CIL.js → chunk-ZO7TTWJI.js} +2 -2
  498. package/dist/esm/{chunk-OGXZHAQL.js → chunk-ZW26J2SA.js} +2 -2
  499. package/dist/esm/chunk-ZWZGUBL4.js +2 -0
  500. package/dist/esm/chunk-ZWZGUBL4.js.map +7 -0
  501. package/dist/esm/components/_internal/base-button.js +1 -1
  502. package/dist/esm/components/_internal/base-button.props.d.ts +2 -7
  503. package/dist/esm/components/_internal/base-button.props.d.ts.map +1 -1
  504. package/dist/esm/components/_internal/base-button.props.js +1 -1
  505. package/dist/esm/components/_internal/base-checkbox.props.d.ts +0 -5
  506. package/dist/esm/components/_internal/base-checkbox.props.d.ts.map +1 -1
  507. package/dist/esm/components/_internal/base-checkbox.props.js +1 -1
  508. package/dist/esm/components/_internal/base-menu.props.d.ts +0 -10
  509. package/dist/esm/components/_internal/base-menu.props.d.ts.map +1 -1
  510. package/dist/esm/components/_internal/base-menu.props.js +1 -1
  511. package/dist/esm/components/_internal/base-menu.utils.js +1 -1
  512. package/dist/esm/components/_internal/base-radio.props.d.ts +0 -5
  513. package/dist/esm/components/_internal/base-radio.props.d.ts.map +1 -1
  514. package/dist/esm/components/_internal/base-radio.props.js +1 -1
  515. package/dist/esm/components/_internal/base-tab-list.props.d.ts +0 -5
  516. package/dist/esm/components/_internal/base-tab-list.props.d.ts.map +1 -1
  517. package/dist/esm/components/_internal/base-tab-list.props.js +1 -1
  518. package/dist/esm/components/_internal/menu-context.js +1 -1
  519. package/dist/esm/components/_internal/shell-bottom.d.ts +6 -7
  520. package/dist/esm/components/_internal/shell-bottom.d.ts.map +1 -1
  521. package/dist/esm/components/_internal/shell-bottom.js +1 -1
  522. package/dist/esm/components/_internal/shell-handles.d.ts +9 -0
  523. package/dist/esm/components/_internal/shell-handles.d.ts.map +1 -1
  524. package/dist/esm/components/_internal/shell-handles.js +1 -1
  525. package/dist/esm/components/_internal/shell-inspector.d.ts +4 -6
  526. package/dist/esm/components/_internal/shell-inspector.d.ts.map +1 -1
  527. package/dist/esm/components/_internal/shell-inspector.js +1 -1
  528. package/dist/esm/components/_internal/shell-pane.d.ts +70 -0
  529. package/dist/esm/components/_internal/shell-pane.d.ts.map +1 -0
  530. package/dist/esm/components/_internal/shell-pane.js +2 -0
  531. package/dist/esm/components/_internal/shell-resizable.d.ts +48 -0
  532. package/dist/esm/components/_internal/shell-resizable.d.ts.map +1 -0
  533. package/dist/esm/components/_internal/shell-resizable.js +2 -0
  534. package/dist/esm/components/_internal/shell-resize.d.ts +11 -3
  535. package/dist/esm/components/_internal/shell-resize.d.ts.map +1 -1
  536. package/dist/esm/components/_internal/shell-resize.js +1 -1
  537. package/dist/esm/components/_internal/shell-rest.d.ts +27 -0
  538. package/dist/esm/components/_internal/shell-rest.d.ts.map +1 -0
  539. package/dist/esm/components/_internal/shell-rest.js +2 -0
  540. package/dist/esm/components/_internal/shell-rest.js.map +7 -0
  541. package/dist/esm/components/_internal/shell-sidebar.d.ts +7 -12
  542. package/dist/esm/components/_internal/shell-sidebar.d.ts.map +1 -1
  543. package/dist/esm/components/_internal/shell-sidebar.js +1 -1
  544. package/dist/esm/components/_internal/shell-store.d.ts +99 -0
  545. package/dist/esm/components/_internal/shell-store.d.ts.map +1 -0
  546. package/dist/esm/components/_internal/shell-store.js +2 -0
  547. package/dist/esm/components/_internal/shell-store.js.map +7 -0
  548. package/dist/esm/components/accordion.js +1 -1
  549. package/dist/esm/components/accordion.props.d.ts +0 -6
  550. package/dist/esm/components/accordion.props.d.ts.map +1 -1
  551. package/dist/esm/components/accordion.props.js +1 -1
  552. package/dist/esm/components/alert-dialog.js +1 -1
  553. package/dist/esm/components/avatar.js +1 -1
  554. package/dist/esm/components/avatar.props.d.ts +0 -5
  555. package/dist/esm/components/avatar.props.d.ts.map +1 -1
  556. package/dist/esm/components/avatar.props.js +1 -1
  557. package/dist/esm/components/badge.js +1 -1
  558. package/dist/esm/components/badge.props.d.ts +0 -5
  559. package/dist/esm/components/badge.props.d.ts.map +1 -1
  560. package/dist/esm/components/badge.props.js +1 -1
  561. package/dist/esm/components/blockquote.js +1 -1
  562. package/dist/esm/components/blockquote.props.d.ts +3 -2
  563. package/dist/esm/components/blockquote.props.d.ts.map +1 -1
  564. package/dist/esm/components/blockquote.props.js +1 -1
  565. package/dist/esm/components/box.js +1 -1
  566. package/dist/esm/components/button.js +1 -1
  567. package/dist/esm/components/button.props.js +1 -1
  568. package/dist/esm/components/callout.js +1 -1
  569. package/dist/esm/components/callout.props.d.ts +0 -5
  570. package/dist/esm/components/callout.props.d.ts.map +1 -1
  571. package/dist/esm/components/callout.props.js +1 -1
  572. package/dist/esm/components/card.js +1 -1
  573. package/dist/esm/components/chatbar.d.ts.map +1 -1
  574. package/dist/esm/components/chatbar.js +1 -1
  575. package/dist/esm/components/checkbox-cards.d.ts.map +1 -1
  576. package/dist/esm/components/checkbox-cards.js +1 -1
  577. package/dist/esm/components/checkbox-cards.props.d.ts +0 -5
  578. package/dist/esm/components/checkbox-cards.props.d.ts.map +1 -1
  579. package/dist/esm/components/checkbox-cards.props.js +1 -1
  580. package/dist/esm/components/checkbox-group.d.ts.map +1 -1
  581. package/dist/esm/components/checkbox-group.js +1 -1
  582. package/dist/esm/components/checkbox-group.props.d.ts +0 -5
  583. package/dist/esm/components/checkbox-group.props.d.ts.map +1 -1
  584. package/dist/esm/components/checkbox-group.props.js +1 -1
  585. package/dist/esm/components/checkbox.js +1 -1
  586. package/dist/esm/components/checkbox.props.js +1 -1
  587. package/dist/esm/components/code.js +1 -1
  588. package/dist/esm/components/code.props.d.ts +3 -2
  589. package/dist/esm/components/code.props.d.ts.map +1 -1
  590. package/dist/esm/components/code.props.js +1 -1
  591. package/dist/esm/components/combobox.d.ts.map +1 -1
  592. package/dist/esm/components/combobox.js +1 -1
  593. package/dist/esm/components/combobox.props.d.ts +1 -11
  594. package/dist/esm/components/combobox.props.d.ts.map +1 -1
  595. package/dist/esm/components/combobox.props.js +1 -1
  596. package/dist/esm/components/container.js +1 -1
  597. package/dist/esm/components/context-menu.d.ts.map +1 -1
  598. package/dist/esm/components/context-menu.js +1 -1
  599. package/dist/esm/components/context-menu.props.js +1 -1
  600. package/dist/esm/components/data-list.js +1 -1
  601. package/dist/esm/components/data-list.props.d.ts +4 -3
  602. package/dist/esm/components/data-list.props.d.ts.map +1 -1
  603. package/dist/esm/components/data-list.props.js +1 -1
  604. package/dist/esm/components/dialog.js +1 -1
  605. package/dist/esm/components/dropdown-menu.d.ts.map +1 -1
  606. package/dist/esm/components/dropdown-menu.js +1 -1
  607. package/dist/esm/components/dropdown-menu.props.js +1 -1
  608. package/dist/esm/components/em.js +1 -1
  609. package/dist/esm/components/em.props.js +1 -1
  610. package/dist/esm/components/flex.js +1 -1
  611. package/dist/esm/components/grid.js +1 -1
  612. package/dist/esm/components/heading.js +1 -1
  613. package/dist/esm/components/heading.props.d.ts +3 -2
  614. package/dist/esm/components/heading.props.d.ts.map +1 -1
  615. package/dist/esm/components/heading.props.js +1 -1
  616. package/dist/esm/components/hover-card.js +1 -1
  617. package/dist/esm/components/icon-button.js +1 -1
  618. package/dist/esm/components/icon-button.props.js +1 -1
  619. package/dist/esm/components/image.js +1 -1
  620. package/dist/esm/components/index.js +1 -1
  621. package/dist/esm/components/inset.js +1 -1
  622. package/dist/esm/components/kbd.js +1 -1
  623. package/dist/esm/components/link.js +1 -1
  624. package/dist/esm/components/link.props.d.ts +0 -5
  625. package/dist/esm/components/link.props.d.ts.map +1 -1
  626. package/dist/esm/components/link.props.js +1 -1
  627. package/dist/esm/components/navbar.js +1 -1
  628. package/dist/esm/components/popover.js +1 -1
  629. package/dist/esm/components/progress.js +1 -1
  630. package/dist/esm/components/progress.props.d.ts +0 -5
  631. package/dist/esm/components/progress.props.d.ts.map +1 -1
  632. package/dist/esm/components/progress.props.js +1 -1
  633. package/dist/esm/components/quote.js +1 -1
  634. package/dist/esm/components/quote.props.js +1 -1
  635. package/dist/esm/components/radio-cards.js +1 -1
  636. package/dist/esm/components/radio-cards.props.d.ts +0 -5
  637. package/dist/esm/components/radio-cards.props.d.ts.map +1 -1
  638. package/dist/esm/components/radio-cards.props.js +1 -1
  639. package/dist/esm/components/radio-group.d.ts.map +1 -1
  640. package/dist/esm/components/radio-group.js +1 -1
  641. package/dist/esm/components/radio-group.props.d.ts +0 -5
  642. package/dist/esm/components/radio-group.props.d.ts.map +1 -1
  643. package/dist/esm/components/radio-group.props.js +1 -1
  644. package/dist/esm/components/radio.js +1 -1
  645. package/dist/esm/components/radio.props.js +1 -1
  646. package/dist/esm/components/schemas/base-button.schema.d.ts +0 -1
  647. package/dist/esm/components/schemas/base-button.schema.d.ts.map +1 -1
  648. package/dist/esm/components/schemas/base-button.schema.js +1 -1
  649. package/dist/esm/components/schemas/button.schema.d.ts +0 -1
  650. package/dist/esm/components/schemas/button.schema.d.ts.map +1 -1
  651. package/dist/esm/components/schemas/button.schema.js +1 -1
  652. package/dist/esm/components/schemas/icon-button.schema.d.ts +0 -1
  653. package/dist/esm/components/schemas/icon-button.schema.d.ts.map +1 -1
  654. package/dist/esm/components/schemas/icon-button.schema.js +1 -1
  655. package/dist/esm/components/schemas/index.js +1 -1
  656. package/dist/esm/components/schemas/shell.schema.d.ts +277 -229
  657. package/dist/esm/components/schemas/shell.schema.d.ts.map +1 -1
  658. package/dist/esm/components/schemas/shell.schema.js +1 -1
  659. package/dist/esm/components/schemas/toggle-button.schema.d.ts +0 -1
  660. package/dist/esm/components/schemas/toggle-button.schema.d.ts.map +1 -1
  661. package/dist/esm/components/schemas/toggle-button.schema.js +1 -1
  662. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts +0 -1
  663. package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts.map +1 -1
  664. package/dist/esm/components/schemas/toggle-icon-button.schema.js +1 -1
  665. package/dist/esm/components/scroll-area.js +1 -1
  666. package/dist/esm/components/section.js +1 -1
  667. package/dist/esm/components/segmented-control.js +1 -1
  668. package/dist/esm/components/select.js +1 -1
  669. package/dist/esm/components/select.props.d.ts +0 -5
  670. package/dist/esm/components/select.props.d.ts.map +1 -1
  671. package/dist/esm/components/select.props.js +1 -1
  672. package/dist/esm/components/separator.js +1 -1
  673. package/dist/esm/components/separator.props.js +1 -1
  674. package/dist/esm/components/sheet.js +1 -1
  675. package/dist/esm/components/shell.context.d.ts +25 -114
  676. package/dist/esm/components/shell.context.d.ts.map +1 -1
  677. package/dist/esm/components/shell.context.js +1 -1
  678. package/dist/esm/components/shell.d.ts +42 -21
  679. package/dist/esm/components/shell.d.ts.map +1 -1
  680. package/dist/esm/components/shell.hooks.d.ts +7 -23
  681. package/dist/esm/components/shell.hooks.d.ts.map +1 -1
  682. package/dist/esm/components/shell.hooks.js +1 -1
  683. package/dist/esm/components/shell.js +1 -1
  684. package/dist/esm/components/shell.types.d.ts +19 -2
  685. package/dist/esm/components/shell.types.d.ts.map +1 -1
  686. package/dist/esm/components/shell.types.js +1 -1
  687. package/dist/esm/components/sidebar.d.ts +0 -1
  688. package/dist/esm/components/sidebar.d.ts.map +1 -1
  689. package/dist/esm/components/sidebar.js +1 -1
  690. package/dist/esm/components/sidebar.props.d.ts +0 -5
  691. package/dist/esm/components/sidebar.props.d.ts.map +1 -1
  692. package/dist/esm/components/sidebar.props.js +1 -1
  693. package/dist/esm/components/skeleton.js +1 -1
  694. package/dist/esm/components/slider.js +1 -1
  695. package/dist/esm/components/slider.props.d.ts +0 -5
  696. package/dist/esm/components/slider.props.d.ts.map +1 -1
  697. package/dist/esm/components/slider.props.js +1 -1
  698. package/dist/esm/components/spinner.js +1 -1
  699. package/dist/esm/components/strong.js +1 -1
  700. package/dist/esm/components/strong.props.js +1 -1
  701. package/dist/esm/components/switch.d.ts.map +1 -1
  702. package/dist/esm/components/switch.js +1 -1
  703. package/dist/esm/components/switch.props.d.ts +0 -5
  704. package/dist/esm/components/switch.props.d.ts.map +1 -1
  705. package/dist/esm/components/switch.props.js +1 -1
  706. package/dist/esm/components/tab-nav.js +1 -1
  707. package/dist/esm/components/tab-nav.props.js +1 -1
  708. package/dist/esm/components/table.js +1 -1
  709. package/dist/esm/components/tabs.js +1 -1
  710. package/dist/esm/components/tabs.props.js +1 -1
  711. package/dist/esm/components/text-area.js +1 -1
  712. package/dist/esm/components/text-area.props.js +1 -1
  713. package/dist/esm/components/text-field.js +1 -1
  714. package/dist/esm/components/text-field.props.js +1 -1
  715. package/dist/esm/components/text.js +1 -1
  716. package/dist/esm/components/text.props.d.ts +3 -2
  717. package/dist/esm/components/text.props.d.ts.map +1 -1
  718. package/dist/esm/components/text.props.js +1 -1
  719. package/dist/esm/components/theme-panel.js +1 -1
  720. package/dist/esm/components/theme.js +1 -1
  721. package/dist/esm/components/theme.props.js +1 -1
  722. package/dist/esm/components/toggle-button.js +1 -1
  723. package/dist/esm/components/toggle-icon-button.js +1 -1
  724. package/dist/esm/components/toolbar.js +1 -1
  725. package/dist/esm/components/tooltip.js +1 -1
  726. package/dist/esm/components/user-card.d.ts.map +1 -1
  727. package/dist/esm/components/user-card.js +1 -1
  728. package/dist/esm/components/user-card.props.d.ts +0 -5
  729. package/dist/esm/components/user-card.props.d.ts.map +1 -1
  730. package/dist/esm/components/user-card.props.js +1 -1
  731. package/dist/esm/components/virtual-menu.js +1 -1
  732. package/dist/esm/helpers/extract-props.js +1 -1
  733. package/dist/esm/helpers/get-margin-styles.js +1 -1
  734. package/dist/esm/helpers/get-responsive-styles.js +1 -1
  735. package/dist/esm/helpers/index.js +1 -1
  736. package/dist/esm/hooks/index.js +1 -1
  737. package/dist/esm/hooks/use-breakpoint.d.ts +5 -0
  738. package/dist/esm/hooks/use-breakpoint.d.ts.map +1 -1
  739. package/dist/esm/hooks/use-breakpoint.js +1 -1
  740. package/dist/esm/index.js +1 -1
  741. package/dist/esm/props/color.prop.js +1 -1
  742. package/dist/esm/props/emphasis.prop.d.ts +11 -0
  743. package/dist/esm/props/emphasis.prop.d.ts.map +1 -0
  744. package/dist/esm/props/emphasis.prop.js +2 -0
  745. package/dist/esm/props/emphasis.prop.js.map +7 -0
  746. package/dist/esm/props/index.d.ts +1 -1
  747. package/dist/esm/props/index.d.ts.map +1 -1
  748. package/dist/esm/props/index.js +1 -1
  749. package/package.json +7 -2
  750. package/schemas/base-button.json +0 -5
  751. package/schemas/button.json +0 -5
  752. package/schemas/icon-button.json +0 -5
  753. package/schemas/index.json +1655 -25
  754. package/schemas/shell-bottom.d.ts +2 -0
  755. package/schemas/shell-bottom.json +180 -76
  756. package/schemas/shell-content.d.ts +2 -0
  757. package/schemas/shell-content.json +11 -5
  758. package/schemas/shell-handle.d.ts +2 -0
  759. package/schemas/shell-handle.json +7 -5
  760. package/schemas/shell-header.d.ts +2 -0
  761. package/schemas/shell-header.json +9 -10
  762. package/schemas/shell-inspector.d.ts +2 -0
  763. package/schemas/shell-inspector.json +183 -79
  764. package/schemas/shell-panel.d.ts +2 -0
  765. package/schemas/shell-panel.json +180 -76
  766. package/schemas/shell-rail.d.ts +2 -0
  767. package/schemas/shell-rail.json +137 -64
  768. package/schemas/shell-root.d.ts +2 -0
  769. package/schemas/shell-root.json +11 -9
  770. package/schemas/shell-sidebar.d.ts +2 -0
  771. package/schemas/shell-sidebar.json +274 -85
  772. package/schemas/shell-trigger.d.ts +2 -0
  773. package/schemas/shell-trigger.json +29 -17
  774. package/schemas/toggle-button.json +0 -5
  775. package/schemas/toggle-icon-button.json +0 -5
  776. package/src/components/_internal/base-button.css +14 -69
  777. package/src/components/_internal/base-button.props.ts +2 -4
  778. package/src/components/_internal/base-checkbox.css +9 -63
  779. package/src/components/_internal/base-checkbox.props.ts +0 -2
  780. package/src/components/_internal/base-menu.css +7 -59
  781. package/src/components/_internal/base-menu.props.ts +0 -2
  782. package/src/components/_internal/base-radio.css +9 -46
  783. package/src/components/_internal/base-radio.props.ts +0 -2
  784. package/src/components/_internal/base-sidebar-menu.css +3 -3
  785. package/src/components/_internal/base-tab-list.css +1 -7
  786. package/src/components/_internal/base-tab-list.props.ts +0 -2
  787. package/src/components/_internal/shell-bottom.tsx +92 -361
  788. package/src/components/_internal/shell-handles.tsx +193 -108
  789. package/src/components/_internal/shell-inspector.tsx +93 -360
  790. package/src/components/_internal/shell-pane.tsx +283 -0
  791. package/src/components/_internal/shell-resizable.tsx +263 -0
  792. package/src/components/_internal/shell-resize.tsx +11 -3
  793. package/src/components/_internal/shell-rest.ts +45 -0
  794. package/src/components/_internal/shell-sidebar.tsx +130 -441
  795. package/src/components/_internal/shell-store.tsx +204 -0
  796. package/src/components/accordion.css +4 -62
  797. package/src/components/accordion.props.tsx +0 -3
  798. package/src/components/avatar.css +10 -61
  799. package/src/components/avatar.props.tsx +0 -2
  800. package/src/components/badge.css +7 -32
  801. package/src/components/badge.props.tsx +0 -2
  802. package/src/components/blockquote.props.tsx +2 -2
  803. package/src/components/callout.css +5 -25
  804. package/src/components/callout.props.tsx +0 -2
  805. package/src/components/chatbar.tsx +6 -3
  806. package/src/components/checkbox-cards.props.tsx +0 -2
  807. package/src/components/checkbox-cards.tsx +1 -4
  808. package/src/components/checkbox-group.tsx +0 -2
  809. package/src/components/code.css +36 -36
  810. package/src/components/code.props.tsx +2 -2
  811. package/src/components/combobox.css +4 -10
  812. package/src/components/combobox.props.tsx +1 -5
  813. package/src/components/combobox.tsx +4 -8
  814. package/src/components/context-menu.tsx +5 -8
  815. package/src/components/data-list.css +14 -9
  816. package/src/components/data-list.props.tsx +5 -2
  817. package/src/components/dropdown-menu.tsx +5 -9
  818. package/src/components/heading.css +16 -5
  819. package/src/components/heading.props.tsx +2 -2
  820. package/src/components/link.css +3 -4
  821. package/src/components/link.props.tsx +0 -2
  822. package/src/components/progress.css +3 -10
  823. package/src/components/progress.props.tsx +0 -2
  824. package/src/components/radio-cards.css +1 -4
  825. package/src/components/radio-cards.props.tsx +0 -2
  826. package/src/components/radio-group.props.tsx +0 -2
  827. package/src/components/radio-group.tsx +0 -2
  828. package/src/components/schemas/base-button.schema.ts +0 -10
  829. package/src/components/schemas/shell.schema.ts +162 -153
  830. package/src/components/select.css +13 -96
  831. package/src/components/select.props.tsx +0 -2
  832. package/src/components/sheet.tsx +2 -2
  833. package/src/components/shell.context.tsx +112 -124
  834. package/src/components/shell.css +637 -496
  835. package/src/components/shell.hooks.ts +12 -170
  836. package/src/components/shell.tsx +566 -1497
  837. package/src/components/shell.types.ts +22 -2
  838. package/src/components/sidebar.css +21 -115
  839. package/src/components/sidebar.props.tsx +0 -2
  840. package/src/components/sidebar.tsx +2 -5
  841. package/src/components/slider.css +4 -37
  842. package/src/components/slider.props.tsx +0 -2
  843. package/src/components/slider.tsx +1 -1
  844. package/src/components/switch.css +4 -23
  845. package/src/components/switch.props.tsx +0 -2
  846. package/src/components/switch.tsx +1 -3
  847. package/src/components/text.css +16 -5
  848. package/src/components/text.props.tsx +2 -2
  849. package/src/components/theme-panel.tsx +1 -1
  850. package/src/components/user-card.props.tsx +0 -2
  851. package/src/components/user-card.tsx +1 -2
  852. package/src/hooks/use-breakpoint.ts +9 -0
  853. package/src/props/color.prop.ts +1 -1
  854. package/src/props/emphasis.prop.ts +19 -0
  855. package/src/props/index.ts +1 -1
  856. package/src/styles/tokens/color.css +109 -0
  857. package/src/styles/tokens/constants.css +0 -1
  858. package/styles.css +970 -1254
  859. package/tokens/base.css +204 -150
  860. package/tokens.css +204 -151
  861. package/dist/cjs/components/_internal/shell-prop-helpers.d.ts +0 -7
  862. package/dist/cjs/components/_internal/shell-prop-helpers.d.ts.map +0 -1
  863. package/dist/cjs/components/_internal/shell-prop-helpers.js +0 -2
  864. package/dist/cjs/components/_internal/shell-prop-helpers.js.map +0 -7
  865. package/dist/cjs/props/high-contrast.prop.d.ts +0 -9
  866. package/dist/cjs/props/high-contrast.prop.d.ts.map +0 -1
  867. package/dist/cjs/props/high-contrast.prop.js +0 -2
  868. package/dist/cjs/props/high-contrast.prop.js.map +0 -7
  869. package/dist/esm/chunk-3DC63EZP.js +0 -2
  870. package/dist/esm/chunk-3DC63EZP.js.map +0 -7
  871. package/dist/esm/chunk-4JQZUQY7.js +0 -2
  872. package/dist/esm/chunk-4SMJ7D4S.js +0 -2
  873. package/dist/esm/chunk-4SMJ7D4S.js.map +0 -7
  874. package/dist/esm/chunk-4TCXI3L3.js +0 -2
  875. package/dist/esm/chunk-4TCXI3L3.js.map +0 -7
  876. package/dist/esm/chunk-5BYHEYO6.js +0 -2
  877. package/dist/esm/chunk-5BYHEYO6.js.map +0 -7
  878. package/dist/esm/chunk-5LXFJMFB.js +0 -2
  879. package/dist/esm/chunk-5LXFJMFB.js.map +0 -7
  880. package/dist/esm/chunk-5MNBQROW.js +0 -2
  881. package/dist/esm/chunk-5MNBQROW.js.map +0 -7
  882. package/dist/esm/chunk-666GX7O5.js +0 -2
  883. package/dist/esm/chunk-6HEAF5IT.js +0 -2
  884. package/dist/esm/chunk-6HEAF5IT.js.map +0 -7
  885. package/dist/esm/chunk-7ESHXHHO.js +0 -2
  886. package/dist/esm/chunk-7ESHXHHO.js.map +0 -7
  887. package/dist/esm/chunk-A3NH376A.js +0 -2
  888. package/dist/esm/chunk-A3NH376A.js.map +0 -7
  889. package/dist/esm/chunk-BI7W34WW.js +0 -2
  890. package/dist/esm/chunk-BI7W34WW.js.map +0 -7
  891. package/dist/esm/chunk-CBR3VIRS.js +0 -2
  892. package/dist/esm/chunk-CBR3VIRS.js.map +0 -7
  893. package/dist/esm/chunk-CECQNGUL.js +0 -2
  894. package/dist/esm/chunk-CECQNGUL.js.map +0 -7
  895. package/dist/esm/chunk-D2AZAGGP.js +0 -2
  896. package/dist/esm/chunk-D2AZAGGP.js.map +0 -7
  897. package/dist/esm/chunk-DCAZPMOB.js +0 -2
  898. package/dist/esm/chunk-DCAZPMOB.js.map +0 -7
  899. package/dist/esm/chunk-DQAUX5ZL.js +0 -2
  900. package/dist/esm/chunk-DQAUX5ZL.js.map +0 -7
  901. package/dist/esm/chunk-F7IUK2I2.js +0 -2
  902. package/dist/esm/chunk-FLBLS7M4.js +0 -2
  903. package/dist/esm/chunk-FLBLS7M4.js.map +0 -7
  904. package/dist/esm/chunk-FMBECDL4.js +0 -2
  905. package/dist/esm/chunk-GSIE6SUD.js +0 -2
  906. package/dist/esm/chunk-GSIE6SUD.js.map +0 -7
  907. package/dist/esm/chunk-HOHUDTTL.js +0 -2
  908. package/dist/esm/chunk-HOHUDTTL.js.map +0 -7
  909. package/dist/esm/chunk-HSAG7C53.js +0 -2
  910. package/dist/esm/chunk-HUKPWYG2.js +0 -2
  911. package/dist/esm/chunk-HUKPWYG2.js.map +0 -7
  912. package/dist/esm/chunk-IDYHZIS6.js +0 -2
  913. package/dist/esm/chunk-IDYHZIS6.js.map +0 -7
  914. package/dist/esm/chunk-IGQRZCAI.js +0 -2
  915. package/dist/esm/chunk-IGQRZCAI.js.map +0 -7
  916. package/dist/esm/chunk-ILRJA7FU.js +0 -2
  917. package/dist/esm/chunk-ILRJA7FU.js.map +0 -7
  918. package/dist/esm/chunk-JJKQ7CGI.js +0 -2
  919. package/dist/esm/chunk-KFA53SVQ.js.map +0 -7
  920. package/dist/esm/chunk-KRDP5SQ7.js +0 -2
  921. package/dist/esm/chunk-KRDP5SQ7.js.map +0 -7
  922. package/dist/esm/chunk-KTAFIHJY.js +0 -2
  923. package/dist/esm/chunk-KTAFIHJY.js.map +0 -7
  924. package/dist/esm/chunk-MCQAJV4K.js +0 -2
  925. package/dist/esm/chunk-MCQAJV4K.js.map +0 -7
  926. package/dist/esm/chunk-MCQCG6AS.js +0 -2
  927. package/dist/esm/chunk-MJ47O7KH.js +0 -2
  928. package/dist/esm/chunk-MJ47O7KH.js.map +0 -7
  929. package/dist/esm/chunk-N2B7TWIP.js +0 -2
  930. package/dist/esm/chunk-N2B7TWIP.js.map +0 -7
  931. package/dist/esm/chunk-NIQT45PJ.js +0 -2
  932. package/dist/esm/chunk-NKEJTTIL.js +0 -2
  933. package/dist/esm/chunk-NKEJTTIL.js.map +0 -7
  934. package/dist/esm/chunk-NNO7M466.js +0 -2
  935. package/dist/esm/chunk-NNO7M466.js.map +0 -7
  936. package/dist/esm/chunk-PTS6QYQW.js +0 -2
  937. package/dist/esm/chunk-PTS6QYQW.js.map +0 -7
  938. package/dist/esm/chunk-RLPKKCBL.js +0 -2
  939. package/dist/esm/chunk-RLPKKCBL.js.map +0 -7
  940. package/dist/esm/chunk-SNHEJU2S.js +0 -2
  941. package/dist/esm/chunk-SNHEJU2S.js.map +0 -7
  942. package/dist/esm/chunk-SO67YEVQ.js +0 -2
  943. package/dist/esm/chunk-SZTZ2XLI.js +0 -2
  944. package/dist/esm/chunk-T2FZN7G3.js +0 -2
  945. package/dist/esm/chunk-T2FZN7G3.js.map +0 -7
  946. package/dist/esm/chunk-TBJ6L4NL.js +0 -2
  947. package/dist/esm/chunk-TBJ6L4NL.js.map +0 -7
  948. package/dist/esm/chunk-TGN5ZJU5.js +0 -2
  949. package/dist/esm/chunk-TGN5ZJU5.js.map +0 -7
  950. package/dist/esm/chunk-TLWTUKKL.js +0 -2
  951. package/dist/esm/chunk-TLWTUKKL.js.map +0 -7
  952. package/dist/esm/chunk-UIRSGVJG.js +0 -2
  953. package/dist/esm/chunk-UMX5MGLG.js +0 -2
  954. package/dist/esm/chunk-UMX5MGLG.js.map +0 -7
  955. package/dist/esm/chunk-WR7YLY46.js +0 -2
  956. package/dist/esm/chunk-WR7YLY46.js.map +0 -7
  957. package/dist/esm/chunk-WZETC7WV.js +0 -2
  958. package/dist/esm/chunk-WZETC7WV.js.map +0 -7
  959. package/dist/esm/chunk-XGGLYV5D.js +0 -2
  960. package/dist/esm/chunk-XGGLYV5D.js.map +0 -7
  961. package/dist/esm/chunk-XI5YXUCK.js +0 -2
  962. package/dist/esm/chunk-XKASPWCJ.js +0 -2
  963. package/dist/esm/chunk-XKASPWCJ.js.map +0 -7
  964. package/dist/esm/chunk-ZRKE3NVU.js +0 -2
  965. package/dist/esm/chunk-ZRKE3NVU.js.map +0 -7
  966. package/dist/esm/chunk-ZWYYPFZW.js +0 -2
  967. package/dist/esm/chunk-ZWYYPFZW.js.map +0 -7
  968. package/dist/esm/chunk-ZXZOH63L.js +0 -2
  969. package/dist/esm/chunk-ZXZOH63L.js.map +0 -7
  970. package/dist/esm/components/_internal/shell-prop-helpers.d.ts +0 -7
  971. package/dist/esm/components/_internal/shell-prop-helpers.d.ts.map +0 -1
  972. package/dist/esm/components/_internal/shell-prop-helpers.js +0 -2
  973. package/dist/esm/props/high-contrast.prop.d.ts +0 -9
  974. package/dist/esm/props/high-contrast.prop.d.ts.map +0 -1
  975. package/dist/esm/props/high-contrast.prop.js +0 -2
  976. package/src/components/_internal/shell-prop-helpers.ts +0 -54
  977. package/src/props/high-contrast.prop.ts +0 -13
  978. /package/dist/esm/{chunk-MBCBP73P.js.map → chunk-25X75TI7.js.map} +0 -0
  979. /package/dist/esm/{chunk-GLERJXVS.js.map → chunk-2Q7BJ7YG.js.map} +0 -0
  980. /package/dist/esm/{chunk-CTA5ODAO.js.map → chunk-4WU2WKUJ.js.map} +0 -0
  981. /package/dist/esm/{chunk-F7IUK2I2.js.map → chunk-5SNHUVDA.js.map} +0 -0
  982. /package/dist/esm/{chunk-H7ST535H.js.map → chunk-5TAHT6VC.js.map} +0 -0
  983. /package/dist/esm/{chunk-MHPPVJDB.js.map → chunk-67MKPTZJ.js.map} +0 -0
  984. /package/dist/esm/{chunk-UFI53QUC.js.map → chunk-6J6YX2VX.js.map} +0 -0
  985. /package/dist/esm/{chunk-UUUZXUIP.js.map → chunk-7NYODT3Z.js.map} +0 -0
  986. /package/dist/esm/{chunk-NVDXXGVW.js.map → chunk-7PMMYHZV.js.map} +0 -0
  987. /package/dist/esm/{chunk-UBOOUDS4.js.map → chunk-AO32NT75.js.map} +0 -0
  988. /package/dist/esm/{chunk-JDGJSNWT.js.map → chunk-C5RVO3C3.js.map} +0 -0
  989. /package/dist/esm/{chunk-IHK3H2OM.js.map → chunk-CBNTPHYK.js.map} +0 -0
  990. /package/dist/esm/{chunk-SESAEJ6W.js.map → chunk-CLMOWP5T.js.map} +0 -0
  991. /package/dist/esm/{chunk-BBJUB52V.js.map → chunk-CRBOJ7N7.js.map} +0 -0
  992. /package/dist/esm/{chunk-DUHJVT64.js.map → chunk-CRSHBENJ.js.map} +0 -0
  993. /package/dist/esm/{chunk-56TS6OKQ.js.map → chunk-DCIQHXAR.js.map} +0 -0
  994. /package/dist/esm/{chunk-43A5GUSI.js.map → chunk-EHBAK3LQ.js.map} +0 -0
  995. /package/dist/esm/{chunk-2TIADHPD.js.map → chunk-F3AXE27Q.js.map} +0 -0
  996. /package/dist/esm/{chunk-VA4CTVQL.js.map → chunk-FB3PD4Z3.js.map} +0 -0
  997. /package/dist/esm/{chunk-OYF6YXH7.js.map → chunk-FEAOFF77.js.map} +0 -0
  998. /package/dist/esm/{chunk-ADBLURLJ.js.map → chunk-GDAKJS64.js.map} +0 -0
  999. /package/dist/esm/{chunk-IEWCQU2S.js.map → chunk-GGSJXOKR.js.map} +0 -0
  1000. /package/dist/esm/{chunk-4JQZUQY7.js.map → chunk-GM7KMQDI.js.map} +0 -0
  1001. /package/dist/esm/{chunk-HBR42MIX.js.map → chunk-H4GR4262.js.map} +0 -0
  1002. /package/dist/esm/{chunk-S5C5YRBS.js.map → chunk-IDUVJJYG.js.map} +0 -0
  1003. /package/dist/esm/{chunk-P7IAHW4V.js.map → chunk-IK3MQHA5.js.map} +0 -0
  1004. /package/dist/esm/{chunk-SPIU5JYC.js.map → chunk-JDEBKA56.js.map} +0 -0
  1005. /package/dist/esm/{chunk-E67CIG6A.js.map → chunk-JDWCQ2XP.js.map} +0 -0
  1006. /package/dist/esm/{chunk-JBO5YOUM.js.map → chunk-JQW4XYBS.js.map} +0 -0
  1007. /package/dist/esm/{chunk-P5OSU4NX.js.map → chunk-JRFZ535T.js.map} +0 -0
  1008. /package/dist/esm/{chunk-GYBLXQ4R.js.map → chunk-KEEPKI2X.js.map} +0 -0
  1009. /package/dist/esm/{chunk-WXP6MMUB.js.map → chunk-KOFEFBB3.js.map} +0 -0
  1010. /package/dist/esm/{chunk-YMUGKYGW.js.map → chunk-KV4SZP3F.js.map} +0 -0
  1011. /package/dist/esm/{chunk-FG7XM7KJ.js.map → chunk-LJCUPAOI.js.map} +0 -0
  1012. /package/dist/esm/{chunk-MBE2YSBU.js.map → chunk-MBCQA7UZ.js.map} +0 -0
  1013. /package/dist/esm/{chunk-JJKQ7CGI.js.map → chunk-MM5IHQFM.js.map} +0 -0
  1014. /package/dist/esm/{chunk-YVBCDTTD.js.map → chunk-MN3XALXD.js.map} +0 -0
  1015. /package/dist/esm/{chunk-3R7XMRV5.js.map → chunk-NQXRWBQM.js.map} +0 -0
  1016. /package/dist/esm/{chunk-CSKZZOI2.js.map → chunk-NTNMJX5M.js.map} +0 -0
  1017. /package/dist/esm/{chunk-4ME6O27S.js.map → chunk-O4CSXNST.js.map} +0 -0
  1018. /package/dist/esm/{chunk-HSAG7C53.js.map → chunk-ODCVOXEV.js.map} +0 -0
  1019. /package/dist/esm/{chunk-DMJJM5IS.js.map → chunk-OEEF6KJG.js.map} +0 -0
  1020. /package/dist/esm/{chunk-ABSKRHVM.js.map → chunk-OJSOX3AX.js.map} +0 -0
  1021. /package/dist/esm/{chunk-JGLAE5G7.js.map → chunk-OQU2SKLN.js.map} +0 -0
  1022. /package/dist/esm/{chunk-UWT6TE5D.js.map → chunk-OTXCKEWT.js.map} +0 -0
  1023. /package/dist/esm/{chunk-JUY7CBSL.js.map → chunk-PBFSBHBS.js.map} +0 -0
  1024. /package/dist/esm/{chunk-L6PVH3RM.js.map → chunk-PDUHBDFC.js.map} +0 -0
  1025. /package/dist/esm/{chunk-HW324FK3.js.map → chunk-POG3YABW.js.map} +0 -0
  1026. /package/dist/esm/{chunk-TOOSHJOA.js.map → chunk-PYXMGEO7.js.map} +0 -0
  1027. /package/dist/esm/{chunk-T4UHUQFJ.js.map → chunk-QEGEUD4D.js.map} +0 -0
  1028. /package/dist/esm/{chunk-MCQCG6AS.js.map → chunk-QEL55MLF.js.map} +0 -0
  1029. /package/dist/esm/{chunk-F7IYL2VW.js.map → chunk-QJVAS7AK.js.map} +0 -0
  1030. /package/dist/esm/{chunk-DXL6V2A5.js.map → chunk-SEY4NA45.js.map} +0 -0
  1031. /package/dist/esm/{chunk-TS623UPD.js.map → chunk-TLGXIWAS.js.map} +0 -0
  1032. /package/dist/esm/{chunk-6FLLFCBU.js.map → chunk-UBSLEGQZ.js.map} +0 -0
  1033. /package/dist/esm/{chunk-37OGSEQR.js.map → chunk-UNWPH3SO.js.map} +0 -0
  1034. /package/dist/esm/{chunk-HIKVMKYQ.js.map → chunk-VTIL55SR.js.map} +0 -0
  1035. /package/dist/esm/{chunk-CQNPBTM5.js.map → chunk-W2LD2YE6.js.map} +0 -0
  1036. /package/dist/esm/{chunk-NMKPFUNP.js.map → chunk-WIDJYVZF.js.map} +0 -0
  1037. /package/dist/esm/{chunk-3OBXZUFJ.js.map → chunk-WJBOOAIO.js.map} +0 -0
  1038. /package/dist/esm/{chunk-7FC7HF76.js.map → chunk-WQCB7KSH.js.map} +0 -0
  1039. /package/dist/esm/{chunk-OWAUCLRT.js.map → chunk-WZFVTC7P.js.map} +0 -0
  1040. /package/dist/esm/{chunk-XI5YXUCK.js.map → chunk-XDDKT4NF.js.map} +0 -0
  1041. /package/dist/esm/{chunk-DX5JJYMZ.js.map → chunk-XYVLQDGR.js.map} +0 -0
  1042. /package/dist/esm/{chunk-VNPNEJI6.js.map → chunk-YG66IRW4.js.map} +0 -0
  1043. /package/dist/esm/{chunk-NIQT45PJ.js.map → chunk-ZJ33QP5N.js.map} +0 -0
  1044. /package/dist/esm/{chunk-KPBG7CIL.js.map → chunk-ZO7TTWJI.js.map} +0 -0
  1045. /package/dist/esm/{chunk-OGXZHAQL.js.map → chunk-ZW26J2SA.js.map} +0 -0
  1046. /package/dist/esm/components/_internal/{shell-prop-helpers.js.map → shell-pane.js.map} +0 -0
  1047. /package/dist/esm/{props/high-contrast.prop.js.map → components/_internal/shell-resizable.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/theme.tsx", "../../../src/helpers/get-matching-gray-color.ts", "../../../src/hooks/use-prop-synced-state.ts", "../../../src/helpers/use-deprecation-warning.ts", "../../../src/props/as-child.prop.ts", "../../../src/props/color.prop.ts", "../../../src/props/radius.prop.ts", "../../../src/components/theme.props.tsx"],
4
- "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Direction, Slot, Tooltip as TooltipPrimitive } from 'radix-ui';\nimport { useComposedRefs, useLayoutEffect } from 'radix-ui/internal';\n\nimport { getMatchingGrayColor } from '../helpers/get-matching-gray-color.js';\nimport { usePropSyncedState } from '../hooks/use-prop-synced-state.js';\nimport { useDeprecatedPanelBackgroundWarning } from '../helpers/use-deprecation-warning.js';\nimport { themePropDefs } from './theme.props.js';\n\nimport type { ThemeOwnProps } from './theme.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\nconst noop = () => {};\n\ntype ThemeAppearance = (typeof themePropDefs.appearance.values)[number];\ntype ThemeAccentColor = (typeof themePropDefs.accentColor.values)[number];\ntype ThemeGrayColor = (typeof themePropDefs.grayColor.values)[number];\ntype ThemeMaterial = (typeof themePropDefs.material.values)[number];\ntype ThemePanelBackground = (typeof themePropDefs.panelBackground.values)[number];\ntype ThemeRadius = (typeof themePropDefs.radius.values)[number];\ntype ThemeScaling = (typeof themePropDefs.scaling.values)[number];\ntype ThemeFontFamily = (typeof themePropDefs.fontFamily.values)[number];\n// Headings follow the body font until something sets this, so `undefined` is a\n// meaningful value here rather than a missing one.\ntype ThemeHeadingFontFamily = ThemeFontFamily | undefined;\n\ninterface ThemeChangeHandlers {\n onAppearanceChange: (appearance: ThemeAppearance) => void;\n onAccentColorChange: (accentColor: ThemeAccentColor) => void;\n onGrayColorChange: (grayColor: ThemeGrayColor) => void;\n onMaterialChange: (material: ThemeMaterial) => void;\n onPanelBackgroundChange: (panelBackground: ThemePanelBackground) => void;\n onRadiusChange: (radius: ThemeRadius) => void;\n onScalingChange: (scaling: ThemeScaling) => void;\n onFontFamilyChange: (fontFamily: ThemeFontFamily) => void;\n onHeadingFontFamilyChange: (headingFontFamily: ThemeHeadingFontFamily) => void;\n}\n\ninterface ThemeContextValue extends ThemeChangeHandlers {\n appearance: ThemeAppearance;\n accentColor: ThemeAccentColor;\n grayColor: ThemeGrayColor;\n resolvedGrayColor: ThemeGrayColor;\n material: ThemeMaterial;\n panelBackground: ThemePanelBackground;\n radius: ThemeRadius;\n scaling: ThemeScaling;\n fontFamily: ThemeFontFamily;\n headingFontFamily: ThemeHeadingFontFamily;\n}\n// Default theme values used when components render outside a Theme provider\nconst defaultThemeContext: ThemeContextValue = {\n appearance: themePropDefs.appearance.default,\n accentColor: themePropDefs.accentColor.default,\n grayColor: themePropDefs.grayColor.default,\n resolvedGrayColor: themePropDefs.grayColor.default,\n material: themePropDefs.material.default,\n panelBackground: themePropDefs.panelBackground.default,\n radius: themePropDefs.radius.default,\n scaling: themePropDefs.scaling.default,\n fontFamily: themePropDefs.fontFamily.default,\n headingFontFamily: undefined,\n onAppearanceChange: noop,\n onAccentColorChange: noop,\n onGrayColorChange: noop,\n onMaterialChange: noop,\n onPanelBackgroundChange: noop,\n onRadiusChange: noop,\n onScalingChange: noop,\n onFontFamilyChange: noop,\n onHeadingFontFamilyChange: noop,\n};\n\nconst ThemeContext = React.createContext<ThemeContextValue | undefined>(undefined);\n\nfunction useThemeContext() {\n const context = React.useContext(ThemeContext);\n // Return default context if used outside Theme provider (e.g., during SSR)\n return context ?? defaultThemeContext;\n}\n\ninterface ThemeProps extends ThemeImplPublicProps {}\nconst Theme = React.forwardRef<ThemeImplElement, ThemeProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n const isRoot = context === undefined;\n if (isRoot) {\n return (\n <TooltipPrimitive.Provider delayDuration={200}>\n <Direction.Provider dir=\"ltr\">\n <ThemeRoot {...props} ref={forwardedRef} />\n </Direction.Provider>\n </TooltipPrimitive.Provider>\n );\n }\n return <ThemeImpl {...props} ref={forwardedRef} />;\n});\nTheme.displayName = 'Theme';\n\nconst ThemeRoot = React.forwardRef<ThemeImplElement, ThemeImplPublicProps>(\n (props, forwardedRef) => {\n const {\n appearance: appearanceProp = themePropDefs.appearance.default,\n accentColor: accentColorProp = themePropDefs.accentColor.default,\n grayColor: grayColorProp = themePropDefs.grayColor.default,\n material: materialProp = themePropDefs.material.default,\n panelBackground: panelBackgroundProp = themePropDefs.panelBackground.default,\n radius: radiusProp = themePropDefs.radius.default,\n scaling: scalingProp = themePropDefs.scaling.default,\n fontFamily: fontFamilyProp = themePropDefs.fontFamily.default,\n headingFontFamily: headingFontFamilyProp,\n hasBackground = themePropDefs.hasBackground.default,\n ...rootProps\n } = props;\n\n useDeprecatedPanelBackgroundWarning(props.panelBackground);\n\n // Each of these follows its prop but stays independently settable, so\n // `ThemePanel` can change the theme at runtime. Syncing during render\n // rather than in an effect matters here: an effect would commit the old\n // theme first and re-render every consumer of the context a second time.\n const [appearance, setAppearance] = usePropSyncedState(appearanceProp);\n const [accentColor, setAccentColor] = usePropSyncedState(accentColorProp);\n const [grayColor, setGrayColor] = usePropSyncedState(grayColorProp);\n\n // Material takes precedence over panelBackground\n const effectiveMaterial =\n materialProp !== themePropDefs.material.default ? materialProp : panelBackgroundProp;\n const [material, setMaterial] = usePropSyncedState(effectiveMaterial);\n\n // Keep panelBackground in sync with material for backward compatibility\n const [panelBackground, setPanelBackground] = usePropSyncedState(material);\n\n const [radius, setRadius] = usePropSyncedState(radiusProp);\n const [scaling, setScaling] = usePropSyncedState(scalingProp);\n const [fontFamily, setFontFamily] = usePropSyncedState(fontFamilyProp);\n const [headingFontFamily, setHeadingFontFamily] = usePropSyncedState(headingFontFamilyProp);\n\n return (\n <ThemeImpl\n {...rootProps}\n ref={forwardedRef}\n isRoot\n hasBackground={hasBackground}\n //\n appearance={appearance}\n accentColor={accentColor}\n grayColor={grayColor}\n material={material}\n panelBackground={panelBackground}\n radius={radius}\n scaling={scaling}\n fontFamily={fontFamily}\n headingFontFamily={headingFontFamily}\n //\n onAppearanceChange={setAppearance}\n onAccentColorChange={setAccentColor}\n onGrayColorChange={setGrayColor}\n onMaterialChange={setMaterial}\n onPanelBackgroundChange={setPanelBackground}\n onRadiusChange={setRadius}\n onScalingChange={setScaling}\n onFontFamilyChange={setFontFamily}\n onHeadingFontFamilyChange={setHeadingFontFamily}\n />\n );\n },\n);\nThemeRoot.displayName = 'ThemeRoot';\n\ntype ThemeImplElement = React.ElementRef<'div'>;\ninterface ThemeImplProps extends ThemeImplPublicProps, ThemeImplPrivateProps {}\ninterface ThemeImplPublicProps\n extends ComponentPropsWithout<'div', RemovedProps | 'dir'>,\n ThemeOwnProps {}\ninterface ThemeImplPrivateProps extends Partial<ThemeChangeHandlers> {\n isRoot?: boolean;\n}\nfunction getClientOS(): 'windows' | 'macos' | 'linux' | undefined {\n if (typeof navigator === 'undefined') return undefined;\n const ua = navigator.userAgent;\n if (ua.includes('Win')) return 'windows';\n if (ua.includes('Mac')) return 'macos';\n if (ua.includes('Linux')) return 'linux';\n return undefined;\n}\n\nconst ThemeImpl = React.forwardRef<ThemeImplElement, ThemeImplProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n const {\n asChild,\n isRoot,\n hasBackground: hasBackgroundProp,\n //\n appearance = props.appearance ?? context?.appearance ?? themePropDefs.appearance.default,\n accentColor = props.accentColor ?? context?.accentColor ?? themePropDefs.accentColor.default,\n grayColor = props.grayColor ?? context?.resolvedGrayColor ?? themePropDefs.grayColor.default,\n material = props.material ?? context?.material ?? themePropDefs.material.default,\n panelBackground = props.panelBackground ??\n context?.panelBackground ??\n themePropDefs.panelBackground.default,\n radius = props.radius ?? context?.radius ?? themePropDefs.radius.default,\n scaling = props.scaling ?? context?.scaling ?? themePropDefs.scaling.default,\n fontFamily = props.fontFamily ?? context?.fontFamily ?? themePropDefs.fontFamily.default,\n headingFontFamily = props.headingFontFamily ?? context?.headingFontFamily,\n //\n onAppearanceChange = noop,\n onAccentColorChange = noop,\n onGrayColorChange = noop,\n onMaterialChange = noop,\n onPanelBackgroundChange = noop,\n onRadiusChange = noop,\n onScalingChange = noop,\n onFontFamilyChange = noop,\n onHeadingFontFamilyChange = noop,\n //\n ...themeProps\n } = props;\n const Comp = asChild ? Slot.Root : 'div';\n const resolvedGrayColor = grayColor === 'auto' ? getMatchingGrayColor(accentColor) : grayColor;\n const isExplicitAppearance = props.appearance === 'light' || props.appearance === 'dark';\n const hasBackground =\n hasBackgroundProp === undefined ? isRoot || isExplicitAppearance : hasBackgroundProp;\n\n // `data-os` can only be resolved on the client. Writing it straight to the\n // DOM keeps it out of the server markup \u2014 so hydration still matches \u2014 without\n // spending a render pass, and a state update here would re-render the whole\n // application on mount.\n const rootRef = React.useRef<ThemeImplElement>(null);\n const composedRef = useComposedRefs(forwardedRef, rootRef);\n const hasExplicitOS = 'data-os' in themeProps;\n\n useLayoutEffect(() => {\n if (!isRoot || hasExplicitOS) return;\n const node = rootRef.current;\n if (!node) return;\n\n const os = getClientOS();\n if (!os) return;\n node.setAttribute('data-os', os);\n return () => node.removeAttribute('data-os');\n }, [isRoot, hasExplicitOS]);\n\n return (\n <ThemeContext.Provider\n value={React.useMemo(\n () => ({\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n material,\n panelBackground,\n radius,\n scaling,\n fontFamily,\n headingFontFamily,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onMaterialChange,\n onPanelBackgroundChange,\n onRadiusChange,\n onScalingChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n }),\n [\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n material,\n panelBackground,\n radius,\n scaling,\n fontFamily,\n headingFontFamily,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onMaterialChange,\n onPanelBackgroundChange,\n onRadiusChange,\n onScalingChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n ],\n )}\n >\n <Comp\n data-is-root-theme={isRoot ? 'true' : 'false'}\n data-accent-color={accentColor}\n data-gray-color={resolvedGrayColor}\n // for nested `Theme` background\n data-has-background={hasBackground ? 'true' : 'false'}\n data-material={material}\n data-panel-background={panelBackground}\n data-radius={radius}\n data-scaling={scaling}\n data-font-family={fontFamily}\n data-heading-font-family={headingFontFamily}\n ref={composedRef}\n {...themeProps}\n className={classNames(\n 'radix-themes',\n {\n light: appearance === 'light',\n dark: appearance === 'dark',\n },\n themeProps.className,\n )}\n />\n </ThemeContext.Provider>\n );\n});\nThemeImpl.displayName = 'ThemeImpl';\n\nexport { Theme, ThemeContext, useThemeContext };\nexport type { ThemeProps, ThemeContextValue };\n", "import type { accentColors } from '../props/color.prop.js';\n\ntype ThemeAccentColor = (typeof accentColors)[number];\n\nexport function getMatchingGrayColor(accentColor: ThemeAccentColor) {\n switch (accentColor) {\n case 'tomato':\n case 'red':\n case 'ruby':\n case 'crimson':\n case 'pink':\n case 'plum':\n case 'purple':\n case 'violet':\n return 'mauve';\n case 'iris':\n case 'indigo':\n case 'blue':\n case 'sky':\n case 'cyan':\n return 'slate';\n case 'teal':\n case 'jade':\n case 'mint':\n case 'green':\n return 'sage';\n case 'grass':\n case 'lime':\n return 'olive';\n case 'yellow':\n case 'amber':\n case 'orange':\n case 'brown':\n case 'gold':\n case 'bronze':\n return 'sand';\n case 'gray':\n return 'gray';\n }\n}\n", "import * as React from 'react';\n\n/**\n * State that tracks a prop but can also be set imperatively \u2014 the shape `Theme`\n * needs, where a prop sets the value and `ThemePanel` can change it at runtime.\n *\n * Adjusts state during render rather than syncing in a `useEffect`. An effect\n * would commit one render carrying the *old* value and schedule a second one,\n * which for a provider means every consumer renders twice and the browser can\n * paint the stale value in between.\n *\n * @see https://react.dev/reference/react/useState#storing-information-from-previous-renders\n */\nexport function usePropSyncedState<T>(propValue: T) {\n const [value, setValue] = React.useState(propValue);\n const [previousPropValue, setPreviousPropValue] = React.useState(propValue);\n\n if (!Object.is(propValue, previousPropValue)) {\n setPreviousPropValue(propValue);\n setValue(propValue);\n }\n\n return [value, setValue] as const;\n}\n", "import * as React from 'react';\n\nconst PANEL_BACKGROUND_MESSAGE = 'Warning: The `panelBackground` prop is deprecated and will be removed in a future version. Use `material` prop instead.';\n\nconst warned = new Set<string>();\n\nfunction warnOnce(message: string) {\n if (warned.has(message)) return;\n warned.add(message);\n console.warn(message);\n}\n\n/**\n * Warns, in development only, that `panelBackground` is deprecated.\n *\n * The `process.env.NODE_ENV` check is a compile-time constant, so a production\n * bundle minifies the effect body away to an empty function instead of reading\n * props and formatting a message per mounted component. The message is also\n * logged once per session rather than once per component instance.\n */\nexport function useDeprecatedPanelBackgroundWarning(panelBackground: unknown) {\n React.useEffect(() => {\n if (process.env.NODE_ENV === 'production') return;\n if (panelBackground !== undefined) warnOnce(PANEL_BACKGROUND_MESSAGE);\n }, [panelBackground]);\n}\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\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. Defines accent color for descendant text components\u00A0with `highContrast={true}`.\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\nexport {\n accentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColors, grayColors } from '../props/color.prop.js';\nimport { radii } from '../props/radius.prop.js';\n\nimport type { GetPropDefTypes, PropDef } from '../props/prop-def.js';\n\nconst appearances = ['inherit', 'light', 'dark'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\nconst materials = ['solid', 'translucent'] as const;\nconst scalings = ['90%', '95%', '100%', '105%', '110%'] as const;\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst themePropDefs = {\n ...asChildPropDef,\n /**\n * Whether to apply background color to the Theme element.\n *\n * Defaults to true for the root Theme and for Theme elements that\n * have an explicit light or dark appearance prop.\n */\n hasBackground: { type: 'boolean', default: true },\n /**\n * Sets the color scheme of the theme, typcially referred to as light and dark mode.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/dark-mode\n */\n appearance: { type: 'enum', values: appearances, default: 'inherit' },\n /**\n * Selects one of the accent color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n accentColor: { type: 'enum', values: accentColors, default: 'blue' },\n /**\n * Selects one of the gray color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n grayColor: { type: 'enum', values: grayColors, default: 'slate' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n material: { type: 'enum', values: materials, default: 'translucent' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @deprecated Use `material` prop instead. This prop will be removed in a future version.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n panelBackground: { type: 'enum', values: panelBackgrounds, default: 'translucent' },\n /**\n * Sets the default radius of the components.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n radius: { type: 'enum', values: radii, default: 'full' },\n /**\n * Sets a scaling multiplier for values like spacing, font sizes, line heights, etc. are scaled.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/layout\n */\n scaling: { type: 'enum', values: scalings, default: '100%' },\n /**\n * Sets the font family used for body text in the theme.\n *\n * Headings follow this unless `headingFontFamily` (or the `--font-heading`\n * token) says otherwise.\n *\n * @default 'sans'\n */\n fontFamily: { type: 'enum', values: fontFamilies, default: 'sans' },\n /**\n * Sets the font family used for `Heading`, independently of body text.\n *\n * Deliberately has no default: when it is left unset no attribute is\n * emitted and `--font-heading` keeps following `--font-body`, so a\n * `--font-heading` override in your own CSS survives a `fontFamily` switch.\n */\n headingFontFamily: { type: 'enum', values: fontFamilies },\n} satisfies {\n hasBackground: PropDef<boolean>;\n appearance: PropDef<(typeof appearances)[number]>;\n accentColor: PropDef<(typeof accentColors)[number]>;\n grayColor: PropDef<(typeof grayColors)[number]>;\n material: PropDef<(typeof materials)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number]>;\n radius: PropDef<(typeof radii)[number]>;\n scaling: PropDef<(typeof scalings)[number]>;\n fontFamily: PropDef<(typeof fontFamilies)[number]>;\n headingFontFamily: PropDef<(typeof fontFamilies)[number]>;\n};\n\ntype ThemeOwnProps = GetPropDefTypes<typeof themePropDefs & typeof asChildPropDef>;\n\nexport { themePropDefs };\nexport type { ThemeOwnProps };\n"],
4
+ "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Direction, Slot, Tooltip as TooltipPrimitive } from 'radix-ui';\nimport { useComposedRefs, useLayoutEffect } from 'radix-ui/internal';\n\nimport { getMatchingGrayColor } from '../helpers/get-matching-gray-color.js';\nimport { usePropSyncedState } from '../hooks/use-prop-synced-state.js';\nimport { useDeprecatedPanelBackgroundWarning } from '../helpers/use-deprecation-warning.js';\nimport { themePropDefs } from './theme.props.js';\n\nimport type { ThemeOwnProps } from './theme.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\nconst noop = () => {};\n\ntype ThemeAppearance = (typeof themePropDefs.appearance.values)[number];\ntype ThemeAccentColor = (typeof themePropDefs.accentColor.values)[number];\ntype ThemeGrayColor = (typeof themePropDefs.grayColor.values)[number];\ntype ThemeMaterial = (typeof themePropDefs.material.values)[number];\ntype ThemePanelBackground = (typeof themePropDefs.panelBackground.values)[number];\ntype ThemeRadius = (typeof themePropDefs.radius.values)[number];\ntype ThemeScaling = (typeof themePropDefs.scaling.values)[number];\ntype ThemeFontFamily = (typeof themePropDefs.fontFamily.values)[number];\n// Headings follow the body font until something sets this, so `undefined` is a\n// meaningful value here rather than a missing one.\ntype ThemeHeadingFontFamily = ThemeFontFamily | undefined;\n\ninterface ThemeChangeHandlers {\n onAppearanceChange: (appearance: ThemeAppearance) => void;\n onAccentColorChange: (accentColor: ThemeAccentColor) => void;\n onGrayColorChange: (grayColor: ThemeGrayColor) => void;\n onMaterialChange: (material: ThemeMaterial) => void;\n onPanelBackgroundChange: (panelBackground: ThemePanelBackground) => void;\n onRadiusChange: (radius: ThemeRadius) => void;\n onScalingChange: (scaling: ThemeScaling) => void;\n onFontFamilyChange: (fontFamily: ThemeFontFamily) => void;\n onHeadingFontFamilyChange: (headingFontFamily: ThemeHeadingFontFamily) => void;\n}\n\ninterface ThemeContextValue extends ThemeChangeHandlers {\n appearance: ThemeAppearance;\n accentColor: ThemeAccentColor;\n grayColor: ThemeGrayColor;\n resolvedGrayColor: ThemeGrayColor;\n material: ThemeMaterial;\n panelBackground: ThemePanelBackground;\n radius: ThemeRadius;\n scaling: ThemeScaling;\n fontFamily: ThemeFontFamily;\n headingFontFamily: ThemeHeadingFontFamily;\n}\n// Default theme values used when components render outside a Theme provider\nconst defaultThemeContext: ThemeContextValue = {\n appearance: themePropDefs.appearance.default,\n accentColor: themePropDefs.accentColor.default,\n grayColor: themePropDefs.grayColor.default,\n resolvedGrayColor: themePropDefs.grayColor.default,\n material: themePropDefs.material.default,\n panelBackground: themePropDefs.panelBackground.default,\n radius: themePropDefs.radius.default,\n scaling: themePropDefs.scaling.default,\n fontFamily: themePropDefs.fontFamily.default,\n headingFontFamily: undefined,\n onAppearanceChange: noop,\n onAccentColorChange: noop,\n onGrayColorChange: noop,\n onMaterialChange: noop,\n onPanelBackgroundChange: noop,\n onRadiusChange: noop,\n onScalingChange: noop,\n onFontFamilyChange: noop,\n onHeadingFontFamilyChange: noop,\n};\n\nconst ThemeContext = React.createContext<ThemeContextValue | undefined>(undefined);\n\nfunction useThemeContext() {\n const context = React.useContext(ThemeContext);\n // Return default context if used outside Theme provider (e.g., during SSR)\n return context ?? defaultThemeContext;\n}\n\ninterface ThemeProps extends ThemeImplPublicProps {}\nconst Theme = React.forwardRef<ThemeImplElement, ThemeProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n const isRoot = context === undefined;\n if (isRoot) {\n return (\n <TooltipPrimitive.Provider delayDuration={200}>\n <Direction.Provider dir=\"ltr\">\n <ThemeRoot {...props} ref={forwardedRef} />\n </Direction.Provider>\n </TooltipPrimitive.Provider>\n );\n }\n return <ThemeImpl {...props} ref={forwardedRef} />;\n});\nTheme.displayName = 'Theme';\n\nconst ThemeRoot = React.forwardRef<ThemeImplElement, ThemeImplPublicProps>(\n (props, forwardedRef) => {\n const {\n appearance: appearanceProp = themePropDefs.appearance.default,\n accentColor: accentColorProp = themePropDefs.accentColor.default,\n grayColor: grayColorProp = themePropDefs.grayColor.default,\n material: materialProp = themePropDefs.material.default,\n panelBackground: panelBackgroundProp = themePropDefs.panelBackground.default,\n radius: radiusProp = themePropDefs.radius.default,\n scaling: scalingProp = themePropDefs.scaling.default,\n fontFamily: fontFamilyProp = themePropDefs.fontFamily.default,\n headingFontFamily: headingFontFamilyProp,\n hasBackground = themePropDefs.hasBackground.default,\n ...rootProps\n } = props;\n\n useDeprecatedPanelBackgroundWarning(props.panelBackground);\n\n // Each of these follows its prop but stays independently settable, so\n // `ThemePanel` can change the theme at runtime. Syncing during render\n // rather than in an effect matters here: an effect would commit the old\n // theme first and re-render every consumer of the context a second time.\n const [appearance, setAppearance] = usePropSyncedState(appearanceProp);\n const [accentColor, setAccentColor] = usePropSyncedState(accentColorProp);\n const [grayColor, setGrayColor] = usePropSyncedState(grayColorProp);\n\n // Material takes precedence over panelBackground\n const effectiveMaterial =\n materialProp !== themePropDefs.material.default ? materialProp : panelBackgroundProp;\n const [material, setMaterial] = usePropSyncedState(effectiveMaterial);\n\n // Keep panelBackground in sync with material for backward compatibility\n const [panelBackground, setPanelBackground] = usePropSyncedState(material);\n\n const [radius, setRadius] = usePropSyncedState(radiusProp);\n const [scaling, setScaling] = usePropSyncedState(scalingProp);\n const [fontFamily, setFontFamily] = usePropSyncedState(fontFamilyProp);\n const [headingFontFamily, setHeadingFontFamily] = usePropSyncedState(headingFontFamilyProp);\n\n return (\n <ThemeImpl\n {...rootProps}\n ref={forwardedRef}\n isRoot\n hasBackground={hasBackground}\n //\n appearance={appearance}\n accentColor={accentColor}\n grayColor={grayColor}\n material={material}\n panelBackground={panelBackground}\n radius={radius}\n scaling={scaling}\n fontFamily={fontFamily}\n headingFontFamily={headingFontFamily}\n //\n onAppearanceChange={setAppearance}\n onAccentColorChange={setAccentColor}\n onGrayColorChange={setGrayColor}\n onMaterialChange={setMaterial}\n onPanelBackgroundChange={setPanelBackground}\n onRadiusChange={setRadius}\n onScalingChange={setScaling}\n onFontFamilyChange={setFontFamily}\n onHeadingFontFamilyChange={setHeadingFontFamily}\n />\n );\n },\n);\nThemeRoot.displayName = 'ThemeRoot';\n\ntype ThemeImplElement = React.ElementRef<'div'>;\ninterface ThemeImplProps extends ThemeImplPublicProps, ThemeImplPrivateProps {}\ninterface ThemeImplPublicProps\n extends ComponentPropsWithout<'div', RemovedProps | 'dir'>,\n ThemeOwnProps {}\ninterface ThemeImplPrivateProps extends Partial<ThemeChangeHandlers> {\n isRoot?: boolean;\n}\nfunction getClientOS(): 'windows' | 'macos' | 'linux' | undefined {\n if (typeof navigator === 'undefined') return undefined;\n const ua = navigator.userAgent;\n if (ua.includes('Win')) return 'windows';\n if (ua.includes('Mac')) return 'macos';\n if (ua.includes('Linux')) return 'linux';\n return undefined;\n}\n\nconst ThemeImpl = React.forwardRef<ThemeImplElement, ThemeImplProps>((props, forwardedRef) => {\n const context = React.useContext(ThemeContext);\n const {\n asChild,\n isRoot,\n hasBackground: hasBackgroundProp,\n //\n appearance = props.appearance ?? context?.appearance ?? themePropDefs.appearance.default,\n accentColor = props.accentColor ?? context?.accentColor ?? themePropDefs.accentColor.default,\n grayColor = props.grayColor ?? context?.resolvedGrayColor ?? themePropDefs.grayColor.default,\n material = props.material ?? context?.material ?? themePropDefs.material.default,\n panelBackground = props.panelBackground ??\n context?.panelBackground ??\n themePropDefs.panelBackground.default,\n radius = props.radius ?? context?.radius ?? themePropDefs.radius.default,\n scaling = props.scaling ?? context?.scaling ?? themePropDefs.scaling.default,\n fontFamily = props.fontFamily ?? context?.fontFamily ?? themePropDefs.fontFamily.default,\n headingFontFamily = props.headingFontFamily ?? context?.headingFontFamily,\n //\n onAppearanceChange = noop,\n onAccentColorChange = noop,\n onGrayColorChange = noop,\n onMaterialChange = noop,\n onPanelBackgroundChange = noop,\n onRadiusChange = noop,\n onScalingChange = noop,\n onFontFamilyChange = noop,\n onHeadingFontFamilyChange = noop,\n //\n ...themeProps\n } = props;\n const Comp = asChild ? Slot.Root : 'div';\n const resolvedGrayColor = grayColor === 'auto' ? getMatchingGrayColor(accentColor) : grayColor;\n const isExplicitAppearance = props.appearance === 'light' || props.appearance === 'dark';\n const hasBackground =\n hasBackgroundProp === undefined ? isRoot || isExplicitAppearance : hasBackgroundProp;\n\n // `data-os` can only be resolved on the client. Writing it straight to the\n // DOM keeps it out of the server markup \u2014 so hydration still matches \u2014 without\n // spending a render pass, and a state update here would re-render the whole\n // application on mount.\n const rootRef = React.useRef<ThemeImplElement>(null);\n const composedRef = useComposedRefs(forwardedRef, rootRef);\n const hasExplicitOS = 'data-os' in themeProps;\n\n useLayoutEffect(() => {\n if (!isRoot || hasExplicitOS) return;\n const node = rootRef.current;\n if (!node) return;\n\n const os = getClientOS();\n if (!os) return;\n node.setAttribute('data-os', os);\n return () => node.removeAttribute('data-os');\n }, [isRoot, hasExplicitOS]);\n\n return (\n <ThemeContext.Provider\n value={React.useMemo(\n () => ({\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n material,\n panelBackground,\n radius,\n scaling,\n fontFamily,\n headingFontFamily,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onMaterialChange,\n onPanelBackgroundChange,\n onRadiusChange,\n onScalingChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n }),\n [\n appearance,\n accentColor,\n grayColor,\n resolvedGrayColor,\n material,\n panelBackground,\n radius,\n scaling,\n fontFamily,\n headingFontFamily,\n //\n onAppearanceChange,\n onAccentColorChange,\n onGrayColorChange,\n onMaterialChange,\n onPanelBackgroundChange,\n onRadiusChange,\n onScalingChange,\n onFontFamilyChange,\n onHeadingFontFamilyChange,\n ],\n )}\n >\n <Comp\n data-is-root-theme={isRoot ? 'true' : 'false'}\n data-accent-color={accentColor}\n data-gray-color={resolvedGrayColor}\n // for nested `Theme` background\n data-has-background={hasBackground ? 'true' : 'false'}\n data-material={material}\n data-panel-background={panelBackground}\n data-radius={radius}\n data-scaling={scaling}\n data-font-family={fontFamily}\n data-heading-font-family={headingFontFamily}\n ref={composedRef}\n {...themeProps}\n className={classNames(\n 'radix-themes',\n {\n light: appearance === 'light',\n dark: appearance === 'dark',\n },\n themeProps.className,\n )}\n />\n </ThemeContext.Provider>\n );\n});\nThemeImpl.displayName = 'ThemeImpl';\n\nexport { Theme, ThemeContext, useThemeContext };\nexport type { ThemeProps, ThemeContextValue };\n", "import type { accentColors } from '../props/color.prop.js';\n\ntype ThemeAccentColor = (typeof accentColors)[number];\n\nexport function getMatchingGrayColor(accentColor: ThemeAccentColor) {\n switch (accentColor) {\n case 'tomato':\n case 'red':\n case 'ruby':\n case 'crimson':\n case 'pink':\n case 'plum':\n case 'purple':\n case 'violet':\n return 'mauve';\n case 'iris':\n case 'indigo':\n case 'blue':\n case 'sky':\n case 'cyan':\n return 'slate';\n case 'teal':\n case 'jade':\n case 'mint':\n case 'green':\n return 'sage';\n case 'grass':\n case 'lime':\n return 'olive';\n case 'yellow':\n case 'amber':\n case 'orange':\n case 'brown':\n case 'gold':\n case 'bronze':\n return 'sand';\n case 'gray':\n return 'gray';\n }\n}\n", "import * as React from 'react';\n\n/**\n * State that tracks a prop but can also be set imperatively \u2014 the shape `Theme`\n * needs, where a prop sets the value and `ThemePanel` can change it at runtime.\n *\n * Adjusts state during render rather than syncing in a `useEffect`. An effect\n * would commit one render carrying the *old* value and schedule a second one,\n * which for a provider means every consumer renders twice and the browser can\n * paint the stale value in between.\n *\n * @see https://react.dev/reference/react/useState#storing-information-from-previous-renders\n */\nexport function usePropSyncedState<T>(propValue: T) {\n const [value, setValue] = React.useState(propValue);\n const [previousPropValue, setPreviousPropValue] = React.useState(propValue);\n\n if (!Object.is(propValue, previousPropValue)) {\n setPreviousPropValue(propValue);\n setValue(propValue);\n }\n\n return [value, setValue] as const;\n}\n", "import * as React from 'react';\n\nconst PANEL_BACKGROUND_MESSAGE = 'Warning: The `panelBackground` prop is deprecated and will be removed in a future version. Use `material` prop instead.';\n\nconst warned = new Set<string>();\n\nfunction warnOnce(message: string) {\n if (warned.has(message)) return;\n warned.add(message);\n console.warn(message);\n}\n\n/**\n * Warns, in development only, that `panelBackground` is deprecated.\n *\n * The `process.env.NODE_ENV` check is a compile-time constant, so a production\n * bundle minifies the effect body away to an empty function instead of reading\n * props and formatting a message per mounted component. The message is also\n * logged once per session rather than once per component instance.\n */\nexport function useDeprecatedPanelBackgroundWarning(panelBackground: unknown) {\n React.useEffect(() => {\n if (process.env.NODE_ENV === 'production') return;\n if (panelBackground !== undefined) warnOnce(PANEL_BACKGROUND_MESSAGE);\n }, [panelBackground]);\n}\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\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\nexport {\n accentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColors, grayColors } from '../props/color.prop.js';\nimport { radii } from '../props/radius.prop.js';\n\nimport type { GetPropDefTypes, PropDef } from '../props/prop-def.js';\n\nconst appearances = ['inherit', 'light', 'dark'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\nconst materials = ['solid', 'translucent'] as const;\nconst scalings = ['90%', '95%', '100%', '105%', '110%'] as const;\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst themePropDefs = {\n ...asChildPropDef,\n /**\n * Whether to apply background color to the Theme element.\n *\n * Defaults to true for the root Theme and for Theme elements that\n * have an explicit light or dark appearance prop.\n */\n hasBackground: { type: 'boolean', default: true },\n /**\n * Sets the color scheme of the theme, typcially referred to as light and dark mode.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/dark-mode\n */\n appearance: { type: 'enum', values: appearances, default: 'inherit' },\n /**\n * Selects one of the accent color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n accentColor: { type: 'enum', values: accentColors, default: 'blue' },\n /**\n * Selects one of the gray color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n grayColor: { type: 'enum', values: grayColors, default: 'slate' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n material: { type: 'enum', values: materials, default: 'translucent' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @deprecated Use `material` prop instead. This prop will be removed in a future version.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n panelBackground: { type: 'enum', values: panelBackgrounds, default: 'translucent' },\n /**\n * Sets the default radius of the components.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n radius: { type: 'enum', values: radii, default: 'full' },\n /**\n * Sets a scaling multiplier for values like spacing, font sizes, line heights, etc. are scaled.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/layout\n */\n scaling: { type: 'enum', values: scalings, default: '100%' },\n /**\n * Sets the font family used for body text in the theme.\n *\n * Headings follow this unless `headingFontFamily` (or the `--font-heading`\n * token) says otherwise.\n *\n * @default 'sans'\n */\n fontFamily: { type: 'enum', values: fontFamilies, default: 'sans' },\n /**\n * Sets the font family used for `Heading`, independently of body text.\n *\n * Deliberately has no default: when it is left unset no attribute is\n * emitted and `--font-heading` keeps following `--font-body`, so a\n * `--font-heading` override in your own CSS survives a `fontFamily` switch.\n */\n headingFontFamily: { type: 'enum', values: fontFamilies },\n} satisfies {\n hasBackground: PropDef<boolean>;\n appearance: PropDef<(typeof appearances)[number]>;\n accentColor: PropDef<(typeof accentColors)[number]>;\n grayColor: PropDef<(typeof grayColors)[number]>;\n material: PropDef<(typeof materials)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number]>;\n radius: PropDef<(typeof radii)[number]>;\n scaling: PropDef<(typeof scalings)[number]>;\n fontFamily: PropDef<(typeof fontFamilies)[number]>;\n headingFontFamily: PropDef<(typeof fontFamilies)[number]>;\n};\n\ntype ThemeOwnProps = GetPropDefTypes<typeof themePropDefs & typeof asChildPropDef>;\n\nexport { themePropDefs };\nexport type { ThemeOwnProps };\n"],
5
5
  "mappings": "mlBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,WAAAE,GAAA,iBAAAC,EAAA,oBAAAC,KAAA,eAAAC,GAAAL,IAEA,IAAAM,EAAuB,oBACvBC,GAAuB,yBACvBC,EAA6D,oBAC7DC,EAAiD,6BCD1C,SAASC,EAAqBC,EAA+B,CAClE,OAAQA,EAAa,CACnB,IAAK,SACL,IAAK,MACL,IAAK,OACL,IAAK,UACL,IAAK,OACL,IAAK,OACL,IAAK,SACL,IAAK,SACH,MAAO,QACT,IAAK,OACL,IAAK,SACL,IAAK,OACL,IAAK,MACL,IAAK,OACH,MAAO,QACT,IAAK,OACL,IAAK,OACL,IAAK,OACL,IAAK,QACH,MAAO,OACT,IAAK,QACL,IAAK,OACH,MAAO,QACT,IAAK,SACL,IAAK,QACL,IAAK,SACL,IAAK,QACL,IAAK,OACL,IAAK,SACH,MAAO,OACT,IAAK,OACH,MAAO,MACX,CACF,CCvCA,IAAAC,EAAuB,oBAahB,SAASC,EAAsBC,EAAc,CAClD,GAAM,CAACC,EAAOC,CAAQ,EAAU,WAASF,CAAS,EAC5C,CAACG,EAAmBC,CAAoB,EAAU,WAASJ,CAAS,EAE1E,OAAK,OAAO,GAAGA,EAAWG,CAAiB,IACzCC,EAAqBJ,CAAS,EAC9BE,EAASF,CAAS,GAGb,CAACC,EAAOC,CAAQ,CACzB,CCvBA,IAAAG,EAAuB,oBAEjBC,GAA2B,0HAE3BC,EAAS,IAAI,IAEnB,SAASC,GAASC,EAAiB,CAC7BF,EAAO,IAAIE,CAAO,IACtBF,EAAO,IAAIE,CAAO,EAClB,QAAQ,KAAKA,CAAO,EACtB,CAUO,SAASC,EAAoCC,EAA0B,CACtE,YAAU,IAAM,CAGtB,EAAG,CAACA,CAAe,CAAC,CACtB,CCvBA,IAAMC,EAAiB,CAKrB,QAAS,CACP,KAAM,SACR,CACF,ECPA,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,EAEjPC,EAAa,CAAC,OAAQ,OAAQ,QAAS,QAAS,OAAQ,QAAS,MAAM,ECH7E,IAAMC,EAAQ,CAAC,OAAQ,QAAS,SAAU,QAAS,MAAM,ECIzD,IAAMC,GAAc,CAAC,UAAW,QAAS,MAAM,EACzCC,GAAmB,CAAC,QAAS,aAAa,EAC1CC,GAAY,CAAC,QAAS,aAAa,EACnCC,GAAW,CAAC,MAAO,MAAO,OAAQ,OAAQ,MAAM,EAChDC,GAAe,CAAC,OAAQ,OAAQ,OAAO,EAEvCC,EAAgB,CACpB,GAAGC,EAOH,cAAe,CAAE,KAAM,UAAW,QAAS,EAAK,EAOhD,WAAY,CAAE,KAAM,OAAQ,OAAQN,GAAa,QAAS,SAAU,EAOpE,YAAa,CAAE,KAAM,OAAQ,OAAQO,EAAc,QAAS,MAAO,EAOnE,UAAW,CAAE,KAAM,OAAQ,OAAQC,EAAY,QAAS,OAAQ,EAQhE,SAAU,CAAE,KAAM,OAAQ,OAAQN,GAAW,QAAS,aAAc,EAUpE,gBAAiB,CAAE,KAAM,OAAQ,OAAQD,GAAkB,QAAS,aAAc,EAOlF,OAAQ,CAAE,KAAM,OAAQ,OAAQQ,EAAO,QAAS,MAAO,EAOvD,QAAS,CAAE,KAAM,OAAQ,OAAQN,GAAU,QAAS,MAAO,EAS3D,WAAY,CAAE,KAAM,OAAQ,OAAQC,GAAc,QAAS,MAAO,EAQlE,kBAAmB,CAAE,KAAM,OAAQ,OAAQA,EAAa,CAC1D,EP5EA,IAAMM,EAAO,IAAM,CAAC,EAuCdC,GAAyC,CAC7C,WAAYC,EAAc,WAAW,QACrC,YAAaA,EAAc,YAAY,QACvC,UAAWA,EAAc,UAAU,QACnC,kBAAmBA,EAAc,UAAU,QAC3C,SAAUA,EAAc,SAAS,QACjC,gBAAiBA,EAAc,gBAAgB,QAC/C,OAAQA,EAAc,OAAO,QAC7B,QAASA,EAAc,QAAQ,QAC/B,WAAYA,EAAc,WAAW,QACrC,kBAAmB,OACnB,mBAAoBF,EACpB,oBAAqBA,EACrB,kBAAmBA,EACnB,iBAAkBA,EAClB,wBAAyBA,EACzB,eAAgBA,EAChB,gBAAiBA,EACjB,mBAAoBA,EACpB,0BAA2BA,CAC7B,EAEMG,EAAqB,gBAA6C,MAAS,EAEjF,SAASC,IAAkB,CAGzB,OAFsB,aAAWD,CAAY,GAE3BF,EACpB,CAGA,IAAMI,GAAc,aAAyC,CAACC,EAAOC,IAC7C,aAAWJ,CAAY,IAClB,OAGvB,gBAAC,EAAAK,QAAiB,SAAjB,CAA0B,cAAe,KACxC,gBAAC,YAAU,SAAV,CAAmB,IAAI,OACtB,gBAACC,GAAA,CAAW,GAAGH,EAAO,IAAKC,EAAc,CAC3C,CACF,EAGG,gBAACG,EAAA,CAAW,GAAGJ,EAAO,IAAKC,EAAc,CACjD,EACDF,GAAM,YAAc,QAEpB,IAAMI,GAAkB,aACtB,CAACH,EAAOC,IAAiB,CACvB,GAAM,CACJ,WAAYI,EAAiBT,EAAc,WAAW,QACtD,YAAaU,EAAkBV,EAAc,YAAY,QACzD,UAAWW,EAAgBX,EAAc,UAAU,QACnD,SAAUY,EAAeZ,EAAc,SAAS,QAChD,gBAAiBa,EAAsBb,EAAc,gBAAgB,QACrE,OAAQc,EAAad,EAAc,OAAO,QAC1C,QAASe,EAAcf,EAAc,QAAQ,QAC7C,WAAYgB,EAAiBhB,EAAc,WAAW,QACtD,kBAAmBiB,EACnB,cAAAC,EAAgBlB,EAAc,cAAc,QAC5C,GAAGmB,CACL,EAAIf,EAEJgB,EAAoChB,EAAM,eAAe,EAMzD,GAAM,CAACiB,EAAYC,CAAa,EAAIC,EAAmBd,CAAc,EAC/D,CAACe,EAAaC,CAAc,EAAIF,EAAmBb,CAAe,EAClE,CAACgB,EAAWC,CAAY,EAAIJ,EAAmBZ,CAAa,EAG5DiB,EACJhB,IAAiBZ,EAAc,SAAS,QAAUY,EAAeC,EAC7D,CAACgB,EAAUC,CAAW,EAAIP,EAAmBK,CAAiB,EAG9D,CAACG,EAAiBC,CAAkB,EAAIT,EAAmBM,CAAQ,EAEnE,CAACI,EAAQC,CAAS,EAAIX,EAAmBT,CAAU,EACnD,CAACqB,EAASC,CAAU,EAAIb,EAAmBR,CAAW,EACtD,CAACsB,EAAYC,CAAa,EAAIf,EAAmBP,CAAc,EAC/D,CAACuB,EAAmBC,CAAoB,EAAIjB,EAAmBN,CAAqB,EAE1F,OACE,gBAACT,EAAA,CACE,GAAGW,EACJ,IAAKd,EACL,OAAM,GACN,cAAea,EAEf,WAAYG,EACZ,YAAaG,EACb,UAAWE,EACX,SAAUG,EACV,gBAAiBE,EACjB,OAAQE,EACR,QAASE,EACT,WAAYE,EACZ,kBAAmBE,EAEnB,mBAAoBjB,EACpB,oBAAqBG,EACrB,kBAAmBE,EACnB,iBAAkBG,EAClB,wBAAyBE,EACzB,eAAgBE,EAChB,gBAAiBE,EACjB,mBAAoBE,EACpB,0BAA2BE,EAC7B,CAEJ,CACF,EACAjC,GAAU,YAAc,YAUxB,SAASkC,IAAyD,CAChE,GAAI,OAAO,UAAc,IAAa,OACtC,IAAMC,EAAK,UAAU,UACrB,GAAIA,EAAG,SAAS,KAAK,EAAG,MAAO,UAC/B,GAAIA,EAAG,SAAS,KAAK,EAAG,MAAO,QAC/B,GAAIA,EAAG,SAAS,OAAO,EAAG,MAAO,OAEnC,CAEA,IAAMlC,EAAkB,aAA6C,CAACJ,EAAOC,IAAiB,CAC5F,IAAMsC,EAAgB,aAAW1C,CAAY,EACvC,CACJ,QAAA2C,EACA,OAAAC,EACA,cAAeC,EAEf,WAAAzB,EAAajB,EAAM,YAAcuC,GAAS,YAAc3C,EAAc,WAAW,QACjF,YAAAwB,EAAcpB,EAAM,aAAeuC,GAAS,aAAe3C,EAAc,YAAY,QACrF,UAAA0B,EAAYtB,EAAM,WAAauC,GAAS,mBAAqB3C,EAAc,UAAU,QACrF,SAAA6B,EAAWzB,EAAM,UAAYuC,GAAS,UAAY3C,EAAc,SAAS,QACzE,gBAAA+B,EAAkB3B,EAAM,iBACtBuC,GAAS,iBACT3C,EAAc,gBAAgB,QAChC,OAAAiC,EAAS7B,EAAM,QAAUuC,GAAS,QAAU3C,EAAc,OAAO,QACjE,QAAAmC,EAAU/B,EAAM,SAAWuC,GAAS,SAAW3C,EAAc,QAAQ,QACrE,WAAAqC,EAAajC,EAAM,YAAcuC,GAAS,YAAc3C,EAAc,WAAW,QACjF,kBAAAuC,EAAoBnC,EAAM,mBAAqBuC,GAAS,kBAExD,mBAAAI,EAAqBjD,EACrB,oBAAAkD,EAAsBlD,EACtB,kBAAAmD,EAAoBnD,EACpB,iBAAAoD,EAAmBpD,EACnB,wBAAAqD,EAA0BrD,EAC1B,eAAAsD,EAAiBtD,EACjB,gBAAAuD,EAAkBvD,EAClB,mBAAAwD,EAAqBxD,EACrB,0BAAAyD,EAA4BzD,EAE5B,GAAG0D,CACL,EAAIpD,EACEqD,EAAOb,EAAU,OAAK,KAAO,MAC7Bc,EAAoBhC,IAAc,OAASiC,EAAqBnC,CAAW,EAAIE,EAC/EkC,EAAuBxD,EAAM,aAAe,SAAWA,EAAM,aAAe,OAC5Ec,EACJ4B,IAAsB,OAAYD,GAAUe,EAAuBd,EAM/De,EAAgB,SAAyB,IAAI,EAC7CC,KAAc,mBAAgBzD,EAAcwD,CAAO,EACnDE,EAAgB,YAAaP,EAEnC,4BAAgB,IAAM,CACpB,GAAI,CAACX,GAAUkB,EAAe,OAC9B,IAAMC,EAAOH,EAAQ,QACrB,GAAI,CAACG,EAAM,OAEX,IAAMC,EAAKxB,GAAY,EACvB,GAAKwB,EACL,OAAAD,EAAK,aAAa,UAAWC,CAAE,EACxB,IAAMD,EAAK,gBAAgB,SAAS,CAC7C,EAAG,CAACnB,EAAQkB,CAAa,CAAC,EAGxB,gBAAC9D,EAAa,SAAb,CACC,MAAa,UACX,KAAO,CACL,WAAAoB,EACA,YAAAG,EACA,UAAAE,EACA,kBAAAgC,EACA,SAAA7B,EACA,gBAAAE,EACA,OAAAE,EACA,QAAAE,EACA,WAAAE,EACA,kBAAAE,EAEA,mBAAAQ,EACA,oBAAAC,EACA,kBAAAC,EACA,iBAAAC,EACA,wBAAAC,EACA,eAAAC,EACA,gBAAAC,EACA,mBAAAC,EACA,0BAAAC,CACF,GACA,CACElC,EACAG,EACAE,EACAgC,EACA7B,EACAE,EACAE,EACAE,EACAE,EACAE,EAEAQ,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,CACF,CACF,GAEA,gBAACE,EAAA,CACC,qBAAoBZ,EAAS,OAAS,QACtC,oBAAmBrB,EACnB,kBAAiBkC,EAEjB,sBAAqBxC,EAAgB,OAAS,QAC9C,gBAAeW,EACf,wBAAuBE,EACvB,cAAaE,EACb,eAAcE,EACd,mBAAkBE,EAClB,2BAA0BE,EAC1B,IAAKuB,EACJ,GAAGN,EACJ,aAAW,GAAAU,SACT,eACA,CACE,MAAO7C,IAAe,QACtB,KAAMA,IAAe,MACvB,EACAmC,EAAW,SACb,EACF,CACF,CAEJ,CAAC,EACDhD,EAAU,YAAc",
6
6
  "names": ["theme_exports", "__export", "Theme", "ThemeContext", "useThemeContext", "__toCommonJS", "React", "import_classnames", "import_radix_ui", "import_internal", "getMatchingGrayColor", "accentColor", "React", "usePropSyncedState", "propValue", "value", "setValue", "previousPropValue", "setPreviousPropValue", "React", "PANEL_BACKGROUND_MESSAGE", "warned", "warnOnce", "message", "useDeprecatedPanelBackgroundWarning", "panelBackground", "asChildPropDef", "accentColors", "grayColors", "radii", "appearances", "panelBackgrounds", "materials", "scalings", "fontFamilies", "themePropDefs", "asChildPropDef", "accentColors", "grayColors", "radii", "noop", "defaultThemeContext", "themePropDefs", "ThemeContext", "useThemeContext", "Theme", "props", "forwardedRef", "TooltipPrimitive", "ThemeRoot", "ThemeImpl", "appearanceProp", "accentColorProp", "grayColorProp", "materialProp", "panelBackgroundProp", "radiusProp", "scalingProp", "fontFamilyProp", "headingFontFamilyProp", "hasBackground", "rootProps", "useDeprecatedPanelBackgroundWarning", "appearance", "setAppearance", "usePropSyncedState", "accentColor", "setAccentColor", "grayColor", "setGrayColor", "effectiveMaterial", "material", "setMaterial", "panelBackground", "setPanelBackground", "radius", "setRadius", "scaling", "setScaling", "fontFamily", "setFontFamily", "headingFontFamily", "setHeadingFontFamily", "getClientOS", "ua", "context", "asChild", "isRoot", "hasBackgroundProp", "onAppearanceChange", "onAccentColorChange", "onGrayColorChange", "onMaterialChange", "onPanelBackgroundChange", "onRadiusChange", "onScalingChange", "onFontFamilyChange", "onHeadingFontFamilyChange", "themeProps", "Comp", "resolvedGrayColor", "getMatchingGrayColor", "isExplicitAppearance", "rootRef", "composedRef", "hasExplicitOS", "node", "os", "classNames"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/theme.props.tsx", "../../../src/props/as-child.prop.ts", "../../../src/props/color.prop.ts", "../../../src/props/radius.prop.ts"],
4
- "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColors, grayColors } from '../props/color.prop.js';\nimport { radii } from '../props/radius.prop.js';\n\nimport type { GetPropDefTypes, PropDef } from '../props/prop-def.js';\n\nconst appearances = ['inherit', 'light', 'dark'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\nconst materials = ['solid', 'translucent'] as const;\nconst scalings = ['90%', '95%', '100%', '105%', '110%'] as const;\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst themePropDefs = {\n ...asChildPropDef,\n /**\n * Whether to apply background color to the Theme element.\n *\n * Defaults to true for the root Theme and for Theme elements that\n * have an explicit light or dark appearance prop.\n */\n hasBackground: { type: 'boolean', default: true },\n /**\n * Sets the color scheme of the theme, typcially referred to as light and dark mode.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/dark-mode\n */\n appearance: { type: 'enum', values: appearances, default: 'inherit' },\n /**\n * Selects one of the accent color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n accentColor: { type: 'enum', values: accentColors, default: 'blue' },\n /**\n * Selects one of the gray color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n grayColor: { type: 'enum', values: grayColors, default: 'slate' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n material: { type: 'enum', values: materials, default: 'translucent' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @deprecated Use `material` prop instead. This prop will be removed in a future version.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n panelBackground: { type: 'enum', values: panelBackgrounds, default: 'translucent' },\n /**\n * Sets the default radius of the components.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n radius: { type: 'enum', values: radii, default: 'full' },\n /**\n * Sets a scaling multiplier for values like spacing, font sizes, line heights, etc. are scaled.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/layout\n */\n scaling: { type: 'enum', values: scalings, default: '100%' },\n /**\n * Sets the font family used for body text in the theme.\n *\n * Headings follow this unless `headingFontFamily` (or the `--font-heading`\n * token) says otherwise.\n *\n * @default 'sans'\n */\n fontFamily: { type: 'enum', values: fontFamilies, default: 'sans' },\n /**\n * Sets the font family used for `Heading`, independently of body text.\n *\n * Deliberately has no default: when it is left unset no attribute is\n * emitted and `--font-heading` keeps following `--font-body`, so a\n * `--font-heading` override in your own CSS survives a `fontFamily` switch.\n */\n headingFontFamily: { type: 'enum', values: fontFamilies },\n} satisfies {\n hasBackground: PropDef<boolean>;\n appearance: PropDef<(typeof appearances)[number]>;\n accentColor: PropDef<(typeof accentColors)[number]>;\n grayColor: PropDef<(typeof grayColors)[number]>;\n material: PropDef<(typeof materials)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number]>;\n radius: PropDef<(typeof radii)[number]>;\n scaling: PropDef<(typeof scalings)[number]>;\n fontFamily: PropDef<(typeof fontFamilies)[number]>;\n headingFontFamily: PropDef<(typeof fontFamilies)[number]>;\n};\n\ntype ThemeOwnProps = GetPropDefTypes<typeof themePropDefs & typeof asChildPropDef>;\n\nexport { themePropDefs };\nexport type { ThemeOwnProps };\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\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. Defines accent color for descendant text components\u00A0with `highContrast={true}`.\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\nexport {\n accentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n"],
4
+ "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColors, grayColors } from '../props/color.prop.js';\nimport { radii } from '../props/radius.prop.js';\n\nimport type { GetPropDefTypes, PropDef } from '../props/prop-def.js';\n\nconst appearances = ['inherit', 'light', 'dark'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\nconst materials = ['solid', 'translucent'] as const;\nconst scalings = ['90%', '95%', '100%', '105%', '110%'] as const;\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst themePropDefs = {\n ...asChildPropDef,\n /**\n * Whether to apply background color to the Theme element.\n *\n * Defaults to true for the root Theme and for Theme elements that\n * have an explicit light or dark appearance prop.\n */\n hasBackground: { type: 'boolean', default: true },\n /**\n * Sets the color scheme of the theme, typcially referred to as light and dark mode.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/dark-mode\n */\n appearance: { type: 'enum', values: appearances, default: 'inherit' },\n /**\n * Selects one of the accent color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n accentColor: { type: 'enum', values: accentColors, default: 'blue' },\n /**\n * Selects one of the gray color options to use in the Theme.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/color\n */\n grayColor: { type: 'enum', values: grayColors, default: 'slate' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n material: { type: 'enum', values: materials, default: 'translucent' },\n /**\n * Controls whether to use a solid or translucent background color on panelled\n * elements such as Card or Table is solid or translucent.\n *\n * @deprecated Use `material` prop instead. This prop will be removed in a future version.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n panelBackground: { type: 'enum', values: panelBackgrounds, default: 'translucent' },\n /**\n * Sets the default radius of the components.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/visual-style\n */\n radius: { type: 'enum', values: radii, default: 'full' },\n /**\n * Sets a scaling multiplier for values like spacing, font sizes, line heights, etc. are scaled.\n *\n * @link\n * https://www.radix-ui.com/themes/docs/theme/layout\n */\n scaling: { type: 'enum', values: scalings, default: '100%' },\n /**\n * Sets the font family used for body text in the theme.\n *\n * Headings follow this unless `headingFontFamily` (or the `--font-heading`\n * token) says otherwise.\n *\n * @default 'sans'\n */\n fontFamily: { type: 'enum', values: fontFamilies, default: 'sans' },\n /**\n * Sets the font family used for `Heading`, independently of body text.\n *\n * Deliberately has no default: when it is left unset no attribute is\n * emitted and `--font-heading` keeps following `--font-body`, so a\n * `--font-heading` override in your own CSS survives a `fontFamily` switch.\n */\n headingFontFamily: { type: 'enum', values: fontFamilies },\n} satisfies {\n hasBackground: PropDef<boolean>;\n appearance: PropDef<(typeof appearances)[number]>;\n accentColor: PropDef<(typeof accentColors)[number]>;\n grayColor: PropDef<(typeof grayColors)[number]>;\n material: PropDef<(typeof materials)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number]>;\n radius: PropDef<(typeof radii)[number]>;\n scaling: PropDef<(typeof scalings)[number]>;\n fontFamily: PropDef<(typeof fontFamilies)[number]>;\n headingFontFamily: PropDef<(typeof fontFamilies)[number]>;\n};\n\ntype ThemeOwnProps = GetPropDefTypes<typeof themePropDefs & typeof asChildPropDef>;\n\nexport { themePropDefs };\nexport type { ThemeOwnProps };\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\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\nexport {\n accentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import type { PropDef } from './prop-def.js';\n\nconst radii = ['none', 'small', 'medium', 'large', 'full'] as const;\n\nconst radiusPropDef = {\n radius: {\n type: 'enum',\n values: radii,\n default: undefined,\n },\n} satisfies {\n radius: PropDef<(typeof radii)[number]>;\n};\n\nexport { radiusPropDef, radii };\n"],
5
5
  "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,IAAA,eAAAC,EAAAH,GCEA,IAAMI,EAAiB,CAKrB,QAAS,CACP,KAAM,SACR,CACF,ECPA,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,EAEjPC,EAAa,CAAC,OAAQ,OAAQ,QAAS,QAAS,OAAQ,QAAS,MAAM,ECH7E,IAAMC,EAAQ,CAAC,OAAQ,QAAS,SAAU,QAAS,MAAM,EHIzD,IAAMC,EAAc,CAAC,UAAW,QAAS,MAAM,EACzCC,EAAmB,CAAC,QAAS,aAAa,EAC1CC,EAAY,CAAC,QAAS,aAAa,EACnCC,EAAW,CAAC,MAAO,MAAO,OAAQ,OAAQ,MAAM,EAChDC,EAAe,CAAC,OAAQ,OAAQ,OAAO,EAEvCC,EAAgB,CACpB,GAAGC,EAOH,cAAe,CAAE,KAAM,UAAW,QAAS,EAAK,EAOhD,WAAY,CAAE,KAAM,OAAQ,OAAQN,EAAa,QAAS,SAAU,EAOpE,YAAa,CAAE,KAAM,OAAQ,OAAQO,EAAc,QAAS,MAAO,EAOnE,UAAW,CAAE,KAAM,OAAQ,OAAQC,EAAY,QAAS,OAAQ,EAQhE,SAAU,CAAE,KAAM,OAAQ,OAAQN,EAAW,QAAS,aAAc,EAUpE,gBAAiB,CAAE,KAAM,OAAQ,OAAQD,EAAkB,QAAS,aAAc,EAOlF,OAAQ,CAAE,KAAM,OAAQ,OAAQQ,EAAO,QAAS,MAAO,EAOvD,QAAS,CAAE,KAAM,OAAQ,OAAQN,EAAU,QAAS,MAAO,EAS3D,WAAY,CAAE,KAAM,OAAQ,OAAQC,EAAc,QAAS,MAAO,EAQlE,kBAAmB,CAAE,KAAM,OAAQ,OAAQA,CAAa,CAC1D",
6
6
  "names": ["theme_props_exports", "__export", "themePropDefs", "__toCommonJS", "asChildPropDef", "accentColors", "grayColors", "radii", "appearances", "panelBackgrounds", "materials", "scalings", "fontFamilies", "themePropDefs", "asChildPropDef", "accentColors", "grayColors", "radii"]
7
7
  }
@@ -1,4 +1,4 @@
1
- "use strict";var Rt=Object.create;var Q=Object.defineProperty;var Tt=Object.getOwnPropertyDescriptor;var xt=Object.getOwnPropertyNames;var St=Object.getPrototypeOf,Nt=Object.prototype.hasOwnProperty;var wt=(e,t)=>{for(var o in t)Q(e,o,{get:t[o],enumerable:!0})},Fe=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of xt(t))!Nt.call(e,n)&&n!==o&&Q(e,n,{get:()=>t[n],enumerable:!(r=Tt(t,n))||r.enumerable});return e};var y=(e,t,o)=>(o=e!=null?Rt(St(e)):{},Fe(t||!e||!e.__esModule?Q(o,"default",{value:e,enumerable:!0}):o,e)),Bt=e=>Fe(Q({},"__esModule",{value:!0}),e);var Po={};wt(Po,{ToggleButton:()=>Ct});module.exports=Bt(Po);var k=y(require("react")),bt=require("radix-ui");var O=y(require("react")),ht=y(require("classnames"));var g=y(require("react")),tt=y(require("classnames")),ot=require("radix-ui");var F={asChild:{type:"boolean"}};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"],je=["auto","gray","mauve","slate","sage","olive","sand"],Oe={color:{type:"enum",values:Z,default:void 0}},Ee={color:{type:"enum",values:Z,default:""}};var ee={highContrast:{type:"boolean",className:"rt-high-contrast",default:void 0}};var fe=["none","small","medium","large","full"],Ge={radius:{type:"enum",values:fe,default:void 0}};var kt=["1","2","3","4"],Vt=["classic","solid","soft","surface","outline","ghost","override"],Ft=["solid","translucent"],jt=["solid","translucent"],ce={...F,size:{type:"enum",className:"rt-r-size",values:kt,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:Vt,default:"solid"},...Ee,...ee,...Ge,loading:{type:"boolean",className:"rt-loading",default:!1},fullWidth:{type:"boolean",className:"rt-full-width",default:!1},material:{type:"enum",values:jt,default:void 0},panelBackground:{type:"enum",values:Ft,default:void 0},flush:{type:"boolean",default:!1}};var re=y(require("react")),_e=y(require("classnames"));var ze=y(require("classnames"));var Ot=[],Et=new Set;function Gt(e){let t=Object.assign({},...e),o=[],r=[],n=new Set;for(let p in t){let s=t[p],a=s.values??Ot,l={key:p,type:s.type,default:s.default,hasDefault:s.default!==void 0,responsive:"responsive"in s,className:s.className,customProperties:s.customProperties,parseValue:s.parseValue,values:a,valueSet:a.length>0?new Set(a):Et,enumValueSet:s.type==="enum"?new Set([s.default,...a]):void 0};s.className?(o.push(l),n.add(p)):(l.hasDefault||s.type==="enum")&&r.push(l)}return{styling:o,passthrough:r,stylingKeys:n}}var Wt={children:new WeakMap};function We(e){let t=Wt;for(let o=0;o<e.length;o++){let r=e[o],n=t.children.get(r);n===void 0&&(n={children:new WeakMap},t.children.set(r,n)),t=n}return t.compiled??(t.compiled=Gt(e))}var At=["initial","xs","sm","md","lg","xl"],de=new Set(At);function ye(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Mt=new Set(["initial","xs","sm","md","lg","xl"]);function E(e){if(typeof e!="object"||e===null)return!1;for(let t in e)if(Mt.has(t))return!0;return!1}function te(e,t,o){return t!==void 0?t.has(o):e.includes(o)}function Me({className:e,customProperties:t,...o}){let r=ge({allowArbitraryValues:!0,className:e,...o}),n=zt({customProperties:t,...o});return[r,n]}function ge({allowArbitraryValues:e,value:t,className:o,propValues:r,propValueSet:n,parseValue:p=s=>s}){if(t){if(typeof t=="string")return te(r,n,t)?Ae(o,t,p):e?o:void 0;if(E(t)){let s=t,a=[];for(let l in s){if(!ye(s,l)||!de.has(l))continue;let i=s[l];if(i!==void 0){if(te(r,n,i)){let u=Ae(o,i,p),c=l==="initial"?u:`${l}:${u}`;a.push(c)}else if(e){let u=l==="initial"?o:`${l}:${o}`;a.push(u)}}}return a.length>0?a.join(" "):""}if(e)return o}}function Ae(e,t,o){let r=e?"-":"",n=o(t),p=n?.startsWith("-"),s=p?"-":"",a=p?n?.substring(1):n;return`${s}${e}${r}${a}`}function zt({customProperties:e,value:t,propValues:o,propValueSet:r,parseValue:n=p=>p}){if(!t||typeof t=="string"&&te(o,r,t))return;let p;if(typeof t=="string"){let s=n(t);p={};for(let a of e)p[a]=s;return p}if(E(t)){let s=t;for(let a in s){if(!ye(s,a)||!de.has(a))continue;let l=s[a];if(l===void 0||te(o,r,l))continue;let i=n(l);p??(p={});for(let u of e){let c=a==="initial"?u:`${u}-${a}`;p[c]=i}}}return p??{}}function Pe(...e){let t;for(let o of e)o&&(t===void 0&&(t={}),Object.assign(t,o));return t}function It(e,t){let o=e.initial,r=!1;return t.hasDefault&&o===void 0&&(o=t.default,r=!0),t.enumValueSet!==void 0&&!t.enumValueSet.has(o)&&(o=t.default,r=!0),r?{...e,initial:o}:e}function x(e,...t){let{styling:o,passthrough:r,stylingKeys:n}=We(t),p={};for(let l in e)n.has(l)||(p[l]=e[l]);for(let l=0;l<r.length;l++){let i=r[l],u=p[i.key];if(u===void 0){i.hasDefault&&(p[i.key]=i.default);continue}i.enumValueSet!==void 0&&!i.enumValueSet.has(u)&&!E(u)&&(p[i.key]=i.default)}let s,a=[];for(let l=0;l<o.length;l++){let i=o[l],u=e[i.key];if(u===void 0&&i.hasDefault&&(u=i.default),i.enumValueSet!==void 0&&!i.enumValueSet.has(u)&&!E(u)&&(u=i.default),!!u){if(E(u)){if(!i.responsive)continue;u=It(u,i)}if(i.type==="enum"){let c=ge({allowArbitraryValues:!1,value:u,className:i.className,propValues:i.values,propValueSet:i.valueSet,parseValue:i.parseValue});c&&a.push(c);continue}if(i.type==="string"||i.type==="enum | string"){let[c,b]=Me({className:i.className,customProperties:i.customProperties,propValues:i.type==="string"?[]:i.values,propValueSet:i.type==="string"?void 0:i.valueSet,parseValue:i.parseValue,value:u});b&&(s=Pe(s,b)),c&&a.push(c);continue}if(i.type==="boolean"){a.push(i.className);continue}}}return p.className=(0,ze.default)(a.length>0?a.join(" "):void 0,e.className),p.style=Pe(s,e.style),p}var G=["0","1","2","3","4","5","6","7","8","9","10","11","12"],Ie={p:{type:"enum | string",className:"rt-r-p",customProperties:["--p"],values:G,responsive:!0},px:{type:"enum | string",className:"rt-r-px",customProperties:["--pl","--pr"],values:G,responsive:!0},py:{type:"enum | string",className:"rt-r-py",customProperties:["--pt","--pb"],values:G,responsive:!0},pt:{type:"enum | string",className:"rt-r-pt",customProperties:["--pt"],values:G,responsive:!0},pr:{type:"enum | string",className:"rt-r-pr",customProperties:["--pr"],values:G,responsive:!0},pb:{type:"enum | string",className:"rt-r-pb",customProperties:["--pb"],values:G,responsive:!0},pl:{type:"enum | string",className:"rt-r-pl",customProperties:["--pl"],values:G,responsive:!0}};var He={height:{type:"string",className:"rt-r-h",customProperties:["--height"],responsive:!0},minHeight:{type:"string",className:"rt-r-min-h",customProperties:["--min-height"],responsive:!0},maxHeight:{type:"string",className:"rt-r-max-h",customProperties:["--max-height"],responsive:!0}};var z={width:{type:"string",className:"rt-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"rt-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"rt-r-max-w",customProperties:["--max-width"],responsive:!0}};var he=["visible","hidden","clip","scroll","auto"],Ht=["static","relative","absolute","fixed","sticky"],Y=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],$t=["0","1"],Lt=["0","1"],Kt=["start","center","end","baseline","stretch"],Ut=["start","center","end","baseline","stretch"],$e={...Ie,...z,...He,position:{type:"enum",className:"rt-r-position",values:Ht,responsive:!0},inset:{type:"enum | string",className:"rt-r-inset",customProperties:["--inset"],values:Y,responsive:!0},top:{type:"enum | string",className:"rt-r-top",customProperties:["--top"],values:Y,responsive:!0},right:{type:"enum | string",className:"rt-r-right",customProperties:["--right"],values:Y,responsive:!0},bottom:{type:"enum | string",className:"rt-r-bottom",customProperties:["--bottom"],values:Y,responsive:!0},left:{type:"enum | string",className:"rt-r-left",customProperties:["--left"],values:Y,responsive:!0},overflow:{type:"enum",className:"rt-r-overflow",values:he,responsive:!0},overflowX:{type:"enum",className:"rt-r-ox",values:he,responsive:!0},overflowY:{type:"enum",className:"rt-r-oy",values:he,responsive:!0},flexBasis:{type:"string",className:"rt-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"rt-r-fs",customProperties:["--flex-shrink"],values:$t,responsive:!0},flexGrow:{type:"enum | string",className:"rt-r-fg",customProperties:["--flex-grow"],values:Lt,responsive:!0},gridArea:{type:"string",className:"rt-r-ga",customProperties:["--grid-area"],responsive:!0},gridColumn:{type:"string",className:"rt-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"rt-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"rt-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"rt-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"rt-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"rt-r-gre",customProperties:["--grid-row-end"],responsive:!0},alignSelf:{type:"enum",className:"rt-r-as",values:Kt,responsive:!0},justifySelf:{type:"enum",className:"rt-r-js",values:Ut,responsive:!0}};var W=["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"],j={m:{type:"enum | string",values:W,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:W,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:W,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:W,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:W,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:W,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:W,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var oe=require("radix-ui"),Xo=oe.Slot.Root,Le=oe.Slot.Root,Jo=oe.Slot.Slottable;var ve=["0","1","2","3","4","5","6","7","8","9","10","11","12"],Ke={gap:{type:"enum | string",className:"rt-r-gap",customProperties:["--gap"],values:ve,responsive:!0},gapX:{type:"enum | string",className:"rt-r-cg",customProperties:["--column-gap"],values:ve,responsive:!0},gapY:{type:"enum | string",className:"rt-r-rg",customProperties:["--row-gap"],values:ve,responsive:!0}};var _t=["div","span"],Yt=["none","inline-flex","flex"],qt=["row","column","row-reverse","column-reverse"],Xt=["start","center","end","baseline","stretch"],Jt=["start","center","end","between"],Qt=["nowrap","wrap","wrap-reverse"],Ue={as:{type:"enum",values:_t,default:"div"},...F,display:{type:"enum",className:"rt-r-display",values:Yt,responsive:!0},direction:{type:"enum",className:"rt-r-fd",values:qt,responsive:!0},align:{type:"enum",className:"rt-r-ai",values:Xt,responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:Jt,parseValue:Zt,responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:Qt,responsive:!0},...Ke};function Zt(e){return e==="between"?"space-between":e}var I=re.forwardRef((e,t)=>{let{className:o,asChild:r,as:n="div",...p}=x(e,Ue,$e,j);return re.createElement(r?Le:n,{...p,ref:t,className:(0,_e.default)("rt-Flex",o)})});I.displayName="Flex";var D=y(require("react")),qe=y(require("classnames"));var eo=["1","2","3"],Ye={size:{type:"enum",className:"rt-r-size",values:eo,default:"2",responsive:!0},loading:{type:"boolean",default:!0}};var De=D.forwardRef((e,t)=>{let{className:o,children:r,loading:n,...p}=x(e,Ye,j);if(!n)return r;let s=D.createElement("span",{...p,ref:t,className:(0,qe.default)("rt-Spinner",o)},D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}));return r===void 0?s:D.createElement(I,{asChild:!0,position:"relative",align:"center",justify:"center"},D.createElement("span",null,D.createElement("span",{"aria-hidden":!0,style:{display:"contents",visibility:"hidden"},inert:void 0},r),D.createElement(I,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},D.createElement("span",null,s))))});De.displayName="Spinner";var be=require("radix-ui"),Xe=be.VisuallyHidden.Root,yr=be.VisuallyHidden.Root;var Qe=y(require("react")),to="Warning: The `panelBackground` prop is deprecated and will be removed in a future version. Use `material` prop instead.",Je=new Set;function oo(e){Je.has(e)||(Je.add(e),console.warn(e))}function ne(e){Qe.useEffect(()=>{},[e])}function Ze(e,t){if(e!==void 0)return typeof e=="string"?t(e):Object.fromEntries(Object.entries(e).map(([o,r])=>[o,t(r)]))}function et(e){switch(e){case"1":return"1";case"2":case"3":return"2";case"4":return"3"}}var Ce=g.forwardRef((e,t)=>{let{size:o=ce.size.default}=e,{className:r,children:n,asChild:p,as:s,color:a,radius:l,material:i,panelBackground:u,flush:c,disabled:b=e.loading,...C}=x(e,ce,j);ne(e.panelBackground);let T=i??u,w=p?ot.Slot.Root:s||"button",B=p||!s||["button","input","textarea","select"].includes(s),h=!p&&(!s||s==="button"),R="type"in C,v=g.useId(),f=e.loading?`${v}-loading`:void 0,V=g.useMemo(()=>typeof n=="string"?n:g.isValidElement(n)&&typeof n.props?.children=="string"?n.props.children:"button",[n]),M=g.useMemo(()=>e.loading?{"aria-busy":!0,"aria-disabled":!0,"aria-describedby":f,"aria-label":`${V} (loading)`}:{},[e.loading,f,V]);return g.createElement(w,{"data-disabled":b||void 0,"data-accent-color":a,"data-radius":l,"data-material":T,"data-panel-background":T,"data-flush":c?"true":void 0,...C,...M,ref:t,className:(0,tt.default)("rt-reset","rt-BaseButton",r),...B&&{disabled:b},...h&&!R?{type:"button"}:{}},e.loading?g.createElement(g.Fragment,null,g.createElement("span",{style:{display:"contents",visibility:"hidden"},"aria-hidden":!0},n),g.createElement(Xe,null,g.createElement("span",{id:f},V," is loading, please wait..."),n),g.createElement(I,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},g.createElement("span",null,g.createElement(De,{size:Ze(o,et),"aria-hidden":"true"})))):n)});Ce.displayName="BaseButton";var N=y(require("react")),gt=y(require("classnames")),$=require("radix-ui");var A=y(require("react")),ut=require("radix-ui");var ro=["normal","start","end","both"],rt={trim:{type:"enum",className:"rt-r-lt",values:ro,responsive:!0}};var no=["left","center","right"],nt={align:{type:"enum",className:"rt-r-ta",values:no,responsive:!0}};var so=["wrap","nowrap","pretty","balance"],st={wrap:{type:"enum",className:"rt-r-tw",values:so,responsive:!0}};var at={truncate:{type:"boolean",className:"rt-truncate"}};var ao=["sans","mono","serif"],it={font:{type:"enum",className:"rt-r-ff",values:ao}};var io=["thin","extralight","light","regular","medium","semibold","bold","extrabold"],pt={weight:{type:"enum",className:"rt-r-weight",values:io,responsive:!0}};var po=["span","div","label","p"],lo=["0","1","2","3","4","5","6","7","8","9","10","11","12"],lt={as:{type:"enum",values:po,default:"span"},...F,size:{type:"enum",className:"rt-r-size",values:lo,responsive:!0},...it,...pt,...nt,...rt,...at,...st,...Oe,...ee};var uo={...lt,...j},Re=A.memo(A.forwardRef((e,t)=>{let{children:o,className:r,asChild:n,as:p="span",color:s,...a}=x(e,uo),l=r?`rt-Text ${r}`:"rt-Text";return n?A.createElement(ut.Slot.Root,{"data-accent-color":s,...a,ref:t,className:l},o):A.createElement(p,{"data-accent-color":s,...a,ref:t,className:l},o)}));Re.displayName="Text";var d=y(require("react")),ct=y(require("classnames")),H=require("radix-ui"),se=require("radix-ui/internal");function mt(e){switch(e){case"tomato":case"red":case"ruby":case"crimson":case"pink":case"plum":case"purple":case"violet":return"mauve";case"iris":case"indigo":case"blue":case"sky":case"cyan":return"slate";case"teal":case"jade":case"mint":case"green":return"sage";case"grass":case"lime":return"olive";case"yellow":case"amber":case"orange":case"brown":case"gold":case"bronze":return"sand";case"gray":return"gray"}}var Te=y(require("react"));function S(e){let[t,o]=Te.useState(e),[r,n]=Te.useState(e);return Object.is(e,r)||(n(e),o(e)),[t,o]}var mo=["inherit","light","dark"],fo=["solid","translucent"],co=["solid","translucent"],yo=["90%","95%","100%","105%","110%"],ft=["sans","mono","serif"],m={...F,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:mo,default:"inherit"},accentColor:{type:"enum",values:Z,default:"blue"},grayColor:{type:"enum",values:je,default:"slate"},material:{type:"enum",values:co,default:"translucent"},panelBackground:{type:"enum",values:fo,default:"translucent"},radius:{type:"enum",values:fe,default:"full"},scaling:{type:"enum",values:yo,default:"100%"},fontFamily:{type:"enum",values:ft,default:"sans"},headingFontFamily:{type:"enum",values:ft}};var P=()=>{},nn={appearance:m.appearance.default,accentColor:m.accentColor.default,grayColor:m.grayColor.default,resolvedGrayColor:m.grayColor.default,material:m.material.default,panelBackground:m.panelBackground.default,radius:m.radius.default,scaling:m.scaling.default,fontFamily:m.fontFamily.default,headingFontFamily:void 0,onAppearanceChange:P,onAccentColorChange:P,onGrayColorChange:P,onMaterialChange:P,onPanelBackgroundChange:P,onRadiusChange:P,onScalingChange:P,onFontFamilyChange:P,onHeadingFontFamilyChange:P},xe=d.createContext(void 0);var Se=d.forwardRef((e,t)=>d.useContext(xe)===void 0?d.createElement(H.Tooltip.Provider,{delayDuration:200},d.createElement(H.Direction.Provider,{dir:"ltr"},d.createElement(dt,{...e,ref:t}))):d.createElement(Ne,{...e,ref:t}));Se.displayName="Theme";var dt=d.forwardRef((e,t)=>{let{appearance:o=m.appearance.default,accentColor:r=m.accentColor.default,grayColor:n=m.grayColor.default,material:p=m.material.default,panelBackground:s=m.panelBackground.default,radius:a=m.radius.default,scaling:l=m.scaling.default,fontFamily:i=m.fontFamily.default,headingFontFamily:u,hasBackground:c=m.hasBackground.default,...b}=e;ne(e.panelBackground);let[C,T]=S(o),[w,B]=S(r),[h,R]=S(n),v=p!==m.material.default?p:s,[f,V]=S(v),[M,q]=S(f),[U,ie]=S(a),[_,pe]=S(l),[le,X]=S(i),[ue,J]=S(u);return d.createElement(Ne,{...b,ref:t,isRoot:!0,hasBackground:c,appearance:C,accentColor:w,grayColor:h,material:f,panelBackground:M,radius:U,scaling:_,fontFamily:le,headingFontFamily:ue,onAppearanceChange:T,onAccentColorChange:B,onGrayColorChange:R,onMaterialChange:V,onPanelBackgroundChange:q,onRadiusChange:ie,onScalingChange:pe,onFontFamilyChange:X,onHeadingFontFamilyChange:J})});dt.displayName="ThemeRoot";function go(){if(typeof navigator>"u")return;let e=navigator.userAgent;if(e.includes("Win"))return"windows";if(e.includes("Mac"))return"macos";if(e.includes("Linux"))return"linux"}var Ne=d.forwardRef((e,t)=>{let o=d.useContext(xe),{asChild:r,isRoot:n,hasBackground:p,appearance:s=e.appearance??o?.appearance??m.appearance.default,accentColor:a=e.accentColor??o?.accentColor??m.accentColor.default,grayColor:l=e.grayColor??o?.resolvedGrayColor??m.grayColor.default,material:i=e.material??o?.material??m.material.default,panelBackground:u=e.panelBackground??o?.panelBackground??m.panelBackground.default,radius:c=e.radius??o?.radius??m.radius.default,scaling:b=e.scaling??o?.scaling??m.scaling.default,fontFamily:C=e.fontFamily??o?.fontFamily??m.fontFamily.default,headingFontFamily:T=e.headingFontFamily??o?.headingFontFamily,onAppearanceChange:w=P,onAccentColorChange:B=P,onGrayColorChange:h=P,onMaterialChange:R=P,onPanelBackgroundChange:v=P,onRadiusChange:f=P,onScalingChange:V=P,onFontFamilyChange:M=P,onHeadingFontFamilyChange:q=P,...U}=e,ie=r?H.Slot.Root:"div",_=l==="auto"?mt(a):l,pe=e.appearance==="light"||e.appearance==="dark",le=p===void 0?n||pe:p,X=d.useRef(null),ue=(0,se.useComposedRefs)(t,X),J="data-os"in U;return(0,se.useLayoutEffect)(()=>{if(!n||J)return;let me=X.current;if(!me)return;let Ve=go();if(Ve)return me.setAttribute("data-os",Ve),()=>me.removeAttribute("data-os")},[n,J]),d.createElement(xe.Provider,{value:d.useMemo(()=>({appearance:s,accentColor:a,grayColor:l,resolvedGrayColor:_,material:i,panelBackground:u,radius:c,scaling:b,fontFamily:C,headingFontFamily:T,onAppearanceChange:w,onAccentColorChange:B,onGrayColorChange:h,onMaterialChange:R,onPanelBackgroundChange:v,onRadiusChange:f,onScalingChange:V,onFontFamilyChange:M,onHeadingFontFamilyChange:q}),[s,a,l,_,i,u,c,b,C,T,w,B,h,R,v,f,V,M,q])},d.createElement(ie,{"data-is-root-theme":n?"true":"false","data-accent-color":a,"data-gray-color":_,"data-has-background":le?"true":"false","data-material":i,"data-panel-background":u,"data-radius":c,"data-scaling":b,"data-font-family":C,"data-heading-font-family":T,ref:ue,...U,className:(0,ct.default)("radix-themes",{light:s==="light",dark:s==="dark"},U.className)}))});Ne.displayName="ThemeImpl";var yt={content:{type:"ReactNode",required:!0},width:z.width,minWidth:z.minWidth,maxWidth:{...z.maxWidth,default:"360px"}};var we=N.forwardRef((e,t)=>{let{children:o,className:r,open:n,defaultOpen:p,onOpenChange:s,delayDuration:a,disableHoverableContent:l,content:i,container:u,forceMount:c,...b}=x(e,yt),C={open:n,defaultOpen:p,onOpenChange:s,delayDuration:a,disableHoverableContent:l};return N.createElement($.Tooltip.Root,{...C},N.createElement($.Tooltip.Trigger,{asChild:!0},o),N.createElement($.Tooltip.Portal,{container:u,forceMount:c},N.createElement(Se,{asChild:!0},N.createElement($.Tooltip.Content,{sideOffset:4,collisionPadding:10,...b,asChild:!1,ref:t,className:(0,gt.default)("rt-TooltipContent",r)},N.createElement(Re,{as:"p",className:"rt-TooltipText",size:"1"},i),N.createElement($.Tooltip.Arrow,{className:"rt-TooltipArrow"})))))});we.displayName="Tooltip";var ae=y(require("react"));function Pt(e){let t=ae.useId(),o=!!e,r=ae.useMemo(()=>o?{"aria-describedby":t}:{},[o,t]);return{tooltipId:t,hasTooltip:o,accessibilityProps:r}}var Be=O.forwardRef(({className:e,style:t,tooltip:o,tooltipSide:r="top",tooltipAlign:n="center",tooltipDelayDuration:p,tooltipDisableHoverableContent:s,overrideStyles:a,...l},i)=>{let{tooltipId:u,hasTooltip:c,accessibilityProps:b}=Pt(o),C=O.useMemo(()=>{if(!a)return;let B={},h=(v,f)=>{f!==void 0&&(B[v]=f)},R=(v,f)=>{f&&(h(`--button-override-${v}color`,f.color),h(`--button-override-${v}background`,f.background),h(`--button-override-${v}background-color`,f.backgroundColor),h(`--button-override-${v}box-shadow`,f.boxShadow),h(`--button-override-${v}filter`,f.filter),h(`--button-override-${v}outline`,f.outline),h(`--button-override-${v}outline-offset`,f.outlineOffset),h(`--button-override-${v}opacity`,f.opacity))};return R("",a.normal),R("hover-",a.hover),R("active-",a.active),R("pressed-",a.pressed),R("open-",a.open),R("disabled-",a.disabled),a.focus&&(h("--button-override-focus-outline",a.focus.outline),h("--button-override-focus-outline-offset",a.focus.outlineOffset)),B},[a]),T=O.useMemo(()=>C?{...C,...t}:t,[C,t]),w=O.createElement(Ce,{...l,...b,ref:i,className:(0,ht.default)("rt-Button",e),style:T});return c?O.createElement(we,{content:o,side:r,align:n,delayDuration:p,disableHoverableContent:s,id:u},w):w});Be.displayName="Button";var K=y(require("react"));var L=y(require("react")),ke=0;function vt(){let e=L.useRef(void 0);return L.useEffect(()=>{let o=document.getElementById("rt-live-announcer");return o||(o=document.createElement("div"),o.id="rt-live-announcer",o.setAttribute("aria-live","polite"),o.setAttribute("aria-atomic","true"),o.style.cssText=`
1
+ "use strict";var Ct=Object.create;var Q=Object.defineProperty;var Tt=Object.getOwnPropertyDescriptor;var xt=Object.getOwnPropertyNames;var St=Object.getPrototypeOf,Nt=Object.prototype.hasOwnProperty;var wt=(e,t)=>{for(var o in t)Q(e,o,{get:t[o],enumerable:!0})},Ve=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of xt(t))!Nt.call(e,n)&&n!==o&&Q(e,n,{get:()=>t[n],enumerable:!(r=Tt(t,n))||r.enumerable});return e};var y=(e,t,o)=>(o=e!=null?Ct(St(e)):{},Ve(t||!e||!e.__esModule?Q(o,"default",{value:e,enumerable:!0}):o,e)),Bt=e=>Ve(Q({},"__esModule",{value:!0}),e);var ho={};wt(ho,{ToggleButton:()=>Rt});module.exports=Bt(ho);var k=y(require("react")),bt=require("radix-ui");var O=y(require("react")),ht=y(require("classnames"));var g=y(require("react")),et=y(require("classnames")),tt=require("radix-ui");var F={asChild:{type:"boolean"}};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"],Fe=["auto","gray","mauve","slate","sage","olive","sand"],je={color:{type:"enum",values:Z,default:void 0}},Oe={color:{type:"enum",values:Z,default:""}};var me=["none","small","medium","large","full"],Ee={radius:{type:"enum",values:me,default:void 0}};var kt=["1","2","3","4"],Vt=["classic","solid","soft","surface","outline","ghost","override"],Ft=["solid","translucent"],jt=["solid","translucent"],fe={...F,size:{type:"enum",className:"rt-r-size",values:kt,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:Vt,default:"solid"},...Oe,...Ee,loading:{type:"boolean",className:"rt-loading",default:!1},fullWidth:{type:"boolean",className:"rt-full-width",default:!1},material:{type:"enum",values:jt,default:void 0},panelBackground:{type:"enum",values:Ft,default:void 0},flush:{type:"boolean",default:!1}};var oe=y(require("react")),Ue=y(require("classnames"));var Me=y(require("classnames"));var Ot=[],Et=new Set;function Gt(e){let t=Object.assign({},...e),o=[],r=[],n=new Set;for(let i in t){let s=t[i],a=s.values??Ot,l={key:i,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:a,valueSet:a.length>0?new Set(a):Et,enumValueSet:s.type==="enum"?new Set([s.default,...a]):void 0};s.className?(o.push(l),n.add(i)):(l.hasDefault||s.type==="enum")&&r.push(l)}return{styling:o,passthrough:r,stylingKeys:n}}var Wt={children:new WeakMap};function Ge(e){let t=Wt;for(let o=0;o<e.length;o++){let r=e[o],n=t.children.get(r);n===void 0&&(n={children:new WeakMap},t.children.set(r,n)),t=n}return t.compiled??(t.compiled=Gt(e))}var At=["initial","xs","sm","md","lg","xl"],ce=new Set(At);function de(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Mt=new Set(["initial","xs","sm","md","lg","xl"]);function E(e){if(typeof e!="object"||e===null)return!1;for(let t in e)if(Mt.has(t))return!0;return!1}function ee(e,t,o){return t!==void 0?t.has(o):e.includes(o)}function Ae({className:e,customProperties:t,...o}){let r=ye({allowArbitraryValues:!0,className:e,...o}),n=zt({customProperties:t,...o});return[r,n]}function ye({allowArbitraryValues:e,value:t,className:o,propValues:r,propValueSet:n,parseValue:i=s=>s}){if(t){if(typeof t=="string")return ee(r,n,t)?We(o,t,i):e?o:void 0;if(E(t)){let s=t,a=[];for(let l in s){if(!de(s,l)||!ce.has(l))continue;let p=s[l];if(p!==void 0){if(ee(r,n,p)){let u=We(o,p,i),c=l==="initial"?u:`${l}:${u}`;a.push(c)}else if(e){let u=l==="initial"?o:`${l}:${o}`;a.push(u)}}}return a.length>0?a.join(" "):""}if(e)return o}}function We(e,t,o){let r=e?"-":"",n=o(t),i=n?.startsWith("-"),s=i?"-":"",a=i?n?.substring(1):n;return`${s}${e}${r}${a}`}function zt({customProperties:e,value:t,propValues:o,propValueSet:r,parseValue:n=i=>i}){if(!t||typeof t=="string"&&ee(o,r,t))return;let i;if(typeof t=="string"){let s=n(t);i={};for(let a of e)i[a]=s;return i}if(E(t)){let s=t;for(let a in s){if(!de(s,a)||!ce.has(a))continue;let l=s[a];if(l===void 0||ee(o,r,l))continue;let p=n(l);i??(i={});for(let u of e){let c=a==="initial"?u:`${u}-${a}`;i[c]=p}}}return i??{}}function ge(...e){let t;for(let o of e)o&&(t===void 0&&(t={}),Object.assign(t,o));return t}function It(e,t){let o=e.initial,r=!1;return t.hasDefault&&o===void 0&&(o=t.default,r=!0),t.enumValueSet!==void 0&&!t.enumValueSet.has(o)&&(o=t.default,r=!0),r?{...e,initial:o}:e}function x(e,...t){let{styling:o,passthrough:r,stylingKeys:n}=Ge(t),i={};for(let l in e)n.has(l)||(i[l]=e[l]);for(let l=0;l<r.length;l++){let p=r[l],u=i[p.key];if(u===void 0){p.hasDefault&&(i[p.key]=p.default);continue}p.enumValueSet!==void 0&&!p.enumValueSet.has(u)&&!E(u)&&(i[p.key]=p.default)}let s,a=[];for(let l=0;l<o.length;l++){let p=o[l],u=e[p.key];if(u===void 0&&p.hasDefault&&(u=p.default),p.enumValueSet!==void 0&&!p.enumValueSet.has(u)&&!E(u)&&(u=p.default),!!u){if(E(u)){if(!p.responsive)continue;u=It(u,p)}if(p.type==="enum"){let c=ye({allowArbitraryValues:!1,value:u,className:p.className,propValues:p.values,propValueSet:p.valueSet,parseValue:p.parseValue});c&&a.push(c);continue}if(p.type==="string"||p.type==="enum | string"){let[c,b]=Ae({className:p.className,customProperties:p.customProperties,propValues:p.type==="string"?[]:p.values,propValueSet:p.type==="string"?void 0:p.valueSet,parseValue:p.parseValue,value:u});b&&(s=ge(s,b)),c&&a.push(c);continue}if(p.type==="boolean"){a.push(p.className);continue}}}return i.className=(0,Me.default)(a.length>0?a.join(" "):void 0,e.className),i.style=ge(s,e.style),i}var G=["0","1","2","3","4","5","6","7","8","9","10","11","12"],ze={p:{type:"enum | string",className:"rt-r-p",customProperties:["--p"],values:G,responsive:!0},px:{type:"enum | string",className:"rt-r-px",customProperties:["--pl","--pr"],values:G,responsive:!0},py:{type:"enum | string",className:"rt-r-py",customProperties:["--pt","--pb"],values:G,responsive:!0},pt:{type:"enum | string",className:"rt-r-pt",customProperties:["--pt"],values:G,responsive:!0},pr:{type:"enum | string",className:"rt-r-pr",customProperties:["--pr"],values:G,responsive:!0},pb:{type:"enum | string",className:"rt-r-pb",customProperties:["--pb"],values:G,responsive:!0},pl:{type:"enum | string",className:"rt-r-pl",customProperties:["--pl"],values:G,responsive:!0}};var Ie={height:{type:"string",className:"rt-r-h",customProperties:["--height"],responsive:!0},minHeight:{type:"string",className:"rt-r-min-h",customProperties:["--min-height"],responsive:!0},maxHeight:{type:"string",className:"rt-r-max-h",customProperties:["--max-height"],responsive:!0}};var z={width:{type:"string",className:"rt-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"rt-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"rt-r-max-w",customProperties:["--max-width"],responsive:!0}};var Pe=["visible","hidden","clip","scroll","auto"],Ht=["static","relative","absolute","fixed","sticky"],q=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],$t=["0","1"],Lt=["0","1"],Kt=["start","center","end","baseline","stretch"],Ut=["start","center","end","baseline","stretch"],He={...ze,...z,...Ie,position:{type:"enum",className:"rt-r-position",values:Ht,responsive:!0},inset:{type:"enum | string",className:"rt-r-inset",customProperties:["--inset"],values:q,responsive:!0},top:{type:"enum | string",className:"rt-r-top",customProperties:["--top"],values:q,responsive:!0},right:{type:"enum | string",className:"rt-r-right",customProperties:["--right"],values:q,responsive:!0},bottom:{type:"enum | string",className:"rt-r-bottom",customProperties:["--bottom"],values:q,responsive:!0},left:{type:"enum | string",className:"rt-r-left",customProperties:["--left"],values:q,responsive:!0},overflow:{type:"enum",className:"rt-r-overflow",values:Pe,responsive:!0},overflowX:{type:"enum",className:"rt-r-ox",values:Pe,responsive:!0},overflowY:{type:"enum",className:"rt-r-oy",values:Pe,responsive:!0},flexBasis:{type:"string",className:"rt-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"rt-r-fs",customProperties:["--flex-shrink"],values:$t,responsive:!0},flexGrow:{type:"enum | string",className:"rt-r-fg",customProperties:["--flex-grow"],values:Lt,responsive:!0},gridArea:{type:"string",className:"rt-r-ga",customProperties:["--grid-area"],responsive:!0},gridColumn:{type:"string",className:"rt-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"rt-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"rt-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"rt-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"rt-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"rt-r-gre",customProperties:["--grid-row-end"],responsive:!0},alignSelf:{type:"enum",className:"rt-r-as",values:Kt,responsive:!0},justifySelf:{type:"enum",className:"rt-r-js",values:Ut,responsive:!0}};var W=["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"],j={m:{type:"enum | string",values:W,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:W,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:W,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:W,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:W,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:W,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:W,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var te=require("radix-ui"),Yo=te.Slot.Root,$e=te.Slot.Root,Xo=te.Slot.Slottable;var he=["0","1","2","3","4","5","6","7","8","9","10","11","12"],Le={gap:{type:"enum | string",className:"rt-r-gap",customProperties:["--gap"],values:he,responsive:!0},gapX:{type:"enum | string",className:"rt-r-cg",customProperties:["--column-gap"],values:he,responsive:!0},gapY:{type:"enum | string",className:"rt-r-rg",customProperties:["--row-gap"],values:he,responsive:!0}};var _t=["div","span"],qt=["none","inline-flex","flex"],Yt=["row","column","row-reverse","column-reverse"],Xt=["start","center","end","baseline","stretch"],Jt=["start","center","end","between"],Qt=["nowrap","wrap","wrap-reverse"],Ke={as:{type:"enum",values:_t,default:"div"},...F,display:{type:"enum",className:"rt-r-display",values:qt,responsive:!0},direction:{type:"enum",className:"rt-r-fd",values:Yt,responsive:!0},align:{type:"enum",className:"rt-r-ai",values:Xt,responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:Jt,parseValue:Zt,responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:Qt,responsive:!0},...Le};function Zt(e){return e==="between"?"space-between":e}var I=oe.forwardRef((e,t)=>{let{className:o,asChild:r,as:n="div",...i}=x(e,Ke,He,j);return oe.createElement(r?$e:n,{...i,ref:t,className:(0,Ue.default)("rt-Flex",o)})});I.displayName="Flex";var D=y(require("react")),qe=y(require("classnames"));var eo=["1","2","3"],_e={size:{type:"enum",className:"rt-r-size",values:eo,default:"2",responsive:!0},loading:{type:"boolean",default:!0}};var ve=D.forwardRef((e,t)=>{let{className:o,children:r,loading:n,...i}=x(e,_e,j);if(!n)return r;let s=D.createElement("span",{...i,ref:t,className:(0,qe.default)("rt-Spinner",o)},D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}),D.createElement("span",{className:"rt-SpinnerLeaf"}));return r===void 0?s:D.createElement(I,{asChild:!0,position:"relative",align:"center",justify:"center"},D.createElement("span",null,D.createElement("span",{"aria-hidden":!0,style:{display:"contents",visibility:"hidden"},inert:void 0},r),D.createElement(I,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},D.createElement("span",null,s))))});ve.displayName="Spinner";var De=require("radix-ui"),Ye=De.VisuallyHidden.Root,dr=De.VisuallyHidden.Root;var Je=y(require("react")),to="Warning: The `panelBackground` prop is deprecated and will be removed in a future version. Use `material` prop instead.",Xe=new Set;function oo(e){Xe.has(e)||(Xe.add(e),console.warn(e))}function re(e){Je.useEffect(()=>{},[e])}function Qe(e,t){if(e!==void 0)return typeof e=="string"?t(e):Object.fromEntries(Object.entries(e).map(([o,r])=>[o,t(r)]))}function Ze(e){switch(e){case"1":return"1";case"2":case"3":return"2";case"4":return"3"}}var be=g.forwardRef((e,t)=>{let{size:o=fe.size.default}=e,{className:r,children:n,asChild:i,as:s,color:a,radius:l,material:p,panelBackground:u,flush:c,disabled:b=e.loading,...R}=x(e,fe,j);re(e.panelBackground);let T=p??u,w=i?tt.Slot.Root:s||"button",B=i||!s||["button","input","textarea","select"].includes(s),h=!i&&(!s||s==="button"),C="type"in R,v=g.useId(),f=e.loading?`${v}-loading`:void 0,V=g.useMemo(()=>typeof n=="string"?n:g.isValidElement(n)&&typeof n.props?.children=="string"?n.props.children:"button",[n]),M=g.useMemo(()=>e.loading?{"aria-busy":!0,"aria-disabled":!0,"aria-describedby":f,"aria-label":`${V} (loading)`}:{},[e.loading,f,V]);return g.createElement(w,{"data-disabled":b||void 0,"data-accent-color":a,"data-radius":l,"data-material":T,"data-panel-background":T,"data-flush":c?"true":void 0,...R,...M,ref:t,className:(0,et.default)("rt-reset","rt-BaseButton",r),...B&&{disabled:b},...h&&!C?{type:"button"}:{}},e.loading?g.createElement(g.Fragment,null,g.createElement("span",{style:{display:"contents",visibility:"hidden"},"aria-hidden":!0},n),g.createElement(Ye,null,g.createElement("span",{id:f},V," is loading, please wait..."),n),g.createElement(I,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},g.createElement("span",null,g.createElement(ve,{size:Qe(o,Ze),"aria-hidden":"true"})))):n)});be.displayName="BaseButton";var N=y(require("react")),gt=y(require("classnames")),$=require("radix-ui");var A=y(require("react")),ut=require("radix-ui");var ro=["loud","medium","quiet"],ot={emphasis:{type:"enum",className:"rt-emphasis",values:ro,default:void 0}};var no=["normal","start","end","both"],rt={trim:{type:"enum",className:"rt-r-lt",values:no,responsive:!0}};var so=["left","center","right"],nt={align:{type:"enum",className:"rt-r-ta",values:so,responsive:!0}};var ao=["wrap","nowrap","pretty","balance"],st={wrap:{type:"enum",className:"rt-r-tw",values:ao,responsive:!0}};var at={truncate:{type:"boolean",className:"rt-truncate"}};var po=["sans","mono","serif"],pt={font:{type:"enum",className:"rt-r-ff",values:po}};var io=["thin","extralight","light","regular","medium","semibold","bold","extrabold"],it={weight:{type:"enum",className:"rt-r-weight",values:io,responsive:!0}};var lo=["span","div","label","p"],uo=["0","1","2","3","4","5","6","7","8","9","10","11","12"],lt={as:{type:"enum",values:lo,default:"span"},...F,size:{type:"enum",className:"rt-r-size",values:uo,responsive:!0},...pt,...it,...nt,...rt,...at,...st,...je,...ot};var mo={...lt,...j},Re=A.memo(A.forwardRef((e,t)=>{let{children:o,className:r,asChild:n,as:i="span",color:s,...a}=x(e,mo),l=r?`rt-Text ${r}`:"rt-Text";return n?A.createElement(ut.Slot.Root,{"data-accent-color":s,...a,ref:t,className:l},o):A.createElement(i,{"data-accent-color":s,...a,ref:t,className:l},o)}));Re.displayName="Text";var d=y(require("react")),ct=y(require("classnames")),H=require("radix-ui"),ne=require("radix-ui/internal");function mt(e){switch(e){case"tomato":case"red":case"ruby":case"crimson":case"pink":case"plum":case"purple":case"violet":return"mauve";case"iris":case"indigo":case"blue":case"sky":case"cyan":return"slate";case"teal":case"jade":case"mint":case"green":return"sage";case"grass":case"lime":return"olive";case"yellow":case"amber":case"orange":case"brown":case"gold":case"bronze":return"sand";case"gray":return"gray"}}var Ce=y(require("react"));function S(e){let[t,o]=Ce.useState(e),[r,n]=Ce.useState(e);return Object.is(e,r)||(n(e),o(e)),[t,o]}var fo=["inherit","light","dark"],co=["solid","translucent"],yo=["solid","translucent"],go=["90%","95%","100%","105%","110%"],ft=["sans","mono","serif"],m={...F,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:fo,default:"inherit"},accentColor:{type:"enum",values:Z,default:"blue"},grayColor:{type:"enum",values:Fe,default:"slate"},material:{type:"enum",values:yo,default:"translucent"},panelBackground:{type:"enum",values:co,default:"translucent"},radius:{type:"enum",values:me,default:"full"},scaling:{type:"enum",values:go,default:"100%"},fontFamily:{type:"enum",values:ft,default:"sans"},headingFontFamily:{type:"enum",values:ft}};var P=()=>{},nn={appearance:m.appearance.default,accentColor:m.accentColor.default,grayColor:m.grayColor.default,resolvedGrayColor:m.grayColor.default,material:m.material.default,panelBackground:m.panelBackground.default,radius:m.radius.default,scaling:m.scaling.default,fontFamily:m.fontFamily.default,headingFontFamily:void 0,onAppearanceChange:P,onAccentColorChange:P,onGrayColorChange:P,onMaterialChange:P,onPanelBackgroundChange:P,onRadiusChange:P,onScalingChange:P,onFontFamilyChange:P,onHeadingFontFamilyChange:P},Te=d.createContext(void 0);var xe=d.forwardRef((e,t)=>d.useContext(Te)===void 0?d.createElement(H.Tooltip.Provider,{delayDuration:200},d.createElement(H.Direction.Provider,{dir:"ltr"},d.createElement(dt,{...e,ref:t}))):d.createElement(Se,{...e,ref:t}));xe.displayName="Theme";var dt=d.forwardRef((e,t)=>{let{appearance:o=m.appearance.default,accentColor:r=m.accentColor.default,grayColor:n=m.grayColor.default,material:i=m.material.default,panelBackground:s=m.panelBackground.default,radius:a=m.radius.default,scaling:l=m.scaling.default,fontFamily:p=m.fontFamily.default,headingFontFamily:u,hasBackground:c=m.hasBackground.default,...b}=e;re(e.panelBackground);let[R,T]=S(o),[w,B]=S(r),[h,C]=S(n),v=i!==m.material.default?i:s,[f,V]=S(v),[M,Y]=S(f),[U,ae]=S(a),[_,pe]=S(l),[ie,X]=S(p),[le,J]=S(u);return d.createElement(Se,{...b,ref:t,isRoot:!0,hasBackground:c,appearance:R,accentColor:w,grayColor:h,material:f,panelBackground:M,radius:U,scaling:_,fontFamily:ie,headingFontFamily:le,onAppearanceChange:T,onAccentColorChange:B,onGrayColorChange:C,onMaterialChange:V,onPanelBackgroundChange:Y,onRadiusChange:ae,onScalingChange:pe,onFontFamilyChange:X,onHeadingFontFamilyChange:J})});dt.displayName="ThemeRoot";function Po(){if(typeof navigator>"u")return;let e=navigator.userAgent;if(e.includes("Win"))return"windows";if(e.includes("Mac"))return"macos";if(e.includes("Linux"))return"linux"}var Se=d.forwardRef((e,t)=>{let o=d.useContext(Te),{asChild:r,isRoot:n,hasBackground:i,appearance:s=e.appearance??o?.appearance??m.appearance.default,accentColor:a=e.accentColor??o?.accentColor??m.accentColor.default,grayColor:l=e.grayColor??o?.resolvedGrayColor??m.grayColor.default,material:p=e.material??o?.material??m.material.default,panelBackground:u=e.panelBackground??o?.panelBackground??m.panelBackground.default,radius:c=e.radius??o?.radius??m.radius.default,scaling:b=e.scaling??o?.scaling??m.scaling.default,fontFamily:R=e.fontFamily??o?.fontFamily??m.fontFamily.default,headingFontFamily:T=e.headingFontFamily??o?.headingFontFamily,onAppearanceChange:w=P,onAccentColorChange:B=P,onGrayColorChange:h=P,onMaterialChange:C=P,onPanelBackgroundChange:v=P,onRadiusChange:f=P,onScalingChange:V=P,onFontFamilyChange:M=P,onHeadingFontFamilyChange:Y=P,...U}=e,ae=r?H.Slot.Root:"div",_=l==="auto"?mt(a):l,pe=e.appearance==="light"||e.appearance==="dark",ie=i===void 0?n||pe:i,X=d.useRef(null),le=(0,ne.useComposedRefs)(t,X),J="data-os"in U;return(0,ne.useLayoutEffect)(()=>{if(!n||J)return;let ue=X.current;if(!ue)return;let ke=Po();if(ke)return ue.setAttribute("data-os",ke),()=>ue.removeAttribute("data-os")},[n,J]),d.createElement(Te.Provider,{value:d.useMemo(()=>({appearance:s,accentColor:a,grayColor:l,resolvedGrayColor:_,material:p,panelBackground:u,radius:c,scaling:b,fontFamily:R,headingFontFamily:T,onAppearanceChange:w,onAccentColorChange:B,onGrayColorChange:h,onMaterialChange:C,onPanelBackgroundChange:v,onRadiusChange:f,onScalingChange:V,onFontFamilyChange:M,onHeadingFontFamilyChange:Y}),[s,a,l,_,p,u,c,b,R,T,w,B,h,C,v,f,V,M,Y])},d.createElement(ae,{"data-is-root-theme":n?"true":"false","data-accent-color":a,"data-gray-color":_,"data-has-background":ie?"true":"false","data-material":p,"data-panel-background":u,"data-radius":c,"data-scaling":b,"data-font-family":R,"data-heading-font-family":T,ref:le,...U,className:(0,ct.default)("radix-themes",{light:s==="light",dark:s==="dark"},U.className)}))});Se.displayName="ThemeImpl";var yt={content:{type:"ReactNode",required:!0},width:z.width,minWidth:z.minWidth,maxWidth:{...z.maxWidth,default:"360px"}};var Ne=N.forwardRef((e,t)=>{let{children:o,className:r,open:n,defaultOpen:i,onOpenChange:s,delayDuration:a,disableHoverableContent:l,content:p,container:u,forceMount:c,...b}=x(e,yt),R={open:n,defaultOpen:i,onOpenChange:s,delayDuration:a,disableHoverableContent:l};return N.createElement($.Tooltip.Root,{...R},N.createElement($.Tooltip.Trigger,{asChild:!0},o),N.createElement($.Tooltip.Portal,{container:u,forceMount:c},N.createElement(xe,{asChild:!0},N.createElement($.Tooltip.Content,{sideOffset:4,collisionPadding:10,...b,asChild:!1,ref:t,className:(0,gt.default)("rt-TooltipContent",r)},N.createElement(Re,{as:"p",className:"rt-TooltipText",size:"1"},p),N.createElement($.Tooltip.Arrow,{className:"rt-TooltipArrow"})))))});Ne.displayName="Tooltip";var se=y(require("react"));function Pt(e){let t=se.useId(),o=!!e,r=se.useMemo(()=>o?{"aria-describedby":t}:{},[o,t]);return{tooltipId:t,hasTooltip:o,accessibilityProps:r}}var we=O.forwardRef(({className:e,style:t,tooltip:o,tooltipSide:r="top",tooltipAlign:n="center",tooltipDelayDuration:i,tooltipDisableHoverableContent:s,overrideStyles:a,...l},p)=>{let{tooltipId:u,hasTooltip:c,accessibilityProps:b}=Pt(o),R=O.useMemo(()=>{if(!a)return;let B={},h=(v,f)=>{f!==void 0&&(B[v]=f)},C=(v,f)=>{f&&(h(`--button-override-${v}color`,f.color),h(`--button-override-${v}background`,f.background),h(`--button-override-${v}background-color`,f.backgroundColor),h(`--button-override-${v}box-shadow`,f.boxShadow),h(`--button-override-${v}filter`,f.filter),h(`--button-override-${v}outline`,f.outline),h(`--button-override-${v}outline-offset`,f.outlineOffset),h(`--button-override-${v}opacity`,f.opacity))};return C("",a.normal),C("hover-",a.hover),C("active-",a.active),C("pressed-",a.pressed),C("open-",a.open),C("disabled-",a.disabled),a.focus&&(h("--button-override-focus-outline",a.focus.outline),h("--button-override-focus-outline-offset",a.focus.outlineOffset)),B},[a]),T=O.useMemo(()=>R?{...R,...t}:t,[R,t]),w=O.createElement(be,{...l,...b,ref:p,className:(0,ht.default)("rt-Button",e),style:T});return c?O.createElement(Ne,{content:o,side:r,align:n,delayDuration:i,disableHoverableContent:s,id:u},w):w});we.displayName="Button";var K=y(require("react"));var L=y(require("react")),Be=0;function vt(){let e=L.useRef(void 0);return L.useEffect(()=>{let o=document.getElementById("rt-live-announcer");return o||(o=document.createElement("div"),o.id="rt-live-announcer",o.setAttribute("aria-live","polite"),o.setAttribute("aria-atomic","true"),o.style.cssText=`
2
2
  position: absolute;
3
3
  left: -10000px;
4
4
  width: 1px;
@@ -6,5 +6,5 @@
6
6
  overflow: hidden;
7
7
  clip: rect(0, 0, 0, 0);
8
8
  white-space: nowrap;
9
- `,document.body.appendChild(o)),ke++,()=>{if(ke--,e.current&&clearTimeout(e.current),ke===0){let r=document.getElementById("rt-live-announcer");r&&r.remove()}}},[]),L.useCallback(o=>{let r=document.getElementById("rt-live-announcer");r&&(e.current&&clearTimeout(e.current),r.textContent="",e.current=setTimeout(()=>{r.textContent=o},100))},[])}function Dt({pressed:e,onPressedChange:t,getAccessibleName:o,componentName:r}){let n=vt(),p=K.useRef(!1),s=K.useCallback(a=>{let l=o();n(`${l} ${a?"pressed":"unpressed"}`),t?.(a)},[n,t,o]);return K.useEffect(()=>{},[e,t,r]),{handlePressedChange:s}}var Ct=k.forwardRef(({pressed:e,onPressedChange:t,defaultPressed:o,children:r,...n},p)=>{let s=k.useCallback(()=>typeof r=="string"?r:k.isValidElement(r)&&typeof r.props?.children=="string"?r.props.children:"Toggle button",[r]),{handlePressedChange:a}=Dt({pressed:e,onPressedChange:t,getAccessibleName:s,componentName:"ToggleButton"});return k.createElement(bt.Toggle.Root,{pressed:e,onPressedChange:a,defaultPressed:o,asChild:!0},k.createElement(Be,{...n,ref:p},r))});Ct.displayName="ToggleButton";
9
+ `,document.body.appendChild(o)),Be++,()=>{if(Be--,e.current&&clearTimeout(e.current),Be===0){let r=document.getElementById("rt-live-announcer");r&&r.remove()}}},[]),L.useCallback(o=>{let r=document.getElementById("rt-live-announcer");r&&(e.current&&clearTimeout(e.current),r.textContent="",e.current=setTimeout(()=>{r.textContent=o},100))},[])}function Dt({pressed:e,onPressedChange:t,getAccessibleName:o,componentName:r}){let n=vt(),i=K.useRef(!1),s=K.useCallback(a=>{let l=o();n(`${l} ${a?"pressed":"unpressed"}`),t?.(a)},[n,t,o]);return K.useEffect(()=>{},[e,t,r]),{handlePressedChange:s}}var Rt=k.forwardRef(({pressed:e,onPressedChange:t,defaultPressed:o,children:r,...n},i)=>{let s=k.useCallback(()=>typeof r=="string"?r:k.isValidElement(r)&&typeof r.props?.children=="string"?r.props.children:"Toggle button",[r]),{handlePressedChange:a}=Dt({pressed:e,onPressedChange:t,getAccessibleName:s,componentName:"ToggleButton"});return k.createElement(bt.Toggle.Root,{pressed:e,onPressedChange:a,defaultPressed:o,asChild:!0},k.createElement(we,{...n,ref:i},r))});Rt.displayName="ToggleButton";
10
10
  //# sourceMappingURL=toggle-button.js.map