@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-panel.tsx"],
4
- "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport { useCallbackRef } from 'radix-ui/internal';\nimport { flushSync } from 'react-dom';\n\nimport { AccessibleIcon } from './accessible-icon.js';\nimport { Box } from './box.js';\nimport { Button } from './button.js';\nimport { Flex } from './flex.js';\nimport { Grid } from './grid.js';\nimport { Heading } from './heading.js';\nimport { IconButton } from './icon-button.js';\nimport { Kbd } from './kbd.js';\nimport * as Popover from './popover.js';\nimport { ScrollArea } from './scroll-area.js';\nimport { Text } from './text.js';\nimport { Tooltip } from './tooltip.js';\nimport { Theme, useThemeContext, type ThemeContextValue } from './theme.js';\nimport { inert } from '../helpers/inert.js';\nimport { getMatchingGrayColor } from '../helpers/get-matching-gray-color.js';\nimport { themePropDefs } from './theme.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ninterface ThemePanelProps extends Omit<ThemePanelImplProps, keyof ThemePanelImplPrivateProps> {\n onAppearanceChange?: (value: 'light' | 'dark') => void;\n defaultOpen?: boolean;\n}\n\nconst keyboardInputElement = `\n [contenteditable],\n [role=\"combobox\"],\n [role=\"listbox\"],\n [role=\"menu\"],\n input:not([type=\"radio\"], [type=\"checkbox\"]),\n select,\n textarea\n `;\n\nconst ThemePanel = React.forwardRef<ThemePanelImplElement, ThemePanelProps>(\n ({ defaultOpen = true, ...props }, forwardedRef) => {\n const [open, setOpen] = React.useState(defaultOpen);\n const triggerRef = React.useRef<HTMLButtonElement>(null);\n const previouslyFocusedElementRef = React.useRef<HTMLElement | null>(null);\n\n // quickly show/hide using \"T\" keypress\n React.useEffect(() => {\n function handleKeydown(event: KeyboardEvent) {\n const isModifierActive = event.altKey || event.ctrlKey || event.shiftKey || event.metaKey;\n const isKeyboardInputActive = document.activeElement?.closest(keyboardInputElement);\n const isKeyT = event.key?.toUpperCase() === 'T' && !isModifierActive;\n if (isKeyT && !isKeyboardInputActive) {\n let isOpen = false;\n flushSync(() => {\n setOpen((open) => {\n isOpen = !open;\n return isOpen;\n });\n });\n if (isOpen) {\n previouslyFocusedElementRef.current = document.activeElement as HTMLElement | null;\n triggerRef.current?.focus();\n } else {\n previouslyFocusedElementRef.current?.focus();\n }\n }\n }\n document.addEventListener('keydown', handleKeydown);\n return () => document.removeEventListener('keydown', handleKeydown);\n }, []);\n\n return (\n <ThemePanelImpl\n {...props}\n ref={forwardedRef}\n triggerRef={triggerRef}\n open={open}\n shortcut={\n <Tooltip content=\"Press T to show/hide the Theme Panel\" side=\"bottom\" sideOffset={6}>\n <Kbd asChild size=\"3\" tabIndex={0} className=\"rt-ThemePanelShortcut\">\n <button\n type=\"button\"\n onClick={() => setOpen((open) => !open)}\n ref={triggerRef}\n aria-label=\"Toggle the Theme Panel\"\n >\n T\n </button>\n </Kbd>\n </Tooltip>\n }\n />\n );\n },\n);\nThemePanel.displayName = 'ThemePanel';\n\ntype ThemePanelImplElement = React.ElementRef<'div'>;\ninterface ThemePanelImplPrivateProps {\n open: boolean;\n shortcut: React.ReactNode;\n triggerRef: React.RefObject<HTMLButtonElement | null>;\n}\ninterface ThemePanelImplProps\n extends ComponentPropsWithout<'div', RemovedProps>, ThemePanelImplPrivateProps {\n onAppearanceChange?: (value: 'light' | 'dark') => void;\n}\nconst ThemePanelImpl = React.forwardRef<ThemePanelImplElement, ThemePanelImplProps>(\n (props, forwardedRef) => {\n const { open, onAppearanceChange, shortcut, triggerRef, ...panelProps } = props;\n const themeContext = useThemeContext();\n return (\n <Theme asChild radius=\"medium\" scaling=\"100%\">\n <Flex\n direction=\"column\"\n position=\"fixed\"\n top=\"0\"\n right=\"0\"\n mr={{ initial: '2', sm: '4' }}\n mt={{ initial: '2', sm: '4' }}\n width={{ initial: '360px' }}\n maxHeight={{\n initial: 'calc(100svh - var(--space-2) - var(--space-2))',\n sm: 'calc(100svh - var(--space-4) - var(--space-4))',\n }}\n maxWidth={{\n initial: 'calc(100svw - var(--space-2) - var(--space-2))',\n sm: 'calc(100svw - var(--space-4) - var(--space-4))',\n }}\n inert={open ? undefined : inert}\n {...panelProps}\n ref={forwardedRef}\n style={{\n zIndex: 999999999,\n overflow: 'hidden',\n borderRadius: 'var(--radius-4)',\n backgroundColor: 'var(--color-panel-solid)',\n transformOrigin: 'top center',\n transitionProperty: 'transform, box-shadow',\n transitionDuration: '200ms',\n transitionTimingFunction: open ? 'ease-out' : 'ease-in',\n transform: open ? 'none' : 'translateX(105%)',\n boxShadow: open ? 'var(--shadow-5)' : 'var(--shadow-2)',\n ...props.style,\n }}\n >\n <ScrollArea>\n <Box flexGrow=\"1\" p={{ initial: '4', xs: '5' }} position=\"relative\">\n {!!shortcut && (\n <Box position=\"absolute\" top=\"0\" right=\"0\" m=\"2\">\n {shortcut}\n </Box>\n )}\n <ThemePanelContent onAppearanceChange={onAppearanceChange} context={themeContext} />\n </Box>\n </ScrollArea>\n </Flex>\n </Theme>\n );\n },\n);\nThemePanelImpl.displayName = 'ThemePanelImpl';\n\ntype ThemePanelContentElement = React.ElementRef<typeof Flex>;\ninterface ThemePanelContentProps extends ComponentPropsWithout<\n typeof Flex,\n RemovedProps | 'direction'\n> {\n onAppearanceChange?: (value: 'light' | 'dark') => void;\n context?: ThemeContextValue;\n}\nconst ThemePanelContent = React.forwardRef<ThemePanelContentElement, ThemePanelContentProps>(\n (props, forwardedRef) => {\n const {\n onAppearanceChange: onAppearanceChangeProp,\n context: contextProp,\n ...contentProps\n } = props;\n\n const themeContext = useThemeContext();\n\n const {\n appearance,\n onAppearanceChange,\n accentColor,\n onAccentColorChange,\n grayColor,\n onGrayColorChange,\n panelBackground,\n onPanelBackgroundChange,\n radius,\n onRadiusChange,\n scaling,\n onScalingChange,\n } = contextProp ?? themeContext;\n\n const [resolvedAppearance, setResolvedAppearance] = React.useState<'light' | 'dark' | null>(\n appearance === 'inherit' ? null : appearance,\n );\n const hasOnAppearanceChangeProp = onAppearanceChangeProp !== undefined;\n const handleAppearanceChangeProp = useCallbackRef(onAppearanceChangeProp);\n const handleAppearanceChange = React.useCallback(\n (value: 'light' | 'dark') => {\n const cleanup = disableAnimation();\n\n if (appearance !== 'inherit') {\n onAppearanceChange(value);\n return;\n }\n\n if (hasOnAppearanceChangeProp) {\n handleAppearanceChangeProp(value);\n } else {\n setResolvedAppearance(value);\n updateRootAppearanceClass(value);\n }\n\n cleanup();\n },\n [appearance, onAppearanceChange, hasOnAppearanceChangeProp, handleAppearanceChangeProp],\n );\n\n const autoMatchedGray = getMatchingGrayColor(accentColor);\n const resolvedGrayColor = grayColor === 'auto' ? autoMatchedGray : grayColor;\n\n const [copyState, setCopyState] = React.useState<'idle' | 'copying' | 'copied'>('idle');\n async function handleCopyThemeConfig() {\n const theme = {\n appearance: appearance === themePropDefs.appearance.default ? undefined : appearance,\n accentColor: accentColor === themePropDefs.accentColor.default ? undefined : accentColor,\n grayColor: grayColor === themePropDefs.grayColor.default ? undefined : grayColor,\n panelBackground:\n panelBackground === themePropDefs.panelBackground.default ? undefined : panelBackground,\n radius: radius === themePropDefs.radius.default ? undefined : radius,\n scaling: scaling === themePropDefs.scaling.default ? undefined : scaling,\n } satisfies GetPropDefTypes<typeof themePropDefs>;\n\n const props = Object.keys(theme)\n .filter((key) => theme[key as keyof typeof theme] !== undefined)\n .map((key) => `${key}=\"${theme[key as keyof typeof theme]}\"`)\n .join(' ');\n\n const textToCopy = props ? `<Theme ${props}>` : '<Theme>';\n\n setCopyState('copying');\n await navigator.clipboard.writeText(textToCopy);\n setCopyState('copied');\n setTimeout(() => setCopyState('idle'), 2000);\n }\n\n // quickly toggle appearance using \"D\" keypress\n React.useEffect(() => {\n function handleKeydown(event: KeyboardEvent) {\n const isModifierActive = event.altKey || event.ctrlKey || event.shiftKey || event.metaKey;\n const isKeyboardInputActive = document.activeElement?.closest(keyboardInputElement);\n const isKeyD = event.key?.toUpperCase() === 'D' && !isModifierActive;\n if (isKeyD && !isKeyboardInputActive) {\n handleAppearanceChange(resolvedAppearance === 'light' ? 'dark' : 'light');\n }\n }\n document.addEventListener('keydown', handleKeydown);\n return () => document.removeEventListener('keydown', handleKeydown);\n }, [handleAppearanceChange, resolvedAppearance]);\n\n React.useEffect(() => {\n const root = document.documentElement;\n const body = document.body;\n\n function update() {\n const hasDarkClass =\n root.classList.contains('dark') ||\n root.classList.contains('dark-theme') ||\n body.classList.contains('dark') ||\n body.classList.contains('dark-theme');\n\n if (appearance === 'inherit') {\n setResolvedAppearance(hasDarkClass ? 'dark' : 'light');\n } else {\n setResolvedAppearance(appearance);\n }\n }\n\n const classNameObserver = new MutationObserver(function (mutations) {\n mutations.forEach(function (mutation) {\n if (mutation.attributeName === 'class') {\n update();\n }\n });\n });\n\n update();\n\n // Observe <html> and <body> for `class` changes only when the appearance is inherited from them\n if (appearance === 'inherit') {\n classNameObserver.observe(root, { attributes: true });\n classNameObserver.observe(body, { attributes: true });\n }\n\n return () => classNameObserver.disconnect();\n }, [appearance]);\n\n return (\n <Flex direction=\"column\" gap=\"5\" {...contentProps} ref={forwardedRef}>\n <Heading size={{ initial: '3', sm: '5' }} trim=\"both\" as=\"h2\">\n Theme\n </Heading>\n <Flex direction=\"column\" gap=\"5\">\n {/* Accent color */}\n <ThemePanelSection>\n <ThemePanelHeading id=\"accent-color-title\">Accent color</ThemePanelHeading>\n <Flex wrap=\"wrap\" gap=\"2\" role=\"group\" aria-labelledby=\"accent-color-title\">\n {themePropDefs.accentColor.values.map((color) => (\n <Box asChild key={color}>\n <label\n className=\"rt-ThemePanelSwatch\"\n aria-label={upperFirst(color)}\n style={{ backgroundColor: `var(--${color}-9)` }}\n >\n <Tooltip\n content={`${upperFirst(color)}${\n accentColor === 'gray' && resolvedGrayColor !== 'gray'\n ? ` (${upperFirst(resolvedGrayColor)})`\n : ''\n }`}\n >\n <input\n className=\"rt-ThemePanelSwatchInput\"\n type=\"radio\"\n name=\"accentColor\"\n value={color}\n checked={accentColor === color}\n onChange={(event) =>\n onAccentColorChange(event.target.value as typeof accentColor)\n }\n />\n </Tooltip>\n </label>\n </Box>\n ))}\n </Flex>\n </ThemePanelSection>\n\n {/* Gray color */}\n <ThemePanelSection>\n <ThemePanelHeading id=\"gray-color-title\">Gray color</ThemePanelHeading>\n <Flex wrap=\"wrap\" gap=\"2\" role=\"group\" aria-labelledby=\"gray-color-title\">\n {themePropDefs.grayColor.values.map((gray) => (\n <Flex key={gray} asChild align=\"center\" justify=\"center\">\n <label\n className=\"rt-ThemePanelSwatch\"\n aria-label={upperFirst(gray)}\n style={{\n backgroundColor:\n gray === 'auto'\n ? `var(--${autoMatchedGray}-9)`\n : gray === 'gray'\n ? 'var(--gray-9)'\n : `var(--${gray}-9)`,\n // we override --gray so pure gray doesn't exist anymore\n // recover something as close as possible by desaturating\n filter: gray === 'gray' ? 'saturate(0)' : undefined,\n }}\n >\n <Tooltip\n content={`${upperFirst(gray)}${\n gray === 'auto' ? ` (${upperFirst(autoMatchedGray)})` : ''\n }`}\n >\n <input\n className=\"rt-ThemePanelSwatchInput\"\n type=\"radio\"\n name=\"grayColor\"\n value={gray}\n checked={grayColor === gray}\n onChange={(event) =>\n onGrayColorChange(event.target.value as typeof grayColor)\n }\n />\n </Tooltip>\n </label>\n </Flex>\n ))}\n </Flex>\n </ThemePanelSection>\n\n {/* Appearance */}\n <ThemePanelSection>\n <ThemePanelHeading id=\"appearance-title\">Appearance</ThemePanelHeading>\n <Grid columns=\"2\" gap=\"2\" role=\"group\" aria-labelledby=\"appearance-title\">\n {(['light', 'dark'] as const).map((value) => (\n <label key={value} className=\"rt-ThemePanelRadioCard\">\n <input\n className=\"rt-ThemePanelRadioCardInput\"\n type=\"radio\"\n name=\"appearance\"\n value={value}\n checked={resolvedAppearance === value}\n onChange={(event) =>\n handleAppearanceChange(event.target.value as 'light' | 'dark')\n }\n />\n <Flex align=\"center\" justify=\"center\" height=\"32px\" gap=\"2\">\n {value === 'light' ? (\n <svg\n width=\"15\"\n height=\"15\"\n viewBox=\"0 0 15 15\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ margin: '0 -1px' }}\n >\n <path\n d=\"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n ) : (\n <svg\n width=\"15\"\n height=\"15\"\n viewBox=\"0 0 15 15\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ margin: '0 -1px' }}\n >\n <path\n d=\"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n )}\n <Text size=\"1\" weight=\"medium\">\n {upperFirst(value)}\n </Text>\n </Flex>\n </label>\n ))}\n </Grid>\n </ThemePanelSection>\n\n {/* Radius */}\n <ThemePanelSection>\n <ThemePanelHeading id=\"radius-title\">Radius</ThemePanelHeading>\n <Flex gap=\"2\" role=\"group\" aria-labelledby=\"radius-title\" wrap=\"wrap\">\n {themePropDefs.radius.values.map((value) => (\n <Flex key={value} direction=\"column\" align=\"center\">\n <label className=\"rt-ThemePanelRadioCard\">\n <input\n className=\"rt-ThemePanelRadioCardInput\"\n type=\"radio\"\n name=\"radius\"\n id={`theme-panel-radius-${value}`}\n value={value}\n checked={radius === value}\n onChange={(event) => onRadiusChange(event.target.value as typeof radius)}\n />\n <Theme asChild radius={value}>\n <Box\n m=\"3\"\n width={{ initial: '24px', sm: '32px' }}\n height={{ initial: '24px', sm: '32px' }}\n style={{\n borderTopLeftRadius: value === 'full' ? '80%' : 'var(--radius-5)',\n backgroundImage:\n 'linear-gradient(to bottom right, var(--accent-3), var(--accent-4))',\n borderTop: '2px solid var(--accent-a8)',\n borderLeft: '2px solid var(--accent-a8)',\n }}\n />\n </Theme>\n </label>\n <Box asChild pt=\"2\">\n <Text asChild size=\"1\" color=\"gray\">\n <label htmlFor={`theme-panel-radius-${value}`}>{upperFirst(value)}</label>\n </Text>\n </Box>\n </Flex>\n ))}\n </Flex>\n </ThemePanelSection>\n\n {/* Scaling */}\n <ThemePanelSection>\n <ThemePanelHeading id=\"scaling-title\">Scaling</ThemePanelHeading>\n <Grid\n columns={{\n initial: 'repeat(3, 1fr)',\n sm: '5',\n }}\n gap=\"2\"\n role=\"group\"\n aria-labelledby=\"scaling-title\"\n >\n {themePropDefs.scaling.values.map((value) => (\n <label key={value} className=\"rt-ThemePanelRadioCard\" aria-label={`Scaling ${value}`}>\n <input\n className=\"rt-ThemePanelRadioCardInput\"\n type=\"radio\"\n name=\"scaling\"\n value={value}\n checked={scaling === value}\n onChange={(event) => onScalingChange(event.target.value as typeof scaling)}\n />\n\n <Flex align=\"center\" justify=\"center\" height=\"32px\">\n <Theme asChild scaling={value}>\n <Flex align=\"center\" justify=\"center\">\n <Text size=\"1\" weight=\"medium\">\n {upperFirst(value)}\n </Text>\n </Flex>\n </Theme>\n </Flex>\n </label>\n ))}\n </Grid>\n </ThemePanelSection>\n\n {/* Panel background */}\n <ThemePanelSection>\n <Flex align=\"center\" gap=\"2\">\n <ThemePanelHeading id=\"panel-background-title\">Panel background</ThemePanelHeading>\n <Popover.Root>\n <Popover.Trigger>\n <IconButton size=\"1\" variant=\"ghost\" color=\"gray\">\n <AccessibleIcon label=\"Learn more about panel background options\">\n <svg\n width=\"15\"\n height=\"15\"\n viewBox=\"0 0 15 15\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n />\n </svg>\n </AccessibleIcon>\n </IconButton>\n </Popover.Trigger>\n <Popover.Content\n size=\"1\"\n width=\"220px\"\n maxWidth=\"90svw\"\n minWidth=\"0\"\n side=\"top\"\n align=\"center\"\n >\n <Text as=\"p\" size=\"1\">\n Whether Card and Table panels are translucent, showing some of the background\n behind them.\n </Text>\n </Popover.Content>\n </Popover.Root>\n </Flex>\n <Grid\n columns={{ initial: '1', sm: '2' }}\n rows={{ initial: '2', sm: '1' }}\n gap=\"2\"\n role=\"group\"\n aria-labelledby=\"panel-background-title\"\n >\n {themePropDefs.panelBackground.values.map((value) => (\n <label key={value} className=\"rt-ThemePanelRadioCard\">\n <input\n className=\"rt-ThemePanelRadioCardInput\"\n type=\"radio\"\n name=\"panelBackground\"\n value={value}\n checked={panelBackground === value}\n onChange={(event) =>\n onPanelBackgroundChange(event.target.value as typeof panelBackground)\n }\n />\n <Flex align=\"center\" justify=\"center\" height=\"32px\" gap=\"2\">\n {value === 'solid' ? (\n <svg\n width=\"15\"\n height=\"15\"\n viewBox=\"0 0 15 15\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ margin: '0 -2px' }}\n >\n <path\n d=\"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n ) : (\n <svg\n width=\"15\"\n height=\"15\"\n viewBox=\"0 0 15 15\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ margin: '0 -2px' }}\n >\n <path\n opacity=\".05\"\n d=\"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".1\"\n d=\"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".15\"\n d=\"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".2\"\n d=\"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".25\"\n d=\"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".3\"\n d=\"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".35\"\n d=\"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".4\"\n d=\"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".45\"\n d=\"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".5\"\n d=\"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n d=\"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n )}\n <Text size=\"1\" weight=\"medium\">\n {upperFirst(value)}\n </Text>\n </Flex>\n </label>\n ))}\n </Grid>\n </ThemePanelSection>\n </Flex>\n <Button style={{ width: '100%' }} onClick={handleCopyThemeConfig}>\n {copyState === 'copied' ? 'Copied' : 'Copy Theme'}\n </Button>\n </Flex>\n );\n },\n);\nThemePanelContent.displayName = 'ThemePanelContent';\n\nfunction ThemePanelSection(\n props: Omit<React.ComponentPropsWithoutRef<typeof Flex>, 'asChild' | 'direction' | 'gap'>,\n) {\n return (\n <Flex direction=\"column\" gap=\"3\" asChild {...props}>\n <section>{props.children}</section>\n </Flex>\n );\n}\n\nfunction ThemePanelHeading(props: React.ComponentPropsWithoutRef<typeof Heading>) {\n return <Heading as=\"h3\" size={{ initial: '1', sm: '2' }} {...props} />;\n}\n\n// https://github.com/pacocoursey/next-themes/blob/main/packages/next-themes/src/index.tsx#L285\nfunction disableAnimation() {\n const css = document.createElement('style');\n css.appendChild(\n document.createTextNode(\n `*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`,\n ),\n );\n document.head.appendChild(css);\n\n return () => {\n // Force restyle\n (() => window.getComputedStyle(document.body))();\n\n // Wait for next tick before removing\n setTimeout(() => {\n document.head.removeChild(css);\n }, 1);\n };\n}\n\nfunction upperFirst(string: string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nfunction updateRootAppearanceClass(appearance: 'light' | 'dark') {\n const root = document.documentElement;\n const hasLightTheme = root.classList.contains('light-theme');\n const hasDarkTheme = root.classList.contains('dark-theme');\n const hasLight = root.classList.contains('light');\n const hasDark = root.classList.contains('dark');\n\n if (hasLightTheme || hasDarkTheme) {\n root.classList.remove('light-theme', 'dark-theme');\n root.style.colorScheme = appearance;\n root.classList.add(`${appearance}-theme`);\n }\n\n if (hasLight || hasDark) {\n root.classList.remove('light', 'dark');\n root.style.colorScheme = appearance;\n root.classList.add(appearance);\n }\n\n if (!hasLightTheme && !hasDarkTheme && !hasLight && !hasDark) {\n root.style.colorScheme = appearance;\n root.classList.add(appearance);\n }\n}\n\nexport { ThemePanel, ThemePanelContent };\nexport type { ThemePanelProps, ThemePanelContentProps };\n"],
5
- "mappings": "qpBAEA,UAAYA,MAAW,QACvB,OAAS,kBAAAC,OAAsB,oBAC/B,OAAS,aAAAC,OAAiB,YA2B1B,IAAMC,EAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAUvBC,GAAmB,aACvB,CAAC,CAAE,YAAAC,EAAc,GAAM,GAAGC,CAAM,EAAGC,IAAiB,CAClD,GAAM,CAACC,EAAMC,CAAO,EAAU,WAASJ,CAAW,EAC5CK,EAAmB,SAA0B,IAAI,EACjDC,EAAoC,SAA2B,IAAI,EAGzE,OAAM,YAAU,IAAM,CACpB,SAASC,EAAcC,EAAsB,CAC3C,IAAMC,EAAmBD,EAAM,QAAUA,EAAM,SAAWA,EAAM,UAAYA,EAAM,QAC5EE,EAAwB,SAAS,eAAe,QAAQZ,CAAoB,EAElF,GADeU,EAAM,KAAK,YAAY,IAAM,KAAO,CAACC,GACtC,CAACC,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B,CAClC,OAAOA,EAAO,OAAO,CAAC,EAAE,YAAY,EAAIA,EAAO,MAAM,CAAC,CACxD,CAEA,SAASjC,GAA0BpB,EAA8B,CAC/D,IAAM+B,EAAO,SAAS,gBAChBuB,EAAgBvB,EAAK,UAAU,SAAS,aAAa,EACrDwB,EAAexB,EAAK,UAAU,SAAS,YAAY,EACnDyB,EAAWzB,EAAK,UAAU,SAAS,OAAO,EAC1C0B,EAAU1B,EAAK,UAAU,SAAS,MAAM,GAE1CuB,GAAiBC,KACnBxB,EAAK,UAAU,OAAO,cAAe,YAAY,EACjDA,EAAK,MAAM,YAAc/B,EACzB+B,EAAK,UAAU,IAAI,GAAG/B,CAAU,QAAQ,IAGtCwD,GAAYC,KACd1B,EAAK,UAAU,OAAO,QAAS,MAAM,EACrCA,EAAK,MAAM,YAAc/B,EACzB+B,EAAK,UAAU,IAAI/B,CAAU,GAG3B,CAACsD,GAAiB,CAACC,GAAgB,CAACC,GAAY,CAACC,IACnD1B,EAAK,MAAM,YAAc/B,EACzB+B,EAAK,UAAU,IAAI/B,CAAU,EAEjC",
4
+ "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport { useCallbackRef } from 'radix-ui/internal';\nimport { flushSync } from 'react-dom';\n\nimport { AccessibleIcon } from './accessible-icon.js';\nimport { Box } from './box.js';\nimport { Button } from './button.js';\nimport { Flex } from './flex.js';\nimport { Grid } from './grid.js';\nimport { Heading } from './heading.js';\nimport { IconButton } from './icon-button.js';\nimport { Kbd } from './kbd.js';\nimport * as Popover from './popover.js';\nimport { ScrollArea } from './scroll-area.js';\nimport { Text } from './text.js';\nimport { Tooltip } from './tooltip.js';\nimport { Theme, useThemeContext, type ThemeContextValue } from './theme.js';\nimport { inert } from '../helpers/inert.js';\nimport { getMatchingGrayColor } from '../helpers/get-matching-gray-color.js';\nimport { themePropDefs } from './theme.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ninterface ThemePanelProps extends Omit<ThemePanelImplProps, keyof ThemePanelImplPrivateProps> {\n onAppearanceChange?: (value: 'light' | 'dark') => void;\n defaultOpen?: boolean;\n}\n\nconst keyboardInputElement = `\n [contenteditable],\n [role=\"combobox\"],\n [role=\"listbox\"],\n [role=\"menu\"],\n input:not([type=\"radio\"], [type=\"checkbox\"]),\n select,\n textarea\n `;\n\nconst ThemePanel = React.forwardRef<ThemePanelImplElement, ThemePanelProps>(\n ({ defaultOpen = true, ...props }, forwardedRef) => {\n const [open, setOpen] = React.useState(defaultOpen);\n const triggerRef = React.useRef<HTMLButtonElement>(null);\n const previouslyFocusedElementRef = React.useRef<HTMLElement | null>(null);\n\n // quickly show/hide using \"T\" keypress\n React.useEffect(() => {\n function handleKeydown(event: KeyboardEvent) {\n const isModifierActive = event.altKey || event.ctrlKey || event.shiftKey || event.metaKey;\n const isKeyboardInputActive = document.activeElement?.closest(keyboardInputElement);\n const isKeyT = event.key?.toUpperCase() === 'T' && !isModifierActive;\n if (isKeyT && !isKeyboardInputActive) {\n let isOpen = false;\n flushSync(() => {\n setOpen((open) => {\n isOpen = !open;\n return isOpen;\n });\n });\n if (isOpen) {\n previouslyFocusedElementRef.current = document.activeElement as HTMLElement | null;\n triggerRef.current?.focus();\n } else {\n previouslyFocusedElementRef.current?.focus();\n }\n }\n }\n document.addEventListener('keydown', handleKeydown);\n return () => document.removeEventListener('keydown', handleKeydown);\n }, []);\n\n return (\n <ThemePanelImpl\n {...props}\n ref={forwardedRef}\n triggerRef={triggerRef}\n open={open}\n shortcut={\n <Tooltip content=\"Press T to show/hide the Theme Panel\" side=\"bottom\" sideOffset={6}>\n <Kbd asChild size=\"3\" tabIndex={0} className=\"rt-ThemePanelShortcut\">\n <button\n type=\"button\"\n onClick={() => setOpen((open) => !open)}\n ref={triggerRef}\n aria-label=\"Toggle the Theme Panel\"\n >\n T\n </button>\n </Kbd>\n </Tooltip>\n }\n />\n );\n },\n);\nThemePanel.displayName = 'ThemePanel';\n\ntype ThemePanelImplElement = React.ElementRef<'div'>;\ninterface ThemePanelImplPrivateProps {\n open: boolean;\n shortcut: React.ReactNode;\n triggerRef: React.RefObject<HTMLButtonElement | null>;\n}\ninterface ThemePanelImplProps\n extends ComponentPropsWithout<'div', RemovedProps>, ThemePanelImplPrivateProps {\n onAppearanceChange?: (value: 'light' | 'dark') => void;\n}\nconst ThemePanelImpl = React.forwardRef<ThemePanelImplElement, ThemePanelImplProps>(\n (props, forwardedRef) => {\n const { open, onAppearanceChange, shortcut, triggerRef, ...panelProps } = props;\n const themeContext = useThemeContext();\n return (\n <Theme asChild radius=\"medium\" scaling=\"100%\">\n <Flex\n direction=\"column\"\n position=\"fixed\"\n top=\"0\"\n right=\"0\"\n mr={{ initial: '2', sm: '4' }}\n mt={{ initial: '2', sm: '4' }}\n width={{ initial: '360px' }}\n maxHeight={{\n initial: 'calc(100svh - var(--space-2) - var(--space-2))',\n sm: 'calc(100svh - var(--space-4) - var(--space-4))',\n }}\n maxWidth={{\n initial: 'calc(100svw - var(--space-2) - var(--space-2))',\n sm: 'calc(100svw - var(--space-4) - var(--space-4))',\n }}\n inert={open ? undefined : inert}\n {...panelProps}\n ref={forwardedRef}\n style={{\n zIndex: 999999999,\n overflow: 'hidden',\n borderRadius: 'var(--radius-4)',\n backgroundColor: 'var(--color-panel-solid)',\n transformOrigin: 'top center',\n transitionProperty: 'transform, box-shadow',\n transitionDuration: '200ms',\n transitionTimingFunction: open ? 'ease-out' : 'ease-in',\n transform: open ? 'none' : 'translateX(105%)',\n boxShadow: open ? 'var(--shadow-5)' : 'var(--shadow-2)',\n ...props.style,\n }}\n >\n <ScrollArea>\n <Box flexGrow=\"1\" p={{ initial: '4', xs: '5' }} position=\"relative\">\n {!!shortcut && (\n <Box position=\"absolute\" top=\"0\" right=\"0\" m=\"2\">\n {shortcut}\n </Box>\n )}\n <ThemePanelContent onAppearanceChange={onAppearanceChange} context={themeContext} />\n </Box>\n </ScrollArea>\n </Flex>\n </Theme>\n );\n },\n);\nThemePanelImpl.displayName = 'ThemePanelImpl';\n\ntype ThemePanelContentElement = React.ElementRef<typeof Flex>;\ninterface ThemePanelContentProps extends ComponentPropsWithout<\n typeof Flex,\n RemovedProps | 'direction'\n> {\n onAppearanceChange?: (value: 'light' | 'dark') => void;\n context?: ThemeContextValue;\n}\nconst ThemePanelContent = React.forwardRef<ThemePanelContentElement, ThemePanelContentProps>(\n (props, forwardedRef) => {\n const {\n onAppearanceChange: onAppearanceChangeProp,\n context: contextProp,\n ...contentProps\n } = props;\n\n const themeContext = useThemeContext();\n\n const {\n appearance,\n onAppearanceChange,\n accentColor,\n onAccentColorChange,\n grayColor,\n onGrayColorChange,\n panelBackground,\n onPanelBackgroundChange,\n radius,\n onRadiusChange,\n scaling,\n onScalingChange,\n } = contextProp ?? themeContext;\n\n const [resolvedAppearance, setResolvedAppearance] = React.useState<'light' | 'dark' | null>(\n appearance === 'inherit' ? null : appearance,\n );\n const hasOnAppearanceChangeProp = onAppearanceChangeProp !== undefined;\n const handleAppearanceChangeProp = useCallbackRef(onAppearanceChangeProp);\n const handleAppearanceChange = React.useCallback(\n (value: 'light' | 'dark') => {\n const cleanup = disableAnimation();\n\n if (appearance !== 'inherit') {\n onAppearanceChange(value);\n return;\n }\n\n if (hasOnAppearanceChangeProp) {\n handleAppearanceChangeProp(value);\n } else {\n setResolvedAppearance(value);\n updateRootAppearanceClass(value);\n }\n\n cleanup();\n },\n [appearance, onAppearanceChange, hasOnAppearanceChangeProp, handleAppearanceChangeProp],\n );\n\n const autoMatchedGray = getMatchingGrayColor(accentColor);\n const resolvedGrayColor = grayColor === 'auto' ? autoMatchedGray : grayColor;\n\n const [copyState, setCopyState] = React.useState<'idle' | 'copying' | 'copied'>('idle');\n async function handleCopyThemeConfig() {\n const theme = {\n appearance: appearance === themePropDefs.appearance.default ? undefined : appearance,\n accentColor: accentColor === themePropDefs.accentColor.default ? undefined : accentColor,\n grayColor: grayColor === themePropDefs.grayColor.default ? undefined : grayColor,\n panelBackground:\n panelBackground === themePropDefs.panelBackground.default ? undefined : panelBackground,\n radius: radius === themePropDefs.radius.default ? undefined : radius,\n scaling: scaling === themePropDefs.scaling.default ? undefined : scaling,\n } satisfies GetPropDefTypes<typeof themePropDefs>;\n\n const props = Object.keys(theme)\n .filter((key) => theme[key as keyof typeof theme] !== undefined)\n .map((key) => `${key}=\"${theme[key as keyof typeof theme]}\"`)\n .join(' ');\n\n const textToCopy = props ? `<Theme ${props}>` : '<Theme>';\n\n setCopyState('copying');\n await navigator.clipboard.writeText(textToCopy);\n setCopyState('copied');\n setTimeout(() => setCopyState('idle'), 2000);\n }\n\n // quickly toggle appearance using \"D\" keypress\n React.useEffect(() => {\n function handleKeydown(event: KeyboardEvent) {\n const isModifierActive = event.altKey || event.ctrlKey || event.shiftKey || event.metaKey;\n const isKeyboardInputActive = document.activeElement?.closest(keyboardInputElement);\n const isKeyD = event.key?.toUpperCase() === 'D' && !isModifierActive;\n if (isKeyD && !isKeyboardInputActive) {\n handleAppearanceChange(resolvedAppearance === 'light' ? 'dark' : 'light');\n }\n }\n document.addEventListener('keydown', handleKeydown);\n return () => document.removeEventListener('keydown', handleKeydown);\n }, [handleAppearanceChange, resolvedAppearance]);\n\n React.useEffect(() => {\n const root = document.documentElement;\n const body = document.body;\n\n function update() {\n const hasDarkClass =\n root.classList.contains('dark') ||\n root.classList.contains('dark-theme') ||\n body.classList.contains('dark') ||\n body.classList.contains('dark-theme');\n\n if (appearance === 'inherit') {\n setResolvedAppearance(hasDarkClass ? 'dark' : 'light');\n } else {\n setResolvedAppearance(appearance);\n }\n }\n\n const classNameObserver = new MutationObserver(function (mutations) {\n mutations.forEach(function (mutation) {\n if (mutation.attributeName === 'class') {\n update();\n }\n });\n });\n\n update();\n\n // Observe <html> and <body> for `class` changes only when the appearance is inherited from them\n if (appearance === 'inherit') {\n classNameObserver.observe(root, { attributes: true });\n classNameObserver.observe(body, { attributes: true });\n }\n\n return () => classNameObserver.disconnect();\n }, [appearance]);\n\n return (\n <Flex direction=\"column\" gap=\"5\" {...contentProps} ref={forwardedRef}>\n <Heading size={{ initial: '3', sm: '5' }} trim=\"both\" as=\"h2\">\n Theme\n </Heading>\n <Flex direction=\"column\" gap=\"5\">\n {/* Accent color */}\n <ThemePanelSection>\n <ThemePanelHeading id=\"accent-color-title\">Accent color</ThemePanelHeading>\n <Flex wrap=\"wrap\" gap=\"2\" role=\"group\" aria-labelledby=\"accent-color-title\">\n {themePropDefs.accentColor.values.map((color) => (\n <Box asChild key={color}>\n <label\n className=\"rt-ThemePanelSwatch\"\n aria-label={upperFirst(color)}\n style={{ backgroundColor: `var(--${color}-9)` }}\n >\n <Tooltip\n content={`${upperFirst(color)}${\n accentColor === 'gray' && resolvedGrayColor !== 'gray'\n ? ` (${upperFirst(resolvedGrayColor)})`\n : ''\n }`}\n >\n <input\n className=\"rt-ThemePanelSwatchInput\"\n type=\"radio\"\n name=\"accentColor\"\n value={color}\n checked={accentColor === color}\n onChange={(event) =>\n onAccentColorChange(event.target.value as typeof accentColor)\n }\n />\n </Tooltip>\n </label>\n </Box>\n ))}\n </Flex>\n </ThemePanelSection>\n\n {/* Gray color */}\n <ThemePanelSection>\n <ThemePanelHeading id=\"gray-color-title\">Gray color</ThemePanelHeading>\n <Flex wrap=\"wrap\" gap=\"2\" role=\"group\" aria-labelledby=\"gray-color-title\">\n {themePropDefs.grayColor.values.map((gray) => (\n <Flex key={gray} asChild align=\"center\" justify=\"center\">\n <label\n className=\"rt-ThemePanelSwatch\"\n aria-label={upperFirst(gray)}\n style={{\n backgroundColor:\n gray === 'auto'\n ? `var(--${autoMatchedGray}-9)`\n : gray === 'gray'\n ? 'var(--gray-9)'\n : `var(--${gray}-9)`,\n // we override --gray so pure gray doesn't exist anymore\n // recover something as close as possible by desaturating\n filter: gray === 'gray' ? 'saturate(0)' : undefined,\n }}\n >\n <Tooltip\n content={`${upperFirst(gray)}${\n gray === 'auto' ? ` (${upperFirst(autoMatchedGray)})` : ''\n }`}\n >\n <input\n className=\"rt-ThemePanelSwatchInput\"\n type=\"radio\"\n name=\"grayColor\"\n value={gray}\n checked={grayColor === gray}\n onChange={(event) =>\n onGrayColorChange(event.target.value as typeof grayColor)\n }\n />\n </Tooltip>\n </label>\n </Flex>\n ))}\n </Flex>\n </ThemePanelSection>\n\n {/* Appearance */}\n <ThemePanelSection>\n <ThemePanelHeading id=\"appearance-title\">Appearance</ThemePanelHeading>\n <Grid columns=\"2\" gap=\"2\" role=\"group\" aria-labelledby=\"appearance-title\">\n {(['light', 'dark'] as const).map((value) => (\n <label key={value} className=\"rt-ThemePanelRadioCard\">\n <input\n className=\"rt-ThemePanelRadioCardInput\"\n type=\"radio\"\n name=\"appearance\"\n value={value}\n checked={resolvedAppearance === value}\n onChange={(event) =>\n handleAppearanceChange(event.target.value as 'light' | 'dark')\n }\n />\n <Flex align=\"center\" justify=\"center\" height=\"32px\" gap=\"2\">\n {value === 'light' ? (\n <svg\n width=\"15\"\n height=\"15\"\n viewBox=\"0 0 15 15\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ margin: '0 -1px' }}\n >\n <path\n d=\"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n ) : (\n <svg\n width=\"15\"\n height=\"15\"\n viewBox=\"0 0 15 15\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ margin: '0 -1px' }}\n >\n <path\n d=\"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n )}\n <Text size=\"1\" weight=\"medium\">\n {upperFirst(value)}\n </Text>\n </Flex>\n </label>\n ))}\n </Grid>\n </ThemePanelSection>\n\n {/* Radius */}\n <ThemePanelSection>\n <ThemePanelHeading id=\"radius-title\">Radius</ThemePanelHeading>\n <Flex gap=\"2\" role=\"group\" aria-labelledby=\"radius-title\" wrap=\"wrap\">\n {themePropDefs.radius.values.map((value) => (\n <Flex key={value} direction=\"column\" align=\"center\">\n <label className=\"rt-ThemePanelRadioCard\">\n <input\n className=\"rt-ThemePanelRadioCardInput\"\n type=\"radio\"\n name=\"radius\"\n id={`theme-panel-radius-${value}`}\n value={value}\n checked={radius === value}\n onChange={(event) => onRadiusChange(event.target.value as typeof radius)}\n />\n <Theme asChild radius={value}>\n <Box\n m=\"3\"\n width={{ initial: '24px', sm: '32px' }}\n height={{ initial: '24px', sm: '32px' }}\n style={{\n borderTopLeftRadius: value === 'full' ? '80%' : 'var(--radius-5)',\n backgroundImage:\n 'linear-gradient(to bottom right, var(--accent-3), var(--accent-4))',\n borderTop: '2px solid var(--accent-a8)',\n borderLeft: '2px solid var(--accent-a8)',\n }}\n />\n </Theme>\n </label>\n <Box asChild pt=\"2\">\n <Text asChild size=\"1\" emphasis=\"medium\">\n <label htmlFor={`theme-panel-radius-${value}`}>{upperFirst(value)}</label>\n </Text>\n </Box>\n </Flex>\n ))}\n </Flex>\n </ThemePanelSection>\n\n {/* Scaling */}\n <ThemePanelSection>\n <ThemePanelHeading id=\"scaling-title\">Scaling</ThemePanelHeading>\n <Grid\n columns={{\n initial: 'repeat(3, 1fr)',\n sm: '5',\n }}\n gap=\"2\"\n role=\"group\"\n aria-labelledby=\"scaling-title\"\n >\n {themePropDefs.scaling.values.map((value) => (\n <label key={value} className=\"rt-ThemePanelRadioCard\" aria-label={`Scaling ${value}`}>\n <input\n className=\"rt-ThemePanelRadioCardInput\"\n type=\"radio\"\n name=\"scaling\"\n value={value}\n checked={scaling === value}\n onChange={(event) => onScalingChange(event.target.value as typeof scaling)}\n />\n\n <Flex align=\"center\" justify=\"center\" height=\"32px\">\n <Theme asChild scaling={value}>\n <Flex align=\"center\" justify=\"center\">\n <Text size=\"1\" weight=\"medium\">\n {upperFirst(value)}\n </Text>\n </Flex>\n </Theme>\n </Flex>\n </label>\n ))}\n </Grid>\n </ThemePanelSection>\n\n {/* Panel background */}\n <ThemePanelSection>\n <Flex align=\"center\" gap=\"2\">\n <ThemePanelHeading id=\"panel-background-title\">Panel background</ThemePanelHeading>\n <Popover.Root>\n <Popover.Trigger>\n <IconButton size=\"1\" variant=\"ghost\" color=\"gray\">\n <AccessibleIcon label=\"Learn more about panel background options\">\n <svg\n width=\"15\"\n height=\"15\"\n viewBox=\"0 0 15 15\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n />\n </svg>\n </AccessibleIcon>\n </IconButton>\n </Popover.Trigger>\n <Popover.Content\n size=\"1\"\n width=\"220px\"\n maxWidth=\"90svw\"\n minWidth=\"0\"\n side=\"top\"\n align=\"center\"\n >\n <Text as=\"p\" size=\"1\">\n Whether Card and Table panels are translucent, showing some of the background\n behind them.\n </Text>\n </Popover.Content>\n </Popover.Root>\n </Flex>\n <Grid\n columns={{ initial: '1', sm: '2' }}\n rows={{ initial: '2', sm: '1' }}\n gap=\"2\"\n role=\"group\"\n aria-labelledby=\"panel-background-title\"\n >\n {themePropDefs.panelBackground.values.map((value) => (\n <label key={value} className=\"rt-ThemePanelRadioCard\">\n <input\n className=\"rt-ThemePanelRadioCardInput\"\n type=\"radio\"\n name=\"panelBackground\"\n value={value}\n checked={panelBackground === value}\n onChange={(event) =>\n onPanelBackgroundChange(event.target.value as typeof panelBackground)\n }\n />\n <Flex align=\"center\" justify=\"center\" height=\"32px\" gap=\"2\">\n {value === 'solid' ? (\n <svg\n width=\"15\"\n height=\"15\"\n viewBox=\"0 0 15 15\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ margin: '0 -2px' }}\n >\n <path\n d=\"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n ) : (\n <svg\n width=\"15\"\n height=\"15\"\n viewBox=\"0 0 15 15\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ margin: '0 -2px' }}\n >\n <path\n opacity=\".05\"\n d=\"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".1\"\n d=\"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".15\"\n d=\"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".2\"\n d=\"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".25\"\n d=\"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".3\"\n d=\"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".35\"\n d=\"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".4\"\n d=\"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".45\"\n d=\"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n opacity=\".5\"\n d=\"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n <path\n d=\"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n ></path>\n </svg>\n )}\n <Text size=\"1\" weight=\"medium\">\n {upperFirst(value)}\n </Text>\n </Flex>\n </label>\n ))}\n </Grid>\n </ThemePanelSection>\n </Flex>\n <Button style={{ width: '100%' }} onClick={handleCopyThemeConfig}>\n {copyState === 'copied' ? 'Copied' : 'Copy Theme'}\n </Button>\n </Flex>\n );\n },\n);\nThemePanelContent.displayName = 'ThemePanelContent';\n\nfunction ThemePanelSection(\n props: Omit<React.ComponentPropsWithoutRef<typeof Flex>, 'asChild' | 'direction' | 'gap'>,\n) {\n return (\n <Flex direction=\"column\" gap=\"3\" asChild {...props}>\n <section>{props.children}</section>\n </Flex>\n );\n}\n\nfunction ThemePanelHeading(props: React.ComponentPropsWithoutRef<typeof Heading>) {\n return <Heading as=\"h3\" size={{ initial: '1', sm: '2' }} {...props} />;\n}\n\n// https://github.com/pacocoursey/next-themes/blob/main/packages/next-themes/src/index.tsx#L285\nfunction disableAnimation() {\n const css = document.createElement('style');\n css.appendChild(\n document.createTextNode(\n `*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`,\n ),\n );\n document.head.appendChild(css);\n\n return () => {\n // Force restyle\n (() => window.getComputedStyle(document.body))();\n\n // Wait for next tick before removing\n setTimeout(() => {\n document.head.removeChild(css);\n }, 1);\n };\n}\n\nfunction upperFirst(string: string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nfunction updateRootAppearanceClass(appearance: 'light' | 'dark') {\n const root = document.documentElement;\n const hasLightTheme = root.classList.contains('light-theme');\n const hasDarkTheme = root.classList.contains('dark-theme');\n const hasLight = root.classList.contains('light');\n const hasDark = root.classList.contains('dark');\n\n if (hasLightTheme || hasDarkTheme) {\n root.classList.remove('light-theme', 'dark-theme');\n root.style.colorScheme = appearance;\n root.classList.add(`${appearance}-theme`);\n }\n\n if (hasLight || hasDark) {\n root.classList.remove('light', 'dark');\n root.style.colorScheme = appearance;\n root.classList.add(appearance);\n }\n\n if (!hasLightTheme && !hasDarkTheme && !hasLight && !hasDark) {\n root.style.colorScheme = appearance;\n root.classList.add(appearance);\n }\n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AY,CAACC,IACnD1B,EAAK,MAAM,YAAc/B,EACzB+B,EAAK,UAAU,IAAI/B,CAAU,EAEjC",
6
6
  "names": ["React", "useCallbackRef", "flushSync", "keyboardInputElement", "ThemePanel", "defaultOpen", "props", "forwardedRef", "open", "setOpen", "triggerRef", "previouslyFocusedElementRef", "handleKeydown", "event", "isModifierActive", "isKeyboardInputActive", "isOpen", "flushSync", "ThemePanelImpl", "Tooltip", "Kbd", "onAppearanceChange", "shortcut", "panelProps", "themeContext", "useThemeContext", "Theme", "Flex", "inert", "ScrollArea", "Box", "ThemePanelContent", "onAppearanceChangeProp", "contextProp", "contentProps", "appearance", "accentColor", "onAccentColorChange", "grayColor", "onGrayColorChange", "panelBackground", "onPanelBackgroundChange", "radius", "onRadiusChange", "scaling", "onScalingChange", "resolvedAppearance", "setResolvedAppearance", "hasOnAppearanceChangeProp", "handleAppearanceChangeProp", "useCallbackRef", "handleAppearanceChange", "value", "cleanup", "disableAnimation", "updateRootAppearanceClass", "autoMatchedGray", "getMatchingGrayColor", "resolvedGrayColor", "copyState", "setCopyState", "handleCopyThemeConfig", "theme", "themePropDefs", "key", "textToCopy", "root", "body", "update", "hasDarkClass", "classNameObserver", "mutations", "mutation", "Heading", "ThemePanelSection", "ThemePanelHeading", "color", "upperFirst", "gray", "Grid", "Text", "PopoverRoot", "PopoverTrigger", "IconButton", "AccessibleIcon", "PopoverContent", "Button", "css", "string", "hasLightTheme", "hasDarkTheme", "hasLight", "hasDark"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{a as S}from"./chunk-5GXFBLBJ.js";import{a as f}from"./chunk-UBOOUDS4.js";import{a as o}from"./chunk-5KICSAT7.js";import{a as n}from"./chunk-PS6NEG5A.js";import{a as c}from"./chunk-E23RKOQJ.js";import{b as a}from"./chunk-JUY7CBSL.js";import*as r from"react";import t from"classnames";import{ScrollArea as e}from"radix-ui";var C=r.forwardRef((P,u)=>{let{rest:A,...d}=S(P),[y,v]=f(d),{asChild:s,children:N,className:R,style:b,type:i,scrollHideDelay:g=i!=="scroll"?0:void 0,dir:z,size:p=o.size.default,radius:m=o.radius.default,scrollbars:l=o.scrollbars.default,...h}=A;return r.createElement(e.Root,{type:i,scrollHideDelay:g,className:t("rt-ScrollAreaRoot",y,R),style:c(v,b),asChild:s},n({asChild:s,children:N},w=>r.createElement(r.Fragment,null,r.createElement(e.Viewport,{...h,ref:u,className:"rt-ScrollAreaViewport"},w),r.createElement("div",{className:"rt-ScrollAreaViewportFocusRing"}),l!=="vertical"?r.createElement(e.Scrollbar,{"data-radius":m,orientation:"horizontal",className:t("rt-ScrollAreaScrollbar",a({className:"rt-r-size",value:p,propValues:o.size.values}))},r.createElement(e.Thumb,{className:"rt-ScrollAreaThumb"})):null,l!=="horizontal"?r.createElement(e.Scrollbar,{"data-radius":m,orientation:"vertical",className:t("rt-ScrollAreaScrollbar",a({className:"rt-r-size",value:p,propValues:o.size.values}))},r.createElement(e.Thumb,{className:"rt-ScrollAreaThumb"})):null,l==="both"?r.createElement(e.Corner,{className:"rt-ScrollAreaCorner"}):null)))});C.displayName="ScrollArea";export{C as a};
2
- //# sourceMappingURL=chunk-CTA5ODAO.js.map
1
+ import{a as f}from"./chunk-AO32NT75.js";import{a as S}from"./chunk-5GXFBLBJ.js";import{a as o}from"./chunk-5KICSAT7.js";import{a as n}from"./chunk-PS6NEG5A.js";import{a as c}from"./chunk-E23RKOQJ.js";import{b as a}from"./chunk-PBFSBHBS.js";import*as r from"react";import t from"classnames";import{ScrollArea as e}from"radix-ui";var C=r.forwardRef((P,u)=>{let{rest:A,...d}=S(P),[y,v]=f(d),{asChild:s,children:N,className:R,style:b,type:i,scrollHideDelay:g=i!=="scroll"?0:void 0,dir:z,size:p=o.size.default,radius:m=o.radius.default,scrollbars:l=o.scrollbars.default,...h}=A;return r.createElement(e.Root,{type:i,scrollHideDelay:g,className:t("rt-ScrollAreaRoot",y,R),style:c(v,b),asChild:s},n({asChild:s,children:N},w=>r.createElement(r.Fragment,null,r.createElement(e.Viewport,{...h,ref:u,className:"rt-ScrollAreaViewport"},w),r.createElement("div",{className:"rt-ScrollAreaViewportFocusRing"}),l!=="vertical"?r.createElement(e.Scrollbar,{"data-radius":m,orientation:"horizontal",className:t("rt-ScrollAreaScrollbar",a({className:"rt-r-size",value:p,propValues:o.size.values}))},r.createElement(e.Thumb,{className:"rt-ScrollAreaThumb"})):null,l!=="horizontal"?r.createElement(e.Scrollbar,{"data-radius":m,orientation:"vertical",className:t("rt-ScrollAreaScrollbar",a({className:"rt-r-size",value:p,propValues:o.size.values}))},r.createElement(e.Thumb,{className:"rt-ScrollAreaThumb"})):null,l==="both"?r.createElement(e.Corner,{className:"rt-ScrollAreaCorner"}):null)))});C.displayName="ScrollArea";export{C as a};
2
+ //# sourceMappingURL=chunk-4WU2WKUJ.js.map
@@ -0,0 +1,2 @@
1
+ import{b as r}from"./chunk-KRJTW535.js";import{a as e}from"./chunk-NZJGC6ZW.js";import{d as a}from"./chunk-ZNK6AH2G.js";var t=["1","2","3","4"],s=["ghost","surface","classic"],o=["solid","soft","surface","outline"],n=["solid","translucent"],u={...e,size:{type:"enum",className:"rt-r-size",values:t,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:s,default:"surface"},src:{type:"string"},fallback:{type:"ReactNode",required:!0},name:{type:"string",required:!0},description:{type:"string"},avatarVariant:{type:"enum",values:o,default:"soft"},...r,...a,panelBackground:{type:"enum",values:n,default:void 0},flush:{type:"boolean",default:!1}};export{u as a};
2
+ //# sourceMappingURL=chunk-4WVNMGI5.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/user-card.props.tsx"],
4
+ "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['ghost', 'surface', 'classic'] as const;\nconst avatarVariants = ['solid', 'soft', 'surface', 'outline'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\n\nconst userCardPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n\n // Content props\n src: { type: 'string' },\n fallback: { type: 'ReactNode', required: true },\n name: { type: 'string', required: true },\n description: { type: 'string' },\n\n // Avatar styling\n avatarVariant: { type: 'enum', values: avatarVariants, default: 'soft' },\n ...radiusPropDef,\n\n // Card styling\n ...accentColorPropDef,\n panelBackground: { type: 'enum', values: panelBackgrounds, default: undefined },\n flush: { type: 'boolean', default: false },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n src: PropDef<string>;\n fallback: PropDef<React.ReactNode>;\n name: PropDef<string>;\n description: PropDef<string>;\n avatarVariant: PropDef<(typeof avatarVariants)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number] | undefined>;\n flush: PropDef<boolean>;\n};\n\nexport { userCardPropDefs };\n"],
5
+ "mappings": "wHAMA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAW,CAAC,QAAS,UAAW,SAAS,EACzCC,EAAiB,CAAC,QAAS,OAAQ,UAAW,SAAS,EACvDC,EAAmB,CAAC,QAAS,aAAa,EAE1CC,EAAmB,CACvB,GAAGC,EACH,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQL,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,SAAU,EAGvF,IAAK,CAAE,KAAM,QAAS,EACtB,SAAU,CAAE,KAAM,YAAa,SAAU,EAAK,EAC9C,KAAM,CAAE,KAAM,SAAU,SAAU,EAAK,EACvC,YAAa,CAAE,KAAM,QAAS,EAG9B,cAAe,CAAE,KAAM,OAAQ,OAAQC,EAAgB,QAAS,MAAO,EACvE,GAAGI,EAGH,GAAGC,EACH,gBAAiB,CAAE,KAAM,OAAQ,OAAQJ,EAAkB,QAAS,MAAU,EAC9E,MAAO,CAAE,KAAM,UAAW,QAAS,EAAM,CAC3C",
6
+ "names": ["sizes", "variants", "avatarVariants", "panelBackgrounds", "userCardPropDefs", "asChildPropDef", "radiusPropDef", "accentColorPropDef"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as p}from"./chunk-FD2TR343.js";import{a as s}from"./chunk-ZE2KAVXW.js";import{a as t}from"./chunk-WYADYDPN.js";import{b as r}from"./chunk-ZWZGUBL4.js";import{a as o}from"./chunk-NZJGC6ZW.js";import{d as e}from"./chunk-ZNK6AH2G.js";var a=["1","2","3","4","5","6","7","8","9"],i=["solid","soft","outline","ghost"],P={...o,size:{type:"enum",className:"rt-r-size",values:a,responsive:!0},variant:{type:"enum",className:"rt-variant",values:i,default:"soft"},...p,...e,...r,...s,...t};export{P as a};
2
+ //# sourceMappingURL=chunk-5M7STAH3.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/code.props.tsx"],
4
+ "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { emphasisPropDef } from '../props/emphasis.prop.js';\nimport { textWrapPropDef } from '../props/text-wrap.prop.js';\nimport { truncatePropDef } from '../props/truncate.prop.js';\nimport { weightPropDef } from '../props/weight.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\nconst variants = ['solid', 'soft', 'outline', 'ghost'] as const;\n\nconst codePropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'soft' },\n ...weightPropDef,\n ...accentColorPropDef,\n ...emphasisPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { codePropDefs };\n"],
5
+ "mappings": "gPASA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EACpDC,EAAW,CAAC,QAAS,OAAQ,UAAW,OAAO,EAE/CC,EAAe,CACnB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQH,EACR,WAAY,EACd,EACA,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,MAAO,EACpF,GAAGG,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,CACL",
6
+ "names": ["sizes", "variants", "codePropDefs", "asChildPropDef", "weightPropDef", "accentColorPropDef", "emphasisPropDef", "truncatePropDef", "textWrapPropDef"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as r}from"./chunk-F6V7GBNQ.js";import{a as o}from"./chunk-NZJGC6ZW.js";var f={...o,...r};export{f as a};
2
+ //# sourceMappingURL=chunk-5SNHUVDA.js.map
@@ -1,2 +1,2 @@
1
- import{a as P}from"./chunk-4TCXI3L3.js";import{a as n}from"./chunk-GSTOGDAJ.js";import{a as m}from"./chunk-6FLLFCBU.js";import*as e from"react";import{Slot as c}from"radix-ui";var l={...P,...n},f=e.memo(e.forwardRef((i,o)=>{let{children:t,className:p,asChild:x,as:T="span",color:r,...s}=m(i,l),a=p?`rt-Text ${p}`:"rt-Text";return x?e.createElement(c.Root,{"data-accent-color":r,...s,ref:o,className:a},t):e.createElement(T,{"data-accent-color":r,...s,ref:o,className:a},t)}));f.displayName="Text";export{f as a};
2
- //# sourceMappingURL=chunk-H7ST535H.js.map
1
+ import{a as P}from"./chunk-26I257HE.js";import{a as n}from"./chunk-GSTOGDAJ.js";import{a as m}from"./chunk-UBSLEGQZ.js";import*as e from"react";import{Slot as c}from"radix-ui";var l={...P,...n},f=e.memo(e.forwardRef((i,o)=>{let{children:t,className:p,asChild:x,as:T="span",color:r,...s}=m(i,l),a=p?`rt-Text ${p}`:"rt-Text";return x?e.createElement(c.Root,{"data-accent-color":r,...s,ref:o,className:a},t):e.createElement(T,{"data-accent-color":r,...s,ref:o,className:a},t)}));f.displayName="Text";export{f as a};
2
+ //# sourceMappingURL=chunk-5TAHT6VC.js.map
@@ -0,0 +1,2 @@
1
+ import{b as r}from"./chunk-KRJTW535.js";import{c as e}from"./chunk-ZNK6AH2G.js";var s=["1","2","3","4"],t=["surface","soft","outline"],p={size:{type:"enum",className:"rt-r-size",values:s,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:t,default:"surface"},...e,...r,duration:{type:"string"}};export{p as a};
2
+ //# sourceMappingURL=chunk-5XV4QEP5.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/progress.props.tsx"],
4
+ "sourcesContent": ["import { colorPropDef } from '../props/color.prop.js';\nimport { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['surface', 'soft', 'outline'] as const;\n\nconst progressPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n ...colorPropDef,\n ...radiusPropDef,\n duration: { type: 'string' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n duration: PropDef<string>;\n};\n\nexport { progressPropDefs };\n"],
5
+ "mappings": "gFAKA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAW,CAAC,UAAW,OAAQ,SAAS,EAExCC,EAAmB,CACvB,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQF,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,SAAU,EACvF,GAAGE,EACH,GAAGC,EACH,SAAU,CAAE,KAAM,QAAS,CAC7B",
6
+ "names": ["sizes", "variants", "progressPropDefs", "colorPropDef", "radiusPropDef"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-HAGKI7NA.js";import{a as s}from"./chunk-NZJGC6ZW.js";import{c as o}from"./chunk-ZNK6AH2G.js";var r=["1","2","3","4","5","6","7","8","9","10","11","12"],a=["outline","classic","ghost","soft","surface"],t=["solid","translucent"],u={...s,size:{type:"enum",className:"rt-r-size",values:r,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:a,default:"surface"},panelBackground:{type:"enum",values:t,default:void 0},...o,columns:{...e.columns,default:"repeat(auto-fit, minmax(200px, 1fr))"},gap:{...e.gap,default:"4"}};export{u as a};
2
+ //# sourceMappingURL=chunk-667BKCUG.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/checkbox-cards.props.tsx"],
4
+ "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { colorPropDef } from '../props/color.prop.js';\nimport { gridPropDefs } from './grid.props.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'] as const;\nconst variants = ['outline', 'classic', 'ghost', 'soft', 'surface'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\n\nconst checkboxCardsRootPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n panelBackground: { type: 'enum', values: panelBackgrounds, default: undefined },\n ...colorPropDef,\n columns: { ...gridPropDefs.columns, default: 'repeat(auto-fit, minmax(200px, 1fr))' },\n gap: { ...gridPropDefs.gap, default: '4' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number] | undefined>;\n columns: PropDef<(typeof gridPropDefs.columns.values)[number]>;\n gap: PropDef<(typeof gridPropDefs.gap.values)[number]>;\n};\n\nexport { checkboxCardsRootPropDefs };\n"],
5
+ "mappings": "wHAMA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,KAAM,KAAM,IAAI,EACtEC,EAAW,CAAC,UAAW,UAAW,QAAS,OAAQ,SAAS,EAC5DC,EAAmB,CAAC,QAAS,aAAa,EAE1CC,EAA4B,CAChC,GAAGC,EACH,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQJ,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,SAAU,EACvF,gBAAiB,CAAE,KAAM,OAAQ,OAAQC,EAAkB,QAAS,MAAU,EAC9E,GAAGG,EACH,QAAS,CAAE,GAAGC,EAAa,QAAS,QAAS,sCAAuC,EACpF,IAAK,CAAE,GAAGA,EAAa,IAAK,QAAS,GAAI,CAC3C",
6
+ "names": ["sizes", "variants", "panelBackgrounds", "checkboxCardsRootPropDefs", "asChildPropDef", "colorPropDef", "gridPropDefs"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-6HEAF5IT.js";import{z as o}from"zod";var l=t.extend({tooltip:o.string().optional().describe("Content to display in the tooltip on hover/focus"),tooltipSide:o.enum(["top","right","bottom","left"]).optional().default("top").describe("Side of the button where the tooltip should appear"),tooltipAlign:o.enum(["start","center","end"]).optional().default("center").describe("Alignment of the tooltip relative to the button"),tooltipDelayDuration:o.number().optional().describe("Delay before showing the tooltip (in milliseconds)"),tooltipDisableHoverableContent:o.boolean().optional().default(!1).describe("Whether to disable hoverable content behavior"),"aria-label":o.string().optional().describe("ARIA label for accessibility"),"aria-labelledby":o.string().optional().describe("ARIA labelled by reference"),children:o.any().optional().describe("Children elements (required for accessibility if no aria-label)"),pressed:o.boolean().optional().describe("Controlled pressed state"),onPressedChange:o.function().optional().describe("Callback when pressed state changes"),defaultPressed:o.boolean().optional().describe("Default pressed state for uncontrolled usage")}).refine(e=>e["aria-label"]||e["aria-labelledby"]||e.children,{message:"ToggleIconButton must have either 'aria-label', 'aria-labelledby', or 'children' for accessibility",path:["aria-label","aria-labelledby","children"]}).refine(e=>!(e.pressed!==void 0&&e.onPressedChange===void 0),{message:"When using controlled mode (pressed prop), onPressedChange must also be provided",path:["onPressedChange"]}).refine(e=>!(e.pressed!==void 0&&e.defaultPressed!==void 0),{message:"Cannot use both controlled (pressed) and uncontrolled (defaultPressed) props together",path:["pressed","defaultPressed"]});function s(e){return e}export{l as a,s as b};
2
- //# sourceMappingURL=chunk-MHPPVJDB.js.map
1
+ import{a as t}from"./chunk-KZYFTDGO.js";import{z as o}from"zod";var l=t.extend({tooltip:o.string().optional().describe("Content to display in the tooltip on hover/focus"),tooltipSide:o.enum(["top","right","bottom","left"]).optional().default("top").describe("Side of the button where the tooltip should appear"),tooltipAlign:o.enum(["start","center","end"]).optional().default("center").describe("Alignment of the tooltip relative to the button"),tooltipDelayDuration:o.number().optional().describe("Delay before showing the tooltip (in milliseconds)"),tooltipDisableHoverableContent:o.boolean().optional().default(!1).describe("Whether to disable hoverable content behavior"),"aria-label":o.string().optional().describe("ARIA label for accessibility"),"aria-labelledby":o.string().optional().describe("ARIA labelled by reference"),children:o.any().optional().describe("Children elements (required for accessibility if no aria-label)"),pressed:o.boolean().optional().describe("Controlled pressed state"),onPressedChange:o.function().optional().describe("Callback when pressed state changes"),defaultPressed:o.boolean().optional().describe("Default pressed state for uncontrolled usage")}).refine(e=>e["aria-label"]||e["aria-labelledby"]||e.children,{message:"ToggleIconButton must have either 'aria-label', 'aria-labelledby', or 'children' for accessibility",path:["aria-label","aria-labelledby","children"]}).refine(e=>!(e.pressed!==void 0&&e.onPressedChange===void 0),{message:"When using controlled mode (pressed prop), onPressedChange must also be provided",path:["onPressedChange"]}).refine(e=>!(e.pressed!==void 0&&e.defaultPressed!==void 0),{message:"Cannot use both controlled (pressed) and uncontrolled (defaultPressed) props together",path:["pressed","defaultPressed"]});function s(e){return e}export{l as a,s as b};
2
+ //# sourceMappingURL=chunk-67MKPTZJ.js.map
@@ -1,2 +1,2 @@
1
- import{a as L,b as l,c as n}from"./chunk-WR7YLY46.js";import{a as m}from"./chunk-H7ST535H.js";import{a as i}from"./chunk-GSTOGDAJ.js";import{a as r}from"./chunk-6FLLFCBU.js";import{a as R}from"./chunk-OS3FCYZY.js";var y={};R(y,{Item:()=>P,Label:()=>d,Root:()=>D,Value:()=>f});import p from"classnames";import*as t from"react";var D=t.forwardRef((a,e)=>{let{className:s,...o}=r(a,L,i);return t.createElement(m,{asChild:!0},t.createElement("dl",{...o,ref:e,className:p("rt-DataListRoot",s)}))});D.displayName="DataList.Root";var P=t.forwardRef((a,e)=>{let{className:s,...o}=r(a,l);return t.createElement("div",{...o,ref:e,className:p("rt-DataListItem",s)})});P.displayName="DataList.Item";var d=t.forwardRef((a,e)=>{let{className:s,color:o,...c}=r(a,n);return t.createElement("dt",{...c,"data-accent-color":o,ref:e,className:p("rt-DataListLabel",s)})});d.displayName="DataList.Label";var f=t.forwardRef(({children:a,className:e,...s},o)=>t.createElement("dd",{...s,ref:o,className:p(e,"rt-DataListValue")},a));f.displayName="DataList.Value";export{D as a,P as b,d as c,f as d,y as e};
2
- //# sourceMappingURL=chunk-UFI53QUC.js.map
1
+ import{a as L,b as l,c as n}from"./chunk-NIIEIZKQ.js";import{a as m}from"./chunk-5TAHT6VC.js";import{a as i}from"./chunk-GSTOGDAJ.js";import{a as r}from"./chunk-UBSLEGQZ.js";import{a as R}from"./chunk-OS3FCYZY.js";var y={};R(y,{Item:()=>P,Label:()=>d,Root:()=>D,Value:()=>f});import p from"classnames";import*as t from"react";var D=t.forwardRef((a,e)=>{let{className:s,...o}=r(a,L,i);return t.createElement(m,{asChild:!0},t.createElement("dl",{...o,ref:e,className:p("rt-DataListRoot",s)}))});D.displayName="DataList.Root";var P=t.forwardRef((a,e)=>{let{className:s,...o}=r(a,l);return t.createElement("div",{...o,ref:e,className:p("rt-DataListItem",s)})});P.displayName="DataList.Item";var d=t.forwardRef((a,e)=>{let{className:s,color:o,...c}=r(a,n);return t.createElement("dt",{...c,"data-accent-color":o,ref:e,className:p("rt-DataListLabel",s)})});d.displayName="DataList.Label";var f=t.forwardRef(({children:a,className:e,...s},o)=>t.createElement("dd",{...s,ref:o,className:p(e,"rt-DataListValue")},a));f.displayName="DataList.Value";export{D as a,P as b,d as c,f as d,y as e};
2
+ //# sourceMappingURL=chunk-6J6YX2VX.js.map
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk-KNQBAOMV.js";import{a as p}from"./chunk-FD2TR343.js";import{a as s}from"./chunk-ZE2KAVXW.js";import{a as t}from"./chunk-WYADYDPN.js";import{a as e}from"./chunk-NZJGC6ZW.js";import{d as r}from"./chunk-ZNK6AH2G.js";var n=["1","2","3","4","5","6","7","8","9"],i=["auto","always","hover","none"],D={...e,size:{type:"enum",className:"rt-r-size",values:n,responsive:!0},...p,...o,...s,...t,underline:{type:"enum",className:"rt-underline",values:i,default:"auto"},...r};export{D as a};
2
+ //# sourceMappingURL=chunk-7FKKGUHK.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/link.props.tsx"],
4
+ "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.prop.js';\nimport { textWrapPropDef } from '../props/text-wrap.prop.js';\nimport { truncatePropDef } from '../props/truncate.prop.js';\nimport { weightPropDef } from '../props/weight.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\nconst underline = ['auto', 'always', 'hover', 'none'] as const;\n\nconst linkPropDefs = {\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n ...weightPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n underline: { type: 'enum', className: 'rt-underline', values: underline, default: 'auto' },\n ...accentColorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n underline: PropDef<(typeof underline)[number]>;\n};\n\nexport { linkPropDefs };\n"],
5
+ "mappings": "gPASA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EACpDC,EAAY,CAAC,OAAQ,SAAU,QAAS,MAAM,EAE9CC,EAAe,CACnB,GAAGC,EACH,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQH,EACR,WAAY,EACd,EACA,GAAGI,EACH,GAAGC,EACH,GAAGC,EACH,GAAGC,EACH,UAAW,CAAE,KAAM,OAAQ,UAAW,eAAgB,OAAQN,EAAW,QAAS,MAAO,EACzF,GAAGO,CACL",
6
+ "names": ["sizes", "underline", "linkPropDefs", "asChildPropDef", "weightPropDef", "leadingTrimPropDef", "truncatePropDef", "textWrapPropDef", "accentColorPropDef"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-72AHPGPN.js";import{a as u}from"./chunk-MJJ7XDIP.js";import{b,c as d}from"./chunk-DXL6V2A5.js";import{a as C}from"./chunk-6FLLFCBU.js";import{a as w}from"./chunk-OS3FCYZY.js";var j={};w(j,{Anchor:()=>M,Close:()=>N,Content:()=>x,Root:()=>E,Toolbar:()=>I,Trigger:()=>L});import*as e from"react";import v from"classnames";import{Popover as c}from"radix-ui";var h=e.createContext(null),y=t=>{let o=e.useContext(h);return o},E=t=>e.createElement(c.Root,{...t});E.displayName="Popover.Root";var L=e.forwardRef(({children:t,...o},r)=>e.createElement(c.Trigger,{...o,ref:r,asChild:!0},u(t)));L.displayName="Popover.Trigger";var x=e.forwardRef((t,o)=>{let r=b(),p=t.panelBackground??r.panelBackground,{className:n,forceMount:s,container:a,panelBackground:i,...f}=C(t,g),l=e.useRef(null),R=e.useCallback(P=>{l.current=P,typeof o=="function"?o(P):o&&(o.current=P)},[o]),[S,k]=e.useState(void 0),T=e.useCallback(P=>{let m=l.current;m&&(P>0?(m.style.setProperty("--popover-toolbar-offset",`${P}px`),m.setAttribute("data-has-toolbar","true")):(m.style.removeProperty("--popover-toolbar-offset"),m.removeAttribute("data-has-toolbar")))},[]);return e.createElement(c.Portal,{container:a,forceMount:s},e.createElement(d,{asChild:!0},e.createElement(c.Content,{align:"start",sideOffset:8,collisionPadding:10,...f,ref:R,"aria-labelledby":S,"data-panel-background":p,className:v("rt-PopperContent","rt-PopoverContent",n)},e.createElement(h.Provider,{value:e.useMemo(()=>({contentRef:l,setToolbarOffset:T,setLabelId:k}),[T])},t.children))))});x.displayName="Popover.Content";var N=e.forwardRef(({children:t,...o},r)=>e.createElement(c.Close,{...o,ref:r,asChild:!0},u(t)));N.displayName="Popover.Close";var M=e.forwardRef(({children:t,...o},r)=>e.createElement(c.Anchor,{...o,ref:r}));M.displayName="Popover.Anchor";var A=e.forwardRef(({className:t,children:o,...r},p)=>{let n=y("Popover.Toolbar"),s=e.useRef(null),a=e.useCallback(i=>{s.current=i,typeof p=="function"?p(i):p&&(p.current=i)},[p]);return e.useEffect(()=>{if(!n||!s.current)return;let i=s.current,f=()=>{let R=i.getBoundingClientRect().height;n.setToolbarOffset(R)};f();let l=new ResizeObserver(f);return l.observe(i),()=>{l.disconnect(),n.setToolbarOffset(0)}},[n]),e.createElement("div",{...r,ref:a,className:v("rt-PopoverToolbar",t)},o)});A.displayName="Popover.Toolbar";var D=e.forwardRef(({className:t,...o},r)=>e.createElement("div",{...o,ref:r,className:v("rt-PopoverToolbarSection","rt-PopoverToolbarLeft",t)}));D.displayName="Popover.Toolbar.Left";var H=e.forwardRef(({className:t,...o},r)=>e.createElement("div",{...o,ref:r,className:v("rt-PopoverToolbarSection","rt-PopoverToolbarCenter",t)}));H.displayName="Popover.Toolbar.Center";var O=e.forwardRef(({className:t,...o},r)=>e.createElement("div",{...o,ref:r,className:v("rt-PopoverToolbarSection","rt-PopoverToolbarRight",t)}));O.displayName="Popover.Toolbar.Right";var W=e.forwardRef(({className:t,id:o,...r},p)=>{let n=y("Popover.Toolbar.Title"),s=e.useId(),a=o??`rt-popover-toolbar-title-${s}`;return e.useEffect(()=>(n?.setLabelId(a),()=>n?.setLabelId(void 0)),[n,a]),e.createElement("span",{...r,id:a,ref:p,className:v("rt-PopoverToolbarTitle",t)})});W.displayName="Popover.Toolbar.Title";var I=Object.assign(A,{Left:D,Center:H,Right:O,Title:W});export{E as a,L as b,x as c,N as d,M as e,I as f,j as g};
2
- //# sourceMappingURL=chunk-UUUZXUIP.js.map
1
+ import{a as g}from"./chunk-72AHPGPN.js";import{a as u}from"./chunk-MJJ7XDIP.js";import{b,c as d}from"./chunk-SEY4NA45.js";import{a as C}from"./chunk-UBSLEGQZ.js";import{a as w}from"./chunk-OS3FCYZY.js";var j={};w(j,{Anchor:()=>M,Close:()=>N,Content:()=>x,Root:()=>E,Toolbar:()=>I,Trigger:()=>L});import*as e from"react";import v from"classnames";import{Popover as c}from"radix-ui";var h=e.createContext(null),y=t=>{let o=e.useContext(h);return o},E=t=>e.createElement(c.Root,{...t});E.displayName="Popover.Root";var L=e.forwardRef(({children:t,...o},r)=>e.createElement(c.Trigger,{...o,ref:r,asChild:!0},u(t)));L.displayName="Popover.Trigger";var x=e.forwardRef((t,o)=>{let r=b(),p=t.panelBackground??r.panelBackground,{className:n,forceMount:s,container:a,panelBackground:i,...f}=C(t,g),l=e.useRef(null),R=e.useCallback(P=>{l.current=P,typeof o=="function"?o(P):o&&(o.current=P)},[o]),[S,k]=e.useState(void 0),T=e.useCallback(P=>{let m=l.current;m&&(P>0?(m.style.setProperty("--popover-toolbar-offset",`${P}px`),m.setAttribute("data-has-toolbar","true")):(m.style.removeProperty("--popover-toolbar-offset"),m.removeAttribute("data-has-toolbar")))},[]);return e.createElement(c.Portal,{container:a,forceMount:s},e.createElement(d,{asChild:!0},e.createElement(c.Content,{align:"start",sideOffset:8,collisionPadding:10,...f,ref:R,"aria-labelledby":S,"data-panel-background":p,className:v("rt-PopperContent","rt-PopoverContent",n)},e.createElement(h.Provider,{value:e.useMemo(()=>({contentRef:l,setToolbarOffset:T,setLabelId:k}),[T])},t.children))))});x.displayName="Popover.Content";var N=e.forwardRef(({children:t,...o},r)=>e.createElement(c.Close,{...o,ref:r,asChild:!0},u(t)));N.displayName="Popover.Close";var M=e.forwardRef(({children:t,...o},r)=>e.createElement(c.Anchor,{...o,ref:r}));M.displayName="Popover.Anchor";var A=e.forwardRef(({className:t,children:o,...r},p)=>{let n=y("Popover.Toolbar"),s=e.useRef(null),a=e.useCallback(i=>{s.current=i,typeof p=="function"?p(i):p&&(p.current=i)},[p]);return e.useEffect(()=>{if(!n||!s.current)return;let i=s.current,f=()=>{let R=i.getBoundingClientRect().height;n.setToolbarOffset(R)};f();let l=new ResizeObserver(f);return l.observe(i),()=>{l.disconnect(),n.setToolbarOffset(0)}},[n]),e.createElement("div",{...r,ref:a,className:v("rt-PopoverToolbar",t)},o)});A.displayName="Popover.Toolbar";var D=e.forwardRef(({className:t,...o},r)=>e.createElement("div",{...o,ref:r,className:v("rt-PopoverToolbarSection","rt-PopoverToolbarLeft",t)}));D.displayName="Popover.Toolbar.Left";var H=e.forwardRef(({className:t,...o},r)=>e.createElement("div",{...o,ref:r,className:v("rt-PopoverToolbarSection","rt-PopoverToolbarCenter",t)}));H.displayName="Popover.Toolbar.Center";var O=e.forwardRef(({className:t,...o},r)=>e.createElement("div",{...o,ref:r,className:v("rt-PopoverToolbarSection","rt-PopoverToolbarRight",t)}));O.displayName="Popover.Toolbar.Right";var W=e.forwardRef(({className:t,id:o,...r},p)=>{let n=y("Popover.Toolbar.Title"),s=e.useId(),a=o??`rt-popover-toolbar-title-${s}`;return e.useEffect(()=>(n?.setLabelId(a),()=>n?.setLabelId(void 0)),[n,a]),e.createElement("span",{...r,id:a,ref:p,className:v("rt-PopoverToolbarTitle",t)})});W.displayName="Popover.Toolbar.Title";var I=Object.assign(A,{Left:D,Center:H,Right:O,Title:W});export{E as a,L as b,x as c,N as d,M as e,I as f,j as g};
2
+ //# sourceMappingURL=chunk-7NYODT3Z.js.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-FMBECDL4.js";import{a as c}from"./chunk-E67CIG6A.js";import*as a from"react";import f from"classnames";var s=["xl","lg","md","sm","xs","initial"];function m(e,t,n){if(e==null)return n;if(typeof e!="object")return e;let o=e;for(let i=s.indexOf(t);i<s.length;i++){let r=o[s[i]];if(r!==void 0)return r}return n}function h(e,t){let n=typeof e=="object"&&e!==null,{breakpoint:o}=u(n);return m(e,o,t)}function B(e,t,n){return e??t??n.material??n.panelBackground}var d={1:8,2:12,3:12};function A(e,t){let n=t?parseFloat(t)/100:1,o=d[e]??d[2];return-Math.round(o*(Number.isFinite(n)?n:1))}var p={"\u2318":"Meta",cmd:"Meta",command:"Meta",meta:"Meta","\u2325":"Alt",option:"Alt",opt:"Alt",alt:"Alt","\u21E7":"Shift",shift:"Shift","\u2303":"Control",ctrl:"Control",control:"Control","\u232B":"Backspace","\u2326":"Delete","\u23CE":"Enter","\u21B5":"Enter","\u238B":"Escape",esc:"Escape","\u21E5":"Tab","\u2191":"ArrowUp","\u2193":"ArrowDown","\u2190":"ArrowLeft","\u2192":"ArrowRight"},l=new Map;function k(e){let t=l.get(e);if(t!==void 0)return t||void 0;let i=(e.match(/[⌘⌥⇧⌃]|[^\s+⌘⌥⇧⌃]+/gu)??[]).map(r=>p[r]??p[r.toLowerCase()]??(r.length===1?r.toUpperCase():r)).join("+");return l.set(e,i),i||void 0}function N({shortcut:e,className:t}){return a.createElement("div",{"aria-hidden":!0,className:f("rt-BaseMenuShortcut",t)},a.createElement(c,{size:"1"},e))}export{m as a,h as b,B as c,A as d,k as e,N as f};
2
- //# sourceMappingURL=chunk-NVDXXGVW.js.map
1
+ import{a as c}from"./chunk-JDWCQ2XP.js";import{b as u}from"./chunk-3XSB7YIM.js";import*as a from"react";import f from"classnames";var s=["xl","lg","md","sm","xs","initial"];function m(e,t,n){if(e==null)return n;if(typeof e!="object")return e;let o=e;for(let i=s.indexOf(t);i<s.length;i++){let r=o[s[i]];if(r!==void 0)return r}return n}function h(e,t){let n=typeof e=="object"&&e!==null,{breakpoint:o}=u(n);return m(e,o,t)}function B(e,t,n){return e??t??n.material??n.panelBackground}var d={1:8,2:12,3:12};function A(e,t){let n=t?parseFloat(t)/100:1,o=d[e]??d[2];return-Math.round(o*(Number.isFinite(n)?n:1))}var p={"\u2318":"Meta",cmd:"Meta",command:"Meta",meta:"Meta","\u2325":"Alt",option:"Alt",opt:"Alt",alt:"Alt","\u21E7":"Shift",shift:"Shift","\u2303":"Control",ctrl:"Control",control:"Control","\u232B":"Backspace","\u2326":"Delete","\u23CE":"Enter","\u21B5":"Enter","\u238B":"Escape",esc:"Escape","\u21E5":"Tab","\u2191":"ArrowUp","\u2193":"ArrowDown","\u2190":"ArrowLeft","\u2192":"ArrowRight"},l=new Map;function k(e){let t=l.get(e);if(t!==void 0)return t||void 0;let i=(e.match(/[⌘⌥⇧⌃]|[^\s+⌘⌥⇧⌃]+/gu)??[]).map(r=>p[r]??p[r.toLowerCase()]??(r.length===1?r.toUpperCase():r)).join("+");return l.set(e,i),i||void 0}function N({shortcut:e,className:t}){return a.createElement("div",{"aria-hidden":!0,className:f("rt-BaseMenuShortcut",t)},a.createElement(c,{size:"1"},e))}export{m as a,h as b,B as c,A as d,k as e,N as f};
2
+ //# sourceMappingURL=chunk-7PMMYHZV.js.map
@@ -0,0 +1,2 @@
1
+ import{b as s}from"./chunk-YA5DF67M.js";import*as r from"react";function l(e){return typeof e=="object"&&e!==null}function p(e,n){let t={},o=null;for(let i of s){if(e!==void 0&&!l(e)){t[i]=e;continue}let a=l(e)?e[i]:void 0;a!==void 0&&(o={value:a}),t[i]=o?o.value:n(i)}return t}function d(e){let n=e.initial;return s.every(t=>e[t]===n)?n:void 0}function h(e,n){let t=d(n);if(t!==void 0)return{[`data-${e}`]:t};let o={};for(let i of s)o[`data-${e}-${i}`]=n[i];return o}function P(e){return typeof e=="object"&&e!==null?JSON.stringify(e):String(e)}var T=p("fixed",()=>"fixed");function g(){return{entries:new Map,listeners:new Set,version:0,peek:null}}function f(e){e.version+=1;for(let n of e.listeners)n()}function c(e,n){return e.listeners.add(n),()=>{e.listeners.delete(n)}}function R(e,n){e.peek!==n&&(e.peek=n,f(e))}var S=r.createContext(null);function y(e){let n=r.useContext(S);if(!n)throw new Error(`${e} must be used within <Shell.Root>`);return n}function I(e,n){let t=r.useCallback(i=>c(e,i),[e]),o=r.useCallback(()=>e.entries.get(n),[e,n]);return r.useSyncExternalStore(t,o,()=>{})}function k(e,n){let t=r.useCallback(o=>c(e,o),[e]);return r.useSyncExternalStore(t,()=>e.peek===n,()=>!1)}var b=r.createContext(null);function m(e,n){let t=r.useContext(b);if(!t)throw new Error("Shell panes must be used within <Shell.Root>");let{registerInset:o,unregisterInset:i}=t;r.useLayoutEffect(()=>{if(n)return o(e),()=>i(e)},[e,n,o,i])}var u=new Set;function v(e){}export{p as a,d as b,h as c,P as d,T as e,g as f,f as g,c as h,R as i,S as j,y as k,I as l,k as m,b as n,m as o,v as p};
2
+ //# sourceMappingURL=chunk-A2XVR7GL.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/_internal/shell-store.tsx"],
4
+ "sourcesContent": ["'use client';\n\n/**\n * The Shell's state model (0.8.0), ported from kookie-ui-v2's Shell.\n *\n * - State lives on the pane. Each pane holds `auto | open | closed` (the\n * Sidebar adds `thin`). `auto` means untouched: the stylesheet decides what\n * it shows at each breakpoint, so first paint is right with no script, the\n * server and the client render the same markup, and no open-state callback\n * can fire on mount or on a resize.\n * - The one thing that crosses the Shell is a registry keyed by pane name.\n * Each pane registers what it is and how to drive it; a Trigger looks its\n * pane up, and the Root reads the set of live overlays. Nothing scans\n * children and nothing checks `displayName`.\n * - The responsive props are resolved into a table with one value per\n * breakpoint, from the props alone, with no window. The table is written to\n * the DOM as data attributes for the stylesheet, and read again in JS by the\n * mirror that sets `aria-expanded`. One table, two readers, so they agree by\n * construction.\n */\nimport * as React from 'react';\nimport { SHELL_BREAKPOINTS } from '../shell.types.js';\nimport type { Breakpoint, PaneName, PresentationValue } from '../shell.types.js';\n\n/* \u2500\u2500 Breakpoint tables \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\nexport type Table<T> = Record<Breakpoint, T>;\n\n/** What a pane shows: open, open at its thin width (Sidebar only), or closed. */\nexport type PaneValue = 'open' | 'thin' | 'closed';\n\ntype ResponsiveInput<T> = T | Partial<Record<Breakpoint, T>> | undefined;\n\nfunction isMap<T>(value: ResponsiveInput<T>): value is Partial<Record<Breakpoint, T>> {\n return typeof value === 'object' && value !== null;\n}\n\n/**\n * A responsive value at every breakpoint. A breakpoint takes the largest key\n * at or below it, the same fallback `useResponsiveValue` used; a breakpoint\n * below every key takes `fallback`.\n */\nexport function tableOf<T>(value: ResponsiveInput<T>, fallback: (bp: Breakpoint) => T): Table<T> {\n const table = {} as Table<T>;\n let carried: { value: T } | null = null;\n for (const bp of SHELL_BREAKPOINTS) {\n if (value !== undefined && !isMap(value)) {\n table[bp] = value;\n continue;\n }\n const entry = isMap(value) ? value[bp] : undefined;\n if (entry !== undefined) carried = { value: entry };\n table[bp] = carried ? carried.value : fallback(bp);\n }\n return table;\n}\n\n/** The table's one value, when it has only one. */\nexport function constantOf<T>(table: Table<T>): T | undefined {\n const first = table.initial;\n return SHELL_BREAKPOINTS.every((bp) => table[bp] === first) ? first : undefined;\n}\n\n/**\n * The table as data attributes: `data-<name>` when it holds one value, one\n * `data-<name>-<bp>` per breakpoint when it holds several. The stylesheet has\n * a rule for each spelling.\n */\nexport function tableAttributes(name: string, table: Table<string>): Record<string, string> {\n const constant = constantOf(table);\n if (constant !== undefined) return { [`data-${name}`]: constant };\n const attributes: Record<string, string> = {};\n for (const bp of SHELL_BREAKPOINTS) attributes[`data-${name}-${bp}`] = table[bp];\n return attributes;\n}\n\n/**\n * A responsive prop object is usually an inline literal, a new identity every\n * render. Keying memoisation on its contents keeps the tables, and so the\n * registry entries, stable across renders that change nothing.\n */\nexport function useStableKey(value: unknown): string {\n return typeof value === 'object' && value !== null ? JSON.stringify(value) : String(value);\n}\n\nexport const FIXED_TABLE: Table<PresentationValue> = tableOf<PresentationValue>('fixed', () => 'fixed');\n\n/* \u2500\u2500 The registry \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\nexport type OpenChangeReason = 'toggle' | 'dismiss';\n\nexport type PaneEntry = {\n name: PaneName;\n id: string;\n el: HTMLElement | null;\n /** What the pane shows now; `undefined` while an untouched pane cannot know (before the breakpoint is known). */\n value: PaneValue | undefined;\n /** How the pane is presented now, when known. */\n presentation: PresentationValue | undefined;\n /** The pane's own presentation at every breakpoint. A Panel with none of its own follows the Rail's. */\n presentationTable: Table<PresentationValue>;\n /** Open and presented as an overlay: what the scrim and Escape close, and what containment exempts. */\n overlayLive: boolean;\n /** The pane's designed open width, for panes that sit beside it when floating. */\n size: number;\n setValue: (value: PaneValue, reason: OpenChangeReason) => void;\n toggle: (reason: OpenChangeReason) => void;\n};\n\nexport type ShellStore = {\n entries: Map<PaneName, PaneEntry>;\n listeners: Set<() => void>;\n /**\n * What a subscriber reads. useSyncExternalStore needs a value that is stable\n * between notifications, and a number is; the Map, or anything derived from\n * it, would be a new identity on every read.\n */\n version: number;\n /** The pane a hovered Trigger is previewing, if any. Layout only. */\n peek: PaneName | null;\n};\n\nexport function createShellStore(): ShellStore {\n return { entries: new Map(), listeners: new Set(), version: 0, peek: null };\n}\n\nexport function notifyShellStore(store: ShellStore) {\n store.version += 1;\n for (const listener of store.listeners) listener();\n}\n\nexport function subscribeShellStore(store: ShellStore, listener: () => void) {\n store.listeners.add(listener);\n return () => {\n store.listeners.delete(listener);\n };\n}\n\nexport function setShellPeek(store: ShellStore, peek: PaneName | null) {\n if (store.peek === peek) return;\n store.peek = peek;\n notifyShellStore(store);\n}\n\nexport const ShellStoreContext = React.createContext<ShellStore | null>(null);\n\nexport function useShellStore(part: string): ShellStore {\n const store = React.useContext(ShellStoreContext);\n if (!store) throw new Error(`${part} must be used within <Shell.Root>`);\n return store;\n}\n\n/** One pane's registry entry. Re-renders only when that entry is replaced. */\nexport function usePaneEntry(store: ShellStore, name: PaneName): PaneEntry | undefined {\n const subscribe = React.useCallback((listener: () => void) => subscribeShellStore(store, listener), [store]);\n const getSnapshot = React.useCallback(() => store.entries.get(name), [store, name]);\n return React.useSyncExternalStore(subscribe, getSnapshot, () => undefined);\n}\n\n/**\n * Whether this pane is the one being previewed. A boolean per pane rather than\n * the peek target itself, so hovering one Trigger re-renders one pane, not all.\n */\nexport function usePeeking(store: ShellStore, name: PaneName): boolean {\n const subscribe = React.useCallback((listener: () => void) => subscribeShellStore(store, listener), [store]);\n return React.useSyncExternalStore(\n subscribe,\n () => store.peek === name,\n () => false,\n );\n}\n\n/* \u2500\u2500 Inset \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\nexport type InsetPaneId = 'rail' | 'panel' | 'sidebar' | 'content' | 'inspector' | 'bottom';\n\nexport const ShellInsetContext = React.createContext<{\n registerInset: (id: InsetPaneId) => void;\n unregisterInset: (id: InsetPaneId) => void;\n} | null>(null);\n\n/** Registers a pane's `inset` with the Root, which paints the backdrop while any pane is inset. */\nexport function useInsetRegistration(id: InsetPaneId, inset: boolean | undefined) {\n const ctx = React.useContext(ShellInsetContext);\n if (!ctx) throw new Error('Shell panes must be used within <Shell.Root>');\n const { registerInset, unregisterInset } = ctx;\n React.useLayoutEffect(() => {\n if (!inset) return;\n registerInset(id);\n return () => unregisterInset(id);\n }, [id, inset, registerInset, unregisterInset]);\n}\n\n/* \u2500\u2500 Development warnings \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\nconst warned = new Set<string>();\n\n/** A deprecation warning, once per message per page load. Development only. */\nexport function warnOnce(message: string) {\n if (process.env.NODE_ENV === 'production') return;\n if (warned.has(message)) return;\n warned.add(message);\n console.warn(`[kookie-ui] ${message}`);\n}\n"],
5
+ "mappings": "wCAoBA,UAAYA,MAAW,QAavB,SAASC,EAASC,EAAoE,CACpF,OAAO,OAAOA,G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 "names": ["React", "isMap", "value", "tableOf", "fallback", "table", "carried", "bp", "SHELL_BREAKPOINTS", "entry", "constantOf", "first", "tableAttributes", "name", "constant", "attributes", "useStableKey", "FIXED_TABLE", "createShellStore", "notifyShellStore", "store", "listener", "subscribeShellStore", "setShellPeek", "peek", "ShellStoreContext", "useShellStore", "part", "usePaneEntry", "subscribe", "getSnapshot", "usePeeking", "ShellInsetContext", "useInsetRegistration", "id", "inset", "ctx", "registerInset", "unregisterInset", "warned", "warnOnce", "message"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{h as p,i as b,k as M}from"./chunk-A2XVR7GL.js";import{b as P}from"./chunk-3XSB7YIM.js";import*as o from"react";var S=e=>e===void 0?void 0:e==="closed"?"collapsed":e==="thin"?"thin":"expanded",f=e=>e==="collapsed"?"closed":e==="thin"?"thin":"open",s=e=>e===void 0||e==="closed"?"collapsed":"expanded",l=e=>e==="left"?"rail":e;function m(e){let d=o.useCallback(r=>p(e,r),[e]);return o.useSyncExternalStore(d,()=>e.version,()=>0)}function V(){let e=M("useSidebarMode"),d=o.useCallback(t=>p(e,t),[e]),r=o.useSyncExternalStore(d,()=>e.entries.get("sidebar")?.value,()=>{}),i=o.useCallback(t=>{e.entries.get("sidebar")?.setValue(f(t),"toggle")},[e]);return{sidebarMode:S(r)??"expanded",setSidebarMode:i}}var g=()=>{};function x(){let e=M("useShell");o.useEffect(()=>{},[]),m(e);let{breakpoint:d,ready:r}=P(),i=o.useMemo(()=>{let n=a=>h=>e.entries.get(a)?.setValue(h==="collapsed"?"closed":"open","toggle"),u=a=>b(e,a===null?null:l(a));return{setLeftMode:n("rail"),setPanelMode:n("panel"),setInspectorMode:n("inspector"),setBottomMode:n("bottom"),setSidebarMode:a=>e.entries.get("sidebar")?.setValue(f(a),"toggle"),setPeekTarget:u,peekPane:a=>u(a),clearPeek:()=>u(null),setHasLeft:g,setHasSidebar:g,togglePane:a=>e.entries.get(l(a))?.toggle("toggle"),expandPane:a=>e.entries.get(l(a))?.setValue("open","toggle"),collapsePane:a=>e.entries.get(l(a))?.setValue("closed","toggle")}},[e]),t=n=>e.entries.get(n)?.value,c=e.entries.get("rail");return{leftMode:s(t("rail")),leftControlledOpen:c?.value===void 0?void 0:c.value!=="closed",panelMode:s(t("panel")),sidebarMode:S(t("sidebar"))??"expanded",inspectorMode:s(t("inspector")),bottomMode:s(t("bottom")),peekTarget:e.peek,hasLeft:e.entries.has("rail"),hasSidebar:e.entries.has("sidebar"),currentBreakpoint:d,currentBreakpointReady:r,leftResolvedPresentation:c?.presentation,...i}}export{V as a,x as b};
2
+ //# sourceMappingURL=chunk-ADXZNG4F.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/shell.context.tsx"],
4
+ "sourcesContent": ["'use client';\n\n/**\n * Since 0.8.0 the Shell has two contexts: the pane registry (the store) and\n * the inset set. They live in `_internal/shell-store.tsx`. This module keeps\n * the two hooks consumers can reach: `useSidebarMode`, and the deprecated\n * `useShell`.\n */\nimport * as React from 'react';\nimport { useBreakpoint } from '../hooks/use-breakpoint.js';\nimport type { Breakpoint, PaneMode, PaneName, PaneTarget, PresentationValue, SidebarMode } from './shell.types.js';\nimport { setShellPeek, subscribeShellStore, useShellStore, warnOnce, type PaneValue, type ShellStore } from './_internal/shell-store.js';\n\nconst toSidebarMode = (value: PaneValue | undefined): SidebarMode | undefined => (value === undefined ? undefined : value === 'closed' ? 'collapsed' : value === 'thin' ? 'thin' : 'expanded');\n\nconst fromSidebarMode = (mode: SidebarMode): PaneValue => (mode === 'collapsed' ? 'closed' : mode === 'thin' ? 'thin' : 'open');\n\nconst toPaneMode = (value: PaneValue | undefined): PaneMode => (value === undefined || value === 'closed' ? 'collapsed' : 'expanded');\n\nconst paneName = (target: PaneTarget): PaneName => (target === 'left' ? 'rail' : target);\n\n/** Re-renders on every change to the registry. For the deprecated whole-shell reader only. */\nfunction useStoreVersion(store: ShellStore) {\n const subscribe = React.useCallback((listener: () => void) => subscribeShellStore(store, listener), [store]);\n return React.useSyncExternalStore(\n subscribe,\n () => store.version,\n () => 0,\n );\n}\n\n/**\n * The Sidebar's mode, and a setter. The setter is a user action: it reports\n * through the Sidebar's `onStateChange` the way a Trigger does.\n */\nexport function useSidebarMode(): { sidebarMode: SidebarMode; setSidebarMode: (mode: SidebarMode) => void } {\n const store = useShellStore('useSidebarMode');\n const subscribe = React.useCallback((listener: () => void) => subscribeShellStore(store, listener), [store]);\n const value = React.useSyncExternalStore(\n subscribe,\n () => store.entries.get('sidebar')?.value,\n () => undefined,\n );\n const setSidebarMode = React.useCallback(\n (mode: SidebarMode) => {\n store.entries.get('sidebar')?.setValue(fromSidebarMode(mode), 'toggle');\n },\n [store],\n );\n return { sidebarMode: toSidebarMode(value) ?? 'expanded', setSidebarMode };\n}\n\nexport interface ShellContextValue {\n leftMode: PaneMode;\n setLeftMode: (mode: PaneMode) => void;\n /** The Rail's open state, resolved, when it is controlled. */\n leftControlledOpen?: boolean;\n panelMode: PaneMode;\n setPanelMode: (mode: PaneMode) => void;\n sidebarMode: SidebarMode;\n setSidebarMode: (mode: SidebarMode) => void;\n inspectorMode: PaneMode;\n setInspectorMode: (mode: PaneMode) => void;\n bottomMode: PaneMode;\n setBottomMode: (mode: PaneMode) => void;\n peekTarget: PaneTarget | null;\n setPeekTarget: (target: PaneTarget | null) => void;\n peekPane: (target: PaneTarget) => void;\n clearPeek: () => void;\n /** Whether a Rail is mounted. */\n hasLeft: boolean;\n /** No effect since 0.8.0: the registry knows which panes are mounted. */\n setHasLeft: (has: boolean) => void;\n /** Whether a Sidebar is mounted. */\n hasSidebar: boolean;\n /** No effect since 0.8.0: the registry knows which panes are mounted. */\n setHasSidebar: (has: boolean) => void;\n currentBreakpoint: Breakpoint;\n currentBreakpointReady: boolean;\n /** The Rail's presentation at the current breakpoint, when known. */\n leftResolvedPresentation?: PresentationValue;\n togglePane: (target: PaneTarget) => void;\n expandPane: (target: PaneTarget) => void;\n collapsePane: (target: PaneTarget) => void;\n}\n\nconst noop = () => {};\n\n/**\n * @deprecated The whole-shell reader re-renders its consumer on every change\n * to any pane. Use `Shell.Trigger` to drive a pane, `Shell.useSidebarMode`\n * for the Sidebar, and each pane's `open`/`onOpenChange` for its state.\n * Removed in 1.0.\n *\n * Keeps 0.7's shape. The setters act as a user would: they report through\n * the pane's own callback with `reason: 'toggle'`, and a controlled pane\n * changes only when the app passes the new value.\n */\nexport function useShell(): ShellContextValue {\n const store = useShellStore('useShell');\n React.useEffect(() => {\n warnOnce(\"Shell.useShell is deprecated and is removed in 1.0. Use Shell.Trigger, Shell.useSidebarMode, or a pane's own open/onOpenChange.\");\n }, []);\n useStoreVersion(store);\n const { breakpoint, ready } = useBreakpoint();\n const actions = React.useMemo(() => {\n const setMode = (name: PaneName) => (mode: PaneMode) => store.entries.get(name)?.setValue(mode === 'collapsed' ? 'closed' : 'open', 'toggle');\n const setPeekTarget = (target: PaneTarget | null) => setShellPeek(store, target === null ? null : paneName(target));\n return {\n setLeftMode: setMode('rail'),\n setPanelMode: setMode('panel'),\n setInspectorMode: setMode('inspector'),\n setBottomMode: setMode('bottom'),\n setSidebarMode: (mode: SidebarMode) => store.entries.get('sidebar')?.setValue(fromSidebarMode(mode), 'toggle'),\n setPeekTarget,\n peekPane: (target: PaneTarget) => setPeekTarget(target),\n clearPeek: () => setPeekTarget(null),\n setHasLeft: noop,\n setHasSidebar: noop,\n togglePane: (target: PaneTarget) => store.entries.get(paneName(target))?.toggle('toggle'),\n expandPane: (target: PaneTarget) => store.entries.get(paneName(target))?.setValue('open', 'toggle'),\n collapsePane: (target: PaneTarget) => store.entries.get(paneName(target))?.setValue('closed', 'toggle'),\n };\n }, [store]);\n const value = (name: PaneName) => store.entries.get(name)?.value;\n const rail = store.entries.get('rail');\n return {\n leftMode: toPaneMode(value('rail')),\n leftControlledOpen: rail?.value === undefined ? undefined : rail.value !== 'closed',\n panelMode: toPaneMode(value('panel')),\n sidebarMode: toSidebarMode(value('sidebar')) ?? 'expanded',\n inspectorMode: toPaneMode(value('inspector')),\n bottomMode: toPaneMode(value('bottom')),\n peekTarget: store.peek,\n hasLeft: store.entries.has('rail'),\n hasSidebar: store.entries.has('sidebar'),\n currentBreakpoint: breakpoint,\n currentBreakpointReady: ready,\n leftResolvedPresentation: rail?.presentation,\n ...actions,\n };\n}\n"],
5
+ "mappings": "8FAQA,UAAYA,MAAW,QAKvB,IAAMC,EAAiBC,GAA2DA,IAAU,OAAY,OAAYA,IAAU,SAAW,YAAcA,IAAU,OAAS,OAAS,WAE7KC,EAAmBC,GAAkCA,IAAS,YAAc,SAAWA,IAAS,OAAS,OAAS,OAElHC,EAAcH,GAA4CA,IAAU,QAAaA,IAAU,SAAW,YAAc,WAEpHI,EAAYC,GAAkCA,IAAW,OAAS,OAASA,EAGjF,SAASC,EAAgBC,EAAmB,CAC1C,IAAMC,EAAkB,cAAaC,GAAyBC,EAAoBH,EAAOE,CAAQ,EAAG,CAACF,CAAK,CAAC,EAC3G,OAAa,uBACXC,EACA,IAAMD,EAAM,QACZ,IAAM,CACR,CACF,CAMO,SAASI,GAA4F,CAC1G,IAAMJ,EAAQK,EAAc,gBAAgB,EACtCJ,EAAkB,cAAaC,GAAyBC,EAAoBH,EAAOE,CAAQ,EAAG,CAACF,CAAK,CAAC,EACrGP,EAAc,uBAClBQ,EACA,IAAMD,EAAM,QAAQ,IAAI,SAAS,GAAG,MACpC,IAAG,EACL,EACMM,EAAuB,cAC1BX,GAAsB,CACrBK,EAAM,QAAQ,IAAI,SAAS,GAAG,SAASN,EAAgBC,CAAI,EAAG,QAAQ,CACxE,EACA,CAACK,CAAK,CACR,EACA,MAAO,CAAE,YAAaR,EAAcC,CAAK,GAAK,WAAY,eAAAa,CAAe,CAC3E,CAoCA,IAAMC,EAAO,IAAM,CAAC,EAYb,SAASC,GAA8B,CAC5C,IAAMR,EAAQK,EAAc,UAAU,EAChC,YAAU,IAAM,CAEtB,EAAG,CAAC,CAAC,EACLN,EAAgBC,CAAK,EACrB,GAAM,C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AC,EACtC,WAAYO,EAAM,KAClB,QAASA,EAAM,QAAQ,IAAI,MAAM,EACjC,WAAYA,EAAM,QAAQ,IAAI,SAAS,EACvC,kBAAmBS,EACnB,uBAAwBC,EACxB,yBAA0BO,GAAM,aAChC,GAAGL,CACL,CACF",
6
+ "names": ["React", "toSidebarMode", "value", "fromSidebarMode", "mode", "toPaneMode", "paneName", "target", "useStoreVersion", "store", "subscribe", "listener", "subscribeShellStore", "useSidebarMode", "useShellStore", "setSidebarMode", "noop", "useShell", "breakpoint", "ready", "useBreakpoint", "actions", "setMode", "name", "setPeekTarget", "setShellPeek", "rail"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{c as e}from"./chunk-ZNK6AH2G.js";var s=["1","2","3","4"],a=["surface","soft","outline"],t=["solid","translucent"],n=["solid","translucent"],o={size:{type:"enum",className:"rt-r-size",values:s,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:a,default:"surface"},...e,material:{type:"enum",values:n,default:void 0},panelBackground:{type:"enum",values:t,default:void 0}};export{o as a};
2
+ //# sourceMappingURL=chunk-AF6XKU3W.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/switch.props.tsx"],
4
+ "sourcesContent": ["import { colorPropDef } from '../props/color.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['surface', 'soft', 'outline'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\nconst materials = ['solid', 'translucent'] as const;\n\nconst switchPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n ...colorPropDef,\n /**\n * Material type for visual rendering and depth effects\n * Controls how the switch renders its visual elements\n */\n material: { type: 'enum', values: materials, default: undefined },\n /**\n * Panel background type (deprecated)\n * @deprecated Use `material` prop instead. This prop will be removed in a future version.\n */\n panelBackground: { type: 'enum', values: panelBackgrounds, default: undefined },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n material: PropDef<(typeof materials)[number] | undefined>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number] | undefined>;\n};\n\nexport { switchPropDefs };\n"],
5
+ "mappings": "wCAIA,IAAMA,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAW,CAAC,UAAW,OAAQ,SAAS,EACxCC,EAAmB,CAAC,QAAS,aAAa,EAC1CC,EAAY,CAAC,QAAS,aAAa,EAEnCC,EAAiB,CACrB,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQJ,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,SAAU,EACvF,GAAGI,EAKH,SAAU,CAAE,KAAM,OAAQ,OAAQF,EAAW,QAAS,MAAU,EAKhE,gBAAiB,CAAE,KAAM,OAAQ,OAAQD,EAAkB,QAAS,MAAU,CAChF",
6
+ "names": ["sizes", "variants", "panelBackgrounds", "materials", "switchPropDefs", "colorPropDef"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as g,d as i}from"./chunk-HCNO7PX6.js";import{a as S,b,c as R}from"./chunk-GMHA5CFH.js";import{o as C}from"./chunk-A2XVR7GL.js";import{a as v,b as y}from"./chunk-BZZXXZ3O.js";import{a as I}from"./chunk-HWQ3NTJP.js";import{a as l,c as x,e as O,g as E}from"./chunk-3J6AUDID.js";import{a as h}from"./chunk-3XSB7YIM.js";import*as e from"react";import re from"classnames";import{useComposedRefs as ae}from"radix-ui/internal";var ie={controlled:"open",default:"defaultOpen"},le={initial:"overlay",sm:"fixed"},T=e.forwardRef((N,M)=>{let{className:w,presentation:H=le,defaultOpen:U,open:A,onOpenChange:B,expandedSize:o=320,minSize:p=200,maxSize:d=500,resizable:c=!1,collapsible:V=!0,onExpand:k,onCollapse:L,onResize:_,onResizeStart:D,onResizeEnd:$,snapPoints:t,snapTolerance:q,collapseThreshold:s,paneId:r,persistence:a,children:F,style:W,onSizeChange:j,sizeUpdate:G,sizeUpdateMs:K=50,size:J,defaultSize:Q,inset:m,id:X,...u}=N,{table:f,attributes:Y}=R(H,"fixed"),n=S({name:"inspector",label:"Inspector",propNames:ie,id:X,controlled:l(A),defaultValue:l(U),presentationTable:f,builtIn:x,onChange:(te,se)=>B?.(te!=="closed",{reason:se}),onExpand:k,onCollapse:L,size:o});C("inspector",m),e.useEffect(()=>{(t!==void 0||s!==void 0||r!==void 0||a!==void 0)&&void 0},[t,s,r,a]);let P=e.useRef(null),Z=ae(M,n.setElement,P),ee=v({name:"inspector",elementId:n.id,elementRef:P,cssVarName:"--inspector-size",orientation:"vertical",edge:"start",growth:O,expandedSize:o,minSize:p,maxSize:d,resizable:c,collapsible:V,size:J,defaultSize:Q,onSizeChange:j,sizeUpdate:G,sizeUpdateMs:K,onResize:_,onResizeStart:D,onResizeEnd:$,snapPoints:t,snapTolerance:q,collapseThreshold:s,paneId:r,persistence:a,overlaying:n.overlaying,overlayingNow:()=>f[h()]==="overlay",requestCollapse:()=>n.setValue("closed","toggle"),requestToggle:()=>n.toggle("toggle")}),{handles:z,content:ne}=y(F,i),oe=c&&n.shown!==!1&&!n.overlaying?e.createElement(I.Provider,{value:ee},z.length>0?z:e.createElement(g,null)):null;return e.createElement("div",{...E(u),id:n.id,ref:Z,className:re("rt-ShellPane","rt-ShellInspector",w),...b(n,Y),"data-inset":m||void 0,tabIndex:n.overlaying?-1:u.tabIndex,style:{...W,"--inspector-expanded-size":`${o}px`,"--inspector-min-size":`${p}px`,"--inspector-max-size":`${d}px`}},e.createElement("div",{className:"rt-ShellInspectorContent"},ne),oe)});T.displayName="Shell.Inspector";T.Handle=i;export{T as a};
2
+ //# sourceMappingURL=chunk-AGNIFHOE.js.map