@rafal.lemieszewski/tide-ui 0.84.2 → 0.84.4
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/icon.cjs +1 -1
- package/dist/cjs/components/product/data-table.cjs +1 -1
- package/dist/cjs/lib/index.cjs +1 -1
- package/dist/es/components/fundamental/accordion.js +3 -3
- package/dist/es/components/fundamental/alert-dialog.js +5 -5
- package/dist/es/components/fundamental/alert.js +3 -3
- package/dist/es/components/fundamental/avatar-group.js +1 -1
- package/dist/es/components/fundamental/avatar.js +3 -3
- package/dist/es/components/fundamental/badge.js +1 -1
- package/dist/es/components/fundamental/breadcrumb.js +6 -6
- package/dist/es/components/fundamental/button-group.js +3 -3
- package/dist/es/components/fundamental/button.js +1 -1
- package/dist/es/components/fundamental/card.js +6 -6
- package/dist/es/components/fundamental/checkbox.js +1 -1
- package/dist/es/components/fundamental/collapsible.js +2 -2
- package/dist/es/components/fundamental/command.js +7 -7
- package/dist/es/components/fundamental/date-picker.js +2 -2
- package/dist/es/components/fundamental/dialog.js +3 -3
- package/dist/es/components/fundamental/drawer.js +4 -4
- package/dist/es/components/fundamental/dropdown-menu.js +25 -25
- package/dist/es/components/fundamental/empty.js +6 -6
- package/dist/es/components/fundamental/file-upload.js +9 -9
- package/dist/es/components/fundamental/form-field.js +15 -15
- package/dist/es/components/fundamental/hover-card.js +1 -1
- package/dist/es/components/fundamental/icon.js +101 -95
- package/dist/es/components/fundamental/input-group.js +6 -6
- package/dist/es/components/fundamental/input.js +1 -1
- package/dist/es/components/fundamental/kbd.js +2 -2
- package/dist/es/components/fundamental/label.js +1 -1
- package/dist/es/components/fundamental/month-picker.js +1 -1
- package/dist/es/components/fundamental/pagination.js +1 -1
- package/dist/es/components/fundamental/popover.js +1 -1
- package/dist/es/components/fundamental/progress.js +1 -1
- package/dist/es/components/fundamental/radio-group.js +2 -2
- package/dist/es/components/fundamental/scroll-area.js +2 -2
- package/dist/es/components/fundamental/select.js +5 -5
- package/dist/es/components/fundamental/separator.js +1 -1
- package/dist/es/components/fundamental/sheet.js +4 -4
- package/dist/es/components/fundamental/sidebar.js +25 -25
- package/dist/es/components/fundamental/skeleton.js +5 -5
- package/dist/es/components/fundamental/slider.js +1 -1
- package/dist/es/components/fundamental/spinner.js +5 -5
- package/dist/es/components/fundamental/switch.js +1 -1
- package/dist/es/components/fundamental/table.js +10 -10
- package/dist/es/components/fundamental/tabs.js +5 -5
- package/dist/es/components/fundamental/tag.js +2 -2
- package/dist/es/components/fundamental/text-link.js +1 -1
- package/dist/es/components/fundamental/textarea.js +1 -1
- package/dist/es/components/fundamental/toggle-group.js +2 -2
- package/dist/es/components/fundamental/toggle.js +1 -1
- package/dist/es/components/fundamental/tooltip.js +1 -1
- package/dist/es/components/fundamental/tree.js +2 -2
- package/dist/es/components/product/activity-log.js +12 -12
- package/dist/es/components/product/attributes-list.js +13 -13
- package/dist/es/components/product/bookmarks.js +2 -2
- package/dist/es/components/product/data-table.js +365 -351
- package/dist/es/components/product/filters.js +3 -3
- package/dist/es/components/product/fixture-status.js +1 -1
- package/dist/es/lib/index.js +328 -368
- package/dist/es/style.css +1 -1
- package/dist/types/bookmarks.d.ts +2 -0
- package/dist/types/calendar.d.ts +2 -0
- package/dist/types/chart.d.ts +2 -0
- package/dist/types/components/core-index.d.cts +135 -0
- package/dist/types/components/core-index.d.ts +135 -0
- package/dist/types/components/fundamental/avatar.d.ts +3 -3
- package/dist/types/components/fundamental/badge.d.ts +2 -2
- package/dist/types/components/fundamental/button-group.d.ts +1 -1
- package/dist/types/components/fundamental/calendar.d.cts +7 -0
- package/dist/types/components/fundamental/chart.d.cts +95 -0
- package/dist/types/components/fundamental/command.d.ts +1 -1
- package/dist/types/components/fundamental/country-dropdown.d.cts +34 -0
- package/dist/types/components/fundamental/date-picker.d.cts +30 -0
- package/dist/types/components/fundamental/form-field.d.ts +1 -1
- package/dist/types/components/fundamental/resizable.d.cts +23 -0
- package/dist/types/components/fundamental/resizable.d.ts +1 -1
- package/dist/types/components/fundamental/spinner.d.ts +1 -1
- package/dist/types/components/fundamental/table.d.ts +3 -3
- package/dist/types/components/product/bookmarks.d.cts +90 -0
- package/dist/types/components/product/data-table.d.cts +802 -0
- package/dist/types/components/product/filters.d.cts +124 -0
- package/dist/types/components/product/linked-chart.d.cts +22 -0
- package/dist/types/country-dropdown.d.ts +2 -0
- package/dist/types/data-table.d.ts +2 -0
- package/dist/types/date-picker.d.ts +2 -0
- package/dist/types/filters.d.ts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/lib/index.d.cts +104 -3
- package/dist/types/lib/index.d.ts +104 -3
- package/dist/types/linked-chart.d.ts +2 -0
- package/dist/types/resizable.d.ts +2 -0
- package/package.json +94 -12
- /package/dist/cjs/components/{index.cjs → core-index.cjs} +0 -0
- /package/dist/es/components/{index.js → core-index.js} +0 -0
|
@@ -5,7 +5,7 @@ import { cn as i } from "../../lib/utils.js";
|
|
|
5
5
|
import { Icon as f } from "./icon.js";
|
|
6
6
|
import { Label as u } from "./label.js";
|
|
7
7
|
import { Separator as v } from "./separator.js";
|
|
8
|
-
const x = s.createContext({}), N = s.forwardRef(
|
|
8
|
+
const x = s.createContext({}), N = /* @__PURE__ */ s.forwardRef(
|
|
9
9
|
({ className: r, ...t }, a) => /* @__PURE__ */ e(
|
|
10
10
|
"fieldset",
|
|
11
11
|
{
|
|
@@ -29,7 +29,7 @@ const b = y(
|
|
|
29
29
|
variant: "legend"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
), F = s.forwardRef(
|
|
32
|
+
), F = /* @__PURE__ */ s.forwardRef(
|
|
33
33
|
({ className: r, variant: t, ...a }, l) => /* @__PURE__ */ e(
|
|
34
34
|
"legend",
|
|
35
35
|
{
|
|
@@ -40,7 +40,7 @@ const b = y(
|
|
|
40
40
|
)
|
|
41
41
|
);
|
|
42
42
|
F.displayName = "FieldLegend";
|
|
43
|
-
const g = s.forwardRef(
|
|
43
|
+
const g = /* @__PURE__ */ s.forwardRef(
|
|
44
44
|
({ className: r, ...t }, a) => /* @__PURE__ */ e(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
@@ -65,7 +65,7 @@ const h = y(
|
|
|
65
65
|
orientation: "vertical"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
), w = s.forwardRef(
|
|
68
|
+
), w = /* @__PURE__ */ s.forwardRef(
|
|
69
69
|
({ className: r, orientation: t, invalid: a, ...l }, o) => /* @__PURE__ */ e(
|
|
70
70
|
"div",
|
|
71
71
|
{
|
|
@@ -78,7 +78,7 @@ const h = y(
|
|
|
78
78
|
)
|
|
79
79
|
);
|
|
80
80
|
w.displayName = "Field";
|
|
81
|
-
const R = s.forwardRef(
|
|
81
|
+
const R = /* @__PURE__ */ s.forwardRef(
|
|
82
82
|
({ className: r, asChild: t, ...a }, l) => t ? /* @__PURE__ */ e("div", { ref: l, className: r, ...a }) : /* @__PURE__ */ e(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
@@ -89,7 +89,7 @@ const R = s.forwardRef(
|
|
|
89
89
|
)
|
|
90
90
|
);
|
|
91
91
|
R.displayName = "FieldContent";
|
|
92
|
-
const C = s.forwardRef(
|
|
92
|
+
const C = /* @__PURE__ */ s.forwardRef(
|
|
93
93
|
({ className: r, asChild: t, ...a }, l) => /* @__PURE__ */ e(
|
|
94
94
|
u,
|
|
95
95
|
{
|
|
@@ -104,7 +104,7 @@ const C = s.forwardRef(
|
|
|
104
104
|
)
|
|
105
105
|
);
|
|
106
106
|
C.displayName = "FieldLabel";
|
|
107
|
-
const z = s.forwardRef(
|
|
107
|
+
const z = /* @__PURE__ */ s.forwardRef(
|
|
108
108
|
({ className: r, ...t }, a) => /* @__PURE__ */ e(
|
|
109
109
|
"div",
|
|
110
110
|
{
|
|
@@ -119,7 +119,7 @@ const z = s.forwardRef(
|
|
|
119
119
|
)
|
|
120
120
|
);
|
|
121
121
|
z.displayName = "FieldTitle";
|
|
122
|
-
const L = s.forwardRef(
|
|
122
|
+
const L = /* @__PURE__ */ s.forwardRef(
|
|
123
123
|
({ className: r, children: t, ...a }, l) => /* @__PURE__ */ e(
|
|
124
124
|
"p",
|
|
125
125
|
{
|
|
@@ -136,13 +136,13 @@ const L = s.forwardRef(
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
L.displayName = "FieldDescription";
|
|
139
|
-
const k = s.forwardRef(({ children: r, className: t, ...a }, l) => r ? /* @__PURE__ */ m("div", { className: i("relative flex items-center gap-[var(--space-m)]", t), children: [
|
|
139
|
+
const k = /* @__PURE__ */ s.forwardRef(({ children: r, className: t, ...a }, l) => r ? /* @__PURE__ */ m("div", { className: i("relative flex items-center gap-[var(--space-m)]", t), children: [
|
|
140
140
|
/* @__PURE__ */ e(v, { ref: l, className: "flex-1", ...a }),
|
|
141
141
|
/* @__PURE__ */ e("span", { className: "[&]:text-body-sm text-[var(--color-text-tertiary)]", children: r }),
|
|
142
142
|
/* @__PURE__ */ e(v, { className: "flex-1", ...a })
|
|
143
143
|
] }) : /* @__PURE__ */ e(v, { ref: l, className: t, ...a }));
|
|
144
144
|
k.displayName = "FieldSeparator";
|
|
145
|
-
const S = s.forwardRef(
|
|
145
|
+
const S = /* @__PURE__ */ s.forwardRef(
|
|
146
146
|
({ className: r, errors: t, children: a, ...l }, o) => {
|
|
147
147
|
const d = t || a;
|
|
148
148
|
return d ? typeof d == "string" ? /* @__PURE__ */ m(
|
|
@@ -186,7 +186,7 @@ const S = s.forwardRef(
|
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
S.displayName = "FieldError";
|
|
189
|
-
const A = s.forwardRef(
|
|
189
|
+
const A = /* @__PURE__ */ s.forwardRef(
|
|
190
190
|
({ className: r, isCheckboxField: t = !1, invalid: a = !1, ...l }, o) => /* @__PURE__ */ e(x.Provider, { value: { isCheckboxField: t, invalid: a }, children: /* @__PURE__ */ e(
|
|
191
191
|
"div",
|
|
192
192
|
{
|
|
@@ -201,7 +201,7 @@ const A = s.forwardRef(
|
|
|
201
201
|
) })
|
|
202
202
|
);
|
|
203
203
|
A.displayName = "FormField";
|
|
204
|
-
const E = s.forwardRef(
|
|
204
|
+
const E = /* @__PURE__ */ s.forwardRef(
|
|
205
205
|
({ className: r, ...t }, a) => {
|
|
206
206
|
const { invalid: l } = s.useContext(x);
|
|
207
207
|
return /* @__PURE__ */ e(
|
|
@@ -219,11 +219,11 @@ const E = s.forwardRef(
|
|
|
219
219
|
}
|
|
220
220
|
);
|
|
221
221
|
E.displayName = "FormLabel";
|
|
222
|
-
const T = s.forwardRef(
|
|
222
|
+
const T = /* @__PURE__ */ s.forwardRef(
|
|
223
223
|
({ className: r, ...t }, a) => /* @__PURE__ */ e("div", { ref: a, className: i("", r), ...t })
|
|
224
224
|
);
|
|
225
225
|
T.displayName = "FormControl";
|
|
226
|
-
const V = s.forwardRef(
|
|
226
|
+
const V = /* @__PURE__ */ s.forwardRef(
|
|
227
227
|
({ className: r, children: t, ...a }, l) => {
|
|
228
228
|
const { isCheckboxField: o } = s.useContext(x);
|
|
229
229
|
return o ? /* @__PURE__ */ e("div", { className: "ml-[calc(var(--size-2xs)+var(--space-s))]", children: /* @__PURE__ */ e(
|
|
@@ -263,7 +263,7 @@ const V = s.forwardRef(
|
|
|
263
263
|
}
|
|
264
264
|
);
|
|
265
265
|
V.displayName = "FormHelperText";
|
|
266
|
-
const j = s.forwardRef(({ className: r, errors: t, children: a, ...l }, o) => {
|
|
266
|
+
const j = /* @__PURE__ */ s.forwardRef(({ className: r, errors: t, children: a, ...l }, o) => {
|
|
267
267
|
const { isCheckboxField: d } = s.useContext(x), c = t || a;
|
|
268
268
|
return c ? Array.isArray(c) ? d ? /* @__PURE__ */ e("div", { className: "ml-[calc(var(--size-2xs)+var(--space-s))]", children: /* @__PURE__ */ e(
|
|
269
269
|
"div",
|
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-hover-card";
|
|
4
4
|
import { cn as n } from "../../lib/utils.js";
|
|
5
|
-
const c = t.Root, f = t.Trigger, m = s.forwardRef(({ className: a, align: e = "center", sideOffset: r = 4, ...d }, i) => /* @__PURE__ */ o(t.Portal, { children: /* @__PURE__ */ o(
|
|
5
|
+
const c = t.Root, f = t.Trigger, m = /* @__PURE__ */ s.forwardRef(({ className: a, align: e = "center", sideOffset: r = 4, ...d }, i) => /* @__PURE__ */ o(t.Portal, { children: /* @__PURE__ */ o(
|
|
6
6
|
t.Content,
|
|
7
7
|
{
|
|
8
8
|
ref: i,
|
|
@@ -2,9 +2,9 @@ import { jsxs as u, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import C from "react";
|
|
3
3
|
import { cn as d } from "../../lib/utils.js";
|
|
4
4
|
import * as f from "lucide-react";
|
|
5
|
-
import { X as k, Weight as m, Users as
|
|
5
|
+
import { X as k, Weight as m, Users as A, User as y, Upload as b, Truck as z, TriangleAlert as S, Trash2 as D, Trash as L, TextCursorInput as T, Table2 as I, Star as P, SquarePlus as R, Sparkles as U, Ship as N, ShieldCheck as M, Share2 as q, Share as B, Settings as E, Send as W, Search as j, Route as F, RotateCcw as H, RefreshCw as X, PlusCircle as Z, Plus as _, Pencil as G, PanelRightClose as O, PanelLeft as $, Package as J, Navigation as K, MoreHorizontal as Q, MessageSquare as V, MessageCircle as Y, MapPin as rr, Mail as er, LogOut as or, Loader2 as ir, ListFilter as tr, Link as nr, LayoutDashboard as cr, Info as lr, Handshake as ar, Grid2X2Plus as sr, Filter as dr, FileText as hr, Eye as wr, ExternalLink as ur, Ellipsis as vr, Edit as pr, Download as xr, Dot as gr, CreditCard as Cr, Copy as fr, Code as kr, CircleHelp as mr, CircleDollarSign as Ar, CircleCheckBig as yr, CircleCheck as br, CircleAlert as zr, Circle as Sr, ChevronUp as Dr, ChevronRight as Lr, ChevronLeft as Tr, ChevronDown as Ir, CheckCircle as Pr, Check as Rr, CalendarDays as Ur, Bookmark as Nr, ArrowUpToLine as Mr, ArrowUp as qr, ArrowRightToLine as Br, ArrowRight as Er, ArrowLeftToLine as Wr, ArrowLeft as jr, ArrowDownZA as Fr, ArrowDownWideNarrow as Hr, ArrowDownToLine as Xr, ArrowDownNarrowWide as Zr, ArrowDownAZ as _r, ArrowDown10 as Gr, ArrowDown01 as Or, ArrowDown as $r, Archive as Jr, Anchor as Kr, AlertCircle as Qr } from "lucide-react";
|
|
6
6
|
import { customIcons as v } from "./custom-icons.js";
|
|
7
|
-
const
|
|
7
|
+
const Vr = {
|
|
8
8
|
primary: "text-[var(--color-icon-primary)]",
|
|
9
9
|
secondary: "text-[var(--color-icon-secondary)]",
|
|
10
10
|
tertiary: "text-[var(--color-icon-tertiary)]",
|
|
@@ -21,7 +21,7 @@ const Fr = {
|
|
|
21
21
|
"on-action": "text-[var(--color-icon-on-action)]",
|
|
22
22
|
inverse: "text-[var(--color-icon-inverse)]",
|
|
23
23
|
violet: "text-[var(--violet-500)]"
|
|
24
|
-
},
|
|
24
|
+
}, Yr = {
|
|
25
25
|
s: "w-[var(--size-3xs)] h-[var(--size-3xs)]",
|
|
26
26
|
// 12px
|
|
27
27
|
m: "w-[var(--size-2xs)] h-[var(--size-2xs)]",
|
|
@@ -30,97 +30,103 @@ const Fr = {
|
|
|
30
30
|
// 20px
|
|
31
31
|
xl: "w-[var(--size-s)] h-[var(--size-s)]"
|
|
32
32
|
// 24px
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"arrow-down":
|
|
41
|
-
"arrow-down-
|
|
42
|
-
"arrow-down-
|
|
43
|
-
"arrow-down-
|
|
44
|
-
"arrow-down-
|
|
45
|
-
"arrow-
|
|
46
|
-
"arrow-
|
|
47
|
-
"arrow-
|
|
48
|
-
"arrow-right":
|
|
49
|
-
"arrow-up":
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
"chevron-
|
|
56
|
-
"chevron-
|
|
57
|
-
"chevron-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"circle-
|
|
61
|
-
"circle-
|
|
62
|
-
"circle-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
33
|
+
}, p = {
|
|
34
|
+
"alert-circle": Qr,
|
|
35
|
+
anchor: Kr,
|
|
36
|
+
archive: Jr,
|
|
37
|
+
"arrow-down": $r,
|
|
38
|
+
"arrow-down-0-1": Or,
|
|
39
|
+
"arrow-down-1-0": Gr,
|
|
40
|
+
"arrow-down-a-z": _r,
|
|
41
|
+
"arrow-down-narrow-wide": Zr,
|
|
42
|
+
"arrow-down-to-line": Xr,
|
|
43
|
+
"arrow-down-wide-narrow": Hr,
|
|
44
|
+
"arrow-down-z-a": Fr,
|
|
45
|
+
"arrow-left": jr,
|
|
46
|
+
"arrow-left-to-line": Wr,
|
|
47
|
+
"arrow-right": Er,
|
|
48
|
+
"arrow-right-to-line": Br,
|
|
49
|
+
"arrow-up": qr,
|
|
50
|
+
"arrow-up-to-line": Mr,
|
|
51
|
+
bookmark: Nr,
|
|
52
|
+
"calendar-days": Ur,
|
|
53
|
+
check: Rr,
|
|
54
|
+
"check-circle": Pr,
|
|
55
|
+
"chevron-down": Ir,
|
|
56
|
+
"chevron-left": Tr,
|
|
57
|
+
"chevron-right": Lr,
|
|
58
|
+
"chevron-up": Dr,
|
|
59
|
+
circle: Sr,
|
|
60
|
+
"circle-alert": zr,
|
|
61
|
+
"circle-check": br,
|
|
62
|
+
"circle-check-big": yr,
|
|
63
|
+
"circle-dollar-sign": Ar,
|
|
64
|
+
"circle-help": mr,
|
|
65
|
+
code: kr,
|
|
66
|
+
copy: fr,
|
|
67
|
+
"credit-card": Cr,
|
|
68
|
+
dot: gr,
|
|
69
|
+
download: xr,
|
|
70
|
+
edit: pr,
|
|
71
|
+
ellipsis: vr,
|
|
72
|
+
"external-link": ur,
|
|
73
|
+
eye: wr,
|
|
74
|
+
"file-text": hr,
|
|
75
|
+
filter: dr,
|
|
76
|
+
"grid-2x2-plus": sr,
|
|
72
77
|
handshake: ar,
|
|
73
|
-
info:
|
|
78
|
+
info: lr,
|
|
74
79
|
"layout-dashboard": cr,
|
|
75
|
-
link:
|
|
76
|
-
"list-filter":
|
|
77
|
-
"loader-2":
|
|
78
|
-
"log-out":
|
|
79
|
-
mail:
|
|
80
|
-
"map-pin":
|
|
81
|
-
"message-circle":
|
|
82
|
-
"message-square":
|
|
83
|
-
"more-horizontal":
|
|
84
|
-
navigation:
|
|
85
|
-
package:
|
|
86
|
-
"panel-left":
|
|
87
|
-
"panel-right-close":
|
|
80
|
+
link: nr,
|
|
81
|
+
"list-filter": tr,
|
|
82
|
+
"loader-2": ir,
|
|
83
|
+
"log-out": or,
|
|
84
|
+
mail: er,
|
|
85
|
+
"map-pin": rr,
|
|
86
|
+
"message-circle": Y,
|
|
87
|
+
"message-square": V,
|
|
88
|
+
"more-horizontal": Q,
|
|
89
|
+
navigation: K,
|
|
90
|
+
package: J,
|
|
91
|
+
"panel-left": $,
|
|
92
|
+
"panel-right-close": O,
|
|
93
|
+
pencil: G,
|
|
88
94
|
plus: _,
|
|
89
95
|
"plus-circle": Z,
|
|
90
96
|
"refresh-cw": X,
|
|
91
|
-
"rotate-ccw":
|
|
92
|
-
route:
|
|
93
|
-
search:
|
|
94
|
-
send:
|
|
95
|
-
settings:
|
|
97
|
+
"rotate-ccw": H,
|
|
98
|
+
route: F,
|
|
99
|
+
search: j,
|
|
100
|
+
send: W,
|
|
101
|
+
settings: E,
|
|
96
102
|
share: B,
|
|
97
103
|
"share-2": q,
|
|
98
104
|
"shield-check": M,
|
|
99
|
-
ship:
|
|
100
|
-
sparkles:
|
|
101
|
-
"square-plus":
|
|
102
|
-
star:
|
|
103
|
-
"table-2":
|
|
104
|
-
"text-cursor-input":
|
|
105
|
-
trash:
|
|
105
|
+
ship: N,
|
|
106
|
+
sparkles: U,
|
|
107
|
+
"square-plus": R,
|
|
108
|
+
star: P,
|
|
109
|
+
"table-2": I,
|
|
110
|
+
"text-cursor-input": T,
|
|
111
|
+
trash: L,
|
|
106
112
|
"trash-2": D,
|
|
107
113
|
"triangle-alert": S,
|
|
108
114
|
truck: z,
|
|
109
|
-
upload:
|
|
115
|
+
upload: b,
|
|
110
116
|
user: y,
|
|
111
|
-
users:
|
|
117
|
+
users: A,
|
|
112
118
|
weight: m,
|
|
113
119
|
x: k
|
|
114
|
-
},
|
|
120
|
+
}, re = /* @__PURE__ */ C.forwardRef(
|
|
115
121
|
({
|
|
116
122
|
name: r,
|
|
117
|
-
size:
|
|
123
|
+
size: x = "m",
|
|
118
124
|
color: h,
|
|
119
|
-
className:
|
|
125
|
+
className: i,
|
|
120
126
|
"aria-label": e,
|
|
121
|
-
...
|
|
127
|
+
...t
|
|
122
128
|
}, n) => {
|
|
123
|
-
const
|
|
129
|
+
const c = h ? Vr[h] : "text-current", l = Yr[x], a = e ? { "aria-label": e, role: "img" } : { "aria-hidden": !0 };
|
|
124
130
|
if (r in v)
|
|
125
131
|
return /* @__PURE__ */ u(
|
|
126
132
|
"svg",
|
|
@@ -128,35 +134,35 @@ const x = {
|
|
|
128
134
|
ref: n,
|
|
129
135
|
viewBox: "0 0 24 24",
|
|
130
136
|
fill: "none",
|
|
131
|
-
className: d("shrink-0", l,
|
|
132
|
-
...
|
|
133
|
-
...
|
|
137
|
+
className: d("shrink-0", l, c, i),
|
|
138
|
+
...a,
|
|
139
|
+
...t,
|
|
134
140
|
children: [
|
|
135
141
|
e && /* @__PURE__ */ o("title", { children: e }),
|
|
136
142
|
v[r]
|
|
137
143
|
]
|
|
138
144
|
}
|
|
139
145
|
);
|
|
140
|
-
if (r in
|
|
141
|
-
const
|
|
146
|
+
if (r in p) {
|
|
147
|
+
const s = p[r];
|
|
142
148
|
return /* @__PURE__ */ o(
|
|
143
|
-
|
|
149
|
+
s,
|
|
144
150
|
{
|
|
145
151
|
ref: n,
|
|
146
|
-
className: d("shrink-0", l,
|
|
147
|
-
...
|
|
148
|
-
...
|
|
152
|
+
className: d("shrink-0", l, c, i),
|
|
153
|
+
...a,
|
|
154
|
+
...t
|
|
149
155
|
}
|
|
150
156
|
);
|
|
151
157
|
}
|
|
152
|
-
const
|
|
158
|
+
const g = r.split("-").map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(""), w = f[g];
|
|
153
159
|
return w ? /* @__PURE__ */ o(
|
|
154
160
|
w,
|
|
155
161
|
{
|
|
156
162
|
ref: n,
|
|
157
|
-
className: d("shrink-0", l,
|
|
158
|
-
...
|
|
159
|
-
...
|
|
163
|
+
className: d("shrink-0", l, c, i),
|
|
164
|
+
...a,
|
|
165
|
+
...t
|
|
160
166
|
}
|
|
161
167
|
) : (console.warn(`Icon "${r}" not found in custom icons or Lucide icons`), /* @__PURE__ */ u(
|
|
162
168
|
"svg",
|
|
@@ -164,9 +170,9 @@ const x = {
|
|
|
164
170
|
ref: n,
|
|
165
171
|
viewBox: "0 0 24 24",
|
|
166
172
|
fill: "none",
|
|
167
|
-
className: d("shrink-0", l,
|
|
168
|
-
...
|
|
169
|
-
...
|
|
173
|
+
className: d("shrink-0", l, c, i),
|
|
174
|
+
...a,
|
|
175
|
+
...t,
|
|
170
176
|
children: [
|
|
171
177
|
e && /* @__PURE__ */ o("title", { children: e }),
|
|
172
178
|
/* @__PURE__ */ o(
|
|
@@ -197,9 +203,9 @@ const x = {
|
|
|
197
203
|
));
|
|
198
204
|
}
|
|
199
205
|
);
|
|
200
|
-
|
|
206
|
+
re.displayName = "Icon";
|
|
201
207
|
export {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
208
|
+
re as Icon,
|
|
209
|
+
Vr as iconColors,
|
|
210
|
+
Yr as iconSizes
|
|
205
211
|
};
|
|
@@ -5,7 +5,7 @@ import { cn as s } from "../../lib/utils.js";
|
|
|
5
5
|
import { Button as l } from "./button.js";
|
|
6
6
|
import { Input as d } from "./input.js";
|
|
7
7
|
import { Textarea as c } from "./textarea.js";
|
|
8
|
-
const v = e.forwardRef(
|
|
8
|
+
const v = /* @__PURE__ */ e.forwardRef(
|
|
9
9
|
({ className: r, ...a }, t) => /* @__PURE__ */ o(
|
|
10
10
|
"div",
|
|
11
11
|
{
|
|
@@ -52,7 +52,7 @@ const b = u(
|
|
|
52
52
|
align: "inline-start"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
), x = e.forwardRef(
|
|
55
|
+
), x = /* @__PURE__ */ e.forwardRef(
|
|
56
56
|
({ className: r, align: a = "inline-start", ...t }, n) => /* @__PURE__ */ o(
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
@@ -69,7 +69,7 @@ const b = u(
|
|
|
69
69
|
)
|
|
70
70
|
);
|
|
71
71
|
x.displayName = "InputGroupAddon";
|
|
72
|
-
const f = e.forwardRef(({ className: r, type: a = "button", variant: t = "ghost", size: n = "s", ...p }, i) => /* @__PURE__ */ o(
|
|
72
|
+
const f = /* @__PURE__ */ e.forwardRef(({ className: r, type: a = "button", variant: t = "ghost", size: n = "s", ...p }, i) => /* @__PURE__ */ o(
|
|
73
73
|
l,
|
|
74
74
|
{
|
|
75
75
|
ref: i,
|
|
@@ -81,7 +81,7 @@ const f = e.forwardRef(({ className: r, type: a = "button", variant: t = "ghost"
|
|
|
81
81
|
}
|
|
82
82
|
));
|
|
83
83
|
f.displayName = "InputGroupButton";
|
|
84
|
-
const g = e.forwardRef(
|
|
84
|
+
const g = /* @__PURE__ */ e.forwardRef(
|
|
85
85
|
({ className: r, ...a }, t) => /* @__PURE__ */ o(
|
|
86
86
|
"span",
|
|
87
87
|
{
|
|
@@ -95,7 +95,7 @@ const g = e.forwardRef(
|
|
|
95
95
|
)
|
|
96
96
|
);
|
|
97
97
|
g.displayName = "InputGroupText";
|
|
98
|
-
const m = e.forwardRef(
|
|
98
|
+
const m = /* @__PURE__ */ e.forwardRef(
|
|
99
99
|
({ className: r, size: a, ...t }, n) => /* @__PURE__ */ o(
|
|
100
100
|
d,
|
|
101
101
|
{
|
|
@@ -111,7 +111,7 @@ const m = e.forwardRef(
|
|
|
111
111
|
)
|
|
112
112
|
);
|
|
113
113
|
m.displayName = "InputGroupInput";
|
|
114
|
-
const h = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ o(
|
|
114
|
+
const h = /* @__PURE__ */ e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ o(
|
|
115
115
|
c,
|
|
116
116
|
{
|
|
117
117
|
ref: t,
|
|
@@ -31,7 +31,7 @@ const n = m(
|
|
|
31
31
|
size: "m"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
), u = v.forwardRef(
|
|
34
|
+
), u = /* @__PURE__ */ v.forwardRef(
|
|
35
35
|
({ className: o, variant: t, size: r, type: e = "text", ...s }, i) => {
|
|
36
36
|
if (e === "search") {
|
|
37
37
|
const l = r === "s" ? "s" : "m", p = r === "s" ? "pl-[calc(var(--space-m)+var(--size-3xs)+var(--space-s))]" : "pl-[calc(var(--space-m)+var(--size-2xs)+var(--space-s))]";
|
|
@@ -28,7 +28,7 @@ const d = m(
|
|
|
28
28
|
size: "s"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
), p = t.forwardRef(
|
|
31
|
+
), p = /* @__PURE__ */ t.forwardRef(
|
|
32
32
|
({ className: r, variant: e, size: a, ...i }, n) => /* @__PURE__ */ s(
|
|
33
33
|
"kbd",
|
|
34
34
|
{
|
|
@@ -39,7 +39,7 @@ const d = m(
|
|
|
39
39
|
)
|
|
40
40
|
);
|
|
41
41
|
p.displayName = "Kbd";
|
|
42
|
-
const c = t.forwardRef(
|
|
42
|
+
const c = /* @__PURE__ */ t.forwardRef(
|
|
43
43
|
({ className: r, ...e }, a) => /* @__PURE__ */ s(
|
|
44
44
|
"span",
|
|
45
45
|
{
|
|
@@ -62,7 +62,7 @@ const O = {
|
|
|
62
62
|
return l > f;
|
|
63
63
|
const i = n(o).getTime();
|
|
64
64
|
return l > f && l < i;
|
|
65
|
-
}, v = (r, a) => !r || !a ? !1 : n(r).getTime() === n(a).getTime(), Z = p.forwardRef(
|
|
65
|
+
}, v = (r, a) => !r || !a ? !1 : n(r).getTime() === n(a).getTime(), Z = /* @__PURE__ */ p.forwardRef(
|
|
66
66
|
({
|
|
67
67
|
value: r,
|
|
68
68
|
onChange: a,
|
|
@@ -5,7 +5,7 @@ import { Button as l } from "./button.js";
|
|
|
5
5
|
import { ButtonGroup as I } from "./button-group.js";
|
|
6
6
|
import { Icon as r } from "./icon.js";
|
|
7
7
|
import { DropdownMenu as $, DropdownMenuTrigger as j, DropdownMenuContent as B, DropdownMenuLabel as E, DropdownMenuItem as F } from "./dropdown-menu.js";
|
|
8
|
-
const y = L.forwardRef(
|
|
8
|
+
const y = /* @__PURE__ */ L.forwardRef(
|
|
9
9
|
({
|
|
10
10
|
className: w,
|
|
11
11
|
variant: p = "default",
|
|
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import * as o from "@radix-ui/react-popover";
|
|
4
4
|
import { cn as s } from "../../lib/utils.js";
|
|
5
|
-
const c = o.Root, f = o.Trigger, v = o.Anchor, m = n.forwardRef(({ className: e, align: r = "center", sideOffset: a = 4, ...i }, d) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
|
|
5
|
+
const c = o.Root, f = o.Trigger, v = o.Anchor, m = /* @__PURE__ */ n.forwardRef(({ className: e, align: r = "center", sideOffset: a = 4, ...i }, d) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
|
|
6
6
|
o.Content,
|
|
7
7
|
{
|
|
8
8
|
ref: d,
|
|
@@ -39,7 +39,7 @@ const v = l(
|
|
|
39
39
|
variant: "default"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
), h = g.forwardRef(({ className: n, value: r, variant: e, size: i, showLabel: d, formatLabel: t, ...c }, u) => {
|
|
42
|
+
), h = /* @__PURE__ */ g.forwardRef(({ className: n, value: r, variant: e, size: i, showLabel: d, formatLabel: t, ...c }, u) => {
|
|
43
43
|
const b = (m) => `${Math.round(m)}%`;
|
|
44
44
|
return /* @__PURE__ */ f("div", { className: "w-full", children: [
|
|
45
45
|
/* @__PURE__ */ a("div", { className: s(v({ variant: e, size: i, className: n })), children: /* @__PURE__ */ a(
|
|
@@ -31,7 +31,7 @@ const b = i("grid gap-[var(--space-s)]"), n = i(
|
|
|
31
31
|
}
|
|
32
32
|
), v = i(
|
|
33
33
|
"flex items-center justify-center text-current [&>svg]:w-[var(--dimension-150)] [&>svg]:h-[var(--dimension-150)]"
|
|
34
|
-
), u = c.forwardRef(({ className: o, ...a }, d) => /* @__PURE__ */ e(
|
|
34
|
+
), u = /* @__PURE__ */ c.forwardRef(({ className: o, ...a }, d) => /* @__PURE__ */ e(
|
|
35
35
|
r.Root,
|
|
36
36
|
{
|
|
37
37
|
className: t(b(), o),
|
|
@@ -40,7 +40,7 @@ const b = i("grid gap-[var(--space-s)]"), n = i(
|
|
|
40
40
|
}
|
|
41
41
|
));
|
|
42
42
|
u.displayName = r.Root.displayName;
|
|
43
|
-
const m = c.forwardRef(({ className: o, variant: a, ...d }, s) => /* @__PURE__ */ e(
|
|
43
|
+
const m = /* @__PURE__ */ c.forwardRef(({ className: o, variant: a, ...d }, s) => /* @__PURE__ */ e(
|
|
44
44
|
r.Item,
|
|
45
45
|
{
|
|
46
46
|
ref: s,
|
|
@@ -2,7 +2,7 @@ import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import * as r from "@radix-ui/react-scroll-area";
|
|
4
4
|
import { cn as t } from "../../lib/utils.js";
|
|
5
|
-
const m = s.forwardRef(({ className: o, children: l, ...a }, c) => /* @__PURE__ */ d(
|
|
5
|
+
const m = /* @__PURE__ */ s.forwardRef(({ className: o, children: l, ...a }, c) => /* @__PURE__ */ d(
|
|
6
6
|
r.Root,
|
|
7
7
|
{
|
|
8
8
|
ref: c,
|
|
@@ -16,7 +16,7 @@ const m = s.forwardRef(({ className: o, children: l, ...a }, c) => /* @__PURE__
|
|
|
16
16
|
}
|
|
17
17
|
));
|
|
18
18
|
m.displayName = r.Root.displayName;
|
|
19
|
-
const i = s.forwardRef(({ className: o, orientation: l = "vertical", ...a }, c) => /* @__PURE__ */ e(
|
|
19
|
+
const i = /* @__PURE__ */ s.forwardRef(({ className: o, orientation: l = "vertical", ...a }, c) => /* @__PURE__ */ e(
|
|
20
20
|
r.ScrollAreaScrollbar,
|
|
21
21
|
{
|
|
22
22
|
ref: c,
|
|
@@ -46,7 +46,7 @@ const u = d(
|
|
|
46
46
|
"px-2 py-1 [&]:text-body-medium-sm text-[var(--color-text-tertiary)]"
|
|
47
47
|
), h = d(
|
|
48
48
|
"h-px bg-[var(--color-border-primary-subtle)] my-[var(--space-xs)]"
|
|
49
|
-
), R = e.Root, j = e.Group, k = e.Value, y = l.forwardRef(({ className: t, variant: o, size: a, children: i, ...c }, p) => {
|
|
49
|
+
), R = e.Root, j = e.Group, k = e.Value, y = /* @__PURE__ */ l.forwardRef(({ className: t, variant: o, size: a, children: i, ...c }, p) => {
|
|
50
50
|
const b = a || "m";
|
|
51
51
|
return /* @__PURE__ */ m(
|
|
52
52
|
e.Trigger,
|
|
@@ -62,7 +62,7 @@ const u = d(
|
|
|
62
62
|
);
|
|
63
63
|
});
|
|
64
64
|
y.displayName = e.Trigger.displayName;
|
|
65
|
-
const g = l.forwardRef(({ className: t, children: o, position: a = "popper", modal: i = !1, ...c }, p) => /* @__PURE__ */ r(e.Portal, { children: /* @__PURE__ */ m(
|
|
65
|
+
const g = /* @__PURE__ */ l.forwardRef(({ className: t, children: o, position: a = "popper", modal: i = !1, ...c }, p) => /* @__PURE__ */ r(e.Portal, { children: /* @__PURE__ */ m(
|
|
66
66
|
e.Content,
|
|
67
67
|
{
|
|
68
68
|
ref: p,
|
|
@@ -90,7 +90,7 @@ const g = l.forwardRef(({ className: t, children: o, position: a = "popper", mod
|
|
|
90
90
|
}
|
|
91
91
|
) }));
|
|
92
92
|
g.displayName = e.Content.displayName;
|
|
93
|
-
const w = l.forwardRef(({ className: t, children: o, ...a }, i) => /* @__PURE__ */ m(
|
|
93
|
+
const w = /* @__PURE__ */ l.forwardRef(({ className: t, children: o, ...a }, i) => /* @__PURE__ */ m(
|
|
94
94
|
e.Item,
|
|
95
95
|
{
|
|
96
96
|
ref: i,
|
|
@@ -103,7 +103,7 @@ const w = l.forwardRef(({ className: t, children: o, ...a }, i) => /* @__PURE__
|
|
|
103
103
|
}
|
|
104
104
|
));
|
|
105
105
|
w.displayName = e.Item.displayName;
|
|
106
|
-
const N = l.forwardRef(({ className: t, ...o }, a) => /* @__PURE__ */ r(
|
|
106
|
+
const N = /* @__PURE__ */ l.forwardRef(({ className: t, ...o }, a) => /* @__PURE__ */ r(
|
|
107
107
|
e.Label,
|
|
108
108
|
{
|
|
109
109
|
ref: a,
|
|
@@ -112,7 +112,7 @@ const N = l.forwardRef(({ className: t, ...o }, a) => /* @__PURE__ */ r(
|
|
|
112
112
|
}
|
|
113
113
|
));
|
|
114
114
|
N.displayName = e.Label.displayName;
|
|
115
|
-
const S = l.forwardRef(({ className: t, ...o }, a) => /* @__PURE__ */ r(
|
|
115
|
+
const S = /* @__PURE__ */ l.forwardRef(({ className: t, ...o }, a) => /* @__PURE__ */ r(
|
|
116
116
|
e.Separator,
|
|
117
117
|
{
|
|
118
118
|
ref: a,
|
|
@@ -3,7 +3,7 @@ import * as p from "react";
|
|
|
3
3
|
import * as m from "@radix-ui/react-separator";
|
|
4
4
|
import { cn as l } from "../../lib/utils.js";
|
|
5
5
|
import { Icon as c } from "./icon.js";
|
|
6
|
-
const f = p.forwardRef(
|
|
6
|
+
const f = /* @__PURE__ */ p.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
className: t,
|
|
9
9
|
layout: i = "vertical",
|