@rafal.lemieszewski/tide-ui 0.85.1 → 0.87.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 (55) hide show
  1. package/dist/cjs/components/fundamental/breadcrumb.cjs +1 -1
  2. package/dist/cjs/components/fundamental/button.cjs +1 -1
  3. package/dist/cjs/components/fundamental/calendar.cjs +1 -1
  4. package/dist/cjs/components/fundamental/country-dropdown.cjs +1 -1
  5. package/dist/cjs/components/fundamental/custom-icons.cjs +1 -1
  6. package/dist/cjs/components/fundamental/dialog.cjs +1 -1
  7. package/dist/cjs/components/fundamental/file-upload.cjs +1 -1
  8. package/dist/cjs/components/fundamental/icon.cjs +1 -1
  9. package/dist/cjs/components/fundamental/month-picker.cjs +1 -1
  10. package/dist/cjs/components/fundamental/pagination.cjs +1 -1
  11. package/dist/cjs/components/fundamental/select.cjs +1 -1
  12. package/dist/cjs/components/fundamental/separator.cjs +1 -1
  13. package/dist/cjs/components/fundamental/sidebar.cjs +1 -1
  14. package/dist/cjs/components/fundamental/toast.cjs +1 -1
  15. package/dist/cjs/components/fundamental/tree.cjs +1 -1
  16. package/dist/cjs/components/product/app-frame.cjs +1 -1
  17. package/dist/cjs/components/product/attributes-list.cjs +1 -1
  18. package/dist/cjs/components/product/bookmarks.cjs +1 -1
  19. package/dist/cjs/components/product/data-table-settings-menu.cjs +1 -1
  20. package/dist/cjs/components/product/data-table.cjs +1 -1
  21. package/dist/cjs/components/product/filters.cjs +1 -1
  22. package/dist/cjs/components/product/fixture-status.cjs +1 -1
  23. package/dist/cjs/components/product/linked-chart.cjs +1 -1
  24. package/dist/cjs/components/product/view-mode-menu.cjs +1 -1
  25. package/dist/es/components/fundamental/button.js +10 -9
  26. package/dist/es/components/fundamental/calendar.js +18 -17
  27. package/dist/es/components/fundamental/custom-icons.js +283 -517
  28. package/dist/es/components/fundamental/dialog.js +25 -24
  29. package/dist/es/components/fundamental/file-upload.js +17 -16
  30. package/dist/es/components/fundamental/icon.js +68 -147
  31. package/dist/es/components/fundamental/month-picker.js +21 -20
  32. package/dist/es/components/fundamental/pagination.js +44 -43
  33. package/dist/es/components/fundamental/select.js +40 -39
  34. package/dist/es/components/fundamental/separator.js +11 -10
  35. package/dist/es/components/fundamental/sidebar.js +85 -84
  36. package/dist/es/components/fundamental/toast.js +8 -7
  37. package/dist/es/components/product/app-frame.js +83 -82
  38. package/dist/es/components/product/attributes-list.js +61 -60
  39. package/dist/es/components/product/bookmarks.js +170 -169
  40. package/dist/es/components/product/data-table-settings-menu.js +38 -37
  41. package/dist/es/components/product/data-table.js +374 -373
  42. package/dist/es/components/product/filters.js +93 -92
  43. package/dist/es/components/product/fixture-status.js +89 -87
  44. package/dist/es/components/product/linked-chart.js +54 -53
  45. package/dist/es/components/product/view-mode-menu.js +176 -175
  46. package/dist/types/components/core-index.d.cts +1 -1
  47. package/dist/types/components/core-index.d.ts +1 -1
  48. package/dist/types/components/fundamental/custom-icons.d.ts +32 -36
  49. package/dist/types/components/fundamental/dropdown-menu.d.ts +2 -1
  50. package/dist/types/components/fundamental/icon.d.ts +1 -3
  51. package/dist/types/components/index.d.ts +2 -1
  52. package/dist/types/components/product/fixture-status.d.ts +2 -2
  53. package/dist/types/lib/index.d.cts +1 -1
  54. package/dist/types/lib/index.d.ts +1 -1
  55. package/package.json +1 -1
@@ -1,34 +1,35 @@
1
- import { jsxs as s, jsx as n, Fragment as v } from "react/jsx-runtime";
2
- import { forwardRef as ne, useState as V, useImperativeHandle as le, useEffect as T } from "react";
3
- import { Button as se } from "../fundamental/button.js";
4
- import { DropdownMenu as re, DropdownMenuTrigger as ie, DropdownMenuContent as te, DropdownMenuSeparator as F } from "../fundamental/dropdown-menu.js";
1
+ import { jsxs as s, jsx as l, Fragment as v } from "react/jsx-runtime";
2
+ import { forwardRef as se, useState as F, useImperativeHandle as ie, useEffect as L } from "react";
3
+ import { Button as te } from "../fundamental/button.js";
4
+ import { DropdownMenu as re, DropdownMenuTrigger as ae, DropdownMenuContent as oe, DropdownMenuSeparator as A } from "../fundamental/dropdown-menu.js";
5
5
  import { Select as d, SelectTrigger as h, SelectValue as u, SelectContent as m, SelectItem as a } from "../fundamental/select.js";
6
- import { Toggle as ae } from "../fundamental/toggle.js";
7
- import { Tabs as oe, TabsList as ce, TabsTrigger as y } from "../fundamental/tabs.js";
8
- import { Switch as de } from "../fundamental/switch.js";
9
- import { Label as he } from "../fundamental/label.js";
10
- import { Icon as w } from "../fundamental/icon.js";
11
- import { Input as ue } from "../fundamental/input.js";
12
- function me(i) {
13
- if (!i) return null;
6
+ import { Toggle as ce } from "../fundamental/toggle.js";
7
+ import { Tabs as de, TabsList as he, TabsTrigger as D } from "../fundamental/tabs.js";
8
+ import { Switch as ue } from "../fundamental/switch.js";
9
+ import { Label as me } from "../fundamental/label.js";
10
+ import { Icon as b } from "../fundamental/icon.js";
11
+ import { ArrowDownNarrowWide as y, ArrowDownWideNarrow as M } from "lucide-react";
12
+ import { Input as ge } from "../fundamental/input.js";
13
+ function pe(t) {
14
+ if (!t) return null;
14
15
  try {
15
- const c = localStorage.getItem(i);
16
+ const c = localStorage.getItem(t);
16
17
  return c ? JSON.parse(c) : null;
17
18
  } catch {
18
19
  return null;
19
20
  }
20
21
  }
21
- function ge(i, c) {
22
- if (i)
22
+ function fe(t, c) {
23
+ if (t)
23
24
  try {
24
- localStorage.setItem(i, JSON.stringify(c));
25
+ localStorage.setItem(t, JSON.stringify(c));
25
26
  } catch (g) {
26
27
  console.warn("Failed to save settings to localStorage:", g);
27
28
  }
28
29
  }
29
- function L(i = "table", c = []) {
30
+ function W(t = "table", c = []) {
30
31
  return {
31
- viewMode: i,
32
+ viewMode: t,
32
33
  table: {
33
34
  sortDirection: "asc",
34
35
  visibleColumns: c.map((g) => g.id)
@@ -43,11 +44,11 @@ function L(i = "table", c = []) {
43
44
  }
44
45
  };
45
46
  }
46
- function M(i) {
47
- if (i?.directionOptions)
48
- return i.directionOptions;
49
- if (i?.dataType)
50
- switch (i.dataType) {
47
+ function z(t) {
48
+ if (t?.directionOptions)
49
+ return t.directionOptions;
50
+ if (t?.dataType)
51
+ switch (t.dataType) {
51
52
  case "text":
52
53
  return { asc: "A to Z", desc: "Z to A" };
53
54
  case "number":
@@ -59,144 +60,144 @@ function M(i) {
59
60
  }
60
61
  return { asc: "Ascending", desc: "Descending" };
61
62
  }
62
- const pe = ne(
63
+ const ve = se(
63
64
  function({
64
65
  persistenceKey: c,
65
66
  defaultViewMode: g = "table",
66
- sortableColumns: C = [],
67
- groupableColumns: D = [],
67
+ sortableColumns: w = [],
68
+ groupableColumns: V = [],
68
69
  columns: p = [],
69
70
  columnsSortableColumns: x,
70
71
  columnsGroupableColumns: f,
71
- foldersSortableColumns: b,
72
+ foldersSortableColumns: C,
72
73
  align: O = "end",
73
74
  triggerClassName: R
74
75
  }, j) {
75
- const [r, t] = V(() => {
76
- const e = me(c);
77
- return e || L(g, p);
78
- }), [N, A] = V("");
79
- le(j, () => ({
80
- getSettings: () => r,
76
+ const [i, r] = F(() => {
77
+ const e = pe(c);
78
+ return e || W(g, p);
79
+ }), [N, I] = F("");
80
+ ie(j, () => ({
81
+ getSettings: () => i,
81
82
  reset: () => {
82
- t(L(g, p));
83
+ r(W(g, p));
83
84
  }
84
- })), T(() => {
85
- ge(c, r);
86
- }, [r, c]), T(() => {
87
- r.viewMode === "columns" && !r.columns.groupColumn && f && f.length > 0 && t((e) => ({
85
+ })), L(() => {
86
+ fe(c, i);
87
+ }, [i, c]), L(() => {
88
+ i.viewMode === "columns" && !i.columns.groupColumn && f && f.length > 0 && r((e) => ({
88
89
  ...e,
89
90
  columns: {
90
91
  ...e.columns,
91
92
  groupColumn: f[0].id
92
93
  }
93
94
  }));
94
- }, [r.viewMode, r.columns.groupColumn, f]);
95
- const W = C.length > 0, I = D.length > 0, P = p.length > 0, J = (x?.length ?? 0) > 0, S = (f?.length ?? 0) > 0, z = (b?.length ?? 0) > 0, Z = 1 + (z ? 1 : 0) + (S ? 1 : 0) > 1, B = N ? p.filter(
95
+ }, [i.viewMode, i.columns.groupColumn, f]);
96
+ const P = w.length > 0, J = V.length > 0, Z = p.length > 0, B = (x?.length ?? 0) > 0, S = (f?.length ?? 0) > 0, T = (C?.length ?? 0) > 0, E = 1 + (T ? 1 : 0) + (S ? 1 : 0) > 1, G = N ? p.filter(
96
97
  (e) => e.label.toLowerCase().includes(N.toLowerCase())
97
- ) : p, E = p.length >= 20, G = (e) => {
98
- t((l) => ({ ...l, viewMode: e }));
99
- }, H = (e) => {
100
- t((l) => ({
101
- ...l,
102
- table: { ...l.table, sortColumn: e }
98
+ ) : p, H = p.length >= 20, k = (e) => {
99
+ r((n) => ({ ...n, viewMode: e }));
100
+ }, q = (e) => {
101
+ r((n) => ({
102
+ ...n,
103
+ table: { ...n.table, sortColumn: e }
103
104
  }));
104
- }, k = (e) => {
105
- t((l) => ({
106
- ...l,
107
- table: { ...l.table, sortDirection: e }
105
+ }, Q = (e) => {
106
+ r((n) => ({
107
+ ...n,
108
+ table: { ...n.table, sortDirection: e }
108
109
  }));
109
- }, q = (e) => {
110
- t((l) => ({
111
- ...l,
112
- table: { ...l.table, groupColumn: e === "none" ? void 0 : e }
110
+ }, U = (e) => {
111
+ r((n) => ({
112
+ ...n,
113
+ table: { ...n.table, groupColumn: e === "none" ? void 0 : e }
113
114
  }));
114
- }, Q = (e, l) => {
115
- t((o) => ({
115
+ }, X = (e, n) => {
116
+ r((o) => ({
116
117
  ...o,
117
118
  table: {
118
119
  ...o.table,
119
- visibleColumns: l ? [...o.table.visibleColumns, e] : o.table.visibleColumns.filter((ee) => ee !== e)
120
+ visibleColumns: n ? [...o.table.visibleColumns, e] : o.table.visibleColumns.filter((ne) => ne !== e)
120
121
  }
121
122
  }));
122
- }, U = (e) => {
123
- t((l) => ({
124
- ...l,
125
- columns: { ...l.columns, sortColumn: e }
126
- }));
127
- }, X = (e) => {
128
- t((l) => ({
129
- ...l,
130
- columns: { ...l.columns, sortDirection: e }
131
- }));
132
123
  }, Y = (e) => {
133
- t((l) => ({
134
- ...l,
135
- columns: { ...l.columns, groupColumn: e === "none" ? void 0 : e }
124
+ r((n) => ({
125
+ ...n,
126
+ columns: { ...n.columns, sortColumn: e }
136
127
  }));
137
128
  }, _ = (e) => {
138
- t((l) => ({
139
- ...l,
140
- folders: { ...l.folders, sortColumn: e }
129
+ r((n) => ({
130
+ ...n,
131
+ columns: { ...n.columns, sortDirection: e }
141
132
  }));
142
133
  }, $ = (e) => {
143
- t((l) => ({
144
- ...l,
145
- folders: { ...l.folders, sortDirection: e }
134
+ r((n) => ({
135
+ ...n,
136
+ columns: { ...n.columns, groupColumn: e === "none" ? void 0 : e }
146
137
  }));
147
138
  }, K = (e) => {
148
- t((l) => ({
149
- ...l,
150
- folders: { ...l.folders, showFoldersFirst: e }
139
+ r((n) => ({
140
+ ...n,
141
+ folders: { ...n.folders, sortColumn: e }
142
+ }));
143
+ }, ee = (e) => {
144
+ r((n) => ({
145
+ ...n,
146
+ folders: { ...n.folders, sortDirection: e }
147
+ }));
148
+ }, le = (e) => {
149
+ r((n) => ({
150
+ ...n,
151
+ folders: { ...n.folders, showFoldersFirst: e }
151
152
  }));
152
153
  };
153
154
  return /* @__PURE__ */ s(re, { children: [
154
- /* @__PURE__ */ n(ie, { asChild: !0, children: /* @__PURE__ */ n(
155
- se,
155
+ /* @__PURE__ */ l(ae, { asChild: !0, children: /* @__PURE__ */ l(
156
+ te,
156
157
  {
157
158
  size: "m",
158
159
  icon: "settings",
159
160
  className: R
160
161
  }
161
162
  ) }),
162
- /* @__PURE__ */ s(te, { align: O, className: "w-72 max-w-[90vw]", children: [
163
- Z && /* @__PURE__ */ s(v, { children: [
163
+ /* @__PURE__ */ s(oe, { align: O, className: "w-72 max-w-[90vw]", children: [
164
+ E && /* @__PURE__ */ s(v, { children: [
164
165
  /* @__PURE__ */ s("div", { className: "px-3 pt-3 pb-2", children: [
165
- /* @__PURE__ */ n("h3", { className: "text-label-sm text-[var(--color-text-tertiary)] mb-2", children: "View mode" }),
166
- /* @__PURE__ */ n(oe, { value: r.viewMode, onValueChange: G, children: /* @__PURE__ */ s(ce, { variant: "pilled", size: "s", fullWidth: !0, children: [
167
- /* @__PURE__ */ n(y, { variant: "pilled", size: "s", fullWidth: !0, value: "table", children: "Table" }),
168
- z && /* @__PURE__ */ n(y, { variant: "pilled", size: "s", fullWidth: !0, value: "folders", children: "Folders" }),
169
- S && /* @__PURE__ */ n(y, { variant: "pilled", size: "s", fullWidth: !0, value: "columns", children: "Columns" })
166
+ /* @__PURE__ */ l("h3", { className: "text-label-sm text-[var(--color-text-tertiary)] mb-2", children: "View mode" }),
167
+ /* @__PURE__ */ l(de, { value: i.viewMode, onValueChange: k, children: /* @__PURE__ */ s(he, { variant: "pilled", size: "s", fullWidth: !0, children: [
168
+ /* @__PURE__ */ l(D, { variant: "pilled", size: "s", fullWidth: !0, value: "table", children: "Table" }),
169
+ T && /* @__PURE__ */ l(D, { variant: "pilled", size: "s", fullWidth: !0, value: "folders", children: "Folders" }),
170
+ S && /* @__PURE__ */ l(D, { variant: "pilled", size: "s", fullWidth: !0, value: "columns", children: "Columns" })
170
171
  ] }) })
171
172
  ] }),
172
- /* @__PURE__ */ n(F, {})
173
+ /* @__PURE__ */ l(A, {})
173
174
  ] }),
174
175
  /* @__PURE__ */ s("div", { className: "p-3", children: [
175
- r.viewMode === "table" && /* @__PURE__ */ s("div", { className: "space-y-4", children: [
176
- W && /* @__PURE__ */ s("div", { className: "space-y-2", children: [
177
- /* @__PURE__ */ n("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Sorting" }),
176
+ i.viewMode === "table" && /* @__PURE__ */ s("div", { className: "space-y-4", children: [
177
+ P && /* @__PURE__ */ s("div", { className: "space-y-2", children: [
178
+ /* @__PURE__ */ l("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Sorting" }),
178
179
  /* @__PURE__ */ s("div", { className: "flex flex-col gap-2", children: [
179
- /* @__PURE__ */ s(d, { value: r.table.sortColumn, onValueChange: H, children: [
180
- /* @__PURE__ */ n(h, { size: "s", children: /* @__PURE__ */ n(u, { placeholder: "Select column to sort" }) }),
181
- /* @__PURE__ */ n(m, { children: C.map((e) => /* @__PURE__ */ n(a, { value: e.id, children: e.label }, e.id)) })
180
+ /* @__PURE__ */ s(d, { value: i.table.sortColumn, onValueChange: q, children: [
181
+ /* @__PURE__ */ l(h, { size: "s", children: /* @__PURE__ */ l(u, { placeholder: "Select column to sort" }) }),
182
+ /* @__PURE__ */ l(m, { children: w.map((e) => /* @__PURE__ */ l(a, { value: e.id, children: e.label }, e.id)) })
182
183
  ] }),
183
- r.table.sortColumn && /* @__PURE__ */ s(
184
+ i.table.sortColumn && /* @__PURE__ */ s(
184
185
  d,
185
186
  {
186
- value: r.table.sortDirection,
187
- onValueChange: (e) => k(e),
187
+ value: i.table.sortDirection,
188
+ onValueChange: (e) => Q(e),
188
189
  children: [
189
- /* @__PURE__ */ n(h, { size: "s", children: /* @__PURE__ */ n(u, {}) }),
190
- /* @__PURE__ */ n(m, { children: (() => {
191
- const e = C.find((o) => o.id === r.table.sortColumn), l = M(e);
190
+ /* @__PURE__ */ l(h, { size: "s", children: /* @__PURE__ */ l(u, {}) }),
191
+ /* @__PURE__ */ l(m, { children: (() => {
192
+ const e = w.find((o) => o.id === i.table.sortColumn), n = z(e);
192
193
  return /* @__PURE__ */ s(v, { children: [
193
- /* @__PURE__ */ n(a, { value: "asc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
194
- /* @__PURE__ */ n(w, { name: "arrow-down-narrow-wide", size: "s" }),
195
- /* @__PURE__ */ n("span", { children: l.asc })
194
+ /* @__PURE__ */ l(a, { value: "asc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
195
+ /* @__PURE__ */ l(b, { name: y, size: "s" }),
196
+ /* @__PURE__ */ l("span", { children: n.asc })
196
197
  ] }) }),
197
- /* @__PURE__ */ n(a, { value: "desc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
198
- /* @__PURE__ */ n(w, { name: "arrow-down-wide-narrow", size: "s" }),
199
- /* @__PURE__ */ n("span", { children: l.desc })
198
+ /* @__PURE__ */ l(a, { value: "desc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
199
+ /* @__PURE__ */ l(b, { name: M, size: "s" }),
200
+ /* @__PURE__ */ l("span", { children: n.desc })
200
201
  ] }) })
201
202
  ] });
202
203
  })() })
@@ -205,38 +206,38 @@ const pe = ne(
205
206
  )
206
207
  ] })
207
208
  ] }),
208
- I && /* @__PURE__ */ s("div", { className: "space-y-2", children: [
209
- /* @__PURE__ */ n("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Grouping" }),
210
- /* @__PURE__ */ s(d, { value: r.table.groupColumn || "none", onValueChange: q, children: [
211
- /* @__PURE__ */ n(h, { size: "s", children: /* @__PURE__ */ n(u, { placeholder: "Select column to group by" }) }),
209
+ J && /* @__PURE__ */ s("div", { className: "space-y-2", children: [
210
+ /* @__PURE__ */ l("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Grouping" }),
211
+ /* @__PURE__ */ s(d, { value: i.table.groupColumn || "none", onValueChange: U, children: [
212
+ /* @__PURE__ */ l(h, { size: "s", children: /* @__PURE__ */ l(u, { placeholder: "Select column to group by" }) }),
212
213
  /* @__PURE__ */ s(m, { children: [
213
- /* @__PURE__ */ n(a, { value: "none", children: "None" }),
214
- D.map((e) => /* @__PURE__ */ n(a, { value: e.id, children: e.label }, e.id))
214
+ /* @__PURE__ */ l(a, { value: "none", children: "None" }),
215
+ V.map((e) => /* @__PURE__ */ l(a, { value: e.id, children: e.label }, e.id))
215
216
  ] })
216
217
  ] })
217
218
  ] }),
218
- P && /* @__PURE__ */ s("div", { className: "space-y-2", children: [
219
- /* @__PURE__ */ n("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Display columns" }),
220
- E && /* @__PURE__ */ n(
221
- ue,
219
+ Z && /* @__PURE__ */ s("div", { className: "space-y-2", children: [
220
+ /* @__PURE__ */ l("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Display columns" }),
221
+ H && /* @__PURE__ */ l(
222
+ ge,
222
223
  {
223
224
  type: "search",
224
225
  size: "s",
225
226
  placeholder: "Search columns...",
226
227
  value: N,
227
- onChange: (e) => A(e.target.value)
228
+ onChange: (e) => I(e.target.value)
228
229
  }
229
230
  ),
230
- /* @__PURE__ */ n("div", { className: "flex flex-wrap items-start justify-start gap-1 max-h-[190px] overflow-y-auto", children: B.map((e) => {
231
- const l = r.table.visibleColumns.includes(e.id);
232
- return /* @__PURE__ */ n(
233
- ae,
231
+ /* @__PURE__ */ l("div", { className: "flex flex-wrap items-start justify-start gap-1 max-h-[190px] overflow-y-auto", children: G.map((e) => {
232
+ const n = i.table.visibleColumns.includes(e.id);
233
+ return /* @__PURE__ */ l(
234
+ ce,
234
235
  {
235
236
  variant: "outline",
236
237
  size: "s",
237
- pressed: l,
238
+ pressed: n,
238
239
  onPressedChange: (o) => {
239
- Q(e.id, o);
240
+ X(e.id, o);
240
241
  },
241
242
  children: e.label
242
243
  },
@@ -245,37 +246,37 @@ const pe = ne(
245
246
  }) })
246
247
  ] })
247
248
  ] }),
248
- r.viewMode === "folders" && b && b.length > 0 && /* @__PURE__ */ n(v, { children: /* @__PURE__ */ s("div", { className: "space-y-2", children: [
249
- /* @__PURE__ */ n("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Sorting" }),
249
+ i.viewMode === "folders" && C && C.length > 0 && /* @__PURE__ */ l(v, { children: /* @__PURE__ */ s("div", { className: "space-y-2", children: [
250
+ /* @__PURE__ */ l("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Sorting" }),
250
251
  /* @__PURE__ */ s("div", { className: "flex flex-col gap-2", children: [
251
252
  /* @__PURE__ */ s(
252
253
  d,
253
254
  {
254
- value: r.folders.sortColumn,
255
- onValueChange: _,
255
+ value: i.folders.sortColumn,
256
+ onValueChange: K,
256
257
  children: [
257
- /* @__PURE__ */ n(h, { size: "s", children: /* @__PURE__ */ n(u, { placeholder: "Select column" }) }),
258
- /* @__PURE__ */ n(m, { children: b.map((e) => /* @__PURE__ */ n(a, { value: e.id, children: e.label }, e.id)) })
258
+ /* @__PURE__ */ l(h, { size: "s", children: /* @__PURE__ */ l(u, { placeholder: "Select column" }) }),
259
+ /* @__PURE__ */ l(m, { children: C.map((e) => /* @__PURE__ */ l(a, { value: e.id, children: e.label }, e.id)) })
259
260
  ]
260
261
  }
261
262
  ),
262
- r.folders.sortColumn && /* @__PURE__ */ s(
263
+ i.folders.sortColumn && /* @__PURE__ */ s(
263
264
  d,
264
265
  {
265
- value: r.folders.sortDirection,
266
- onValueChange: (e) => $(e),
266
+ value: i.folders.sortDirection,
267
+ onValueChange: (e) => ee(e),
267
268
  children: [
268
- /* @__PURE__ */ n(h, { size: "s", children: /* @__PURE__ */ n(u, {}) }),
269
- /* @__PURE__ */ n(m, { children: (() => {
270
- const e = b.find((o) => o.id === r.folders.sortColumn), l = M(e);
269
+ /* @__PURE__ */ l(h, { size: "s", children: /* @__PURE__ */ l(u, {}) }),
270
+ /* @__PURE__ */ l(m, { children: (() => {
271
+ const e = C.find((o) => o.id === i.folders.sortColumn), n = z(e);
271
272
  return /* @__PURE__ */ s(v, { children: [
272
- /* @__PURE__ */ n(a, { value: "asc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
273
- /* @__PURE__ */ n(w, { name: "arrow-down-narrow-wide", size: "s" }),
274
- /* @__PURE__ */ n("span", { children: l.asc })
273
+ /* @__PURE__ */ l(a, { value: "asc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
274
+ /* @__PURE__ */ l(b, { name: y, size: "s" }),
275
+ /* @__PURE__ */ l("span", { children: n.asc })
275
276
  ] }) }),
276
- /* @__PURE__ */ n(a, { value: "desc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
277
- /* @__PURE__ */ n(w, { name: "arrow-down-wide-narrow", size: "s" }),
278
- /* @__PURE__ */ n("span", { children: l.desc })
277
+ /* @__PURE__ */ l(a, { value: "desc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
278
+ /* @__PURE__ */ l(b, { name: M, size: "s" }),
279
+ /* @__PURE__ */ l("span", { children: n.desc })
279
280
  ] }) })
280
281
  ] });
281
282
  })() })
@@ -284,41 +285,41 @@ const pe = ne(
284
285
  )
285
286
  ] })
286
287
  ] }) }),
287
- r.viewMode === "columns" && /* @__PURE__ */ s("div", { className: "space-y-4", children: [
288
+ i.viewMode === "columns" && /* @__PURE__ */ s("div", { className: "space-y-4", children: [
288
289
  S && /* @__PURE__ */ s("div", { className: "space-y-2", children: [
289
- /* @__PURE__ */ n("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Grouping" }),
290
- /* @__PURE__ */ s(d, { value: r.columns.groupColumn || "none", onValueChange: Y, children: [
291
- /* @__PURE__ */ n(h, { size: "s", children: /* @__PURE__ */ n(u, { placeholder: "Select column to group by" }) }),
290
+ /* @__PURE__ */ l("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Grouping" }),
291
+ /* @__PURE__ */ s(d, { value: i.columns.groupColumn || "none", onValueChange: $, children: [
292
+ /* @__PURE__ */ l(h, { size: "s", children: /* @__PURE__ */ l(u, { placeholder: "Select column to group by" }) }),
292
293
  /* @__PURE__ */ s(m, { children: [
293
- /* @__PURE__ */ n(a, { value: "none", children: "None" }),
294
- f?.map((e) => /* @__PURE__ */ n(a, { value: e.id, children: e.label }, e.id))
294
+ /* @__PURE__ */ l(a, { value: "none", children: "None" }),
295
+ f?.map((e) => /* @__PURE__ */ l(a, { value: e.id, children: e.label }, e.id))
295
296
  ] })
296
297
  ] })
297
298
  ] }),
298
- J && /* @__PURE__ */ s("div", { className: "space-y-2", children: [
299
- /* @__PURE__ */ n("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Sorting" }),
299
+ B && /* @__PURE__ */ s("div", { className: "space-y-2", children: [
300
+ /* @__PURE__ */ l("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Sorting" }),
300
301
  /* @__PURE__ */ s("div", { className: "flex flex-col gap-2", children: [
301
- /* @__PURE__ */ s(d, { value: r.columns.sortColumn, onValueChange: U, children: [
302
- /* @__PURE__ */ n(h, { size: "s", children: /* @__PURE__ */ n(u, { placeholder: "Select column to sort" }) }),
303
- /* @__PURE__ */ n(m, { children: x?.map((e) => /* @__PURE__ */ n(a, { value: e.id, children: e.label }, e.id)) })
302
+ /* @__PURE__ */ s(d, { value: i.columns.sortColumn, onValueChange: Y, children: [
303
+ /* @__PURE__ */ l(h, { size: "s", children: /* @__PURE__ */ l(u, { placeholder: "Select column to sort" }) }),
304
+ /* @__PURE__ */ l(m, { children: x?.map((e) => /* @__PURE__ */ l(a, { value: e.id, children: e.label }, e.id)) })
304
305
  ] }),
305
- r.columns.sortColumn && /* @__PURE__ */ s(
306
+ i.columns.sortColumn && /* @__PURE__ */ s(
306
307
  d,
307
308
  {
308
- value: r.columns.sortDirection,
309
- onValueChange: (e) => X(e),
309
+ value: i.columns.sortDirection,
310
+ onValueChange: (e) => _(e),
310
311
  children: [
311
- /* @__PURE__ */ n(h, { size: "s", children: /* @__PURE__ */ n(u, {}) }),
312
- /* @__PURE__ */ n(m, { children: (() => {
313
- const e = x?.find((o) => o.id === r.columns.sortColumn), l = M(e);
312
+ /* @__PURE__ */ l(h, { size: "s", children: /* @__PURE__ */ l(u, {}) }),
313
+ /* @__PURE__ */ l(m, { children: (() => {
314
+ const e = x?.find((o) => o.id === i.columns.sortColumn), n = z(e);
314
315
  return /* @__PURE__ */ s(v, { children: [
315
- /* @__PURE__ */ n(a, { value: "asc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
316
- /* @__PURE__ */ n(w, { name: "arrow-down-narrow-wide", size: "s" }),
317
- /* @__PURE__ */ n("span", { children: l.asc })
316
+ /* @__PURE__ */ l(a, { value: "asc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
317
+ /* @__PURE__ */ l(b, { name: y, size: "s" }),
318
+ /* @__PURE__ */ l("span", { children: n.asc })
318
319
  ] }) }),
319
- /* @__PURE__ */ n(a, { value: "desc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
320
- /* @__PURE__ */ n(w, { name: "arrow-down-wide-narrow", size: "s" }),
321
- /* @__PURE__ */ n("span", { children: l.desc })
320
+ /* @__PURE__ */ l(a, { value: "desc", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
321
+ /* @__PURE__ */ l(b, { name: M, size: "s" }),
322
+ /* @__PURE__ */ l("span", { children: n.desc })
322
323
  ] }) })
323
324
  ] });
324
325
  })() })
@@ -329,16 +330,16 @@ const pe = ne(
329
330
  ] })
330
331
  ] })
331
332
  ] }),
332
- r.viewMode === "folders" && /* @__PURE__ */ s(v, { children: [
333
- /* @__PURE__ */ n(F, {}),
334
- /* @__PURE__ */ n("div", { className: "p-3", children: /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
335
- /* @__PURE__ */ n(he, { htmlFor: "folders-first", children: "Show folders first" }),
336
- /* @__PURE__ */ n(
337
- de,
333
+ i.viewMode === "folders" && /* @__PURE__ */ s(v, { children: [
334
+ /* @__PURE__ */ l(A, {}),
335
+ /* @__PURE__ */ l("div", { className: "p-3", children: /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
336
+ /* @__PURE__ */ l(me, { htmlFor: "folders-first", children: "Show folders first" }),
337
+ /* @__PURE__ */ l(
338
+ ue,
338
339
  {
339
340
  id: "folders-first",
340
- checked: r.folders.showFoldersFirst,
341
- onCheckedChange: K
341
+ checked: i.folders.showFoldersFirst,
342
+ onCheckedChange: le
342
343
  }
343
344
  )
344
345
  ] }) })
@@ -347,7 +348,7 @@ const pe = ne(
347
348
  ] });
348
349
  }
349
350
  );
350
- pe.displayName = "ViewModeMenu";
351
+ ve.displayName = "ViewModeMenu";
351
352
  export {
352
- pe as ViewModeMenu
353
+ ve as ViewModeMenu
353
354
  };
@@ -66,7 +66,7 @@ export type { TagProps, TagGroupProps, TagDotColor, TagIntent, TagVariant } from
66
66
  export { Tree } from './fundamental/tree.js';
67
67
  export type { TreeProps, TreeDataItem } from './fundamental/tree.js';
68
68
  export { Icon } from './fundamental/icon.js';
69
- export type { IconColor, IconSize, CustomIconName } from './fundamental/icon.js';
69
+ export type { IconColor, IconSize, IconComponent, IconType } from './fundamental/icon.js';
70
70
  export { Kbd, KbdGroup } from './fundamental/kbd.js';
71
71
  export type { KbdProps, KbdGroupProps } from './fundamental/kbd.js';
72
72
  export { MonthPicker } from './fundamental/month-picker.js';
@@ -66,7 +66,7 @@ export type { TagProps, TagGroupProps, TagDotColor, TagIntent, TagVariant } from
66
66
  export { Tree } from './fundamental/tree.js';
67
67
  export type { TreeProps, TreeDataItem } from './fundamental/tree.js';
68
68
  export { Icon } from './fundamental/icon.js';
69
- export type { IconColor, IconSize, CustomIconName } from './fundamental/icon.js';
69
+ export type { IconColor, IconSize, IconComponent, IconType } from './fundamental/icon.js';
70
70
  export { Kbd, KbdGroup } from './fundamental/kbd.js';
71
71
  export type { KbdProps, KbdGroupProps } from './fundamental/kbd.js';
72
72
  export { MonthPicker } from './fundamental/month-picker.js';
@@ -1,37 +1,33 @@
1
1
  import { default as React } from 'react';
2
- export declare const customIcons: {
3
- readonly "chart-marker-bar": import("react/jsx-runtime").JSX.Element;
4
- readonly "chart-marker-line": import("react/jsx-runtime").JSX.Element;
5
- readonly "chart-marker-dashline": import("react/jsx-runtime").JSX.Element;
6
- readonly "chart-marker-dashline2": import("react/jsx-runtime").JSX.Element;
7
- readonly "chart-marker-dotline": import("react/jsx-runtime").JSX.Element;
8
- readonly "chart-marker-dot": import("react/jsx-runtime").JSX.Element;
9
- readonly dot: import("react/jsx-runtime").JSX.Element;
10
- readonly "bubble-size": import("react/jsx-runtime").JSX.Element;
11
- readonly "broken-scale": import("react/jsx-runtime").JSX.Element;
12
- readonly "ship-unload": import("react/jsx-runtime").JSX.Element;
13
- readonly "ship-load": import("react/jsx-runtime").JSX.Element;
14
- readonly "star-full": import("react/jsx-runtime").JSX.Element;
15
- readonly "user-created-by": import("react/jsx-runtime").JSX.Element;
16
- readonly "user-owner": import("react/jsx-runtime").JSX.Element;
17
- readonly "user-charterer": import("react/jsx-runtime").JSX.Element;
18
- readonly "user-broker": import("react/jsx-runtime").JSX.Element;
19
- readonly approved: import("react/jsx-runtime").JSX.Element;
20
- readonly "pending-approval": import("react/jsx-runtime").JSX.Element;
21
- readonly "info-filled": import("react/jsx-runtime").JSX.Element;
22
- readonly "square-diamond": import("react/jsx-runtime").JSX.Element;
23
- readonly "square-corner-check": import("react/jsx-runtime").JSX.Element;
24
- readonly "square-corner-plus": import("react/jsx-runtime").JSX.Element;
25
- readonly "square-dashed-corner-plus": import("react/jsx-runtime").JSX.Element;
26
- readonly "square-dashed-chart-gantt": import("react/jsx-runtime").JSX.Element;
27
- readonly "circle-dot-2": import("react/jsx-runtime").JSX.Element;
28
- readonly "circle-diamond": import("react/jsx-runtime").JSX.Element;
29
- readonly "circle-check-2": import("react/jsx-runtime").JSX.Element;
30
- readonly "circle-dashed-arrow-up": import("react/jsx-runtime").JSX.Element;
31
- readonly "circle-dashed-arrow-down": import("react/jsx-runtime").JSX.Element;
32
- readonly "hexagon-minus": import("react/jsx-runtime").JSX.Element;
33
- readonly "hexagon-asterisk": import("react/jsx-runtime").JSX.Element;
34
- readonly "hexagon-dashed": import("react/jsx-runtime").JSX.Element;
35
- };
36
- export type CustomIconName = keyof typeof customIcons;
37
- export declare function addCustomIcon(name: string, iconElement: React.ReactNode): void;
2
+ export declare const ChartMarkerBar: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
+ export declare const ChartMarkerLine: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
4
+ export declare const ChartMarkerDashline: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
5
+ export declare const ChartMarkerDashline2: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
6
+ export declare const ChartMarkerDotline: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
7
+ export declare const ChartMarkerDot: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
8
+ export declare const Dot: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
9
+ export declare const BubbleSize: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
10
+ export declare const BrokenScale: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
11
+ export declare const ShipUnload: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
12
+ export declare const ShipLoad: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
13
+ export declare const StarFull: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
14
+ export declare const UserCreatedBy: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
15
+ export declare const UserOwner: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
16
+ export declare const UserCharterer: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
17
+ export declare const UserBroker: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
18
+ export declare const Approved: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
19
+ export declare const PendingApproval: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
20
+ export declare const InfoFilled: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
21
+ export declare const SquareDiamond: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
22
+ export declare const SquareCornerCheck: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
23
+ export declare const SquareCornerPlus: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
24
+ export declare const SquareDashedCornerPlus: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
25
+ export declare const SquareDashedChartGantt: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
26
+ export declare const CircleDot2: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
27
+ export declare const CircleDiamond: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
28
+ export declare const CircleCheck2: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
29
+ export declare const CircleDashedArrowUp: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
30
+ export declare const CircleDashedArrowDown: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
31
+ export declare const HexagonMinus: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
32
+ export declare const HexagonAsterisk: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
33
+ export declare const HexagonDashed: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;