@uipath/apollo-wind 2.36.1 → 2.37.0
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/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 +12 -4
- package/dist/components/ui/file-upload.d.ts +4 -1
- package/dist/components/ui/file-upload.js +13 -5
- 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 +193 -143
- package/dist/components/ui/index.d.ts +5 -0
- package/dist/components/ui/index.js +5 -0
- package/dist/components/ui/input-group.cjs +59 -15
- package/dist/components/ui/input-group.d.ts +5 -1
- package/dist/components/ui/input-group.js +61 -17
- package/dist/components/ui/input.cjs +31 -6
- package/dist/components/ui/input.d.ts +7 -0
- package/dist/components/ui/input.js +33 -8
- 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/lockable-value-field/lockable-value-field.cjs +38 -5
- package/dist/components/ui/lockable-value-field/lockable-value-field.d.ts +1 -1
- package/dist/components/ui/lockable-value-field/lockable-value-field.js +38 -5
- package/dist/components/ui/lockable-value-field/types.d.ts +9 -1
- package/dist/components/ui/multi-select.cjs +5 -1
- package/dist/components/ui/multi-select.d.ts +3 -0
- package/dist/components/ui/multi-select.js +5 -1
- 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 +208 -128
- 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
|
@@ -42,11 +42,26 @@ const external_lucide_react_namespaceObject = require("lucide-react");
|
|
|
42
42
|
const external_react_namespaceObject = require("react");
|
|
43
43
|
const external_portal_container_cjs_namespaceObject = require("./portal-container.cjs");
|
|
44
44
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
45
|
-
const Select = react_select_namespaceObject.Root
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
const Select = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Root, {
|
|
46
|
+
"data-slot": "select",
|
|
47
|
+
...props
|
|
48
|
+
});
|
|
49
|
+
Select.displayName = 'Select';
|
|
50
|
+
const SelectGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Group, {
|
|
51
|
+
ref: ref,
|
|
52
|
+
"data-slot": "select-group",
|
|
53
|
+
...props
|
|
54
|
+
}));
|
|
55
|
+
SelectGroup.displayName = react_select_namespaceObject.Group.displayName;
|
|
56
|
+
const SelectValue = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Value, {
|
|
57
|
+
ref: ref,
|
|
58
|
+
"data-slot": "select-value",
|
|
59
|
+
...props
|
|
60
|
+
}));
|
|
61
|
+
SelectValue.displayName = react_select_namespaceObject.Value.displayName;
|
|
48
62
|
const SelectTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_select_namespaceObject.Trigger, {
|
|
49
63
|
ref: ref,
|
|
64
|
+
"data-slot": "select-trigger",
|
|
50
65
|
className: (0, index_cjs_namespaceObject.cn)('flex h-9 w-full cursor-pointer items-center justify-between rounded-md border border-input bg-transparent px-3 py-1 text-base transition-colors data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm [&>span]:line-clamp-1 future:h-10 future:rounded-xl future:border-0 future:bg-surface-overlay future:hover:bg-surface-hover future:px-4 future:gap-4 future:font-normal future:text-muted-foreground', className),
|
|
51
66
|
...props,
|
|
52
67
|
children: [
|
|
@@ -62,6 +77,7 @@ const SelectTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({
|
|
|
62
77
|
SelectTrigger.displayName = react_select_namespaceObject.Trigger.displayName;
|
|
63
78
|
const SelectScrollUpButton = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ScrollUpButton, {
|
|
64
79
|
ref: ref,
|
|
80
|
+
"data-slot": "select-scroll-up-button",
|
|
65
81
|
className: (0, index_cjs_namespaceObject.cn)('flex cursor-default items-center justify-center py-1', className),
|
|
66
82
|
...props,
|
|
67
83
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronUp, {
|
|
@@ -71,6 +87,7 @@ const SelectScrollUpButton = /*#__PURE__*/ external_react_namespaceObject.forwar
|
|
|
71
87
|
SelectScrollUpButton.displayName = react_select_namespaceObject.ScrollUpButton.displayName;
|
|
72
88
|
const SelectScrollDownButton = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ScrollDownButton, {
|
|
73
89
|
ref: ref,
|
|
90
|
+
"data-slot": "select-scroll-down-button",
|
|
74
91
|
className: (0, index_cjs_namespaceObject.cn)('flex cursor-default items-center justify-center py-1', className),
|
|
75
92
|
...props,
|
|
76
93
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
|
|
@@ -84,6 +101,7 @@ const SelectContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({
|
|
|
84
101
|
container: resolvedContainer,
|
|
85
102
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_select_namespaceObject.Content, {
|
|
86
103
|
ref: ref,
|
|
104
|
+
"data-slot": "select-content",
|
|
87
105
|
className: (0, index_cjs_namespaceObject.cn)('relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-select-content-transform-origin]', 'popper' === position && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
|
|
88
106
|
position: position,
|
|
89
107
|
...props,
|
|
@@ -101,12 +119,14 @@ const SelectContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({
|
|
|
101
119
|
SelectContent.displayName = react_select_namespaceObject.Content.displayName;
|
|
102
120
|
const SelectLabel = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Label, {
|
|
103
121
|
ref: ref,
|
|
122
|
+
"data-slot": "select-label",
|
|
104
123
|
className: (0, index_cjs_namespaceObject.cn)('py-1.5 pl-8 pr-2 text-sm font-semibold', className),
|
|
105
124
|
...props
|
|
106
125
|
}));
|
|
107
126
|
SelectLabel.displayName = react_select_namespaceObject.Label.displayName;
|
|
108
127
|
const SelectItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_select_namespaceObject.Item, {
|
|
109
128
|
ref: ref,
|
|
129
|
+
"data-slot": "select-item",
|
|
110
130
|
className: (0, index_cjs_namespaceObject.cn)('relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
111
131
|
...props,
|
|
112
132
|
children: [
|
|
@@ -126,6 +146,7 @@ const SelectItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ cl
|
|
|
126
146
|
SelectItem.displayName = react_select_namespaceObject.Item.displayName;
|
|
127
147
|
const SelectSeparator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Separator, {
|
|
128
148
|
ref: ref,
|
|
149
|
+
"data-slot": "select-separator",
|
|
129
150
|
className: (0, index_cjs_namespaceObject.cn)('-mx-1 my-1 h-px bg-muted', className),
|
|
130
151
|
...props
|
|
131
152
|
}));
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { type PortalContainerOverride } from './portal-container';
|
|
4
|
-
declare const Select:
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const Select: {
|
|
5
|
+
(props: React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const SelectValue: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
7
10
|
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
11
|
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
12
|
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,11 +5,26 @@ import { Check, ChevronDown, ChevronUp } from "lucide-react";
|
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { useResolvedPortalContainer } from "./portal-container.js";
|
|
7
7
|
import { cn } from "../../lib/index.js";
|
|
8
|
-
const Select = Root
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const Select = (props)=>/*#__PURE__*/ jsx(Root, {
|
|
9
|
+
"data-slot": "select",
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
Select.displayName = 'Select';
|
|
13
|
+
const SelectGroup = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Group, {
|
|
14
|
+
ref: ref,
|
|
15
|
+
"data-slot": "select-group",
|
|
16
|
+
...props
|
|
17
|
+
}));
|
|
18
|
+
SelectGroup.displayName = Group.displayName;
|
|
19
|
+
const SelectValue = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Value, {
|
|
20
|
+
ref: ref,
|
|
21
|
+
"data-slot": "select-value",
|
|
22
|
+
...props
|
|
23
|
+
}));
|
|
24
|
+
SelectValue.displayName = Value.displayName;
|
|
11
25
|
const SelectTrigger = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ jsxs(Trigger, {
|
|
12
26
|
ref: ref,
|
|
27
|
+
"data-slot": "select-trigger",
|
|
13
28
|
className: cn('flex h-9 w-full cursor-pointer items-center justify-between rounded-md border border-input bg-transparent px-3 py-1 text-base transition-colors data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm [&>span]:line-clamp-1 future:h-10 future:rounded-xl future:border-0 future:bg-surface-overlay future:hover:bg-surface-hover future:px-4 future:gap-4 future:font-normal future:text-muted-foreground', className),
|
|
14
29
|
...props,
|
|
15
30
|
children: [
|
|
@@ -25,6 +40,7 @@ const SelectTrigger = /*#__PURE__*/ forwardRef(({ className, children, ...props
|
|
|
25
40
|
SelectTrigger.displayName = Trigger.displayName;
|
|
26
41
|
const SelectScrollUpButton = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(ScrollUpButton, {
|
|
27
42
|
ref: ref,
|
|
43
|
+
"data-slot": "select-scroll-up-button",
|
|
28
44
|
className: cn('flex cursor-default items-center justify-center py-1', className),
|
|
29
45
|
...props,
|
|
30
46
|
children: /*#__PURE__*/ jsx(ChevronUp, {
|
|
@@ -34,6 +50,7 @@ const SelectScrollUpButton = /*#__PURE__*/ forwardRef(({ className, ...props },
|
|
|
34
50
|
SelectScrollUpButton.displayName = ScrollUpButton.displayName;
|
|
35
51
|
const SelectScrollDownButton = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(ScrollDownButton, {
|
|
36
52
|
ref: ref,
|
|
53
|
+
"data-slot": "select-scroll-down-button",
|
|
37
54
|
className: cn('flex cursor-default items-center justify-center py-1', className),
|
|
38
55
|
...props,
|
|
39
56
|
children: /*#__PURE__*/ jsx(ChevronDown, {
|
|
@@ -47,6 +64,7 @@ const SelectContent = /*#__PURE__*/ forwardRef(({ className, children, position
|
|
|
47
64
|
container: resolvedContainer,
|
|
48
65
|
children: /*#__PURE__*/ jsxs(Content, {
|
|
49
66
|
ref: ref,
|
|
67
|
+
"data-slot": "select-content",
|
|
50
68
|
className: cn('relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-select-content-transform-origin]', 'popper' === position && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
|
|
51
69
|
position: position,
|
|
52
70
|
...props,
|
|
@@ -64,12 +82,14 @@ const SelectContent = /*#__PURE__*/ forwardRef(({ className, children, position
|
|
|
64
82
|
SelectContent.displayName = Content.displayName;
|
|
65
83
|
const SelectLabel = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Label, {
|
|
66
84
|
ref: ref,
|
|
85
|
+
"data-slot": "select-label",
|
|
67
86
|
className: cn('py-1.5 pl-8 pr-2 text-sm font-semibold', className),
|
|
68
87
|
...props
|
|
69
88
|
}));
|
|
70
89
|
SelectLabel.displayName = Label.displayName;
|
|
71
90
|
const SelectItem = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ jsxs(Item, {
|
|
72
91
|
ref: ref,
|
|
92
|
+
"data-slot": "select-item",
|
|
73
93
|
className: cn('relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
74
94
|
...props,
|
|
75
95
|
children: [
|
|
@@ -89,6 +109,7 @@ const SelectItem = /*#__PURE__*/ forwardRef(({ className, children, ...props },
|
|
|
89
109
|
SelectItem.displayName = Item.displayName;
|
|
90
110
|
const SelectSeparator = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Separator, {
|
|
91
111
|
ref: ref,
|
|
112
|
+
"data-slot": "select-separator",
|
|
92
113
|
className: cn('-mx-1 my-1 h-px bg-muted', className),
|
|
93
114
|
...props
|
|
94
115
|
}));
|
|
@@ -32,6 +32,7 @@ const external_react_namespaceObject = require("react");
|
|
|
32
32
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
33
33
|
const Separator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, orientation = 'horizontal', decorative = true, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_separator_namespaceObject.Root, {
|
|
34
34
|
ref: ref,
|
|
35
|
+
"data-slot": "separator",
|
|
35
36
|
decorative: decorative,
|
|
36
37
|
orientation: orientation,
|
|
37
38
|
className: (0, index_cjs_namespaceObject.cn)('shrink-0 bg-border', 'horizontal' === orientation ? 'h-[1px] w-full' : 'h-full w-[1px]', className),
|
|
@@ -4,6 +4,7 @@ import { forwardRef } from "react";
|
|
|
4
4
|
import { cn } from "../../lib/index.js";
|
|
5
5
|
const Separator = /*#__PURE__*/ forwardRef(({ className, orientation = 'horizontal', decorative = true, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
6
6
|
ref: ref,
|
|
7
|
+
"data-slot": "separator",
|
|
7
8
|
decorative: decorative,
|
|
8
9
|
orientation: orientation,
|
|
9
10
|
className: cn('shrink-0 bg-border', 'horizontal' === orientation ? 'h-[1px] w-full' : 'h-full w-[1px]', className),
|
|
@@ -43,12 +43,31 @@ const external_lucide_react_namespaceObject = require("lucide-react");
|
|
|
43
43
|
const external_react_namespaceObject = require("react");
|
|
44
44
|
const external_portal_container_cjs_namespaceObject = require("./portal-container.cjs");
|
|
45
45
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
46
|
-
const Sheet = react_dialog_namespaceObject.Root
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
const Sheet = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Root, {
|
|
47
|
+
"data-slot": "sheet",
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
Sheet.displayName = 'Sheet';
|
|
51
|
+
const SheetTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Trigger, {
|
|
52
|
+
ref: ref,
|
|
53
|
+
"data-slot": "sheet-trigger",
|
|
54
|
+
...props
|
|
55
|
+
}));
|
|
56
|
+
SheetTrigger.displayName = react_dialog_namespaceObject.Trigger.displayName;
|
|
57
|
+
const SheetClose = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Close, {
|
|
58
|
+
ref: ref,
|
|
59
|
+
"data-slot": "sheet-close",
|
|
60
|
+
...props
|
|
61
|
+
}));
|
|
62
|
+
SheetClose.displayName = react_dialog_namespaceObject.Close.displayName;
|
|
63
|
+
const SheetPortal = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Portal, {
|
|
64
|
+
"data-slot": "sheet-portal",
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
67
|
+
SheetPortal.displayName = 'SheetPortal';
|
|
50
68
|
const SheetOverlay = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Overlay, {
|
|
51
|
-
|
|
69
|
+
"data-slot": "sheet-overlay",
|
|
70
|
+
className: (0, index_cjs_namespaceObject.cn)('fixed inset-0 z-50 bg-curtain data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className),
|
|
52
71
|
...props,
|
|
53
72
|
ref: ref
|
|
54
73
|
}));
|
|
@@ -74,6 +93,7 @@ const SheetContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({
|
|
|
74
93
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SheetOverlay, {}),
|
|
75
94
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Content, {
|
|
76
95
|
ref: ref,
|
|
96
|
+
"data-slot": "sheet-content",
|
|
77
97
|
className: (0, index_cjs_namespaceObject.cn)(sheetVariants({
|
|
78
98
|
side
|
|
79
99
|
}), className),
|
|
@@ -99,23 +119,27 @@ const SheetContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({
|
|
|
99
119
|
});
|
|
100
120
|
SheetContent.displayName = react_dialog_namespaceObject.Content.displayName;
|
|
101
121
|
const SheetHeader = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
122
|
+
"data-slot": "sheet-header",
|
|
102
123
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-col space-y-2 text-center sm:text-left', className),
|
|
103
124
|
...props
|
|
104
125
|
});
|
|
105
126
|
SheetHeader.displayName = 'SheetHeader';
|
|
106
127
|
const SheetFooter = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
128
|
+
"data-slot": "sheet-footer",
|
|
107
129
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className),
|
|
108
130
|
...props
|
|
109
131
|
});
|
|
110
132
|
SheetFooter.displayName = 'SheetFooter';
|
|
111
133
|
const SheetTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Title, {
|
|
112
134
|
ref: ref,
|
|
135
|
+
"data-slot": "sheet-title",
|
|
113
136
|
className: (0, index_cjs_namespaceObject.cn)('text-lg font-semibold text-foreground', className),
|
|
114
137
|
...props
|
|
115
138
|
}));
|
|
116
139
|
SheetTitle.displayName = react_dialog_namespaceObject.Title.displayName;
|
|
117
140
|
const SheetDescription = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Description, {
|
|
118
141
|
ref: ref,
|
|
142
|
+
"data-slot": "sheet-description",
|
|
119
143
|
className: (0, index_cjs_namespaceObject.cn)('text-sm text-muted-foreground', className),
|
|
120
144
|
...props
|
|
121
145
|
}));
|
|
@@ -2,10 +2,16 @@ import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { type PortalContainerOverride } from './portal-container';
|
|
5
|
-
declare const Sheet:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
declare const Sheet: {
|
|
6
|
+
(props: React.ComponentPropsWithoutRef<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
declare const SheetClose: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
declare const SheetPortal: {
|
|
12
|
+
(props: React.ComponentPropsWithoutRef<typeof SheetPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
9
15
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
16
|
declare const sheetVariants: (props?: ({
|
|
11
17
|
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
@@ -6,12 +6,31 @@ import { X } from "lucide-react";
|
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { useResolvedPortalContainer } from "./portal-container.js";
|
|
8
8
|
import { cn } from "../../lib/index.js";
|
|
9
|
-
const Sheet = Root
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const Sheet = (props)=>/*#__PURE__*/ jsx(Root, {
|
|
10
|
+
"data-slot": "sheet",
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
Sheet.displayName = 'Sheet';
|
|
14
|
+
const SheetTrigger = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Trigger, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
"data-slot": "sheet-trigger",
|
|
17
|
+
...props
|
|
18
|
+
}));
|
|
19
|
+
SheetTrigger.displayName = Trigger.displayName;
|
|
20
|
+
const SheetClose = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Close, {
|
|
21
|
+
ref: ref,
|
|
22
|
+
"data-slot": "sheet-close",
|
|
23
|
+
...props
|
|
24
|
+
}));
|
|
25
|
+
SheetClose.displayName = Close.displayName;
|
|
26
|
+
const SheetPortal = (props)=>/*#__PURE__*/ jsx(Portal, {
|
|
27
|
+
"data-slot": "sheet-portal",
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
SheetPortal.displayName = 'SheetPortal';
|
|
13
31
|
const SheetOverlay = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Overlay, {
|
|
14
|
-
|
|
32
|
+
"data-slot": "sheet-overlay",
|
|
33
|
+
className: cn('fixed inset-0 z-50 bg-curtain data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className),
|
|
15
34
|
...props,
|
|
16
35
|
ref: ref
|
|
17
36
|
}));
|
|
@@ -37,6 +56,7 @@ const SheetContent = /*#__PURE__*/ forwardRef(({ side = 'right', className, chil
|
|
|
37
56
|
/*#__PURE__*/ jsx(SheetOverlay, {}),
|
|
38
57
|
/*#__PURE__*/ jsxs(Content, {
|
|
39
58
|
ref: ref,
|
|
59
|
+
"data-slot": "sheet-content",
|
|
40
60
|
className: cn(sheetVariants({
|
|
41
61
|
side
|
|
42
62
|
}), className),
|
|
@@ -62,23 +82,27 @@ const SheetContent = /*#__PURE__*/ forwardRef(({ side = 'right', className, chil
|
|
|
62
82
|
});
|
|
63
83
|
SheetContent.displayName = Content.displayName;
|
|
64
84
|
const SheetHeader = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
85
|
+
"data-slot": "sheet-header",
|
|
65
86
|
className: cn('flex flex-col space-y-2 text-center sm:text-left', className),
|
|
66
87
|
...props
|
|
67
88
|
});
|
|
68
89
|
SheetHeader.displayName = 'SheetHeader';
|
|
69
90
|
const SheetFooter = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
91
|
+
"data-slot": "sheet-footer",
|
|
70
92
|
className: cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className),
|
|
71
93
|
...props
|
|
72
94
|
});
|
|
73
95
|
SheetFooter.displayName = 'SheetFooter';
|
|
74
96
|
const SheetTitle = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Title, {
|
|
75
97
|
ref: ref,
|
|
98
|
+
"data-slot": "sheet-title",
|
|
76
99
|
className: cn('text-lg font-semibold text-foreground', className),
|
|
77
100
|
...props
|
|
78
101
|
}));
|
|
79
102
|
SheetTitle.displayName = Title.displayName;
|
|
80
103
|
const SheetDescription = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Description, {
|
|
81
104
|
ref: ref,
|
|
105
|
+
"data-slot": "sheet-description",
|
|
82
106
|
className: cn('text-sm text-muted-foreground', className),
|
|
83
107
|
...props
|
|
84
108
|
}));
|
|
@@ -30,6 +30,7 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
30
30
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
31
31
|
function Skeleton({ className, ...props }) {
|
|
32
32
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
33
|
+
"data-slot": "skeleton",
|
|
33
34
|
className: (0, index_cjs_namespaceObject.cn)('animate-pulse rounded-md bg-surface-overlay', className),
|
|
34
35
|
...props
|
|
35
36
|
});
|
|
@@ -2,6 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../lib/index.js";
|
|
3
3
|
function Skeleton({ className, ...props }) {
|
|
4
4
|
return /*#__PURE__*/ jsx("div", {
|
|
5
|
+
"data-slot": "skeleton",
|
|
5
6
|
className: cn('animate-pulse rounded-md bg-surface-overlay', className),
|
|
6
7
|
...props
|
|
7
8
|
});
|
|
@@ -34,6 +34,7 @@ const Slider = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ classN
|
|
|
34
34
|
const thumbCount = value?.length ?? defaultValue?.length ?? 1;
|
|
35
35
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_slider_namespaceObject.Root, {
|
|
36
36
|
ref: ref,
|
|
37
|
+
"data-slot": "slider",
|
|
37
38
|
className: (0, index_cjs_namespaceObject.cn)('relative flex w-full touch-none select-none items-center min-h-5', className),
|
|
38
39
|
defaultValue: defaultValue,
|
|
39
40
|
value: value,
|
|
@@ -6,6 +6,7 @@ const Slider = /*#__PURE__*/ forwardRef(({ className, defaultValue, value, ...pr
|
|
|
6
6
|
const thumbCount = value?.length ?? defaultValue?.length ?? 1;
|
|
7
7
|
return /*#__PURE__*/ jsxs(Root, {
|
|
8
8
|
ref: ref,
|
|
9
|
+
"data-slot": "slider",
|
|
9
10
|
className: cn('relative flex w-full touch-none select-none items-center min-h-5', className),
|
|
10
11
|
defaultValue: defaultValue,
|
|
11
12
|
value: value,
|
|
@@ -35,6 +35,7 @@ const external_sonner_namespaceObject = require("sonner");
|
|
|
35
35
|
const Toaster = ({ ...props })=>{
|
|
36
36
|
const { theme = 'system' } = (0, external_next_themes_namespaceObject.useTheme)();
|
|
37
37
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_sonner_namespaceObject.Toaster, {
|
|
38
|
+
"data-slot": "sonner",
|
|
38
39
|
theme: theme,
|
|
39
40
|
className: "toaster group",
|
|
40
41
|
icons: {
|
|
@@ -53,6 +53,7 @@ const spinnerVariants = (0, external_class_variance_authority_namespaceObject.cv
|
|
|
53
53
|
});
|
|
54
54
|
const Spinner = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, size, variant, label = 'Loading', showLabel = false, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
55
55
|
ref: ref,
|
|
56
|
+
"data-slot": "spinner",
|
|
56
57
|
role: "status",
|
|
57
58
|
"aria-label": label,
|
|
58
59
|
className: (0, index_cjs_namespaceObject.cn)('flex items-center justify-center gap-2', className),
|
|
@@ -24,6 +24,7 @@ const spinnerVariants = cva('animate-spin', {
|
|
|
24
24
|
});
|
|
25
25
|
const Spinner = /*#__PURE__*/ forwardRef(({ className, size, variant, label = 'Loading', showLabel = false, ...props }, ref)=>/*#__PURE__*/ jsxs("div", {
|
|
26
26
|
ref: ref,
|
|
27
|
+
"data-slot": "spinner",
|
|
27
28
|
role: "status",
|
|
28
29
|
"aria-label": label,
|
|
29
30
|
className: cn('flex items-center justify-center gap-2', className),
|
|
@@ -24,27 +24,39 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
StatsCard: ()=>StatsCard
|
|
27
|
+
StatsCard: ()=>StatsCard,
|
|
28
|
+
statsCardVariants: ()=>statsCardVariants
|
|
28
29
|
});
|
|
29
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
+
const external_class_variance_authority_namespaceObject = require("class-variance-authority");
|
|
30
32
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
31
33
|
const external_react_namespaceObject = require("react");
|
|
32
34
|
const external_card_cjs_namespaceObject = require("./card.cjs");
|
|
33
35
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
const statsCardVariants = (0, external_class_variance_authority_namespaceObject.cva)('', {
|
|
37
|
+
variants: {
|
|
38
|
+
variant: {
|
|
39
|
+
default: '',
|
|
40
|
+
primary: 'border-primary/20 bg-primary/5',
|
|
41
|
+
success: 'border-success/20 bg-success/5',
|
|
42
|
+
warning: 'border-warning/20 bg-warning/5',
|
|
43
|
+
danger: 'border-error/20 bg-error/5'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
variant: 'default'
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
const StatsCard = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ title, value, description, icon, trend, variant, className, ...props }, ref)=>{
|
|
42
51
|
const trendDirection = trend?.direction || (trend && trend.value >= 0 ? 'up' : 'down');
|
|
43
52
|
const TrendIcon = 'up' === trendDirection ? external_lucide_react_namespaceObject.TrendingUp : external_lucide_react_namespaceObject.TrendingDown;
|
|
44
|
-
const trendColorClass = 'up' === trendDirection ? 'text-
|
|
53
|
+
const trendColorClass = 'up' === trendDirection ? 'text-success' : 'text-error';
|
|
45
54
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_card_cjs_namespaceObject.Card, {
|
|
46
55
|
ref: ref,
|
|
47
|
-
|
|
56
|
+
"data-slot": "stats-card",
|
|
57
|
+
className: (0, index_cjs_namespaceObject.cn)(statsCardVariants({
|
|
58
|
+
variant
|
|
59
|
+
}), className),
|
|
48
60
|
...props,
|
|
49
61
|
children: [
|
|
50
62
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_card_cjs_namespaceObject.CardHeader, {
|
|
@@ -94,8 +106,10 @@ const StatsCard = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ tit
|
|
|
94
106
|
});
|
|
95
107
|
StatsCard.displayName = 'StatsCard';
|
|
96
108
|
exports.StatsCard = __webpack_exports__.StatsCard;
|
|
109
|
+
exports.statsCardVariants = __webpack_exports__.statsCardVariants;
|
|
97
110
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
98
|
-
"StatsCard"
|
|
111
|
+
"StatsCard",
|
|
112
|
+
"statsCardVariants"
|
|
99
113
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
100
114
|
Object.defineProperty(exports, '__esModule', {
|
|
101
115
|
value: true
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
+
declare const statsCardVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "warning" | "success" | "primary" | "danger" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface StatsCardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statsCardVariants> {
|
|
3
7
|
title: string;
|
|
4
8
|
value: string | number;
|
|
5
9
|
description?: string;
|
|
@@ -9,7 +13,6 @@ export interface StatsCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
13
|
label?: string;
|
|
10
14
|
direction?: 'up' | 'down';
|
|
11
15
|
};
|
|
12
|
-
variant?: 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
13
16
|
}
|
|
14
17
|
declare const StatsCard: React.ForwardRefExoticComponent<StatsCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
export { StatsCard };
|
|
18
|
+
export { StatsCard, statsCardVariants };
|
|
@@ -1,22 +1,33 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
2
3
|
import { TrendingDown, TrendingUp } from "lucide-react";
|
|
3
4
|
import { forwardRef } from "react";
|
|
4
5
|
import { Card, CardContent, CardHeader, CardTitle } from "./card.js";
|
|
5
6
|
import { cn } from "../../lib/index.js";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
const statsCardVariants = cva('', {
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: '',
|
|
11
|
+
primary: 'border-primary/20 bg-primary/5',
|
|
12
|
+
success: 'border-success/20 bg-success/5',
|
|
13
|
+
warning: 'border-warning/20 bg-warning/5',
|
|
14
|
+
danger: 'border-error/20 bg-error/5'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
variant: 'default'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
const StatsCard = /*#__PURE__*/ forwardRef(({ title, value, description, icon, trend, variant, className, ...props }, ref)=>{
|
|
14
22
|
const trendDirection = trend?.direction || (trend && trend.value >= 0 ? 'up' : 'down');
|
|
15
23
|
const TrendIcon = 'up' === trendDirection ? TrendingUp : TrendingDown;
|
|
16
|
-
const trendColorClass = 'up' === trendDirection ? 'text-
|
|
24
|
+
const trendColorClass = 'up' === trendDirection ? 'text-success' : 'text-error';
|
|
17
25
|
return /*#__PURE__*/ jsxs(Card, {
|
|
18
26
|
ref: ref,
|
|
19
|
-
|
|
27
|
+
"data-slot": "stats-card",
|
|
28
|
+
className: cn(statsCardVariants({
|
|
29
|
+
variant
|
|
30
|
+
}), className),
|
|
20
31
|
...props,
|
|
21
32
|
children: [
|
|
22
33
|
/*#__PURE__*/ jsxs(CardHeader, {
|
|
@@ -65,4 +76,4 @@ const StatsCard = /*#__PURE__*/ forwardRef(({ title, value, description, icon, t
|
|
|
65
76
|
});
|
|
66
77
|
});
|
|
67
78
|
StatsCard.displayName = 'StatsCard';
|
|
68
|
-
export { StatsCard };
|
|
79
|
+
export { StatsCard, statsCardVariants };
|
|
@@ -32,6 +32,7 @@ const external_react_namespaceObject = require("react");
|
|
|
32
32
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
33
33
|
const Stepper = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ steps, currentStep, orientation = 'horizontal', onStepClick, clickableSteps = false, className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
34
34
|
ref: ref,
|
|
35
|
+
"data-slot": "stepper",
|
|
35
36
|
className: (0, index_cjs_namespaceObject.cn)('flex', 'horizontal' === orientation ? 'flex-row items-start' : 'flex-col', className),
|
|
36
37
|
...props,
|
|
37
38
|
children: steps.map((step, index)=>{
|
|
@@ -4,6 +4,7 @@ import { Fragment, forwardRef } from "react";
|
|
|
4
4
|
import { cn } from "../../lib/index.js";
|
|
5
5
|
const Stepper = /*#__PURE__*/ forwardRef(({ steps, currentStep, orientation = 'horizontal', onStepClick, clickableSteps = false, className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
|
|
6
6
|
ref: ref,
|
|
7
|
+
"data-slot": "stepper",
|
|
7
8
|
className: cn('flex', 'horizontal' === orientation ? 'flex-row items-start' : 'flex-col', className),
|
|
8
9
|
...props,
|
|
9
10
|
children: steps.map((step, index)=>{
|
|
@@ -55,6 +55,7 @@ const switchThumbVariants = (0, external_class_variance_authority_namespaceObjec
|
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
const Switch = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, size, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_switch_namespaceObject.Root, {
|
|
58
|
+
"data-slot": "switch",
|
|
58
59
|
className: (0, index_cjs_namespaceObject.cn)(switchVariants({
|
|
59
60
|
size
|
|
60
61
|
}), className),
|
|
@@ -26,6 +26,7 @@ const switchThumbVariants = cva('pointer-events-none block rounded-full bg-backg
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
const Switch = /*#__PURE__*/ forwardRef(({ className, size, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
29
|
+
"data-slot": "switch",
|
|
29
30
|
className: cn(switchVariants({
|
|
30
31
|
size
|
|
31
32
|
}), className),
|