@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
|
@@ -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,50 +9,43 @@ 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 NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
29
14
|
import { cva } from "class-variance-authority";
|
|
30
15
|
import { ChevronDownIcon } from "lucide-react";
|
|
31
16
|
import { cn } from "../../lib/utils";
|
|
32
17
|
function NavigationMenu(_a) {
|
|
33
|
-
var
|
|
34
|
-
return (
|
|
35
|
-
children,
|
|
36
|
-
viewport && React.createElement(NavigationMenuViewport, null)));
|
|
18
|
+
var { className, children, viewport = true } = _a, props = __rest(_a, ["className", "children", "viewport"]);
|
|
19
|
+
return (_jsxs(NavigationMenuPrimitive.Root, Object.assign({ "data-slot": "navigation-menu", "data-viewport": viewport, className: cn("oui:group/navigation-menu oui:relative oui:flex oui:max-w-max oui:flex-1 oui:items-center oui:justify-center", className) }, props, { children: [children, viewport && _jsx(NavigationMenuViewport, {})] })));
|
|
37
20
|
}
|
|
38
21
|
function NavigationMenuList(_a) {
|
|
39
|
-
var className = _a
|
|
40
|
-
return (
|
|
22
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
23
|
+
return (_jsx(NavigationMenuPrimitive.List, Object.assign({ "data-slot": "navigation-menu-list", className: cn("oui:group oui:flex oui:flex-1 oui:list-none oui:items-center oui:justify-center oui:gap-1", className) }, props)));
|
|
41
24
|
}
|
|
42
25
|
function NavigationMenuItem(_a) {
|
|
43
|
-
var className = _a
|
|
44
|
-
return (
|
|
26
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
27
|
+
return (_jsx(NavigationMenuPrimitive.Item, Object.assign({ "data-slot": "navigation-menu-item", className: cn("oui:relative", className) }, props)));
|
|
45
28
|
}
|
|
46
|
-
|
|
29
|
+
const navigationMenuTriggerStyle = cva("oui:group oui:inline-flex oui:h-9 oui:w-max oui:items-center oui:justify-center oui:rounded-md oui:bg-background oui:px-4 oui:py-2 oui:text-sm oui:font-medium oui:hover:bg-accent oui:hover:text-accent-foreground oui:focus:bg-accent oui:focus:text-accent-foreground oui:disabled:pointer-events-none oui:disabled:opacity-50 oui:data-[state=open]:hover:bg-accent oui:data-[state=open]:text-accent-foreground oui:data-[state=open]:focus:bg-accent oui:data-[state=open]:bg-accent/50 oui:focus-visible:ring-ring/50 oui:outline-none oui:transition-[color,box-shadow] oui:focus-visible:ring-[3px] oui:focus-visible:outline-1");
|
|
47
30
|
function NavigationMenuTrigger(_a) {
|
|
48
|
-
var
|
|
49
|
-
return (
|
|
50
|
-
children,
|
|
51
|
-
" ",
|
|
52
|
-
React.createElement(ChevronDownIcon, { className: "oui:relative oui:top-[1px] oui:ml-1 oui:size-3 oui:transition oui:duration-300 oui:group-data-[state=open]:rotate-180", "aria-hidden": "true" })));
|
|
31
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
32
|
+
return (_jsxs(NavigationMenuPrimitive.Trigger, Object.assign({ "data-slot": "navigation-menu-trigger", className: cn(navigationMenuTriggerStyle(), "oui:group", className) }, props, { children: [children, " ", _jsx(ChevronDownIcon, { className: "oui:relative oui:top-[1px] oui:ml-1 oui:size-3 oui:transition oui:duration-300 oui:group-data-[state=open]:rotate-180", "aria-hidden": "true" })] })));
|
|
53
33
|
}
|
|
54
34
|
function NavigationMenuContent(_a) {
|
|
55
|
-
var className = _a
|
|
56
|
-
return (
|
|
35
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
36
|
+
return (_jsx(NavigationMenuPrimitive.Content, Object.assign({ "data-slot": "navigation-menu-content", className: cn("oui:data-[motion^=from-]:animate-in oui:data-[motion^=to-]:animate-out oui:data-[motion^=from-]:fade-in oui:data-[motion^=to-]:fade-out oui:data-[motion=from-end]:slide-in-from-right-52 oui:data-[motion=from-start]:slide-in-from-left-52 oui:data-[motion=to-end]:slide-out-to-right-52 oui:data-[motion=to-start]:slide-out-to-left-52 oui:top-0 oui:left-0 oui:w-full oui:p-2 oui:pr-2.5 oui:md:absolute oui:md:w-auto", "oui:group-data-[viewport=false]/navigation-menu:bg-popover oui:group-data-[viewport=false]/navigation-menu:text-popover-foreground oui:group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in oui:group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out oui:group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 oui:group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 oui:group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 oui:group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 oui:group-data-[viewport=false]/navigation-menu:top-full oui:group-data-[viewport=false]/navigation-menu:mt-1.5 oui:group-data-[viewport=false]/navigation-menu:overflow-hidden oui:group-data-[viewport=false]/navigation-menu:rounded-md oui:group-data-[viewport=false]/navigation-menu:border oui:group-data-[viewport=false]/navigation-menu:shadow oui:group-data-[viewport=false]/navigation-menu:duration-200 oui:**:data-[slot=navigation-menu-link]:focus:ring-0 oui:**:data-[slot=navigation-menu-link]:focus:outline-none", className) }, props)));
|
|
57
37
|
}
|
|
58
38
|
function NavigationMenuViewport(_a) {
|
|
59
|
-
var className = _a
|
|
60
|
-
return (
|
|
61
|
-
React.createElement(NavigationMenuPrimitive.Viewport, __assign({ "data-slot": "navigation-menu-viewport", className: cn("oui:origin-top-center oui:bg-popover oui:text-popover-foreground oui:data-[state=open]:animate-in oui:data-[state=closed]:animate-out oui:data-[state=closed]:zoom-out-95 oui:data-[state=open]:zoom-in-90 oui:relative oui:mt-1.5 oui:h-[var(--radix-navigation-menu-viewport-height)] oui:w-full oui:overflow-hidden oui:rounded-md oui:border oui:shadow oui:md:w-[var(--radix-navigation-menu-viewport-width)]", className) }, props))));
|
|
39
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
40
|
+
return (_jsx("div", { className: cn("oui:absolute oui:top-full oui:left-0 oui:isolate oui:z-50 oui:flex oui:justify-center"), children: _jsx(NavigationMenuPrimitive.Viewport, Object.assign({ "data-slot": "navigation-menu-viewport", className: cn("oui:origin-top-center oui:bg-popover oui:text-popover-foreground oui:data-[state=open]:animate-in oui:data-[state=closed]:animate-out oui:data-[state=closed]:zoom-out-95 oui:data-[state=open]:zoom-in-90 oui:relative oui:mt-1.5 oui:h-[var(--radix-navigation-menu-viewport-height)] oui:w-full oui:overflow-hidden oui:rounded-md oui:border oui:shadow oui:md:w-[var(--radix-navigation-menu-viewport-width)]", className) }, props)) }));
|
|
62
41
|
}
|
|
63
42
|
function NavigationMenuLink(_a) {
|
|
64
|
-
var className = _a
|
|
65
|
-
return (
|
|
43
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
44
|
+
return (_jsx(NavigationMenuPrimitive.Link, Object.assign({ "data-slot": "navigation-menu-link", className: cn("oui:data-[active=true]:focus:bg-accent oui:data-[active=true]:hover:bg-accent oui:data-[active=true]:bg-accent/50 oui:data-[active=true]:text-accent-foreground oui:hover:bg-accent oui:hover:text-accent-foreground oui:focus:bg-accent oui:focus:text-accent-foreground oui:focus-visible:ring-ring/50 oui:[&_svg:not([class*=text-])]:text-muted-foreground oui:flex oui:flex-col oui:gap-1 oui:rounded-sm oui:p-2 oui:text-sm oui:transition-all oui:outline-none oui:focus-visible:ring-[3px] oui:focus-visible:outline-1 oui:[&_svg:not([class*=size-])]:size-4", className) }, props)));
|
|
66
45
|
}
|
|
67
46
|
function NavigationMenuIndicator(_a) {
|
|
68
|
-
var className = _a
|
|
69
|
-
return (
|
|
70
|
-
React.createElement("div", { className: "oui:bg-border oui:relative oui:top-[60%] oui:h-2 oui:w-2 oui:rotate-45 oui:rounded-tl-sm oui:shadow-md" })));
|
|
47
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
48
|
+
return (_jsx(NavigationMenuPrimitive.Indicator, Object.assign({ "data-slot": "navigation-menu-indicator", className: cn("oui:data-[state=visible]:animate-in oui:data-[state=hidden]:animate-out oui:data-[state=hidden]:fade-out oui:data-[state=visible]:fade-in oui:top-full oui:z-[1] oui:flex oui:h-1.5 oui:items-end oui:justify-center oui:overflow-hidden", className) }, props, { children: _jsx("div", { className: "oui:bg-border oui:relative oui:top-[60%] oui:h-2 oui:w-2 oui:rotate-45 oui:rounded-tl-sm oui:shadow-md" }) })));
|
|
71
49
|
}
|
|
72
50
|
export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, };
|
|
73
51
|
//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.js","sourceRoot":"","sources":["../../../src/components/ui/navigation-menu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","sourceRoot":"","sources":["../../../src/components/ui/navigation-menu.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAOA,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,cAAc,CAAC,EAOvB;QAPuB,EACtB,SAAS,EACT,QAAQ,EACR,QAAQ,GAAG,IAAI,OAIhB,EAHI,KAAK,cAJc,qCAKvB,CADS;IAIR,OAAO,CACL,MAAC,uBAAuB,CAAC,IAAI,+BACjB,iBAAiB,mBACZ,QAAQ,EACvB,SAAS,EAAE,EAAE,CACX,8GAA8G,EAC9G,SAAS,CACV,IACG,KAAK,eAER,QAAQ,EACR,QAAQ,IAAI,KAAC,sBAAsB,KAAG,KACV,CAChC,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAGgC;QAHhC,EAC1B,SAAS,OAEiD,EADvD,KAAK,cAFkB,aAG3B,CADS;IAER,OAAO,CACL,KAAC,uBAAuB,CAAC,IAAI,+BACjB,sBAAsB,EAChC,SAAS,EAAE,EAAE,CACX,2FAA2F,EAC3F,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAGgC;QAHhC,EAC1B,SAAS,OAEiD,EADvD,KAAK,cAFkB,aAG3B,CADS;IAER,OAAO,CACL,KAAC,uBAAuB,CAAC,IAAI,+BACjB,sBAAsB,EAChC,SAAS,EAAE,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC,IACpC,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,MAAM,0BAA0B,GAAG,GAAG,CACpC,0mBAA0mB,CAC3mB,CAAA;AAED,SAAS,qBAAqB,CAAC,EAIgC;QAJhC,EAC7B,SAAS,EACT,QAAQ,OAEqD,EAD1D,KAAK,cAHqB,yBAI9B,CADS;IAER,OAAO,CACL,MAAC,uBAAuB,CAAC,OAAO,+BACpB,yBAAyB,EACnC,SAAS,EAAE,EAAE,CAAC,0BAA0B,EAAE,EAAE,WAAW,EAAE,SAAS,CAAC,IAC/D,KAAK,eAER,QAAQ,EAAE,GAAG,EACd,KAAC,eAAe,IACd,SAAS,EAAC,uHAAuH,iBACrH,MAAM,GAClB,KAC8B,CACnC,CAAA;AACH,CAAC;AAED,SAAS,qBAAqB,CAAC,EAGgC;QAHhC,EAC7B,SAAS,OAEoD,EAD1D,KAAK,cAFqB,aAG9B,CADS;IAER,OAAO,CACL,KAAC,uBAAuB,CAAC,OAAO,+BACpB,yBAAyB,EACnC,SAAS,EAAE,EAAE,CACX,8ZAA8Z,EAC9Z,+lCAA+lC,EAC/lC,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,sBAAsB,CAAC,EAGgC;QAHhC,EAC9B,SAAS,OAEqD,EAD3D,KAAK,cAFsB,aAG/B,CADS;IAER,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CACX,uFAAuF,CACxF,YAED,KAAC,uBAAuB,CAAC,QAAQ,+BACrB,0BAA0B,EACpC,SAAS,EAAE,EAAE,CACX,oZAAoZ,EACpZ,SAAS,CACV,IACG,KAAK,EACT,GACE,CACP,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAGgC;QAHhC,EAC1B,SAAS,OAEiD,EADvD,KAAK,cAFkB,aAG3B,CADS;IAER,OAAO,CACL,KAAC,uBAAuB,CAAC,IAAI,+BACjB,sBAAsB,EAChC,SAAS,EAAE,EAAE,CACX,uiBAAuiB,EACviB,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,uBAAuB,CAAC,EAGgC;QAHhC,EAC/B,SAAS,OAEsD,EAD5D,KAAK,cAFuB,aAGhC,CADS;IAER,OAAO,CACL,KAAC,uBAAuB,CAAC,SAAS,+BACtB,2BAA2B,EACrC,SAAS,EAAE,EAAE,CACX,0OAA0O,EAC1O,SAAS,CACV,IACG,KAAK,cAET,cAAK,SAAS,EAAC,wGAAwG,GAAG,IACxF,CACrC,CAAA;AACH,CAAC;AAED,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC3B,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Button } from "../../components";
|
|
3
|
-
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">):
|
|
4
|
-
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">):
|
|
5
|
-
declare function PaginationItem({ ...props }: React.ComponentProps<"li">):
|
|
3
|
+
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PaginationItem({ ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
type PaginationLinkProps = {
|
|
7
7
|
isActive?: boolean;
|
|
8
8
|
} & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
|
|
9
|
-
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps):
|
|
10
|
-
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>):
|
|
11
|
-
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>):
|
|
12
|
-
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">):
|
|
9
|
+
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
|
|
14
14
|
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagination.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,EAAE,MAAM,EAAkB,MAAM,cAAc,CAAA;AAErD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagination.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,EAAE,MAAM,EAAkB,MAAM,cAAc,CAAA;AAErD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAUvE;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAQ5B;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAE/D;AAED,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,CAAC,GACnD,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;AAE3B,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,IAAa,EACb,GAAG,KAAK,EACT,EAAE,mBAAmB,2CAgBrB;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,2CAY7C;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,2CAY7C;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAY9B;AAED,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GACnB,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,46 +9,40 @@ 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 { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon, } from "lucide-react";
|
|
29
14
|
import { cn } from "../../lib/utils";
|
|
30
15
|
import { buttonVariants } from "../../components";
|
|
31
16
|
function Pagination(_a) {
|
|
32
|
-
var className = _a
|
|
33
|
-
return (
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx("nav", Object.assign({ role: "navigation", "aria-label": "pagination", "data-slot": "pagination", className: cn("oui:mx-auto oui:flex oui:w-full oui:justify-center", className) }, props)));
|
|
34
19
|
}
|
|
35
20
|
function PaginationContent(_a) {
|
|
36
|
-
var className = _a
|
|
37
|
-
return (
|
|
21
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
22
|
+
return (_jsx("ul", Object.assign({ "data-slot": "pagination-content", className: cn("oui:flex oui:flex-row oui:items-center oui:gap-1", className) }, props)));
|
|
38
23
|
}
|
|
39
24
|
function PaginationItem(_a) {
|
|
40
25
|
var props = __rest(_a, []);
|
|
41
|
-
return
|
|
26
|
+
return _jsx("li", Object.assign({ "data-slot": "pagination-item" }, props));
|
|
42
27
|
}
|
|
43
28
|
function PaginationLink(_a) {
|
|
44
|
-
var
|
|
45
|
-
return (
|
|
29
|
+
var { className, isActive, size = "icon" } = _a, props = __rest(_a, ["className", "isActive", "size"]);
|
|
30
|
+
return (_jsx("a", Object.assign({ "aria-current": isActive ? "page" : undefined, "data-slot": "pagination-link", "data-active": isActive, className: cn(buttonVariants({
|
|
46
31
|
variant: isActive ? "outline" : "ghost",
|
|
47
|
-
size
|
|
32
|
+
size,
|
|
48
33
|
}), className) }, props)));
|
|
49
34
|
}
|
|
50
35
|
function PaginationPrevious(_a) {
|
|
51
|
-
var className = _a
|
|
52
|
-
return (
|
|
53
|
-
React.createElement(ChevronLeftIcon, null),
|
|
54
|
-
React.createElement("span", { className: "oui:hidden oui:sm:block" }, "Previous")));
|
|
36
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
37
|
+
return (_jsxs(PaginationLink, Object.assign({ "aria-label": "Go to previous page", size: "default", className: cn("oui:gap-1 oui:px-2.5 oui:sm:pl-2.5", className) }, props, { children: [_jsx(ChevronLeftIcon, {}), _jsx("span", { className: "oui:hidden oui:sm:block", children: "Previous" })] })));
|
|
55
38
|
}
|
|
56
39
|
function PaginationNext(_a) {
|
|
57
|
-
var className = _a
|
|
58
|
-
return (
|
|
59
|
-
React.createElement("span", { className: "oui:hidden oui:sm:block" }, "Next"),
|
|
60
|
-
React.createElement(ChevronRightIcon, null)));
|
|
40
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
41
|
+
return (_jsxs(PaginationLink, Object.assign({ "aria-label": "Go to next page", size: "default", className: cn("oui:gap-1 oui:px-2.5 oui:sm:pr-2.5", className) }, props, { children: [_jsx("span", { className: "oui:hidden oui:sm:block", children: "Next" }), _jsx(ChevronRightIcon, {})] })));
|
|
61
42
|
}
|
|
62
43
|
function PaginationEllipsis(_a) {
|
|
63
|
-
var className = _a
|
|
64
|
-
return (
|
|
65
|
-
React.createElement(MoreHorizontalIcon, { className: "oui:size-4" }),
|
|
66
|
-
React.createElement("span", { className: "oui:sr-only" }, "More pages")));
|
|
44
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
45
|
+
return (_jsxs("span", Object.assign({ "aria-hidden": true, "data-slot": "pagination-ellipsis", className: cn("oui:flex oui:size-9 oui:items-center oui:justify-center", className) }, props, { children: [_jsx(MoreHorizontalIcon, { className: "oui:size-4" }), _jsx("span", { className: "oui:sr-only", children: "More pages" })] })));
|
|
67
46
|
}
|
|
68
47
|
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
|
|
69
48
|
//# sourceMappingURL=pagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../src/components/ui/pagination.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../src/components/ui/pagination.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAOA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAChC,OAAO,EAAU,cAAc,EAAE,MAAM,cAAc,CAAA;AAErD,SAAS,UAAU,CAAC,EAAoD;QAApD,EAAE,SAAS,OAAyC,EAApC,KAAK,cAArB,aAAuB,CAAF;IACvC,OAAO,CACL,4BACE,IAAI,EAAC,YAAY,gBACN,YAAY,eACb,YAAY,EACtB,SAAS,EAAE,EAAE,CAAC,oDAAoD,EAAE,SAAS,CAAC,IAC1E,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,EAGE;QAHF,EACzB,SAAS,OAEkB,EADxB,KAAK,cAFiB,aAG1B,CADS;IAER,OAAO,CACL,wCACY,oBAAoB,EAC9B,SAAS,EAAE,EAAE,CAAC,kDAAkD,EAAE,SAAS,CAAC,IACxE,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,EAAwC;QAAnC,KAAK,cAAV,EAAY,CAAF;IAChC,OAAO,wCAAc,iBAAiB,IAAK,KAAK,EAAI,CAAA;AACtD,CAAC;AAOD,SAAS,cAAc,CAAC,EAKF;QALE,EACtB,SAAS,EACT,QAAQ,EACR,IAAI,GAAG,MAAM,OAEO,EADjB,KAAK,cAJc,iCAKvB,CADS;IAER,OAAO,CACL,0CACgB,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,eACjC,iBAAiB,iBACd,QAAQ,EACrB,SAAS,EAAE,EAAE,CACX,cAAc,CAAC;YACb,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO;YACvC,IAAI;SACL,CAAC,EACF,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAGkB;QAHlB,EAC1B,SAAS,OAEmC,EADzC,KAAK,cAFkB,aAG3B,CADS;IAER,OAAO,CACL,MAAC,cAAc,gCACF,qBAAqB,EAChC,IAAI,EAAC,SAAS,EACd,SAAS,EAAE,EAAE,CAAC,oCAAoC,EAAE,SAAS,CAAC,IAC1D,KAAK,eAET,KAAC,eAAe,KAAG,EACnB,eAAM,SAAS,EAAC,yBAAyB,yBAAgB,KAC1C,CAClB,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,EAGsB;QAHtB,EACtB,SAAS,OAEmC,EADzC,KAAK,cAFc,aAGvB,CADS;IAER,OAAO,CACL,MAAC,cAAc,gCACF,iBAAiB,EAC5B,IAAI,EAAC,SAAS,EACd,SAAS,EAAE,EAAE,CAAC,oCAAoC,EAAE,SAAS,CAAC,IAC1D,KAAK,eAET,eAAM,SAAS,EAAC,yBAAyB,qBAAY,EACrD,KAAC,gBAAgB,KAAG,KACL,CAClB,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAGG;QAHH,EAC1B,SAAS,OAEoB,EAD1B,KAAK,cAFkB,aAG3B,CADS;IAER,OAAO,CACL,gEAEY,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CAAC,yDAAyD,EAAE,SAAS,CAAC,IAC/E,KAAK,eAET,KAAC,kBAAkB,IAAC,SAAS,EAAC,YAAY,GAAG,EAC7C,eAAM,SAAS,EAAC,aAAa,2BAAkB,KAC1C,CACR,CAAA;AACH,CAAC;AAED,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GACnB,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
-
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>):
|
|
4
|
-
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>):
|
|
5
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>):
|
|
6
|
-
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>):
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
8
8
|
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAI3D,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAI3D,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAEpD;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAEvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAevD;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,2CAEtD;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,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,25 +14,24 @@ 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 PopoverPrimitive from "@radix-ui/react-popover";
|
|
30
19
|
import { cn } from "../../lib/utils";
|
|
31
20
|
function Popover(_a) {
|
|
32
21
|
var props = __rest(_a, []);
|
|
33
|
-
return
|
|
22
|
+
return _jsx(PopoverPrimitive.Root, Object.assign({ "data-slot": "popover" }, props));
|
|
34
23
|
}
|
|
35
24
|
function PopoverTrigger(_a) {
|
|
36
25
|
var props = __rest(_a, []);
|
|
37
|
-
return
|
|
26
|
+
return _jsx(PopoverPrimitive.Trigger, Object.assign({ "data-slot": "popover-trigger" }, props));
|
|
38
27
|
}
|
|
39
28
|
function PopoverContent(_a) {
|
|
40
|
-
var
|
|
41
|
-
return (
|
|
42
|
-
React.createElement(PopoverPrimitive.Content, __assign({ "data-slot": "popover-content", align: align, sideOffset: sideOffset, 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:z-50 oui:w-72 oui:origin-(--radix-popover-content-transform-origin) oui:rounded-md oui:border oui:p-4 oui:shadow-md oui:outline-hidden", className) }, props))));
|
|
29
|
+
var { className, align = "center", sideOffset = 4 } = _a, props = __rest(_a, ["className", "align", "sideOffset"]);
|
|
30
|
+
return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, Object.assign({ "data-slot": "popover-content", align: align, sideOffset: sideOffset, 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:z-50 oui:w-72 oui:origin-(--radix-popover-content-transform-origin) oui:rounded-md oui:border oui:p-4 oui:shadow-md oui:outline-hidden", className) }, props)) }));
|
|
43
31
|
}
|
|
44
32
|
function PopoverAnchor(_a) {
|
|
45
33
|
var props = __rest(_a, []);
|
|
46
|
-
return
|
|
34
|
+
return _jsx(PopoverPrimitive.Anchor, Object.assign({ "data-slot": "popover-anchor" }, props));
|
|
47
35
|
}
|
|
48
36
|
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
49
37
|
//# sourceMappingURL=popover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA
|
|
1
|
+
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA;;;;;;;;;;;;;AAGZ,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAE3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,OAAO,CAAC,EAEoC;QADhD,KAAK,cADO,EAEhB,CADS;IAER,OAAO,KAAC,gBAAgB,CAAC,IAAI,+BAAW,SAAS,IAAK,KAAK,EAAI,CAAA;AACjE,CAAC;AAED,SAAS,cAAc,CAAC,EAEgC;QADnD,KAAK,cADc,EAEvB,CADS;IAER,OAAO,KAAC,gBAAgB,CAAC,OAAO,+BAAW,iBAAiB,IAAK,KAAK,EAAI,CAAA;AAC5E,CAAC;AAED,SAAS,cAAc,CAAC,EAKgC;QALhC,EACtB,SAAS,EACT,KAAK,GAAG,QAAQ,EAChB,UAAU,GAAG,CAAC,OAEwC,EADnD,KAAK,cAJc,oCAKvB,CADS;IAER,OAAO,CACL,KAAC,gBAAgB,CAAC,MAAM,cACtB,KAAC,gBAAgB,CAAC,OAAO,+BACb,iBAAiB,EAC3B,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,EAAE,CACX,gjBAAgjB,EAChjB,SAAS,CACV,IACG,KAAK,EACT,GACsB,CAC3B,CAAA;AACH,CAAC;AAED,SAAS,aAAa,CAAC,EAEgC;QADlD,KAAK,cADa,EAEtB,CADS;IAER,OAAO,KAAC,gBAAgB,CAAC,MAAM,+BAAW,gBAAgB,IAAK,KAAK,EAAI,CAAA;AAC1E,CAAC;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3
|
-
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>):
|
|
3
|
+
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { Progress };
|
|
5
5
|
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAI7D,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAI7D,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,2CAiBrD;AAED,OAAO,EAAE,QAAQ,EAAE,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,13 +9,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
9
|
}
|
|
25
10
|
return t;
|
|
26
11
|
};
|
|
27
|
-
import
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
13
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
29
14
|
import { cn } from "../../lib/utils";
|
|
30
15
|
function Progress(_a) {
|
|
31
|
-
var
|
|
32
|
-
return (
|
|
33
|
-
React.createElement(ProgressPrimitive.Indicator, { "data-slot": "progress-indicator", className: "oui:bg-primary oui:h-full oui:w-full oui:flex-1 oui:transition-all", style: { transform: "translateX(-".concat(100 - (value || 0), "%)") } })));
|
|
16
|
+
var { className, value } = _a, props = __rest(_a, ["className", "value"]);
|
|
17
|
+
return (_jsx(ProgressPrimitive.Root, Object.assign({ "data-slot": "progress", className: cn("oui:bg-primary/20 oui:relative oui:h-2 oui:w-full oui:overflow-hidden oui:rounded-full", className) }, props, { children: _jsx(ProgressPrimitive.Indicator, { "data-slot": "progress-indicator", className: "oui:bg-primary oui:h-full oui:w-full oui:flex-1 oui:transition-all", style: { transform: `translateX(-${100 - (value || 0)}%)` } }) })));
|
|
34
18
|
}
|
|
35
19
|
export { Progress };
|
|
36
20
|
//# sourceMappingURL=progress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAOA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAE7D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,QAAQ,CAAC,EAIoC;QAJpC,EAChB,SAAS,EACT,KAAK,OAE+C,EADjD,KAAK,cAHQ,sBAIjB,CADS;IAER,OAAO,CACL,KAAC,iBAAiB,CAAC,IAAI,+BACX,UAAU,EACpB,SAAS,EAAE,EAAE,CACX,wFAAwF,EACxF,SAAS,CACV,IACG,KAAK,cAET,KAAC,iBAAiB,CAAC,SAAS,iBAChB,oBAAoB,EAC9B,SAAS,EAAC,oEAAoE,EAC9E,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,GAAG,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,EAAE,GAC3D,IACqB,CAC1B,CAAA;AACH,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
|
-
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>):
|
|
4
|
-
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>):
|
|
3
|
+
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export { RadioGroup, RadioGroupItem };
|
|
6
6
|
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAA;AAKlE,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAA;AAKlE,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,2CAQvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,2CAkBvD;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,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,19 +14,17 @@ 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 RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
30
19
|
import { CircleIcon } from "lucide-react";
|
|
31
20
|
import { cn } from "../../lib/utils";
|
|
32
21
|
function RadioGroup(_a) {
|
|
33
|
-
var className = _a
|
|
34
|
-
return (
|
|
22
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
23
|
+
return (_jsx(RadioGroupPrimitive.Root, Object.assign({ "data-slot": "radio-group", className: cn("oui:grid oui:gap-3", className) }, props)));
|
|
35
24
|
}
|
|
36
25
|
function RadioGroupItem(_a) {
|
|
37
|
-
var className = _a
|
|
38
|
-
return (
|
|
39
|
-
React.createElement(RadioGroupPrimitive.Indicator, { "data-slot": "radio-group-indicator", className: "oui:relative oui:flex oui:items-center oui:justify-center" },
|
|
40
|
-
React.createElement(CircleIcon, { className: "oui:fill-primary oui:absolute oui:top-1/2 oui:left-1/2 oui:size-2 oui:-translate-x-1/2 oui:-translate-y-1/2" }))));
|
|
26
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
27
|
+
return (_jsx(RadioGroupPrimitive.Item, Object.assign({ "data-slot": "radio-group-item", className: cn("oui:border-input oui:text-primary 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:aspect-square oui:size-4 oui:shrink-0 oui:rounded-full oui:border 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", className) }, props, { children: _jsx(RadioGroupPrimitive.Indicator, { "data-slot": "radio-group-indicator", className: "oui:relative oui:flex oui:items-center oui:justify-center", children: _jsx(CircleIcon, { className: "oui:fill-primary oui:absolute oui:top-1/2 oui:left-1/2 oui:size-2 oui:-translate-x-1/2 oui:-translate-y-1/2" }) }) })));
|
|
41
28
|
}
|
|
42
29
|
export { RadioGroup, RadioGroupItem };
|
|
43
30
|
//# sourceMappingURL=radio-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA
|
|
1
|
+
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA;;;;;;;;;;;;;AAGZ,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,UAAU,CAAC,EAGoC;QAHpC,EAClB,SAAS,OAE6C,EADnD,KAAK,cAFU,aAGnB,CADS;IAER,OAAO,CACL,KAAC,mBAAmB,CAAC,IAAI,+BACb,aAAa,EACvB,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,IAC1C,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,EAGgC;QAHhC,EACtB,SAAS,OAE6C,EADnD,KAAK,cAFc,aAGvB,CADS;IAER,OAAO,CACL,KAAC,mBAAmB,CAAC,IAAI,+BACb,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CACX,ocAAoc,EACpc,SAAS,CACV,IACG,KAAK,cAET,KAAC,mBAAmB,CAAC,SAAS,iBAClB,uBAAuB,EACjC,SAAS,EAAC,2DAA2D,YAErE,KAAC,UAAU,IAAC,SAAS,EAAC,6GAA6G,GAAG,GACxG,IACP,CAC5B,CAAA;AACH,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
3
|
-
declare function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>):
|
|
4
|
-
declare function ResizablePanel({ ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>):
|
|
3
|
+
declare function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function ResizablePanel({ ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function ResizableHandle({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
6
6
|
withHandle?: boolean;
|
|
7
|
-
}):
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
9
9
|
//# sourceMappingURL=resizable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../../src/components/ui/resizable.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAA;AAI5D,iBAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../../src/components/ui/resizable.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAA;AAI5D,iBAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,2CAW5D;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,KAAK,CAAC,2CAEvD;AAED,iBAAS,eAAe,CAAC,EACvB,UAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;IACrE,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,2CAiBA;AAED,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,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,22 +9,21 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
9
|
}
|
|
25
10
|
return t;
|
|
26
11
|
};
|
|
27
|
-
import
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
13
|
import { GripVerticalIcon } from "lucide-react";
|
|
29
14
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
30
15
|
import { cn } from "../../lib/utils";
|
|
31
16
|
function ResizablePanelGroup(_a) {
|
|
32
|
-
var className = _a
|
|
33
|
-
return (
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx(ResizablePrimitive.PanelGroup, Object.assign({ "data-slot": "resizable-panel-group", className: cn("oui:flex oui:h-full oui:w-full oui:data-[panel-group-direction=vertical]:flex-col", className) }, props)));
|
|
34
19
|
}
|
|
35
20
|
function ResizablePanel(_a) {
|
|
36
21
|
var props = __rest(_a, []);
|
|
37
|
-
return
|
|
22
|
+
return _jsx(ResizablePrimitive.Panel, Object.assign({ "data-slot": "resizable-panel" }, props));
|
|
38
23
|
}
|
|
39
24
|
function ResizableHandle(_a) {
|
|
40
|
-
var
|
|
41
|
-
return (
|
|
42
|
-
React.createElement(GripVerticalIcon, { className: "oui:size-2.5" })))));
|
|
25
|
+
var { withHandle, className } = _a, props = __rest(_a, ["withHandle", "className"]);
|
|
26
|
+
return (_jsx(ResizablePrimitive.PanelResizeHandle, Object.assign({ "data-slot": "resizable-handle", className: cn("oui:bg-border oui:focus-visible:ring-ring oui:relative oui:flex oui:w-px oui:items-center oui:justify-center oui:after:absolute oui:after:inset-y-0 oui:after:left-1/2 oui:after:w-1 oui:after:-translate-x-1/2 oui:focus-visible:ring-1 oui:focus-visible:ring-offset-1 oui:focus-visible:outline-hidden oui:data-[panel-group-direction=vertical]:h-px oui:data-[panel-group-direction=vertical]:w-full oui:data-[panel-group-direction=vertical]:after:left-0 oui:data-[panel-group-direction=vertical]:after:h-1 oui:data-[panel-group-direction=vertical]:after:w-full oui:data-[panel-group-direction=vertical]:after:translate-x-0 oui:data-[panel-group-direction=vertical]:after:-translate-y-1/2 oui:[&[data-panel-group-direction=vertical]>div]:rotate-90", className) }, props, { children: withHandle && (_jsx("div", { className: "oui:bg-border oui:z-10 oui:flex oui:h-4 oui:w-3 oui:items-center oui:justify-center oui:rounded-xs oui:border", children: _jsx(GripVerticalIcon, { className: "oui:size-2.5" }) })) })));
|
|
43
27
|
}
|
|
44
28
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
45
29
|
//# sourceMappingURL=resizable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizable.js","sourceRoot":"","sources":["../../../src/components/ui/resizable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resizable.js","sourceRoot":"","sources":["../../../src/components/ui/resizable.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAA;AAE5D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,mBAAmB,CAAC,EAGgC;QAHhC,EAC3B,SAAS,OAEkD,EADxD,KAAK,cAFmB,aAG5B,CADS;IAER,OAAO,CACL,KAAC,kBAAkB,CAAC,UAAU,+BAClB,uBAAuB,EACjC,SAAS,EAAE,EAAE,CACX,mFAAmF,EACnF,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,EAEgC;QADnD,KAAK,cADc,EAEvB,CADS;IAER,OAAO,KAAC,kBAAkB,CAAC,KAAK,+BAAW,iBAAiB,IAAK,KAAK,EAAI,CAAA;AAC5E,CAAC;AAED,SAAS,eAAe,CAAC,EAMxB;QANwB,EACvB,UAAU,EACV,SAAS,OAIV,EAHI,KAAK,cAHe,2BAIxB,CADS;IAIR,OAAO,CACL,KAAC,kBAAkB,CAAC,iBAAiB,+BACzB,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CACX,uuBAAuuB,EACvuB,SAAS,CACV,IACG,KAAK,cAER,UAAU,IAAI,CACb,cAAK,SAAS,EAAC,+GAA+G,YAC5H,KAAC,gBAAgB,IAAC,SAAS,EAAC,cAAc,GAAG,GACzC,CACP,IACoC,CACxC,CAAA;AACH,CAAC;AAED,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
3
|
-
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>):
|
|
4
|
-
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>):
|
|
3
|
+
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export { ScrollArea, ScrollBar };
|
|
6
6
|
//# sourceMappingURL=scroll-area.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../../src/components/ui/scroll-area.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAA;AAIlE,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../../src/components/ui/scroll-area.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAA;AAIlE,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,2CAiBvD;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAAwB,EACxB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,mBAAmB,CAAC,2CAqBtE;AAED,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAA"}
|