@krizaka/ui 3.78.1 → 3.79.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 (232) hide show
  1. package/README.md +1 -0
  2. package/dist/chunk-BCD2CRFG.js +349 -0
  3. package/dist/chunk-BCD2CRFG.js.map +1 -0
  4. package/dist/{chunk-SG3QJJXE.js → chunk-ENFXJUDN.js} +3 -16
  5. package/dist/chunk-ENFXJUDN.js.map +1 -0
  6. package/dist/filter-bar.d.ts +3 -3
  7. package/dist/identity-card.d.ts +39 -0
  8. package/dist/identity-card.js +34 -0
  9. package/dist/identity-card.js.map +1 -0
  10. package/dist/nav-bar.d.ts +1 -1
  11. package/dist/nav-bar.js +63 -53
  12. package/dist/nav-bar.js.map +1 -1
  13. package/dist/qr-code.d.ts +25 -2
  14. package/dist/qr-code.js +29 -339
  15. package/dist/qr-code.js.map +1 -1
  16. package/dist/{schema-CL7t7xqb.d.ts → schema-DgjBz7-8.d.ts} +1 -1
  17. package/dist/shop.d.ts +2 -2
  18. package/dist/site-cahier.d.ts +32 -19
  19. package/dist/site-cahier.js +106 -95
  20. package/dist/site-cahier.js.map +1 -1
  21. package/dist/site-footer.d.ts +59 -39
  22. package/dist/site-footer.js +93 -67
  23. package/dist/site-footer.js.map +1 -1
  24. package/dist/{sites-CVNSirrg.d.ts → sites-BLqbwmng.d.ts} +14 -0
  25. package/dist/sites.d.ts +28 -2
  26. package/dist/sites.js +10 -0
  27. package/dist/sites.js.map +1 -1
  28. package/package.json +17 -3
  29. package/registry/account-menu.json +1 -1
  30. package/registry/account-settings.json +1 -1
  31. package/registry/achievement.json +1 -1
  32. package/registry/action-bar.json +1 -1
  33. package/registry/activity-feed.json +1 -1
  34. package/registry/agenda.json +1 -1
  35. package/registry/alert.json +1 -1
  36. package/registry/analysis-report.json +1 -1
  37. package/registry/anatomy-plate.json +1 -1
  38. package/registry/app-frame.json +2 -2
  39. package/registry/app-header.json +1 -1
  40. package/registry/app-shell.json +1 -1
  41. package/registry/argument-card.json +1 -1
  42. package/registry/auth-layout.json +1 -1
  43. package/registry/avatar.json +1 -1
  44. package/registry/badge.json +1 -1
  45. package/registry/bird-plate.json +1 -1
  46. package/registry/button.json +1 -1
  47. package/registry/captcha.json +1 -1
  48. package/registry/card-grid.json +1 -1
  49. package/registry/card.json +1 -1
  50. package/registry/catalogue-page.json +1 -1
  51. package/registry/changelog-page.json +1 -1
  52. package/registry/chapter.json +1 -1
  53. package/registry/chat.json +1 -1
  54. package/registry/checkbox.json +1 -1
  55. package/registry/chip-link.json +1 -1
  56. package/registry/chip-row.json +1 -1
  57. package/registry/chip.json +1 -1
  58. package/registry/choice-grid.json +1 -1
  59. package/registry/code-block.json +1 -1
  60. package/registry/collection-switcher.json +1 -1
  61. package/registry/combobox.json +1 -1
  62. package/registry/command.json +1 -1
  63. package/registry/comparison-table.json +1 -1
  64. package/registry/component-page.json +1 -1
  65. package/registry/confirm-button.json +1 -1
  66. package/registry/contact-page.json +1 -1
  67. package/registry/continue-prompt.json +1 -1
  68. package/registry/copy-button.json +1 -1
  69. package/registry/countdown.json +1 -1
  70. package/registry/cover-hero.json +1 -1
  71. package/registry/cta-panel.json +1 -1
  72. package/registry/dashboard-layout.json +1 -1
  73. package/registry/data-table.json +1 -1
  74. package/registry/date-picker.json +1 -1
  75. package/registry/decision-list.json +1 -1
  76. package/registry/description-list.json +1 -1
  77. package/registry/desktop-window.json +1 -1
  78. package/registry/detail-layout.json +1 -1
  79. package/registry/dialog.json +1 -1
  80. package/registry/docs-article-page.json +1 -1
  81. package/registry/docs-hub-page.json +1 -1
  82. package/registry/docs-layout.json +1 -1
  83. package/registry/docs-nav.json +1 -1
  84. package/registry/document-viewer.json +1 -1
  85. package/registry/doodle.json +1 -1
  86. package/registry/drop-overlay.json +1 -1
  87. package/registry/dropdown-menu.json +1 -1
  88. package/registry/elephant.json +1 -1
  89. package/registry/embed-facade.json +1 -1
  90. package/registry/empty-state.json +1 -1
  91. package/registry/engine-flow.json +1 -1
  92. package/registry/entity-header.json +1 -1
  93. package/registry/environment-notice.json +1 -1
  94. package/registry/error-page.json +1 -1
  95. package/registry/examples/identity-card/basic.d.ts +4 -0
  96. package/registry/examples/identity-card/basic.js +33 -0
  97. package/registry/examples/identity-card/basic.tsx +29 -0
  98. package/registry/examples/site-footer/company.js +1 -0
  99. package/registry/examples/site-footer/company.tsx +3 -2
  100. package/registry/examples/site-footer/docs.tsx +1 -1
  101. package/registry/examples/site-footer/open-source-fr.js +1 -1
  102. package/registry/examples/site-footer/open-source-fr.tsx +1 -1
  103. package/registry/examples/site-footer/product.js +9 -14
  104. package/registry/examples/site-footer/product.tsx +14 -12
  105. package/registry/field.json +1 -1
  106. package/registry/file-upload.json +1 -1
  107. package/registry/filter-bar.json +1 -1
  108. package/registry/flock.json +1 -1
  109. package/registry/footnote.json +1 -1
  110. package/registry/force-update-screen.json +1 -1
  111. package/registry/form.json +1 -1
  112. package/registry/gallery-page.json +1 -1
  113. package/registry/genui.json +1 -1
  114. package/registry/glossary-term.json +1 -1
  115. package/registry/glossary.json +1 -1
  116. package/registry/glow-card.json +1 -1
  117. package/registry/goal-gauge.json +1 -1
  118. package/registry/grade-stamp.json +1 -1
  119. package/registry/identity-card.json +218 -0
  120. package/registry/image-cropper.json +1 -1
  121. package/registry/index.json +40 -9
  122. package/registry/kanban.json +1 -1
  123. package/registry/kbd.json +1 -1
  124. package/registry/kind-config-editor.json +1 -1
  125. package/registry/kpi-explained.json +1 -1
  126. package/registry/landing-page.json +1 -1
  127. package/registry/landscape.json +1 -1
  128. package/registry/language-switch.json +1 -1
  129. package/registry/legal-page.json +1 -1
  130. package/registry/link-card.json +1 -1
  131. package/registry/list.json +1 -1
  132. package/registry/loader.json +1 -1
  133. package/registry/longform-page.json +1 -1
  134. package/registry/maintenance-screen.json +1 -1
  135. package/registry/map.json +2 -2
  136. package/registry/margin-layout.json +1 -1
  137. package/registry/markdown.json +1 -1
  138. package/registry/marketing-layout.json +1 -1
  139. package/registry/mascot-quote.json +1 -1
  140. package/registry/mascot-state.json +1 -1
  141. package/registry/mascots.json +1 -1
  142. package/registry/match-dialog.json +1 -1
  143. package/registry/media-capture.json +1 -1
  144. package/registry/media-gallery.json +1 -1
  145. package/registry/meter.json +1 -1
  146. package/registry/money-input.json +1 -1
  147. package/registry/nav-bar.json +2 -2
  148. package/registry/next-actions.json +1 -1
  149. package/registry/notification-preferences.json +1 -1
  150. package/registry/number-ticker.json +1 -1
  151. package/registry/opening-hours.json +1 -1
  152. package/registry/page-header.json +1 -1
  153. package/registry/page-hero.json +1 -1
  154. package/registry/page-index.json +1 -1
  155. package/registry/page.json +1 -1
  156. package/registry/pagination.json +1 -1
  157. package/registry/pointer-light.json +1 -1
  158. package/registry/popover.json +1 -1
  159. package/registry/price-catalogue-editor.json +1 -1
  160. package/registry/pricing-page.json +1 -1
  161. package/registry/product-page.json +1 -1
  162. package/registry/profile-card.json +1 -1
  163. package/registry/progress.json +1 -1
  164. package/registry/promise-card.json +1 -1
  165. package/registry/promo-code-field.json +1 -1
  166. package/registry/proposal.json +1 -1
  167. package/registry/qr-code.json +6 -2
  168. package/registry/quota-meter.json +1 -1
  169. package/registry/radio-group.json +1 -1
  170. package/registry/rail-nav.json +2 -2
  171. package/registry/recipes.json +1 -1
  172. package/registry/retro-tv.json +1 -1
  173. package/registry/reviews.json +1 -1
  174. package/registry/router.json +1 -1
  175. package/registry/schema-form.json +1 -1
  176. package/registry/scroll-stage.json +1 -1
  177. package/registry/search-field.json +1 -1
  178. package/registry/section-backdrop.json +1 -1
  179. package/registry/separator.json +1 -1
  180. package/registry/service-card.json +1 -1
  181. package/registry/settings-layout.json +1 -1
  182. package/registry/shop-composer.json +1 -1
  183. package/registry/shop-gallery.json +1 -1
  184. package/registry/shop.json +2 -2
  185. package/registry/showcase.json +1 -1
  186. package/registry/signature.json +1 -1
  187. package/registry/site-cahier.json +1 -1
  188. package/registry/site-footer.json +81 -58
  189. package/registry/sites.json +7 -3
  190. package/registry/skeleton.json +1 -1
  191. package/registry/skip-link.json +1 -1
  192. package/registry/slider.json +1 -1
  193. package/registry/slot-picker.json +1 -1
  194. package/registry/slot.json +1 -1
  195. package/registry/specimen-tag.json +1 -1
  196. package/registry/speed-lines.json +1 -1
  197. package/registry/spinner.json +1 -1
  198. package/registry/split-view.json +1 -1
  199. package/registry/stage-banner.json +1 -1
  200. package/registry/stat.json +1 -1
  201. package/registry/status-chip.json +1 -1
  202. package/registry/status-page.json +1 -1
  203. package/registry/step-progress.json +1 -1
  204. package/registry/step-showcase.json +1 -1
  205. package/registry/stepper.json +1 -1
  206. package/registry/sticky-action.json +1 -1
  207. package/registry/stuck.json +1 -1
  208. package/registry/swipe-deck.json +1 -1
  209. package/registry/switch.json +1 -1
  210. package/registry/tabs.json +1 -1
  211. package/registry/tag-input.json +1 -1
  212. package/registry/tag-selector.json +1 -1
  213. package/registry/taped-photo.json +1 -1
  214. package/registry/terminal-replay.json +1 -1
  215. package/registry/text-style.json +1 -1
  216. package/registry/theme.json +1 -1
  217. package/registry/toast.json +1 -1
  218. package/registry/toc.json +1 -1
  219. package/registry/tooltip.json +1 -1
  220. package/registry/tree-view.json +1 -1
  221. package/registry/update-prompt.json +1 -1
  222. package/registry/upload-queue.json +1 -1
  223. package/registry/usage.json +1 -1
  224. package/registry/verified-badge.json +1 -1
  225. package/registry/versus-card.json +1 -1
  226. package/registry/vertical-video.json +1 -1
  227. package/registry/video-player.json +1 -1
  228. package/registry/video-trimmer.json +1 -1
  229. package/registry/virtual.json +1 -1
  230. package/registry/wall.json +1 -1
  231. package/registry/waveform.json +1 -1
  232. package/dist/chunk-SG3QJJXE.js.map +0 -1
package/dist/nav-bar.js CHANGED
@@ -3,16 +3,16 @@ import {
3
3
  LanguageSwitch
4
4
  } from "./chunk-VPO27AFS.js";
5
5
  import {
6
- FamilyMark,
7
- GitHubGlyph,
8
6
  familyLabels,
9
7
  siteById,
10
8
  sitesByGroup
11
- } from "./chunk-SG3QJJXE.js";
9
+ } from "./chunk-ENFXJUDN.js";
12
10
  import {
13
11
  useSlidingIndicator
14
12
  } from "./chunk-4QN5YJ3D.js";
15
- import "./chunk-PGPNYYE2.js";
13
+ import {
14
+ ProductLogo
15
+ } from "./chunk-PGPNYYE2.js";
16
16
  import {
17
17
  Button
18
18
  } from "./chunk-V7W4RLRW.js";
@@ -45,6 +45,16 @@ import { NavigationMenu as Nav, Slot } from "radix-ui";
45
45
  import * as React2 from "react";
46
46
  import { tv } from "tailwind-variants";
47
47
 
48
+ // src/family-mark.tsx
49
+ import { jsx } from "react/jsx-runtime";
50
+ function GitHubGlyph({ size = 16, className }) {
51
+ return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", width: size, height: size, fill: "currentColor", "aria-hidden": true, className, children: /* @__PURE__ */ jsx("path", { d: "M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z" }) });
52
+ }
53
+ function FamilyMark({ mark, size }) {
54
+ if (mark === "github") return /* @__PURE__ */ jsx(GitHubGlyph, { size: Math.round(size * 0.8) });
55
+ return /* @__PURE__ */ jsx(ProductLogo, { id: mark, size, animated: false });
56
+ }
57
+
48
58
  // src/nav-bar/placement.ts
49
59
  function placePanel({ trigger, root, panel, window: window2, gutter = 16 }) {
50
60
  const wanted = trigger - root;
@@ -56,7 +66,7 @@ function placePanel({ trigger, root, panel, window: window2, gutter = 16 }) {
56
66
  // src/nav-bar/session.tsx
57
67
  import { krizakaFetch, useQuery } from "@krizaka/query";
58
68
  import * as React from "react";
59
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
69
+ import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
60
70
  var SESSION_HINT_COOKIE = "kz-session";
61
71
  var noop = () => () => {
62
72
  };
@@ -87,18 +97,18 @@ function NavBarSession({ endpoint = "/api/me", initial, sessionHint, signedOut,
87
97
  if (session.status === "pending") {
88
98
  if (sessionHint ?? flagged) {
89
99
  return /* @__PURE__ */ jsxs("span", { role: "status", "aria-live": "polite", "data-state": "signed-in-pending", className, children: [
90
- /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "inline-block size-9 rounded-full bg-surface-2" }),
91
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: hint })
100
+ /* @__PURE__ */ jsx2("span", { "aria-hidden": "true", className: "inline-block size-9 rounded-full bg-surface-2" }),
101
+ /* @__PURE__ */ jsx2("span", { className: "sr-only", children: hint })
92
102
  ] });
93
103
  }
94
- return /* @__PURE__ */ jsx("span", { role: "status", "aria-live": "polite", "data-state": "loading", className, children: /* @__PURE__ */ jsx("span", { className: "sr-only", children: hint }) });
104
+ return /* @__PURE__ */ jsx2("span", { role: "status", "aria-live": "polite", "data-state": "loading", className, children: /* @__PURE__ */ jsx2("span", { className: "sr-only", children: hint }) });
95
105
  }
96
106
  const state = { signupOpen: session.signupOpen };
97
- return /* @__PURE__ */ jsx(Fragment, { children: session.status === "in" ? signedIn(session.account, state) : signedOut(state) });
107
+ return /* @__PURE__ */ jsx2(Fragment, { children: session.status === "in" ? signedIn(session.account, state) : signedOut(state) });
98
108
  }
99
109
 
100
110
  // src/nav-bar/nav-bar.tsx
101
- import { Fragment as Fragment2, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
111
+ import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
102
112
  var navBar = tv({
103
113
  slots: {
104
114
  root: "group/nav relative z-40 mx-auto flex h-14 w-full items-center gap-2 border-border-subtle bg-surface-1 transition-[height,background-color,border-color,box-shadow] duration-300 motion-reduce:transition-none data-compact:h-12 data-compact:border-border-default data-compact:bg-surface-1 data-compact:shadow-lg",
@@ -172,13 +182,13 @@ function NavBarRoot({ label, compactAfter = 24, floating = true, className, chil
172
182
  return () => window.removeEventListener("scroll", onScroll);
173
183
  }, [compactAfter]);
174
184
  const ctx = React2.useMemo(() => ({ label, open, setOpen, panelId }), [label, open, panelId]);
175
- return /* @__PURE__ */ jsx2(Context.Provider, { value: ctx, children: /* @__PURE__ */ jsx2("header", { "data-compact": compact ? "" : void 0, "data-floating": floating, className: navBar({ floating }).root({ className }), ...props, children }) });
185
+ return /* @__PURE__ */ jsx3(Context.Provider, { value: ctx, children: /* @__PURE__ */ jsx3("header", { "data-compact": compact ? "" : void 0, "data-floating": floating, className: navBar({ floating }).root({ className }), ...props, children }) });
176
186
  }
177
187
  function NavBarBrand({ asChild, className, org, children, ...props }) {
178
188
  const Comp = asChild ? Slot.Root : "a";
179
189
  const fromOrg = org && !asChild && children === void 0;
180
- return /* @__PURE__ */ jsx2(Comp, { className: s.brand({ className }), ...props, children: fromOrg ? /* @__PURE__ */ jsxs2(Fragment2, { children: [
181
- /* @__PURE__ */ jsx2(FamilyMark, { mark: siteById("krizaka").mark, size: 22 }),
190
+ return /* @__PURE__ */ jsx3(Comp, { className: s.brand({ className }), ...props, children: fromOrg ? /* @__PURE__ */ jsxs2(Fragment2, { children: [
191
+ /* @__PURE__ */ jsx3(FamilyMark, { mark: siteById("krizaka").mark, size: 22 }),
182
192
  org.brand.name
183
193
  ] }) : children });
184
194
  }
@@ -222,14 +232,14 @@ function NavBarItems({ className, children, value: valueProp, defaultValue, onVa
222
232
  window.removeEventListener("resize", place);
223
233
  };
224
234
  }, [value]);
225
- return /* @__PURE__ */ jsx2(ItemsContext.Provider, { value: items, children: /* @__PURE__ */ jsxs2(Nav.Root, { ref: root, "aria-label": label, className: s.items({ className }), value, onValueChange: setValue, delayDuration, ...props, children: [
226
- /* @__PURE__ */ jsx2(Nav.List, { ref, className: s.list(), ...handlers, children }),
227
- /* @__PURE__ */ jsx2(Nav.Viewport, { ref: viewport, className: s.viewport() })
235
+ return /* @__PURE__ */ jsx3(ItemsContext.Provider, { value: items, children: /* @__PURE__ */ jsxs2(Nav.Root, { ref: root, "aria-label": label, className: s.items({ className }), value, onValueChange: setValue, delayDuration, ...props, children: [
236
+ /* @__PURE__ */ jsx3(Nav.List, { ref, className: s.list(), ...handlers, children }),
237
+ /* @__PURE__ */ jsx3(Nav.Viewport, { ref: viewport, className: s.viewport() })
228
238
  ] }) });
229
239
  }
230
240
  function NavBarLink({ active, className, itemClassName, onPointerEnter, ...props }) {
231
241
  const { close } = React2.useContext(ItemsContext);
232
- return /* @__PURE__ */ jsx2(Nav.Item, { className: itemClassName, children: /* @__PURE__ */ jsx2(
242
+ return /* @__PURE__ */ jsx3(Nav.Item, { className: itemClassName, children: /* @__PURE__ */ jsx3(
233
243
  Nav.Link,
234
244
  {
235
245
  "data-nav-item": "",
@@ -252,9 +262,9 @@ function NavBarMenu({ label, active, columns = 1, inlineUpTo = 3, inlineFrom = "
252
262
  const dropdown = (hide) => /* @__PURE__ */ jsxs2(Nav.Item, { className: cn(hide, className), ...props, children: [
253
263
  /* @__PURE__ */ jsxs2(Nav.Trigger, { "data-nav-item": "", "data-active": active ? "" : void 0, className: cn(s.item(), "group/trigger"), children: [
254
264
  label,
255
- /* @__PURE__ */ jsx2("svg", { viewBox: "0 0 24 24", className: s.chevron(), fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx2("path", { d: "m6 9 6 6 6-6" }) })
265
+ /* @__PURE__ */ jsx3("svg", { viewBox: "0 0 24 24", className: s.chevron(), fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx3("path", { d: "m6 9 6 6 6-6" }) })
256
266
  ] }),
257
- /* @__PURE__ */ jsx2(Nav.Content, { className: cn(s.panel(), columns === 2 && s.panelWide()), children })
267
+ /* @__PURE__ */ jsx3(Nav.Content, { className: cn(s.panel(), columns === 2 && s.panelWide()), children })
258
268
  ] });
259
269
  const inline = links.length > 0 && links.length <= inlineUpTo && links.every((c) => React2.isValidElement(c) && c.type === NavBarMenuLink);
260
270
  if (inline) {
@@ -262,7 +272,7 @@ function NavBarMenu({ label, active, columns = 1, inlineUpTo = 3, inlineFrom = "
262
272
  inlineFrom !== "md" && dropdown(DROPDOWN_HIDE[inlineFrom]),
263
273
  links.map((link) => {
264
274
  const { title, href, active: here, asChild, children: child, icon: _icon, description: _description, className: linkClass, ...rest } = link.props;
265
- return /* @__PURE__ */ jsx2(NavBarLink, { asChild, href: asChild ? void 0 : href, active: here, className: linkClass, itemClassName: INLINE_HIDE[inlineFrom], ...rest, children: asChild && React2.isValidElement(child) ? React2.cloneElement(child, void 0, title) : title }, link.key);
275
+ return /* @__PURE__ */ jsx3(NavBarLink, { asChild, href: asChild ? void 0 : href, active: here, className: linkClass, itemClassName: INLINE_HIDE[inlineFrom], ...rest, children: asChild && React2.isValidElement(child) ? React2.cloneElement(child, void 0, title) : title }, link.key);
266
276
  })
267
277
  ] });
268
278
  }
@@ -270,16 +280,16 @@ function NavBarMenu({ label, active, columns = 1, inlineUpTo = 3, inlineFrom = "
270
280
  }
271
281
  function NavBarMenuLink({ title, description, icon, active, href, className, asChild, children, ...props }) {
272
282
  const body = /* @__PURE__ */ jsxs2(Fragment2, { children: [
273
- icon && /* @__PURE__ */ jsx2("span", { className: s.menuIcon(), children: icon }),
283
+ icon && /* @__PURE__ */ jsx3("span", { className: s.menuIcon(), children: icon }),
274
284
  /* @__PURE__ */ jsxs2("span", { className: "min-w-0 flex-1", children: [
275
- /* @__PURE__ */ jsx2("span", { className: s.menuTitle(), children: title }),
276
- description && /* @__PURE__ */ jsx2("span", { className: s.menuText(), children: description })
285
+ /* @__PURE__ */ jsx3("span", { className: s.menuTitle(), children: title }),
286
+ description && /* @__PURE__ */ jsx3("span", { className: s.menuText(), children: description })
277
287
  ] })
278
288
  ] });
279
- return /* @__PURE__ */ jsx2(Nav.Link, { asChild, href: asChild ? void 0 : href, active, "aria-current": active ? "page" : void 0, "data-active": active ? "" : void 0, className: s.menuLink({ className }), ...props, children: asChild && React2.isValidElement(children) ? React2.cloneElement(children, void 0, body) : body });
289
+ return /* @__PURE__ */ jsx3(Nav.Link, { asChild, href: asChild ? void 0 : href, active, "aria-current": active ? "page" : void 0, "data-active": active ? "" : void 0, className: s.menuLink({ className }), ...props, children: asChild && React2.isValidElement(children) ? React2.cloneElement(children, void 0, body) : body });
280
290
  }
281
291
  function NavBarActions({ className, ...props }) {
282
- return /* @__PURE__ */ jsx2("div", { className: s.actions({ className }), ...props });
292
+ return /* @__PURE__ */ jsx3("div", { className: s.actions({ className }), ...props });
283
293
  }
284
294
  function NavBarMobile({ openLabel, closeLabel, className, children, ...props }) {
285
295
  const { label, open, setOpen, panelId } = useNavBar();
@@ -304,15 +314,15 @@ function NavBarMobile({ openLabel, closeLabel, className, children, ...props })
304
314
  };
305
315
  }, [open, setOpen, panelId]);
306
316
  return /* @__PURE__ */ jsxs2(Fragment2, { children: [
307
- /* @__PURE__ */ jsx2("button", { ref: toggle, type: "button", "aria-expanded": open, "aria-controls": panelId, "aria-label": open ? closeLabel : openLabel, onClick: () => setOpen(!open), className: s.toggle(), children: /* @__PURE__ */ jsx2("svg", { viewBox: "0 0 24 24", className: "h-4.5 w-4.5", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": true, children: open ? /* @__PURE__ */ jsx2("path", { d: "M18 6 6 18M6 6l12 12" }) : /* @__PURE__ */ jsx2("path", { d: "M4 7h16M4 12h16M4 17h10" }) }) }),
308
- open && /* @__PURE__ */ jsx2(
317
+ /* @__PURE__ */ jsx3("button", { ref: toggle, type: "button", "aria-expanded": open, "aria-controls": panelId, "aria-label": open ? closeLabel : openLabel, onClick: () => setOpen(!open), className: s.toggle(), children: /* @__PURE__ */ jsx3("svg", { viewBox: "0 0 24 24", className: "h-4.5 w-4.5", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": true, children: open ? /* @__PURE__ */ jsx3("path", { d: "M18 6 6 18M6 6l12 12" }) : /* @__PURE__ */ jsx3("path", { d: "M4 7h16M4 12h16M4 17h10" }) }) }),
318
+ open && /* @__PURE__ */ jsx3(
309
319
  "nav",
310
320
  {
311
321
  id: panelId,
312
322
  "aria-label": label,
313
323
  className: s.mobile({ className }),
314
324
  ...props,
315
- children: /* @__PURE__ */ jsx2(
325
+ children: /* @__PURE__ */ jsx3(
316
326
  "div",
317
327
  {
318
328
  role: "presentation",
@@ -320,7 +330,7 @@ function NavBarMobile({ openLabel, closeLabel, className, children, ...props })
320
330
  onClick: (e) => {
321
331
  if (e.target.closest("a")) setOpen(false);
322
332
  },
323
- children: /* @__PURE__ */ jsx2(MobileContext.Provider, { value: true, children })
333
+ children: /* @__PURE__ */ jsx3(MobileContext.Provider, { value: true, children })
324
334
  }
325
335
  )
326
336
  }
@@ -330,13 +340,13 @@ function NavBarMobile({ openLabel, closeLabel, className, children, ...props })
330
340
  function NavBarMobileGroup({ label, className, children, ...props }) {
331
341
  const id = React2.useId();
332
342
  return /* @__PURE__ */ jsxs2("div", { role: "group", "aria-labelledby": id, className: s.mobileGroup({ className }), ...props, children: [
333
- /* @__PURE__ */ jsx2("p", { id, className: s.mobileGroupTitle(), children: label }),
343
+ /* @__PURE__ */ jsx3("p", { id, className: s.mobileGroupTitle(), children: label }),
334
344
  children
335
345
  ] });
336
346
  }
337
347
  function NavBarMobileLink({ active, asChild, className, ...props }) {
338
348
  const Comp = asChild ? Slot.Root : "a";
339
- return /* @__PURE__ */ jsx2(Comp, { "aria-current": active ? "page" : void 0, className: s.mobileLink({ className }), ...props });
349
+ return /* @__PURE__ */ jsx3(Comp, { "aria-current": active ? "page" : void 0, className: s.mobileLink({ className }), ...props });
340
350
  }
341
351
  var tagTone = {
342
352
  upcoming: "bg-accent-soft text-fg ring-1 ring-inset ring-accent/40",
@@ -347,8 +357,8 @@ var tagTone = {
347
357
  function FamilyName({ site, current, labels }) {
348
358
  return /* @__PURE__ */ jsxs2("span", { className: s.familyName(), children: [
349
359
  site.name,
350
- site.status !== "released" && /* @__PURE__ */ jsx2("span", { className: cn(s.familyTag(), tagTone[site.status]), children: labels.status[site.status] }),
351
- current && /* @__PURE__ */ jsx2("span", { className: cn(s.familyTag(), tagTone.current), children: labels.current })
360
+ site.status !== "released" && /* @__PURE__ */ jsx3("span", { className: cn(s.familyTag(), tagTone[site.status]), children: labels.status[site.status] }),
361
+ current && /* @__PURE__ */ jsx3("span", { className: cn(s.familyTag(), tagTone.current), children: labels.current })
352
362
  ] });
353
363
  }
354
364
  function NavBarFamily({ current, labels = familyLabels.en, defaultOpen, className }) {
@@ -357,12 +367,12 @@ function NavBarFamily({ current, labels = familyLabels.en, defaultOpen, classNam
357
367
  const groups = sitesByGroup();
358
368
  if (inMobile) {
359
369
  return /* @__PURE__ */ jsxs2("div", { role: "group", "aria-labelledby": `${id}-family`, className: s.mobileFamily({ className }), children: [
360
- /* @__PURE__ */ jsx2("p", { id: `${id}-family`, className: s.familyGroupTitle(), children: labels.family }),
370
+ /* @__PURE__ */ jsx3("p", { id: `${id}-family`, className: s.familyGroupTitle(), children: labels.family }),
361
371
  groups.map(({ group, sites }) => /* @__PURE__ */ jsxs2("div", { children: [
362
- group !== "krizaka" && /* @__PURE__ */ jsx2("p", { id: `${id}-${group}`, className: s.familyGroupTitle(), children: labels.groups[group] }),
363
- /* @__PURE__ */ jsx2("ul", { "aria-labelledby": group !== "krizaka" ? `${id}-${group}` : `${id}-family`, className: "grid gap-0.5", children: sites.map((site) => /* @__PURE__ */ jsx2("li", { children: /* @__PURE__ */ jsxs2("a", { href: site.url, "data-current": site.id === current ? "" : void 0, "aria-current": site.id === current ? "true" : void 0, className: s.mobileFamilyLink(), children: [
364
- /* @__PURE__ */ jsx2("span", { className: s.familyMark(), children: /* @__PURE__ */ jsx2(FamilyMark, { mark: site.mark, size: 24 }) }),
365
- /* @__PURE__ */ jsx2(FamilyName, { site, current: site.id === current, labels })
372
+ group !== "krizaka" && /* @__PURE__ */ jsx3("p", { id: `${id}-${group}`, className: s.familyGroupTitle(), children: labels.groups[group] }),
373
+ /* @__PURE__ */ jsx3("ul", { "aria-labelledby": group !== "krizaka" ? `${id}-${group}` : `${id}-family`, className: "grid gap-0.5", children: sites.map((site) => /* @__PURE__ */ jsx3("li", { children: /* @__PURE__ */ jsxs2("a", { href: site.url, "data-current": site.id === current ? "" : void 0, "aria-current": site.id === current ? "true" : void 0, className: s.mobileFamilyLink(), children: [
374
+ /* @__PURE__ */ jsx3("span", { className: s.familyMark(), children: /* @__PURE__ */ jsx3(FamilyMark, { mark: site.mark, size: 24 }) }),
375
+ /* @__PURE__ */ jsx3(FamilyName, { site, current: site.id === current, labels })
366
376
  ] }) }, site.id)) })
367
377
  ] }, group))
368
378
  ] });
@@ -370,20 +380,20 @@ function NavBarFamily({ current, labels = familyLabels.en, defaultOpen, classNam
370
380
  const noHover = (e) => e.preventDefault();
371
381
  const columns = [groups.filter((g) => g.group === "krizaka" || g.group === "products"), groups.filter((g) => g.group === "open-source" || g.group === "github")];
372
382
  return /* @__PURE__ */ jsxs2(Nav.Root, { "aria-label": labels.family, defaultValue: defaultOpen ? "family" : void 0, className: s.family({ className }), children: [
373
- /* @__PURE__ */ jsx2(Nav.List, { className: "flex", children: /* @__PURE__ */ jsxs2(Nav.Item, { value: "family", children: [
374
- /* @__PURE__ */ jsx2(Nav.Trigger, { "aria-label": labels.family, onPointerMove: noHover, onPointerLeave: noHover, className: s.familyTrigger(), children: /* @__PURE__ */ jsx2("svg", { viewBox: "0 0 24 24", className: s.chevron(), fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx2("path", { d: "m6 9 6 6 6-6" }) }) }),
375
- /* @__PURE__ */ jsx2(Nav.Content, { onPointerLeave: noHover, className: s.familyPanel(), children: columns.map((column, i) => /* @__PURE__ */ jsx2("div", { className: "grid content-start gap-3", children: column.map(({ group, sites }) => /* @__PURE__ */ jsxs2("div", { children: [
376
- /* @__PURE__ */ jsx2("p", { id: `${id}-${group}`, className: s.familyGroupTitle(), children: labels.groups[group] }),
377
- /* @__PURE__ */ jsx2("ul", { "aria-labelledby": `${id}-${group}`, className: "grid gap-0.5", children: sites.map((site) => /* @__PURE__ */ jsx2("li", { children: /* @__PURE__ */ jsxs2(Nav.Link, { href: site.url, "data-current": site.id === current ? "" : void 0, "aria-current": site.id === current ? "true" : void 0, className: s.familyLink(), children: [
378
- /* @__PURE__ */ jsx2("span", { className: s.familyMark(), children: /* @__PURE__ */ jsx2(FamilyMark, { mark: site.mark, size: 28 }) }),
383
+ /* @__PURE__ */ jsx3(Nav.List, { className: "flex", children: /* @__PURE__ */ jsxs2(Nav.Item, { value: "family", children: [
384
+ /* @__PURE__ */ jsx3(Nav.Trigger, { "aria-label": labels.family, onPointerMove: noHover, onPointerLeave: noHover, className: s.familyTrigger(), children: /* @__PURE__ */ jsx3("svg", { viewBox: "0 0 24 24", className: s.chevron(), fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx3("path", { d: "m6 9 6 6 6-6" }) }) }),
385
+ /* @__PURE__ */ jsx3(Nav.Content, { onPointerLeave: noHover, className: s.familyPanel(), children: columns.map((column, i) => /* @__PURE__ */ jsx3("div", { className: "grid content-start gap-3", children: column.map(({ group, sites }) => /* @__PURE__ */ jsxs2("div", { children: [
386
+ /* @__PURE__ */ jsx3("p", { id: `${id}-${group}`, className: s.familyGroupTitle(), children: labels.groups[group] }),
387
+ /* @__PURE__ */ jsx3("ul", { "aria-labelledby": `${id}-${group}`, className: "grid gap-0.5", children: sites.map((site) => /* @__PURE__ */ jsx3("li", { children: /* @__PURE__ */ jsxs2(Nav.Link, { href: site.url, "data-current": site.id === current ? "" : void 0, "aria-current": site.id === current ? "true" : void 0, className: s.familyLink(), children: [
388
+ /* @__PURE__ */ jsx3("span", { className: s.familyMark(), children: /* @__PURE__ */ jsx3(FamilyMark, { mark: site.mark, size: 28 }) }),
379
389
  /* @__PURE__ */ jsxs2("span", { className: "min-w-0", children: [
380
- /* @__PURE__ */ jsx2(FamilyName, { site, current: site.id === current, labels }),
381
- /* @__PURE__ */ jsx2("span", { className: s.familyText(), children: labels.descriptions[site.id] })
390
+ /* @__PURE__ */ jsx3(FamilyName, { site, current: site.id === current, labels }),
391
+ /* @__PURE__ */ jsx3("span", { className: s.familyText(), children: labels.descriptions[site.id] })
382
392
  ] })
383
393
  ] }) }, site.id)) })
384
394
  ] }, group)) }, i)) })
385
395
  ] }) }),
386
- /* @__PURE__ */ jsx2(Nav.Viewport, { onPointerLeave: noHover, className: s.familyViewport() })
396
+ /* @__PURE__ */ jsx3(Nav.Viewport, { onPointerLeave: noHover, className: s.familyViewport() })
387
397
  ] });
388
398
  }
389
399
  function NavBarBadge({ env, version, className, children, ...props }) {
@@ -395,17 +405,17 @@ function NavBarBadge({ env, version, className, children, ...props }) {
395
405
  }
396
406
  function NavBarLanguage(props) {
397
407
  const inMobile = React2.useContext(MobileContext);
398
- return /* @__PURE__ */ jsx2(LanguageSwitch, { variant: inMobile ? "inline" : "menu", ...props });
408
+ return /* @__PURE__ */ jsx3(LanguageSwitch, { variant: inMobile ? "inline" : "menu", ...props });
399
409
  }
400
410
  function NavBarMobilePreferences({ label, className, children, ...props }) {
401
411
  const id = React2.useId();
402
412
  return /* @__PURE__ */ jsxs2("div", { role: "group", "aria-labelledby": id, className: s.mobileGroup({ className }), ...props, children: [
403
- /* @__PURE__ */ jsx2("p", { id, className: s.mobileGroupTitle(), children: label }),
404
- /* @__PURE__ */ jsx2("div", { className: "flex flex-wrap items-center gap-2 px-3 py-1", children })
413
+ /* @__PURE__ */ jsx3("p", { id, className: s.mobileGroupTitle(), children: label }),
414
+ /* @__PURE__ */ jsx3("div", { className: "flex flex-wrap items-center gap-2 px-3 py-1", children })
405
415
  ] });
406
416
  }
407
417
  function NavBarRepo({ label, className, ...props }) {
408
- return /* @__PURE__ */ jsx2("a", { "aria-label": label, className: s.repo({ className }), ...props, children: /* @__PURE__ */ jsx2(GitHubGlyph, { size: 18 }) });
418
+ return /* @__PURE__ */ jsx3("a", { "aria-label": label, className: s.repo({ className }), ...props, children: /* @__PURE__ */ jsx3(GitHubGlyph, { size: 18 }) });
409
419
  }
410
420
  var NavBar = {
411
421
  Root: NavBarRoot,
@@ -427,7 +437,7 @@ var NavBar = {
427
437
  };
428
438
 
429
439
  // src/nav-bar/product-actions.tsx
430
- import { Fragment as Fragment3, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
440
+ import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
431
441
  var ProductBarAction = { SignIn: "sign-in", Try: "try" };
432
442
  function productBarActions({ signupOpen, hasTry }) {
433
443
  return signupOpen && hasTry ? { primary: ProductBarAction.Try, secondary: ProductBarAction.SignIn } : { primary: ProductBarAction.SignIn, secondary: null };
@@ -436,7 +446,7 @@ function ProductBarActions({ signIn, tryIt, signupOpen, linkAs: Link = "a", plac
436
446
  const { primary, secondary } = productBarActions({ signupOpen, hasTry: Boolean(tryIt) });
437
447
  const link = (kind) => kind === ProductBarAction.Try && tryIt ? tryIt : signIn;
438
448
  const panel = placement === "panel";
439
- const button = (kind, variant) => /* @__PURE__ */ jsx3(Button, { asChild: true, "data-signed-out-only": "", variant, size: panel ? "md" : "sm", className: panel ? variant === "primary" ? "mt-2 w-full font-bold" : "w-full" : variant === "primary" ? "ml-1 hidden font-bold md:inline-flex" : "hidden md:inline-flex", children: /* @__PURE__ */ jsx3(Link, { href: link(kind).href, children: link(kind).label }) }, kind);
449
+ const button = (kind, variant) => /* @__PURE__ */ jsx4(Button, { asChild: true, "data-signed-out-only": "", variant, size: panel ? "md" : "sm", className: panel ? variant === "primary" ? "mt-2 w-full font-bold" : "w-full" : variant === "primary" ? "ml-1 hidden font-bold md:inline-flex" : "hidden md:inline-flex", children: /* @__PURE__ */ jsx4(Link, { href: link(kind).href, children: link(kind).label }) }, kind);
440
450
  return /* @__PURE__ */ jsxs3(Fragment3, { children: [
441
451
  secondary ? button(secondary, "ghost") : null,
442
452
  button(primary, "primary")