@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
@@ -28,27 +28,89 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  RadioGroup: ()=>RadioGroup
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_radio_group_namespaceObject = require("@radix-ui/react-radio-group");
32
33
  const external_lucide_react_namespaceObject = require("lucide-react");
33
34
  const external_react_namespaceObject = require("react");
34
35
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
35
- const RadioGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Root, {
36
- className: (0, index_cjs_namespaceObject.cn)('grid gap-2', className),
37
- ...props,
38
- ref: ref
39
- }));
36
+ const RadioGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
37
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
38
+ let className;
39
+ let props;
40
+ if ($[0] !== t0) {
41
+ ({ className, ...props } = t0);
42
+ $[0] = t0;
43
+ $[1] = className;
44
+ $[2] = props;
45
+ } else {
46
+ className = $[1];
47
+ props = $[2];
48
+ }
49
+ let t1;
50
+ if ($[3] !== className) {
51
+ t1 = (0, index_cjs_namespaceObject.cn)("grid gap-2", className);
52
+ $[3] = className;
53
+ $[4] = t1;
54
+ } else t1 = $[4];
55
+ let t2;
56
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
57
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Root, {
58
+ className: t1,
59
+ ...props,
60
+ ref: ref
61
+ });
62
+ $[5] = props;
63
+ $[6] = ref;
64
+ $[7] = t1;
65
+ $[8] = t2;
66
+ } else t2 = $[8];
67
+ return t2;
68
+ });
40
69
  RadioGroup.displayName = react_radio_group_namespaceObject.Root.displayName;
41
- const RadioGroupItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Item, {
42
- ref: ref,
43
- className: (0, index_cjs_namespaceObject.cn)('aspect-square h-4 w-4 cursor-pointer rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className),
44
- ...props,
45
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Indicator, {
70
+ const RadioGroupItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
71
+ const $ = (0, compiler_runtime_namespaceObject.c)(10);
72
+ let className;
73
+ let props;
74
+ if ($[0] !== t0) {
75
+ ({ className, ...props } = t0);
76
+ $[0] = t0;
77
+ $[1] = className;
78
+ $[2] = props;
79
+ } else {
80
+ className = $[1];
81
+ props = $[2];
82
+ }
83
+ let t1;
84
+ if ($[3] !== className) {
85
+ t1 = (0, index_cjs_namespaceObject.cn)("aspect-square h-4 w-4 cursor-pointer rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className);
86
+ $[3] = className;
87
+ $[4] = t1;
88
+ } else t1 = $[4];
89
+ let t2;
90
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
91
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Indicator, {
46
92
  className: "flex items-center justify-center",
47
93
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Circle, {
48
94
  className: "h-2.5 w-2.5 fill-current text-current"
49
95
  })
50
- })
51
- }));
96
+ });
97
+ $[5] = t2;
98
+ } else t2 = $[5];
99
+ let t3;
100
+ if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
101
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Item, {
102
+ ref: ref,
103
+ className: t1,
104
+ ...props,
105
+ children: t2
106
+ });
107
+ $[6] = props;
108
+ $[7] = ref;
109
+ $[8] = t1;
110
+ $[9] = t3;
111
+ } else t3 = $[9];
112
+ return t3;
113
+ });
52
114
  RadioGroupItem.displayName = react_radio_group_namespaceObject.Item.displayName;
53
115
  exports.RadioGroup = __webpack_exports__.RadioGroup;
54
116
  exports.RadioGroupItem = __webpack_exports__.RadioGroupItem;
@@ -1,24 +1,86 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { Indicator, Item, Root } from "@radix-ui/react-radio-group";
3
4
  import { Circle } from "lucide-react";
4
5
  import { forwardRef } from "react";
5
6
  import { cn } from "../../lib/index.js";
6
- const RadioGroup = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
7
- className: cn('grid gap-2', className),
8
- ...props,
9
- ref: ref
10
- }));
7
+ const RadioGroup = /*#__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("grid gap-2", 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(Root, {
29
+ className: t1,
30
+ ...props,
31
+ ref: ref
32
+ });
33
+ $[5] = props;
34
+ $[6] = ref;
35
+ $[7] = t1;
36
+ $[8] = t2;
37
+ } else t2 = $[8];
38
+ return t2;
39
+ });
11
40
  RadioGroup.displayName = Root.displayName;
12
- const RadioGroupItem = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Item, {
13
- ref: ref,
14
- className: cn('aspect-square h-4 w-4 cursor-pointer rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className),
15
- ...props,
16
- children: /*#__PURE__*/ jsx(Indicator, {
41
+ const RadioGroupItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
42
+ const $ = c(10);
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("aspect-square h-4 w-4 cursor-pointer rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className);
57
+ $[3] = className;
58
+ $[4] = t1;
59
+ } else t1 = $[4];
60
+ let t2;
61
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
62
+ t2 = /*#__PURE__*/ jsx(Indicator, {
17
63
  className: "flex items-center justify-center",
18
64
  children: /*#__PURE__*/ jsx(Circle, {
19
65
  className: "h-2.5 w-2.5 fill-current text-current"
20
66
  })
21
- })
22
- }));
67
+ });
68
+ $[5] = t2;
69
+ } else t2 = $[5];
70
+ let t3;
71
+ if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
72
+ t3 = /*#__PURE__*/ jsx(Item, {
73
+ ref: ref,
74
+ className: t1,
75
+ ...props,
76
+ children: t2
77
+ });
78
+ $[6] = props;
79
+ $[7] = ref;
80
+ $[8] = t1;
81
+ $[9] = t3;
82
+ } else t3 = $[9];
83
+ return t3;
84
+ });
23
85
  RadioGroupItem.displayName = Item.displayName;
24
86
  export { RadioGroup, RadioGroupItem };
@@ -29,24 +29,89 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  ResizablePanelGroup: ()=>ResizablePanelGroup
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_resizable_panels_namespaceObject = require("react-resizable-panels");
34
35
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
35
- const ResizablePanelGroup = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_react_resizable_panels_namespaceObject.PanelGroup, {
36
- className: (0, index_cjs_namespaceObject.cn)('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className),
37
- ...props
38
- });
36
+ const ResizablePanelGroup = (t0)=>{
37
+ const $ = (0, compiler_runtime_namespaceObject.c)(8);
38
+ let className;
39
+ let props;
40
+ if ($[0] !== t0) {
41
+ ({ className, ...props } = t0);
42
+ $[0] = t0;
43
+ $[1] = className;
44
+ $[2] = props;
45
+ } else {
46
+ className = $[1];
47
+ props = $[2];
48
+ }
49
+ let t1;
50
+ if ($[3] !== className) {
51
+ t1 = (0, index_cjs_namespaceObject.cn)("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className);
52
+ $[3] = className;
53
+ $[4] = t1;
54
+ } else t1 = $[4];
55
+ let t2;
56
+ if ($[5] !== props || $[6] !== t1) {
57
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_react_resizable_panels_namespaceObject.PanelGroup, {
58
+ className: t1,
59
+ ...props
60
+ });
61
+ $[5] = props;
62
+ $[6] = t1;
63
+ $[7] = t2;
64
+ } else t2 = $[7];
65
+ return t2;
66
+ };
39
67
  const ResizablePanel = external_react_resizable_panels_namespaceObject.Panel;
40
- const ResizableHandle = ({ withHandle, className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_react_resizable_panels_namespaceObject.PanelResizeHandle, {
41
- className: (0, index_cjs_namespaceObject.cn)('group relative flex w-px items-center justify-center bg-border transition-colors data-[resize-handle-state=hover]:bg-primary data-[resize-handle-state=drag]:bg-primary after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90', className),
42
- ...props,
43
- children: withHandle && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
68
+ const ResizableHandle = (t0)=>{
69
+ const $ = (0, compiler_runtime_namespaceObject.c)(12);
70
+ let className;
71
+ let props;
72
+ let withHandle;
73
+ if ($[0] !== t0) {
74
+ ({ withHandle, className, ...props } = t0);
75
+ $[0] = t0;
76
+ $[1] = className;
77
+ $[2] = props;
78
+ $[3] = withHandle;
79
+ } else {
80
+ className = $[1];
81
+ props = $[2];
82
+ withHandle = $[3];
83
+ }
84
+ let t1;
85
+ if ($[4] !== className) {
86
+ t1 = (0, index_cjs_namespaceObject.cn)("group relative flex w-px items-center justify-center bg-border transition-colors data-[resize-handle-state=hover]:bg-primary data-[resize-handle-state=drag]:bg-primary after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90", className);
87
+ $[4] = className;
88
+ $[5] = t1;
89
+ } else t1 = $[5];
90
+ let t2;
91
+ if ($[6] !== withHandle) {
92
+ t2 = withHandle && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
44
93
  className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border transition-colors group-data-[resize-handle-state=hover]:bg-primary group-data-[resize-handle-state=drag]:bg-primary",
45
94
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.GripVertical, {
46
95
  className: "h-2.5 w-2.5"
47
96
  })
48
- })
49
- });
97
+ });
98
+ $[6] = withHandle;
99
+ $[7] = t2;
100
+ } else t2 = $[7];
101
+ let t3;
102
+ if ($[8] !== props || $[9] !== t1 || $[10] !== t2) {
103
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_react_resizable_panels_namespaceObject.PanelResizeHandle, {
104
+ className: t1,
105
+ ...props,
106
+ children: t2
107
+ });
108
+ $[8] = props;
109
+ $[9] = t1;
110
+ $[10] = t2;
111
+ $[11] = t3;
112
+ } else t3 = $[11];
113
+ return t3;
114
+ };
50
115
  exports.ResizableHandle = __webpack_exports__.ResizableHandle;
51
116
  exports.ResizablePanel = __webpack_exports__.ResizablePanel;
52
117
  exports.ResizablePanelGroup = __webpack_exports__.ResizablePanelGroup;
@@ -1,20 +1,85 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { GripVertical } from "lucide-react";
3
4
  import { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels";
4
5
  import { cn } from "../../lib/index.js";
5
- const ResizablePanelGroup = ({ className, ...props })=>/*#__PURE__*/ jsx(PanelGroup, {
6
- className: cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className),
7
- ...props
8
- });
6
+ const ResizablePanelGroup = (t0)=>{
7
+ const $ = c(8);
8
+ let className;
9
+ let props;
10
+ if ($[0] !== t0) {
11
+ ({ className, ...props } = t0);
12
+ $[0] = t0;
13
+ $[1] = className;
14
+ $[2] = props;
15
+ } else {
16
+ className = $[1];
17
+ props = $[2];
18
+ }
19
+ let t1;
20
+ if ($[3] !== className) {
21
+ t1 = cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className);
22
+ $[3] = className;
23
+ $[4] = t1;
24
+ } else t1 = $[4];
25
+ let t2;
26
+ if ($[5] !== props || $[6] !== t1) {
27
+ t2 = /*#__PURE__*/ jsx(PanelGroup, {
28
+ className: t1,
29
+ ...props
30
+ });
31
+ $[5] = props;
32
+ $[6] = t1;
33
+ $[7] = t2;
34
+ } else t2 = $[7];
35
+ return t2;
36
+ };
9
37
  const ResizablePanel = Panel;
10
- const ResizableHandle = ({ withHandle, className, ...props })=>/*#__PURE__*/ jsx(PanelResizeHandle, {
11
- className: cn('group relative flex w-px items-center justify-center bg-border transition-colors data-[resize-handle-state=hover]:bg-primary data-[resize-handle-state=drag]:bg-primary after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90', className),
12
- ...props,
13
- children: withHandle && /*#__PURE__*/ jsx("div", {
38
+ const ResizableHandle = (t0)=>{
39
+ const $ = c(12);
40
+ let className;
41
+ let props;
42
+ let withHandle;
43
+ if ($[0] !== t0) {
44
+ ({ withHandle, className, ...props } = t0);
45
+ $[0] = t0;
46
+ $[1] = className;
47
+ $[2] = props;
48
+ $[3] = withHandle;
49
+ } else {
50
+ className = $[1];
51
+ props = $[2];
52
+ withHandle = $[3];
53
+ }
54
+ let t1;
55
+ if ($[4] !== className) {
56
+ t1 = cn("group relative flex w-px items-center justify-center bg-border transition-colors data-[resize-handle-state=hover]:bg-primary data-[resize-handle-state=drag]:bg-primary after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90", className);
57
+ $[4] = className;
58
+ $[5] = t1;
59
+ } else t1 = $[5];
60
+ let t2;
61
+ if ($[6] !== withHandle) {
62
+ t2 = withHandle && /*#__PURE__*/ jsx("div", {
14
63
  className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border transition-colors group-data-[resize-handle-state=hover]:bg-primary group-data-[resize-handle-state=drag]:bg-primary",
15
64
  children: /*#__PURE__*/ jsx(GripVertical, {
16
65
  className: "h-2.5 w-2.5"
17
66
  })
18
- })
19
- });
67
+ });
68
+ $[6] = withHandle;
69
+ $[7] = t2;
70
+ } else t2 = $[7];
71
+ let t3;
72
+ if ($[8] !== props || $[9] !== t1 || $[10] !== t2) {
73
+ t3 = /*#__PURE__*/ jsx(PanelResizeHandle, {
74
+ className: t1,
75
+ ...props,
76
+ children: t2
77
+ });
78
+ $[8] = props;
79
+ $[9] = t1;
80
+ $[10] = t2;
81
+ $[11] = t3;
82
+ } else t3 = $[11];
83
+ return t3;
84
+ };
20
85
  export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -29,32 +29,124 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  ScrollArea: ()=>ScrollArea
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_scroll_area_namespaceObject = require("@radix-ui/react-scroll-area");
33
34
  const external_react_namespaceObject = require("react");
34
35
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
35
- const ScrollArea = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_scroll_area_namespaceObject.Root, {
36
- ref: ref,
37
- className: (0, index_cjs_namespaceObject.cn)('relative overflow-hidden', className),
38
- ...props,
39
- children: [
40
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_scroll_area_namespaceObject.Viewport, {
41
- className: "h-full w-full rounded-[inherit]",
42
- children: children
43
- }),
44
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ScrollBar, {}),
45
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_scroll_area_namespaceObject.Corner, {})
46
- ]
47
- }));
36
+ const ScrollArea = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
37
+ const $ = (0, compiler_runtime_namespaceObject.c)(15);
38
+ let children;
39
+ let className;
40
+ let props;
41
+ if ($[0] !== t0) {
42
+ ({ className, children, ...props } = t0);
43
+ $[0] = t0;
44
+ $[1] = children;
45
+ $[2] = className;
46
+ $[3] = props;
47
+ } else {
48
+ children = $[1];
49
+ className = $[2];
50
+ props = $[3];
51
+ }
52
+ let t1;
53
+ if ($[4] !== className) {
54
+ t1 = (0, index_cjs_namespaceObject.cn)("relative overflow-hidden", className);
55
+ $[4] = className;
56
+ $[5] = t1;
57
+ } else t1 = $[5];
58
+ let t2;
59
+ if ($[6] !== children) {
60
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_scroll_area_namespaceObject.Viewport, {
61
+ className: "h-full w-full rounded-[inherit]",
62
+ children: children
63
+ });
64
+ $[6] = children;
65
+ $[7] = t2;
66
+ } else t2 = $[7];
67
+ let t3;
68
+ let t4;
69
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
70
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ScrollBar, {});
71
+ t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_scroll_area_namespaceObject.Corner, {});
72
+ $[8] = t3;
73
+ $[9] = t4;
74
+ } else {
75
+ t3 = $[8];
76
+ t4 = $[9];
77
+ }
78
+ let t5;
79
+ if ($[10] !== props || $[11] !== ref || $[12] !== t1 || $[13] !== t2) {
80
+ t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_scroll_area_namespaceObject.Root, {
81
+ ref: ref,
82
+ className: t1,
83
+ ...props,
84
+ children: [
85
+ t2,
86
+ t3,
87
+ t4
88
+ ]
89
+ });
90
+ $[10] = props;
91
+ $[11] = ref;
92
+ $[12] = t1;
93
+ $[13] = t2;
94
+ $[14] = t5;
95
+ } else t5 = $[14];
96
+ return t5;
97
+ });
48
98
  ScrollArea.displayName = react_scroll_area_namespaceObject.Root.displayName;
49
- const ScrollBar = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, orientation = 'vertical', ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_scroll_area_namespaceObject.ScrollAreaScrollbar, {
50
- ref: ref,
51
- orientation: orientation,
52
- className: (0, index_cjs_namespaceObject.cn)('flex touch-none select-none transition-colors', 'vertical' === orientation && 'h-full w-2.5 border-l border-l-transparent p-[1px]', 'horizontal' === orientation && 'h-2.5 flex-col border-t border-t-transparent p-[1px]', className),
53
- ...props,
54
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_scroll_area_namespaceObject.ScrollAreaThumb, {
99
+ const ScrollBar = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
100
+ const $ = (0, compiler_runtime_namespaceObject.c)(14);
101
+ let className;
102
+ let props;
103
+ let t1;
104
+ if ($[0] !== t0) {
105
+ ({ className, orientation: t1, ...props } = t0);
106
+ $[0] = t0;
107
+ $[1] = className;
108
+ $[2] = props;
109
+ $[3] = t1;
110
+ } else {
111
+ className = $[1];
112
+ props = $[2];
113
+ t1 = $[3];
114
+ }
115
+ const orientation = void 0 === t1 ? "vertical" : t1;
116
+ const t2 = "vertical" === orientation && "h-full w-2.5 border-l border-l-transparent p-[1px]";
117
+ const t3 = "horizontal" === orientation && "h-2.5 flex-col border-t border-t-transparent p-[1px]";
118
+ let t4;
119
+ if ($[4] !== className || $[5] !== t2 || $[6] !== t3) {
120
+ t4 = (0, index_cjs_namespaceObject.cn)("flex touch-none select-none transition-colors", t2, t3, className);
121
+ $[4] = className;
122
+ $[5] = t2;
123
+ $[6] = t3;
124
+ $[7] = t4;
125
+ } else t4 = $[7];
126
+ let t5;
127
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
128
+ t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_scroll_area_namespaceObject.ScrollAreaThumb, {
55
129
  className: "relative flex-1 rounded-full bg-border"
56
- })
57
- }));
130
+ });
131
+ $[8] = t5;
132
+ } else t5 = $[8];
133
+ let t6;
134
+ if ($[9] !== orientation || $[10] !== props || $[11] !== ref || $[12] !== t4) {
135
+ t6 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_scroll_area_namespaceObject.ScrollAreaScrollbar, {
136
+ ref: ref,
137
+ orientation: orientation,
138
+ className: t4,
139
+ ...props,
140
+ children: t5
141
+ });
142
+ $[9] = orientation;
143
+ $[10] = props;
144
+ $[11] = ref;
145
+ $[12] = t4;
146
+ $[13] = t6;
147
+ } else t6 = $[13];
148
+ return t6;
149
+ });
58
150
  ScrollBar.displayName = react_scroll_area_namespaceObject.ScrollAreaScrollbar.displayName;
59
151
  exports.ScrollArea = __webpack_exports__.ScrollArea;
60
152
  exports.ScrollBar = __webpack_exports__.ScrollBar;