@ctrl-ui/react 0.8.1 → 0.8.4

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 (377) hide show
  1. package/README.md +32 -23
  2. package/dist/action-bar.d.ts +11 -12
  3. package/dist/activity.d.ts +24 -25
  4. package/dist/audio-recorder.d.ts +16 -16
  5. package/dist/audio-visualizer.d.ts +3 -4
  6. package/dist/blocks/chat.d.ts +3 -4
  7. package/dist/blocks/chat.js +6 -3
  8. package/dist/blocks/coding-agent.d.ts +11 -12
  9. package/dist/blocks/coding-agent.js +10 -9
  10. package/dist/blocks/file-explorer-data.d.ts +11 -12
  11. package/dist/blocks/file-explorer.d.ts +3 -3
  12. package/dist/blocks/settings-data.d.ts +8 -9
  13. package/dist/blocks/settings.d.ts +4 -4
  14. package/dist/blocks/theme-toggle.d.ts +11 -12
  15. package/dist/blocks/theme-toggle.js +14 -4
  16. package/dist/chat-composer-attachment.d.ts +20 -21
  17. package/dist/chat-composer-attachment.js +24 -20
  18. package/dist/chat-composer-editor/extensions/mention.d.ts +5 -6
  19. package/dist/chat-composer-editor/ghost.d.ts +3 -4
  20. package/dist/chat-composer-editor/schema.d.ts +2 -3
  21. package/dist/chat-composer-editor/serialize.d.ts +3 -4
  22. package/dist/chat-composer-editor/types.d.ts +5 -6
  23. package/dist/chat-composer-editor.d.ts +2 -3
  24. package/dist/chat-composer-editor.js +18 -4
  25. package/dist/chat-composer.d.ts +17 -18
  26. package/dist/chat-composer.js +14 -8
  27. package/dist/chat-layout.d.ts +12 -21
  28. package/dist/chat-layout.js +28 -83
  29. package/dist/chat-message.d.ts +14 -15
  30. package/dist/context-model.d.ts +7 -8
  31. package/dist/context.d.ts +21 -22
  32. package/dist/control-props.d.ts +10 -11
  33. package/dist/control-variants.d.ts +6 -7
  34. package/dist/dynamic-notification-glass.d.ts +3 -4
  35. package/dist/dynamic-notification-liquid.d.ts +3 -4
  36. package/dist/dynamic-notification-siri-wave.d.ts +2 -3
  37. package/dist/dynamic-notification.d.ts +28 -29
  38. package/dist/email/email.d.ts +6 -7
  39. package/dist/email/email.js +12 -3
  40. package/dist/email/length.d.ts +3 -0
  41. package/dist/email/length.js +34 -0
  42. package/dist/email/templates.d.ts +7 -8
  43. package/dist/email/templates.js +5 -5
  44. package/dist/email/theme.d.ts +16 -5
  45. package/dist/email/theme.js +21 -6
  46. package/dist/environment-variables.d.ts +35 -36
  47. package/dist/extensions/create-track-highlight.d.ts +3 -4
  48. package/dist/extensions/supports-anchor-transitions.d.ts +2 -3
  49. package/dist/extensions/track-highlight.d.ts +3 -4
  50. package/dist/hooks/use-audio-recorder.d.ts +14 -15
  51. package/dist/hooks/use-chat-composer.d.ts +5 -6
  52. package/dist/hooks/use-chat-message.d.ts +7 -8
  53. package/dist/hooks/use-color-area.d.ts +5 -6
  54. package/dist/hooks/use-copy-to-clipboard.d.ts +7 -8
  55. package/dist/hooks/use-dropzone.d.ts +11 -12
  56. package/dist/hooks/use-dynamic-notification.d.ts +6 -7
  57. package/dist/hooks/use-environment-variables.d.ts +9 -10
  58. package/dist/hooks/use-keyboard-navigation.d.ts +3 -0
  59. package/dist/hooks/use-keyboard-navigation.js +22 -0
  60. package/dist/hooks/use-mobile.d.ts +2 -3
  61. package/dist/hooks/use-textarea-trigger-menu.d.ts +2 -3
  62. package/dist/hooks/use-trigger-menu.d.ts +7 -8
  63. package/dist/hooks/use-user-ask.d.ts +6 -7
  64. package/dist/inline-attachment.d.ts +16 -17
  65. package/dist/inline-citation.d.ts +22 -23
  66. package/dist/knob-contracts/accordion-knobs.d.ts +3 -4
  67. package/dist/knob-contracts/accordion-knobs.js +1 -0
  68. package/dist/knob-contracts/action-bar-knobs.d.ts +3 -4
  69. package/dist/knob-contracts/activity-knobs.d.ts +3 -4
  70. package/dist/knob-contracts/alert-knobs.d.ts +3 -4
  71. package/dist/knob-contracts/alert-knobs.js +12 -1
  72. package/dist/knob-contracts/audio-recorder-knobs.d.ts +3 -4
  73. package/dist/knob-contracts/audio-visualizer-knobs.d.ts +3 -4
  74. package/dist/knob-contracts/avatar-knobs.d.ts +3 -4
  75. package/dist/knob-contracts/avatar-knobs.js +2 -1
  76. package/dist/knob-contracts/badge-knobs.d.ts +3 -4
  77. package/dist/knob-contracts/button-group-knobs.d.ts +3 -4
  78. package/dist/knob-contracts/button-knobs.d.ts +3 -4
  79. package/dist/knob-contracts/button-knobs.js +1 -0
  80. package/dist/knob-contracts/calendar-knobs.d.ts +3 -4
  81. package/dist/knob-contracts/card-knobs.d.ts +3 -4
  82. package/dist/knob-contracts/chat-composer-attachment-knobs.d.ts +3 -4
  83. package/dist/knob-contracts/chat-composer-attachment-knobs.js +3 -1
  84. package/dist/knob-contracts/chat-composer-knobs.d.ts +3 -4
  85. package/dist/knob-contracts/chat-composer-knobs.js +1 -0
  86. package/dist/knob-contracts/chat-layout-knobs.d.ts +3 -4
  87. package/dist/knob-contracts/chat-layout-knobs.js +2 -3
  88. package/dist/knob-contracts/chat-message-knobs.d.ts +3 -4
  89. package/dist/knob-contracts/choice-knobs.d.ts +3 -4
  90. package/dist/knob-contracts/choice-knobs.js +2 -1
  91. package/dist/knob-contracts/code-diff-knobs.d.ts +3 -4
  92. package/dist/knob-contracts/code-diff-knobs.js +1 -0
  93. package/dist/knob-contracts/code-knobs.d.ts +3 -4
  94. package/dist/knob-contracts/code-knobs.js +3 -1
  95. package/dist/knob-contracts/collapsible-knobs.d.ts +3 -4
  96. package/dist/knob-contracts/color-picker-knobs.d.ts +3 -4
  97. package/dist/knob-contracts/context-knobs.d.ts +3 -4
  98. package/dist/knob-contracts/dockable-panel-knobs.d.ts +3 -4
  99. package/dist/knob-contracts/dockable-panel-knobs.js +1 -0
  100. package/dist/knob-contracts/dropzone-knobs.d.ts +3 -4
  101. package/dist/knob-contracts/dropzone-knobs.js +1 -0
  102. package/dist/knob-contracts/dynamic-notification-knobs.d.ts +3 -4
  103. package/dist/knob-contracts/empty-knobs.d.ts +3 -4
  104. package/dist/knob-contracts/empty-knobs.js +14 -1
  105. package/dist/knob-contracts/environment-variables-knobs.d.ts +3 -4
  106. package/dist/knob-contracts/environment-variables-knobs.js +2 -1
  107. package/dist/knob-contracts/field-knobs.d.ts +3 -4
  108. package/dist/knob-contracts/gradient-editor-knobs.d.ts +3 -4
  109. package/dist/knob-contracts/gradient-editor-knobs.js +3 -1
  110. package/dist/knob-contracts/infinite-canvas-knobs.d.ts +3 -4
  111. package/dist/knob-contracts/inline-attachment-knobs.d.ts +3 -4
  112. package/dist/knob-contracts/inline-attachment-knobs.js +2 -1
  113. package/dist/knob-contracts/inline-citation-knobs.d.ts +3 -4
  114. package/dist/knob-contracts/inline-citation-knobs.js +1 -0
  115. package/dist/knob-contracts/item-knobs.d.ts +3 -4
  116. package/dist/knob-contracts/kbd-knobs.d.ts +3 -4
  117. package/dist/knob-contracts/markdown-block-knobs.d.ts +3 -4
  118. package/dist/knob-contracts/markdown-block-knobs.js +2 -0
  119. package/dist/knob-contracts/markdown-knobs.d.ts +3 -4
  120. package/dist/knob-contracts/markdown-knobs.js +1 -0
  121. package/dist/knob-contracts/morphing-panel-knobs.d.ts +3 -4
  122. package/dist/knob-contracts/pagination-knobs.d.ts +3 -4
  123. package/dist/knob-contracts/phone-input-knobs.d.ts +3 -4
  124. package/dist/knob-contracts/phone-input-knobs.js +1 -0
  125. package/dist/knob-contracts/popup-knobs.d.ts +3 -4
  126. package/dist/knob-contracts/progressive-blur-knobs.d.ts +3 -4
  127. package/dist/knob-contracts/progressive-blur-knobs.js +1 -0
  128. package/dist/knob-contracts/range-knobs.d.ts +3 -4
  129. package/dist/knob-contracts/resizable-knobs.d.ts +3 -4
  130. package/dist/knob-contracts/resizable-knobs.js +1 -0
  131. package/dist/knob-contracts/rich-tooltip-knobs.d.ts +3 -4
  132. package/dist/knob-contracts/scroll-area-knobs.d.ts +3 -4
  133. package/dist/knob-contracts/separator-knobs.d.ts +3 -4
  134. package/dist/knob-contracts/sidebar-knobs.d.ts +3 -4
  135. package/dist/knob-contracts/sidebar-knobs.js +1 -0
  136. package/dist/knob-contracts/skeleton-knobs.d.ts +3 -4
  137. package/dist/knob-contracts/skeleton-knobs.js +9 -1
  138. package/dist/knob-contracts/source-badge-knobs.d.ts +3 -4
  139. package/dist/knob-contracts/spinner-knobs.d.ts +3 -4
  140. package/dist/knob-contracts/stepper-knobs.d.ts +3 -4
  141. package/dist/knob-contracts/stepper-knobs.js +1 -0
  142. package/dist/knob-contracts/switch-knobs.d.ts +3 -4
  143. package/dist/knob-contracts/switch-knobs.js +7 -1
  144. package/dist/knob-contracts/table-knobs.d.ts +3 -4
  145. package/dist/knob-contracts/table-of-contents-knobs.d.ts +3 -4
  146. package/dist/knob-contracts/table-of-contents-knobs.js +25 -0
  147. package/dist/knob-contracts/tabs-knobs.d.ts +3 -4
  148. package/dist/knob-contracts/tabs-knobs.js +2 -1
  149. package/dist/knob-contracts/task-list-knobs.d.ts +3 -4
  150. package/dist/knob-contracts/task-list-knobs.js +1 -0
  151. package/dist/knob-contracts/thread-rail-knobs.d.ts +3 -4
  152. package/dist/knob-contracts/timeline-knobs.d.ts +3 -4
  153. package/dist/knob-contracts/toolbar-knobs.d.ts +3 -4
  154. package/dist/knob-contracts/toolbar-knobs.js +1 -0
  155. package/dist/knob-contracts/track-highlight-knobs.d.ts +3 -4
  156. package/dist/knob-contracts/transcript-divider-knobs.d.ts +3 -4
  157. package/dist/knob-contracts/tree-knobs.d.ts +3 -4
  158. package/dist/knob-contracts/user-ask-knobs.d.ts +3 -4
  159. package/dist/knob-contracts/user-ask-knobs.js +1 -0
  160. package/dist/lib/cn.d.ts +2 -3
  161. package/dist/lib/code-tokens.d.ts +12 -13
  162. package/dist/lib/color.d.ts +26 -27
  163. package/dist/lib/contrast.d.ts +12 -13
  164. package/dist/lib/diff.d.ts +14 -15
  165. package/dist/lib/dropzone-validation.d.ts +25 -26
  166. package/dist/lib/env-file.d.ts +12 -13
  167. package/dist/lib/format-audio-recorder-duration.d.ts +2 -3
  168. package/dist/lib/liquid-glass-optics.d.ts +2 -3
  169. package/dist/lib/phone-input-format.d.ts +3 -4
  170. package/dist/lib/phone-input-format.js +1 -1
  171. package/dist/lib/phone-number.d.ts +8 -9
  172. package/dist/lib/trigger-detect.d.ts +4 -5
  173. package/dist/markdown-block.d.ts +11 -12
  174. package/dist/scripts/contrast-eval.d.ts +16 -17
  175. package/dist/scripts/contrast-eval.js +13 -7
  176. package/dist/skin-provider.d.ts +14 -0
  177. package/dist/skin-provider.js +21 -0
  178. package/dist/skin.d.ts +14 -33
  179. package/dist/skin.js +3 -46
  180. package/dist/source-badge.d.ts +7 -8
  181. package/dist/styles/index.css +2 -4
  182. package/dist/styles/recipes/accordion.css +8 -2
  183. package/dist/styles/recipes/action-bar.css +5 -2
  184. package/dist/styles/recipes/alert.css +95 -16
  185. package/dist/styles/recipes/avatar.css +17 -1
  186. package/dist/styles/recipes/badge.css +0 -1
  187. package/dist/styles/recipes/button.css +34 -8
  188. package/dist/styles/recipes/calendar.css +0 -6
  189. package/dist/styles/recipes/chat-composer-attachment.css +51 -53
  190. package/dist/styles/recipes/chat-composer.css +26 -21
  191. package/dist/styles/recipes/chat-layout.css +21 -62
  192. package/dist/styles/recipes/chat-message.css +11 -5
  193. package/dist/styles/recipes/choice.css +9 -2
  194. package/dist/styles/recipes/code-diff.css +8 -1
  195. package/dist/styles/recipes/code.css +39 -17
  196. package/dist/styles/recipes/collapsible.css +0 -3
  197. package/dist/styles/recipes/color-picker-details.css +1 -2
  198. package/dist/styles/recipes/color-picker-values.css +0 -4
  199. package/dist/styles/recipes/dockable-panel.css +8 -1
  200. package/dist/styles/recipes/dropzone.css +9 -2
  201. package/dist/styles/recipes/empty.css +118 -17
  202. package/dist/styles/recipes/environment-variables.css +8 -1
  203. package/dist/styles/recipes/field-parts.css +1 -6
  204. package/dist/styles/recipes/field.css +9 -5
  205. package/dist/styles/recipes/gradient-editor.css +16 -5
  206. package/dist/styles/recipes/inline-attachment.css +13 -8
  207. package/dist/styles/recipes/inline-citation.css +8 -4
  208. package/dist/styles/recipes/item.css +1 -1
  209. package/dist/styles/recipes/kbd.css +8 -0
  210. package/dist/styles/recipes/markdown-block.css +16 -2
  211. package/dist/styles/recipes/markdown.css +12 -0
  212. package/dist/styles/recipes/morphing-panel.css +1 -1
  213. package/dist/styles/recipes/pagination.css +0 -4
  214. package/dist/styles/recipes/phone-input.css +8 -4
  215. package/dist/styles/recipes/popup-lists.css +11 -0
  216. package/dist/styles/recipes/popup-toast.css +1 -29
  217. package/dist/styles/recipes/popup.css +2 -2
  218. package/dist/styles/recipes/progressive-blur.css +28 -7
  219. package/dist/styles/recipes/range.css +50 -1
  220. package/dist/styles/recipes/resizable.css +8 -10
  221. package/dist/styles/recipes/rich-tooltip.css +0 -4
  222. package/dist/styles/recipes/scroll-area.css +8 -2
  223. package/dist/styles/recipes/sidebar-menu.css +150 -0
  224. package/dist/styles/recipes/sidebar.css +56 -110
  225. package/dist/styles/recipes/skeleton.css +85 -3
  226. package/dist/styles/recipes/source-badge.css +0 -3
  227. package/dist/styles/recipes/stepper.css +8 -1
  228. package/dist/styles/recipes/switch.css +89 -17
  229. package/dist/styles/recipes/table-of-contents.css +211 -45
  230. package/dist/styles/recipes/table.css +0 -1
  231. package/dist/styles/recipes/tabs.css +19 -2
  232. package/dist/styles/recipes/task-list.css +8 -2
  233. package/dist/styles/recipes/thread-rail.css +0 -4
  234. package/dist/styles/recipes/toolbar.css +18 -4
  235. package/dist/styles/recipes/track-highlight.css +63 -5
  236. package/dist/styles/recipes/tree.css +2 -0
  237. package/dist/styles/recipes/user-ask.css +8 -4
  238. package/dist/styles/theme.css +130 -138
  239. package/dist/surface-variants.d.ts +4 -5
  240. package/dist/task-list.d.ts +16 -17
  241. package/dist/thread-rail.d.ts +21 -22
  242. package/dist/transcript-divider.d.ts +6 -7
  243. package/dist/ui/accordion.d.ts +10 -11
  244. package/dist/ui/alert-dialog.d.ts +11 -12
  245. package/dist/ui/alert-dialog.js +8 -6
  246. package/dist/ui/alert.d.ts +9 -10
  247. package/dist/ui/alert.js +3 -3
  248. package/dist/ui/aspect-ratio.d.ts +3 -4
  249. package/dist/ui/autocomplete.d.ts +19 -20
  250. package/dist/ui/autocomplete.js +5 -3
  251. package/dist/ui/avatar.d.ts +9 -10
  252. package/dist/ui/badge.d.ts +9 -10
  253. package/dist/ui/button-group.d.ts +7 -8
  254. package/dist/ui/button-group.js +3 -2
  255. package/dist/ui/button.d.ts +17 -18
  256. package/dist/ui/button.js +20 -5
  257. package/dist/ui/calendar.d.ts +3 -4
  258. package/dist/ui/card.d.ts +16 -17
  259. package/dist/ui/checkbox-group.d.ts +4 -5
  260. package/dist/ui/checkbox-group.js +3 -2
  261. package/dist/ui/checkbox.d.ts +3 -4
  262. package/dist/ui/code-diff.d.ts +8 -9
  263. package/dist/ui/code.d.ts +32 -23
  264. package/dist/ui/code.js +41 -20
  265. package/dist/ui/collapsible.d.ts +7 -8
  266. package/dist/ui/color-picker.d.ts +40 -41
  267. package/dist/ui/color-picker.js +5 -3
  268. package/dist/ui/combobox-disabled-selection.d.ts +3 -4
  269. package/dist/ui/combobox.d.ts +21 -20
  270. package/dist/ui/combobox.js +5 -3
  271. package/dist/ui/command.d.ts +19 -18
  272. package/dist/ui/command.js +38 -12
  273. package/dist/ui/context-menu.d.ts +30 -31
  274. package/dist/ui/context-menu.js +8 -5
  275. package/dist/ui/dialog.d.ts +13 -13
  276. package/dist/ui/dialog.js +10 -8
  277. package/dist/ui/dockable-panel-geometry.d.ts +7 -8
  278. package/dist/ui/dockable-panel.d.ts +21 -22
  279. package/dist/ui/drawer.d.ts +17 -18
  280. package/dist/ui/drawer.js +7 -6
  281. package/dist/ui/dropdown-menu.d.ts +36 -29
  282. package/dist/ui/dropdown-menu.js +116 -9
  283. package/dist/ui/dropzone.d.ts +24 -24
  284. package/dist/ui/empty.d.ts +14 -14
  285. package/dist/ui/empty.js +3 -3
  286. package/dist/ui/field.d.ts +26 -27
  287. package/dist/ui/form.d.ts +4 -5
  288. package/dist/ui/gradient-editor.d.ts +16 -17
  289. package/dist/ui/hover-card.d.ts +6 -7
  290. package/dist/ui/hover-card.js +5 -3
  291. package/dist/ui/infinite-canvas.d.ts +11 -12
  292. package/dist/ui/input-group.d.ts +6 -7
  293. package/dist/ui/input-otp.d.ts +7 -8
  294. package/dist/ui/input.d.ts +3 -4
  295. package/dist/ui/item.d.ts +20 -21
  296. package/dist/ui/kbd.d.ts +7 -5
  297. package/dist/ui/kbd.js +4 -2
  298. package/dist/ui/markdown-elements.d.ts +20 -21
  299. package/dist/ui/markdown.d.ts +5 -6
  300. package/dist/ui/menubar.d.ts +25 -26
  301. package/dist/ui/menubar.js +8 -5
  302. package/dist/ui/meter.d.ts +11 -12
  303. package/dist/ui/morphing-panel.d.ts +8 -9
  304. package/dist/ui/native-select.d.ts +3 -4
  305. package/dist/ui/native-select.js +1 -1
  306. package/dist/ui/navigation-menu.d.ts +17 -18
  307. package/dist/ui/navigation-menu.js +5 -3
  308. package/dist/ui/number-field.d.ts +15 -16
  309. package/dist/ui/pagination.d.ts +10 -11
  310. package/dist/ui/phone-input.d.ts +5 -6
  311. package/dist/ui/phone-input.js +40 -37
  312. package/dist/ui/popover.d.ts +11 -12
  313. package/dist/ui/popover.js +5 -3
  314. package/dist/ui/progress.d.ts +11 -12
  315. package/dist/ui/progressive-blur.d.ts +4 -5
  316. package/dist/ui/radio-group.d.ts +5 -6
  317. package/dist/ui/resizable.d.ts +12 -13
  318. package/dist/ui/responsive-dialog.d.ts +11 -12
  319. package/dist/ui/rich-tooltip-tour.d.ts +5 -6
  320. package/dist/ui/rich-tooltip.d.ts +21 -23
  321. package/dist/ui/rich-tooltip.js +5 -5
  322. package/dist/ui/scroll-area.d.ts +7 -8
  323. package/dist/ui/scroll-area.js +9 -6
  324. package/dist/ui/select.d.ts +21 -14
  325. package/dist/ui/select.js +7 -4
  326. package/dist/ui/separator.d.ts +2 -3
  327. package/dist/ui/sheet.d.ts +8 -9
  328. package/dist/ui/sheet.js +7 -5
  329. package/dist/ui/sidebar-menu.d.ts +24 -15
  330. package/dist/ui/sidebar-menu.js +30 -4
  331. package/dist/ui/sidebar-provider.d.ts +32 -7
  332. package/dist/ui/sidebar-provider.js +82 -22
  333. package/dist/ui/sidebar-resize-rail.d.ts +8 -0
  334. package/dist/ui/sidebar-resize-rail.js +192 -0
  335. package/dist/ui/sidebar.d.ts +20 -14
  336. package/dist/ui/sidebar.js +122 -57
  337. package/dist/ui/skeleton.d.ts +7 -4
  338. package/dist/ui/skeleton.js +9 -2
  339. package/dist/ui/slider.d.ts +6 -5
  340. package/dist/ui/slider.js +16 -13
  341. package/dist/ui/spinner.d.ts +3 -4
  342. package/dist/ui/stepper.d.ts +22 -23
  343. package/dist/ui/switch.d.ts +3 -4
  344. package/dist/ui/switch.js +12 -1
  345. package/dist/ui/table-of-contents.d.ts +7 -8
  346. package/dist/ui/table-of-contents.js +4 -2
  347. package/dist/ui/table.d.ts +17 -18
  348. package/dist/ui/tabs.d.ts +14 -11
  349. package/dist/ui/textarea.d.ts +3 -4
  350. package/dist/ui/timeline.d.ts +18 -19
  351. package/dist/ui/toast.d.ts +9 -9
  352. package/dist/ui/toast.js +21 -14
  353. package/dist/ui/toggle.d.ts +5 -6
  354. package/dist/ui/toggle.js +3 -2
  355. package/dist/ui/toolbar.d.ts +15 -16
  356. package/dist/ui/toolbar.js +15 -4
  357. package/dist/ui/tooltip.d.ts +6 -13
  358. package/dist/ui/tooltip.js +7 -8
  359. package/dist/ui/tree.d.ts +18 -19
  360. package/dist/ui/tree.js +3 -2
  361. package/dist/ui/trigger-menu.d.ts +15 -16
  362. package/dist/ui/trigger-menu.js +5 -3
  363. package/dist/ui/use-switch-drag.d.ts +7 -0
  364. package/dist/ui/use-switch-drag.js +104 -0
  365. package/dist/user-ask.d.ts +24 -25
  366. package/package.json +15 -15
  367. package/dist/code-block-editor.d.ts +0 -59
  368. package/dist/code-block-editor.js +0 -250
  369. package/dist/knob-contracts/code-block-editor-knobs.d.ts +0 -5
  370. package/dist/knob-contracts/code-block-editor-knobs.js +0 -11
  371. package/dist/lib/code-block-shiki.d.ts +0 -9
  372. package/dist/lib/code-block-shiki.js +0 -6
  373. package/dist/skin.config.d.ts +0 -5
  374. package/dist/skin.config.js +0 -12
  375. package/dist/styles/recipes/code-block-editor.css +0 -136
  376. package/dist/styles/skin-theme.css +0 -137
  377. package/dist/styles/skin.css +0 -143
@@ -2,23 +2,22 @@ import { CollapsibleContentProps, CollapsibleProps, CollapsibleTriggerProps } fr
2
2
  import { MorphingPanelKnobStyle } from "../knob-contracts/morphing-panel-knobs.js";
3
3
  import { CSSProperties } from "react";
4
4
  //#region src/ui/morphing-panel.d.ts
5
- type MorphingPanelDimensions = {
5
+ export type MorphingPanelDimensions = {
6
6
  width: string;
7
7
  height: string;
8
8
  };
9
- type MorphingPanelProps = Omit<CollapsibleProps, "style"> & {
9
+ export type MorphingPanelProps = Omit<CollapsibleProps, "style"> & {
10
10
  collapsedSize: MorphingPanelDimensions;
11
11
  expandedSize: MorphingPanelDimensions;
12
12
  style?: CSSProperties & MorphingPanelKnobStyle;
13
13
  };
14
- type MorphingPanelTriggerProps = Omit<CollapsibleTriggerProps, "style"> & {
14
+ export type MorphingPanelTriggerProps = Omit<CollapsibleTriggerProps, "style"> & {
15
15
  style?: CSSProperties & MorphingPanelKnobStyle;
16
16
  };
17
- type MorphingPanelContentProps = Omit<CollapsibleContentProps, "style"> & {
17
+ export type MorphingPanelContentProps = Omit<CollapsibleContentProps, "style"> & {
18
18
  style?: CSSProperties & MorphingPanelKnobStyle;
19
19
  };
20
- declare function MorphingPanel({ collapsedSize, expandedSize, className, style, ...props }: MorphingPanelProps): import("react").JSX.Element;
21
- declare function MorphingPanelTrigger({ render, className, children, ...props }: MorphingPanelTriggerProps): import("react").JSX.Element;
22
- declare function MorphingPanelContent({ className, ...props }: MorphingPanelContentProps): import("react").JSX.Element;
23
- //#endregion
24
- export { MorphingPanel, MorphingPanelContent, MorphingPanelContentProps, MorphingPanelDimensions, MorphingPanelProps, MorphingPanelTrigger, MorphingPanelTriggerProps };
20
+ export declare function MorphingPanel({ collapsedSize, expandedSize, className, style, ...props }: MorphingPanelProps): import("react").JSX.Element;
21
+ export declare function MorphingPanelTrigger({ render, className, children, ...props }: MorphingPanelTriggerProps): import("react").JSX.Element;
22
+ export declare function MorphingPanelContent({ className, ...props }: MorphingPanelContentProps): import("react").JSX.Element;
23
+ //#endregion
@@ -2,11 +2,10 @@ import { ControlSize } from "../control-variants.js";
2
2
  import { FieldKnobStyle } from "../knob-contracts/field-knobs.js";
3
3
  import { CSSProperties, ComponentProps } from "react";
4
4
  //#region src/ui/native-select.d.ts
5
- type NativeSelectProps = Omit<Omit<ComponentProps<"select">, "size">, "style"> & {
5
+ export type NativeSelectProps = Omit<Omit<ComponentProps<"select">, "size">, "style"> & {
6
6
  style?: CSSProperties & FieldKnobStyle;
7
7
  } & {
8
8
  size?: ControlSize;
9
9
  };
10
- declare function NativeSelect({ size, className, children, ...props }: NativeSelectProps): import("react").JSX.Element;
11
- //#endregion
12
- export { NativeSelect, NativeSelectProps };
10
+ export declare function NativeSelect({ size, className, children, ...props }: NativeSelectProps): import("react").JSX.Element;
11
+ //#endregion
@@ -20,7 +20,7 @@ function NativeSelect({ size = "md", className, children, ...props }) {
20
20
  "data-control-family": "field",
21
21
  "data-field-kind": "native-select",
22
22
  "data-slot": "icon",
23
- className: "pointer-events-none absolute right-[calc(var(--padding-x)*0.6)]",
23
+ className: "pointer-events-none absolute",
24
24
  children: /* @__PURE__ */ jsx("svg", {
25
25
  viewBox: "0 0 12 12",
26
26
  className: "size-3",
@@ -3,7 +3,7 @@ import { PopupKnobStyle } from "../knob-contracts/popup-knobs.js";
3
3
  import { CSSProperties, ComponentProps } from "react";
4
4
  import { NavigationMenu as NavigationMenu$1 } from "@base-ui/react/navigation-menu";
5
5
  //#region src/ui/navigation-menu.d.ts
6
- type NavigationMenuProps = ComponentProps<"nav"> & {
6
+ export type NavigationMenuProps = ComponentProps<"nav"> & {
7
7
  value?: string | null;
8
8
  defaultValue?: string | null;
9
9
  onValueChange?: (value: string | null) => void;
@@ -13,39 +13,38 @@ type NavigationMenuProps = ComponentProps<"nav"> & {
13
13
  } & {
14
14
  style?: CSSProperties & PopupKnobStyle;
15
15
  };
16
- type NavigationMenuListProps = ComponentProps<"ul"> & {
16
+ export type NavigationMenuListProps = ComponentProps<"ul"> & {
17
17
  style?: CSSProperties & PopupKnobStyle;
18
18
  };
19
- type NavigationMenuItemProps = ComponentProps<"li"> & {
19
+ export type NavigationMenuItemProps = ComponentProps<"li"> & {
20
20
  value?: string;
21
21
  } & {
22
22
  style?: CSSProperties & PopupKnobStyle;
23
23
  };
24
- type NavigationMenuTriggerProps = Omit<ComponentProps<"button">, "style"> & {
24
+ export type NavigationMenuTriggerProps = Omit<ComponentProps<"button">, "style"> & {
25
25
  style?: CSSProperties & ButtonKnobStyle & PopupKnobStyle;
26
26
  };
27
- type NavigationMenuContentProps = ComponentProps<"div"> & {
27
+ export type NavigationMenuContentProps = ComponentProps<"div"> & {
28
28
  style?: CSSProperties & PopupKnobStyle;
29
29
  };
30
- declare const navigationMenuLinkVariants: readonly ["default", "compact"];
31
- type NavigationMenuLinkVariant = (typeof navigationMenuLinkVariants)[number];
32
- type NavigationMenuLinkProps = Omit<ComponentProps<"a">, "style"> & {
30
+ export declare const navigationMenuLinkVariants: readonly ["default", "compact"];
31
+ export type NavigationMenuLinkVariant = (typeof navigationMenuLinkVariants)[number];
32
+ export type NavigationMenuLinkProps = Omit<ComponentProps<"a">, "style"> & {
33
33
  style?: CSSProperties & PopupKnobStyle;
34
34
  } & {
35
35
  active?: boolean;
36
36
  closeOnClick?: boolean;
37
37
  variant?: NavigationMenuLinkVariant;
38
38
  };
39
- type NavigationMenuViewportProps = Omit<ComponentProps<"div">, "style"> & {
39
+ export type NavigationMenuViewportProps = Omit<ComponentProps<"div">, "style"> & {
40
40
  style?: CSSProperties & PopupKnobStyle;
41
41
  };
42
42
  type RefinedLinkProps = NavigationMenuLinkProps & Pick<ComponentProps<typeof NavigationMenu$1.Link>, "render">;
43
- declare function NavigationMenu({ className, children, ...props }: NavigationMenuProps): import("react").JSX.Element;
44
- declare function NavigationMenuList({ className, ...props }: NavigationMenuListProps): import("react").JSX.Element;
45
- declare function NavigationMenuItem({ className, ...props }: NavigationMenuItemProps): import("react").JSX.Element;
46
- declare function NavigationMenuTrigger({ className, children, ...props }: NavigationMenuTriggerProps): import("react").JSX.Element;
47
- declare function NavigationMenuContent({ className, children, ...props }: NavigationMenuContentProps): import("react").JSX.Element;
48
- declare function NavigationMenuLink({ variant, className, active, children, ...props }: RefinedLinkProps): import("react").JSX.Element;
49
- declare function NavigationMenuViewport({ className, ...props }: NavigationMenuViewportProps): import("react").JSX.Element;
50
- //#endregion
51
- export { NavigationMenu, NavigationMenuContent, NavigationMenuContentProps, NavigationMenuItem, NavigationMenuItemProps, NavigationMenuLink, NavigationMenuLinkProps, NavigationMenuLinkVariant, NavigationMenuList, NavigationMenuListProps, NavigationMenuProps, NavigationMenuTrigger, NavigationMenuTriggerProps, NavigationMenuViewport, NavigationMenuViewportProps, navigationMenuLinkVariants };
43
+ export declare function NavigationMenu({ className, children, ...props }: NavigationMenuProps): import("react").JSX.Element;
44
+ export declare function NavigationMenuList({ className, ...props }: NavigationMenuListProps): import("react").JSX.Element;
45
+ export declare function NavigationMenuItem({ className, ...props }: NavigationMenuItemProps): import("react").JSX.Element;
46
+ export declare function NavigationMenuTrigger({ className, children, ...props }: NavigationMenuTriggerProps): import("react").JSX.Element;
47
+ export declare function NavigationMenuContent({ className, children, ...props }: NavigationMenuContentProps): import("react").JSX.Element;
48
+ export declare function NavigationMenuLink({ variant, className, active, children, ...props }: RefinedLinkProps): import("react").JSX.Element;
49
+ export declare function NavigationMenuViewport({ className, ...props }: NavigationMenuViewportProps): import("react").JSX.Element;
50
+ //#endregion
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.js";
3
- import { skinEffects, skinId } from "../skin.js";
3
+ import { controlEffectsAttribute } from "../skin.js";
4
+ import { useSkin } from "../skin-provider.js";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import { NavigationMenu as NavigationMenu$1 } from "@base-ui/react/navigation-menu";
6
7
  //#region src/ui/navigation-menu.tsx
@@ -96,13 +97,14 @@ function NavigationMenuLink({ variant = "default", className, active, children,
96
97
  });
97
98
  }
98
99
  function NavigationMenuViewport({ className, ...props }) {
100
+ const skin = useSkin();
99
101
  return /* @__PURE__ */ jsx(NavigationMenu$1.Portal, { children: /* @__PURE__ */ jsx(NavigationMenu$1.Positioner, {
100
102
  "data-control-ui": "navigation-menu",
101
103
  "data-control-family": "popup",
102
104
  "data-popup-kind": "navigation-menu",
103
105
  "data-slot": "positioner",
104
- "data-skin": skinId(),
105
- "data-effects": skinEffects(),
106
+ "data-skin": skin.id,
107
+ "data-effects": controlEffectsAttribute(skin.effects),
106
108
  sideOffset: 8,
107
109
  collisionPadding: {
108
110
  top: 5,
@@ -2,8 +2,8 @@ import { ControlSize } from "../control-variants.js";
2
2
  import { FieldKnobStyle } from "../knob-contracts/field-knobs.js";
3
3
  import { CSSProperties, ComponentProps, ReactNode, Ref } from "react";
4
4
  //#region src/ui/number-field.d.ts
5
- type NumberFieldChangeReason = "input-change" | "input-clear" | "input-blur" | "input-paste" | "keyboard" | "increment-press" | "decrement-press" | "wheel" | "scrub" | "none";
6
- type NumberFieldChangeEventDetails = {
5
+ export type NumberFieldChangeReason = "input-change" | "input-clear" | "input-blur" | "input-paste" | "keyboard" | "increment-press" | "decrement-press" | "wheel" | "scrub" | "none";
6
+ export type NumberFieldChangeEventDetails = {
7
7
  reason: NumberFieldChangeReason;
8
8
  event: Event;
9
9
  cancel?: () => void;
@@ -12,7 +12,7 @@ type NumberFieldChangeEventDetails = {
12
12
  isPropagationAllowed?: boolean;
13
13
  trigger?: Element | undefined;
14
14
  };
15
- type NumberFieldProps = {
15
+ export type NumberFieldProps = {
16
16
  size?: ControlSize;
17
17
  value?: number | null;
18
18
  defaultValue?: number;
@@ -39,34 +39,33 @@ type NumberFieldProps = {
39
39
  style?: CSSProperties & FieldKnobStyle;
40
40
  children?: ReactNode;
41
41
  };
42
- type NumberFieldGroupProps = Omit<ComponentProps<"div">, "style"> & {
42
+ export type NumberFieldGroupProps = Omit<ComponentProps<"div">, "style"> & {
43
43
  style?: CSSProperties & FieldKnobStyle;
44
44
  };
45
- type NumberFieldInputProps = Omit<ComponentProps<"input">, "style"> & {
45
+ export type NumberFieldInputProps = Omit<ComponentProps<"input">, "style"> & {
46
46
  style?: CSSProperties & FieldKnobStyle;
47
47
  };
48
- type NumberFieldIncrementProps = ComponentProps<"button"> & {
48
+ export type NumberFieldIncrementProps = ComponentProps<"button"> & {
49
49
  nativeButton?: boolean;
50
50
  } & {
51
51
  style?: CSSProperties & FieldKnobStyle;
52
52
  };
53
- type NumberFieldDecrementProps = ComponentProps<"button"> & {
53
+ export type NumberFieldDecrementProps = ComponentProps<"button"> & {
54
54
  nativeButton?: boolean;
55
55
  } & {
56
56
  style?: CSSProperties & FieldKnobStyle;
57
57
  };
58
- type NumberFieldScrubAreaProps = ComponentProps<"span"> & {
58
+ export type NumberFieldScrubAreaProps = ComponentProps<"span"> & {
59
59
  direction?: "horizontal" | "vertical";
60
60
  pixelSensitivity?: number;
61
61
  teleportDistance?: number;
62
62
  } & {
63
63
  style?: CSSProperties & FieldKnobStyle;
64
64
  };
65
- declare function NumberField({ size, value, defaultValue, children, ...props }: NumberFieldProps): import("react").JSX.Element;
66
- declare function NumberFieldGroup({ className, children, ...props }: NumberFieldGroupProps): import("react").JSX.Element;
67
- declare function NumberFieldInput({ className, ...props }: NumberFieldInputProps): import("react").JSX.Element;
68
- declare function NumberFieldDecrement({ className, children, ...props }: NumberFieldDecrementProps): import("react").JSX.Element;
69
- declare function NumberFieldIncrement({ className, children, ...props }: NumberFieldIncrementProps): import("react").JSX.Element;
70
- declare function NumberFieldScrubArea({ className, children, ...props }: NumberFieldScrubAreaProps): import("react").JSX.Element;
71
- //#endregion
72
- export { NumberField, NumberFieldChangeEventDetails, NumberFieldChangeReason, NumberFieldDecrement, NumberFieldDecrementProps, NumberFieldGroup, NumberFieldGroupProps, NumberFieldIncrement, NumberFieldIncrementProps, NumberFieldInput, NumberFieldInputProps, NumberFieldProps, NumberFieldScrubArea, NumberFieldScrubAreaProps };
65
+ export declare function NumberField({ size, value, defaultValue, children, ...props }: NumberFieldProps): import("react").JSX.Element;
66
+ export declare function NumberFieldGroup({ className, children, ...props }: NumberFieldGroupProps): import("react").JSX.Element;
67
+ export declare function NumberFieldInput({ className, ...props }: NumberFieldInputProps): import("react").JSX.Element;
68
+ export declare function NumberFieldDecrement({ className, children, ...props }: NumberFieldDecrementProps): import("react").JSX.Element;
69
+ export declare function NumberFieldIncrement({ className, children, ...props }: NumberFieldIncrementProps): import("react").JSX.Element;
70
+ export declare function NumberFieldScrubArea({ className, children, ...props }: NumberFieldScrubAreaProps): import("react").JSX.Element;
71
+ //#endregion
@@ -1,26 +1,25 @@
1
1
  import { PaginationKnobStyle } from "../knob-contracts/pagination-knobs.js";
2
2
  import { CSSProperties, ComponentProps } from "react";
3
3
  //#region src/ui/pagination.d.ts
4
- type PaginationEllipsisProps = Omit<ComponentProps<"span">, "style"> & {
4
+ export type PaginationEllipsisProps = Omit<ComponentProps<"span">, "style"> & {
5
5
  style?: CSSProperties & PaginationKnobStyle;
6
6
  };
7
- type PaginationLinkProps = Omit<ComponentProps<"a"> & {
7
+ export type PaginationLinkProps = Omit<ComponentProps<"a"> & {
8
8
  isActive?: boolean;
9
9
  }, "style"> & {
10
10
  style?: CSSProperties & PaginationKnobStyle;
11
11
  };
12
- declare function Pagination({ className, ...props }: ComponentProps<"nav"> & {
12
+ export declare function Pagination({ className, ...props }: ComponentProps<"nav"> & {
13
13
  style?: CSSProperties & PaginationKnobStyle;
14
14
  }): import("react").JSX.Element;
15
- declare function PaginationContent({ className, ...props }: ComponentProps<"ul"> & {
15
+ export declare function PaginationContent({ className, ...props }: ComponentProps<"ul"> & {
16
16
  style?: CSSProperties & PaginationKnobStyle;
17
17
  }): import("react").JSX.Element;
18
- declare function PaginationItem({ className, ...props }: ComponentProps<"li"> & {
18
+ export declare function PaginationItem({ className, ...props }: ComponentProps<"li"> & {
19
19
  style?: CSSProperties & PaginationKnobStyle;
20
20
  }): import("react").JSX.Element;
21
- declare function PaginationLink({ isActive, className, ...props }: PaginationLinkProps): import("react").JSX.Element;
22
- declare function PaginationPrevious({ className, ...props }: ComponentProps<typeof PaginationLink>): import("react").JSX.Element;
23
- declare function PaginationNext({ className, ...props }: ComponentProps<typeof PaginationLink>): import("react").JSX.Element;
24
- declare function PaginationEllipsis({ className, ...props }: PaginationEllipsisProps): import("react").JSX.Element;
25
- //#endregion
26
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationEllipsisProps, PaginationItem, PaginationLink, PaginationLinkProps, PaginationNext, PaginationPrevious };
21
+ export declare function PaginationLink({ isActive, className, ...props }: PaginationLinkProps): import("react").JSX.Element;
22
+ export declare function PaginationPrevious({ className, ...props }: ComponentProps<typeof PaginationLink>): import("react").JSX.Element;
23
+ export declare function PaginationNext({ className, ...props }: ComponentProps<typeof PaginationLink>): import("react").JSX.Element;
24
+ export declare function PaginationEllipsis({ className, ...props }: PaginationEllipsisProps): import("react").JSX.Element;
25
+ //#endregion
@@ -4,10 +4,10 @@ import { CSSProperties, ComponentProps } from "react";
4
4
  import { Country, Value } from "react-phone-number-input/max";
5
5
  import { Labels } from "react-phone-number-input";
6
6
  //#region src/ui/phone-input.d.ts
7
- type PhoneInputValue = Value;
8
- type PhoneInputCountry = Country;
7
+ export type PhoneInputValue = Value;
8
+ export type PhoneInputCountry = Country;
9
9
  type CountryOptionOrder = PhoneInputCountry | "XX" | "🌐" | "|" | "..." | "…";
10
- type PhoneInputProps = Omit<ComponentProps<"input">, "defaultValue" | "size" | "style" | "type" | "value"> & {
10
+ export type PhoneInputProps = Omit<ComponentProps<"input">, "defaultValue" | "size" | "style" | "type" | "value"> & {
11
11
  size?: ControlSize;
12
12
  value?: PhoneInputValue | string;
13
13
  defaultValue?: PhoneInputValue | string;
@@ -25,6 +25,5 @@ type PhoneInputProps = Omit<ComponentProps<"input">, "defaultValue" | "size" | "
25
25
  "data-invalid"?: boolean | string;
26
26
  style?: CSSProperties & PhoneInputKnobStyle;
27
27
  };
28
- declare function PhoneInput(props: PhoneInputProps): import("react").JSX.Element;
29
- //#endregion
30
- export { PhoneInput, PhoneInputCountry, PhoneInputProps, PhoneInputValue };
28
+ export declare function PhoneInput(props: PhoneInputProps): import("react").JSX.Element;
29
+ //#endregion
@@ -2,12 +2,12 @@
2
2
  import { cn } from "../lib/cn.js";
3
3
  import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
4
4
  import { InputGroup, InputGroupAddon, InputGroupInput } from "./input-group.js";
5
- import { normalizePhoneInputText, normalizePhoneInputValue } from "../lib/phone-input-format.js";
6
5
  import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "./command.js";
6
+ import { normalizePhoneInputText, normalizePhoneInputValue } from "../lib/phone-input-format.js";
7
7
  import { useState } from "react";
8
8
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
- import PhoneNumberInput, { getCountryCallingCode, parsePhoneNumber } from "react-phone-number-input/max";
10
9
  import flags from "react-phone-number-input/flags";
10
+ import PhoneNumberInput, { getCountryCallingCode, parsePhoneNumber } from "react-phone-number-input/max";
11
11
  //#region src/ui/phone-input.tsx
12
12
  const FLAG_COMPONENTS = flags;
13
13
  const PhoneNumberInputWithRef = PhoneNumberInput;
@@ -70,41 +70,44 @@ function PhoneCountrySelect({ value, options, onChange, onFocus, onBlur, disable
70
70
  align: "start",
71
71
  padding: "none",
72
72
  className: "w-[min(20rem,calc(100vw-2rem))]",
73
- children: /* @__PURE__ */ jsxs(Command, { children: [/* @__PURE__ */ jsx(CommandInput, {
74
- "aria-label": searchPlaceholder,
75
- placeholder: searchPlaceholder
76
- }), /* @__PURE__ */ jsxs(CommandList, { children: [/* @__PURE__ */ jsx(CommandEmpty, { children: emptyMessage }), /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
77
- const callingCode = option.value ? `+${getCountryCallingCode(option.value)}` : "";
78
- const selected = option.value === value;
79
- return /* @__PURE__ */ jsxs(CommandItem, {
80
- value: `${option.label} ${option.value ?? "international"} ${callingCode}`,
81
- "data-current": selected ? "" : void 0,
82
- onSelect: () => {
83
- onChange(option.value);
84
- setOpen(false);
85
- },
86
- children: [
87
- /* @__PURE__ */ jsx(CountryFlag, { country: option.value }),
88
- /* @__PURE__ */ jsx("span", {
89
- className: "min-w-0 flex-1 truncate",
90
- children: option.label
91
- }),
92
- callingCode ? /* @__PURE__ */ jsx("span", {
93
- "data-control-ui": "phone-input",
94
- "data-control-family": "phone-input",
95
- "data-slot": "metadata",
96
- className: "min-w-0",
97
- style: metadataStyle,
98
- children: callingCode
99
- }) : null,
100
- selected ? /* @__PURE__ */ jsx("span", {
101
- className: "sr-only",
102
- children: "Selected"
103
- }) : null,
104
- /* @__PURE__ */ jsx(CheckIcon, { visible: selected })
105
- ]
106
- }, option.value ?? "international");
107
- }) })] })] })
73
+ children: /* @__PURE__ */ jsxs(Command, {
74
+ chrome: "embedded",
75
+ children: [/* @__PURE__ */ jsx(CommandInput, {
76
+ "aria-label": searchPlaceholder,
77
+ placeholder: searchPlaceholder
78
+ }), /* @__PURE__ */ jsxs(CommandList, { children: [/* @__PURE__ */ jsx(CommandEmpty, { children: emptyMessage }), /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
79
+ const callingCode = option.value ? `+${getCountryCallingCode(option.value)}` : "";
80
+ const selected = option.value === value;
81
+ return /* @__PURE__ */ jsxs(CommandItem, {
82
+ value: `${option.label} ${option.value ?? "international"} ${callingCode}`,
83
+ "data-current": selected ? "" : void 0,
84
+ onSelect: () => {
85
+ onChange(option.value);
86
+ setOpen(false);
87
+ },
88
+ children: [
89
+ /* @__PURE__ */ jsx(CountryFlag, { country: option.value }),
90
+ /* @__PURE__ */ jsx("span", {
91
+ className: "min-w-0 flex-1 truncate",
92
+ children: option.label
93
+ }),
94
+ callingCode ? /* @__PURE__ */ jsx("span", {
95
+ "data-control-ui": "phone-input",
96
+ "data-control-family": "phone-input",
97
+ "data-slot": "metadata",
98
+ className: "min-w-0",
99
+ style: metadataStyle,
100
+ children: callingCode
101
+ }) : null,
102
+ selected ? /* @__PURE__ */ jsx("span", {
103
+ className: "sr-only",
104
+ children: "Selected"
105
+ }) : null,
106
+ /* @__PURE__ */ jsx(CheckIcon, { visible: selected })
107
+ ]
108
+ }, option.value ?? "international");
109
+ }) })] })]
110
+ })
108
111
  })]
109
112
  })
110
113
  });
@@ -2,8 +2,8 @@ import { PopupKnobStyle } from "../knob-contracts/popup-knobs.js";
2
2
  import { CSSProperties, ComponentProps } from "react";
3
3
  import { Popover as Popover$1 } from "@base-ui/react/popover";
4
4
  //#region src/ui/popover.d.ts
5
- declare const popoverContentPaddings: readonly ["default", "none"];
6
- type PopoverContentPadding = (typeof popoverContentPaddings)[number];
5
+ export declare const popoverContentPaddings: readonly ["default", "none"];
6
+ export type PopoverContentPadding = (typeof popoverContentPaddings)[number];
7
7
  type PopoverPopupProps = Omit<ComponentProps<typeof Popover$1.Popup>, "style"> & {
8
8
  side?: ComponentProps<typeof Popover$1.Positioner>["side"];
9
9
  align?: ComponentProps<typeof Popover$1.Positioner>["align"];
@@ -12,23 +12,22 @@ type PopoverPopupProps = Omit<ComponentProps<typeof Popover$1.Popup>, "style"> &
12
12
  padding?: PopoverContentPadding;
13
13
  style?: CSSProperties & PopupKnobStyle;
14
14
  };
15
- declare function Popover(props: ComponentProps<typeof Popover$1.Root>): import("react").JSX.Element;
16
- declare function PopoverTrigger({ className, ...props }: ComponentProps<typeof Popover$1.Trigger> & {
15
+ export declare function Popover(props: ComponentProps<typeof Popover$1.Root>): import("react").JSX.Element;
16
+ export declare function PopoverTrigger({ className, ...props }: ComponentProps<typeof Popover$1.Trigger> & {
17
17
  style?: CSSProperties & PopupKnobStyle;
18
18
  }): import("react").JSX.Element;
19
- declare function PopoverAnchor(props: ComponentProps<typeof Popover$1.Trigger>): import("react").JSX.Element;
20
- declare function PopoverContent({ className, children, side, align, sideOffset, collisionPadding, padding, ...props }: PopoverPopupProps): import("react").JSX.Element;
21
- declare function PopoverHeader({ className, ...props }: ComponentProps<"div"> & {
19
+ export declare function PopoverAnchor(props: ComponentProps<typeof Popover$1.Trigger>): import("react").JSX.Element;
20
+ export declare function PopoverContent({ className, children, side, align, sideOffset, collisionPadding, padding, ...props }: PopoverPopupProps): import("react").JSX.Element;
21
+ export declare function PopoverHeader({ className, ...props }: ComponentProps<"div"> & {
22
22
  style?: CSSProperties & PopupKnobStyle;
23
23
  }): import("react").JSX.Element;
24
- declare function PopoverTitle({ className, ...props }: ComponentProps<typeof Popover$1.Title> & {
24
+ export declare function PopoverTitle({ className, ...props }: ComponentProps<typeof Popover$1.Title> & {
25
25
  style?: CSSProperties & PopupKnobStyle;
26
26
  }): import("react").JSX.Element;
27
- declare function PopoverDescription({ className, ...props }: ComponentProps<typeof Popover$1.Description> & {
27
+ export declare function PopoverDescription({ className, ...props }: ComponentProps<typeof Popover$1.Description> & {
28
28
  style?: CSSProperties & PopupKnobStyle;
29
29
  }): import("react").JSX.Element;
30
- declare function PopoverClose({ className, ...props }: ComponentProps<typeof Popover$1.Close> & {
30
+ export declare function PopoverClose({ className, ...props }: ComponentProps<typeof Popover$1.Close> & {
31
31
  style?: CSSProperties & PopupKnobStyle;
32
32
  }): import("react").JSX.Element;
33
- //#endregion
34
- export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverContentPadding, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, popoverContentPaddings };
33
+ //#endregion
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.js";
3
- import { skinEffects, skinId } from "../skin.js";
3
+ import { controlEffectsAttribute } from "../skin.js";
4
+ import { useSkin } from "../skin-provider.js";
4
5
  import { jsx } from "react/jsx-runtime";
5
6
  import { Popover as Popover$1 } from "@base-ui/react/popover";
6
7
  //#region src/ui/popover.tsx
@@ -21,9 +22,10 @@ function PopoverAnchor(props) {
21
22
  return /* @__PURE__ */ jsx(Popover$1.Trigger, { ...props });
22
23
  }
23
24
  function PopoverContent({ className, children, side = "bottom", align = "center", sideOffset = 6, collisionPadding, padding = "default", ...props }) {
25
+ const skin = useSkin();
24
26
  return /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(Popover$1.Positioner, {
25
- "data-skin": skinId(),
26
- "data-effects": skinEffects(),
27
+ "data-skin": skin.id,
28
+ "data-effects": controlEffectsAttribute(skin.effects),
27
29
  side,
28
30
  align,
29
31
  sideOffset,
@@ -1,7 +1,7 @@
1
1
  import { RangeKnobStyle } from "../knob-contracts/range-knobs.js";
2
2
  import { CSSProperties, ComponentProps, ReactNode } from "react";
3
3
  //#region src/ui/progress.d.ts
4
- type ProgressProps = Omit<ComponentProps<"div"> & {
4
+ export type ProgressProps = Omit<ComponentProps<"div"> & {
5
5
  value: number | null;
6
6
  min?: number;
7
7
  max?: number;
@@ -11,24 +11,23 @@ type ProgressProps = Omit<ComponentProps<"div"> & {
11
11
  }, "style"> & {
12
12
  style?: CSSProperties & RangeKnobStyle;
13
13
  };
14
- type ProgressTrackProps = Omit<ComponentProps<"div">, "style"> & {
14
+ export type ProgressTrackProps = Omit<ComponentProps<"div">, "style"> & {
15
15
  style?: CSSProperties & RangeKnobStyle;
16
16
  };
17
- type ProgressIndicatorProps = Omit<ComponentProps<"div">, "style"> & {
17
+ export type ProgressIndicatorProps = Omit<ComponentProps<"div">, "style"> & {
18
18
  style?: CSSProperties & RangeKnobStyle;
19
19
  };
20
- type ProgressLabelProps = Omit<ComponentProps<"span">, "style"> & {
20
+ export type ProgressLabelProps = Omit<ComponentProps<"span">, "style"> & {
21
21
  style?: CSSProperties & RangeKnobStyle;
22
22
  };
23
- type ProgressValueProps = Omit<Omit<ComponentProps<"span">, "children"> & {
23
+ export type ProgressValueProps = Omit<Omit<ComponentProps<"span">, "children"> & {
24
24
  children?: ((formattedValue: string | null, value: number | null) => ReactNode) | null;
25
25
  }, "style"> & {
26
26
  style?: CSSProperties & RangeKnobStyle;
27
27
  };
28
- declare function Progress({ className, ...props }: ProgressProps): import("react").JSX.Element;
29
- declare function ProgressLabel({ className, ...props }: ProgressLabelProps): import("react").JSX.Element;
30
- declare function ProgressValue({ className, ...props }: ProgressValueProps): import("react").JSX.Element;
31
- declare function ProgressTrack({ className, ...props }: ProgressTrackProps): import("react").JSX.Element;
32
- declare function ProgressIndicator({ className, ...props }: ProgressIndicatorProps): import("react").JSX.Element;
33
- //#endregion
34
- export { Progress, ProgressIndicator, ProgressIndicatorProps, ProgressLabel, ProgressLabelProps, ProgressProps, ProgressTrack, ProgressTrackProps, ProgressValue, ProgressValueProps };
28
+ export declare function Progress({ className, ...props }: ProgressProps): import("react").JSX.Element;
29
+ export declare function ProgressLabel({ className, ...props }: ProgressLabelProps): import("react").JSX.Element;
30
+ export declare function ProgressValue({ className, ...props }: ProgressValueProps): import("react").JSX.Element;
31
+ export declare function ProgressTrack({ className, ...props }: ProgressTrackProps): import("react").JSX.Element;
32
+ export declare function ProgressIndicator({ className, ...props }: ProgressIndicatorProps): import("react").JSX.Element;
33
+ //#endregion
@@ -1,12 +1,11 @@
1
1
  import { ProgressiveBlurKnobStyle } from "../knob-contracts/progressive-blur-knobs.js";
2
2
  import { CSSProperties, ComponentProps } from "react";
3
3
  //#region src/ui/progressive-blur.d.ts
4
- type ProgressiveBlurSide = "top" | "bottom" | "inline-start" | "inline-end";
5
- type ProgressiveBlurProps = Omit<ComponentProps<"div">, "children" | "dangerouslySetInnerHTML" | "style" | "tabIndex"> & {
4
+ export type ProgressiveBlurSide = "top" | "bottom" | "inline-start" | "inline-end";
5
+ export type ProgressiveBlurProps = Omit<ComponentProps<"div">, "children" | "dangerouslySetInnerHTML" | "style" | "tabIndex"> & {
6
6
  side?: ProgressiveBlurSide;
7
7
  visible?: boolean;
8
8
  style?: CSSProperties & ProgressiveBlurKnobStyle;
9
9
  };
10
- declare function ProgressiveBlur({ side, visible, ...props }: ProgressiveBlurProps): import("react").JSX.Element;
11
- //#endregion
12
- export { ProgressiveBlur, ProgressiveBlurProps, ProgressiveBlurSide };
10
+ export declare function ProgressiveBlur({ side, visible, ...props }: ProgressiveBlurProps): import("react").JSX.Element;
11
+ //#endregion
@@ -2,7 +2,7 @@ import { ControlledChoice } from "../control-props.js";
2
2
  import { ChoiceKnobStyle } from "../knob-contracts/choice-knobs.js";
3
3
  import { CSSProperties, ComponentProps } from "react";
4
4
  //#region src/ui/radio-group.d.ts
5
- type RadioGroupProps<TValue extends string = string> = Omit<ComponentProps<"div">, "defaultValue" | "onChange"> & ControlledChoice<TValue> & {
5
+ export type RadioGroupProps<TValue extends string = string> = Omit<ComponentProps<"div">, "defaultValue" | "onChange"> & ControlledChoice<TValue> & {
6
6
  disabled?: boolean;
7
7
  readOnly?: boolean;
8
8
  required?: boolean;
@@ -11,7 +11,7 @@ type RadioGroupProps<TValue extends string = string> = Omit<ComponentProps<"div"
11
11
  } & {
12
12
  style?: CSSProperties & ChoiceKnobStyle;
13
13
  };
14
- type RadioProps = Omit<{
14
+ export type RadioProps = Omit<{
15
15
  value: string;
16
16
  disabled?: boolean;
17
17
  readOnly?: boolean;
@@ -23,7 +23,6 @@ type RadioProps = Omit<{
23
23
  }, "style"> & {
24
24
  style?: CSSProperties & ChoiceKnobStyle;
25
25
  };
26
- declare function RadioGroup<TValue extends string = string>({ className, orientation, ...props }: RadioGroupProps<TValue>): import("react").JSX.Element;
27
- declare function Radio({ className, disabled, ...props }: RadioProps): import("react").JSX.Element;
28
- //#endregion
29
- export { Radio, RadioGroup, RadioGroupProps, RadioProps };
26
+ export declare function RadioGroup<TValue extends string = string>({ className, orientation, ...props }: RadioGroupProps<TValue>): import("react").JSX.Element;
27
+ export declare function Radio({ className, disabled, ...props }: RadioProps): import("react").JSX.Element;
28
+ //#endregion
@@ -1,12 +1,12 @@
1
1
  import { ResizableKnobStyle } from "../knob-contracts/resizable-knobs.js";
2
2
  import { CSSProperties, ComponentProps, Ref } from "react";
3
3
  //#region src/ui/resizable.d.ts
4
- type ResizableLayout = {
4
+ export type ResizableLayout = {
5
5
  [panelId: string]: number;
6
6
  };
7
- type ResizablePanelGroupVariant = "framed" | "nested";
8
- type ResizableHandleVariant = "solid" | "hover";
9
- type ResizablePanelGroupProps = Omit<ComponentProps<"div">, "style"> & {
7
+ export type ResizablePanelGroupVariant = "framed" | "nested";
8
+ export type ResizableHandleVariant = "solid" | "hover";
9
+ export type ResizablePanelGroupProps = Omit<ComponentProps<"div">, "style"> & {
10
10
  orientation?: "horizontal" | "vertical";
11
11
  variant?: ResizablePanelGroupVariant;
12
12
  defaultLayout?: ResizableLayout;
@@ -18,18 +18,18 @@ type ResizablePanelGroupProps = Omit<ComponentProps<"div">, "style"> & {
18
18
  }) => void;
19
19
  style?: CSSProperties & ResizableKnobStyle;
20
20
  };
21
- type ResizablePanelSize = {
21
+ export type ResizablePanelSize = {
22
22
  asPercentage: number;
23
23
  inPixels: number;
24
24
  };
25
- interface ResizablePanelHandle {
25
+ export interface ResizablePanelHandle {
26
26
  collapse: () => void;
27
27
  expand: () => void;
28
28
  getSize: () => ResizablePanelSize;
29
29
  isCollapsed: () => boolean;
30
30
  resize: (size: number | string) => void;
31
31
  }
32
- type ResizablePanelProps = Omit<ComponentProps<"div">, "onResize"> & {
32
+ export type ResizablePanelProps = Omit<ComponentProps<"div">, "onResize"> & {
33
33
  defaultSize?: number | string;
34
34
  minSize?: number | string;
35
35
  maxSize?: number | string;
@@ -42,15 +42,14 @@ type ResizablePanelProps = Omit<ComponentProps<"div">, "onResize"> & {
42
42
  } & {
43
43
  style?: CSSProperties & ResizableKnobStyle;
44
44
  };
45
- type ResizableHandleProps = Omit<ComponentProps<"div">, "role" | "tabIndex" | "style"> & {
45
+ export type ResizableHandleProps = Omit<ComponentProps<"div">, "role" | "tabIndex" | "style"> & {
46
46
  variant?: ResizableHandleVariant;
47
47
  withHandle?: boolean;
48
48
  disabled?: boolean;
49
49
  disableDoubleClick?: boolean;
50
50
  style?: CSSProperties & ResizableKnobStyle;
51
51
  };
52
- declare function ResizablePanelGroup({ className, orientation, variant, children, ...props }: ResizablePanelGroupProps): import("react").JSX.Element;
53
- declare function ResizablePanel({ className, ...props }: ResizablePanelProps): import("react").JSX.Element;
54
- declare function ResizableHandle({ className, variant, withHandle, children, ...props }: ResizableHandleProps): import("react").JSX.Element;
55
- //#endregion
56
- export { ResizableHandle, ResizableHandleProps, ResizableHandleVariant, ResizableLayout, ResizablePanel, ResizablePanelGroup, ResizablePanelGroupProps, ResizablePanelGroupVariant, ResizablePanelHandle, ResizablePanelProps, ResizablePanelSize };
52
+ export declare function ResizablePanelGroup({ className, orientation, variant, children, ...props }: ResizablePanelGroupProps): import("react").JSX.Element;
53
+ export declare function ResizablePanel({ className, ...props }: ResizablePanelProps): import("react").JSX.Element;
54
+ export declare function ResizableHandle({ className, variant, withHandle, children, ...props }: ResizableHandleProps): import("react").JSX.Element;
55
+ //#endregion