@lglab/compose-ui 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/collapsible.d.ts +20 -0
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/menu.d.ts +100 -0
- package/dist/components/menu.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +477 -291
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Collapsible as BaseCollapsible } from '@base-ui/react/collapsible';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type CollapsibleRootProps = React.ComponentProps<typeof BaseCollapsible.Root>;
|
|
4
|
+
declare const CollapsibleRoot: {
|
|
5
|
+
({ className, ...props }: CollapsibleRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
type CollapsibleTriggerProps = React.ComponentProps<typeof BaseCollapsible.Trigger>;
|
|
9
|
+
declare const CollapsibleTrigger: {
|
|
10
|
+
({ className, ...props }: CollapsibleTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
type CollapsiblePanelProps = React.ComponentProps<typeof BaseCollapsible.Panel>;
|
|
14
|
+
declare const CollapsiblePanel: {
|
|
15
|
+
({ className, ...props }: CollapsiblePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
export { CollapsibleRoot, CollapsibleTrigger, CollapsiblePanel };
|
|
19
|
+
export type { CollapsibleRootProps, CollapsibleTriggerProps, CollapsiblePanelProps };
|
|
20
|
+
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../src/components/collapsible.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAA;AAE7E,QAAA,MAAM,eAAe;8BAA6B,oBAAoB;;CAErE,CAAA;AAQD,KAAK,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,CAAA;AAEnF,QAAA,MAAM,kBAAkB;8BAA6B,uBAAuB;;CAO3E,CAAA;AAQD,KAAK,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAA;AAE/E,QAAA,MAAM,gBAAgB;8BAA6B,qBAAqB;;CAavE,CAAA;AAQD,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,CAAA;AAEhE,YAAY,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Menu as BaseMenu } from '@base-ui/react/menu';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type MenuRootProps = React.ComponentProps<typeof BaseMenu.Root>;
|
|
4
|
+
declare const MenuRoot: {
|
|
5
|
+
(props: MenuRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
type MenuTriggerProps = React.ComponentProps<typeof BaseMenu.Trigger>;
|
|
9
|
+
declare const MenuTrigger: {
|
|
10
|
+
({ className, ...props }: MenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
type MenuPortalProps = React.ComponentProps<typeof BaseMenu.Portal>;
|
|
14
|
+
declare const MenuPortal: {
|
|
15
|
+
(props: MenuPortalProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
type MenuPositionerProps = React.ComponentProps<typeof BaseMenu.Positioner>;
|
|
19
|
+
declare const MenuPositioner: {
|
|
20
|
+
({ className, ...props }: MenuPositionerProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
type MenuPopupProps = React.ComponentProps<typeof BaseMenu.Popup>;
|
|
24
|
+
declare const MenuPopup: {
|
|
25
|
+
({ className, ...props }: MenuPopupProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
type MenuArrowProps = React.ComponentProps<typeof BaseMenu.Arrow>;
|
|
29
|
+
declare const MenuArrow: {
|
|
30
|
+
({ className, ...props }: MenuArrowProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
type MenuItemProps = React.ComponentProps<typeof BaseMenu.Item>;
|
|
34
|
+
declare const MenuItem: {
|
|
35
|
+
({ className, ...props }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
type MenuSeparatorProps = React.ComponentProps<typeof BaseMenu.Separator>;
|
|
39
|
+
declare const MenuSeparator: {
|
|
40
|
+
({ className, ...props }: MenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
displayName: string;
|
|
42
|
+
};
|
|
43
|
+
type MenuGroupProps = React.ComponentProps<typeof BaseMenu.Group>;
|
|
44
|
+
declare const MenuGroup: {
|
|
45
|
+
({ className, ...props }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
type MenuGroupLabelProps = React.ComponentProps<typeof BaseMenu.GroupLabel>;
|
|
49
|
+
declare const MenuGroupLabel: {
|
|
50
|
+
({ className, ...props }: MenuGroupLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
type MenuRadioGroupProps = React.ComponentProps<typeof BaseMenu.RadioGroup>;
|
|
54
|
+
declare const MenuRadioGroup: {
|
|
55
|
+
({ className, ...props }: MenuRadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
displayName: string;
|
|
57
|
+
};
|
|
58
|
+
type MenuRadioItemProps = React.ComponentProps<typeof BaseMenu.RadioItem>;
|
|
59
|
+
declare const MenuRadioItem: {
|
|
60
|
+
({ className, ...props }: MenuRadioItemProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
displayName: string;
|
|
62
|
+
};
|
|
63
|
+
type MenuCheckboxItemProps = React.ComponentProps<typeof BaseMenu.CheckboxItem>;
|
|
64
|
+
declare const MenuCheckboxItem: {
|
|
65
|
+
({ className, ...props }: MenuCheckboxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
displayName: string;
|
|
67
|
+
};
|
|
68
|
+
type MenuRadioItemIndicatorProps = React.ComponentProps<typeof BaseMenu.RadioItemIndicator>;
|
|
69
|
+
declare const MenuRadioItemIndicator: {
|
|
70
|
+
({ className, ...props }: MenuRadioItemIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
73
|
+
type MenuCheckboxItemIndicatorProps = React.ComponentProps<typeof BaseMenu.CheckboxItemIndicator>;
|
|
74
|
+
declare const MenuCheckboxItemIndicator: {
|
|
75
|
+
({ className, ...props }: MenuCheckboxItemIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
displayName: string;
|
|
77
|
+
};
|
|
78
|
+
type MenuCheckboxItemLabelProps = React.ComponentProps<'span'>;
|
|
79
|
+
declare const MenuCheckboxItemLabel: {
|
|
80
|
+
({ className, ...props }: MenuCheckboxItemLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
displayName: string;
|
|
82
|
+
};
|
|
83
|
+
type MenuRadioItemLabelProps = React.ComponentProps<'span'>;
|
|
84
|
+
declare const MenuRadioItemLabel: {
|
|
85
|
+
({ className, ...props }: MenuRadioItemLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
displayName: string;
|
|
87
|
+
};
|
|
88
|
+
type MenuSubmenuTriggerProps = React.ComponentProps<typeof BaseMenu.SubmenuTrigger>;
|
|
89
|
+
declare const MenuSubmenuTrigger: {
|
|
90
|
+
({ className, ...props }: MenuSubmenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
displayName: string;
|
|
92
|
+
};
|
|
93
|
+
type MenuSubmenuRootProps = React.ComponentProps<typeof BaseMenu.SubmenuRoot>;
|
|
94
|
+
declare const MenuSubmenuRoot: {
|
|
95
|
+
(props: MenuSubmenuRootProps): import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
displayName: string;
|
|
97
|
+
};
|
|
98
|
+
export { MenuRoot, MenuTrigger, MenuPortal, MenuPositioner, MenuPopup, MenuArrow, MenuItem, MenuSeparator, MenuGroup, MenuGroupLabel, MenuRadioGroup, MenuRadioItem, MenuRadioItemIndicator, MenuRadioItemLabel, MenuCheckboxItem, MenuCheckboxItemIndicator, MenuCheckboxItemLabel, MenuSubmenuTrigger, MenuSubmenuRoot, };
|
|
99
|
+
export type { MenuRootProps, MenuTriggerProps, MenuPortalProps, MenuPositionerProps, MenuPopupProps, MenuArrowProps, MenuItemProps, MenuSeparatorProps, MenuGroupProps, MenuGroupLabelProps, MenuRadioGroupProps, MenuRadioItemProps, MenuRadioItemIndicatorProps, MenuRadioItemLabelProps, MenuCheckboxItemProps, MenuCheckboxItemIndicatorProps, MenuCheckboxItemLabelProps, MenuSubmenuTriggerProps, MenuSubmenuRootProps, };
|
|
100
|
+
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/components/menu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IA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B;;CAE3E,CAAA;AAQD,KAAK,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,cAAc,CAAC,CAAA;AAEnF,QAAA,MAAM,kBAAkB;8BAA6B,uBAAuB;;CAW3E,CAAA;AAQD,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,WAAW,CAAC,CAAA;AAE7E,QAAA,MAAM,eAAe;YAAW,oBAAoB;;CAEnD,CAAA;AAQD,OAAO,EACL,QAAQ,EACR,WAAW,EACX,UAAU,EACV,cAAc,EACd,SAAS,EACT,SAAS,EACT,QAAQ,EACR,aAAa,EACb,SAAS,EACT,cAAc,EACd,cAAc,EACd,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,GAChB,CAAA;AAED,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,oBAAoB,GACrB,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Button } from './components/button';
|
|
2
|
+
export { CollapsibleRoot, CollapsibleTrigger, CollapsiblePanel, } from './components/collapsible';
|
|
2
3
|
export { AlertDialogRoot, AlertDialogTrigger, AlertDialogPortal, AlertDialogBackdrop, AlertDialogViewport, AlertDialogPopup, AlertDialogTitle, AlertDialogDescription, AlertDialogClose, } from './components/alert-dialog';
|
|
3
4
|
export { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
4
5
|
export { AvatarRoot, AvatarImage, AvatarFallback, AvatarStack } from './components/avatar';
|
|
@@ -10,9 +11,11 @@ export { DialogRoot, DialogTrigger, DialogPortal, DialogBackdrop, DialogPopup, D
|
|
|
10
11
|
export { DrawerRoot, DrawerTrigger, DrawerPortal, DrawerBackdrop, DrawerPopup, DrawerTitle, DrawerDescription, DrawerClose, DrawerHeader, DrawerContent, DrawerFooter, } from './components/drawer';
|
|
11
12
|
export { AccordionRoot, AccordionItem, AccordionHeader, AccordionTrigger, AccordionPanel, } from './components/accordion';
|
|
12
13
|
export { MeterRoot, MeterTrack, MeterIndicator, MeterValue, MeterLabel, } from './components/meter';
|
|
14
|
+
export { MenuRoot, MenuTrigger, MenuPortal, MenuPositioner, MenuPopup, MenuArrow, MenuItem, MenuSeparator, MenuGroup, MenuGroupLabel, MenuRadioGroup, MenuRadioItem, MenuRadioItemIndicator, MenuRadioItemLabel, MenuCheckboxItem, MenuCheckboxItemIndicator, MenuCheckboxItemLabel, MenuSubmenuTrigger, MenuSubmenuRoot, } from './components/menu';
|
|
13
15
|
export { ProgressRoot, ProgressTrack, ProgressIndicator, ProgressValue, ProgressLabel, } from './components/progress';
|
|
14
16
|
export { ToggleGroupRoot, ToggleGroupItem } from './components/toggle-group';
|
|
15
17
|
export type { ButtonProps } from './components/button';
|
|
18
|
+
export type { CollapsibleRootProps, CollapsibleTriggerProps, CollapsiblePanelProps, } from './components/collapsible';
|
|
16
19
|
export type { AlertDialogRootProps, AlertDialogTriggerProps, AlertDialogPortalProps, AlertDialogBackdropProps, AlertDialogViewportProps, AlertDialogPopupProps, AlertDialogTitleProps, AlertDialogDescriptionProps, AlertDialogCloseProps, } from './components/alert-dialog';
|
|
17
20
|
export type { AvatarRootProps, AvatarImageProps, AvatarFallbackProps, AvatarStackProps, } from './components/avatar';
|
|
18
21
|
export type { ScrollAreaRootProps, ScrollAreaViewportProps, ScrollAreaContentProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaCornerProps, } from './components/scroll-area';
|
|
@@ -24,6 +27,7 @@ export type { DialogRootProps, DialogTriggerProps, DialogPortalProps, DialogBack
|
|
|
24
27
|
export type { DrawerRootProps, DrawerTriggerProps, DrawerPortalProps, DrawerBackdropProps, DrawerPopupProps, DrawerTitleProps, DrawerDescriptionProps, DrawerCloseProps, DrawerHeaderProps, DrawerContentProps, DrawerFooterProps, } from './components/drawer';
|
|
25
28
|
export type { AccordionRootProps, AccordionItemProps, AccordionHeaderProps, AccordionTriggerProps, AccordionPanelProps, } from './components/accordion';
|
|
26
29
|
export type { MeterRootProps, MeterTrackProps, MeterIndicatorProps, MeterValueProps, MeterLabelProps, } from './components/meter';
|
|
30
|
+
export type { MenuRootProps, MenuTriggerProps, MenuPortalProps, MenuPositionerProps, MenuPopupProps, MenuArrowProps, MenuItemProps, MenuSeparatorProps, MenuGroupProps, MenuGroupLabelProps, MenuRadioGroupProps, MenuRadioItemProps, MenuRadioItemIndicatorProps, MenuRadioItemLabelProps, MenuCheckboxItemProps, MenuCheckboxItemIndicatorProps, MenuCheckboxItemLabelProps, MenuSubmenuTriggerProps, MenuSubmenuRootProps, } from './components/menu';
|
|
27
31
|
export type { ProgressRootProps, ProgressTrackProps, ProgressIndicatorProps, ProgressValueProps, ProgressLabelProps, } from './components/progress';
|
|
28
32
|
export type { ToggleGroupRootProps, ToggleGroupItemProps, } from './components/toggle-group';
|
|
29
33
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAA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GED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t, jsxs as k } from "react/jsx-runtime";
|
|
3
3
|
import { Button as S } from "@base-ui/react/button";
|
|
4
|
-
import { cva as
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { twMerge as
|
|
7
|
-
import {
|
|
8
|
-
import { AlertDialog as
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
4
|
+
import { cva as c } from "class-variance-authority";
|
|
5
|
+
import { clsx as V } from "clsx";
|
|
6
|
+
import { twMerge as L } from "tailwind-merge";
|
|
7
|
+
import { Collapsible as D } from "@base-ui/react/collapsible";
|
|
8
|
+
import { AlertDialog as u } from "@base-ui/react/alert-dialog";
|
|
9
|
+
import { AlertDialog as Za } from "@base-ui/react/alert-dialog";
|
|
10
|
+
import { Avatar as T } from "@base-ui/react/avatar";
|
|
11
|
+
import * as v from "react";
|
|
12
|
+
import { ScrollArea as p } from "@base-ui/react/scroll-area";
|
|
13
|
+
import { Switch as M } from "@base-ui/react/switch";
|
|
14
|
+
import { Toggle as R } from "@base-ui/react/toggle";
|
|
15
|
+
import { Tabs as b } from "@base-ui/react/tabs";
|
|
16
|
+
import { Dialog as n } from "@base-ui/react/dialog";
|
|
17
|
+
import { Accordion as y } from "@base-ui/react/accordion";
|
|
18
|
+
import { Meter as h } from "@base-ui/react/meter";
|
|
19
|
+
import { Menu as l } from "@base-ui/react/menu";
|
|
20
|
+
import { Progress as N } from "@base-ui/react/progress";
|
|
21
|
+
import { ToggleGroup as _ } from "@base-ui/react/toggle-group";
|
|
22
|
+
const i = c(
|
|
21
23
|
[
|
|
22
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
24
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all select-none [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
23
25
|
],
|
|
24
26
|
{
|
|
25
27
|
variants: {
|
|
@@ -47,44 +49,68 @@ const u = n(
|
|
|
47
49
|
}
|
|
48
50
|
);
|
|
49
51
|
function r(...e) {
|
|
50
|
-
return
|
|
52
|
+
return L(V(e));
|
|
51
53
|
}
|
|
52
|
-
const
|
|
54
|
+
const j = ({
|
|
53
55
|
className: e,
|
|
54
56
|
variant: a,
|
|
55
57
|
size: o,
|
|
56
58
|
disabled: s,
|
|
57
|
-
children:
|
|
58
|
-
...
|
|
59
|
+
children: d,
|
|
60
|
+
...m
|
|
59
61
|
}) => /* @__PURE__ */ t(
|
|
60
62
|
S,
|
|
61
63
|
{
|
|
62
|
-
className: r(
|
|
64
|
+
className: r(i({ variant: a, size: o }), e),
|
|
63
65
|
disabled: s,
|
|
64
|
-
...
|
|
65
|
-
children:
|
|
66
|
+
...m,
|
|
67
|
+
children: d
|
|
66
68
|
}
|
|
67
69
|
);
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
const
|
|
70
|
+
j.displayName = "Button";
|
|
71
|
+
const F = ({ className: e, ...a }) => /* @__PURE__ */ t(D.Root, { className: r("w-full", e), ...a });
|
|
72
|
+
F.displayName = "CollapsibleRoot";
|
|
73
|
+
const B = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
74
|
+
D.Trigger,
|
|
75
|
+
{
|
|
76
|
+
className: r("flex items-center justify-between font-medium", e),
|
|
77
|
+
...a
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
B.displayName = "CollapsibleTrigger";
|
|
81
|
+
const G = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
82
|
+
D.Panel,
|
|
83
|
+
{
|
|
84
|
+
className: r(
|
|
85
|
+
'[&[hidden]:not([hidden="until-found"])]:hidden h-(--collapsible-panel-height)',
|
|
86
|
+
"overflow-hidden duration-200 transition-all ease-out",
|
|
87
|
+
"data-ending-style:h-0",
|
|
88
|
+
"data-starting-style:h-0",
|
|
89
|
+
e
|
|
90
|
+
),
|
|
91
|
+
...a
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
G.displayName = "CollapsiblePanel";
|
|
95
|
+
const H = (e) => /* @__PURE__ */ t(u.Root, { ...e });
|
|
96
|
+
H.displayName = "AlertDialogRoot";
|
|
97
|
+
const q = ({
|
|
72
98
|
className: e,
|
|
73
99
|
variant: a,
|
|
74
100
|
size: o,
|
|
75
101
|
...s
|
|
76
102
|
}) => /* @__PURE__ */ t(
|
|
77
|
-
|
|
103
|
+
u.Trigger,
|
|
78
104
|
{
|
|
79
|
-
className: r(
|
|
105
|
+
className: r(i({ variant: a, size: o }), e),
|
|
80
106
|
...s
|
|
81
107
|
}
|
|
82
108
|
);
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
const
|
|
87
|
-
|
|
109
|
+
q.displayName = "AlertDialogTrigger";
|
|
110
|
+
const E = (e) => /* @__PURE__ */ t(u.Portal, { ...e });
|
|
111
|
+
E.displayName = "AlertDialogPortal";
|
|
112
|
+
const Z = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
113
|
+
u.Backdrop,
|
|
88
114
|
{
|
|
89
115
|
className: r(
|
|
90
116
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -95,16 +121,16 @@ const L = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
95
121
|
...a
|
|
96
122
|
}
|
|
97
123
|
);
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
|
|
124
|
+
Z.displayName = "AlertDialogBackdrop";
|
|
125
|
+
const $ = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
126
|
+
u.Viewport,
|
|
101
127
|
{
|
|
102
128
|
className: r("fixed inset-0 z-50 flex items-center justify-center p-4", e),
|
|
103
129
|
...a
|
|
104
130
|
}
|
|
105
131
|
);
|
|
106
|
-
|
|
107
|
-
const
|
|
132
|
+
$.displayName = "AlertDialogViewport";
|
|
133
|
+
const O = c(
|
|
108
134
|
[
|
|
109
135
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
110
136
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -128,38 +154,38 @@ const G = n(
|
|
|
128
154
|
size: "default"
|
|
129
155
|
}
|
|
130
156
|
}
|
|
131
|
-
),
|
|
132
|
-
|
|
157
|
+
), J = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
158
|
+
u.Popup,
|
|
133
159
|
{
|
|
134
|
-
className: r(
|
|
160
|
+
className: r(O({ size: a }), e),
|
|
135
161
|
...o
|
|
136
162
|
}
|
|
137
163
|
);
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
|
|
164
|
+
J.displayName = "AlertDialogPopup";
|
|
165
|
+
const K = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
166
|
+
u.Title,
|
|
141
167
|
{
|
|
142
168
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
143
169
|
...a
|
|
144
170
|
}
|
|
145
171
|
);
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
const
|
|
172
|
+
K.displayName = "AlertDialogTitle";
|
|
173
|
+
const Q = ({ className: e, ...a }) => /* @__PURE__ */ t(u.Description, { className: r("mt-2", e), ...a });
|
|
174
|
+
Q.displayName = "AlertDialogDescription";
|
|
175
|
+
const U = ({
|
|
150
176
|
className: e,
|
|
151
177
|
variant: a,
|
|
152
178
|
size: o,
|
|
153
179
|
...s
|
|
154
180
|
}) => /* @__PURE__ */ t(
|
|
155
|
-
|
|
181
|
+
u.Close,
|
|
156
182
|
{
|
|
157
|
-
className: r(
|
|
183
|
+
className: r(i({ variant: a ?? "outline", size: o }), e),
|
|
158
184
|
...s
|
|
159
185
|
}
|
|
160
186
|
);
|
|
161
|
-
|
|
162
|
-
const z =
|
|
187
|
+
U.displayName = "AlertDialogClose";
|
|
188
|
+
const z = c(
|
|
163
189
|
[
|
|
164
190
|
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
165
191
|
"bg-muted text-foreground",
|
|
@@ -177,18 +203,18 @@ const z = n(
|
|
|
177
203
|
size: "default"
|
|
178
204
|
}
|
|
179
205
|
}
|
|
180
|
-
), P = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
206
|
+
), P = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(T.Root, { className: r(z({ size: a }), e), ...o });
|
|
181
207
|
P.displayName = "AvatarRoot";
|
|
182
|
-
const
|
|
183
|
-
|
|
208
|
+
const W = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
209
|
+
T.Image,
|
|
184
210
|
{
|
|
185
211
|
className: r("aspect-square h-full w-full object-cover", e),
|
|
186
212
|
...a
|
|
187
213
|
}
|
|
188
214
|
);
|
|
189
|
-
|
|
190
|
-
const
|
|
191
|
-
|
|
215
|
+
W.displayName = "AvatarImage";
|
|
216
|
+
const X = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
217
|
+
T.Fallback,
|
|
192
218
|
{
|
|
193
219
|
className: r(
|
|
194
220
|
"flex h-full w-full items-center justify-center font-medium",
|
|
@@ -197,19 +223,19 @@ const O = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
197
223
|
...a
|
|
198
224
|
}
|
|
199
225
|
);
|
|
200
|
-
|
|
201
|
-
const
|
|
226
|
+
X.displayName = "AvatarFallback";
|
|
227
|
+
const Y = ({
|
|
202
228
|
"aria-label": e,
|
|
203
229
|
maxVisible: a,
|
|
204
230
|
className: o,
|
|
205
231
|
children: s
|
|
206
232
|
}) => {
|
|
207
|
-
const
|
|
208
|
-
const
|
|
209
|
-
return
|
|
233
|
+
const d = v.Children.toArray(s), m = d.length, g = a !== void 0 ? Math.min(a, m) : m, x = m - g, w = d.slice(0, g), I = (() => {
|
|
234
|
+
const f = d[0];
|
|
235
|
+
return v.isValidElement(f) && f.type === P ? f.props.size ?? "default" : "default";
|
|
210
236
|
})();
|
|
211
237
|
return /* @__PURE__ */ k("ul", { "aria-label": e, className: r("flex -space-x-2", o), children: [
|
|
212
|
-
|
|
238
|
+
w.map((f, A) => /* @__PURE__ */ t("li", { children: f }, A)),
|
|
213
239
|
x > 0 && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ k(
|
|
214
240
|
"span",
|
|
215
241
|
{
|
|
@@ -217,7 +243,7 @@ const Q = ({
|
|
|
217
243
|
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
218
244
|
"bg-muted text-foreground border-2 border-background",
|
|
219
245
|
"font-medium",
|
|
220
|
-
z({ size:
|
|
246
|
+
z({ size: I })
|
|
221
247
|
),
|
|
222
248
|
children: [
|
|
223
249
|
"+",
|
|
@@ -227,25 +253,25 @@ const Q = ({
|
|
|
227
253
|
) })
|
|
228
254
|
] });
|
|
229
255
|
};
|
|
230
|
-
|
|
231
|
-
const
|
|
232
|
-
|
|
233
|
-
const
|
|
234
|
-
|
|
256
|
+
Y.displayName = "AvatarStack";
|
|
257
|
+
const ee = ({ className: e, ...a }) => /* @__PURE__ */ t(p.Root, { className: r("relative", e), ...a });
|
|
258
|
+
ee.displayName = "ScrollAreaRoot";
|
|
259
|
+
const ae = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
260
|
+
p.Viewport,
|
|
235
261
|
{
|
|
236
262
|
className: r("h-full overscroll-contain pr-3", e),
|
|
237
263
|
...a
|
|
238
264
|
}
|
|
239
265
|
);
|
|
240
|
-
|
|
241
|
-
const
|
|
242
|
-
|
|
243
|
-
const
|
|
266
|
+
ae.displayName = "ScrollAreaViewport";
|
|
267
|
+
const te = ({ className: e, ...a }) => /* @__PURE__ */ t(p.Content, { className: r("min-w-full", e), ...a });
|
|
268
|
+
te.displayName = "ScrollAreaContent";
|
|
269
|
+
const re = ({
|
|
244
270
|
className: e,
|
|
245
271
|
orientation: a = "vertical",
|
|
246
272
|
...o
|
|
247
273
|
}) => /* @__PURE__ */ t(
|
|
248
|
-
|
|
274
|
+
p.Scrollbar,
|
|
249
275
|
{
|
|
250
276
|
className: r(
|
|
251
277
|
"flex touch-none select-none p-0.5 transition-colors duration-200 ease-out",
|
|
@@ -258,9 +284,9 @@ const Y = ({
|
|
|
258
284
|
...o
|
|
259
285
|
}
|
|
260
286
|
);
|
|
261
|
-
|
|
262
|
-
const
|
|
263
|
-
|
|
287
|
+
re.displayName = "ScrollAreaScrollbar";
|
|
288
|
+
const oe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
289
|
+
p.Thumb,
|
|
264
290
|
{
|
|
265
291
|
className: r(
|
|
266
292
|
"relative flex-1 rounded-full bg-border transition-colors",
|
|
@@ -270,11 +296,11 @@ const Z = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
270
296
|
...a
|
|
271
297
|
}
|
|
272
298
|
);
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
const
|
|
277
|
-
|
|
299
|
+
oe.displayName = "ScrollAreaThumb";
|
|
300
|
+
const se = ({ className: e, ...a }) => /* @__PURE__ */ t(p.Corner, { className: r("bg-muted/50", e), ...a });
|
|
301
|
+
se.displayName = "ScrollAreaCorner";
|
|
302
|
+
const le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
303
|
+
M.Root,
|
|
278
304
|
{
|
|
279
305
|
className: r(
|
|
280
306
|
"relative flex h-6 w-10 rounded-full",
|
|
@@ -291,9 +317,9 @@ const ae = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
291
317
|
...a
|
|
292
318
|
}
|
|
293
319
|
);
|
|
294
|
-
|
|
295
|
-
const
|
|
296
|
-
|
|
320
|
+
le.displayName = "SwitchRoot";
|
|
321
|
+
const ne = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
322
|
+
M.Thumb,
|
|
297
323
|
{
|
|
298
324
|
className: r(
|
|
299
325
|
"aspect-square h-full rounded-full bg-background",
|
|
@@ -307,8 +333,8 @@ const te = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
307
333
|
...a
|
|
308
334
|
}
|
|
309
335
|
);
|
|
310
|
-
|
|
311
|
-
const
|
|
336
|
+
ne.displayName = "SwitchThumb";
|
|
337
|
+
const C = c(
|
|
312
338
|
[
|
|
313
339
|
"inline-flex items-center justify-center gap-2 rounded-md",
|
|
314
340
|
"text-sm font-medium",
|
|
@@ -339,11 +365,11 @@ const R = n(
|
|
|
339
365
|
size: "default"
|
|
340
366
|
}
|
|
341
367
|
}
|
|
342
|
-
),
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
const
|
|
368
|
+
), ie = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(R, { className: r(C({ variant: a, size: o }), e), ...s });
|
|
369
|
+
ie.displayName = "Toggle";
|
|
370
|
+
const de = ({ className: e, ...a }) => /* @__PURE__ */ t(b.Root, { className: r("flex flex-col", e), ...a });
|
|
371
|
+
de.displayName = "TabsRoot";
|
|
372
|
+
const ce = c(
|
|
347
373
|
["relative inline-flex w-fit items-center gap-1", "rounded-lg bg-muted p-1"],
|
|
348
374
|
{
|
|
349
375
|
variants: {
|
|
@@ -356,15 +382,15 @@ const se = n(
|
|
|
356
382
|
orientation: "horizontal"
|
|
357
383
|
}
|
|
358
384
|
}
|
|
359
|
-
),
|
|
360
|
-
|
|
385
|
+
), ue = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
|
|
386
|
+
b.List,
|
|
361
387
|
{
|
|
362
|
-
className: r(
|
|
388
|
+
className: r(ce({ orientation: a }), e),
|
|
363
389
|
...o
|
|
364
390
|
}
|
|
365
391
|
);
|
|
366
|
-
|
|
367
|
-
const
|
|
392
|
+
ue.displayName = "TabsList";
|
|
393
|
+
const me = c(
|
|
368
394
|
[
|
|
369
395
|
"relative z-10 inline-flex items-center justify-center whitespace-nowrap",
|
|
370
396
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
@@ -385,9 +411,9 @@ const ie = n(
|
|
|
385
411
|
size: "default"
|
|
386
412
|
}
|
|
387
413
|
}
|
|
388
|
-
),
|
|
389
|
-
|
|
390
|
-
const
|
|
414
|
+
), pe = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(b.Tab, { className: r(me({ size: a }), e), ...o });
|
|
415
|
+
pe.displayName = "TabsTab";
|
|
416
|
+
const ge = c(
|
|
391
417
|
["absolute rounded-md bg-background shadow-sm", "transition-all duration-200 ease-out"],
|
|
392
418
|
{
|
|
393
419
|
variants: {
|
|
@@ -400,34 +426,34 @@ const de = n(
|
|
|
400
426
|
orientation: "horizontal"
|
|
401
427
|
}
|
|
402
428
|
}
|
|
403
|
-
),
|
|
429
|
+
), fe = ({
|
|
404
430
|
className: e,
|
|
405
431
|
orientation: a = "horizontal",
|
|
406
432
|
...o
|
|
407
433
|
}) => /* @__PURE__ */ t(
|
|
408
|
-
|
|
434
|
+
b.Indicator,
|
|
409
435
|
{
|
|
410
|
-
className: r(
|
|
436
|
+
className: r(ge({ orientation: a }), e),
|
|
411
437
|
...o
|
|
412
438
|
}
|
|
413
439
|
);
|
|
414
|
-
|
|
415
|
-
const
|
|
416
|
-
|
|
417
|
-
const
|
|
418
|
-
|
|
419
|
-
const
|
|
420
|
-
|
|
440
|
+
fe.displayName = "TabsIndicator";
|
|
441
|
+
const be = ({ className: e, ...a }) => /* @__PURE__ */ t(b.Panel, { className: r("mt-2 ring-offset-background", e), ...a });
|
|
442
|
+
be.displayName = "TabsPanel";
|
|
443
|
+
const ye = (e) => /* @__PURE__ */ t(n.Root, { ...e });
|
|
444
|
+
ye.displayName = "DialogRoot";
|
|
445
|
+
const he = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
446
|
+
n.Trigger,
|
|
421
447
|
{
|
|
422
|
-
className: r(
|
|
448
|
+
className: r(i({ variant: a, size: o }), e),
|
|
423
449
|
...s
|
|
424
450
|
}
|
|
425
451
|
);
|
|
426
|
-
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
const
|
|
430
|
-
|
|
452
|
+
he.displayName = "DialogTrigger";
|
|
453
|
+
const Ne = (e) => /* @__PURE__ */ t(n.Portal, { ...e });
|
|
454
|
+
Ne.displayName = "DialogPortal";
|
|
455
|
+
const xe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
456
|
+
n.Backdrop,
|
|
431
457
|
{
|
|
432
458
|
className: r(
|
|
433
459
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -438,8 +464,8 @@ const fe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
438
464
|
...a
|
|
439
465
|
}
|
|
440
466
|
);
|
|
441
|
-
|
|
442
|
-
const
|
|
467
|
+
xe.displayName = "DialogBackdrop";
|
|
468
|
+
const ve = c(
|
|
443
469
|
[
|
|
444
470
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
445
471
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -463,35 +489,35 @@ const be = n(
|
|
|
463
489
|
size: "default"
|
|
464
490
|
}
|
|
465
491
|
}
|
|
466
|
-
),
|
|
467
|
-
|
|
492
|
+
), we = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
493
|
+
n.Popup,
|
|
468
494
|
{
|
|
469
|
-
className: r(
|
|
495
|
+
className: r(ve({ size: a }), e),
|
|
470
496
|
...o
|
|
471
497
|
}
|
|
472
498
|
);
|
|
473
|
-
|
|
474
|
-
const
|
|
475
|
-
|
|
499
|
+
we.displayName = "DialogPopup";
|
|
500
|
+
const ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
501
|
+
n.Title,
|
|
476
502
|
{
|
|
477
503
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
478
504
|
...a
|
|
479
505
|
}
|
|
480
506
|
);
|
|
481
|
-
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
const
|
|
485
|
-
|
|
507
|
+
ke.displayName = "DialogTitle";
|
|
508
|
+
const De = ({ className: e, ...a }) => /* @__PURE__ */ t(n.Description, { className: r("mt-2", e), ...a });
|
|
509
|
+
De.displayName = "DialogDescription";
|
|
510
|
+
const Te = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
511
|
+
n.Close,
|
|
486
512
|
{
|
|
487
|
-
className: r(
|
|
513
|
+
className: r(i({ variant: a ?? "outline", size: o }), e),
|
|
488
514
|
...s
|
|
489
515
|
}
|
|
490
516
|
);
|
|
491
|
-
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
const
|
|
517
|
+
Te.displayName = "DialogClose";
|
|
518
|
+
const Ae = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
|
|
519
|
+
Ae.displayName = "DialogHeader";
|
|
520
|
+
const Me = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
495
521
|
"div",
|
|
496
522
|
{
|
|
497
523
|
className: r(
|
|
@@ -501,21 +527,21 @@ const we = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
501
527
|
...a
|
|
502
528
|
}
|
|
503
529
|
);
|
|
504
|
-
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
const
|
|
508
|
-
|
|
530
|
+
Me.displayName = "DialogFooter";
|
|
531
|
+
const Re = (e) => /* @__PURE__ */ t(n.Root, { ...e });
|
|
532
|
+
Re.displayName = "DrawerRoot";
|
|
533
|
+
const ze = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
534
|
+
n.Trigger,
|
|
509
535
|
{
|
|
510
|
-
className: r(
|
|
536
|
+
className: r(i({ variant: a, size: o }), e),
|
|
511
537
|
...s
|
|
512
538
|
}
|
|
513
539
|
);
|
|
514
|
-
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
|
|
540
|
+
ze.displayName = "DrawerTrigger";
|
|
541
|
+
const Pe = (e) => /* @__PURE__ */ t(n.Portal, { ...e });
|
|
542
|
+
Pe.displayName = "DrawerPortal";
|
|
543
|
+
const Ce = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
544
|
+
n.Backdrop,
|
|
519
545
|
{
|
|
520
546
|
className: r(
|
|
521
547
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -526,8 +552,8 @@ const Te = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
526
552
|
...a
|
|
527
553
|
}
|
|
528
554
|
);
|
|
529
|
-
|
|
530
|
-
const
|
|
555
|
+
Ce.displayName = "DrawerBackdrop";
|
|
556
|
+
const Ie = c(
|
|
531
557
|
[
|
|
532
558
|
"fixed z-50 flex flex-col bg-background p-6 shadow-lg",
|
|
533
559
|
"transition-transform duration-300 ease-out",
|
|
@@ -563,52 +589,52 @@ const ze = n(
|
|
|
563
589
|
side: "right"
|
|
564
590
|
}
|
|
565
591
|
}
|
|
566
|
-
),
|
|
567
|
-
|
|
592
|
+
), Se = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
|
|
593
|
+
n.Popup,
|
|
568
594
|
{
|
|
569
|
-
className: r(
|
|
595
|
+
className: r(Ie({ side: a }), e),
|
|
570
596
|
...o
|
|
571
597
|
}
|
|
572
598
|
);
|
|
573
|
-
|
|
574
|
-
const
|
|
575
|
-
|
|
599
|
+
Se.displayName = "DrawerPopup";
|
|
600
|
+
const Ve = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
601
|
+
n.Title,
|
|
576
602
|
{
|
|
577
603
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
578
604
|
...a
|
|
579
605
|
}
|
|
580
606
|
);
|
|
581
|
-
|
|
582
|
-
const
|
|
583
|
-
|
|
584
|
-
const
|
|
585
|
-
|
|
607
|
+
Ve.displayName = "DrawerTitle";
|
|
608
|
+
const Le = ({ className: e, ...a }) => /* @__PURE__ */ t(n.Description, { className: r("", e), ...a });
|
|
609
|
+
Le.displayName = "DrawerDescription";
|
|
610
|
+
const _e = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
611
|
+
n.Close,
|
|
586
612
|
{
|
|
587
|
-
className: r(
|
|
613
|
+
className: r(i({ variant: a ?? "outline", size: o }), e),
|
|
588
614
|
...s
|
|
589
615
|
}
|
|
590
616
|
);
|
|
591
|
-
|
|
592
|
-
const
|
|
593
|
-
|
|
594
|
-
const
|
|
595
|
-
|
|
596
|
-
const
|
|
597
|
-
|
|
598
|
-
const
|
|
599
|
-
|
|
600
|
-
const
|
|
601
|
-
|
|
617
|
+
_e.displayName = "DrawerClose";
|
|
618
|
+
const je = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
|
|
619
|
+
je.displayName = "DrawerHeader";
|
|
620
|
+
const Fe = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("py-5", e), ...a });
|
|
621
|
+
Fe.displayName = "DrawerContent";
|
|
622
|
+
const Be = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("", e), ...a });
|
|
623
|
+
Be.displayName = "DrawerFooter";
|
|
624
|
+
const Ge = ({ className: e, ...a }) => /* @__PURE__ */ t(y.Root, { className: r("w-full", e), ...a });
|
|
625
|
+
Ge.displayName = "AccordionRoot";
|
|
626
|
+
const He = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
627
|
+
y.Item,
|
|
602
628
|
{
|
|
603
629
|
className: r("border-b border-border last:border-b-0", e),
|
|
604
630
|
...a
|
|
605
631
|
}
|
|
606
632
|
);
|
|
607
|
-
|
|
608
|
-
const
|
|
609
|
-
|
|
610
|
-
const
|
|
611
|
-
|
|
633
|
+
He.displayName = "AccordionItem";
|
|
634
|
+
const qe = ({ className: e, ...a }) => /* @__PURE__ */ t(y.Header, { className: r("flex", e), ...a });
|
|
635
|
+
qe.displayName = "AccordionHeader";
|
|
636
|
+
const Ee = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
|
|
637
|
+
y.Trigger,
|
|
612
638
|
{
|
|
613
639
|
className: r(
|
|
614
640
|
"flex flex-1 items-center justify-between py-3 font-medium",
|
|
@@ -618,9 +644,9 @@ const je = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
|
|
|
618
644
|
children: a
|
|
619
645
|
}
|
|
620
646
|
);
|
|
621
|
-
|
|
622
|
-
const
|
|
623
|
-
|
|
647
|
+
Ee.displayName = "AccordionTrigger";
|
|
648
|
+
const Ze = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
649
|
+
y.Panel,
|
|
624
650
|
{
|
|
625
651
|
className: r(
|
|
626
652
|
"overflow-hidden duration-200 h-(--accordion-panel-height) transition-height ease-out data-ending-style:h-0 data-starting-style:h-0",
|
|
@@ -629,25 +655,25 @@ const Le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
629
655
|
...a
|
|
630
656
|
}
|
|
631
657
|
);
|
|
632
|
-
|
|
633
|
-
const
|
|
634
|
-
const
|
|
635
|
-
return
|
|
658
|
+
Ze.displayName = "AccordionPanel";
|
|
659
|
+
const $e = ({ className: e, animated: a, value: o, ...s }) => {
|
|
660
|
+
const d = o ?? 0, [m, g] = v.useState(a ? 0 : d);
|
|
661
|
+
return v.useEffect(() => {
|
|
636
662
|
if (a) {
|
|
637
663
|
const x = requestAnimationFrame(() => {
|
|
638
|
-
const
|
|
639
|
-
g(
|
|
664
|
+
const w = requestAnimationFrame(() => {
|
|
665
|
+
g(d ?? 0);
|
|
640
666
|
});
|
|
641
|
-
return () => cancelAnimationFrame(
|
|
667
|
+
return () => cancelAnimationFrame(w);
|
|
642
668
|
});
|
|
643
669
|
return () => cancelAnimationFrame(x);
|
|
644
670
|
} else
|
|
645
|
-
g(
|
|
646
|
-
}, [a,
|
|
671
|
+
g(d ?? 0);
|
|
672
|
+
}, [a, d]), /* @__PURE__ */ t(h.Root, { className: r("w-full", e), value: m, ...s });
|
|
647
673
|
};
|
|
648
|
-
|
|
649
|
-
const
|
|
650
|
-
|
|
674
|
+
$e.displayName = "MeterRoot";
|
|
675
|
+
const Oe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
676
|
+
h.Track,
|
|
651
677
|
{
|
|
652
678
|
className: r(
|
|
653
679
|
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
@@ -656,9 +682,9 @@ const Ge = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
656
682
|
...a
|
|
657
683
|
}
|
|
658
684
|
);
|
|
659
|
-
|
|
660
|
-
const
|
|
661
|
-
|
|
685
|
+
Oe.displayName = "MeterTrack";
|
|
686
|
+
const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
687
|
+
h.Indicator,
|
|
662
688
|
{
|
|
663
689
|
className: r(
|
|
664
690
|
"h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
|
|
@@ -667,27 +693,165 @@ const qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
667
693
|
...a
|
|
668
694
|
}
|
|
669
695
|
);
|
|
670
|
-
|
|
671
|
-
const
|
|
672
|
-
|
|
696
|
+
Je.displayName = "MeterIndicator";
|
|
697
|
+
const Ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
698
|
+
h.Value,
|
|
673
699
|
{
|
|
674
700
|
className: r("text-sm font-medium text-foreground", e),
|
|
675
701
|
...a
|
|
676
702
|
}
|
|
677
703
|
);
|
|
678
|
-
|
|
679
|
-
const
|
|
680
|
-
|
|
704
|
+
Ke.displayName = "MeterValue";
|
|
705
|
+
const Qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
706
|
+
h.Label,
|
|
681
707
|
{
|
|
682
708
|
className: r("text-sm font-medium text-foreground", e),
|
|
683
709
|
...a
|
|
684
710
|
}
|
|
685
711
|
);
|
|
686
|
-
|
|
687
|
-
const
|
|
688
|
-
|
|
689
|
-
const
|
|
690
|
-
|
|
712
|
+
Qe.displayName = "MeterLabel";
|
|
713
|
+
const Ue = (e) => /* @__PURE__ */ t(l.Root, { ...e });
|
|
714
|
+
Ue.displayName = "MenuRoot";
|
|
715
|
+
const We = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Trigger, { className: r(e), ...a });
|
|
716
|
+
We.displayName = "MenuTrigger";
|
|
717
|
+
const Xe = (e) => /* @__PURE__ */ t(l.Portal, { ...e });
|
|
718
|
+
Xe.displayName = "MenuPortal";
|
|
719
|
+
const Ye = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
720
|
+
l.Positioner,
|
|
721
|
+
{
|
|
722
|
+
className: r("z-50 outline-none", e),
|
|
723
|
+
sideOffset: 8,
|
|
724
|
+
...a
|
|
725
|
+
}
|
|
726
|
+
);
|
|
727
|
+
Ye.displayName = "MenuPositioner";
|
|
728
|
+
const ea = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
729
|
+
l.Popup,
|
|
730
|
+
{
|
|
731
|
+
className: r(
|
|
732
|
+
"rounded-md bg-background p-1 text-foreground shadow-sm shadow-gray-200 border border-border transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-0 data-starting-style:opacity-0 dark:shadow-none",
|
|
733
|
+
"min-w-[8rem]",
|
|
734
|
+
e
|
|
735
|
+
),
|
|
736
|
+
...a
|
|
737
|
+
}
|
|
738
|
+
);
|
|
739
|
+
ea.displayName = "MenuPopup";
|
|
740
|
+
const aa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
741
|
+
l.Arrow,
|
|
742
|
+
{
|
|
743
|
+
className: r(
|
|
744
|
+
"flex data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",
|
|
745
|
+
e
|
|
746
|
+
),
|
|
747
|
+
...a,
|
|
748
|
+
children: /* @__PURE__ */ t(ta, {})
|
|
749
|
+
}
|
|
750
|
+
);
|
|
751
|
+
function ta(e) {
|
|
752
|
+
return /* @__PURE__ */ k("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
|
|
753
|
+
/* @__PURE__ */ t(
|
|
754
|
+
"path",
|
|
755
|
+
{
|
|
756
|
+
d: "M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",
|
|
757
|
+
className: "fill-background"
|
|
758
|
+
}
|
|
759
|
+
),
|
|
760
|
+
/* @__PURE__ */ t(
|
|
761
|
+
"path",
|
|
762
|
+
{
|
|
763
|
+
d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z",
|
|
764
|
+
className: "fill-border"
|
|
765
|
+
}
|
|
766
|
+
)
|
|
767
|
+
] });
|
|
768
|
+
}
|
|
769
|
+
aa.displayName = "MenuArrow";
|
|
770
|
+
const ra = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
771
|
+
l.Item,
|
|
772
|
+
{
|
|
773
|
+
className: r(
|
|
774
|
+
i({ variant: "ghost", size: "sm" }),
|
|
775
|
+
"flex justify-start",
|
|
776
|
+
e
|
|
777
|
+
),
|
|
778
|
+
...a
|
|
779
|
+
}
|
|
780
|
+
);
|
|
781
|
+
ra.displayName = "MenuItem";
|
|
782
|
+
const oa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
783
|
+
l.Separator,
|
|
784
|
+
{
|
|
785
|
+
className: r("-mx-1 my-1 h-px bg-border", e),
|
|
786
|
+
...a
|
|
787
|
+
}
|
|
788
|
+
);
|
|
789
|
+
oa.displayName = "MenuSeparator";
|
|
790
|
+
const sa = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Group, { className: r(e), ...a });
|
|
791
|
+
sa.displayName = "MenuGroup";
|
|
792
|
+
const la = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
793
|
+
l.GroupLabel,
|
|
794
|
+
{
|
|
795
|
+
className: r("px-3 py-1.5 text-sm font-semibold", e),
|
|
796
|
+
...a
|
|
797
|
+
}
|
|
798
|
+
);
|
|
799
|
+
la.displayName = "MenuGroupLabel";
|
|
800
|
+
const na = ({ className: e, ...a }) => /* @__PURE__ */ t(l.RadioGroup, { className: r(e), ...a });
|
|
801
|
+
na.displayName = "MenuRadioGroup";
|
|
802
|
+
const ia = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
803
|
+
l.RadioItem,
|
|
804
|
+
{
|
|
805
|
+
className: r(
|
|
806
|
+
i({ variant: "ghost", size: "sm" }),
|
|
807
|
+
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
808
|
+
e
|
|
809
|
+
),
|
|
810
|
+
...a
|
|
811
|
+
}
|
|
812
|
+
);
|
|
813
|
+
ia.displayName = "MenuRadioItem";
|
|
814
|
+
const da = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
815
|
+
l.CheckboxItem,
|
|
816
|
+
{
|
|
817
|
+
className: r(
|
|
818
|
+
i({ variant: "ghost", size: "sm" }),
|
|
819
|
+
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
820
|
+
e
|
|
821
|
+
),
|
|
822
|
+
...a
|
|
823
|
+
}
|
|
824
|
+
);
|
|
825
|
+
da.displayName = "MenuCheckboxItem";
|
|
826
|
+
const ca = ({ className: e, ...a }) => /* @__PURE__ */ t(l.RadioItemIndicator, { className: r("col-start-1", e), ...a });
|
|
827
|
+
ca.displayName = "MenuRadioItemIndicator";
|
|
828
|
+
const ua = ({
|
|
829
|
+
className: e,
|
|
830
|
+
...a
|
|
831
|
+
}) => /* @__PURE__ */ t(l.CheckboxItemIndicator, { className: r("col-start-1", e), ...a });
|
|
832
|
+
ua.displayName = "MenuCheckboxItemIndicator";
|
|
833
|
+
const ma = ({ className: e, ...a }) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
834
|
+
ma.displayName = "MenuCheckboxItemLabel";
|
|
835
|
+
const pa = ({ className: e, ...a }) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
836
|
+
pa.displayName = "MenuRadioItemLabel";
|
|
837
|
+
const ga = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
838
|
+
l.SubmenuTrigger,
|
|
839
|
+
{
|
|
840
|
+
className: r(
|
|
841
|
+
i({ variant: "ghost", size: "sm" }),
|
|
842
|
+
"flex justify-between",
|
|
843
|
+
e
|
|
844
|
+
),
|
|
845
|
+
...a
|
|
846
|
+
}
|
|
847
|
+
);
|
|
848
|
+
ga.displayName = "MenuSubmenuTrigger";
|
|
849
|
+
const fa = (e) => /* @__PURE__ */ t(l.SubmenuRoot, { ...e });
|
|
850
|
+
fa.displayName = "MenuSubmenuRoot";
|
|
851
|
+
const ba = ({ className: e, ...a }) => /* @__PURE__ */ t(N.Root, { className: r("w-full", e), ...a });
|
|
852
|
+
ba.displayName = "ProgressRoot";
|
|
853
|
+
const ya = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
854
|
+
N.Track,
|
|
691
855
|
{
|
|
692
856
|
className: r(
|
|
693
857
|
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
@@ -696,9 +860,9 @@ const Ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
696
860
|
...a
|
|
697
861
|
}
|
|
698
862
|
);
|
|
699
|
-
|
|
700
|
-
const
|
|
701
|
-
|
|
863
|
+
ya.displayName = "ProgressTrack";
|
|
864
|
+
const ha = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
865
|
+
N.Indicator,
|
|
702
866
|
{
|
|
703
867
|
className: r(
|
|
704
868
|
"h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
|
|
@@ -707,25 +871,25 @@ const Oe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
707
871
|
...a
|
|
708
872
|
}
|
|
709
873
|
);
|
|
710
|
-
|
|
711
|
-
const
|
|
712
|
-
|
|
874
|
+
ha.displayName = "ProgressIndicator";
|
|
875
|
+
const Na = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
876
|
+
N.Value,
|
|
713
877
|
{
|
|
714
878
|
className: r("text-sm font-medium text-foreground", e),
|
|
715
879
|
...a
|
|
716
880
|
}
|
|
717
881
|
);
|
|
718
|
-
|
|
719
|
-
const
|
|
720
|
-
|
|
882
|
+
Na.displayName = "ProgressValue";
|
|
883
|
+
const xa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
884
|
+
N.Label,
|
|
721
885
|
{
|
|
722
886
|
className: r("text-sm font-medium text-foreground", e),
|
|
723
887
|
...a
|
|
724
888
|
}
|
|
725
889
|
);
|
|
726
|
-
|
|
727
|
-
const
|
|
728
|
-
|
|
890
|
+
xa.displayName = "ProgressLabel";
|
|
891
|
+
const va = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
|
|
892
|
+
_,
|
|
729
893
|
{
|
|
730
894
|
orientation: a,
|
|
731
895
|
className: r(
|
|
@@ -741,17 +905,17 @@ const We = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
|
|
|
741
905
|
...o
|
|
742
906
|
}
|
|
743
907
|
);
|
|
744
|
-
|
|
745
|
-
const
|
|
908
|
+
va.displayName = "ToggleGroupRoot";
|
|
909
|
+
const wa = ({
|
|
746
910
|
className: e,
|
|
747
911
|
variant: a,
|
|
748
912
|
size: o,
|
|
749
913
|
...s
|
|
750
914
|
}) => /* @__PURE__ */ t(
|
|
751
|
-
|
|
915
|
+
R,
|
|
752
916
|
{
|
|
753
917
|
className: r(
|
|
754
|
-
|
|
918
|
+
C({ variant: a, size: o }),
|
|
755
919
|
// Ghost variant in toggle-group: add borders, no background when pressed
|
|
756
920
|
a === "ghost" && "border border-border",
|
|
757
921
|
e
|
|
@@ -759,73 +923,95 @@ const Xe = ({
|
|
|
759
923
|
...s
|
|
760
924
|
}
|
|
761
925
|
);
|
|
762
|
-
|
|
926
|
+
wa.displayName = "ToggleGroupItem";
|
|
763
927
|
export {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
928
|
+
qe as AccordionHeader,
|
|
929
|
+
He as AccordionItem,
|
|
930
|
+
Ze as AccordionPanel,
|
|
931
|
+
Ge as AccordionRoot,
|
|
932
|
+
Ee as AccordionTrigger,
|
|
933
|
+
Za as AlertDialog,
|
|
934
|
+
Z as AlertDialogBackdrop,
|
|
935
|
+
U as AlertDialogClose,
|
|
936
|
+
Q as AlertDialogDescription,
|
|
937
|
+
J as AlertDialogPopup,
|
|
938
|
+
E as AlertDialogPortal,
|
|
939
|
+
H as AlertDialogRoot,
|
|
940
|
+
K as AlertDialogTitle,
|
|
941
|
+
q as AlertDialogTrigger,
|
|
942
|
+
$ as AlertDialogViewport,
|
|
943
|
+
X as AvatarFallback,
|
|
944
|
+
W as AvatarImage,
|
|
781
945
|
P as AvatarRoot,
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
946
|
+
Y as AvatarStack,
|
|
947
|
+
j as Button,
|
|
948
|
+
G as CollapsiblePanel,
|
|
949
|
+
F as CollapsibleRoot,
|
|
950
|
+
B as CollapsibleTrigger,
|
|
951
|
+
xe as DialogBackdrop,
|
|
952
|
+
Te as DialogClose,
|
|
953
|
+
De as DialogDescription,
|
|
954
|
+
Me as DialogFooter,
|
|
955
|
+
Ae as DialogHeader,
|
|
956
|
+
we as DialogPopup,
|
|
957
|
+
Ne as DialogPortal,
|
|
958
|
+
ye as DialogRoot,
|
|
959
|
+
ke as DialogTitle,
|
|
960
|
+
he as DialogTrigger,
|
|
961
|
+
Ce as DrawerBackdrop,
|
|
962
|
+
_e as DrawerClose,
|
|
963
|
+
Fe as DrawerContent,
|
|
964
|
+
Le as DrawerDescription,
|
|
965
|
+
Be as DrawerFooter,
|
|
966
|
+
je as DrawerHeader,
|
|
967
|
+
Se as DrawerPopup,
|
|
968
|
+
Pe as DrawerPortal,
|
|
969
|
+
Re as DrawerRoot,
|
|
970
|
+
Ve as DrawerTitle,
|
|
971
|
+
ze as DrawerTrigger,
|
|
972
|
+
aa as MenuArrow,
|
|
973
|
+
da as MenuCheckboxItem,
|
|
974
|
+
ua as MenuCheckboxItemIndicator,
|
|
975
|
+
ma as MenuCheckboxItemLabel,
|
|
976
|
+
sa as MenuGroup,
|
|
977
|
+
la as MenuGroupLabel,
|
|
978
|
+
ra as MenuItem,
|
|
979
|
+
ea as MenuPopup,
|
|
980
|
+
Xe as MenuPortal,
|
|
981
|
+
Ye as MenuPositioner,
|
|
982
|
+
na as MenuRadioGroup,
|
|
983
|
+
ia as MenuRadioItem,
|
|
984
|
+
ca as MenuRadioItemIndicator,
|
|
985
|
+
pa as MenuRadioItemLabel,
|
|
986
|
+
Ue as MenuRoot,
|
|
987
|
+
oa as MenuSeparator,
|
|
988
|
+
fa as MenuSubmenuRoot,
|
|
989
|
+
ga as MenuSubmenuTrigger,
|
|
990
|
+
We as MenuTrigger,
|
|
991
|
+
Je as MeterIndicator,
|
|
992
|
+
Qe as MeterLabel,
|
|
993
|
+
$e as MeterRoot,
|
|
994
|
+
Oe as MeterTrack,
|
|
995
|
+
Ke as MeterValue,
|
|
996
|
+
ha as ProgressIndicator,
|
|
997
|
+
xa as ProgressLabel,
|
|
998
|
+
ba as ProgressRoot,
|
|
999
|
+
ya as ProgressTrack,
|
|
1000
|
+
Na as ProgressValue,
|
|
1001
|
+
te as ScrollAreaContent,
|
|
1002
|
+
se as ScrollAreaCorner,
|
|
1003
|
+
ee as ScrollAreaRoot,
|
|
1004
|
+
re as ScrollAreaScrollbar,
|
|
1005
|
+
oe as ScrollAreaThumb,
|
|
1006
|
+
ae as ScrollAreaViewport,
|
|
1007
|
+
le as SwitchRoot,
|
|
1008
|
+
ne as SwitchThumb,
|
|
1009
|
+
fe as TabsIndicator,
|
|
1010
|
+
ue as TabsList,
|
|
1011
|
+
be as TabsPanel,
|
|
1012
|
+
de as TabsRoot,
|
|
1013
|
+
pe as TabsTab,
|
|
1014
|
+
ie as Toggle,
|
|
1015
|
+
wa as ToggleGroupItem,
|
|
1016
|
+
va as ToggleGroupRoot
|
|
831
1017
|
};
|