@rafal.lemieszewski/tide-ui 0.87.6 → 0.87.8
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 +181 -191
- 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 +375 -375
- 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/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as i from "@radix-ui/react-dropdown-menu";
|
|
4
4
|
import { ChevronLeft as z, ChevronRight as h, Check as g, Circle as w } from "lucide-react";
|
|
5
5
|
import { cn as u } from "../../lib/utils.js";
|
|
6
6
|
import { useIsDesktop as j } from "../../lib/hooks.js";
|
|
7
7
|
import { Drawer as _, DrawerTrigger as P, DrawerContent as B, DrawerClose as y } from "./drawer.js";
|
|
8
8
|
import { Icon as x } from "./icon.js";
|
|
9
|
-
const W =
|
|
10
|
-
|
|
9
|
+
const W = i.Root, $ = i.Trigger, ie = i.Group, E = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, children: e, ...a }, s) => /* @__PURE__ */ v(
|
|
10
|
+
i.SubTrigger,
|
|
11
11
|
{
|
|
12
12
|
ref: s,
|
|
13
13
|
className: u(
|
|
14
|
-
"text-body-md flex [&]:cursor-pointer select-none items-center rounded-m px-[var(--space-m)] h-[var(--size-m)] outline-none focus:bg-[var(--color-background-neutral-subtlest-hovered)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] data-[state=open]:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
14
|
+
"text-body-md flex [&]:cursor-pointer select-none items-center rounded-[var(--border-radius-m)] px-[var(--space-m)] h-[var(--size-m)] outline-none focus:bg-[var(--color-background-neutral-subtlest-hovered)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] data-[state=open]:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
15
15
|
o && "pl-8",
|
|
16
16
|
t
|
|
17
17
|
),
|
|
@@ -22,38 +22,38 @@ const W = c.Root, $ = c.Trigger, ce = c.Group, E = /* @__PURE__ */ n.forwardRef(
|
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
));
|
|
25
|
-
E.displayName =
|
|
25
|
+
E.displayName = i.SubTrigger.displayName;
|
|
26
26
|
const G = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
|
|
27
|
-
|
|
27
|
+
i.SubContent,
|
|
28
28
|
{
|
|
29
29
|
ref: e,
|
|
30
30
|
className: u(
|
|
31
|
-
"z-50 min-w-[12rem] overflow-hidden rounded-l border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] p-[var(--space-xs)] text-[var(--color-text-primary)] shadow-
|
|
31
|
+
"z-50 min-w-[12rem] overflow-hidden rounded-[var(--border-radius-l)] border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] p-[var(--space-xs)] text-[var(--color-text-primary)] shadow-[var(--shadow-400)] 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",
|
|
32
32
|
t
|
|
33
33
|
),
|
|
34
34
|
...o
|
|
35
35
|
}
|
|
36
36
|
));
|
|
37
|
-
G.displayName =
|
|
38
|
-
const k = /* @__PURE__ */ n.forwardRef(({ className: t, sideOffset: o = 4, ...e }, a) => /* @__PURE__ */ r(
|
|
39
|
-
|
|
37
|
+
G.displayName = i.SubContent.displayName;
|
|
38
|
+
const k = /* @__PURE__ */ n.forwardRef(({ className: t, sideOffset: o = 4, ...e }, a) => /* @__PURE__ */ r(i.Portal, { children: /* @__PURE__ */ r(
|
|
39
|
+
i.Content,
|
|
40
40
|
{
|
|
41
41
|
ref: a,
|
|
42
42
|
sideOffset: o,
|
|
43
43
|
className: u(
|
|
44
|
-
"z-50 min-w-[16rem] overflow-hidden rounded-l border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] p-[var(--space-s)] text-[var(--color-text-primary)] shadow-
|
|
44
|
+
"z-50 min-w-[16rem] overflow-hidden rounded-[var(--border-radius-l)] border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] p-[var(--space-s)] text-[var(--color-text-primary)] shadow-[var(--shadow-500)] 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",
|
|
45
45
|
t
|
|
46
46
|
),
|
|
47
47
|
...e
|
|
48
48
|
}
|
|
49
49
|
) }));
|
|
50
|
-
k.displayName =
|
|
51
|
-
const N = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, children: s, ...l },
|
|
52
|
-
|
|
50
|
+
k.displayName = i.Content.displayName;
|
|
51
|
+
const N = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, children: s, ...l }, c) => /* @__PURE__ */ v(
|
|
52
|
+
i.Item,
|
|
53
53
|
{
|
|
54
|
-
ref:
|
|
54
|
+
ref: c,
|
|
55
55
|
className: u(
|
|
56
|
-
"[&]:text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-m px-[var(--space-m)] h-[var(--size-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] [&]:data-[disabled]:!cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:bg-transparent data-[disabled]:focus:bg-transparent [&[data-disabled]_*]:!cursor-not-allowed",
|
|
56
|
+
"[&]:text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-[var(--border-radius-m)] px-[var(--space-m)] h-[var(--size-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] [&]:data-[disabled]:!cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:bg-transparent data-[disabled]:focus:bg-transparent [&[data-disabled]_*]:!cursor-not-allowed",
|
|
57
57
|
e && "text-[var(--color-text-error-bold)] hover:text-[var(--color-text-error-bold)] focus:text-[var(--color-text-error-bold)] hover:bg-[var(--color-background-error-subtle)] focus:bg-[var(--color-background-error-subtle)] [&>svg]:text-[var(--color-icon-error-bold)]",
|
|
58
58
|
o && "pl-8",
|
|
59
59
|
t
|
|
@@ -65,44 +65,44 @@ const N = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e
|
|
|
65
65
|
]
|
|
66
66
|
}
|
|
67
67
|
));
|
|
68
|
-
N.displayName =
|
|
69
|
-
const V = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, ...a }, s) => /* @__PURE__ */
|
|
70
|
-
|
|
68
|
+
N.displayName = i.Item.displayName;
|
|
69
|
+
const V = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, ...a }, s) => /* @__PURE__ */ v(
|
|
70
|
+
i.CheckboxItem,
|
|
71
71
|
{
|
|
72
72
|
ref: s,
|
|
73
73
|
className: u(
|
|
74
|
-
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-m h-[var(--size-m)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] [&]:data-[disabled]:!cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:bg-transparent data-[disabled]:focus:bg-transparent [&[data-disabled]_*]:!cursor-not-allowed",
|
|
74
|
+
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-[var(--border-radius-m)] h-[var(--size-m)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] [&]:data-[disabled]:!cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:bg-transparent data-[disabled]:focus:bg-transparent [&[data-disabled]_*]:!cursor-not-allowed",
|
|
75
75
|
t
|
|
76
76
|
),
|
|
77
77
|
checked: e,
|
|
78
78
|
onSelect: (l) => l.preventDefault(),
|
|
79
79
|
...a,
|
|
80
80
|
children: [
|
|
81
|
-
/* @__PURE__ */ r("span", { className: "absolute left-[var(--space-m)] flex h-4 w-4 items-center justify-center rounded-s border border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)]", children: /* @__PURE__ */ r(
|
|
81
|
+
/* @__PURE__ */ r("span", { className: "absolute left-[var(--space-m)] flex h-4 w-4 items-center justify-center rounded-[var(--border-radius-s)] border border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)]", children: /* @__PURE__ */ r(i.ItemIndicator, { children: /* @__PURE__ */ r("div", { className: "h-4 w-4 rounded-[var(--border-radius-s)] border border-[var(--color-background-blue-bold)] bg-[var(--color-background-blue-bold)] flex items-center justify-center", children: /* @__PURE__ */ r(g, { className: "h-3 w-3 text-[var(--color-text-on-action)]" }) }) }) }),
|
|
82
82
|
o
|
|
83
83
|
]
|
|
84
84
|
}
|
|
85
85
|
));
|
|
86
|
-
V.displayName =
|
|
87
|
-
const A = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a) => /* @__PURE__ */
|
|
88
|
-
|
|
86
|
+
V.displayName = i.CheckboxItem.displayName;
|
|
87
|
+
const A = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a) => /* @__PURE__ */ v(
|
|
88
|
+
i.RadioItem,
|
|
89
89
|
{
|
|
90
90
|
ref: a,
|
|
91
91
|
className: u(
|
|
92
|
-
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-m h-[var(--size-m)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] [&]:data-[disabled]:!cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:bg-transparent data-[disabled]:focus:bg-transparent [&[data-disabled]_*]:!cursor-not-allowed [&[data-state=checked]_span]:border-[var(--color-border-brand-bold)] [&[data-state=checked]_span]:bg-[var(--color-background-blue-bold)] [&[data-state=checked]_span]:text-[var(--color-text-on-action)]",
|
|
92
|
+
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-[var(--border-radius-m)] h-[var(--size-m)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] [&]:data-[disabled]:!cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:bg-transparent data-[disabled]:focus:bg-transparent [&[data-disabled]_*]:!cursor-not-allowed [&[data-state=checked]_span]:border-[var(--color-border-brand-bold)] [&[data-state=checked]_span]:bg-[var(--color-background-blue-bold)] [&[data-state=checked]_span]:text-[var(--color-text-on-action)]",
|
|
93
93
|
t
|
|
94
94
|
),
|
|
95
95
|
onSelect: (s) => s.preventDefault(),
|
|
96
96
|
...e,
|
|
97
97
|
children: [
|
|
98
|
-
/* @__PURE__ */ r("span", { className: "absolute left-[var(--space-m)] flex h-4 w-4 items-center justify-center rounded-full border-2 border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)]", children: /* @__PURE__ */ r(
|
|
98
|
+
/* @__PURE__ */ r("span", { className: "absolute left-[var(--space-m)] flex h-4 w-4 items-center justify-center rounded-full border-2 border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)]", children: /* @__PURE__ */ r(i.ItemIndicator, { className: "flex h-full w-full items-center justify-center rounded-full text-current", children: /* @__PURE__ */ r(w, { className: "h-[6px] w-[6px] fill-current" }) }) }),
|
|
99
99
|
o
|
|
100
100
|
]
|
|
101
101
|
}
|
|
102
102
|
));
|
|
103
|
-
A.displayName =
|
|
103
|
+
A.displayName = i.RadioItem.displayName;
|
|
104
104
|
const H = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */ r(
|
|
105
|
-
|
|
105
|
+
i.Label,
|
|
106
106
|
{
|
|
107
107
|
ref: a,
|
|
108
108
|
className: u(
|
|
@@ -113,23 +113,23 @@ const H = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) =>
|
|
|
113
113
|
...e
|
|
114
114
|
}
|
|
115
115
|
));
|
|
116
|
-
H.displayName =
|
|
116
|
+
H.displayName = i.Label.displayName;
|
|
117
117
|
const X = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ r(
|
|
118
|
-
|
|
118
|
+
i.Separator,
|
|
119
119
|
{
|
|
120
120
|
ref: e,
|
|
121
121
|
className: u("-mx-2 my-[var(--space-s)] h-px bg-[var(--color-border-primary-subtle)]", t),
|
|
122
122
|
...o
|
|
123
123
|
}
|
|
124
124
|
));
|
|
125
|
-
X.displayName =
|
|
126
|
-
const D = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s = !0, onSelect: l, children:
|
|
127
|
-
const
|
|
125
|
+
X.displayName = i.Separator.displayName;
|
|
126
|
+
const D = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s = !0, onSelect: l, children: c, ...m }, d) => {
|
|
127
|
+
const b = /* @__PURE__ */ v(
|
|
128
128
|
"div",
|
|
129
129
|
{
|
|
130
130
|
ref: d,
|
|
131
131
|
className: u(
|
|
132
|
-
"[&]:text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-m px-[var(--space-m)] h-[var(--size-l)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] active:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
132
|
+
"[&]:text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-[var(--border-radius-m)] px-[var(--space-m)] h-[var(--size-l)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] active:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
133
133
|
e && "text-[var(--color-text-error-bold)] hover:text-[var(--color-text-error-bold)] focus:text-[var(--color-text-error-bold)] hover:bg-[var(--color-background-error-subtle)] focus:bg-[var(--color-background-error-subtle)] [&>svg]:text-[var(--color-icon-error-bold)]",
|
|
134
134
|
o && "pl-8",
|
|
135
135
|
t
|
|
@@ -137,23 +137,23 @@ const D = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e
|
|
|
137
137
|
onClick: (f) => l?.(f.nativeEvent),
|
|
138
138
|
role: "menuitem",
|
|
139
139
|
tabIndex: 0,
|
|
140
|
-
...
|
|
140
|
+
...m,
|
|
141
141
|
children: [
|
|
142
142
|
a && /* @__PURE__ */ r(x, { name: a, size: "m", className: "mr-2" }),
|
|
143
|
-
|
|
143
|
+
c
|
|
144
144
|
]
|
|
145
145
|
}
|
|
146
146
|
);
|
|
147
|
-
return s ? /* @__PURE__ */ r(y, { asChild: !0, children:
|
|
147
|
+
return s ? /* @__PURE__ */ r(y, { asChild: !0, children: b }) : b;
|
|
148
148
|
});
|
|
149
149
|
D.displayName = "MobileDropdownItem";
|
|
150
|
-
const C = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, autoClose: a = !1, onCheckedChange: s, ...l },
|
|
151
|
-
const
|
|
150
|
+
const C = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, autoClose: a = !1, onCheckedChange: s, ...l }, c) => {
|
|
151
|
+
const m = /* @__PURE__ */ v(
|
|
152
152
|
"div",
|
|
153
153
|
{
|
|
154
|
-
ref:
|
|
154
|
+
ref: c,
|
|
155
155
|
className: u(
|
|
156
|
-
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-m h-[var(--size-l)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] active:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
156
|
+
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-[var(--border-radius-m)] h-[var(--size-l)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] active:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
157
157
|
t
|
|
158
158
|
),
|
|
159
159
|
onClick: () => s?.(!e),
|
|
@@ -162,28 +162,28 @@ const C = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e,
|
|
|
162
162
|
tabIndex: 0,
|
|
163
163
|
...l,
|
|
164
164
|
children: [
|
|
165
|
-
/* @__PURE__ */ r("span", { className: "absolute left-[var(--space-m)] flex h-4 w-4 items-center justify-center rounded-s border border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)]", children: e && /* @__PURE__ */ r("div", { className: "h-4 w-4 rounded-s border border-[var(--color-background-blue-bold)] bg-[var(--color-background-blue-bold)] flex items-center justify-center", children: /* @__PURE__ */ r(g, { className: "h-3 w-3 text-[var(--color-text-on-action)]" }) }) }),
|
|
165
|
+
/* @__PURE__ */ r("span", { className: "absolute left-[var(--space-m)] flex h-4 w-4 items-center justify-center rounded-[var(--border-radius-s)] border border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)]", children: e && /* @__PURE__ */ r("div", { className: "h-4 w-4 rounded-[var(--border-radius-s)] border border-[var(--color-background-blue-bold)] bg-[var(--color-background-blue-bold)] flex items-center justify-center", children: /* @__PURE__ */ r(g, { className: "h-3 w-3 text-[var(--color-text-on-action)]" }) }) }),
|
|
166
166
|
o
|
|
167
167
|
]
|
|
168
168
|
}
|
|
169
169
|
);
|
|
170
|
-
return a ? /* @__PURE__ */ r(y, { asChild: !0, children:
|
|
170
|
+
return a ? /* @__PURE__ */ r(y, { asChild: !0, children: m }) : m;
|
|
171
171
|
});
|
|
172
172
|
C.displayName = "MobileDropdownCheckboxItem";
|
|
173
|
-
const M = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, checked: a, icon: s, autoClose: l = !0, onRadioSelect:
|
|
174
|
-
const
|
|
173
|
+
const M = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, checked: a, icon: s, autoClose: l = !0, onRadioSelect: c, ...m }, d) => {
|
|
174
|
+
const b = /* @__PURE__ */ v(
|
|
175
175
|
"div",
|
|
176
176
|
{
|
|
177
177
|
ref: d,
|
|
178
178
|
className: u(
|
|
179
|
-
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-m h-[var(--size-l)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] active:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
179
|
+
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-[var(--border-radius-m)] h-[var(--size-l)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] active:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
180
180
|
t
|
|
181
181
|
),
|
|
182
|
-
onClick: () =>
|
|
182
|
+
onClick: () => c?.(e),
|
|
183
183
|
role: "menuitemradio",
|
|
184
184
|
"aria-checked": a,
|
|
185
185
|
tabIndex: 0,
|
|
186
|
-
...
|
|
186
|
+
...m,
|
|
187
187
|
children: [
|
|
188
188
|
/* @__PURE__ */ r("span", { className: u(
|
|
189
189
|
"absolute left-[var(--space-m)] flex h-4 w-4 items-center justify-center rounded-full border-2 border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)]",
|
|
@@ -194,7 +194,7 @@ const M = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, c
|
|
|
194
194
|
]
|
|
195
195
|
}
|
|
196
196
|
);
|
|
197
|
-
return l ? /* @__PURE__ */ r(y, { asChild: !0, children:
|
|
197
|
+
return l ? /* @__PURE__ */ r(y, { asChild: !0, children: b }) : b;
|
|
198
198
|
});
|
|
199
199
|
M.displayName = "MobileDropdownRadioItem";
|
|
200
200
|
const R = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => /* @__PURE__ */ r(
|
|
@@ -220,11 +220,11 @@ const I = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => /* @__PURE
|
|
|
220
220
|
}
|
|
221
221
|
));
|
|
222
222
|
I.displayName = "MobileDropdownSeparator";
|
|
223
|
-
const
|
|
223
|
+
const p = n.createContext({ isDesktop: !0 }), ce = ({ children: t }) => {
|
|
224
224
|
const o = j(), e = n.useMemo(() => ({ isDesktop: o }), [o]);
|
|
225
|
-
return o ? /* @__PURE__ */ r(
|
|
225
|
+
return o ? /* @__PURE__ */ r(p.Provider, { value: e, children: /* @__PURE__ */ r(W, { children: t }) }) : /* @__PURE__ */ r(p.Provider, { value: e, children: /* @__PURE__ */ r(K, { children: /* @__PURE__ */ r(_, { children: t }) }) });
|
|
226
226
|
}, q = /* @__PURE__ */ n.forwardRef(({ className: t, sideOffset: o = 4, children: e, ...a }, s) => {
|
|
227
|
-
const { isDesktop: l } = n.useContext(
|
|
227
|
+
const { isDesktop: l } = n.useContext(p);
|
|
228
228
|
return l ? /* @__PURE__ */ r(
|
|
229
229
|
k,
|
|
230
230
|
{
|
|
@@ -234,7 +234,7 @@ const v = n.createContext({ isDesktop: !0 }), ie = ({ children: t }) => {
|
|
|
234
234
|
...a,
|
|
235
235
|
children: e
|
|
236
236
|
}
|
|
237
|
-
) : /* @__PURE__ */
|
|
237
|
+
) : /* @__PURE__ */ v(
|
|
238
238
|
B,
|
|
239
239
|
{
|
|
240
240
|
ref: s,
|
|
@@ -253,7 +253,7 @@ const v = n.createContext({ isDesktop: !0 }), ie = ({ children: t }) => {
|
|
|
253
253
|
});
|
|
254
254
|
q.displayName = "ResponsiveDropdownMenuContent";
|
|
255
255
|
const F = /* @__PURE__ */ n.forwardRef(({ asChild: t, children: o, ...e }, a) => {
|
|
256
|
-
const { isDesktop: s } = n.useContext(
|
|
256
|
+
const { isDesktop: s } = n.useContext(p);
|
|
257
257
|
if (s)
|
|
258
258
|
return /* @__PURE__ */ r($, { ref: a, asChild: t, ...e, children: o });
|
|
259
259
|
const l = t ? {} : {
|
|
@@ -298,10 +298,10 @@ const J = n.createContext({}), S = n.createContext({
|
|
|
298
298
|
levels: [],
|
|
299
299
|
currentLevelIndex: 0,
|
|
300
300
|
isTransitioning: !1
|
|
301
|
-
}), a = n.useCallback((d,
|
|
301
|
+
}), a = n.useCallback((d, b) => {
|
|
302
302
|
e((f) => {
|
|
303
303
|
const T = {
|
|
304
|
-
id: `${
|
|
304
|
+
id: `${b}-${Date.now()}`,
|
|
305
305
|
...d
|
|
306
306
|
};
|
|
307
307
|
return {
|
|
@@ -321,23 +321,23 @@ const J = n.createContext({}), S = n.createContext({
|
|
|
321
321
|
e((d) => ({ ...d, isTransitioning: !1 }));
|
|
322
322
|
}, 300);
|
|
323
323
|
}, []), l = n.useCallback((d) => {
|
|
324
|
-
e((
|
|
325
|
-
...
|
|
326
|
-
levels:
|
|
324
|
+
e((b) => ({
|
|
325
|
+
...b,
|
|
326
|
+
levels: b.levels.some((f) => f.id === d.id) ? b.levels : [...b.levels, d]
|
|
327
327
|
}));
|
|
328
|
-
}, []),
|
|
328
|
+
}, []), c = n.useCallback((d) => o.levels[o.currentLevelIndex]?.id === d, [o]), m = n.useMemo(() => ({
|
|
329
329
|
navigationState: o,
|
|
330
330
|
navigateToSubmenu: a,
|
|
331
331
|
navigateBack: s,
|
|
332
332
|
registerMenuLevel: l,
|
|
333
|
-
isCurrentLevel:
|
|
334
|
-
}), [o, a, s, l,
|
|
335
|
-
return /* @__PURE__ */ r(S.Provider, { value:
|
|
333
|
+
isCurrentLevel: c
|
|
334
|
+
}), [o, a, s, l, c]);
|
|
335
|
+
return /* @__PURE__ */ r(S.Provider, { value: m, children: t });
|
|
336
336
|
}, O = ({ children: t }) => {
|
|
337
|
-
const { navigationState: o, navigateBack: e } = n.useContext(S), { levels: a, currentLevelIndex: s, isTransitioning: l } = o,
|
|
338
|
-
return /* @__PURE__ */
|
|
339
|
-
!(s === 0) &&
|
|
340
|
-
/* @__PURE__ */
|
|
337
|
+
const { navigationState: o, navigateBack: e } = n.useContext(S), { levels: a, currentLevelIndex: s, isTransitioning: l } = o, c = a[s];
|
|
338
|
+
return /* @__PURE__ */ v("div", { className: "relative overflow-hidden h-full", children: [
|
|
339
|
+
!(s === 0) && c && /* @__PURE__ */ v("div", { className: "flex items-center px-[var(--space-m)] pt-[var(--space-s)] pb-[var(--space-m)] border-b border-[var(--color-border-primary-subtle)]", children: [
|
|
340
|
+
/* @__PURE__ */ v(
|
|
341
341
|
"button",
|
|
342
342
|
{
|
|
343
343
|
onClick: e,
|
|
@@ -348,7 +348,7 @@ const J = n.createContext({}), S = n.createContext({
|
|
|
348
348
|
]
|
|
349
349
|
}
|
|
350
350
|
),
|
|
351
|
-
|
|
351
|
+
c.title && /* @__PURE__ */ r("h3", { className: "text-heading-sm text-[var(--color-text-primary)] ml-[var(--space-m)]", children: c.title })
|
|
352
352
|
] }),
|
|
353
353
|
/* @__PURE__ */ r(
|
|
354
354
|
"div",
|
|
@@ -360,7 +360,7 @@ const J = n.createContext({}), S = n.createContext({
|
|
|
360
360
|
style: {
|
|
361
361
|
transform: `translateX(-${s * 100}%)`
|
|
362
362
|
},
|
|
363
|
-
children: /* @__PURE__ */
|
|
363
|
+
children: /* @__PURE__ */ v("div", { className: "flex", children: [
|
|
364
364
|
/* @__PURE__ */ r(
|
|
365
365
|
"div",
|
|
366
366
|
{
|
|
@@ -369,7 +369,7 @@ const J = n.createContext({}), S = n.createContext({
|
|
|
369
369
|
children: t
|
|
370
370
|
}
|
|
371
371
|
),
|
|
372
|
-
a.map((d,
|
|
372
|
+
a.map((d, b) => b > 0 && /* @__PURE__ */ r(
|
|
373
373
|
"div",
|
|
374
374
|
{
|
|
375
375
|
className: "w-full flex-shrink-0",
|
|
@@ -382,18 +382,18 @@ const J = n.createContext({}), S = n.createContext({
|
|
|
382
382
|
}
|
|
383
383
|
)
|
|
384
384
|
] });
|
|
385
|
-
}, Q = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s, onSelect: l, ...
|
|
386
|
-
const { isDesktop: d } = n.useContext(
|
|
385
|
+
}, Q = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, destructive: e, icon: a, autoClose: s, onSelect: l, ...c }, m) => {
|
|
386
|
+
const { isDesktop: d } = n.useContext(p);
|
|
387
387
|
return d ? /* @__PURE__ */ r(
|
|
388
388
|
N,
|
|
389
389
|
{
|
|
390
|
-
ref:
|
|
390
|
+
ref: m,
|
|
391
391
|
className: t,
|
|
392
392
|
inset: o,
|
|
393
393
|
destructive: e,
|
|
394
394
|
icon: a,
|
|
395
395
|
onSelect: l,
|
|
396
|
-
...
|
|
396
|
+
...c
|
|
397
397
|
}
|
|
398
398
|
) : /* @__PURE__ */ r(
|
|
399
399
|
D,
|
|
@@ -404,19 +404,19 @@ const J = n.createContext({}), S = n.createContext({
|
|
|
404
404
|
icon: a,
|
|
405
405
|
autoClose: s,
|
|
406
406
|
onSelect: l,
|
|
407
|
-
...
|
|
407
|
+
...c
|
|
408
408
|
}
|
|
409
409
|
);
|
|
410
410
|
});
|
|
411
411
|
Q.displayName = "ResponsiveDropdownMenuItem";
|
|
412
|
-
const U = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, autoClose: a, onCheckedChange: s, ...l },
|
|
413
|
-
const { isDesktop:
|
|
414
|
-
return
|
|
415
|
-
|
|
412
|
+
const U = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e, autoClose: a, onCheckedChange: s, ...l }, c) => {
|
|
413
|
+
const { isDesktop: m } = n.useContext(p);
|
|
414
|
+
return m ? /* @__PURE__ */ v(
|
|
415
|
+
i.CheckboxItem,
|
|
416
416
|
{
|
|
417
|
-
ref:
|
|
417
|
+
ref: c,
|
|
418
418
|
className: u(
|
|
419
|
-
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-m h-[var(--size-m)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] [&]:data-[disabled]:!cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:bg-transparent data-[disabled]:focus:bg-transparent [&[data-disabled]_*]:!cursor-not-allowed",
|
|
419
|
+
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-[var(--border-radius-m)] h-[var(--size-m)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] [&]:data-[disabled]:!cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:bg-transparent data-[disabled]:focus:bg-transparent [&[data-disabled]_*]:!cursor-not-allowed",
|
|
420
420
|
t
|
|
421
421
|
),
|
|
422
422
|
checked: e,
|
|
@@ -424,7 +424,7 @@ const U = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e,
|
|
|
424
424
|
onSelect: (d) => d.preventDefault(),
|
|
425
425
|
...l,
|
|
426
426
|
children: [
|
|
427
|
-
/* @__PURE__ */ r("span", { className: "absolute left-[var(--space-m)] flex h-4 w-4 items-center justify-center rounded-s border border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)]", children: /* @__PURE__ */ r(
|
|
427
|
+
/* @__PURE__ */ r("span", { className: "absolute left-[var(--space-m)] flex h-4 w-4 items-center justify-center rounded-[var(--border-radius-s)] border border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)]", children: /* @__PURE__ */ r(i.ItemIndicator, { children: /* @__PURE__ */ r("div", { className: "h-4 w-4 rounded-[var(--border-radius-s)] border border-[var(--color-background-blue-bold)] bg-[var(--color-background-blue-bold)] flex items-center justify-center", children: /* @__PURE__ */ r(g, { className: "h-3 w-3 text-[var(--color-text-on-action)]" }) }) }) }),
|
|
428
428
|
o
|
|
429
429
|
]
|
|
430
430
|
}
|
|
@@ -441,26 +441,26 @@ const U = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, checked: e,
|
|
|
441
441
|
);
|
|
442
442
|
});
|
|
443
443
|
U.displayName = "ResponsiveDropdownMenuCheckboxItem";
|
|
444
|
-
const Y = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, icon: a, autoClose: s, ...l },
|
|
445
|
-
const { isDesktop:
|
|
446
|
-
return
|
|
447
|
-
|
|
444
|
+
const Y = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, icon: a, autoClose: s, ...l }, c) => {
|
|
445
|
+
const { isDesktop: m } = n.useContext(p);
|
|
446
|
+
return m ? /* @__PURE__ */ v(
|
|
447
|
+
i.RadioItem,
|
|
448
448
|
{
|
|
449
|
-
ref:
|
|
449
|
+
ref: c,
|
|
450
450
|
className: u(
|
|
451
|
-
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-m h-[var(--size-m)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] [&]:data-[disabled]:!cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:bg-transparent data-[disabled]:focus:bg-transparent [&[data-disabled]_*]:!cursor-not-allowed [&[data-state=checked]_span]:border-[var(--color-border-brand-bold)] [&[data-state=checked]_span]:bg-[var(--color-background-blue-bold)] [&[data-state=checked]_span]:text-[var(--color-text-on-action)]",
|
|
451
|
+
"text-body-md relative flex [&]:cursor-pointer select-none items-center rounded-[var(--border-radius-m)] h-[var(--size-m)] pl-10 pr-[var(--space-m)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] [&]:data-[disabled]:!cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:bg-transparent data-[disabled]:focus:bg-transparent [&[data-disabled]_*]:!cursor-not-allowed [&[data-state=checked]_span]:border-[var(--color-border-brand-bold)] [&[data-state=checked]_span]:bg-[var(--color-background-blue-bold)] [&[data-state=checked]_span]:text-[var(--color-text-on-action)]",
|
|
452
452
|
t
|
|
453
453
|
),
|
|
454
454
|
value: e,
|
|
455
455
|
onSelect: (d) => d.preventDefault(),
|
|
456
456
|
...l,
|
|
457
457
|
children: [
|
|
458
|
-
/* @__PURE__ */ r("span", { className: "absolute left-[var(--space-m)] flex h-4 w-4 items-center justify-center rounded-full border-2 border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)]", children: /* @__PURE__ */ r(
|
|
458
|
+
/* @__PURE__ */ r("span", { className: "absolute left-[var(--space-m)] flex h-4 w-4 items-center justify-center rounded-full border-2 border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)]", children: /* @__PURE__ */ r(i.ItemIndicator, { className: "flex h-full w-full items-center justify-center rounded-full text-current", children: /* @__PURE__ */ r(w, { className: "h-[6px] w-[6px] fill-current" }) }) }),
|
|
459
459
|
a && /* @__PURE__ */ r(x, { name: a, size: "m", className: "mr-2 ml-6" }),
|
|
460
460
|
o
|
|
461
461
|
]
|
|
462
462
|
}
|
|
463
|
-
) : /* @__PURE__ */ r(J.Consumer, { children: ({ radioValue: d, onRadioChange:
|
|
463
|
+
) : /* @__PURE__ */ r(J.Consumer, { children: ({ radioValue: d, onRadioChange: b }) => /* @__PURE__ */ r(
|
|
464
464
|
M,
|
|
465
465
|
{
|
|
466
466
|
className: t,
|
|
@@ -468,7 +468,7 @@ const Y = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, i
|
|
|
468
468
|
checked: d === e,
|
|
469
469
|
icon: a,
|
|
470
470
|
autoClose: s,
|
|
471
|
-
onRadioSelect:
|
|
471
|
+
onRadioSelect: b,
|
|
472
472
|
...l,
|
|
473
473
|
children: o
|
|
474
474
|
}
|
|
@@ -476,9 +476,9 @@ const Y = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, value: e, i
|
|
|
476
476
|
});
|
|
477
477
|
Y.displayName = "ResponsiveDropdownMenuRadioItem";
|
|
478
478
|
const Z = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) => {
|
|
479
|
-
const { isDesktop: s } = n.useContext(
|
|
479
|
+
const { isDesktop: s } = n.useContext(p);
|
|
480
480
|
return s ? /* @__PURE__ */ r(
|
|
481
|
-
|
|
481
|
+
i.Label,
|
|
482
482
|
{
|
|
483
483
|
ref: a,
|
|
484
484
|
className: u(
|
|
@@ -499,9 +499,9 @@ const Z = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, ...e }, a) =>
|
|
|
499
499
|
});
|
|
500
500
|
Z.displayName = "ResponsiveDropdownMenuLabel";
|
|
501
501
|
const ee = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => {
|
|
502
|
-
const { isDesktop: a } = n.useContext(
|
|
502
|
+
const { isDesktop: a } = n.useContext(p);
|
|
503
503
|
return a ? /* @__PURE__ */ r(
|
|
504
|
-
|
|
504
|
+
i.Separator,
|
|
505
505
|
{
|
|
506
506
|
ref: e,
|
|
507
507
|
className: u("-mx-2 my-[var(--space-s)] h-px bg-[var(--color-border-primary-subtle)]", t),
|
|
@@ -517,14 +517,14 @@ const ee = /* @__PURE__ */ n.forwardRef(({ className: t, ...o }, e) => {
|
|
|
517
517
|
});
|
|
518
518
|
ee.displayName = "ResponsiveDropdownMenuSeparator";
|
|
519
519
|
const re = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, icon: e, children: a, ...s }, l) => {
|
|
520
|
-
const { isDesktop:
|
|
521
|
-
if (
|
|
522
|
-
return /* @__PURE__ */
|
|
523
|
-
|
|
520
|
+
const { isDesktop: c } = n.useContext(p), { triggerNavigation: m } = n.useContext(L);
|
|
521
|
+
if (c)
|
|
522
|
+
return /* @__PURE__ */ v(
|
|
523
|
+
i.SubTrigger,
|
|
524
524
|
{
|
|
525
525
|
ref: l,
|
|
526
526
|
className: u(
|
|
527
|
-
"text-body-md flex [&]:cursor-pointer select-none items-center rounded-m px-[var(--space-m)] h-[var(--size-m)] outline-none focus:bg-[var(--color-background-neutral-subtlest-hovered)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] data-[state=open]:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
527
|
+
"text-body-md flex [&]:cursor-pointer select-none items-center rounded-[var(--border-radius-m)] px-[var(--space-m)] h-[var(--size-m)] outline-none focus:bg-[var(--color-background-neutral-subtlest-hovered)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] data-[state=open]:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
528
528
|
o && "pl-8",
|
|
529
529
|
t
|
|
530
530
|
),
|
|
@@ -536,22 +536,22 @@ const re = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, icon: e, chil
|
|
|
536
536
|
]
|
|
537
537
|
}
|
|
538
538
|
);
|
|
539
|
-
const { onClick: d, ...
|
|
540
|
-
return /* @__PURE__ */
|
|
539
|
+
const { onClick: d, ...b } = s;
|
|
540
|
+
return /* @__PURE__ */ v(
|
|
541
541
|
"button",
|
|
542
542
|
{
|
|
543
543
|
ref: l,
|
|
544
544
|
className: u(
|
|
545
|
-
"text-body-md relative flex w-full cursor-pointer select-none items-center rounded-m px-[var(--space-m)] h-[var(--size-l)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] active:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
545
|
+
"text-body-md relative flex w-full cursor-pointer select-none items-center rounded-[var(--border-radius-m)] px-[var(--space-m)] h-[var(--size-l)] outline-none transition-colors focus:bg-[var(--color-background-neutral-subtlest-hovered)] focus:text-[var(--color-text-primary)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)] active:bg-[var(--color-background-neutral-subtlest-hovered)]",
|
|
546
546
|
o && "pl-8",
|
|
547
547
|
t
|
|
548
548
|
),
|
|
549
549
|
onClick: (f) => {
|
|
550
|
-
|
|
550
|
+
m(), d && d(f);
|
|
551
551
|
},
|
|
552
552
|
role: "button",
|
|
553
553
|
type: "button",
|
|
554
|
-
...
|
|
554
|
+
...b,
|
|
555
555
|
children: [
|
|
556
556
|
e && /* @__PURE__ */ r(x, { name: e, size: "m", className: "mr-2" }),
|
|
557
557
|
a,
|
|
@@ -562,13 +562,13 @@ const re = /* @__PURE__ */ n.forwardRef(({ className: t, inset: o, icon: e, chil
|
|
|
562
562
|
});
|
|
563
563
|
re.displayName = "ResponsiveDropdownMenuSubTrigger";
|
|
564
564
|
const oe = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a) => {
|
|
565
|
-
const { isDesktop: s } = n.useContext(
|
|
565
|
+
const { isDesktop: s } = n.useContext(p), { setSubmenuContent: l } = n.useContext(L);
|
|
566
566
|
return s ? /* @__PURE__ */ r(
|
|
567
|
-
|
|
567
|
+
i.SubContent,
|
|
568
568
|
{
|
|
569
569
|
ref: a,
|
|
570
570
|
className: u(
|
|
571
|
-
"z-50 min-w-[12rem] overflow-hidden rounded-l border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] p-[var(--space-xs)] text-[var(--color-text-primary)] shadow-
|
|
571
|
+
"z-50 min-w-[12rem] overflow-hidden rounded-[var(--border-radius-l)] border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] p-[var(--space-xs)] text-[var(--color-text-primary)] shadow-[var(--shadow-400)] 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",
|
|
572
572
|
t
|
|
573
573
|
),
|
|
574
574
|
...e,
|
|
@@ -578,7 +578,7 @@ const oe = /* @__PURE__ */ n.forwardRef(({ className: t, children: o, ...e }, a)
|
|
|
578
578
|
});
|
|
579
579
|
oe.displayName = "ResponsiveDropdownMenuSubContent";
|
|
580
580
|
export {
|
|
581
|
-
|
|
581
|
+
ce as DropdownMenu,
|
|
582
582
|
U as DropdownMenuCheckboxItem,
|
|
583
583
|
q as DropdownMenuContent,
|
|
584
584
|
W as DropdownMenuDesktop,
|
|
@@ -589,7 +589,7 @@ export {
|
|
|
589
589
|
A as DropdownMenuDesktopRadioItem,
|
|
590
590
|
X as DropdownMenuDesktopSeparator,
|
|
591
591
|
$ as DropdownMenuDesktopTrigger,
|
|
592
|
-
|
|
592
|
+
ie as DropdownMenuGroup,
|
|
593
593
|
Q as DropdownMenuItem,
|
|
594
594
|
Z as DropdownMenuLabel,
|
|
595
595
|
Y as DropdownMenuRadioItem,
|
|
@@ -56,7 +56,7 @@ const M = n.createContext(
|
|
|
56
56
|
);
|
|
57
57
|
j.displayName = "FileUploadRoot";
|
|
58
58
|
const ee = Q(
|
|
59
|
-
"relative flex flex-col items-center justify-center rounded-l border-2 border-dashed p-6 text-center transition-colors duration-200",
|
|
59
|
+
"relative flex flex-col items-center justify-center rounded-[var(--border-radius-l)] border-2 border-dashed p-6 text-center transition-colors duration-200",
|
|
60
60
|
{
|
|
61
61
|
variants: {
|
|
62
62
|
isDragActive: {
|
|
@@ -182,7 +182,7 @@ const B = /* @__PURE__ */ n.forwardRef(
|
|
|
182
182
|
{
|
|
183
183
|
ref: l,
|
|
184
184
|
className: v(
|
|
185
|
-
"flex items-center gap-3 rounded-l border p-3",
|
|
185
|
+
"flex items-center gap-3 rounded-[var(--border-radius-l)] border p-3",
|
|
186
186
|
"border-[var(--color-border-primary)]",
|
|
187
187
|
e.status === "error" && "border-[var(--color-border-error-bold)] bg-[var(--color-background-error-subtle)]",
|
|
188
188
|
e.status === "success" && "border-[var(--color-border-success-bold)] bg-[var(--color-background-success-subtle)]",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } 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 = /* @__PURE__ */ s.forwardRef(({ className:
|
|
5
|
+
const c = t.Root, f = t.Trigger, m = /* @__PURE__ */ s.forwardRef(({ className: o, align: r = "center", sideOffset: e = 4, ...d }, i) => /* @__PURE__ */ a(t.Portal, { children: /* @__PURE__ */ a(
|
|
6
6
|
t.Content,
|
|
7
7
|
{
|
|
8
8
|
ref: i,
|
|
9
|
-
align:
|
|
10
|
-
sideOffset:
|
|
9
|
+
align: r,
|
|
10
|
+
sideOffset: e,
|
|
11
11
|
className: n(
|
|
12
|
-
"z-50 w-64 rounded-m border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] p-[var(--space-l)] text-[var(--color-text-primary)] shadow-
|
|
13
|
-
|
|
12
|
+
"z-50 w-64 rounded-[var(--border-radius-m)] border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] p-[var(--space-l)] text-[var(--color-text-primary)] shadow-[var(--shadow-400)] 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
|
+
o
|
|
14
14
|
),
|
|
15
15
|
...d
|
|
16
16
|
}
|
|
@@ -13,7 +13,7 @@ const v = /* @__PURE__ */ e.forwardRef(
|
|
|
13
13
|
"data-slot": "input-group",
|
|
14
14
|
role: "group",
|
|
15
15
|
className: s(
|
|
16
|
-
"group/input-group relative flex w-full items-center rounded-m border border-[var(--color-interaction-border-input)] bg-[var(--color-interaction-background-input-neutral)] outline-none transition-[color,box-shadow,border-color]",
|
|
16
|
+
"group/input-group relative flex w-full items-center rounded-[var(--border-radius-m)] border border-[var(--color-interaction-border-input)] bg-[var(--color-interaction-background-input-neutral)] outline-none transition-[color,box-shadow,border-color]",
|
|
17
17
|
// Default height for inputs
|
|
18
18
|
"h-[var(--size-m)] has-[>textarea]:h-auto",
|
|
19
19
|
// Adjust padding when inline addons are present
|
|
@@ -38,7 +38,7 @@ const v = /* @__PURE__ */ e.forwardRef(
|
|
|
38
38
|
);
|
|
39
39
|
v.displayName = "InputGroup";
|
|
40
40
|
const b = u(
|
|
41
|
-
"text-[var(--color-text-secondary)] flex h-auto cursor-text select-none items-center justify-center gap-[var(--space-xs)] py-[var(--space-s)] [&]:text-body-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-xs [&>svg:not([class*='size-'])]:size-[var(--size-s)]",
|
|
41
|
+
"text-[var(--color-text-secondary)] flex h-auto cursor-text select-none items-center justify-center gap-[var(--space-xs)] py-[var(--space-s)] [&]:text-body-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[var(--border-radius-xs)] [&>svg:not([class*='size-'])]:size-[var(--size-s)]",
|
|
42
42
|
{
|
|
43
43
|
variants: {
|
|
44
44
|
align: {
|