@opensearch-project/oui 2.0.0-alpha.1 → 2.0.0-alpha.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/CHANGELOG.md +19 -2
- package/dist/components/custom/avatar.d.ts +2 -2
- package/dist/components/custom/avatar.d.ts.map +1 -1
- package/dist/components/custom/avatar.js +6 -21
- package/dist/components/custom/avatar.js.map +1 -1
- package/dist/components/custom/breadcrumb.d.ts +1 -1
- package/dist/components/custom/breadcrumb.d.ts.map +1 -1
- package/dist/components/custom/breadcrumb.js +3 -18
- package/dist/components/custom/breadcrumb.js.map +1 -1
- package/dist/components/custom/button-group.d.ts +2 -2
- package/dist/components/custom/button-group.d.ts.map +1 -1
- package/dist/components/custom/button-group.js +5 -20
- package/dist/components/custom/button-group.js.map +1 -1
- package/dist/components/custom/button.d.ts +10 -3
- package/dist/components/custom/button.d.ts.map +1 -1
- package/dist/components/custom/button.js +16 -23
- package/dist/components/custom/button.js.map +1 -1
- package/dist/components/custom/checkbox.d.ts +1 -1
- package/dist/components/custom/checkbox.d.ts.map +1 -1
- package/dist/components/custom/checkbox.js +3 -18
- package/dist/components/custom/checkbox.js.map +1 -1
- package/dist/components/custom/combobox.d.ts +1 -1
- package/dist/components/custom/combobox.d.ts.map +1 -1
- package/dist/components/custom/combobox.js +47 -81
- package/dist/components/custom/combobox.js.map +1 -1
- package/dist/components/custom/context-menu.d.ts +4 -4
- package/dist/components/custom/context-menu.d.ts.map +1 -1
- package/dist/components/custom/context-menu.js +9 -20
- package/dist/components/custom/context-menu.js.map +1 -1
- package/dist/components/custom/pagination.d.ts +4 -4
- package/dist/components/custom/pagination.d.ts.map +1 -1
- package/dist/components/custom/pagination.js +9 -28
- package/dist/components/custom/pagination.js.map +1 -1
- package/dist/components/custom/progress.js +9 -19
- package/dist/components/custom/progress.js.map +1 -1
- package/dist/components/custom/radio-group.d.ts +2 -2
- package/dist/components/custom/radio-group.d.ts.map +1 -1
- package/dist/components/custom/radio-group.js +9 -24
- package/dist/components/custom/radio-group.js.map +1 -1
- package/dist/components/custom/select.d.ts +1 -1
- package/dist/components/custom/select.d.ts.map +1 -1
- package/dist/components/custom/select.js +3 -18
- package/dist/components/custom/select.js.map +1 -1
- package/dist/components/custom/switch.d.ts +1 -1
- package/dist/components/custom/switch.d.ts.map +1 -1
- package/dist/components/custom/switch.js +9 -29
- package/dist/components/custom/switch.js.map +1 -1
- package/dist/components/custom/tabs.d.ts +1 -1
- package/dist/components/custom/tabs.d.ts.map +1 -1
- package/dist/components/custom/tabs.js +6 -17
- package/dist/components/custom/tabs.js.map +1 -1
- package/dist/components/ui/accordion.d.ts +4 -4
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +8 -27
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +11 -11
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +20 -33
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts +3 -3
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +8 -23
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +1 -1
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio.js +2 -13
- package/dist/components/ui/aspect-ratio.js.map +1 -1
- package/dist/components/ui/avatar.d.ts +3 -3
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +7 -22
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +5 -20
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +7 -7
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +15 -32
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/button-group.d.ts +3 -3
- package/dist/components/ui/button-group.d.ts.map +1 -1
- package/dist/components/ui/button-group.js +9 -24
- package/dist/components/ui/button-group.js.map +1 -1
- package/dist/components/ui/button.d.ts +5 -2
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +12 -21
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.d.ts +2 -2
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +20 -38
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.d.ts +7 -7
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +15 -30
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/carousel.d.ts +5 -5
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +40 -56
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +3 -20
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/collapsible.d.ts +3 -3
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js +4 -15
- package/dist/components/ui/collapsible.js.map +1 -1
- package/dist/components/ui/command.d.ts +9 -9
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +18 -36
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +15 -15
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +25 -51
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +10 -10
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +17 -38
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.d.ts +10 -10
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js +17 -32
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +15 -15
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +25 -51
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/form.d.ts +6 -6
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/form.js +35 -47
- package/dist/components/ui/form.js.map +1 -1
- package/dist/components/ui/hover-card.d.ts +3 -3
- package/dist/components/ui/hover-card.d.ts.map +1 -1
- package/dist/components/ui/hover-card.js +5 -17
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts +4 -4
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +14 -28
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +3 -18
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/label.d.ts +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js +3 -14
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.d.ts +16 -16
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +28 -54
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts +8 -8
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +18 -40
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination.d.ts +7 -7
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +15 -36
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.d.ts +4 -4
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +6 -18
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +1 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +3 -19
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/radio-group.d.ts +2 -2
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +5 -18
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/resizable.d.ts +3 -3
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +6 -22
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +2 -2
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.js +6 -21
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.d.ts +10 -10
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +20 -48
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.d.ts +1 -1
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/separator.js +3 -14
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.d.ts +8 -8
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +21 -42
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/sidebar.d.ts +23 -23
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +108 -134
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/skeleton.js +3 -18
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/slider.d.ts +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js +8 -23
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/sonner.d.ts +1 -2
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/sonner.js +9 -24
- package/dist/components/ui/sonner.js.map +1 -1
- package/dist/components/ui/spinner.d.ts +1 -1
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner.js +3 -18
- package/dist/components/ui/spinner.js.map +1 -1
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +3 -19
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.d.ts +8 -8
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +17 -29
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +4 -4
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +9 -24
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.d.ts +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js +3 -18
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +2 -2
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +8 -19
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +4 -15
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/tooltip.d.ts +4 -4
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +7 -26
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/hooks/use-mobile.js +6 -6
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/lib/react-compat.js +5 -5
- package/dist/lib/react-compat.js.map +1 -1
- package/dist/lib/utils.js +1 -5
- package/dist/lib/utils.js.map +1 -1
- package/dist/style.css +82 -49
- package/dist/style.scoped.css +116 -87
- package/package.json +7 -12
|
@@ -3,17 +3,6 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
"use client";
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
6
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
7
|
var t = {};
|
|
19
8
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -25,22 +14,18 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
14
|
}
|
|
26
15
|
return t;
|
|
27
16
|
};
|
|
28
|
-
import
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
18
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
30
19
|
import { cn } from "../../lib/utils";
|
|
31
20
|
function ScrollArea(_a) {
|
|
32
|
-
var
|
|
33
|
-
return (
|
|
34
|
-
React.createElement(ScrollAreaPrimitive.Viewport, { "data-slot": "scroll-area-viewport", className: "oui:focus-visible:ring-ring/50 oui:size-full oui:rounded-[inherit] oui:transition-[color,box-shadow] oui:outline-none oui:focus-visible:ring-[3px] oui:focus-visible:outline-1" }, children),
|
|
35
|
-
React.createElement(ScrollBar, null),
|
|
36
|
-
React.createElement(ScrollAreaPrimitive.Corner, null)));
|
|
21
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
22
|
+
return (_jsxs(ScrollAreaPrimitive.Root, Object.assign({ "data-slot": "scroll-area", className: cn("oui:relative", className) }, props, { children: [_jsx(ScrollAreaPrimitive.Viewport, { "data-slot": "scroll-area-viewport", className: "oui:focus-visible:ring-ring/50 oui:size-full oui:rounded-[inherit] oui:transition-[color,box-shadow] oui:outline-none oui:focus-visible:ring-[3px] oui:focus-visible:outline-1", children: children }), _jsx(ScrollBar, {}), _jsx(ScrollAreaPrimitive.Corner, {})] })));
|
|
37
23
|
}
|
|
38
24
|
function ScrollBar(_a) {
|
|
39
|
-
var
|
|
40
|
-
return (
|
|
25
|
+
var { className, orientation = "vertical" } = _a, props = __rest(_a, ["className", "orientation"]);
|
|
26
|
+
return (_jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, Object.assign({ "data-slot": "scroll-area-scrollbar", orientation: orientation, className: cn("oui:flex oui:touch-none oui:p-px oui:transition-colors oui:select-none", orientation === "vertical" &&
|
|
41
27
|
"oui:h-full oui:w-2.5 oui:border-l oui:border-l-transparent", orientation === "horizontal" &&
|
|
42
|
-
"oui:h-2.5 oui:flex-col oui:border-t oui:border-t-transparent", className) }, props)
|
|
43
|
-
React.createElement(ScrollAreaPrimitive.ScrollAreaThumb, { "data-slot": "scroll-area-thumb", className: "oui:bg-border oui:relative oui:flex-1 oui:rounded-full" })));
|
|
28
|
+
"oui:h-2.5 oui:flex-col oui:border-t oui:border-t-transparent", className) }, props, { children: _jsx(ScrollAreaPrimitive.ScrollAreaThumb, { "data-slot": "scroll-area-thumb", className: "oui:bg-border oui:relative oui:flex-1 oui:rounded-full" }) })));
|
|
44
29
|
}
|
|
45
30
|
export { ScrollArea, ScrollBar };
|
|
46
31
|
//# sourceMappingURL=scroll-area.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.js","sourceRoot":"","sources":["../../../src/components/ui/scroll-area.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA
|
|
1
|
+
{"version":3,"file":"scroll-area.js","sourceRoot":"","sources":["../../../src/components/ui/scroll-area.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA;;;;;;;;;;;;;AAGZ,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAA;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,UAAU,CAAC,EAIoC;QAJpC,EAClB,SAAS,EACT,QAAQ,OAE8C,EADnD,KAAK,cAHU,yBAInB,CADS;IAER,OAAO,CACL,MAAC,mBAAmB,CAAC,IAAI,+BACb,aAAa,EACvB,SAAS,EAAE,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC,IACpC,KAAK,eAET,KAAC,mBAAmB,CAAC,QAAQ,iBACjB,sBAAsB,EAChC,SAAS,EAAC,gLAAgL,YAEzL,QAAQ,GACoB,EAC/B,KAAC,SAAS,KAAG,EACb,KAAC,mBAAmB,CAAC,MAAM,KAAG,KACL,CAC5B,CAAA;AACH,CAAC;AAED,SAAS,SAAS,CAAC,EAIoD;QAJpD,EACjB,SAAS,EACT,WAAW,GAAG,UAAU,OAE6C,EADlE,KAAK,cAHS,4BAIlB,CADS;IAER,OAAO,CACL,KAAC,mBAAmB,CAAC,mBAAmB,+BAC5B,uBAAuB,EACjC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,EAAE,CACX,wEAAwE,EACxE,WAAW,KAAK,UAAU;YACxB,4DAA4D,EAC9D,WAAW,KAAK,YAAY;YAC1B,8DAA8D,EAChE,SAAS,CACV,IACG,KAAK,cAET,KAAC,mBAAmB,CAAC,eAAe,iBACxB,mBAAmB,EAC7B,SAAS,EAAC,wDAAwD,GAClE,IACsC,CAC3C,CAAA;AACH,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
-
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>):
|
|
4
|
-
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>):
|
|
5
|
-
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>):
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
7
|
size?: "sm" | "default";
|
|
8
|
-
}):
|
|
9
|
-
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>):
|
|
10
|
-
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>):
|
|
11
|
-
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>):
|
|
12
|
-
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>):
|
|
13
|
-
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>):
|
|
14
|
-
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>):
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
16
16
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAKzD,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAKzD,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEnD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEpD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEpD;AAED,iBAAS,aAAa,CAAC,EACrB,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DX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
2
|
var t = {};
|
|
18
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -24,64 +9,51 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
9
|
}
|
|
25
10
|
return t;
|
|
26
11
|
};
|
|
27
|
-
import
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
13
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
29
14
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
30
15
|
import { cn } from "../../lib/utils";
|
|
31
16
|
function Select(_a) {
|
|
32
17
|
var props = __rest(_a, []);
|
|
33
|
-
return
|
|
18
|
+
return _jsx(SelectPrimitive.Root, Object.assign({ "data-slot": "select" }, props));
|
|
34
19
|
}
|
|
35
20
|
function SelectGroup(_a) {
|
|
36
21
|
var props = __rest(_a, []);
|
|
37
|
-
return
|
|
22
|
+
return _jsx(SelectPrimitive.Group, Object.assign({ "data-slot": "select-group" }, props));
|
|
38
23
|
}
|
|
39
24
|
function SelectValue(_a) {
|
|
40
25
|
var props = __rest(_a, []);
|
|
41
|
-
return
|
|
26
|
+
return _jsx(SelectPrimitive.Value, Object.assign({ "data-slot": "select-value" }, props));
|
|
42
27
|
}
|
|
43
28
|
function SelectTrigger(_a) {
|
|
44
|
-
var
|
|
45
|
-
return (
|
|
46
|
-
children,
|
|
47
|
-
React.createElement(SelectPrimitive.Icon, { asChild: true },
|
|
48
|
-
React.createElement(ChevronDownIcon, { className: "oui:size-4 oui:opacity-50" }))));
|
|
29
|
+
var { className, size = "default", children } = _a, props = __rest(_a, ["className", "size", "children"]);
|
|
30
|
+
return (_jsxs(SelectPrimitive.Trigger, Object.assign({ "data-slot": "select-trigger", "data-size": size, className: cn("oui:border-input oui:data-[placeholder]:text-muted-foreground oui:[&_svg:not([class*=text-])]:text-muted-foreground oui:focus-visible:border-ring oui:focus-visible:ring-ring/50 oui:aria-invalid:ring-destructive/20 oui:dark:aria-invalid:ring-destructive/40 oui:aria-invalid:border-destructive oui:dark:bg-input/30 oui:dark:hover:bg-input/50 oui:flex oui:w-fit oui:items-center oui:justify-between oui:gap-2 oui:rounded-md oui:border oui:bg-transparent oui:px-3 oui:py-2 oui:text-sm oui:whitespace-nowrap oui:shadow-xs oui:transition-[color,box-shadow] oui:outline-none oui:focus-visible:ring-[3px] oui:disabled:cursor-not-allowed oui:disabled:opacity-50 oui:data-[size=default]:h-9 oui:data-[size=sm]:h-8 oui:*:data-[slot=select-value]:line-clamp-1 oui:*:data-[slot=select-value]:flex oui:*:data-[slot=select-value]:items-center oui:*:data-[slot=select-value]:gap-2 oui:[&_svg]:pointer-events-none oui:[&_svg]:shrink-0 oui:[&_svg:not([class*=size-])]:size-4", className) }, props, { children: [children, _jsx(SelectPrimitive.Icon, { asChild: true, children: _jsx(ChevronDownIcon, { className: "oui:size-4 oui:opacity-50" }) })] })));
|
|
49
31
|
}
|
|
50
32
|
function SelectContent(_a) {
|
|
51
|
-
var
|
|
52
|
-
return (
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
React.createElement(SelectScrollUpButton, null),
|
|
56
|
-
React.createElement(SelectPrimitive.Viewport, { className: cn("oui:p-1", position === "popper" &&
|
|
57
|
-
"oui:h-[var(--radix-select-trigger-height)] oui:w-full oui:min-w-[var(--radix-select-trigger-width)] oui:scroll-my-1") }, children),
|
|
58
|
-
React.createElement(SelectScrollDownButton, null))));
|
|
33
|
+
var { className, children, position = "popper", align = "center" } = _a, props = __rest(_a, ["className", "children", "position", "align"]);
|
|
34
|
+
return (_jsx(SelectPrimitive.Portal, { children: _jsxs(SelectPrimitive.Content, Object.assign({ "data-slot": "select-content", className: cn("oui:bg-popover oui:text-popover-foreground oui:data-[state=open]:animate-in oui:data-[state=closed]:animate-out oui:data-[state=closed]:fade-out-0 oui:data-[state=open]:fade-in-0 oui:data-[state=closed]:zoom-out-95 oui:data-[state=open]:zoom-in-95 oui:data-[side=bottom]:slide-in-from-top-2 oui:data-[side=left]:slide-in-from-right-2 oui:data-[side=right]:slide-in-from-left-2 oui:data-[side=top]:slide-in-from-bottom-2 oui:relative oui:z-50 oui:max-h-(--radix-select-content-available-height) oui:min-w-[8rem] oui:origin-(--radix-select-content-transform-origin) oui:overflow-x-hidden oui:overflow-y-auto oui:rounded-md oui:border oui:shadow-md", position === "popper" &&
|
|
35
|
+
"oui:data-[side=bottom]:translate-y-1 oui:data-[side=left]:-translate-x-1 oui:data-[side=right]:translate-x-1 oui:data-[side=top]:-translate-y-1", className), position: position, align: align }, props, { children: [_jsx(SelectScrollUpButton, {}), _jsx(SelectPrimitive.Viewport, { className: cn("oui:p-1", position === "popper" &&
|
|
36
|
+
"oui:h-[var(--radix-select-trigger-height)] oui:w-full oui:min-w-[var(--radix-select-trigger-width)] oui:scroll-my-1"), children: children }), _jsx(SelectScrollDownButton, {})] })) }));
|
|
59
37
|
}
|
|
60
38
|
function SelectLabel(_a) {
|
|
61
|
-
var className = _a
|
|
62
|
-
return (
|
|
39
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
40
|
+
return (_jsx(SelectPrimitive.Label, Object.assign({ "data-slot": "select-label", className: cn("oui:text-muted-foreground oui:px-2 oui:py-1.5 oui:text-xs", className) }, props)));
|
|
63
41
|
}
|
|
64
42
|
function SelectItem(_a) {
|
|
65
|
-
var
|
|
66
|
-
return (
|
|
67
|
-
React.createElement("span", { className: "oui:absolute oui:right-2 oui:flex oui:size-3.5 oui:items-center oui:justify-center" },
|
|
68
|
-
React.createElement(SelectPrimitive.ItemIndicator, null,
|
|
69
|
-
React.createElement(CheckIcon, { className: "oui:size-4" }))),
|
|
70
|
-
React.createElement(SelectPrimitive.ItemText, null, children)));
|
|
43
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
44
|
+
return (_jsxs(SelectPrimitive.Item, Object.assign({ "data-slot": "select-item", className: cn("oui:focus:bg-accent oui:focus:text-accent-foreground oui:[&_svg:not([class*=text-])]:text-muted-foreground oui:relative oui:flex oui:w-full oui:cursor-default oui:items-center oui:gap-2 oui:rounded-sm oui:py-1.5 oui:pr-8 oui:pl-2 oui:text-sm oui:outline-hidden oui:select-none oui:data-[disabled]:pointer-events-none oui:data-[disabled]:opacity-50 oui:[&_svg]:pointer-events-none oui:[&_svg]:shrink-0 oui:[&_svg:not([class*=size-])]:size-4 oui:*:[span]:last:flex oui:*:[span]:last:items-center oui:*:[span]:last:gap-2", className) }, props, { children: [_jsx("span", { className: "oui:absolute oui:right-2 oui:flex oui:size-3.5 oui:items-center oui:justify-center", children: _jsx(SelectPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "oui:size-4" }) }) }), _jsx(SelectPrimitive.ItemText, { children: children })] })));
|
|
71
45
|
}
|
|
72
46
|
function SelectSeparator(_a) {
|
|
73
|
-
var className = _a
|
|
74
|
-
return (
|
|
47
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
48
|
+
return (_jsx(SelectPrimitive.Separator, Object.assign({ "data-slot": "select-separator", className: cn("oui:bg-border oui:pointer-events-none oui:-mx-1 oui:my-1 oui:h-px", className) }, props)));
|
|
75
49
|
}
|
|
76
50
|
function SelectScrollUpButton(_a) {
|
|
77
|
-
var className = _a
|
|
78
|
-
return (
|
|
79
|
-
React.createElement(ChevronUpIcon, { className: "oui:size-4" })));
|
|
51
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
52
|
+
return (_jsx(SelectPrimitive.ScrollUpButton, Object.assign({ "data-slot": "select-scroll-up-button", className: cn("oui:flex oui:cursor-default oui:items-center oui:justify-center oui:py-1", className) }, props, { children: _jsx(ChevronUpIcon, { className: "oui:size-4" }) })));
|
|
80
53
|
}
|
|
81
54
|
function SelectScrollDownButton(_a) {
|
|
82
|
-
var className = _a
|
|
83
|
-
return (
|
|
84
|
-
React.createElement(ChevronDownIcon, { className: "oui:size-4" })));
|
|
55
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
56
|
+
return (_jsx(SelectPrimitive.ScrollDownButton, Object.assign({ "data-slot": "select-scroll-down-button", className: cn("oui:flex oui:cursor-default oui:items-center oui:justify-center oui:py-1", className) }, props, { children: _jsx(ChevronDownIcon, { className: "oui:size-4" }) })));
|
|
85
57
|
}
|
|
86
58
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
87
59
|
//# sourceMappingURL=select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAOA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAExE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,MAAM,CAAC,EAEoC;QAD/C,KAAK,cADM,EAEf,CADS;IAER,OAAO,KAAC,eAAe,CAAC,IAAI,+BAAW,QAAQ,IAAK,KAAK,EAAI,CAAA;AAC/D,CAAC;AAED,SAAS,WAAW,CAAC,EAEgC;QADhD,KAAK,cADW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;QAHhC,EAC9B,SAAS,OAEqD,EAD3D,KAAK,cAFsB,aAG/B,CADS;IAER,OAAO,CACL,KAAC,eAAe,CAAC,gBAAgB,+BACrB,2BAA2B,EACrC,SAAS,EAAE,EAAE,CACX,0EAA0E,EAC1E,SAAS,CACV,IACG,KAAK,cAET,KAAC,eAAe,IAAC,SAAS,EAAC,YAAY,GAAG,IACT,CACpC,CAAA;AACH,CAAC;AAED,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACZ,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
|
-
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>):
|
|
3
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { Separator };
|
|
5
5
|
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAI/D,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAA0B,EAC1B,UAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAI/D,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAA0B,EAC1B,UAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAatD;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -3,17 +3,6 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
"use client";
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
6
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
7
|
var t = {};
|
|
19
8
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -25,12 +14,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
14
|
}
|
|
26
15
|
return t;
|
|
27
16
|
};
|
|
28
|
-
import
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
18
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
30
19
|
import { cn } from "../../lib/utils";
|
|
31
20
|
function Separator(_a) {
|
|
32
|
-
var
|
|
33
|
-
return (
|
|
21
|
+
var { className, orientation = "horizontal", decorative = true } = _a, props = __rest(_a, ["className", "orientation", "decorative"]);
|
|
22
|
+
return (_jsx(SeparatorPrimitive.Root, Object.assign({ "data-slot": "separator", decorative: decorative, orientation: orientation, className: cn("oui:bg-border oui:shrink-0 oui:data-[orientation=horizontal]:h-px oui:data-[orientation=horizontal]:w-full oui:data-[orientation=vertical]:h-full oui:data-[orientation=vertical]:w-px", className) }, props)));
|
|
34
23
|
}
|
|
35
24
|
export { Separator };
|
|
36
25
|
//# sourceMappingURL=separator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.js","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA
|
|
1
|
+
{"version":3,"file":"separator.js","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA;;;;;;;;;;;;;AAGZ,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAE/D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,SAAS,CAAC,EAKoC;QALpC,EACjB,SAAS,EACT,WAAW,GAAG,YAAY,EAC1B,UAAU,GAAG,IAAI,OAEoC,EADlD,KAAK,cAJS,0CAKlB,CADS;IAER,OAAO,CACL,KAAC,kBAAkB,CAAC,IAAI,+BACZ,WAAW,EACrB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,EAAE,CACX,wLAAwL,EACxL,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
3
|
-
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>):
|
|
4
|
-
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>):
|
|
5
|
-
declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>):
|
|
3
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
7
7
|
side?: "top" | "right" | "bottom" | "left";
|
|
8
|
-
}):
|
|
9
|
-
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
10
|
-
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
11
|
-
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>):
|
|
12
|
-
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>):
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
14
14
|
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAA;AAKxD,iBAAS,KAAK,CAAC,EAAE,GAAG,K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AAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,2CAQzD;AAED,OAAO,EACL,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAA"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright OpenSearch Contributors
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
2
|
var t = {};
|
|
18
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -24,59 +9,53 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
9
|
}
|
|
25
10
|
return t;
|
|
26
11
|
};
|
|
27
|
-
import
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
13
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
29
14
|
import { XIcon } from "lucide-react";
|
|
30
15
|
import { cn } from "../../lib/utils";
|
|
31
16
|
function Sheet(_a) {
|
|
32
17
|
var props = __rest(_a, []);
|
|
33
|
-
return
|
|
18
|
+
return _jsx(SheetPrimitive.Root, Object.assign({ "data-slot": "sheet" }, props));
|
|
34
19
|
}
|
|
35
20
|
function SheetTrigger(_a) {
|
|
36
21
|
var props = __rest(_a, []);
|
|
37
|
-
return
|
|
22
|
+
return _jsx(SheetPrimitive.Trigger, Object.assign({ "data-slot": "sheet-trigger" }, props));
|
|
38
23
|
}
|
|
39
24
|
function SheetClose(_a) {
|
|
40
25
|
var props = __rest(_a, []);
|
|
41
|
-
return
|
|
26
|
+
return _jsx(SheetPrimitive.Close, Object.assign({ "data-slot": "sheet-close" }, props));
|
|
42
27
|
}
|
|
43
28
|
function SheetPortal(_a) {
|
|
44
29
|
var props = __rest(_a, []);
|
|
45
|
-
return
|
|
30
|
+
return _jsx(SheetPrimitive.Portal, Object.assign({ "data-slot": "sheet-portal" }, props));
|
|
46
31
|
}
|
|
47
32
|
function SheetOverlay(_a) {
|
|
48
|
-
var className = _a
|
|
49
|
-
return (
|
|
33
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
34
|
+
return (_jsx(SheetPrimitive.Overlay, Object.assign({ "data-slot": "sheet-overlay", className: cn("oui:data-[state=open]:animate-in oui:data-[state=closed]:animate-out oui:data-[state=closed]:fade-out-0 oui:data-[state=open]:fade-in-0 oui:fixed oui:inset-0 oui:z-50 oui:bg-black/50", className) }, props)));
|
|
50
35
|
}
|
|
51
36
|
function SheetContent(_a) {
|
|
52
|
-
var
|
|
53
|
-
return (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"oui:data-[state=closed]:slide-out-to-top oui:data-[state=open]:slide-in-from-top oui:inset-x-0 oui:top-0 oui:h-auto oui:border-b", side === "bottom" &&
|
|
59
|
-
"oui:data-[state=closed]:slide-out-to-bottom oui:data-[state=open]:slide-in-from-bottom oui:inset-x-0 oui:bottom-0 oui:h-auto oui:border-t", className) }, props),
|
|
60
|
-
children,
|
|
61
|
-
React.createElement(SheetPrimitive.Close, { className: "oui:ring-offset-background oui:focus:ring-ring oui:data-[state=open]:bg-secondary oui:absolute oui:top-4 oui:right-4 oui:rounded-xs oui:opacity-70 oui:transition-opacity oui:hover:opacity-100 oui:focus:ring-2 oui:focus:ring-offset-2 oui:focus:outline-hidden oui:disabled:pointer-events-none" },
|
|
62
|
-
React.createElement(XIcon, { className: "oui:size-4" }),
|
|
63
|
-
React.createElement("span", { className: "oui:sr-only" }, "Close")))));
|
|
37
|
+
var { className, children, side = "right" } = _a, props = __rest(_a, ["className", "children", "side"]);
|
|
38
|
+
return (_jsxs(SheetPortal, { children: [_jsx(SheetOverlay, {}), _jsxs(SheetPrimitive.Content, Object.assign({ "data-slot": "sheet-content", className: cn("oui:bg-background oui:data-[state=open]:animate-in oui:data-[state=closed]:animate-out oui:fixed oui:z-50 oui:flex oui:flex-col oui:gap-4 oui:shadow-lg oui:transition oui:ease-in-out oui:data-[state=closed]:duration-300 oui:data-[state=open]:duration-500", side === "right" &&
|
|
39
|
+
"oui:data-[state=closed]:slide-out-to-right oui:data-[state=open]:slide-in-from-right oui:inset-y-0 oui:right-0 oui:h-full oui:w-3/4 oui:border-l oui:sm:max-w-sm", side === "left" &&
|
|
40
|
+
"oui:data-[state=closed]:slide-out-to-left oui:data-[state=open]:slide-in-from-left oui:inset-y-0 oui:left-0 oui:h-full oui:w-3/4 oui:border-r oui:sm:max-w-sm", side === "top" &&
|
|
41
|
+
"oui:data-[state=closed]:slide-out-to-top oui:data-[state=open]:slide-in-from-top oui:inset-x-0 oui:top-0 oui:h-auto oui:border-b", side === "bottom" &&
|
|
42
|
+
"oui:data-[state=closed]:slide-out-to-bottom oui:data-[state=open]:slide-in-from-bottom oui:inset-x-0 oui:bottom-0 oui:h-auto oui:border-t", className) }, props, { children: [children, _jsxs(SheetPrimitive.Close, { className: "oui:ring-offset-background oui:focus:ring-ring oui:data-[state=open]:bg-secondary oui:absolute oui:top-4 oui:right-4 oui:rounded-xs oui:opacity-70 oui:transition-opacity oui:hover:opacity-100 oui:focus:ring-2 oui:focus:ring-offset-2 oui:focus:outline-hidden oui:disabled:pointer-events-none", children: [_jsx(XIcon, { className: "oui:size-4" }), _jsx("span", { className: "oui:sr-only", children: "Close" })] })] }))] }));
|
|
64
43
|
}
|
|
65
44
|
function SheetHeader(_a) {
|
|
66
|
-
var className = _a
|
|
67
|
-
return (
|
|
45
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
46
|
+
return (_jsx("div", Object.assign({ "data-slot": "sheet-header", className: cn("oui:flex oui:flex-col oui:gap-1.5 oui:p-4", className) }, props)));
|
|
68
47
|
}
|
|
69
48
|
function SheetFooter(_a) {
|
|
70
|
-
var className = _a
|
|
71
|
-
return (
|
|
49
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
50
|
+
return (_jsx("div", Object.assign({ "data-slot": "sheet-footer", className: cn("oui:mt-auto oui:flex oui:flex-col oui:gap-2 oui:p-4", className) }, props)));
|
|
72
51
|
}
|
|
73
52
|
function SheetTitle(_a) {
|
|
74
|
-
var className = _a
|
|
75
|
-
return (
|
|
53
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
54
|
+
return (_jsx(SheetPrimitive.Title, Object.assign({ "data-slot": "sheet-title", className: cn("oui:text-foreground oui:font-semibold", className) }, props)));
|
|
76
55
|
}
|
|
77
56
|
function SheetDescription(_a) {
|
|
78
|
-
var className = _a
|
|
79
|
-
return (
|
|
57
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
58
|
+
return (_jsx(SheetPrimitive.Description, Object.assign({ "data-slot": "sheet-description", className: cn("oui:text-muted-foreground oui:text-sm", className) }, props)));
|
|
80
59
|
}
|
|
81
60
|
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
82
61
|
//# sourceMappingURL=sheet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAOA,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAA;AAC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AY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAA"}
|
|
@@ -18,30 +18,30 @@ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: se
|
|
|
18
18
|
defaultOpen?: boolean;
|
|
19
19
|
open?: boolean;
|
|
20
20
|
onOpenChange?: (open: boolean) => void;
|
|
21
|
-
}):
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
|
|
23
23
|
side?: "left" | "right";
|
|
24
24
|
variant?: "sidebar" | "floating" | "inset";
|
|
25
25
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
26
|
-
}):
|
|
27
|
-
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>):
|
|
28
|
-
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">):
|
|
29
|
-
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">):
|
|
30
|
-
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>):
|
|
31
|
-
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
32
|
-
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
33
|
-
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>):
|
|
34
|
-
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">):
|
|
35
|
-
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">):
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
37
37
|
asChild?: boolean;
|
|
38
|
-
}):
|
|
38
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
|
|
40
40
|
asChild?: boolean;
|
|
41
|
-
}):
|
|
42
|
-
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">):
|
|
43
|
-
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">):
|
|
44
|
-
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">):
|
|
41
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
45
45
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
46
46
|
variant?: "default" | "outline" | null | undefined;
|
|
47
47
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
@@ -50,21 +50,21 @@ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip,
|
|
|
50
50
|
asChild?: boolean;
|
|
51
51
|
isActive?: boolean;
|
|
52
52
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
53
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
53
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
54
54
|
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
|
|
55
55
|
asChild?: boolean;
|
|
56
56
|
showOnHover?: boolean;
|
|
57
|
-
}):
|
|
58
|
-
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">):
|
|
57
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
59
59
|
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
|
|
60
60
|
showIcon?: boolean;
|
|
61
|
-
}):
|
|
62
|
-
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">):
|
|
63
|
-
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">):
|
|
61
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
64
64
|
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
|
|
65
65
|
asChild?: boolean;
|
|
66
66
|
size?: "sm" | "md";
|
|
67
67
|
isActive?: boolean;
|
|
68
|
-
}):
|
|
68
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
69
69
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
|
|
70
70
|
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAKjE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AASrD,OAAO,EAEL,cAAc,EAGf,MAAM,yBAAyB,CAAA;AAShC,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAA;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,MAAM,IAAI,CAAA;CAC1B,CAAA;AAID,iBAAS,UAAU,wBAOlB;AAED,iBAAS,eAAe,CAAC,EACvB,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAA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