@metamorph-labs/polymorph-vue-ui 1.0.17 → 1.0.18

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 (722) hide show
  1. package/CHANGELOG.md +166 -0
  2. package/dist/ai/ArtifactPane.js.map +1 -1
  3. package/dist/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js +80 -72
  4. package/dist/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js.map +1 -1
  5. package/dist/ai/PromptInput.js.map +1 -1
  6. package/dist/ai/PromptInput.vue_vue_type_script_setup_true_lang.js +105 -105
  7. package/dist/ai/PromptInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  8. package/dist/ai/ReasoningDisclosure.js.map +1 -1
  9. package/dist/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js +1 -1
  10. package/dist/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js.map +1 -1
  11. package/dist/ai/ToolCall.js.map +1 -1
  12. package/dist/ai/ToolCall.vue_vue_type_script_setup_true_lang.js +1 -1
  13. package/dist/ai/ToolCall.vue_vue_type_script_setup_true_lang.js.map +1 -1
  14. package/dist/ai/artifact-pane.css +1 -1
  15. package/dist/ai/artifact-pane.module.js +1 -1
  16. package/dist/ai/attachment-chip.css +1 -1
  17. package/dist/ai/attachment-chip.module.js +1 -1
  18. package/dist/ai/attachment-chip.module.js.map +1 -1
  19. package/dist/ai/chat-thread.css +1 -1
  20. package/dist/ai/chat-thread.module.js +1 -1
  21. package/dist/ai/citation.css +1 -1
  22. package/dist/ai/citation.module.js +1 -1
  23. package/dist/ai/prompt-input.css +1 -1
  24. package/dist/ai/prompt-input.module.js +1 -1
  25. package/dist/ai/prompt-input.module.js.map +1 -1
  26. package/dist/ai/reasoning-disclosure.css +1 -1
  27. package/dist/ai/reasoning-disclosure.module.js +5 -5
  28. package/dist/ai/reasoning-disclosure.module.js.map +1 -1
  29. package/dist/ai/source-list.css +1 -1
  30. package/dist/ai/source-list.module.js +1 -1
  31. package/dist/ai/source-list.module.js.map +1 -1
  32. package/dist/ai/tool-call.css +1 -1
  33. package/dist/ai/tool-call.module.js +1 -1
  34. package/dist/archetypes/AppShell.js.map +1 -1
  35. package/dist/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js +139 -88
  36. package/dist/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  37. package/dist/archetypes/FormPage.js.map +1 -1
  38. package/dist/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js +43 -21
  39. package/dist/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js.map +1 -1
  40. package/dist/archetypes/app-shell.css +1 -1
  41. package/dist/archetypes/app-shell.module.js +9 -8
  42. package/dist/archetypes/app-shell.module.js.map +1 -1
  43. package/dist/archetypes/form-page.css +1 -1
  44. package/dist/archetypes/form-page.module.js +5 -3
  45. package/dist/archetypes/form-page.module.js.map +1 -1
  46. package/dist/archetypes/master-detail-page.css +1 -1
  47. package/dist/archetypes/master-detail-page.module.js +1 -1
  48. package/dist/archetypes/master-detail-page.module.js.map +1 -1
  49. package/dist/charts/area-chart.css +1 -1
  50. package/dist/charts/area-chart.module.js +1 -1
  51. package/dist/charts/bar-chart.css +1 -1
  52. package/dist/charts/bar-chart.module.js +1 -1
  53. package/dist/charts/donut-chart.css +1 -1
  54. package/dist/charts/donut-chart.module.js +1 -1
  55. package/dist/charts/frame/chart-frame.css +1 -1
  56. package/dist/charts/frame/chart-frame.module.js +1 -1
  57. package/dist/charts/frame/chart-legend.css +1 -1
  58. package/dist/charts/frame/chart-legend.module.js +1 -1
  59. package/dist/charts/frame/chart-legend.module.js.map +1 -1
  60. package/dist/charts/funnel-chart.css +1 -1
  61. package/dist/charts/funnel-chart.module.js +1 -1
  62. package/dist/charts/heatmap.css +1 -1
  63. package/dist/charts/heatmap.module.js +1 -1
  64. package/dist/charts/histogram.css +1 -1
  65. package/dist/charts/histogram.module.js +1 -1
  66. package/dist/charts/line-chart.css +1 -1
  67. package/dist/charts/line-chart.module.js +1 -1
  68. package/dist/charts/radar-chart.css +1 -1
  69. package/dist/charts/radar-chart.module.js +1 -1
  70. package/dist/charts/scatter-chart.css +1 -1
  71. package/dist/charts/scatter-chart.module.js +1 -1
  72. package/dist/charts/treemap.css +1 -1
  73. package/dist/charts/treemap.module.js +1 -1
  74. package/dist/controls/AvatarButton.js.map +1 -1
  75. package/dist/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js +43 -35
  76. package/dist/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  77. package/dist/controls/Button.js.map +1 -1
  78. package/dist/controls/Button.vue_vue_type_script_setup_true_lang.js +74 -62
  79. package/dist/controls/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
  80. package/dist/controls/Calendar.js.map +1 -1
  81. package/dist/controls/Calendar.vue_vue_type_script_setup_true_lang.js +1 -1
  82. package/dist/controls/Calendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  83. package/dist/controls/Checkbox.js.map +1 -1
  84. package/dist/controls/Checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
  85. package/dist/controls/Checkbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  86. package/dist/controls/ColorInput.js.map +1 -1
  87. package/dist/controls/ColorInput.vue_vue_type_script_setup_true_lang.js +95 -95
  88. package/dist/controls/ColorInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  89. package/dist/controls/Combobox.js.map +1 -1
  90. package/dist/controls/Combobox.vue_vue_type_script_setup_true_lang.js +1 -1
  91. package/dist/controls/Combobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  92. package/dist/controls/CopyButton.js.map +1 -1
  93. package/dist/controls/CopyButton.vue_vue_type_script_setup_true_lang.js +44 -30
  94. package/dist/controls/CopyButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  95. package/dist/controls/DatePicker.js.map +1 -1
  96. package/dist/controls/DatePicker.vue_vue_type_script_setup_true_lang.js +1 -1
  97. package/dist/controls/DatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  98. package/dist/controls/DateRangePicker.js.map +1 -1
  99. package/dist/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js +1 -1
  100. package/dist/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  101. package/dist/controls/FileUpload.js.map +1 -1
  102. package/dist/controls/FileUpload.vue_vue_type_script_setup_true_lang.js +98 -89
  103. package/dist/controls/FileUpload.vue_vue_type_script_setup_true_lang.js.map +1 -1
  104. package/dist/controls/InlineEdit.js.map +1 -1
  105. package/dist/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js +71 -63
  106. package/dist/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js.map +1 -1
  107. package/dist/controls/MultiSelect.js.map +1 -1
  108. package/dist/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js +188 -177
  109. package/dist/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  110. package/dist/controls/NumberInput.js.map +1 -1
  111. package/dist/controls/NumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
  112. package/dist/controls/NumberInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  113. package/dist/controls/PhoneInput.js.map +1 -1
  114. package/dist/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js +39 -39
  115. package/dist/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  116. package/dist/controls/RadioGroup.js.map +1 -1
  117. package/dist/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js +1 -1
  118. package/dist/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  119. package/dist/controls/SegmentedControl.js.map +1 -1
  120. package/dist/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js +1 -1
  121. package/dist/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js.map +1 -1
  122. package/dist/controls/Select.js.map +1 -1
  123. package/dist/controls/Select.vue_vue_type_script_setup_true_lang.js +1 -1
  124. package/dist/controls/Select.vue_vue_type_script_setup_true_lang.js.map +1 -1
  125. package/dist/controls/Slider.js.map +1 -1
  126. package/dist/controls/Slider.vue_vue_type_script_setup_true_lang.js +1 -1
  127. package/dist/controls/Slider.vue_vue_type_script_setup_true_lang.js.map +1 -1
  128. package/dist/controls/SplitButton.js.map +1 -1
  129. package/dist/controls/SplitButton.vue_vue_type_script_setup_true_lang.js +102 -87
  130. package/dist/controls/SplitButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  131. package/dist/controls/SplitButtonSubmenu.js.map +1 -1
  132. package/dist/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
  133. package/dist/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  134. package/dist/controls/Switch.js.map +1 -1
  135. package/dist/controls/Switch.vue_vue_type_script_setup_true_lang.js +1 -1
  136. package/dist/controls/Switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
  137. package/dist/controls/TagInput.js.map +1 -1
  138. package/dist/controls/TagInput.vue_vue_type_script_setup_true_lang.js +122 -111
  139. package/dist/controls/TagInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  140. package/dist/controls/TreeSelect.js.map +1 -1
  141. package/dist/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js +56 -56
  142. package/dist/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  143. package/dist/controls/avatar-button.css +1 -1
  144. package/dist/controls/avatar-button.module.js +5 -4
  145. package/dist/controls/avatar-button.module.js.map +1 -1
  146. package/dist/controls/button.css +1 -1
  147. package/dist/controls/button.module.js +4 -3
  148. package/dist/controls/button.module.js.map +1 -1
  149. package/dist/controls/calendar.css +1 -1
  150. package/dist/controls/calendar.module.js +3 -3
  151. package/dist/controls/calendar.module.js.map +1 -1
  152. package/dist/controls/checkbox-group.css +1 -1
  153. package/dist/controls/checkbox-group.module.js +1 -1
  154. package/dist/controls/checkbox.css +1 -1
  155. package/dist/controls/checkbox.module.js +2 -2
  156. package/dist/controls/checkbox.module.js.map +1 -1
  157. package/dist/controls/choice-card.css +1 -1
  158. package/dist/controls/choice-card.module.js +2 -2
  159. package/dist/controls/choice-card.module.js.map +1 -1
  160. package/dist/controls/color-input.css +1 -1
  161. package/dist/controls/color-input.module.js +1 -1
  162. package/dist/controls/color-input.module.js.map +1 -1
  163. package/dist/controls/combobox.css +1 -1
  164. package/dist/controls/combobox.module.js +5 -5
  165. package/dist/controls/combobox.module.js.map +1 -1
  166. package/dist/controls/copy-button.css +1 -1
  167. package/dist/controls/copy-button.module.js +8 -7
  168. package/dist/controls/copy-button.module.js.map +1 -1
  169. package/dist/controls/date-picker.css +1 -1
  170. package/dist/controls/date-picker.module.js +1 -1
  171. package/dist/controls/date-range-picker.css +1 -1
  172. package/dist/controls/date-range-picker.module.js +6 -6
  173. package/dist/controls/date-range-picker.module.js.map +1 -1
  174. package/dist/controls/duration-input.css +1 -1
  175. package/dist/controls/duration-input.module.js +1 -1
  176. package/dist/controls/file-upload.css +1 -1
  177. package/dist/controls/file-upload.module.js +1 -1
  178. package/dist/controls/file-upload.module.js.map +1 -1
  179. package/dist/controls/input.css +1 -1
  180. package/dist/controls/input.module.js +2 -2
  181. package/dist/controls/input.module.js.map +1 -1
  182. package/dist/controls/link.css +1 -1
  183. package/dist/controls/link.module.js +1 -1
  184. package/dist/controls/link.module.js.map +1 -1
  185. package/dist/controls/month-input.css +1 -1
  186. package/dist/controls/month-input.module.js +1 -1
  187. package/dist/controls/multi-select.css +1 -1
  188. package/dist/controls/multi-select.module.js +5 -5
  189. package/dist/controls/multi-select.module.js.map +1 -1
  190. package/dist/controls/number-input.css +1 -1
  191. package/dist/controls/number-input.module.js +1 -1
  192. package/dist/controls/number-input.module.js.map +1 -1
  193. package/dist/controls/otp-input.css +1 -1
  194. package/dist/controls/otp-input.module.js +2 -2
  195. package/dist/controls/otp-input.module.js.map +1 -1
  196. package/dist/controls/password-input.css +1 -1
  197. package/dist/controls/password-input.module.js +2 -2
  198. package/dist/controls/password-input.module.js.map +1 -1
  199. package/dist/controls/provider-button.css +1 -1
  200. package/dist/controls/provider-button.module.js +1 -1
  201. package/dist/controls/radio-group.css +1 -1
  202. package/dist/controls/radio-group.module.js +2 -2
  203. package/dist/controls/radio-group.module.js.map +1 -1
  204. package/dist/controls/rating.css +1 -1
  205. package/dist/controls/rating.module.js +1 -1
  206. package/dist/controls/rich-text-input.css +1 -1
  207. package/dist/controls/rich-text-input.module.js +1 -1
  208. package/dist/controls/rich-text-input.module.js.map +1 -1
  209. package/dist/controls/segmented-control.css +1 -1
  210. package/dist/controls/segmented-control.module.js +1 -1
  211. package/dist/controls/select.css +1 -1
  212. package/dist/controls/select.module.js +3 -3
  213. package/dist/controls/select.module.js.map +1 -1
  214. package/dist/controls/slider.css +1 -1
  215. package/dist/controls/slider.module.js +1 -1
  216. package/dist/controls/slider.module.js.map +1 -1
  217. package/dist/controls/split-button.css +1 -1
  218. package/dist/controls/split-button.module.js +20 -19
  219. package/dist/controls/split-button.module.js.map +1 -1
  220. package/dist/controls/switch.css +1 -1
  221. package/dist/controls/switch.module.js +1 -1
  222. package/dist/controls/switch.module.js.map +1 -1
  223. package/dist/controls/tag-input.css +1 -1
  224. package/dist/controls/tag-input.module.js +1 -1
  225. package/dist/controls/textarea.css +1 -1
  226. package/dist/controls/textarea.module.js +1 -1
  227. package/dist/controls/time-input.css +1 -1
  228. package/dist/controls/time-input.module.js +1 -1
  229. package/dist/controls/tree-select.css +1 -1
  230. package/dist/controls/tree-select.module.js +1 -1
  231. package/dist/layout/split-pane.css +1 -1
  232. package/dist/layout/split-pane.module.js +1 -1
  233. package/dist/layout/split-pane.module.js.map +1 -1
  234. package/dist/node/ai/ArtifactPane.js.map +1 -1
  235. package/dist/node/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js +80 -72
  236. package/dist/node/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js.map +1 -1
  237. package/dist/node/ai/PromptInput.js.map +1 -1
  238. package/dist/node/ai/PromptInput.vue_vue_type_script_setup_true_lang.js +105 -105
  239. package/dist/node/ai/PromptInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  240. package/dist/node/ai/ReasoningDisclosure.js.map +1 -1
  241. package/dist/node/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js +1 -1
  242. package/dist/node/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js.map +1 -1
  243. package/dist/node/ai/ToolCall.js.map +1 -1
  244. package/dist/node/ai/ToolCall.vue_vue_type_script_setup_true_lang.js +1 -1
  245. package/dist/node/ai/ToolCall.vue_vue_type_script_setup_true_lang.js.map +1 -1
  246. package/dist/node/ai/artifact-pane.module.js +1 -1
  247. package/dist/node/ai/attachment-chip.module.js +1 -1
  248. package/dist/node/ai/attachment-chip.module.js.map +1 -1
  249. package/dist/node/ai/chat-thread.module.js +1 -1
  250. package/dist/node/ai/citation.module.js +1 -1
  251. package/dist/node/ai/prompt-input.module.js +1 -1
  252. package/dist/node/ai/prompt-input.module.js.map +1 -1
  253. package/dist/node/ai/reasoning-disclosure.module.js +5 -5
  254. package/dist/node/ai/reasoning-disclosure.module.js.map +1 -1
  255. package/dist/node/ai/source-list.module.js +1 -1
  256. package/dist/node/ai/source-list.module.js.map +1 -1
  257. package/dist/node/ai/tool-call.module.js +1 -1
  258. package/dist/node/archetypes/AppShell.js.map +1 -1
  259. package/dist/node/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js +139 -88
  260. package/dist/node/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  261. package/dist/node/archetypes/FormPage.js.map +1 -1
  262. package/dist/node/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js +43 -21
  263. package/dist/node/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js.map +1 -1
  264. package/dist/node/archetypes/app-shell.module.js +9 -8
  265. package/dist/node/archetypes/app-shell.module.js.map +1 -1
  266. package/dist/node/archetypes/form-page.module.js +5 -3
  267. package/dist/node/archetypes/form-page.module.js.map +1 -1
  268. package/dist/node/archetypes/master-detail-page.module.js +1 -1
  269. package/dist/node/archetypes/master-detail-page.module.js.map +1 -1
  270. package/dist/node/charts/area-chart.module.js +1 -1
  271. package/dist/node/charts/bar-chart.module.js +1 -1
  272. package/dist/node/charts/donut-chart.module.js +1 -1
  273. package/dist/node/charts/frame/chart-frame.module.js +1 -1
  274. package/dist/node/charts/frame/chart-legend.module.js +1 -1
  275. package/dist/node/charts/frame/chart-legend.module.js.map +1 -1
  276. package/dist/node/charts/funnel-chart.module.js +1 -1
  277. package/dist/node/charts/heatmap.module.js +1 -1
  278. package/dist/node/charts/histogram.module.js +1 -1
  279. package/dist/node/charts/line-chart.module.js +1 -1
  280. package/dist/node/charts/radar-chart.module.js +1 -1
  281. package/dist/node/charts/scatter-chart.module.js +1 -1
  282. package/dist/node/charts/treemap.module.js +1 -1
  283. package/dist/node/controls/AvatarButton.js.map +1 -1
  284. package/dist/node/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js +43 -35
  285. package/dist/node/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  286. package/dist/node/controls/Button.js.map +1 -1
  287. package/dist/node/controls/Button.vue_vue_type_script_setup_true_lang.js +74 -62
  288. package/dist/node/controls/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
  289. package/dist/node/controls/Calendar.js.map +1 -1
  290. package/dist/node/controls/Calendar.vue_vue_type_script_setup_true_lang.js +1 -1
  291. package/dist/node/controls/Calendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  292. package/dist/node/controls/Checkbox.js.map +1 -1
  293. package/dist/node/controls/Checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
  294. package/dist/node/controls/Checkbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  295. package/dist/node/controls/ColorInput.js.map +1 -1
  296. package/dist/node/controls/ColorInput.vue_vue_type_script_setup_true_lang.js +95 -95
  297. package/dist/node/controls/ColorInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  298. package/dist/node/controls/Combobox.js.map +1 -1
  299. package/dist/node/controls/Combobox.vue_vue_type_script_setup_true_lang.js +1 -1
  300. package/dist/node/controls/Combobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  301. package/dist/node/controls/CopyButton.js.map +1 -1
  302. package/dist/node/controls/CopyButton.vue_vue_type_script_setup_true_lang.js +44 -30
  303. package/dist/node/controls/CopyButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  304. package/dist/node/controls/DatePicker.js.map +1 -1
  305. package/dist/node/controls/DatePicker.vue_vue_type_script_setup_true_lang.js +1 -1
  306. package/dist/node/controls/DatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  307. package/dist/node/controls/DateRangePicker.js.map +1 -1
  308. package/dist/node/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js +1 -1
  309. package/dist/node/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  310. package/dist/node/controls/FileUpload.js.map +1 -1
  311. package/dist/node/controls/FileUpload.vue_vue_type_script_setup_true_lang.js +98 -89
  312. package/dist/node/controls/FileUpload.vue_vue_type_script_setup_true_lang.js.map +1 -1
  313. package/dist/node/controls/InlineEdit.js.map +1 -1
  314. package/dist/node/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js +71 -63
  315. package/dist/node/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js.map +1 -1
  316. package/dist/node/controls/MultiSelect.js.map +1 -1
  317. package/dist/node/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js +188 -177
  318. package/dist/node/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  319. package/dist/node/controls/NumberInput.js.map +1 -1
  320. package/dist/node/controls/NumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
  321. package/dist/node/controls/NumberInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  322. package/dist/node/controls/PhoneInput.js.map +1 -1
  323. package/dist/node/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js +39 -39
  324. package/dist/node/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  325. package/dist/node/controls/RadioGroup.js.map +1 -1
  326. package/dist/node/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js +1 -1
  327. package/dist/node/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  328. package/dist/node/controls/SegmentedControl.js.map +1 -1
  329. package/dist/node/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js +1 -1
  330. package/dist/node/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js.map +1 -1
  331. package/dist/node/controls/Select.js.map +1 -1
  332. package/dist/node/controls/Select.vue_vue_type_script_setup_true_lang.js +1 -1
  333. package/dist/node/controls/Select.vue_vue_type_script_setup_true_lang.js.map +1 -1
  334. package/dist/node/controls/Slider.js.map +1 -1
  335. package/dist/node/controls/Slider.vue_vue_type_script_setup_true_lang.js +1 -1
  336. package/dist/node/controls/Slider.vue_vue_type_script_setup_true_lang.js.map +1 -1
  337. package/dist/node/controls/SplitButton.js.map +1 -1
  338. package/dist/node/controls/SplitButton.vue_vue_type_script_setup_true_lang.js +102 -87
  339. package/dist/node/controls/SplitButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  340. package/dist/node/controls/SplitButtonSubmenu.js.map +1 -1
  341. package/dist/node/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
  342. package/dist/node/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  343. package/dist/node/controls/Switch.js.map +1 -1
  344. package/dist/node/controls/Switch.vue_vue_type_script_setup_true_lang.js +1 -1
  345. package/dist/node/controls/Switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
  346. package/dist/node/controls/TagInput.js.map +1 -1
  347. package/dist/node/controls/TagInput.vue_vue_type_script_setup_true_lang.js +122 -111
  348. package/dist/node/controls/TagInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  349. package/dist/node/controls/TreeSelect.js.map +1 -1
  350. package/dist/node/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js +56 -56
  351. package/dist/node/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  352. package/dist/node/controls/avatar-button.module.js +5 -4
  353. package/dist/node/controls/avatar-button.module.js.map +1 -1
  354. package/dist/node/controls/button.module.js +4 -3
  355. package/dist/node/controls/button.module.js.map +1 -1
  356. package/dist/node/controls/calendar.module.js +3 -3
  357. package/dist/node/controls/calendar.module.js.map +1 -1
  358. package/dist/node/controls/checkbox-group.module.js +1 -1
  359. package/dist/node/controls/checkbox.module.js +2 -2
  360. package/dist/node/controls/checkbox.module.js.map +1 -1
  361. package/dist/node/controls/choice-card.module.js +2 -2
  362. package/dist/node/controls/choice-card.module.js.map +1 -1
  363. package/dist/node/controls/color-input.module.js +1 -1
  364. package/dist/node/controls/color-input.module.js.map +1 -1
  365. package/dist/node/controls/combobox.module.js +5 -5
  366. package/dist/node/controls/combobox.module.js.map +1 -1
  367. package/dist/node/controls/copy-button.module.js +8 -7
  368. package/dist/node/controls/copy-button.module.js.map +1 -1
  369. package/dist/node/controls/date-picker.module.js +1 -1
  370. package/dist/node/controls/date-range-picker.module.js +6 -6
  371. package/dist/node/controls/date-range-picker.module.js.map +1 -1
  372. package/dist/node/controls/duration-input.module.js +1 -1
  373. package/dist/node/controls/file-upload.module.js +1 -1
  374. package/dist/node/controls/file-upload.module.js.map +1 -1
  375. package/dist/node/controls/input.module.js +2 -2
  376. package/dist/node/controls/input.module.js.map +1 -1
  377. package/dist/node/controls/link.module.js +1 -1
  378. package/dist/node/controls/link.module.js.map +1 -1
  379. package/dist/node/controls/month-input.module.js +1 -1
  380. package/dist/node/controls/multi-select.module.js +5 -5
  381. package/dist/node/controls/multi-select.module.js.map +1 -1
  382. package/dist/node/controls/number-input.module.js +1 -1
  383. package/dist/node/controls/number-input.module.js.map +1 -1
  384. package/dist/node/controls/otp-input.module.js +2 -2
  385. package/dist/node/controls/otp-input.module.js.map +1 -1
  386. package/dist/node/controls/password-input.module.js +2 -2
  387. package/dist/node/controls/password-input.module.js.map +1 -1
  388. package/dist/node/controls/provider-button.module.js +1 -1
  389. package/dist/node/controls/radio-group.module.js +2 -2
  390. package/dist/node/controls/radio-group.module.js.map +1 -1
  391. package/dist/node/controls/rating.module.js +1 -1
  392. package/dist/node/controls/rich-text-input.module.js +1 -1
  393. package/dist/node/controls/rich-text-input.module.js.map +1 -1
  394. package/dist/node/controls/segmented-control.module.js +1 -1
  395. package/dist/node/controls/select.module.js +3 -3
  396. package/dist/node/controls/select.module.js.map +1 -1
  397. package/dist/node/controls/slider.module.js +1 -1
  398. package/dist/node/controls/slider.module.js.map +1 -1
  399. package/dist/node/controls/split-button.module.js +20 -19
  400. package/dist/node/controls/split-button.module.js.map +1 -1
  401. package/dist/node/controls/switch.module.js +1 -1
  402. package/dist/node/controls/switch.module.js.map +1 -1
  403. package/dist/node/controls/tag-input.module.js +1 -1
  404. package/dist/node/controls/textarea.module.js +1 -1
  405. package/dist/node/controls/time-input.module.js +1 -1
  406. package/dist/node/controls/tree-select.module.js +1 -1
  407. package/dist/node/layout/split-pane.module.js +1 -1
  408. package/dist/node/layout/split-pane.module.js.map +1 -1
  409. package/dist/node/overlays/Command.js.map +1 -1
  410. package/dist/node/overlays/Command.vue_vue_type_script_setup_true_lang.js +50 -45
  411. package/dist/node/overlays/Command.vue_vue_type_script_setup_true_lang.js.map +1 -1
  412. package/dist/node/overlays/CommandPanel.js.map +1 -1
  413. package/dist/node/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js +82 -82
  414. package/dist/node/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  415. package/dist/node/overlays/ContextMenu.js.map +1 -1
  416. package/dist/node/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js +1 -1
  417. package/dist/node/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  418. package/dist/node/overlays/ContextMenuSubmenu.js.map +1 -1
  419. package/dist/node/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
  420. package/dist/node/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  421. package/dist/node/overlays/Dialog.js.map +1 -1
  422. package/dist/node/overlays/Dialog.vue_vue_type_script_setup_true_lang.js +47 -43
  423. package/dist/node/overlays/Dialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
  424. package/dist/node/overlays/Drawer.js.map +1 -1
  425. package/dist/node/overlays/Drawer.vue_vue_type_script_setup_true_lang.js +58 -53
  426. package/dist/node/overlays/Drawer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  427. package/dist/node/overlays/Lightbox.js.map +1 -1
  428. package/dist/node/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js +65 -61
  429. package/dist/node/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  430. package/dist/node/overlays/Menu.js.map +1 -1
  431. package/dist/node/overlays/Menu.vue_vue_type_script_setup_true_lang.js +1 -1
  432. package/dist/node/overlays/Menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  433. package/dist/node/overlays/MenuSubmenu.js.map +1 -1
  434. package/dist/node/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
  435. package/dist/node/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  436. package/dist/node/overlays/Menubar.js.map +1 -1
  437. package/dist/node/overlays/Menubar.vue_vue_type_script_setup_true_lang.js +1 -1
  438. package/dist/node/overlays/Menubar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  439. package/dist/node/overlays/MenubarSubmenu.js.map +1 -1
  440. package/dist/node/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
  441. package/dist/node/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  442. package/dist/node/overlays/Popover.js.map +1 -1
  443. package/dist/node/overlays/Popover.vue_vue_type_script_setup_true_lang.js +1 -1
  444. package/dist/node/overlays/Popover.vue_vue_type_script_setup_true_lang.js.map +1 -1
  445. package/dist/node/overlays/Tabs.js.map +1 -1
  446. package/dist/node/overlays/Tabs.vue_vue_type_script_setup_true_lang.js +1 -1
  447. package/dist/node/overlays/Tabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
  448. package/dist/node/overlays/Toast.js.map +1 -1
  449. package/dist/node/overlays/Toast.vue_vue_type_script_setup_true_lang.js.map +1 -1
  450. package/dist/node/overlays/ToastCard.js.map +1 -1
  451. package/dist/node/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js +74 -71
  452. package/dist/node/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js.map +1 -1
  453. package/dist/node/overlays/ToastViewport.js.map +1 -1
  454. package/dist/node/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js +70 -59
  455. package/dist/node/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js.map +1 -1
  456. package/dist/node/overlays/Tooltip.js.map +1 -1
  457. package/dist/node/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js +46 -26
  458. package/dist/node/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
  459. package/dist/node/overlays/Tour.js.map +1 -1
  460. package/dist/node/overlays/Tour.vue_vue_type_script_setup_true_lang.js +74 -69
  461. package/dist/node/overlays/Tour.vue_vue_type_script_setup_true_lang.js.map +1 -1
  462. package/dist/node/overlays/context-menu.module.js +4 -4
  463. package/dist/node/overlays/context-menu.module.js.map +1 -1
  464. package/dist/node/overlays/dialog.module.js +1 -1
  465. package/dist/node/overlays/dialog.module.js.map +1 -1
  466. package/dist/node/overlays/drawer.module.js +1 -1
  467. package/dist/node/overlays/drawer.module.js.map +1 -1
  468. package/dist/node/overlays/lightbox.module.js +1 -1
  469. package/dist/node/overlays/menu.module.js +4 -4
  470. package/dist/node/overlays/menu.module.js.map +1 -1
  471. package/dist/node/overlays/menubar.module.js +1 -1
  472. package/dist/node/overlays/menubar.module.js.map +1 -1
  473. package/dist/node/overlays/popover.module.js +3 -3
  474. package/dist/node/overlays/popover.module.js.map +1 -1
  475. package/dist/node/overlays/sheet.module.js +1 -1
  476. package/dist/node/overlays/sheet.module.js.map +1 -1
  477. package/dist/node/overlays/tabs.module.js +4 -4
  478. package/dist/node/overlays/tabs.module.js.map +1 -1
  479. package/dist/node/overlays/toast.module.js +1 -1
  480. package/dist/node/overlays/toast.module.js.map +1 -1
  481. package/dist/node/overlays/tour.module.js +1 -1
  482. package/dist/node/overlays/tour.module.js.map +1 -1
  483. package/dist/node/structure/Accordion.js.map +1 -1
  484. package/dist/node/structure/Accordion.vue_vue_type_script_setup_true_lang.js +1 -1
  485. package/dist/node/structure/Accordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
  486. package/dist/node/structure/Alert.js.map +1 -1
  487. package/dist/node/structure/Alert.vue_vue_type_script_setup_true_lang.js +62 -54
  488. package/dist/node/structure/Alert.vue_vue_type_script_setup_true_lang.js.map +1 -1
  489. package/dist/node/structure/Banner.js.map +1 -1
  490. package/dist/node/structure/Banner.vue_vue_type_script_setup_true_lang.js +42 -34
  491. package/dist/node/structure/Banner.vue_vue_type_script_setup_true_lang.js.map +1 -1
  492. package/dist/node/structure/Carousel.js.map +1 -1
  493. package/dist/node/structure/Carousel.vue_vue_type_script_setup_true_lang.js +8 -8
  494. package/dist/node/structure/Carousel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  495. package/dist/node/structure/Collapsible.js.map +1 -1
  496. package/dist/node/structure/Collapsible.vue_vue_type_script_setup_true_lang.js +1 -1
  497. package/dist/node/structure/Collapsible.vue_vue_type_script_setup_true_lang.js.map +1 -1
  498. package/dist/node/structure/DataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  499. package/dist/node/structure/Pagination.js.map +1 -1
  500. package/dist/node/structure/Pagination.vue_vue_type_script_setup_true_lang.js +118 -88
  501. package/dist/node/structure/Pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
  502. package/dist/node/structure/ScrollArea.js.map +1 -1
  503. package/dist/node/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js +30 -27
  504. package/dist/node/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js.map +1 -1
  505. package/dist/node/structure/Table.js.map +1 -1
  506. package/dist/node/structure/Table.vue_vue_type_script_setup_true_lang.js +71 -61
  507. package/dist/node/structure/Table.vue_vue_type_script_setup_true_lang.js.map +1 -1
  508. package/dist/node/structure/accordion.module.js +5 -5
  509. package/dist/node/structure/accordion.module.js.map +1 -1
  510. package/dist/node/structure/breadcrumbs.module.js +1 -1
  511. package/dist/node/structure/breadcrumbs.module.js.map +1 -1
  512. package/dist/node/structure/card.module.js +1 -1
  513. package/dist/node/structure/card.module.js.map +1 -1
  514. package/dist/node/structure/carousel.module.js +1 -1
  515. package/dist/node/structure/carousel.module.js.map +1 -1
  516. package/dist/node/structure/code-block.module.js +1 -1
  517. package/dist/node/structure/collapsible.module.js +5 -5
  518. package/dist/node/structure/collapsible.module.js.map +1 -1
  519. package/dist/node/structure/cursor-pagination.module.js +1 -1
  520. package/dist/node/structure/data-table.module.js +1 -1
  521. package/dist/node/structure/error-summary.module.js +1 -1
  522. package/dist/node/structure/error-summary.module.js.map +1 -1
  523. package/dist/node/structure/json-tree.module.js +1 -1
  524. package/dist/node/structure/json-tree.module.js.map +1 -1
  525. package/dist/node/structure/list.module.js +1 -1
  526. package/dist/node/structure/list.module.js.map +1 -1
  527. package/dist/node/structure/log-view.module.js +1 -1
  528. package/dist/node/structure/pagination.module.js +4 -3
  529. package/dist/node/structure/pagination.module.js.map +1 -1
  530. package/dist/node/structure/rich-text-content.module.js +1 -1
  531. package/dist/node/structure/section-nav.module.js +1 -1
  532. package/dist/node/structure/section-nav.module.js.map +1 -1
  533. package/dist/node/structure/stepper.module.js +2 -2
  534. package/dist/node/structure/stepper.module.js.map +1 -1
  535. package/dist/node/structure/table-of-contents.module.js +1 -1
  536. package/dist/node/structure/table-of-contents.module.js.map +1 -1
  537. package/dist/node/structure/table.module.js +1 -1
  538. package/dist/node/structure/table.module.js.map +1 -1
  539. package/dist/node/structure/tree.module.js +1 -1
  540. package/dist/node/structure/tree.module.js.map +1 -1
  541. package/dist/overlays/Command.js.map +1 -1
  542. package/dist/overlays/Command.vue_vue_type_script_setup_true_lang.js +50 -45
  543. package/dist/overlays/Command.vue_vue_type_script_setup_true_lang.js.map +1 -1
  544. package/dist/overlays/CommandPanel.js.map +1 -1
  545. package/dist/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js +82 -82
  546. package/dist/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  547. package/dist/overlays/ContextMenu.js.map +1 -1
  548. package/dist/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js +1 -1
  549. package/dist/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  550. package/dist/overlays/ContextMenuSubmenu.js.map +1 -1
  551. package/dist/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
  552. package/dist/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  553. package/dist/overlays/Dialog.js.map +1 -1
  554. package/dist/overlays/Dialog.vue_vue_type_script_setup_true_lang.js +47 -43
  555. package/dist/overlays/Dialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
  556. package/dist/overlays/Drawer.js.map +1 -1
  557. package/dist/overlays/Drawer.vue_vue_type_script_setup_true_lang.js +58 -53
  558. package/dist/overlays/Drawer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  559. package/dist/overlays/Lightbox.js.map +1 -1
  560. package/dist/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js +65 -61
  561. package/dist/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  562. package/dist/overlays/Menu.js.map +1 -1
  563. package/dist/overlays/Menu.vue_vue_type_script_setup_true_lang.js +1 -1
  564. package/dist/overlays/Menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  565. package/dist/overlays/MenuSubmenu.js.map +1 -1
  566. package/dist/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
  567. package/dist/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  568. package/dist/overlays/Menubar.js.map +1 -1
  569. package/dist/overlays/Menubar.vue_vue_type_script_setup_true_lang.js +1 -1
  570. package/dist/overlays/Menubar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  571. package/dist/overlays/MenubarSubmenu.js.map +1 -1
  572. package/dist/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
  573. package/dist/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  574. package/dist/overlays/Popover.js.map +1 -1
  575. package/dist/overlays/Popover.vue_vue_type_script_setup_true_lang.js +1 -1
  576. package/dist/overlays/Popover.vue_vue_type_script_setup_true_lang.js.map +1 -1
  577. package/dist/overlays/Tabs.js.map +1 -1
  578. package/dist/overlays/Tabs.vue_vue_type_script_setup_true_lang.js +1 -1
  579. package/dist/overlays/Tabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
  580. package/dist/overlays/Toast.js.map +1 -1
  581. package/dist/overlays/Toast.vue_vue_type_script_setup_true_lang.js.map +1 -1
  582. package/dist/overlays/ToastCard.js.map +1 -1
  583. package/dist/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js +74 -71
  584. package/dist/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js.map +1 -1
  585. package/dist/overlays/ToastViewport.js.map +1 -1
  586. package/dist/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js +70 -59
  587. package/dist/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js.map +1 -1
  588. package/dist/overlays/Tooltip.js.map +1 -1
  589. package/dist/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js +46 -26
  590. package/dist/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
  591. package/dist/overlays/Tour.js.map +1 -1
  592. package/dist/overlays/Tour.vue_vue_type_script_setup_true_lang.js +74 -69
  593. package/dist/overlays/Tour.vue_vue_type_script_setup_true_lang.js.map +1 -1
  594. package/dist/overlays/context-menu.css +1 -1
  595. package/dist/overlays/context-menu.module.js +4 -4
  596. package/dist/overlays/context-menu.module.js.map +1 -1
  597. package/dist/overlays/dialog.css +1 -1
  598. package/dist/overlays/dialog.module.js +1 -1
  599. package/dist/overlays/dialog.module.js.map +1 -1
  600. package/dist/overlays/drawer.css +1 -1
  601. package/dist/overlays/drawer.module.js +1 -1
  602. package/dist/overlays/drawer.module.js.map +1 -1
  603. package/dist/overlays/lightbox.css +1 -1
  604. package/dist/overlays/lightbox.module.js +1 -1
  605. package/dist/overlays/menu.css +1 -1
  606. package/dist/overlays/menu.module.js +4 -4
  607. package/dist/overlays/menu.module.js.map +1 -1
  608. package/dist/overlays/menubar.css +1 -1
  609. package/dist/overlays/menubar.module.js +1 -1
  610. package/dist/overlays/menubar.module.js.map +1 -1
  611. package/dist/overlays/popover.css +1 -1
  612. package/dist/overlays/popover.module.js +3 -3
  613. package/dist/overlays/popover.module.js.map +1 -1
  614. package/dist/overlays/sheet.css +1 -1
  615. package/dist/overlays/sheet.module.js +1 -1
  616. package/dist/overlays/sheet.module.js.map +1 -1
  617. package/dist/overlays/tabs.css +1 -1
  618. package/dist/overlays/tabs.module.js +4 -4
  619. package/dist/overlays/tabs.module.js.map +1 -1
  620. package/dist/overlays/toast.css +1 -1
  621. package/dist/overlays/toast.module.js +1 -1
  622. package/dist/overlays/toast.module.js.map +1 -1
  623. package/dist/overlays/tour.css +1 -1
  624. package/dist/overlays/tour.module.js +1 -1
  625. package/dist/overlays/tour.module.js.map +1 -1
  626. package/dist/structure/Accordion.js.map +1 -1
  627. package/dist/structure/Accordion.vue_vue_type_script_setup_true_lang.js +1 -1
  628. package/dist/structure/Accordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
  629. package/dist/structure/Alert.js.map +1 -1
  630. package/dist/structure/Alert.vue_vue_type_script_setup_true_lang.js +62 -54
  631. package/dist/structure/Alert.vue_vue_type_script_setup_true_lang.js.map +1 -1
  632. package/dist/structure/Banner.js.map +1 -1
  633. package/dist/structure/Banner.vue_vue_type_script_setup_true_lang.js +42 -34
  634. package/dist/structure/Banner.vue_vue_type_script_setup_true_lang.js.map +1 -1
  635. package/dist/structure/Carousel.js.map +1 -1
  636. package/dist/structure/Carousel.vue_vue_type_script_setup_true_lang.js +8 -8
  637. package/dist/structure/Carousel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  638. package/dist/structure/Collapsible.js.map +1 -1
  639. package/dist/structure/Collapsible.vue_vue_type_script_setup_true_lang.js +1 -1
  640. package/dist/structure/Collapsible.vue_vue_type_script_setup_true_lang.js.map +1 -1
  641. package/dist/structure/DataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  642. package/dist/structure/Pagination.js.map +1 -1
  643. package/dist/structure/Pagination.vue_vue_type_script_setup_true_lang.js +118 -88
  644. package/dist/structure/Pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
  645. package/dist/structure/ScrollArea.js.map +1 -1
  646. package/dist/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js +30 -27
  647. package/dist/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js.map +1 -1
  648. package/dist/structure/Table.js.map +1 -1
  649. package/dist/structure/Table.vue_vue_type_script_setup_true_lang.js +71 -61
  650. package/dist/structure/Table.vue_vue_type_script_setup_true_lang.js.map +1 -1
  651. package/dist/structure/accordion.css +1 -1
  652. package/dist/structure/accordion.module.js +5 -5
  653. package/dist/structure/accordion.module.js.map +1 -1
  654. package/dist/structure/breadcrumbs.css +1 -1
  655. package/dist/structure/breadcrumbs.module.js +1 -1
  656. package/dist/structure/breadcrumbs.module.js.map +1 -1
  657. package/dist/structure/card.css +1 -1
  658. package/dist/structure/card.module.js +1 -1
  659. package/dist/structure/card.module.js.map +1 -1
  660. package/dist/structure/carousel.css +1 -1
  661. package/dist/structure/carousel.module.js +1 -1
  662. package/dist/structure/carousel.module.js.map +1 -1
  663. package/dist/structure/code-block.css +1 -1
  664. package/dist/structure/code-block.module.js +1 -1
  665. package/dist/structure/collapsible.css +1 -1
  666. package/dist/structure/collapsible.module.js +5 -5
  667. package/dist/structure/collapsible.module.js.map +1 -1
  668. package/dist/structure/cursor-pagination.css +1 -1
  669. package/dist/structure/cursor-pagination.module.js +1 -1
  670. package/dist/structure/data-table.css +1 -1
  671. package/dist/structure/data-table.module.js +1 -1
  672. package/dist/structure/error-summary.css +1 -1
  673. package/dist/structure/error-summary.module.js +1 -1
  674. package/dist/structure/error-summary.module.js.map +1 -1
  675. package/dist/structure/json-tree.css +1 -1
  676. package/dist/structure/json-tree.module.js +1 -1
  677. package/dist/structure/json-tree.module.js.map +1 -1
  678. package/dist/structure/list.css +1 -1
  679. package/dist/structure/list.module.js +1 -1
  680. package/dist/structure/list.module.js.map +1 -1
  681. package/dist/structure/log-view.css +1 -1
  682. package/dist/structure/log-view.module.js +1 -1
  683. package/dist/structure/pagination.css +1 -1
  684. package/dist/structure/pagination.module.js +4 -3
  685. package/dist/structure/pagination.module.js.map +1 -1
  686. package/dist/structure/rich-text-content.css +1 -1
  687. package/dist/structure/rich-text-content.module.js +1 -1
  688. package/dist/structure/section-nav.css +1 -1
  689. package/dist/structure/section-nav.module.js +1 -1
  690. package/dist/structure/section-nav.module.js.map +1 -1
  691. package/dist/structure/stepper.css +1 -1
  692. package/dist/structure/stepper.module.js +2 -2
  693. package/dist/structure/stepper.module.js.map +1 -1
  694. package/dist/structure/table-of-contents.css +1 -1
  695. package/dist/structure/table-of-contents.module.js +1 -1
  696. package/dist/structure/table-of-contents.module.js.map +1 -1
  697. package/dist/structure/table.css +1 -1
  698. package/dist/structure/table.module.js +1 -1
  699. package/dist/structure/table.module.js.map +1 -1
  700. package/dist/structure/tree.css +1 -1
  701. package/dist/structure/tree.module.js +1 -1
  702. package/dist/structure/tree.module.js.map +1 -1
  703. package/dist/types/ai/AttachmentChip.vue.d.ts +1 -1
  704. package/dist/types/ai/ToolCall.vue.d.ts +1 -1
  705. package/dist/types/archetypes/FormPage.vue.d.ts +1 -0
  706. package/dist/types/charts/BarChart.vue.d.ts +1 -1
  707. package/dist/types/controls/FileUpload.vue.d.ts +1 -1
  708. package/dist/types/controls/RecordButton.vue.d.ts +2 -2
  709. package/dist/types/controls/Slider.vue.d.ts +1 -1
  710. package/dist/types/layout/Grid.vue.d.ts +1 -1
  711. package/dist/types/layout/Inline.vue.d.ts +2 -2
  712. package/dist/types/layout/Stack.vue.d.ts +2 -2
  713. package/dist/types/overlays/Drawer.vue.d.ts +1 -1
  714. package/dist/types/overlays/HoverCard.vue.d.ts +1 -1
  715. package/dist/types/overlays/Menu.vue.d.ts +1 -1
  716. package/dist/types/overlays/Popover.vue.d.ts +1 -1
  717. package/dist/types/overlays/Toast.vue.d.ts +3 -1
  718. package/dist/types/overlays/Tooltip.vue.d.ts +1 -1
  719. package/dist/types/structure/EmptyState.vue.d.ts +1 -1
  720. package/dist/types/structure/Hero.vue.d.ts +1 -1
  721. package/dist/types/structure/RelativeTime.vue.d.ts +1 -1
  722. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"select.module.js","names":[],"sources":["../../../../recipes/src/controls/select.module.css"],"sourcesContent":["/* Select — `design/components/select.md`.\n *\n * The trigger copies Input's recipe instead of sharing it. The completeness law checks\n * each component's own stylesheet, and that check only means something with one\n * stylesheet per component. A test prevents drift instead: `select.test.tsx` compares\n * the two controls' computed values, which is the stronger check.\n *\n * `var(--radix-*)` values are measured by the positioning engine at runtime (anchor\n * width, available height, transform origin). No one chooses them, so the token law\n * allows them (packages/rules/src/stylelint/values.js). */\n\n.trigger {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n gap: var(--pm-space-3);\n align-items: center;\n justify-content: space-between;\n max-inline-size: 100%;\n block-size: var(--pm-control-height-md);\n padding-inline: var(--pm-space-5);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n cursor: pointer;\n background: var(--pm-bg-surface);\n border: 1px solid var(--pm-border-field);\n border-radius: var(--pm-radius-control);\n\n /* The control seat shadow, from Input, used by every field in the family. */\n box-shadow: var(--pm-shadow-seat);\n}\n\n.value {\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.chevron {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--pm-text-muted);\n\n /* The `select.chevron` binding: transform, control class, `standard` easing, because\n the change is symmetric with no direction of travel. */\n transition: transform var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n/* trigger sizes — the conventions' size system ------------------------------ */\n\n.trigger[data-size='sm'] {\n gap: var(--pm-space-2);\n block-size: var(--pm-control-height-sm);\n padding-inline: var(--pm-space-4);\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n}\n\n.trigger[data-size='lg'] {\n block-size: var(--pm-control-height-lg);\n padding-inline: var(--pm-space-6);\n font-family: var(--pm-text-md-family);\n font-size: var(--pm-text-md-size);\n font-weight: var(--pm-text-md-weight);\n line-height: var(--pm-text-md-line-height);\n letter-spacing: var(--pm-text-md-tracking);\n}\n\n/* trigger states ------------------------------------------------------------ */\n\n.trigger[data-placeholder] {\n color: var(--pm-text-muted);\n}\n\n.trigger[data-invalid] {\n border-color: var(--pm-danger-border);\n}\n\n.trigger[data-disabled] {\n color: var(--pm-text-disabled);\n cursor: not-allowed;\n background: var(--pm-bg-subtle);\n border-color: var(--pm-border-subtle);\n\n /* The seat shadow signals a ready control, so disabled removes it (as in Input). */\n box-shadow: none;\n}\n\n/* While open, the trigger keeps the hover border so it does not flicker back to rest.\n Invalid is excluded from both rules rather than overridden, so the error border stays\n on hover and while the panel is open. */\n.trigger[data-state='open']:not([data-invalid]) {\n border-color: var(--pm-border-strong);\n}\n\n.trigger:hover:not([data-disabled], [data-invalid]) {\n border-color: var(--pm-border-strong);\n}\n\n.trigger[data-state='open'] .chevron {\n transform: rotate(180deg);\n}\n\n.trigger[data-disabled] .chevron {\n color: var(--pm-text-disabled);\n}\n\n/* panel --------------------------------------------------------------------- */\n\n.content {\n display: flex;\n flex-direction: column;\n\n /* `overlay` from the stacking scale. The popper copies it onto its wrapper\n (menu.module.css explains how). */\n z-index: var(--pm-z-overlay);\n min-inline-size: var(--radix-select-trigger-width);\n max-block-size: var(--radix-select-content-available-height);\n padding: var(--pm-inset-list);\n overflow: hidden;\n background: var(--pm-bg-overlay);\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-surface);\n box-shadow: var(--pm-shadow-transient);\n transform-origin: var(--radix-select-content-transform-origin);\n}\n\n/* Radix sets the viewport's `flex: 1` and scrolling inline. This rule adds the gap and\n the minimum size for shrinking. */\n.viewport {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-1);\n min-block-size: 0;\n}\n\n/* The sheet, below 30rem (the conventions' sheet presentation) ---------------\n *\n * The panel box is the shared anatomy (`sheet.module.css`, used by the sheet partial).\n * This member styles only the list inside it: the same `--pm-space-2` inset as the\n * popper panel, on a listbox that scrolls under the sheet's height cap. The popper rules\n * (trigger min-width, available height, `sideOffset`) do not apply, because a sheet has\n * no anchor. The safe-area inset comes from the sheet. It adds to this member's edge\n * padding and is zero on devices without a notch. */\n.sheetList {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-1);\n min-block-size: 0;\n padding: var(--pm-space-2);\n padding-block-end: calc(var(--pm-space-2) + env(safe-area-inset-bottom, 0px));\n margin: 0;\n overflow-y: auto;\n list-style: none;\n outline: none;\n}\n\n/* `scale-fade`, surface class (motion.md's duration scale: a dropdown is a transient\n anchored surface, not a modal). Radix keeps the node mounted for the closed animation,\n so the exit animates instead of cutting. */\n.content[data-state='open'] {\n animation: select-content-enter var(--pm-motion-duration-surface) var(--pm-motion-easing-enter);\n}\n\n.content[data-state='closed'] {\n animation: select-content-exit var(--pm-motion-duration-surface-exit) var(--pm-motion-easing-exit);\n}\n\n@keyframes select-content-enter {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n@keyframes select-content-exit {\n to {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n/* items --------------------------------------------------------------------- */\n\n.item {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: flex;\n gap: var(--pm-space-2);\n align-items: center;\n\n /* A minimum, not a fixed height. A two-line item grows to fit its description while\n the check column stays in place (as in Combobox). */\n min-block-size: var(--pm-control-height-sm);\n padding-inline: var(--pm-space-3);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n cursor: pointer;\n user-select: none;\n border-radius: var(--pm-radius-sm);\n outline: none;\n}\n\n/* The check column is reserved on every item, so labels do not shift as the selection\n moves. */\n.check {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n inline-size: var(--pm-icon-size-sm);\n}\n\n.text {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-inline-size: 0;\n}\n\n/* Combobox's second line, copied: muted `text.xs` under the label. */\n.description {\n composes: stateFeedback from '../conventions/motion.module.css';\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n color: var(--pm-text-muted);\n}\n\n/* One class for two elements: Radix's Group div in the popover, and the sheet's\n `role=\"group\"` list with its `<li>` wrapper. The list resets do nothing on the div and\n are needed on the `<ul>`, because the browser's default list marker is not part of\n any recipe. */\n.group {\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n list-style: none;\n}\n\n/* Menu's label-entry recipe, copied, so every anchored list uses the same label style. */\n.groupLabel {\n padding: var(--pm-space-2) var(--pm-space-3);\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n color: var(--pm-text-muted);\n text-transform: uppercase;\n}\n\n/* Radix uses one attribute for both the keyboard and the pointer position, so hover\n needs no separate rule here. */\n.item[data-highlighted] {\n color: var(--pm-accent-text);\n background: var(--pm-accent-subtle);\n}\n\n.item[data-disabled] {\n color: var(--pm-text-disabled);\n cursor: not-allowed;\n background: transparent;\n}\n\n/* Both containers. The sheet uses the same rows with the same size steps. */\n.content[data-size='sm'] .item,\n.sheetList[data-size='sm'] .item {\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n}\n\n.content[data-size='lg'] .item,\n.sheetList[data-size='lg'] .item {\n font-family: var(--pm-text-md-family);\n font-size: var(--pm-text-md-size);\n font-weight: var(--pm-text-md-weight);\n line-height: var(--pm-text-md-line-height);\n letter-spacing: var(--pm-text-md-tracking);\n}\n\n/* The label keeps the primary colour when selected. The check shows the selection, and a\n recoloured label would look like a second, competing signal. */\n.item[data-state='checked'] .check {\n color: var(--pm-accent-text);\n}\n\n/* The second line follows the row's state. It stays legible on the accent background\n and turns disabled with a disabled row (Combobox's rules). */\n.item[data-highlighted] .description {\n color: inherit;\n}\n\n.item[data-disabled] .description {\n color: var(--pm-text-disabled);\n}\n\n/* Reduced-motion versions (motion.md). The motion engine handles its own bindings.\n These two run in CSS, so their reduced versions are defined here. */\n@media (prefers-reduced-motion: reduce) {\n /* The rotation stays, because it shows open or closed. Removing it would remove state,\n not just motion. Only the transition is removed. */\n .chevron {\n transition: none;\n }\n\n @keyframes select-content-enter {\n from {\n opacity: 0;\n }\n }\n\n @keyframes select-content-exit {\n to {\n opacity: 0;\n }\n }\n}\n\n/* Glass (`depth: glass`). The pane uses the surface role at the engine's mix\n (`--pm-material-surface`). The material separates the pane from the page instead of\n a lighter overlay step: the backdrop shows through as a blurred, saturated tint. The\n glass law checks the mix's contrast over worst-case backdrops, and recipes only\n apply it. */\n@container style(--pm-axis-depth: glass) {\n .content {\n background: var(--pm-material-surface);\n backdrop-filter: blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate));\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"select.module.js","names":[],"sources":["../../../../recipes/src/controls/select.module.css"],"sourcesContent":["/* Select — `design/components/select.md`.\n *\n * The trigger copies Input's recipe instead of sharing it. The completeness law checks\n * each component's own stylesheet, and that check only means something with one\n * stylesheet per component. A test prevents drift instead: `select.test.tsx` compares\n * the two controls' computed values, which is the stronger check.\n *\n * `var(--radix-*)` values are measured by the positioning engine at runtime (anchor\n * width, available height, transform origin). No one chooses them, so the token law\n * allows them (packages/rules/src/stylelint/values.js). */\n\n.trigger {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n gap: var(--pm-space-3);\n align-items: center;\n justify-content: space-between;\n max-inline-size: 100%;\n block-size: var(--pm-control-height-md);\n padding-inline: var(--pm-space-5);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n cursor: pointer;\n background: var(--pm-bg-surface);\n border: 1px solid var(--pm-border-field);\n border-radius: var(--pm-radius-control);\n\n /* The control seat shadow, from Input, used by every field in the family. */\n box-shadow: var(--pm-shadow-seat);\n}\n\n.value {\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.chevron {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--pm-text-muted);\n\n /* The `select.chevron` binding: transform, control class, `standard` easing, because\n the change is symmetric with no direction of travel. */\n transition: transform var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n/* trigger sizes — the conventions' size system ------------------------------ */\n\n.trigger[data-size='sm'] {\n gap: var(--pm-space-2);\n block-size: var(--pm-control-height-sm);\n padding-inline: var(--pm-space-4);\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n}\n\n.trigger[data-size='lg'] {\n block-size: var(--pm-control-height-lg);\n padding-inline: var(--pm-space-6);\n font-family: var(--pm-text-md-family);\n font-size: var(--pm-text-md-size);\n font-weight: var(--pm-text-md-weight);\n line-height: var(--pm-text-md-line-height);\n letter-spacing: var(--pm-text-md-tracking);\n}\n\n/* trigger states ------------------------------------------------------------ */\n\n.trigger[data-placeholder] {\n color: var(--pm-text-muted);\n}\n\n.trigger[data-invalid] {\n border-color: var(--pm-danger-border);\n}\n\n.trigger[data-disabled] {\n color: var(--pm-text-disabled);\n cursor: not-allowed;\n background: var(--pm-bg-subtle);\n border-color: var(--pm-border-subtle);\n\n /* The seat shadow signals a ready control, so disabled removes it (as in Input). */\n box-shadow: none;\n}\n\n/* While open, the trigger keeps the hover border so it does not flicker back to rest.\n Invalid is excluded from both rules rather than overridden, so the error border stays\n on hover and while the panel is open. */\n.trigger[data-state='open']:not([data-invalid]) {\n border-color: var(--pm-border-strong);\n}\n\n.trigger:hover:not([data-disabled], [data-invalid]) {\n border-color: var(--pm-border-strong);\n}\n\n.trigger[data-state='open'] .chevron {\n transform: rotate(180deg);\n}\n\n.trigger[data-disabled] .chevron {\n color: var(--pm-text-disabled);\n}\n\n/* panel --------------------------------------------------------------------- */\n\n.content {\n display: flex;\n flex-direction: column;\n\n /* `overlay` from the stacking scale. The popper copies it onto its wrapper\n (menu.module.css explains how). */\n z-index: var(--pm-z-overlay);\n min-inline-size: var(--radix-select-trigger-width);\n max-block-size: var(--radix-select-content-available-height);\n padding: var(--pm-inset-list);\n overflow: hidden;\n background: var(--pm-bg-overlay);\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-surface);\n box-shadow: var(--pm-shadow-transient);\n transform-origin: var(--radix-select-content-transform-origin);\n}\n\n/* Radix sets the viewport's `flex: 1` and scrolling inline. This rule adds the gap and\n the minimum size for shrinking. */\n.viewport {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-1);\n min-block-size: 0;\n}\n\n/* The sheet, below 30rem (the conventions' sheet presentation) ---------------\n *\n * The panel box is the shared anatomy (`sheet.module.css`, used by the sheet partial).\n * This member styles only the list inside it: the same `--pm-space-2` inset as the\n * popper panel, on a listbox that scrolls under the sheet's height cap. The popper rules\n * (trigger min-width, available height, `sideOffset`) do not apply, because a sheet has\n * no anchor. The safe-area inset comes from the sheet. It adds to this member's edge\n * padding and is zero on devices without a notch. */\n.sheetList {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-1);\n min-block-size: 0;\n padding: var(--pm-space-2);\n padding-block-end: calc(var(--pm-space-2) + env(safe-area-inset-bottom, 0px));\n margin: 0;\n overflow-y: auto;\n list-style: none;\n outline: none;\n}\n\n/* `scale-fade`, surface class (motion.md's duration scale: a dropdown is a transient\n anchored surface, not a modal). Radix keeps the node mounted for the closed animation,\n so the exit animates instead of cutting. */\n.content[data-state='open'] {\n animation: select-content-enter var(--pm-motion-duration-surface) var(--pm-motion-easing-enter);\n}\n\n.content[data-state='closed'] {\n animation: select-content-exit var(--pm-motion-duration-surface-exit) var(--pm-motion-easing-exit);\n}\n\n@keyframes select-content-enter {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n@keyframes select-content-exit {\n to {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n/* items --------------------------------------------------------------------- */\n\n.item {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: flex;\n gap: var(--pm-space-2);\n align-items: center;\n\n /* A minimum, not a fixed height. A two-line item grows to fit its description while\n the check column stays in place (as in Combobox). */\n min-block-size: var(--pm-control-height-sm);\n padding-inline: var(--pm-space-3);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n cursor: pointer;\n user-select: none;\n border-radius: var(--pm-radius-sm);\n outline: none;\n}\n\n/* The check column is reserved on every item, so labels do not shift as the selection\n moves. */\n.check {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n inline-size: var(--pm-icon-size-sm);\n}\n\n.text {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-inline-size: 0;\n}\n\n/* Combobox's second line, copied: muted `text.xs` under the label. */\n.description {\n composes: stateFeedback from '../conventions/motion.module.css';\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n color: var(--pm-text-muted);\n}\n\n/* One class for two elements: Radix's Group div in the popover, and the sheet's\n `role=\"group\"` list with its `<li>` wrapper. The list resets do nothing on the div and\n are needed on the `<ul>`, because the browser's default list marker is not part of\n any recipe. */\n.group {\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n list-style: none;\n}\n\n/* Menu's label-entry recipe, copied, so every anchored list uses the same label style. */\n.groupLabel {\n padding: var(--pm-space-2) var(--pm-space-3);\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n color: var(--pm-text-muted);\n text-transform: uppercase;\n}\n\n/* Radix uses one attribute for both the keyboard and the pointer position, so hover\n needs no separate rule here. */\n.item[data-highlighted] {\n color: var(--pm-accent-text);\n background: var(--pm-accent-subtle);\n}\n\n.item[data-disabled] {\n color: var(--pm-text-disabled);\n cursor: not-allowed;\n background: transparent;\n}\n\n/* Both containers. The sheet uses the same rows with the same size steps. */\n.content[data-size='sm'] .item,\n.sheetList[data-size='sm'] .item {\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n}\n\n.content[data-size='lg'] .item,\n.sheetList[data-size='lg'] .item {\n font-family: var(--pm-text-md-family);\n font-size: var(--pm-text-md-size);\n font-weight: var(--pm-text-md-weight);\n line-height: var(--pm-text-md-line-height);\n letter-spacing: var(--pm-text-md-tracking);\n}\n\n/* The label keeps the primary colour when selected. The check shows the selection, and a\n recoloured label would look like a second, competing signal. */\n.item[data-state='checked'] .check {\n color: var(--pm-accent-text);\n}\n\n/* The second line follows the row's state. It stays legible on the accent background\n and turns disabled with a disabled row (Combobox's rules). */\n.item[data-highlighted] .description {\n color: inherit;\n}\n\n.item[data-disabled] .description,\n.item[data-disabled] .check {\n color: var(--pm-text-disabled);\n}\n\n/* Reduced-motion versions (motion.md). The motion engine handles its own bindings.\n These two run in CSS, so their reduced versions are defined here. */\n@media (prefers-reduced-motion: reduce) {\n /* The rotation stays, because it shows open or closed. Removing it would remove state,\n not just motion. Only the transition is removed. */\n .chevron {\n transition: none;\n }\n\n @keyframes select-content-enter {\n from {\n opacity: 0;\n }\n }\n\n @keyframes select-content-exit {\n to {\n opacity: 0;\n }\n }\n}\n\n/* Glass (`depth: glass`). The pane uses the surface role at the engine's mix\n (`--pm-material-surface`). The material separates the pane from the page instead of\n a lighter overlay step: the backdrop shows through as a blurred, saturated tint. The\n glass law checks the mix's contrast over worst-case backdrops, and recipes only\n apply it. */\n@container style(--pm-axis-depth: glass) {\n .content {\n background: var(--pm-material-surface);\n backdrop-filter: blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate));\n }\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  //#region ../recipes/src/controls/slider.module.css
2
- var e = "_root_kpfpj_13", t = "_readout_kpfpj_23", n = "_control_kpfpj_39", r = "_track_kpfpj_50", i = "_range_kpfpj_61", a = "_thumb_kpfpj_72 _focusRing_1lfnc_15", o = {
2
+ var e = "_root_1xnc5_13", t = "_readout_1xnc5_23", n = "_control_1xnc5_39", r = "_track_1xnc5_50", i = "_range_1xnc5_61", a = "_thumb_1xnc5_72 _focusAround_1hr3n_95", o = {
3
3
  root: e,
4
4
  readout: t,
5
5
  control: n,
@@ -1 +1 @@
1
- {"version":3,"file":"slider.module.js","names":[],"sources":["../../../../recipes/src/controls/slider.module.css"],"sourcesContent":["/* Slider — `design/components/slider.md`.\n *\n * The track matches Progress (same height, pill shape and gradient), so a slider looks\n * like a progress bar you can drag. The thumb is what Progress lacks, and most of the\n * recipe is about it. It has the lit treatment (seat shadow plus top light), it shows the\n * focus ring, and it is the only part that grows while dragged.\n *\n * Nothing about the value is ever transitioned. The fill and the thumb's position follow\n * the user's pointer directly, and a thumb that lags behind is the worst slider bug.\n * Keyboard steps also apply instantly for the same reason. Only the grab feedback (scale,\n * border, glow) has a duration. */\n\n.root {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-2);\n inline-size: 100%;\n}\n\n/* At the row's end, so the number sits opposite the label FormField puts above it.\n `--pm-font-numeric` sets the theme's tabular figures, so digits keep their width while\n the value changes. */\n.readout {\n align-self: flex-end;\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n font-variant-numeric: var(--pm-font-numeric);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-secondary);\n}\n\n/* The Radix root, which is also the pointer target: a press anywhere on this row moves\n the value. Its height is `control-height-sm` so the target meets the minimum size (the\n conventions' size system) while the track inside stays 4px. Checkbox's box and Switch's\n track use the same technique with a pseudo-element. Here the row itself is used,\n because the whole row is interactive. */\n.control {\n position: relative;\n display: flex;\n align-items: center;\n inline-size: 100%;\n block-size: var(--pm-control-height-sm);\n cursor: pointer;\n touch-action: none;\n user-select: none;\n}\n\n.track {\n position: relative;\n flex: 1;\n block-size: var(--pm-space-2);\n background: var(--pm-bg-subtle);\n border-radius: var(--pm-radius-pill);\n}\n\n/* The gradient role, used exactly as in Progress. A theme without a gradient partner\n resolves it to the same solid colour as `accent.bg`, so nothing changes there. A\n gradient system's fill blends its two hues. */\n.range {\n position: absolute;\n block-size: 100%;\n background: var(--pm-accent-gradient);\n border-radius: var(--pm-radius-pill);\n}\n\n/* The lit treatment: a seat shadow plus an inset top light, in one list. The coherence\n law requires both tokens to be `none` together or both real, so a flat system's thumb\n is just a bordered disc.\n *\n * The `slider.thumb` binding is a `snappy` spring in the registry but a token-timed\n * transition here, as in Switch. A CSS transition keeps its velocity when reversed\n * (motion.md's first interruption law), which matters for something people grab and\n * release. It also means `stateFeedback` cannot be composed. That class sets a\n * `transition` shorthand, and with two shorthands on one rule one is silently dropped.\n * So the colour feedback is repeated here in the same list as the grab. */\n.thumb {\n composes: focusRing from '../conventions/focus.module.css';\n display: block;\n inline-size: var(--pm-space-5);\n block-size: var(--pm-space-5);\n background: var(--pm-bg-surface);\n border: 1px solid var(--pm-border-strong);\n border-radius: var(--pm-radius-pill);\n box-shadow: var(--pm-shadow-seat), var(--pm-shadow-inset-top);\n transition:\n border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard),\n box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard),\n transform var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n/* states ------------------------------------------------------------------- */\n\n/* Dragging shows the thumb as active. The glow replaces the lit list instead of adding to\n it. Under a halo the 1px seat is not visible, and a mixed list with an\n ornament-`none` glow would make the whole value invalid. An ornament-`none` theme has\n no glow and no seat, so its dragging thumb uses only scale and border.\n *\n * The selector goes through `.control` so it is more specific than the focus glow the\n * focus module composes in. The outline is the accessible focus indicator and is a\n * different property, so changing the halo under it loses nothing. */\n.control .thumb[data-state='dragging'] {\n box-shadow: var(--pm-glow-hover);\n transform: scale(1.12);\n}\n\n/* The thumb shows the error, never the fill, because a red bar would look like a danger\n level rather than an invalid value. */\n.root[data-invalid] .thumb {\n border-color: var(--pm-danger-border);\n}\n\n.root[data-disabled] .control {\n cursor: not-allowed;\n}\n\n/* Grey, not tinted. A disabled slider still shows its value, in a colour that does not\n invite interaction. */\n.root[data-disabled] .range {\n background: var(--pm-border-default);\n}\n\n.root[data-disabled] .thumb {\n border-color: var(--pm-border-subtle);\n box-shadow: none;\n}\n\n/* Hover and drag both use the accent border, except when the border already shows an\n error. As in Input, the error border stays on hover. It also stays while dragging,\n because the drag still shows through scale and glow. This is the last state rule, so\n specificity increases down the file. */\n.root:not([data-invalid], [data-disabled]) .thumb:hover,\n.root:not([data-invalid], [data-disabled]) .thumb[data-state='dragging'] {\n border-color: var(--pm-accent-bg);\n}\n\n/* motion projections ------------------------------------------------------- */\n\n/* The scale is removed, not just its duration. A duration token can make the change\n instant but cannot change the end value, and the spec says that with motion off the\n thumb stays at scale 1. Border and glow show dragging on their own. motion.module.css\n does the same for the ambient loops, for the same reason: tokens cannot express\n turning off a value, only a time. It is last in the file, so it overrides the state\n rules it undoes. */\n:global([data-motion='none']) .control .thumb[data-state='dragging'] {\n transform: none;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .thumb {\n transition: none;\n }\n\n .control .thumb[data-state='dragging'] {\n transform: none;\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"slider.module.js","names":[],"sources":["../../../../recipes/src/controls/slider.module.css"],"sourcesContent":["/* Slider — `design/components/slider.md`.\n *\n * The track matches Progress (same height, pill shape and gradient), so a slider looks\n * like a progress bar you can drag. The thumb is what Progress lacks, and most of the\n * recipe is about it. It has the lit treatment (seat shadow plus top light), it shows the\n * focus ring, and it is the only part that grows while dragged.\n *\n * Nothing about the value is ever transitioned. The fill and the thumb's position follow\n * the user's pointer directly, and a thumb that lags behind is the worst slider bug.\n * Keyboard steps also apply instantly for the same reason. Only the grab feedback (scale,\n * border, glow) has a duration. */\n\n.root {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-2);\n inline-size: 100%;\n}\n\n/* At the row's end, so the number sits opposite the label FormField puts above it.\n `--pm-font-numeric` sets the theme's tabular figures, so digits keep their width while\n the value changes. */\n.readout {\n align-self: flex-end;\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n font-variant-numeric: var(--pm-font-numeric);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-secondary);\n}\n\n/* The Radix root, which is also the pointer target: a press anywhere on this row moves\n the value. Its height is `control-height-sm` so the target meets the minimum size (the\n conventions' size system) while the track inside stays 4px. Checkbox's box and Switch's\n track use the same technique with a pseudo-element. Here the row itself is used,\n because the whole row is interactive. */\n.control {\n position: relative;\n display: flex;\n align-items: center;\n inline-size: 100%;\n block-size: var(--pm-control-height-sm);\n cursor: pointer;\n touch-action: none;\n user-select: none;\n}\n\n.track {\n position: relative;\n flex: 1;\n block-size: var(--pm-space-2);\n background: var(--pm-bg-subtle);\n border-radius: var(--pm-radius-pill);\n}\n\n/* The gradient role, used exactly as in Progress. A theme without a gradient partner\n resolves it to the same solid colour as `accent.bg`, so nothing changes there. A\n gradient system's fill blends its two hues. */\n.range {\n position: absolute;\n block-size: 100%;\n background: var(--pm-accent-gradient);\n border-radius: var(--pm-radius-pill);\n}\n\n/* The lit treatment: a seat shadow plus an inset top light, in one list. The coherence\n law requires both tokens to be `none` together or both real, so a flat system's thumb\n is just a bordered disc.\n *\n * The `slider.thumb` binding is a `snappy` spring in the registry but a token-timed\n * transition here, as in Switch. A CSS transition keeps its velocity when reversed\n * (motion.md's first interruption law), which matters for something people grab and\n * release. It also means `stateFeedback` cannot be composed. That class sets a\n * `transition` shorthand, and with two shorthands on one rule one is silently dropped.\n * So the colour feedback is repeated here in the same list as the grab. */\n.thumb {\n composes: focusAround from '../conventions/focus.module.css';\n display: block;\n inline-size: var(--pm-space-5);\n block-size: var(--pm-space-5);\n background: var(--pm-bg-surface);\n border: 1px solid var(--pm-border-strong);\n border-radius: var(--pm-radius-pill);\n box-shadow: var(--pm-shadow-seat), var(--pm-shadow-inset-top);\n transition:\n border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard),\n box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard),\n transform var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n/* states ------------------------------------------------------------------- */\n\n/* Dragging shows the thumb as active. The glow replaces the lit list instead of adding to\n it. Under a halo the 1px seat is not visible, and a mixed list with an\n ornament-`none` glow would make the whole value invalid. An ornament-`none` theme has\n no glow and no seat, so its dragging thumb uses only scale and border. The focus mark\n is an outline, a different property, so a focused thumb keeps it while dragged. */\n.thumb[data-state='dragging'] {\n box-shadow: var(--pm-glow-hover);\n transform: scale(1.12);\n}\n\n/* The thumb shows the error, never the fill, because a red bar would look like a danger\n level rather than an invalid value. */\n.root[data-invalid] .thumb {\n border-color: var(--pm-danger-border);\n}\n\n.root[data-disabled] .control {\n cursor: not-allowed;\n}\n\n/* Grey, not tinted. A disabled slider still shows its value, in a colour that does not\n invite interaction. */\n.root[data-disabled] .range {\n background: var(--pm-border-default);\n}\n\n.root[data-disabled] .thumb {\n border-color: var(--pm-border-subtle);\n box-shadow: none;\n}\n\n/* Hover and drag both use the accent border, except when the border already shows an\n error. As in Input, the error border stays on hover. It also stays while dragging,\n because the drag still shows through scale and glow. This is the last state rule, so\n specificity increases down the file. */\n.root:not([data-invalid], [data-disabled]) .thumb:hover,\n.root:not([data-invalid], [data-disabled]) .thumb[data-state='dragging'] {\n border-color: var(--pm-accent-bg);\n}\n\n/* motion projections ------------------------------------------------------- */\n\n/* The scale is removed, not just its duration. A duration token can make the change\n instant but cannot change the end value, and the spec says that with motion off the\n thumb stays at scale 1. Border and glow show dragging on their own. motion.module.css\n does the same for the ambient loops, for the same reason: tokens cannot express\n turning off a value, only a time. It is last in the file, so it overrides the state\n rules it undoes. */\n:global([data-motion='none']) .control .thumb[data-state='dragging'] {\n transform: none;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .thumb {\n transition: none;\n }\n\n .control .thumb[data-state='dragging'] {\n transform: none;\n }\n}\n"],"mappings":""}
@@ -1,27 +1,28 @@
1
1
  //#region ../recipes/src/controls/split-button.module.css
2
- var e = "_group_1x346_10", t = "_primary_1x346_20 _button_17o12_17 _focusRing_1lfnc_15 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", n = "_chevron_1x346_28 _button_17o12_17 _focusRing_1lfnc_15 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", r = "_seam_1x346_52 _stateFeedback_lkjqs_17", i = "_label_1x346_89 _label_17o12_43", a = "_glyph_1x346_93 _glyph_17o12_50", o = "_spinner_1x346_97 _spinner_17o12_13 _spin_lkjqs_83", s = "_content_1x346_103", c = "_sheetList_1x346_161", l = "_item_1x346_161 _stateFeedback_lkjqs_17", u = "_checkbox_1x346_205", d = "_check_1x346_205 _stateFeedback_lkjqs_17", f = "_rowGlyph_1x346_218 _stateFeedback_lkjqs_17", p = "_rowLabel_1x346_226", m = "_hint_1x346_233 _stateFeedback_lkjqs_17", h = "_separator_1x346_246", g = "_groupLabel_1x346_251", _ = {
2
+ var e = "_group_1fhkd_10", t = "_primary_1fhkd_20 _button_cxa90_17 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", n = "_chevron_1fhkd_28 _button_cxa90_17 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", r = "_tip_1fhkd_38 _tip_cxa90_80 _bubble_11q5z_14 _fadeIn_lkjqs_92", i = "_seam_1fhkd_59 _stateFeedback_lkjqs_17", a = "_label_1fhkd_96 _label_cxa90_43", o = "_glyph_1fhkd_100 _glyph_cxa90_50", s = "_spinner_1fhkd_104 _spinner_cxa90_13 _spin_lkjqs_83", c = "_content_1fhkd_110", l = "_sheetList_1fhkd_168", u = "_item_1fhkd_168 _stateFeedback_lkjqs_17", d = "_checkbox_1fhkd_212", f = "_check_1fhkd_212 _stateFeedback_lkjqs_17", p = "_rowGlyph_1fhkd_225 _stateFeedback_lkjqs_17", m = "_rowLabel_1fhkd_233", h = "_hint_1fhkd_240 _stateFeedback_lkjqs_17", g = "_separator_1fhkd_253", _ = "_groupLabel_1fhkd_258", v = {
3
3
  group: e,
4
4
  primary: t,
5
5
  chevron: n,
6
- seam: r,
7
- label: i,
8
- glyph: a,
9
- spinner: o,
10
- content: s,
11
- "split-button-content-enter": "_split-button-content-enter_1x346_1",
12
- "split-button-content-exit": "_split-button-content-exit_1x346_1",
13
- sheetList: c,
14
- item: l,
15
- checkbox: u,
16
- check: d,
17
- rowGlyph: f,
18
- rowLabel: p,
19
- hint: m,
20
- separator: h,
21
- groupLabel: g,
22
- "split-button-item-enter": "_split-button-item-enter_1x346_1"
6
+ tip: r,
7
+ seam: i,
8
+ label: a,
9
+ glyph: o,
10
+ spinner: s,
11
+ content: c,
12
+ "split-button-content-enter": "_split-button-content-enter_1fhkd_1",
13
+ "split-button-content-exit": "_split-button-content-exit_1fhkd_1",
14
+ sheetList: l,
15
+ item: u,
16
+ checkbox: d,
17
+ check: f,
18
+ rowGlyph: p,
19
+ rowLabel: m,
20
+ hint: h,
21
+ separator: g,
22
+ groupLabel: _,
23
+ "split-button-item-enter": "_split-button-item-enter_1fhkd_1"
23
24
  };
24
25
  //#endregion
25
- export { d as check, u as checkbox, n as chevron, s as content, _ as default, a as glyph, e as group, g as groupLabel, m as hint, l as item, i as label, t as primary, f as rowGlyph, p as rowLabel, r as seam, h as separator, c as sheetList, o as spinner };
26
+ export { f as check, d as checkbox, n as chevron, c as content, v as default, o as glyph, e as group, _ as groupLabel, h as hint, u as item, a as label, t as primary, p as rowGlyph, m as rowLabel, i as seam, g as separator, l as sheetList, s as spinner, r as tip };
26
27
 
27
28
  //# sourceMappingURL=split-button.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"split-button.module.js","names":[],"sources":["../../../../recipes/src/controls/split-button.module.css"],"sourcesContent":["/* SplitButton — `design/components/split-button.md`.\n *\n * The two halves compose Button's recipe **instead of copying it**, as Link's button\n * variant does: `composes: button` plus Button's data attributes. So every rest, hover,\n * active, disabled and loading style is Button's own, with no copy to drift. This file\n * styles the group: the seam, the outer-corner radii, raising the focused half, and a\n * copy of Menu's panel. The panel is copied because the completeness law expects one\n * stylesheet per member. ContextMenu makes the same choice. */\n\n.group {\n display: inline-flex;\n align-items: stretch;\n}\n\n/* Radius on the outer corners only, so the control has one outline. Rounded inner edges\n would look like two buttons. Logical corners, so RTL flips them. The inner border\n widths are zero so the outline variant's two halves share one continuous border, and\n the seam below is its middle line. This applies Select's reasoning about merged\n borders within one control. */\n.primary {\n composes: button from './button.module.css';\n position: relative;\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n border-inline-end-width: 0;\n}\n\n.chevron {\n composes: button from './button.module.css';\n position: relative;\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n border-inline-start-width: 0;\n}\n\n/* Two tab stops, each with the focus ring. The focused half is raised above the other so\n the ring is not clipped at the seam. `raise` is the stacking scale's step for layers\n within one member. */\n.primary:focus-visible {\n z-index: var(--pm-z-raise);\n}\n\n.chevron:focus-visible {\n z-index: var(--pm-z-raise);\n}\n\n/* The seam: 1px, full height, visual only. It uses colours the halves already use, so\n no new tokens. For the filled variants it is the variant's `active` fill step, the\n deepest step, which looks like a seam in the fill rather than a line on it. For\n `outline` it is the variant's border colour, so the group's border continues through\n the middle. */\n.seam {\n composes: stateFeedback from '../conventions/motion.module.css';\n flex: none;\n inline-size: 1px;\n pointer-events: none;\n}\n\n.group[data-variant='solid'] .seam {\n background: var(--pm-accent-bg-active);\n}\n\n.group[data-variant='soft'] .seam {\n background: var(--pm-accent-subtle-active);\n}\n\n.group[data-variant='outline'][data-tone='accent'] .seam {\n background: var(--pm-accent-bg);\n}\n\n.group[data-variant='outline'][data-tone='neutral'] .seam {\n background: var(--pm-border-default);\n}\n\n/* Disabled follows the conventions' disabled rule and needs no style of its own. The\n filled seams follow their fill to `--pm-bg-subtle`, so the seam disappears, which is\n correct because disabled must not look pressable. The outline seam follows its border\n to `--pm-border-subtle`. */\n.group[data-disabled][data-variant='solid'] .seam,\n.group[data-disabled][data-variant='soft'] .seam {\n background: var(--pm-bg-subtle);\n}\n\n.group[data-disabled][data-variant='outline'] .seam {\n background: var(--pm-border-subtle);\n}\n\n/* The primary half's slots, composed from Button. */\n.label {\n composes: label from './button.module.css';\n}\n\n.glyph {\n composes: glyph from './button.module.css';\n}\n\n.spinner {\n composes: spinner from './button.module.css';\n}\n\n/* panel — Menu's whole recipe, copied --------------------------------------- */\n\n.content {\n display: flex;\n flex-direction: column;\n\n /* `overlay` from the stacking scale. The popper copies it onto its wrapper\n (menu.module.css explains how). It is copied with the rest of Menu's recipe, so the\n layer matches Menu's. */\n z-index: var(--pm-z-overlay);\n min-inline-size: calc(var(--pm-space-10) * 2);\n max-block-size: var(--radix-dropdown-menu-content-available-height);\n padding: var(--pm-space-2);\n overflow: hidden;\n background: var(--pm-bg-overlay);\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-surface);\n box-shadow: var(--pm-shadow-transient);\n transform-origin: var(--radix-dropdown-menu-content-transform-origin);\n}\n\n.content[data-state='open'] {\n animation: split-button-content-enter var(--pm-motion-duration-surface)\n var(--pm-motion-easing-enter);\n}\n\n.content[data-state='closed'] {\n animation: split-button-content-exit var(--pm-motion-duration-surface-exit)\n var(--pm-motion-easing-exit);\n}\n\n@keyframes split-button-content-enter {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n@keyframes split-button-content-exit {\n to {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n/* Reduced-motion version (motion.md): `scale-fade` becomes `fade`, and the item cascade\n becomes items appearing without animation. */\n@media (prefers-reduced-motion: reduce) {\n @keyframes split-button-content-enter {\n from {\n opacity: 0;\n }\n }\n\n @keyframes split-button-content-exit {\n to {\n opacity: 0;\n }\n }\n\n .sheetList .item,\n .content[data-state='open'] .item {\n animation: none;\n }\n}\n\n/* The sheet below 30rem (the conventions' sheet presentation), the same as Menu's sheet.\n * The panel box is the shared anatomy (`sheet.module.css`, used by the sheet partial),\n * and the anchoring rules do not apply. The list inside it follows Menu's recipe: a\n * `--pm-space-2` inset, with the sheet's safe-area inset added to this member's edge\n * padding. */\n.sheetList {\n display: flex;\n flex-direction: column;\n min-block-size: 0;\n padding: var(--pm-space-2);\n padding-block-end: calc(var(--pm-space-2) + env(safe-area-inset-bottom, 0px));\n margin: 0;\n overflow-y: auto;\n list-style: none;\n outline: none;\n}\n\n/* items — copied from Menu (ContextMenu's sheet copies them too, for the same\n reasons) ------------------------------------------------------------------ */\n\n.item {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: flex;\n gap: var(--pm-space-3);\n align-items: center;\n block-size: var(--pm-control-height-sm);\n padding-inline: var(--pm-space-3);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n cursor: pointer;\n border-radius: var(--pm-radius-sm);\n outline: none;\n}\n\n.checkbox {\n gap: var(--pm-space-2);\n}\n\n.check {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n inline-size: var(--pm-icon-size-sm);\n}\n\n.rowGlyph {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--pm-text-muted);\n}\n\n.rowLabel {\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hint {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n margin-inline-start: auto;\n color: var(--pm-text-muted);\n}\n\n.item[data-highlighted] .hint {\n color: inherit;\n}\n\n.separator {\n margin-block: var(--pm-space-2);\n border-block-start: 1px solid var(--pm-border-subtle);\n}\n\n.groupLabel {\n padding: var(--pm-space-2) var(--pm-space-3);\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n color: var(--pm-text-muted);\n text-transform: uppercase;\n}\n\n/* The `menu.items` cascade, copied: enter only, each item's delay capped at the maximum,\n and the steps stopping at twelve. */\n.sheetList .item,\n.content[data-state='open'] .item {\n animation: split-button-item-enter var(--pm-motion-duration-control) var(--pm-motion-easing-enter)\n backwards;\n}\n\n.sheetList[role='menu'] .item:nth-child(2),\n.content[data-state='open'] .item:nth-child(2) {\n animation-delay: min(calc(1 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(3),\n.content[data-state='open'] .item:nth-child(3) {\n animation-delay: min(calc(2 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(4),\n.content[data-state='open'] .item:nth-child(4) {\n animation-delay: min(calc(3 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(5),\n.content[data-state='open'] .item:nth-child(5) {\n animation-delay: min(calc(4 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(6),\n.content[data-state='open'] .item:nth-child(6) {\n animation-delay: min(calc(5 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(7),\n.content[data-state='open'] .item:nth-child(7) {\n animation-delay: min(calc(6 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(8),\n.content[data-state='open'] .item:nth-child(8) {\n animation-delay: min(calc(7 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(9),\n.content[data-state='open'] .item:nth-child(9) {\n animation-delay: min(calc(8 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(10),\n.content[data-state='open'] .item:nth-child(10) {\n animation-delay: min(calc(9 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(11),\n.content[data-state='open'] .item:nth-child(11) {\n animation-delay: min(calc(10 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(n + 12),\n.content[data-state='open'] .item:nth-child(n + 12) {\n animation-delay: var(--pm-motion-stagger-max);\n}\n\n@keyframes split-button-item-enter {\n from {\n opacity: 0;\n transform: translateY(-2px);\n }\n}\n\n/* item states, copied from Menu. Danger items use red text, and a red tint when\n highlighted, never a red fill. One highlight serves both pointer and keyboard. */\n.item[data-tone='danger'] {\n color: var(--pm-danger-text);\n}\n\n.item[data-highlighted] {\n color: var(--pm-accent-text);\n background: var(--pm-accent-subtle);\n}\n\n.item[data-tone='danger'][data-highlighted] {\n color: var(--pm-danger-text);\n background: var(--pm-danger-subtle);\n}\n\n.item[data-highlighted] .rowGlyph {\n color: inherit;\n}\n\n.item[data-disabled] {\n color: var(--pm-text-disabled);\n cursor: not-allowed;\n background: transparent;\n}\n\n.item[data-disabled] .rowGlyph {\n color: var(--pm-text-disabled);\n}\n\n.checkbox[data-state='checked'] .check {\n color: var(--pm-accent-text);\n}\n\n/* Glass (`depth: glass`). The pane uses the surface role at the engine's mix\n (`--pm-material-surface`). The material separates the pane from the page instead of\n a lighter overlay step: the backdrop shows through as a blurred, saturated tint. The\n glass law checks the mix's contrast over worst-case backdrops, and recipes only\n apply it. */\n@container style(--pm-axis-depth: glass) {\n .content {\n background: var(--pm-material-surface);\n backdrop-filter: blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate));\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"split-button.module.js","names":[],"sources":["../../../../recipes/src/controls/split-button.module.css"],"sourcesContent":["/* SplitButton — `design/components/split-button.md`.\n *\n * The two halves compose Button's recipe **instead of copying it**, as Link's button\n * variant does: `composes: button` plus Button's data attributes. So every rest, hover,\n * active, disabled and loading style is Button's own, with no copy to drift. This file\n * styles the group: the seam, the outer-corner radii, raising the focused half, and a\n * copy of Menu's panel. The panel is copied because the completeness law expects one\n * stylesheet per member. ContextMenu makes the same choice. */\n\n.group {\n display: inline-flex;\n align-items: stretch;\n}\n\n/* Radius on the outer corners only, so the control has one outline. Rounded inner edges\n would look like two buttons. Logical corners, so RTL flips them. The inner border\n widths are zero so the outline variant's two halves share one continuous border, and\n the seam below is its middle line. This applies Select's reasoning about merged\n borders within one control. */\n.primary {\n composes: button from './button.module.css';\n position: relative;\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n border-inline-end-width: 0;\n}\n\n.chevron {\n composes: button from './button.module.css';\n position: relative;\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n border-inline-start-width: 0;\n}\n\n/* The name tip (`nameTip` in `@polymorph/engine`): the label shown on hover and keyboard focus,\n because the chevron draws none. It is Button's tip, composed. */\n.tip {\n composes: tip from './button.module.css';\n}\n\n/* Two tab stops, each with the focus mark. The mark lies inside each half's edge, so the\n halves do not cover it. The focused half is still raised above the other, because a\n system that moves the mark outside draws it over the seam and the neighbouring half.\n `raise` is the stacking scale's step for layers within one member. */\n.primary:focus-visible {\n z-index: var(--pm-z-raise);\n}\n\n.chevron:focus-visible {\n z-index: var(--pm-z-raise);\n}\n\n/* The seam: 1px, full height, visual only. It uses colours the halves already use, so\n no new tokens. For the filled variants it is the variant's `active` fill step, the\n deepest step, which looks like a seam in the fill rather than a line on it. For\n `outline` it is the variant's border colour, so the group's border continues through\n the middle. */\n.seam {\n composes: stateFeedback from '../conventions/motion.module.css';\n flex: none;\n inline-size: 1px;\n pointer-events: none;\n}\n\n.group[data-variant='solid'] .seam {\n background: var(--pm-accent-bg-active);\n}\n\n.group[data-variant='soft'] .seam {\n background: var(--pm-accent-subtle-active);\n}\n\n.group[data-variant='outline'][data-tone='accent'] .seam {\n background: var(--pm-accent-bg);\n}\n\n.group[data-variant='outline'][data-tone='neutral'] .seam {\n background: var(--pm-border-default);\n}\n\n/* Disabled follows the conventions' disabled rule and needs no style of its own. The\n filled seams follow their fill to `--pm-bg-subtle`, so the seam disappears, which is\n correct because disabled must not look pressable. The outline seam follows its border\n to `--pm-border-subtle`. */\n.group[data-disabled][data-variant='solid'] .seam,\n.group[data-disabled][data-variant='soft'] .seam {\n background: var(--pm-bg-subtle);\n}\n\n.group[data-disabled][data-variant='outline'] .seam {\n background: var(--pm-border-subtle);\n}\n\n/* The primary half's slots, composed from Button. */\n.label {\n composes: label from './button.module.css';\n}\n\n.glyph {\n composes: glyph from './button.module.css';\n}\n\n.spinner {\n composes: spinner from './button.module.css';\n}\n\n/* panel — Menu's whole recipe, copied --------------------------------------- */\n\n.content {\n display: flex;\n flex-direction: column;\n\n /* `overlay` from the stacking scale. The popper copies it onto its wrapper\n (menu.module.css explains how). It is copied with the rest of Menu's recipe, so the\n layer matches Menu's. */\n z-index: var(--pm-z-overlay);\n min-inline-size: calc(var(--pm-space-10) * 2);\n max-block-size: var(--radix-dropdown-menu-content-available-height);\n padding: var(--pm-space-2);\n overflow: hidden;\n background: var(--pm-bg-overlay);\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-surface);\n box-shadow: var(--pm-shadow-transient);\n transform-origin: var(--radix-dropdown-menu-content-transform-origin);\n}\n\n.content[data-state='open'] {\n animation: split-button-content-enter var(--pm-motion-duration-surface)\n var(--pm-motion-easing-enter);\n}\n\n.content[data-state='closed'] {\n animation: split-button-content-exit var(--pm-motion-duration-surface-exit)\n var(--pm-motion-easing-exit);\n}\n\n@keyframes split-button-content-enter {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n@keyframes split-button-content-exit {\n to {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n/* Reduced-motion version (motion.md): `scale-fade` becomes `fade`, and the item cascade\n becomes items appearing without animation. */\n@media (prefers-reduced-motion: reduce) {\n @keyframes split-button-content-enter {\n from {\n opacity: 0;\n }\n }\n\n @keyframes split-button-content-exit {\n to {\n opacity: 0;\n }\n }\n\n .sheetList .item,\n .content[data-state='open'] .item {\n animation: none;\n }\n}\n\n/* The sheet below 30rem (the conventions' sheet presentation), the same as Menu's sheet.\n * The panel box is the shared anatomy (`sheet.module.css`, used by the sheet partial),\n * and the anchoring rules do not apply. The list inside it follows Menu's recipe: a\n * `--pm-space-2` inset, with the sheet's safe-area inset added to this member's edge\n * padding. */\n.sheetList {\n display: flex;\n flex-direction: column;\n min-block-size: 0;\n padding: var(--pm-space-2);\n padding-block-end: calc(var(--pm-space-2) + env(safe-area-inset-bottom, 0px));\n margin: 0;\n overflow-y: auto;\n list-style: none;\n outline: none;\n}\n\n/* items — copied from Menu (ContextMenu's sheet copies them too, for the same\n reasons) ------------------------------------------------------------------ */\n\n.item {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: flex;\n gap: var(--pm-space-3);\n align-items: center;\n block-size: var(--pm-control-height-sm);\n padding-inline: var(--pm-space-3);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n cursor: pointer;\n border-radius: var(--pm-radius-sm);\n outline: none;\n}\n\n.checkbox {\n gap: var(--pm-space-2);\n}\n\n.check {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n inline-size: var(--pm-icon-size-sm);\n}\n\n.rowGlyph {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--pm-text-muted);\n}\n\n.rowLabel {\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hint {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n margin-inline-start: auto;\n color: var(--pm-text-muted);\n}\n\n.item[data-highlighted] .hint {\n color: inherit;\n}\n\n.separator {\n margin-block: var(--pm-space-2);\n border-block-start: 1px solid var(--pm-border-subtle);\n}\n\n.groupLabel {\n padding: var(--pm-space-2) var(--pm-space-3);\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n color: var(--pm-text-muted);\n text-transform: uppercase;\n}\n\n/* The `menu.items` cascade, copied: enter only, each item's delay capped at the maximum,\n and the steps stopping at twelve. */\n.sheetList .item,\n.content[data-state='open'] .item {\n animation: split-button-item-enter var(--pm-motion-duration-control) var(--pm-motion-easing-enter)\n backwards;\n}\n\n.sheetList[role='menu'] .item:nth-child(2),\n.content[data-state='open'] .item:nth-child(2) {\n animation-delay: min(calc(1 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(3),\n.content[data-state='open'] .item:nth-child(3) {\n animation-delay: min(calc(2 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(4),\n.content[data-state='open'] .item:nth-child(4) {\n animation-delay: min(calc(3 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(5),\n.content[data-state='open'] .item:nth-child(5) {\n animation-delay: min(calc(4 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(6),\n.content[data-state='open'] .item:nth-child(6) {\n animation-delay: min(calc(5 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(7),\n.content[data-state='open'] .item:nth-child(7) {\n animation-delay: min(calc(6 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(8),\n.content[data-state='open'] .item:nth-child(8) {\n animation-delay: min(calc(7 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(9),\n.content[data-state='open'] .item:nth-child(9) {\n animation-delay: min(calc(8 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(10),\n.content[data-state='open'] .item:nth-child(10) {\n animation-delay: min(calc(9 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(11),\n.content[data-state='open'] .item:nth-child(11) {\n animation-delay: min(calc(10 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(n + 12),\n.content[data-state='open'] .item:nth-child(n + 12) {\n animation-delay: var(--pm-motion-stagger-max);\n}\n\n@keyframes split-button-item-enter {\n from {\n opacity: 0;\n transform: translateY(-2px);\n }\n}\n\n/* item states, copied from Menu. Danger items use red text, and a red tint when\n highlighted, never a red fill. One highlight serves both pointer and keyboard. */\n.item[data-tone='danger'] {\n color: var(--pm-danger-text);\n}\n\n.item[data-highlighted] {\n color: var(--pm-accent-text);\n background: var(--pm-accent-subtle);\n}\n\n.item[data-tone='danger'][data-highlighted] {\n color: var(--pm-danger-text);\n background: var(--pm-danger-subtle);\n}\n\n/* A danger row's glyph takes the row's danger text, as a highlighted row's takes the accent. */\n.item[data-highlighted] .rowGlyph,\n.item[data-tone='danger'] .rowGlyph {\n color: inherit;\n}\n\n.item[data-disabled] {\n color: var(--pm-text-disabled);\n cursor: not-allowed;\n background: transparent;\n}\n\n/* The glyph and a submenu's chevron fade with the label. */\n.item[data-disabled] .rowGlyph,\n.item[data-disabled] .hint {\n color: var(--pm-text-disabled);\n}\n\n.checkbox[data-state='checked'] .check {\n color: var(--pm-accent-text);\n}\n\n/* A checked entry that is disabled fades its check with its label. */\n.item[data-disabled] .check {\n color: var(--pm-text-disabled);\n}\n\n/* Glass (`depth: glass`). The pane uses the surface role at the engine's mix\n (`--pm-material-surface`). The material separates the pane from the page instead of\n a lighter overlay step: the backdrop shows through as a blurred, saturated tint. The\n glass law checks the mix's contrast over worst-case backdrops, and recipes only\n apply it. */\n@container style(--pm-axis-depth: glass) {\n .content {\n background: var(--pm-material-surface);\n backdrop-filter: blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate));\n }\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  //#region ../recipes/src/controls/switch.module.css
2
- var e = "_row_8rk6w_13", t = "_track_8rk6w_24 _focusRing_1lfnc_15 _stateFeedback_lkjqs_17", n = "_thumb_8rk6w_51", r = "_label_8rk6w_68 _stateFeedback_lkjqs_17", i = {
2
+ var e = "_row_16y57_13", t = "_track_16y57_24 _focusAround_1hr3n_95 _stateFeedback_lkjqs_17", n = "_thumb_16y57_51", r = "_label_16y57_68 _stateFeedback_lkjqs_17", i = {
3
3
  row: e,
4
4
  track: t,
5
5
  thumb: n,
@@ -1 +1 @@
1
- {"version":3,"file":"switch.module.js","names":[],"sources":["../../../../recipes/src/controls/switch.module.css"],"sourcesContent":["/* Switch — `design/components/switch.md`.\n *\n * The pill shape is deliberate at every geometry, including sharp. A rectangular switch\n * looks like a button, and `radius.pill` is an allowed constant, not derived from the\n * geometry axis. In Terminal, whose `sharp` geometry sets every derived radius to 0, the\n * switch stays rounded, like every other part that reads `radius.pill`. That is intended\n * and is not a theme bug.\n *\n * The travel calculation subtracts the two 1px borders because the global reset makes\n * everything `border-box`. The track's 1px border reduces the space the thumb moves in,\n * so the travel is reduced to keep the end positions symmetric. */\n\n.row {\n display: inline-flex;\n gap: var(--pm-space-3);\n align-items: flex-start;\n min-block-size: var(--pm-control-height-sm);\n padding-block: calc(\n (var(--pm-control-height-sm) - var(--pm-text-sm-line-height) * var(--pm-text-sm-size)) / 2\n );\n cursor: pointer;\n}\n\n.track {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n position: relative;\n display: inline-flex;\n flex: none;\n align-items: center;\n inline-size: calc(var(--pm-icon-size-md) * 2 + var(--pm-space-2));\n block-size: calc(var(--pm-icon-size-md) + var(--pm-space-2));\n padding: calc(var(--pm-space-2) / 2);\n cursor: pointer;\n background: var(--pm-bg-subtle);\n\n /* `border.field`, for Checkbox's reason: the track is an interactive edge. The thumb\n below is not interactive on its own, so it uses `default`. */\n border: 1px solid var(--pm-border-field);\n border-radius: var(--pm-radius-pill);\n}\n\n/* The minimum target size without changing the layout. See checkbox.module.css. */\n.track::before {\n position: absolute;\n inset-block: calc((var(--pm-icon-size-md) + var(--pm-space-2) - var(--pm-control-height-sm)) / 2);\n inset-inline: 0;\n content: '';\n}\n\n/* The `switch.thumb` binding is spring `snappy` in the registry but a token-timed CSS\n transition here. A CSS transition keeps its velocity when reversed (motion.md's first\n interruption law), which matters for a control people toggle rapidly. It has no\n overshoot. The motion engine can take over this binding if a thumb ever needs one.\n\n Position is the primary signal and colour the secondary, so the state stays readable\n at temperament `none`, where the duration token is 0s and the thumb jumps. */\n.thumb {\n inline-size: var(--pm-icon-size-md);\n block-size: var(--pm-icon-size-md);\n background: var(--pm-bg-surface);\n border: 1px solid var(--pm-border-default);\n border-radius: var(--pm-radius-pill);\n box-shadow: var(--pm-shadow-raised);\n transition: transform var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n.label {\n composes: stateFeedback from '../conventions/motion.module.css';\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n}\n\n/* Centred on the label's first line, so with a wrapping label the control stays at the\n top instead of moving to the middle of the paragraph. */\n.row .track {\n margin-block-start: calc(\n (\n var(--pm-text-sm-line-height) * var(--pm-text-sm-size) - var(--pm-icon-size-md) -\n var(--pm-space-2)\n ) /\n 2\n );\n}\n\n/* states ------------------------------------------------------------------- */\n\n.track[data-state='on'] {\n background: var(--pm-accent-bg);\n border-color: var(--pm-accent-bg);\n}\n\n.track[data-disabled] {\n cursor: not-allowed;\n background: var(--pm-bg-subtle);\n border-color: var(--pm-border-subtle);\n}\n\n.track[data-disabled][data-state='on'] {\n background: var(--pm-border-subtle);\n border-color: var(--pm-border-subtle);\n}\n\n.track:hover:not([data-disabled], [data-state='on']) {\n background: var(--pm-bg-surface);\n border-color: var(--pm-border-strong);\n}\n\n.track[data-state='on']:hover:not([data-disabled]) {\n background: var(--pm-accent-bg-hover);\n border-color: var(--pm-accent-bg-hover);\n}\n\n.thumb[data-state='on'] {\n transform: translateX(calc(var(--pm-icon-size-md) - 2px));\n}\n\n.track[data-state='on'] .thumb {\n background: var(--pm-accent-contrast);\n border-color: transparent;\n}\n\n.track[data-disabled] .thumb {\n background: var(--pm-bg-subtle);\n border-color: var(--pm-border-subtle);\n box-shadow: none;\n}\n\n.track[data-disabled][data-state='on'] .thumb {\n background: var(--pm-bg-surface);\n border-color: var(--pm-border-subtle);\n}\n\n.row[data-disabled] {\n cursor: not-allowed;\n}\n\n.row[data-disabled] .label {\n color: var(--pm-text-disabled);\n}\n\n/* Reduced-motion version (motion.md): the thumb jumps. Position shows the state, so\n removing the transition loses nothing. */\n@media (prefers-reduced-motion: reduce) {\n .thumb {\n transition: none;\n }\n}\n\n/* The required marker, rendered here because a row-labelled field has no field-level\n label row to show it. Generated content with empty alternative text, so assistive\n tech ignores it (it already announces `aria-required`) and sighted users see it. */\n.row[data-required] .label::after {\n color: var(--pm-danger-text);\n content: ' *' / '';\n}\n"],"mappings":""}
1
+ {"version":3,"file":"switch.module.js","names":[],"sources":["../../../../recipes/src/controls/switch.module.css"],"sourcesContent":["/* Switch — `design/components/switch.md`.\n *\n * The pill shape is deliberate at every geometry, including sharp. A rectangular switch\n * looks like a button, and `radius.pill` is an allowed constant, not derived from the\n * geometry axis. In Terminal, whose `sharp` geometry sets every derived radius to 0, the\n * switch stays rounded, like every other part that reads `radius.pill`. That is intended\n * and is not a theme bug.\n *\n * The travel calculation subtracts the two 1px borders because the global reset makes\n * everything `border-box`. The track's 1px border reduces the space the thumb moves in,\n * so the travel is reduced to keep the end positions symmetric. */\n\n.row {\n display: inline-flex;\n gap: var(--pm-space-3);\n align-items: flex-start;\n min-block-size: var(--pm-control-height-sm);\n padding-block: calc(\n (var(--pm-control-height-sm) - var(--pm-text-sm-line-height) * var(--pm-text-sm-size)) / 2\n );\n cursor: pointer;\n}\n\n.track {\n composes: focusAround from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n position: relative;\n display: inline-flex;\n flex: none;\n align-items: center;\n inline-size: calc(var(--pm-icon-size-md) * 2 + var(--pm-space-2));\n block-size: calc(var(--pm-icon-size-md) + var(--pm-space-2));\n padding: calc(var(--pm-space-2) / 2);\n cursor: pointer;\n background: var(--pm-bg-subtle);\n\n /* `border.field`, for Checkbox's reason: the track is an interactive edge. The thumb\n below is not interactive on its own, so it uses `default`. */\n border: 1px solid var(--pm-border-field);\n border-radius: var(--pm-radius-pill);\n}\n\n/* The minimum target size without changing the layout. See checkbox.module.css. */\n.track::before {\n position: absolute;\n inset-block: calc((var(--pm-icon-size-md) + var(--pm-space-2) - var(--pm-control-height-sm)) / 2);\n inset-inline: 0;\n content: '';\n}\n\n/* The `switch.thumb` binding is spring `snappy` in the registry but a token-timed CSS\n transition here. A CSS transition keeps its velocity when reversed (motion.md's first\n interruption law), which matters for a control people toggle rapidly. It has no\n overshoot. The motion engine can take over this binding if a thumb ever needs one.\n\n Position is the primary signal and colour the secondary, so the state stays readable\n at temperament `none`, where the duration token is 0s and the thumb jumps. */\n.thumb {\n inline-size: var(--pm-icon-size-md);\n block-size: var(--pm-icon-size-md);\n background: var(--pm-bg-surface);\n border: 1px solid var(--pm-border-default);\n border-radius: var(--pm-radius-pill);\n box-shadow: var(--pm-shadow-raised);\n transition: transform var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n.label {\n composes: stateFeedback from '../conventions/motion.module.css';\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n}\n\n/* Centred on the label's first line, so with a wrapping label the control stays at the\n top instead of moving to the middle of the paragraph. */\n.row .track {\n margin-block-start: calc(\n (\n var(--pm-text-sm-line-height) * var(--pm-text-sm-size) - var(--pm-icon-size-md) -\n var(--pm-space-2)\n ) /\n 2\n );\n}\n\n/* states ------------------------------------------------------------------- */\n\n.track[data-state='on'] {\n background: var(--pm-accent-bg);\n border-color: var(--pm-accent-bg);\n}\n\n.track[data-disabled] {\n cursor: not-allowed;\n background: var(--pm-bg-subtle);\n border-color: var(--pm-border-subtle);\n}\n\n.track[data-disabled][data-state='on'] {\n background: var(--pm-border-subtle);\n border-color: var(--pm-border-subtle);\n}\n\n.track:hover:not([data-disabled], [data-state='on']) {\n background: var(--pm-bg-surface);\n border-color: var(--pm-border-strong);\n}\n\n.track[data-state='on']:hover:not([data-disabled]) {\n background: var(--pm-accent-bg-hover);\n border-color: var(--pm-accent-bg-hover);\n}\n\n.thumb[data-state='on'] {\n transform: translateX(calc(var(--pm-icon-size-md) - 2px));\n}\n\n.track[data-state='on'] .thumb {\n background: var(--pm-accent-contrast);\n border-color: transparent;\n}\n\n.track[data-disabled] .thumb {\n background: var(--pm-bg-subtle);\n border-color: var(--pm-border-subtle);\n box-shadow: none;\n}\n\n.track[data-disabled][data-state='on'] .thumb {\n background: var(--pm-bg-surface);\n border-color: var(--pm-border-subtle);\n}\n\n.row[data-disabled] {\n cursor: not-allowed;\n}\n\n.row[data-disabled] .label {\n color: var(--pm-text-disabled);\n}\n\n/* Reduced-motion version (motion.md): the thumb jumps. Position shows the state, so\n removing the transition loses nothing. */\n@media (prefers-reduced-motion: reduce) {\n .thumb {\n transition: none;\n }\n}\n\n/* The required marker, rendered here because a row-labelled field has no field-level\n label row to show it. Generated content with empty alternative text, so assistive\n tech ignores it (it already announces `aria-required`) and sighted users see it. */\n.row[data-required] .label::after {\n color: var(--pm-danger-text);\n content: ' *' / '';\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  //#region ../recipes/src/controls/tag-input.module.css
2
- var e = "_container_1pxac_11 _focusRing_1lfnc_15 _stateFeedback_lkjqs_17", t = "_chips_1pxac_38", n = "_chip_1pxac_38", r = "_label_1pxac_55 _stateFeedback_lkjqs_17", i = "_remove_1pxac_73 _focusRing_1lfnc_15 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", a = "_input_1pxac_113", o = "_reader_1pxac_133 _visuallyHidden_qxi8b_14", s = {
2
+ var e = "_container_1pxac_11 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17", t = "_chips_1pxac_38", n = "_chip_1pxac_38", r = "_label_1pxac_55 _stateFeedback_lkjqs_17", i = "_remove_1pxac_73 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", a = "_input_1pxac_113", o = "_reader_1pxac_133 _visuallyHidden_qxi8b_14", s = {
3
3
  container: e,
4
4
  chips: t,
5
5
  chip: n,
@@ -1,5 +1,5 @@
1
1
  //#region ../recipes/src/controls/textarea.module.css
2
- var e = "_textarea_xjdg0_7 _focusRing_1lfnc_15 _stateFeedback_lkjqs_17", t = { textarea: e };
2
+ var e = "_textarea_xjdg0_7 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17", t = { textarea: e };
3
3
  //#endregion
4
4
  export { t as default, e as textarea };
5
5
 
@@ -1,5 +1,5 @@
1
1
  //#region ../recipes/src/controls/time-input.module.css
2
- var e = "_field_162jx_18 _focusRing_1lfnc_15 _stateFeedback_lkjqs_17", t = "_segments_162jx_44", n = "_segment_162jx_44", r = "_separator_162jx_78", i = {
2
+ var e = "_field_162jx_18 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17", t = "_segments_162jx_44", n = "_segment_162jx_44", r = "_separator_162jx_78", i = {
3
3
  field: e,
4
4
  segments: t,
5
5
  segment: n,
@@ -1,5 +1,5 @@
1
1
  //#region ../recipes/src/controls/tree-select.module.css
2
- var e = "_trigger_1521s_15 _focusRing_1lfnc_15 _stateFeedback_lkjqs_17", t = "_value_1521s_41", n = "_chevron_1521s_48", r = "_content_1521s_127", i = "_sheetBody_1521s_180", a = "_harness_1521s_190", o = {
2
+ var e = "_trigger_1521s_15 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17", t = "_value_1521s_41", n = "_chevron_1521s_48", r = "_content_1521s_127", i = "_sheetBody_1521s_180", a = "_harness_1521s_190", o = {
3
3
  trigger: e,
4
4
  value: t,
5
5
  chevron: n,
@@ -1,5 +1,5 @@
1
1
  //#region ../recipes/src/layout/split-pane.module.css
2
- var e = "_root_1xti3_16", t = "_pane_1xti3_33", n = "_divider_1xti3_42 _focusRing_1lfnc_15", r = "_harness_1xti3_135", i = {
2
+ var e = "_root_1dz4g_16", t = "_pane_1dz4g_41", n = "_divider_1dz4g_62 _focusRing_1hr3n_49", r = "_harness_1dz4g_170", i = {
3
3
  root: e,
4
4
  pane: t,
5
5
  divider: n,
@@ -1 +1 @@
1
- {"version":3,"file":"split-pane.module.js","names":[],"sources":["../../../../recipes/src/layout/split-pane.module.css"],"sourcesContent":["/* SplitPane — `design/components/split-pane.md`.\n *\n * The recipe is a grid and a line. The tracks carry the layout. The component\n * writes the ratio as an `fr` pair and the content floors as px into the\n * `--pm-split-*` pattern tokens (data, not style, as in chart-tip), and\n * `minmax()` holds the floors whatever the ratio prop says. Everything a theme\n * can vary (the line's colours, the ring, the feedback timing) is a `--pm-*`\n * token in this file, where the token law can check it.\n *\n * The split is never transitioned. The ratio follows the reader's pointer\n * directly, and a transitioned track would lag behind it, as a transitioned\n * Slider thumb does. Keyboard steps apply instantly for the same reason. Only\n * the divider's colours use the `stateFeedback` timing, restated on the\n * pseudo-element because `composes` cannot reach one. */\n\n.root {\n --pm-split-start: 1fr;\n --pm-split-end: 1fr;\n --pm-split-start-min: 0px;\n --pm-split-end-min: 0px;\n\n display: grid;\n grid-template-columns:\n minmax(var(--pm-split-start-min), var(--pm-split-start))\n auto\n minmax(var(--pm-split-end-min), var(--pm-split-end));\n inline-size: 100%;\n block-size: 100%;\n}\n\n/* A pane that cannot shrink would block the divider, so both axes get a zero\n minimum size. Scrolling inside a pane is that pane's concern. */\n.pane {\n min-inline-size: 0;\n min-block-size: 0;\n overflow: hidden;\n}\n\n/* The divider: an empty 8px column with a 1px line down its centre. The\n thickness is the seam, the visual gap between the panes, and the line marks\n the handle. The actual pointer target is the ::after below. */\n.divider {\n composes: focusRing from '../conventions/focus.module.css';\n position: relative;\n inline-size: var(--pm-space-2);\n cursor: col-resize;\n touch-action: none;\n user-select: none;\n background: transparent;\n}\n\n/* The line is a pseudo-element rather than the box itself, so the seam can be\n wider than a hairline without painting an 8px bar. It is centred with\n `(100% - line) / 2` because the centre must hold at both line widths. */\n.divider::before {\n position: absolute;\n inset-block: 0;\n inset-inline-start: calc((100% - 1px) / 2);\n inline-size: 1px;\n content: '';\n background: var(--pm-border-default);\n transition: background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n/* The hit area: `control-height-sm` thick, centred on the seam. The 24px\n WCAG 2.5.8 minimum is the control-height law's own minimum, reused rather\n than restated, and it scales with density like every other target. */\n.divider::after {\n position: absolute;\n inset-block: 0;\n inset-inline-start: calc((100% - var(--pm-control-height-sm)) / 2);\n inline-size: var(--pm-control-height-sm);\n content: '';\n}\n\n.divider:hover::before {\n background: var(--pm-border-strong);\n}\n\n/* While held or focused, the line takes the accent and grows to 2px, because\n colour alone would be lost against a busy pane edge. It grows symmetrically,\n so the seam's centre never moves. */\n.divider:focus-visible::before,\n.divider[data-state='dragging']::before {\n inset-inline-start: calc((100% - 2px) / 2);\n inline-size: 2px;\n background: var(--pm-accent-bg);\n}\n\n/* Stacked: the same recipe rotated a quarter turn. It is one section, placed\n last, so the axis swap outranks every base rule it changes. */\n.root[data-orientation='vertical'] {\n grid-template-columns: none;\n grid-template-rows:\n minmax(var(--pm-split-start-min), var(--pm-split-start))\n auto\n minmax(var(--pm-split-end-min), var(--pm-split-end));\n}\n\n.root[data-orientation='vertical'] .divider {\n inline-size: auto;\n block-size: var(--pm-space-2);\n cursor: row-resize;\n}\n\n.root[data-orientation='vertical'] .divider::before {\n inset-block: auto;\n inset-inline: 0;\n inset-block-start: calc((100% - 1px) / 2);\n inline-size: auto;\n block-size: 1px;\n}\n\n.root[data-orientation='vertical'] .divider::after {\n inset-block: auto;\n inset-inline: 0;\n inset-block-start: calc((100% - var(--pm-control-height-sm)) / 2);\n inline-size: auto;\n block-size: var(--pm-control-height-sm);\n}\n\n.root[data-orientation='vertical'] .divider:focus-visible::before,\n.root[data-orientation='vertical'] .divider[data-state='dragging']::before {\n inset-inline: 0;\n inset-block-start: calc((100% - 2px) / 2);\n inline-size: auto;\n block-size: 2px;\n}\n\n/* Fixture harness from the spec (ScrollArea's pattern): a fixed-height box for\n a stacked split to divide. The root is as tall as its container, and a\n container with no height gives it only its content's, which the ratio then\n divides: each pane is drawn at its share of the taller pane's content, and\n the rest of that content is cut. */\n.harness {\n inline-size: 100%;\n block-size: calc(var(--pm-space-10) * 2);\n}\n"],"mappings":""}
1
+ {"version":3,"file":"split-pane.module.js","names":[],"sources":["../../../../recipes/src/layout/split-pane.module.css"],"sourcesContent":["/* SplitPane — `design/components/split-pane.md`.\n *\n * The recipe is a grid and a line. The tracks carry the layout. The component\n * writes the ratio as an `fr` pair and the content floors as px into the\n * `--pm-split-*` pattern tokens (data, not style, as in chart-tip), and\n * `minmax()` holds the floors whatever the ratio prop says. Everything a theme\n * can vary (the line's colours, the ring, the feedback timing) is a `--pm-*`\n * token in this file, where the token law can check it.\n *\n * The split is never transitioned. The ratio follows the reader's pointer\n * directly, and a transitioned track would lag behind it, as a transitioned\n * Slider thumb does. Keyboard steps apply instantly for the same reason. Only\n * the divider's colours use the `stateFeedback` timing, restated on the\n * pseudo-element because `composes` cannot reach one. */\n\n.root {\n --pm-split-start: 1fr;\n --pm-split-end: 1fr;\n --pm-split-start-min: 0px;\n --pm-split-end-min: 0px;\n\n display: grid;\n grid-template-columns:\n minmax(var(--pm-split-start-min), var(--pm-split-start))\n auto\n minmax(var(--pm-split-end-min), var(--pm-split-end));\n inline-size: 100%;\n block-size: 100%;\n}\n\n/* A pane that cannot shrink would block the divider, so both axes get a zero\n minimum size. Scrolling inside a pane is that pane's concern.\n\n A pane clips what it holds at its padding edge: the seat shadow of a field or\n a Button against its side, and a control's focus mark, drawn a `space-1` gap\n outside it. At the seam a pane is larger than its content by `space-2`,\n inside the divider's column, which is the split's own, and its margin takes\n that back, so the content stays in the pane's track. The outer sides have no\n room: they are the edges of the region the split fills, and a pane drawn past\n them would make that region scroll. */\n.pane {\n --pm-split-reach: var(--pm-space-2);\n\n min-inline-size: 0;\n min-block-size: 0;\n overflow: hidden;\n}\n\n.pane:first-child {\n margin-inline-end: calc(var(--pm-split-reach) * -1);\n padding-inline-end: var(--pm-split-reach);\n}\n\n.pane:last-child {\n margin-inline-start: calc(var(--pm-split-reach) * -1);\n padding-inline-start: var(--pm-split-reach);\n}\n\n/* The divider: an empty 8px column with a 1px line down its centre. The\n thickness is the seam, the visual gap between the panes, and the line marks\n the handle. The actual pointer target is the ::after below. */\n.divider {\n composes: focusRing from '../conventions/focus.module.css';\n position: relative;\n inline-size: var(--pm-space-2);\n cursor: col-resize;\n touch-action: none;\n user-select: none;\n background: transparent;\n}\n\n/* The line is a pseudo-element rather than the box itself, so the seam can be\n wider than a hairline without painting an 8px bar. It is centred with\n `(100% - line) / 2` because the centre must hold at both line widths. */\n.divider::before {\n position: absolute;\n inset-block: 0;\n inset-inline-start: calc((100% - 1px) / 2);\n inline-size: 1px;\n content: '';\n background: var(--pm-border-default);\n transition: background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n/* The hit area: `control-height-sm` thick, centred on the seam. The 24px\n WCAG 2.5.8 minimum is the control-height law's own minimum, reused rather\n than restated, and it scales with density like every other target. */\n.divider::after {\n position: absolute;\n inset-block: 0;\n inset-inline-start: calc((100% - var(--pm-control-height-sm)) / 2);\n inline-size: var(--pm-control-height-sm);\n content: '';\n}\n\n.divider:hover::before {\n background: var(--pm-border-strong);\n}\n\n/* While held or focused, the line takes the accent and grows to 2px, because\n colour alone would be lost against a busy pane edge. It grows symmetrically,\n so the seam's centre never moves. */\n.divider:focus-visible::before,\n.divider[data-state='dragging']::before {\n inset-inline-start: calc((100% - 2px) / 2);\n inline-size: 2px;\n background: var(--pm-accent-bg);\n}\n\n/* Stacked: the same recipe rotated a quarter turn. It is one section, placed\n last, so the axis swap outranks every base rule it changes. */\n.root[data-orientation='vertical'] {\n grid-template-columns: none;\n grid-template-rows:\n minmax(var(--pm-split-start-min), var(--pm-split-start))\n auto\n minmax(var(--pm-split-end-min), var(--pm-split-end));\n}\n\n.root[data-orientation='vertical'] .divider {\n inline-size: auto;\n block-size: var(--pm-space-2);\n cursor: row-resize;\n}\n\n/* The seam's room moves to the block axis with the seam. */\n.root[data-orientation='vertical'] .pane:first-child {\n margin-block-end: calc(var(--pm-split-reach) * -1);\n margin-inline-end: 0;\n padding-block-end: var(--pm-split-reach);\n padding-inline-end: 0;\n}\n\n.root[data-orientation='vertical'] .pane:last-child {\n margin-block-start: calc(var(--pm-split-reach) * -1);\n margin-inline-start: 0;\n padding-block-start: var(--pm-split-reach);\n padding-inline-start: 0;\n}\n\n.root[data-orientation='vertical'] .divider::before {\n inset-block: auto;\n inset-inline: 0;\n inset-block-start: calc((100% - 1px) / 2);\n inline-size: auto;\n block-size: 1px;\n}\n\n.root[data-orientation='vertical'] .divider::after {\n inset-block: auto;\n inset-inline: 0;\n inset-block-start: calc((100% - var(--pm-control-height-sm)) / 2);\n inline-size: auto;\n block-size: var(--pm-control-height-sm);\n}\n\n.root[data-orientation='vertical'] .divider:focus-visible::before,\n.root[data-orientation='vertical'] .divider[data-state='dragging']::before {\n inset-inline: 0;\n inset-block-start: calc((100% - 2px) / 2);\n inline-size: auto;\n block-size: 2px;\n}\n\n/* Fixture harness from the spec (ScrollArea's pattern): a fixed-height box for\n a stacked split to divide. The root is as tall as its container, and a\n container with no height gives it only its content's, which the ratio then\n divides: each pane is drawn at its share of the taller pane's content, and\n the rest of that content is cut. */\n.harness {\n inline-size: 100%;\n block-size: calc(var(--pm-space-10) * 2);\n}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Command.js","names":[],"sources":["../../../src/overlays/Command.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The command palette (`design/components/command.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/command.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useId, useTemplateRef } from 'vue'\n\nimport * as zag from '@zag-js/dialog'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { agentMember, useDirection, type IconRole } from '@polymorph/vue'\nimport { usePresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/overlays/command.module.css'\nimport CommandPanel from './CommandPanel.vue'\n\nexport interface CommandItem {\n id: string\n label: string\n icon?: IconRole\n hint?: string\n group?: string\n keywords?: string[]\n disabled?: boolean\n onSelect: () => void\n}\n\nexport interface CommandProps {\n /**\n * `false` for chained palettes, where the query stays after a command runs.\n */\n closeOnSelect?: boolean\n emptyMessage?: string\n /**\n * The dismiss key label beside the search field (default `esc`). Hosts localize it because a\n * key legend is text too.\n */\n escapeHint?: string\n /**\n * `false` when the app filters the items itself, as with async command sources.\n */\n filter?: false | 'contains'\n items: CommandItem[]\n /**\n * The dialog's accessible name; localized hosts replace the default `Command palette`.\n */\n label?: string\n loading?: boolean\n /**\n * The app owns the ⌘K binding, because a global hotkey is app policy, not vocabulary.\n */\n open: boolean\n placeholder?: string\n}\n\ndefineOptions({ name: 'Command', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<CommandProps>(), {\n closeOnSelect: true,\n emptyMessage: 'No results',\n escapeHint: 'esc',\n filter: 'contains',\n label: 'Command palette',\n loading: false,\n placeholder: 'Type a command…',\n})\nconst emit = defineEmits<{ openChange: [open: boolean] }>()\nconst uid = useId()\nconst query = ref('')\nconst panel = useTemplateRef<HTMLElement>('panel')\nconst scrim = useTemplateRef<HTMLElement>('scrim')\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n open: props.open,\n 'aria-label': props.label,\n onEscapeKeyDown: (event) => query.value !== '' && event.preventDefault(),\n onOpenChange: (details) => {\n emit('openChange', details.open)\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst scrimPresent = usePresence(() => api.value.open, scrim, 'dialog.scrim')\nconst panelPresent = usePresence(() => api.value.open, panel, 'command.panel', {\n side: 'bottom',\n align: 'center',\n})\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const ran = agentMember({\n member: 'Command',\n element: () => panel.value,\n state: () => ({\n open: api.value.open,\n items: props.items.map((item) => ({\n id: item.id,\n label: item.label,\n ...(item.disabled === true ? { disabled: true } : {}),\n })),\n query: api.value.open ? query.value : '',\n }),\n actions: {\n choose: {\n argument: 'id',\n run: (value) => (\n props.items.find((item) => item.id === value)?.onSelect(),\n api.value.open && props.closeOnSelect && api.value.setOpen(false)\n ),\n },\n close: () => api.value.open && api.value.setOpen(false),\n },\n })\n release1 = () => {\n ran()\n }\n}\nonMounted(effect1)\nonBeforeUnmount(() => release1?.())\n</script>\n\n<template>\n <Teleport to=\"body\">\n <!-- scrim -->\n <div\n v-if=\"scrimPresent\"\n ref=\"scrim\"\n v-bind=\"api.getBackdropProps()\"\n :class=\"styles.scrim\"\n :hidden=\"undefined\"\n />\n <div v-if=\"panelPresent\" v-bind=\"api.getPositionerProps()\" :class=\"styles.positioner\">\n <!-- panel -->\n <div\n ref=\"panel\"\n v-bind=\"api.getContentProps()\"\n :class=\"styles.panel\"\n :hidden=\"undefined\"\n :aria-describedby=\"undefined\"\n :data-loading=\"loading ? '' : undefined\"\n data-member=\"command\"\n >\n <CommandPanel\n :items=\"items\"\n :placeholder=\"placeholder\"\n :escapeHint=\"escapeHint\"\n :filter=\"filter\"\n :loading=\"loading\"\n :emptyMessage=\"emptyMessage\"\n @queryChange=\"query = $event\"\n @command=\"closeOnSelect && api.setOpen(false)\"\n />\n </div>\n </div>\n </Teleport>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"Command.js","names":[],"sources":["../../../src/overlays/Command.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The command palette (`design/components/command.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/command.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useId, useTemplateRef, watch } from 'vue'\n\nimport * as zag from '@zag-js/dialog'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport {\n agentMember,\n focusPlace,\n focusReturnTarget,\n useDirection,\n type IconRole,\n} from '@polymorph/vue'\nimport { usePresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/overlays/command.module.css'\nimport CommandPanel from './CommandPanel.vue'\n\nexport interface CommandItem {\n id: string\n label: string\n icon?: IconRole\n hint?: string\n group?: string\n keywords?: string[]\n disabled?: boolean\n onSelect: () => void\n}\n\nexport interface CommandProps {\n /**\n * `false` for chained palettes, where the query stays after a command runs.\n */\n closeOnSelect?: boolean\n emptyMessage?: string\n /**\n * The dismiss key label beside the search field (default `esc`). Hosts localize it because a\n * key legend is text too.\n */\n escapeHint?: string\n /**\n * `false` when the app filters the items itself, as with async command sources.\n */\n filter?: false | 'contains'\n items: CommandItem[]\n /**\n * The dialog's accessible name; localized hosts replace the default `Command palette`.\n */\n label?: string\n loading?: boolean\n /**\n * The app owns the ⌘K binding, because a global hotkey is app policy, not vocabulary.\n */\n open: boolean\n placeholder?: string\n}\n\ndefineOptions({ name: 'Command', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<CommandProps>(), {\n closeOnSelect: true,\n emptyMessage: 'No results',\n escapeHint: 'esc',\n filter: 'contains',\n label: 'Command palette',\n loading: false,\n placeholder: 'Type a command…',\n})\nconst emit = defineEmits<{ openChange: [open: boolean] }>()\nconst uid = useId()\nconst query = ref('')\nconst returnTo = ref(null as ReturnType<typeof focusPlace>)\nconst panel = useTemplateRef<HTMLElement>('panel')\nconst scrim = useTemplateRef<HTMLElement>('scrim')\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n open: props.open,\n finalFocusEl: () => focusReturnTarget(returnTo.value, [panel.value]),\n 'aria-label': props.label,\n onEscapeKeyDown: (event) => query.value !== '' && event.preventDefault(),\n onOpenChange: (details) => {\n emit('openChange', details.open)\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst scrimPresent = usePresence(() => api.value.open, scrim, 'dialog.scrim')\nconst panelPresent = usePresence(() => api.value.open, panel, 'command.panel', {\n side: 'bottom',\n align: 'center',\n})\nconst effect1 = () => {\n api.value.open && (returnTo.value = focusPlace(document.activeElement))\n}\nonMounted(effect1)\nwatch(() => api.value.open, effect1, { flush: 'post' })\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'Command',\n element: () => panel.value,\n state: () => ({\n open: api.value.open,\n items: props.items.map((item) => ({\n id: item.id,\n label: item.label,\n ...(item.disabled === true ? { disabled: true } : {}),\n })),\n query: api.value.open ? query.value : '',\n }),\n actions: {\n choose: {\n argument: 'id',\n run: (value) => (\n props.items.find((item) => item.id === value)?.onSelect(),\n api.value.open && props.closeOnSelect && api.value.setOpen(false)\n ),\n },\n close: () => api.value.open && api.value.setOpen(false),\n },\n })\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nonBeforeUnmount(() => release2?.())\n</script>\n\n<template>\n <Teleport to=\"body\">\n <!-- scrim -->\n <div\n v-if=\"scrimPresent\"\n ref=\"scrim\"\n v-bind=\"api.getBackdropProps()\"\n :class=\"styles.scrim\"\n :hidden=\"undefined\"\n />\n <div v-if=\"panelPresent\" v-bind=\"api.getPositionerProps()\" :class=\"styles.positioner\">\n <!-- panel -->\n <div\n ref=\"panel\"\n v-bind=\"api.getContentProps()\"\n :class=\"styles.panel\"\n :hidden=\"undefined\"\n :aria-describedby=\"undefined\"\n :data-loading=\"loading ? '' : undefined\"\n data-member=\"command\"\n >\n <CommandPanel\n :items=\"items\"\n :placeholder=\"placeholder\"\n :escapeHint=\"escapeHint\"\n :filter=\"filter\"\n :loading=\"loading\"\n :emptyMessage=\"emptyMessage\"\n @queryChange=\"query = $event\"\n @command=\"closeOnSelect && api.setOpen(false)\"\n />\n </div>\n </div>\n </Teleport>\n</template>\n"],"mappings":""}
@@ -1,12 +1,12 @@
1
1
  import e from "./command.module.js";
2
2
  import t from "./CommandPanel.js";
3
- import { agentMember as n, useDirection as r } from "@polymorph/vue";
4
- import { Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeProps as f, onBeforeUnmount as p, onMounted as m, openBlock as h, ref as g, unref as _, useId as v, useTemplateRef as y } from "vue";
5
- import { normalizeProps as b, useMachine as x } from "@zag-js/vue";
6
- import { usePresence as S } from "@polymorph/vue/motion";
7
- import * as C from "@zag-js/dialog";
3
+ import { agentMember as n, focusPlace as r, focusReturnTarget as i, useDirection as a } from "@polymorph/vue";
4
+ import { Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeProps as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, unref as y, useId as b, useTemplateRef as x, watch as S } from "vue";
5
+ import { normalizeProps as C, useMachine as w } from "@zag-js/vue";
6
+ import { usePresence as T } from "@polymorph/vue/motion";
7
+ import * as E from "@zag-js/dialog";
8
8
  //#region src/overlays/Command.vue?vue&type=script&setup=true&lang.ts
9
- var w = ["data-loading"], T = /*@__PURE__*/ d({
9
+ var D = ["data-loading"], O = /*@__PURE__*/ p({
10
10
  name: "Command",
11
11
  inheritAttrs: !1,
12
12
  __name: "Command",
@@ -31,70 +31,75 @@ var w = ["data-loading"], T = /*@__PURE__*/ d({
31
31
  placeholder: { default: "Type a command…" }
32
32
  },
33
33
  emits: ["openChange"],
34
- setup(d, { emit: T }) {
35
- let E = d, D = T, O = v(), k = g(""), A = y("panel"), j = y("scrim"), M = r(), N = x(C.machine, a(() => ({
36
- id: O,
37
- dir: M.value,
38
- open: E.open,
39
- "aria-label": E.label,
40
- onEscapeKeyDown: (e) => k.value !== "" && e.preventDefault(),
34
+ setup(p, { emit: O }) {
35
+ let k = p, A = O, j = b(), M = v(""), N = v(null), P = x("panel"), F = x("scrim"), I = a(), L = w(E.machine, s(() => ({
36
+ id: j,
37
+ dir: I.value,
38
+ open: k.open,
39
+ finalFocusEl: () => i(N.value, [P.value]),
40
+ "aria-label": k.label,
41
+ onEscapeKeyDown: (e) => M.value !== "" && e.preventDefault(),
41
42
  onOpenChange: (e) => {
42
- D("openChange", e.open);
43
+ A("openChange", e.open);
43
44
  }
44
- }))), P = a(() => C.connect(N, b)), F = S(() => P.value.open, j, "dialog.scrim"), I = S(() => P.value.open, A, "command.panel", {
45
+ }))), R = s(() => E.connect(L, C)), z = T(() => R.value.open, F, "dialog.scrim"), B = T(() => R.value.open, P, "command.panel", {
45
46
  side: "bottom",
46
47
  align: "center"
47
- }), L;
48
- return m(() => {
49
- L?.();
48
+ }), V = () => {
49
+ R.value.open && (N.value = r(document.activeElement));
50
+ };
51
+ g(V), S(() => R.value.open, V, { flush: "post" });
52
+ let H;
53
+ return g(() => {
54
+ H?.();
50
55
  let e = n({
51
56
  member: "Command",
52
- element: () => A.value,
57
+ element: () => P.value,
53
58
  state: () => ({
54
- open: P.value.open,
55
- items: E.items.map((e) => ({
59
+ open: R.value.open,
60
+ items: k.items.map((e) => ({
56
61
  id: e.id,
57
62
  label: e.label,
58
63
  ...e.disabled === !0 ? { disabled: !0 } : {}
59
64
  })),
60
- query: P.value.open ? k.value : ""
65
+ query: R.value.open ? M.value : ""
61
66
  }),
62
67
  actions: {
63
68
  choose: {
64
69
  argument: "id",
65
- run: (e) => (E.items.find((t) => t.id === e)?.onSelect(), P.value.open && E.closeOnSelect && P.value.setOpen(!1))
70
+ run: (e) => (k.items.find((t) => t.id === e)?.onSelect(), R.value.open && k.closeOnSelect && R.value.setOpen(!1))
66
71
  },
67
- close: () => P.value.open && P.value.setOpen(!1)
72
+ close: () => R.value.open && R.value.setOpen(!1)
68
73
  }
69
74
  });
70
- L = () => {
75
+ H = () => {
71
76
  e();
72
77
  };
73
- }), p(() => L?.()), (n, r) => (h(), o(i, { to: "body" }, [_(F) ? (h(), c("div", f({
78
+ }), h(() => H?.()), (n, r) => (_(), c(o, { to: "body" }, [y(z) ? (_(), u("div", m({
74
79
  key: 0,
75
80
  ref_key: "scrim",
76
- ref: j
77
- }, P.value.getBackdropProps(), {
78
- class: _(e).scrim,
81
+ ref: F
82
+ }, R.value.getBackdropProps(), {
83
+ class: y(e).scrim,
79
84
  hidden: void 0
80
- }), null, 16)) : s("", !0), _(I) ? (h(), c("div", f({ key: 1 }, P.value.getPositionerProps(), { class: _(e).positioner }), [l("div", f({
85
+ }), null, 16)) : l("", !0), y(B) ? (_(), u("div", m({ key: 1 }, R.value.getPositionerProps(), { class: y(e).positioner }), [d("div", m({
81
86
  ref_key: "panel",
82
- ref: A
83
- }, P.value.getContentProps(), {
84
- class: _(e).panel,
87
+ ref: P
88
+ }, R.value.getContentProps(), {
89
+ class: y(e).panel,
85
90
  hidden: void 0,
86
91
  "aria-describedby": void 0,
87
- "data-loading": d.loading ? "" : void 0,
92
+ "data-loading": p.loading ? "" : void 0,
88
93
  "data-member": "command"
89
- }), [u(t, {
90
- items: d.items,
91
- placeholder: d.placeholder,
92
- escapeHint: d.escapeHint,
93
- filter: d.filter,
94
- loading: d.loading,
95
- emptyMessage: d.emptyMessage,
96
- onQueryChange: r[0] ||= (e) => k.value = e,
97
- onCommand: r[1] ||= (e) => d.closeOnSelect && P.value.setOpen(!1)
94
+ }), [f(t, {
95
+ items: p.items,
96
+ placeholder: p.placeholder,
97
+ escapeHint: p.escapeHint,
98
+ filter: p.filter,
99
+ loading: p.loading,
100
+ emptyMessage: p.emptyMessage,
101
+ onQueryChange: r[0] ||= (e) => M.value = e,
102
+ onCommand: r[1] ||= (e) => p.closeOnSelect && R.value.setOpen(!1)
98
103
  }, null, 8, [
99
104
  "items",
100
105
  "placeholder",
@@ -102,10 +107,10 @@ var w = ["data-loading"], T = /*@__PURE__*/ d({
102
107
  "filter",
103
108
  "loading",
104
109
  "emptyMessage"
105
- ])], 16, w)], 16)) : s("", !0)]));
110
+ ])], 16, D)], 16)) : l("", !0)]));
106
111
  }
107
112
  });
108
113
  //#endregion
109
- export { T as default };
114
+ export { O as default };
110
115
 
111
116
  //# sourceMappingURL=Command.vue_vue_type_script_setup_true_lang.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Command.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/overlays/Command.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The command palette (`design/components/command.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/command.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useId, useTemplateRef } from 'vue'\n\nimport * as zag from '@zag-js/dialog'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { agentMember, useDirection, type IconRole } from '@polymorph/vue'\nimport { usePresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/overlays/command.module.css'\nimport CommandPanel from './CommandPanel.vue'\n\nexport interface CommandItem {\n id: string\n label: string\n icon?: IconRole\n hint?: string\n group?: string\n keywords?: string[]\n disabled?: boolean\n onSelect: () => void\n}\n\nexport interface CommandProps {\n /**\n * `false` for chained palettes, where the query stays after a command runs.\n */\n closeOnSelect?: boolean\n emptyMessage?: string\n /**\n * The dismiss key label beside the search field (default `esc`). Hosts localize it because a\n * key legend is text too.\n */\n escapeHint?: string\n /**\n * `false` when the app filters the items itself, as with async command sources.\n */\n filter?: false | 'contains'\n items: CommandItem[]\n /**\n * The dialog's accessible name; localized hosts replace the default `Command palette`.\n */\n label?: string\n loading?: boolean\n /**\n * The app owns the ⌘K binding, because a global hotkey is app policy, not vocabulary.\n */\n open: boolean\n placeholder?: string\n}\n\ndefineOptions({ name: 'Command', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<CommandProps>(), {\n closeOnSelect: true,\n emptyMessage: 'No results',\n escapeHint: 'esc',\n filter: 'contains',\n label: 'Command palette',\n loading: false,\n placeholder: 'Type a command…',\n})\nconst emit = defineEmits<{ openChange: [open: boolean] }>()\nconst uid = useId()\nconst query = ref('')\nconst panel = useTemplateRef<HTMLElement>('panel')\nconst scrim = useTemplateRef<HTMLElement>('scrim')\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n open: props.open,\n 'aria-label': props.label,\n onEscapeKeyDown: (event) => query.value !== '' && event.preventDefault(),\n onOpenChange: (details) => {\n emit('openChange', details.open)\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst scrimPresent = usePresence(() => api.value.open, scrim, 'dialog.scrim')\nconst panelPresent = usePresence(() => api.value.open, panel, 'command.panel', {\n side: 'bottom',\n align: 'center',\n})\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const ran = agentMember({\n member: 'Command',\n element: () => panel.value,\n state: () => ({\n open: api.value.open,\n items: props.items.map((item) => ({\n id: item.id,\n label: item.label,\n ...(item.disabled === true ? { disabled: true } : {}),\n })),\n query: api.value.open ? query.value : '',\n }),\n actions: {\n choose: {\n argument: 'id',\n run: (value) => (\n props.items.find((item) => item.id === value)?.onSelect(),\n api.value.open && props.closeOnSelect && api.value.setOpen(false)\n ),\n },\n close: () => api.value.open && api.value.setOpen(false),\n },\n })\n release1 = () => {\n ran()\n }\n}\nonMounted(effect1)\nonBeforeUnmount(() => release1?.())\n</script>\n\n<template>\n <Teleport to=\"body\">\n <!-- scrim -->\n <div\n v-if=\"scrimPresent\"\n ref=\"scrim\"\n v-bind=\"api.getBackdropProps()\"\n :class=\"styles.scrim\"\n :hidden=\"undefined\"\n />\n <div v-if=\"panelPresent\" v-bind=\"api.getPositionerProps()\" :class=\"styles.positioner\">\n <!-- panel -->\n <div\n ref=\"panel\"\n v-bind=\"api.getContentProps()\"\n :class=\"styles.panel\"\n :hidden=\"undefined\"\n :aria-describedby=\"undefined\"\n :data-loading=\"loading ? '' : undefined\"\n data-member=\"command\"\n >\n <CommandPanel\n :items=\"items\"\n :placeholder=\"placeholder\"\n :escapeHint=\"escapeHint\"\n :filter=\"filter\"\n :loading=\"loading\"\n :emptyMessage=\"emptyMessage\"\n @queryChange=\"query = $event\"\n @command=\"closeOnSelect && api.setOpen(false)\"\n />\n </div>\n </div>\n </Teleport>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2DA,IAAM,IAAQ,GASR,IAAO,GACP,IAAM,EAAM,GACZ,IAAQ,EAAI,EAAE,GACd,IAAQ,EAA4B,OAAO,GAC3C,IAAQ,EAA4B,OAAO,GAC3C,IAAoB,EAAa,GACjC,IAAU,EACd,EAAI,SACJ,SAAgB;GACd,IAAI;GACJ,KAAK,EAAkB;GACvB,MAAM,EAAM;GACZ,cAAc,EAAM;GACpB,kBAAkB,MAAU,EAAM,UAAU,MAAM,EAAM,eAAe;GACvE,eAAe,MAAY;IACzB,EAAK,cAAc,EAAQ,IAAI;GACjC;EACF,EAAE,CACJ,GACM,IAAM,QAAe,EAAI,QAAQ,GAAS,CAAc,CAAC,GACzD,IAAe,QAAkB,EAAI,MAAM,MAAM,GAAO,cAAc,GACtE,IAAe,QAAkB,EAAI,MAAM,MAAM,GAAO,iBAAiB;GAC7E,MAAM;GACN,OAAO;EACT,CAAC,GACG;SA8BJ,QA7BsB;GACpB,IAAW;GACX,IAAM,IAAM,EAAY;IACtB,QAAQ;IACR,eAAe,EAAM;IACrB,cAAc;KACZ,MAAM,EAAI,MAAM;KAChB,OAAO,EAAM,MAAM,KAAK,OAAU;MAChC,IAAI,EAAK;MACT,OAAO,EAAK;MACZ,GAAI,EAAK,aAAa,KAAO,EAAE,UAAU,GAAK,IAAI,CAAC;KACrD,EAAE;KACF,OAAO,EAAI,MAAM,OAAO,EAAM,QAAQ;IACxC;IACA,SAAS;KACP,QAAQ;MACN,UAAU;MACV,MAAM,OACJ,EAAM,MAAM,MAAM,MAAS,EAAK,OAAO,CAAK,CAAC,EAAE,SAAS,GACxD,EAAI,MAAM,QAAQ,EAAM,iBAAiB,EAAI,MAAM,QAAQ,EAAK;KAEpE;KACA,aAAa,EAAI,MAAM,QAAQ,EAAI,MAAM,QAAQ,EAAK;IACxD;GACF,CAAC;GACD,UAAiB;IACf,EAAI;GACN;EACF,CACiB,GACjB,QAAsB,IAAW,CAAC,mBAIhC,EAgCW,GAAA,EAhCD,IAAG,OAAM,GAAA,CAGT,EAAA,CAAA,KAAA,EAAA,GADR,EAME,OANF,EAME;;YAJI;GAAJ,KAAI;KACI,EAAA,MAAI,iBAAgB,GAAA;GAC3B,OAAO,EAAA,CAAA,CAAM,CAAC;GACd,QAAQ,KAAA;8BAEA,EAAA,CAAA,KAAA,EAAA,GAAX,EAsBM,OAtBN,EAsBM,EAAA,KAAA,EAAA,GAtB2B,EAAA,MAAI,mBAAkB,GAAA,EAAK,OAAO,EAAA,CAAA,CAAM,CAAC,WAAA,CAAA,GAAA,CAExE,EAmBM,OAnBN,EAmBM;YAlBA;GAAJ,KAAI;KACI,EAAA,MAAI,gBAAe,GAAA;GAC1B,OAAO,EAAA,CAAA,CAAM,CAAC;GACd,QAAQ,KAAA;GACR,oBAAkB,KAAA;GAClB,gBAAc,EAAA,UAAO,KAAQ,KAAA;GAC9B,eAAY;OAEZ,EASE,GAAA;GARC,OAAO,EAAA;GACP,aAAa,EAAA;GACb,YAAY,EAAA;GACZ,QAAQ,EAAA;GACR,SAAS,EAAA;GACT,cAAc,EAAA;GACd,eAAW,AAAA,EAAA,QAAA,MAAE,EAAA,QAAQ;GACrB,WAAO,AAAA,EAAA,QAAA,MAAE,EAAA,iBAAiB,EAAA,MAAI,QAAO,EAAA"}
1
+ {"version":3,"file":"Command.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/overlays/Command.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The command palette (`design/components/command.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/command.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useId, useTemplateRef, watch } from 'vue'\n\nimport * as zag from '@zag-js/dialog'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport {\n agentMember,\n focusPlace,\n focusReturnTarget,\n useDirection,\n type IconRole,\n} from '@polymorph/vue'\nimport { usePresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/overlays/command.module.css'\nimport CommandPanel from './CommandPanel.vue'\n\nexport interface CommandItem {\n id: string\n label: string\n icon?: IconRole\n hint?: string\n group?: string\n keywords?: string[]\n disabled?: boolean\n onSelect: () => void\n}\n\nexport interface CommandProps {\n /**\n * `false` for chained palettes, where the query stays after a command runs.\n */\n closeOnSelect?: boolean\n emptyMessage?: string\n /**\n * The dismiss key label beside the search field (default `esc`). Hosts localize it because a\n * key legend is text too.\n */\n escapeHint?: string\n /**\n * `false` when the app filters the items itself, as with async command sources.\n */\n filter?: false | 'contains'\n items: CommandItem[]\n /**\n * The dialog's accessible name; localized hosts replace the default `Command palette`.\n */\n label?: string\n loading?: boolean\n /**\n * The app owns the ⌘K binding, because a global hotkey is app policy, not vocabulary.\n */\n open: boolean\n placeholder?: string\n}\n\ndefineOptions({ name: 'Command', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<CommandProps>(), {\n closeOnSelect: true,\n emptyMessage: 'No results',\n escapeHint: 'esc',\n filter: 'contains',\n label: 'Command palette',\n loading: false,\n placeholder: 'Type a command…',\n})\nconst emit = defineEmits<{ openChange: [open: boolean] }>()\nconst uid = useId()\nconst query = ref('')\nconst returnTo = ref(null as ReturnType<typeof focusPlace>)\nconst panel = useTemplateRef<HTMLElement>('panel')\nconst scrim = useTemplateRef<HTMLElement>('scrim')\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n open: props.open,\n finalFocusEl: () => focusReturnTarget(returnTo.value, [panel.value]),\n 'aria-label': props.label,\n onEscapeKeyDown: (event) => query.value !== '' && event.preventDefault(),\n onOpenChange: (details) => {\n emit('openChange', details.open)\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst scrimPresent = usePresence(() => api.value.open, scrim, 'dialog.scrim')\nconst panelPresent = usePresence(() => api.value.open, panel, 'command.panel', {\n side: 'bottom',\n align: 'center',\n})\nconst effect1 = () => {\n api.value.open && (returnTo.value = focusPlace(document.activeElement))\n}\nonMounted(effect1)\nwatch(() => api.value.open, effect1, { flush: 'post' })\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'Command',\n element: () => panel.value,\n state: () => ({\n open: api.value.open,\n items: props.items.map((item) => ({\n id: item.id,\n label: item.label,\n ...(item.disabled === true ? { disabled: true } : {}),\n })),\n query: api.value.open ? query.value : '',\n }),\n actions: {\n choose: {\n argument: 'id',\n run: (value) => (\n props.items.find((item) => item.id === value)?.onSelect(),\n api.value.open && props.closeOnSelect && api.value.setOpen(false)\n ),\n },\n close: () => api.value.open && api.value.setOpen(false),\n },\n })\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nonBeforeUnmount(() => release2?.())\n</script>\n\n<template>\n <Teleport to=\"body\">\n <!-- scrim -->\n <div\n v-if=\"scrimPresent\"\n ref=\"scrim\"\n v-bind=\"api.getBackdropProps()\"\n :class=\"styles.scrim\"\n :hidden=\"undefined\"\n />\n <div v-if=\"panelPresent\" v-bind=\"api.getPositionerProps()\" :class=\"styles.positioner\">\n <!-- panel -->\n <div\n ref=\"panel\"\n v-bind=\"api.getContentProps()\"\n :class=\"styles.panel\"\n :hidden=\"undefined\"\n :aria-describedby=\"undefined\"\n :data-loading=\"loading ? '' : undefined\"\n data-member=\"command\"\n >\n <CommandPanel\n :items=\"items\"\n :placeholder=\"placeholder\"\n :escapeHint=\"escapeHint\"\n :filter=\"filter\"\n :loading=\"loading\"\n :emptyMessage=\"emptyMessage\"\n @queryChange=\"query = $event\"\n @command=\"closeOnSelect && api.setOpen(false)\"\n />\n </div>\n </div>\n </Teleport>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiEA,IAAM,IAAQ,GASR,IAAO,GACP,IAAM,EAAM,GACZ,IAAQ,EAAI,EAAE,GACd,IAAW,EAAI,IAAqC,GACpD,IAAQ,EAA4B,OAAO,GAC3C,IAAQ,EAA4B,OAAO,GAC3C,IAAoB,EAAa,GACjC,IAAU,EACd,EAAI,SACJ,SAAgB;GACd,IAAI;GACJ,KAAK,EAAkB;GACvB,MAAM,EAAM;GACZ,oBAAoB,EAAkB,EAAS,OAAO,CAAC,EAAM,KAAK,CAAC;GACnE,cAAc,EAAM;GACpB,kBAAkB,MAAU,EAAM,UAAU,MAAM,EAAM,eAAe;GACvE,eAAe,MAAY;IACzB,EAAK,cAAc,EAAQ,IAAI;GACjC;EACF,EAAE,CACJ,GACM,IAAM,QAAe,EAAI,QAAQ,GAAS,CAAc,CAAC,GACzD,IAAe,QAAkB,EAAI,MAAM,MAAM,GAAO,cAAc,GACtE,IAAe,QAAkB,EAAI,MAAM,MAAM,GAAO,iBAAiB;GAC7E,MAAM;GACN,OAAO;EACT,CAAC,GACK,UAAgB;GACpB,EAAI,MAAM,SAAS,EAAS,QAAQ,EAAW,SAAS,aAAa;EACvE;EAEA,AADA,EAAU,CAAO,GACjB,QAAY,EAAI,MAAM,MAAM,GAAS,EAAE,OAAO,OAAO,CAAC;EACtD,IAAI;SA8BJ,QA7BsB;GACpB,IAAW;GACX,IAAM,IAAM,EAAY;IACtB,QAAQ;IACR,eAAe,EAAM;IACrB,cAAc;KACZ,MAAM,EAAI,MAAM;KAChB,OAAO,EAAM,MAAM,KAAK,OAAU;MAChC,IAAI,EAAK;MACT,OAAO,EAAK;MACZ,GAAI,EAAK,aAAa,KAAO,EAAE,UAAU,GAAK,IAAI,CAAC;KACrD,EAAE;KACF,OAAO,EAAI,MAAM,OAAO,EAAM,QAAQ;IACxC;IACA,SAAS;KACP,QAAQ;MACN,UAAU;MACV,MAAM,OACJ,EAAM,MAAM,MAAM,MAAS,EAAK,OAAO,CAAK,CAAC,EAAE,SAAS,GACxD,EAAI,MAAM,QAAQ,EAAM,iBAAiB,EAAI,MAAM,QAAQ,EAAK;KAEpE;KACA,aAAa,EAAI,MAAM,QAAQ,EAAI,MAAM,QAAQ,EAAK;IACxD;GACF,CAAC;GACD,UAAiB;IACf,EAAI;GACN;EACF,CACiB,GACjB,QAAsB,IAAW,CAAC,mBAIhC,EAgCW,GAAA,EAhCD,IAAG,OAAM,GAAA,CAGT,EAAA,CAAA,KAAA,EAAA,GADR,EAME,OANF,EAME;;YAJI;GAAJ,KAAI;KACI,EAAA,MAAI,iBAAgB,GAAA;GAC3B,OAAO,EAAA,CAAA,CAAM,CAAC;GACd,QAAQ,KAAA;8BAEA,EAAA,CAAA,KAAA,EAAA,GAAX,EAsBM,OAtBN,EAsBM,EAAA,KAAA,EAAA,GAtB2B,EAAA,MAAI,mBAAkB,GAAA,EAAK,OAAO,EAAA,CAAA,CAAM,CAAC,WAAA,CAAA,GAAA,CAExE,EAmBM,OAnBN,EAmBM;YAlBA;GAAJ,KAAI;KACI,EAAA,MAAI,gBAAe,GAAA;GAC1B,OAAO,EAAA,CAAA,CAAM,CAAC;GACd,QAAQ,KAAA;GACR,oBAAkB,KAAA;GAClB,gBAAc,EAAA,UAAO,KAAQ,KAAA;GAC9B,eAAY;OAEZ,EASE,GAAA;GARC,OAAO,EAAA;GACP,aAAa,EAAA;GACb,YAAY,EAAA;GACZ,QAAQ,EAAA;GACR,SAAS,EAAA;GACT,cAAc,EAAA;GACd,eAAW,AAAA,EAAA,QAAA,MAAE,EAAA,QAAQ;GACrB,WAAO,AAAA,EAAA,QAAA,MAAE,EAAA,iBAAiB,EAAA,MAAI,QAAO,EAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPanel.js","names":[],"sources":["../../../src/overlays/CommandPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Command.Panel: the search row, the listbox and the status inside the palette, mounted with the panel so each opening starts from an empty query.\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/command.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onMounted, ref, useId, watch } from 'vue'\n\nimport * as zag from '@zag-js/combobox'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { Icon, useDirection } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/overlays/command.module.css'\nimport Kbd from '../structure/Kbd.vue'\nimport Skeleton from '../structure/Skeleton.vue'\nimport type { CommandItem } from './Command.vue'\n\nexport interface CommandPanelProps {\n items: CommandItem[]\n placeholder: string\n escapeHint: string\n filter: 'contains' | false\n loading: boolean\n emptyMessage: string\n}\n\ndefineOptions({ name: 'CommandPanel', inheritAttrs: false })\n\nconst props = defineProps<CommandPanelProps>()\nconst emit = defineEmits<{ queryChange: [query: string]; command: [] }>()\nconst uid = useId()\nconst query = ref('')\nconst collator = computed(\n () => new Intl.Collator(undefined, { usage: 'search', sensitivity: 'base' }),\n)\nconst needle = computed(() => query.value.normalize('NFC'))\nconst matches = computed(\n () => (item: CommandItem) =>\n ((text: string) =>\n needle.value === '' ||\n Array.from({ length: Math.max(0, text.length - needle.value.length + 1) }, (_, at) =>\n text.slice(at, at + needle.value.length),\n ).some((part) => collator.value.compare(part, needle.value) === 0))(\n (item.keywords === undefined\n ? item.label\n : `${item.label} ${item.keywords.join(' ')}`\n ).normalize('NFC'),\n ),\n)\nconst shown = computed(() =>\n props.filter === false ? props.items : props.items.filter((item) => matches.value(item)),\n)\nconst runs = computed(() =>\n shown.value.reduce(\n (into, item) => (\n item.group !== undefined && into.at(-1)?.[0]?.group === item.group\n ? into.at(-1)?.push(item)\n : into.push([item]),\n into\n ),\n [] as CommandItem[][],\n ),\n)\nconst firstEnabled = computed(() => shown.value.find((item) => item.disabled !== true)?.id)\nconst showEmpty = computed(() => !props.loading && shown.value.length === 0)\nconst announcement = computed(() =>\n props.loading\n ? 'Loading commands…'\n : shown.value.length === 0\n ? props.emptyMessage\n : `${shown.value.length} commands`,\n)\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n collection: zag.collection({\n items: shown.value,\n itemToValue: (item) => item.id,\n itemToString: (item) => item.label,\n isItemDisabled: (item) => item.disabled === true,\n }),\n open: true,\n disableLayer: true,\n value: [],\n closeOnSelect: false,\n selectionBehavior: 'preserve' as const,\n allowCustomValue: true,\n inputBehavior: 'autohighlight' as const,\n placeholder: props.placeholder,\n onInputValueChange: (details) => {\n ;((query.value = details.inputValue), emit('queryChange', details.inputValue))\n },\n onSelect: (details) => {\n ;(props.items.find((item) => item.id === details.itemValue)?.onSelect(), emit('command'))\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst effect1 = () => {\n emit('queryChange', query.value)\n}\nonMounted(effect1)\nconst effect2 = () => {\n api.value.highlightedValue === null &&\n firstEnabled.value !== undefined &&\n api.value.setHighlightValue(firstEnabled.value)\n}\nonMounted(effect2)\nwatch(() => api.value.highlightedValue ?? firstEnabled.value, effect2, { flush: 'post' })\n</script>\n\n<template>\n <div :class=\"styles.search\">\n <Icon name=\"search\" size=\"md\" />\n <!-- input -->\n <input\n v-bind=\"api.getInputProps()\"\n :class=\"styles.input\"\n :aria-label=\"placeholder\"\n @keydown=\"$event.key === 'Escape' && api.setInputValue('')\"\n />\n <Kbd>\n {{ escapeHint }}\n </Kbd>\n </div>\n <div :class=\"styles.body\" data-dialog-part=\"body\">\n <!-- list -->\n <ul\n v-bind=\"api.getContentProps()\"\n :class=\"styles.listbox\"\n :hidden=\"undefined\"\n :aria-labelledby=\"undefined\"\n aria-label=\"Suggestions\"\n >\n <template v-for=\"(run, at) in runs\" :key=\"run.map((item) => item.id).join(' ')\">\n <template v-if=\"run[0]?.group === undefined\">\n <template v-for=\"item in run\" :key=\"`${query}/${item.id}`\">\n <!-- item -->\n <li\n v-bind=\"api.getItemProps({ item: item, persistFocus: true })\"\n :class=\"styles.item\"\n :aria-labelledby=\"`${uid}-label-${item.id}`\"\n >\n <span v-if=\"item.icon !== undefined\" :class=\"styles.glyph\">\n <Icon :name=\"item.icon\" size=\"sm\" />\n </span>\n <span :class=\"styles.label\" :id=\"`${uid}-label-${item.id}`\">\n {{ item.label }}\n </span>\n <span v-if=\"item.hint !== undefined\" :class=\"styles.hint\">\n <Kbd>\n {{ item.hint }}\n </Kbd>\n </span>\n </li>\n </template>\n </template>\n <li v-else :class=\"styles.section\" role=\"presentation\">\n <span\n v-bind=\"api.getItemGroupLabelProps({ htmlFor: `${at}` })\"\n :class=\"styles.groupLabel\"\n >\n {{ run[0]?.group }}\n </span>\n <ul v-bind=\"api.getItemGroupProps({ id: `${at}` })\" :class=\"styles.group\">\n <template v-for=\"item in run\" :key=\"`${query}/${item.id}`\">\n <!-- item -->\n <li\n v-bind=\"api.getItemProps({ item: item, persistFocus: true })\"\n :class=\"styles.item\"\n :aria-labelledby=\"`${uid}-label-${item.id}`\"\n >\n <span v-if=\"item.icon !== undefined\" :class=\"styles.glyph\">\n <Icon :name=\"item.icon\" size=\"sm\" />\n </span>\n <span :class=\"styles.label\" :id=\"`${uid}-label-${item.id}`\">\n {{ item.label }}\n </span>\n <span v-if=\"item.hint !== undefined\" :class=\"styles.hint\">\n <Kbd>\n {{ item.hint }}\n </Kbd>\n </span>\n </li>\n </template>\n </ul>\n </li>\n </template>\n </ul>\n <div v-if=\"loading\" :class=\"styles.rows\" aria-hidden=\"true\">\n <template v-for=\"skeleton in [0, 1, 2]\" :key=\"skeleton\">\n <div :class=\"styles.row\">\n <Skeleton textStep=\"sm\" />\n </div>\n </template>\n </div>\n <div v-if=\"showEmpty\" :class=\"styles.empty\" aria-hidden=\"true\">\n {{ emptyMessage }}\n </div>\n </div>\n <div :class=\"styles.status\" role=\"status\" aria-live=\"polite\">\n {{ announcement }}\n </div>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"CommandPanel.js","names":[],"sources":["../../../src/overlays/CommandPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Command.Panel: the search row, the listbox and the status inside the palette, mounted with the panel so each opening starts from an empty query.\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/command.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onMounted, ref, useId, watch } from 'vue'\n\nimport * as zag from '@zag-js/combobox'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { Icon, composingKey, useDirection } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/overlays/command.module.css'\nimport Kbd from '../structure/Kbd.vue'\nimport Skeleton from '../structure/Skeleton.vue'\nimport type { CommandItem } from './Command.vue'\n\nexport interface CommandPanelProps {\n items: CommandItem[]\n placeholder: string\n escapeHint: string\n filter: 'contains' | false\n loading: boolean\n emptyMessage: string\n}\n\ndefineOptions({ name: 'CommandPanel', inheritAttrs: false })\n\nconst props = defineProps<CommandPanelProps>()\nconst emit = defineEmits<{ queryChange: [query: string]; command: [] }>()\nconst uid = useId()\nconst query = ref('')\nconst collator = computed(\n () => new Intl.Collator(undefined, { usage: 'search', sensitivity: 'base' }),\n)\nconst needle = computed(() => query.value.normalize('NFC'))\nconst matches = computed(\n () => (item: CommandItem) =>\n ((text: string) =>\n needle.value === '' ||\n Array.from({ length: Math.max(0, text.length - needle.value.length + 1) }, (_, at) =>\n text.slice(at, at + needle.value.length),\n ).some((part) => collator.value.compare(part, needle.value) === 0))(\n (item.keywords === undefined\n ? item.label\n : `${item.label} ${item.keywords.join(' ')}`\n ).normalize('NFC'),\n ),\n)\nconst shown = computed(() =>\n props.filter === false ? props.items : props.items.filter((item) => matches.value(item)),\n)\nconst runs = computed(() =>\n shown.value.reduce(\n (into, item) => (\n item.group !== undefined && into.at(-1)?.[0]?.group === item.group\n ? into.at(-1)?.push(item)\n : into.push([item]),\n into\n ),\n [] as CommandItem[][],\n ),\n)\nconst firstEnabled = computed(() => shown.value.find((item) => item.disabled !== true)?.id)\nconst showEmpty = computed(() => !props.loading && shown.value.length === 0)\nconst announcement = computed(() =>\n props.loading\n ? 'Loading commands…'\n : shown.value.length === 0\n ? props.emptyMessage\n : `${shown.value.length} commands`,\n)\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n collection: zag.collection({\n items: shown.value,\n itemToValue: (item) => item.id,\n itemToString: (item) => item.label,\n isItemDisabled: (item) => item.disabled === true,\n }),\n open: true,\n disableLayer: true,\n value: [],\n closeOnSelect: false,\n selectionBehavior: 'preserve' as const,\n allowCustomValue: true,\n inputBehavior: 'autohighlight' as const,\n placeholder: props.placeholder,\n onInputValueChange: (details) => {\n ;((query.value = details.inputValue), emit('queryChange', details.inputValue))\n },\n onSelect: (details) => {\n ;(props.items.find((item) => item.id === details.itemValue)?.onSelect(), emit('command'))\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst effect1 = () => {\n emit('queryChange', query.value)\n}\nonMounted(effect1)\nconst effect2 = () => {\n api.value.highlightedValue === null &&\n firstEnabled.value !== undefined &&\n api.value.setHighlightValue(firstEnabled.value)\n}\nonMounted(effect2)\nwatch(() => api.value.highlightedValue ?? firstEnabled.value, effect2, { flush: 'post' })\n</script>\n\n<template>\n <div :class=\"styles.search\">\n <Icon name=\"search\" size=\"md\" />\n <!-- input -->\n <input\n v-bind=\"api.getInputProps()\"\n :class=\"styles.input\"\n :aria-label=\"placeholder\"\n @keydown=\"$event.key === 'Escape' && !composingKey($event) && api.setInputValue('')\"\n />\n <Kbd>\n {{ escapeHint }}\n </Kbd>\n </div>\n <div :class=\"styles.body\" data-dialog-part=\"body\">\n <!-- list -->\n <ul\n v-bind=\"api.getContentProps()\"\n :class=\"styles.listbox\"\n :hidden=\"undefined\"\n :aria-labelledby=\"undefined\"\n aria-label=\"Suggestions\"\n >\n <template v-for=\"(run, at) in runs\" :key=\"run.map((item) => item.id).join(' ')\">\n <template v-if=\"run[0]?.group === undefined\">\n <template v-for=\"item in run\" :key=\"`${query}/${item.id}`\">\n <!-- item -->\n <li\n v-bind=\"api.getItemProps({ item: item, persistFocus: true })\"\n :class=\"styles.item\"\n :aria-labelledby=\"`${uid}-label-${item.id}`\"\n >\n <span v-if=\"item.icon !== undefined\" :class=\"styles.glyph\">\n <Icon :name=\"item.icon\" size=\"sm\" />\n </span>\n <span :class=\"styles.label\" :id=\"`${uid}-label-${item.id}`\">\n {{ item.label }}\n </span>\n <span v-if=\"item.hint !== undefined\" :class=\"styles.hint\">\n <Kbd>\n {{ item.hint }}\n </Kbd>\n </span>\n </li>\n </template>\n </template>\n <li v-else :class=\"styles.section\" role=\"presentation\">\n <span\n v-bind=\"api.getItemGroupLabelProps({ htmlFor: `${at}` })\"\n :class=\"styles.groupLabel\"\n >\n {{ run[0]?.group }}\n </span>\n <ul v-bind=\"api.getItemGroupProps({ id: `${at}` })\" :class=\"styles.group\">\n <template v-for=\"item in run\" :key=\"`${query}/${item.id}`\">\n <!-- item -->\n <li\n v-bind=\"api.getItemProps({ item: item, persistFocus: true })\"\n :class=\"styles.item\"\n :aria-labelledby=\"`${uid}-label-${item.id}`\"\n >\n <span v-if=\"item.icon !== undefined\" :class=\"styles.glyph\">\n <Icon :name=\"item.icon\" size=\"sm\" />\n </span>\n <span :class=\"styles.label\" :id=\"`${uid}-label-${item.id}`\">\n {{ item.label }}\n </span>\n <span v-if=\"item.hint !== undefined\" :class=\"styles.hint\">\n <Kbd>\n {{ item.hint }}\n </Kbd>\n </span>\n </li>\n </template>\n </ul>\n </li>\n </template>\n </ul>\n <div v-if=\"loading\" :class=\"styles.rows\" aria-hidden=\"true\">\n <template v-for=\"skeleton in [0, 1, 2]\" :key=\"skeleton\">\n <div :class=\"styles.row\">\n <Skeleton textStep=\"sm\" />\n </div>\n </template>\n </div>\n <div v-if=\"showEmpty\" :class=\"styles.empty\" aria-hidden=\"true\">\n {{ emptyMessage }}\n </div>\n </div>\n <div :class=\"styles.status\" role=\"status\" aria-live=\"polite\">\n {{ announcement }}\n </div>\n</template>\n"],"mappings":""}