@vokril/ui-solid 0.38.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/Alert-BgbPhgp8.js +89 -0
  3. package/dist/Alert-Dx2e4_YF.cjs +1 -0
  4. package/dist/{AttributeGrid-BNQaSpfE.cjs → AttributeGrid-Blocxn7A.cjs} +1 -1
  5. package/dist/{AttributeGrid-tjVwSI4h.js → AttributeGrid-CsKRlPZZ.js} +4 -4
  6. package/dist/{Button-DDkZzT-k.js → Button-CetJ24ea.js} +1 -1
  7. package/dist/{Button-D5Ihf90u.cjs → Button-D61wuA9o.cjs} +1 -1
  8. package/dist/{CommandPalette-CGfXynfl.js → CommandPalette-1XfwrR2D.js} +49 -50
  9. package/dist/CommandPalette-DgoP-6h9.cjs +2 -0
  10. package/dist/{CopyButton-gHxA-WL_.js → CopyButton-CLrr2zFh.js} +1 -1
  11. package/dist/{CopyButton-Hb6c_Oq1.cjs → CopyButton-CuSlegAn.cjs} +1 -1
  12. package/dist/{DateRangePicker-EEcp-IbM.cjs → DateRangePicker-CZddrCVN.cjs} +1 -1
  13. package/dist/{DateRangePicker-B36NSGMS.js → DateRangePicker-DL1j6ww5.js} +5 -5
  14. package/dist/{GuidedTour-DicNwdq3.cjs → GuidedTour-BxmPJE-B.cjs} +1 -1
  15. package/dist/{GuidedTour-bcaKpXPX.js → GuidedTour-DzmN3Cfq.js} +4 -4
  16. package/dist/{HostPortal-DsVQEH2q.js → HostPortal-BLXmZOjO.js} +1 -1
  17. package/dist/{HostPortal-C1xTPZYj.cjs → HostPortal-C9GwdgPS.cjs} +1 -1
  18. package/dist/{IconPicker-7sF4n6vD.js → IconPicker-BuQkoRRB.js} +5 -5
  19. package/dist/{IconPicker-D60txter.cjs → IconPicker-xydEBrKw.cjs} +1 -1
  20. package/dist/{Input-agpwYeJd.js → Input-BDjgWn-u.js} +1 -1
  21. package/dist/{Input-DTm6v0fK.cjs → Input-C43Tmb2p.cjs} +1 -1
  22. package/dist/Modal-DospFxAr.js +771 -0
  23. package/dist/Modal-Dq7OTcoz.cjs +1 -0
  24. package/dist/{PageSkeleton-XNfK8xoY.js → PageSkeleton-BepNM2BF.js} +5 -5
  25. package/dist/{PageSkeleton-jljSUpu1.cjs → PageSkeleton-BuXZpnIO.cjs} +1 -1
  26. package/dist/{SearchableSelect-CXPSoFqf.cjs → SearchableSelect-CAUrUaqw.cjs} +1 -1
  27. package/dist/{SearchableSelect-DFdGGNR6.js → SearchableSelect-CW1lGmGW.js} +3 -3
  28. package/dist/{StatusBarNotificationBell-MXX_K48w.cjs → StatusBarNotificationBell-BIg-eu1Y.cjs} +17 -17
  29. package/dist/{StatusBarNotificationBell-CnmMzXzD.js → StatusBarNotificationBell-DvKKK9jh.js} +90 -89
  30. package/dist/{Stepper-BLKD4ub3.cjs → Stepper-A3Z6h1Zw.cjs} +1 -1
  31. package/dist/{Stepper-D0rrrtAN.js → Stepper-C-tnKle4.js} +1 -1
  32. package/dist/{Textarea-Ds3bMrq9.cjs → Textarea-B4v7GN1X.cjs} +1 -1
  33. package/dist/{Textarea-CKJDNOaL.js → Textarea-D8Gqx3oX.js} +1 -1
  34. package/dist/{TimeSeriesChart-B9cqfs1M.cjs → TimeSeriesChart-XcXmKly6.cjs} +1 -1
  35. package/dist/{TimeSeriesChart-DBARL8HG.js → TimeSeriesChart-sVMXG6eX.js} +1 -1
  36. package/dist/ToggleButton-CrVTb5ZP.js +2230 -0
  37. package/dist/ToggleButton-sXKMeceC.cjs +1 -0
  38. package/dist/_internal/platform/settings/registry/fieldSpec.d.cts +20 -0
  39. package/dist/_internal/platform/settings/registry/fieldSpec.d.ts +20 -0
  40. package/dist/charts/index.cjs +1 -1
  41. package/dist/charts/index.js +1 -1
  42. package/dist/createDialogShellFocus-CLuQ1s0l.cjs +1 -0
  43. package/dist/createDialogShellFocus-GXYQh0Oh.js +108 -0
  44. package/dist/createResizableSidebar-BGseZrMh.js +1175 -0
  45. package/dist/createResizableSidebar-Beu5DVYW.cjs +1 -0
  46. package/dist/{de-CSWSMGCG.js → de-C-oEMFi3.js} +69 -57
  47. package/dist/de-CMM2gThP.cjs +1 -0
  48. package/dist/{server/defineSettings-Di1sG81q.js → defineSettings-CDbllpYi.js} +97 -97
  49. package/dist/defineSettings-D2AaV355.cjs +1 -0
  50. package/dist/desktop/index.cjs +1 -1
  51. package/dist/desktop/index.js +3 -3
  52. package/dist/feedback/Alert.d.cts +2 -0
  53. package/dist/feedback/Alert.d.ts +2 -0
  54. package/dist/feedback/index.cjs +1 -1
  55. package/dist/feedback/index.js +21 -22
  56. package/dist/forms/NumberInput.d.cts +6 -0
  57. package/dist/forms/NumberInput.d.ts +6 -0
  58. package/dist/forms/RadioGroup.d.cts +5 -0
  59. package/dist/forms/RadioGroup.d.ts +5 -0
  60. package/dist/forms/Slider.d.cts +11 -0
  61. package/dist/forms/Slider.d.ts +11 -0
  62. package/dist/forms/index.cjs +1 -1
  63. package/dist/forms/index.js +32 -31
  64. package/dist/grid/index.cjs +1 -1
  65. package/dist/grid/index.js +1 -1
  66. package/dist/{server/headerIconOverrides-Dh2PaOcO.js → headerIconOverrides-C91HoTIu.js} +1 -1
  67. package/dist/{headerIconOverrides-Bn1QuODq.cjs → headerIconOverrides-DldzXQvu.cjs} +1 -1
  68. package/dist/host/index.cjs +1 -1
  69. package/dist/host/index.js +1 -1
  70. package/dist/i18n/index.cjs +1 -1
  71. package/dist/i18n/index.js +1 -1
  72. package/dist/i18n/messageKeys.d.cts +1 -1
  73. package/dist/i18n/messageKeys.d.ts +1 -1
  74. package/dist/{i18n-BJiKwNyr.js → i18n-DlGM3NSR.js} +2 -2
  75. package/dist/{server/i18n-DrmazJQC.cjs → i18n-OBn_hNf7.cjs} +1 -1
  76. package/dist/index.cjs +1 -1
  77. package/dist/index.js +386 -382
  78. package/dist/layout/SettingsCard.d.cts +61 -4
  79. package/dist/layout/SettingsCard.d.ts +61 -4
  80. package/dist/layout/SettingsPageHeader.d.cts +26 -0
  81. package/dist/layout/SettingsPageHeader.d.ts +26 -0
  82. package/dist/layout/SettingsSaveBar.d.cts +42 -0
  83. package/dist/layout/SettingsSaveBar.d.ts +42 -0
  84. package/dist/layout/index.cjs +1 -1
  85. package/dist/layout/index.d.cts +2 -0
  86. package/dist/layout/index.d.ts +2 -0
  87. package/dist/layout/index.js +19 -16
  88. package/dist/mainRealmDom-DPOYak2f.js +241 -0
  89. package/dist/mainRealmDom-DR-EKDyJ.cjs +1 -0
  90. package/dist/navigation/index.cjs +1 -1
  91. package/dist/navigation/index.js +1 -1
  92. package/dist/notifications/index.cjs +1 -1
  93. package/dist/notifications/index.js +2 -2
  94. package/dist/overlay/index.cjs +1 -1
  95. package/dist/overlay/index.js +81 -81
  96. package/dist/{rowSource-BWm-kZHe.cjs → rowSource-0lKPyvgm.cjs} +1 -1
  97. package/dist/{rowSource-DEulMv5F.js → rowSource-CmzboECA.js} +1 -1
  98. package/dist/server/Alert-B1B24V83.cjs +1 -0
  99. package/dist/server/Alert-C-bpozmP.js +75 -0
  100. package/dist/server/{AttributeGrid-fT5-b9ZJ.cjs → AttributeGrid-B7AIcZul.cjs} +1 -1
  101. package/dist/server/{AttributeGrid-BmS2U5Gz.js → AttributeGrid-BQf2iHQe.js} +4 -4
  102. package/dist/server/{Button-XL9Os1pR.js → Button-BHfCFxcX.js} +1 -1
  103. package/dist/server/{Button-lNnNp0um.cjs → Button-a1cMbvpn.cjs} +1 -1
  104. package/dist/server/CommandPalette-BMwxv_Yy.cjs +1 -0
  105. package/dist/server/{CommandPalette-CgTnmrYx.js → CommandPalette-DorJXXoB.js} +59 -60
  106. package/dist/server/{CopyButton-BpbGM72h.cjs → CopyButton-Bcbw6N6c.cjs} +1 -1
  107. package/dist/server/{CopyButton-BdU_8aZB.js → CopyButton-Dr5AlcV5.js} +1 -1
  108. package/dist/server/{DateRangePicker-ClJHlO9g.cjs → DateRangePicker-Cwkbvs3n.cjs} +1 -1
  109. package/dist/server/{DateRangePicker-DGXmbyCR.js → DateRangePicker-NI3zLIP6.js} +5 -5
  110. package/dist/server/{GuidedTour-CCkg6Paz.js → GuidedTour-DhVy485y.js} +4 -4
  111. package/dist/server/{GuidedTour-PETCExHX.cjs → GuidedTour-JPHl9qAv.cjs} +1 -1
  112. package/dist/server/{HostPortal-BNGZ8nw4.cjs → HostPortal-B245bak4.cjs} +1 -1
  113. package/dist/server/{HostPortal-CdhnKAWT.js → HostPortal-DdVallGi.js} +1 -1
  114. package/dist/server/IconPicker-Xb9VX3Lk.cjs +1 -0
  115. package/dist/server/IconPicker-bUaMtcMV.js +177 -0
  116. package/dist/server/{Input-DFAn8kou.js → Input-D128drd7.js} +1 -1
  117. package/dist/server/{Input-DOTXKwhw.cjs → Input-K_0iETD8.cjs} +1 -1
  118. package/dist/server/Modal-CL3mMf3_.js +666 -0
  119. package/dist/server/Modal-J5LcYq9z.cjs +1 -0
  120. package/dist/server/{PageSkeleton--ssP7Di9.cjs → PageSkeleton-BvTmjdKh.cjs} +1 -1
  121. package/dist/server/{PageSkeleton-DRPIcDHU.js → PageSkeleton-DJpDtuFe.js} +5 -5
  122. package/dist/server/{SearchableSelect-DsHkuiTW.cjs → SearchableSelect-CjdMwMHi.cjs} +1 -1
  123. package/dist/server/{SearchableSelect-y0Fr7cPS.js → SearchableSelect-Dr15WXR0.js} +3 -3
  124. package/dist/server/{StatusBarNotificationBell-BrHZ2r3X.cjs → StatusBarNotificationBell-CyNRKMtb.cjs} +16 -16
  125. package/dist/server/{StatusBarNotificationBell-CY16bTyI.js → StatusBarNotificationBell-DzrBLG0C.js} +93 -92
  126. package/dist/server/{Stepper-BOVzsqcG.cjs → Stepper-BnoVFCBM.cjs} +1 -1
  127. package/dist/server/{Stepper-DC34G5fk.js → Stepper-CGjnk38v.js} +1 -1
  128. package/dist/server/{Textarea-CL2wYpW7.js → Textarea-d2Sgpcfv.js} +1 -1
  129. package/dist/server/{Textarea-D43xOjAJ.cjs → Textarea-vI7EVzh7.cjs} +1 -1
  130. package/dist/server/{TimeSeriesChart-CP-2M3R7.js → TimeSeriesChart-DryJINM5.js} +1 -1
  131. package/dist/server/{TimeSeriesChart-CL1GjjV5.cjs → TimeSeriesChart-GRcqWnYh.cjs} +1 -1
  132. package/dist/server/ToggleButton-BTKq5h-y.js +1409 -0
  133. package/dist/server/ToggleButton-J-cKrSwa.cjs +1 -0
  134. package/dist/server/VpRefresh-CtYYafTv.cjs +1 -0
  135. package/dist/server/{VpRefresh-Dlqsm9Va.js → VpRefresh-D5QKuisA.js} +21 -7
  136. package/dist/server/{VpUpload-_n-qdj9q.js → VpUpload-CSRCHUzX.js} +13 -27
  137. package/dist/server/VpUpload-D6fJ79Sq.cjs +1 -0
  138. package/dist/server/charts/index.cjs +1 -1
  139. package/dist/server/charts/index.js +1 -1
  140. package/dist/server/createDialogShellFocus-BzUAkxa_.js +130 -0
  141. package/dist/server/createDialogShellFocus-DrYaDg7X.cjs +1 -0
  142. package/dist/server/createResizableSidebar-Bukt4w81.cjs +1 -0
  143. package/dist/server/createResizableSidebar-ClRpRZLh.js +866 -0
  144. package/dist/server/{de-CSWSMGCG.js → de-C-oEMFi3.js} +69 -57
  145. package/dist/server/de-CMM2gThP.cjs +1 -0
  146. package/dist/{defineSettings-Di1sG81q.js → server/defineSettings-CDbllpYi.js} +97 -97
  147. package/dist/server/defineSettings-D2AaV355.cjs +1 -0
  148. package/dist/server/desktop/index.cjs +1 -1
  149. package/dist/server/desktop/index.js +3 -3
  150. package/dist/server/feedback/index.cjs +1 -1
  151. package/dist/server/feedback/index.js +21 -22
  152. package/dist/server/forms/index.cjs +1 -1
  153. package/dist/server/forms/index.js +32 -31
  154. package/dist/server/grid/index.cjs +1 -1
  155. package/dist/server/grid/index.js +1 -1
  156. package/dist/{headerIconOverrides-Dh2PaOcO.js → server/headerIconOverrides-C91HoTIu.js} +1 -1
  157. package/dist/server/{headerIconOverrides-Bn1QuODq.cjs → headerIconOverrides-DldzXQvu.cjs} +1 -1
  158. package/dist/server/host/index.cjs +1 -1
  159. package/dist/server/host/index.js +1 -1
  160. package/dist/server/i18n/index.cjs +1 -1
  161. package/dist/server/i18n/index.js +1 -1
  162. package/dist/server/{i18n-BJiKwNyr.js → i18n-DlGM3NSR.js} +2 -2
  163. package/dist/{i18n-DrmazJQC.cjs → server/i18n-OBn_hNf7.cjs} +1 -1
  164. package/dist/server/{index-vTHpJ130.js → index-BglF6V2r.js} +3878 -3890
  165. package/dist/server/index-CxpRbGi3.cjs +1 -0
  166. package/dist/server/index.cjs +1 -1
  167. package/dist/server/index.js +370 -366
  168. package/dist/server/layout/index.cjs +1 -1
  169. package/dist/server/layout/index.js +19 -16
  170. package/dist/server/mainRealmDom-Cq0tErb0.cjs +1 -0
  171. package/dist/server/mainRealmDom-D514acmj.js +208 -0
  172. package/dist/server/navigation/index.cjs +1 -1
  173. package/dist/server/navigation/index.js +1 -1
  174. package/dist/server/notifications/index.cjs +1 -1
  175. package/dist/server/notifications/index.js +2 -2
  176. package/dist/server/overlay/index.cjs +1 -1
  177. package/dist/server/overlay/index.js +88 -88
  178. package/dist/server/{rowSource-WElLH5Tb.js → rowSource-CeIqwlhj.js} +1 -1
  179. package/dist/server/{rowSource-BOt_vVGY.cjs → rowSource-slZQZSsP.cjs} +1 -1
  180. package/dist/server/settings/index.cjs +1 -1
  181. package/dist/server/settings/index.js +3 -3
  182. package/dist/server/tr-CVBPLA-r.cjs +1 -0
  183. package/dist/{tr-BL1soeyr.js → server/tr-Dk9_qrmk.js} +68 -56
  184. package/dist/server/tree/index.cjs +1 -1
  185. package/dist/server/tree/index.js +1 -1
  186. package/dist/{useSettingsSubscription-DLEk4k4j.js → server/useSettingsSubscription-CRRJdYJ-.js} +1 -1
  187. package/dist/{useSettingsSubscription-DKjCwmRd.cjs → server/useSettingsSubscription-DGo_GObq.cjs} +1 -1
  188. package/dist/settings/index.cjs +1 -1
  189. package/dist/settings/index.js +3 -3
  190. package/dist/solid/_internal/platform/settings/registry/defineSettings.js +6 -0
  191. package/dist/solid/feedback/Alert.jsx +8 -0
  192. package/dist/solid/feedback/Alert.module.css.js +1 -0
  193. package/dist/solid/forms/NumberInput.jsx +15 -7
  194. package/dist/solid/forms/RadioGroup.jsx +6 -1
  195. package/dist/solid/forms/RadioGroup.module.css.js +2 -0
  196. package/dist/solid/forms/Slider.jsx +19 -2
  197. package/dist/solid/forms/Slider.module.css.js +3 -1
  198. package/dist/solid/i18n/locales/de.json +10 -1
  199. package/dist/solid/i18n/locales/tr.json +10 -1
  200. package/dist/solid/layout/SettingsCard.jsx +76 -5
  201. package/dist/solid/layout/SettingsCard.module.css.js +14 -1
  202. package/dist/solid/layout/SettingsPageHeader.jsx +34 -0
  203. package/dist/solid/layout/SettingsSaveBar.jsx +34 -0
  204. package/dist/solid/layout/SettingsSaveBar.module.css.js +9 -0
  205. package/dist/solid/layout/SettingsSubpageHeader.module.css.js +3 -0
  206. package/dist/solid/layout/index.js +2 -0
  207. package/dist/style.css +1 -1
  208. package/dist/tr-CVBPLA-r.cjs +1 -0
  209. package/dist/{server/tr-BL1soeyr.js → tr-Dk9_qrmk.js} +68 -56
  210. package/dist/tree/index.cjs +1 -1
  211. package/dist/tree/index.js +1 -1
  212. package/dist/ui.css +1 -1
  213. package/dist/{server/useSettingsSubscription-DLEk4k4j.js → useSettingsSubscription-CRRJdYJ-.js} +1 -1
  214. package/dist/{server/useSettingsSubscription-DKjCwmRd.cjs → useSettingsSubscription-DGo_GObq.cjs} +1 -1
  215. package/package.json +1 -1
  216. package/dist/Alert-DCIet3Ol.cjs +0 -1
  217. package/dist/Alert-DyBaU25r.js +0 -59
  218. package/dist/CommandPalette-CdiIycaW.cjs +0 -2
  219. package/dist/Kbd-BDZklpw9.cjs +0 -1
  220. package/dist/Kbd-DF6Tvp8V.js +0 -191
  221. package/dist/Modal-C1vp7z7l.cjs +0 -1
  222. package/dist/Modal-aKptl9ig.js +0 -599
  223. package/dist/ToggleButton-BZFJnMrm.cjs +0 -1
  224. package/dist/ToggleButton-CY_LrcKr.js +0 -2186
  225. package/dist/createDialogShellFocus-C2FKc2rv.cjs +0 -1
  226. package/dist/createDialogShellFocus-CgjiySLA.js +0 -282
  227. package/dist/createResizableSidebar-BqW3Ozgd.cjs +0 -1
  228. package/dist/createResizableSidebar-CKbN032u.js +0 -853
  229. package/dist/de-BQbrl0SL.cjs +0 -1
  230. package/dist/defineSettings-D0CSMcyy.cjs +0 -1
  231. package/dist/mainRealmDom-BcPuVvcy.cjs +0 -1
  232. package/dist/mainRealmDom-DydRT2Us.js +0 -54
  233. package/dist/server/Alert-DWGobTUk.js +0 -45
  234. package/dist/server/Alert-DulmzLv9.cjs +0 -1
  235. package/dist/server/CommandPalette-C0MbWZHM.cjs +0 -1
  236. package/dist/server/IconPicker-B5lUuCxR.js +0 -162
  237. package/dist/server/IconPicker-BfRZtScr.cjs +0 -1
  238. package/dist/server/Kbd-BPlUnyiy.cjs +0 -1
  239. package/dist/server/Kbd-BTbz_c_e.js +0 -170
  240. package/dist/server/Modal-BI3FtG-d.cjs +0 -1
  241. package/dist/server/Modal-Cbmikig8.js +0 -426
  242. package/dist/server/ToggleButton-CgiblDAs.js +0 -1375
  243. package/dist/server/ToggleButton-i_dhigBM.cjs +0 -1
  244. package/dist/server/VpRefresh-CEyHVNo-.cjs +0 -1
  245. package/dist/server/VpUpload-Bzy0ViGU.cjs +0 -1
  246. package/dist/server/createDialogShellFocus-BXCNQyU9.js +0 -370
  247. package/dist/server/createDialogShellFocus-CKsZl9Uz.cjs +0 -1
  248. package/dist/server/createResizableSidebar-B8zMo4jJ.js +0 -599
  249. package/dist/server/createResizableSidebar-DXFKY01F.cjs +0 -1
  250. package/dist/server/de-BQbrl0SL.cjs +0 -1
  251. package/dist/server/defineSettings-D0CSMcyy.cjs +0 -1
  252. package/dist/server/index-CME-IDQX.cjs +0 -1
  253. package/dist/server/mainRealmDom-BuGEeM_r.cjs +0 -1
  254. package/dist/server/mainRealmDom-CzckS_ss.js +0 -42
  255. package/dist/server/tr-sOAsJS3P.cjs +0 -1
  256. package/dist/tr-sOAsJS3P.cjs +0 -1
@@ -50,10 +50,30 @@ export interface SettingsRowProps {
50
50
  leading?: JSX.Element | undefined;
51
51
  /** Badges after the label, on its line. */
52
52
  badges?: JSX.Element | undefined;
53
- /** Marks the setting as changed from its default with a dot after the label. */
53
+ /**
54
+ * The saved value differs from the default: a "Customized" badge after the label. With
55
+ * `onReset` the badge is a button that puts the default back.
56
+ */
54
57
  modified?: boolean | undefined;
55
- /** Accessible name of the `modified` dot. Default: the translated "Modified". */
58
+ /** Text of the `modified` badge. Default: the translated "Customized". */
56
59
  modifiedLabel?: string | undefined;
60
+ /** The default value as text ("13 px"), named in the `modified` badge's tooltip. */
61
+ defaultLabel?: string | undefined;
62
+ /** With `modified`: resets the setting to its default. */
63
+ onReset?: (() => void) | undefined;
64
+ /**
65
+ * The value is changed but not saved yet: a bar on the row's leading edge. The page's
66
+ * `SettingsSaveBar` saves or reverts it with the others.
67
+ */
68
+ pending?: boolean | undefined;
69
+ /** With `pending`: a button after the label that puts this setting's saved value back. */
70
+ onRevert?: (() => void) | undefined;
71
+ /**
72
+ * Longer background information than the one-sentence `description`: a help button after the
73
+ * label shows it on hover and focus. The text stays in the DOM, visually hidden, so the control
74
+ * is described by it and a settings search finds it.
75
+ */
76
+ help?: JSX.Element | undefined;
57
77
  /**
58
78
  * Dims the label and description. The control is disabled by the caller (its own `disabled`),
59
79
  * and the description should say why.
@@ -61,6 +81,17 @@ export interface SettingsRowProps {
61
81
  disabled?: boolean | undefined;
62
82
  /** `subtle` paints a quiet note row; `warning` a row that needs attention. Default `default`. */
63
83
  tone?: SettingsRowTone | undefined;
84
+ /**
85
+ * The row's control must be filled in: a red mark after the label, and `aria-required` on the
86
+ * control (through the same field context that names it).
87
+ */
88
+ required?: boolean | undefined;
89
+ /**
90
+ * What is wrong with the value: a message under the row in the error colour, read politely when
91
+ * it appears. The control is described by it (`aria-describedby`) and marked `aria-invalid`, and
92
+ * the row takes an error tone. Pre-translated; leave it `undefined` while the value is fine.
93
+ */
94
+ error?: JSX.Element | undefined;
64
95
  /** Full-width content under the row: an inline warning with its action, an editor. */
65
96
  footer?: JSX.Element | undefined;
66
97
  /**
@@ -72,6 +103,11 @@ export interface SettingsRowProps {
72
103
  openLabel?: string | undefined;
73
104
  /** `id` of the open button, for the host to return focus to it. */
74
105
  openButtonId?: string | undefined;
106
+ /**
107
+ * Puts the control under the text, across the row's width, instead of at the end: picture
108
+ * cards, a list of items, a row of day buttons that do not fit beside the label.
109
+ */
110
+ stack?: boolean | undefined;
75
111
  class?: string | undefined;
76
112
  }
77
113
  /**
@@ -102,7 +138,28 @@ export interface SettingsAdvancedRowProps {
102
138
  }
103
139
  /**
104
140
  * A row inside a `SettingsCard` that folds the card's less used settings away: "› Advanced",
105
- * what is inside, and a badge. Opening it reveals its rows in the same card, indented. Built on
106
- * `Disclosure`: a real button with `aria-expanded` and `aria-controls`.
141
+ * what is inside, and a badge. Opening it reveals its rows in the same card, on the muted
142
+ * ground that also carries `SettingsDependentRows`. Built on `Disclosure`: a real button with
143
+ * `aria-expanded` and `aria-controls`.
107
144
  */
108
145
  export declare function SettingsAdvancedRow(props: SettingsAdvancedRowProps): JSX.Element;
146
+ export interface SettingsDependentRowsProps {
147
+ /**
148
+ * Shown while the setting they depend on allows them: a switch is on, a select has the value
149
+ * they apply to. Closed rows are not rendered, so a host's settings search should pass `true`
150
+ * while it searches, as it does for `SettingsAdvancedRow`.
151
+ */
152
+ open: boolean;
153
+ /** `id` of the area, for the controlling switch's `aria-controls`. */
154
+ id?: string | undefined;
155
+ /** The dependent `SettingsRow`s. */
156
+ children: JSX.Element;
157
+ class?: string | undefined;
158
+ }
159
+ /**
160
+ * Settings that only apply while another one allows them, placed right under that setting's
161
+ * row: "Keep entries for" under "Delete old entries automatically". They sit on the muted ground
162
+ * the Advanced rows use, aligned with the other rows, and appear and disappear with their parent.
163
+ * The short reveal plays only when the area opens, never when the page first draws it.
164
+ */
165
+ export declare function SettingsDependentRows(props: SettingsDependentRowsProps): JSX.Element;
@@ -50,10 +50,30 @@ export interface SettingsRowProps {
50
50
  leading?: JSX.Element | undefined;
51
51
  /** Badges after the label, on its line. */
52
52
  badges?: JSX.Element | undefined;
53
- /** Marks the setting as changed from its default with a dot after the label. */
53
+ /**
54
+ * The saved value differs from the default: a "Customized" badge after the label. With
55
+ * `onReset` the badge is a button that puts the default back.
56
+ */
54
57
  modified?: boolean | undefined;
55
- /** Accessible name of the `modified` dot. Default: the translated "Modified". */
58
+ /** Text of the `modified` badge. Default: the translated "Customized". */
56
59
  modifiedLabel?: string | undefined;
60
+ /** The default value as text ("13 px"), named in the `modified` badge's tooltip. */
61
+ defaultLabel?: string | undefined;
62
+ /** With `modified`: resets the setting to its default. */
63
+ onReset?: (() => void) | undefined;
64
+ /**
65
+ * The value is changed but not saved yet: a bar on the row's leading edge. The page's
66
+ * `SettingsSaveBar` saves or reverts it with the others.
67
+ */
68
+ pending?: boolean | undefined;
69
+ /** With `pending`: a button after the label that puts this setting's saved value back. */
70
+ onRevert?: (() => void) | undefined;
71
+ /**
72
+ * Longer background information than the one-sentence `description`: a help button after the
73
+ * label shows it on hover and focus. The text stays in the DOM, visually hidden, so the control
74
+ * is described by it and a settings search finds it.
75
+ */
76
+ help?: JSX.Element | undefined;
57
77
  /**
58
78
  * Dims the label and description. The control is disabled by the caller (its own `disabled`),
59
79
  * and the description should say why.
@@ -61,6 +81,17 @@ export interface SettingsRowProps {
61
81
  disabled?: boolean | undefined;
62
82
  /** `subtle` paints a quiet note row; `warning` a row that needs attention. Default `default`. */
63
83
  tone?: SettingsRowTone | undefined;
84
+ /**
85
+ * The row's control must be filled in: a red mark after the label, and `aria-required` on the
86
+ * control (through the same field context that names it).
87
+ */
88
+ required?: boolean | undefined;
89
+ /**
90
+ * What is wrong with the value: a message under the row in the error colour, read politely when
91
+ * it appears. The control is described by it (`aria-describedby`) and marked `aria-invalid`, and
92
+ * the row takes an error tone. Pre-translated; leave it `undefined` while the value is fine.
93
+ */
94
+ error?: JSX.Element | undefined;
64
95
  /** Full-width content under the row: an inline warning with its action, an editor. */
65
96
  footer?: JSX.Element | undefined;
66
97
  /**
@@ -72,6 +103,11 @@ export interface SettingsRowProps {
72
103
  openLabel?: string | undefined;
73
104
  /** `id` of the open button, for the host to return focus to it. */
74
105
  openButtonId?: string | undefined;
106
+ /**
107
+ * Puts the control under the text, across the row's width, instead of at the end: picture
108
+ * cards, a list of items, a row of day buttons that do not fit beside the label.
109
+ */
110
+ stack?: boolean | undefined;
75
111
  class?: string | undefined;
76
112
  }
77
113
  /**
@@ -102,7 +138,28 @@ export interface SettingsAdvancedRowProps {
102
138
  }
103
139
  /**
104
140
  * A row inside a `SettingsCard` that folds the card's less used settings away: "› Advanced",
105
- * what is inside, and a badge. Opening it reveals its rows in the same card, indented. Built on
106
- * `Disclosure`: a real button with `aria-expanded` and `aria-controls`.
141
+ * what is inside, and a badge. Opening it reveals its rows in the same card, on the muted
142
+ * ground that also carries `SettingsDependentRows`. Built on `Disclosure`: a real button with
143
+ * `aria-expanded` and `aria-controls`.
107
144
  */
108
145
  export declare function SettingsAdvancedRow(props: SettingsAdvancedRowProps): JSX.Element;
146
+ export interface SettingsDependentRowsProps {
147
+ /**
148
+ * Shown while the setting they depend on allows them: a switch is on, a select has the value
149
+ * they apply to. Closed rows are not rendered, so a host's settings search should pass `true`
150
+ * while it searches, as it does for `SettingsAdvancedRow`.
151
+ */
152
+ open: boolean;
153
+ /** `id` of the area, for the controlling switch's `aria-controls`. */
154
+ id?: string | undefined;
155
+ /** The dependent `SettingsRow`s. */
156
+ children: JSX.Element;
157
+ class?: string | undefined;
158
+ }
159
+ /**
160
+ * Settings that only apply while another one allows them, placed right under that setting's
161
+ * row: "Keep entries for" under "Delete old entries automatically". They sit on the muted ground
162
+ * the Advanced rows use, aligned with the other rows, and appear and disappear with their parent.
163
+ * The short reveal plays only when the area opens, never when the page first draws it.
164
+ */
165
+ export declare function SettingsDependentRows(props: SettingsDependentRowsProps): JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { type JSX } from 'solid-js';
2
+ export interface SettingsPageHeaderProps {
3
+ /** The page's title. Pre-translated by the caller. */
4
+ title: JSX.Element;
5
+ /** A muted line under the title: what the page is for. */
6
+ description?: JSX.Element | undefined;
7
+ /** A small line above the title: the group the page belongs to ("SQL Editor"). */
8
+ eyebrow?: JSX.Element | undefined;
9
+ /** Badges after the title, for example where the values are stored ("Vault"). */
10
+ badges?: JSX.Element | undefined;
11
+ /** A short muted note under the description, for example "Changes apply at once." */
12
+ note?: JSX.Element | undefined;
13
+ /** Controls on the right of the title: a documentation link, a "More actions" menu. */
14
+ actions?: JSX.Element | undefined;
15
+ /** Heading level of `title`. Default 2. */
16
+ headingLevel?: 1 | 2 | 3 | undefined;
17
+ /** Moves focus to the title when the header mounts. Default false. */
18
+ focusOnMount?: boolean | undefined;
19
+ class?: string | undefined;
20
+ }
21
+ /**
22
+ * The top of a settings page: an optional group name, the title with its badges, a description,
23
+ * an optional note, and actions on the right. A subpage opened from one of its rows uses
24
+ * `SettingsSubpageHeader`, which adds the back button.
25
+ */
26
+ export declare function SettingsPageHeader(props: SettingsPageHeaderProps): JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { type JSX } from 'solid-js';
2
+ export interface SettingsPageHeaderProps {
3
+ /** The page's title. Pre-translated by the caller. */
4
+ title: JSX.Element;
5
+ /** A muted line under the title: what the page is for. */
6
+ description?: JSX.Element | undefined;
7
+ /** A small line above the title: the group the page belongs to ("SQL Editor"). */
8
+ eyebrow?: JSX.Element | undefined;
9
+ /** Badges after the title, for example where the values are stored ("Vault"). */
10
+ badges?: JSX.Element | undefined;
11
+ /** A short muted note under the description, for example "Changes apply at once." */
12
+ note?: JSX.Element | undefined;
13
+ /** Controls on the right of the title: a documentation link, a "More actions" menu. */
14
+ actions?: JSX.Element | undefined;
15
+ /** Heading level of `title`. Default 2. */
16
+ headingLevel?: 1 | 2 | 3 | undefined;
17
+ /** Moves focus to the title when the header mounts. Default false. */
18
+ focusOnMount?: boolean | undefined;
19
+ class?: string | undefined;
20
+ }
21
+ /**
22
+ * The top of a settings page: an optional group name, the title with its badges, a description,
23
+ * an optional note, and actions on the right. A subpage opened from one of its rows uses
24
+ * `SettingsSubpageHeader`, which adds the back button.
25
+ */
26
+ export declare function SettingsPageHeader(props: SettingsPageHeaderProps): JSX.Element;
@@ -0,0 +1,42 @@
1
+ import { type JSX } from 'solid-js';
2
+ export interface SettingsSaveBarProps {
3
+ /** How many settings on the page are changed but not saved. The bar is hidden at 0. */
4
+ count: number;
5
+ /** Saves every pending change on the page. */
6
+ onSave: () => void;
7
+ /** Puts every pending change back to its saved value. */
8
+ onRevert: () => void;
9
+ /** A save is running: the buttons wait and Save shows its loading state. */
10
+ saving?: boolean | undefined;
11
+ /** Why the last save failed, shown in the bar. Keeps the bar visible. Pre-translated. */
12
+ error?: JSX.Element | undefined;
13
+ /** Replaces the "N unsaved changes" text. Pre-translated. */
14
+ message?: JSX.Element | undefined;
15
+ /**
16
+ * A second line of text after the message, in the warning colour: what saving will do
17
+ * ("Saving closes MCP access for this connection"). Pre-translated.
18
+ */
19
+ note?: JSX.Element | undefined;
20
+ /**
21
+ * Keeps the bar on screen with nothing changed, and Revert and Save enabled: a "new item" form
22
+ * whose primary action is always available. Default false.
23
+ */
24
+ alwaysVisible?: boolean | undefined;
25
+ /**
26
+ * Replaces the Save button: a `SplitButton` with a menu of other ways to save. The caller owns
27
+ * its `loading`/`disabled` state; `saveLabel` and `onSave` are not used.
28
+ */
29
+ primaryAction?: JSX.Element | undefined;
30
+ /** Text of the save button. Default: the translated "Save". */
31
+ saveLabel?: string | undefined;
32
+ /** Text of the revert button. Default: the translated "Revert". */
33
+ revertLabel?: string | undefined;
34
+ class?: string | undefined;
35
+ }
36
+ /**
37
+ * The bar at the bottom of a settings page whose changes are kept as a draft: how many settings
38
+ * are changed, Revert and Save. It sticks to the bottom of the scrolling page and only appears
39
+ * while something is unsaved (or always, with `alwaysVisible`), so pages with nothing pending show no buttons at all. Settings that
40
+ * apply at once never reach it.
41
+ */
42
+ export declare function SettingsSaveBar(props: SettingsSaveBarProps): JSX.Element;
@@ -0,0 +1,42 @@
1
+ import { type JSX } from 'solid-js';
2
+ export interface SettingsSaveBarProps {
3
+ /** How many settings on the page are changed but not saved. The bar is hidden at 0. */
4
+ count: number;
5
+ /** Saves every pending change on the page. */
6
+ onSave: () => void;
7
+ /** Puts every pending change back to its saved value. */
8
+ onRevert: () => void;
9
+ /** A save is running: the buttons wait and Save shows its loading state. */
10
+ saving?: boolean | undefined;
11
+ /** Why the last save failed, shown in the bar. Keeps the bar visible. Pre-translated. */
12
+ error?: JSX.Element | undefined;
13
+ /** Replaces the "N unsaved changes" text. Pre-translated. */
14
+ message?: JSX.Element | undefined;
15
+ /**
16
+ * A second line of text after the message, in the warning colour: what saving will do
17
+ * ("Saving closes MCP access for this connection"). Pre-translated.
18
+ */
19
+ note?: JSX.Element | undefined;
20
+ /**
21
+ * Keeps the bar on screen with nothing changed, and Revert and Save enabled: a "new item" form
22
+ * whose primary action is always available. Default false.
23
+ */
24
+ alwaysVisible?: boolean | undefined;
25
+ /**
26
+ * Replaces the Save button: a `SplitButton` with a menu of other ways to save. The caller owns
27
+ * its `loading`/`disabled` state; `saveLabel` and `onSave` are not used.
28
+ */
29
+ primaryAction?: JSX.Element | undefined;
30
+ /** Text of the save button. Default: the translated "Save". */
31
+ saveLabel?: string | undefined;
32
+ /** Text of the revert button. Default: the translated "Revert". */
33
+ revertLabel?: string | undefined;
34
+ class?: string | undefined;
35
+ }
36
+ /**
37
+ * The bar at the bottom of a settings page whose changes are kept as a draft: how many settings
38
+ * are changed, Revert and Save. It sticks to the bottom of the scrolling page and only appears
39
+ * while something is unsaved (or always, with `alwaysVisible`), so pages with nothing pending show no buttons at all. Settings that
40
+ * apply at once never reach it.
41
+ */
42
+ export declare function SettingsSaveBar(props: SettingsSaveBarProps): JSX.Element;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createResizableSidebar-BqW3Ozgd.cjs"),a=require("../Stepper-BLKD4ub3.cjs"),r=require("../createVirtualWindow-C8_UuF7B.cjs");exports.PageHeader=e.PageHeader;exports.PageHeaderIcon=e.PageHeaderIcon;exports.ResizableSplitPane=e.ResizableSplitPane;exports.ResizeHandle=e.ResizeHandle;exports.SettingsAdvancedRow=e.SettingsAdvancedRow;exports.SettingsCard=e.SettingsCard;exports.SettingsRow=e.SettingsRow;exports.SettingsSubpageHeader=e.SettingsSubpageHeader;exports.createResizableSidebar=e.createResizableSidebar;exports.createVirtualScroller=e.createVirtualScroller;exports.Accordion=a.Accordion;exports.Breadcrumb=a.Breadcrumb;exports.Stepper=a.Stepper;exports.Tabs=a.Tabs;exports.createVirtualWindow=r.createVirtualWindow;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createResizableSidebar-Beu5DVYW.cjs"),t=require("../Stepper-A3Z6h1Zw.cjs"),a=require("../createVirtualWindow-C8_UuF7B.cjs");exports.PageHeader=e.PageHeader;exports.PageHeaderIcon=e.PageHeaderIcon;exports.ResizableSplitPane=e.ResizableSplitPane;exports.ResizeHandle=e.ResizeHandle;exports.SettingsAdvancedRow=e.SettingsAdvancedRow;exports.SettingsCard=e.SettingsCard;exports.SettingsDependentRows=e.SettingsDependentRows;exports.SettingsPageHeader=e.SettingsPageHeader;exports.SettingsRow=e.SettingsRow;exports.SettingsSaveBar=e.SettingsSaveBar;exports.SettingsSubpageHeader=e.SettingsSubpageHeader;exports.createResizableSidebar=e.createResizableSidebar;exports.createVirtualScroller=e.createVirtualScroller;exports.Accordion=t.Accordion;exports.Breadcrumb=t.Breadcrumb;exports.Stepper=t.Stepper;exports.Tabs=t.Tabs;exports.createVirtualWindow=a.createVirtualWindow;
@@ -1,6 +1,8 @@
1
1
  export * from './PageHeader.cjs';
2
2
  export * from './SettingsCard.cjs';
3
3
  export * from './SettingsSubpageHeader.cjs';
4
+ export * from './SettingsPageHeader.cjs';
5
+ export * from './SettingsSaveBar.cjs';
4
6
  export * from './ResizeHandle.cjs';
5
7
  export * from './ResizableSplitPane.cjs';
6
8
  export * from '../navigation/Tabs.cjs';
@@ -1,6 +1,8 @@
1
1
  export * from './PageHeader.js';
2
2
  export * from './SettingsCard.js';
3
3
  export * from './SettingsSubpageHeader.js';
4
+ export * from './SettingsPageHeader.js';
5
+ export * from './SettingsSaveBar.js';
4
6
  export * from './ResizeHandle.js';
5
7
  export * from './ResizableSplitPane.js';
6
8
  export * from '../navigation/Tabs.js';
@@ -1,20 +1,23 @@
1
- import { P as s, a as r, R as t, b as i, S as o, c as d, d as c, e as S, f as n, g } from "../createResizableSidebar-CKbN032u.js";
2
- import { A as b, B as p, S as R, T as f } from "../Stepper-D0rrrtAN.js";
3
- import { c as u } from "../createVirtualWindow-CGPw2jm_.js";
1
+ import { P as s, a as t, R as r, b as i, S as n, c as S, d, e as o, f as g, g as c, h as l, i as p, j as b } from "../createResizableSidebar-BGseZrMh.js";
2
+ import { A as H, B as P, S as f, T as m } from "../Stepper-C-tnKle4.js";
3
+ import { c as w } from "../createVirtualWindow-CGPw2jm_.js";
4
4
  export {
5
- b as Accordion,
6
- p as Breadcrumb,
5
+ H as Accordion,
6
+ P as Breadcrumb,
7
7
  s as PageHeader,
8
- r as PageHeaderIcon,
9
- t as ResizableSplitPane,
8
+ t as PageHeaderIcon,
9
+ r as ResizableSplitPane,
10
10
  i as ResizeHandle,
11
- o as SettingsAdvancedRow,
12
- d as SettingsCard,
13
- c as SettingsRow,
14
- S as SettingsSubpageHeader,
15
- R as Stepper,
16
- f as Tabs,
17
- n as createResizableSidebar,
18
- g as createVirtualScroller,
19
- u as createVirtualWindow
11
+ n as SettingsAdvancedRow,
12
+ S as SettingsCard,
13
+ d as SettingsDependentRows,
14
+ o as SettingsPageHeader,
15
+ g as SettingsRow,
16
+ c as SettingsSaveBar,
17
+ l as SettingsSubpageHeader,
18
+ f as Stepper,
19
+ m as Tabs,
20
+ p as createResizableSidebar,
21
+ b as createVirtualScroller,
22
+ w as createVirtualWindow
20
23
  };
@@ -0,0 +1,241 @@
1
+ import { createComponent as m, insert as l, effect as h, className as u, setAttribute as b, template as v } from "solid-js/web";
2
+ import { createMemo as w, Show as k, For as S } from "solid-js";
3
+ const p = "vk_kbdWrapper_mOLl9", C = "vk_kbd_knNRf", z = "vk_variantDefault_ALmKJ", A = "vk_variantSubtle_9NVFr", L = "vk_variantOutline_Ptjkn", E = "vk_sizeXs_44piL", D = "vk_sizeSm_kxC3Y", y = "vk_sizeMd_sVjY6", M = "vk_chordGap_qV1nD", o = {
4
+ kbdWrapper: p,
5
+ kbd: C,
6
+ variantDefault: z,
7
+ variantSubtle: A,
8
+ variantOutline: L,
9
+ sizeXs: E,
10
+ sizeSm: D,
11
+ sizeMd: y,
12
+ chordGap: M
13
+ }, O = /* @__PURE__ */ new Set(["⌃", "⇧", "⌥", "⌘"]), P = {
14
+ "⌘": "Command",
15
+ "⇧": "Shift",
16
+ "⌥": "Option",
17
+ "⌃": "Control",
18
+ "↵": "Enter",
19
+ "⌫": "Backspace",
20
+ "↑": "Up Arrow",
21
+ "↓": "Down Arrow",
22
+ "←": "Left Arrow",
23
+ "→": "Right Arrow",
24
+ Esc: "Escape",
25
+ Del: "Delete",
26
+ Tab: "Tab",
27
+ Space: "Space"
28
+ };
29
+ function g(e) {
30
+ const t = e.trim();
31
+ switch (t.toLowerCase()) {
32
+ case "enter":
33
+ case "return":
34
+ return "↵";
35
+ case "escape":
36
+ case "esc":
37
+ return "Esc";
38
+ case "backspace":
39
+ return "⌫";
40
+ case "delete":
41
+ case "del":
42
+ return "Del";
43
+ case "tab":
44
+ return "Tab";
45
+ case "space":
46
+ case "spacebar":
47
+ return "Space";
48
+ case "up":
49
+ case "arrowup":
50
+ return "↑";
51
+ case "down":
52
+ case "arrowdown":
53
+ return "↓";
54
+ case "left":
55
+ case "arrowleft":
56
+ return "←";
57
+ case "right":
58
+ case "arrowright":
59
+ return "→";
60
+ case "pageup":
61
+ case "pgup":
62
+ return "PageUp";
63
+ case "pagedown":
64
+ case "pgdn":
65
+ return "PageDown";
66
+ case "home":
67
+ return "Home";
68
+ case "end":
69
+ return "End";
70
+ case "cmd":
71
+ case "command":
72
+ case "meta":
73
+ case "mod":
74
+ return "⌘";
75
+ case "shift":
76
+ return "Shift";
77
+ case "ctrl":
78
+ case "control":
79
+ return "Ctrl";
80
+ case "alt":
81
+ case "option":
82
+ case "opt":
83
+ return "Alt";
84
+ default:
85
+ return t.length === 1 && t >= "a" && t <= "z" ? t.toUpperCase() : t;
86
+ }
87
+ }
88
+ function N(e) {
89
+ const t = e.trim();
90
+ if (!t) return [];
91
+ if (t.includes("+")) {
92
+ const n = t.split("+"), a = [];
93
+ for (let s = 0; s < n.length; s++) {
94
+ const c = n[s];
95
+ c ? a.push(g(c)) : s > 0 && s === n.length - 1 && a.push("+");
96
+ }
97
+ return a;
98
+ }
99
+ const i = [];
100
+ let r = 0;
101
+ for (; r < t.length && O.has(t.charAt(r)); )
102
+ i.push(t.charAt(r)), r += 1;
103
+ const d = t.slice(r);
104
+ return d && i.push(g(d)), i;
105
+ }
106
+ function $(e) {
107
+ return !e || !e.trim() ? [] : e.trim().split(/\s+/).map((i) => ({
108
+ chips: N(i)
109
+ }));
110
+ }
111
+ function G(e) {
112
+ return e.map(
113
+ (t) => t.chips.map((i) => P[i] ?? i).join(" ")
114
+ ).join(", then ");
115
+ }
116
+ var I = /* @__PURE__ */ v("<span>"), K = /* @__PURE__ */ v("<kbd>"), U = /* @__PURE__ */ v("<span aria-hidden=true>"), V = /* @__PURE__ */ v("<kbd aria-hidden=true>");
117
+ const W = {
118
+ xs: o.sizeXs,
119
+ sm: o.sizeSm,
120
+ md: o.sizeMd
121
+ }, j = {
122
+ default: o.variantDefault,
123
+ subtle: o.variantSubtle,
124
+ outline: o.variantOutline
125
+ };
126
+ function ee(e) {
127
+ const t = w(() => e.shortcut ? $(e.shortcut) : e.keys ? typeof e.keys == "string" ? $(e.keys) : [{
128
+ chips: e.keys.map(g)
129
+ }] : []), i = () => {
130
+ if (e.ariaLabel !== void 0) return e.ariaLabel;
131
+ const n = t();
132
+ if (n.length > 0)
133
+ return G(n);
134
+ }, r = () => W[e.size ?? "sm"], d = () => j[e.variant ?? "default"];
135
+ return m(k, {
136
+ get when() {
137
+ return t().length > 0;
138
+ },
139
+ get fallback() {
140
+ return (() => {
141
+ var n = K();
142
+ return l(n, () => e.children), h((a) => {
143
+ var s = `${o.kbd} ${r()} ${d()} ${e.class ?? ""}`, c = e.ariaLabel;
144
+ return s !== a.e && u(n, a.e = s), c !== a.t && b(n, "aria-label", a.t = c), a;
145
+ }, {
146
+ e: void 0,
147
+ t: void 0
148
+ }), n;
149
+ })();
150
+ },
151
+ get children() {
152
+ var n = I();
153
+ return l(n, m(S, {
154
+ get each() {
155
+ return t();
156
+ },
157
+ children: (a, s) => [m(k, {
158
+ get when() {
159
+ return s() > 0;
160
+ },
161
+ get children() {
162
+ var c = U();
163
+ return h(() => u(c, o.chordGap)), c;
164
+ }
165
+ }), m(S, {
166
+ get each() {
167
+ return a.chips;
168
+ },
169
+ children: (c) => (() => {
170
+ var _ = V();
171
+ return l(_, c), h(() => u(_, `${o.kbd} ${r()} ${d()}`)), _;
172
+ })()
173
+ })]
174
+ })), h((a) => {
175
+ var s = `${o.kbdWrapper} ${e.class ?? ""}`, c = i(), _ = i() ? "img" : void 0;
176
+ return s !== a.e && u(n, a.e = s), c !== a.t && b(n, "aria-label", a.t = c), _ !== a.a && b(n, "role", a.a = _), a;
177
+ }, {
178
+ e: void 0,
179
+ t: void 0,
180
+ a: void 0
181
+ }), n;
182
+ }
183
+ });
184
+ }
185
+ const x = "vk_root_hnB4O", H = "vk_sm_rCrHH", R = "vk_icon_CC9U3", T = "vk_title_aimU- vk_titleSmMargin_PPvAx", X = "vk_hint_r7IWi vk_hintSm_DYtn8", Y = "vk_action_05ZVL", f = {
186
+ root: x,
187
+ sm: H,
188
+ icon: R,
189
+ title: T,
190
+ hint: X,
191
+ action: Y
192
+ };
193
+ var F = /* @__PURE__ */ v("<div aria-hidden=true>"), B = /* @__PURE__ */ v("<p>"), Z = /* @__PURE__ */ v("<div>"), q = /* @__PURE__ */ v("<div data-empty-state><p>");
194
+ function te(e) {
195
+ return (() => {
196
+ var t = q(), i = t.firstChild;
197
+ return l(t, m(k, {
198
+ get when() {
199
+ return e.icon != null;
200
+ },
201
+ get children() {
202
+ var r = F();
203
+ return l(r, () => e.icon), h(() => u(r, f.icon)), r;
204
+ }
205
+ }), i), l(i, () => e.title), l(t, m(k, {
206
+ get when() {
207
+ return e.hint != null;
208
+ },
209
+ get children() {
210
+ var r = B();
211
+ return l(r, () => e.hint), h(() => u(r, f.hint)), r;
212
+ }
213
+ }), null), l(t, m(k, {
214
+ get when() {
215
+ return e.action != null;
216
+ },
217
+ get children() {
218
+ var r = Z();
219
+ return l(r, () => e.action), h(() => u(r, f.action)), r;
220
+ }
221
+ }), null), h((r) => {
222
+ var d = `${f.root} ${e.size === "sm" ? f.sm : ""} ${e.class ?? ""}`, n = f.title;
223
+ return d !== r.e && u(t, r.e = d), n !== r.t && u(i, r.t = n), r;
224
+ }, {
225
+ e: void 0,
226
+ t: void 0
227
+ }), t;
228
+ })();
229
+ }
230
+ function re(e) {
231
+ return document.createElement(e);
232
+ }
233
+ export {
234
+ te as E,
235
+ ee as K,
236
+ N as a,
237
+ re as c,
238
+ G as d,
239
+ g as n,
240
+ $ as p
241
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("solid-js/web"),m=require("solid-js"),S="vk_kbdWrapper_mOLl9",k="vk_kbd_knNRf",g="vk_variantDefault_ALmKJ",p="vk_variantSubtle_9NVFr",w="vk_variantOutline_Ptjkn",C="vk_sizeXs_44piL",$="vk_sizeSm_kxC3Y",A="vk_sizeMd_sVjY6",z="vk_chordGap_qV1nD",o={kbdWrapper:S,kbd:k,variantDefault:g,variantSubtle:p,variantOutline:w,sizeXs:C,sizeSm:$,sizeMd:A,chordGap:z},L=new Set(["⌃","⇧","⌥","⌘"]),E={"⌘":"Command","⇧":"Shift","⌥":"Option","⌃":"Control","↵":"Enter","⌫":"Backspace","↑":"Up Arrow","↓":"Down Arrow","←":"Left Arrow","→":"Right Arrow",Esc:"Escape",Del:"Delete",Tab:"Tab",Space:"Space"};function v(t){const r=t.trim();switch(r.toLowerCase()){case"enter":case"return":return"↵";case"escape":case"esc":return"Esc";case"backspace":return"⌫";case"delete":case"del":return"Del";case"tab":return"Tab";case"space":case"spacebar":return"Space";case"up":case"arrowup":return"↑";case"down":case"arrowdown":return"↓";case"left":case"arrowleft":return"←";case"right":case"arrowright":return"→";case"pageup":case"pgup":return"PageUp";case"pagedown":case"pgdn":return"PageDown";case"home":return"Home";case"end":return"End";case"cmd":case"command":case"meta":case"mod":return"⌘";case"shift":return"Shift";case"ctrl":case"control":return"Ctrl";case"alt":case"option":case"opt":return"Alt";default:return r.length===1&&r>="a"&&r<="z"?r.toUpperCase():r}}function _(t){const r=t.trim();if(!r)return[];if(r.includes("+")){const a=r.split("+"),s=[];for(let c=0;c<a.length;c++){const l=a[c];l?s.push(v(l)):c>0&&c===a.length-1&&s.push("+")}return s}const i=[];let n=0;for(;n<r.length&&L.has(r.charAt(n));)i.push(r.charAt(n)),n+=1;const u=r.slice(n);return u&&i.push(v(u)),i}function f(t){return!t||!t.trim()?[]:t.trim().split(/\s+/).map(i=>({chips:_(i)}))}function b(t){return t.map(r=>r.chips.map(i=>E[i]??i).join(" ")).join(", then ")}var N=e.template("<span>"),y=e.template("<kbd>"),D=e.template("<span aria-hidden=true>"),M=e.template("<kbd aria-hidden=true>");const O={xs:o.sizeXs,sm:o.sizeSm,md:o.sizeMd},P={default:o.variantDefault,subtle:o.variantSubtle,outline:o.variantOutline};function K(t){const r=m.createMemo(()=>t.shortcut?f(t.shortcut):t.keys?typeof t.keys=="string"?f(t.keys):[{chips:t.keys.map(v)}]:[]),i=()=>{if(t.ariaLabel!==void 0)return t.ariaLabel;const a=r();if(a.length>0)return b(a)},n=()=>O[t.size??"sm"],u=()=>P[t.variant??"default"];return e.createComponent(m.Show,{get when(){return r().length>0},get fallback(){return(()=>{var a=y();return e.insert(a,()=>t.children),e.effect(s=>{var c=`${o.kbd} ${n()} ${u()} ${t.class??""}`,l=t.ariaLabel;return c!==s.e&&e.className(a,s.e=c),l!==s.t&&e.setAttribute(a,"aria-label",s.t=l),s},{e:void 0,t:void 0}),a})()},get children(){var a=N();return e.insert(a,e.createComponent(m.For,{get each(){return r()},children:(s,c)=>[e.createComponent(m.Show,{get when(){return c()>0},get children(){var l=D();return e.effect(()=>e.className(l,o.chordGap)),l}}),e.createComponent(m.For,{get each(){return s.chips},children:l=>(()=>{var d=M();return e.insert(d,l),e.effect(()=>e.className(d,`${o.kbd} ${n()} ${u()}`)),d})()})]})),e.effect(s=>{var c=`${o.kbdWrapper} ${t.class??""}`,l=i(),d=i()?"img":void 0;return c!==s.e&&e.className(a,s.e=c),l!==s.t&&e.setAttribute(a,"aria-label",s.t=l),d!==s.a&&e.setAttribute(a,"role",s.a=d),s},{e:void 0,t:void 0,a:void 0}),a}})}const G="vk_root_hnB4O",I="vk_sm_rCrHH",U="vk_icon_CC9U3",V="vk_title_aimU- vk_titleSmMargin_PPvAx",W="vk_hint_r7IWi vk_hintSm_DYtn8",j="vk_action_05ZVL",h={root:G,sm:I,icon:U,title:V,hint:W,action:j};var F=e.template("<div aria-hidden=true>"),H=e.template("<p>"),R=e.template("<div>"),T=e.template("<div data-empty-state><p>");function X(t){return(()=>{var r=T(),i=r.firstChild;return e.insert(r,e.createComponent(m.Show,{get when(){return t.icon!=null},get children(){var n=F();return e.insert(n,()=>t.icon),e.effect(()=>e.className(n,h.icon)),n}}),i),e.insert(i,()=>t.title),e.insert(r,e.createComponent(m.Show,{get when(){return t.hint!=null},get children(){var n=H();return e.insert(n,()=>t.hint),e.effect(()=>e.className(n,h.hint)),n}}),null),e.insert(r,e.createComponent(m.Show,{get when(){return t.action!=null},get children(){var n=R();return e.insert(n,()=>t.action),e.effect(()=>e.className(n,h.action)),n}}),null),e.effect(n=>{var u=`${h.root} ${t.size==="sm"?h.sm:""} ${t.class??""}`,a=h.title;return u!==n.e&&e.className(r,n.e=u),a!==n.t&&e.className(i,n.t=a),n},{e:void 0,t:void 0}),r})()}function Y(t){return document.createElement(t)}exports.EmptyState=X;exports.Kbd=K;exports.createElement=Y;exports.describeChordAriaLabel=b;exports.normalizeKeySymbol=v;exports.parseShortcut=f;exports.parseSingleChord=_;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Stepper-BLKD4ub3.cjs"),a=require("../tablistKeyboard-DtVKTEWz.cjs"),t=require("../createSelectionIndicator-DaZspPf1.cjs");exports.Accordion=e.Accordion;exports.Breadcrumb=e.Breadcrumb;exports.Stepper=e.Stepper;exports.Tabs=e.Tabs;exports.tabId=e.tabId;exports.tabPanelAria=e.tabPanelAria;exports.tabPanelId=e.tabPanelId;exports.createTablistKeyboardHandler=a.createTablistKeyboardHandler;exports.isTablistNavigationKey=a.isTablistNavigationKey;exports.resolveTablistNavigationTarget=a.resolveTablistNavigationTarget;exports.rovingTabIndex=a.rovingTabIndex;exports.createSelectionIndicator=t.createSelectionIndicator;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Stepper-A3Z6h1Zw.cjs"),a=require("../tablistKeyboard-DtVKTEWz.cjs"),t=require("../createSelectionIndicator-DaZspPf1.cjs");exports.Accordion=e.Accordion;exports.Breadcrumb=e.Breadcrumb;exports.Stepper=e.Stepper;exports.Tabs=e.Tabs;exports.tabId=e.tabId;exports.tabPanelAria=e.tabPanelAria;exports.tabPanelId=e.tabPanelId;exports.createTablistKeyboardHandler=a.createTablistKeyboardHandler;exports.isTablistNavigationKey=a.isTablistNavigationKey;exports.resolveTablistNavigationTarget=a.resolveTablistNavigationTarget;exports.rovingTabIndex=a.rovingTabIndex;exports.createSelectionIndicator=t.createSelectionIndicator;
@@ -1,4 +1,4 @@
1
- import { A as r, B as s, S as t, T as o, t as i, a as b, b as n } from "../Stepper-D0rrrtAN.js";
1
+ import { A as r, B as s, S as t, T as o, t as i, a as b, b as n } from "../Stepper-C-tnKle4.js";
2
2
  import { c as d, i as l, r as T, a as p } from "../tablistKeyboard-AxJcXuc5.js";
3
3
  import { c as m } from "../createSelectionIndicator-BnxXUMlT.js";
4
4
  export {