@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA;;;;;;;;;;;;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EACL,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAa,SAAS,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAE7E,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAErD,SAAS,QAAQ,CAAC,EAWjB;QAXiB,EAChB,SAAS,EACT,UAAU,EACV,eAAe,GAAG,IAAI,EACtB,aAAa,GAAG,OAAO,EACvB,aAAa,GAAG,OAAO,EACvB,UAAU,EACV,UAAU,OAIX,EAHI,KAAK,cARQ,4GASjB,CADS;IAIR,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAA;IAEhD,OAAO,CACL,KAAC,SAAS,kBACR,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,EAAE,CACX,gLAAgL,EAChL,MAAM,CAAC,GAAG,CAAA,2CAA2C,EACrD,MAAM,CAAC,GAAG,CAAA,+CAA+C,EACzD,SAAS,CACV,EACD,aAAa,EAAE,aAAa,EAC5B,UAAU,kBACR,mBAAmB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC5B,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,IACjD,UAAU,GAEf,UAAU,kBACR,IAAI,EAAE,EAAE,CAAC,WAAW,EAAE,iBAAiB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tB,CAAC,SAAS,CAAC,SAAS;YACpB,CAAC,SAAS,CAAC,YAAY,sBAEP,SAAS,CAAC,WAAW,oBACvB,SAAS,CAAC,SAAS,uBAChB,SAAS,CAAC,YAAY,EACzC,SAAS,EAAE,EAAE,CACX,0+BAA0+B,EAC1+B,iBAAiB,CAAC,GAAG,EACrB,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare function Card({ className, ...props }: React.ComponentProps<"div">):
|
|
3
|
-
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
4
|
-
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">):
|
|
5
|
-
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">):
|
|
6
|
-
declare function CardAction({ className, ...props }: React.ComponentProps<"div">):
|
|
7
|
-
declare function CardContent({ className, ...props }: React.ComponentProps<"div">):
|
|
8
|
-
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
2
|
+
declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
10
10
|
//# sourceMappingURL=card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWjE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQvE;AAED,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,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,35 +9,35 @@ 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 { cn } from "../../lib/utils";
|
|
29
14
|
function Card(_a) {
|
|
30
|
-
var className = _a
|
|
31
|
-
return (
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "card", className: cn("oui:bg-card oui:text-card-foreground oui:flex oui:flex-col oui:gap-6 oui:rounded-xl oui:border oui:py-6 oui:shadow-sm", className) }, props)));
|
|
32
17
|
}
|
|
33
18
|
function CardHeader(_a) {
|
|
34
|
-
var className = _a
|
|
35
|
-
return (
|
|
19
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
20
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-header", className: cn("oui:@container/card-header oui:grid oui:auto-rows-min oui:grid-rows-[auto_auto] oui:items-start oui:gap-2 oui:px-6 oui:has-data-[slot=card-action]:grid-cols-[1fr_auto] oui:[.border-b]:pb-6", className) }, props)));
|
|
36
21
|
}
|
|
37
22
|
function CardTitle(_a) {
|
|
38
|
-
var className = _a
|
|
39
|
-
return (
|
|
23
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
24
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-title", className: cn("oui:leading-none oui:font-semibold", className) }, props)));
|
|
40
25
|
}
|
|
41
26
|
function CardDescription(_a) {
|
|
42
|
-
var className = _a
|
|
43
|
-
return (
|
|
27
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
28
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-description", className: cn("oui:text-muted-foreground oui:text-sm", className) }, props)));
|
|
44
29
|
}
|
|
45
30
|
function CardAction(_a) {
|
|
46
|
-
var className = _a
|
|
47
|
-
return (
|
|
31
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
32
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-action", className: cn("oui:col-start-2 oui:row-span-2 oui:row-start-1 oui:self-start oui:justify-self-end", className) }, props)));
|
|
48
33
|
}
|
|
49
34
|
function CardContent(_a) {
|
|
50
|
-
var className = _a
|
|
51
|
-
return (
|
|
35
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
36
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-content", className: cn("oui:px-6", className) }, props)));
|
|
52
37
|
}
|
|
53
38
|
function CardFooter(_a) {
|
|
54
|
-
var className = _a
|
|
55
|
-
return (
|
|
39
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
40
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-footer", className: cn("oui:flex oui:items-center oui:px-6 oui:[.border-t]:pt-6", className) }, props)));
|
|
56
41
|
}
|
|
57
42
|
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
58
43
|
//# sourceMappingURL=card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAQA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,IAAI,CAAC,EAAoD;QAApD,EAAE,SAAS,OAAyC,EAApC,KAAK,cAArB,aAAuB,CAAF;IACjC,OAAO,CACL,yCACY,MAAM,EAChB,SAAS,EAAE,EAAE,CACX,uHAAuH,EACvH,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,EAAoD;QAApD,EAAE,SAAS,OAAyC,EAApC,KAAK,cAArB,aAAuB,CAAF;IACvC,OAAO,CACL,yCACY,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,8LAA8L,EAC9L,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,SAAS,CAAC,EAAoD;QAApD,EAAE,SAAS,OAAyC,EAApC,KAAK,cAArB,aAAuB,CAAF;IACtC,OAAO,CACL,yCACY,YAAY,EACtB,SAAS,EAAE,EAAE,CAAC,oCAAoC,EAAE,SAAS,CAAC,IAC1D,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,eAAe,CAAC,EAAoD;QAApD,EAAE,SAAS,OAAyC,EAApC,KAAK,cAArB,aAAuB,CAAF;IAC5C,OAAO,CACL,yCACY,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CAAC,uCAAuC,EAAE,SAAS,CAAC,IAC7D,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,EAAoD;QAApD,EAAE,SAAS,OAAyC,EAApC,KAAK,cAArB,aAAuB,CAAF;IACvC,OAAO,CACL,yCACY,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,oFAAoF,EACpF,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,WAAW,CAAC,EAAoD;QAApD,EAAE,SAAS,OAAyC,EAApC,KAAK,cAArB,aAAuB,CAAF;IACxC,OAAO,CACL,yCACY,cAAc,EACxB,SAAS,EAAE,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,IAChC,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,EAAoD;QAApD,EAAE,SAAS,OAAyC,EAApC,KAAK,cAArB,aAAuB,CAAF;IACvC,OAAO,CACL,yCACY,aAAa,EACvB,SAAS,EAAE,EAAE,CAAC,yDAAyD,EAAE,SAAS,CAAC,IAC/E,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,CAAA"}
|
|
@@ -11,10 +11,10 @@ type CarouselProps = {
|
|
|
11
11
|
orientation?: "horizontal" | "vertical";
|
|
12
12
|
setApi?: (api: CarouselApi) => void;
|
|
13
13
|
};
|
|
14
|
-
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps):
|
|
15
|
-
declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">):
|
|
16
|
-
declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">):
|
|
17
|
-
declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>):
|
|
18
|
-
declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>):
|
|
14
|
+
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
|
20
20
|
//# sourceMappingURL=carousel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/ui/carousel.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,gBAAgB,EAAE,EACvB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAA;AAI7B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAA;AAC1C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAChE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAC/C,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAE9C,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAA;CACpC,CAAA;AAuBD,iBAAS,QAAQ,CAAC,EAChB,WAA0B,EAC1B,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC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K,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,2CAuBrC;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,OAAmB,EACnB,IAAa,EACb,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,2CAuBrC;AAED,OAAO,EACL,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACb,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,37 +9,42 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
9
|
}
|
|
25
10
|
return t;
|
|
26
11
|
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
/*
|
|
14
|
+
* Copyright OpenSearch Contributors
|
|
15
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16
|
+
*/
|
|
27
17
|
import * as React from "react";
|
|
28
18
|
import useEmblaCarousel from "embla-carousel-react";
|
|
29
19
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
30
20
|
import { cn } from "../../lib/utils";
|
|
31
21
|
import { Button } from "../../components";
|
|
32
|
-
|
|
22
|
+
const CarouselContext = React.createContext(null);
|
|
33
23
|
function useCarousel() {
|
|
34
|
-
|
|
24
|
+
const context = React.useContext(CarouselContext);
|
|
35
25
|
if (!context) {
|
|
36
26
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
37
27
|
}
|
|
38
28
|
return context;
|
|
39
29
|
}
|
|
40
30
|
function Carousel(_a) {
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
31
|
+
var { orientation = "horizontal", opts, setApi, plugins, className, children } = _a, props = __rest(_a, ["orientation", "opts", "setApi", "plugins", "className", "children"]);
|
|
32
|
+
const [carouselRef, api] = useEmblaCarousel(Object.assign(Object.assign({}, opts), { axis: orientation === "horizontal" ? "x" : "y" }), plugins);
|
|
33
|
+
const [canScrollPrev, setCanScrollPrev] = React.useState(false);
|
|
34
|
+
const [canScrollNext, setCanScrollNext] = React.useState(false);
|
|
35
|
+
const onSelect = React.useCallback((api) => {
|
|
46
36
|
if (!api)
|
|
47
37
|
return;
|
|
48
38
|
setCanScrollPrev(api.canScrollPrev());
|
|
49
39
|
setCanScrollNext(api.canScrollNext());
|
|
50
40
|
}, []);
|
|
51
|
-
|
|
41
|
+
const scrollPrev = React.useCallback(() => {
|
|
52
42
|
api === null || api === void 0 ? void 0 : api.scrollPrev();
|
|
53
43
|
}, [api]);
|
|
54
|
-
|
|
44
|
+
const scrollNext = React.useCallback(() => {
|
|
55
45
|
api === null || api === void 0 ? void 0 : api.scrollNext();
|
|
56
46
|
}, [api]);
|
|
57
|
-
|
|
47
|
+
const handleKeyDown = React.useCallback((event) => {
|
|
58
48
|
if (event.key === "ArrowLeft") {
|
|
59
49
|
event.preventDefault();
|
|
60
50
|
scrollPrev();
|
|
@@ -64,61 +54,55 @@ function Carousel(_a) {
|
|
|
64
54
|
scrollNext();
|
|
65
55
|
}
|
|
66
56
|
}, [scrollPrev, scrollNext]);
|
|
67
|
-
React.useEffect(
|
|
57
|
+
React.useEffect(() => {
|
|
68
58
|
if (!api || !setApi)
|
|
69
59
|
return;
|
|
70
60
|
setApi(api);
|
|
71
61
|
}, [api, setApi]);
|
|
72
|
-
React.useEffect(
|
|
62
|
+
React.useEffect(() => {
|
|
73
63
|
if (!api)
|
|
74
64
|
return;
|
|
75
65
|
onSelect(api);
|
|
76
66
|
api.on("reInit", onSelect);
|
|
77
67
|
api.on("select", onSelect);
|
|
78
|
-
return
|
|
68
|
+
return () => {
|
|
79
69
|
api === null || api === void 0 ? void 0 : api.off("select", onSelect);
|
|
80
70
|
};
|
|
81
71
|
}, [api, onSelect]);
|
|
82
|
-
return (
|
|
83
|
-
carouselRef
|
|
72
|
+
return (_jsx(CarouselContext.Provider, { value: {
|
|
73
|
+
carouselRef,
|
|
84
74
|
api: api,
|
|
85
|
-
opts
|
|
75
|
+
opts,
|
|
86
76
|
orientation: orientation || ((opts === null || opts === void 0 ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
|
|
87
|
-
scrollPrev
|
|
88
|
-
scrollNext
|
|
89
|
-
canScrollPrev
|
|
90
|
-
canScrollNext
|
|
91
|
-
} },
|
|
92
|
-
React.createElement("div", __assign({ onKeyDownCapture: handleKeyDown, className: cn("oui:relative", className), role: "region", "aria-roledescription": "carousel", "data-slot": "carousel" }, props), children)));
|
|
77
|
+
scrollPrev,
|
|
78
|
+
scrollNext,
|
|
79
|
+
canScrollPrev,
|
|
80
|
+
canScrollNext,
|
|
81
|
+
}, children: _jsx("div", Object.assign({ onKeyDownCapture: handleKeyDown, className: cn("oui:relative", className), role: "region", "aria-roledescription": "carousel", "data-slot": "carousel" }, props, { children: children })) }));
|
|
93
82
|
}
|
|
94
83
|
function CarouselContent(_a) {
|
|
95
|
-
var className = _a
|
|
96
|
-
|
|
97
|
-
return (
|
|
98
|
-
React.createElement("div", __assign({ className: cn("oui:flex", orientation === "horizontal" ? "oui:-ml-4" : "oui:-mt-4 oui:flex-col", className) }, props))));
|
|
84
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
85
|
+
const { carouselRef, orientation } = useCarousel();
|
|
86
|
+
return (_jsx("div", { ref: carouselRef, className: "oui:overflow-hidden", "data-slot": "carousel-content", children: _jsx("div", Object.assign({ className: cn("oui:flex", orientation === "horizontal" ? "oui:-ml-4" : "oui:-mt-4 oui:flex-col", className) }, props)) }));
|
|
99
87
|
}
|
|
100
88
|
function CarouselItem(_a) {
|
|
101
|
-
var className = _a
|
|
102
|
-
|
|
103
|
-
return (
|
|
89
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
90
|
+
const { orientation } = useCarousel();
|
|
91
|
+
return (_jsx("div", Object.assign({ role: "group", "aria-roledescription": "slide", "data-slot": "carousel-item", className: cn("oui:min-w-0 oui:shrink-0 oui:grow-0 oui:basis-full", orientation === "horizontal" ? "oui:pl-4" : "oui:pt-4", className) }, props)));
|
|
104
92
|
}
|
|
105
93
|
function CarouselPrevious(_a) {
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
return (
|
|
94
|
+
var { className, variant = "outline", size = "icon" } = _a, props = __rest(_a, ["className", "variant", "size"]);
|
|
95
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
96
|
+
return (_jsxs(Button, Object.assign({ "data-slot": "carousel-previous", variant: variant, size: size, className: cn("oui:absolute oui:size-8 oui:rounded-full", orientation === "horizontal"
|
|
109
97
|
? "oui:top-1/2 oui:-left-12 oui:-translate-y-1/2"
|
|
110
|
-
: "oui:-top-12 oui:left-1/2 oui:-translate-x-1/2 oui:rotate-90", className), disabled: !canScrollPrev, onClick: scrollPrev }, props),
|
|
111
|
-
React.createElement(ArrowLeft, null),
|
|
112
|
-
React.createElement("span", { className: "oui:sr-only" }, "Previous slide")));
|
|
98
|
+
: "oui:-top-12 oui:left-1/2 oui:-translate-x-1/2 oui:rotate-90", className), disabled: !canScrollPrev, onClick: scrollPrev }, props, { children: [_jsx(ArrowLeft, {}), _jsx("span", { className: "oui:sr-only", children: "Previous slide" })] })));
|
|
113
99
|
}
|
|
114
100
|
function CarouselNext(_a) {
|
|
115
|
-
var
|
|
116
|
-
|
|
117
|
-
return (
|
|
101
|
+
var { className, variant = "outline", size = "icon" } = _a, props = __rest(_a, ["className", "variant", "size"]);
|
|
102
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
103
|
+
return (_jsxs(Button, Object.assign({ "data-slot": "carousel-next", variant: variant, size: size, className: cn("oui:absolute oui:size-8 oui:rounded-full", orientation === "horizontal"
|
|
118
104
|
? "oui:top-1/2 oui:-right-12 oui:-translate-y-1/2"
|
|
119
|
-
: "oui:-bottom-12 oui:left-1/2 oui:-translate-x-1/2 oui:rotate-90", className), disabled: !canScrollNext, onClick: scrollNext }, props),
|
|
120
|
-
React.createElement(ArrowRight, null),
|
|
121
|
-
React.createElement("span", { className: "oui:sr-only" }, "Next slide")));
|
|
105
|
+
: "oui:-bottom-12 oui:left-1/2 oui:-translate-x-1/2 oui:rotate-90", className), disabled: !canScrollNext, onClick: scrollNext }, props, { children: [_jsx(ArrowRight, {}), _jsx("span", { className: "oui:sr-only", children: "Next slide" })] })));
|
|
122
106
|
}
|
|
123
107
|
export { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
|
124
108
|
//# sourceMappingURL=carousel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.js","sourceRoot":"","sources":["../../../src/components/ui/carousel.tsx"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"carousel.js","sourceRoot":"","sources":["../../../src/components/ui/carousel.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,gBAEN,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEpD,OAAO,EAAE,EAAE,EAA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C,CACV,CAAA;AACH,CAAC;AAED,OAAO,EAEL,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACb,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
-
declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>):
|
|
3
|
+
declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { Checkbox };
|
|
5
5
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAK7D,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAK7D,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,2CAkBrD;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,15 +9,13 @@ 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 CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
29
14
|
import { CheckIcon } from "lucide-react";
|
|
30
15
|
import { cn } from "../../lib/utils";
|
|
31
16
|
function Checkbox(_a) {
|
|
32
|
-
var className = _a
|
|
33
|
-
return (
|
|
34
|
-
React.createElement(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "oui:grid oui:place-content-center oui:text-current oui:transition-none" },
|
|
35
|
-
React.createElement(CheckIcon, { className: "oui:size-3.5" }))));
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx(CheckboxPrimitive.Root, Object.assign({ "data-slot": "checkbox", className: cn("oui:peer oui:border-input oui:dark:bg-input/30 oui:data-[state=checked]:bg-primary oui:data-[state=checked]:text-primary-foreground oui:dark:data-[state=checked]:bg-primary oui:data-[state=checked]:border-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:size-4 oui:shrink-0 oui:rounded-[4px] oui:border oui:shadow-xs oui:transition-shadow oui:outline-none oui:focus-visible:ring-[3px] oui:disabled:cursor-not-allowed oui:disabled:opacity-50", className) }, props, { children: _jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "oui:grid oui:place-content-center oui:text-current oui:transition-none", children: _jsx(CheckIcon, { className: "oui:size-3.5" }) }) })));
|
|
36
19
|
}
|
|
37
20
|
export { Checkbox };
|
|
38
21
|
//# sourceMappingURL=checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAOA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,QAAQ,CAAC,EAGoC;QAHpC,EAChB,SAAS,OAE2C,EADjD,KAAK,cAFQ,aAGjB,CADS;IAER,OAAO,CACL,KAAC,iBAAiB,CAAC,IAAI,+BACX,UAAU,EACpB,SAAS,EAAE,EAAE,CACX,qkBAAqkB,EACrkB,SAAS,CACV,IACG,KAAK,cAET,KAAC,iBAAiB,CAAC,SAAS,iBAChB,oBAAoB,EAC9B,SAAS,EAAC,wEAAwE,YAElF,KAAC,SAAS,IAAC,SAAS,EAAC,cAAc,GAAG,GACV,IACP,CAC1B,CAAA;AACH,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
3
|
-
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>):
|
|
4
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>):
|
|
5
|
-
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>):
|
|
3
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
7
7
|
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAA;AAEnE,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAA;AAEnE,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,2CAExD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,2CAOtE;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,2CAOtE;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,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,19 @@ 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 CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
30
19
|
function Collapsible(_a) {
|
|
31
20
|
var props = __rest(_a, []);
|
|
32
|
-
return
|
|
21
|
+
return _jsx(CollapsiblePrimitive.Root, Object.assign({ "data-slot": "collapsible" }, props));
|
|
33
22
|
}
|
|
34
23
|
function CollapsibleTrigger(_a) {
|
|
35
24
|
var props = __rest(_a, []);
|
|
36
|
-
return (
|
|
25
|
+
return (_jsx(CollapsiblePrimitive.CollapsibleTrigger, Object.assign({ "data-slot": "collapsible-trigger" }, props)));
|
|
37
26
|
}
|
|
38
27
|
function CollapsibleContent(_a) {
|
|
39
28
|
var props = __rest(_a, []);
|
|
40
|
-
return (
|
|
29
|
+
return (_jsx(CollapsiblePrimitive.CollapsibleContent, Object.assign({ "data-slot": "collapsible-content" }, props)));
|
|
41
30
|
}
|
|
42
31
|
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
43
32
|
//# sourceMappingURL=collapsible.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.js","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA
|
|
1
|
+
{"version":3,"file":"collapsible.js","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,CAAA;;;;;;;;;;;;;AAGZ,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAA;AAEnE,SAAS,WAAW,CAAC,EAEoC;QADpD,KAAK,cADW,EAEpB,CADS;IAER,OAAO,KAAC,oBAAoB,CAAC,IAAI,+BAAW,aAAa,IAAK,KAAK,EAAI,CAAA;AACzE,CAAC;AAED,SAAS,kBAAkB,CAAC,EAE2C;QADlE,KAAK,cADkB,EAE3B,CADS;IAER,OAAO,CACL,KAAC,oBAAoB,CAAC,kBAAkB,+BAC5B,qBAAqB,IAC3B,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAE2C;QADlE,KAAK,cADkB,EAE3B,CADS;IAER,OAAO,CACL,KAAC,oBAAoB,CAAC,kBAAkB,+BAC5B,qBAAqB,IAC3B,KAAK,EACT,CACH,CAAA;AACH,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Command as CommandPrimitive } from "cmdk";
|
|
3
3
|
import { Dialog } from "../../components/ui/dialog";
|
|
4
|
-
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>):
|
|
4
|
+
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
6
6
|
title?: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
showCloseButton?: boolean;
|
|
10
|
-
}):
|
|
11
|
-
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>):
|
|
12
|
-
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>):
|
|
13
|
-
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>):
|
|
14
|
-
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>):
|
|
15
|
-
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>):
|
|
16
|
-
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>):
|
|
17
|
-
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">):
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
19
19
|
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAA;AAIlD,OAAO,EACL,MAAM,EAKP,MAAM,wBAAwB,CAAA;AAE/B,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAA;AAIlD,OAAO,EACL,MAAM,EAKP,MAAM,wBAAwB,CAAA;AAE/B,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,2CAW/C;AAED,iBAAS,aAAa,CAAC,EACrB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,SAAS,EACT,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACvC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