@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
|
@@ -35,9 +35,15 @@ const react_accordion_namespaceObject = require("@radix-ui/react-accordion");
|
|
|
35
35
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
36
36
|
const external_react_namespaceObject = require("react");
|
|
37
37
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
38
|
-
const Accordion = react_accordion_namespaceObject.Root
|
|
38
|
+
const Accordion = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_accordion_namespaceObject.Root, {
|
|
39
|
+
ref: ref,
|
|
40
|
+
"data-slot": "accordion",
|
|
41
|
+
...props
|
|
42
|
+
}));
|
|
43
|
+
Accordion.displayName = 'Accordion';
|
|
39
44
|
const AccordionItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_accordion_namespaceObject.Item, {
|
|
40
45
|
ref: ref,
|
|
46
|
+
"data-slot": "accordion-item",
|
|
41
47
|
className: (0, index_cjs_namespaceObject.cn)('border-b', className),
|
|
42
48
|
...props
|
|
43
49
|
}));
|
|
@@ -46,6 +52,7 @@ const AccordionTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef
|
|
|
46
52
|
className: "flex",
|
|
47
53
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_accordion_namespaceObject.Trigger, {
|
|
48
54
|
ref: ref,
|
|
55
|
+
"data-slot": "accordion-trigger",
|
|
49
56
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-1 cursor-pointer items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180', className),
|
|
50
57
|
...props,
|
|
51
58
|
children: [
|
|
@@ -59,6 +66,7 @@ const AccordionTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef
|
|
|
59
66
|
AccordionTrigger.displayName = react_accordion_namespaceObject.Trigger.displayName;
|
|
60
67
|
const AccordionContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_accordion_namespaceObject.Content, {
|
|
61
68
|
ref: ref,
|
|
69
|
+
"data-slot": "accordion-content",
|
|
62
70
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down data-[state=open]:overflow-visible",
|
|
63
71
|
...props,
|
|
64
72
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const Accordion: React.ForwardRefExoticComponent<(Omit<AccordionPrimitive.AccordionSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitive.AccordionMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -4,9 +4,15 @@ import { Content, Header, Item, Root, Trigger } from "@radix-ui/react-accordion"
|
|
|
4
4
|
import { ChevronDown } from "lucide-react";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { cn } from "../../lib/index.js";
|
|
7
|
-
const Accordion = Root
|
|
7
|
+
const Accordion = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
8
|
+
ref: ref,
|
|
9
|
+
"data-slot": "accordion",
|
|
10
|
+
...props
|
|
11
|
+
}));
|
|
12
|
+
Accordion.displayName = 'Accordion';
|
|
8
13
|
const AccordionItem = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Item, {
|
|
9
14
|
ref: ref,
|
|
15
|
+
"data-slot": "accordion-item",
|
|
10
16
|
className: cn('border-b', className),
|
|
11
17
|
...props
|
|
12
18
|
}));
|
|
@@ -15,6 +21,7 @@ const AccordionTrigger = /*#__PURE__*/ forwardRef(({ className, children, ...pro
|
|
|
15
21
|
className: "flex",
|
|
16
22
|
children: /*#__PURE__*/ jsxs(Trigger, {
|
|
17
23
|
ref: ref,
|
|
24
|
+
"data-slot": "accordion-trigger",
|
|
18
25
|
className: cn('flex flex-1 cursor-pointer items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180', className),
|
|
19
26
|
...props,
|
|
20
27
|
children: [
|
|
@@ -28,6 +35,7 @@ const AccordionTrigger = /*#__PURE__*/ forwardRef(({ className, children, ...pro
|
|
|
28
35
|
AccordionTrigger.displayName = Trigger.displayName;
|
|
29
36
|
const AccordionContent = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ jsx(Content, {
|
|
30
37
|
ref: ref,
|
|
38
|
+
"data-slot": "accordion-content",
|
|
31
39
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down data-[state=open]:overflow-visible",
|
|
32
40
|
...props,
|
|
33
41
|
children: /*#__PURE__*/ jsx("div", {
|
|
@@ -43,11 +43,25 @@ const external_react_namespaceObject = require("react");
|
|
|
43
43
|
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
44
44
|
const external_portal_container_cjs_namespaceObject = require("./portal-container.cjs");
|
|
45
45
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
46
|
-
const AlertDialog = react_alert_dialog_namespaceObject.Root
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
const AlertDialog = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Root, {
|
|
47
|
+
"data-slot": "alert-dialog",
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
AlertDialog.displayName = 'AlertDialog';
|
|
51
|
+
const AlertDialogTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Trigger, {
|
|
52
|
+
ref: ref,
|
|
53
|
+
"data-slot": "alert-dialog-trigger",
|
|
54
|
+
...props
|
|
55
|
+
}));
|
|
56
|
+
AlertDialogTrigger.displayName = react_alert_dialog_namespaceObject.Trigger.displayName;
|
|
57
|
+
const AlertDialogPortal = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Portal, {
|
|
58
|
+
"data-slot": "alert-dialog-portal",
|
|
59
|
+
...props
|
|
60
|
+
});
|
|
61
|
+
AlertDialogPortal.displayName = 'AlertDialogPortal';
|
|
49
62
|
const AlertDialogOverlay = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Overlay, {
|
|
50
|
-
|
|
63
|
+
"data-slot": "alert-dialog-overlay",
|
|
64
|
+
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),
|
|
51
65
|
...props,
|
|
52
66
|
ref: ref
|
|
53
67
|
}));
|
|
@@ -60,6 +74,7 @@ const AlertDialogContent = /*#__PURE__*/ external_react_namespaceObject.forwardR
|
|
|
60
74
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AlertDialogOverlay, {}),
|
|
61
75
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content, {
|
|
62
76
|
ref: ref,
|
|
77
|
+
"data-slot": "alert-dialog-content",
|
|
63
78
|
className: (0, index_cjs_namespaceObject.cn)('fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg', className),
|
|
64
79
|
...props
|
|
65
80
|
})
|
|
@@ -68,35 +83,41 @@ const AlertDialogContent = /*#__PURE__*/ external_react_namespaceObject.forwardR
|
|
|
68
83
|
});
|
|
69
84
|
AlertDialogContent.displayName = react_alert_dialog_namespaceObject.Content.displayName;
|
|
70
85
|
const AlertDialogHeader = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
86
|
+
"data-slot": "alert-dialog-header",
|
|
71
87
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-col space-y-2 text-center sm:text-left', className),
|
|
72
88
|
...props
|
|
73
89
|
});
|
|
74
90
|
AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
75
91
|
const AlertDialogFooter = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
92
|
+
"data-slot": "alert-dialog-footer",
|
|
76
93
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className),
|
|
77
94
|
...props
|
|
78
95
|
});
|
|
79
96
|
AlertDialogFooter.displayName = 'AlertDialogFooter';
|
|
80
97
|
const AlertDialogTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Title, {
|
|
81
98
|
ref: ref,
|
|
99
|
+
"data-slot": "alert-dialog-title",
|
|
82
100
|
className: (0, index_cjs_namespaceObject.cn)('text-lg font-semibold', className),
|
|
83
101
|
...props
|
|
84
102
|
}));
|
|
85
103
|
AlertDialogTitle.displayName = react_alert_dialog_namespaceObject.Title.displayName;
|
|
86
104
|
const AlertDialogDescription = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Description, {
|
|
87
105
|
ref: ref,
|
|
106
|
+
"data-slot": "alert-dialog-description",
|
|
88
107
|
className: (0, index_cjs_namespaceObject.cn)('text-sm text-muted-foreground', className),
|
|
89
108
|
...props
|
|
90
109
|
}));
|
|
91
110
|
AlertDialogDescription.displayName = react_alert_dialog_namespaceObject.Description.displayName;
|
|
92
111
|
const AlertDialogAction = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Action, {
|
|
93
112
|
ref: ref,
|
|
113
|
+
"data-slot": "alert-dialog-action",
|
|
94
114
|
className: (0, index_cjs_namespaceObject.cn)((0, external_button_cjs_namespaceObject.buttonVariants)(), className),
|
|
95
115
|
...props
|
|
96
116
|
}));
|
|
97
117
|
AlertDialogAction.displayName = react_alert_dialog_namespaceObject.Action.displayName;
|
|
98
118
|
const AlertDialogCancel = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Cancel, {
|
|
99
119
|
ref: ref,
|
|
120
|
+
"data-slot": "alert-dialog-cancel",
|
|
100
121
|
className: (0, index_cjs_namespaceObject.cn)((0, external_button_cjs_namespaceObject.buttonVariants)({
|
|
101
122
|
variant: 'outline'
|
|
102
123
|
}), 'mt-2 sm:mt-0', className),
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { type PortalContainerOverride } from './portal-container';
|
|
4
|
-
declare const AlertDialog:
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const AlertDialog: {
|
|
5
|
+
(props: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
declare const AlertDialogPortal: {
|
|
10
|
+
(props: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
7
13
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
14
|
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
15
|
container?: PortalContainerOverride;
|
|
@@ -5,11 +5,25 @@ import { forwardRef } from "react";
|
|
|
5
5
|
import { buttonVariants } from "./button.js";
|
|
6
6
|
import { useResolvedPortalContainer } from "./portal-container.js";
|
|
7
7
|
import { cn } from "../../lib/index.js";
|
|
8
|
-
const AlertDialog = Root
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const AlertDialog = (props)=>/*#__PURE__*/ jsx(Root, {
|
|
9
|
+
"data-slot": "alert-dialog",
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
AlertDialog.displayName = 'AlertDialog';
|
|
13
|
+
const AlertDialogTrigger = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Trigger, {
|
|
14
|
+
ref: ref,
|
|
15
|
+
"data-slot": "alert-dialog-trigger",
|
|
16
|
+
...props
|
|
17
|
+
}));
|
|
18
|
+
AlertDialogTrigger.displayName = Trigger.displayName;
|
|
19
|
+
const AlertDialogPortal = (props)=>/*#__PURE__*/ jsx(Portal, {
|
|
20
|
+
"data-slot": "alert-dialog-portal",
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
AlertDialogPortal.displayName = 'AlertDialogPortal';
|
|
11
24
|
const AlertDialogOverlay = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Overlay, {
|
|
12
|
-
|
|
25
|
+
"data-slot": "alert-dialog-overlay",
|
|
26
|
+
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),
|
|
13
27
|
...props,
|
|
14
28
|
ref: ref
|
|
15
29
|
}));
|
|
@@ -22,6 +36,7 @@ const AlertDialogContent = /*#__PURE__*/ forwardRef(({ className, container, ...
|
|
|
22
36
|
/*#__PURE__*/ jsx(AlertDialogOverlay, {}),
|
|
23
37
|
/*#__PURE__*/ jsx(Content, {
|
|
24
38
|
ref: ref,
|
|
39
|
+
"data-slot": "alert-dialog-content",
|
|
25
40
|
className: cn('fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg', className),
|
|
26
41
|
...props
|
|
27
42
|
})
|
|
@@ -30,35 +45,41 @@ const AlertDialogContent = /*#__PURE__*/ forwardRef(({ className, container, ...
|
|
|
30
45
|
});
|
|
31
46
|
AlertDialogContent.displayName = Content.displayName;
|
|
32
47
|
const AlertDialogHeader = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
48
|
+
"data-slot": "alert-dialog-header",
|
|
33
49
|
className: cn('flex flex-col space-y-2 text-center sm:text-left', className),
|
|
34
50
|
...props
|
|
35
51
|
});
|
|
36
52
|
AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
37
53
|
const AlertDialogFooter = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
54
|
+
"data-slot": "alert-dialog-footer",
|
|
38
55
|
className: cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className),
|
|
39
56
|
...props
|
|
40
57
|
});
|
|
41
58
|
AlertDialogFooter.displayName = 'AlertDialogFooter';
|
|
42
59
|
const AlertDialogTitle = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Title, {
|
|
43
60
|
ref: ref,
|
|
61
|
+
"data-slot": "alert-dialog-title",
|
|
44
62
|
className: cn('text-lg font-semibold', className),
|
|
45
63
|
...props
|
|
46
64
|
}));
|
|
47
65
|
AlertDialogTitle.displayName = Title.displayName;
|
|
48
66
|
const AlertDialogDescription = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Description, {
|
|
49
67
|
ref: ref,
|
|
68
|
+
"data-slot": "alert-dialog-description",
|
|
50
69
|
className: cn('text-sm text-muted-foreground', className),
|
|
51
70
|
...props
|
|
52
71
|
}));
|
|
53
72
|
AlertDialogDescription.displayName = Description.displayName;
|
|
54
73
|
const AlertDialogAction = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Action, {
|
|
55
74
|
ref: ref,
|
|
75
|
+
"data-slot": "alert-dialog-action",
|
|
56
76
|
className: cn(buttonVariants(), className),
|
|
57
77
|
...props
|
|
58
78
|
}));
|
|
59
79
|
AlertDialogAction.displayName = Action.displayName;
|
|
60
80
|
const AlertDialogCancel = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Cancel, {
|
|
61
81
|
ref: ref,
|
|
82
|
+
"data-slot": "alert-dialog-cancel",
|
|
62
83
|
className: cn(buttonVariants({
|
|
63
84
|
variant: 'outline'
|
|
64
85
|
}), 'mt-2 sm:mt-0', className),
|
|
@@ -48,6 +48,7 @@ const alertVariants = (0, external_class_variance_authority_namespaceObject.cva)
|
|
|
48
48
|
});
|
|
49
49
|
const Alert = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, variant, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
50
50
|
ref: ref,
|
|
51
|
+
"data-slot": "alert",
|
|
51
52
|
role: "alert",
|
|
52
53
|
className: (0, index_cjs_namespaceObject.cn)(alertVariants({
|
|
53
54
|
variant
|
|
@@ -57,12 +58,14 @@ const Alert = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ classNa
|
|
|
57
58
|
Alert.displayName = 'Alert';
|
|
58
59
|
const AlertTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h5", {
|
|
59
60
|
ref: ref,
|
|
61
|
+
"data-slot": "alert-title",
|
|
60
62
|
className: (0, index_cjs_namespaceObject.cn)('text-xs font-semibold leading-4', className),
|
|
61
63
|
...props
|
|
62
64
|
}));
|
|
63
65
|
AlertTitle.displayName = 'AlertTitle';
|
|
64
66
|
const AlertDescription = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
65
67
|
ref: ref,
|
|
68
|
+
"data-slot": "alert-description",
|
|
66
69
|
className: (0, index_cjs_namespaceObject.cn)('mt-1 text-xs leading-4 text-foreground-muted [&_p+p]:mt-1 [&_p]:leading-4', className),
|
|
67
70
|
...props
|
|
68
71
|
}));
|
|
@@ -18,6 +18,7 @@ const alertVariants = cva('relative w-full rounded-xl border p-3 text-foreground
|
|
|
18
18
|
});
|
|
19
19
|
const Alert = /*#__PURE__*/ forwardRef(({ className, variant, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
|
|
20
20
|
ref: ref,
|
|
21
|
+
"data-slot": "alert",
|
|
21
22
|
role: "alert",
|
|
22
23
|
className: cn(alertVariants({
|
|
23
24
|
variant
|
|
@@ -27,12 +28,14 @@ const Alert = /*#__PURE__*/ forwardRef(({ className, variant, ...props }, ref)=>
|
|
|
27
28
|
Alert.displayName = 'Alert';
|
|
28
29
|
const AlertTitle = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("h5", {
|
|
29
30
|
ref: ref,
|
|
31
|
+
"data-slot": "alert-title",
|
|
30
32
|
className: cn('text-xs font-semibold leading-4', className),
|
|
31
33
|
...props
|
|
32
34
|
}));
|
|
33
35
|
AlertTitle.displayName = 'AlertTitle';
|
|
34
36
|
const AlertDescription = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
|
|
35
37
|
ref: ref,
|
|
38
|
+
"data-slot": "alert-description",
|
|
36
39
|
className: cn('mt-1 text-xs leading-4 text-foreground-muted [&_p+p]:mt-1 [&_p]:leading-4', className),
|
|
37
40
|
...props
|
|
38
41
|
}));
|
|
@@ -27,8 +27,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27
27
|
__webpack_require__.d(__webpack_exports__, {
|
|
28
28
|
AspectRatio: ()=>AspectRatio
|
|
29
29
|
});
|
|
30
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
31
|
const react_aspect_ratio_namespaceObject = require("@radix-ui/react-aspect-ratio");
|
|
31
|
-
const
|
|
32
|
+
const external_react_namespaceObject = require("react");
|
|
33
|
+
const AspectRatio = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_aspect_ratio_namespaceObject.Root, {
|
|
34
|
+
ref: ref,
|
|
35
|
+
"data-slot": "aspect-ratio",
|
|
36
|
+
...props
|
|
37
|
+
}));
|
|
38
|
+
AspectRatio.displayName = 'AspectRatio';
|
|
32
39
|
exports.AspectRatio = __webpack_exports__.AspectRatio;
|
|
33
40
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
34
41
|
"AspectRatio"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
2
|
-
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const AspectRatio: React.ForwardRefExoticComponent<Omit<AspectRatioPrimitive.AspectRatioProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
4
|
export { AspectRatio };
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
3
|
import { Root } from "@radix-ui/react-aspect-ratio";
|
|
3
|
-
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
const AspectRatio = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
6
|
+
ref: ref,
|
|
7
|
+
"data-slot": "aspect-ratio",
|
|
8
|
+
...props
|
|
9
|
+
}));
|
|
10
|
+
AspectRatio.displayName = 'AspectRatio';
|
|
4
11
|
export { AspectRatio };
|
|
@@ -26,26 +26,45 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
AvatarFallback: ()=>AvatarFallback,
|
|
28
28
|
Avatar: ()=>Avatar,
|
|
29
|
-
AvatarImage: ()=>AvatarImage
|
|
29
|
+
AvatarImage: ()=>AvatarImage,
|
|
30
|
+
avatarVariants: ()=>avatarVariants
|
|
30
31
|
});
|
|
31
32
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
33
|
const react_avatar_namespaceObject = require("@radix-ui/react-avatar");
|
|
34
|
+
const external_class_variance_authority_namespaceObject = require("class-variance-authority");
|
|
33
35
|
const external_react_namespaceObject = require("react");
|
|
34
36
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
35
|
-
const
|
|
37
|
+
const avatarVariants = (0, external_class_variance_authority_namespaceObject.cva)('relative flex shrink-0 overflow-hidden rounded-full', {
|
|
38
|
+
variants: {
|
|
39
|
+
size: {
|
|
40
|
+
sm: 'h-6 w-6 text-xs',
|
|
41
|
+
default: 'h-10 w-10 text-sm',
|
|
42
|
+
lg: 'h-14 w-14 text-base'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
defaultVariants: {
|
|
46
|
+
size: 'default'
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const Avatar = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, size, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Root, {
|
|
36
50
|
ref: ref,
|
|
37
|
-
|
|
51
|
+
"data-slot": "avatar",
|
|
52
|
+
className: (0, index_cjs_namespaceObject.cn)(avatarVariants({
|
|
53
|
+
size
|
|
54
|
+
}), className),
|
|
38
55
|
...props
|
|
39
56
|
}));
|
|
40
57
|
Avatar.displayName = react_avatar_namespaceObject.Root.displayName;
|
|
41
58
|
const AvatarImage = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Image, {
|
|
42
59
|
ref: ref,
|
|
60
|
+
"data-slot": "avatar-image",
|
|
43
61
|
className: (0, index_cjs_namespaceObject.cn)('aspect-square h-full w-full', className),
|
|
44
62
|
...props
|
|
45
63
|
}));
|
|
46
64
|
AvatarImage.displayName = react_avatar_namespaceObject.Image.displayName;
|
|
47
65
|
const AvatarFallback = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Fallback, {
|
|
48
66
|
ref: ref,
|
|
67
|
+
"data-slot": "avatar-fallback",
|
|
49
68
|
className: (0, index_cjs_namespaceObject.cn)('flex h-full w-full items-center justify-center rounded-full bg-muted', className),
|
|
50
69
|
...props
|
|
51
70
|
}));
|
|
@@ -53,10 +72,12 @@ AvatarFallback.displayName = react_avatar_namespaceObject.Fallback.displayName;
|
|
|
53
72
|
exports.Avatar = __webpack_exports__.Avatar;
|
|
54
73
|
exports.AvatarFallback = __webpack_exports__.AvatarFallback;
|
|
55
74
|
exports.AvatarImage = __webpack_exports__.AvatarImage;
|
|
75
|
+
exports.avatarVariants = __webpack_exports__.avatarVariants;
|
|
56
76
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
57
77
|
"Avatar",
|
|
58
78
|
"AvatarFallback",
|
|
59
|
-
"AvatarImage"
|
|
79
|
+
"AvatarImage",
|
|
80
|
+
"avatarVariants"
|
|
60
81
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
61
82
|
Object.defineProperty(exports, '__esModule', {
|
|
62
83
|
value: true
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
declare const
|
|
4
|
+
declare const avatarVariants: (props?: ({
|
|
5
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
|
|
8
|
+
}
|
|
9
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
4
10
|
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
5
11
|
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
-
export { Avatar, AvatarImage, AvatarFallback };
|
|
12
|
+
export { Avatar, AvatarImage, AvatarFallback, avatarVariants };
|
|
@@ -1,23 +1,41 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Fallback, Image, Root } from "@radix-ui/react-avatar";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
3
4
|
import { forwardRef } from "react";
|
|
4
5
|
import { cn } from "../../lib/index.js";
|
|
5
|
-
const
|
|
6
|
+
const avatarVariants = cva('relative flex shrink-0 overflow-hidden rounded-full', {
|
|
7
|
+
variants: {
|
|
8
|
+
size: {
|
|
9
|
+
sm: 'h-6 w-6 text-xs',
|
|
10
|
+
default: 'h-10 w-10 text-sm',
|
|
11
|
+
lg: 'h-14 w-14 text-base'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
size: 'default'
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
const Avatar = /*#__PURE__*/ forwardRef(({ className, size, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
6
19
|
ref: ref,
|
|
7
|
-
|
|
20
|
+
"data-slot": "avatar",
|
|
21
|
+
className: cn(avatarVariants({
|
|
22
|
+
size
|
|
23
|
+
}), className),
|
|
8
24
|
...props
|
|
9
25
|
}));
|
|
10
26
|
Avatar.displayName = Root.displayName;
|
|
11
27
|
const AvatarImage = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Image, {
|
|
12
28
|
ref: ref,
|
|
29
|
+
"data-slot": "avatar-image",
|
|
13
30
|
className: cn('aspect-square h-full w-full', className),
|
|
14
31
|
...props
|
|
15
32
|
}));
|
|
16
33
|
AvatarImage.displayName = Image.displayName;
|
|
17
34
|
const AvatarFallback = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Fallback, {
|
|
18
35
|
ref: ref,
|
|
36
|
+
"data-slot": "avatar-fallback",
|
|
19
37
|
className: cn('flex h-full w-full items-center justify-center rounded-full bg-muted', className),
|
|
20
38
|
...props
|
|
21
39
|
}));
|
|
22
40
|
AvatarFallback.displayName = Fallback.displayName;
|
|
23
|
-
export { Avatar, AvatarFallback, AvatarImage };
|
|
41
|
+
export { Avatar, AvatarFallback, AvatarImage, avatarVariants };
|
|
@@ -50,6 +50,7 @@ const badgeVariants = (0, external_class_variance_authority_namespaceObject.cva)
|
|
|
50
50
|
});
|
|
51
51
|
const Badge = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, variant, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
52
52
|
ref: ref,
|
|
53
|
+
"data-slot": "badge",
|
|
53
54
|
className: (0, index_cjs_namespaceObject.cn)(badgeVariants({
|
|
54
55
|
variant
|
|
55
56
|
}), className),
|
|
@@ -21,6 +21,7 @@ const badgeVariants = cva('inline-flex items-center rounded-full border px-2.5 p
|
|
|
21
21
|
});
|
|
22
22
|
const Badge = /*#__PURE__*/ forwardRef(({ className, variant, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
|
|
23
23
|
ref: ref,
|
|
24
|
+
"data-slot": "badge",
|
|
24
25
|
className: cn(badgeVariants({
|
|
25
26
|
variant
|
|
26
27
|
}), className),
|
|
@@ -39,18 +39,21 @@ const external_react_namespaceObject = require("react");
|
|
|
39
39
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
40
40
|
const Breadcrumb = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("nav", {
|
|
41
41
|
ref: ref,
|
|
42
|
+
"data-slot": "breadcrumb",
|
|
42
43
|
"aria-label": "breadcrumb",
|
|
43
44
|
...props
|
|
44
45
|
}));
|
|
45
46
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
46
47
|
const BreadcrumbList = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("ol", {
|
|
47
48
|
ref: ref,
|
|
49
|
+
"data-slot": "breadcrumb-list",
|
|
48
50
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5', className),
|
|
49
51
|
...props
|
|
50
52
|
}));
|
|
51
53
|
BreadcrumbList.displayName = 'BreadcrumbList';
|
|
52
54
|
const BreadcrumbItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("li", {
|
|
53
55
|
ref: ref,
|
|
56
|
+
"data-slot": "breadcrumb-item",
|
|
54
57
|
className: (0, index_cjs_namespaceObject.cn)('inline-flex items-center gap-1.5', className),
|
|
55
58
|
...props
|
|
56
59
|
}));
|
|
@@ -59,6 +62,7 @@ const BreadcrumbLink = /*#__PURE__*/ external_react_namespaceObject.forwardRef((
|
|
|
59
62
|
const Comp = asChild ? react_slot_namespaceObject.Slot : 'a';
|
|
60
63
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Comp, {
|
|
61
64
|
ref: ref,
|
|
65
|
+
"data-slot": "breadcrumb-link",
|
|
62
66
|
className: (0, index_cjs_namespaceObject.cn)('transition-colors hover:text-foreground', className),
|
|
63
67
|
...props
|
|
64
68
|
});
|
|
@@ -66,6 +70,7 @@ const BreadcrumbLink = /*#__PURE__*/ external_react_namespaceObject.forwardRef((
|
|
|
66
70
|
BreadcrumbLink.displayName = 'BreadcrumbLink';
|
|
67
71
|
const BreadcrumbPage = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
68
72
|
ref: ref,
|
|
73
|
+
"data-slot": "breadcrumb-page",
|
|
69
74
|
"aria-current": "page",
|
|
70
75
|
"aria-disabled": "true",
|
|
71
76
|
className: (0, index_cjs_namespaceObject.cn)('font-normal text-foreground', className),
|
|
@@ -73,6 +78,7 @@ const BreadcrumbPage = /*#__PURE__*/ external_react_namespaceObject.forwardRef((
|
|
|
73
78
|
}));
|
|
74
79
|
BreadcrumbPage.displayName = 'BreadcrumbPage';
|
|
75
80
|
const BreadcrumbSeparator = ({ children, className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("li", {
|
|
81
|
+
"data-slot": "breadcrumb-separator",
|
|
76
82
|
role: "presentation",
|
|
77
83
|
"aria-hidden": "true",
|
|
78
84
|
className: (0, index_cjs_namespaceObject.cn)('[&>svg]:w-3.5 [&>svg]:h-3.5', className),
|
|
@@ -81,6 +87,7 @@ const BreadcrumbSeparator = ({ children, className, ...props })=>/*#__PURE__*/ (
|
|
|
81
87
|
});
|
|
82
88
|
BreadcrumbSeparator.displayName = 'BreadcrumbSeparator';
|
|
83
89
|
const BreadcrumbEllipsis = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
|
|
90
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
84
91
|
role: "presentation",
|
|
85
92
|
"aria-hidden": "true",
|
|
86
93
|
className: (0, index_cjs_namespaceObject.cn)('flex h-9 w-9 items-center justify-center', className),
|
|
@@ -5,18 +5,21 @@ import { forwardRef } from "react";
|
|
|
5
5
|
import { cn } from "../../lib/index.js";
|
|
6
6
|
const Breadcrumb = /*#__PURE__*/ forwardRef(({ ...props }, ref)=>/*#__PURE__*/ jsx("nav", {
|
|
7
7
|
ref: ref,
|
|
8
|
+
"data-slot": "breadcrumb",
|
|
8
9
|
"aria-label": "breadcrumb",
|
|
9
10
|
...props
|
|
10
11
|
}));
|
|
11
12
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
12
13
|
const BreadcrumbList = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("ol", {
|
|
13
14
|
ref: ref,
|
|
15
|
+
"data-slot": "breadcrumb-list",
|
|
14
16
|
className: cn('flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5', className),
|
|
15
17
|
...props
|
|
16
18
|
}));
|
|
17
19
|
BreadcrumbList.displayName = 'BreadcrumbList';
|
|
18
20
|
const BreadcrumbItem = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("li", {
|
|
19
21
|
ref: ref,
|
|
22
|
+
"data-slot": "breadcrumb-item",
|
|
20
23
|
className: cn('inline-flex items-center gap-1.5', className),
|
|
21
24
|
...props
|
|
22
25
|
}));
|
|
@@ -25,6 +28,7 @@ const BreadcrumbLink = /*#__PURE__*/ forwardRef(({ asChild, className, ...props
|
|
|
25
28
|
const Comp = asChild ? Slot : 'a';
|
|
26
29
|
return /*#__PURE__*/ jsx(Comp, {
|
|
27
30
|
ref: ref,
|
|
31
|
+
"data-slot": "breadcrumb-link",
|
|
28
32
|
className: cn('transition-colors hover:text-foreground', className),
|
|
29
33
|
...props
|
|
30
34
|
});
|
|
@@ -32,6 +36,7 @@ const BreadcrumbLink = /*#__PURE__*/ forwardRef(({ asChild, className, ...props
|
|
|
32
36
|
BreadcrumbLink.displayName = 'BreadcrumbLink';
|
|
33
37
|
const BreadcrumbPage = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("span", {
|
|
34
38
|
ref: ref,
|
|
39
|
+
"data-slot": "breadcrumb-page",
|
|
35
40
|
"aria-current": "page",
|
|
36
41
|
"aria-disabled": "true",
|
|
37
42
|
className: cn('font-normal text-foreground', className),
|
|
@@ -39,6 +44,7 @@ const BreadcrumbPage = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>
|
|
|
39
44
|
}));
|
|
40
45
|
BreadcrumbPage.displayName = 'BreadcrumbPage';
|
|
41
46
|
const BreadcrumbSeparator = ({ children, className, ...props })=>/*#__PURE__*/ jsx("li", {
|
|
47
|
+
"data-slot": "breadcrumb-separator",
|
|
42
48
|
role: "presentation",
|
|
43
49
|
"aria-hidden": "true",
|
|
44
50
|
className: cn('[&>svg]:w-3.5 [&>svg]:h-3.5', className),
|
|
@@ -47,6 +53,7 @@ const BreadcrumbSeparator = ({ children, className, ...props })=>/*#__PURE__*/ j
|
|
|
47
53
|
});
|
|
48
54
|
BreadcrumbSeparator.displayName = 'BreadcrumbSeparator';
|
|
49
55
|
const BreadcrumbEllipsis = ({ className, ...props })=>/*#__PURE__*/ jsxs("span", {
|
|
56
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
50
57
|
role: "presentation",
|
|
51
58
|
"aria-hidden": "true",
|
|
52
59
|
className: cn('flex h-9 w-9 items-center justify-center', className),
|
|
@@ -34,6 +34,7 @@ const external_react_namespaceObject = require("react");
|
|
|
34
34
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
35
35
|
const ButtonGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, orientation = 'horizontal', ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
36
36
|
ref: ref,
|
|
37
|
+
"data-slot": "button-group",
|
|
37
38
|
role: "group",
|
|
38
39
|
"aria-label": "Button group",
|
|
39
40
|
className: (0, index_cjs_namespaceObject.cn)('inline-flex', 'horizontal' === orientation ? '[&>button]:rounded-none [&>button]:border-r-0 [&>button:first-child]:rounded-l-md [&>button:last-child]:rounded-r-md [&>button:last-child]:border-r future:[&>button:first-child]:rounded-l-lg future:[&>button:last-child]:rounded-r-lg' : 'flex-col [&>button]:rounded-none [&>button]:border-b-0 [&>button:first-child]:rounded-t-md [&>button:last-child]:rounded-b-md [&>button:last-child]:border-b future:[&>button:first-child]:rounded-t-lg future:[&>button:last-child]:rounded-b-lg', className),
|
|
@@ -42,6 +43,7 @@ const ButtonGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ c
|
|
|
42
43
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
43
44
|
const ButtonGroupSeparator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, orientation = 'vertical', ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("hr", {
|
|
44
45
|
ref: ref,
|
|
46
|
+
"data-slot": "button-group-separator",
|
|
45
47
|
"aria-orientation": orientation,
|
|
46
48
|
"aria-label": "Separator",
|
|
47
49
|
className: (0, index_cjs_namespaceObject.cn)('bg-border border-0 m-0', 'vertical' === orientation ? 'w-px self-stretch' : 'h-px self-stretch', className),
|
|
@@ -52,6 +54,7 @@ const ButtonGroupText = /*#__PURE__*/ external_react_namespaceObject.forwardRef(
|
|
|
52
54
|
const Comp = asChild ? react_slot_namespaceObject.Slot : 'span';
|
|
53
55
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Comp, {
|
|
54
56
|
ref: ref,
|
|
57
|
+
"data-slot": "button-group-text",
|
|
55
58
|
className: (0, index_cjs_namespaceObject.cn)('inline-flex items-center justify-center px-3 text-sm font-medium text-muted-foreground', className),
|
|
56
59
|
...props
|
|
57
60
|
});
|