@rafal.lemieszewski/tide-ui 0.84.2 → 0.84.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/breadcrumb.cjs +1 -1
- package/dist/cjs/components/fundamental/country-dropdown.cjs +1 -1
- package/dist/cjs/components/fundamental/icon.cjs +1 -1
- package/dist/cjs/components/fundamental/tree.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 +115 -120
- 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/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
|
@@ -13,7 +13,7 @@ const M = n.createContext(
|
|
|
13
13
|
if (!r)
|
|
14
14
|
throw new Error("useFileUpload must be used within a FileUpload component");
|
|
15
15
|
return r;
|
|
16
|
-
}, j = n.forwardRef(
|
|
16
|
+
}, j = /* @__PURE__ */ n.forwardRef(
|
|
17
17
|
({
|
|
18
18
|
className: r,
|
|
19
19
|
files: e,
|
|
@@ -72,7 +72,7 @@ const _ = X(
|
|
|
72
72
|
disabled: !1
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
), k = n.forwardRef(({ className: r, children: e, ...o }, t) => {
|
|
75
|
+
), k = /* @__PURE__ */ n.forwardRef(({ className: r, children: e, ...o }, t) => {
|
|
76
76
|
const {
|
|
77
77
|
files: l,
|
|
78
78
|
onFilesChange: i,
|
|
@@ -166,16 +166,16 @@ const _ = X(
|
|
|
166
166
|
);
|
|
167
167
|
});
|
|
168
168
|
k.displayName = "FileUploadDropzone";
|
|
169
|
-
const L = n.forwardRef(({ children: r, ...e }, o) => {
|
|
169
|
+
const L = /* @__PURE__ */ n.forwardRef(({ children: r, ...e }, o) => {
|
|
170
170
|
const { disabled: t } = D();
|
|
171
171
|
return /* @__PURE__ */ s(P, { ref: o, disabled: t, ...e, children: r });
|
|
172
172
|
});
|
|
173
173
|
L.displayName = "FileUploadTrigger";
|
|
174
|
-
const A = n.forwardRef(
|
|
174
|
+
const A = /* @__PURE__ */ n.forwardRef(
|
|
175
175
|
({ className: r, children: e, ...o }, t) => /* @__PURE__ */ s("div", { ref: t, className: v("space-y-2", r), ...o, children: e })
|
|
176
176
|
);
|
|
177
177
|
A.displayName = "FileUploadList";
|
|
178
|
-
const B = n.forwardRef(
|
|
178
|
+
const B = /* @__PURE__ */ n.forwardRef(
|
|
179
179
|
({ className: r, file: e, children: o, ...t }, l) => /* @__PURE__ */ s(
|
|
180
180
|
"div",
|
|
181
181
|
{
|
|
@@ -193,7 +193,7 @@ const B = n.forwardRef(
|
|
|
193
193
|
)
|
|
194
194
|
);
|
|
195
195
|
B.displayName = "FileUploadItem";
|
|
196
|
-
const W = n.forwardRef(({ className: r, file: e, ...o }, t) => {
|
|
196
|
+
const W = /* @__PURE__ */ n.forwardRef(({ className: r, file: e, ...o }, t) => {
|
|
197
197
|
const l = (i) => i.startsWith("image/") ? "image" : i.startsWith("video/") ? "video" : i.startsWith("audio/") ? "volume-2" : i.includes("pdf") || i.includes("text/") || i.includes("application/json") ? "file-text" : "file";
|
|
198
198
|
return /* @__PURE__ */ s(
|
|
199
199
|
"div",
|
|
@@ -222,7 +222,7 @@ const W = n.forwardRef(({ className: r, file: e, ...o }, t) => {
|
|
|
222
222
|
);
|
|
223
223
|
});
|
|
224
224
|
W.displayName = "FileUploadItemPreview";
|
|
225
|
-
const $ = n.forwardRef(({ className: r, file: e, ...o }, t) => /* @__PURE__ */ b("div", { ref: t, className: v("flex-1 space-y-1", r), ...o, children: [
|
|
225
|
+
const $ = /* @__PURE__ */ n.forwardRef(({ className: r, file: e, ...o }, t) => /* @__PURE__ */ b("div", { ref: t, className: v("flex-1 space-y-1", r), ...o, children: [
|
|
226
226
|
/* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
|
|
227
227
|
/* @__PURE__ */ s("p", { className: "text-body-sm truncate font-medium", children: e.file.name }),
|
|
228
228
|
/* @__PURE__ */ s(Z, { children: e.status })
|
|
@@ -231,7 +231,7 @@ const $ = n.forwardRef(({ className: r, file: e, ...o }, t) => /* @__PURE__ */ b
|
|
|
231
231
|
e.error && /* @__PURE__ */ s("p", { className: "text-caption-sm text-[var(--color-text-error-bold)]", children: e.error })
|
|
232
232
|
] }));
|
|
233
233
|
$.displayName = "FileUploadItemMetadata";
|
|
234
|
-
const V = n.forwardRef(({ className: r, file: e, variant: o = "linear", ...t }, l) => e.status !== "uploading" || e.progress === void 0 ? null : /* @__PURE__ */ b("div", { ref: l, className: v("w-full", r), ...t, children: [
|
|
234
|
+
const V = /* @__PURE__ */ n.forwardRef(({ className: r, file: e, variant: o = "linear", ...t }, l) => e.status !== "uploading" || e.progress === void 0 ? null : /* @__PURE__ */ b("div", { ref: l, className: v("w-full", r), ...t, children: [
|
|
235
235
|
/* @__PURE__ */ s(Y, { value: e.progress, className: "h-2" }),
|
|
236
236
|
/* @__PURE__ */ b("p", { className: "text-caption-sm mt-1 text-[var(--color-text-secondary)]", children: [
|
|
237
237
|
Math.round(e.progress),
|
|
@@ -239,7 +239,7 @@ const V = n.forwardRef(({ className: r, file: e, variant: o = "linear", ...t },
|
|
|
239
239
|
] })
|
|
240
240
|
] }));
|
|
241
241
|
V.displayName = "FileUploadItemProgress";
|
|
242
|
-
const T = n.forwardRef(({ file: r, ...e }, o) => {
|
|
242
|
+
const T = /* @__PURE__ */ n.forwardRef(({ file: r, ...e }, o) => {
|
|
243
243
|
const { files: t, onFilesChange: l } = D();
|
|
244
244
|
return /* @__PURE__ */ s(
|
|
245
245
|
P,
|
|
@@ -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,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const Fr = {
|
|
1
|
+
import { jsxs as h, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { cn as s } from "../../lib/utils.js";
|
|
4
|
+
import { X as g, Weight as f, Users as C, User as k, Upload as m, Truck as A, TriangleAlert as y, Trash2 as b, Trash as z, TextCursorInput as S, Table2 as D, Star as L, SquarePlus as T, Sparkles as P, Ship as I, ShieldCheck as R, Share2 as U, Share as M, Settings as N, Send as q, Search as B, Route as E, RotateCcw as W, RefreshCw as F, PlusCircle as H, Plus as j, Pencil as X, PanelRightClose as Z, PanelLeft as _, Package as G, Navigation as O, MoreHorizontal as $, MessageSquare as J, MessageCircle as K, MapPin as Q, Mail as V, LogOut as Y, Loader2 as rr, ListFilter as er, Link as or, LayoutDashboard as ir, Info as tr, Handshake as nr, Grid2X2Plus as lr, Filter as ar, FileText as cr, Eye as sr, ExternalLink as dr, Ellipsis as hr, Edit as wr, Download as ur, Dot as vr, CreditCard as xr, Copy as pr, Code as gr, CircleHelp as fr, CircleDollarSign as Cr, CircleCheckBig as kr, CircleAlert as mr, Circle as Ar, ChevronUp as yr, ChevronRight as br, ChevronLeft as zr, ChevronDown as Sr, CheckCircle as Dr, Check as Lr, CalendarDays as Tr, Bookmark as Pr, ArrowUpToLine as Ir, ArrowUp as Rr, ArrowRightToLine as Ur, ArrowRight as Mr, ArrowLeftToLine as Nr, ArrowLeft as qr, ArrowDownZA as Br, ArrowDownWideNarrow as Er, ArrowDownToLine as Wr, ArrowDownNarrowWide as Fr, ArrowDownAZ as Hr, ArrowDown10 as jr, ArrowDown01 as Xr, ArrowDown as Zr, Archive as _r, Anchor as Gr, AlertCircle as Or } from "lucide-react";
|
|
5
|
+
import { customIcons as w } from "./custom-icons.js";
|
|
6
|
+
const $r = {
|
|
8
7
|
primary: "text-[var(--color-icon-primary)]",
|
|
9
8
|
secondary: "text-[var(--color-icon-secondary)]",
|
|
10
9
|
tertiary: "text-[var(--color-icon-tertiary)]",
|
|
@@ -21,7 +20,7 @@ const Fr = {
|
|
|
21
20
|
"on-action": "text-[var(--color-icon-on-action)]",
|
|
22
21
|
inverse: "text-[var(--color-icon-inverse)]",
|
|
23
22
|
violet: "text-[var(--violet-500)]"
|
|
24
|
-
},
|
|
23
|
+
}, Jr = {
|
|
25
24
|
s: "w-[var(--size-3xs)] h-[var(--size-3xs)]",
|
|
26
25
|
// 12px
|
|
27
26
|
m: "w-[var(--size-2xs)] h-[var(--size-2xs)]",
|
|
@@ -30,145 +29,141 @@ const Fr = {
|
|
|
30
29
|
// 20px
|
|
31
30
|
xl: "w-[var(--size-s)] h-[var(--size-s)]"
|
|
32
31
|
// 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":
|
|
32
|
+
}, u = {
|
|
33
|
+
"alert-circle": Or,
|
|
34
|
+
anchor: Gr,
|
|
35
|
+
archive: _r,
|
|
36
|
+
"arrow-down": Zr,
|
|
37
|
+
"arrow-down-0-1": Xr,
|
|
38
|
+
"arrow-down-1-0": jr,
|
|
39
|
+
"arrow-down-a-z": Hr,
|
|
40
|
+
"arrow-down-narrow-wide": Fr,
|
|
41
|
+
"arrow-down-to-line": Wr,
|
|
42
|
+
"arrow-down-wide-narrow": Er,
|
|
43
|
+
"arrow-down-z-a": Br,
|
|
44
|
+
"arrow-left": qr,
|
|
45
|
+
"arrow-left-to-line": Nr,
|
|
46
|
+
"arrow-right": Mr,
|
|
47
|
+
"arrow-right-to-line": Ur,
|
|
48
|
+
"arrow-up": Rr,
|
|
49
|
+
"arrow-up-to-line": Ir,
|
|
50
50
|
bookmark: Pr,
|
|
51
|
-
"calendar-days":
|
|
52
|
-
check:
|
|
53
|
-
"check-circle":
|
|
54
|
-
"chevron-down":
|
|
55
|
-
"chevron-left":
|
|
56
|
-
"chevron-right":
|
|
57
|
-
"chevron-up":
|
|
58
|
-
circle:
|
|
59
|
-
"circle-alert":
|
|
60
|
-
"circle-check-big":
|
|
51
|
+
"calendar-days": Tr,
|
|
52
|
+
check: Lr,
|
|
53
|
+
"check-circle": Dr,
|
|
54
|
+
"chevron-down": Sr,
|
|
55
|
+
"chevron-left": zr,
|
|
56
|
+
"chevron-right": br,
|
|
57
|
+
"chevron-up": yr,
|
|
58
|
+
circle: Ar,
|
|
59
|
+
"circle-alert": mr,
|
|
60
|
+
"circle-check-big": kr,
|
|
61
61
|
"circle-dollar-sign": Cr,
|
|
62
|
-
"circle-help":
|
|
63
|
-
code:
|
|
64
|
-
copy:
|
|
65
|
-
"credit-card":
|
|
62
|
+
"circle-help": fr,
|
|
63
|
+
code: gr,
|
|
64
|
+
copy: pr,
|
|
65
|
+
"credit-card": xr,
|
|
66
|
+
dot: vr,
|
|
66
67
|
download: ur,
|
|
67
68
|
edit: wr,
|
|
68
69
|
ellipsis: hr,
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
"external-link": dr,
|
|
71
|
+
eye: sr,
|
|
72
|
+
"file-text": cr,
|
|
73
|
+
filter: ar,
|
|
71
74
|
"grid-2x2-plus": lr,
|
|
72
|
-
handshake:
|
|
73
|
-
info:
|
|
74
|
-
"layout-dashboard":
|
|
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":
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
75
|
+
handshake: nr,
|
|
76
|
+
info: tr,
|
|
77
|
+
"layout-dashboard": ir,
|
|
78
|
+
link: or,
|
|
79
|
+
"list-filter": er,
|
|
80
|
+
"loader-2": rr,
|
|
81
|
+
"log-out": Y,
|
|
82
|
+
mail: V,
|
|
83
|
+
"map-pin": Q,
|
|
84
|
+
"message-circle": K,
|
|
85
|
+
"message-square": J,
|
|
86
|
+
"more-horizontal": $,
|
|
87
|
+
navigation: O,
|
|
88
|
+
package: G,
|
|
89
|
+
"panel-left": _,
|
|
90
|
+
"panel-right-close": Z,
|
|
91
|
+
pencil: X,
|
|
92
|
+
plus: j,
|
|
93
|
+
"plus-circle": H,
|
|
94
|
+
"refresh-cw": F,
|
|
95
|
+
"rotate-ccw": W,
|
|
96
|
+
route: E,
|
|
97
|
+
search: B,
|
|
98
|
+
send: q,
|
|
99
|
+
settings: N,
|
|
100
|
+
share: M,
|
|
101
|
+
"share-2": U,
|
|
102
|
+
"shield-check": R,
|
|
103
|
+
ship: I,
|
|
104
|
+
sparkles: P,
|
|
101
105
|
"square-plus": T,
|
|
102
|
-
star:
|
|
103
|
-
"table-2":
|
|
104
|
-
"text-cursor-input":
|
|
105
|
-
trash:
|
|
106
|
-
"trash-2":
|
|
107
|
-
"triangle-alert":
|
|
108
|
-
truck:
|
|
109
|
-
upload:
|
|
110
|
-
user:
|
|
111
|
-
users:
|
|
112
|
-
weight:
|
|
113
|
-
x:
|
|
114
|
-
},
|
|
106
|
+
star: L,
|
|
107
|
+
"table-2": D,
|
|
108
|
+
"text-cursor-input": S,
|
|
109
|
+
trash: z,
|
|
110
|
+
"trash-2": b,
|
|
111
|
+
"triangle-alert": y,
|
|
112
|
+
truck: A,
|
|
113
|
+
upload: m,
|
|
114
|
+
user: k,
|
|
115
|
+
users: C,
|
|
116
|
+
weight: f,
|
|
117
|
+
x: g
|
|
118
|
+
}, Kr = /* @__PURE__ */ p.forwardRef(
|
|
115
119
|
({
|
|
116
|
-
name:
|
|
117
|
-
size:
|
|
118
|
-
color:
|
|
119
|
-
className:
|
|
120
|
-
"aria-label":
|
|
121
|
-
...
|
|
120
|
+
name: e,
|
|
121
|
+
size: v = "m",
|
|
122
|
+
color: d,
|
|
123
|
+
className: i,
|
|
124
|
+
"aria-label": r,
|
|
125
|
+
...t
|
|
122
126
|
}, n) => {
|
|
123
|
-
const
|
|
124
|
-
if (
|
|
125
|
-
return /* @__PURE__ */
|
|
127
|
+
const l = d ? $r[d] : "text-current", a = Jr[v], c = r ? { "aria-label": r, role: "img" } : { "aria-hidden": !0 };
|
|
128
|
+
if (e in w)
|
|
129
|
+
return /* @__PURE__ */ h(
|
|
126
130
|
"svg",
|
|
127
131
|
{
|
|
128
132
|
ref: n,
|
|
129
133
|
viewBox: "0 0 24 24",
|
|
130
134
|
fill: "none",
|
|
131
|
-
className:
|
|
132
|
-
...s,
|
|
135
|
+
className: s("shrink-0", a, l, i),
|
|
133
136
|
...c,
|
|
137
|
+
...t,
|
|
134
138
|
children: [
|
|
135
|
-
|
|
136
|
-
|
|
139
|
+
r && /* @__PURE__ */ o("title", { children: r }),
|
|
140
|
+
w[e]
|
|
137
141
|
]
|
|
138
142
|
}
|
|
139
143
|
);
|
|
140
|
-
if (
|
|
141
|
-
const
|
|
144
|
+
if (e in u) {
|
|
145
|
+
const x = u[e];
|
|
142
146
|
return /* @__PURE__ */ o(
|
|
143
|
-
|
|
147
|
+
x,
|
|
144
148
|
{
|
|
145
149
|
ref: n,
|
|
146
|
-
className:
|
|
147
|
-
...
|
|
148
|
-
...
|
|
150
|
+
className: s("shrink-0", a, l, i),
|
|
151
|
+
...c,
|
|
152
|
+
...t
|
|
149
153
|
}
|
|
150
154
|
);
|
|
151
155
|
}
|
|
152
|
-
|
|
153
|
-
return w ? /* @__PURE__ */ o(
|
|
154
|
-
w,
|
|
155
|
-
{
|
|
156
|
-
ref: n,
|
|
157
|
-
className: d("shrink-0", l, a, t),
|
|
158
|
-
...s,
|
|
159
|
-
...c
|
|
160
|
-
}
|
|
161
|
-
) : (console.warn(`Icon "${r}" not found in custom icons or Lucide icons`), /* @__PURE__ */ u(
|
|
156
|
+
return console.warn(`Icon "${e}" not found. Add it to the commonLucideIcons map in icon.tsx for tree-shaking support.`), /* @__PURE__ */ h(
|
|
162
157
|
"svg",
|
|
163
158
|
{
|
|
164
159
|
ref: n,
|
|
165
160
|
viewBox: "0 0 24 24",
|
|
166
161
|
fill: "none",
|
|
167
|
-
className:
|
|
168
|
-
...s,
|
|
162
|
+
className: s("shrink-0", a, l, i),
|
|
169
163
|
...c,
|
|
164
|
+
...t,
|
|
170
165
|
children: [
|
|
171
|
-
|
|
166
|
+
r && /* @__PURE__ */ o("title", { children: r }),
|
|
172
167
|
/* @__PURE__ */ o(
|
|
173
168
|
"rect",
|
|
174
169
|
{
|
|
@@ -194,12 +189,12 @@ const x = {
|
|
|
194
189
|
)
|
|
195
190
|
]
|
|
196
191
|
}
|
|
197
|
-
)
|
|
192
|
+
);
|
|
198
193
|
}
|
|
199
194
|
);
|
|
200
|
-
|
|
195
|
+
Kr.displayName = "Icon";
|
|
201
196
|
export {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
197
|
+
Kr as Icon,
|
|
198
|
+
$r as iconColors,
|
|
199
|
+
Jr as iconSizes
|
|
205
200
|
};
|
|
@@ -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,
|