@almanaclabs/blaze-ui 0.4.0 → 0.6.0
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/components/accordion/accordion.js +2 -2
- package/dist/components/alert/alert.d.ts +1 -1
- package/dist/components/alert/alert.js +4 -4
- package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +3 -3
- package/dist/components/attachment/attachment.d.ts +2 -2
- package/dist/components/attachment/attachment.js +3 -3
- package/dist/components/avatar/avatar.d.ts +6 -4
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +10 -9
- package/dist/components/badge/badge.d.ts +3 -2
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.js +30 -14
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/components/bubble/bubble.d.ts +1 -1
- package/dist/components/bubble/bubble.js +1 -1
- package/dist/components/button/button.d.ts +5 -3
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +46 -27
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/button-group/button-group.js +4 -4
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/calendar.js +18 -18
- package/dist/components/card/card.js +4 -4
- package/dist/components/carousel/carousel.d.ts.map +1 -1
- package/dist/components/carousel/carousel.js +31 -31
- package/dist/components/chart/chart.js +34 -34
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +44 -44
- package/dist/components/data-table/data-table.js +1 -1
- package/dist/components/date-picker/date-picker.js +10 -10
- package/dist/components/dialog/dialog.js +3 -3
- package/dist/components/drawer/drawer.js +37 -37
- package/dist/components/dropdown-menu/dropdown-menu.js +7 -7
- package/dist/components/empty/empty.d.ts.map +1 -1
- package/dist/components/empty/empty.js +4 -4
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/field/field.js +28 -28
- package/dist/components/identity-mark/identity-mark.d.ts +5 -0
- package/dist/components/identity-mark/identity-mark.d.ts.map +1 -0
- package/dist/components/identity-mark/identity-mark.js +20 -0
- package/dist/components/identity-mark/index.d.ts +2 -0
- package/dist/components/identity-mark/index.d.ts.map +1 -0
- package/dist/components/input/input.d.ts +9 -2
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/input.js +23 -10
- package/dist/components/input-group/input-group.d.ts +11 -3
- package/dist/components/input-group/input-group.d.ts.map +1 -1
- package/dist/components/input-group/input-group.js +56 -38
- package/dist/components/item/item.d.ts +2 -2
- package/dist/components/item/item.js +2 -2
- package/dist/components/label/label.js +2 -2
- package/dist/components/marker/marker.d.ts +1 -1
- package/dist/components/marker/marker.js +3 -3
- package/dist/components/message/message.js +1 -1
- package/dist/components/metric-overview/index.d.ts +2 -0
- package/dist/components/metric-overview/index.d.ts.map +1 -0
- package/dist/components/metric-overview/metric-overview.d.ts +12 -0
- package/dist/components/metric-overview/metric-overview.d.ts.map +1 -0
- package/dist/components/metric-overview/metric-overview.js +42 -0
- package/dist/components/native-select/native-select.d.ts +2 -1
- package/dist/components/native-select/native-select.d.ts.map +1 -1
- package/dist/components/native-select/native-select.js +22 -21
- package/dist/components/navigation-action/index.d.ts +2 -0
- package/dist/components/navigation-action/index.d.ts.map +1 -0
- package/dist/components/navigation-action/navigation-action.d.ts +6 -0
- package/dist/components/navigation-action/navigation-action.d.ts.map +1 -0
- package/dist/components/navigation-action/navigation-action.js +18 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -1
- package/dist/components/pagination/pagination.js +6 -6
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/progress/progress.js +2 -2
- package/dist/components/questionnaire/questionnaire-primitive.js +71 -71
- package/dist/components/questionnaire/questionnaire.d.ts.map +1 -1
- package/dist/components/questionnaire/questionnaire.js +7 -7
- package/dist/components/scroll-area/scroll-area.js +1 -1
- package/dist/components/select/select.d.ts +2 -1
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +50 -49
- package/dist/components/sheet/sheet.js +2 -2
- package/dist/components/sidebar/sidebar.d.ts +13 -2
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.js +156 -95
- package/dist/components/spinner/spinner.js +1 -1
- package/dist/components/table/table.d.ts +4 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +11 -9
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.js +2 -2
- package/dist/components/textarea/textarea.js +2 -2
- package/dist/components/toast/toast.d.ts.map +1 -1
- package/dist/components/toast/toast.js +6 -6
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-group/toggle-group.js +10 -10
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +58 -55
- package/dist/lib/control-size.d.ts +9 -0
- package/dist/lib/control-size.d.ts.map +1 -0
- package/dist/lib/control-size.js +10 -0
- package/dist/recipes/recipe-runtime.d.ts +12 -0
- package/dist/recipes/recipe-runtime.d.ts.map +1 -1
- package/package.json +1 -1
- package/recipes/README.md +2 -0
- package/recipes/guided-workflow/README.md +51 -0
- package/recipes/guided-workflow/guided-workflow.tsx +495 -0
- package/recipes/manifest.json +8 -1
- package/recipes/workspace-shell/README.md +79 -25
- package/recipes/workspace-shell/assets/google-search-ads.svg +6 -0
- package/recipes/workspace-shell/assets/home.svg +5 -0
- package/recipes/workspace-shell/assets/radiant-health.png +0 -0
- package/recipes/workspace-shell/workspace-shell.css +55 -0
- package/recipes/workspace-shell/workspace-shell.tsx +463 -220
- package/src/styles/fonts/Sohne-Book.woff2 +0 -0
- package/src/styles/fonts/Sohne-Medium.woff2 +0 -0
- package/src/styles/fonts/Sohne-Semi.woff2 +0 -0
- package/src/styles/globals.css +235 -56
|
@@ -1,157 +1,157 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
2
|
import { Button as t } from "../button/button.js";
|
|
3
3
|
import { InputGroup as n, InputGroupAddon as r, InputGroupButton as i, InputGroupInput as a } from "../input-group/input-group.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import * as o from "react";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
6
|
import { IconCheck as l, IconChevronDown as u, IconX as d } from "@tabler/icons-react";
|
|
7
7
|
import { Combobox as f } from "@base-ui/react";
|
|
8
8
|
//#region src/components/combobox/combobox.tsx
|
|
9
9
|
var p = f.Root;
|
|
10
10
|
function m({ ...e }) {
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ s(f.Value, {
|
|
12
12
|
"data-slot": "combobox-value",
|
|
13
13
|
...e
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
function h({ className: t, children: n, ...r }) {
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ c(f.Trigger, {
|
|
18
18
|
"data-slot": "combobox-trigger",
|
|
19
|
-
className: e("[&_svg:not([class*='size-'])]:size-4", t),
|
|
19
|
+
className: e("[--icon-stroke-width:var(--icon-stroke-16)] [&_svg:not([class*='size-'])]:size-4", t),
|
|
20
20
|
...r,
|
|
21
|
-
children: [n, /* @__PURE__ */
|
|
21
|
+
children: [n, /* @__PURE__ */ s(u, { className: "pointer-events-none size-4 text-muted-foreground" })]
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
function g({ className: t, "aria-label": n = "Clear selection", ...r }) {
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ s(f.Clear, {
|
|
26
26
|
"data-slot": "combobox-clear",
|
|
27
|
-
render: /* @__PURE__ */
|
|
28
|
-
variant: "
|
|
27
|
+
render: /* @__PURE__ */ s(i, {
|
|
28
|
+
variant: "tertiary",
|
|
29
29
|
size: "icon-xs"
|
|
30
30
|
}),
|
|
31
31
|
className: e(t),
|
|
32
32
|
"aria-label": n,
|
|
33
33
|
...r,
|
|
34
|
-
children: /* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ s(d, { className: "pointer-events-none" })
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
function _({ className: t, children:
|
|
38
|
-
return /* @__PURE__ */
|
|
37
|
+
function _({ className: t, children: o, disabled: l = !1, showTrigger: u = !0, showClear: d = !1, triggerAriaLabel: p = "Toggle suggestions", ...m }) {
|
|
38
|
+
return /* @__PURE__ */ c(n, {
|
|
39
39
|
className: e("w-auto", t),
|
|
40
40
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
render: /* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ s(f.Input, {
|
|
42
|
+
render: /* @__PURE__ */ s(a, { disabled: l }),
|
|
43
43
|
...m
|
|
44
44
|
}),
|
|
45
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ c(r, {
|
|
46
46
|
align: "inline-end",
|
|
47
|
-
children: [u && /* @__PURE__ */
|
|
47
|
+
children: [u && /* @__PURE__ */ s(i, {
|
|
48
48
|
size: "icon-xs",
|
|
49
|
-
variant: "
|
|
50
|
-
render: /* @__PURE__ */
|
|
49
|
+
variant: "tertiary",
|
|
50
|
+
render: /* @__PURE__ */ s(h, {}),
|
|
51
51
|
"data-slot": "input-group-button",
|
|
52
52
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
53
53
|
disabled: l,
|
|
54
54
|
"aria-label": p
|
|
55
|
-
}), d && /* @__PURE__ */
|
|
55
|
+
}), d && /* @__PURE__ */ s(g, { disabled: l })]
|
|
56
56
|
}),
|
|
57
|
-
|
|
57
|
+
o
|
|
58
58
|
]
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
function v({ className: t, side: n = "bottom", sideOffset: r = 6, align: i = "start", alignOffset: a = 0, anchor:
|
|
62
|
-
return /* @__PURE__ */
|
|
61
|
+
function v({ className: t, side: n = "bottom", sideOffset: r = 6, align: i = "start", alignOffset: a = 0, anchor: o, ...c }) {
|
|
62
|
+
return /* @__PURE__ */ s(f.Portal, { children: /* @__PURE__ */ s(f.Positioner, {
|
|
63
63
|
side: n,
|
|
64
64
|
sideOffset: r,
|
|
65
65
|
align: i,
|
|
66
66
|
alignOffset: a,
|
|
67
|
-
anchor:
|
|
67
|
+
anchor: o,
|
|
68
68
|
className: "isolate z-50",
|
|
69
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ s(f.Popup, {
|
|
70
70
|
"data-slot": "combobox-content",
|
|
71
|
-
"data-chips": !!
|
|
71
|
+
"data-chips": !!o,
|
|
72
72
|
className: e("group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", t),
|
|
73
73
|
...c
|
|
74
74
|
})
|
|
75
75
|
}) });
|
|
76
76
|
}
|
|
77
77
|
function y({ className: t, ...n }) {
|
|
78
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ s(f.List, {
|
|
79
79
|
"data-slot": "combobox-list",
|
|
80
80
|
className: e("no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0", t),
|
|
81
81
|
...n
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
function b({ className: t, children: n, ...r }) {
|
|
85
|
-
return /* @__PURE__ */
|
|
85
|
+
return /* @__PURE__ */ c(f.Item, {
|
|
86
86
|
"data-slot": "combobox-item",
|
|
87
|
-
className: e("relative flex w-full cursor-default items-center gap-2 rounded-md py-1 pr-8 pl-1.5
|
|
87
|
+
className: e("type-body relative flex w-full cursor-default items-center gap-2 rounded-md py-1 pr-8 pl-1.5 outline-hidden select-none [--icon-stroke-width:var(--icon-stroke-16)] data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
88
88
|
...r,
|
|
89
|
-
children: [n, /* @__PURE__ */
|
|
90
|
-
render: /* @__PURE__ */
|
|
91
|
-
children: /* @__PURE__ */
|
|
89
|
+
children: [n, /* @__PURE__ */ s(f.ItemIndicator, {
|
|
90
|
+
render: /* @__PURE__ */ s("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
91
|
+
children: /* @__PURE__ */ s(l, { className: "pointer-events-none" })
|
|
92
92
|
})]
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
function x({ className: t, ...n }) {
|
|
96
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ s(f.Group, {
|
|
97
97
|
"data-slot": "combobox-group",
|
|
98
98
|
className: e(t),
|
|
99
99
|
...n
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
function S({ className: t, ...n }) {
|
|
103
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ s(f.GroupLabel, {
|
|
104
104
|
"data-slot": "combobox-label",
|
|
105
105
|
className: e("px-2 py-1.5 text-xs text-muted-foreground", t),
|
|
106
106
|
...n
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
function C({ ...e }) {
|
|
110
|
-
return /* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */ s(f.Collection, {
|
|
111
111
|
"data-slot": "combobox-collection",
|
|
112
112
|
...e
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
function w({ className: t, ...n }) {
|
|
116
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ s(f.Empty, {
|
|
117
117
|
"data-slot": "combobox-empty",
|
|
118
118
|
className: e("hidden w-full justify-center py-2 text-center text-sm text-muted-foreground group-data-empty/combobox-content:flex", t),
|
|
119
119
|
...n
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
function T({ className: t, ...n }) {
|
|
123
|
-
return /* @__PURE__ */
|
|
123
|
+
return /* @__PURE__ */ s(f.Separator, {
|
|
124
124
|
"data-slot": "combobox-separator",
|
|
125
125
|
className: e("-mx-1 my-1 h-px bg-border", t),
|
|
126
126
|
...n
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
function E({ className: t, ...n }) {
|
|
130
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ s(f.Chips, {
|
|
131
131
|
"data-slot": "combobox-chips",
|
|
132
132
|
className: e("flex min-h-8 flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 has-data-[slot=combobox-chip]:px-1 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40", t),
|
|
133
133
|
...n
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
function D({ className: n, children: r, showRemove: i = !0, ...a }) {
|
|
137
|
-
return /* @__PURE__ */
|
|
137
|
+
return /* @__PURE__ */ c(f.Chip, {
|
|
138
138
|
"data-slot": "combobox-chip",
|
|
139
139
|
className: e("flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm bg-muted px-1.5 text-xs font-medium whitespace-nowrap text-foreground has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pr-0", n),
|
|
140
140
|
...a,
|
|
141
|
-
children: [r, i && /* @__PURE__ */
|
|
142
|
-
render: /* @__PURE__ */
|
|
143
|
-
variant: "
|
|
141
|
+
children: [r, i && /* @__PURE__ */ s(f.ChipRemove, {
|
|
142
|
+
render: /* @__PURE__ */ s(t, {
|
|
143
|
+
variant: "tertiary",
|
|
144
144
|
size: "icon-xs"
|
|
145
145
|
}),
|
|
146
146
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
147
147
|
"data-slot": "combobox-chip-remove",
|
|
148
148
|
"aria-label": "Remove item",
|
|
149
|
-
children: /* @__PURE__ */
|
|
149
|
+
children: /* @__PURE__ */ s(d, { className: "pointer-events-none" })
|
|
150
150
|
})]
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
function O({ className: t, "aria-label": n = "Search options", ...r }) {
|
|
154
|
-
return /* @__PURE__ */
|
|
154
|
+
return /* @__PURE__ */ s(f.Input, {
|
|
155
155
|
"data-slot": "combobox-chip-input",
|
|
156
156
|
"aria-label": n,
|
|
157
157
|
className: e("min-w-16 flex-1 outline-none", t),
|
|
@@ -159,7 +159,7 @@ function O({ className: t, "aria-label": n = "Search options", ...r }) {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
function k() {
|
|
162
|
-
return
|
|
162
|
+
return o.useRef(null);
|
|
163
163
|
}
|
|
164
164
|
//#endregion
|
|
165
165
|
export { p as Combobox, D as ComboboxChip, E as ComboboxChips, O as ComboboxChipsInput, C as ComboboxCollection, v as ComboboxContent, w as ComboboxEmpty, x as ComboboxGroup, _ as ComboboxInput, b as ComboboxItem, S as ComboboxLabel, y as ComboboxList, T as ComboboxSeparator, h as ComboboxTrigger, m as ComboboxValue, k as useComboboxAnchor };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
2
|
import { Table as t, TableBody as n, TableCell as r, TableHead as i, TableHeader as a, TableRow as o } from "../table/table.js";
|
|
3
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
3
|
import "react";
|
|
4
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
5
|
import { flexRender as l, getCoreRowModel as u, useReactTable as d } from "@tanstack/react-table";
|
|
6
6
|
//#region src/components/data-table/data-table.tsx
|
|
7
7
|
function f({ columns: f, data: p, emptyMessage: m = "No results.", className: h }) {
|
|
@@ -2,31 +2,31 @@ import { cn as e } from "../../lib/utils.js";
|
|
|
2
2
|
import { Button as t } from "../button/button.js";
|
|
3
3
|
import { Calendar as n } from "../calendar/calendar.js";
|
|
4
4
|
import { Popover as r, PopoverContent as i, PopoverTrigger as a } from "../popover/popover.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import * as o from "react";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
import { IconCalendar as l } from "@tabler/icons-react";
|
|
8
8
|
import { format as u } from "date-fns";
|
|
9
9
|
//#region src/components/date-picker/date-picker.tsx
|
|
10
10
|
function d(d) {
|
|
11
|
-
let { value: f, defaultValue: p, onValueChange: m, placeholder: h = "Pick a date", disabled: g, className: _, calendarProps: v, triggerProps: y, formatValue: b = (e) => u(e, "PPP") } = d, [x, S] =
|
|
11
|
+
let { value: f, defaultValue: p, onValueChange: m, placeholder: h = "Pick a date", disabled: g, className: _, calendarProps: v, triggerProps: y, formatValue: b = (e) => u(e, "PPP") } = d, [x, S] = o.useState(p), [C, w] = o.useState(!1), T = Object.prototype.hasOwnProperty.call(d, "value"), E = T ? f : x, D = (e) => {
|
|
12
12
|
T || S(e), m?.(e), e && w(!1);
|
|
13
13
|
};
|
|
14
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ c(r, {
|
|
15
15
|
open: C,
|
|
16
16
|
onOpenChange: w,
|
|
17
|
-
children: [/* @__PURE__ */
|
|
17
|
+
children: [/* @__PURE__ */ c(a, {
|
|
18
18
|
disabled: g,
|
|
19
|
-
render: /* @__PURE__ */
|
|
19
|
+
render: /* @__PURE__ */ s(t, {
|
|
20
20
|
...y,
|
|
21
|
-
variant: y?.variant ?? "
|
|
21
|
+
variant: y?.variant ?? "secondary",
|
|
22
22
|
className: e("justify-start text-left font-normal data-[empty=true]:text-muted-foreground", _, y?.className)
|
|
23
23
|
}),
|
|
24
|
-
children: [/* @__PURE__ */
|
|
25
|
-
}), /* @__PURE__ */
|
|
24
|
+
children: [/* @__PURE__ */ s(l, { "data-icon": "inline-start" }), E ? b(E) : /* @__PURE__ */ s("span", { children: h })]
|
|
25
|
+
}), /* @__PURE__ */ s(i, {
|
|
26
26
|
align: "start",
|
|
27
27
|
"aria-label": "Choose date",
|
|
28
28
|
className: "w-auto p-0",
|
|
29
|
-
children: /* @__PURE__ */
|
|
29
|
+
children: /* @__PURE__ */ s(n, {
|
|
30
30
|
...v,
|
|
31
31
|
mode: "single",
|
|
32
32
|
selected: E,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
3
|
import { Button as t } from "../button/button.js";
|
|
4
|
-
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
4
|
import "react";
|
|
5
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
6
6
|
import { IconX as i } from "@tabler/icons-react";
|
|
7
7
|
import { Dialog as a } from "@base-ui/react/dialog";
|
|
8
8
|
//#region src/components/dialog/dialog.tsx
|
|
@@ -45,7 +45,7 @@ function d({ className: o, children: s, showCloseButton: l = !0, ...d }) {
|
|
|
45
45
|
children: [s, l && /* @__PURE__ */ r(a.Close, {
|
|
46
46
|
"data-slot": "dialog-close",
|
|
47
47
|
render: /* @__PURE__ */ n(t, {
|
|
48
|
-
variant: "
|
|
48
|
+
variant: "tertiary",
|
|
49
49
|
className: "absolute top-2 right-2",
|
|
50
50
|
size: "icon-sm"
|
|
51
51
|
}),
|
|
@@ -69,7 +69,7 @@ function p({ className: i, showCloseButton: o = !1, children: s, ...c }) {
|
|
|
69
69
|
className: e("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", i),
|
|
70
70
|
...c,
|
|
71
71
|
children: [s, o && /* @__PURE__ */ n(a.Close, {
|
|
72
|
-
render: /* @__PURE__ */ n(t, { variant: "
|
|
72
|
+
render: /* @__PURE__ */ n(t, { variant: "secondary" }),
|
|
73
73
|
children: "Close"
|
|
74
74
|
})]
|
|
75
75
|
});
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
import { Drawer as i } from "@base-ui/react/drawer";
|
|
6
6
|
//#region src/components/drawer/drawer.tsx
|
|
7
|
-
var a =
|
|
7
|
+
var a = t.createContext(null);
|
|
8
8
|
function o() {
|
|
9
|
-
let e =
|
|
9
|
+
let e = t.useContext(a);
|
|
10
10
|
if (!e) throw Error("useDrawer must be used within a Drawer.");
|
|
11
11
|
return e;
|
|
12
12
|
}
|
|
13
|
-
function s({ modal: e = !0, showSwipeHandle:
|
|
14
|
-
let l = o != null && o.length > 0, u =
|
|
13
|
+
function s({ modal: e = !0, showSwipeHandle: r = !1, snapPoints: o, swipeDirection: s = "down", ...c }) {
|
|
14
|
+
let l = o != null && o.length > 0, u = t.useMemo(() => ({
|
|
15
15
|
hasSnapPoints: l,
|
|
16
16
|
modal: e,
|
|
17
|
-
showSwipeHandle:
|
|
17
|
+
showSwipeHandle: r,
|
|
18
18
|
swipeDirection: s
|
|
19
19
|
}), [
|
|
20
20
|
l,
|
|
21
21
|
e,
|
|
22
|
-
|
|
22
|
+
r,
|
|
23
23
|
s
|
|
24
24
|
]);
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ n(a.Provider, {
|
|
26
26
|
value: u,
|
|
27
|
-
children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ n(i.Root, {
|
|
28
28
|
"data-slot": "drawer",
|
|
29
29
|
modal: e,
|
|
30
30
|
snapPoints: o,
|
|
@@ -34,53 +34,53 @@ function s({ modal: e = !0, showSwipeHandle: n = !1, snapPoints: o, swipeDirecti
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
function c({ ...e }) {
|
|
37
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ n(i.Trigger, {
|
|
38
38
|
"data-slot": "drawer-trigger",
|
|
39
39
|
...e
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
function l({ ...e }) {
|
|
43
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ n(i.Portal, {
|
|
44
44
|
"data-slot": "drawer-portal",
|
|
45
45
|
...e
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
function u({ ...e }) {
|
|
49
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ n(i.Close, {
|
|
50
50
|
"data-slot": "drawer-close",
|
|
51
51
|
...e
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
function d({ className:
|
|
55
|
-
return /* @__PURE__ */
|
|
54
|
+
function d({ className: t, ...r }) {
|
|
55
|
+
return /* @__PURE__ */ n(i.Backdrop, {
|
|
56
56
|
"data-slot": "drawer-overlay",
|
|
57
|
-
className: e("fixed inset-0 z-50 min-h-dvh bg-foreground/10 opacity-[max(var(--drawer-overlay-min-opacity,0),calc(1-var(--drawer-swipe-progress)))] transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] select-none data-ending-style:pointer-events-none data-ending-style:opacity-0 data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-snap-points:[--drawer-overlay-min-opacity:0.5] data-starting-style:opacity-0 data-swiping:duration-0 supports-backdrop-filter:backdrop-blur-xs supports-[-webkit-touch-callout:none]:absolute",
|
|
57
|
+
className: e("fixed inset-0 z-50 min-h-dvh bg-foreground/10 opacity-[max(var(--drawer-overlay-min-opacity,0),calc(1-var(--drawer-swipe-progress)))] transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] select-none data-ending-style:pointer-events-none data-ending-style:opacity-0 data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-snap-points:[--drawer-overlay-min-opacity:0.5] data-starting-style:opacity-0 data-swiping:duration-0 supports-backdrop-filter:backdrop-blur-xs supports-[-webkit-touch-callout:none]:absolute", t),
|
|
58
58
|
...r
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
function f({ className:
|
|
62
|
-
return /* @__PURE__ */
|
|
61
|
+
function f({ className: t, ...r }) {
|
|
62
|
+
return /* @__PURE__ */ n("div", {
|
|
63
63
|
"data-slot": "drawer-swipe-handle",
|
|
64
64
|
"aria-hidden": "true",
|
|
65
|
-
className: e("relative z-10 flex shrink-0 cursor-grab transition-opacity duration-200 group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-[swipe-axis=x]/drawer-popup:h-full group-data-[swipe-axis=x]/drawer-popup:w-3 group-data-[swipe-axis=x]/drawer-popup:items-center group-data-[swipe-axis=y]/drawer-popup:h-3 group-data-[swipe-axis=y]/drawer-popup:w-full group-data-[swipe-axis=y]/drawer-popup:justify-center group-data-[swipe-direction=down]/drawer-popup:items-end group-data-[swipe-direction=left]/drawer-popup:order-last group-data-[swipe-direction=left]/drawer-popup:justify-start group-data-[swipe-direction=right]/drawer-popup:justify-end group-data-[swipe-direction=up]/drawer-popup:order-last group-data-[swipe-direction=up]/drawer-popup:items-start after:block after:shrink-0 after:rounded-full after:bg-muted group-data-[swipe-axis=x]/drawer-popup:after:h-24 group-data-[swipe-axis=x]/drawer-popup:after:w-1 group-data-[swipe-axis=y]/drawer-popup:after:h-1 group-data-[swipe-axis=y]/drawer-popup:after:w-24 active:cursor-grabbing",
|
|
65
|
+
className: e("relative z-10 flex shrink-0 cursor-grab transition-opacity duration-200 group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-[swipe-axis=x]/drawer-popup:h-full group-data-[swipe-axis=x]/drawer-popup:w-3 group-data-[swipe-axis=x]/drawer-popup:items-center group-data-[swipe-axis=y]/drawer-popup:h-3 group-data-[swipe-axis=y]/drawer-popup:w-full group-data-[swipe-axis=y]/drawer-popup:justify-center group-data-[swipe-direction=down]/drawer-popup:items-end group-data-[swipe-direction=left]/drawer-popup:order-last group-data-[swipe-direction=left]/drawer-popup:justify-start group-data-[swipe-direction=right]/drawer-popup:justify-end group-data-[swipe-direction=up]/drawer-popup:order-last group-data-[swipe-direction=up]/drawer-popup:items-start after:block after:shrink-0 after:rounded-full after:bg-muted group-data-[swipe-axis=x]/drawer-popup:after:h-24 group-data-[swipe-axis=x]/drawer-popup:after:w-1 group-data-[swipe-axis=y]/drawer-popup:after:h-1 group-data-[swipe-axis=y]/drawer-popup:after:w-24 active:cursor-grabbing", t),
|
|
66
66
|
...r
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
function p({ className:
|
|
69
|
+
function p({ className: t, children: a, ...s }) {
|
|
70
70
|
let { hasSnapPoints: c, modal: u, showSwipeHandle: p, swipeDirection: m } = o(), h = m === "down" || m === "up" ? "y" : "x";
|
|
71
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ r(l, {
|
|
72
72
|
"data-slot": "drawer-portal",
|
|
73
|
-
children: [u === !0 && /* @__PURE__ */
|
|
73
|
+
children: [u === !0 && /* @__PURE__ */ n(d, { "data-snap-points": c ? "" : void 0 }), /* @__PURE__ */ n(i.Viewport, {
|
|
74
74
|
"data-slot": "drawer-viewport",
|
|
75
75
|
"data-modal": u,
|
|
76
76
|
className: "pointer-events-none fixed inset-0 z-50 select-none data-[modal=true]:pointer-events-auto",
|
|
77
|
-
children: /* @__PURE__ */
|
|
77
|
+
children: /* @__PURE__ */ r(i.Popup, {
|
|
78
78
|
"data-slot": "drawer-popup",
|
|
79
79
|
"data-swipe-axis": h,
|
|
80
80
|
"data-snap-points": c ? "" : void 0,
|
|
81
|
-
className: e("group/drawer-popup pointer-events-auto fixed z-50 m-(--drawer-inset,0px) flex h-(--drawer-content-height) max-h-(--drawer-content-max-height,none) min-h-0 w-(--drawer-content-width,auto) transform-[translate3d(var(--translate-x,0px),var(--translate-y,0px),0)_scale(var(--stack-scale))] flex-col bg-popover text-sm text-popover-foreground transition-[transform,height,opacity,filter] duration-450 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform outline-none select-none [interpolate-size:allow-keywords] data-[swipe-direction=down]:rounded-t-xl data-[swipe-direction=down]:border-t data-[swipe-direction=left]:rounded-r-xl data-[swipe-direction=left]:border-r data-[swipe-direction=right]:rounded-l-xl data-[swipe-direction=right]:border-l data-[swipe-direction=up]:rounded-b-xl data-[swipe-direction=up]:border-b", "data-nested-drawer-open:overflow-hidden data-nested-drawer-open:brightness-95", "after:pointer-events-none after:absolute after:bg-(--drawer-bleed-background,var(--color-popover)) data-[swipe-axis=x]:after:inset-y-0 data-[swipe-axis=x]:after:w-(--bleed) data-[swipe-axis=y]:after:inset-x-0 data-[swipe-axis=y]:after:h-(--bleed) data-[swipe-direction=down]:after:top-full data-[swipe-direction=left]:after:right-full data-[swipe-direction=right]:after:left-full data-[swipe-direction=up]:after:bottom-full", "[--drawer-content-height:var(--drawer-height,auto)] data-[swipe-axis=x]:[--drawer-content-width:75%] data-[swipe-axis=y]:[--drawer-content-max-height:calc(100dvh-6rem)] data-[swipe-axis=y]:data-snap-points:[--drawer-content-height:100dvh] data-[swipe-axis=x]:sm:[--drawer-content-width:24rem]", "[--bleed:3rem] [--peek:1rem] [--stack-height:var(--drawer-frontmost-height,var(--drawer-height,0px))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-scale-base:max(0,calc(1-(var(--nested-drawers)*var(--stack-step))))] [--stack-scale:clamp(0,calc(var(--stack-scale-base)+(var(--stack-step)*var(--stack-progress))),1)] [--stack-shrink:calc(1-var(--stack-scale))] [--stack-step:0.05]", "data-ending-style:transform-(--closed-transform) data-ending-style:opacity-[0.9999] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-nested-drawer-swiping:duration-0 data-ending-style:data-nested-drawer-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-starting-style:transform-(--closed-transform) data-swiping:duration-0 data-ending-style:data-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)]", "data-[swipe-axis=y]:inset-x-0 data-[swipe-axis=y]:data-nested-drawer-open:h-(--stack-height)", "data-[swipe-axis=x]:inset-y-0 data-[swipe-axis=x]:flex-row", "data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:origin-bottom data-[swipe-direction=down]:[--closed-transform:translate3d(0,calc(100%+var(--drawer-inset,0px)+2px),0)] data-[swipe-direction=down]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--stack-shrink)*var(--stack-height)))]", "data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:origin-top data-[swipe-direction=up]:[--closed-transform:translate3d(0,calc(-100%-var(--drawer-inset,0px)-2px),0)] data-[swipe-direction=up]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--stack-shrink)*var(--stack-height)))]", "data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:origin-left data-[swipe-direction=left]:[--closed-transform:translate3d(calc(-100%-var(--drawer-inset,0px)-2px),0,0)] data-[swipe-direction=left]:[--translate-x:calc(var(--drawer-swipe-movement-x)+var(--stack-peek-offset)+(var(--stack-shrink)*100%))]", "data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:origin-right data-[swipe-direction=right]:[--closed-transform:translate3d(calc(100%+var(--drawer-inset,0px)+2px),0,0)] data-[swipe-direction=right]:[--translate-x:calc(var(--drawer-swipe-movement-x)-var(--stack-peek-offset)-(var(--stack-shrink)*100%))]",
|
|
81
|
+
className: e("group/drawer-popup pointer-events-auto fixed z-50 m-(--drawer-inset,0px) flex h-(--drawer-content-height) max-h-(--drawer-content-max-height,none) min-h-0 w-(--drawer-content-width,auto) transform-[translate3d(var(--translate-x,0px),var(--translate-y,0px),0)_scale(var(--stack-scale))] flex-col bg-popover text-sm text-popover-foreground transition-[transform,height,opacity,filter] duration-450 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform outline-none select-none [interpolate-size:allow-keywords] data-[swipe-direction=down]:rounded-t-xl data-[swipe-direction=down]:border-t data-[swipe-direction=left]:rounded-r-xl data-[swipe-direction=left]:border-r data-[swipe-direction=right]:rounded-l-xl data-[swipe-direction=right]:border-l data-[swipe-direction=up]:rounded-b-xl data-[swipe-direction=up]:border-b", "data-nested-drawer-open:overflow-hidden data-nested-drawer-open:brightness-95", "after:pointer-events-none after:absolute after:bg-(--drawer-bleed-background,var(--color-popover)) data-[swipe-axis=x]:after:inset-y-0 data-[swipe-axis=x]:after:w-(--bleed) data-[swipe-axis=y]:after:inset-x-0 data-[swipe-axis=y]:after:h-(--bleed) data-[swipe-direction=down]:after:top-full data-[swipe-direction=left]:after:right-full data-[swipe-direction=right]:after:left-full data-[swipe-direction=up]:after:bottom-full", "[--drawer-content-height:var(--drawer-height,auto)] data-[swipe-axis=x]:[--drawer-content-width:75%] data-[swipe-axis=y]:[--drawer-content-max-height:calc(100dvh-6rem)] data-[swipe-axis=y]:data-snap-points:[--drawer-content-height:100dvh] data-[swipe-axis=x]:sm:[--drawer-content-width:24rem]", "[--bleed:3rem] [--peek:1rem] [--stack-height:var(--drawer-frontmost-height,var(--drawer-height,0px))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-scale-base:max(0,calc(1-(var(--nested-drawers)*var(--stack-step))))] [--stack-scale:clamp(0,calc(var(--stack-scale-base)+(var(--stack-step)*var(--stack-progress))),1)] [--stack-shrink:calc(1-var(--stack-scale))] [--stack-step:0.05]", "data-ending-style:transform-(--closed-transform) data-ending-style:opacity-[0.9999] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-nested-drawer-swiping:duration-0 data-ending-style:data-nested-drawer-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-starting-style:transform-(--closed-transform) data-swiping:duration-0 data-ending-style:data-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)]", "data-[swipe-axis=y]:inset-x-0 data-[swipe-axis=y]:data-nested-drawer-open:h-(--stack-height)", "data-[swipe-axis=x]:inset-y-0 data-[swipe-axis=x]:flex-row", "data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:origin-bottom data-[swipe-direction=down]:[--closed-transform:translate3d(0,calc(100%+var(--drawer-inset,0px)+2px),0)] data-[swipe-direction=down]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--stack-shrink)*var(--stack-height)))]", "data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:origin-top data-[swipe-direction=up]:[--closed-transform:translate3d(0,calc(-100%-var(--drawer-inset,0px)-2px),0)] data-[swipe-direction=up]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--stack-shrink)*var(--stack-height)))]", "data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:origin-left data-[swipe-direction=left]:[--closed-transform:translate3d(calc(-100%-var(--drawer-inset,0px)-2px),0,0)] data-[swipe-direction=left]:[--translate-x:calc(var(--drawer-swipe-movement-x)+var(--stack-peek-offset)+(var(--stack-shrink)*100%))]", "data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:origin-right data-[swipe-direction=right]:[--closed-transform:translate3d(calc(100%+var(--drawer-inset,0px)+2px),0,0)] data-[swipe-direction=right]:[--translate-x:calc(var(--drawer-swipe-movement-x)-var(--stack-peek-offset)-(var(--stack-shrink)*100%))]", t),
|
|
82
82
|
...s,
|
|
83
|
-
children: [p && /* @__PURE__ */
|
|
83
|
+
children: [p && /* @__PURE__ */ n(f, {}), /* @__PURE__ */ n(i.Content, {
|
|
84
84
|
"data-slot": "drawer-content",
|
|
85
85
|
className: e("flex min-h-0 flex-1 flex-col overflow-hidden overscroll-contain rounded-[inherit] transition-opacity duration-300 ease-[cubic-bezier(0.45,1.005,0,1.005)] select-text group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-swiping/drawer-popup:select-none"),
|
|
86
86
|
children: a
|
|
@@ -89,31 +89,31 @@ function p({ className: r, children: a, ...s }) {
|
|
|
89
89
|
})]
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
function m({ className:
|
|
93
|
-
return /* @__PURE__ */
|
|
92
|
+
function m({ className: t, ...r }) {
|
|
93
|
+
return /* @__PURE__ */ n("div", {
|
|
94
94
|
"data-slot": "drawer-header",
|
|
95
|
-
className: e("flex shrink-0 flex-col gap-0.5 p-4 pb-0 group-data-[swipe-axis=y]/drawer-popup:text-center md:gap-0.5 md:text-left",
|
|
95
|
+
className: e("flex shrink-0 flex-col gap-0.5 p-4 pb-0 group-data-[swipe-axis=y]/drawer-popup:text-center md:gap-0.5 md:text-left", t),
|
|
96
96
|
...r
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
function h({ className:
|
|
100
|
-
return /* @__PURE__ */
|
|
99
|
+
function h({ className: t, ...r }) {
|
|
100
|
+
return /* @__PURE__ */ n("div", {
|
|
101
101
|
"data-slot": "drawer-footer",
|
|
102
|
-
className: e("mt-auto flex shrink-0 flex-col gap-2 p-4 pt-0",
|
|
102
|
+
className: e("mt-auto flex shrink-0 flex-col gap-2 p-4 pt-0", t),
|
|
103
103
|
...r
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function g({ className:
|
|
107
|
-
return /* @__PURE__ */
|
|
106
|
+
function g({ className: t, ...r }) {
|
|
107
|
+
return /* @__PURE__ */ n(i.Title, {
|
|
108
108
|
"data-slot": "drawer-title",
|
|
109
|
-
className: e("font-heading text-base font-medium text-foreground",
|
|
109
|
+
className: e("font-heading text-base font-medium text-foreground", t),
|
|
110
110
|
...r
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
function _({ className:
|
|
114
|
-
return /* @__PURE__ */
|
|
113
|
+
function _({ className: t, ...r }) {
|
|
114
|
+
return /* @__PURE__ */ n(i.Description, {
|
|
115
115
|
"data-slot": "drawer-description",
|
|
116
|
-
className: e("text-sm text-balance text-muted-foreground",
|
|
116
|
+
className: e("text-sm text-balance text-muted-foreground", t),
|
|
117
117
|
...r
|
|
118
118
|
});
|
|
119
119
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
4
|
import { IconCheck as r, IconChevronRight as i } from "@tabler/icons-react";
|
|
5
5
|
import { Menu as a } from "@base-ui/react/menu";
|
|
6
6
|
//#region src/components/dropdown-menu/dropdown-menu.tsx
|
|
@@ -46,7 +46,7 @@ function d({ className: n, inset: r, ...i }) {
|
|
|
46
46
|
return /* @__PURE__ */ t(a.GroupLabel, {
|
|
47
47
|
"data-slot": "dropdown-menu-label",
|
|
48
48
|
"data-inset": r,
|
|
49
|
-
className: e("px-1.5 py-1
|
|
49
|
+
className: e("type-meta px-1.5 py-1 font-medium text-muted-foreground data-inset:pl-7", n),
|
|
50
50
|
...i
|
|
51
51
|
});
|
|
52
52
|
}
|
|
@@ -55,7 +55,7 @@ function f({ className: n, inset: r, variant: i = "default", ...o }) {
|
|
|
55
55
|
"data-slot": "dropdown-menu-item",
|
|
56
56
|
"data-inset": r,
|
|
57
57
|
"data-variant": i,
|
|
58
|
-
className: e("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1
|
|
58
|
+
className: e("type-body group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 outline-hidden select-none [--icon-stroke-width:var(--icon-stroke-16)] focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive", n),
|
|
59
59
|
...o
|
|
60
60
|
});
|
|
61
61
|
}
|
|
@@ -69,7 +69,7 @@ function m({ className: r, inset: o, children: s, ...c }) {
|
|
|
69
69
|
return /* @__PURE__ */ n(a.SubmenuTrigger, {
|
|
70
70
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
71
71
|
"data-inset": o,
|
|
72
|
-
className: e("flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1
|
|
72
|
+
className: e("type-body flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 outline-hidden select-none [--icon-stroke-width:var(--icon-stroke-16)] focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r),
|
|
73
73
|
...c,
|
|
74
74
|
children: [s, /* @__PURE__ */ t(i, { className: "ml-auto" })]
|
|
75
75
|
});
|
|
@@ -89,7 +89,7 @@ function g({ className: i, children: o, checked: s, inset: c, ...l }) {
|
|
|
89
89
|
return /* @__PURE__ */ n(a.CheckboxItem, {
|
|
90
90
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
91
91
|
"data-inset": c,
|
|
92
|
-
className: e("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5
|
|
92
|
+
className: e("type-body relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 outline-hidden select-none [--icon-stroke-width:var(--icon-stroke-16)] focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", i),
|
|
93
93
|
checked: s,
|
|
94
94
|
...l,
|
|
95
95
|
children: [/* @__PURE__ */ t("span", {
|
|
@@ -109,7 +109,7 @@ function v({ className: i, children: o, inset: s, ...c }) {
|
|
|
109
109
|
return /* @__PURE__ */ n(a.RadioItem, {
|
|
110
110
|
"data-slot": "dropdown-menu-radio-item",
|
|
111
111
|
"data-inset": s,
|
|
112
|
-
className: e("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5
|
|
112
|
+
className: e("type-body relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 outline-hidden select-none [--icon-stroke-width:var(--icon-stroke-16)] focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", i),
|
|
113
113
|
...c,
|
|
114
114
|
children: [/* @__PURE__ */ t("span", {
|
|
115
115
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
@@ -128,7 +128,7 @@ function y({ className: n, ...r }) {
|
|
|
128
128
|
function b({ className: n, ...r }) {
|
|
129
129
|
return /* @__PURE__ */ t("span", {
|
|
130
130
|
"data-slot": "dropdown-menu-shortcut",
|
|
131
|
-
className: e("ml-auto text-
|
|
131
|
+
className: e("type-meta ml-auto text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground", n),
|
|
132
132
|
...r
|
|
133
133
|
});
|
|
134
134
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/components/empty/empty.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAWlE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAQxE;AAED,QAAA,MAAM,kBAAkB;;8EAavB,CAAA;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,+BASvE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+
|
|
1
|
+
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/components/empty/empty.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAWlE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAQxE;AAED,QAAA,MAAM,kBAAkB;;8EAavB,CAAA;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,+BASvE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAQvE;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,+BAW3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAWzE;AAED,OAAO,EACL,KAAK,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,UAAU,GACX,CAAA"}
|
|
@@ -19,7 +19,7 @@ function i({ className: t, ...r }) {
|
|
|
19
19
|
var a = t("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
20
20
|
variants: { variant: {
|
|
21
21
|
default: "bg-transparent",
|
|
22
|
-
icon: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"
|
|
22
|
+
icon: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [--icon-stroke-width:var(--icon-stroke-16)] [&_svg:not([class*='size-'])]:size-4"
|
|
23
23
|
} },
|
|
24
24
|
defaultVariants: { variant: "default" }
|
|
25
25
|
});
|
|
@@ -37,21 +37,21 @@ function o({ className: t, variant: r = "default", ...i }) {
|
|
|
37
37
|
function s({ className: t, ...r }) {
|
|
38
38
|
return /* @__PURE__ */ n("div", {
|
|
39
39
|
"data-slot": "empty-title",
|
|
40
|
-
className: e("font-heading
|
|
40
|
+
className: e("type-label font-heading font-medium", t),
|
|
41
41
|
...r
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
function c({ className: t, ...r }) {
|
|
45
45
|
return /* @__PURE__ */ n("div", {
|
|
46
46
|
"data-slot": "empty-description",
|
|
47
|
-
className: e("
|
|
47
|
+
className: e("type-body text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", t),
|
|
48
48
|
...r
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
function l({ className: t, ...r }) {
|
|
52
52
|
return /* @__PURE__ */ n("div", {
|
|
53
53
|
"data-slot": "empty-content",
|
|
54
|
-
className: e("flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-
|
|
54
|
+
className: e("type-body flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-balance", t),
|
|
55
55
|
...r
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAI1C,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,+BAWlC;AAED,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,OAAkB,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAAE,+
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAI1C,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,+BAWlC;AAED,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,OAAkB,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAAE,+BAenE;AAED,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAW7B;AAED,QAAA,MAAM,aAAa;;8EAgBlB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAClD,YAAY,CAAC,OAAO,aAAa,CAAC,CAAA;AAEpC,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,WAAwB,EACxB,GAAG,KAAK,EACT,EAAE,UAAU,+BAUZ;AAED,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAW7B;AAED,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,+BAYpC;AAED,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAW7B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,+BAa3B;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,+BAsB9D;AAED,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC1D,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAA;CACjD,CAAA;AAED,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACT,EAAE,eAAe,sCAiCjB"}
|