@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
@@ -30,27 +30,112 @@ __webpack_require__.d(__webpack_exports__, {
30
30
  TabsContent: ()=>TabsContent
31
31
  });
32
32
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
33
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
33
34
  const react_tabs_namespaceObject = require("@radix-ui/react-tabs");
34
35
  const external_react_namespaceObject = require("react");
35
36
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
36
37
  const Tabs = react_tabs_namespaceObject.Root;
37
- const TabsList = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.List, {
38
- ref: ref,
39
- className: (0, index_cjs_namespaceObject.cn)('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', className),
40
- ...props
41
- }));
38
+ const TabsList = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
39
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
40
+ let className;
41
+ let props;
42
+ if ($[0] !== t0) {
43
+ ({ className, ...props } = t0);
44
+ $[0] = t0;
45
+ $[1] = className;
46
+ $[2] = props;
47
+ } else {
48
+ className = $[1];
49
+ props = $[2];
50
+ }
51
+ let t1;
52
+ if ($[3] !== className) {
53
+ t1 = (0, index_cjs_namespaceObject.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", className);
54
+ $[3] = className;
55
+ $[4] = t1;
56
+ } else t1 = $[4];
57
+ let t2;
58
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
59
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.List, {
60
+ ref: ref,
61
+ className: t1,
62
+ ...props
63
+ });
64
+ $[5] = props;
65
+ $[6] = ref;
66
+ $[7] = t1;
67
+ $[8] = t2;
68
+ } else t2 = $[8];
69
+ return t2;
70
+ });
42
71
  TabsList.displayName = react_tabs_namespaceObject.List.displayName;
43
- const TabsTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.Trigger, {
44
- ref: ref,
45
- className: (0, index_cjs_namespaceObject.cn)('inline-flex cursor-pointer items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', className),
46
- ...props
47
- }));
72
+ const TabsTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
73
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
74
+ let className;
75
+ let props;
76
+ if ($[0] !== t0) {
77
+ ({ className, ...props } = t0);
78
+ $[0] = t0;
79
+ $[1] = className;
80
+ $[2] = props;
81
+ } else {
82
+ className = $[1];
83
+ props = $[2];
84
+ }
85
+ let t1;
86
+ if ($[3] !== className) {
87
+ t1 = (0, index_cjs_namespaceObject.cn)("inline-flex cursor-pointer items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", className);
88
+ $[3] = className;
89
+ $[4] = t1;
90
+ } else t1 = $[4];
91
+ let t2;
92
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
93
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.Trigger, {
94
+ ref: ref,
95
+ className: t1,
96
+ ...props
97
+ });
98
+ $[5] = props;
99
+ $[6] = ref;
100
+ $[7] = t1;
101
+ $[8] = t2;
102
+ } else t2 = $[8];
103
+ return t2;
104
+ });
48
105
  TabsTrigger.displayName = react_tabs_namespaceObject.Trigger.displayName;
49
- const TabsContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.Content, {
50
- ref: ref,
51
- className: (0, index_cjs_namespaceObject.cn)('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', className),
52
- ...props
53
- }));
106
+ const TabsContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
107
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
108
+ let className;
109
+ let props;
110
+ if ($[0] !== t0) {
111
+ ({ className, ...props } = t0);
112
+ $[0] = t0;
113
+ $[1] = className;
114
+ $[2] = props;
115
+ } else {
116
+ className = $[1];
117
+ props = $[2];
118
+ }
119
+ let t1;
120
+ if ($[3] !== className) {
121
+ t1 = (0, index_cjs_namespaceObject.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", className);
122
+ $[3] = className;
123
+ $[4] = t1;
124
+ } else t1 = $[4];
125
+ let t2;
126
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
127
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.Content, {
128
+ ref: ref,
129
+ className: t1,
130
+ ...props
131
+ });
132
+ $[5] = props;
133
+ $[6] = ref;
134
+ $[7] = t1;
135
+ $[8] = t2;
136
+ } else t2 = $[8];
137
+ return t2;
138
+ });
54
139
  TabsContent.displayName = react_tabs_namespaceObject.Content.displayName;
55
140
  exports.Tabs = __webpack_exports__.Tabs;
56
141
  exports.TabsContent = __webpack_exports__.TabsContent;
@@ -1,24 +1,109 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { Content, List, Root, Trigger } from "@radix-ui/react-tabs";
3
4
  import { forwardRef } from "react";
4
5
  import { cn } from "../../lib/index.js";
5
6
  const Tabs = Root;
6
- const TabsList = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(List, {
7
- ref: ref,
8
- className: cn('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', className),
9
- ...props
10
- }));
7
+ const TabsList = /*#__PURE__*/ forwardRef((t0, ref)=>{
8
+ const $ = c(9);
9
+ let className;
10
+ let props;
11
+ if ($[0] !== t0) {
12
+ ({ className, ...props } = t0);
13
+ $[0] = t0;
14
+ $[1] = className;
15
+ $[2] = props;
16
+ } else {
17
+ className = $[1];
18
+ props = $[2];
19
+ }
20
+ let t1;
21
+ if ($[3] !== className) {
22
+ t1 = cn("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", className);
23
+ $[3] = className;
24
+ $[4] = t1;
25
+ } else t1 = $[4];
26
+ let t2;
27
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
28
+ t2 = /*#__PURE__*/ jsx(List, {
29
+ ref: ref,
30
+ className: t1,
31
+ ...props
32
+ });
33
+ $[5] = props;
34
+ $[6] = ref;
35
+ $[7] = t1;
36
+ $[8] = t2;
37
+ } else t2 = $[8];
38
+ return t2;
39
+ });
11
40
  TabsList.displayName = List.displayName;
12
- const TabsTrigger = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Trigger, {
13
- ref: ref,
14
- className: cn('inline-flex cursor-pointer items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', className),
15
- ...props
16
- }));
41
+ const TabsTrigger = /*#__PURE__*/ forwardRef((t0, ref)=>{
42
+ const $ = c(9);
43
+ let className;
44
+ let props;
45
+ if ($[0] !== t0) {
46
+ ({ className, ...props } = t0);
47
+ $[0] = t0;
48
+ $[1] = className;
49
+ $[2] = props;
50
+ } else {
51
+ className = $[1];
52
+ props = $[2];
53
+ }
54
+ let t1;
55
+ if ($[3] !== className) {
56
+ t1 = cn("inline-flex cursor-pointer items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", className);
57
+ $[3] = className;
58
+ $[4] = t1;
59
+ } else t1 = $[4];
60
+ let t2;
61
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
62
+ t2 = /*#__PURE__*/ jsx(Trigger, {
63
+ ref: ref,
64
+ className: t1,
65
+ ...props
66
+ });
67
+ $[5] = props;
68
+ $[6] = ref;
69
+ $[7] = t1;
70
+ $[8] = t2;
71
+ } else t2 = $[8];
72
+ return t2;
73
+ });
17
74
  TabsTrigger.displayName = Trigger.displayName;
18
- const TabsContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Content, {
19
- ref: ref,
20
- className: cn('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', className),
21
- ...props
22
- }));
75
+ const TabsContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
76
+ const $ = c(9);
77
+ let className;
78
+ let props;
79
+ if ($[0] !== t0) {
80
+ ({ className, ...props } = t0);
81
+ $[0] = t0;
82
+ $[1] = className;
83
+ $[2] = props;
84
+ } else {
85
+ className = $[1];
86
+ props = $[2];
87
+ }
88
+ let t1;
89
+ if ($[3] !== className) {
90
+ t1 = cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", className);
91
+ $[3] = className;
92
+ $[4] = t1;
93
+ } else t1 = $[4];
94
+ let t2;
95
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
96
+ t2 = /*#__PURE__*/ jsx(Content, {
97
+ ref: ref,
98
+ className: t1,
99
+ ...props
100
+ });
101
+ $[5] = props;
102
+ $[6] = ref;
103
+ $[7] = t1;
104
+ $[8] = t2;
105
+ } else t2 = $[8];
106
+ return t2;
107
+ });
23
108
  TabsContent.displayName = Content.displayName;
24
109
  export { Tabs, TabsContent, TabsList, TabsTrigger };
@@ -27,13 +27,42 @@ __webpack_require__.d(__webpack_exports__, {
27
27
  Textarea: ()=>Textarea
28
28
  });
29
29
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
30
31
  const external_react_namespaceObject = require("react");
31
32
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
32
- const Textarea = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("textarea", {
33
- className: (0, index_cjs_namespaceObject.cn)('flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', className),
34
- ref: ref,
35
- ...props
36
- }));
33
+ const Textarea = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
34
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
35
+ let className;
36
+ let props;
37
+ if ($[0] !== t0) {
38
+ ({ className, ...props } = t0);
39
+ $[0] = t0;
40
+ $[1] = className;
41
+ $[2] = props;
42
+ } else {
43
+ className = $[1];
44
+ props = $[2];
45
+ }
46
+ let t1;
47
+ if ($[3] !== className) {
48
+ t1 = (0, index_cjs_namespaceObject.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className);
49
+ $[3] = className;
50
+ $[4] = t1;
51
+ } else t1 = $[4];
52
+ let t2;
53
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
54
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("textarea", {
55
+ className: t1,
56
+ ref: ref,
57
+ ...props
58
+ });
59
+ $[5] = props;
60
+ $[6] = ref;
61
+ $[7] = t1;
62
+ $[8] = t2;
63
+ } else t2 = $[8];
64
+ return t2;
65
+ });
37
66
  Textarea.displayName = 'Textarea';
38
67
  exports.Textarea = __webpack_exports__.Textarea;
39
68
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,10 +1,39 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { forwardRef } from "react";
3
4
  import { cn } from "../../lib/index.js";
4
- const Textarea = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("textarea", {
5
- className: cn('flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', className),
6
- ref: ref,
7
- ...props
8
- }));
5
+ const Textarea = /*#__PURE__*/ forwardRef((t0, ref)=>{
6
+ const $ = c(9);
7
+ let className;
8
+ let props;
9
+ if ($[0] !== t0) {
10
+ ({ className, ...props } = t0);
11
+ $[0] = t0;
12
+ $[1] = className;
13
+ $[2] = props;
14
+ } else {
15
+ className = $[1];
16
+ props = $[2];
17
+ }
18
+ let t1;
19
+ if ($[3] !== className) {
20
+ t1 = cn("flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className);
21
+ $[3] = className;
22
+ $[4] = t1;
23
+ } else t1 = $[4];
24
+ let t2;
25
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
26
+ t2 = /*#__PURE__*/ jsx("textarea", {
27
+ className: t1,
28
+ ref: ref,
29
+ ...props
30
+ });
31
+ $[5] = props;
32
+ $[6] = ref;
33
+ $[7] = t1;
34
+ $[8] = t2;
35
+ } else t2 = $[8];
36
+ return t2;
37
+ });
9
38
  Textarea.displayName = 'Textarea';
10
39
  export { Textarea };
@@ -28,6 +28,7 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  ToggleGroupItem: ()=>ToggleGroupItem
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_toggle_group_namespaceObject = require("@radix-ui/react-toggle-group");
32
33
  const external_react_namespaceObject = require("react");
33
34
  const external_toggle_cjs_namespaceObject = require("./toggle.cjs");
@@ -36,30 +37,122 @@ const ToggleGroupContext = /*#__PURE__*/ external_react_namespaceObject.createCo
36
37
  size: 'default',
37
38
  variant: 'default'
38
39
  });
39
- const ToggleGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, variant, size, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toggle_group_namespaceObject.Root, {
40
- ref: ref,
41
- className: (0, index_cjs_namespaceObject.cn)('flex items-center justify-center gap-1', className),
42
- ...props,
43
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ToggleGroupContext.Provider, {
44
- value: {
45
- variant,
46
- size
47
- },
40
+ const ToggleGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
41
+ const $ = (0, compiler_runtime_namespaceObject.c)(19);
42
+ let children;
43
+ let className;
44
+ let props;
45
+ let size;
46
+ let variant;
47
+ if ($[0] !== t0) {
48
+ ({ className, variant, size, children, ...props } = t0);
49
+ $[0] = t0;
50
+ $[1] = children;
51
+ $[2] = className;
52
+ $[3] = props;
53
+ $[4] = size;
54
+ $[5] = variant;
55
+ } else {
56
+ children = $[1];
57
+ className = $[2];
58
+ props = $[3];
59
+ size = $[4];
60
+ variant = $[5];
61
+ }
62
+ let t1;
63
+ if ($[6] !== className) {
64
+ t1 = (0, index_cjs_namespaceObject.cn)("flex items-center justify-center gap-1", className);
65
+ $[6] = className;
66
+ $[7] = t1;
67
+ } else t1 = $[7];
68
+ let t2;
69
+ if ($[8] !== size || $[9] !== variant) {
70
+ t2 = {
71
+ variant,
72
+ size
73
+ };
74
+ $[8] = size;
75
+ $[9] = variant;
76
+ $[10] = t2;
77
+ } else t2 = $[10];
78
+ let t3;
79
+ if ($[11] !== children || $[12] !== t2) {
80
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ToggleGroupContext.Provider, {
81
+ value: t2,
48
82
  children: children
49
- })
50
- }));
83
+ });
84
+ $[11] = children;
85
+ $[12] = t2;
86
+ $[13] = t3;
87
+ } else t3 = $[13];
88
+ let t4;
89
+ if ($[14] !== props || $[15] !== ref || $[16] !== t1 || $[17] !== t3) {
90
+ t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toggle_group_namespaceObject.Root, {
91
+ ref: ref,
92
+ className: t1,
93
+ ...props,
94
+ children: t3
95
+ });
96
+ $[14] = props;
97
+ $[15] = ref;
98
+ $[16] = t1;
99
+ $[17] = t3;
100
+ $[18] = t4;
101
+ } else t4 = $[18];
102
+ return t4;
103
+ });
51
104
  ToggleGroup.displayName = react_toggle_group_namespaceObject.Root.displayName;
52
- const ToggleGroupItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, variant, size, ...props }, ref)=>{
105
+ const ToggleGroupItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
106
+ const $ = (0, compiler_runtime_namespaceObject.c)(17);
107
+ let children;
108
+ let className;
109
+ let props;
110
+ let size;
111
+ let variant;
112
+ if ($[0] !== t0) {
113
+ ({ className, children, variant, size, ...props } = t0);
114
+ $[0] = t0;
115
+ $[1] = children;
116
+ $[2] = className;
117
+ $[3] = props;
118
+ $[4] = size;
119
+ $[5] = variant;
120
+ } else {
121
+ children = $[1];
122
+ className = $[2];
123
+ props = $[3];
124
+ size = $[4];
125
+ variant = $[5];
126
+ }
53
127
  const context = external_react_namespaceObject.useContext(ToggleGroupContext);
54
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toggle_group_namespaceObject.Item, {
55
- ref: ref,
56
- className: (0, index_cjs_namespaceObject.cn)((0, external_toggle_cjs_namespaceObject.toggleVariants)({
128
+ let t1;
129
+ if ($[6] !== className || $[7] !== context.size || $[8] !== context.variant || $[9] !== size || $[10] !== variant) {
130
+ t1 = (0, index_cjs_namespaceObject.cn)((0, external_toggle_cjs_namespaceObject.toggleVariants)({
57
131
  variant: context.variant || variant,
58
132
  size: context.size || size
59
- }), className),
60
- ...props,
61
- children: children
62
- });
133
+ }), className);
134
+ $[6] = className;
135
+ $[7] = context.size;
136
+ $[8] = context.variant;
137
+ $[9] = size;
138
+ $[10] = variant;
139
+ $[11] = t1;
140
+ } else t1 = $[11];
141
+ let t2;
142
+ if ($[12] !== children || $[13] !== props || $[14] !== ref || $[15] !== t1) {
143
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toggle_group_namespaceObject.Item, {
144
+ ref: ref,
145
+ className: t1,
146
+ ...props,
147
+ children: children
148
+ });
149
+ $[12] = children;
150
+ $[13] = props;
151
+ $[14] = ref;
152
+ $[15] = t1;
153
+ $[16] = t2;
154
+ } else t2 = $[16];
155
+ return t2;
63
156
  });
64
157
  ToggleGroupItem.displayName = react_toggle_group_namespaceObject.Item.displayName;
65
158
  exports.ToggleGroup = __webpack_exports__.ToggleGroup;
@@ -1,4 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { Item, Root } from "@radix-ui/react-toggle-group";
3
4
  import { createContext, forwardRef, useContext } from "react";
4
5
  import { toggleVariants } from "./toggle.js";
@@ -7,30 +8,122 @@ const ToggleGroupContext = /*#__PURE__*/ createContext({
7
8
  size: 'default',
8
9
  variant: 'default'
9
10
  });
10
- const ToggleGroup = /*#__PURE__*/ forwardRef(({ className, variant, size, children, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
11
- ref: ref,
12
- className: cn('flex items-center justify-center gap-1', className),
13
- ...props,
14
- children: /*#__PURE__*/ jsx(ToggleGroupContext.Provider, {
15
- value: {
16
- variant,
17
- size
18
- },
11
+ const ToggleGroup = /*#__PURE__*/ forwardRef((t0, ref)=>{
12
+ const $ = c(19);
13
+ let children;
14
+ let className;
15
+ let props;
16
+ let size;
17
+ let variant;
18
+ if ($[0] !== t0) {
19
+ ({ className, variant, size, children, ...props } = t0);
20
+ $[0] = t0;
21
+ $[1] = children;
22
+ $[2] = className;
23
+ $[3] = props;
24
+ $[4] = size;
25
+ $[5] = variant;
26
+ } else {
27
+ children = $[1];
28
+ className = $[2];
29
+ props = $[3];
30
+ size = $[4];
31
+ variant = $[5];
32
+ }
33
+ let t1;
34
+ if ($[6] !== className) {
35
+ t1 = cn("flex items-center justify-center gap-1", className);
36
+ $[6] = className;
37
+ $[7] = t1;
38
+ } else t1 = $[7];
39
+ let t2;
40
+ if ($[8] !== size || $[9] !== variant) {
41
+ t2 = {
42
+ variant,
43
+ size
44
+ };
45
+ $[8] = size;
46
+ $[9] = variant;
47
+ $[10] = t2;
48
+ } else t2 = $[10];
49
+ let t3;
50
+ if ($[11] !== children || $[12] !== t2) {
51
+ t3 = /*#__PURE__*/ jsx(ToggleGroupContext.Provider, {
52
+ value: t2,
19
53
  children: children
20
- })
21
- }));
54
+ });
55
+ $[11] = children;
56
+ $[12] = t2;
57
+ $[13] = t3;
58
+ } else t3 = $[13];
59
+ let t4;
60
+ if ($[14] !== props || $[15] !== ref || $[16] !== t1 || $[17] !== t3) {
61
+ t4 = /*#__PURE__*/ jsx(Root, {
62
+ ref: ref,
63
+ className: t1,
64
+ ...props,
65
+ children: t3
66
+ });
67
+ $[14] = props;
68
+ $[15] = ref;
69
+ $[16] = t1;
70
+ $[17] = t3;
71
+ $[18] = t4;
72
+ } else t4 = $[18];
73
+ return t4;
74
+ });
22
75
  ToggleGroup.displayName = Root.displayName;
23
- const ToggleGroupItem = /*#__PURE__*/ forwardRef(({ className, children, variant, size, ...props }, ref)=>{
76
+ const ToggleGroupItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
77
+ const $ = c(17);
78
+ let children;
79
+ let className;
80
+ let props;
81
+ let size;
82
+ let variant;
83
+ if ($[0] !== t0) {
84
+ ({ className, children, variant, size, ...props } = t0);
85
+ $[0] = t0;
86
+ $[1] = children;
87
+ $[2] = className;
88
+ $[3] = props;
89
+ $[4] = size;
90
+ $[5] = variant;
91
+ } else {
92
+ children = $[1];
93
+ className = $[2];
94
+ props = $[3];
95
+ size = $[4];
96
+ variant = $[5];
97
+ }
24
98
  const context = useContext(ToggleGroupContext);
25
- return /*#__PURE__*/ jsx(Item, {
26
- ref: ref,
27
- className: cn(toggleVariants({
99
+ let t1;
100
+ if ($[6] !== className || $[7] !== context.size || $[8] !== context.variant || $[9] !== size || $[10] !== variant) {
101
+ t1 = cn(toggleVariants({
28
102
  variant: context.variant || variant,
29
103
  size: context.size || size
30
- }), className),
31
- ...props,
32
- children: children
33
- });
104
+ }), className);
105
+ $[6] = className;
106
+ $[7] = context.size;
107
+ $[8] = context.variant;
108
+ $[9] = size;
109
+ $[10] = variant;
110
+ $[11] = t1;
111
+ } else t1 = $[11];
112
+ let t2;
113
+ if ($[12] !== children || $[13] !== props || $[14] !== ref || $[15] !== t1) {
114
+ t2 = /*#__PURE__*/ jsx(Item, {
115
+ ref: ref,
116
+ className: t1,
117
+ ...props,
118
+ children: children
119
+ });
120
+ $[12] = children;
121
+ $[13] = props;
122
+ $[14] = ref;
123
+ $[15] = t1;
124
+ $[16] = t2;
125
+ } else t2 = $[16];
126
+ return t2;
34
127
  });
35
128
  ToggleGroupItem.displayName = Item.displayName;
36
129
  export { ToggleGroup, ToggleGroupItem };