@craftzbay/ui 0.11.2 → 0.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/_virtual/_rolldown/runtime.js +11 -0
- package/dist-lib/components/ui/Accordion.js +42 -67
- package/dist-lib/components/ui/Accordion.js.map +1 -1
- package/dist-lib/components/ui/Alert.js +71 -77
- package/dist-lib/components/ui/Alert.js.map +1 -1
- package/dist-lib/components/ui/Avatar.js +67 -92
- package/dist-lib/components/ui/Avatar.js.map +1 -1
- package/dist-lib/components/ui/Badge.js +119 -74
- package/dist-lib/components/ui/Badge.js.map +1 -1
- package/dist-lib/components/ui/Breadcrumbs.js +62 -50
- package/dist-lib/components/ui/Breadcrumbs.js.map +1 -1
- package/dist-lib/components/ui/Button.js +129 -127
- package/dist-lib/components/ui/Button.js.map +1 -1
- package/dist-lib/components/ui/Calendar.d.ts +1 -1
- package/dist-lib/components/ui/Calendar.js +99 -136
- package/dist-lib/components/ui/Calendar.js.map +1 -1
- package/dist-lib/components/ui/Card.js +88 -94
- package/dist-lib/components/ui/Card.js.map +1 -1
- package/dist-lib/components/ui/Carousel.js +125 -170
- package/dist-lib/components/ui/Carousel.js.map +1 -1
- package/dist-lib/components/ui/Chart.d.ts +3 -3
- package/dist-lib/components/ui/Chart.js +435 -464
- package/dist-lib/components/ui/Chart.js.map +1 -1
- package/dist-lib/components/ui/Checkbox.js +60 -69
- package/dist-lib/components/ui/Checkbox.js.map +1 -1
- package/dist-lib/components/ui/Combobox.js +179 -192
- package/dist-lib/components/ui/Combobox.js.map +1 -1
- package/dist-lib/components/ui/CommandPalette.d.ts +2 -2
- package/dist-lib/components/ui/CommandPalette.js +106 -167
- package/dist-lib/components/ui/CommandPalette.js.map +1 -1
- package/dist-lib/components/ui/ContextMenu.d.ts +1 -1
- package/dist-lib/components/ui/ContextMenu.js +89 -154
- package/dist-lib/components/ui/ContextMenu.js.map +1 -1
- package/dist-lib/components/ui/DataGrid.d.ts +1 -1
- package/dist-lib/components/ui/DataGrid.js +99 -96
- package/dist-lib/components/ui/DataGrid.js.map +1 -1
- package/dist-lib/components/ui/DatePicker.js +151 -188
- package/dist-lib/components/ui/DatePicker.js.map +1 -1
- package/dist-lib/components/ui/DesignSystemProvider.d.ts +1 -1
- package/dist-lib/components/ui/DesignSystemProvider.js +120 -130
- package/dist-lib/components/ui/DesignSystemProvider.js.map +1 -1
- package/dist-lib/components/ui/Dialog.d.ts +3 -3
- package/dist-lib/components/ui/Dialog.js +108 -156
- package/dist-lib/components/ui/Dialog.js.map +1 -1
- package/dist-lib/components/ui/Drawer.d.ts +3 -3
- package/dist-lib/components/ui/Drawer.js +90 -124
- package/dist-lib/components/ui/Drawer.js.map +1 -1
- package/dist-lib/components/ui/DropdownMenu.d.ts +1 -1
- package/dist-lib/components/ui/DropdownMenu.js +92 -158
- package/dist-lib/components/ui/DropdownMenu.js.map +1 -1
- package/dist-lib/components/ui/EmptyState.js +31 -44
- package/dist-lib/components/ui/EmptyState.js.map +1 -1
- package/dist-lib/components/ui/ErrorState.js +57 -67
- package/dist-lib/components/ui/ErrorState.js.map +1 -1
- package/dist-lib/components/ui/FileUpload.js +113 -107
- package/dist-lib/components/ui/FileUpload.js.map +1 -1
- package/dist-lib/components/ui/Form.d.ts +6 -4
- package/dist-lib/components/ui/Form.js +117 -122
- package/dist-lib/components/ui/Form.js.map +1 -1
- package/dist-lib/components/ui/Icon.d.ts +1 -1
- package/dist-lib/components/ui/Icon.js +30 -29
- package/dist-lib/components/ui/Icon.js.map +1 -1
- package/dist-lib/components/ui/IconButton.js +61 -61
- package/dist-lib/components/ui/IconButton.js.map +1 -1
- package/dist-lib/components/ui/Input.js +133 -156
- package/dist-lib/components/ui/Input.js.map +1 -1
- package/dist-lib/components/ui/Kbd.js +14 -21
- package/dist-lib/components/ui/Kbd.js.map +1 -1
- package/dist-lib/components/ui/MultiSelect.js +176 -208
- package/dist-lib/components/ui/MultiSelect.js.map +1 -1
- package/dist-lib/components/ui/Pagination.js +152 -149
- package/dist-lib/components/ui/Pagination.js.map +1 -1
- package/dist-lib/components/ui/Popover.js +18 -33
- package/dist-lib/components/ui/Popover.js.map +1 -1
- package/dist-lib/components/ui/Progress.js +77 -99
- package/dist-lib/components/ui/Progress.js.map +1 -1
- package/dist-lib/components/ui/RadioGroup.js +51 -80
- package/dist-lib/components/ui/RadioGroup.js.map +1 -1
- package/dist-lib/components/ui/RelativeTime.js +22 -29
- package/dist-lib/components/ui/RelativeTime.js.map +1 -1
- package/dist-lib/components/ui/ScrollArea.js +39 -58
- package/dist-lib/components/ui/ScrollArea.js.map +1 -1
- package/dist-lib/components/ui/Select.js +108 -131
- package/dist-lib/components/ui/Select.js.map +1 -1
- package/dist-lib/components/ui/Separator.js +18 -24
- package/dist-lib/components/ui/Separator.js.map +1 -1
- package/dist-lib/components/ui/Sheet.d.ts +2 -2
- package/dist-lib/components/ui/Sheet.js +77 -129
- package/dist-lib/components/ui/Sheet.js.map +1 -1
- package/dist-lib/components/ui/Sidebar.d.ts +1 -1
- package/dist-lib/components/ui/Sidebar.js +168 -207
- package/dist-lib/components/ui/Sidebar.js.map +1 -1
- package/dist-lib/components/ui/Skeleton.js +17 -27
- package/dist-lib/components/ui/Skeleton.js.map +1 -1
- package/dist-lib/components/ui/Slider.js +45 -62
- package/dist-lib/components/ui/Slider.js.map +1 -1
- package/dist-lib/components/ui/Snackbar.js +75 -55
- package/dist-lib/components/ui/Snackbar.js.map +1 -1
- package/dist-lib/components/ui/Spinner.js +45 -52
- package/dist-lib/components/ui/Spinner.js.map +1 -1
- package/dist-lib/components/ui/Stepper.js +56 -108
- package/dist-lib/components/ui/Stepper.js.map +1 -1
- package/dist-lib/components/ui/Switch.js +46 -79
- package/dist-lib/components/ui/Switch.js.map +1 -1
- package/dist-lib/components/ui/Table.js +108 -169
- package/dist-lib/components/ui/Table.js.map +1 -1
- package/dist-lib/components/ui/Tabs.js +57 -88
- package/dist-lib/components/ui/Tabs.js.map +1 -1
- package/dist-lib/components/ui/TagInput.js +76 -109
- package/dist-lib/components/ui/TagInput.js.map +1 -1
- package/dist-lib/components/ui/Textarea.js +74 -86
- package/dist-lib/components/ui/Textarea.js.map +1 -1
- package/dist-lib/components/ui/Timeline.d.ts +3 -3
- package/dist-lib/components/ui/Timeline.js +61 -49
- package/dist-lib/components/ui/Timeline.js.map +1 -1
- package/dist-lib/components/ui/Toast.d.ts +1 -1
- package/dist-lib/components/ui/Toast.js +136 -150
- package/dist-lib/components/ui/Toast.js.map +1 -1
- package/dist-lib/components/ui/Tooltip.d.ts +2 -2
- package/dist-lib/components/ui/Tooltip.js +35 -56
- package/dist-lib/components/ui/Tooltip.js.map +1 -1
- package/dist-lib/components/ui/TopNav.js +46 -66
- package/dist-lib/components/ui/TopNav.js.map +1 -1
- package/dist-lib/components/ui/Tree.js +134 -168
- package/dist-lib/components/ui/Tree.js.map +1 -1
- package/dist-lib/hooks/use-debounce.js +27 -33
- package/dist-lib/hooks/use-debounce.js.map +1 -1
- package/dist-lib/hooks/use-delayed-loading.js +19 -18
- package/dist-lib/hooks/use-delayed-loading.js.map +1 -1
- package/dist-lib/hooks/use-field-ids.js +14 -16
- package/dist-lib/hooks/use-field-ids.js.map +1 -1
- package/dist-lib/hooks/use-media-query.js +15 -19
- package/dist-lib/hooks/use-media-query.js.map +1 -1
- package/dist-lib/hooks/use-modifier-key.js +20 -15
- package/dist-lib/hooks/use-modifier-key.js.map +1 -1
- package/dist-lib/hooks/use-strings.js +10 -10
- package/dist-lib/hooks/use-strings.js.map +1 -1
- package/dist-lib/hooks/use-toast.js +73 -62
- package/dist-lib/hooks/use-toast.js.map +1 -1
- package/dist-lib/icon.js +2 -6
- package/dist-lib/icons/index.js +166 -163
- package/dist-lib/icons/index.js.map +1 -1
- package/dist-lib/illustrations/index.d.ts +7 -7
- package/dist-lib/illustrations/index.js +255 -106
- package/dist-lib/illustrations/index.js.map +1 -1
- package/dist-lib/index.js +69 -291
- package/dist-lib/lib/cva.js +2 -0
- package/dist-lib/lib/format.js +71 -87
- package/dist-lib/lib/format.js.map +1 -1
- package/dist-lib/lib/return-focus.js +11 -11
- package/dist-lib/lib/return-focus.js.map +1 -1
- package/dist-lib/lib/strings.js +167 -135
- package/dist-lib/lib/strings.js.map +1 -1
- package/dist-lib/lib/strings.mn.js +150 -113
- package/dist-lib/lib/strings.mn.js.map +1 -1
- package/dist-lib/lib/utils.js +9 -9
- package/dist-lib/lib/utils.js.map +1 -1
- package/dist-lib/styles.css +3 -1
- package/dist-lib/theme.css +18 -5
- package/package.json +50 -50
- package/dist-lib/__tests__/helpers/color.d.ts +0 -9
- package/dist-lib/__tests__/helpers/theme.d.ts +0 -18
- package/dist-lib/icon.js.map +0 -1
- package/dist-lib/index.js.map +0 -1
|
@@ -1,139 +1,116 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
e === "md" && "h-9 px-3",
|
|
25
|
-
e === "lg" && "h-10 px-3.5",
|
|
26
|
-
i === "default" ? "border-border-input focus-visible:border-accent focus-visible:ring-ring" : "border-danger focus-visible:border-danger focus-visible:ring-danger",
|
|
27
|
-
r
|
|
28
|
-
),
|
|
29
|
-
...n,
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ t(a.Value, { placeholder: o }),
|
|
32
|
-
/* @__PURE__ */ t(a.Icon, { asChild: !0, children: /* @__PURE__ */ t(N, { className: "text-foreground-subtle size-4 shrink-0", "aria-hidden": !0 }) })
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
);
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { useStrings as t } from "../../hooks/use-strings.js";
|
|
4
|
+
import { Check as n, ChevronDown as r, ChevronUp as i, ChevronsUpDown as a } from "../../icons/index.js";
|
|
5
|
+
import { forwardRef as o } from "react";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
+
import * as l from "@radix-ui/react-select";
|
|
8
|
+
//#region src/components/ui/Select.tsx
|
|
9
|
+
var u = l.Root, d = l.Value, f = o(function({ className: n, placeholder: r, size: i = "md", tone: o = "default", ...u }, d) {
|
|
10
|
+
let f = t(), p = !!(u["aria-label"] || u["aria-labelledby"] || u.id);
|
|
11
|
+
return /* @__PURE__ */ c(l.Trigger, {
|
|
12
|
+
ref: d,
|
|
13
|
+
"aria-label": p ? void 0 : r ?? f.select.placeholder,
|
|
14
|
+
className: e("bg-card text-foreground inline-flex w-full items-center justify-between gap-2 rounded-md border text-lg md:text-sm", "[&>span]:min-w-0 [&>span]:truncate", "transition-colors duration-[var(--duration-fast)] ease-[var(--ease-out)]", "outline-none", "focus-visible:ring-offset-background focus-visible:ring-2 focus-visible:ring-offset-2", "disabled:cursor-not-allowed disabled:opacity-50", "data-[placeholder]:text-foreground-subtle", i === "sm" && "h-8 px-2.5", i === "md" && "h-9 px-3", i === "lg" && "h-10 px-3.5", o === "default" ? "border-border-input focus-visible:border-accent focus-visible:ring-ring" : "border-danger focus-visible:border-danger focus-visible:ring-danger", n),
|
|
15
|
+
...u,
|
|
16
|
+
children: [/* @__PURE__ */ s(l.Value, { placeholder: r }), /* @__PURE__ */ s(l.Icon, {
|
|
17
|
+
asChild: !0,
|
|
18
|
+
children: /* @__PURE__ */ s(a, {
|
|
19
|
+
className: "text-foreground-subtle size-4 shrink-0",
|
|
20
|
+
"aria-hidden": !0
|
|
21
|
+
})
|
|
22
|
+
})]
|
|
23
|
+
});
|
|
36
24
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
f.displayName = "SelectTrigger";
|
|
26
|
+
var p = "flex h-6 cursor-default items-center justify-center text-foreground-subtle", m = o(function({ className: t, ...n }, r) {
|
|
27
|
+
return /* @__PURE__ */ s(l.ScrollUpButton, {
|
|
28
|
+
ref: r,
|
|
29
|
+
className: e(p, t),
|
|
30
|
+
...n,
|
|
31
|
+
children: /* @__PURE__ */ s(i, {
|
|
32
|
+
className: "size-4",
|
|
33
|
+
"aria-hidden": !0
|
|
34
|
+
})
|
|
35
|
+
});
|
|
40
36
|
});
|
|
41
37
|
m.displayName = "SelectScrollUpButton";
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
var h = o(function({ className: t, ...n }, i) {
|
|
39
|
+
return /* @__PURE__ */ s(l.ScrollDownButton, {
|
|
40
|
+
ref: i,
|
|
41
|
+
className: e(p, t),
|
|
42
|
+
...n,
|
|
43
|
+
children: /* @__PURE__ */ s(r, {
|
|
44
|
+
className: "size-4",
|
|
45
|
+
"aria-hidden": !0
|
|
46
|
+
})
|
|
47
|
+
});
|
|
44
48
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
),
|
|
62
|
-
...i,
|
|
63
|
-
children: [
|
|
64
|
-
/* @__PURE__ */ t(m, {}),
|
|
65
|
-
/* @__PURE__ */ t(a.Viewport, { className: "p-1", children: o }),
|
|
66
|
-
/* @__PURE__ */ t(p, {})
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
) });
|
|
49
|
+
h.displayName = "SelectScrollDownButton";
|
|
50
|
+
var g = o(function({ className: t, children: n, position: r = "popper", ...i }, a) {
|
|
51
|
+
return /* @__PURE__ */ s(l.Portal, { children: /* @__PURE__ */ c(l.Content, {
|
|
52
|
+
ref: a,
|
|
53
|
+
position: r,
|
|
54
|
+
className: e("z-[var(--z-popover)] max-h-96 min-w-[var(--radix-select-trigger-width)]", "border-border bg-popover text-popover-foreground overflow-hidden rounded-lg border", "shadow-md", "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", r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1", t),
|
|
55
|
+
...i,
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ s(m, {}),
|
|
58
|
+
/* @__PURE__ */ s(l.Viewport, {
|
|
59
|
+
className: "p-1",
|
|
60
|
+
children: n
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ s(h, {})
|
|
63
|
+
]
|
|
64
|
+
}) });
|
|
70
65
|
});
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
...o
|
|
79
|
-
}
|
|
80
|
-
);
|
|
66
|
+
g.displayName = "SelectContent";
|
|
67
|
+
var _ = o(function({ className: t, ...n }, r) {
|
|
68
|
+
return /* @__PURE__ */ s(l.Label, {
|
|
69
|
+
ref: r,
|
|
70
|
+
className: e("text-foreground-subtle px-2 py-1.5 text-xs font-medium", t),
|
|
71
|
+
...n
|
|
72
|
+
});
|
|
81
73
|
});
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
C.displayName = "SelectItem";
|
|
107
|
-
const z = l(function({ className: r, ...o }, e) {
|
|
108
|
-
return /* @__PURE__ */ t(
|
|
109
|
-
a.Separator,
|
|
110
|
-
{
|
|
111
|
-
ref: e,
|
|
112
|
-
className: c("bg-border -mx-1 my-1 h-px", r),
|
|
113
|
-
...o
|
|
114
|
-
}
|
|
115
|
-
);
|
|
74
|
+
_.displayName = "SelectLabel";
|
|
75
|
+
var v = o(function({ className: t, children: r, leadingIcon: i, ...a }, o) {
|
|
76
|
+
return /* @__PURE__ */ c(l.Item, {
|
|
77
|
+
ref: o,
|
|
78
|
+
className: e("relative flex w-full cursor-default items-center gap-2 select-none", "text-foreground rounded-sm px-2 py-1.5 pr-8 text-sm outline-none", "data-[highlighted]:bg-background-muted data-[highlighted]:text-foreground", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
|
|
79
|
+
...a,
|
|
80
|
+
children: [
|
|
81
|
+
i && /* @__PURE__ */ s("span", {
|
|
82
|
+
className: "text-foreground-subtle flex items-center [&_svg]:size-4",
|
|
83
|
+
children: i
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ s(l.ItemText, { children: r }),
|
|
86
|
+
/* @__PURE__ */ s("span", {
|
|
87
|
+
className: "absolute right-2 flex items-center justify-center",
|
|
88
|
+
children: /* @__PURE__ */ s(l.ItemIndicator, { children: /* @__PURE__ */ s(n, {
|
|
89
|
+
className: "text-accent size-4",
|
|
90
|
+
"aria-hidden": !0
|
|
91
|
+
}) })
|
|
92
|
+
})
|
|
93
|
+
]
|
|
94
|
+
});
|
|
116
95
|
});
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
};
|
|
139
|
-
//# sourceMappingURL=Select.js.map
|
|
96
|
+
v.displayName = "SelectItem";
|
|
97
|
+
var y = o(function({ className: t, ...n }, r) {
|
|
98
|
+
return /* @__PURE__ */ s(l.Separator, {
|
|
99
|
+
ref: r,
|
|
100
|
+
className: e("bg-border -mx-1 my-1 h-px", t),
|
|
101
|
+
...n
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
y.displayName = "SelectSeparator";
|
|
105
|
+
var b = o(function({ label: e, children: t, ...n }, r) {
|
|
106
|
+
return /* @__PURE__ */ c(l.Group, {
|
|
107
|
+
ref: r,
|
|
108
|
+
...n,
|
|
109
|
+
children: [e && /* @__PURE__ */ s(_, { children: e }), t]
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
b.displayName = "SelectGroup";
|
|
113
|
+
//#endregion
|
|
114
|
+
export { u as Select, g as SelectContent, b as SelectGroup, v as SelectItem, _ as SelectLabel, h as SelectScrollDownButton, m as SelectScrollUpButton, y as SelectSeparator, f as SelectTrigger, d as SelectValue };
|
|
115
|
+
|
|
116
|
+
//# sourceMappingURL=Select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../../src/components/ui/Select.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef, type ComponentPropsWithoutRef, type ElementRef, type ReactNode } from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp, ChevronsUpDown } from '@/icons';\nimport { cn } from '@/lib/utils';\nimport { useStrings } from '@/hooks/use-strings';\n\n/* -----------------------------------------------------------------------------\n * Compound API:\n *\n * <Select value={…} onValueChange={…}>\n * <SelectTrigger placeholder=\"Pick one\" />\n * <SelectContent>\n * <SelectGroup label=\"Active\">\n * <SelectItem value=\"a\">Apple</SelectItem>\n * <SelectItem value=\"b\">Banana</SelectItem>\n * </SelectGroup>\n * </SelectContent>\n * </Select>\n *\n * All accessibility is handled by Radix: keyboard navigation, type-ahead,\n * focus trap, ARIA roles. We only style.\n * --------------------------------------------------------------------------- */\n\nexport const Select = SelectPrimitive.Root;\nexport const SelectValue = SelectPrimitive.Value;\n\nexport interface SelectTriggerProps extends Omit<\n ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>,\n 'children'\n> {\n /**\n * Placeholder shown when no value is selected. Also used as the trigger's\n * accessible name when no `aria-label` / `aria-labelledby` / `id` (external\n * `<Label htmlFor>`) is supplied — `role=\"combobox\"` takes no name from\n * its content.\n */\n placeholder?: string;\n /** Trigger height — matches Input sizes. */\n size?: 'sm' | 'md' | 'lg';\n /** Visual tone — `error` swaps the border + ring to danger. */\n tone?: 'default' | 'error';\n}\n\nexport const SelectTrigger = forwardRef<\n ElementRef<typeof SelectPrimitive.Trigger>,\n SelectTriggerProps\n>(function SelectTrigger({ className, placeholder, size = 'md', tone = 'default', ...props }, ref) {\n const strings = useStrings();\n const hasName = Boolean(props['aria-label'] || props['aria-labelledby'] || props.id);\n return (\n <SelectPrimitive.Trigger\n ref={ref}\n aria-label={hasName ? undefined : (placeholder ?? strings.select.placeholder)}\n className={cn(\n 'bg-card text-foreground inline-flex w-full items-center justify-between gap-2 rounded-md border text-lg md:text-sm',\n '[&>span]:min-w-0 [&>span]:truncate',\n 'transition-colors duration-[var(--duration-fast)] ease-[var(--ease-out)]',\n 'outline-none',\n 'focus-visible:ring-offset-background focus-visible:ring-2 focus-visible:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'data-[placeholder]:text-foreground-subtle',\n size === 'sm' && 'h-8 px-2.5',\n size === 'md' && 'h-9 px-3',\n size === 'lg' && 'h-10 px-3.5',\n tone === 'default'\n ? 'border-border-input focus-visible:border-accent focus-visible:ring-ring'\n : 'border-danger focus-visible:border-danger focus-visible:ring-danger',\n className,\n )}\n {...props}\n >\n <SelectPrimitive.Value placeholder={placeholder} />\n <SelectPrimitive.Icon asChild>\n <ChevronsUpDown className=\"text-foreground-subtle size-4 shrink-0\" aria-hidden />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n});\nSelectTrigger.displayName = 'SelectTrigger';\n\nconst scrollBtn = 'flex h-6 cursor-default items-center justify-center text-foreground-subtle';\n\nexport const SelectScrollUpButton = forwardRef<\n ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(function SelectScrollUpButton({ className, ...props }, ref) {\n return (\n <SelectPrimitive.ScrollUpButton ref={ref} className={cn(scrollBtn, className)} {...props}>\n <ChevronUp className=\"size-4\" aria-hidden />\n </SelectPrimitive.ScrollUpButton>\n );\n});\nSelectScrollUpButton.displayName = 'SelectScrollUpButton';\n\nexport const SelectScrollDownButton = forwardRef<\n ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(function SelectScrollDownButton({ className, ...props }, ref) {\n return (\n <SelectPrimitive.ScrollDownButton ref={ref} className={cn(scrollBtn, className)} {...props}>\n <ChevronDown className=\"size-4\" aria-hidden />\n </SelectPrimitive.ScrollDownButton>\n );\n});\nSelectScrollDownButton.displayName = 'SelectScrollDownButton';\n\nexport const SelectContent = forwardRef<\n ElementRef<typeof SelectPrimitive.Content>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(function SelectContent({ className, children, position = 'popper', ...props }, ref) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n position={position}\n className={cn(\n 'z-[var(--z-popover)] max-h-96 min-w-[var(--radix-select-trigger-width)]',\n 'border-border bg-popover text-popover-foreground overflow-hidden rounded-lg border',\n 'shadow-md',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out',\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1',\n className,\n )}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport className=\"p-1\">{children}</SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n});\nSelectContent.displayName = 'SelectContent';\n\nexport const SelectLabel = forwardRef<\n ElementRef<typeof SelectPrimitive.Label>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(function SelectLabel({ className, ...props }, ref) {\n return (\n <SelectPrimitive.Label\n ref={ref}\n className={cn('text-foreground-subtle px-2 py-1.5 text-xs font-medium', className)}\n {...props}\n />\n );\n});\nSelectLabel.displayName = 'SelectLabel';\n\nexport interface SelectItemProps extends ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {\n /** Icon shown to the left of the label. */\n leadingIcon?: ReactNode;\n}\n\nexport const SelectItem = forwardRef<ElementRef<typeof SelectPrimitive.Item>, SelectItemProps>(\n function SelectItem({ className, children, leadingIcon, ...props }, ref) {\n return (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex w-full cursor-default items-center gap-2 select-none',\n 'text-foreground rounded-sm px-2 py-1.5 pr-8 text-sm outline-none',\n 'data-[highlighted]:bg-background-muted data-[highlighted]:text-foreground',\n 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n {leadingIcon && (\n <span className=\"text-foreground-subtle flex items-center [&_svg]:size-4\">\n {leadingIcon}\n </span>\n )}\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n <span className=\"absolute right-2 flex items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"text-accent size-4\" aria-hidden />\n </SelectPrimitive.ItemIndicator>\n </span>\n </SelectPrimitive.Item>\n );\n },\n);\nSelectItem.displayName = 'SelectItem';\n\nexport const SelectSeparator = forwardRef<\n ElementRef<typeof SelectPrimitive.Separator>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(function SelectSeparator({ className, ...props }, ref) {\n return (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn('bg-border -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n});\nSelectSeparator.displayName = 'SelectSeparator';\n\n/** Optional grouping with a label header. Pure composition over Radix Group + Label. */\nexport interface SelectGroupProps extends ComponentPropsWithoutRef<typeof SelectPrimitive.Group> {\n label?: ReactNode;\n}\nexport const SelectGroup = forwardRef<ElementRef<typeof SelectPrimitive.Group>, SelectGroupProps>(\n function SelectGroup({ label, children, ...props }, ref) {\n return (\n <SelectPrimitive.Group ref={ref} {...props}>\n {label && <SelectLabel>{label}</SelectLabel>}\n {children}\n </SelectPrimitive.Group>\n );\n },\n);\nSelectGroup.displayName = 'SelectGroup';\n\n/**\n * Compose `Select` + `SelectTrigger` + `SelectContent` + `SelectItem` for a\n * single-choice picker. Keyboard, type-ahead, and ARIA come from Radix.\n *\n * @example Basic\n * <Select onValueChange={setStatus}>\n * <SelectTrigger placeholder=\"Status\" />\n * <SelectContent>\n * <SelectItem value=\"open\">Open</SelectItem>\n * <SelectItem value=\"closed\">Closed</SelectItem>\n * </SelectContent>\n * </Select>\n *\n * @example Grouped\n * <SelectContent>\n * <SelectGroup label=\"People\">\n * <SelectItem value=\"anu\">Anu</SelectItem>\n * <SelectItem value=\"bat\">Bat</SelectItem>\n * </SelectGroup>\n * <SelectSeparator />\n * <SelectGroup label=\"Bots\">\n * <SelectItem value=\"robo\">Robo</SelectItem>\n * </SelectGroup>\n * </SelectContent>\n *\n * @do Use `placeholder` on the trigger when there is no default value.\n * @dont Use Select for more than ~12 options — switch to `Combobox`.\n */\n"],"names":["Select","SelectPrimitive","SelectValue","SelectTrigger","forwardRef","className","placeholder","size","tone","props","ref","strings","useStrings","hasName","jsxs","cn","jsx","ChevronsUpDown","scrollBtn","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","ChevronDown","SelectContent","children","position","SelectLabel","SelectItem","leadingIcon","Check","SelectSeparator","SelectGroup","label"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"Select.js","names":[],"sources":["../../../src/components/ui/Select.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef, type ComponentPropsWithoutRef, type ElementRef, type ReactNode } from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp, ChevronsUpDown } from '@/icons';\nimport { cn } from '@/lib/utils';\nimport { useStrings } from '@/hooks/use-strings';\n\n/* -----------------------------------------------------------------------------\n * Compound API:\n *\n * <Select value={…} onValueChange={…}>\n * <SelectTrigger placeholder=\"Pick one\" />\n * <SelectContent>\n * <SelectGroup label=\"Active\">\n * <SelectItem value=\"a\">Apple</SelectItem>\n * <SelectItem value=\"b\">Banana</SelectItem>\n * </SelectGroup>\n * </SelectContent>\n * </Select>\n *\n * All accessibility is handled by Radix: keyboard navigation, type-ahead,\n * focus trap, ARIA roles. We only style.\n * --------------------------------------------------------------------------- */\n\nexport const Select = SelectPrimitive.Root;\nexport const SelectValue = SelectPrimitive.Value;\n\nexport interface SelectTriggerProps extends Omit<\n ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>,\n 'children'\n> {\n /**\n * Placeholder shown when no value is selected. Also used as the trigger's\n * accessible name when no `aria-label` / `aria-labelledby` / `id` (external\n * `<Label htmlFor>`) is supplied — `role=\"combobox\"` takes no name from\n * its content.\n */\n placeholder?: string;\n /** Trigger height — matches Input sizes. */\n size?: 'sm' | 'md' | 'lg';\n /** Visual tone — `error` swaps the border + ring to danger. */\n tone?: 'default' | 'error';\n}\n\nexport const SelectTrigger = forwardRef<\n ElementRef<typeof SelectPrimitive.Trigger>,\n SelectTriggerProps\n>(function SelectTrigger({ className, placeholder, size = 'md', tone = 'default', ...props }, ref) {\n const strings = useStrings();\n const hasName = Boolean(props['aria-label'] || props['aria-labelledby'] || props.id);\n return (\n <SelectPrimitive.Trigger\n ref={ref}\n aria-label={hasName ? undefined : (placeholder ?? strings.select.placeholder)}\n className={cn(\n 'bg-card text-foreground inline-flex w-full items-center justify-between gap-2 rounded-md border text-lg md:text-sm',\n '[&>span]:min-w-0 [&>span]:truncate',\n 'transition-colors duration-[var(--duration-fast)] ease-[var(--ease-out)]',\n 'outline-none',\n 'focus-visible:ring-offset-background focus-visible:ring-2 focus-visible:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'data-[placeholder]:text-foreground-subtle',\n size === 'sm' && 'h-8 px-2.5',\n size === 'md' && 'h-9 px-3',\n size === 'lg' && 'h-10 px-3.5',\n tone === 'default'\n ? 'border-border-input focus-visible:border-accent focus-visible:ring-ring'\n : 'border-danger focus-visible:border-danger focus-visible:ring-danger',\n className,\n )}\n {...props}\n >\n <SelectPrimitive.Value placeholder={placeholder} />\n <SelectPrimitive.Icon asChild>\n <ChevronsUpDown className=\"text-foreground-subtle size-4 shrink-0\" aria-hidden />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n});\nSelectTrigger.displayName = 'SelectTrigger';\n\nconst scrollBtn = 'flex h-6 cursor-default items-center justify-center text-foreground-subtle';\n\nexport const SelectScrollUpButton = forwardRef<\n ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(function SelectScrollUpButton({ className, ...props }, ref) {\n return (\n <SelectPrimitive.ScrollUpButton ref={ref} className={cn(scrollBtn, className)} {...props}>\n <ChevronUp className=\"size-4\" aria-hidden />\n </SelectPrimitive.ScrollUpButton>\n );\n});\nSelectScrollUpButton.displayName = 'SelectScrollUpButton';\n\nexport const SelectScrollDownButton = forwardRef<\n ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(function SelectScrollDownButton({ className, ...props }, ref) {\n return (\n <SelectPrimitive.ScrollDownButton ref={ref} className={cn(scrollBtn, className)} {...props}>\n <ChevronDown className=\"size-4\" aria-hidden />\n </SelectPrimitive.ScrollDownButton>\n );\n});\nSelectScrollDownButton.displayName = 'SelectScrollDownButton';\n\nexport const SelectContent = forwardRef<\n ElementRef<typeof SelectPrimitive.Content>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(function SelectContent({ className, children, position = 'popper', ...props }, ref) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n position={position}\n className={cn(\n 'z-[var(--z-popover)] max-h-96 min-w-[var(--radix-select-trigger-width)]',\n 'border-border bg-popover text-popover-foreground overflow-hidden rounded-lg border',\n 'shadow-md',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out',\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1',\n className,\n )}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport className=\"p-1\">{children}</SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n});\nSelectContent.displayName = 'SelectContent';\n\nexport const SelectLabel = forwardRef<\n ElementRef<typeof SelectPrimitive.Label>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(function SelectLabel({ className, ...props }, ref) {\n return (\n <SelectPrimitive.Label\n ref={ref}\n className={cn('text-foreground-subtle px-2 py-1.5 text-xs font-medium', className)}\n {...props}\n />\n );\n});\nSelectLabel.displayName = 'SelectLabel';\n\nexport interface SelectItemProps extends ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {\n /** Icon shown to the left of the label. */\n leadingIcon?: ReactNode;\n}\n\nexport const SelectItem = forwardRef<ElementRef<typeof SelectPrimitive.Item>, SelectItemProps>(\n function SelectItem({ className, children, leadingIcon, ...props }, ref) {\n return (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex w-full cursor-default items-center gap-2 select-none',\n 'text-foreground rounded-sm px-2 py-1.5 pr-8 text-sm outline-none',\n 'data-[highlighted]:bg-background-muted data-[highlighted]:text-foreground',\n 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n {leadingIcon && (\n <span className=\"text-foreground-subtle flex items-center [&_svg]:size-4\">\n {leadingIcon}\n </span>\n )}\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n <span className=\"absolute right-2 flex items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"text-accent size-4\" aria-hidden />\n </SelectPrimitive.ItemIndicator>\n </span>\n </SelectPrimitive.Item>\n );\n },\n);\nSelectItem.displayName = 'SelectItem';\n\nexport const SelectSeparator = forwardRef<\n ElementRef<typeof SelectPrimitive.Separator>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(function SelectSeparator({ className, ...props }, ref) {\n return (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn('bg-border -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n});\nSelectSeparator.displayName = 'SelectSeparator';\n\n/** Optional grouping with a label header. Pure composition over Radix Group + Label. */\nexport interface SelectGroupProps extends ComponentPropsWithoutRef<typeof SelectPrimitive.Group> {\n label?: ReactNode;\n}\nexport const SelectGroup = forwardRef<ElementRef<typeof SelectPrimitive.Group>, SelectGroupProps>(\n function SelectGroup({ label, children, ...props }, ref) {\n return (\n <SelectPrimitive.Group ref={ref} {...props}>\n {label && <SelectLabel>{label}</SelectLabel>}\n {children}\n </SelectPrimitive.Group>\n );\n },\n);\nSelectGroup.displayName = 'SelectGroup';\n\n/**\n * Compose `Select` + `SelectTrigger` + `SelectContent` + `SelectItem` for a\n * single-choice picker. Keyboard, type-ahead, and ARIA come from Radix.\n *\n * @example Basic\n * <Select onValueChange={setStatus}>\n * <SelectTrigger placeholder=\"Status\" />\n * <SelectContent>\n * <SelectItem value=\"open\">Open</SelectItem>\n * <SelectItem value=\"closed\">Closed</SelectItem>\n * </SelectContent>\n * </Select>\n *\n * @example Grouped\n * <SelectContent>\n * <SelectGroup label=\"People\">\n * <SelectItem value=\"anu\">Anu</SelectItem>\n * <SelectItem value=\"bat\">Bat</SelectItem>\n * </SelectGroup>\n * <SelectSeparator />\n * <SelectGroup label=\"Bots\">\n * <SelectItem value=\"robo\">Robo</SelectItem>\n * </SelectGroup>\n * </SelectContent>\n *\n * @do Use `placeholder` on the trigger when there is no default value.\n * @dont Use Select for more than ~12 options — switch to `Combobox`.\n */\n"],"mappings":";;;;;;;;AAyBA,IAAa,IAAS,EAAgB,MACzB,IAAc,EAAgB,OAmB9B,IAAgB,EAG3B,SAAuB,EAAE,cAAW,gBAAa,UAAO,MAAM,UAAO,WAAW,GAAG,KAAS,GAAK;CACjG,IAAM,IAAU,EAAW,GACrB,IAAU,GAAQ,EAAM,iBAAiB,EAAM,sBAAsB,EAAM;CACjF,OACE,kBAAC,EAAgB,SAAjB;EACO;EACL,cAAY,IAAU,KAAA,IAAa,KAAe,EAAQ,OAAO;EACjE,WAAW,EACT,sHACA,sCACA,4EACA,gBACA,yFACA,mDACA,6CACA,MAAS,QAAQ,cACjB,MAAS,QAAQ,YACjB,MAAS,QAAQ,eACjB,MAAS,YACL,4EACA,uEACJ,CACF;EACA,GAAI;EAnBN,UAAA,CAqBE,kBAAC,EAAgB,OAAjB,EAAoC,eAAc,CAAA,GAClD,kBAAC,EAAgB,MAAjB;GAAsB,SAAA;GACpB,UAAA,kBAAC,GAAD;IAAgB,WAAU;IAAyC,eAAA;GAAa,CAAA;EAC5D,CAAA,CACC;;AAE7B,CAAC;AACD,EAAc,cAAc;AAE5B,IAAM,IAAY,8EAEL,IAAuB,EAGlC,SAA8B,EAAE,cAAW,GAAG,KAAS,GAAK;CAC5D,OACE,kBAAC,EAAgB,gBAAjB;EAAqC;EAAK,WAAW,EAAG,GAAW,CAAS;EAAG,GAAI;EACjF,UAAA,kBAAC,GAAD;GAAW,WAAU;GAAS,eAAA;EAAa,CAAA;CACb,CAAA;AAEpC,CAAC;AACD,EAAqB,cAAc;AAEnC,IAAa,IAAyB,EAGpC,SAAgC,EAAE,cAAW,GAAG,KAAS,GAAK;CAC9D,OACE,kBAAC,EAAgB,kBAAjB;EAAuC;EAAK,WAAW,EAAG,GAAW,CAAS;EAAG,GAAI;EACnF,UAAA,kBAAC,GAAD;GAAa,WAAU;GAAS,eAAA;EAAa,CAAA;CACb,CAAA;AAEtC,CAAC;AACD,EAAuB,cAAc;AAErC,IAAa,IAAgB,EAG3B,SAAuB,EAAE,cAAW,aAAU,cAAW,UAAU,GAAG,KAAS,GAAK;CACpF,OACE,kBAAC,EAAgB,QAAjB,EAAA,UACE,kBAAC,EAAgB,SAAjB;EACO;EACK;EACV,WAAW,EACT,2EACA,sFACA,aACA,gEACA,8DACA,gEACA,MAAa,YACX,mEACF,CACF;EACA,GAAI;EAdN,UAAA;GAgBE,kBAAC,GAAD,CAAuB,CAAA;GACvB,kBAAC,EAAgB,UAAjB;IAA0B,WAAU;IAAO;GAAmC,CAAA;GAC9E,kBAAC,GAAD,CAAyB,CAAA;EACF;CACH,CAAA,EAAA,CAAA;AAE5B,CAAC;AACD,EAAc,cAAc;AAE5B,IAAa,IAAc,EAGzB,SAAqB,EAAE,cAAW,GAAG,KAAS,GAAK;CACnD,OACE,kBAAC,EAAgB,OAAjB;EACO;EACL,WAAW,EAAG,0DAA0D,CAAS;EACjF,GAAI;CACL,CAAA;AAEL,CAAC;AACD,EAAY,cAAc;AAO1B,IAAa,IAAa,EACxB,SAAoB,EAAE,cAAW,aAAU,gBAAa,GAAG,KAAS,GAAK;CACvE,OACE,kBAAC,EAAgB,MAAjB;EACO;EACL,WAAW,EACT,sEACA,oEACA,6EACA,kEACA,CACF;EACA,GAAI;EATN,UAAA;GAWG,KACC,kBAAC,QAAD;IAAM,WAAU;IACb,UAAA;GACG,CAAA;GAER,kBAAC,EAAgB,UAAjB,EAA2B,YAAmC,CAAA;GAC9D,kBAAC,QAAD;IAAM,WAAU;IACd,UAAA,kBAAC,EAAgB,eAAjB,EAAA,UACE,kBAAC,GAAD;KAAO,WAAU;KAAqB,eAAA;IAAa,CAAA,EACtB,CAAA;GAC3B,CAAA;EACc;;AAE1B,CACF;AACA,EAAW,cAAc;AAEzB,IAAa,IAAkB,EAG7B,SAAyB,EAAE,cAAW,GAAG,KAAS,GAAK;CACvD,OACE,kBAAC,EAAgB,WAAjB;EACO;EACL,WAAW,EAAG,6BAA6B,CAAS;EACpD,GAAI;CACL,CAAA;AAEL,CAAC;AACD,EAAgB,cAAc;AAM9B,IAAa,IAAc,EACzB,SAAqB,EAAE,UAAO,aAAU,GAAG,KAAS,GAAK;CACvD,OACE,kBAAC,EAAgB,OAAjB;EAA4B;EAAK,GAAI;EAArC,UAAA,CACG,KAAS,kBAAC,GAAD,EAAA,UAAc,EAAmB,CAAA,GAC1C,CACoB;;AAE3B,CACF;AACA,EAAY,cAAc"}
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
r === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
16
|
-
o
|
|
17
|
-
),
|
|
18
|
-
...a
|
|
19
|
-
}
|
|
20
|
-
);
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { forwardRef as t } from "react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
import * as r from "@radix-ui/react-separator";
|
|
6
|
+
//#region src/components/ui/Separator.tsx
|
|
7
|
+
var i = t(function({ className: t, orientation: i = "horizontal", decorative: a = !0, ...o }, s) {
|
|
8
|
+
return /* @__PURE__ */ n(r.Root, {
|
|
9
|
+
ref: s,
|
|
10
|
+
orientation: i,
|
|
11
|
+
decorative: a,
|
|
12
|
+
className: e("bg-border shrink-0", i === "horizontal" ? "h-px w-full" : "h-full w-px", t),
|
|
13
|
+
...o
|
|
14
|
+
});
|
|
21
15
|
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=Separator.js.map
|
|
16
|
+
i.displayName = "Separator";
|
|
17
|
+
//#endregion
|
|
18
|
+
export { i as Separator };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=Separator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Separator.js","sources":["../../../src/components/ui/Separator.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef, type ComponentPropsWithoutRef, type ElementRef } from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport { cn } from '@/lib/utils';\n\n/**\n * Hairline divider. Decorative by default (no role announced). Pass\n * `decorative={false}` when the separator carries semantic meaning, e.g.\n * splitting two regions in a landmark.\n *\n * @example Section divider\n * <Separator className=\"my-6\" />\n *\n * @example Vertical inside a toolbar\n * <Separator orientation=\"vertical\" className=\"h-5 mx-2\" />\n */\nexport const Separator = forwardRef<\n ElementRef<typeof SeparatorPrimitive.Root>,\n ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(function Separator({ className, orientation = 'horizontal', decorative = true, ...props }, ref) {\n return (\n <SeparatorPrimitive.Root\n ref={ref}\n orientation={orientation}\n decorative={decorative}\n className={cn(\n 'bg-border shrink-0',\n orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px',\n className,\n )}\n {...props}\n />\n );\n});\nSeparator.displayName = 'Separator';\n"],"
|
|
1
|
+
{"version":3,"file":"Separator.js","names":[],"sources":["../../../src/components/ui/Separator.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef, type ComponentPropsWithoutRef, type ElementRef } from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport { cn } from '@/lib/utils';\n\n/**\n * Hairline divider. Decorative by default (no role announced). Pass\n * `decorative={false}` when the separator carries semantic meaning, e.g.\n * splitting two regions in a landmark.\n *\n * @example Section divider\n * <Separator className=\"my-6\" />\n *\n * @example Vertical inside a toolbar\n * <Separator orientation=\"vertical\" className=\"h-5 mx-2\" />\n */\nexport const Separator = forwardRef<\n ElementRef<typeof SeparatorPrimitive.Root>,\n ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(function Separator({ className, orientation = 'horizontal', decorative = true, ...props }, ref) {\n return (\n <SeparatorPrimitive.Root\n ref={ref}\n orientation={orientation}\n decorative={decorative}\n className={cn(\n 'bg-border shrink-0',\n orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px',\n className,\n )}\n {...props}\n />\n );\n});\nSeparator.displayName = 'Separator';\n"],"mappings":";;;;;;AAiBA,IAAa,IAAY,EAGvB,SAAmB,EAAE,cAAW,iBAAc,cAAc,gBAAa,IAAM,GAAG,KAAS,GAAK;CAChG,OACE,kBAAC,EAAmB,MAApB;EACO;EACQ;EACD;EACZ,WAAW,EACT,sBACA,MAAgB,eAAe,gBAAgB,eAC/C,CACF;EACA,GAAI;CACL,CAAA;AAEL,CAAC;AACD,EAAU,cAAc"}
|
|
@@ -21,11 +21,11 @@ export interface SheetContentProps extends ComponentPropsWithoutRef<typeof Dialo
|
|
|
21
21
|
returnFocusTo?: ReturnFocusRef;
|
|
22
22
|
}
|
|
23
23
|
export declare const SheetContent: import('react').ForwardRefExoticComponent<SheetContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
24
|
-
export declare function SheetHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react
|
|
24
|
+
export declare function SheetHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
25
25
|
export declare namespace SheetHeader {
|
|
26
26
|
var displayName: string;
|
|
27
27
|
}
|
|
28
|
-
export declare function SheetFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react
|
|
28
|
+
export declare function SheetFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
29
29
|
export declare namespace SheetFooter {
|
|
30
30
|
var displayName: string;
|
|
31
31
|
}
|
|
@@ -1,136 +1,84 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { X as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
18
|
-
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
19
|
-
e
|
|
20
|
-
),
|
|
21
|
-
...r
|
|
22
|
-
}
|
|
23
|
-
);
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { cva as t } from "../../lib/cva.js";
|
|
4
|
+
import { useStrings as n } from "../../hooks/use-strings.js";
|
|
5
|
+
import { X as r } from "../../icons/index.js";
|
|
6
|
+
import { withReturnFocus as i } from "../../lib/return-focus.js";
|
|
7
|
+
import { forwardRef as a } from "react";
|
|
8
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
|
+
import * as c from "@radix-ui/react-dialog";
|
|
10
|
+
//#region src/components/ui/Sheet.tsx
|
|
11
|
+
var l = c.Root, u = c.Trigger, d = c.Close, f = c.Portal, p = a(function({ className: t, ...n }, r) {
|
|
12
|
+
return /* @__PURE__ */ o(c.Overlay, {
|
|
13
|
+
ref: r,
|
|
14
|
+
className: e("bg-overlay fixed inset-0 z-[var(--z-overlay)]", "data-[state=open]:animate-in data-[state=closed]:animate-out", "data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0", t),
|
|
15
|
+
...n
|
|
16
|
+
});
|
|
24
17
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return /* @__PURE__ */ d(S, { children: [
|
|
57
|
-
/* @__PURE__ */ o(l, {}),
|
|
58
|
-
/* @__PURE__ */ d(
|
|
59
|
-
t.Content,
|
|
60
|
-
{
|
|
61
|
-
ref: h,
|
|
62
|
-
className: i(y({ side: s }), e),
|
|
63
|
-
onCloseAutoFocus: x(f, c),
|
|
64
|
-
...u,
|
|
65
|
-
children: [
|
|
66
|
-
r,
|
|
67
|
-
m && /* @__PURE__ */ o(
|
|
68
|
-
t.Close,
|
|
69
|
-
{
|
|
70
|
-
"aria-label": p.sheet.close,
|
|
71
|
-
className: i(
|
|
72
|
-
"text-foreground-subtle absolute top-4 right-4 inline-flex size-8 items-center justify-center rounded-md",
|
|
73
|
-
"hover:bg-background-muted hover:text-foreground",
|
|
74
|
-
"focus-visible:ring-ring focus-visible:ring-offset-card outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
75
|
-
"transition-colors duration-[var(--duration-fast)]"
|
|
76
|
-
),
|
|
77
|
-
children: /* @__PURE__ */ o(g, { className: "size-4", "aria-hidden": !0 })
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
] });
|
|
18
|
+
p.displayName = "SheetOverlay";
|
|
19
|
+
var m = t([
|
|
20
|
+
"fixed z-[var(--z-modal)] bg-card text-card-foreground shadow-lg",
|
|
21
|
+
"flex flex-col gap-4 p-6",
|
|
22
|
+
"pb-[max(1.5rem,env(safe-area-inset-bottom))] pl-[max(1.5rem,env(safe-area-inset-left))] pr-[max(1.5rem,env(safe-area-inset-right))]",
|
|
23
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
24
|
+
"data-[state=closed]:duration-[var(--duration-base)] data-[state=open]:duration-[var(--duration-slow)]"
|
|
25
|
+
], {
|
|
26
|
+
variants: { side: {
|
|
27
|
+
top: "inset-x-0 top-0 border-b border-border data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",
|
|
28
|
+
bottom: "inset-x-0 bottom-0 border-t border-border data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom",
|
|
29
|
+
left: "inset-y-0 left-0 h-full w-3/4 max-w-md border-r border-border data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left",
|
|
30
|
+
right: "inset-y-0 right-0 h-full w-3/4 max-w-md border-l border-border data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right"
|
|
31
|
+
} },
|
|
32
|
+
defaultVariants: { side: "right" }
|
|
33
|
+
}), h = a(function({ className: t, children: a, side: l = "right", showClose: u = !0, returnFocusTo: d, onCloseAutoFocus: h, ...g }, _) {
|
|
34
|
+
let v = n();
|
|
35
|
+
return /* @__PURE__ */ s(f, { children: [/* @__PURE__ */ o(p, {}), /* @__PURE__ */ s(c.Content, {
|
|
36
|
+
ref: _,
|
|
37
|
+
className: e(m({ side: l }), t),
|
|
38
|
+
onCloseAutoFocus: i(d, h),
|
|
39
|
+
...g,
|
|
40
|
+
children: [a, u && /* @__PURE__ */ o(c.Close, {
|
|
41
|
+
"aria-label": v.sheet.close,
|
|
42
|
+
className: e("text-foreground-subtle absolute top-4 right-4 inline-flex size-8 items-center justify-center rounded-md", "hover:bg-background-muted hover:text-foreground", "focus-visible:ring-ring focus-visible:ring-offset-card outline-none focus-visible:ring-2 focus-visible:ring-offset-2", "transition-colors duration-[var(--duration-fast)]"),
|
|
43
|
+
children: /* @__PURE__ */ o(r, {
|
|
44
|
+
className: "size-4",
|
|
45
|
+
"aria-hidden": !0
|
|
46
|
+
})
|
|
47
|
+
})]
|
|
48
|
+
})] });
|
|
84
49
|
});
|
|
85
|
-
|
|
86
|
-
function
|
|
87
|
-
|
|
50
|
+
h.displayName = "SheetContent";
|
|
51
|
+
function g({ className: t, ...n }) {
|
|
52
|
+
return /* @__PURE__ */ o("div", {
|
|
53
|
+
className: e("flex flex-col gap-1", t),
|
|
54
|
+
...n
|
|
55
|
+
});
|
|
88
56
|
}
|
|
89
|
-
|
|
90
|
-
function
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"mt-auto flex flex-col-reverse gap-2 pt-4 sm:flex-row sm:justify-end",
|
|
96
|
-
a
|
|
97
|
-
),
|
|
98
|
-
...e
|
|
99
|
-
}
|
|
100
|
-
);
|
|
57
|
+
g.displayName = "SheetHeader";
|
|
58
|
+
function _({ className: t, ...n }) {
|
|
59
|
+
return /* @__PURE__ */ o("div", {
|
|
60
|
+
className: e("mt-auto flex flex-col-reverse gap-2 pt-4 sm:flex-row sm:justify-end", t),
|
|
61
|
+
...n
|
|
62
|
+
});
|
|
101
63
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
...r
|
|
110
|
-
}
|
|
111
|
-
);
|
|
64
|
+
_.displayName = "SheetFooter";
|
|
65
|
+
var v = a(function({ className: t, ...n }, r) {
|
|
66
|
+
return /* @__PURE__ */ o(c.Title, {
|
|
67
|
+
ref: r,
|
|
68
|
+
className: e("text-foreground text-lg leading-tight font-semibold", t),
|
|
69
|
+
...n
|
|
70
|
+
});
|
|
112
71
|
});
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
...r
|
|
121
|
-
}
|
|
122
|
-
);
|
|
72
|
+
v.displayName = "SheetTitle";
|
|
73
|
+
var y = a(function({ className: t, ...n }, r) {
|
|
74
|
+
return /* @__PURE__ */ o(c.Description, {
|
|
75
|
+
ref: r,
|
|
76
|
+
className: e("text-foreground-muted text-sm", t),
|
|
77
|
+
...n
|
|
78
|
+
});
|
|
123
79
|
});
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
T as SheetDescription,
|
|
130
|
-
C as SheetFooter,
|
|
131
|
-
w as SheetHeader,
|
|
132
|
-
S as SheetPortal,
|
|
133
|
-
z as SheetTitle,
|
|
134
|
-
A as SheetTrigger
|
|
135
|
-
};
|
|
136
|
-
//# sourceMappingURL=Sheet.js.map
|
|
80
|
+
y.displayName = "SheetDescription";
|
|
81
|
+
//#endregion
|
|
82
|
+
export { l as Sheet, d as SheetClose, h as SheetContent, y as SheetDescription, _ as SheetFooter, g as SheetHeader, f as SheetPortal, v as SheetTitle, u as SheetTrigger };
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=Sheet.js.map
|