@craftzbay/ui 0.11.3 → 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 -131
- 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 -63
- 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/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,114 +1,263 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { cn as t } from "../lib/utils.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/illustrations/index.tsx
|
|
5
|
+
var i = /* @__PURE__ */ e({
|
|
6
|
+
ConnectionLost: () => d,
|
|
7
|
+
Construction: () => u,
|
|
8
|
+
InboxEmpty: () => o,
|
|
9
|
+
Locked: () => f,
|
|
10
|
+
NoSearchResults: () => s,
|
|
11
|
+
NotFound: () => c,
|
|
12
|
+
ServerError: () => l
|
|
13
|
+
});
|
|
14
|
+
function a({ className: e, children: r, ...i }) {
|
|
15
|
+
return /* @__PURE__ */ n("svg", {
|
|
16
|
+
viewBox: "0 0 120 120",
|
|
17
|
+
role: "img",
|
|
18
|
+
width: "120",
|
|
19
|
+
height: "120",
|
|
20
|
+
fill: "none",
|
|
21
|
+
stroke: "currentColor",
|
|
22
|
+
strokeWidth: "1.5",
|
|
23
|
+
strokeLinecap: "round",
|
|
24
|
+
strokeLinejoin: "round",
|
|
25
|
+
className: t("text-foreground-subtle", e),
|
|
26
|
+
"aria-hidden": !0,
|
|
27
|
+
...i,
|
|
28
|
+
children: r
|
|
29
|
+
});
|
|
23
30
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
function o(e) {
|
|
32
|
+
return /* @__PURE__ */ r(a, {
|
|
33
|
+
...e,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ n("path", { d: "M22 56l10-28a6 6 0 0 1 6-4h44a6 6 0 0 1 6 4l10 28" }),
|
|
36
|
+
/* @__PURE__ */ n("path", { d: "M22 56v32a6 6 0 0 0 6 6h64a6 6 0 0 0 6-6V56" }),
|
|
37
|
+
/* @__PURE__ */ n("path", { d: "M22 56h22l4 10h24l4-10h22" }),
|
|
38
|
+
/* @__PURE__ */ n("circle", {
|
|
39
|
+
cx: "60",
|
|
40
|
+
cy: "36",
|
|
41
|
+
r: "2",
|
|
42
|
+
className: "text-accent",
|
|
43
|
+
stroke: "currentColor"
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ n("path", {
|
|
46
|
+
d: "M52 28l8 8M68 28l-8 8",
|
|
47
|
+
opacity: "0.4"
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
});
|
|
32
51
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
52
|
+
function s(e) {
|
|
53
|
+
return /* @__PURE__ */ r(a, {
|
|
54
|
+
...e,
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ n("circle", {
|
|
57
|
+
cx: "52",
|
|
58
|
+
cy: "52",
|
|
59
|
+
r: "26"
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ n("path", { d: "M72 72l20 20" }),
|
|
62
|
+
/* @__PURE__ */ n("path", {
|
|
63
|
+
d: "M42 52h20",
|
|
64
|
+
opacity: "0.5"
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ n("circle", {
|
|
67
|
+
cx: "98",
|
|
68
|
+
cy: "22",
|
|
69
|
+
r: "1.5",
|
|
70
|
+
className: "text-accent",
|
|
71
|
+
stroke: "currentColor"
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ n("circle", {
|
|
74
|
+
cx: "20",
|
|
75
|
+
cy: "92",
|
|
76
|
+
r: "1.5",
|
|
77
|
+
className: "text-accent",
|
|
78
|
+
stroke: "currentColor"
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
});
|
|
41
82
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
83
|
+
function c(e) {
|
|
84
|
+
return /* @__PURE__ */ r(a, {
|
|
85
|
+
...e,
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ n("path", { d: "M22 32h76v56a6 6 0 0 1-6 6H28a6 6 0 0 1-6-6V32z" }),
|
|
88
|
+
/* @__PURE__ */ n("path", { d: "M22 44h76" }),
|
|
89
|
+
/* @__PURE__ */ n("circle", {
|
|
90
|
+
cx: "32",
|
|
91
|
+
cy: "38",
|
|
92
|
+
r: "1.5"
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ n("circle", {
|
|
95
|
+
cx: "40",
|
|
96
|
+
cy: "38",
|
|
97
|
+
r: "1.5"
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ n("circle", {
|
|
100
|
+
cx: "48",
|
|
101
|
+
cy: "38",
|
|
102
|
+
r: "1.5"
|
|
103
|
+
}),
|
|
104
|
+
/* @__PURE__ */ n("path", {
|
|
105
|
+
d: "M44 64l32 16M76 64l-32 16",
|
|
106
|
+
className: "text-accent",
|
|
107
|
+
stroke: "currentColor"
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ n("text", {
|
|
110
|
+
x: "60",
|
|
111
|
+
y: "76",
|
|
112
|
+
fontFamily: "ui-monospace,monospace",
|
|
113
|
+
fontSize: "9",
|
|
114
|
+
textAnchor: "middle",
|
|
115
|
+
fill: "currentColor",
|
|
116
|
+
stroke: "none",
|
|
117
|
+
opacity: "0.6",
|
|
118
|
+
children: "404"
|
|
119
|
+
})
|
|
120
|
+
]
|
|
121
|
+
});
|
|
65
122
|
}
|
|
66
|
-
function
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
123
|
+
function l(e) {
|
|
124
|
+
return /* @__PURE__ */ r(a, {
|
|
125
|
+
...e,
|
|
126
|
+
children: [
|
|
127
|
+
/* @__PURE__ */ n("rect", {
|
|
128
|
+
x: "22",
|
|
129
|
+
y: "28",
|
|
130
|
+
width: "76",
|
|
131
|
+
height: "20",
|
|
132
|
+
rx: "3"
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ n("rect", {
|
|
135
|
+
x: "22",
|
|
136
|
+
y: "54",
|
|
137
|
+
width: "76",
|
|
138
|
+
height: "20",
|
|
139
|
+
rx: "3"
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ n("rect", {
|
|
142
|
+
x: "22",
|
|
143
|
+
y: "80",
|
|
144
|
+
width: "76",
|
|
145
|
+
height: "20",
|
|
146
|
+
rx: "3"
|
|
147
|
+
}),
|
|
148
|
+
/* @__PURE__ */ n("circle", {
|
|
149
|
+
cx: "32",
|
|
150
|
+
cy: "38",
|
|
151
|
+
r: "2",
|
|
152
|
+
className: "text-danger",
|
|
153
|
+
stroke: "currentColor"
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ n("circle", {
|
|
156
|
+
cx: "32",
|
|
157
|
+
cy: "64",
|
|
158
|
+
r: "2",
|
|
159
|
+
className: "text-danger",
|
|
160
|
+
stroke: "currentColor"
|
|
161
|
+
}),
|
|
162
|
+
/* @__PURE__ */ n("circle", {
|
|
163
|
+
cx: "32",
|
|
164
|
+
cy: "90",
|
|
165
|
+
r: "2",
|
|
166
|
+
className: "text-warning",
|
|
167
|
+
stroke: "currentColor"
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ n("path", {
|
|
170
|
+
d: "M44 38h44M44 64h44M44 90h28",
|
|
171
|
+
opacity: "0.4"
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ n("path", {
|
|
174
|
+
d: "M82 84l16 16M82 100l16-16",
|
|
175
|
+
className: "text-danger",
|
|
176
|
+
stroke: "currentColor"
|
|
177
|
+
})
|
|
178
|
+
]
|
|
179
|
+
});
|
|
77
180
|
}
|
|
78
|
-
function u(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
181
|
+
function u(e) {
|
|
182
|
+
return /* @__PURE__ */ r(a, {
|
|
183
|
+
...e,
|
|
184
|
+
children: [
|
|
185
|
+
/* @__PURE__ */ n("path", { d: "M22 86h76" }),
|
|
186
|
+
/* @__PURE__ */ n("path", { d: "M30 86V52l30-22 30 22v34" }),
|
|
187
|
+
/* @__PURE__ */ n("rect", {
|
|
188
|
+
x: "40",
|
|
189
|
+
y: "64",
|
|
190
|
+
width: "14",
|
|
191
|
+
height: "14",
|
|
192
|
+
rx: "1"
|
|
193
|
+
}),
|
|
194
|
+
/* @__PURE__ */ n("rect", {
|
|
195
|
+
x: "66",
|
|
196
|
+
y: "64",
|
|
197
|
+
width: "14",
|
|
198
|
+
height: "14",
|
|
199
|
+
rx: "1"
|
|
200
|
+
}),
|
|
201
|
+
/* @__PURE__ */ n("path", {
|
|
202
|
+
d: "M30 52h60",
|
|
203
|
+
opacity: "0.4"
|
|
204
|
+
}),
|
|
205
|
+
/* @__PURE__ */ n("path", {
|
|
206
|
+
d: "M40 40v6M50 36v10M70 36v10M80 40v6",
|
|
207
|
+
className: "text-accent",
|
|
208
|
+
stroke: "currentColor"
|
|
209
|
+
})
|
|
210
|
+
]
|
|
211
|
+
});
|
|
87
212
|
}
|
|
88
|
-
function
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
213
|
+
function d(e) {
|
|
214
|
+
return /* @__PURE__ */ r(a, {
|
|
215
|
+
...e,
|
|
216
|
+
children: [
|
|
217
|
+
/* @__PURE__ */ n("path", {
|
|
218
|
+
d: "M22 60a40 40 0 0 1 76 0",
|
|
219
|
+
opacity: "0.4"
|
|
220
|
+
}),
|
|
221
|
+
/* @__PURE__ */ n("path", {
|
|
222
|
+
d: "M34 70a28 28 0 0 1 52 0",
|
|
223
|
+
opacity: "0.6"
|
|
224
|
+
}),
|
|
225
|
+
/* @__PURE__ */ n("path", { d: "M46 80a16 16 0 0 1 28 0" }),
|
|
226
|
+
/* @__PURE__ */ n("circle", {
|
|
227
|
+
cx: "60",
|
|
228
|
+
cy: "92",
|
|
229
|
+
r: "3"
|
|
230
|
+
}),
|
|
231
|
+
/* @__PURE__ */ n("path", {
|
|
232
|
+
d: "M20 20l80 80",
|
|
233
|
+
className: "text-danger",
|
|
234
|
+
stroke: "currentColor"
|
|
235
|
+
})
|
|
236
|
+
]
|
|
237
|
+
});
|
|
96
238
|
}
|
|
97
|
-
function
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
239
|
+
function f(e) {
|
|
240
|
+
return /* @__PURE__ */ r(a, {
|
|
241
|
+
...e,
|
|
242
|
+
children: [
|
|
243
|
+
/* @__PURE__ */ n("rect", {
|
|
244
|
+
x: "34",
|
|
245
|
+
y: "54",
|
|
246
|
+
width: "52",
|
|
247
|
+
height: "40",
|
|
248
|
+
rx: "4"
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ n("path", { d: "M44 54v-10a16 16 0 0 1 32 0v10" }),
|
|
251
|
+
/* @__PURE__ */ n("circle", {
|
|
252
|
+
cx: "60",
|
|
253
|
+
cy: "72",
|
|
254
|
+
r: "4"
|
|
255
|
+
}),
|
|
256
|
+
/* @__PURE__ */ n("path", { d: "M60 76v8" })
|
|
257
|
+
]
|
|
258
|
+
});
|
|
104
259
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
M as Locked,
|
|
110
|
-
d as NoSearchResults,
|
|
111
|
-
s as NotFound,
|
|
112
|
-
x as ServerError
|
|
113
|
-
};
|
|
114
|
-
//# sourceMappingURL=index.js.map
|
|
260
|
+
//#endregion
|
|
261
|
+
export { d as ConnectionLost, u as Construction, o as InboxEmpty, f as Locked, s as NoSearchResults, c as NotFound, l as ServerError, i as illustrations_exports };
|
|
262
|
+
|
|
263
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/illustrations/index.tsx"],"sourcesContent":["import { type SVGProps } from 'react';\nimport { cn } from '@/lib/utils';\n\n/* Refined-minimal line illustrations. Single accent stroke, no fills.\n * Drop into EmptyState / ErrorState / FirstRunEmpty `icon` slots. */\n\ntype Props = SVGProps<SVGSVGElement>;\n\nfunction Base({ className, children, ...props }: Props & { children: React.ReactNode }) {\n return (\n <svg\n viewBox=\"0 0 120 120\"\n role=\"img\"\n width=\"120\"\n height=\"120\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={cn('text-foreground-subtle', className)}\n aria-hidden\n {...props}\n >\n {children}\n </svg>\n );\n}\n\nexport function InboxEmpty(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 56l10-28a6 6 0 0 1 6-4h44a6 6 0 0 1 6 4l10 28\" />\n <path d=\"M22 56v32a6 6 0 0 0 6 6h64a6 6 0 0 0 6-6V56\" />\n <path d=\"M22 56h22l4 10h24l4-10h22\" />\n <circle cx=\"60\" cy=\"36\" r=\"2\" className=\"text-accent\" stroke=\"currentColor\" />\n <path d=\"M52 28l8 8M68 28l-8 8\" opacity=\"0.4\" />\n </Base>\n );\n}\n\nexport function NoSearchResults(props: Props) {\n return (\n <Base {...props}>\n <circle cx=\"52\" cy=\"52\" r=\"26\" />\n <path d=\"M72 72l20 20\" />\n <path d=\"M42 52h20\" opacity=\"0.5\" />\n <circle cx=\"98\" cy=\"22\" r=\"1.5\" className=\"text-accent\" stroke=\"currentColor\" />\n <circle cx=\"20\" cy=\"92\" r=\"1.5\" className=\"text-accent\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function NotFound(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 32h76v56a6 6 0 0 1-6 6H28a6 6 0 0 1-6-6V32z\" />\n <path d=\"M22 44h76\" />\n <circle cx=\"32\" cy=\"38\" r=\"1.5\" />\n <circle cx=\"40\" cy=\"38\" r=\"1.5\" />\n <circle cx=\"48\" cy=\"38\" r=\"1.5\" />\n <path d=\"M44 64l32 16M76 64l-32 16\" className=\"text-accent\" stroke=\"currentColor\" />\n <text\n x=\"60\"\n y=\"76\"\n fontFamily=\"ui-monospace,monospace\"\n fontSize=\"9\"\n textAnchor=\"middle\"\n fill=\"currentColor\"\n stroke=\"none\"\n opacity=\"0.6\"\n >\n 404\n </text>\n </Base>\n );\n}\n\nexport function ServerError(props: Props) {\n return (\n <Base {...props}>\n <rect x=\"22\" y=\"28\" width=\"76\" height=\"20\" rx=\"3\" />\n <rect x=\"22\" y=\"54\" width=\"76\" height=\"20\" rx=\"3\" />\n <rect x=\"22\" y=\"80\" width=\"76\" height=\"20\" rx=\"3\" />\n <circle cx=\"32\" cy=\"38\" r=\"2\" className=\"text-danger\" stroke=\"currentColor\" />\n <circle cx=\"32\" cy=\"64\" r=\"2\" className=\"text-danger\" stroke=\"currentColor\" />\n <circle cx=\"32\" cy=\"90\" r=\"2\" className=\"text-warning\" stroke=\"currentColor\" />\n <path d=\"M44 38h44M44 64h44M44 90h28\" opacity=\"0.4\" />\n <path d=\"M82 84l16 16M82 100l16-16\" className=\"text-danger\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function Construction(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 86h76\" />\n <path d=\"M30 86V52l30-22 30 22v34\" />\n <rect x=\"40\" y=\"64\" width=\"14\" height=\"14\" rx=\"1\" />\n <rect x=\"66\" y=\"64\" width=\"14\" height=\"14\" rx=\"1\" />\n <path d=\"M30 52h60\" opacity=\"0.4\" />\n <path d=\"M40 40v6M50 36v10M70 36v10M80 40v6\" className=\"text-accent\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function ConnectionLost(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 60a40 40 0 0 1 76 0\" opacity=\"0.4\" />\n <path d=\"M34 70a28 28 0 0 1 52 0\" opacity=\"0.6\" />\n <path d=\"M46 80a16 16 0 0 1 28 0\" />\n <circle cx=\"60\" cy=\"92\" r=\"3\" />\n <path d=\"M20 20l80 80\" className=\"text-danger\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function Locked(props: Props) {\n return (\n <Base {...props}>\n <rect x=\"34\" y=\"54\" width=\"52\" height=\"40\" rx=\"4\" />\n <path d=\"M44 54v-10a16 16 0 0 1 32 0v10\" />\n <circle cx=\"60\" cy=\"72\" r=\"4\" />\n <path d=\"M60 76v8\" />\n </Base>\n );\n}\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/illustrations/index.tsx"],"sourcesContent":["import { type SVGProps } from 'react';\nimport { cn } from '@/lib/utils';\n\n/* Refined-minimal line illustrations. Single accent stroke, no fills.\n * Drop into EmptyState / ErrorState / FirstRunEmpty `icon` slots. */\n\ntype Props = SVGProps<SVGSVGElement>;\n\nfunction Base({ className, children, ...props }: Props & { children: React.ReactNode }) {\n return (\n <svg\n viewBox=\"0 0 120 120\"\n role=\"img\"\n width=\"120\"\n height=\"120\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={cn('text-foreground-subtle', className)}\n aria-hidden\n {...props}\n >\n {children}\n </svg>\n );\n}\n\nexport function InboxEmpty(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 56l10-28a6 6 0 0 1 6-4h44a6 6 0 0 1 6 4l10 28\" />\n <path d=\"M22 56v32a6 6 0 0 0 6 6h64a6 6 0 0 0 6-6V56\" />\n <path d=\"M22 56h22l4 10h24l4-10h22\" />\n <circle cx=\"60\" cy=\"36\" r=\"2\" className=\"text-accent\" stroke=\"currentColor\" />\n <path d=\"M52 28l8 8M68 28l-8 8\" opacity=\"0.4\" />\n </Base>\n );\n}\n\nexport function NoSearchResults(props: Props) {\n return (\n <Base {...props}>\n <circle cx=\"52\" cy=\"52\" r=\"26\" />\n <path d=\"M72 72l20 20\" />\n <path d=\"M42 52h20\" opacity=\"0.5\" />\n <circle cx=\"98\" cy=\"22\" r=\"1.5\" className=\"text-accent\" stroke=\"currentColor\" />\n <circle cx=\"20\" cy=\"92\" r=\"1.5\" className=\"text-accent\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function NotFound(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 32h76v56a6 6 0 0 1-6 6H28a6 6 0 0 1-6-6V32z\" />\n <path d=\"M22 44h76\" />\n <circle cx=\"32\" cy=\"38\" r=\"1.5\" />\n <circle cx=\"40\" cy=\"38\" r=\"1.5\" />\n <circle cx=\"48\" cy=\"38\" r=\"1.5\" />\n <path d=\"M44 64l32 16M76 64l-32 16\" className=\"text-accent\" stroke=\"currentColor\" />\n <text\n x=\"60\"\n y=\"76\"\n fontFamily=\"ui-monospace,monospace\"\n fontSize=\"9\"\n textAnchor=\"middle\"\n fill=\"currentColor\"\n stroke=\"none\"\n opacity=\"0.6\"\n >\n 404\n </text>\n </Base>\n );\n}\n\nexport function ServerError(props: Props) {\n return (\n <Base {...props}>\n <rect x=\"22\" y=\"28\" width=\"76\" height=\"20\" rx=\"3\" />\n <rect x=\"22\" y=\"54\" width=\"76\" height=\"20\" rx=\"3\" />\n <rect x=\"22\" y=\"80\" width=\"76\" height=\"20\" rx=\"3\" />\n <circle cx=\"32\" cy=\"38\" r=\"2\" className=\"text-danger\" stroke=\"currentColor\" />\n <circle cx=\"32\" cy=\"64\" r=\"2\" className=\"text-danger\" stroke=\"currentColor\" />\n <circle cx=\"32\" cy=\"90\" r=\"2\" className=\"text-warning\" stroke=\"currentColor\" />\n <path d=\"M44 38h44M44 64h44M44 90h28\" opacity=\"0.4\" />\n <path d=\"M82 84l16 16M82 100l16-16\" className=\"text-danger\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function Construction(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 86h76\" />\n <path d=\"M30 86V52l30-22 30 22v34\" />\n <rect x=\"40\" y=\"64\" width=\"14\" height=\"14\" rx=\"1\" />\n <rect x=\"66\" y=\"64\" width=\"14\" height=\"14\" rx=\"1\" />\n <path d=\"M30 52h60\" opacity=\"0.4\" />\n <path d=\"M40 40v6M50 36v10M70 36v10M80 40v6\" className=\"text-accent\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function ConnectionLost(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 60a40 40 0 0 1 76 0\" opacity=\"0.4\" />\n <path d=\"M34 70a28 28 0 0 1 52 0\" opacity=\"0.6\" />\n <path d=\"M46 80a16 16 0 0 1 28 0\" />\n <circle cx=\"60\" cy=\"92\" r=\"3\" />\n <path d=\"M20 20l80 80\" className=\"text-danger\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function Locked(props: Props) {\n return (\n <Base {...props}>\n <rect x=\"34\" y=\"54\" width=\"52\" height=\"40\" rx=\"4\" />\n <path d=\"M44 54v-10a16 16 0 0 1 32 0v10\" />\n <circle cx=\"60\" cy=\"72\" r=\"4\" />\n <path d=\"M60 76v8\" />\n </Base>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAQA,SAAS,EAAK,EAAE,cAAW,aAAU,GAAG,KAAgD;CACtF,OACE,kBAAC,OAAD;EACE,SAAQ;EACR,MAAK;EACL,OAAM;EACN,QAAO;EACP,MAAK;EACL,QAAO;EACP,aAAY;EACZ,eAAc;EACd,gBAAe;EACf,WAAW,EAAG,0BAA0B,CAAS;EACjD,eAAA;EACA,GAAI;EAEH;CACE,CAAA;AAET;AAEA,SAAgB,EAAW,GAAc;CACvC,OACE,kBAAC,GAAD;EAAM,GAAI;EAAV,UAAA;GACE,kBAAC,QAAD,EAAM,GAAE,oDAAqD,CAAA;GAC7D,kBAAC,QAAD,EAAM,GAAE,8CAA+C,CAAA;GACvD,kBAAC,QAAD,EAAM,GAAE,4BAA6B,CAAA;GACrC,kBAAC,UAAD;IAAQ,IAAG;IAAK,IAAG;IAAK,GAAE;IAAI,WAAU;IAAc,QAAO;GAAgB,CAAA;GAC7E,kBAAC,QAAD;IAAM,GAAE;IAAwB,SAAQ;GAAO,CAAA;EAC3C;;AAEV;AAEA,SAAgB,EAAgB,GAAc;CAC5C,OACE,kBAAC,GAAD;EAAM,GAAI;EAAV,UAAA;GACE,kBAAC,UAAD;IAAQ,IAAG;IAAK,IAAG;IAAK,GAAE;GAAM,CAAA;GAChC,kBAAC,QAAD,EAAM,GAAE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