@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
@@ -29,30 +29,130 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  ButtonGroup: ()=>ButtonGroup
30
30
  });
31
31
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
32
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
32
33
  const react_slot_namespaceObject = require("@radix-ui/react-slot");
33
34
  const external_react_namespaceObject = require("react");
34
35
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
35
- const ButtonGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, orientation = 'horizontal', ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
36
- ref: ref,
37
- role: "group",
38
- className: (0, index_cjs_namespaceObject.cn)('inline-flex', 'horizontal' === orientation ? '[&>button]:rounded-none [&>button]:border-r-0 [&>button:first-child]:rounded-l-md [&>button:last-child]:rounded-r-md [&>button:last-child]:border-r' : 'flex-col [&>button]:rounded-none [&>button]:border-b-0 [&>button:first-child]:rounded-t-md [&>button:last-child]:rounded-b-md [&>button:last-child]:border-b', className),
39
- ...props
40
- }));
36
+ const ButtonGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
37
+ const $ = (0, compiler_runtime_namespaceObject.c)(11);
38
+ let className;
39
+ let props;
40
+ let t1;
41
+ if ($[0] !== t0) {
42
+ ({ className, orientation: t1, ...props } = t0);
43
+ $[0] = t0;
44
+ $[1] = className;
45
+ $[2] = props;
46
+ $[3] = t1;
47
+ } else {
48
+ className = $[1];
49
+ props = $[2];
50
+ t1 = $[3];
51
+ }
52
+ const orientation = void 0 === t1 ? "horizontal" : t1;
53
+ const t2 = "horizontal" === orientation ? "[&>button]:rounded-none [&>button]:border-r-0 [&>button:first-child]:rounded-l-md [&>button:last-child]:rounded-r-md [&>button:last-child]:border-r" : "flex-col [&>button]:rounded-none [&>button]:border-b-0 [&>button:first-child]:rounded-t-md [&>button:last-child]:rounded-b-md [&>button:last-child]:border-b";
54
+ let t3;
55
+ if ($[4] !== className || $[5] !== t2) {
56
+ t3 = (0, index_cjs_namespaceObject.cn)("inline-flex", t2, className);
57
+ $[4] = className;
58
+ $[5] = t2;
59
+ $[6] = t3;
60
+ } else t3 = $[6];
61
+ let t4;
62
+ if ($[7] !== props || $[8] !== ref || $[9] !== t3) {
63
+ t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
64
+ ref: ref,
65
+ role: "group",
66
+ className: t3,
67
+ ...props
68
+ });
69
+ $[7] = props;
70
+ $[8] = ref;
71
+ $[9] = t3;
72
+ $[10] = t4;
73
+ } else t4 = $[10];
74
+ return t4;
75
+ });
41
76
  ButtonGroup.displayName = 'ButtonGroup';
42
- const ButtonGroupSeparator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, orientation = 'vertical', ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
43
- ref: ref,
44
- role: "separator",
45
- className: (0, index_cjs_namespaceObject.cn)('bg-border', 'vertical' === orientation ? 'w-px self-stretch' : 'h-px self-stretch', className),
46
- ...props
47
- }));
77
+ const ButtonGroupSeparator = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
78
+ const $ = (0, compiler_runtime_namespaceObject.c)(11);
79
+ let className;
80
+ let props;
81
+ let t1;
82
+ if ($[0] !== t0) {
83
+ ({ className, orientation: t1, ...props } = t0);
84
+ $[0] = t0;
85
+ $[1] = className;
86
+ $[2] = props;
87
+ $[3] = t1;
88
+ } else {
89
+ className = $[1];
90
+ props = $[2];
91
+ t1 = $[3];
92
+ }
93
+ const orientation = void 0 === t1 ? "vertical" : t1;
94
+ const t2 = "vertical" === orientation ? "w-px self-stretch" : "h-px self-stretch";
95
+ let t3;
96
+ if ($[4] !== className || $[5] !== t2) {
97
+ t3 = (0, index_cjs_namespaceObject.cn)("bg-border", t2, className);
98
+ $[4] = className;
99
+ $[5] = t2;
100
+ $[6] = t3;
101
+ } else t3 = $[6];
102
+ let t4;
103
+ if ($[7] !== props || $[8] !== ref || $[9] !== t3) {
104
+ t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
105
+ ref: ref,
106
+ role: "separator",
107
+ className: t3,
108
+ ...props
109
+ });
110
+ $[7] = props;
111
+ $[8] = ref;
112
+ $[9] = t3;
113
+ $[10] = t4;
114
+ } else t4 = $[10];
115
+ return t4;
116
+ });
48
117
  ButtonGroupSeparator.displayName = 'ButtonGroupSeparator';
49
- const ButtonGroupText = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, asChild = false, ...props }, ref)=>{
50
- const Comp = asChild ? react_slot_namespaceObject.Slot : 'span';
51
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Comp, {
52
- ref: ref,
53
- className: (0, index_cjs_namespaceObject.cn)('inline-flex items-center justify-center px-3 text-sm font-medium text-muted-foreground', className),
54
- ...props
55
- });
118
+ const ButtonGroupText = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
119
+ const $ = (0, compiler_runtime_namespaceObject.c)(11);
120
+ let className;
121
+ let props;
122
+ let t1;
123
+ if ($[0] !== t0) {
124
+ ({ className, asChild: t1, ...props } = t0);
125
+ $[0] = t0;
126
+ $[1] = className;
127
+ $[2] = props;
128
+ $[3] = t1;
129
+ } else {
130
+ className = $[1];
131
+ props = $[2];
132
+ t1 = $[3];
133
+ }
134
+ const asChild = void 0 === t1 ? false : t1;
135
+ const Comp = asChild ? react_slot_namespaceObject.Slot : "span";
136
+ let t2;
137
+ if ($[4] !== className) {
138
+ t2 = (0, index_cjs_namespaceObject.cn)("inline-flex items-center justify-center px-3 text-sm font-medium text-muted-foreground", className);
139
+ $[4] = className;
140
+ $[5] = t2;
141
+ } else t2 = $[5];
142
+ let t3;
143
+ if ($[6] !== Comp || $[7] !== props || $[8] !== ref || $[9] !== t2) {
144
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Comp, {
145
+ ref: ref,
146
+ className: t2,
147
+ ...props
148
+ });
149
+ $[6] = Comp;
150
+ $[7] = props;
151
+ $[8] = ref;
152
+ $[9] = t2;
153
+ $[10] = t3;
154
+ } else t3 = $[10];
155
+ return t3;
56
156
  });
57
157
  ButtonGroupText.displayName = 'ButtonGroupText';
58
158
  exports.ButtonGroup = __webpack_exports__.ButtonGroup;
@@ -1,28 +1,128 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { Slot } from "@radix-ui/react-slot";
3
4
  import { forwardRef } from "react";
4
5
  import { cn } from "../../lib/index.js";
5
- const ButtonGroup = /*#__PURE__*/ forwardRef(({ className, orientation = 'horizontal', ...props }, ref)=>/*#__PURE__*/ jsx("div", {
6
- ref: ref,
7
- role: "group",
8
- className: cn('inline-flex', 'horizontal' === orientation ? '[&>button]:rounded-none [&>button]:border-r-0 [&>button:first-child]:rounded-l-md [&>button:last-child]:rounded-r-md [&>button:last-child]:border-r' : 'flex-col [&>button]:rounded-none [&>button]:border-b-0 [&>button:first-child]:rounded-t-md [&>button:last-child]:rounded-b-md [&>button:last-child]:border-b', className),
9
- ...props
10
- }));
6
+ const ButtonGroup = /*#__PURE__*/ forwardRef((t0, ref)=>{
7
+ const $ = c(11);
8
+ let className;
9
+ let props;
10
+ let t1;
11
+ if ($[0] !== t0) {
12
+ ({ className, orientation: t1, ...props } = t0);
13
+ $[0] = t0;
14
+ $[1] = className;
15
+ $[2] = props;
16
+ $[3] = t1;
17
+ } else {
18
+ className = $[1];
19
+ props = $[2];
20
+ t1 = $[3];
21
+ }
22
+ const orientation = void 0 === t1 ? "horizontal" : t1;
23
+ const t2 = "horizontal" === orientation ? "[&>button]:rounded-none [&>button]:border-r-0 [&>button:first-child]:rounded-l-md [&>button:last-child]:rounded-r-md [&>button:last-child]:border-r" : "flex-col [&>button]:rounded-none [&>button]:border-b-0 [&>button:first-child]:rounded-t-md [&>button:last-child]:rounded-b-md [&>button:last-child]:border-b";
24
+ let t3;
25
+ if ($[4] !== className || $[5] !== t2) {
26
+ t3 = cn("inline-flex", t2, className);
27
+ $[4] = className;
28
+ $[5] = t2;
29
+ $[6] = t3;
30
+ } else t3 = $[6];
31
+ let t4;
32
+ if ($[7] !== props || $[8] !== ref || $[9] !== t3) {
33
+ t4 = /*#__PURE__*/ jsx("div", {
34
+ ref: ref,
35
+ role: "group",
36
+ className: t3,
37
+ ...props
38
+ });
39
+ $[7] = props;
40
+ $[8] = ref;
41
+ $[9] = t3;
42
+ $[10] = t4;
43
+ } else t4 = $[10];
44
+ return t4;
45
+ });
11
46
  ButtonGroup.displayName = 'ButtonGroup';
12
- const ButtonGroupSeparator = /*#__PURE__*/ forwardRef(({ className, orientation = 'vertical', ...props }, ref)=>/*#__PURE__*/ jsx("div", {
13
- ref: ref,
14
- role: "separator",
15
- className: cn('bg-border', 'vertical' === orientation ? 'w-px self-stretch' : 'h-px self-stretch', className),
16
- ...props
17
- }));
47
+ const ButtonGroupSeparator = /*#__PURE__*/ forwardRef((t0, ref)=>{
48
+ const $ = c(11);
49
+ let className;
50
+ let props;
51
+ let t1;
52
+ if ($[0] !== t0) {
53
+ ({ className, orientation: t1, ...props } = t0);
54
+ $[0] = t0;
55
+ $[1] = className;
56
+ $[2] = props;
57
+ $[3] = t1;
58
+ } else {
59
+ className = $[1];
60
+ props = $[2];
61
+ t1 = $[3];
62
+ }
63
+ const orientation = void 0 === t1 ? "vertical" : t1;
64
+ const t2 = "vertical" === orientation ? "w-px self-stretch" : "h-px self-stretch";
65
+ let t3;
66
+ if ($[4] !== className || $[5] !== t2) {
67
+ t3 = cn("bg-border", t2, className);
68
+ $[4] = className;
69
+ $[5] = t2;
70
+ $[6] = t3;
71
+ } else t3 = $[6];
72
+ let t4;
73
+ if ($[7] !== props || $[8] !== ref || $[9] !== t3) {
74
+ t4 = /*#__PURE__*/ jsx("div", {
75
+ ref: ref,
76
+ role: "separator",
77
+ className: t3,
78
+ ...props
79
+ });
80
+ $[7] = props;
81
+ $[8] = ref;
82
+ $[9] = t3;
83
+ $[10] = t4;
84
+ } else t4 = $[10];
85
+ return t4;
86
+ });
18
87
  ButtonGroupSeparator.displayName = 'ButtonGroupSeparator';
19
- const ButtonGroupText = /*#__PURE__*/ forwardRef(({ className, asChild = false, ...props }, ref)=>{
20
- const Comp = asChild ? Slot : 'span';
21
- return /*#__PURE__*/ jsx(Comp, {
22
- ref: ref,
23
- className: cn('inline-flex items-center justify-center px-3 text-sm font-medium text-muted-foreground', className),
24
- ...props
25
- });
88
+ const ButtonGroupText = /*#__PURE__*/ forwardRef((t0, ref)=>{
89
+ const $ = c(11);
90
+ let className;
91
+ let props;
92
+ let t1;
93
+ if ($[0] !== t0) {
94
+ ({ className, asChild: t1, ...props } = t0);
95
+ $[0] = t0;
96
+ $[1] = className;
97
+ $[2] = props;
98
+ $[3] = t1;
99
+ } else {
100
+ className = $[1];
101
+ props = $[2];
102
+ t1 = $[3];
103
+ }
104
+ const asChild = void 0 === t1 ? false : t1;
105
+ const Comp = asChild ? Slot : "span";
106
+ let t2;
107
+ if ($[4] !== className) {
108
+ t2 = cn("inline-flex items-center justify-center px-3 text-sm font-medium text-muted-foreground", className);
109
+ $[4] = className;
110
+ $[5] = t2;
111
+ } else t2 = $[5];
112
+ let t3;
113
+ if ($[6] !== Comp || $[7] !== props || $[8] !== ref || $[9] !== t2) {
114
+ t3 = /*#__PURE__*/ jsx(Comp, {
115
+ ref: ref,
116
+ className: t2,
117
+ ...props
118
+ });
119
+ $[6] = Comp;
120
+ $[7] = props;
121
+ $[8] = ref;
122
+ $[9] = t2;
123
+ $[10] = t3;
124
+ } else t3 = $[10];
125
+ return t3;
26
126
  });
27
127
  ButtonGroupText.displayName = 'ButtonGroupText';
28
128
  export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText };
@@ -28,6 +28,7 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  Button: ()=>Button
29
29
  });
30
30
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
31
32
  const react_slot_namespaceObject = require("@radix-ui/react-slot");
32
33
  const external_class_variance_authority_namespaceObject = require("class-variance-authority");
33
34
  const external_react_namespaceObject = require("react");
@@ -54,17 +55,56 @@ const buttonVariants = (0, external_class_variance_authority_namespaceObject.cva
54
55
  size: 'default'
55
56
  }
56
57
  });
57
- const Button = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, variant, size, asChild = false, ...props }, ref)=>{
58
- const Comp = asChild ? react_slot_namespaceObject.Slot : 'button';
59
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Comp, {
60
- className: (0, index_cjs_namespaceObject.cn)(buttonVariants({
58
+ const Button = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
59
+ const $ = (0, compiler_runtime_namespaceObject.c)(15);
60
+ let className;
61
+ let props;
62
+ let size;
63
+ let t1;
64
+ let variant;
65
+ if ($[0] !== t0) {
66
+ ({ className, variant, size, asChild: t1, ...props } = t0);
67
+ $[0] = t0;
68
+ $[1] = className;
69
+ $[2] = props;
70
+ $[3] = size;
71
+ $[4] = t1;
72
+ $[5] = variant;
73
+ } else {
74
+ className = $[1];
75
+ props = $[2];
76
+ size = $[3];
77
+ t1 = $[4];
78
+ variant = $[5];
79
+ }
80
+ const asChild = void 0 === t1 ? false : t1;
81
+ const Comp = asChild ? react_slot_namespaceObject.Slot : "button";
82
+ let t2;
83
+ if ($[6] !== className || $[7] !== size || $[8] !== variant) {
84
+ t2 = (0, index_cjs_namespaceObject.cn)(buttonVariants({
61
85
  variant,
62
86
  size,
63
87
  className
64
- })),
65
- ref: ref,
66
- ...props
67
- });
88
+ }));
89
+ $[6] = className;
90
+ $[7] = size;
91
+ $[8] = variant;
92
+ $[9] = t2;
93
+ } else t2 = $[9];
94
+ let t3;
95
+ if ($[10] !== Comp || $[11] !== props || $[12] !== ref || $[13] !== t2) {
96
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Comp, {
97
+ className: t2,
98
+ ref: ref,
99
+ ...props
100
+ });
101
+ $[10] = Comp;
102
+ $[11] = props;
103
+ $[12] = ref;
104
+ $[13] = t2;
105
+ $[14] = t3;
106
+ } else t3 = $[14];
107
+ return t3;
68
108
  });
69
109
  Button.displayName = 'Button';
70
110
  exports.Button = __webpack_exports__.Button;
@@ -1,4 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { Slot } from "@radix-ui/react-slot";
3
4
  import { cva } from "class-variance-authority";
4
5
  import { forwardRef } from "react";
@@ -25,17 +26,56 @@ const buttonVariants = cva('inline-flex items-center justify-center gap-2 whites
25
26
  size: 'default'
26
27
  }
27
28
  });
28
- const Button = /*#__PURE__*/ forwardRef(({ className, variant, size, asChild = false, ...props }, ref)=>{
29
- const Comp = asChild ? Slot : 'button';
30
- return /*#__PURE__*/ jsx(Comp, {
31
- className: cn(buttonVariants({
29
+ const Button = /*#__PURE__*/ forwardRef((t0, ref)=>{
30
+ const $ = c(15);
31
+ let className;
32
+ let props;
33
+ let size;
34
+ let t1;
35
+ let variant;
36
+ if ($[0] !== t0) {
37
+ ({ className, variant, size, asChild: t1, ...props } = t0);
38
+ $[0] = t0;
39
+ $[1] = className;
40
+ $[2] = props;
41
+ $[3] = size;
42
+ $[4] = t1;
43
+ $[5] = variant;
44
+ } else {
45
+ className = $[1];
46
+ props = $[2];
47
+ size = $[3];
48
+ t1 = $[4];
49
+ variant = $[5];
50
+ }
51
+ const asChild = void 0 === t1 ? false : t1;
52
+ const Comp = asChild ? Slot : "button";
53
+ let t2;
54
+ if ($[6] !== className || $[7] !== size || $[8] !== variant) {
55
+ t2 = cn(buttonVariants({
32
56
  variant,
33
57
  size,
34
58
  className
35
- })),
36
- ref: ref,
37
- ...props
38
- });
59
+ }));
60
+ $[6] = className;
61
+ $[7] = size;
62
+ $[8] = variant;
63
+ $[9] = t2;
64
+ } else t2 = $[9];
65
+ let t3;
66
+ if ($[10] !== Comp || $[11] !== props || $[12] !== ref || $[13] !== t2) {
67
+ t3 = /*#__PURE__*/ jsx(Comp, {
68
+ className: t2,
69
+ ref: ref,
70
+ ...props
71
+ });
72
+ $[10] = Comp;
73
+ $[11] = props;
74
+ $[12] = ref;
75
+ $[13] = t2;
76
+ $[14] = t3;
77
+ } else t3 = $[14];
78
+ return t3;
39
79
  });
40
80
  Button.displayName = 'Button';
41
81
  export { Button, buttonVariants };
@@ -29,6 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  CalendarDayButton: ()=>CalendarDayButton
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_react_namespaceObject = require("react");
34
35
  const external_react_day_picker_namespaceObject = require("react-day-picker");
@@ -79,29 +80,29 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
79
80
  ...classNames
80
81
  },
81
82
  components: {
82
- Root: ({ className, rootRef, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
83
+ Root: ({ className: className_0, rootRef, ...props_0 })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
83
84
  "data-slot": "calendar",
84
85
  ref: rootRef,
85
- className: (0, index_cjs_namespaceObject.cn)(className),
86
- ...props
86
+ className: (0, index_cjs_namespaceObject.cn)(className_0),
87
+ ...props_0
87
88
  }),
88
- Chevron: ({ className, orientation, ...props })=>{
89
+ Chevron: ({ className: className_1, orientation, ...props_1 })=>{
89
90
  if ('left' === orientation) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronLeftIcon, {
90
- className: (0, index_cjs_namespaceObject.cn)('size-4', className),
91
- ...props
91
+ className: (0, index_cjs_namespaceObject.cn)('size-4', className_1),
92
+ ...props_1
92
93
  });
93
94
  if ('right' === orientation) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRightIcon, {
94
- className: (0, index_cjs_namespaceObject.cn)('size-4', className),
95
- ...props
95
+ className: (0, index_cjs_namespaceObject.cn)('size-4', className_1),
96
+ ...props_1
96
97
  });
97
98
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDownIcon, {
98
- className: (0, index_cjs_namespaceObject.cn)('size-4', className),
99
- ...props
99
+ className: (0, index_cjs_namespaceObject.cn)('size-4', className_1),
100
+ ...props_1
100
101
  });
101
102
  },
102
103
  DayButton: CalendarDayButton,
103
- WeekNumber: ({ children, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("td", {
104
- ...props,
104
+ WeekNumber: ({ children, ...props_2 })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("td", {
105
+ ...props_2,
105
106
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
106
107
  className: "flex size-[--cell-size] items-center justify-center text-center",
107
108
  children: children
@@ -112,26 +113,83 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
112
113
  ...props
113
114
  });
114
115
  }
115
- function CalendarDayButton({ className, day, modifiers, ...props }) {
116
+ function CalendarDayButton(t0) {
117
+ const $ = (0, compiler_runtime_namespaceObject.c)(19);
118
+ let className;
119
+ let day;
120
+ let modifiers;
121
+ let props;
122
+ if ($[0] !== t0) {
123
+ ({ className, day, modifiers, ...props } = t0);
124
+ $[0] = t0;
125
+ $[1] = className;
126
+ $[2] = day;
127
+ $[3] = modifiers;
128
+ $[4] = props;
129
+ } else {
130
+ className = $[1];
131
+ day = $[2];
132
+ modifiers = $[3];
133
+ props = $[4];
134
+ }
116
135
  const defaultClassNames = (0, external_react_day_picker_namespaceObject.getDefaultClassNames)();
117
136
  const ref = external_react_namespaceObject.useRef(null);
118
- external_react_namespaceObject.useEffect(()=>{
119
- if (modifiers.focused) ref.current?.focus();
120
- }, [
121
- modifiers.focused
122
- ]);
123
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
124
- ref: ref,
125
- variant: "ghost",
126
- size: "icon",
127
- "data-day": day.date.toLocaleDateString(),
128
- "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
129
- "data-range-start": modifiers.range_start,
130
- "data-range-end": modifiers.range_end,
131
- "data-range-middle": modifiers.range_middle,
132
- className: (0, index_cjs_namespaceObject.cn)('data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-[--cell-size] w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70', defaultClassNames.day, className),
133
- ...props
134
- });
137
+ let t1;
138
+ let t2;
139
+ if ($[5] !== modifiers.focused) {
140
+ t1 = ()=>{
141
+ if (modifiers.focused) ref.current?.focus();
142
+ };
143
+ t2 = [
144
+ modifiers.focused
145
+ ];
146
+ $[5] = modifiers.focused;
147
+ $[6] = t1;
148
+ $[7] = t2;
149
+ } else {
150
+ t1 = $[6];
151
+ t2 = $[7];
152
+ }
153
+ external_react_namespaceObject.useEffect(t1, t2);
154
+ const T0 = external_button_cjs_namespaceObject.Button;
155
+ const t3 = "ghost";
156
+ const t4 = "icon";
157
+ let t5;
158
+ if ($[8] !== day.date) {
159
+ t5 = day.date.toLocaleDateString();
160
+ $[8] = day.date;
161
+ $[9] = t5;
162
+ } else t5 = $[9];
163
+ const t6 = modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle;
164
+ const t7 = modifiers.range_start;
165
+ const t8 = modifiers.range_end;
166
+ const t9 = modifiers.range_middle;
167
+ const t10 = (0, index_cjs_namespaceObject.cn)("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-[--cell-size] w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className);
168
+ let t11;
169
+ if ($[10] !== T0 || $[11] !== modifiers.range_end || $[12] !== modifiers.range_middle || $[13] !== modifiers.range_start || $[14] !== props || $[15] !== t10 || $[16] !== t5 || $[17] !== t6) {
170
+ t11 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(T0, {
171
+ ref: ref,
172
+ variant: t3,
173
+ size: t4,
174
+ "data-day": t5,
175
+ "data-selected-single": t6,
176
+ "data-range-start": t7,
177
+ "data-range-end": t8,
178
+ "data-range-middle": t9,
179
+ className: t10,
180
+ ...props
181
+ });
182
+ $[10] = T0;
183
+ $[11] = modifiers.range_end;
184
+ $[12] = modifiers.range_middle;
185
+ $[13] = modifiers.range_start;
186
+ $[14] = props;
187
+ $[15] = t10;
188
+ $[16] = t5;
189
+ $[17] = t6;
190
+ $[18] = t11;
191
+ } else t11 = $[18];
192
+ return t11;
135
193
  }
136
194
  exports.Calendar = __webpack_exports__.Calendar;
137
195
  exports.CalendarDayButton = __webpack_exports__.CalendarDayButton;