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