@uipath/apollo-wind 2.36.0 → 2.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/custom/flow-properties-simple.cjs +1 -0
- package/dist/components/custom/flow-properties-simple.js +1 -0
- package/dist/components/custom/panel-delegate.cjs +1 -1
- package/dist/components/custom/panel-delegate.js +1 -1
- package/dist/components/custom/panel-flow.cjs +2 -1
- package/dist/components/custom/panel-flow.js +2 -1
- package/dist/components/forms/field-renderer.cjs +1 -0
- package/dist/components/forms/field-renderer.js +1 -0
- package/dist/components/forms/form-designer.cjs +25 -9
- package/dist/components/forms/form-designer.js +25 -9
- package/dist/components/forms/form-examples.cjs +1 -1
- package/dist/components/forms/form-examples.js +1 -1
- package/dist/components/forms/form-state-viewer.cjs +4 -7
- package/dist/components/forms/form-state-viewer.js +4 -7
- package/dist/components/forms/metadata-form.cjs +1 -1
- package/dist/components/forms/metadata-form.js +1 -1
- package/dist/components/ui/accordion.cjs +9 -1
- package/dist/components/ui/accordion.d.ts +1 -1
- package/dist/components/ui/accordion.js +9 -1
- package/dist/components/ui/alert-dialog.cjs +25 -4
- package/dist/components/ui/alert-dialog.d.ts +9 -3
- package/dist/components/ui/alert-dialog.js +25 -4
- package/dist/components/ui/alert.cjs +3 -0
- package/dist/components/ui/alert.js +3 -0
- package/dist/components/ui/aspect-ratio.cjs +8 -1
- package/dist/components/ui/aspect-ratio.d.ts +2 -1
- package/dist/components/ui/aspect-ratio.js +8 -1
- package/dist/components/ui/avatar.cjs +25 -4
- package/dist/components/ui/avatar.d.ts +8 -2
- package/dist/components/ui/avatar.js +21 -3
- package/dist/components/ui/badge.cjs +1 -0
- package/dist/components/ui/badge.js +1 -0
- package/dist/components/ui/breadcrumb.cjs +7 -0
- package/dist/components/ui/breadcrumb.js +7 -0
- package/dist/components/ui/button-group.cjs +3 -0
- package/dist/components/ui/button-group.js +3 -0
- package/dist/components/ui/button.cjs +1 -0
- package/dist/components/ui/button.js +1 -0
- package/dist/components/ui/card.cjs +6 -0
- package/dist/components/ui/card.js +6 -0
- package/dist/components/ui/checkbox.cjs +1 -0
- package/dist/components/ui/checkbox.js +1 -0
- package/dist/components/ui/collapsible.cjs +20 -3
- package/dist/components/ui/collapsible.d.ts +4 -3
- package/dist/components/ui/collapsible.js +20 -3
- package/dist/components/ui/combobox.cjs +5 -3
- package/dist/components/ui/combobox.d.ts +2 -1
- package/dist/components/ui/combobox.js +6 -4
- package/dist/components/ui/command.cjs +9 -0
- package/dist/components/ui/command.js +9 -0
- package/dist/components/ui/context-menu.cjs +42 -6
- package/dist/components/ui/context-menu.d.ts +15 -6
- package/dist/components/ui/context-menu.js +42 -6
- package/dist/components/ui/data-table.cjs +2 -0
- package/dist/components/ui/data-table.js +2 -0
- package/dist/components/ui/date-picker.cjs +11 -6
- package/dist/components/ui/date-picker.d.ts +3 -3
- package/dist/components/ui/date-picker.js +10 -5
- package/dist/components/ui/datetime-picker.cjs +5 -3
- package/dist/components/ui/datetime-picker.d.ts +2 -1
- package/dist/components/ui/datetime-picker.js +6 -4
- package/dist/components/ui/dialog.cjs +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/drawer.cjs +29 -5
- package/dist/components/ui/drawer.d.ts +11 -4
- package/dist/components/ui/drawer.js +29 -5
- package/dist/components/ui/dropdown-menu.cjs +42 -6
- package/dist/components/ui/dropdown-menu.d.ts +15 -6
- package/dist/components/ui/dropdown-menu.js +42 -6
- package/dist/components/ui/editable-cell.cjs +2 -0
- package/dist/components/ui/editable-cell.js +2 -0
- package/dist/components/ui/empty-state.cjs +1 -0
- package/dist/components/ui/empty-state.js +1 -0
- package/dist/components/ui/file-upload.cjs +5 -3
- package/dist/components/ui/file-upload.d.ts +1 -1
- package/dist/components/ui/file-upload.js +6 -4
- package/dist/components/ui/hover-card.cjs +12 -2
- package/dist/components/ui/hover-card.d.ts +5 -2
- package/dist/components/ui/hover-card.js +12 -2
- package/dist/components/ui/index.cjs +189 -139
- package/dist/components/ui/index.d.ts +5 -0
- package/dist/components/ui/index.js +5 -0
- package/dist/components/ui/input.cjs +1 -0
- package/dist/components/ui/input.js +1 -0
- package/dist/components/ui/label.cjs +1 -0
- package/dist/components/ui/label.js +1 -0
- package/dist/components/ui/layout/column.cjs +1 -0
- package/dist/components/ui/layout/column.js +1 -0
- package/dist/components/ui/layout/grid.cjs +1 -0
- package/dist/components/ui/layout/grid.js +1 -0
- package/dist/components/ui/layout/row.cjs +1 -0
- package/dist/components/ui/layout/row.js +1 -0
- package/dist/components/ui/multi-select.cjs +1 -0
- package/dist/components/ui/multi-select.js +1 -0
- package/dist/components/ui/pagination.cjs +7 -0
- package/dist/components/ui/pagination.js +7 -0
- package/dist/components/ui/popover.cjs +18 -3
- package/dist/components/ui/popover.d.ts +6 -3
- package/dist/components/ui/popover.js +18 -3
- package/dist/components/ui/progress.cjs +1 -0
- package/dist/components/ui/progress.js +1 -0
- package/dist/components/ui/prompt-editor/components/EditorToolbar.cjs +5 -2
- package/dist/components/ui/prompt-editor/components/EditorToolbar.js +5 -2
- package/dist/components/ui/radio-group.cjs +2 -0
- package/dist/components/ui/radio-group.js +2 -0
- package/dist/components/ui/resizable.cjs +2 -0
- package/dist/components/ui/resizable.js +2 -0
- package/dist/components/ui/scroll-area.cjs +2 -0
- package/dist/components/ui/scroll-area.js +2 -0
- package/dist/components/ui/search.cjs +2 -0
- package/dist/components/ui/search.js +2 -0
- package/dist/components/ui/select.cjs +24 -3
- package/dist/components/ui/select.d.ts +6 -3
- package/dist/components/ui/select.js +24 -3
- package/dist/components/ui/separator.cjs +1 -0
- package/dist/components/ui/separator.js +1 -0
- package/dist/components/ui/sheet.cjs +29 -5
- package/dist/components/ui/sheet.d.ts +10 -4
- package/dist/components/ui/sheet.js +29 -5
- package/dist/components/ui/skeleton.cjs +1 -0
- package/dist/components/ui/skeleton.js +1 -0
- package/dist/components/ui/slider.cjs +1 -0
- package/dist/components/ui/slider.js +1 -0
- package/dist/components/ui/sonner.cjs +1 -0
- package/dist/components/ui/sonner.js +1 -0
- package/dist/components/ui/spinner.cjs +1 -0
- package/dist/components/ui/spinner.js +1 -0
- package/dist/components/ui/stats-card.cjs +26 -12
- package/dist/components/ui/stats-card.d.ts +6 -3
- package/dist/components/ui/stats-card.js +22 -11
- package/dist/components/ui/stepper.cjs +1 -0
- package/dist/components/ui/stepper.js +1 -0
- package/dist/components/ui/switch.cjs +1 -0
- package/dist/components/ui/switch.js +1 -0
- package/dist/components/ui/table.cjs +9 -0
- package/dist/components/ui/table.js +9 -0
- package/dist/components/ui/tabs.cjs +10 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +10 -1
- package/dist/components/ui/textarea.cjs +1 -0
- package/dist/components/ui/textarea.js +1 -0
- package/dist/components/ui/toggle-group.cjs +2 -0
- package/dist/components/ui/toggle-group.js +2 -0
- package/dist/components/ui/toggle.cjs +1 -0
- package/dist/components/ui/toggle.js +1 -0
- package/dist/components/ui/tooltip.cjs +22 -4
- package/dist/components/ui/tooltip.d.ts +13 -4
- package/dist/components/ui/tooltip.js +22 -4
- package/dist/components/ui/tree-view.cjs +17 -9
- package/dist/components/ui/tree-view.d.ts +2 -1
- package/dist/components/ui/tree-view.js +18 -10
- package/dist/foundation/Future/index.cjs +107 -0
- package/dist/foundation/Future/index.d.ts +8 -0
- package/dist/foundation/Future/index.js +8 -0
- package/dist/foundation/index.cjs +58 -0
- package/dist/foundation/index.d.ts +1 -0
- package/dist/foundation/index.js +1 -0
- package/dist/index.cjs +52 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -1
- package/dist/styles.css +124 -123
- package/package.json +2 -5
- package/dist/components/UiPath/index.cjs +0 -5
- package/dist/components/UiPath/index.d.ts +0 -1
- package/dist/components/UiPath/index.js +0 -0
|
@@ -10,6 +10,7 @@ export * from "./button.js";
|
|
|
10
10
|
export * from "./button-group.js";
|
|
11
11
|
export * from "./calendar.js";
|
|
12
12
|
export * from "./card.js";
|
|
13
|
+
export * from "./chart.js";
|
|
13
14
|
export * from "./checkbox.js";
|
|
14
15
|
export * from "./collapsible.js";
|
|
15
16
|
export * from "./combobox.js";
|
|
@@ -19,6 +20,7 @@ export * from "./data-table.js";
|
|
|
19
20
|
export * from "./date-picker.js";
|
|
20
21
|
export * from "./datetime-picker.js";
|
|
21
22
|
export * from "./dialog.js";
|
|
23
|
+
export * from "./drawer.js";
|
|
22
24
|
export * from "./dropdown-menu.js";
|
|
23
25
|
export * from "./editable-cell.js";
|
|
24
26
|
export * from "./empty-state.js";
|
|
@@ -28,9 +30,11 @@ export * from "./input.js";
|
|
|
28
30
|
export * from "./input-group.js";
|
|
29
31
|
export * from "./label.js";
|
|
30
32
|
export * from "./layout/index.js";
|
|
33
|
+
export * from "./lockable-value-field/index.js";
|
|
31
34
|
export * from "./multi-select.js";
|
|
32
35
|
export * from "./pagination.js";
|
|
33
36
|
export * from "./popover.js";
|
|
37
|
+
export * from "./portal-container.js";
|
|
34
38
|
export * from "./progress.js";
|
|
35
39
|
export * from "./prompt-editor/index.js";
|
|
36
40
|
export * from "./radio-group.js";
|
|
@@ -53,4 +57,5 @@ export * from "./textarea.js";
|
|
|
53
57
|
export * from "./toggle.js";
|
|
54
58
|
export * from "./toggle-group.js";
|
|
55
59
|
export * from "./tooltip.js";
|
|
60
|
+
export * from "./variable-picker/index.js";
|
|
56
61
|
export { tree_view as TreeView };
|
|
@@ -31,6 +31,7 @@ const external_react_namespaceObject = require("react");
|
|
|
31
31
|
const utils_cjs_namespaceObject = require("../../lib/utils.cjs");
|
|
32
32
|
const Input = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, type, variant = 'default', size = 'default', ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("input", {
|
|
33
33
|
type: type,
|
|
34
|
+
"data-slot": "input",
|
|
34
35
|
className: (0, utils_cjs_namespaceObject.cn)('flex w-full transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50', 'default' === size && 'h-9 rounded-md px-3 py-1 text-base placeholder:text-muted-foreground md:text-sm', 'xs' === size && 'h-6 rounded px-2 text-xs placeholder:text-muted-foreground', 'default' === variant && 'border border-input bg-transparent', 'ghost' === variant && 'border-0 bg-surface-overlay', 'default' === variant && 'default' === size && 'future:h-10 future:rounded-xl future:border-0 future:bg-surface-overlay future:py-2 future:text-sm future:placeholder:text-foreground-muted future:placeholder:font-normal future:focus-visible:ring-offset-2 future:focus-visible:ring-offset-background', className),
|
|
35
36
|
ref: ref,
|
|
36
37
|
...props
|
|
@@ -3,6 +3,7 @@ import { forwardRef } from "react";
|
|
|
3
3
|
import { cn } from "../../lib/utils.js";
|
|
4
4
|
const Input = /*#__PURE__*/ forwardRef(({ className, type, variant = 'default', size = 'default', ...props }, ref)=>/*#__PURE__*/ jsx("input", {
|
|
5
5
|
type: type,
|
|
6
|
+
"data-slot": "input",
|
|
6
7
|
className: cn('flex w-full transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50', 'default' === size && 'h-9 rounded-md px-3 py-1 text-base placeholder:text-muted-foreground md:text-sm', 'xs' === size && 'h-6 rounded px-2 text-xs placeholder:text-muted-foreground', 'default' === variant && 'border border-input bg-transparent', 'ghost' === variant && 'border-0 bg-surface-overlay', 'default' === variant && 'default' === size && 'future:h-10 future:rounded-xl future:border-0 future:bg-surface-overlay future:py-2 future:text-sm future:placeholder:text-foreground-muted future:placeholder:font-normal future:focus-visible:ring-offset-2 future:focus-visible:ring-offset-background', className),
|
|
7
8
|
ref: ref,
|
|
8
9
|
...props
|
|
@@ -34,6 +34,7 @@ const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
|
34
34
|
const labelVariants = (0, external_class_variance_authority_namespaceObject.cva)('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
|
|
35
35
|
const Label = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_label_namespaceObject.Root, {
|
|
36
36
|
ref: ref,
|
|
37
|
+
"data-slot": "label",
|
|
37
38
|
className: (0, index_cjs_namespaceObject.cn)(labelVariants(), className),
|
|
38
39
|
...props
|
|
39
40
|
}));
|
|
@@ -6,6 +6,7 @@ import { cn } from "../../lib/index.js";
|
|
|
6
6
|
const labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
|
|
7
7
|
const Label = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
8
8
|
ref: ref,
|
|
9
|
+
"data-slot": "label",
|
|
9
10
|
className: cn(labelVariants(), className),
|
|
10
11
|
...props
|
|
11
12
|
}));
|
|
@@ -65,6 +65,7 @@ const Column = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ childr
|
|
|
65
65
|
});
|
|
66
66
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
67
67
|
ref: ref,
|
|
68
|
+
"data-slot": "column",
|
|
68
69
|
className: (0, index_cjs_namespaceObject.cn)(className),
|
|
69
70
|
style: {
|
|
70
71
|
...layoutStyles,
|
|
@@ -85,6 +85,7 @@ const Grid = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ children
|
|
|
85
85
|
};
|
|
86
86
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
87
87
|
ref: ref,
|
|
88
|
+
"data-slot": "grid",
|
|
88
89
|
className: (0, index_cjs_namespaceObject.cn)(...gridClasses, className),
|
|
89
90
|
style: inlineStyles,
|
|
90
91
|
...htmlProps,
|
|
@@ -65,6 +65,7 @@ const Row = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ children,
|
|
|
65
65
|
});
|
|
66
66
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
67
67
|
ref: ref,
|
|
68
|
+
"data-slot": "row",
|
|
68
69
|
className: (0, index_cjs_namespaceObject.cn)(className),
|
|
69
70
|
style: {
|
|
70
71
|
...layoutStyles,
|
|
@@ -55,6 +55,7 @@ const MultiSelect = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ i
|
|
|
55
55
|
};
|
|
56
56
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
57
57
|
ref: ref,
|
|
58
|
+
"data-slot": "multi-select",
|
|
58
59
|
className: (0, index_cjs_namespaceObject.cn)('relative', className),
|
|
59
60
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover, {
|
|
60
61
|
open: open,
|
|
@@ -27,6 +27,7 @@ const MultiSelect = /*#__PURE__*/ forwardRef(({ id, options, selected, onChange,
|
|
|
27
27
|
};
|
|
28
28
|
return /*#__PURE__*/ jsx("div", {
|
|
29
29
|
ref: ref,
|
|
30
|
+
"data-slot": "multi-select",
|
|
30
31
|
className: cn('relative', className),
|
|
31
32
|
children: /*#__PURE__*/ jsxs(Popover, {
|
|
32
33
|
open: open,
|
|
@@ -38,6 +38,7 @@ const external_react_namespaceObject = require("react");
|
|
|
38
38
|
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
39
39
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
40
40
|
const Pagination = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("nav", {
|
|
41
|
+
"data-slot": "pagination",
|
|
41
42
|
"aria-label": "pagination",
|
|
42
43
|
className: (0, index_cjs_namespaceObject.cn)('mx-auto flex w-full justify-center', className),
|
|
43
44
|
...props
|
|
@@ -45,17 +46,20 @@ const Pagination = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_name
|
|
|
45
46
|
Pagination.displayName = 'Pagination';
|
|
46
47
|
const PaginationContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("ul", {
|
|
47
48
|
ref: ref,
|
|
49
|
+
"data-slot": "pagination-content",
|
|
48
50
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-row items-center gap-1', className),
|
|
49
51
|
...props
|
|
50
52
|
}));
|
|
51
53
|
PaginationContent.displayName = 'PaginationContent';
|
|
52
54
|
const PaginationItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("li", {
|
|
53
55
|
ref: ref,
|
|
56
|
+
"data-slot": "pagination-item",
|
|
54
57
|
className: (0, index_cjs_namespaceObject.cn)('', className),
|
|
55
58
|
...props
|
|
56
59
|
}));
|
|
57
60
|
PaginationItem.displayName = 'PaginationItem';
|
|
58
61
|
const PaginationLink = ({ className, isActive, size = 'default', ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("a", {
|
|
62
|
+
"data-slot": "pagination-link",
|
|
59
63
|
"aria-current": isActive ? 'page' : void 0,
|
|
60
64
|
className: (0, index_cjs_namespaceObject.cn)((0, external_button_cjs_namespaceObject.buttonVariants)({
|
|
61
65
|
variant: isActive ? 'outline' : 'ghost',
|
|
@@ -65,6 +69,7 @@ const PaginationLink = ({ className, isActive, size = 'default', ...props })=>/*
|
|
|
65
69
|
});
|
|
66
70
|
PaginationLink.displayName = 'PaginationLink';
|
|
67
71
|
const PaginationPrevious = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(PaginationLink, {
|
|
72
|
+
"data-slot": "pagination-previous",
|
|
68
73
|
"aria-label": "Go to previous page",
|
|
69
74
|
size: "default",
|
|
70
75
|
className: (0, index_cjs_namespaceObject.cn)('gap-1 pl-2.5', className),
|
|
@@ -80,6 +85,7 @@ const PaginationPrevious = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runt
|
|
|
80
85
|
});
|
|
81
86
|
PaginationPrevious.displayName = 'PaginationPrevious';
|
|
82
87
|
const PaginationNext = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(PaginationLink, {
|
|
88
|
+
"data-slot": "pagination-next",
|
|
83
89
|
"aria-label": "Go to next page",
|
|
84
90
|
size: "default",
|
|
85
91
|
className: (0, index_cjs_namespaceObject.cn)('gap-1 pr-2.5', className),
|
|
@@ -95,6 +101,7 @@ const PaginationNext = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_
|
|
|
95
101
|
});
|
|
96
102
|
PaginationNext.displayName = 'PaginationNext';
|
|
97
103
|
const PaginationEllipsis = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
|
|
104
|
+
"data-slot": "pagination-ellipsis",
|
|
98
105
|
"aria-hidden": true,
|
|
99
106
|
className: (0, index_cjs_namespaceObject.cn)('flex h-9 w-9 items-center justify-center future:h-10 future:w-10', className),
|
|
100
107
|
...props,
|
|
@@ -4,6 +4,7 @@ import { forwardRef } from "react";
|
|
|
4
4
|
import { buttonVariants } from "./button.js";
|
|
5
5
|
import { cn } from "../../lib/index.js";
|
|
6
6
|
const Pagination = ({ className, ...props })=>/*#__PURE__*/ jsx("nav", {
|
|
7
|
+
"data-slot": "pagination",
|
|
7
8
|
"aria-label": "pagination",
|
|
8
9
|
className: cn('mx-auto flex w-full justify-center', className),
|
|
9
10
|
...props
|
|
@@ -11,17 +12,20 @@ const Pagination = ({ className, ...props })=>/*#__PURE__*/ jsx("nav", {
|
|
|
11
12
|
Pagination.displayName = 'Pagination';
|
|
12
13
|
const PaginationContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("ul", {
|
|
13
14
|
ref: ref,
|
|
15
|
+
"data-slot": "pagination-content",
|
|
14
16
|
className: cn('flex flex-row items-center gap-1', className),
|
|
15
17
|
...props
|
|
16
18
|
}));
|
|
17
19
|
PaginationContent.displayName = 'PaginationContent';
|
|
18
20
|
const PaginationItem = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("li", {
|
|
19
21
|
ref: ref,
|
|
22
|
+
"data-slot": "pagination-item",
|
|
20
23
|
className: cn('', className),
|
|
21
24
|
...props
|
|
22
25
|
}));
|
|
23
26
|
PaginationItem.displayName = 'PaginationItem';
|
|
24
27
|
const PaginationLink = ({ className, isActive, size = 'default', ...props })=>/*#__PURE__*/ jsx("a", {
|
|
28
|
+
"data-slot": "pagination-link",
|
|
25
29
|
"aria-current": isActive ? 'page' : void 0,
|
|
26
30
|
className: cn(buttonVariants({
|
|
27
31
|
variant: isActive ? 'outline' : 'ghost',
|
|
@@ -31,6 +35,7 @@ const PaginationLink = ({ className, isActive, size = 'default', ...props })=>/*
|
|
|
31
35
|
});
|
|
32
36
|
PaginationLink.displayName = 'PaginationLink';
|
|
33
37
|
const PaginationPrevious = ({ className, ...props })=>/*#__PURE__*/ jsxs(PaginationLink, {
|
|
38
|
+
"data-slot": "pagination-previous",
|
|
34
39
|
"aria-label": "Go to previous page",
|
|
35
40
|
size: "default",
|
|
36
41
|
className: cn('gap-1 pl-2.5', className),
|
|
@@ -46,6 +51,7 @@ const PaginationPrevious = ({ className, ...props })=>/*#__PURE__*/ jsxs(Paginat
|
|
|
46
51
|
});
|
|
47
52
|
PaginationPrevious.displayName = 'PaginationPrevious';
|
|
48
53
|
const PaginationNext = ({ className, ...props })=>/*#__PURE__*/ jsxs(PaginationLink, {
|
|
54
|
+
"data-slot": "pagination-next",
|
|
49
55
|
"aria-label": "Go to next page",
|
|
50
56
|
size: "default",
|
|
51
57
|
className: cn('gap-1 pr-2.5', className),
|
|
@@ -61,6 +67,7 @@ const PaginationNext = ({ className, ...props })=>/*#__PURE__*/ jsxs(PaginationL
|
|
|
61
67
|
});
|
|
62
68
|
PaginationNext.displayName = 'PaginationNext';
|
|
63
69
|
const PaginationEllipsis = ({ className, ...props })=>/*#__PURE__*/ jsxs("span", {
|
|
70
|
+
"data-slot": "pagination-ellipsis",
|
|
64
71
|
"aria-hidden": true,
|
|
65
72
|
className: cn('flex h-9 w-9 items-center justify-center future:h-10 future:w-10', className),
|
|
66
73
|
...props,
|
|
@@ -35,15 +35,30 @@ const react_popover_namespaceObject = require("@radix-ui/react-popover");
|
|
|
35
35
|
const external_react_namespaceObject = require("react");
|
|
36
36
|
const external_portal_container_cjs_namespaceObject = require("./portal-container.cjs");
|
|
37
37
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
38
|
-
const Popover = react_popover_namespaceObject.Root
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
const Popover = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_popover_namespaceObject.Root, {
|
|
39
|
+
"data-slot": "popover",
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
Popover.displayName = 'Popover';
|
|
43
|
+
const PopoverTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_popover_namespaceObject.Trigger, {
|
|
44
|
+
ref: ref,
|
|
45
|
+
"data-slot": "popover-trigger",
|
|
46
|
+
...props
|
|
47
|
+
}));
|
|
48
|
+
PopoverTrigger.displayName = react_popover_namespaceObject.Trigger.displayName;
|
|
49
|
+
const PopoverAnchor = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_popover_namespaceObject.Anchor, {
|
|
50
|
+
ref: ref,
|
|
51
|
+
"data-slot": "popover-anchor",
|
|
52
|
+
...props
|
|
53
|
+
}));
|
|
54
|
+
PopoverAnchor.displayName = react_popover_namespaceObject.Anchor.displayName;
|
|
41
55
|
const PopoverContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, align = 'center', sideOffset = 4, container, ...props }, ref)=>{
|
|
42
56
|
const resolvedContainer = (0, external_portal_container_cjs_namespaceObject.useResolvedPortalContainer)(container);
|
|
43
57
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_popover_namespaceObject.Portal, {
|
|
44
58
|
container: resolvedContainer,
|
|
45
59
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_popover_namespaceObject.Content, {
|
|
46
60
|
ref: ref,
|
|
61
|
+
"data-slot": "popover-content",
|
|
47
62
|
align: align,
|
|
48
63
|
sideOffset: sideOffset,
|
|
49
64
|
className: (0, index_cjs_namespaceObject.cn)('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none future:rounded-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]', className),
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { type PortalContainerOverride } from './portal-container';
|
|
4
|
-
declare const Popover:
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Popover: {
|
|
5
|
+
(props: React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
10
|
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
11
|
container?: PortalContainerOverride;
|
|
9
12
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -4,15 +4,30 @@ import { Anchor, Content, Portal, Root, Trigger } from "@radix-ui/react-popover"
|
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { useResolvedPortalContainer } from "./portal-container.js";
|
|
6
6
|
import { cn } from "../../lib/index.js";
|
|
7
|
-
const Popover = Root
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const Popover = (props)=>/*#__PURE__*/ jsx(Root, {
|
|
8
|
+
"data-slot": "popover",
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
Popover.displayName = 'Popover';
|
|
12
|
+
const PopoverTrigger = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Trigger, {
|
|
13
|
+
ref: ref,
|
|
14
|
+
"data-slot": "popover-trigger",
|
|
15
|
+
...props
|
|
16
|
+
}));
|
|
17
|
+
PopoverTrigger.displayName = Trigger.displayName;
|
|
18
|
+
const PopoverAnchor = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Anchor, {
|
|
19
|
+
ref: ref,
|
|
20
|
+
"data-slot": "popover-anchor",
|
|
21
|
+
...props
|
|
22
|
+
}));
|
|
23
|
+
PopoverAnchor.displayName = Anchor.displayName;
|
|
10
24
|
const PopoverContent = /*#__PURE__*/ forwardRef(({ className, align = 'center', sideOffset = 4, container, ...props }, ref)=>{
|
|
11
25
|
const resolvedContainer = useResolvedPortalContainer(container);
|
|
12
26
|
return /*#__PURE__*/ jsx(Portal, {
|
|
13
27
|
container: resolvedContainer,
|
|
14
28
|
children: /*#__PURE__*/ jsx(Content, {
|
|
15
29
|
ref: ref,
|
|
30
|
+
"data-slot": "popover-content",
|
|
16
31
|
align: align,
|
|
17
32
|
sideOffset: sideOffset,
|
|
18
33
|
className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none future:rounded-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]', className),
|
|
@@ -32,6 +32,7 @@ const external_react_namespaceObject = require("react");
|
|
|
32
32
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
33
33
|
const Progress = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, value, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_progress_namespaceObject.Root, {
|
|
34
34
|
ref: ref,
|
|
35
|
+
"data-slot": "progress",
|
|
35
36
|
className: (0, index_cjs_namespaceObject.cn)('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className),
|
|
36
37
|
...props,
|
|
37
38
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_progress_namespaceObject.Indicator, {
|
|
@@ -4,6 +4,7 @@ import { forwardRef } from "react";
|
|
|
4
4
|
import { cn } from "../../lib/index.js";
|
|
5
5
|
const Progress = /*#__PURE__*/ forwardRef(({ className, value, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
6
6
|
ref: ref,
|
|
7
|
+
"data-slot": "progress",
|
|
7
8
|
className: cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className),
|
|
8
9
|
...props,
|
|
9
10
|
children: /*#__PURE__*/ jsx(Indicator, {
|
|
@@ -77,11 +77,13 @@ const EditorToolbar = ({ mode, onModeChange, disabled, actionsRef, onFullscreen
|
|
|
77
77
|
}),
|
|
78
78
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
79
79
|
className: "flex items-center gap-1 shrink-0",
|
|
80
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("
|
|
81
|
-
|
|
80
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("fieldset", {
|
|
81
|
+
"aria-label": "Editor mode",
|
|
82
|
+
className: "m-0 flex items-center rounded-md border-0 bg-muted p-0.5",
|
|
82
83
|
children: [
|
|
83
84
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
84
85
|
type: "button",
|
|
86
|
+
"aria-pressed": 'edit' === mode,
|
|
85
87
|
className: (0, index_cjs_namespaceObject.cn)('rounded px-2 py-0.5 text-[11px] font-semibold transition-colors', 'edit' === mode ? 'bg-primary/20 text-primary' : 'text-foreground hover:bg-accent'),
|
|
86
88
|
disabled: disabled,
|
|
87
89
|
onClick: ()=>onModeChange('edit'),
|
|
@@ -89,6 +91,7 @@ const EditorToolbar = ({ mode, onModeChange, disabled, actionsRef, onFullscreen
|
|
|
89
91
|
}),
|
|
90
92
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
91
93
|
type: "button",
|
|
94
|
+
"aria-pressed": 'preview' === mode,
|
|
92
95
|
className: (0, index_cjs_namespaceObject.cn)('rounded px-2 py-0.5 text-[11px] font-semibold transition-colors', 'preview' === mode ? 'bg-primary/20 text-primary' : 'text-foreground hover:bg-accent'),
|
|
93
96
|
disabled: disabled,
|
|
94
97
|
onClick: ()=>onModeChange('preview'),
|
|
@@ -49,11 +49,13 @@ const EditorToolbar = ({ mode, onModeChange, disabled, actionsRef, onFullscreen
|
|
|
49
49
|
}),
|
|
50
50
|
/*#__PURE__*/ jsx("div", {
|
|
51
51
|
className: "flex items-center gap-1 shrink-0",
|
|
52
|
-
children: /*#__PURE__*/ jsxs("
|
|
53
|
-
|
|
52
|
+
children: /*#__PURE__*/ jsxs("fieldset", {
|
|
53
|
+
"aria-label": "Editor mode",
|
|
54
|
+
className: "m-0 flex items-center rounded-md border-0 bg-muted p-0.5",
|
|
54
55
|
children: [
|
|
55
56
|
/*#__PURE__*/ jsx("button", {
|
|
56
57
|
type: "button",
|
|
58
|
+
"aria-pressed": 'edit' === mode,
|
|
57
59
|
className: cn('rounded px-2 py-0.5 text-[11px] font-semibold transition-colors', 'edit' === mode ? 'bg-primary/20 text-primary' : 'text-foreground hover:bg-accent'),
|
|
58
60
|
disabled: disabled,
|
|
59
61
|
onClick: ()=>onModeChange('edit'),
|
|
@@ -61,6 +63,7 @@ const EditorToolbar = ({ mode, onModeChange, disabled, actionsRef, onFullscreen
|
|
|
61
63
|
}),
|
|
62
64
|
/*#__PURE__*/ jsx("button", {
|
|
63
65
|
type: "button",
|
|
66
|
+
"aria-pressed": 'preview' === mode,
|
|
64
67
|
className: cn('rounded px-2 py-0.5 text-[11px] font-semibold transition-colors', 'preview' === mode ? 'bg-primary/20 text-primary' : 'text-foreground hover:bg-accent'),
|
|
65
68
|
disabled: disabled,
|
|
66
69
|
onClick: ()=>onModeChange('preview'),
|
|
@@ -33,6 +33,7 @@ const external_lucide_react_namespaceObject = require("lucide-react");
|
|
|
33
33
|
const external_react_namespaceObject = require("react");
|
|
34
34
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
35
35
|
const RadioGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Root, {
|
|
36
|
+
"data-slot": "radio-group",
|
|
36
37
|
className: (0, index_cjs_namespaceObject.cn)('grid gap-2', className),
|
|
37
38
|
...props,
|
|
38
39
|
ref: ref
|
|
@@ -40,6 +41,7 @@ const RadioGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ cl
|
|
|
40
41
|
RadioGroup.displayName = react_radio_group_namespaceObject.Root.displayName;
|
|
41
42
|
const RadioGroupItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Item, {
|
|
42
43
|
ref: ref,
|
|
44
|
+
"data-slot": "radio-group-item",
|
|
43
45
|
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', 'future:border-border future:text-foreground future:hover:border-border-hover future:data-[state=checked]:border-foreground-muted', className),
|
|
44
46
|
...props,
|
|
45
47
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Indicator, {
|
|
@@ -4,6 +4,7 @@ import { Circle } from "lucide-react";
|
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { cn } from "../../lib/index.js";
|
|
6
6
|
const RadioGroup = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
7
|
+
"data-slot": "radio-group",
|
|
7
8
|
className: cn('grid gap-2', className),
|
|
8
9
|
...props,
|
|
9
10
|
ref: ref
|
|
@@ -11,6 +12,7 @@ const RadioGroup = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#_
|
|
|
11
12
|
RadioGroup.displayName = Root.displayName;
|
|
12
13
|
const RadioGroupItem = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Item, {
|
|
13
14
|
ref: ref,
|
|
15
|
+
"data-slot": "radio-group-item",
|
|
14
16
|
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', 'future:border-border future:text-foreground future:hover:border-border-hover future:data-[state=checked]:border-foreground-muted', className),
|
|
15
17
|
...props,
|
|
16
18
|
children: /*#__PURE__*/ jsx(Indicator, {
|
|
@@ -33,11 +33,13 @@ const external_lucide_react_namespaceObject = require("lucide-react");
|
|
|
33
33
|
const external_react_resizable_panels_namespaceObject = require("react-resizable-panels");
|
|
34
34
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
35
35
|
const ResizablePanelGroup = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_react_resizable_panels_namespaceObject.Group, {
|
|
36
|
+
"data-slot": "resizable-panel-group",
|
|
36
37
|
className: (0, index_cjs_namespaceObject.cn)('flex h-full w-full', className),
|
|
37
38
|
...props
|
|
38
39
|
});
|
|
39
40
|
const ResizablePanel = external_react_resizable_panels_namespaceObject.Panel;
|
|
40
41
|
const ResizableHandle = ({ withHandle, className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_react_resizable_panels_namespaceObject.Separator, {
|
|
42
|
+
"data-slot": "resizable-handle",
|
|
41
43
|
className: (0, index_cjs_namespaceObject.cn)('group relative flex w-px items-center justify-center bg-border transition-colors data-[separator=hover]:bg-primary data-[separator=active]: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 aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90', className),
|
|
42
44
|
...props,
|
|
43
45
|
children: withHandle && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
@@ -3,11 +3,13 @@ import { GripVertical } from "lucide-react";
|
|
|
3
3
|
import { Group, Panel, Separator } from "react-resizable-panels";
|
|
4
4
|
import { cn } from "../../lib/index.js";
|
|
5
5
|
const ResizablePanelGroup = ({ className, ...props })=>/*#__PURE__*/ jsx(Group, {
|
|
6
|
+
"data-slot": "resizable-panel-group",
|
|
6
7
|
className: cn('flex h-full w-full', className),
|
|
7
8
|
...props
|
|
8
9
|
});
|
|
9
10
|
const ResizablePanel = Panel;
|
|
10
11
|
const ResizableHandle = ({ withHandle, className, ...props })=>/*#__PURE__*/ jsx(Separator, {
|
|
12
|
+
"data-slot": "resizable-handle",
|
|
11
13
|
className: cn('group relative flex w-px items-center justify-center bg-border transition-colors data-[separator=hover]:bg-primary data-[separator=active]: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 aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90', className),
|
|
12
14
|
...props,
|
|
13
15
|
children: withHandle && /*#__PURE__*/ jsx("div", {
|
|
@@ -34,6 +34,7 @@ const external_react_namespaceObject = require("react");
|
|
|
34
34
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
35
35
|
const ScrollArea = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_scroll_area_namespaceObject.Root, {
|
|
36
36
|
ref: ref,
|
|
37
|
+
"data-slot": "scroll-area",
|
|
37
38
|
className: (0, index_cjs_namespaceObject.cn)('relative overflow-hidden overscroll-x-contain', className),
|
|
38
39
|
...props,
|
|
39
40
|
children: [
|
|
@@ -53,6 +54,7 @@ const ScrollArea = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ cl
|
|
|
53
54
|
ScrollArea.displayName = react_scroll_area_namespaceObject.Root.displayName;
|
|
54
55
|
const ScrollBar = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, orientation = 'vertical', ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_scroll_area_namespaceObject.ScrollAreaScrollbar, {
|
|
55
56
|
ref: ref,
|
|
57
|
+
"data-slot": "scroll-bar",
|
|
56
58
|
orientation: orientation,
|
|
57
59
|
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-px', 'horizontal' === orientation && 'h-2.5 flex-col border-t border-t-transparent p-px', className),
|
|
58
60
|
...props,
|
|
@@ -5,6 +5,7 @@ import { forwardRef } from "react";
|
|
|
5
5
|
import { cn } from "../../lib/index.js";
|
|
6
6
|
const ScrollArea = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ jsxs(Root, {
|
|
7
7
|
ref: ref,
|
|
8
|
+
"data-slot": "scroll-area",
|
|
8
9
|
className: cn('relative overflow-hidden overscroll-x-contain', className),
|
|
9
10
|
...props,
|
|
10
11
|
children: [
|
|
@@ -24,6 +25,7 @@ const ScrollArea = /*#__PURE__*/ forwardRef(({ className, children, ...props },
|
|
|
24
25
|
ScrollArea.displayName = Root.displayName;
|
|
25
26
|
const ScrollBar = /*#__PURE__*/ forwardRef(({ className, orientation = 'vertical', ...props }, ref)=>/*#__PURE__*/ jsx(ScrollAreaScrollbar, {
|
|
26
27
|
ref: ref,
|
|
28
|
+
"data-slot": "scroll-bar",
|
|
27
29
|
orientation: orientation,
|
|
28
30
|
className: cn('flex touch-none select-none transition-colors', 'vertical' === orientation && 'h-full w-2.5 border-l border-l-transparent p-px', 'horizontal' === orientation && 'h-2.5 flex-col border-t border-t-transparent p-px', className),
|
|
29
31
|
...props,
|
|
@@ -40,6 +40,7 @@ const Search = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ classN
|
|
|
40
40
|
onClear?.();
|
|
41
41
|
};
|
|
42
42
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_input_group_cjs_namespaceObject.InputGroup, {
|
|
43
|
+
"data-slot": "search",
|
|
43
44
|
variant: variant,
|
|
44
45
|
size: size,
|
|
45
46
|
children: [
|
|
@@ -93,6 +94,7 @@ const SearchWithSuggestions = /*#__PURE__*/ external_react_namespaceObject.forwa
|
|
|
93
94
|
};
|
|
94
95
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
95
96
|
ref: ref,
|
|
97
|
+
"data-slot": "search-with-suggestions",
|
|
96
98
|
className: (0, index_cjs_namespaceObject.cn)('relative', className),
|
|
97
99
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover, {
|
|
98
100
|
open: open && filteredSuggestions.length > 0,
|
|
@@ -11,6 +11,7 @@ const search_Search = /*#__PURE__*/ forwardRef(({ className, value, onChange, on
|
|
|
11
11
|
onClear?.();
|
|
12
12
|
};
|
|
13
13
|
return /*#__PURE__*/ jsxs(InputGroup, {
|
|
14
|
+
"data-slot": "search",
|
|
14
15
|
variant: variant,
|
|
15
16
|
size: size,
|
|
16
17
|
children: [
|
|
@@ -64,6 +65,7 @@ const SearchWithSuggestions = /*#__PURE__*/ forwardRef(({ value, onChange, place
|
|
|
64
65
|
};
|
|
65
66
|
return /*#__PURE__*/ jsx("div", {
|
|
66
67
|
ref: ref,
|
|
68
|
+
"data-slot": "search-with-suggestions",
|
|
67
69
|
className: cn('relative', className),
|
|
68
70
|
children: /*#__PURE__*/ jsxs(Popover, {
|
|
69
71
|
open: open && filteredSuggestions.length > 0,
|