@uipath/apollo-wind 0.9.0 → 0.10.0-pr257.2a4b17b
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/forms/field-renderer.cjs +120 -69
- package/dist/components/forms/field-renderer.js +120 -69
- package/dist/components/forms/form-designer.cjs +2352 -1488
- package/dist/components/forms/form-designer.js +2353 -1489
- package/dist/components/forms/form-examples.cjs +10 -10
- package/dist/components/forms/form-examples.js +10 -10
- package/dist/components/forms/form-state-viewer.cjs +988 -433
- package/dist/components/forms/form-state-viewer.js +988 -433
- package/dist/components/forms/metadata-form.cjs +446 -170
- package/dist/components/forms/metadata-form.js +446 -170
- package/dist/components/forms/schema-viewer.cjs +173 -80
- package/dist/components/forms/schema-viewer.js +173 -80
- package/dist/components/ui/accordion.cjs +131 -27
- package/dist/components/ui/accordion.js +131 -27
- package/dist/components/ui/alert-dialog.cjs +273 -45
- package/dist/components/ui/alert-dialog.js +273 -45
- package/dist/components/ui/alert.cjs +106 -17
- package/dist/components/ui/alert.js +106 -17
- package/dist/components/ui/avatar.cjs +100 -15
- package/dist/components/ui/avatar.js +100 -15
- package/dist/components/ui/badge.cjs +36 -6
- package/dist/components/ui/badge.js +36 -6
- package/dist/components/ui/breadcrumb.cjs +258 -52
- package/dist/components/ui/breadcrumb.js +258 -52
- package/dist/components/ui/button-group.cjs +119 -19
- package/dist/components/ui/button-group.js +119 -19
- package/dist/components/ui/button.cjs +48 -8
- package/dist/components/ui/button.js +48 -8
- package/dist/components/ui/calendar.cjs +88 -30
- package/dist/components/ui/calendar.js +88 -30
- package/dist/components/ui/card.cjs +199 -30
- package/dist/components/ui/card.js +199 -30
- package/dist/components/ui/checkbox.cjs +42 -8
- package/dist/components/ui/checkbox.js +42 -8
- package/dist/components/ui/combobox.cjs +150 -53
- package/dist/components/ui/combobox.js +150 -53
- package/dist/components/ui/command.cjs +291 -53
- package/dist/components/ui/command.js +291 -53
- package/dist/components/ui/context-menu.cjs +370 -72
- package/dist/components/ui/context-menu.js +370 -72
- package/dist/components/ui/data-table.cjs +76 -39
- package/dist/components/ui/data-table.js +76 -39
- package/dist/components/ui/date-picker.cjs +179 -68
- package/dist/components/ui/date-picker.js +179 -68
- package/dist/components/ui/datetime-picker.cjs +225 -104
- package/dist/components/ui/datetime-picker.js +225 -104
- package/dist/components/ui/dialog.cjs +290 -78
- package/dist/components/ui/dialog.js +290 -78
- package/dist/components/ui/drawer.cjs +220 -39
- package/dist/components/ui/drawer.js +220 -39
- package/dist/components/ui/dropdown-menu.cjs +376 -73
- package/dist/components/ui/dropdown-menu.js +376 -73
- package/dist/components/ui/editable-cell.cjs +106 -42
- package/dist/components/ui/editable-cell.js +106 -42
- package/dist/components/ui/empty-state.cjs +106 -33
- package/dist/components/ui/empty-state.js +106 -33
- package/dist/components/ui/file-upload.cjs +405 -187
- package/dist/components/ui/file-upload.d.ts +3 -1
- package/dist/components/ui/file-upload.js +405 -187
- package/dist/components/ui/hover-card.cjs +46 -7
- package/dist/components/ui/hover-card.js +46 -7
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/input.cjs +39 -6
- package/dist/components/ui/input.js +39 -6
- package/dist/components/ui/label.cjs +34 -5
- package/dist/components/ui/label.js +34 -5
- package/dist/components/ui/layout/column.cjs +209 -41
- package/dist/components/ui/layout/column.js +209 -41
- package/dist/components/ui/layout/grid.cjs +275 -60
- package/dist/components/ui/layout/grid.js +275 -60
- package/dist/components/ui/layout/row.cjs +209 -41
- package/dist/components/ui/layout/row.js +209 -41
- package/dist/components/ui/menubar.cjs +540 -106
- package/dist/components/ui/menubar.js +540 -106
- package/dist/components/ui/multi-select.cjs +289 -135
- package/dist/components/ui/multi-select.js +289 -135
- package/dist/components/ui/navigation-menu.cjs +244 -47
- package/dist/components/ui/navigation-menu.js +244 -47
- package/dist/components/ui/pagination.cjs +301 -65
- package/dist/components/ui/pagination.js +301 -65
- package/dist/components/ui/popover.cjs +48 -9
- package/dist/components/ui/popover.js +48 -9
- package/dist/components/ui/progress.cjs +48 -8
- package/dist/components/ui/progress.js +48 -8
- package/dist/components/ui/radio-group.cjs +74 -12
- package/dist/components/ui/radio-group.js +74 -12
- package/dist/components/ui/resizable.cjs +75 -10
- package/dist/components/ui/resizable.js +75 -10
- package/dist/components/ui/scroll-area.cjs +113 -21
- package/dist/components/ui/scroll-area.js +113 -21
- package/dist/components/ui/search.cjs +280 -98
- package/dist/components/ui/search.js +280 -98
- package/dist/components/ui/select.cjs +334 -68
- package/dist/components/ui/select.js +334 -68
- package/dist/components/ui/separator.cjs +48 -7
- package/dist/components/ui/separator.js +48 -7
- package/dist/components/ui/sheet.cjs +236 -50
- package/dist/components/ui/sheet.js +236 -50
- package/dist/components/ui/skeleton.cjs +31 -5
- package/dist/components/ui/skeleton.js +31 -5
- package/dist/components/ui/slider.cjs +71 -21
- package/dist/components/ui/slider.js +71 -21
- package/dist/components/ui/sonner.cjs +43 -15
- package/dist/components/ui/sonner.js +43 -15
- package/dist/components/ui/spinner.cjs +83 -21
- package/dist/components/ui/spinner.js +83 -21
- package/dist/components/ui/stats-card.cjs +169 -60
- package/dist/components/ui/stats-card.js +169 -60
- package/dist/components/ui/stepper.cjs +126 -57
- package/dist/components/ui/stepper.js +126 -57
- package/dist/components/ui/switch.cjs +42 -8
- package/dist/components/ui/switch.js +42 -8
- package/dist/components/ui/table.cjs +267 -42
- package/dist/components/ui/table.js +267 -42
- package/dist/components/ui/tabs.cjs +100 -15
- package/dist/components/ui/tabs.js +100 -15
- package/dist/components/ui/textarea.cjs +34 -5
- package/dist/components/ui/textarea.js +34 -5
- package/dist/components/ui/toggle-group.cjs +112 -19
- package/dist/components/ui/toggle-group.js +112 -19
- package/dist/components/ui/toggle.cjs +43 -6
- package/dist/components/ui/toggle.js +43 -6
- package/dist/components/ui/tooltip.cjs +40 -6
- package/dist/components/ui/tooltip.js +40 -6
- package/dist/examples/admin-layout-example.cjs +879 -347
- package/dist/examples/admin-layout-example.js +879 -347
- package/dist/examples/app-shell-example.cjs +14 -14
- package/dist/examples/app-shell-example.js +14 -14
- package/dist/examples/dashboard-example.cjs +495 -334
- package/dist/examples/dashboard-example.js +495 -334
- package/dist/examples/data-management-example.cjs +501 -303
- package/dist/examples/data-management-example.js +502 -304
- package/dist/examples/flow-editor-layout-example.cjs +435 -231
- package/dist/examples/flow-editor-layout-example.js +436 -232
- package/dist/examples/flow-start-example.cjs +508 -251
- package/dist/examples/flow-start-example.js +509 -252
- package/dist/examples/form-builder-example.cjs +1006 -602
- package/dist/examples/form-builder-example.js +1007 -603
- package/dist/examples/new-project-example.cjs +806 -474
- package/dist/examples/new-project-example.js +807 -475
- package/dist/examples/settings-example.cjs +792 -704
- package/dist/examples/settings-example.js +792 -704
- package/dist/examples/vscode-example.cjs +731 -236
- package/dist/examples/vscode-example.js +731 -236
- package/package.json +4 -1
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { cn } from "../../lib/index.js";
|
|
3
|
-
function Skeleton(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
function Skeleton(t0) {
|
|
5
|
+
const $ = c(8);
|
|
6
|
+
let className;
|
|
7
|
+
let props;
|
|
8
|
+
if ($[0] !== t0) {
|
|
9
|
+
({ className, ...props } = t0);
|
|
10
|
+
$[0] = t0;
|
|
11
|
+
$[1] = className;
|
|
12
|
+
$[2] = props;
|
|
13
|
+
} else {
|
|
14
|
+
className = $[1];
|
|
15
|
+
props = $[2];
|
|
16
|
+
}
|
|
17
|
+
let t1;
|
|
18
|
+
if ($[3] !== className) {
|
|
19
|
+
t1 = cn("animate-pulse rounded-md bg-muted", className);
|
|
20
|
+
$[3] = className;
|
|
21
|
+
$[4] = t1;
|
|
22
|
+
} else t1 = $[4];
|
|
23
|
+
let t2;
|
|
24
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
25
|
+
t2 = /*#__PURE__*/ jsx("div", {
|
|
26
|
+
className: t1,
|
|
27
|
+
...props
|
|
28
|
+
});
|
|
29
|
+
$[5] = props;
|
|
30
|
+
$[6] = t1;
|
|
31
|
+
$[7] = t2;
|
|
32
|
+
} else t2 = $[7];
|
|
33
|
+
return t2;
|
|
8
34
|
}
|
|
9
35
|
export { Skeleton };
|
|
@@ -27,33 +27,83 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
Slider: ()=>Slider
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const compiler_runtime_namespaceObject = require("react/compiler-runtime");
|
|
30
31
|
const react_slider_namespaceObject = require("@radix-ui/react-slider");
|
|
31
32
|
const external_react_namespaceObject = require("react");
|
|
32
33
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
33
|
-
const Slider = /*#__PURE__*/ external_react_namespaceObject.forwardRef((
|
|
34
|
+
const Slider = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
35
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(17);
|
|
36
|
+
let className;
|
|
37
|
+
let defaultValue;
|
|
38
|
+
let props;
|
|
39
|
+
let value;
|
|
40
|
+
if ($[0] !== t0) {
|
|
41
|
+
({ className, defaultValue, value, ...props } = t0);
|
|
42
|
+
$[0] = t0;
|
|
43
|
+
$[1] = className;
|
|
44
|
+
$[2] = defaultValue;
|
|
45
|
+
$[3] = props;
|
|
46
|
+
$[4] = value;
|
|
47
|
+
} else {
|
|
48
|
+
className = $[1];
|
|
49
|
+
defaultValue = $[2];
|
|
50
|
+
props = $[3];
|
|
51
|
+
value = $[4];
|
|
52
|
+
}
|
|
34
53
|
const thumbCount = value?.length ?? defaultValue?.length ?? 1;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
let t1;
|
|
55
|
+
if ($[5] !== className) {
|
|
56
|
+
t1 = (0, index_cjs_namespaceObject.cn)("relative flex w-full touch-none select-none items-center min-h-5", className);
|
|
57
|
+
$[5] = className;
|
|
58
|
+
$[6] = t1;
|
|
59
|
+
} else t1 = $[6];
|
|
60
|
+
let t2;
|
|
61
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
62
|
+
t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_slider_namespaceObject.Track, {
|
|
63
|
+
className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",
|
|
64
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_slider_namespaceObject.Range, {
|
|
65
|
+
className: "absolute h-full bg-primary"
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
$[7] = t2;
|
|
69
|
+
} else t2 = $[7];
|
|
70
|
+
let t3;
|
|
71
|
+
if ($[8] !== thumbCount) {
|
|
72
|
+
t3 = Array.from({
|
|
73
|
+
length: thumbCount
|
|
74
|
+
}).map(_temp);
|
|
75
|
+
$[8] = thumbCount;
|
|
76
|
+
$[9] = t3;
|
|
77
|
+
} else t3 = $[9];
|
|
78
|
+
let t4;
|
|
79
|
+
if ($[10] !== defaultValue || $[11] !== props || $[12] !== ref || $[13] !== t1 || $[14] !== t3 || $[15] !== value) {
|
|
80
|
+
t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_slider_namespaceObject.Root, {
|
|
81
|
+
ref: ref,
|
|
82
|
+
className: t1,
|
|
83
|
+
defaultValue: defaultValue,
|
|
84
|
+
value: value,
|
|
85
|
+
...props,
|
|
86
|
+
children: [
|
|
87
|
+
t2,
|
|
88
|
+
t3
|
|
89
|
+
]
|
|
90
|
+
});
|
|
91
|
+
$[10] = defaultValue;
|
|
92
|
+
$[11] = props;
|
|
93
|
+
$[12] = ref;
|
|
94
|
+
$[13] = t1;
|
|
95
|
+
$[14] = t3;
|
|
96
|
+
$[15] = value;
|
|
97
|
+
$[16] = t4;
|
|
98
|
+
} else t4 = $[16];
|
|
99
|
+
return t4;
|
|
55
100
|
});
|
|
56
101
|
Slider.displayName = react_slider_namespaceObject.Root.displayName;
|
|
102
|
+
function _temp(_, i) {
|
|
103
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_slider_namespaceObject.Thumb, {
|
|
104
|
+
className: "block h-5 w-5 cursor-pointer rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
105
|
+
}, i);
|
|
106
|
+
}
|
|
57
107
|
exports.Slider = __webpack_exports__.Slider;
|
|
58
108
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
59
109
|
"Slider"
|
|
@@ -1,29 +1,79 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { Range, Root, Thumb, Track } from "@radix-ui/react-slider";
|
|
3
4
|
import { forwardRef } from "react";
|
|
4
5
|
import { cn } from "../../lib/index.js";
|
|
5
|
-
const Slider = /*#__PURE__*/ forwardRef((
|
|
6
|
+
const Slider = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
7
|
+
const $ = c(17);
|
|
8
|
+
let className;
|
|
9
|
+
let defaultValue;
|
|
10
|
+
let props;
|
|
11
|
+
let value;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({ className, defaultValue, value, ...props } = t0);
|
|
14
|
+
$[0] = t0;
|
|
15
|
+
$[1] = className;
|
|
16
|
+
$[2] = defaultValue;
|
|
17
|
+
$[3] = props;
|
|
18
|
+
$[4] = value;
|
|
19
|
+
} else {
|
|
20
|
+
className = $[1];
|
|
21
|
+
defaultValue = $[2];
|
|
22
|
+
props = $[3];
|
|
23
|
+
value = $[4];
|
|
24
|
+
}
|
|
6
25
|
const thumbCount = value?.length ?? defaultValue?.length ?? 1;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
let t1;
|
|
27
|
+
if ($[5] !== className) {
|
|
28
|
+
t1 = cn("relative flex w-full touch-none select-none items-center min-h-5", className);
|
|
29
|
+
$[5] = className;
|
|
30
|
+
$[6] = t1;
|
|
31
|
+
} else t1 = $[6];
|
|
32
|
+
let t2;
|
|
33
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
34
|
+
t2 = /*#__PURE__*/ jsx(Track, {
|
|
35
|
+
className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",
|
|
36
|
+
children: /*#__PURE__*/ jsx(Range, {
|
|
37
|
+
className: "absolute h-full bg-primary"
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
$[7] = t2;
|
|
41
|
+
} else t2 = $[7];
|
|
42
|
+
let t3;
|
|
43
|
+
if ($[8] !== thumbCount) {
|
|
44
|
+
t3 = Array.from({
|
|
45
|
+
length: thumbCount
|
|
46
|
+
}).map(_temp);
|
|
47
|
+
$[8] = thumbCount;
|
|
48
|
+
$[9] = t3;
|
|
49
|
+
} else t3 = $[9];
|
|
50
|
+
let t4;
|
|
51
|
+
if ($[10] !== defaultValue || $[11] !== props || $[12] !== ref || $[13] !== t1 || $[14] !== t3 || $[15] !== value) {
|
|
52
|
+
t4 = /*#__PURE__*/ jsxs(Root, {
|
|
53
|
+
ref: ref,
|
|
54
|
+
className: t1,
|
|
55
|
+
defaultValue: defaultValue,
|
|
56
|
+
value: value,
|
|
57
|
+
...props,
|
|
58
|
+
children: [
|
|
59
|
+
t2,
|
|
60
|
+
t3
|
|
61
|
+
]
|
|
62
|
+
});
|
|
63
|
+
$[10] = defaultValue;
|
|
64
|
+
$[11] = props;
|
|
65
|
+
$[12] = ref;
|
|
66
|
+
$[13] = t1;
|
|
67
|
+
$[14] = t3;
|
|
68
|
+
$[15] = value;
|
|
69
|
+
$[16] = t4;
|
|
70
|
+
} else t4 = $[16];
|
|
71
|
+
return t4;
|
|
27
72
|
});
|
|
28
73
|
Slider.displayName = Root.displayName;
|
|
74
|
+
function _temp(_, i) {
|
|
75
|
+
return /*#__PURE__*/ jsx(Thumb, {
|
|
76
|
+
className: "block h-5 w-5 cursor-pointer rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
77
|
+
}, i);
|
|
78
|
+
}
|
|
29
79
|
export { Slider };
|
|
@@ -29,15 +29,25 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
toast: ()=>external_sonner_namespaceObject.toast
|
|
30
30
|
});
|
|
31
31
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
+
const compiler_runtime_namespaceObject = require("react/compiler-runtime");
|
|
32
33
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
33
34
|
const external_next_themes_namespaceObject = require("next-themes");
|
|
34
35
|
const external_sonner_namespaceObject = require("sonner");
|
|
35
|
-
const Toaster = (
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
const Toaster = (t0)=>{
|
|
37
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(7);
|
|
38
|
+
let props;
|
|
39
|
+
if ($[0] !== t0) {
|
|
40
|
+
({ ...props } = t0);
|
|
41
|
+
$[0] = t0;
|
|
42
|
+
$[1] = props;
|
|
43
|
+
} else props = $[1];
|
|
44
|
+
const { theme: t1 } = (0, external_next_themes_namespaceObject.useTheme)();
|
|
45
|
+
const theme = void 0 === t1 ? "system" : t1;
|
|
46
|
+
const t2 = theme;
|
|
47
|
+
let t3;
|
|
48
|
+
let t4;
|
|
49
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50
|
+
t3 = {
|
|
41
51
|
success: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CircleCheck, {
|
|
42
52
|
className: "h-4 w-4"
|
|
43
53
|
}),
|
|
@@ -53,17 +63,35 @@ const Toaster = ({ ...props })=>{
|
|
|
53
63
|
loading: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.LoaderCircle, {
|
|
54
64
|
className: "h-4 w-4 animate-spin"
|
|
55
65
|
})
|
|
56
|
-
}
|
|
57
|
-
|
|
66
|
+
};
|
|
67
|
+
t4 = {
|
|
58
68
|
classNames: {
|
|
59
|
-
toast:
|
|
60
|
-
description:
|
|
61
|
-
actionButton:
|
|
62
|
-
cancelButton:
|
|
69
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
70
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
71
|
+
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
72
|
+
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
63
73
|
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
74
|
+
};
|
|
75
|
+
$[2] = t3;
|
|
76
|
+
$[3] = t4;
|
|
77
|
+
} else {
|
|
78
|
+
t3 = $[2];
|
|
79
|
+
t4 = $[3];
|
|
80
|
+
}
|
|
81
|
+
let t5;
|
|
82
|
+
if ($[4] !== props || $[5] !== t2) {
|
|
83
|
+
t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_sonner_namespaceObject.Toaster, {
|
|
84
|
+
theme: t2,
|
|
85
|
+
className: "toaster group",
|
|
86
|
+
icons: t3,
|
|
87
|
+
toastOptions: t4,
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
$[4] = props;
|
|
91
|
+
$[5] = t2;
|
|
92
|
+
$[6] = t5;
|
|
93
|
+
} else t5 = $[6];
|
|
94
|
+
return t5;
|
|
67
95
|
};
|
|
68
96
|
exports.Toaster = __webpack_exports__.Toaster;
|
|
69
97
|
exports.toast = __webpack_exports__.toast;
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
3
4
|
import { CircleCheck, Info, LoaderCircle, OctagonX, TriangleAlert } from "lucide-react";
|
|
4
5
|
import { useTheme } from "next-themes";
|
|
5
6
|
import { Toaster, toast } from "sonner";
|
|
6
|
-
const sonner_Toaster = (
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const sonner_Toaster = (t0)=>{
|
|
8
|
+
const $ = c(7);
|
|
9
|
+
let props;
|
|
10
|
+
if ($[0] !== t0) {
|
|
11
|
+
({ ...props } = t0);
|
|
12
|
+
$[0] = t0;
|
|
13
|
+
$[1] = props;
|
|
14
|
+
} else props = $[1];
|
|
15
|
+
const { theme: t1 } = useTheme();
|
|
16
|
+
const theme = void 0 === t1 ? "system" : t1;
|
|
17
|
+
const t2 = theme;
|
|
18
|
+
let t3;
|
|
19
|
+
let t4;
|
|
20
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
21
|
+
t3 = {
|
|
12
22
|
success: /*#__PURE__*/ jsx(CircleCheck, {
|
|
13
23
|
className: "h-4 w-4"
|
|
14
24
|
}),
|
|
@@ -24,16 +34,34 @@ const sonner_Toaster = ({ ...props })=>{
|
|
|
24
34
|
loading: /*#__PURE__*/ jsx(LoaderCircle, {
|
|
25
35
|
className: "h-4 w-4 animate-spin"
|
|
26
36
|
})
|
|
27
|
-
}
|
|
28
|
-
|
|
37
|
+
};
|
|
38
|
+
t4 = {
|
|
29
39
|
classNames: {
|
|
30
|
-
toast:
|
|
31
|
-
description:
|
|
32
|
-
actionButton:
|
|
33
|
-
cancelButton:
|
|
40
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
41
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
42
|
+
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
43
|
+
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
34
44
|
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
45
|
+
};
|
|
46
|
+
$[2] = t3;
|
|
47
|
+
$[3] = t4;
|
|
48
|
+
} else {
|
|
49
|
+
t3 = $[2];
|
|
50
|
+
t4 = $[3];
|
|
51
|
+
}
|
|
52
|
+
let t5;
|
|
53
|
+
if ($[4] !== props || $[5] !== t2) {
|
|
54
|
+
t5 = /*#__PURE__*/ jsx(Toaster, {
|
|
55
|
+
theme: t2,
|
|
56
|
+
className: "toaster group",
|
|
57
|
+
icons: t3,
|
|
58
|
+
toastOptions: t4,
|
|
59
|
+
...props
|
|
60
|
+
});
|
|
61
|
+
$[4] = props;
|
|
62
|
+
$[5] = t2;
|
|
63
|
+
$[6] = t5;
|
|
64
|
+
} else t5 = $[6];
|
|
65
|
+
return t5;
|
|
38
66
|
};
|
|
39
67
|
export { sonner_Toaster as Toaster, toast };
|
|
@@ -28,6 +28,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
Spinner: ()=>Spinner
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
+
const compiler_runtime_namespaceObject = require("react/compiler-runtime");
|
|
31
32
|
const external_react_namespaceObject = require("react");
|
|
32
33
|
const external_class_variance_authority_namespaceObject = require("class-variance-authority");
|
|
33
34
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
@@ -45,27 +46,88 @@ const spinnerVariants = (0, external_class_variance_authority_namespaceObject.cv
|
|
|
45
46
|
size: 'default'
|
|
46
47
|
}
|
|
47
48
|
});
|
|
48
|
-
const Spinner = /*#__PURE__*/ external_react_namespaceObject.forwardRef((
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
]
|
|
68
|
-
|
|
49
|
+
const Spinner = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
50
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(22);
|
|
51
|
+
let className;
|
|
52
|
+
let props;
|
|
53
|
+
let size;
|
|
54
|
+
let t1;
|
|
55
|
+
let t2;
|
|
56
|
+
if ($[0] !== t0) {
|
|
57
|
+
({ className, size, label: t1, showLabel: t2, ...props } = t0);
|
|
58
|
+
$[0] = t0;
|
|
59
|
+
$[1] = className;
|
|
60
|
+
$[2] = props;
|
|
61
|
+
$[3] = size;
|
|
62
|
+
$[4] = t1;
|
|
63
|
+
$[5] = t2;
|
|
64
|
+
} else {
|
|
65
|
+
className = $[1];
|
|
66
|
+
props = $[2];
|
|
67
|
+
size = $[3];
|
|
68
|
+
t1 = $[4];
|
|
69
|
+
t2 = $[5];
|
|
70
|
+
}
|
|
71
|
+
const label = void 0 === t1 ? "Loading" : t1;
|
|
72
|
+
const showLabel = void 0 === t2 ? false : t2;
|
|
73
|
+
let t3;
|
|
74
|
+
if ($[6] !== className) {
|
|
75
|
+
t3 = (0, index_cjs_namespaceObject.cn)("flex items-center justify-center gap-2", className);
|
|
76
|
+
$[6] = className;
|
|
77
|
+
$[7] = t3;
|
|
78
|
+
} else t3 = $[7];
|
|
79
|
+
let t4;
|
|
80
|
+
if ($[8] !== size) {
|
|
81
|
+
t4 = (0, index_cjs_namespaceObject.cn)(spinnerVariants({
|
|
82
|
+
size
|
|
83
|
+
}));
|
|
84
|
+
$[8] = size;
|
|
85
|
+
$[9] = t4;
|
|
86
|
+
} else t4 = $[9];
|
|
87
|
+
let t5;
|
|
88
|
+
if ($[10] !== t4) {
|
|
89
|
+
t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Loader2, {
|
|
90
|
+
className: t4
|
|
91
|
+
});
|
|
92
|
+
$[10] = t4;
|
|
93
|
+
$[11] = t5;
|
|
94
|
+
} else t5 = $[11];
|
|
95
|
+
let t6;
|
|
96
|
+
if ($[12] !== label || $[13] !== showLabel) {
|
|
97
|
+
t6 = showLabel ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
98
|
+
className: "text-sm text-muted-foreground",
|
|
99
|
+
children: label
|
|
100
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
101
|
+
className: "sr-only",
|
|
102
|
+
children: label
|
|
103
|
+
});
|
|
104
|
+
$[12] = label;
|
|
105
|
+
$[13] = showLabel;
|
|
106
|
+
$[14] = t6;
|
|
107
|
+
} else t6 = $[14];
|
|
108
|
+
let t7;
|
|
109
|
+
if ($[15] !== label || $[16] !== props || $[17] !== ref || $[18] !== t3 || $[19] !== t5 || $[20] !== t6) {
|
|
110
|
+
t7 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
111
|
+
ref: ref,
|
|
112
|
+
role: "status",
|
|
113
|
+
"aria-label": label,
|
|
114
|
+
className: t3,
|
|
115
|
+
...props,
|
|
116
|
+
children: [
|
|
117
|
+
t5,
|
|
118
|
+
t6
|
|
119
|
+
]
|
|
120
|
+
});
|
|
121
|
+
$[15] = label;
|
|
122
|
+
$[16] = props;
|
|
123
|
+
$[17] = ref;
|
|
124
|
+
$[18] = t3;
|
|
125
|
+
$[19] = t5;
|
|
126
|
+
$[20] = t6;
|
|
127
|
+
$[21] = t7;
|
|
128
|
+
} else t7 = $[21];
|
|
129
|
+
return t7;
|
|
130
|
+
});
|
|
69
131
|
Spinner.displayName = 'Spinner';
|
|
70
132
|
exports.Spinner = __webpack_exports__.Spinner;
|
|
71
133
|
exports.spinnerVariants = __webpack_exports__.spinnerVariants;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { forwardRef } from "react";
|
|
3
4
|
import { cva } from "class-variance-authority";
|
|
4
5
|
import { Loader2 } from "lucide-react";
|
|
@@ -16,26 +17,87 @@ const spinnerVariants = cva('animate-spin text-muted-foreground', {
|
|
|
16
17
|
size: 'default'
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
|
-
const Spinner = /*#__PURE__*/ forwardRef((
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
]
|
|
39
|
-
|
|
20
|
+
const Spinner = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
21
|
+
const $ = c(22);
|
|
22
|
+
let className;
|
|
23
|
+
let props;
|
|
24
|
+
let size;
|
|
25
|
+
let t1;
|
|
26
|
+
let t2;
|
|
27
|
+
if ($[0] !== t0) {
|
|
28
|
+
({ className, size, label: t1, showLabel: t2, ...props } = t0);
|
|
29
|
+
$[0] = t0;
|
|
30
|
+
$[1] = className;
|
|
31
|
+
$[2] = props;
|
|
32
|
+
$[3] = size;
|
|
33
|
+
$[4] = t1;
|
|
34
|
+
$[5] = t2;
|
|
35
|
+
} else {
|
|
36
|
+
className = $[1];
|
|
37
|
+
props = $[2];
|
|
38
|
+
size = $[3];
|
|
39
|
+
t1 = $[4];
|
|
40
|
+
t2 = $[5];
|
|
41
|
+
}
|
|
42
|
+
const label = void 0 === t1 ? "Loading" : t1;
|
|
43
|
+
const showLabel = void 0 === t2 ? false : t2;
|
|
44
|
+
let t3;
|
|
45
|
+
if ($[6] !== className) {
|
|
46
|
+
t3 = cn("flex items-center justify-center gap-2", className);
|
|
47
|
+
$[6] = className;
|
|
48
|
+
$[7] = t3;
|
|
49
|
+
} else t3 = $[7];
|
|
50
|
+
let t4;
|
|
51
|
+
if ($[8] !== size) {
|
|
52
|
+
t4 = cn(spinnerVariants({
|
|
53
|
+
size
|
|
54
|
+
}));
|
|
55
|
+
$[8] = size;
|
|
56
|
+
$[9] = t4;
|
|
57
|
+
} else t4 = $[9];
|
|
58
|
+
let t5;
|
|
59
|
+
if ($[10] !== t4) {
|
|
60
|
+
t5 = /*#__PURE__*/ jsx(Loader2, {
|
|
61
|
+
className: t4
|
|
62
|
+
});
|
|
63
|
+
$[10] = t4;
|
|
64
|
+
$[11] = t5;
|
|
65
|
+
} else t5 = $[11];
|
|
66
|
+
let t6;
|
|
67
|
+
if ($[12] !== label || $[13] !== showLabel) {
|
|
68
|
+
t6 = showLabel ? /*#__PURE__*/ jsx("span", {
|
|
69
|
+
className: "text-sm text-muted-foreground",
|
|
70
|
+
children: label
|
|
71
|
+
}) : /*#__PURE__*/ jsx("span", {
|
|
72
|
+
className: "sr-only",
|
|
73
|
+
children: label
|
|
74
|
+
});
|
|
75
|
+
$[12] = label;
|
|
76
|
+
$[13] = showLabel;
|
|
77
|
+
$[14] = t6;
|
|
78
|
+
} else t6 = $[14];
|
|
79
|
+
let t7;
|
|
80
|
+
if ($[15] !== label || $[16] !== props || $[17] !== ref || $[18] !== t3 || $[19] !== t5 || $[20] !== t6) {
|
|
81
|
+
t7 = /*#__PURE__*/ jsxs("div", {
|
|
82
|
+
ref: ref,
|
|
83
|
+
role: "status",
|
|
84
|
+
"aria-label": label,
|
|
85
|
+
className: t3,
|
|
86
|
+
...props,
|
|
87
|
+
children: [
|
|
88
|
+
t5,
|
|
89
|
+
t6
|
|
90
|
+
]
|
|
91
|
+
});
|
|
92
|
+
$[15] = label;
|
|
93
|
+
$[16] = props;
|
|
94
|
+
$[17] = ref;
|
|
95
|
+
$[18] = t3;
|
|
96
|
+
$[19] = t5;
|
|
97
|
+
$[20] = t6;
|
|
98
|
+
$[21] = t7;
|
|
99
|
+
} else t7 = $[21];
|
|
100
|
+
return t7;
|
|
101
|
+
});
|
|
40
102
|
Spinner.displayName = 'Spinner';
|
|
41
103
|
export { Spinner, spinnerVariants };
|