@rafal.lemieszewski/tide-ui 0.87.7 → 0.87.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/fundamental/alert-dialog.cjs +1 -1
- package/dist/cjs/components/fundamental/alert.cjs +1 -1
- package/dist/cjs/components/fundamental/avatar.cjs +1 -1
- package/dist/cjs/components/fundamental/badge.cjs +1 -1
- package/dist/cjs/components/fundamental/breadcrumb.cjs +1 -1
- package/dist/cjs/components/fundamental/button-group.cjs +1 -1
- package/dist/cjs/components/fundamental/button.cjs +1 -1
- package/dist/cjs/components/fundamental/calendar.cjs +1 -1
- package/dist/cjs/components/fundamental/card.cjs +1 -1
- package/dist/cjs/components/fundamental/chart.cjs +1 -1
- package/dist/cjs/components/fundamental/checkbox.cjs +1 -1
- package/dist/cjs/components/fundamental/command.cjs +1 -1
- package/dist/cjs/components/fundamental/dialog.cjs +1 -1
- package/dist/cjs/components/fundamental/drawer.cjs +1 -1
- package/dist/cjs/components/fundamental/dropdown-menu.cjs +1 -1
- package/dist/cjs/components/fundamental/file-upload.cjs +1 -1
- package/dist/cjs/components/fundamental/hover-card.cjs +1 -1
- package/dist/cjs/components/fundamental/input-group.cjs +1 -1
- package/dist/cjs/components/fundamental/input.cjs +1 -1
- package/dist/cjs/components/fundamental/kbd.cjs +1 -1
- package/dist/cjs/components/fundamental/month-picker.cjs +1 -1
- package/dist/cjs/components/fundamental/popover.cjs +1 -1
- package/dist/cjs/components/fundamental/resizable.cjs +1 -1
- package/dist/cjs/components/fundamental/select.cjs +1 -1
- package/dist/cjs/components/fundamental/sheet.cjs +1 -1
- package/dist/cjs/components/fundamental/sidebar.cjs +1 -1
- package/dist/cjs/components/fundamental/skeleton.cjs +1 -1
- package/dist/cjs/components/fundamental/slider.cjs +1 -1
- package/dist/cjs/components/fundamental/spinner.cjs +1 -1
- package/dist/cjs/components/fundamental/switch.cjs +1 -1
- package/dist/cjs/components/fundamental/tabs.cjs +1 -1
- package/dist/cjs/components/fundamental/tag.cjs +3 -3
- package/dist/cjs/components/fundamental/textarea.cjs +1 -1
- package/dist/cjs/components/fundamental/toast.cjs +1 -1
- package/dist/cjs/components/fundamental/toggle.cjs +1 -1
- package/dist/cjs/components/fundamental/tooltip.cjs +1 -1
- package/dist/cjs/components/fundamental/tree.cjs +1 -1
- package/dist/cjs/components/product/activity-log.cjs +1 -1
- package/dist/cjs/components/product/app-frame.cjs +1 -1
- package/dist/cjs/components/product/attributes-list.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/data-table.cjs +1 -1
- package/dist/cjs/components/product/filters.cjs +1 -1
- package/dist/cjs/components/product/linked-chart.cjs +1 -1
- package/dist/es/components/fundamental/alert-dialog.js +10 -10
- package/dist/es/components/fundamental/alert.js +1 -1
- package/dist/es/components/fundamental/avatar.js +23 -23
- package/dist/es/components/fundamental/badge.js +1 -1
- package/dist/es/components/fundamental/breadcrumb.js +23 -23
- package/dist/es/components/fundamental/button-group.js +14 -14
- package/dist/es/components/fundamental/button.js +28 -28
- package/dist/es/components/fundamental/calendar.js +20 -20
- package/dist/es/components/fundamental/card.js +26 -26
- package/dist/es/components/fundamental/chart.js +1 -1
- package/dist/es/components/fundamental/checkbox.js +3 -3
- package/dist/es/components/fundamental/command.js +36 -36
- package/dist/es/components/fundamental/dialog.js +7 -7
- package/dist/es/components/fundamental/drawer.js +1 -1
- package/dist/es/components/fundamental/dropdown-menu.js +111 -111
- package/dist/es/components/fundamental/file-upload.js +2 -2
- package/dist/es/components/fundamental/hover-card.js +6 -6
- package/dist/es/components/fundamental/input-group.js +2 -2
- package/dist/es/components/fundamental/input.js +1 -1
- package/dist/es/components/fundamental/kbd.js +5 -5
- package/dist/es/components/fundamental/month-picker.js +21 -21
- package/dist/es/components/fundamental/popover.js +7 -7
- package/dist/es/components/fundamental/resizable.js +1 -1
- package/dist/es/components/fundamental/select.js +21 -21
- package/dist/es/components/fundamental/sheet.js +40 -40
- package/dist/es/components/fundamental/sidebar.js +45 -45
- package/dist/es/components/fundamental/skeleton.js +19 -19
- package/dist/es/components/fundamental/slider.js +1 -1
- package/dist/es/components/fundamental/spinner.js +11 -11
- package/dist/es/components/fundamental/switch.js +7 -7
- package/dist/es/components/fundamental/tabs.js +30 -30
- package/dist/es/components/fundamental/tag.js +28 -28
- package/dist/es/components/fundamental/textarea.js +9 -9
- package/dist/es/components/fundamental/toast.js +11 -11
- package/dist/es/components/fundamental/toggle.js +7 -7
- package/dist/es/components/fundamental/tooltip.js +4 -4
- package/dist/es/components/fundamental/tree.js +17 -17
- package/dist/es/components/product/activity-log.js +41 -41
- package/dist/es/components/product/app-frame.js +3 -3
- package/dist/es/components/product/attributes-list.js +68 -68
- package/dist/es/components/product/bookmarks.js +148 -148
- package/dist/es/components/product/data-table-settings-menu.js +45 -45
- package/dist/es/components/product/data-table.js +822 -816
- package/dist/es/components/product/filters.js +5 -5
- package/dist/es/components/product/linked-chart.js +24 -24
- package/dist/es/style.css +1 -1
- package/dist/types/components/product/data-table.d.cts +3 -1
- package/dist/types/components/product/data-table.d.ts +3 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { cva as m } from "class-variance-authority";
|
|
|
4
4
|
import { cn as c } from "../../lib/utils.js";
|
|
5
5
|
import { Icon as b } from "./icon.js";
|
|
6
6
|
const n = m(
|
|
7
|
-
"flex w-full rounded-m border transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-[var(--color-text-tertiary)] focus-visible:outline-none focus-visible:shadow-[0px_0px_0px_2px_rgba(0,95,133,0.2),0px_3px_4px_0px_rgba(0,14,20,0.03)] disabled:cursor-not-allowed disabled:opacity-50",
|
|
7
|
+
"flex w-full rounded-[var(--border-radius-m)] border transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-[var(--color-text-tertiary)] focus-visible:outline-none focus-visible:shadow-[0px_0px_0px_2px_rgba(0,95,133,0.2),0px_3px_4px_0px_rgba(0,14,20,0.03)] disabled:cursor-not-allowed disabled:opacity-50",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import { cva as
|
|
3
|
+
import { cva as d } from "class-variance-authority";
|
|
4
4
|
import { cn as o } from "../../lib/utils.js";
|
|
5
|
-
const
|
|
6
|
-
"inline-flex items-center justify-center rounded-xs font-mono font-medium transition-colors select-none relative",
|
|
5
|
+
const m = d(
|
|
6
|
+
"inline-flex items-center justify-center rounded-[var(--border-radius-xs)] font-mono font-medium transition-colors select-none relative",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
@@ -32,7 +32,7 @@ const d = m(
|
|
|
32
32
|
({ className: r, variant: e, size: a, ...i }, n) => /* @__PURE__ */ s(
|
|
33
33
|
"kbd",
|
|
34
34
|
{
|
|
35
|
-
className: o(
|
|
35
|
+
className: o(m({ variant: e, size: a, className: r })),
|
|
36
36
|
ref: n,
|
|
37
37
|
...i
|
|
38
38
|
}
|
|
@@ -53,5 +53,5 @@ c.displayName = "KbdGroup";
|
|
|
53
53
|
export {
|
|
54
54
|
p as Kbd,
|
|
55
55
|
c as KbdGroup,
|
|
56
|
-
|
|
56
|
+
m as kbdVariants
|
|
57
57
|
};
|
|
@@ -26,7 +26,7 @@ const W = {
|
|
|
26
26
|
yearHeader: "text-label-sm",
|
|
27
27
|
monthGridGap: "gap-[var(--space-xs)]",
|
|
28
28
|
monthButton: "px-[var(--space-xs)] py-[var(--space-s)] text-body-sm",
|
|
29
|
-
monthBorderRadius: "rounded-m"
|
|
29
|
+
monthBorderRadius: "rounded-[var(--border-radius-m)]"
|
|
30
30
|
},
|
|
31
31
|
small: {
|
|
32
32
|
container: "gap-[var(--space-s)]",
|
|
@@ -37,36 +37,36 @@ const W = {
|
|
|
37
37
|
yearHeader: "[&]:text-caption-medium-sm [&]:font-medium py-[var(--space-s)]",
|
|
38
38
|
monthGridGap: "gap-1",
|
|
39
39
|
monthButton: "px-1 py-[var(--space-xs)] [&]:text-caption-sm",
|
|
40
|
-
monthBorderRadius: "rounded-s"
|
|
40
|
+
monthBorderRadius: "rounded-[var(--border-radius-s)]"
|
|
41
41
|
}
|
|
42
|
-
},
|
|
43
|
-
const f =
|
|
44
|
-
if (
|
|
45
|
-
const i = n
|
|
42
|
+
}, a = (r) => new Date(r.getFullYear(), r.getMonth(), 1), X = (r) => r.toLocaleDateString("en-US", { month: "short" }), Z = (r) => Array.from({ length: 12 }, (n, o) => new Date(r, o, 1)), $ = (r, n, o, l) => {
|
|
43
|
+
const f = a(r);
|
|
44
|
+
if (n) {
|
|
45
|
+
const i = a(n);
|
|
46
46
|
if (f < i) return !0;
|
|
47
47
|
}
|
|
48
48
|
if (o) {
|
|
49
|
-
const i =
|
|
49
|
+
const i = a(o);
|
|
50
50
|
if (f > i) return !0;
|
|
51
51
|
}
|
|
52
52
|
if (l && l.length > 0) {
|
|
53
53
|
const i = f.getTime();
|
|
54
54
|
for (const g of l)
|
|
55
|
-
if (
|
|
55
|
+
if (a(g).getTime() === i)
|
|
56
56
|
return !0;
|
|
57
57
|
}
|
|
58
58
|
return !1;
|
|
59
|
-
}, B = (r,
|
|
60
|
-
if (!
|
|
61
|
-
const l =
|
|
59
|
+
}, B = (r, n, o) => {
|
|
60
|
+
if (!n) return !1;
|
|
61
|
+
const l = a(r).getTime(), f = a(n).getTime();
|
|
62
62
|
if (!o)
|
|
63
63
|
return l > f;
|
|
64
|
-
const i =
|
|
64
|
+
const i = a(o).getTime();
|
|
65
65
|
return l > f && l < i;
|
|
66
|
-
}, v = (r,
|
|
66
|
+
}, v = (r, n) => !r || !n ? !1 : a(r).getTime() === a(n).getTime(), ee = /* @__PURE__ */ p.forwardRef(
|
|
67
67
|
({
|
|
68
68
|
value: r,
|
|
69
|
-
onChange:
|
|
69
|
+
onChange: n,
|
|
70
70
|
mode: o,
|
|
71
71
|
size: l = "default",
|
|
72
72
|
yearCount: f,
|
|
@@ -75,8 +75,8 @@ const W = {
|
|
|
75
75
|
maxDate: C,
|
|
76
76
|
disabledDates: R,
|
|
77
77
|
className: Y,
|
|
78
|
-
monthLabelFormat:
|
|
79
|
-
yearLabelFormat:
|
|
78
|
+
monthLabelFormat: b,
|
|
79
|
+
yearLabelFormat: S,
|
|
80
80
|
enableNavigation: h = !1,
|
|
81
81
|
onYearNavigate: G
|
|
82
82
|
}, I) => {
|
|
@@ -90,14 +90,14 @@ const W = {
|
|
|
90
90
|
N(e), G?.(e);
|
|
91
91
|
}, P = (e) => {
|
|
92
92
|
if (o === "single") {
|
|
93
|
-
a(
|
|
93
|
+
n(a(e));
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
if (!c)
|
|
97
|
-
M(
|
|
97
|
+
M(a(e));
|
|
98
98
|
else {
|
|
99
99
|
const t = c < e ? c : e, m = c < e ? e : c;
|
|
100
|
-
|
|
100
|
+
n([a(t), a(m)]), M(null), x(null);
|
|
101
101
|
}
|
|
102
102
|
}, j = (e) => c || !r ? !1 : Array.isArray(r) ? v(e, r[0]) || v(e, r[1]) : v(e, r), q = (e) => {
|
|
103
103
|
if (c || !r || !Array.isArray(r)) return !1;
|
|
@@ -116,7 +116,7 @@ const W = {
|
|
|
116
116
|
}
|
|
117
117
|
),
|
|
118
118
|
/* @__PURE__ */ d("div", { className: u("flex flex-1", s.yearGridGap), children: D.map((e) => /* @__PURE__ */ T("div", { className: u("flex-1 flex flex-col", s.yearSectionGap), children: [
|
|
119
|
-
/* @__PURE__ */ d("div", { className: u(s.yearHeader, "text-[var(--color-text-primary)] text-center"), children:
|
|
119
|
+
/* @__PURE__ */ d("div", { className: u(s.yearHeader, "text-[var(--color-text-primary)] text-center"), children: S ? S(e) : e }),
|
|
120
120
|
/* @__PURE__ */ d("div", { className: u("grid grid-cols-3", s.monthGridGap), children: Z(e).map((t) => {
|
|
121
121
|
const m = $(t, g, C, R), L = j(t), U = q(t), V = F(t), J = v(t, c);
|
|
122
122
|
return /* @__PURE__ */ d(
|
|
@@ -137,7 +137,7 @@ const W = {
|
|
|
137
137
|
(U || V) && "bg-[var(--color-background-blue-subtle)] text-[var(--color-text-primary)]",
|
|
138
138
|
(L || J) && "!bg-[var(--color-background-blue-bold)] !text-[var(--color-text-on-action)]"
|
|
139
139
|
),
|
|
140
|
-
children:
|
|
140
|
+
children: b ? b(t) : X(t)
|
|
141
141
|
},
|
|
142
142
|
t.getTime()
|
|
143
143
|
);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r } 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 = /* @__PURE__ */ n.forwardRef(({ className:
|
|
5
|
+
const c = o.Root, f = o.Trigger, v = o.Anchor, m = /* @__PURE__ */ n.forwardRef(({ className: t, align: e = "center", sideOffset: a = 4, ...d }, i) => /* @__PURE__ */ r(o.Portal, { children: /* @__PURE__ */ r(
|
|
6
6
|
o.Content,
|
|
7
7
|
{
|
|
8
|
-
ref:
|
|
9
|
-
align:
|
|
8
|
+
ref: i,
|
|
9
|
+
align: e,
|
|
10
10
|
sideOffset: a,
|
|
11
11
|
className: s(
|
|
12
|
-
"z-50 w-[var(--radix-popover-trigger-width)] min-w-[16rem] overflow-hidden rounded-l border border-[var(--color-border-divider)] bg-[var(--color-surface-primary)] p-[var(--space-2xl)] text-[var(--color-text-primary)] shadow-
|
|
13
|
-
|
|
12
|
+
"z-50 w-[var(--radix-popover-trigger-width)] min-w-[16rem] overflow-hidden rounded-[var(--border-radius-l)] border border-[var(--color-border-divider)] bg-[var(--color-surface-primary)] p-[var(--space-2xl)] text-[var(--color-text-primary)] shadow-[var(--shadow-500)] outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
13
|
+
t
|
|
14
14
|
),
|
|
15
|
-
...
|
|
15
|
+
...d
|
|
16
16
|
}
|
|
17
17
|
) }));
|
|
18
18
|
m.displayName = o.Content.displayName;
|
|
@@ -26,7 +26,7 @@ const d = ({
|
|
|
26
26
|
a
|
|
27
27
|
),
|
|
28
28
|
...l,
|
|
29
|
-
children: r && /* @__PURE__ */ e("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-s border border-[var(--color-border-primary-subtle)] bg-[var(--color-background-secondary)]", children: /* @__PURE__ */ e(
|
|
29
|
+
children: r && /* @__PURE__ */ e("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-[var(--border-radius-s)] border border-[var(--color-border-primary-subtle)] bg-[var(--color-background-secondary)]", children: /* @__PURE__ */ e(
|
|
30
30
|
o,
|
|
31
31
|
{
|
|
32
32
|
name: "grip-vertical",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import * as e from "@radix-ui/react-select";
|
|
4
|
-
import { cva as
|
|
4
|
+
import { cva as d } from "class-variance-authority";
|
|
5
5
|
import { cn as s } from "../../lib/utils.js";
|
|
6
6
|
import { Icon as n } from "./icon.js";
|
|
7
|
-
import { ChevronUp as
|
|
8
|
-
const x =
|
|
9
|
-
"flex w-full items-center justify-between gap-[var(--space-xs)] rounded-s border bg-[var(--color-surface-primary)] text-[var(--color-text-primary)] transition-all duration-150 ease-in-out placeholder:text-[var(--color-text-tertiary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-100 disabled:bg-[var(--color-background-disabled)] disabled:text-[var(--color-text-disabled)]",
|
|
7
|
+
import { ChevronUp as u, ChevronDown as b, Check as f } from "lucide-react";
|
|
8
|
+
const x = d(
|
|
9
|
+
"flex w-full items-center justify-between gap-[var(--space-xs)] rounded-[var(--border-radius-s)] border bg-[var(--color-surface-primary)] text-[var(--color-text-primary)] transition-all duration-150 ease-in-out placeholder:text-[var(--color-text-tertiary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-100 disabled:bg-[var(--color-background-disabled)] disabled:text-[var(--color-text-disabled)]",
|
|
10
10
|
{
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
@@ -14,13 +14,13 @@ const x = i(
|
|
|
14
14
|
"border-[var(--color-interaction-border-input)]",
|
|
15
15
|
"enabled:hover:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
16
16
|
"enabled:hover:border-[var(--color-interaction-border-input-hovered)]",
|
|
17
|
-
"enabled:hover:shadow-
|
|
17
|
+
"enabled:hover:shadow-[var(--shadow-200)]"
|
|
18
18
|
],
|
|
19
19
|
error: [
|
|
20
20
|
"border-[var(--color-border-error-bold)]",
|
|
21
21
|
"enabled:hover:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
22
22
|
"enabled:hover:border-[var(--color-border-error-bold)]",
|
|
23
|
-
"enabled:hover:shadow-
|
|
23
|
+
"enabled:hover:shadow-[var(--shadow-200)]",
|
|
24
24
|
"focus-visible:border-[var(--color-border-error-bold)]"
|
|
25
25
|
]
|
|
26
26
|
},
|
|
@@ -35,20 +35,20 @@ const x = i(
|
|
|
35
35
|
size: "m"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
), h =
|
|
39
|
-
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-m border border-[var(--color-border-primary-medium)] bg-[var(--color-surface-primary)] text-[var(--color-text-primary)] shadow-[0px_0px_12px_-2px_rgba(0,14,20,0.08),0px_16px_24px_-8px_rgba(0,14,20,0.08),0px_4px_8px_-4px_rgba(0,14,20,0.04),0px_1px_1px_0px_rgba(0,14,20,0.02)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
|
|
40
|
-
), y =
|
|
41
|
-
"relative flex w-full cursor-default select-none items-center h-8 rounded-s outline-none focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 px-2 py-1 text-body-md",
|
|
38
|
+
), h = d(
|
|
39
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-[var(--border-radius-m)] border border-[var(--color-border-primary-medium)] bg-[var(--color-surface-primary)] text-[var(--color-text-primary)] shadow-[0px_0px_12px_-2px_rgba(0,14,20,0.08),0px_16px_24px_-8px_rgba(0,14,20,0.08),0px_4px_8px_-4px_rgba(0,14,20,0.04),0px_1px_1px_0px_rgba(0,14,20,0.02)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
|
|
40
|
+
), y = d(
|
|
41
|
+
"relative flex w-full cursor-default select-none items-center h-8 rounded-[var(--border-radius-s)] outline-none focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 px-2 py-1 text-body-md",
|
|
42
42
|
{
|
|
43
43
|
variants: {},
|
|
44
44
|
defaultVariants: {}
|
|
45
45
|
}
|
|
46
|
-
), g =
|
|
46
|
+
), g = d(
|
|
47
47
|
"px-2 py-1 [&]:text-body-medium-sm text-[var(--color-text-tertiary)]"
|
|
48
|
-
), w =
|
|
48
|
+
), w = d(
|
|
49
49
|
"h-px bg-[var(--color-border-primary-subtle)] my-[var(--space-xs)]"
|
|
50
|
-
), T = e.Root, L = e.Group, B = e.Value, N = /* @__PURE__ */ l.forwardRef(({ className: t, variant: o, size: a, children:
|
|
51
|
-
const
|
|
50
|
+
), T = e.Root, L = e.Group, B = e.Value, N = /* @__PURE__ */ l.forwardRef(({ className: t, variant: o, size: a, children: i, ...c }, p) => {
|
|
51
|
+
const v = a || "m";
|
|
52
52
|
return /* @__PURE__ */ m(
|
|
53
53
|
e.Trigger,
|
|
54
54
|
{
|
|
@@ -56,14 +56,14 @@ const x = i(
|
|
|
56
56
|
className: s(x({ variant: o, size: a }), t),
|
|
57
57
|
...c,
|
|
58
58
|
children: [
|
|
59
|
-
|
|
60
|
-
/* @__PURE__ */ r(e.Icon, { asChild: !0, children: /* @__PURE__ */ r(n, { name: b, size:
|
|
59
|
+
i,
|
|
60
|
+
/* @__PURE__ */ r(e.Icon, { asChild: !0, children: /* @__PURE__ */ r(n, { name: b, size: v }) })
|
|
61
61
|
]
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
});
|
|
65
65
|
N.displayName = e.Trigger.displayName;
|
|
66
|
-
const S = /* @__PURE__ */ l.forwardRef(({ className: t, children: o, position: a = "popper", modal:
|
|
66
|
+
const S = /* @__PURE__ */ l.forwardRef(({ className: t, children: o, position: a = "popper", modal: i = !1, ...c }, p) => /* @__PURE__ */ r(e.Portal, { children: /* @__PURE__ */ m(
|
|
67
67
|
e.Content,
|
|
68
68
|
{
|
|
69
69
|
ref: p,
|
|
@@ -75,7 +75,7 @@ const S = /* @__PURE__ */ l.forwardRef(({ className: t, children: o, position: a
|
|
|
75
75
|
position: a,
|
|
76
76
|
...c,
|
|
77
77
|
children: [
|
|
78
|
-
/* @__PURE__ */ r(e.ScrollUpButton, { className: "flex cursor-default items-center justify-center py-1", children: /* @__PURE__ */ r(n, { name:
|
|
78
|
+
/* @__PURE__ */ r(e.ScrollUpButton, { className: "flex cursor-default items-center justify-center py-1", children: /* @__PURE__ */ r(n, { name: u, size: "s" }) }),
|
|
79
79
|
/* @__PURE__ */ r(
|
|
80
80
|
e.Viewport,
|
|
81
81
|
{
|
|
@@ -91,15 +91,15 @@ const S = /* @__PURE__ */ l.forwardRef(({ className: t, children: o, position: a
|
|
|
91
91
|
}
|
|
92
92
|
) }));
|
|
93
93
|
S.displayName = e.Content.displayName;
|
|
94
|
-
const _ = /* @__PURE__ */ l.forwardRef(({ className: t, children: o, ...a },
|
|
94
|
+
const _ = /* @__PURE__ */ l.forwardRef(({ className: t, children: o, ...a }, i) => /* @__PURE__ */ m(
|
|
95
95
|
e.Item,
|
|
96
96
|
{
|
|
97
|
-
ref:
|
|
97
|
+
ref: i,
|
|
98
98
|
className: s(y(), t),
|
|
99
99
|
...a,
|
|
100
100
|
children: [
|
|
101
101
|
/* @__PURE__ */ r(e.ItemText, { children: o }),
|
|
102
|
-
/* @__PURE__ */ r("span", { className: "absolute right-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ r(e.ItemIndicator, { children: /* @__PURE__ */ r(n, { name:
|
|
102
|
+
/* @__PURE__ */ r("span", { className: "absolute right-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ r(e.ItemIndicator, { children: /* @__PURE__ */ r(n, { name: f, size: "s", color: "brand" }) }) })
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
));
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import * as a from "@radix-ui/react-dialog";
|
|
4
|
-
import { cva as
|
|
5
|
-
import { cn as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { X as
|
|
8
|
-
const c = i.createContext({ overlay: !1 }), C = ({ modal: t, overlay: e = !1, ...
|
|
4
|
+
import { cva as S } from "class-variance-authority";
|
|
5
|
+
import { cn as d } from "../../lib/utils.js";
|
|
6
|
+
import { Button as w } from "./button.js";
|
|
7
|
+
import { X as b } from "lucide-react";
|
|
8
|
+
const c = i.createContext({ overlay: !1 }), C = ({ modal: t, overlay: e = !1, ...s }) => /* @__PURE__ */ o(c.Provider, { value: { overlay: e }, children: /* @__PURE__ */ o(a.Root, { modal: t ?? e, ...s }) });
|
|
9
9
|
C.displayName = "Sheet";
|
|
10
|
-
const I = a.Trigger, X = a.Close, D = a.Portal, m = /* @__PURE__ */ i.forwardRef(({ className: t, ...e },
|
|
10
|
+
const I = a.Trigger, X = a.Close, D = a.Portal, m = /* @__PURE__ */ i.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ o(
|
|
11
11
|
a.Overlay,
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
13
|
+
className: d(
|
|
14
14
|
"fixed inset-0 z-50 bg-[var(--color-background-blanket)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
15
15
|
t
|
|
16
16
|
),
|
|
17
17
|
...e,
|
|
18
|
-
ref:
|
|
18
|
+
ref: s
|
|
19
19
|
}
|
|
20
20
|
));
|
|
21
21
|
m.displayName = a.Overlay.displayName;
|
|
22
|
-
const O =
|
|
23
|
-
"fixed z-50 gap-[var(--space-l)] bg-[var(--color-surface-primary)] p-[var(--space-3xl)] shadow-
|
|
22
|
+
const O = S(
|
|
23
|
+
"fixed z-50 gap-[var(--space-l)] bg-[var(--color-surface-primary)] p-[var(--space-3xl)] shadow-[var(--shadow-500)] transition ease-in-out overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
24
24
|
{
|
|
25
25
|
variants: {
|
|
26
26
|
side: {
|
|
27
|
-
top: "inset-x-[var(--space-s)] top-[var(--space-s)] rounded-
|
|
28
|
-
bottom: "inset-x-[var(--space-s)] bottom-[var(--space-s)] rounded-
|
|
29
|
-
left: "inset-y-[var(--space-s)] left-[var(--space-s)] rounded-
|
|
30
|
-
right: "inset-y-[var(--space-s)] right-[var(--space-s)] rounded-
|
|
27
|
+
top: "inset-x-[var(--space-s)] top-[var(--space-s)] rounded-[var(--border-radius-m)] data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
28
|
+
bottom: "inset-x-[var(--space-s)] bottom-[var(--space-s)] rounded-[var(--border-radius-m)] data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
29
|
+
left: "inset-y-[var(--space-s)] left-[var(--space-s)] rounded-[var(--border-radius-m)] w-3/4 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
30
|
+
right: "inset-y-[var(--space-s)] right-[var(--space-s)] rounded-[var(--border-radius-m)] w-3/4 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
defaultVariants: {
|
|
34
34
|
side: "right"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
), P = /* @__PURE__ */ i.forwardRef(({ side: t = "right", className: e, children:
|
|
38
|
-
const
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
-
|
|
41
|
-
/* @__PURE__ */
|
|
37
|
+
), P = /* @__PURE__ */ i.forwardRef(({ side: t = "right", className: e, children: s, showClose: p = !0, dismissible: n = !0, overlay: f, onPointerDownOutside: v, onInteractOutside: u, onFocusOutside: h, ...x }, y) => {
|
|
38
|
+
const N = i.useContext(c), g = f ?? N.overlay;
|
|
39
|
+
return /* @__PURE__ */ l(D, { children: [
|
|
40
|
+
g && /* @__PURE__ */ o(m, {}),
|
|
41
|
+
/* @__PURE__ */ l(
|
|
42
42
|
a.Content,
|
|
43
43
|
{
|
|
44
|
-
ref:
|
|
45
|
-
className:
|
|
46
|
-
...
|
|
47
|
-
onPointerDownOutside: (
|
|
48
|
-
|
|
44
|
+
ref: y,
|
|
45
|
+
className: d(O({ side: t }), e),
|
|
46
|
+
...x,
|
|
47
|
+
onPointerDownOutside: (r) => {
|
|
48
|
+
n || r.preventDefault(), v?.(r);
|
|
49
49
|
},
|
|
50
|
-
onInteractOutside: (
|
|
51
|
-
|
|
50
|
+
onInteractOutside: (r) => {
|
|
51
|
+
n || r.preventDefault(), u?.(r);
|
|
52
52
|
},
|
|
53
|
-
onFocusOutside: (
|
|
54
|
-
|
|
53
|
+
onFocusOutside: (r) => {
|
|
54
|
+
n || r.preventDefault(), h?.(r);
|
|
55
55
|
},
|
|
56
56
|
children: [
|
|
57
|
-
|
|
57
|
+
s,
|
|
58
58
|
p && /* @__PURE__ */ o(a.Close, { asChild: !0, children: /* @__PURE__ */ o(
|
|
59
|
-
|
|
59
|
+
w,
|
|
60
60
|
{
|
|
61
61
|
variant: "default",
|
|
62
62
|
size: "m",
|
|
63
|
-
icon:
|
|
63
|
+
icon: b,
|
|
64
64
|
iconPosition: "only",
|
|
65
65
|
className: "absolute right-[var(--space-l)] top-[var(--space-l)]",
|
|
66
66
|
children: /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
@@ -78,7 +78,7 @@ const R = ({
|
|
|
78
78
|
}) => /* @__PURE__ */ o(
|
|
79
79
|
"div",
|
|
80
80
|
{
|
|
81
|
-
className:
|
|
81
|
+
className: d(
|
|
82
82
|
"flex flex-col space-y-[var(--space-s)] text-center sm:text-left",
|
|
83
83
|
t
|
|
84
84
|
),
|
|
@@ -92,7 +92,7 @@ const T = ({
|
|
|
92
92
|
}) => /* @__PURE__ */ o(
|
|
93
93
|
"div",
|
|
94
94
|
{
|
|
95
|
-
className:
|
|
95
|
+
className: d(
|
|
96
96
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-[var(--space-s)]",
|
|
97
97
|
t
|
|
98
98
|
),
|
|
@@ -100,11 +100,11 @@ const T = ({
|
|
|
100
100
|
}
|
|
101
101
|
);
|
|
102
102
|
T.displayName = "SheetFooter";
|
|
103
|
-
const j = /* @__PURE__ */ i.forwardRef(({ className: t, ...e },
|
|
103
|
+
const j = /* @__PURE__ */ i.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ o(
|
|
104
104
|
a.Title,
|
|
105
105
|
{
|
|
106
|
-
ref:
|
|
107
|
-
className:
|
|
106
|
+
ref: s,
|
|
107
|
+
className: d(
|
|
108
108
|
"text-heading-lg text-[var(--color-text-primary)]",
|
|
109
109
|
t
|
|
110
110
|
),
|
|
@@ -112,11 +112,11 @@ const j = /* @__PURE__ */ i.forwardRef(({ className: t, ...e }, r) => /* @__PURE
|
|
|
112
112
|
}
|
|
113
113
|
));
|
|
114
114
|
j.displayName = a.Title.displayName;
|
|
115
|
-
const z = /* @__PURE__ */ i.forwardRef(({ className: t, ...e },
|
|
115
|
+
const z = /* @__PURE__ */ i.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ o(
|
|
116
116
|
a.Description,
|
|
117
117
|
{
|
|
118
|
-
ref:
|
|
119
|
-
className:
|
|
118
|
+
ref: s,
|
|
119
|
+
className: d("text-body-md text-[var(--color-text-secondary)]", t),
|
|
120
120
|
...e
|
|
121
121
|
}
|
|
122
122
|
));
|