impact-nova 2.1.0-alpha.7 → 2.1.0-alpha.9

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 (108) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +6 -0
  2. package/dist/components/data/ag-grid-react/build-ag-grid-theme.d.ts +3 -0
  3. package/dist/components/data/ag-grid-react/cell-renderers/editors/input-cell-editor.js +58 -58
  4. package/dist/components/data/ag-grid-react/column-indicator-sync-bus.d.ts +9 -0
  5. package/dist/components/data/ag-grid-react/column-indicator-sync-bus.js +15 -0
  6. package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.js +78 -73
  7. package/dist/components/data/ag-grid-react/headers/custom-header.js +3 -1
  8. package/dist/components/data/ag-grid-react/headers/header-search-input.js +87 -91
  9. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  10. package/dist/components/data/ag-grid-react/index.js +109 -100
  11. package/dist/components/data/ag-grid-react/notify-column-indicator-sync.d.ts +3 -2
  12. package/dist/components/data/ag-grid-react/notify-column-indicator-sync.js +4 -3
  13. package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.d.ts +3 -0
  14. package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.js +10 -0
  15. package/dist/components/data/ag-grid-react/theme.d.ts +1 -0
  16. package/dist/components/data/ag-grid-react/theme.js +93 -21
  17. package/dist/components/data/data-table/column-indicator.d.ts +1 -1
  18. package/dist/components/data/data-table/column-indicator.js +15 -11
  19. package/dist/components/data/data-table/data-table-column-def-pin.d.ts +9 -4
  20. package/dist/components/data/data-table/data-table-column-def-pin.js +38 -38
  21. package/dist/components/data/data-table/data-table-saved-views.js +37 -37
  22. package/dist/components/data/data-table/data-table.js +78 -73
  23. package/dist/components/data/data-table/data-table.types.d.ts +7 -1
  24. package/dist/components/data/data-table/indicator-legend.d.ts +13 -2
  25. package/dist/components/data/data-table/indicator-legend.js +20 -17
  26. package/dist/components/data/data-table/pin-switch.js +9 -9
  27. package/dist/components/data/data-table/use-data-table-column-list-sync.js +92 -89
  28. package/dist/components/data/nested-list/nested-list-change-detection.d.ts +11 -0
  29. package/dist/components/data/nested-list/nested-list-change-detection.js +13 -0
  30. package/dist/components/data/nested-list/nested-list.js +107 -97
  31. package/dist/components/data-display/calendar/calendar.d.ts +1 -1
  32. package/dist/components/data-display/calendar/calendar.js +194 -189
  33. package/dist/components/data-display/chart/chart-palette.d.ts +16 -0
  34. package/dist/components/data-display/chart/chart-palette.js +28 -0
  35. package/dist/components/data-display/chart/chart.js +121 -115
  36. package/dist/components/data-display/chart/chart.utils.js +9 -6
  37. package/dist/components/data-display/chart/index.d.ts +1 -0
  38. package/dist/components/data-display/chart/index.js +15 -9
  39. package/dist/components/data-display/chart/resolve-highcharts-options.d.ts +3 -0
  40. package/dist/components/data-display/chart/resolve-highcharts-options.js +35 -0
  41. package/dist/components/data-display/statistics-card/statistics-card.color.d.ts +6 -0
  42. package/dist/components/data-display/statistics-card/statistics-card.color.js +19 -0
  43. package/dist/components/data-display/statistics-card/statistics-card.hooks.js +50 -48
  44. package/dist/components/data-display/statistics-card/statistics-card.js +127 -146
  45. package/dist/components/feedback/alert-dialog/alert-dialog.js +15 -15
  46. package/dist/components/feedback/dialog/dialog.js +3 -3
  47. package/dist/components/feedback/drawer/drawer.js +32 -32
  48. package/dist/components/feedback/sheet/sheet.js +8 -8
  49. package/dist/components/feedback/sheet/sheet.variants.js +1 -1
  50. package/dist/components/feedback/toast/toast.js +83 -92
  51. package/dist/components/flows/command-palette/command-palette-context.types.d.ts +5 -0
  52. package/dist/components/flows/command-palette/command-palette.d.ts +4 -16
  53. package/dist/components/flows/command-palette/command-palette.js +245 -258
  54. package/dist/components/flows/command-palette/command-palette.types.d.ts +9 -0
  55. package/dist/components/flows/command-palette/shortcut-overlay.js +6 -6
  56. package/dist/components/flows/filter-panel/filter-panel.d.ts +3 -2
  57. package/dist/components/flows/filter-panel/filter-panel.js +99 -104
  58. package/dist/components/flows/filter-strip/filter-summary.js +41 -41
  59. package/dist/components/flows/filter-strip/filter-tag-list.js +48 -48
  60. package/dist/components/flows/wizard/wizard.js +32 -32
  61. package/dist/components/forms/choice-card/choice-card.d.ts +2 -2
  62. package/dist/components/forms/choice-card/choice-card.js +156 -166
  63. package/dist/components/forms/combobox/combobox.js +70 -70
  64. package/dist/components/forms/date-picker/date-picker.js +31 -30
  65. package/dist/components/forms/file-upload/file-upload.js +146 -168
  66. package/dist/components/forms/prompt/prompt.js +47 -48
  67. package/dist/components/forms/select/components/SelectAllRow.js +14 -14
  68. package/dist/components/forms/select/components/SelectMenuFooter.js +12 -12
  69. package/dist/components/forms/select/components/SelectMenuHeader.js +44 -44
  70. package/dist/components/forms/select/components/SelectMenuListBody.js +22 -22
  71. package/dist/components/forms/select/components/SelectMenuPanel.js +8 -8
  72. package/dist/components/forms/select/components/SelectOptionRow.js +62 -62
  73. package/dist/components/forms/select/select.d.ts +5 -4
  74. package/dist/components/forms/select/select.js +123 -120
  75. package/dist/components/forms/select/select.types.d.ts +95 -204
  76. package/dist/components/forms/slider/slider.js +17 -17
  77. package/dist/components/forms/smart-input/smart-input.js +49 -49
  78. package/dist/components/forms/textarea/textarea.js +25 -25
  79. package/dist/components/layout/breadcrumb/breadcrumb.js +112 -118
  80. package/dist/components/layout/header/header.d.ts +5 -17
  81. package/dist/components/layout/header/header.js +113 -116
  82. package/dist/components/layout/header/header.types.d.ts +3 -0
  83. package/dist/components/layout/sidebar/sidebar.js +5 -5
  84. package/dist/components/layout/sidebar/sidebar.variants.js +1 -1
  85. package/dist/components/primitives/accordion/accordion.js +38 -41
  86. package/dist/components/primitives/kbd/kbd.variants.js +1 -1
  87. package/dist/i18n/defaultMessages.d.ts +2 -0
  88. package/dist/i18n/defaultMessages.js +6 -4
  89. package/dist/i18n/locales/de.js +2 -0
  90. package/dist/i18n/locales/es.js +2 -0
  91. package/dist/i18n/locales/hi.js +2 -0
  92. package/dist/i18n/locales/kn.js +2 -0
  93. package/dist/impact-nova-base.scss +8 -5
  94. package/dist/impact-nova-components.css +2 -2
  95. package/dist/impact-nova-tokens.scss +346 -189
  96. package/dist/impact-nova.css +1 -1
  97. package/dist/index.js +505 -499
  98. package/dist/lib/resolve-design-token-color.d.ts +5 -0
  99. package/dist/lib/resolve-design-token-color.js +12 -0
  100. package/dist/llms/rules/ag-grid.js +1 -1
  101. package/dist/llms/rules/installation.js +1 -1
  102. package/dist/llms/rules/requirements.js +1 -1
  103. package/dist/tailwind.config.js +297 -0
  104. package/dist/theme/tailwind-colors.js +199 -0
  105. package/dist/theme/tokens/chart-series-palette.json.d.ts +53 -0
  106. package/dist/theme/tokens/chart-series-palette.json.js +7 -0
  107. package/package.json +32 -259
  108. package/tailwind.config.js +0 -335
@@ -1,9 +1,10 @@
1
1
  import { jsx as P } from "react/jsx-runtime";
2
- import { forwardRef as E, useState as x } from "react";
2
+ import { useState as E } from "react";
3
+ import { createComponent as x } from "../../../lib/primitives/create-component.js";
3
4
  import { Input as L } from "../input/input.js";
4
- const ee = E(function({
5
- value: S,
6
- type: C = "text",
5
+ const le = x("SmartInput", function({
6
+ value: M,
7
+ type: S = "text",
7
8
  onChange: v,
8
9
  onBlur: b,
9
10
  onFocus: z,
@@ -15,17 +16,17 @@ const ee = E(function({
15
16
  min_operator: O = ">=",
16
17
  max_operator: W = "<=",
17
18
  maxIntegerDigits: V,
18
- decimalPlaces: c,
19
+ decimalPlaces: o,
19
20
  enforceDecimal: j = !1,
20
- allowDecimal: y = !0,
21
+ allowDecimal: B = !0,
21
22
  maxLength: i,
22
- trimLeadingSpaces: B = !0,
23
+ trimLeadingSpaces: y = !0,
23
24
  customValidator: N,
24
25
  onValidationError: p,
25
26
  disabled: h = !1,
26
27
  ...k
27
- }, R) {
28
- const $ = S !== void 0, [T, w] = x(""), l = $ ? String(S ?? "") : T, a = C === "number", g = F ?? O, m = K ?? W, U = (t) => {
28
+ }, T) {
29
+ const $ = M !== void 0, [U, m] = E(""), a = $ ? String(M ?? "") : U, c = S === "number", g = F ?? O, w = K ?? W, q = (t) => {
29
30
  if (s === void 0) return !0;
30
31
  switch (g) {
31
32
  case ">":
@@ -39,9 +40,9 @@ const ee = E(function({
39
40
  default:
40
41
  return !0;
41
42
  }
42
- }, q = (t) => {
43
+ }, A = (t) => {
43
44
  if (u === void 0) return !0;
44
- switch (m) {
45
+ switch (w) {
45
46
  case ">":
46
47
  return t > u;
47
48
  case ">=":
@@ -53,24 +54,24 @@ const ee = E(function({
53
54
  default:
54
55
  return !0;
55
56
  }
56
- }, A = (t) => {
57
+ }, G = (t) => {
57
58
  let e = t;
58
59
  if (s !== void 0) {
59
60
  const r = g === ">" ? s + 0.01 : s;
60
61
  e = Math.max(e, r);
61
62
  }
62
63
  if (u !== void 0) {
63
- const r = m === "<" ? u - 0.01 : u;
64
+ const r = w === "<" ? u - 0.01 : u;
64
65
  e = Math.min(e, r);
65
66
  }
66
67
  return e;
67
- }, G = (t) => {
68
+ }, H = (t) => {
68
69
  const e = D ? /[^0-9.-]/g : /[^0-9.]/g;
69
70
  return t.replace(e, "");
70
- }, H = (t) => {
71
+ }, J = (t) => {
71
72
  const e = t.split(".");
72
73
  return e.length > 2 ? e[0] + "." + e.slice(1).join("") : t;
73
- }, J = (t, e) => {
74
+ }, Q = (t, e) => {
74
75
  if (!D) return t;
75
76
  if ((t.match(/-/g) || []).length > 1) {
76
77
  let n = t.replace(/-/g, "");
@@ -78,10 +79,10 @@ const ee = E(function({
78
79
  } else if (t.includes("-") && !t.startsWith("-"))
79
80
  return t.replace("-", "");
80
81
  return t;
81
- }, Q = (t) => {
82
- if (c === void 0 || !t.includes(".")) return t;
82
+ }, R = (t) => {
83
+ if (o === void 0 || !t.includes(".")) return t;
83
84
  const [e, r] = t.split(".");
84
- return r && r.length > c ? `${e}.${r.slice(0, c)}` : t;
85
+ return r && r.length > o ? `${e}.${r.slice(0, o)}` : t;
85
86
  }, X = (t) => {
86
87
  if (V === void 0) return t;
87
88
  const [e, r] = t.split("."), n = e.replace("-", "");
@@ -90,21 +91,21 @@ const ee = E(function({
90
91
  return r !== void 0 ? `${d}${f}.${r}` : `${d}${f}`;
91
92
  }
92
93
  return t;
93
- }, I = (t) => {
94
- if (!a) return t;
94
+ }, C = (t) => {
95
+ if (!c) return t;
95
96
  let e = String(t ?? "");
96
- return B && (e = e.replace(/^\s+/, "")), e = G(e), e = H(e), e = J(e, t), e = Q(e), e = X(e), y || (e = e.replace(".", "")), e;
97
+ return y && (e = e.replace(/^\s+/, "")), e = H(e), e = J(e), e = Q(e, t), e = R(e), e = X(e), B || (e = e.replace(".", "")), e;
97
98
  }, Y = (t) => {
98
- if (!a || !t || t === "-") return t;
99
+ if (!c || !t || t === "-") return t;
99
100
  let e = t;
100
101
  const r = parseFloat(e);
101
102
  if (isNaN(r)) return "";
102
- const n = A(r);
103
- if (j && c !== void 0)
104
- e = n.toFixed(c);
105
- else if (c !== void 0 && e.includes(".")) {
106
- const [f, d = ""] = e.split("."), M = d.padEnd(c, "0");
107
- e = `${f}.${M}`;
103
+ const n = G(r);
104
+ if (j && o !== void 0)
105
+ e = n.toFixed(o);
106
+ else if (o !== void 0 && e.includes(".")) {
107
+ const [f, d = ""] = e.split("."), I = d.padEnd(o, "0");
108
+ e = `${f}.${I}`;
108
109
  } else
109
110
  e = String(n);
110
111
  return e;
@@ -112,14 +113,14 @@ const ee = E(function({
112
113
  if (!t) return !0;
113
114
  if (N && !N(t))
114
115
  return p?.("Custom validation failed"), !1;
115
- if (a) {
116
+ if (c) {
116
117
  const e = parseFloat(t);
117
118
  if (isNaN(e))
118
119
  return p?.("Invalid number"), !1;
119
- if (!U(e))
120
- return p?.(`Value must be ${g} ${s}`), !1;
121
120
  if (!q(e))
122
- return p?.(`Value must be ${m} ${u}`), !1;
121
+ return p?.(`Value must be ${g} ${s}`), !1;
122
+ if (!A(e))
123
+ return p?.(`Value must be ${w} ${u}`), !1;
123
124
  }
124
125
  return i && t.length > i ? (p?.(`Maximum length is ${i}`), !1) : !0;
125
126
  };
@@ -128,28 +129,28 @@ const ee = E(function({
128
129
  {
129
130
  "data-component": "smart-input",
130
131
  className: "w-full",
131
- "data-numeric": a || void 0,
132
- "data-decimal-places": c,
132
+ "data-numeric": c || void 0,
133
+ "data-decimal-places": o,
133
134
  "data-min": s,
134
135
  "data-max": u,
135
136
  children: /* @__PURE__ */ P(
136
137
  L,
137
138
  {
138
139
  ...k,
139
- type: C,
140
- value: l,
140
+ type: S,
141
+ value: a,
141
142
  onChange: (t) => {
142
143
  if (h) return;
143
144
  let r = t.target.value;
144
- a ? r = I(r) : B && (r = r.replace(/^\s+/, "")), i && r.length > i && (r = r.slice(0, i)), $ || w(r), v?.(r, t);
145
+ c ? r = C(r) : y && (r = r.replace(/^\s+/, "")), i && r.length > i && (r = r.slice(0, i)), $ || m(r), v?.(r, t);
145
146
  },
146
147
  onBlur: (t) => {
147
- let e = l;
148
- a && e && (e = Y(e), Z(e) && ($ || w(e), e !== l && v?.(e))), b?.(t);
148
+ let e = a;
149
+ c && e && (e = Y(e), Z(e) && ($ || m(e), e !== a && v?.(e))), b?.(t);
149
150
  },
150
151
  onFocus: z,
151
152
  onKeyDown: (t) => {
152
- if (h || !a) return;
153
+ if (h || !c) return;
153
154
  const e = t.key;
154
155
  if (e === "e" || e === "E") {
155
156
  t.preventDefault();
@@ -159,11 +160,11 @@ const ee = E(function({
159
160
  t.preventDefault();
160
161
  return;
161
162
  }
162
- if (e === "-" && l.includes("-")) {
163
+ if (e === "-" && a.includes("-")) {
163
164
  t.preventDefault();
164
165
  return;
165
166
  }
166
- if (e === "." && (!y || l.includes("."))) {
167
+ if (e === "." && (!B || a.includes("."))) {
167
168
  t.preventDefault();
168
169
  return;
169
170
  }
@@ -171,18 +172,17 @@ const ee = E(function({
171
172
  onPaste: (t) => {
172
173
  if (h) return;
173
174
  t.preventDefault();
174
- const e = t.clipboardData.getData("text"), r = a ? I(e) : e, n = t.target, f = n.selectionStart || 0, d = n.selectionEnd || 0, M = l.slice(0, f), _ = l.slice(d);
175
- let o = M + r + _;
176
- a && (o = I(o)), i && o.length > i && (o = o.slice(0, i)), $ || w(o), v?.(o);
175
+ const e = t.clipboardData.getData("text"), r = c ? C(e) : e, n = t.target, f = n.selectionStart || 0, d = n.selectionEnd || 0, I = a.slice(0, f), _ = a.slice(d);
176
+ let l = I + r + _;
177
+ c && (l = C(l)), i && l.length > i && (l = l.slice(0, i)), $ || m(l), v?.(l);
177
178
  },
178
179
  disabled: h,
179
- ref: R
180
+ ref: T
180
181
  }
181
182
  )
182
183
  }
183
184
  );
184
185
  });
185
- ee.displayName = "SmartInput";
186
186
  export {
187
- ee as SmartInput
187
+ le as SmartInput
188
188
  };
@@ -1,4 +1,4 @@
1
- import { jsx as r, jsxs as v } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as v } from "react/jsx-runtime";
2
2
  import * as U from "react";
3
3
  import { createComponent as k } from "../../../lib/primitives/create-component.js";
4
4
  import { useFieldChrome as z } from "../../../lib/primitives/use-field-chrome.js";
@@ -9,10 +9,10 @@ const V = k(
9
9
  ({
10
10
  className: g,
11
11
  label: s,
12
- helperText: a,
13
- helperTextPosition: n = "absolute",
12
+ helperText: e,
13
+ helperTextPosition: d = "absolute",
14
14
  labelOrientation: u,
15
- characterLimit: i,
15
+ characterLimit: a,
16
16
  required: b,
17
17
  isRequired: p,
18
18
  error: C,
@@ -20,28 +20,28 @@ const V = k(
20
20
  size: N,
21
21
  disabled: w,
22
22
  isDisabled: j,
23
- value: d,
23
+ value: i,
24
24
  onChange: y,
25
25
  defaultValue: l,
26
26
  id: B,
27
27
  ...S
28
28
  }, q) => {
29
- const A = b ?? p, e = C ?? h, o = w ?? j, R = !!(s || a || e), c = d !== void 0, [D, E] = U.useState(
29
+ const A = b ?? p, t = C ?? h, o = w ?? j, R = !!(s || e || t || a), c = i !== void 0, [D, E] = U.useState(
30
30
  () => String(l ?? "").length
31
- ), F = c ? String(d ?? "").length : D, I = (f) => {
31
+ ), F = c ? String(i ?? "").length : D, I = (f) => {
32
32
  c || E(f.target.value.length), y?.(f);
33
- }, t = z({
33
+ }, r = z({
34
34
  label: s,
35
- helperText: a,
36
- helperTextPosition: n,
35
+ helperText: e,
36
+ helperTextPosition: d,
37
37
  labelOrientation: u,
38
- error: e,
38
+ error: t,
39
39
  required: A,
40
40
  disabled: o,
41
41
  id: B,
42
- footer: a && n === "flow" || i ? /* @__PURE__ */ v("div", { className: "flex items-center justify-between gap-[6px]", children: [
43
- /* @__PURE__ */ r("div", { className: "flex min-w-0 flex-1" }),
44
- i ? /* @__PURE__ */ v(
42
+ footer: e && d === "flow" || a ? /* @__PURE__ */ v("div", { className: "flex items-center justify-between gap-[6px]", children: [
43
+ /* @__PURE__ */ n("div", { className: "flex min-w-0 flex-1" }),
44
+ a ? /* @__PURE__ */ v(
45
45
  "div",
46
46
  {
47
47
  className: "text-[12px] font-medium leading-[18px] text-navigation-muted text-right",
@@ -49,24 +49,24 @@ const V = k(
49
49
  children: [
50
50
  F,
51
51
  "/",
52
- i
52
+ a
53
53
  ]
54
54
  }
55
55
  ) : null
56
56
  ] }) : void 0,
57
57
  rootClassName: "min-w-[240px]"
58
- }), m = /* @__PURE__ */ r(
58
+ }), m = /* @__PURE__ */ n(
59
59
  "div",
60
60
  {
61
61
  className: x(
62
- a && n === "absolute" && "relative"
62
+ e && d === "absolute" && "relative"
63
63
  ),
64
- children: /* @__PURE__ */ r(
64
+ children: /* @__PURE__ */ n(
65
65
  "textarea",
66
66
  {
67
67
  className: x(
68
68
  G({
69
- error: !!e,
69
+ error: !!t,
70
70
  size: N,
71
71
  disabled: !!o,
72
72
  className: g
@@ -76,21 +76,21 @@ const V = k(
76
76
  ),
77
77
  ref: q,
78
78
  disabled: !!o,
79
- value: d,
79
+ value: i,
80
80
  defaultValue: l,
81
81
  onChange: I,
82
- id: t.controlId,
82
+ id: r.controlId,
83
83
  "data-component": "textarea",
84
- "data-invalid": e || void 0,
84
+ "data-invalid": t || void 0,
85
85
  "data-disabled": o || void 0,
86
- "aria-invalid": t.controlAria["aria-invalid"],
87
- "aria-describedby": t.controlAria["aria-describedby"],
86
+ "aria-invalid": r.controlAria["aria-invalid"],
87
+ "aria-describedby": r.controlAria["aria-describedby"],
88
88
  ...S
89
89
  }
90
90
  )
91
91
  }
92
92
  );
93
- return /* @__PURE__ */ r("div", { className: "flex w-full flex-col gap-[6px]", children: R ? t.wrapControl(m) : m });
93
+ return /* @__PURE__ */ n("div", { className: "flex w-full flex-col gap-[6px]", children: R ? r.wrapControl(m) : m });
94
94
  }
95
95
  );
96
96
  export {
@@ -1,15 +1,17 @@
1
- import { jsx as a, jsxs as f } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import { Slot as v } from "@radix-ui/react-slot";
1
+ import { jsx as t, jsxs as b } from "react/jsx-runtime";
2
+ import * as h from "react";
3
+ import { Slot as y } from "@radix-ui/react-slot";
4
4
  import { ThreeDots as H } from "impact-nova-icons";
5
5
  import { ClickMeArrow as L } from "../../ui/local-raster-icons/rasterIcons.js";
6
- import { Tooltip as C, TooltipTrigger as w, TooltipContent as g } from "../../feedback/tooltip/tooltip.js";
7
- import { cn as s } from "../../../lib/utils.js";
8
- import { useImpactNovaI18n as h } from "../../../i18n/use-impact-nova-i18n.js";
9
- const b = n.createContext({}), B = (e, t) => {
6
+ import { Tooltip as g, TooltipTrigger as w, TooltipContent as B } from "../../feedback/tooltip/tooltip.js";
7
+ import { createComponent as s } from "../../../lib/primitives/create-component.js";
8
+ import { createCompoundPart as W } from "../../../lib/primitives/create-compound.js";
9
+ import { cn as n } from "../../../lib/utils.js";
10
+ import { useImpactNovaI18n as x } from "../../../i18n/use-impact-nova-i18n.js";
11
+ const C = h.createContext({}), N = (e, a) => {
10
12
  const r = e.split(/\s+/);
11
- return r.length <= t ? e : r.slice(0, t).join(" ") + "...";
12
- }, R = ({ className: e }) => /* @__PURE__ */ a(
13
+ return r.length <= a ? e : r.slice(0, a).join(" ") + "...";
14
+ }, V = ({ className: e }) => /* @__PURE__ */ t(
13
15
  "svg",
14
16
  {
15
17
  width: "13",
@@ -19,8 +21,8 @@ const b = n.createContext({}), B = (e, t) => {
19
21
  xmlns: "http://www.w3.org/2000/svg",
20
22
  "aria-hidden": "true",
21
23
  focusable: "false",
22
- className: s("h-3.5 w-3.5", e),
23
- children: /* @__PURE__ */ a(
24
+ className: n("h-3.5 w-3.5", e),
25
+ children: /* @__PURE__ */ t(
24
26
  "path",
25
27
  {
26
28
  d: "M2.0013 11.1654H4.0013V7.83203C4.0013 7.64314 4.06519 7.48481 4.19297 7.35703C4.32075 7.22925 4.47908 7.16536 4.66797 7.16536H7.33464C7.52352 7.16536 7.68186 7.22925 7.80964 7.35703C7.93741 7.48481 8.0013 7.64314 8.0013 7.83203V11.1654H10.0013V5.16536L6.0013 2.16536L2.0013 5.16536V11.1654ZM0.667969 11.1654V5.16536C0.667969 4.95425 0.715191 4.75425 0.809635 4.56536C0.90408 4.37648 1.03464 4.22092 1.2013 4.0987L5.2013 1.0987C5.43464 0.92092 5.7013 0.832031 6.0013 0.832031C6.3013 0.832031 6.56797 0.92092 6.8013 1.0987L10.8013 4.0987C10.968 4.22092 11.0985 4.37648 11.193 4.56536C11.2874 4.75425 11.3346 4.95425 11.3346 5.16536V11.1654C11.3346 11.532 11.2041 11.8459 10.943 12.107C10.6819 12.3681 10.368 12.4987 10.0013 12.4987H7.33464C7.14575 12.4987 6.98741 12.4348 6.85964 12.307C6.73186 12.1793 6.66797 12.0209 6.66797 11.832V8.4987H5.33464V11.832C5.33464 12.0209 5.27075 12.1793 5.14297 12.307C5.01519 12.4348 4.85686 12.4987 4.66797 12.4987H2.0013C1.63464 12.4987 1.32075 12.3681 1.05964 12.107C0.798524 11.8459 0.667969 11.532 0.667969 11.1654Z",
@@ -28,101 +30,99 @@ const b = n.createContext({}), B = (e, t) => {
28
30
  }
29
31
  )
30
32
  }
31
- ), W = n.forwardRef(({ "aria-label": e, ...t }, r) => {
32
- const { t: o } = h();
33
- return /* @__PURE__ */ a(
34
- "nav",
33
+ ), R = s(
34
+ "Breadcrumb",
35
+ ({ "aria-label": e, ...a }, r) => {
36
+ const { t: o } = x();
37
+ return /* @__PURE__ */ t(
38
+ "nav",
39
+ {
40
+ ref: r,
41
+ "aria-label": e ?? o("aria.breadcrumb"),
42
+ "data-component": "breadcrumb",
43
+ ...a
44
+ }
45
+ );
46
+ }
47
+ ), q = s(
48
+ "BreadcrumbList",
49
+ ({ className: e, maxWords: a, ...r }, o) => /* @__PURE__ */ t(C.Provider, { value: { maxWords: a }, children: /* @__PURE__ */ t(
50
+ "ol",
35
51
  {
36
- ref: r,
37
- "aria-label": e ?? o("aria.breadcrumb"),
38
- "data-component": "breadcrumb",
39
- ...t
52
+ ref: o,
53
+ className: n(
54
+ "flex flex-wrap items-center text-[14px] font-medium text-secondary-foreground",
55
+ e
56
+ ),
57
+ ...r
40
58
  }
41
- );
42
- });
43
- W.displayName = "Breadcrumb";
44
- const V = n.forwardRef(({ className: e, maxWords: t, ...r }, o) => /* @__PURE__ */ a(b.Provider, { value: { maxWords: t }, children: /* @__PURE__ */ a(
45
- "ol",
46
- {
47
- ref: o,
48
- className: s(
49
- "flex flex-wrap items-center text-[14px] font-medium text-secondary-foreground",
50
- e
51
- ),
52
- ...r
53
- }
54
- ) }));
55
- V.displayName = "BreadcrumbList";
56
- const S = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
59
+ ) })
60
+ ), F = s("BreadcrumbItem", ({ className: e, ...a }, r) => /* @__PURE__ */ t(
57
61
  "li",
58
62
  {
59
63
  ref: r,
60
- className: s("inline-flex items-center gap-1.5", e),
61
- ...t
64
+ className: n("inline-flex items-center gap-1.5", e),
65
+ ...a
62
66
  }
63
- ));
64
- S.displayName = "BreadcrumbItem";
65
- const N = n.forwardRef(
66
- ({ asChild: e, className: t, maxWords: r, children: o, ...u }, p) => {
67
- const i = e ? v : "a", { maxWords: d } = n.useContext(b), c = r ?? d, l = typeof o == "string", m = l && c ? B(o, c) : o, y = l && c && o.split(/\s+/).length > c, x = /* @__PURE__ */ a(
67
+ )), S = s(
68
+ "BreadcrumbLink",
69
+ ({ asChild: e, className: a, maxWords: r, children: o, ...u }, p) => {
70
+ const i = e ? y : "a", { maxWords: m } = h.useContext(C), c = r ?? m, l = typeof o == "string", d = l && c ? N(o, c) : o, v = l && c && o.split(/\s+/).length > c, f = /* @__PURE__ */ t(
68
71
  i,
69
72
  {
70
73
  ref: p,
71
- className: s(
74
+ className: n(
72
75
  "transition-colors text-brand hover:text-brand-strong font-medium",
73
- t
76
+ a
74
77
  ),
75
78
  ...u,
76
- children: m
79
+ children: d
77
80
  }
78
81
  );
79
- return y ? /* @__PURE__ */ f(C, { children: [
80
- /* @__PURE__ */ a(w, { asChild: !0, children: x }),
81
- /* @__PURE__ */ a(g, { side: "top", variant: "tertiary", children: o })
82
- ] }) : x;
82
+ return v ? /* @__PURE__ */ b(g, { children: [
83
+ /* @__PURE__ */ t(w, { asChild: !0, children: f }),
84
+ /* @__PURE__ */ t(B, { side: "top", variant: "tertiary", children: o })
85
+ ] }) : f;
83
86
  }
84
- );
85
- N.displayName = "BreadcrumbLink";
86
- const T = n.forwardRef(({ ...e }, t) => {
87
- const { t: r } = h();
88
- return /* @__PURE__ */ a(N, { ref: t, "aria-label": r("aria.home"), ...e, children: /* @__PURE__ */ a(R, {}) });
89
- });
90
- T.displayName = "BreadcrumbHomeLink";
91
- const k = n.forwardRef(({ className: e, maxWords: t, children: r, ...o }, u) => {
92
- const { maxWords: p } = n.useContext(b), i = t ?? p, d = typeof r == "string", c = d && i ? B(r, i) : r, l = d && i && r.split(/\s+/).length > i, m = /* @__PURE__ */ a(
93
- "span",
94
- {
95
- ref: u,
96
- role: "link",
97
- "aria-disabled": "true",
98
- "aria-current": "page",
99
- "data-current": "page",
100
- className: s("font-extrabold text-content", e),
101
- ...o,
102
- children: c
103
- }
104
- );
105
- return l ? /* @__PURE__ */ f(C, { children: [
106
- /* @__PURE__ */ a(w, { asChild: !0, children: m }),
107
- /* @__PURE__ */ a(g, { side: "top", variant: "tertiary", children: r })
108
- ] }) : m;
109
- });
110
- k.displayName = "BreadcrumbPage";
111
- const M = ({
87
+ ), G = s("BreadcrumbHomeLink", (e, a) => {
88
+ const { t: r } = x();
89
+ return /* @__PURE__ */ t(S, { ref: a, "aria-label": r("aria.home"), ...e, children: /* @__PURE__ */ t(V, {}) });
90
+ }), J = s(
91
+ "BreadcrumbPage",
92
+ ({ className: e, maxWords: a, children: r, ...o }, u) => {
93
+ const { maxWords: p } = h.useContext(C), i = a ?? p, m = typeof r == "string", c = m && i ? N(r, i) : r, l = m && i && r.split(/\s+/).length > i, d = /* @__PURE__ */ t(
94
+ "span",
95
+ {
96
+ ref: u,
97
+ role: "link",
98
+ "aria-disabled": "true",
99
+ "aria-current": "page",
100
+ "data-current": "page",
101
+ className: n("font-extrabold text-content", e),
102
+ ...o,
103
+ children: c
104
+ }
105
+ );
106
+ return l ? /* @__PURE__ */ b(g, { children: [
107
+ /* @__PURE__ */ t(w, { asChild: !0, children: d }),
108
+ /* @__PURE__ */ t(B, { side: "top", variant: "tertiary", children: r })
109
+ ] }) : d;
110
+ }
111
+ ), T = ({
112
112
  children: e,
113
- className: t,
113
+ className: a,
114
114
  ...r
115
- }) => /* @__PURE__ */ a(
115
+ }) => /* @__PURE__ */ t(
116
116
  "li",
117
117
  {
118
118
  role: "presentation",
119
119
  "aria-hidden": "true",
120
- className: s(
120
+ className: n(
121
121
  "[&>svg]:w-3.5 [&>svg]:h-3.5 text-secondary-foreground",
122
- t
122
+ a
123
123
  ),
124
124
  ...r,
125
- children: e ?? /* @__PURE__ */ a(
125
+ children: e ?? /* @__PURE__ */ t(
126
126
  "svg",
127
127
  {
128
128
  width: "16",
@@ -131,7 +131,7 @@ const M = ({
131
131
  fill: "none",
132
132
  xmlns: "http://www.w3.org/2000/svg",
133
133
  className: "h-4 w-4",
134
- children: /* @__PURE__ */ a(
134
+ children: /* @__PURE__ */ t(
135
135
  "path",
136
136
  {
137
137
  d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",
@@ -142,59 +142,53 @@ const M = ({
142
142
  )
143
143
  }
144
144
  );
145
- M.displayName = "BreadcrumbSeparator";
146
- const j = ({
145
+ T.displayName = "BreadcrumbSeparator";
146
+ const k = ({
147
147
  className: e,
148
- ...t
148
+ ...a
149
149
  }) => {
150
- const { t: r } = h(), o = r("aria.more");
151
- return /* @__PURE__ */ f(
150
+ const { t: r } = x(), o = r("aria.more");
151
+ return /* @__PURE__ */ b(
152
152
  "span",
153
153
  {
154
154
  role: "presentation",
155
155
  "aria-hidden": "true",
156
- className: s("flex h-9 w-9 items-center justify-center", e),
157
- ...t,
156
+ className: n("flex h-9 w-9 items-center justify-center", e),
157
+ ...a,
158
158
  children: [
159
- /* @__PURE__ */ a(H, { className: "h-4 w-4" }),
160
- /* @__PURE__ */ a("span", { className: "sr-only", children: o })
159
+ /* @__PURE__ */ t(H, { className: "h-4 w-4" }),
160
+ /* @__PURE__ */ t("span", { className: "sr-only", children: o })
161
161
  ]
162
162
  }
163
163
  );
164
164
  };
165
- j.displayName = "BreadcrumbElipssis";
166
- const I = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
167
- "div",
168
- {
169
- ref: r,
170
- className: s("flex h-14 items-center justify-between px-6", e),
171
- ...t
172
- }
173
- ));
174
- I.displayName = "BreadcrumbHeader";
175
- const A = n.forwardRef(({ className: e, style: t, ...r }, o) => /* @__PURE__ */ a(
165
+ k.displayName = "BreadcrumbElipssis";
166
+ const K = W("breadcrumb", {
167
+ part: "header",
168
+ displayName: "BreadcrumbHeader",
169
+ className: "flex h-14 items-center justify-between px-6"
170
+ }), O = s("BreadcrumbArrowSeparator", ({ className: e, style: a, ...r }, o) => /* @__PURE__ */ t(
176
171
  "li",
177
172
  {
178
173
  ref: o,
179
174
  role: "presentation",
180
175
  "aria-hidden": "true",
181
- className: s("inline-flex items-center", e),
182
- style: t,
176
+ className: n("inline-flex items-center", e),
177
+ style: a,
183
178
  ...r,
184
- children: /* @__PURE__ */ a(L, { size: 12 })
179
+ children: /* @__PURE__ */ t(L, { size: 12 })
185
180
  }
186
181
  ));
187
- A.displayName = "BreadcrumbArrowSeparator";
188
182
  export {
189
- W as Breadcrumb,
190
- A as BreadcrumbArrowSeparator,
191
- j as BreadcrumbEllipsis,
192
- I as BreadcrumbHeader,
193
- T as BreadcrumbHomeLink,
194
- S as BreadcrumbItem,
195
- N as BreadcrumbLink,
196
- V as BreadcrumbList,
197
- k as BreadcrumbPage,
198
- M as BreadcrumbSeparator,
199
- R as HomeIcon
183
+ R as Breadcrumb,
184
+ O as BreadcrumbArrowSeparator,
185
+ k as BreadcrumbEllipsis,
186
+ K as BreadcrumbHeader,
187
+ G as BreadcrumbHomeLink,
188
+ F as BreadcrumbItem,
189
+ S as BreadcrumbLink,
190
+ q as BreadcrumbList,
191
+ J as BreadcrumbPage,
192
+ T as BreadcrumbSeparator,
193
+ V as HomeIcon
200
194
  };