@dxos/react-ui 0.3.10-next.ef70620 → 0.3.11-main.008b7c6
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/lib/browser/index.mjs +305 -219
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/components/Menus/ContextMenu.d.ts +50 -0
- package/dist/types/src/components/Menus/ContextMenu.d.ts.map +1 -0
- package/dist/types/src/components/Menus/ContextMenu.stories.d.ts +21 -0
- package/dist/types/src/components/Menus/ContextMenu.stories.d.ts.map +1 -0
- package/dist/types/src/components/{DropdownMenu → Menus}/DropdownMenu.d.ts +23 -23
- package/dist/types/src/components/Menus/DropdownMenu.d.ts.map +1 -0
- package/dist/types/src/components/Menus/DropdownMenu.stories.d.ts.map +1 -0
- package/dist/types/src/components/Menus/index.d.ts +3 -0
- package/dist/types/src/components/Menus/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/playground/Typography.stories.d.ts +16 -0
- package/dist/types/src/playground/Typography.stories.d.ts.map +1 -0
- package/package.json +7 -6
- package/src/components/Avatars/Avatar.stories.tsx +1 -1
- package/src/components/Avatars/AvatarGroup.stories.tsx +1 -1
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +1 -1
- package/src/components/Buttons/Button.stories.tsx +1 -1
- package/src/components/Buttons/Toggle.stories.tsx +1 -1
- package/src/components/Buttons/ToggleGroup.stories.tsx +1 -1
- package/src/components/Dialogs/AlertDialog.stories.tsx +1 -1
- package/src/components/Dialogs/Dialog.stories.tsx +1 -1
- package/src/components/Input/Input.stories.tsx +1 -1
- package/src/components/Link/Link.stories.tsx +1 -1
- package/src/components/Lists/List.stories.tsx +1 -1
- package/src/components/Lists/Tree.stories.tsx +1 -1
- package/src/components/Main/Main.stories.tsx +1 -1
- package/src/components/Menus/ContextMenu.stories.tsx +106 -0
- package/src/components/Menus/ContextMenu.tsx +170 -0
- package/src/components/{DropdownMenu → Menus}/DropdownMenu.stories.tsx +1 -1
- package/src/components/Menus/DropdownMenu.tsx +173 -0
- package/src/components/{DropdownMenu → Menus}/index.ts +1 -0
- package/src/components/Message/Message.stories.tsx +1 -1
- package/src/components/Popover/Popover.stories.tsx +1 -1
- package/src/components/ScrollArea/ScrollArea.stories.tsx +1 -1
- package/src/components/Select/Select.stories.tsx +1 -1
- package/src/components/Status/Status.stories.tsx +1 -1
- package/src/components/Tag/Tag.stories.tsx +1 -1
- package/src/components/ThemeProvider/ThemeProvider.tsx +1 -1
- package/src/components/Toast/Toast.stories.tsx +1 -1
- package/src/components/Toolbar/Toolbar.stories.tsx +1 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/components/index.ts +1 -1
- package/src/playground/Controls.stories.tsx +1 -1
- package/src/playground/Surfaces.stories.tsx +1 -1
- package/src/playground/Typography.stories.tsx +55 -0
- package/dist/types/src/components/DropdownMenu/DropdownMenu.d.ts.map +0 -1
- package/dist/types/src/components/DropdownMenu/DropdownMenu.stories.d.ts.map +0 -1
- package/dist/types/src/components/DropdownMenu/index.d.ts +0 -2
- package/dist/types/src/components/DropdownMenu/index.d.ts.map +0 -1
- package/src/components/DropdownMenu/DropdownMenu.tsx +0 -198
- /package/dist/types/src/components/{DropdownMenu → Menus}/DropdownMenu.stories.d.ts +0 -0
|
@@ -59,7 +59,7 @@ const StorybookSelect = ({ items = [] }: PropsWithChildren<{ items: ItemProps[]
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
export default {
|
|
62
|
-
title: '
|
|
62
|
+
title: 'react-ui/Select',
|
|
63
63
|
component: createDensityTest(StorybookSelect),
|
|
64
64
|
decorators: [withTheme],
|
|
65
65
|
parameters: { chromatic: { disableSnapshot: false } },
|
|
@@ -29,7 +29,7 @@ export type ThemeProviderProps = Omit<TranslationsProviderProps, 'children'> &
|
|
|
29
29
|
|
|
30
30
|
export const ThemeContext = createContext<ThemeContextValue>({
|
|
31
31
|
tx: (_path, defaultClassName, _styleProps, ..._options) => defaultClassName,
|
|
32
|
-
themeMode: 'dark',
|
|
32
|
+
themeMode: 'dark', // TODO(burdon): Reconsider default.
|
|
33
33
|
hasIosKeyboard: false,
|
|
34
34
|
});
|
|
35
35
|
|
|
@@ -70,7 +70,7 @@ const StorybookToolbar = (props: StorybookToolbarProps) => {
|
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
export default {
|
|
73
|
-
title: '
|
|
73
|
+
title: 'react-ui/Toolbar',
|
|
74
74
|
component: StorybookToolbar,
|
|
75
75
|
decorators: [withTheme],
|
|
76
76
|
parameters: { chromatic: { disableSnapshot: false } },
|
|
@@ -29,7 +29,7 @@ const StoryTooltip = ({ content }: StoryTooltipProps) => (
|
|
|
29
29
|
);
|
|
30
30
|
|
|
31
31
|
export default {
|
|
32
|
-
title: '
|
|
32
|
+
title: 'react-ui/Tooltip',
|
|
33
33
|
component: StoryTooltip,
|
|
34
34
|
decorators: [withTheme],
|
|
35
35
|
parameters: { chromatic: { disableSnapshot: false } },
|
package/src/components/index.ts
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import '@dxosTheme';
|
|
6
|
+
|
|
7
|
+
import React from 'react';
|
|
8
|
+
|
|
9
|
+
import { withTheme } from '../testing';
|
|
10
|
+
|
|
11
|
+
const TypographyStory = () => {
|
|
12
|
+
return (
|
|
13
|
+
<div className='mli-auto p-8 max-is-[60rem] space-b-4'>
|
|
14
|
+
<h1 className='text-4xl font-medium'>
|
|
15
|
+
Việc <span className='italic'>thừa</span> nhận{' '}
|
|
16
|
+
<span className='font-mono bg-neutral-500/10'>
|
|
17
|
+
nhân <span className='italic'>phẩm ~~></span> vốn
|
|
18
|
+
</span>{' '}
|
|
19
|
+
có, các quyền
|
|
20
|
+
</h1>
|
|
21
|
+
<p>
|
|
22
|
+
Không ai bị bắt, giam giữ hay đày đi nơi khác một cách độc đoán. Mọi người, với tư cách bình đẳng về mọi phương
|
|
23
|
+
diện, đều có quyền được một toà án độc lập và vô tư phân xử công bằng và công khai để xác định quyền, nghĩa vụ
|
|
24
|
+
hoặc bất cứ một lời buộc tội nào đối với người đó.
|
|
25
|
+
</p>
|
|
26
|
+
<h2 className='text-xl font-semibold'>
|
|
27
|
+
Mọi <span className='font-mono'>Mọi</span> người đều có quyền nghỉ ngơi và giải trí, kể cả quyền được hạn chế
|
|
28
|
+
hợp lý về số giờ làm việc và hưởng những ngày nghỉ định kỳ được trả lương.
|
|
29
|
+
</h2>
|
|
30
|
+
<p className='font-mono bg-neutral-500/10'>
|
|
31
|
+
Mọi người đều có quyền được hưởng trật tự xã hội và trật tự quốc tế trong đó các quyền và tự do nêu trong Bản
|
|
32
|
+
tuyên ngôn này có thể được thực hiện đầy đủ.
|
|
33
|
+
</p>
|
|
34
|
+
<p className='italic'>
|
|
35
|
+
Không được phép diễn giải bất kỳ điều khoản nào trong Bản tuyên ngôn này theo hướng ngầm ý cho phép bất kỳ quốc
|
|
36
|
+
gia,{' '}
|
|
37
|
+
<span className='not-italic'>
|
|
38
|
+
nhóm người hay cá nhân nào được quyền tham gia vào bất kỳ hoạt động nào hay thực hiện bất kỳ hành vi nào nhằm
|
|
39
|
+
phá hoại bất kỳ quyền và tự do nào nêu trong Bản tuyên ngôn này.
|
|
40
|
+
</span>
|
|
41
|
+
</p>
|
|
42
|
+
</div>
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
title: 'DXOS UI/Scenarios/Typography',
|
|
48
|
+
component: TypographyStory,
|
|
49
|
+
decorators: [withTheme],
|
|
50
|
+
parameters: { chromatic: { disableSnapshot: false } },
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const Default = {
|
|
54
|
+
args: {},
|
|
55
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,iBAAiB,IAAI,8BAA8B,EAExD,KAAK,wBAAwB,IAAI,iCAAiC,EAElE,KAAK,uBAAuB,IAAI,gCAAgC,EAEhE,KAAK,wBAAwB,IAAI,iCAAiC,EAElE,KAAK,sBAAsB,IAAI,+BAA+B,EAE9D,KAAK,sBAAsB,IAAI,+BAA+B,EAE9D,KAAK,qBAAqB,IAAI,8BAA8B,EAE5D,KAAK,6BAA6B,IAAI,sCAAsC,EAE5E,KAAK,8BAA8B,IAAI,uCAAuC,EAE9E,KAAK,0BAA0B,IAAI,mCAAmC,EAEtE,KAAK,sBAAsB,IAAI,+BAA+B,EAC/D,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,KAAK,qBAAqB,GAAG,8BAA8B,CAAC;AAI5D,KAAK,wBAAwB,GAAG,iCAAiC,CAAC;AAIlE,KAAK,uBAAuB,GAAG,gCAAgC,CAAC;AAIhE,KAAK,wBAAwB,GAAG,eAAe,CAAC,iCAAiC,CAAC,GAAG;IAAE,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAmBtH,KAAK,yBAAyB,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG;IAC9F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAkBF,KAAK,sBAAsB,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AAe/E,KAAK,sBAAsB,GAAG,+BAA+B,CAAC;AAI9D,KAAK,8BAA8B,GAAG,uCAAuC,CAAC;AAI9E,KAAK,qBAAqB,GAAG,eAAe,CAAC,8BAA8B,CAAC,CAAC;AAe7E,KAAK,6BAA6B,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AAe7F,KAAK,0BAA0B,GAAG,eAAe,CAAC,mCAAmC,CAAC,CAAC;AAevF,KAAK,2BAA2B,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AAepF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaxB,CAAC;AAEF,YAAY,EACV,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,6BAA6B,EAC7B,8BAA8B,EAC9B,0BAA0B,EAC1B,2BAA2B,GAC5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DropdownMenu/DropdownMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;;;;;;;;;;;AAyFpB,wBAKE;AAEF,eAAO,MAAM,OAAO;;;;;;;CAKnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DropdownMenu/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
import {
|
|
5
|
-
Root as DropdownMenuRootPrimitive,
|
|
6
|
-
type DropdownMenuProps as DropdownMenuRootPrimitiveProps,
|
|
7
|
-
DropdownMenuTrigger as DropdownMenuTriggerPrimitive,
|
|
8
|
-
type DropdownMenuTriggerProps as DropdownMenuTriggerPrimitiveProps,
|
|
9
|
-
DropdownMenuPortal as DropdownMenuPortalPrimitive,
|
|
10
|
-
type DropdownMenuPortalProps as DropdownMenuPortalPrimitiveProps,
|
|
11
|
-
DropdownMenuContent as DropdownMenuContentPrimitive,
|
|
12
|
-
type DropdownMenuContentProps as DropdownMenuContentPrimitiveProps,
|
|
13
|
-
DropdownMenuArrow as DropdownMenuArrowPrimitive,
|
|
14
|
-
type DropdownMenuArrowProps as DropdownMenuArrowPrimitiveProps,
|
|
15
|
-
DropdownMenuGroup as DropdownMenuGroupPrimitive,
|
|
16
|
-
type DropdownMenuGroupProps as DropdownMenuGroupPrimitiveProps,
|
|
17
|
-
DropdownMenuItem as DropdownMenuItemPrimitive,
|
|
18
|
-
type DropdownMenuItemProps as DropdownMenuItemPrimitiveProps,
|
|
19
|
-
DropdownMenuCheckboxItem as DropdownMenuCheckboxItemPrimitive,
|
|
20
|
-
type DropdownMenuCheckboxItemProps as DropdownMenuCheckboxItemPrimitiveProps,
|
|
21
|
-
DropdownMenuItemIndicator as DropdownMenuItemIndicatorPrimitive,
|
|
22
|
-
type DropdownMenuItemIndicatorProps as DropdownMenuItemIndicatorPrimitiveProps,
|
|
23
|
-
DropdownMenuSeparator as DropdownMenuSeparatorPrimitive,
|
|
24
|
-
type DropdownMenuSeparatorProps as DropdownMenuSeparatorPrimitiveProps,
|
|
25
|
-
DropdownMenuLabel as DropdownMenuLabelPrimitive,
|
|
26
|
-
type DropdownMenuLabelProps as DropdownMenuLabelPrimitiveProps,
|
|
27
|
-
} from '@radix-ui/react-dropdown-menu';
|
|
28
|
-
import { Primitive } from '@radix-ui/react-primitive';
|
|
29
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
30
|
-
import React, { type ComponentPropsWithRef, forwardRef } from 'react';
|
|
31
|
-
|
|
32
|
-
import { useThemeContext } from '../../hooks';
|
|
33
|
-
import { type ThemedClassName } from '../../util';
|
|
34
|
-
import { ElevationProvider } from '../ElevationProvider';
|
|
35
|
-
|
|
36
|
-
type DropdownMenuRootProps = DropdownMenuRootPrimitiveProps;
|
|
37
|
-
|
|
38
|
-
const DropdownMenuRoot = DropdownMenuRootPrimitive;
|
|
39
|
-
|
|
40
|
-
type DropdownMenuTriggerProps = DropdownMenuTriggerPrimitiveProps;
|
|
41
|
-
|
|
42
|
-
const DropdownMenuTrigger = DropdownMenuTriggerPrimitive;
|
|
43
|
-
|
|
44
|
-
type DropdownMenuPortalProps = DropdownMenuPortalPrimitiveProps;
|
|
45
|
-
|
|
46
|
-
const DropdownMenuPortal = DropdownMenuPortalPrimitive;
|
|
47
|
-
|
|
48
|
-
type DropdownMenuContentProps = ThemedClassName<DropdownMenuContentPrimitiveProps> & { constrainBlockSize?: boolean };
|
|
49
|
-
|
|
50
|
-
const DropdownMenuContent = forwardRef<HTMLDivElement, DropdownMenuContentProps>(
|
|
51
|
-
({ classNames, children, ...props }, forwardedRef) => {
|
|
52
|
-
const { tx } = useThemeContext();
|
|
53
|
-
return (
|
|
54
|
-
<DropdownMenuContentPrimitive
|
|
55
|
-
sideOffset={4}
|
|
56
|
-
collisionPadding={8}
|
|
57
|
-
{...props}
|
|
58
|
-
className={tx('dropdownMenu.content', 'dropdown-menu', {}, classNames)}
|
|
59
|
-
ref={forwardedRef}
|
|
60
|
-
>
|
|
61
|
-
<ElevationProvider elevation='chrome'>{children}</ElevationProvider>
|
|
62
|
-
</DropdownMenuContentPrimitive>
|
|
63
|
-
);
|
|
64
|
-
},
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
type DropdownMenuViewportProps = ThemedClassName<ComponentPropsWithRef<typeof Primitive.div>> & {
|
|
68
|
-
asChild?: boolean;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
const DropdownMenuViewport = forwardRef<HTMLDivElement, DropdownMenuViewportProps>(
|
|
72
|
-
({ classNames, asChild, children, ...props }, forwardedRef) => {
|
|
73
|
-
const { tx } = useThemeContext();
|
|
74
|
-
const Root = asChild ? Slot : Primitive.div;
|
|
75
|
-
return (
|
|
76
|
-
<Root
|
|
77
|
-
{...props}
|
|
78
|
-
className={tx('dropdownMenu.viewport', 'dropdown-menu__viewport', {}, classNames)}
|
|
79
|
-
ref={forwardedRef}
|
|
80
|
-
>
|
|
81
|
-
{children}
|
|
82
|
-
</Root>
|
|
83
|
-
);
|
|
84
|
-
},
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
type DropdownMenuArrowProps = ThemedClassName<DropdownMenuArrowPrimitiveProps>;
|
|
88
|
-
|
|
89
|
-
const DropdownMenuArrow = forwardRef<SVGSVGElement, DropdownMenuArrowProps>(
|
|
90
|
-
({ classNames, ...props }, forwardedRef) => {
|
|
91
|
-
const { tx } = useThemeContext();
|
|
92
|
-
return (
|
|
93
|
-
<DropdownMenuArrowPrimitive
|
|
94
|
-
{...props}
|
|
95
|
-
className={tx('dropdownMenu.arrow', 'dropdown-menu__arrow', {}, classNames)}
|
|
96
|
-
ref={forwardedRef}
|
|
97
|
-
/>
|
|
98
|
-
);
|
|
99
|
-
},
|
|
100
|
-
);
|
|
101
|
-
|
|
102
|
-
type DropdownMenuGroupProps = DropdownMenuGroupPrimitiveProps;
|
|
103
|
-
|
|
104
|
-
const DropdownMenuGroup = DropdownMenuGroupPrimitive;
|
|
105
|
-
|
|
106
|
-
type DropdownMenuItemIndicatorProps = DropdownMenuItemIndicatorPrimitiveProps;
|
|
107
|
-
|
|
108
|
-
const DropdownMenuItemIndicator = DropdownMenuItemIndicatorPrimitive;
|
|
109
|
-
|
|
110
|
-
type DropdownMenuItemProps = ThemedClassName<DropdownMenuItemPrimitiveProps>;
|
|
111
|
-
|
|
112
|
-
const DropdownMenuItem = forwardRef<HTMLDivElement, DropdownMenuItemProps>(
|
|
113
|
-
({ classNames, ...props }: DropdownMenuItemProps, forwardedRef) => {
|
|
114
|
-
const { tx } = useThemeContext();
|
|
115
|
-
return (
|
|
116
|
-
<DropdownMenuItemPrimitive
|
|
117
|
-
{...props}
|
|
118
|
-
className={tx('dropdownMenu.item', 'dropdown-menu__item', {}, classNames)}
|
|
119
|
-
ref={forwardedRef}
|
|
120
|
-
/>
|
|
121
|
-
);
|
|
122
|
-
},
|
|
123
|
-
);
|
|
124
|
-
|
|
125
|
-
type DropdownMenuCheckboxItemProps = ThemedClassName<DropdownMenuCheckboxItemPrimitiveProps>;
|
|
126
|
-
|
|
127
|
-
const DropdownMenuCheckboxItem = forwardRef<HTMLDivElement, DropdownMenuCheckboxItemProps>(
|
|
128
|
-
({ classNames, ...props }: DropdownMenuItemProps, forwardedRef) => {
|
|
129
|
-
const { tx } = useThemeContext();
|
|
130
|
-
return (
|
|
131
|
-
<DropdownMenuCheckboxItemPrimitive
|
|
132
|
-
{...props}
|
|
133
|
-
className={tx('dropdownMenu.item', 'dropdown-menu__item--checkbox', {}, classNames)}
|
|
134
|
-
ref={forwardedRef}
|
|
135
|
-
/>
|
|
136
|
-
);
|
|
137
|
-
},
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
type DropdownMenuSeparatorProps = ThemedClassName<DropdownMenuSeparatorPrimitiveProps>;
|
|
141
|
-
|
|
142
|
-
const DropdownMenuSeparator = forwardRef<HTMLDivElement, DropdownMenuSeparatorProps>(
|
|
143
|
-
({ classNames, ...props }, forwardedRef) => {
|
|
144
|
-
const { tx } = useThemeContext();
|
|
145
|
-
return (
|
|
146
|
-
<DropdownMenuSeparatorPrimitive
|
|
147
|
-
{...props}
|
|
148
|
-
className={tx('dropdownMenu.separator', 'dropdown-menu__item', {}, classNames)}
|
|
149
|
-
ref={forwardedRef}
|
|
150
|
-
/>
|
|
151
|
-
);
|
|
152
|
-
},
|
|
153
|
-
);
|
|
154
|
-
|
|
155
|
-
type DropdownMenuGroupLabelProps = ThemedClassName<DropdownMenuLabelPrimitiveProps>;
|
|
156
|
-
|
|
157
|
-
const DropdownMenuGroupLabel = forwardRef<HTMLDivElement, DropdownMenuGroupLabelProps>(
|
|
158
|
-
({ classNames, ...props }, forwardedRef) => {
|
|
159
|
-
const { tx } = useThemeContext();
|
|
160
|
-
return (
|
|
161
|
-
<DropdownMenuLabelPrimitive
|
|
162
|
-
{...props}
|
|
163
|
-
className={tx('dropdownMenu.groupLabel', 'dropdown-menu__group__label', {}, classNames)}
|
|
164
|
-
ref={forwardedRef}
|
|
165
|
-
/>
|
|
166
|
-
);
|
|
167
|
-
},
|
|
168
|
-
);
|
|
169
|
-
|
|
170
|
-
export const DropdownMenu = {
|
|
171
|
-
Root: DropdownMenuRoot,
|
|
172
|
-
Trigger: DropdownMenuTrigger,
|
|
173
|
-
Portal: DropdownMenuPortal,
|
|
174
|
-
Content: DropdownMenuContent,
|
|
175
|
-
Viewport: DropdownMenuViewport,
|
|
176
|
-
Arrow: DropdownMenuArrow,
|
|
177
|
-
Group: DropdownMenuGroup,
|
|
178
|
-
Item: DropdownMenuItem,
|
|
179
|
-
CheckboxItem: DropdownMenuCheckboxItem,
|
|
180
|
-
ItemIndicator: DropdownMenuItemIndicator,
|
|
181
|
-
Separator: DropdownMenuSeparator,
|
|
182
|
-
GroupLabel: DropdownMenuGroupLabel,
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
export type {
|
|
186
|
-
DropdownMenuRootProps,
|
|
187
|
-
DropdownMenuTriggerProps,
|
|
188
|
-
DropdownMenuPortalProps,
|
|
189
|
-
DropdownMenuContentProps,
|
|
190
|
-
DropdownMenuViewportProps,
|
|
191
|
-
DropdownMenuArrowProps,
|
|
192
|
-
DropdownMenuGroupProps,
|
|
193
|
-
DropdownMenuItemProps,
|
|
194
|
-
DropdownMenuCheckboxItemProps,
|
|
195
|
-
DropdownMenuItemIndicatorProps,
|
|
196
|
-
DropdownMenuSeparatorProps,
|
|
197
|
-
DropdownMenuGroupLabelProps,
|
|
198
|
-
};
|
|
File without changes
|