haze-ui 1.34.1 → 1.35.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 (98) hide show
  1. package/README.md +26 -0
  2. package/dist/THIRD-PARTY-NOTICES.md +2 -1
  3. package/dist/components/Anchor/Anchor.js +84 -65
  4. package/dist/components/BackToTop/BackToTop.js +18 -12
  5. package/dist/components/Combobox/Combobox.js +109 -99
  6. package/dist/components/CopyButton/CopyButton.js +13 -12
  7. package/dist/components/DataTable/DataTable.js +16 -16
  8. package/dist/components/FloatButton/FloatButton.js +11 -19
  9. package/dist/components/FollowUpSuggestions/FollowUpSuggestions.js +45 -0
  10. package/dist/components/FollowUpSuggestions/index.js +3 -0
  11. package/dist/components/LocaleProvider/ar-sa.js +9 -0
  12. package/dist/components/LocaleProvider/de-de.js +9 -0
  13. package/dist/components/LocaleProvider/es-es.js +9 -0
  14. package/dist/components/LocaleProvider/fr-fr.js +9 -0
  15. package/dist/components/LocaleProvider/it-it.js +9 -0
  16. package/dist/components/LocaleProvider/ja-jp.js +9 -0
  17. package/dist/components/LocaleProvider/ko-kr.js +9 -0
  18. package/dist/components/LocaleProvider/locale.js +9 -0
  19. package/dist/components/LocaleProvider/pt-br.js +9 -0
  20. package/dist/components/LocaleProvider/ru-ru.js +9 -0
  21. package/dist/components/LocaleProvider/zh-cn.js +9 -0
  22. package/dist/components/NavigationBar/NavLink.js +15 -16
  23. package/dist/components/NotificationCenter/NotificationCenter.js +294 -0
  24. package/dist/components/NotificationCenter/index.js +3 -0
  25. package/dist/components/Tabs/Tab.js +58 -50
  26. package/dist/components/TaskList/TaskList.js +96 -0
  27. package/dist/components/TaskList/index.js +3 -0
  28. package/dist/components/Toggle/Toggle.js +8 -8
  29. package/dist/components/Toggle/ToggleCore.js +4 -5
  30. package/dist/components/Toolbar/ToolbarButton.js +7 -7
  31. package/dist/components/Toolbar/ToolbarToggle.js +9 -9
  32. package/dist/components/Tree/Tree.js +159 -137
  33. package/dist/components/Tree/index.js +2 -1
  34. package/dist/components/Tree/useTree.js +32 -0
  35. package/dist/components/Tree/utils.js +21 -11
  36. package/dist/css/anchor.css +1 -1
  37. package/dist/css/combobox.css +1 -1
  38. package/dist/css/data-table.css +1 -1
  39. package/dist/css/follow-up-suggestions.css +4 -0
  40. package/dist/css/notification-center.css +5 -0
  41. package/dist/css/task-list.css +4 -0
  42. package/dist/css/tokens.css +1 -0
  43. package/dist/css-manifest.json +21 -0
  44. package/dist/haze-ui.css +17 -3
  45. package/dist/headless/index.js +2 -1
  46. package/dist/hooks/index.js +25 -0
  47. package/dist/hooks/useAnchorSpy.js +49 -0
  48. package/dist/hooks/useElementSize.js +31 -0
  49. package/dist/hooks/useIdle.js +45 -0
  50. package/dist/hooks/useMutationObserver.js +31 -0
  51. package/dist/hooks/useNetwork.js +28 -0
  52. package/dist/hooks/useOrientation.js +27 -0
  53. package/dist/hooks/useResizeObserver.js +16 -0
  54. package/dist/icons/index.js +9 -0
  55. package/dist/index.js +323 -318
  56. package/dist/mcp-docs.json +535 -13
  57. package/dist/registry.json +387 -7
  58. package/dist/sitemap.xml +6 -0
  59. package/dist/tokens/index.js +2 -1
  60. package/dist/tokens/zoom.js +6 -0
  61. package/dist/types/components/Anchor/Anchor.d.ts +5 -1
  62. package/dist/types/components/BackToTop/BackToTop.d.ts +23 -5
  63. package/dist/types/components/Combobox/Combobox.d.ts +17 -1
  64. package/dist/types/components/ConfigProvider/ConfigContext.d.ts +6 -0
  65. package/dist/types/components/CopyButton/CopyButton.d.ts +16 -4
  66. package/dist/types/components/DataTable/DataTable.bench.d.ts +1 -0
  67. package/dist/types/components/FloatButton/FloatButton.d.ts +25 -5
  68. package/dist/types/components/FollowUpSuggestions/FollowUpSuggestions.d.ts +27 -0
  69. package/dist/types/components/FollowUpSuggestions/index.d.ts +2 -0
  70. package/dist/types/components/LocaleProvider/locale.d.ts +9 -0
  71. package/dist/types/components/NavigationBar/NavLink.d.ts +24 -32
  72. package/dist/types/components/NotificationCenter/NotificationCenter.d.ts +111 -0
  73. package/dist/types/components/NotificationCenter/index.d.ts +2 -0
  74. package/dist/types/components/Select/Select.bench.d.ts +1 -0
  75. package/dist/types/components/Tabs/Tab.d.ts +26 -4
  76. package/dist/types/components/TaskList/TaskList.d.ts +50 -0
  77. package/dist/types/components/TaskList/index.d.ts +2 -0
  78. package/dist/types/components/Toggle/Toggle.d.ts +15 -8
  79. package/dist/types/components/Toggle/ToggleCore.d.ts +16 -7
  80. package/dist/types/components/Toolbar/ToolbarButton.d.ts +17 -5
  81. package/dist/types/components/Toolbar/ToolbarToggle.d.ts +22 -5
  82. package/dist/types/components/Tree/Tree.d.ts +1 -1
  83. package/dist/types/components/Tree/index.d.ts +4 -1
  84. package/dist/types/components/Tree/types.d.ts +20 -0
  85. package/dist/types/components/Tree/useTree.d.ts +96 -0
  86. package/dist/types/components/Tree/utils.d.ts +7 -0
  87. package/dist/types/components/VirtualList/VirtualList.bench.d.ts +1 -0
  88. package/dist/types/headless/index.d.ts +16 -0
  89. package/dist/types/hooks/index.d.ts +4 -0
  90. package/dist/types/hooks/useAnchorSpy.d.ts +62 -0
  91. package/dist/types/icons/index.d.ts +138 -0
  92. package/dist/types/index.d.ts +10 -2
  93. package/dist/types/tokens/index.d.ts +1 -0
  94. package/dist/types/tokens/zoom.d.ts +33 -0
  95. package/dist/types/utils/deprecate.d.ts +13 -0
  96. package/dist/types/utils/portal.d.ts +29 -0
  97. package/dist/utils/portal.js +13 -0
  98. package/package.json +40 -8
@@ -94,7 +94,7 @@ var we = "calc(var(--haze-space-3) * 2 + var(--haze-space-5))", Te = "(var(--haz
94
94
  sm: 23,
95
95
  md: 34,
96
96
  lg: 39
97
- }, C = "__selection__", De = "Use the arrow keys to move between cells. Home and End go to the start or end of the row; PageUp and PageDown go to the first or last row.", Oe = " Press Enter or F2 to edit the focused cell; Escape cancels and returns to navigation.", ke = " Focus a column reorder grip and press Alt with the left or right arrow key to move its column.", Ae = "haze-DataTable__root", je = "haze-DataTable__scrollArea", Me = "haze-DataTable__stickyScrollArea", Ne = "haze-DataTable__virtualArea", w = "haze-DataTable__fixedLayout", Pe = "haze-DataTable__virtualRowTable", T = "haze-DataTable__tableBase", Fe = "haze-DataTable__stickyHead", Ie = "haze-DataTable__sortButton", Le = "haze-DataTable__sortIcon", Re = "haze-DataTable__rowHover", ze = "haze-DataTable__rowSelected", Be = "haze-DataTable__clickableRow", Ve = "haze-DataTable__checkCell", He = "haze-DataTable__checkCellCol", E = "haze-DataTable__fixedCell", Ue = "haze-DataTable__fixedCellSelected", We = "haze-DataTable__fixedHeadCell", Ge = "haze-DataTable__fixedLeftEdge", Ke = "haze-DataTable__fixedRightEdge", qe = "haze-DataTable__emptyCell", Je = "haze-DataTable__footer", Ye = "haze-DataTable__toolbar", Xe = "haze-DataTable__footerMenu", Ze = "haze-DataTable__columnsTrigger", Qe = "haze-DataTable__toggleRow", $e = "haze-DataTable__resizableHead", et = "haze-DataTable__resizeHandle", D = "haze-DataTable__reorderGripClass", tt = "haze-DataTable__reorderItemClass", nt = "haze-DataTable__endSentinelClass", rt = "haze-DataTable__expander", it = "haze-DataTable__expanderIcon", at = "haze-DataTable__panelCell", ot = "haze-DataTable__treeIndent", st = "haze-DataTable__summaryFoot", ct = "haze-DataTable__stickyFoot", lt = "haze-DataTable__editableCell", ut = "haze-DataTable__navCell", dt = "haze-DataTable__sizeSm", ft = "haze-DataTable__sizeLg";
97
+ }, C = "__selection__", De = "Use the arrow keys to move between cells. Home and End go to the start or end of the row; PageUp and PageDown go to the first or last row.", Oe = " Press Enter or F2 to edit the focused cell; Escape cancels and returns to navigation.", ke = " Focus a column reorder grip and press Alt with the left or right arrow key to move its column.", Ae = "haze-DataTable__root", je = "haze-DataTable__scrollArea", Me = "haze-DataTable__stickyScrollArea", Ne = "haze-DataTable__virtualArea", w = "haze-DataTable__fixedLayout", Pe = "haze-DataTable__virtualRowTable", T = "haze-DataTable__tableBase", Fe = "haze-DataTable__stickyHead", Ie = "haze-DataTable__sortButton", Le = "haze-DataTable__sortIcon", Re = "haze-DataTable__rowHover", ze = "haze-DataTable__rowSelected", Be = "haze-DataTable__clickableRow", Ve = "haze-DataTable__checkCell", He = "haze-DataTable__checkCellCol", Ue = "haze-DataTable__resizableHead", E = "haze-DataTable__fixedCell", We = "haze-DataTable__fixedCellSelected", Ge = "haze-DataTable__fixedHeadCell", Ke = "haze-DataTable__fixedLeftEdge", qe = "haze-DataTable__fixedRightEdge", Je = "haze-DataTable__emptyCell", Ye = "haze-DataTable__footer", Xe = "haze-DataTable__toolbar", Ze = "haze-DataTable__footerMenu", Qe = "haze-DataTable__columnsTrigger", $e = "haze-DataTable__toggleRow", et = "haze-DataTable__resizeHandle", D = "haze-DataTable__reorderGripClass", tt = "haze-DataTable__reorderItemClass", nt = "haze-DataTable__endSentinelClass", rt = "haze-DataTable__expander", it = "haze-DataTable__expanderIcon", at = "haze-DataTable__panelCell", ot = "haze-DataTable__treeIndent", st = "haze-DataTable__summaryFoot", ct = "haze-DataTable__stickyFoot", lt = "haze-DataTable__editableCell", ut = "haze-DataTable__navCell", dt = "haze-DataTable__sizeSm", ft = "haze-DataTable__sizeLg";
98
98
  function pt({ columns: s, data: c, sortable: ue = !1, selectable: D = !1, rowSelection: pt, sorting: mt, pageSize: O, page: ht, manual: gt = !1, pageCount: _t, onPageChange: vt, onSortChange: yt, loading: k = !1, stickyHeader: bt = !1, virtualized: A, getRowId: xt, onRowClick: St, empty: Ct, resizable: j = !1, expanded: wt, getRowCanExpand: Tt, renderExpandedRow: M, subRowsKey: Et = "subRows", columnVisibility: Dt, columnToggle: Ot = !1, filterable: N = !1, filters: kt, onFiltersChange: At, summary: jt, stickyFooter: Mt = !1, editable: Nt = !1, onCellEdit: Pt, toolbar: Ft, size: It = "md", columnReorderable: Lt = !1, onColumnOrderChange: Rt, onEndReached: P, endReachedThreshold: zt, classNames: F, className: Bt, ref: I, ...Vt }) {
99
99
  let Ht = ge(mt), [Ut, Wt] = y(b(Ht ? mt : void 0, _e((e) => yt?.(e))), Ht ? [] : mt ?? []), [Gt, Kt] = y(pt, {}), qt = ge(ht), [Jt, Yt, Xt] = y(b(qt ? ht : void 0, _e((e) => vt?.(e))), qt ? 1 : ht ?? 1), [Zt, Qt] = y(wt, {}), [$t, en] = y(Dt, {}), [tn, nn] = y(b(void 0, _e((e) => Rt?.(e))), []), rn = ge(kt), [an, on] = y(b(rn ? kt : void 0, _e((e) => At?.(e))), rn ? {} : kt ?? {}), [sn, L] = g(null), [R, z] = g(null), cn = h(null), ln = h(null), un = fe((e) => {
100
100
  ln.current = e, typeof I == "function" ? I(e) : I && (I.current = e);
@@ -355,7 +355,7 @@ function pt({ columns: s, data: c, sortable: ue = !1, selectable: D = !1, rowSel
355
355
  className: e([
356
356
  Kn,
357
357
  Y && E,
358
- Y && We
358
+ Y && Ge
359
359
  ]),
360
360
  children: /* @__PURE__ */ _("span", {
361
361
  ref: wn,
@@ -393,8 +393,8 @@ function pt({ columns: s, data: c, sortable: ue = !1, selectable: D = !1, rowSel
393
393
  "aria-sort": r === "asc" ? "ascending" : r === "desc" ? "descending" : void 0,
394
394
  className: e([
395
395
  i && E,
396
- i && We,
397
- a && $e
396
+ i && Ge,
397
+ a && Ue
398
398
  ]),
399
399
  children: [
400
400
  s,
@@ -466,8 +466,8 @@ function pt({ columns: s, data: c, sortable: ue = !1, selectable: D = !1, rowSel
466
466
  className: e([
467
467
  Kn,
468
468
  Y && E,
469
- Y?.edge && Ge,
470
- t.getIsSelected() && Ue,
469
+ Y?.edge && Ke,
470
+ t.getIsSelected() && We,
471
471
  ut
472
472
  ]),
473
473
  children: /* @__PURE__ */ _(o, {
@@ -508,8 +508,8 @@ function pt({ columns: s, data: c, sortable: ue = !1, selectable: D = !1, rowSel
508
508
  }, o && !s),
509
509
  className: e([
510
510
  i && E,
511
- i?.edge && (i.side === "left" ? Ge : Ke),
512
- t.getIsSelected() && Ue,
511
+ i?.edge && (i.side === "left" ? Ke : qe),
512
+ t.getIsSelected() && We,
513
513
  o && lt,
514
514
  ut
515
515
  ]),
@@ -568,7 +568,7 @@ function pt({ columns: s, data: c, sortable: ue = !1, selectable: D = !1, rowSel
568
568
  className: e([
569
569
  Kn,
570
570
  Y && E,
571
- Y?.edge && Ge
571
+ Y?.edge && Ke
572
572
  ]),
573
573
  children: /* @__PURE__ */ _(l, {})
574
574
  }), W.map((t) => {
@@ -576,7 +576,7 @@ function pt({ columns: s, data: c, sortable: ue = !1, selectable: D = !1, rowSel
576
576
  return /* @__PURE__ */ _(f, {
577
577
  "data-slot": "cell",
578
578
  style: S(n),
579
- className: e([n && E, n?.edge && (n.side === "left" ? Ge : Ke)]),
579
+ className: e([n && E, n?.edge && (n.side === "left" ? Ke : qe)]),
580
580
  children: /* @__PURE__ */ _(l, {})
581
581
  }, t.id);
582
582
  })]
@@ -586,7 +586,7 @@ function pt({ columns: s, data: c, sortable: ue = !1, selectable: D = !1, rowSel
586
586
  children: _(f, {
587
587
  colSpan: kn,
588
588
  "data-slot": "empty-cell",
589
- className: e([qe]),
589
+ className: e([Je]),
590
590
  children: Ct ?? /* @__PURE__ */ _(p, {})
591
591
  })
592
592
  }), er = N ? /* @__PURE__ */ _(d, { children: v("tr", {
@@ -627,15 +627,15 @@ function pt({ columns: s, data: c, sortable: ue = !1, selectable: D = !1, rowSel
627
627
  })]
628
628
  }, `summary-${n}`))
629
629
  }) : void 0, ir = Ot ? /* @__PURE__ */ v(ae, {
630
- className: O === void 0 ? void 0 : Xe,
630
+ className: O === void 0 ? void 0 : Ze,
631
631
  children: [/* @__PURE__ */ _(ie, {
632
- className: e([Ze]),
632
+ className: e([Qe]),
633
633
  children: "Columns"
634
634
  }), /* @__PURE__ */ _(re, {
635
635
  align: "end",
636
636
  children: H.getAllLeafColumns().filter((e) => e.getCanHide()).map((t) => /* @__PURE__ */ v("label", {
637
637
  "data-slot": "column-toggle-item",
638
- className: e([Qe]),
638
+ className: e([$e]),
639
639
  children: [/* @__PURE__ */ _(o, {
640
640
  role: "menuitemcheckbox",
641
641
  "aria-checked": t.getIsVisible(),
@@ -655,7 +655,7 @@ function pt({ columns: s, data: c, sortable: ue = !1, selectable: D = !1, rowSel
655
655
  }),
656
656
  ar && /* @__PURE__ */ v("div", {
657
657
  "data-slot": "toolbar",
658
- className: e([Ye, F?.toolbar]),
658
+ className: e([Xe, F?.toolbar]),
659
659
  children: [Ft, ir !== void 0 && O === void 0 ? ir : null]
660
660
  }),
661
661
  B ? /* @__PURE__ */ v("div", {
@@ -746,7 +746,7 @@ function pt({ columns: s, data: c, sortable: ue = !1, selectable: D = !1, rowSel
746
746
  }),
747
747
  O !== void 0 && /* @__PURE__ */ v("div", {
748
748
  "data-slot": "pagination",
749
- className: e([Je, F?.footer]),
749
+ className: e([Ye, F?.footer]),
750
750
  children: [ir, /* @__PURE__ */ _(ne, {
751
751
  page: Xt,
752
752
  total: gt && _t !== void 0 ? Math.max(0, _t) * O : Sn.length,
@@ -5,8 +5,8 @@ import { PlusGlyph as a } from "./float-button-glyphs.js";
5
5
  import { useFloatButtonGroup as o } from "./float-button-context.js";
6
6
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
7
7
  //#region src/lib/components/FloatButton/FloatButton.tsx
8
- function u({ icon: u, description: d, shape: f = "circle", variant: p = "solid", href: m, className: h, onClick: g, ..._ }) {
9
- let v = o(), y = /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("span", {
8
+ function u({ icon: u, description: d, shape: f = "circle", variant: p = "solid", href: m, as: h, className: g, onClick: _, ...v }) {
9
+ let y = o(), b = h ?? (m == null ? "button" : "a"), x = h === void 0 ? m == null : h === "button", S = /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("span", {
10
10
  "data-slot": "icon",
11
11
  "aria-hidden": "true",
12
12
  className: e([n]),
@@ -15,31 +15,23 @@ function u({ icon: u, description: d, shape: f = "circle", variant: p = "solid",
15
15
  "data-slot": "description",
16
16
  className: e(["haze-float-button-styles__descBox"]),
17
17
  children: d
18
- })] }), b = [
18
+ })] }), C = [
19
19
  t,
20
20
  r[f],
21
21
  i[p],
22
- !v && "haze-float-button-styles__anchored",
23
- h
22
+ !y && "haze-float-button-styles__anchored",
23
+ g
24
24
  ];
25
- return m == null ? /* @__PURE__ */ c("button", {
26
- type: "button",
27
- "data-slot": "float-button",
28
- ..._,
29
- onClick: (e) => {
30
- g?.(e), v?.closeMenu();
31
- },
32
- className: e(b),
33
- children: y
34
- }) : /* @__PURE__ */ c("a", {
25
+ return /* @__PURE__ */ c(b, {
26
+ ...x ? { type: "button" } : {},
35
27
  href: m,
36
28
  "data-slot": "float-button",
37
- ..._,
29
+ ...v,
38
30
  onClick: (e) => {
39
- g?.(e), v?.closeMenu();
31
+ _?.(e), y?.closeMenu();
40
32
  },
41
- className: e(b),
42
- children: y
33
+ className: e(C),
34
+ children: S
43
35
  });
44
36
  }
45
37
  //#endregion
@@ -0,0 +1,45 @@
1
+
2
+ "use client";
3
+ import { classnames as e } from "../../utils/classnames.js";
4
+ import t from "../Button/Button.js";
5
+ import n from "../Skeleton/Skeleton.js";
6
+ /* empty css */
7
+ import { jsx as r } from "react/jsx-runtime";
8
+ //#region src/lib/components/FollowUpSuggestions/FollowUpSuggestions.tsx
9
+ var i = "haze-FollowUpSuggestions__list", a = "haze-FollowUpSuggestions__item", o = [
10
+ "calc(var(--haze-text-sm) * 6)",
11
+ "calc(var(--haze-text-sm) * 9)",
12
+ "calc(var(--haze-text-sm) * 12)"
13
+ ], s = "calc(var(--haze-text-sm) * var(--haze-leading-tight) + var(--haze-space-2))", c = 3;
14
+ function l({ suggestions: l, onSelect: u, disabled: d = !1, loading: f = !1, className: p, ref: m, ...h }) {
15
+ return /* @__PURE__ */ r("div", {
16
+ ref: m,
17
+ "data-slot": "follow-up-suggestions",
18
+ role: "list",
19
+ ...h,
20
+ className: e([i, p]),
21
+ children: f ? Array.from({ length: l.length > 0 ? l.length : c }, (t, i) => /* @__PURE__ */ r("div", {
22
+ "data-slot": "follow-up-suggestion-skeleton",
23
+ "aria-hidden": "true",
24
+ className: e([a]),
25
+ children: /* @__PURE__ */ r(n, {
26
+ variant: "rectangular",
27
+ width: o[i % o.length],
28
+ height: s
29
+ })
30
+ }, i)) : l.map((n, i) => /* @__PURE__ */ r("div", {
31
+ "data-slot": "follow-up-suggestion",
32
+ role: "listitem",
33
+ className: e([a]),
34
+ children: /* @__PURE__ */ r(t, {
35
+ variant: "outline",
36
+ size: "sm",
37
+ disabled: d,
38
+ onClick: () => u?.(n),
39
+ children: n
40
+ })
41
+ }, `${n}-${i}`))
42
+ });
43
+ }
44
+ //#endregion
45
+ export { l as default };
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import e from "./FollowUpSuggestions.js";
3
+ export { e as FollowUpSuggestions };
@@ -151,6 +151,15 @@ var e = {
151
151
  noMatch: "لا توجد مطابقات"
152
152
  },
153
153
  modelPicker: { label: "النموذج" },
154
+ notificationCenter: {
155
+ triggerLabel: "الإشعارات",
156
+ triggerLabelUnread: "الإشعارات ({count} غير مقروءة)",
157
+ panelTitle: "الإشعارات",
158
+ markAllRead: "وضع علامة مقروء على الكل",
159
+ clearAll: "مسح الكل",
160
+ empty: "لا توجد إشعارات",
161
+ unreadLabel: "غير مقروء"
162
+ },
154
163
  numberInput: {
155
164
  decrease: "إنقاص",
156
165
  increase: "زيادة"
@@ -151,6 +151,15 @@ var e = {
151
151
  noMatch: "Keine Übereinstimmungen"
152
152
  },
153
153
  modelPicker: { label: "Modell" },
154
+ notificationCenter: {
155
+ triggerLabel: "Benachrichtigungen",
156
+ triggerLabelUnread: "Benachrichtigungen ({count} ungelesen)",
157
+ panelTitle: "Benachrichtigungen",
158
+ markAllRead: "Alle als gelesen markieren",
159
+ clearAll: "Alle löschen",
160
+ empty: "Keine Benachrichtigungen",
161
+ unreadLabel: "Ungelesen"
162
+ },
154
163
  numberInput: {
155
164
  decrease: "Verringern",
156
165
  increase: "Erhöhen"
@@ -151,6 +151,15 @@ var e = {
151
151
  noMatch: "Sin coincidencias"
152
152
  },
153
153
  modelPicker: { label: "Modelo" },
154
+ notificationCenter: {
155
+ triggerLabel: "Notificaciones",
156
+ triggerLabelUnread: "Notificaciones ({count} sin leer)",
157
+ panelTitle: "Notificaciones",
158
+ markAllRead: "Marcar todo como leído",
159
+ clearAll: "Borrar todo",
160
+ empty: "Sin notificaciones",
161
+ unreadLabel: "Sin leer"
162
+ },
154
163
  numberInput: {
155
164
  decrease: "Reducir",
156
165
  increase: "Aumentar"
@@ -151,6 +151,15 @@ var e = {
151
151
  noMatch: "Aucune correspondance"
152
152
  },
153
153
  modelPicker: { label: "Modèle" },
154
+ notificationCenter: {
155
+ triggerLabel: "Notifications",
156
+ triggerLabelUnread: "Notifications ({count} non lues)",
157
+ panelTitle: "Notifications",
158
+ markAllRead: "Tout marquer comme lu",
159
+ clearAll: "Tout effacer",
160
+ empty: "Aucune notification",
161
+ unreadLabel: "Non lue"
162
+ },
154
163
  numberInput: {
155
164
  decrease: "Diminuer",
156
165
  increase: "Augmenter"
@@ -151,6 +151,15 @@ var e = {
151
151
  noMatch: "Nessuna corrispondenza"
152
152
  },
153
153
  modelPicker: { label: "Modello" },
154
+ notificationCenter: {
155
+ triggerLabel: "Notifiche",
156
+ triggerLabelUnread: "Notifiche ({count} non lette)",
157
+ panelTitle: "Notifiche",
158
+ markAllRead: "Segna tutte come lette",
159
+ clearAll: "Cancella tutto",
160
+ empty: "Nessuna notifica",
161
+ unreadLabel: "Non letta"
162
+ },
154
163
  numberInput: {
155
164
  decrease: "Diminuisci",
156
165
  increase: "Aumenta"
@@ -151,6 +151,15 @@ var e = {
151
151
  noMatch: "該当なし"
152
152
  },
153
153
  modelPicker: { label: "モデル" },
154
+ notificationCenter: {
155
+ triggerLabel: "通知",
156
+ triggerLabelUnread: "通知(未読 {count} 件)",
157
+ panelTitle: "通知",
158
+ markAllRead: "すべて既読にする",
159
+ clearAll: "すべて消去",
160
+ empty: "通知はありません",
161
+ unreadLabel: "未読"
162
+ },
154
163
  numberInput: {
155
164
  decrease: "減らす",
156
165
  increase: "増やす"
@@ -151,6 +151,15 @@ var e = {
151
151
  noMatch: "일치 항목 없음"
152
152
  },
153
153
  modelPicker: { label: "모델" },
154
+ notificationCenter: {
155
+ triggerLabel: "알림",
156
+ triggerLabelUnread: "알림 ({count}개 읽지 않음)",
157
+ panelTitle: "알림",
158
+ markAllRead: "모두 읽음으로 표시",
159
+ clearAll: "모두 지우기",
160
+ empty: "알림이 없습니다",
161
+ unreadLabel: "읽지 않음"
162
+ },
154
163
  numberInput: {
155
164
  decrease: "감소",
156
165
  increase: "증가"
@@ -151,6 +151,15 @@ var e = {
151
151
  noMatch: "No matches"
152
152
  },
153
153
  modelPicker: { label: "Model" },
154
+ notificationCenter: {
155
+ triggerLabel: "Notifications",
156
+ triggerLabelUnread: "Notifications ({count} unread)",
157
+ panelTitle: "Notifications",
158
+ markAllRead: "Mark all as read",
159
+ clearAll: "Clear all",
160
+ empty: "No notifications",
161
+ unreadLabel: "Unread"
162
+ },
154
163
  numberInput: {
155
164
  decrease: "Decrease",
156
165
  increase: "Increase"
@@ -151,6 +151,15 @@ var e = {
151
151
  noMatch: "Nenhuma correspondência"
152
152
  },
153
153
  modelPicker: { label: "Modelo" },
154
+ notificationCenter: {
155
+ triggerLabel: "Notificações",
156
+ triggerLabelUnread: "Notificações ({count} não lidas)",
157
+ panelTitle: "Notificações",
158
+ markAllRead: "Marcar todas como lidas",
159
+ clearAll: "Limpar tudo",
160
+ empty: "Nenhuma notificação",
161
+ unreadLabel: "Não lida"
162
+ },
154
163
  numberInput: {
155
164
  decrease: "Diminuir",
156
165
  increase: "Aumentar"
@@ -151,6 +151,15 @@ var e = {
151
151
  noMatch: "Совпадений нет"
152
152
  },
153
153
  modelPicker: { label: "Модель" },
154
+ notificationCenter: {
155
+ triggerLabel: "Уведомления",
156
+ triggerLabelUnread: "Уведомления ({count} непрочитанных)",
157
+ panelTitle: "Уведомления",
158
+ markAllRead: "Отметить все как прочитанные",
159
+ clearAll: "Очистить все",
160
+ empty: "Нет уведомлений",
161
+ unreadLabel: "Непрочитано"
162
+ },
154
163
  numberInput: {
155
164
  decrease: "Уменьшить",
156
165
  increase: "Увеличить"
@@ -151,6 +151,15 @@ var e = {
151
151
  noMatch: "无匹配项"
152
152
  },
153
153
  modelPicker: { label: "模型" },
154
+ notificationCenter: {
155
+ triggerLabel: "通知",
156
+ triggerLabelUnread: "通知({count} 条未读)",
157
+ panelTitle: "通知",
158
+ markAllRead: "全部标为已读",
159
+ clearAll: "清空全部",
160
+ empty: "暂无通知",
161
+ unreadLabel: "未读"
162
+ },
154
163
  numberInput: {
155
164
  decrease: "减少",
156
165
  increase: "增加"
@@ -1,27 +1,26 @@
1
1
 
2
2
  import { classnames as e } from "../../utils/classnames.js";
3
3
  /* empty css */
4
- import { forwardRef as t } from "react";
5
- import { jsx as n } from "react/jsx-runtime";
4
+ import { jsx as t } from "react/jsx-runtime";
6
5
  //#region src/lib/components/NavigationBar/NavLink.tsx
7
- var r = "haze-NavLink__link", i = "haze-NavLink__activeLink", a = t(function({ href: t = "#", active: a, children: o, onClick: s, className: c, "aria-current": l, ...u }, d) {
8
- let f = a ?? l === "page";
9
- return /* @__PURE__ */ n("a", {
10
- ref: d,
6
+ var n = "haze-NavLink__link", r = "haze-NavLink__activeLink";
7
+ function i({ href: i = "#", active: a, as: o, className: s, "aria-current": c, onClick: l, children: u, ...d }) {
8
+ let f = o ?? "a", p = a ?? c === "page";
9
+ return /* @__PURE__ */ t(f, {
11
10
  "data-slot": "nav-link",
12
- href: t,
13
- "aria-current": f ? "page" : l,
11
+ href: i,
12
+ "aria-current": p ? "page" : c,
13
+ ...d,
14
14
  onClick: (e) => {
15
- t === "#" && e.preventDefault(), s?.(e);
15
+ i === "#" && e.preventDefault(), l?.(e);
16
16
  },
17
- ...u,
18
17
  className: e([
19
- r,
20
- f && i,
21
- c
18
+ n,
19
+ p && r,
20
+ s
22
21
  ]),
23
- children: o
22
+ children: u
24
23
  });
25
- });
24
+ }
26
25
  //#endregion
27
- export { a as default };
26
+ export { i as default };