@rafal.lemieszewski/tide-ui 0.87.1 → 0.87.3
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.
- package/dist/cjs/components/fundamental/command.cjs +1 -1
- package/dist/cjs/components/fundamental/icon.cjs +2 -2
- package/dist/cjs/components/fundamental/sheet.cjs +1 -1
- package/dist/cjs/components/product/app-frame.cjs +1 -1
- package/dist/cjs/components/product/bookmarks.cjs +1 -1
- package/dist/cjs/components/product/data-table-settings-menu.cjs +1 -1
- package/dist/cjs/components/product/view-mode-menu.cjs +1 -1
- package/dist/es/components/fundamental/command.js +24 -23
- package/dist/es/components/fundamental/icon.js +60 -46
- package/dist/es/components/fundamental/sheet.js +27 -26
- package/dist/es/components/product/app-frame.js +38 -38
- package/dist/es/components/product/bookmarks.js +50 -50
- package/dist/es/components/product/data-table-settings-menu.js +8 -8
- package/dist/es/components/product/view-mode-menu.js +11 -11
- package/dist/types/components/fundamental/custom-icons.d.cts +33 -0
- package/dist/types/components/fundamental/dropdown-menu.d.ts +3 -3
- package/package.json +11 -1
|
@@ -2,10 +2,10 @@ import { jsxs as s, jsx as e, Fragment as O } from "react/jsx-runtime";
|
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { cn as X } from "../../lib/utils.js";
|
|
4
4
|
import { Button as T } from "../fundamental/button.js";
|
|
5
|
-
import { ButtonGroup as
|
|
5
|
+
import { ButtonGroup as Re } from "../fundamental/button-group.js";
|
|
6
6
|
import { Icon as w } from "../fundamental/icon.js";
|
|
7
|
-
import { Bookmark as re, MoreHorizontal as
|
|
8
|
-
import { Separator as
|
|
7
|
+
import { Bookmark as re, MoreHorizontal as me, Pencil as he, Trash2 as pe, ChevronDown as fe, Star as ve, Check as Me } from "lucide-react";
|
|
8
|
+
import { Separator as ge } from "../fundamental/separator.js";
|
|
9
9
|
import { Select as Oe, SelectTrigger as Te, SelectContent as Ee, SelectItem as ue, SelectSeparator as Ae, SelectGroup as Pe, SelectLabel as Ue } from "../fundamental/select.js";
|
|
10
10
|
import { DropdownMenu as oe, DropdownMenuTrigger as le, DropdownMenuContent as ie, DropdownMenuItem as L, DropdownMenuSeparator as Ve } from "../fundamental/dropdown-menu.js";
|
|
11
11
|
import { Popover as We, PopoverTrigger as Ie, PopoverContent as Le } from "../fundamental/popover.js";
|
|
@@ -13,7 +13,7 @@ import { Dialog as Fe, DialogContent as je, DialogHeader as $e, DialogTitle as H
|
|
|
13
13
|
import { Input as _e } from "../fundamental/input.js";
|
|
14
14
|
import { Label as qe } from "../fundamental/label.js";
|
|
15
15
|
import { Badge as Je } from "../fundamental/badge.js";
|
|
16
|
-
import { Skeleton as
|
|
16
|
+
import { Skeleton as be } from "../fundamental/skeleton.js";
|
|
17
17
|
const se = r.createContext(null);
|
|
18
18
|
function J() {
|
|
19
19
|
const t = r.useContext(se);
|
|
@@ -83,7 +83,7 @@ function Qe({
|
|
|
83
83
|
() => C.find((d) => d.id === u),
|
|
84
84
|
[C, u]
|
|
85
85
|
), h = b?.type === "system";
|
|
86
|
-
return /* @__PURE__ */ s(
|
|
86
|
+
return /* @__PURE__ */ s(Re, { children: [
|
|
87
87
|
/* @__PURE__ */ s(
|
|
88
88
|
Oe,
|
|
89
89
|
{
|
|
@@ -123,7 +123,7 @@ function Qe({
|
|
|
123
123
|
d.isDefault && /* @__PURE__ */ e(
|
|
124
124
|
w,
|
|
125
125
|
{
|
|
126
|
-
name:
|
|
126
|
+
name: ve,
|
|
127
127
|
className: "h-[var(--size-2xs)] w-[var(--size-2xs)] flex-shrink-0 text-[var(--color-icon-warning-bold)]"
|
|
128
128
|
}
|
|
129
129
|
)
|
|
@@ -137,7 +137,7 @@ function Qe({
|
|
|
137
137
|
/* @__PURE__ */ e(le, { asChild: !0, children: /* @__PURE__ */ e(
|
|
138
138
|
T,
|
|
139
139
|
{
|
|
140
|
-
icon:
|
|
140
|
+
icon: me,
|
|
141
141
|
"aria-label": "Bookmark options",
|
|
142
142
|
className: "!rounded-l-none rounded-r-md !border-l !border-l-[var(--color-border-action-outline)] focus:ring-0 data-[state=open]:ring-0"
|
|
143
143
|
}
|
|
@@ -155,7 +155,7 @@ function Qe({
|
|
|
155
155
|
},
|
|
156
156
|
disabled: h,
|
|
157
157
|
children: [
|
|
158
|
-
/* @__PURE__ */ e(w, { name:
|
|
158
|
+
/* @__PURE__ */ e(w, { name: he, className: "mr-2 h-4 w-4" }),
|
|
159
159
|
"Rename"
|
|
160
160
|
]
|
|
161
161
|
}
|
|
@@ -173,7 +173,7 @@ function Qe({
|
|
|
173
173
|
disabled: h,
|
|
174
174
|
destructive: !0,
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */ e(w, { name:
|
|
176
|
+
/* @__PURE__ */ e(w, { name: pe, className: "mr-2 h-4 w-4" }),
|
|
177
177
|
"Delete"
|
|
178
178
|
]
|
|
179
179
|
}
|
|
@@ -210,7 +210,7 @@ function Xe({ onUpdate: t, onCreate: o }) {
|
|
|
210
210
|
/* @__PURE__ */ e(
|
|
211
211
|
w,
|
|
212
212
|
{
|
|
213
|
-
name:
|
|
213
|
+
name: fe,
|
|
214
214
|
className: "h-[var(--size-2xs)] w-[var(--size-2xs)]"
|
|
215
215
|
}
|
|
216
216
|
)
|
|
@@ -223,7 +223,7 @@ function Xe({ onUpdate: t, onCreate: o }) {
|
|
|
223
223
|
] })
|
|
224
224
|
] });
|
|
225
225
|
}
|
|
226
|
-
const
|
|
226
|
+
const xe = /* @__PURE__ */ r.memo(
|
|
227
227
|
/* @__PURE__ */ r.forwardRef(
|
|
228
228
|
({
|
|
229
229
|
bookmark: t,
|
|
@@ -316,7 +316,7 @@ const be = /* @__PURE__ */ r.memo(
|
|
|
316
316
|
children: /* @__PURE__ */ e(
|
|
317
317
|
w,
|
|
318
318
|
{
|
|
319
|
-
name:
|
|
319
|
+
name: me,
|
|
320
320
|
className: "h-[var(--size-2xs)] w-[var(--size-2xs)]"
|
|
321
321
|
}
|
|
322
322
|
)
|
|
@@ -330,7 +330,7 @@ const be = /* @__PURE__ */ r.memo(
|
|
|
330
330
|
a.stopPropagation(), P();
|
|
331
331
|
},
|
|
332
332
|
children: [
|
|
333
|
-
/* @__PURE__ */ e(w, { name:
|
|
333
|
+
/* @__PURE__ */ e(w, { name: he, className: "mr-2 h-4 w-4" }),
|
|
334
334
|
"Rename"
|
|
335
335
|
]
|
|
336
336
|
}
|
|
@@ -343,7 +343,7 @@ const be = /* @__PURE__ */ r.memo(
|
|
|
343
343
|
},
|
|
344
344
|
destructive: !0,
|
|
345
345
|
children: [
|
|
346
|
-
/* @__PURE__ */ e(w, { name:
|
|
346
|
+
/* @__PURE__ */ e(w, { name: pe, className: "mr-2 h-4 w-4" }),
|
|
347
347
|
"Delete"
|
|
348
348
|
]
|
|
349
349
|
}
|
|
@@ -351,14 +351,14 @@ const be = /* @__PURE__ */ r.memo(
|
|
|
351
351
|
] })
|
|
352
352
|
] })
|
|
353
353
|
] }),
|
|
354
|
-
/* @__PURE__ */ e("div", { className: "text-heading-lg text-[var(--color-text-primary)]", children: t.isLoadingCount ? /* @__PURE__ */ e(
|
|
354
|
+
/* @__PURE__ */ e("div", { className: "text-heading-lg text-[var(--color-text-primary)]", children: t.isLoadingCount ? /* @__PURE__ */ e(be, { height: 32, width: 40 }) : t.count ?? " " })
|
|
355
355
|
]
|
|
356
356
|
}
|
|
357
357
|
);
|
|
358
358
|
}
|
|
359
359
|
)
|
|
360
360
|
);
|
|
361
|
-
|
|
361
|
+
xe.displayName = "BookmarkTab";
|
|
362
362
|
function Ye({
|
|
363
363
|
bookmarks: t,
|
|
364
364
|
systemBookmarks: o,
|
|
@@ -397,11 +397,11 @@ function Ye({
|
|
|
397
397
|
});
|
|
398
398
|
const U = 8, i = 32, z = 52;
|
|
399
399
|
let q = 0, R = 0, N = !1;
|
|
400
|
-
const ce = o.length,
|
|
400
|
+
const ce = o.length, Be = t.length > 0, ze = ce > 0 && Be ? ce : -1;
|
|
401
401
|
for (let V = 0; V < f.length; V++) {
|
|
402
402
|
const ne = f[V], de = D.get(ne.id);
|
|
403
403
|
if (de === void 0) continue;
|
|
404
|
-
V ===
|
|
404
|
+
V === ze && (N = !0, q += i + U);
|
|
405
405
|
const ae = q + de + (R > 0 || N ? U : 0);
|
|
406
406
|
if ((V < f.length - 1 ? ae + U + z : ae) > M)
|
|
407
407
|
break;
|
|
@@ -478,7 +478,7 @@ function Ye({
|
|
|
478
478
|
const l = _.has(n.id), p = l ? a.findIndex((D) => D.id === n.id) : -1, M = l && p === K;
|
|
479
479
|
return /* @__PURE__ */ s(r.Fragment, { children: [
|
|
480
480
|
/* @__PURE__ */ e(
|
|
481
|
-
|
|
481
|
+
xe,
|
|
482
482
|
{
|
|
483
483
|
ref: (D) => {
|
|
484
484
|
D ? k.current.set(n.id, D) : k.current.delete(n.id);
|
|
@@ -499,7 +499,7 @@ function Ye({
|
|
|
499
499
|
}
|
|
500
500
|
),
|
|
501
501
|
M && /* @__PURE__ */ e(
|
|
502
|
-
|
|
502
|
+
ge,
|
|
503
503
|
{
|
|
504
504
|
type: "line",
|
|
505
505
|
layout: "horizontal",
|
|
@@ -524,7 +524,7 @@ function Ye({
|
|
|
524
524
|
children: /* @__PURE__ */ e(
|
|
525
525
|
w,
|
|
526
526
|
{
|
|
527
|
-
name:
|
|
527
|
+
name: fe,
|
|
528
528
|
className: "h-[var(--size-2xs)] w-[var(--size-2xs)]"
|
|
529
529
|
}
|
|
530
530
|
)
|
|
@@ -563,12 +563,12 @@ function Ye({
|
|
|
563
563
|
!l && /* @__PURE__ */ e("div", { className: "w-[var(--size-2xs)]", "aria-hidden": "true" }),
|
|
564
564
|
/* @__PURE__ */ s("div", { className: "flex flex-1 items-center gap-[var(--space-xs)]", children: [
|
|
565
565
|
/* @__PURE__ */ e("span", { className: "truncate", children: n.name }),
|
|
566
|
-
(n.count !== void 0 || n.isLoadingCount) && /* @__PURE__ */ e(Je, { size: "s", intent: "neutral", appearance: "subtle", children: n.isLoadingCount ? /* @__PURE__ */ e(
|
|
566
|
+
(n.count !== void 0 || n.isLoadingCount) && /* @__PURE__ */ e(Je, { size: "s", intent: "neutral", appearance: "subtle", children: n.isLoadingCount ? /* @__PURE__ */ e(be, { height: 16, width: 24 }) : n.count })
|
|
567
567
|
] }),
|
|
568
568
|
n.isDefault && /* @__PURE__ */ e(
|
|
569
569
|
w,
|
|
570
570
|
{
|
|
571
|
-
name:
|
|
571
|
+
name: ve,
|
|
572
572
|
className: "h-[var(--size-2xs)] w-[var(--size-2xs)] text-[var(--color-icon-warning-bold)]",
|
|
573
573
|
"aria-hidden": "true"
|
|
574
574
|
}
|
|
@@ -593,20 +593,20 @@ function Ye({
|
|
|
593
593
|
}
|
|
594
594
|
);
|
|
595
595
|
}
|
|
596
|
-
function xe({ children: t }) {
|
|
597
|
-
return /* @__PURE__ */ e(O, { children: t });
|
|
598
|
-
}
|
|
599
596
|
function we({ children: t }) {
|
|
600
597
|
return /* @__PURE__ */ e(O, { children: t });
|
|
601
598
|
}
|
|
602
599
|
function Ce({ children: t }) {
|
|
603
600
|
return /* @__PURE__ */ e(O, { children: t });
|
|
604
601
|
}
|
|
605
|
-
function ke() {
|
|
602
|
+
function ke({ children: t }) {
|
|
603
|
+
return /* @__PURE__ */ e(O, { children: t });
|
|
604
|
+
}
|
|
605
|
+
function De() {
|
|
606
606
|
const { isDirty: t, handleRevert: o } = J();
|
|
607
607
|
return t ? /* @__PURE__ */ e(T, { variant: "ghost", onClick: o, className: "h-[var(--size-m)]", children: "Revert changes" }) : null;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Ne() {
|
|
610
610
|
const { isDirty: t, isSystemBookmark: o, openCreateDialog: u } = J();
|
|
611
611
|
return !t || !o ? null : /* @__PURE__ */ e(T, { variant: "ghost", onClick: u, className: "h-[var(--size-m)]", children: "Create bookmark" });
|
|
612
612
|
}
|
|
@@ -614,11 +614,11 @@ function Ze() {
|
|
|
614
614
|
const { isDirty: t, isSystemBookmark: o, handleUpdate: u } = J();
|
|
615
615
|
return !t || o ? null : /* @__PURE__ */ e(T, { variant: "ghost", onClick: u, className: "h-[var(--size-m)]", children: "Update bookmark" });
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Se() {
|
|
618
618
|
const { isDirty: t, isSystemBookmark: o, handleRevert: u } = J();
|
|
619
619
|
return !t || !o ? null : /* @__PURE__ */ e(T, { variant: "ghost", onClick: u, className: "h-[var(--size-m)]", children: "Reset" });
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function ye() {
|
|
622
622
|
const { isDirty: t, isSystemBookmark: o, handleUpdate: u, openCreateDialog: c } = J();
|
|
623
623
|
return !t || o ? null : /* @__PURE__ */ e(
|
|
624
624
|
Xe,
|
|
@@ -631,13 +631,13 @@ function Se() {
|
|
|
631
631
|
function en() {
|
|
632
632
|
const { isDirty: t, isSystemBookmark: o } = J();
|
|
633
633
|
return t ? /* @__PURE__ */ s(O, { children: [
|
|
634
|
-
/* @__PURE__ */ e(
|
|
634
|
+
/* @__PURE__ */ e(ge, { type: "dot", layout: "horizontal" }),
|
|
635
635
|
o ? /* @__PURE__ */ s(O, { children: [
|
|
636
|
-
/* @__PURE__ */ e(
|
|
637
|
-
/* @__PURE__ */ e(
|
|
636
|
+
/* @__PURE__ */ e(Se, {}),
|
|
637
|
+
/* @__PURE__ */ e(Ne, {})
|
|
638
638
|
] }) : /* @__PURE__ */ s(O, { children: [
|
|
639
|
-
/* @__PURE__ */ e(
|
|
640
|
-
/* @__PURE__ */ e(
|
|
639
|
+
/* @__PURE__ */ e(De, {}),
|
|
640
|
+
/* @__PURE__ */ e(ye, {})
|
|
641
641
|
] })
|
|
642
642
|
] }) : null;
|
|
643
643
|
}
|
|
@@ -694,7 +694,7 @@ function E({
|
|
|
694
694
|
let i = null, z = null, q = null;
|
|
695
695
|
const R = [];
|
|
696
696
|
return r.Children.forEach(g, (N) => {
|
|
697
|
-
r.isValidElement(N) ? N.type ===
|
|
697
|
+
r.isValidElement(N) ? N.type === we ? i = N.props.children : N.type === Ce ? z = N.props.children : N.type === ke ? q = N.props.children : R.push(N) : R.push(N);
|
|
698
698
|
}), !i && R.length > 0 && (i = R), {
|
|
699
699
|
contentSlot: i,
|
|
700
700
|
actionsSlot: z,
|
|
@@ -810,25 +810,25 @@ function E({
|
|
|
810
810
|
)
|
|
811
811
|
] });
|
|
812
812
|
}
|
|
813
|
-
E.Content =
|
|
814
|
-
E.Actions =
|
|
815
|
-
E.Settings =
|
|
813
|
+
E.Content = we;
|
|
814
|
+
E.Actions = Ce;
|
|
815
|
+
E.Settings = ke;
|
|
816
816
|
E.DefaultActions = en;
|
|
817
|
-
E.RevertButton =
|
|
818
|
-
E.CreateButton =
|
|
817
|
+
E.RevertButton = De;
|
|
818
|
+
E.CreateButton = Ne;
|
|
819
819
|
E.SaveButton = Ze;
|
|
820
|
-
E.ResetButton =
|
|
821
|
-
E.SaveDropdown =
|
|
820
|
+
E.ResetButton = Se;
|
|
821
|
+
E.SaveDropdown = ye;
|
|
822
822
|
export {
|
|
823
823
|
E as Bookmarks,
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
824
|
+
Ce as BookmarksActions,
|
|
825
|
+
we as BookmarksContent,
|
|
826
|
+
Ne as BookmarksCreateButton,
|
|
827
827
|
en as BookmarksDefaultActions,
|
|
828
|
-
|
|
829
|
-
|
|
828
|
+
Se as BookmarksResetButton,
|
|
829
|
+
De as BookmarksRevertButton,
|
|
830
830
|
Ze as BookmarksSaveButton,
|
|
831
|
-
|
|
832
|
-
|
|
831
|
+
ye as BookmarksSaveDropdown,
|
|
832
|
+
ke as BookmarksSettings,
|
|
833
833
|
J as useBookmarksActions
|
|
834
834
|
};
|
|
@@ -5,8 +5,8 @@ import { DropdownMenu as X, DropdownMenuTrigger as Y, DropdownMenuContent as _,
|
|
|
5
5
|
import { Select as v, SelectTrigger as b, SelectValue as w, SelectContent as x, SelectItem as o } from "../fundamental/select.js";
|
|
6
6
|
import { Toggle as ne } from "../fundamental/toggle.js";
|
|
7
7
|
import { Icon as R } from "../fundamental/icon.js";
|
|
8
|
-
import {
|
|
9
|
-
import { Input as
|
|
8
|
+
import { Settings as ie, ArrowDownNarrowWide as ae, ArrowDownWideNarrow as re } from "lucide-react";
|
|
9
|
+
import { Input as se } from "../fundamental/input.js";
|
|
10
10
|
function j(a) {
|
|
11
11
|
if (a?.directionOptions)
|
|
12
12
|
return a.directionOptions;
|
|
@@ -23,7 +23,7 @@ function j(a) {
|
|
|
23
23
|
}
|
|
24
24
|
return { asc: "Ascending", desc: "Descending" };
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function me({
|
|
27
27
|
sortableColumns: a,
|
|
28
28
|
selectedSortColumn: l,
|
|
29
29
|
sortDirection: C = "asc",
|
|
@@ -73,7 +73,7 @@ function ge({
|
|
|
73
73
|
U,
|
|
74
74
|
{
|
|
75
75
|
size: "m",
|
|
76
|
-
icon:
|
|
76
|
+
icon: ie,
|
|
77
77
|
"aria-label": "Table settings",
|
|
78
78
|
className: k
|
|
79
79
|
}
|
|
@@ -96,11 +96,11 @@ function ge({
|
|
|
96
96
|
/* @__PURE__ */ n(b, { size: "s", children: /* @__PURE__ */ n(w, {}) }),
|
|
97
97
|
/* @__PURE__ */ i(x, { children: [
|
|
98
98
|
/* @__PURE__ */ n(o, { value: "asc", children: /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
99
|
-
/* @__PURE__ */ n(R, { name:
|
|
99
|
+
/* @__PURE__ */ n(R, { name: ae, size: "s" }),
|
|
100
100
|
/* @__PURE__ */ n("span", { children: H.asc })
|
|
101
101
|
] }) }),
|
|
102
102
|
/* @__PURE__ */ n(o, { value: "desc", children: /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
103
|
-
/* @__PURE__ */ n(R, { name:
|
|
103
|
+
/* @__PURE__ */ n(R, { name: re, size: "s" }),
|
|
104
104
|
/* @__PURE__ */ n("span", { children: H.desc })
|
|
105
105
|
] }) })
|
|
106
106
|
] })
|
|
@@ -124,7 +124,7 @@ function ge({
|
|
|
124
124
|
$ && /* @__PURE__ */ n("div", { className: "p-3", children: /* @__PURE__ */ i("div", { className: "space-y-2", role: "group", "aria-labelledby": T, children: [
|
|
125
125
|
/* @__PURE__ */ n("h4", { id: T, className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Display columns" }),
|
|
126
126
|
K && /* @__PURE__ */ n(
|
|
127
|
-
|
|
127
|
+
se,
|
|
128
128
|
{
|
|
129
129
|
type: "search",
|
|
130
130
|
size: "s",
|
|
@@ -166,5 +166,5 @@ function ge({
|
|
|
166
166
|
] });
|
|
167
167
|
}
|
|
168
168
|
export {
|
|
169
|
-
|
|
169
|
+
me as DataTableSettingsMenu
|
|
170
170
|
};
|
|
@@ -8,9 +8,9 @@ import { Tabs as de, TabsList as he, TabsTrigger as D } from "../fundamental/tab
|
|
|
8
8
|
import { Switch as ue } from "../fundamental/switch.js";
|
|
9
9
|
import { Label as me } from "../fundamental/label.js";
|
|
10
10
|
import { Icon as b } from "../fundamental/icon.js";
|
|
11
|
-
import { ArrowDownNarrowWide as y, ArrowDownWideNarrow as M } from "lucide-react";
|
|
12
|
-
import { Input as
|
|
13
|
-
function
|
|
11
|
+
import { Settings as ge, ArrowDownNarrowWide as y, ArrowDownWideNarrow as M } from "lucide-react";
|
|
12
|
+
import { Input as pe } from "../fundamental/input.js";
|
|
13
|
+
function fe(t) {
|
|
14
14
|
if (!t) return null;
|
|
15
15
|
try {
|
|
16
16
|
const c = localStorage.getItem(t);
|
|
@@ -19,7 +19,7 @@ function pe(t) {
|
|
|
19
19
|
return null;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ve(t, c) {
|
|
23
23
|
if (t)
|
|
24
24
|
try {
|
|
25
25
|
localStorage.setItem(t, JSON.stringify(c));
|
|
@@ -60,7 +60,7 @@ function z(t) {
|
|
|
60
60
|
}
|
|
61
61
|
return { asc: "Ascending", desc: "Descending" };
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const be = se(
|
|
64
64
|
function({
|
|
65
65
|
persistenceKey: c,
|
|
66
66
|
defaultViewMode: g = "table",
|
|
@@ -74,7 +74,7 @@ const ve = se(
|
|
|
74
74
|
triggerClassName: R
|
|
75
75
|
}, j) {
|
|
76
76
|
const [i, r] = F(() => {
|
|
77
|
-
const e =
|
|
77
|
+
const e = fe(c);
|
|
78
78
|
return e || W(g, p);
|
|
79
79
|
}), [N, I] = F("");
|
|
80
80
|
ie(j, () => ({
|
|
@@ -83,7 +83,7 @@ const ve = se(
|
|
|
83
83
|
r(W(g, p));
|
|
84
84
|
}
|
|
85
85
|
})), L(() => {
|
|
86
|
-
|
|
86
|
+
ve(c, i);
|
|
87
87
|
}, [i, c]), L(() => {
|
|
88
88
|
i.viewMode === "columns" && !i.columns.groupColumn && f && f.length > 0 && r((e) => ({
|
|
89
89
|
...e,
|
|
@@ -156,7 +156,7 @@ const ve = se(
|
|
|
156
156
|
te,
|
|
157
157
|
{
|
|
158
158
|
size: "m",
|
|
159
|
-
icon:
|
|
159
|
+
icon: ge,
|
|
160
160
|
className: R
|
|
161
161
|
}
|
|
162
162
|
) }),
|
|
@@ -219,7 +219,7 @@ const ve = se(
|
|
|
219
219
|
Z && /* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
220
220
|
/* @__PURE__ */ l("h4", { className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Display columns" }),
|
|
221
221
|
H && /* @__PURE__ */ l(
|
|
222
|
-
|
|
222
|
+
pe,
|
|
223
223
|
{
|
|
224
224
|
type: "search",
|
|
225
225
|
size: "s",
|
|
@@ -348,7 +348,7 @@ const ve = se(
|
|
|
348
348
|
] });
|
|
349
349
|
}
|
|
350
350
|
);
|
|
351
|
-
|
|
351
|
+
be.displayName = "ViewModeMenu";
|
|
352
352
|
export {
|
|
353
|
-
|
|
353
|
+
be as ViewModeMenu
|
|
354
354
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
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>>;
|
|
@@ -38,7 +38,7 @@ declare const ResponsiveDropdownMenuTrigger: React.ForwardRefExoticComponent<Res
|
|
|
38
38
|
interface ResponsiveDropdownMenuItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {
|
|
39
39
|
inset?: boolean;
|
|
40
40
|
destructive?: boolean;
|
|
41
|
-
icon?: string;
|
|
41
|
+
icon?: string | IconComponent;
|
|
42
42
|
autoClose?: boolean;
|
|
43
43
|
}
|
|
44
44
|
declare const ResponsiveDropdownMenuItem: React.ForwardRefExoticComponent<ResponsiveDropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -49,7 +49,7 @@ interface ResponsiveDropdownMenuCheckboxItemProps extends React.ComponentPropsWi
|
|
|
49
49
|
declare const ResponsiveDropdownMenuCheckboxItem: React.ForwardRefExoticComponent<ResponsiveDropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
50
50
|
interface ResponsiveDropdownMenuRadioItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> {
|
|
51
51
|
value: string;
|
|
52
|
-
icon?: string;
|
|
52
|
+
icon?: string | IconComponent;
|
|
53
53
|
autoClose?: boolean;
|
|
54
54
|
}
|
|
55
55
|
declare const ResponsiveDropdownMenuRadioItem: React.ForwardRefExoticComponent<ResponsiveDropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -70,7 +70,7 @@ interface ResponsiveDropdownMenuSubProps {
|
|
|
70
70
|
declare const ResponsiveDropdownMenuSub: ({ children }: ResponsiveDropdownMenuSubProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
71
|
interface ResponsiveDropdownMenuSubTriggerProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> {
|
|
72
72
|
inset?: boolean;
|
|
73
|
-
icon?: string;
|
|
73
|
+
icon?: string | IconComponent;
|
|
74
74
|
}
|
|
75
75
|
declare const ResponsiveDropdownMenuSubTrigger: React.ForwardRefExoticComponent<ResponsiveDropdownMenuSubTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
76
76
|
interface ResponsiveDropdownMenuSubContentProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rafal.lemieszewski/tide-ui",
|
|
3
|
-
"version": "0.87.
|
|
3
|
+
"version": "0.87.3",
|
|
4
4
|
"description": "A comprehensive React component library built with Tailwind CSS and Radix UI primitives",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/lib/index.cjs",
|
|
@@ -112,6 +112,16 @@
|
|
|
112
112
|
"default": "./dist/cjs/components/product/linked-chart.cjs"
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
|
+
"./custom-icons": {
|
|
116
|
+
"import": {
|
|
117
|
+
"types": "./dist/types/components/fundamental/custom-icons.d.ts",
|
|
118
|
+
"default": "./dist/es/components/fundamental/custom-icons.js"
|
|
119
|
+
},
|
|
120
|
+
"require": {
|
|
121
|
+
"types": "./dist/types/components/fundamental/custom-icons.d.cts",
|
|
122
|
+
"default": "./dist/cjs/components/fundamental/custom-icons.cjs"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
115
125
|
"./package.json": "./package.json"
|
|
116
126
|
},
|
|
117
127
|
"files": [
|