@krizaka/ui 3.67.0 → 3.68.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 (267) hide show
  1. package/dist/app-header.d.ts +3 -3
  2. package/dist/app-shell.js +2 -2
  3. package/dist/app-shell.js.map +1 -1
  4. package/dist/chunk-PZ4FJOD5.js +44 -0
  5. package/dist/chunk-PZ4FJOD5.js.map +1 -0
  6. package/dist/{chunk-6BMKLAZ7.js → chunk-Z47KIPCT.js} +7 -2
  7. package/dist/{chunk-6BMKLAZ7.js.map → chunk-Z47KIPCT.js.map} +1 -1
  8. package/dist/copy-button.d.ts +29 -0
  9. package/dist/copy-button.js +56 -0
  10. package/dist/copy-button.js.map +1 -0
  11. package/dist/date-picker.js +2 -1
  12. package/dist/date-picker.js.map +1 -1
  13. package/dist/desktop-window.js.map +1 -1
  14. package/dist/file-upload.d.ts +2 -2
  15. package/dist/filter-bar.d.ts +3 -3
  16. package/dist/flock.js +2 -1
  17. package/dist/flock.js.map +1 -1
  18. package/dist/index.js +3 -3
  19. package/dist/kind-config-editor.js +106 -129
  20. package/dist/kind-config-editor.js.map +1 -1
  21. package/dist/map.d.ts +2 -2
  22. package/dist/map.js +3 -3
  23. package/dist/map.js.map +1 -1
  24. package/dist/money-input.d.ts +29 -0
  25. package/dist/money-input.js +78 -0
  26. package/dist/money-input.js.map +1 -0
  27. package/dist/native/map.d.ts +2 -2
  28. package/dist/native/map.js +3 -3
  29. package/dist/native/map.js.map +1 -1
  30. package/dist/nav-bar.d.ts +28 -4
  31. package/dist/nav-bar.js +31 -14
  32. package/dist/nav-bar.js.map +1 -1
  33. package/dist/promo-code-field.d.ts +38 -0
  34. package/dist/promo-code-field.js +94 -0
  35. package/dist/promo-code-field.js.map +1 -0
  36. package/dist/radio-group.js +1 -1
  37. package/dist/retro-tv.d.ts +39 -4
  38. package/dist/retro-tv.js +217 -40
  39. package/dist/retro-tv.js.map +1 -1
  40. package/dist/status-chip.js +1 -1
  41. package/dist/terminal-replay.js +1 -1
  42. package/package.json +46 -3
  43. package/registry/account-menu.json +1 -1
  44. package/registry/account-settings.json +1 -1
  45. package/registry/achievement.json +1 -1
  46. package/registry/action-bar.json +1 -1
  47. package/registry/activity-feed.json +1 -1
  48. package/registry/agenda.json +1 -1
  49. package/registry/alert.json +1 -1
  50. package/registry/analysis-report.json +1 -1
  51. package/registry/anatomy-plate.json +1 -1
  52. package/registry/app-frame.json +34 -34
  53. package/registry/app-header.json +1 -1
  54. package/registry/app-shell.json +3 -3
  55. package/registry/argument-card.json +1 -1
  56. package/registry/audio-player.json +1 -1
  57. package/registry/auth-layout.json +1 -1
  58. package/registry/avatar.json +1 -1
  59. package/registry/badge.json +1 -1
  60. package/registry/bird-plate.json +1 -1
  61. package/registry/button.json +1 -1
  62. package/registry/captcha.json +1 -1
  63. package/registry/card-grid.json +1 -1
  64. package/registry/card.json +1 -1
  65. package/registry/catalogue-page.json +1 -1
  66. package/registry/changelog-page.json +1 -1
  67. package/registry/chapter.json +1 -1
  68. package/registry/chat.json +1 -1
  69. package/registry/checkbox.json +1 -1
  70. package/registry/chip-link.json +1 -1
  71. package/registry/chip-row.json +1 -1
  72. package/registry/chip.json +1 -1
  73. package/registry/choice-grid.json +1 -1
  74. package/registry/code-block.json +1 -1
  75. package/registry/collection-switcher.json +1 -1
  76. package/registry/combobox.json +1 -1
  77. package/registry/command.json +1 -1
  78. package/registry/comparison-table.json +1 -1
  79. package/registry/component-page.json +1 -1
  80. package/registry/confirm-button.json +1 -1
  81. package/registry/contact-page.json +1 -1
  82. package/registry/continue-prompt.json +1 -1
  83. package/registry/copy-button.json +382 -0
  84. package/registry/countdown.json +1 -1
  85. package/registry/cover-hero.json +1 -1
  86. package/registry/cta-panel.json +1 -1
  87. package/registry/dashboard-layout.json +1 -1
  88. package/registry/data-table.json +1 -1
  89. package/registry/date-picker.json +3 -3
  90. package/registry/decision-list.json +1 -1
  91. package/registry/description-list.json +1 -1
  92. package/registry/desktop-window.json +1 -1
  93. package/registry/detail-layout.json +1 -1
  94. package/registry/dialog.json +1 -1
  95. package/registry/docs-article-page.json +1 -1
  96. package/registry/docs-hub-page.json +1 -1
  97. package/registry/docs-layout.json +1 -1
  98. package/registry/docs-nav.json +1 -1
  99. package/registry/document-viewer.json +1 -1
  100. package/registry/doodle.json +1 -1
  101. package/registry/drop-overlay.json +1 -1
  102. package/registry/dropdown-menu.json +1 -1
  103. package/registry/elephant.json +2 -2
  104. package/registry/embed-facade.json +1 -1
  105. package/registry/empty-state.json +1 -1
  106. package/registry/engine-flow.json +1 -1
  107. package/registry/entity-header.json +1 -1
  108. package/registry/environment-notice.json +1 -1
  109. package/registry/error-page.json +1 -1
  110. package/registry/examples/copy-button/default.d.ts +4 -0
  111. package/registry/examples/copy-button/default.js +11 -0
  112. package/registry/examples/copy-button/default.tsx +7 -0
  113. package/registry/examples/copy-button/icon-only.d.ts +4 -0
  114. package/registry/examples/copy-button/icon-only.js +11 -0
  115. package/registry/examples/copy-button/icon-only.tsx +7 -0
  116. package/registry/examples/money-input/currencies.d.ts +4 -0
  117. package/registry/examples/money-input/currencies.js +18 -0
  118. package/registry/examples/money-input/currencies.tsx +16 -0
  119. package/registry/examples/money-input/default.d.ts +4 -0
  120. package/registry/examples/money-input/default.js +18 -0
  121. package/registry/examples/money-input/default.tsx +16 -0
  122. package/registry/examples/promo-code-field/applied.d.ts +4 -0
  123. package/registry/examples/promo-code-field/applied.js +11 -0
  124. package/registry/examples/promo-code-field/applied.tsx +7 -0
  125. package/registry/examples/promo-code-field/default.d.ts +4 -0
  126. package/registry/examples/promo-code-field/default.js +19 -0
  127. package/registry/examples/promo-code-field/default.tsx +14 -0
  128. package/registry/examples/promo-code-field/expired.d.ts +4 -0
  129. package/registry/examples/promo-code-field/expired.js +11 -0
  130. package/registry/examples/promo-code-field/expired.tsx +7 -0
  131. package/registry/examples/retro-tv/playlist-channel.d.ts +4 -0
  132. package/registry/examples/retro-tv/playlist-channel.js +15 -0
  133. package/registry/examples/retro-tv/playlist-channel.tsx +10 -0
  134. package/registry/examples/retro-tv/playlist-crossfade.d.ts +4 -0
  135. package/registry/examples/retro-tv/playlist-crossfade.js +15 -0
  136. package/registry/examples/retro-tv/playlist-crossfade.tsx +10 -0
  137. package/registry/examples/retro-tv/playlist-slide.d.ts +4 -0
  138. package/registry/examples/retro-tv/playlist-slide.js +15 -0
  139. package/registry/examples/retro-tv/playlist-slide.tsx +10 -0
  140. package/registry/field.json +1 -1
  141. package/registry/file-upload.json +1 -1
  142. package/registry/filter-bar.json +1 -1
  143. package/registry/flock.json +2 -2
  144. package/registry/footnote.json +1 -1
  145. package/registry/force-update-screen.json +1 -1
  146. package/registry/form.json +1 -1
  147. package/registry/gallery-page.json +1 -1
  148. package/registry/genui.json +1 -1
  149. package/registry/glossary-term.json +1 -1
  150. package/registry/glossary.json +1 -1
  151. package/registry/glow-card.json +1 -1
  152. package/registry/goal-gauge.json +1 -1
  153. package/registry/grade-stamp.json +1 -1
  154. package/registry/how-it-works-page.json +1 -1
  155. package/registry/image-cropper.json +1 -1
  156. package/registry/index.json +108 -9
  157. package/registry/iso.json +1 -1
  158. package/registry/kanban.json +1 -1
  159. package/registry/kbd.json +1 -1
  160. package/registry/kind-config-editor.json +1 -1
  161. package/registry/kpi-explained.json +1 -1
  162. package/registry/landing-page.json +1 -1
  163. package/registry/landscape.json +1 -1
  164. package/registry/language-switch.json +1 -1
  165. package/registry/legal-page.json +1 -1
  166. package/registry/link-card.json +1 -1
  167. package/registry/list.json +1 -1
  168. package/registry/loader.json +1 -1
  169. package/registry/longform-page.json +1 -1
  170. package/registry/maintenance-screen.json +1 -1
  171. package/registry/map.json +95 -95
  172. package/registry/margin-layout.json +1 -1
  173. package/registry/markdown.json +1 -1
  174. package/registry/marketing-layout.json +1 -1
  175. package/registry/marquee.json +1 -1
  176. package/registry/mascot-quote.json +1 -1
  177. package/registry/mascot-state.json +1 -1
  178. package/registry/mascots.json +1 -1
  179. package/registry/match-dialog.json +1 -1
  180. package/registry/media-capture.json +1 -1
  181. package/registry/media-gallery.json +1 -1
  182. package/registry/media-grid.json +1 -1
  183. package/registry/meta-row.json +1 -1
  184. package/registry/meter.json +1 -1
  185. package/registry/money-input.json +236 -0
  186. package/registry/nav-bar.json +55 -41
  187. package/registry/next-actions.json +1 -1
  188. package/registry/notification-preferences.json +1 -1
  189. package/registry/number-ticker.json +1 -1
  190. package/registry/opening-hours.json +1 -1
  191. package/registry/page-header.json +1 -1
  192. package/registry/page-hero.json +1 -1
  193. package/registry/page-index.json +1 -1
  194. package/registry/page.json +1 -1
  195. package/registry/pagination.json +1 -1
  196. package/registry/photo-grid.json +1 -1
  197. package/registry/pointer-light.json +1 -1
  198. package/registry/popover.json +1 -1
  199. package/registry/pricing-page.json +1 -1
  200. package/registry/product-page.json +1 -1
  201. package/registry/profile-card.json +1 -1
  202. package/registry/progress.json +1 -1
  203. package/registry/promise-card.json +1 -1
  204. package/registry/promo-code-field.json +258 -0
  205. package/registry/qr-code.json +1 -1
  206. package/registry/quota-meter.json +1 -1
  207. package/registry/radio-group.json +1 -1
  208. package/registry/rail-nav.json +34 -34
  209. package/registry/recipes.json +1 -1
  210. package/registry/retro-tv.json +120 -8
  211. package/registry/reviews.json +1 -1
  212. package/registry/router.json +1 -1
  213. package/registry/scroll-stage.json +1 -1
  214. package/registry/search-field.json +1 -1
  215. package/registry/section-backdrop.json +1 -1
  216. package/registry/separator.json +1 -1
  217. package/registry/service-card.json +1 -1
  218. package/registry/settings-layout.json +1 -1
  219. package/registry/shop-composer.json +1 -1
  220. package/registry/shop.json +2 -2
  221. package/registry/showcase.json +1 -1
  222. package/registry/signature.json +1 -1
  223. package/registry/site-cahier.json +1 -1
  224. package/registry/site-footer.json +34 -34
  225. package/registry/sites.json +1 -1
  226. package/registry/skeleton.json +1 -1
  227. package/registry/skip-link.json +1 -1
  228. package/registry/slider.json +1 -1
  229. package/registry/slot-picker.json +1 -1
  230. package/registry/slot.json +1 -1
  231. package/registry/specimen-tag.json +1 -1
  232. package/registry/speed-lines.json +1 -1
  233. package/registry/spinner.json +1 -1
  234. package/registry/split-view.json +1 -1
  235. package/registry/stage-banner.json +1 -1
  236. package/registry/stat.json +1 -1
  237. package/registry/status-chip.json +1 -1
  238. package/registry/status-page.json +1 -1
  239. package/registry/step-progress.json +1 -1
  240. package/registry/step-showcase.json +1 -1
  241. package/registry/stepper.json +1 -1
  242. package/registry/sticky-action.json +1 -1
  243. package/registry/stuck.json +1 -1
  244. package/registry/swipe-deck.json +1 -1
  245. package/registry/switch.json +1 -1
  246. package/registry/tabs.json +1 -1
  247. package/registry/tag-input.json +1 -1
  248. package/registry/tag-selector.json +1 -1
  249. package/registry/taped-photo.json +1 -1
  250. package/registry/terminal-replay.json +1 -1
  251. package/registry/text-style.json +1 -1
  252. package/registry/theme.json +1 -1
  253. package/registry/toast.json +1 -1
  254. package/registry/toc.json +1 -1
  255. package/registry/tooltip.json +1 -1
  256. package/registry/tree-view.json +1 -1
  257. package/registry/update-prompt.json +1 -1
  258. package/registry/upload-queue.json +1 -1
  259. package/registry/usage.json +1 -1
  260. package/registry/verified-badge.json +1 -1
  261. package/registry/versus-card.json +1 -1
  262. package/registry/vertical-video.json +1 -1
  263. package/registry/video-player.json +1 -1
  264. package/registry/video-trimmer.json +1 -1
  265. package/registry/virtual.json +1 -1
  266. package/registry/wall.json +1 -1
  267. package/registry/waveform.json +1 -1
@@ -1,4 +1,8 @@
1
1
  "use client";
2
+ import {
3
+ Input,
4
+ Select
5
+ } from "./chunk-PZ4FJOD5.js";
2
6
  import {
3
7
  Switch
4
8
  } from "./chunk-CSRKYZ53.js";
@@ -20,38 +24,11 @@ import {
20
24
  // src/kind-config-editor/kind-config-editor.tsx
21
25
  import * as React2 from "react";
22
26
 
23
- // src/field/field.tsx
24
- import { tv } from "tailwind-variants";
25
- import { jsx, jsxs } from "react/jsx-runtime";
26
- var field = tv({
27
- slots: {
28
- root: "flex flex-col gap-1.5",
29
- label: "text-xs font-semibold text-fg-secondary",
30
- control: "flex h-11 w-full rounded-lg border border-border-control bg-surface-2 px-3 text-sm text-fg placeholder:text-fg-muted transition-[border-color,box-shadow] focus-visible:border-accent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-danger/30",
31
- hint: "text-xs text-fg-secondary",
32
- // The message reads in the danger text role (≥ 4.5:1 on every surface, both themes); the dot is the danger fill.
33
- error: "flex items-center gap-1.5 text-xs font-medium text-fg-danger before:h-1.5 before:w-1.5 before:shrink-0 before:rounded-full before:bg-danger",
34
- selectWrap: "relative flex w-full",
35
- chevron: "pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-fg-secondary"
36
- }
37
- });
38
- var s = field();
39
- var invalidProps = (invalid) => invalid ? { "aria-invalid": true, "data-invalid": "" } : {};
40
- function Input({ invalid, className, ...props }) {
41
- return /* @__PURE__ */ jsx("input", { ...invalidProps(invalid), className: s.control({ className }), ...props });
42
- }
43
- function Select({ invalid, className, ...props }) {
44
- return /* @__PURE__ */ jsxs("span", { className: s.selectWrap(), children: [
45
- /* @__PURE__ */ jsx("select", { ...invalidProps(invalid), className: s.control({ className: cn("appearance-none pr-9", className) }), ...props }),
46
- /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, className: s.chevron(), children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" }) })
47
- ] });
48
- }
49
-
50
27
  // src/settings-layout/settings-layout.tsx
51
28
  import * as React from "react";
52
- import { tv as tv2 } from "tailwind-variants";
53
- import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
54
- var settingsLayout = tv2({
29
+ import { tv } from "tailwind-variants";
30
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
31
+ var settingsLayout = tv({
55
32
  slots: {
56
33
  root: "flex w-full flex-col gap-6",
57
34
  head: "flex flex-col gap-1",
@@ -104,14 +81,14 @@ var settingsLayout = tv2({
104
81
  defaultVariants: { variant: "card" }
105
82
  });
106
83
  function SettingsRow({ label, description, htmlFor, className, children, ...props }) {
107
- const s2 = settingsLayout();
84
+ const s = settingsLayout();
108
85
  const Label = htmlFor ? "label" : "span";
109
- return /* @__PURE__ */ jsxs2("div", { className: s2.row({ className }), ...props, children: [
110
- /* @__PURE__ */ jsxs2("div", { className: s2.rowText(), children: [
111
- /* @__PURE__ */ jsx2(Label, { className: s2.rowLabel(), ...htmlFor ? { htmlFor } : {}, children: label }),
112
- description && /* @__PURE__ */ jsx2("span", { className: s2.rowDescription(), children: description })
86
+ return /* @__PURE__ */ jsxs("div", { className: s.row({ className }), ...props, children: [
87
+ /* @__PURE__ */ jsxs("div", { className: s.rowText(), children: [
88
+ /* @__PURE__ */ jsx(Label, { className: s.rowLabel(), ...htmlFor ? { htmlFor } : {}, children: label }),
89
+ description && /* @__PURE__ */ jsx("span", { className: s.rowDescription(), children: description })
113
90
  ] }),
114
- children !== void 0 && /* @__PURE__ */ jsx2("div", { className: s2.rowControl(), children })
91
+ children !== void 0 && /* @__PURE__ */ jsx("div", { className: s.rowControl(), children })
115
92
  ] });
116
93
  }
117
94
 
@@ -210,27 +187,27 @@ function freshKey(taken, prefix = "state") {
210
187
  return `${prefix}_${n}`;
211
188
  }
212
189
  var transitionOf = (set, from, to) => set.transitions.find((t) => t.from === from && t.to === to);
213
- var isFinal = (set, key) => Boolean(set.states.find((s2) => s2.key === key)?.final);
190
+ var isFinal = (set, key) => Boolean(set.states.find((s) => s.key === key)?.final);
214
191
  var withStates = (set, states, rest = {}) => ({ ...set, states, ...rest });
215
192
  function addState(set, label, limit = 12) {
216
193
  if (set.states.length >= limit) return set;
217
- return withStates(set, [...set.states, { key: freshKey(set.states.map((s2) => s2.key)), label: { ...label }, tone: "neutral" }]);
194
+ return withStates(set, [...set.states, { key: freshKey(set.states.map((s) => s.key)), label: { ...label }, tone: "neutral" }]);
218
195
  }
219
196
  function removeState(set, key) {
220
- const states = set.states.filter((s2) => s2.key !== key);
197
+ const states = set.states.filter((s) => s.key !== key);
221
198
  const transitions = set.transitions.filter((t) => t.from !== key && t.to !== key);
222
- const initial = set.initial === key ? states.find((s2) => !s2.final)?.key : set.initial;
199
+ const initial = set.initial === key ? states.find((s) => !s.final)?.key : set.initial;
223
200
  return withStates(set, states, { transitions, initial });
224
201
  }
225
- var setStateLabel = (set, key, lang, text) => withStates(set, set.states.map((s2) => s2.key === key ? { ...s2, label: { ...s2.label, [lang]: text } } : s2));
226
- var setStateTone = (set, key, tone) => withStates(set, set.states.map((s2) => s2.key === key ? { ...s2, tone } : s2));
202
+ var setStateLabel = (set, key, lang, text) => withStates(set, set.states.map((s) => s.key === key ? { ...s, label: { ...s.label, [lang]: text } } : s));
203
+ var setStateTone = (set, key, tone) => withStates(set, set.states.map((s) => s.key === key ? { ...s, tone } : s));
227
204
  var moveState = (set, from, to) => withStates(set, move(set.states, from, to));
228
205
  function setFinal(set, key, final) {
229
206
  if (final && set.initial === key) return set;
230
- const states = set.states.map((s2) => s2.key === key ? { ...s2, final } : s2);
207
+ const states = set.states.map((s) => s.key === key ? { ...s, final } : s);
231
208
  return withStates(set, states, final ? { transitions: set.transitions.filter((t) => t.from !== key) } : {});
232
209
  }
233
- var setInitial = (set, key) => isFinal(set, key) || !set.states.some((s2) => s2.key === key) ? set : { ...set, initial: key };
210
+ var setInitial = (set, key) => isFinal(set, key) || !set.states.some((s) => s.key === key) ? set : { ...set, initial: key };
234
211
  var replaceTransition = (set, from, to, next) => {
235
212
  const kept = set.transitions.filter((t) => !(t.from === from && t.to === to));
236
213
  return { ...set, transitions: next ? [...kept, next] : kept };
@@ -261,12 +238,12 @@ function addReason(set, from, to, label) {
261
238
  }
262
239
 
263
240
  // src/kind-config-editor/kind-config-editor.tsx
264
- import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
241
+ import { Fragment as Fragment2, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
265
242
  function Problems({ title, problems }) {
266
243
  if (!problems || problems.length === 0) return null;
267
- return /* @__PURE__ */ jsxs3("div", { role: "alert", className: "flex flex-col gap-1 rounded-lg border border-danger/40 bg-danger/10 px-3 py-2.5", children: [
268
- /* @__PURE__ */ jsx3("p", { className: "m-0 text-xs font-semibold text-fg-danger", children: title }),
269
- /* @__PURE__ */ jsx3("ul", { className: "m-0 flex list-disc flex-col gap-0.5 pl-5 text-xs text-fg", children: problems.map((problem) => /* @__PURE__ */ jsx3("li", { children: problem }, problem)) })
244
+ return /* @__PURE__ */ jsxs2("div", { role: "alert", className: "flex flex-col gap-1 rounded-lg border border-danger/40 bg-danger/10 px-3 py-2.5", children: [
245
+ /* @__PURE__ */ jsx2("p", { className: "m-0 text-xs font-semibold text-fg-danger", children: title }),
246
+ /* @__PURE__ */ jsx2("ul", { className: "m-0 flex list-disc flex-col gap-0.5 pl-5 text-xs text-fg", children: problems.map((problem) => /* @__PURE__ */ jsx2("li", { children: problem }, problem)) })
270
247
  ] });
271
248
  }
272
249
  function useReorder(onMove) {
@@ -304,9 +281,9 @@ function useReorder(onMove) {
304
281
  }
305
282
  };
306
283
  }
307
- var grip = /* @__PURE__ */ jsx3("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "currentColor", "aria-hidden": true, children: [7, 12, 17].flatMap((y) => [9, 15].map((x) => /* @__PURE__ */ jsx3("circle", { cx: x, cy: y, r: "1.4" }, `${x}-${y}`))) });
308
- var arrow = (up) => /* @__PURE__ */ jsx3("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx3("path", { d: up ? "m6 15 6-6 6 6" : "m6 9 6 6 6-6" }) });
309
- var IconButton = ({ label, className, ...props }) => /* @__PURE__ */ jsx3(
284
+ var grip = /* @__PURE__ */ jsx2("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "currentColor", "aria-hidden": true, children: [7, 12, 17].flatMap((y) => [9, 15].map((x) => /* @__PURE__ */ jsx2("circle", { cx: x, cy: y, r: "1.4" }, `${x}-${y}`))) });
285
+ var arrow = (up) => /* @__PURE__ */ jsx2("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx2("path", { d: up ? "m6 15 6-6 6 6" : "m6 9 6 6 6-6" }) });
286
+ var IconButton = ({ label, className, ...props }) => /* @__PURE__ */ jsx2(
310
287
  "button",
311
288
  {
312
289
  type: "button",
@@ -320,7 +297,7 @@ var IconButton = ({ label, className, ...props }) => /* @__PURE__ */ jsx3(
320
297
  ...props
321
298
  }
322
299
  );
323
- var Cross = () => /* @__PURE__ */ jsx3("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx3("path", { d: "M18 6 6 18M6 6l12 12" }) });
300
+ var Cross = () => /* @__PURE__ */ jsx2("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx2("path", { d: "M18 6 6 18M6 6l12 12" }) });
324
301
  function TagSetEditor({ value, onChange, variant, roles, problems, labels: given, disabled, className }) {
325
302
  const labels = { ...tagSetEditorLabels, ...given, markerNames: { ...tagSetEditorLabels.markerNames, ...given?.markerNames } };
326
303
  const presets = value.presets[variant] ?? [];
@@ -335,18 +312,18 @@ function TagSetEditor({ value, onChange, variant, roles, problems, labels: given
335
312
  onChange(next);
336
313
  setDraft("");
337
314
  };
338
- return /* @__PURE__ */ jsxs3("div", { className: cn("flex flex-col gap-4", className), children: [
339
- /* @__PURE__ */ jsx3(Problems, { title: labels.problems, problems }),
340
- /* @__PURE__ */ jsxs3("section", { "aria-labelledby": `${id}-presets`, className: "flex flex-col gap-2", children: [
341
- /* @__PURE__ */ jsx3("h3", { id: `${id}-presets`, className: "m-0 text-sm font-semibold text-fg", children: labels.presets }),
342
- presets.length === 0 ? /* @__PURE__ */ jsx3("p", { className: "m-0 text-sm text-fg-secondary", children: labels.empty }) : /* @__PURE__ */ jsx3("ol", { className: "m-0 flex list-none flex-col gap-2 p-0", children: presets.map((preset, index) => {
315
+ return /* @__PURE__ */ jsxs2("div", { className: cn("flex flex-col gap-4", className), children: [
316
+ /* @__PURE__ */ jsx2(Problems, { title: labels.problems, problems }),
317
+ /* @__PURE__ */ jsxs2("section", { "aria-labelledby": `${id}-presets`, className: "flex flex-col gap-2", children: [
318
+ /* @__PURE__ */ jsx2("h3", { id: `${id}-presets`, className: "m-0 text-sm font-semibold text-fg", children: labels.presets }),
319
+ presets.length === 0 ? /* @__PURE__ */ jsx2("p", { className: "m-0 text-sm text-fg-secondary", children: labels.empty }) : /* @__PURE__ */ jsx2("ol", { className: "m-0 flex list-none flex-col gap-2 p-0", children: presets.map((preset, index) => {
343
320
  const shown = preset.name || String(index + 1);
344
321
  const twin = twins.has(index);
345
- return /* @__PURE__ */ jsxs3("li", { ...reorder.row(index), className: "flex flex-wrap items-center gap-x-2 gap-y-1 rounded-lg border border-border-default bg-surface-1 px-2 py-1.5", children: [
346
- /* @__PURE__ */ jsx3("span", { ...reorder.handle(index), "aria-hidden": true, title: labels.drag(shown), className: "inline-flex h-9 w-6 cursor-grab items-center justify-center text-fg-muted active:cursor-grabbing max-md:hidden", children: grip }),
347
- /* @__PURE__ */ jsx3(TagMarker, { marker: preset.marker }),
348
- /* @__PURE__ */ jsxs3("div", { className: "flex min-w-40 flex-1 flex-col gap-1", children: [
349
- /* @__PURE__ */ jsx3(
322
+ return /* @__PURE__ */ jsxs2("li", { ...reorder.row(index), className: "flex flex-wrap items-center gap-x-2 gap-y-1 rounded-lg border border-border-default bg-surface-1 px-2 py-1.5", children: [
323
+ /* @__PURE__ */ jsx2("span", { ...reorder.handle(index), "aria-hidden": true, title: labels.drag(shown), className: "inline-flex h-9 w-6 cursor-grab items-center justify-center text-fg-muted active:cursor-grabbing max-md:hidden", children: grip }),
324
+ /* @__PURE__ */ jsx2(TagMarker, { marker: preset.marker }),
325
+ /* @__PURE__ */ jsxs2("div", { className: "flex min-w-40 flex-1 flex-col gap-1", children: [
326
+ /* @__PURE__ */ jsx2(
350
327
  Input,
351
328
  {
352
329
  "aria-label": labels.name(index + 1),
@@ -361,16 +338,16 @@ function TagSetEditor({ value, onChange, variant, roles, problems, labels: given
361
338
  className: "h-9"
362
339
  }
363
340
  ),
364
- twin ? /* @__PURE__ */ jsx3("span", { id: `${id}-dup-${index}`, className: "text-xs text-fg-danger", children: labels.duplicate }) : null
341
+ twin ? /* @__PURE__ */ jsx2("span", { id: `${id}-dup-${index}`, className: "text-xs text-fg-danger", children: labels.duplicate }) : null
365
342
  ] }),
366
- /* @__PURE__ */ jsx3(MarkerPicker, { label: labels.marker(shown), names: labels.markerNames, value: preset.marker, disabled, onValueChange: (marker) => onChange(recolorPreset(value, variant, index, marker)) }),
367
- /* @__PURE__ */ jsx3(IconButton, { label: labels.moveUp(shown), disabled: disabled || index === 0, onClick: () => onChange(movePreset(value, variant, index, index - 1)), children: arrow(true) }),
368
- /* @__PURE__ */ jsx3(IconButton, { label: labels.moveDown(shown), disabled: disabled || index === presets.length - 1, onClick: () => onChange(movePreset(value, variant, index, index + 1)), children: arrow(false) }),
369
- /* @__PURE__ */ jsx3(IconButton, { label: labels.remove(shown), disabled, onClick: () => onChange(removePreset(value, variant, index)), children: /* @__PURE__ */ jsx3(Cross, {}) })
343
+ /* @__PURE__ */ jsx2(MarkerPicker, { label: labels.marker(shown), names: labels.markerNames, value: preset.marker, disabled, onValueChange: (marker) => onChange(recolorPreset(value, variant, index, marker)) }),
344
+ /* @__PURE__ */ jsx2(IconButton, { label: labels.moveUp(shown), disabled: disabled || index === 0, onClick: () => onChange(movePreset(value, variant, index, index - 1)), children: arrow(true) }),
345
+ /* @__PURE__ */ jsx2(IconButton, { label: labels.moveDown(shown), disabled: disabled || index === presets.length - 1, onClick: () => onChange(movePreset(value, variant, index, index + 1)), children: arrow(false) }),
346
+ /* @__PURE__ */ jsx2(IconButton, { label: labels.remove(shown), disabled, onClick: () => onChange(removePreset(value, variant, index)), children: /* @__PURE__ */ jsx2(Cross, {}) })
370
347
  ] }, index);
371
348
  }) }),
372
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-wrap items-center gap-2", children: [
373
- /* @__PURE__ */ jsx3(
349
+ /* @__PURE__ */ jsxs2("div", { className: "flex flex-wrap items-center gap-2", children: [
350
+ /* @__PURE__ */ jsx2(
374
351
  Input,
375
352
  {
376
353
  "aria-label": labels.add,
@@ -388,14 +365,14 @@ function TagSetEditor({ value, onChange, variant, roles, problems, labels: given
388
365
  className: "h-9 min-w-40 flex-1"
389
366
  }
390
367
  ),
391
- /* @__PURE__ */ jsx3(MarkerPicker, { label: labels.marker(draft.trim() || labels.add), names: labels.markerNames, value: draftMarker, disabled, onValueChange: setDraftMarker }),
392
- /* @__PURE__ */ jsx3(Button, { type: "button", size: "sm", variant: "secondary", disabled: disabled || !draft.trim(), onClick: add, children: labels.addButton })
368
+ /* @__PURE__ */ jsx2(MarkerPicker, { label: labels.marker(draft.trim() || labels.add), names: labels.markerNames, value: draftMarker, disabled, onValueChange: setDraftMarker }),
369
+ /* @__PURE__ */ jsx2(Button, { type: "button", size: "sm", variant: "secondary", disabled: disabled || !draft.trim(), onClick: add, children: labels.addButton })
393
370
  ] })
394
371
  ] }),
395
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col", children: [
396
- /* @__PURE__ */ jsx3(SettingsRow, { label: labels.writers, description: labels.writersHint, children: /* @__PURE__ */ jsx3(Chip.Group, { type: "multiple", size: "sm", label: labels.writers, value: value.writers, disabled, onValueChange: (writers) => onChange({ ...value, writers }), children: roles.map((role) => /* @__PURE__ */ jsx3(Chip, { value: role.key, children: role.label }, role.key)) }) }),
397
- /* @__PURE__ */ jsx3(SettingsRow, { label: labels.userTags, description: labels.userTagsHint, children: /* @__PURE__ */ jsx3(Switch, { label: labels.userTags, checked: value.userTags, disabled, onCheckedChange: (userTags) => onChange({ ...value, userTags }) }) }),
398
- /* @__PURE__ */ jsx3(SettingsRow, { label: labels.max, description: labels.maxHint, htmlFor: `${id}-max`, children: /* @__PURE__ */ jsx3(
372
+ /* @__PURE__ */ jsxs2("div", { className: "flex flex-col", children: [
373
+ /* @__PURE__ */ jsx2(SettingsRow, { label: labels.writers, description: labels.writersHint, children: /* @__PURE__ */ jsx2(Chip.Group, { type: "multiple", size: "sm", label: labels.writers, value: value.writers, disabled, onValueChange: (writers) => onChange({ ...value, writers }), children: roles.map((role) => /* @__PURE__ */ jsx2(Chip, { value: role.key, children: role.label }, role.key)) }) }),
374
+ /* @__PURE__ */ jsx2(SettingsRow, { label: labels.userTags, description: labels.userTagsHint, children: /* @__PURE__ */ jsx2(Switch, { label: labels.userTags, checked: value.userTags, disabled, onCheckedChange: (userTags) => onChange({ ...value, userTags }) }) }),
375
+ /* @__PURE__ */ jsx2(SettingsRow, { label: labels.max, description: labels.maxHint, htmlFor: `${id}-max`, children: /* @__PURE__ */ jsx2(
399
376
  Input,
400
377
  {
401
378
  id: `${id}-max`,
@@ -419,31 +396,31 @@ function StatusSetEditor({ value, onChange, roles, locale = "en", problems, labe
419
396
  const [chosen, setChosen] = React2.useState(null);
420
397
  const reorder = useReorder((from, to) => onChange(moveState(value, from, to)));
421
398
  const id = React2.useId();
422
- const nameOf = (key) => value.states.find((s2) => s2.key === key)?.label[locale] || key;
399
+ const nameOf = (key) => value.states.find((s) => s.key === key)?.label[locale] || key;
423
400
  const roleLabel = (key) => roles.find((r) => r.key === key)?.label ?? key;
424
401
  const open = chosen && value.states.some((x) => x.key === chosen.from) && value.states.some((x) => x.key === chosen.to) ? chosen : null;
425
402
  const detail = open ? transitionOf(value, open.from, open.to) : void 0;
426
403
  if (value.mode === "derived") {
427
- return /* @__PURE__ */ jsxs3("div", { className: cn("flex flex-col gap-3", className), children: [
428
- /* @__PURE__ */ jsx3(Problems, { title: labels.problems, problems }),
429
- /* @__PURE__ */ jsx3("p", { className: "m-0 text-sm text-fg-secondary", children: labels.derived }),
430
- /* @__PURE__ */ jsx3("ol", { "aria-label": labels.states, className: "m-0 flex list-none flex-wrap gap-2 p-0", children: value.states.map((state) => /* @__PURE__ */ jsxs3("li", { className: "inline-flex items-center gap-1.5 rounded-sm bg-surface-3 px-2 py-0.5 text-[11px] font-semibold text-fg-secondary", "data-tone": state.tone, children: [
431
- /* @__PURE__ */ jsx3("span", { "aria-hidden": true, className: "h-1.5 w-1.5 rounded-full bg-current" }),
404
+ return /* @__PURE__ */ jsxs2("div", { className: cn("flex flex-col gap-3", className), children: [
405
+ /* @__PURE__ */ jsx2(Problems, { title: labels.problems, problems }),
406
+ /* @__PURE__ */ jsx2("p", { className: "m-0 text-sm text-fg-secondary", children: labels.derived }),
407
+ /* @__PURE__ */ jsx2("ol", { "aria-label": labels.states, className: "m-0 flex list-none flex-wrap gap-2 p-0", children: value.states.map((state) => /* @__PURE__ */ jsxs2("li", { className: "inline-flex items-center gap-1.5 rounded-sm bg-surface-3 px-2 py-0.5 text-[11px] font-semibold text-fg-secondary", "data-tone": state.tone, children: [
408
+ /* @__PURE__ */ jsx2("span", { "aria-hidden": true, className: "h-1.5 w-1.5 rounded-full bg-current" }),
432
409
  state.label[locale]
433
410
  ] }, state.key)) })
434
411
  ] });
435
412
  }
436
- return /* @__PURE__ */ jsxs3("div", { className: cn("flex flex-col gap-5", className), children: [
437
- /* @__PURE__ */ jsx3(Problems, { title: labels.problems, problems }),
438
- /* @__PURE__ */ jsxs3("section", { "aria-labelledby": `${id}-states`, className: "flex flex-col gap-2", children: [
439
- /* @__PURE__ */ jsx3("h3", { id: `${id}-states`, className: "m-0 text-sm font-semibold text-fg", children: labels.states }),
440
- /* @__PURE__ */ jsx3("ol", { className: "m-0 flex list-none flex-col gap-2 p-0", children: value.states.map((state, index) => {
413
+ return /* @__PURE__ */ jsxs2("div", { className: cn("flex flex-col gap-5", className), children: [
414
+ /* @__PURE__ */ jsx2(Problems, { title: labels.problems, problems }),
415
+ /* @__PURE__ */ jsxs2("section", { "aria-labelledby": `${id}-states`, className: "flex flex-col gap-2", children: [
416
+ /* @__PURE__ */ jsx2("h3", { id: `${id}-states`, className: "m-0 text-sm font-semibold text-fg", children: labels.states }),
417
+ /* @__PURE__ */ jsx2("ol", { className: "m-0 flex list-none flex-col gap-2 p-0", children: value.states.map((state, index) => {
441
418
  const n = index + 1;
442
419
  const isInitial = value.initial === state.key;
443
420
  const name = state.label[locale] || String(n);
444
- return /* @__PURE__ */ jsxs3("li", { ...reorder.row(index), "data-state-key": state.key, className: "flex flex-wrap items-start gap-x-3 gap-y-2 rounded-lg border border-border-default bg-surface-1 p-2.5", children: [
445
- /* @__PURE__ */ jsx3("span", { ...reorder.handle(index), "aria-hidden": true, title: labels.drag(name), className: "mt-1.5 inline-flex h-9 w-6 cursor-grab items-center justify-center text-fg-muted active:cursor-grabbing max-md:hidden", children: grip }),
446
- ["fr", "en"].map((lang) => /* @__PURE__ */ jsx3(
421
+ return /* @__PURE__ */ jsxs2("li", { ...reorder.row(index), "data-state-key": state.key, className: "flex flex-wrap items-start gap-x-3 gap-y-2 rounded-lg border border-border-default bg-surface-1 p-2.5", children: [
422
+ /* @__PURE__ */ jsx2("span", { ...reorder.handle(index), "aria-hidden": true, title: labels.drag(name), className: "mt-1.5 inline-flex h-9 w-6 cursor-grab items-center justify-center text-fg-muted active:cursor-grabbing max-md:hidden", children: grip }),
423
+ ["fr", "en"].map((lang) => /* @__PURE__ */ jsx2(
447
424
  Input,
448
425
  {
449
426
  "aria-label": labels.stateLabel(labels.languages[lang], n),
@@ -459,37 +436,37 @@ function StatusSetEditor({ value, onChange, roles, locale = "en", problems, labe
459
436
  },
460
437
  lang
461
438
  )),
462
- /* @__PURE__ */ jsx3(Select, { "aria-label": labels.tone(n), value: state.tone, disabled, onChange: (event) => onChange(setStateTone(value, state.key, event.target.value)), className: "h-9 w-36", children: STATUS_TONES.map((tone) => /* @__PURE__ */ jsx3("option", { value: tone, children: labels.tones[tone] }, tone)) }),
463
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-1.5 text-xs text-fg-secondary", children: [
464
- /* @__PURE__ */ jsx3(Switch, { size: "sm", label: labels.final(n), checked: Boolean(state.final), disabled: disabled || isInitial, onCheckedChange: (final) => onChange(setFinal(value, state.key, final)) }),
465
- /* @__PURE__ */ jsx3("span", { "aria-hidden": true, children: isInitial ? labels.initialNotFinal : labels.finalHint })
439
+ /* @__PURE__ */ jsx2(Select, { "aria-label": labels.tone(n), value: state.tone, disabled, onChange: (event) => onChange(setStateTone(value, state.key, event.target.value)), className: "h-9 w-36", children: STATUS_TONES.map((tone) => /* @__PURE__ */ jsx2("option", { value: tone, children: labels.tones[tone] }, tone)) }),
440
+ /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-1.5 text-xs text-fg-secondary", children: [
441
+ /* @__PURE__ */ jsx2(Switch, { size: "sm", label: labels.final(n), checked: Boolean(state.final), disabled: disabled || isInitial, onCheckedChange: (final) => onChange(setFinal(value, state.key, final)) }),
442
+ /* @__PURE__ */ jsx2("span", { "aria-hidden": true, children: isInitial ? labels.initialNotFinal : labels.finalHint })
466
443
  ] }),
467
- /* @__PURE__ */ jsxs3("label", { className: "flex items-center gap-1.5 text-xs text-fg-secondary", children: [
468
- /* @__PURE__ */ jsx3("input", { type: "radio", name: `${id}-initial`, "aria-label": labels.initial(n), checked: isInitial, disabled: disabled || Boolean(state.final), onChange: () => onChange(setInitial(value, state.key)), className: "h-4 w-4 accent-(--kz-accent)" }),
469
- /* @__PURE__ */ jsx3("span", { "aria-hidden": true, children: labels.initial(n) })
444
+ /* @__PURE__ */ jsxs2("label", { className: "flex items-center gap-1.5 text-xs text-fg-secondary", children: [
445
+ /* @__PURE__ */ jsx2("input", { type: "radio", name: `${id}-initial`, "aria-label": labels.initial(n), checked: isInitial, disabled: disabled || Boolean(state.final), onChange: () => onChange(setInitial(value, state.key)), className: "h-4 w-4 accent-(--kz-accent)" }),
446
+ /* @__PURE__ */ jsx2("span", { "aria-hidden": true, children: labels.initial(n) })
470
447
  ] }),
471
- /* @__PURE__ */ jsx3("code", { className: "text-[11px] text-fg-muted", children: state.key }),
472
- /* @__PURE__ */ jsxs3("div", { className: "ml-auto flex", children: [
473
- /* @__PURE__ */ jsx3(IconButton, { label: labels.moveUp(name), disabled: disabled || index === 0, onClick: () => onChange(moveState(value, index, index - 1)), children: arrow(true) }),
474
- /* @__PURE__ */ jsx3(IconButton, { label: labels.moveDown(name), disabled: disabled || index === value.states.length - 1, onClick: () => onChange(moveState(value, index, index + 1)), children: arrow(false) }),
475
- /* @__PURE__ */ jsx3(IconButton, { label: labels.remove(name), disabled: disabled || value.states.length <= 2, onClick: () => onChange(removeState(value, state.key)), children: /* @__PURE__ */ jsx3(Cross, {}) })
448
+ /* @__PURE__ */ jsx2("code", { className: "text-[11px] text-fg-muted", children: state.key }),
449
+ /* @__PURE__ */ jsxs2("div", { className: "ml-auto flex", children: [
450
+ /* @__PURE__ */ jsx2(IconButton, { label: labels.moveUp(name), disabled: disabled || index === 0, onClick: () => onChange(moveState(value, index, index - 1)), children: arrow(true) }),
451
+ /* @__PURE__ */ jsx2(IconButton, { label: labels.moveDown(name), disabled: disabled || index === value.states.length - 1, onClick: () => onChange(moveState(value, index, index + 1)), children: arrow(false) }),
452
+ /* @__PURE__ */ jsx2(IconButton, { label: labels.remove(name), disabled: disabled || value.states.length <= 2, onClick: () => onChange(removeState(value, state.key)), children: /* @__PURE__ */ jsx2(Cross, {}) })
476
453
  ] })
477
454
  ] }, state.key);
478
455
  }) }),
479
- /* @__PURE__ */ jsx3("div", { children: /* @__PURE__ */ jsx3(Button, { type: "button", size: "sm", variant: "secondary", disabled: disabled || value.states.length >= 12, onClick: () => onChange(addState(value, labels.newState)), children: labels.addState }) })
456
+ /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsx2(Button, { type: "button", size: "sm", variant: "secondary", disabled: disabled || value.states.length >= 12, onClick: () => onChange(addState(value, labels.newState)), children: labels.addState }) })
480
457
  ] }),
481
- /* @__PURE__ */ jsxs3("section", { "aria-labelledby": `${id}-moves`, className: "flex flex-col gap-3", children: [
482
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-0.5", children: [
483
- /* @__PURE__ */ jsx3("h3", { id: `${id}-moves`, className: "m-0 text-sm font-semibold text-fg", children: labels.moves }),
484
- /* @__PURE__ */ jsx3("p", { className: "m-0 text-xs text-fg-secondary", children: labels.movesHint })
458
+ /* @__PURE__ */ jsxs2("section", { "aria-labelledby": `${id}-moves`, className: "flex flex-col gap-3", children: [
459
+ /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-0.5", children: [
460
+ /* @__PURE__ */ jsx2("h3", { id: `${id}-moves`, className: "m-0 text-sm font-semibold text-fg", children: labels.moves }),
461
+ /* @__PURE__ */ jsx2("p", { className: "m-0 text-xs text-fg-secondary", children: labels.movesHint })
485
462
  ] }),
486
- value.states.map((from) => /* @__PURE__ */ jsxs3("div", { role: "group", "aria-label": labels.from(nameOf(from.key)), className: "flex flex-wrap items-center gap-2", children: [
487
- /* @__PURE__ */ jsx3("span", { className: "min-w-28 text-xs font-semibold text-fg", children: nameOf(from.key) }),
488
- from.final ? /* @__PURE__ */ jsx3("span", { className: "text-xs text-fg-secondary", children: labels.noWayOut }) : value.states.filter((to) => to.key !== from.key).map((to) => {
463
+ value.states.map((from) => /* @__PURE__ */ jsxs2("div", { role: "group", "aria-label": labels.from(nameOf(from.key)), className: "flex flex-wrap items-center gap-2", children: [
464
+ /* @__PURE__ */ jsx2("span", { className: "min-w-28 text-xs font-semibold text-fg", children: nameOf(from.key) }),
465
+ from.final ? /* @__PURE__ */ jsx2("span", { className: "text-xs text-fg-secondary", children: labels.noWayOut }) : value.states.filter((to) => to.key !== from.key).map((to) => {
489
466
  const move2 = transitionOf(value, from.key, to.key);
490
467
  const summary = move2 ? move2.roles.map(roleLabel).join(", ") : labels.none;
491
468
  const on = open?.from === from.key && open.to === to.key;
492
- return /* @__PURE__ */ jsxs3(
469
+ return /* @__PURE__ */ jsxs2(
493
470
  "button",
494
471
  {
495
472
  type: "button",
@@ -503,23 +480,23 @@ function StatusSetEditor({ value, onChange, roles, locale = "en", problems, labe
503
480
  on && "ring-2 ring-ring"
504
481
  ),
505
482
  children: [
506
- /* @__PURE__ */ jsx3("span", { className: "sr-only", children: labels.move(nameOf(from.key), nameOf(to.key), summary) }),
507
- /* @__PURE__ */ jsxs3("span", { "aria-hidden": true, children: [
483
+ /* @__PURE__ */ jsx2("span", { className: "sr-only", children: labels.move(nameOf(from.key), nameOf(to.key), summary) }),
484
+ /* @__PURE__ */ jsxs2("span", { "aria-hidden": true, children: [
508
485
  "\u2192 ",
509
486
  nameOf(to.key)
510
487
  ] }),
511
- /* @__PURE__ */ jsx3("span", { "aria-hidden": true, className: "text-fg", children: summary })
488
+ /* @__PURE__ */ jsx2("span", { "aria-hidden": true, className: "text-fg", children: summary })
512
489
  ]
513
490
  },
514
491
  to.key
515
492
  );
516
493
  })
517
494
  ] }, from.key)),
518
- open && chosen ? /* @__PURE__ */ jsxs3("div", { role: "region", "aria-label": labels.moveDetail(nameOf(open.from), nameOf(open.to)), className: "flex flex-col gap-3 rounded-lg border border-border-default bg-surface-1 p-3", children: [
519
- /* @__PURE__ */ jsx3("h4", { className: "m-0 text-sm font-semibold text-fg", children: labels.moveDetail(nameOf(open.from), nameOf(open.to)) }),
520
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-1.5", children: [
521
- /* @__PURE__ */ jsx3("span", { className: "text-xs font-semibold text-fg-secondary", children: labels.roles }),
522
- /* @__PURE__ */ jsx3(
495
+ open && chosen ? /* @__PURE__ */ jsxs2("div", { role: "region", "aria-label": labels.moveDetail(nameOf(open.from), nameOf(open.to)), className: "flex flex-col gap-3 rounded-lg border border-border-default bg-surface-1 p-3", children: [
496
+ /* @__PURE__ */ jsx2("h4", { className: "m-0 text-sm font-semibold text-fg", children: labels.moveDetail(nameOf(open.from), nameOf(open.to)) }),
497
+ /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-1.5", children: [
498
+ /* @__PURE__ */ jsx2("span", { className: "text-xs font-semibold text-fg-secondary", children: labels.roles }),
499
+ /* @__PURE__ */ jsx2(
523
500
  Chip.Group,
524
501
  {
525
502
  type: "multiple",
@@ -530,19 +507,19 @@ function StatusSetEditor({ value, onChange, roles, locale = "en", problems, labe
530
507
  onValueChange: (next) => {
531
508
  onChange(setTransitionRoles(value, open.from, open.to, next));
532
509
  },
533
- children: roles.map((role) => /* @__PURE__ */ jsx3(Chip, { value: role.key, children: role.label }, role.key))
510
+ children: roles.map((role) => /* @__PURE__ */ jsx2(Chip, { value: role.key, children: role.label }, role.key))
534
511
  }
535
512
  )
536
513
  ] }),
537
- detail ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
538
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-2 text-xs text-fg-secondary", children: [
539
- /* @__PURE__ */ jsx3(Switch, { size: "sm", label: labels.confirm, checked: Boolean(detail?.confirm), disabled, onCheckedChange: (on) => onChange(setTransitionConfirm(value, open.from, open.to, on)) }),
540
- /* @__PURE__ */ jsx3("span", { "aria-hidden": true, children: labels.confirm })
514
+ detail ? /* @__PURE__ */ jsxs2(Fragment2, { children: [
515
+ /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-2 text-xs text-fg-secondary", children: [
516
+ /* @__PURE__ */ jsx2(Switch, { size: "sm", label: labels.confirm, checked: Boolean(detail?.confirm), disabled, onCheckedChange: (on) => onChange(setTransitionConfirm(value, open.from, open.to, on)) }),
517
+ /* @__PURE__ */ jsx2("span", { "aria-hidden": true, children: labels.confirm })
541
518
  ] }),
542
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-2", children: [
543
- /* @__PURE__ */ jsx3("span", { className: "text-xs font-semibold text-fg-secondary", children: labels.reasons }),
544
- (detail?.reasons ?? []).map((reason, at) => /* @__PURE__ */ jsxs3("div", { className: "flex flex-wrap items-center gap-2", children: [
545
- ["fr", "en"].map((lang) => /* @__PURE__ */ jsx3(
519
+ /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-2", children: [
520
+ /* @__PURE__ */ jsx2("span", { className: "text-xs font-semibold text-fg-secondary", children: labels.reasons }),
521
+ (detail?.reasons ?? []).map((reason, at) => /* @__PURE__ */ jsxs2("div", { className: "flex flex-wrap items-center gap-2", children: [
522
+ ["fr", "en"].map((lang) => /* @__PURE__ */ jsx2(
546
523
  Input,
547
524
  {
548
525
  lang,
@@ -556,9 +533,9 @@ function StatusSetEditor({ value, onChange, roles, locale = "en", problems, labe
556
533
  },
557
534
  lang
558
535
  )),
559
- /* @__PURE__ */ jsx3(IconButton, { label: labels.removeReason(at + 1), disabled, onClick: () => onChange(setTransitionReasons(value, open.from, open.to, (detail?.reasons ?? []).filter((r) => r.key !== reason.key))), children: /* @__PURE__ */ jsx3(Cross, {}) })
536
+ /* @__PURE__ */ jsx2(IconButton, { label: labels.removeReason(at + 1), disabled, onClick: () => onChange(setTransitionReasons(value, open.from, open.to, (detail?.reasons ?? []).filter((r) => r.key !== reason.key))), children: /* @__PURE__ */ jsx2(Cross, {}) })
560
537
  ] }, reason.key)),
561
- /* @__PURE__ */ jsx3("div", { children: /* @__PURE__ */ jsx3(Button, { type: "button", size: "sm", variant: "secondary", disabled: disabled || (detail?.reasons?.length ?? 0) >= 12, onClick: () => onChange(addReason(value, open.from, open.to, { fr: "", en: "" })), children: labels.addReason }) })
538
+ /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsx2(Button, { type: "button", size: "sm", variant: "secondary", disabled: disabled || (detail?.reasons?.length ?? 0) >= 12, onClick: () => onChange(addReason(value, open.from, open.to, { fr: "", en: "" })), children: labels.addReason }) })
562
539
  ] })
563
540
  ] }) : null
564
541
  ] }) : null