@krizaka/ui 4.5.0 → 4.7.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 (248) hide show
  1. package/README.md +1 -0
  2. package/dist/account-settings.js +56 -43
  3. package/dist/account-settings.js.map +1 -1
  4. package/dist/architecture-diagram.d.ts +46 -0
  5. package/dist/architecture-diagram.js +324 -0
  6. package/dist/architecture-diagram.js.map +1 -0
  7. package/dist/argument-card.js +3 -3
  8. package/dist/blocks.css +33 -0
  9. package/dist/{chunk-CZHPWLNW.js → chunk-WKQ5CB3I.js} +18 -5
  10. package/dist/chunk-WKQ5CB3I.js.map +1 -0
  11. package/dist/columns.js +3 -1
  12. package/dist/columns.js.map +1 -1
  13. package/dist/comparison-table.js +3 -3
  14. package/dist/comparison-table.js.map +1 -1
  15. package/dist/filter-bar.d.ts +3 -3
  16. package/dist/kind-config-editor.js +1 -1
  17. package/dist/language-switch.d.ts +9 -9
  18. package/dist/map.d.ts +6 -6
  19. package/dist/nav-bar.d.ts +1 -1
  20. package/dist/notification-preferences.js +1 -1
  21. package/dist/router.js +2 -2
  22. package/dist/router.js.map +1 -1
  23. package/dist/{schema-Dd05m48Q.d.ts → schema-Dkn0uX72.d.ts} +1 -1
  24. package/dist/schema-form.js +1 -1
  25. package/dist/shop-composer.d.ts +2 -2
  26. package/dist/shop.d.ts +2 -2
  27. package/dist/site-cahier.d.ts +2 -0
  28. package/dist/site-cahier.js +2 -1
  29. package/dist/site-cahier.js.map +1 -1
  30. package/dist/site-footer.d.ts +52 -6
  31. package/dist/site-footer.js +98 -60
  32. package/dist/site-footer.js.map +1 -1
  33. package/dist/{sites-iJkCPeiH.d.ts → sites-BPshUouf.d.ts} +2 -2
  34. package/dist/switch.d.ts +25 -3
  35. package/dist/switch.js +1 -1
  36. package/dist/virtual.d.ts +3 -3
  37. package/package.json +30 -11
  38. package/registry/account-menu.json +1 -1
  39. package/registry/account-settings.json +1 -1
  40. package/registry/achievement.json +1 -1
  41. package/registry/action-bar.json +1 -1
  42. package/registry/activity-feed.json +1 -1
  43. package/registry/agenda.json +1 -1
  44. package/registry/alert.json +1 -1
  45. package/registry/analysis-report.json +1 -1
  46. package/registry/anatomy-plate.json +1 -1
  47. package/registry/app-frame.json +2 -2
  48. package/registry/app-header.json +1 -1
  49. package/registry/app-shell.json +1 -1
  50. package/registry/architecture-diagram.json +239 -0
  51. package/registry/argument-card.json +1 -1
  52. package/registry/auth-layout.json +1 -1
  53. package/registry/avatar.json +1 -1
  54. package/registry/badge.json +1 -1
  55. package/registry/bird-plate.json +1 -1
  56. package/registry/button.json +1 -1
  57. package/registry/captcha.json +1 -1
  58. package/registry/card-grid.json +1 -1
  59. package/registry/card.json +1 -1
  60. package/registry/catalogue-page.json +1 -1
  61. package/registry/changelog-page.json +1 -1
  62. package/registry/chapter.json +1 -1
  63. package/registry/chat.json +1 -1
  64. package/registry/checkbox.json +1 -1
  65. package/registry/chip-link.json +1 -1
  66. package/registry/chip-row.json +1 -1
  67. package/registry/chip.json +1 -1
  68. package/registry/choice-grid.json +1 -1
  69. package/registry/code-block.json +1 -1
  70. package/registry/collection-switcher.json +1 -1
  71. package/registry/columns.json +2 -2
  72. package/registry/combobox.json +1 -1
  73. package/registry/command.json +1 -1
  74. package/registry/comparison-table.json +2 -2
  75. package/registry/component-page.json +1 -1
  76. package/registry/confirm-button.json +1 -1
  77. package/registry/contact-page.json +1 -1
  78. package/registry/continue-prompt.json +1 -1
  79. package/registry/copy-button.json +1 -1
  80. package/registry/countdown.json +1 -1
  81. package/registry/cover-hero.json +1 -1
  82. package/registry/cta-panel.json +1 -1
  83. package/registry/dashboard-layout.json +1 -1
  84. package/registry/data-table.json +1 -1
  85. package/registry/date-picker.json +1 -1
  86. package/registry/decision-list.json +1 -1
  87. package/registry/description-list.json +1 -1
  88. package/registry/desktop-window.json +1 -1
  89. package/registry/detail-layout.json +1 -1
  90. package/registry/dialog.json +1 -1
  91. package/registry/docs-article-page.json +1 -1
  92. package/registry/docs-hub-page.json +1 -1
  93. package/registry/docs-layout.json +1 -1
  94. package/registry/docs-nav.json +1 -1
  95. package/registry/document-viewer.json +1 -1
  96. package/registry/doodle.json +1 -1
  97. package/registry/drop-overlay.json +1 -1
  98. package/registry/dropdown-menu.json +1 -1
  99. package/registry/elephant.json +1 -1
  100. package/registry/embed-facade.json +1 -1
  101. package/registry/empty-state.json +1 -1
  102. package/registry/engine-flow.json +1 -1
  103. package/registry/entity-header.json +1 -1
  104. package/registry/environment-notice.json +1 -1
  105. package/registry/error-page.json +1 -1
  106. package/registry/examples/architecture-diagram/containers.d.ts +4 -0
  107. package/registry/examples/architecture-diagram/containers.js +28 -0
  108. package/registry/examples/architecture-diagram/containers.tsx +24 -0
  109. package/registry/examples/architecture-diagram/context.d.ts +4 -0
  110. package/registry/examples/architecture-diagram/context.js +26 -0
  111. package/registry/examples/architecture-diagram/context.tsx +22 -0
  112. package/registry/examples/architecture-diagram/dynamic.d.ts +4 -0
  113. package/registry/examples/architecture-diagram/dynamic.js +27 -0
  114. package/registry/examples/architecture-diagram/dynamic.tsx +23 -0
  115. package/registry/examples/site-footer/family.d.ts +4 -0
  116. package/registry/examples/site-footer/family.js +25 -0
  117. package/registry/examples/site-footer/family.tsx +28 -0
  118. package/registry/examples/switch/row.d.ts +4 -0
  119. package/registry/examples/switch/row.js +14 -0
  120. package/registry/examples/switch/row.tsx +13 -0
  121. package/registry/field.json +1 -1
  122. package/registry/file-upload.json +1 -1
  123. package/registry/filter-bar.json +1 -1
  124. package/registry/flock.json +1 -1
  125. package/registry/footnote.json +1 -1
  126. package/registry/force-update-screen.json +1 -1
  127. package/registry/form.json +1 -1
  128. package/registry/gallery-page.json +1 -1
  129. package/registry/genui.json +1 -1
  130. package/registry/glossary-term.json +1 -1
  131. package/registry/glossary.json +1 -1
  132. package/registry/glow-card.json +1 -1
  133. package/registry/goal-gauge.json +1 -1
  134. package/registry/grade-stamp.json +1 -1
  135. package/registry/identity-card.json +1 -1
  136. package/registry/image-cropper.json +1 -1
  137. package/registry/index.json +38 -9
  138. package/registry/kanban.json +1 -1
  139. package/registry/kbd.json +1 -1
  140. package/registry/kind-config-editor.json +1 -1
  141. package/registry/kpi-explained.json +1 -1
  142. package/registry/landing-page.json +1 -1
  143. package/registry/landscape.json +1 -1
  144. package/registry/language-switch.json +1 -1
  145. package/registry/legal-page.json +1 -1
  146. package/registry/link-card.json +1 -1
  147. package/registry/list.json +1 -1
  148. package/registry/loader.json +1 -1
  149. package/registry/longform-page.json +1 -1
  150. package/registry/maintenance-screen.json +1 -1
  151. package/registry/map.json +2 -2
  152. package/registry/margin-layout.json +1 -1
  153. package/registry/markdown.json +1 -1
  154. package/registry/marketing-layout.json +1 -1
  155. package/registry/mascot-quote.json +1 -1
  156. package/registry/mascot-state.json +1 -1
  157. package/registry/mascots.json +1 -1
  158. package/registry/match-dialog.json +1 -1
  159. package/registry/media-capture.json +1 -1
  160. package/registry/media-gallery.json +1 -1
  161. package/registry/meter.json +1 -1
  162. package/registry/money-input.json +1 -1
  163. package/registry/nav-bar.json +2 -2
  164. package/registry/next-actions.json +1 -1
  165. package/registry/notification-preferences.json +1 -1
  166. package/registry/number-ticker.json +1 -1
  167. package/registry/opening-hours.json +1 -1
  168. package/registry/page-header.json +1 -1
  169. package/registry/page-hero.json +1 -1
  170. package/registry/page-index.json +1 -1
  171. package/registry/page.json +1 -1
  172. package/registry/pagination.json +1 -1
  173. package/registry/pointer-light.json +1 -1
  174. package/registry/popover.json +1 -1
  175. package/registry/price-catalogue-editor.json +1 -1
  176. package/registry/pricing-page.json +1 -1
  177. package/registry/product-page.json +1 -1
  178. package/registry/profile-card.json +1 -1
  179. package/registry/progress.json +1 -1
  180. package/registry/promise-card.json +1 -1
  181. package/registry/promo-code-field.json +1 -1
  182. package/registry/proposal.json +1 -1
  183. package/registry/qr-code.json +1 -1
  184. package/registry/quota-meter.json +1 -1
  185. package/registry/radio-group.json +1 -1
  186. package/registry/rail-nav.json +2 -2
  187. package/registry/recipes.json +1 -1
  188. package/registry/retro-tv.json +1 -1
  189. package/registry/reviews.json +1 -1
  190. package/registry/router.json +2 -2
  191. package/registry/schema-form.json +1 -1
  192. package/registry/scroll-stage.json +1 -1
  193. package/registry/search-field.json +1 -1
  194. package/registry/section-backdrop.json +1 -1
  195. package/registry/separator.json +1 -1
  196. package/registry/service-card.json +1 -1
  197. package/registry/settings-layout.json +1 -1
  198. package/registry/shop-composer.json +1 -1
  199. package/registry/shop-gallery.json +1 -1
  200. package/registry/shop.json +2 -2
  201. package/registry/showcase.json +1 -1
  202. package/registry/signature.json +1 -1
  203. package/registry/site-cahier.json +1 -1
  204. package/registry/site-footer.json +307 -6
  205. package/registry/sites.json +1 -1
  206. package/registry/skeleton.json +1 -1
  207. package/registry/skip-link.json +1 -1
  208. package/registry/slider.json +1 -1
  209. package/registry/slot-picker.json +1 -1
  210. package/registry/slot.json +1 -1
  211. package/registry/specimen-tag.json +1 -1
  212. package/registry/speed-lines.json +1 -1
  213. package/registry/spinner.json +1 -1
  214. package/registry/split-view.json +1 -1
  215. package/registry/stage-banner.json +1 -1
  216. package/registry/stat.json +1 -1
  217. package/registry/status-chip.json +1 -1
  218. package/registry/status-page.json +1 -1
  219. package/registry/step-progress.json +1 -1
  220. package/registry/step-showcase.json +1 -1
  221. package/registry/stepper.json +1 -1
  222. package/registry/sticky-action.json +1 -1
  223. package/registry/stuck.json +1 -1
  224. package/registry/swipe-deck.json +1 -1
  225. package/registry/switch.json +44 -7
  226. package/registry/tabs.json +1 -1
  227. package/registry/tag-input.json +1 -1
  228. package/registry/tag-selector.json +1 -1
  229. package/registry/taped-photo.json +1 -1
  230. package/registry/terminal-replay.json +1 -1
  231. package/registry/text-style.json +1 -1
  232. package/registry/theme.json +1 -1
  233. package/registry/toast.json +1 -1
  234. package/registry/toc.json +1 -1
  235. package/registry/tooltip.json +1 -1
  236. package/registry/tree-view.json +1 -1
  237. package/registry/update-prompt.json +1 -1
  238. package/registry/upload-queue.json +1 -1
  239. package/registry/usage.json +1 -1
  240. package/registry/verified-badge.json +1 -1
  241. package/registry/versus-card.json +1 -1
  242. package/registry/vertical-video.json +1 -1
  243. package/registry/video-player.json +1 -1
  244. package/registry/video-trimmer.json +1 -1
  245. package/registry/virtual.json +1 -1
  246. package/registry/wall.json +1 -1
  247. package/registry/waveform.json +1 -1
  248. package/dist/chunk-CZHPWLNW.js.map +0 -1
package/README.md CHANGED
@@ -177,6 +177,7 @@ light or a product's — is a set of tokens.
177
177
  | `@krizaka/ui/landscape` | `Landscape` (`tone` own · brand, `flock`, `phoenix`, `animated`, `position`, `fade`): the Krizaka valley at dusk, decorative | client |
178
178
  | `@krizaka/ui/glow-card` | `GlowCard` (`glow` border·spotlight·both, `alive`, `asChild`) | client |
179
179
  | `@krizaka/ui/engine-flow` | `EngineFlow` (`label`, `hub`, `nodes` with `flow` in·out·both, `planned`, `status`, `description`, `href`; `layout` radial·top-to-bottom·left-to-right, `compactLayout` under 560 px, `particles`, `conduit` bezier·straight, `hint`, `speed`): an engine and the apps it serves, photons along SVG conduits (motion.css), no animation frame | client |
180
+ | `@krizaka/ui/architecture-diagram` | `ArchitectureDiagram` (`view`: one laid-out C4 view of `@krizaka/architecture` — groups, elements by shape, labelled edges, numbered steps in a dynamic view; `title`, `subtitle`, `links` by element id through `safeHref`, `words`, `textOpen`) on the plate (blocks.css), with its text version in a `<details>`; the view types re-exported | server-safe |
180
181
  | `@krizaka/ui/section-backdrop` | `SectionBackdrop` (`as`, `direction` down·up, `dome`, `grid`, `media` blurred for depth of field, `animated`): a page section on the brand's section gradient — see `@krizaka/tokens` BRAND.md, "Visual language" | server |
181
182
  | `@krizaka/ui/mascots` | `Mascot` (`bird` falcon·owl·duck·flamingo·pigeon·lovebird·crane, `mood` welcome·thinking·success·empty·error, `tone` brand·own, `size`, `animated`, `title`), `MASCOT_BIRDS`, `MASCOT_MOODS`: the Krizaka flock, in the host brand's accent — one bird at a moment that matters (onboarding, a long wait, a success, an empty list, an error); native `Mascot` in `/native` | client |
182
183
  | `@krizaka/ui/motion` | `MotionObserver` (reveal, off-screen pause, settle, spotlight, magnetism) `RotatingWord` (no layout shift), `PageTransition` (wrap the root layout's children once: the page cross-fades through React's ViewTransition, instant under reduced motion) and the view-transition helpers | client |
@@ -68,7 +68,7 @@ function AccountProfileCard({ name, email, verified, verifiedLabel, unverifiedLa
68
68
  }
69
69
 
70
70
  // src/account-settings/appearance-settings.tsx
71
- import * as React3 from "react";
71
+ import * as React4 from "react";
72
72
 
73
73
  // src/field/field.tsx
74
74
  import { tv as tv2 } from "tailwind-variants";
@@ -229,10 +229,12 @@ var RadioGroup = { Root: RadioGroupRoot, Item: RadioGroupItem, Card: RadioGroupC
229
229
 
230
230
  // src/switch/switch.tsx
231
231
  import { Switch as SwitchPrimitive } from "radix-ui";
232
+ import * as React2 from "react";
232
233
  import { tv as tv4 } from "tailwind-variants";
233
- import { jsx as jsx5 } from "react/jsx-runtime";
234
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
234
235
  var switchVariants = tv4({
235
236
  slots: {
237
+ row: "flex min-h-11 w-full items-center justify-between gap-4",
236
238
  root: "peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-fg-muted transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-surface-0 disabled:cursor-not-allowed disabled:opacity-40 data-[state=checked]:bg-accent aria-invalid:border-danger",
237
239
  thumb: "pointer-events-none block rounded-full bg-fg-on-media shadow-sm transition-transform data-[state=unchecked]:translate-x-0.5 motion-reduce:transition-none"
238
240
  },
@@ -244,45 +246,56 @@ var switchVariants = tv4({
244
246
  },
245
247
  defaultVariants: { size: "md" }
246
248
  });
247
- function Switch({ label, size, invalid, className, ...props }) {
249
+ function Switch({ label, size, invalid, className, children, description, ...props }) {
248
250
  const s3 = switchVariants({ size });
249
- return /* @__PURE__ */ jsx5(
251
+ const id = React2.useId();
252
+ const row = children !== void 0;
253
+ const control = /* @__PURE__ */ jsx5(
250
254
  SwitchPrimitive.Root,
251
255
  {
252
256
  "aria-label": label,
253
257
  "aria-invalid": invalid || void 0,
254
258
  "data-invalid": invalid ? "" : void 0,
255
- className: s3.root({ className }),
259
+ "aria-labelledby": row ? `${id}t` : void 0,
260
+ "aria-describedby": row && description ? `${id}h` : void 0,
261
+ className: s3.root({ className: row ? void 0 : className }),
256
262
  ...props,
257
263
  children: /* @__PURE__ */ jsx5(SwitchPrimitive.Thumb, { className: s3.thumb() })
258
264
  }
259
265
  );
266
+ return row ? /* @__PURE__ */ jsxs5("label", { className: s3.row({ className }), children: [
267
+ /* @__PURE__ */ jsxs5("span", { className: "grid min-w-0", children: [
268
+ /* @__PURE__ */ jsx5("span", { id: `${id}t`, className: "text-sm text-fg", children }),
269
+ description ? /* @__PURE__ */ jsx5("span", { id: `${id}h`, className: "text-xs text-fg-muted", children: description }) : null
270
+ ] }),
271
+ control
272
+ ] }) : control;
260
273
  }
261
274
 
262
275
  // src/account-settings/language-picker.tsx
263
- import * as React2 from "react";
276
+ import * as React3 from "react";
264
277
 
265
278
  // src/account-settings/group-head.tsx
266
- import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
279
+ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
267
280
  function GroupHead({ id, label, description }) {
268
- return /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-0.5", children: [
281
+ return /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-0.5", children: [
269
282
  /* @__PURE__ */ jsx6("span", { id, className: "text-sm font-medium text-fg", children: label }),
270
283
  description ? /* @__PURE__ */ jsx6("span", { className: "text-sm text-fg-secondary", children: description }) : null
271
284
  ] });
272
285
  }
273
286
 
274
287
  // src/account-settings/language-picker.tsx
275
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
288
+ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
276
289
  function LanguagePicker({ label, showLabel = true, description, languages, className, ...props }) {
277
- const id = React2.useId();
278
- return /* @__PURE__ */ jsxs6("div", { className: ["flex flex-col gap-2", className].filter(Boolean).join(" "), children: [
290
+ const id = React3.useId();
291
+ return /* @__PURE__ */ jsxs7("div", { className: ["flex flex-col gap-2", className].filter(Boolean).join(" "), children: [
279
292
  showLabel ? /* @__PURE__ */ jsx7(GroupHead, { id: `${id}-label`, label, description }) : null,
280
293
  /* @__PURE__ */ jsx7(RadioGroup.Root, { variant: "segmented", "aria-label": showLabel ? void 0 : String(label), "aria-labelledby": showLabel ? `${id}-label` : void 0, ...props, children: languages.map((language) => /* @__PURE__ */ jsx7(RadioGroup.Segment, { value: language.code, lang: language.code, children: language.name }, language.code)) })
281
294
  ] });
282
295
  }
283
296
 
284
297
  // src/account-settings/appearance-settings.tsx
285
- import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
298
+ import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
286
299
  var appearanceLabels = {
287
300
  theme: "Theme",
288
301
  themeHint: "The look of the workspace. System follows your device.",
@@ -296,18 +309,18 @@ var appearanceLabels = {
296
309
  soundHint: "Small sounds when something is done. Off unless you turn it on, and never with reduced motion."
297
310
  };
298
311
  function Miniature({ preview }) {
299
- return /* @__PURE__ */ jsxs7(
312
+ return /* @__PURE__ */ jsxs8(
300
313
  "span",
301
314
  {
302
315
  "aria-hidden": true,
303
316
  className: "flex h-16 w-full overflow-hidden rounded-md border border-border-default",
304
317
  style: { background: preview.surface0 },
305
318
  children: [
306
- /* @__PURE__ */ jsxs7("span", { className: "m-1.5 flex w-1/3 flex-col gap-1 rounded-sm p-1", style: { background: preview.surface1 }, children: [
319
+ /* @__PURE__ */ jsxs8("span", { className: "m-1.5 flex w-1/3 flex-col gap-1 rounded-sm p-1", style: { background: preview.surface1 }, children: [
307
320
  /* @__PURE__ */ jsx8("span", { className: "h-1 w-3/4 rounded-full", style: { background: preview.text } }),
308
321
  /* @__PURE__ */ jsx8("span", { className: "h-1 w-1/2 rounded-full", style: { background: preview.muted } })
309
322
  ] }),
310
- /* @__PURE__ */ jsxs7("span", { className: "my-1.5 mr-1.5 flex flex-1 flex-col gap-1 rounded-sm p-1.5", style: { background: preview.surface2 }, children: [
323
+ /* @__PURE__ */ jsxs8("span", { className: "my-1.5 mr-1.5 flex flex-1 flex-col gap-1 rounded-sm p-1.5", style: { background: preview.surface2 }, children: [
311
324
  /* @__PURE__ */ jsx8("span", { className: "h-1.5 w-2/3 rounded-full", style: { background: preview.text } }),
312
325
  /* @__PURE__ */ jsx8("span", { className: "h-1 w-full rounded-full", style: { background: preview.muted } }),
313
326
  /* @__PURE__ */ jsx8("span", { className: "h-1 w-5/6 rounded-full", style: { background: preview.muted } }),
@@ -320,7 +333,7 @@ function Miniature({ preview }) {
320
333
  function themeArt(option) {
321
334
  if (option.preview) return /* @__PURE__ */ jsx8(Miniature, { preview: option.preview });
322
335
  if (option.halves) {
323
- return /* @__PURE__ */ jsxs7("span", { "aria-hidden": true, className: "grid h-16 w-full grid-cols-2 overflow-hidden rounded-md border border-border-default", children: [
336
+ return /* @__PURE__ */ jsxs8("span", { "aria-hidden": true, className: "grid h-16 w-full grid-cols-2 overflow-hidden rounded-md border border-border-default", children: [
324
337
  /* @__PURE__ */ jsx8(Miniature, { preview: option.halves[0] }),
325
338
  /* @__PURE__ */ jsx8(Miniature, { preview: option.halves[1] })
326
339
  ] });
@@ -346,14 +359,14 @@ function AppearanceSettings({
346
359
  className
347
360
  }) {
348
361
  const labels = { ...appearanceLabels, ...given };
349
- const id = React3.useId();
350
- return /* @__PURE__ */ jsxs7("div", { className, children: [
351
- /* @__PURE__ */ jsx8(SettingsRow, { label: labels.theme, description: labels.themeHint, children: /* @__PURE__ */ jsx8(RadioGroup.Root, { variant: "cards", label: labels.theme, value: theme, onValueChange: onThemeChange, className: "grid w-full grid-cols-2 gap-3 sm:grid-cols-3", children: themes.map((option) => /* @__PURE__ */ jsxs7(RadioGroup.Card, { value: option.id, "aria-describedby": option.description ? `${id}-${option.id}` : void 0, children: [
362
+ const id = React4.useId();
363
+ return /* @__PURE__ */ jsxs8("div", { className, children: [
364
+ /* @__PURE__ */ jsx8(SettingsRow, { label: labels.theme, description: labels.themeHint, children: /* @__PURE__ */ jsx8(RadioGroup.Root, { variant: "cards", label: labels.theme, value: theme, onValueChange: onThemeChange, className: "grid w-full grid-cols-2 gap-3 sm:grid-cols-3", children: themes.map((option) => /* @__PURE__ */ jsxs8(RadioGroup.Card, { value: option.id, "aria-describedby": option.description ? `${id}-${option.id}` : void 0, children: [
352
365
  themeArt(option),
353
366
  /* @__PURE__ */ jsx8("span", { className: "font-semibold text-fg", children: option.label }),
354
367
  option.description ? /* @__PURE__ */ jsx8("span", { id: `${id}-${option.id}`, className: "text-xs font-normal text-fg-secondary", children: option.description }) : null
355
368
  ] }, option.id)) }) }),
356
- accents && accents.length > 0 && onAccentChange ? /* @__PURE__ */ jsx8(SettingsRow, { label: labels.accent, description: labels.accentHint, htmlFor: `${id}-accent`, children: /* @__PURE__ */ jsxs7("span", { className: "flex items-center gap-2", children: [
369
+ accents && accents.length > 0 && onAccentChange ? /* @__PURE__ */ jsx8(SettingsRow, { label: labels.accent, description: labels.accentHint, htmlFor: `${id}-accent`, children: /* @__PURE__ */ jsxs8("span", { className: "flex items-center gap-2", children: [
357
370
  /* @__PURE__ */ jsx8("span", { "aria-hidden": true, className: "h-4 w-4 rounded-full border border-border-default", style: { background: accents.find((a) => a.id === accent)?.color ?? accents[0]?.color } }),
358
371
  /* @__PURE__ */ jsx8(Field.Root, { children: /* @__PURE__ */ jsx8(
359
372
  "select",
@@ -374,14 +387,14 @@ function AppearanceSettings({
374
387
 
375
388
  // src/account-settings/avatar-picker.tsx
376
389
  import { RadioGroup as RadioGroupPrimitive2 } from "radix-ui";
377
- import * as React5 from "react";
390
+ import * as React6 from "react";
378
391
 
379
392
  // src/file-upload/file-upload.tsx
380
393
  import { getNumberFormat } from "@krizaka/intl";
381
394
  import { useQueue, useQueueSnapshot } from "@krizaka/pacer/react";
382
- import * as React4 from "react";
395
+ import * as React5 from "react";
383
396
  import { tv as tv5 } from "tailwind-variants";
384
- import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
397
+ import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
385
398
  var fileUpload = tv5({
386
399
  slots: {
387
400
  zone: "relative flex w-full flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed border-border-default bg-surface-1 px-6 py-10 text-center transition-colors data-[dragging]:border-accent data-[dragging]:bg-accent-soft data-[disabled]:opacity-50 has-[:focus-visible]:border-accent",
@@ -425,11 +438,11 @@ function Dropzone({
425
438
  className
426
439
  }) {
427
440
  const s3 = fileUpload();
428
- const input = React4.useRef(null);
429
- const [dragging, setDragging] = React4.useState(false);
430
- const [refused, setRefused] = React4.useState([]);
431
- const depth = React4.useRef(0);
432
- const id = React4.useId();
441
+ const input = React5.useRef(null);
442
+ const [dragging, setDragging] = React5.useState(false);
443
+ const [refused, setRefused] = React5.useState([]);
444
+ const depth = React5.useRef(0);
445
+ const id = React5.useId();
433
446
  const limit = maxFiles ?? (multiple ? Infinity : 1);
434
447
  const take = (list) => {
435
448
  const files = [...list];
@@ -445,7 +458,7 @@ function Dropzone({
445
458
  if (accepted.length) onFiles(accepted);
446
459
  if (rejections.length) onReject?.(rejections);
447
460
  };
448
- return /* @__PURE__ */ jsxs8(
461
+ return /* @__PURE__ */ jsxs9(
449
462
  "div",
450
463
  {
451
464
  className: s3.zone({ className }),
@@ -514,7 +527,7 @@ function Dropzone({
514
527
  }
515
528
 
516
529
  // src/account-settings/avatar-picker.tsx
517
- import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
530
+ import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
518
531
  var AVATAR_NONE = "none";
519
532
  function avatarOptionKind(option) {
520
533
  const kind = option.kind ?? option.defaultAvatar?.kind;
@@ -531,7 +544,7 @@ function builtInAvatarOptions(kind, brand, label) {
531
544
  }
532
545
  var pictureOf = (option) => option.src ?? (option.defaultAvatar ? defaultAvatarUrl(option.defaultAvatar, { size: 256 }) : void 0);
533
546
  function AvatarPicker({ label, showLabel, description, dense, kind = "person", options, noneLabel, uploadFile, upload, className, ...props }) {
534
- const id = React5.useId();
547
+ const id = React6.useId();
535
548
  const listed = optionsOfKind(options, kind);
536
549
  const tile = cn(
537
550
  "group/avatar relative shrink-0 rounded-full",
@@ -547,40 +560,40 @@ function AvatarPicker({ label, showLabel, description, dense, kind = "person", o
547
560
  children: /* @__PURE__ */ jsx10(CheckGlyph, { className: "h-3 w-3" })
548
561
  }
549
562
  );
550
- const group = /* @__PURE__ */ jsxs9(RadioGroupPrimitive2.Root, { "aria-label": label, "aria-labelledby": showLabel ? id : void 0, className: cn(dense ? "flex flex-wrap gap-2.5" : "grid grid-cols-[repeat(auto-fill,minmax(4.25rem,1fr))] gap-3", !showLabel && !uploadFile && className), ...props, children: [
551
- noneLabel ? /* @__PURE__ */ jsxs9(RadioGroupPrimitive2.Item, { value: AVATAR_NONE, "aria-label": noneLabel, className: tile, children: [
552
- /* @__PURE__ */ jsx10("span", { "aria-hidden": true, className: "flex h-full w-full items-center justify-center rounded-full bg-surface-3 text-fg-secondary", children: /* @__PURE__ */ jsxs9("svg", { viewBox: "0 0 24 24", className: "h-1/2 w-1/2", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", children: [
563
+ const group = /* @__PURE__ */ jsxs10(RadioGroupPrimitive2.Root, { "aria-label": label, "aria-labelledby": showLabel ? id : void 0, className: cn(dense ? "flex flex-wrap gap-2.5" : "grid grid-cols-[repeat(auto-fill,minmax(4.25rem,1fr))] gap-3", !showLabel && !uploadFile && className), ...props, children: [
564
+ noneLabel ? /* @__PURE__ */ jsxs10(RadioGroupPrimitive2.Item, { value: AVATAR_NONE, "aria-label": noneLabel, className: tile, children: [
565
+ /* @__PURE__ */ jsx10("span", { "aria-hidden": true, className: "flex h-full w-full items-center justify-center rounded-full bg-surface-3 text-fg-secondary", children: /* @__PURE__ */ jsxs10("svg", { viewBox: "0 0 24 24", className: "h-1/2 w-1/2", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", children: [
553
566
  /* @__PURE__ */ jsx10("circle", { cx: "12", cy: "12", r: "8" }),
554
567
  /* @__PURE__ */ jsx10("path", { d: "M6.5 17.5l11-11" })
555
568
  ] }) }),
556
569
  check
557
570
  ] }) : null,
558
- listed.map((option) => /* @__PURE__ */ jsxs9(RadioGroupPrimitive2.Item, { value: option.id, "aria-label": option.label, className: tile, children: [
571
+ listed.map((option) => /* @__PURE__ */ jsxs10(RadioGroupPrimitive2.Item, { value: option.id, "aria-label": option.label, className: tile, children: [
559
572
  /* @__PURE__ */ jsx10("img", { src: pictureOf(option), alt: "", draggable: false, className: "h-full w-full rounded-full bg-surface-3 object-cover" }),
560
573
  check
561
574
  ] }, option.id)),
562
575
  upload ? /* @__PURE__ */ jsx10("div", { className: "flex aspect-square w-full items-center justify-center", children: upload }) : null
563
576
  ] });
564
- const withUpload = uploadFile ? /* @__PURE__ */ jsxs9("div", { className: cn("flex flex-col gap-3", !showLabel && className), children: [
577
+ const withUpload = uploadFile ? /* @__PURE__ */ jsxs10("div", { className: cn("flex flex-col gap-3", !showLabel && className), children: [
565
578
  group,
566
579
  /* @__PURE__ */ jsx10(Dropzone, { ...uploadFile, onFiles: (files) => files[0] && uploadFile.onFile(files[0]) })
567
580
  ] }) : group;
568
581
  if (!showLabel) return withUpload;
569
- return /* @__PURE__ */ jsxs9("div", { className: cn("flex flex-col gap-3", className), children: [
582
+ return /* @__PURE__ */ jsxs10("div", { className: cn("flex flex-col gap-3", className), children: [
570
583
  /* @__PURE__ */ jsx10(GroupHead, { id, label, description }),
571
584
  withUpload
572
585
  ] });
573
586
  }
574
587
 
575
588
  // src/account-settings/choice-cards.tsx
576
- import * as React6 from "react";
577
- import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
589
+ import * as React7 from "react";
590
+ import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
578
591
  function ChoiceCards({ label, showLabel, description, options, className, ...props }) {
579
- const base = React6.useId();
592
+ const base = React7.useId();
580
593
  const group = /* @__PURE__ */ jsx11(RadioGroup.Root, { variant: "cards", label, "aria-labelledby": showLabel ? `${base}-label` : void 0, className: ["grid grid-cols-1 gap-3 sm:grid-cols-2", !showLabel && className].filter(Boolean).join(" "), ...props, children: options.map((option) => {
581
594
  const describedBy = option.description ? `${base}-${option.id}` : void 0;
582
- return /* @__PURE__ */ jsxs10(RadioGroup.Card, { value: option.id, disabled: option.disabled, "aria-describedby": describedBy, children: [
583
- /* @__PURE__ */ jsxs10("span", { className: "flex items-center gap-2.5 font-semibold text-fg [&>svg]:h-5 [&>svg]:w-5 [&>svg]:text-accent", children: [
595
+ return /* @__PURE__ */ jsxs11(RadioGroup.Card, { value: option.id, disabled: option.disabled, "aria-describedby": describedBy, children: [
596
+ /* @__PURE__ */ jsxs11("span", { className: "flex items-center gap-2.5 font-semibold text-fg [&>svg]:h-5 [&>svg]:w-5 [&>svg]:text-accent", children: [
584
597
  option.icon,
585
598
  option.title
586
599
  ] }),
@@ -588,7 +601,7 @@ function ChoiceCards({ label, showLabel, description, options, className, ...pro
588
601
  ] }, option.id);
589
602
  }) });
590
603
  if (!showLabel) return group;
591
- return /* @__PURE__ */ jsxs10("div", { className: ["flex flex-col gap-3", className].filter(Boolean).join(" "), children: [
604
+ return /* @__PURE__ */ jsxs11("div", { className: ["flex flex-col gap-3", className].filter(Boolean).join(" "), children: [
592
605
  /* @__PURE__ */ jsx11(GroupHead, { id: `${base}-label`, label, description }),
593
606
  group
594
607
  ] });