@dxos/react-ui 0.6.13 → 0.6.14-main.1366248
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 +740 -200
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +2932 -0
- package/dist/lib/node/index.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -0
- package/dist/lib/node-esm/index.mjs +2931 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/types/src/components/Avatars/Avatar.stories.d.ts +15 -1
- package/dist/types/src/components/Avatars/Avatar.stories.d.ts.map +1 -1
- package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts +6 -1
- package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts.map +1 -1
- package/dist/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts +9 -1
- package/dist/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/Button.d.ts +1 -1
- package/dist/types/src/components/Buttons/Button.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/Button.stories.d.ts +12 -17
- package/dist/types/src/components/Buttons/Button.stories.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/Toggle.stories.d.ts +2 -1
- package/dist/types/src/components/Buttons/Toggle.stories.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts +20 -1
- package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts.map +1 -1
- package/dist/types/src/components/DensityProvider/DensityProvider.d.ts.map +1 -1
- package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts +12 -1
- package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts.map +1 -1
- package/dist/types/src/components/Dialogs/Dialog.stories.d.ts +11 -1
- package/dist/types/src/components/Dialogs/Dialog.stories.d.ts.map +1 -1
- package/dist/types/src/components/Icon/Icon.d.ts +1 -1
- package/dist/types/src/components/Icon/Icon.d.ts.map +1 -1
- package/dist/types/src/components/Input/Input.d.ts.map +1 -1
- package/dist/types/src/components/Input/Input.stories.d.ts +16 -1
- package/dist/types/src/components/Input/Input.stories.d.ts.map +1 -1
- package/dist/types/src/components/Lists/List.stories.d.ts +2 -3
- package/dist/types/src/components/Lists/List.stories.d.ts.map +1 -1
- package/dist/types/src/components/Lists/Tree.stories.d.ts +5 -1
- package/dist/types/src/components/Lists/Tree.stories.d.ts.map +1 -1
- package/dist/types/src/components/Lists/Treegrid.stories.d.ts +3 -2
- package/dist/types/src/components/Lists/Treegrid.stories.d.ts.map +1 -1
- package/dist/types/src/components/Main/Main.stories.d.ts +5 -1
- package/dist/types/src/components/Main/Main.stories.d.ts.map +1 -1
- package/dist/types/src/components/Menus/ContextMenu.stories.d.ts +29 -1
- package/dist/types/src/components/Menus/ContextMenu.stories.d.ts.map +1 -1
- package/dist/types/src/components/Menus/DropdownMenu.d.ts +105 -44
- package/dist/types/src/components/Menus/DropdownMenu.d.ts.map +1 -1
- package/dist/types/src/components/Menus/DropdownMenu.stories.d.ts +29 -1
- package/dist/types/src/components/Menus/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/types/src/components/Message/Message.stories.d.ts +6 -1
- package/dist/types/src/components/Message/Message.stories.d.ts.map +1 -1
- package/dist/types/src/components/Popover/Popover.d.ts +87 -21
- package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/src/components/Popover/Popover.stories.d.ts +20 -1
- package/dist/types/src/components/Popover/Popover.stories.d.ts.map +1 -1
- package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts +20 -1
- package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -1
- package/dist/types/src/components/Select/Select.d.ts +4 -2
- package/dist/types/src/components/Select/Select.d.ts.map +1 -1
- package/dist/types/src/components/Select/Select.stories.d.ts +10 -11
- package/dist/types/src/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/types/src/components/Status/Status.stories.d.ts +0 -3
- package/dist/types/src/components/Status/Status.stories.d.ts.map +1 -1
- package/dist/types/src/components/ThemeProvider/ThemeProvider.d.ts +4 -5
- package/dist/types/src/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts +4 -4
- package/dist/types/src/components/Toast/Toast.d.ts.map +1 -1
- package/dist/types/src/components/Toast/Toast.stories.d.ts +20 -1
- package/dist/types/src/components/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +4 -2
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +30 -1
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
- package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts +13 -1
- package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/types/src/hooks/useThemeContext.d.ts.map +1 -1
- package/dist/types/src/playground/Controls.stories.d.ts +2 -6
- package/dist/types/src/playground/Controls.stories.d.ts.map +1 -1
- package/dist/types/src/playground/Surfaces.stories.d.ts +6 -2
- package/dist/types/src/playground/Surfaces.stories.d.ts.map +1 -1
- package/dist/types/src/playground/Typography.stories.d.ts +1 -1
- package/dist/types/src/testing/decorators/index.d.ts +1 -0
- package/dist/types/src/testing/decorators/index.d.ts.map +1 -1
- package/dist/types/src/testing/decorators/withVariants.d.ts +13 -0
- package/dist/types/src/testing/decorators/withVariants.d.ts.map +1 -0
- package/package.json +28 -17
- package/src/components/Avatars/Avatar.stories.tsx +3 -2
- package/src/components/Avatars/AvatarGroup.stories.tsx +3 -2
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +3 -2
- package/src/components/Buttons/Button.stories.tsx +34 -63
- package/src/components/Buttons/Button.tsx +46 -36
- package/src/components/Buttons/Toggle.stories.tsx +3 -2
- package/src/components/Buttons/ToggleGroup.stories.tsx +3 -2
- package/src/components/DensityProvider/DensityProvider.tsx +1 -1
- package/src/components/Dialogs/AlertDialog.stories.tsx +3 -2
- package/src/components/Dialogs/Dialog.stories.tsx +3 -2
- package/src/components/Icon/Icon.tsx +11 -9
- package/src/components/Input/Input.stories.tsx +4 -3
- package/src/components/Link/Link.stories.tsx +1 -1
- package/src/components/Lists/List.stories.tsx +4 -4
- package/src/components/Lists/Tree.stories.tsx +3 -2
- package/src/components/Lists/Treegrid.stories.tsx +7 -5
- package/src/components/Main/Main.stories.tsx +3 -2
- package/src/components/Menus/ContextMenu.stories.tsx +3 -2
- package/src/components/Menus/DropdownMenu.stories.tsx +43 -3
- package/src/components/Menus/DropdownMenu.tsx +518 -69
- package/src/components/Message/Message.stories.tsx +3 -2
- package/src/components/Popover/Popover.stories.tsx +27 -3
- package/src/components/Popover/Popover.tsx +524 -55
- package/src/components/ScrollArea/ScrollArea.stories.tsx +3 -2
- package/src/components/Select/Select.stories.tsx +14 -31
- package/src/components/Select/Select.tsx +24 -12
- package/src/components/Status/Status.stories.tsx +1 -2
- package/src/components/Tag/Tag.stories.tsx +1 -1
- package/src/components/ThemeProvider/ThemeProvider.tsx +17 -18
- package/src/components/Toast/Toast.stories.tsx +3 -2
- package/src/components/Toast/Toast.tsx +1 -4
- package/src/components/Toolbar/Toolbar.stories.tsx +3 -2
- package/src/components/Toolbar/Toolbar.tsx +21 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +3 -2
- package/src/hooks/useThemeContext.ts +3 -1
- package/src/playground/Controls.stories.tsx +7 -10
- package/src/playground/Surfaces.stories.tsx +4 -3
- package/src/playground/Typography.stories.tsx +2 -2
- package/src/testing/decorators/index.ts +1 -0
- package/src/testing/decorators/withVariants.tsx +45 -0
- package/dist/types/src/playground/helpers.d.ts +0 -6
- package/dist/types/src/playground/helpers.d.ts.map +0 -1
- package/src/playground/helpers.tsx +0 -32
|
@@ -3,7 +3,11 @@ import React from 'react';
|
|
|
3
3
|
type StoryMainArgs = {};
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: {
|
|
7
|
+
({ navigationSidebarOpen: propsNavigationSidebarOpen, defaultNavigationSidebarOpen, onNavigationSidebarOpenChange, complementarySidebarOpen: propsComplementarySidebarOpen, defaultComplementarySidebarOpen, onComplementarySidebarOpenChange, children, ...props }: import("./Main").MainRootProps): React.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
render: (_args: StoryMainArgs) => React.JSX.Element;
|
|
7
11
|
decorators: import("@storybook/react/*").Decorator[];
|
|
8
12
|
parameters: {
|
|
9
13
|
chromatic: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Main.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Main/Main.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,aAAa,GAAG,EAAE,CAAC
|
|
1
|
+
{"version":3,"file":"Main.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Main/Main.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,aAAa,GAAG,EAAE,CAAC;;;;;;;oBAYE,aAAa;;;;;;;;AAuBvC,wBAME;AAEF,eAAO,MAAM,OAAO;;;CAGnB,CAAC"}
|
|
@@ -2,7 +2,35 @@ import '@dxos-theme';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component:
|
|
5
|
+
component: {
|
|
6
|
+
Root: React.FC<import("@radix-ui/react-context-menu").ContextMenuProps>;
|
|
7
|
+
Trigger: React.ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
Portal: React.FC<import("@radix-ui/react-context-menu").ContextMenuPortalProps>;
|
|
9
|
+
Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuContentProps, "className"> & {
|
|
10
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
11
|
+
} & {
|
|
12
|
+
constrainBlockSize?: boolean;
|
|
13
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Viewport: React.ForwardRefExoticComponent<Omit<import("./ContextMenu").ContextMenuViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Arrow: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuArrowProps, "className"> & {
|
|
16
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
17
|
+
} & React.RefAttributes<SVGSVGElement>>;
|
|
18
|
+
Group: React.ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
Item: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuItemProps, "className"> & {
|
|
20
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
CheckboxItem: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuCheckboxItemProps, "className"> & {
|
|
23
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
24
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
ItemIndicator: React.ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
26
|
+
Separator: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuSeparatorProps, "className"> & {
|
|
27
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
28
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
GroupLabel: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuLabelProps, "className"> & {
|
|
30
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
};
|
|
33
|
+
render: () => React.JSX.Element;
|
|
6
34
|
decorators: import("@storybook/react/*").Decorator[];
|
|
7
35
|
parameters: {
|
|
8
36
|
chromatic: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menus/ContextMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"ContextMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menus/ContextMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuF1B,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;CAKnB,CAAC"}
|
|
@@ -1,55 +1,116 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { type DropdownMenuContextValue } from '@radix-ui/react-dropdown-menu';
|
|
1
|
+
import type { Scope } from '@radix-ui/react-context';
|
|
2
|
+
import * as MenuPrimitive from '@radix-ui/react-menu';
|
|
4
3
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
5
|
-
import React, { type ComponentPropsWithRef } from 'react';
|
|
4
|
+
import React, { type ReactNode, type ElementRef, type ComponentPropsWithoutRef, type ComponentPropsWithRef, type MutableRefObject, type RefObject } from 'react';
|
|
6
5
|
import { type ThemedClassName } from '../../util';
|
|
7
|
-
type
|
|
8
|
-
type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
type Direction = 'ltr' | 'rtl';
|
|
7
|
+
type ScopedProps<P> = P & {
|
|
8
|
+
__scopeDropdownMenu?: Scope;
|
|
9
|
+
};
|
|
10
|
+
declare const createDropdownMenuScope: import("@radix-ui/react-context").CreateScope;
|
|
11
|
+
type DropdownMenuContextValue = {
|
|
12
|
+
triggerId: string;
|
|
13
|
+
triggerRef: MutableRefObject<HTMLButtonElement | null>;
|
|
14
|
+
contentId: string;
|
|
15
|
+
open: boolean;
|
|
16
|
+
onOpenChange(open: boolean): void;
|
|
17
|
+
onOpenToggle(): void;
|
|
18
|
+
modal: boolean;
|
|
12
19
|
};
|
|
13
20
|
declare const useDropdownMenuContext: (consumerName: string, scope: Scope<DropdownMenuContextValue | undefined>) => DropdownMenuContextValue;
|
|
14
|
-
|
|
21
|
+
interface DropdownMenuRootProps {
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
dir?: Direction;
|
|
24
|
+
open?: boolean;
|
|
25
|
+
defaultOpen?: boolean;
|
|
26
|
+
onOpenChange?(open: boolean): void;
|
|
27
|
+
modal?: boolean;
|
|
28
|
+
}
|
|
29
|
+
type DropdownMenuTriggerElement = ElementRef<typeof Primitive.button>;
|
|
30
|
+
type PrimitiveButtonProps = ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
31
|
+
interface DropdownMenuTriggerProps extends PrimitiveButtonProps {
|
|
32
|
+
}
|
|
33
|
+
interface DropdownMenuVirtualTriggerProps {
|
|
34
|
+
virtualRef: RefObject<DropdownMenuTriggerElement>;
|
|
35
|
+
}
|
|
36
|
+
type MenuPortalProps = ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
37
|
+
interface DropdownMenuPortalProps extends MenuPortalProps {
|
|
38
|
+
}
|
|
15
39
|
type DropdownMenuViewportProps = ThemedClassName<ComponentPropsWithRef<typeof Primitive.div>> & {
|
|
16
40
|
asChild?: boolean;
|
|
17
41
|
};
|
|
18
|
-
type
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
type
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
type
|
|
42
|
+
type MenuContentProps = ThemedClassName<ComponentPropsWithoutRef<typeof MenuPrimitive.Content>>;
|
|
43
|
+
interface DropdownMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
|
|
44
|
+
}
|
|
45
|
+
type MenuGroupProps = ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
46
|
+
interface DropdownMenuGroupProps extends MenuGroupProps {
|
|
47
|
+
}
|
|
48
|
+
type MenuLabelProps = ThemedClassName<ComponentPropsWithoutRef<typeof MenuPrimitive.Label>>;
|
|
49
|
+
interface DropdownMenuLabelProps extends MenuLabelProps {
|
|
50
|
+
}
|
|
51
|
+
type MenuItemProps = ThemedClassName<ComponentPropsWithoutRef<typeof MenuPrimitive.Item>>;
|
|
52
|
+
interface DropdownMenuItemProps extends MenuItemProps {
|
|
53
|
+
}
|
|
54
|
+
type MenuCheckboxItemProps = ThemedClassName<ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>>;
|
|
55
|
+
interface DropdownMenuCheckboxItemProps extends MenuCheckboxItemProps {
|
|
56
|
+
}
|
|
57
|
+
type MenuRadioGroupProps = ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
58
|
+
interface DropdownMenuRadioGroupProps extends MenuRadioGroupProps {
|
|
59
|
+
}
|
|
60
|
+
type MenuRadioItemProps = ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
61
|
+
interface DropdownMenuRadioItemProps extends MenuRadioItemProps {
|
|
62
|
+
}
|
|
63
|
+
type MenuItemIndicatorProps = ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
64
|
+
interface DropdownMenuItemIndicatorProps extends MenuItemIndicatorProps {
|
|
65
|
+
}
|
|
66
|
+
type MenuSeparatorProps = ThemedClassName<ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>>;
|
|
67
|
+
interface DropdownMenuSeparatorProps extends MenuSeparatorProps {
|
|
68
|
+
}
|
|
69
|
+
type MenuArrowProps = ThemedClassName<ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>>;
|
|
70
|
+
interface DropdownMenuArrowProps extends MenuArrowProps {
|
|
71
|
+
}
|
|
72
|
+
interface DropdownMenuSubProps {
|
|
73
|
+
children?: ReactNode;
|
|
74
|
+
open?: boolean;
|
|
75
|
+
defaultOpen?: boolean;
|
|
76
|
+
onOpenChange?(open: boolean): void;
|
|
77
|
+
}
|
|
78
|
+
type MenuSubTriggerProps = ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
79
|
+
interface DropdownMenuSubTriggerProps extends MenuSubTriggerProps {
|
|
80
|
+
}
|
|
81
|
+
type MenuSubContentProps = ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
82
|
+
interface DropdownMenuSubContentProps extends MenuSubContentProps {
|
|
83
|
+
}
|
|
25
84
|
export declare const DropdownMenu: {
|
|
26
|
-
Root: React.FC<
|
|
27
|
-
Trigger: React.ForwardRefExoticComponent<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
85
|
+
Root: React.FC<DropdownMenuRootProps>;
|
|
86
|
+
Trigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
87
|
+
VirtualTrigger: {
|
|
88
|
+
(props: ScopedProps<DropdownMenuVirtualTriggerProps>): React.JSX.Element;
|
|
89
|
+
displayName: string;
|
|
90
|
+
};
|
|
91
|
+
Portal: React.FC<DropdownMenuPortalProps>;
|
|
92
|
+
Content: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
93
|
Viewport: React.ForwardRefExoticComponent<Omit<DropdownMenuViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
94
|
+
Group: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
+
GroupLabel: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
Item: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
CheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
98
|
+
RadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
99
|
+
RadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
100
|
+
ItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
101
|
+
Separator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
102
|
+
Arrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
103
|
+
Sub: React.FC<DropdownMenuSubProps>;
|
|
104
|
+
SubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
105
|
+
SubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
106
|
+
};
|
|
107
|
+
declare const useDropdownMenuMenuScope: (scope: {
|
|
108
|
+
[scopeName: string]: React.Context<any>[];
|
|
109
|
+
} | undefined) => {
|
|
110
|
+
[__scopeProp: string]: {
|
|
111
|
+
[scopeName: string]: React.Context<any>[];
|
|
112
|
+
} | undefined;
|
|
52
113
|
};
|
|
53
|
-
export { useDropdownMenuContext, useDropdownMenuMenuScope };
|
|
54
|
-
export type { DropdownMenuRootProps, DropdownMenuTriggerProps, DropdownMenuPortalProps, DropdownMenuContentProps, DropdownMenuViewportProps,
|
|
114
|
+
export { createDropdownMenuScope, useDropdownMenuContext, useDropdownMenuMenuScope };
|
|
115
|
+
export type { DropdownMenuRootProps, DropdownMenuTriggerProps, DropdownMenuVirtualTriggerProps, DropdownMenuPortalProps, DropdownMenuContentProps, DropdownMenuViewportProps, DropdownMenuGroupProps, DropdownMenuLabelProps, DropdownMenuItemProps, DropdownMenuCheckboxItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuItemIndicatorProps, DropdownMenuSeparatorProps, DropdownMenuArrowProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuSubContentProps, };
|
|
55
116
|
//# sourceMappingURL=DropdownMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menus/DropdownMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menus/DropdownMenu.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,KAAK,EAAE,EACZ,KAAK,SAAS,EAGd,KAAK,UAAU,EAEf,KAAK,wBAAwB,EAE7B,KAAK,qBAAqB,EAE1B,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY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
import React from 'react';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component:
|
|
5
|
+
component: {
|
|
6
|
+
Root: React.FC<import("./DropdownMenu").DropdownMenuRootProps>;
|
|
7
|
+
Trigger: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
VirtualTrigger: {
|
|
9
|
+
(props: import("./DropdownMenu").DropdownMenuVirtualTriggerProps & {
|
|
10
|
+
__scopeDropdownMenu?: import("@radix-ui/react-context").Scope;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
Portal: React.FC<import("./DropdownMenu").DropdownMenuPortalProps>;
|
|
15
|
+
Content: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
Viewport: React.ForwardRefExoticComponent<Omit<import("./DropdownMenu").DropdownMenuViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Group: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
GroupLabel: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
Item: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
CheckboxItem: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
RadioGroup: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
RadioItem: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
ItemIndicator: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
24
|
+
Separator: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
Arrow: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
26
|
+
Sub: React.FC<import("./DropdownMenu").DropdownMenuSubProps>;
|
|
27
|
+
SubTrigger: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
SubContent: React.ForwardRefExoticComponent<import("./DropdownMenu").DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
};
|
|
30
|
+
render: () => React.JSX.Element;
|
|
6
31
|
decorators: import("@storybook/react/*").Decorator[];
|
|
7
32
|
parameters: {
|
|
8
33
|
chromatic: {
|
|
@@ -19,4 +44,7 @@ export declare const Default: {
|
|
|
19
44
|
};
|
|
20
45
|
};
|
|
21
46
|
};
|
|
47
|
+
export declare const VirtualTrigger: {
|
|
48
|
+
render: () => React.JSX.Element;
|
|
49
|
+
};
|
|
22
50
|
//# sourceMappingURL=DropdownMenu.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menus/DropdownMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,
|
|
1
|
+
{"version":3,"file":"DropdownMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menus/DropdownMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAA2B,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuFhD,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,cAAc;;CAqC1B,CAAC"}
|
|
@@ -8,7 +8,12 @@ type StoryMessageProps = {
|
|
|
8
8
|
};
|
|
9
9
|
declare const _default: {
|
|
10
10
|
title: string;
|
|
11
|
-
component:
|
|
11
|
+
component: {
|
|
12
|
+
Root: React.ForwardRefExoticComponent<Omit<import("./Message").MessageRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Title: React.ForwardRefExoticComponent<Omit<import("./Message").MessageTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
14
|
+
Body: React.ForwardRefExoticComponent<Omit<import("./Message").MessageBodyProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
15
|
+
};
|
|
16
|
+
render: ({ valence, title, body }: StoryMessageProps) => React.JSX.Element;
|
|
12
17
|
decorators: import("@storybook/react/*").Decorator[];
|
|
13
18
|
parameters: {
|
|
14
19
|
chromatic: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/Message.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAK3D,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,cAAc,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC
|
|
1
|
+
{"version":3,"file":"Message.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/Message.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAK3D,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,cAAc,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;;;;;;;;uCAE8C,iBAAiB;;;;;;;;AASjE,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC"}
|
|
@@ -1,32 +1,98 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { Scope } from '@radix-ui/react-context';
|
|
2
|
+
import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
|
|
3
|
+
import { FocusScope } from '@radix-ui/react-focus-scope';
|
|
4
|
+
import * as PopperPrimitive from '@radix-ui/react-popper';
|
|
5
|
+
import { Portal as PortalPrimitive } from '@radix-ui/react-portal';
|
|
2
6
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
3
|
-
import React, { type ComponentPropsWithRef } from 'react';
|
|
7
|
+
import React, { type ComponentPropsWithRef, type ElementRef, type RefObject, type ReactNode, type ComponentPropsWithoutRef } from 'react';
|
|
4
8
|
import { type ThemedClassName } from '../../util';
|
|
5
|
-
type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
type ScopedProps<P> = P & {
|
|
10
|
+
__scopePopover?: Scope;
|
|
11
|
+
};
|
|
12
|
+
declare const createPopoverScope: import("@radix-ui/react-context").CreateScope;
|
|
13
|
+
interface PopoverRootProps {
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
open?: boolean;
|
|
16
|
+
defaultOpen?: boolean;
|
|
17
|
+
onOpenChange?: (open: boolean) => void;
|
|
18
|
+
modal?: boolean;
|
|
19
|
+
}
|
|
20
|
+
type PopperAnchorProps = ComponentPropsWithoutRef<typeof PopperPrimitive.Anchor>;
|
|
21
|
+
interface PopoverAnchorProps extends PopperAnchorProps {
|
|
22
|
+
}
|
|
23
|
+
type PopoverTriggerElement = ElementRef<typeof Primitive.button>;
|
|
24
|
+
type PrimitiveButtonProps = ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
25
|
+
interface PopoverTriggerProps extends PrimitiveButtonProps {
|
|
26
|
+
}
|
|
27
|
+
interface PopoverVirtualTriggerProps {
|
|
28
|
+
virtualRef: RefObject<PopoverTriggerElement>;
|
|
29
|
+
}
|
|
30
|
+
type PortalProps = ComponentPropsWithoutRef<typeof PortalPrimitive>;
|
|
31
|
+
interface PopoverPortalProps {
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Specify a container element to portal the content into.
|
|
35
|
+
*/
|
|
36
|
+
container?: PortalProps['container'];
|
|
37
|
+
/**
|
|
38
|
+
* Used to force mounting when more control is needed. Useful when
|
|
39
|
+
* controlling animation with React animation libraries.
|
|
40
|
+
*/
|
|
41
|
+
forceMount?: true;
|
|
42
|
+
}
|
|
43
|
+
interface PopoverContentProps extends PopoverContentTypeProps {
|
|
44
|
+
/**
|
|
45
|
+
* Used to force mounting when more control is needed. Useful when
|
|
46
|
+
* controlling animation with React animation libraries.
|
|
47
|
+
*/
|
|
48
|
+
forceMount?: true;
|
|
49
|
+
}
|
|
50
|
+
interface PopoverContentTypeProps extends Omit<PopoverContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
|
|
51
|
+
}
|
|
52
|
+
type FocusScopeProps = ComponentPropsWithoutRef<typeof FocusScope>;
|
|
53
|
+
type DismissableLayerProps = ComponentPropsWithoutRef<typeof DismissableLayer>;
|
|
54
|
+
type PopperContentProps = ThemedClassName<ComponentPropsWithoutRef<typeof PopperPrimitive.Content>>;
|
|
55
|
+
interface PopoverContentImplProps extends Omit<PopperContentProps, 'onPlaced'>, Omit<DismissableLayerProps, 'onDismiss'> {
|
|
56
|
+
/**
|
|
57
|
+
* Whether focus should be trapped within the `Popover`
|
|
58
|
+
* (default: false)
|
|
59
|
+
*/
|
|
60
|
+
trapFocus?: FocusScopeProps['trapped'];
|
|
61
|
+
/**
|
|
62
|
+
* Event handler called when auto-focusing on open.
|
|
63
|
+
* Can be prevented.
|
|
64
|
+
*/
|
|
65
|
+
onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
|
|
66
|
+
/**
|
|
67
|
+
* Event handler called when auto-focusing on close.
|
|
68
|
+
* Can be prevented.
|
|
69
|
+
*/
|
|
70
|
+
onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
|
|
71
|
+
}
|
|
72
|
+
interface PopoverCloseProps extends PrimitiveButtonProps {
|
|
73
|
+
}
|
|
74
|
+
type PopperArrowProps = ThemedClassName<ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>>;
|
|
75
|
+
interface PopoverArrowProps extends PopperArrowProps {
|
|
76
|
+
}
|
|
12
77
|
type PopoverViewportProps = ThemedClassName<ComponentPropsWithRef<typeof Primitive.div>> & {
|
|
13
78
|
asChild?: boolean;
|
|
14
79
|
constrainInline?: boolean;
|
|
15
80
|
constrainBlock?: boolean;
|
|
16
81
|
};
|
|
17
82
|
export declare const Popover: {
|
|
18
|
-
Root: React.
|
|
19
|
-
|
|
20
|
-
Trigger: React.ForwardRefExoticComponent<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
Content: React.ForwardRefExoticComponent<
|
|
27
|
-
|
|
28
|
-
|
|
83
|
+
Root: React.FC<PopoverRootProps>;
|
|
84
|
+
Anchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
Trigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
86
|
+
VirtualTrigger: {
|
|
87
|
+
(props: ScopedProps<PopoverVirtualTriggerProps>): React.JSX.Element;
|
|
88
|
+
displayName: string;
|
|
89
|
+
};
|
|
90
|
+
Portal: React.FC<PopoverPortalProps>;
|
|
91
|
+
Content: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
92
|
+
Close: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
93
|
+
Arrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
29
94
|
Viewport: React.ForwardRefExoticComponent<Omit<PopoverViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
95
|
};
|
|
31
|
-
export
|
|
96
|
+
export { createPopoverScope };
|
|
97
|
+
export type { PopoverRootProps, PopoverAnchorProps, PopoverTriggerProps, PopoverVirtualTriggerProps, PopoverPortalProps, PopoverContentProps, PopoverCloseProps, PopoverArrowProps, PopoverViewportProps, };
|
|
32
98
|
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAItD,OAAO,KAAK,EAAE,EACZ,KAAK,qBAAqB,EAE1B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EAGd,KAAK,wBAAwB,EAK9B,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAQlD,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,cAAc,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AACrD,Q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: string;
|
|
5
|
-
component:
|
|
5
|
+
component: {
|
|
6
|
+
Root: React.FC<import("./Popover").PopoverRootProps>;
|
|
7
|
+
Anchor: React.ForwardRefExoticComponent<import("./Popover").PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Trigger: React.ForwardRefExoticComponent<import("./Popover").PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
VirtualTrigger: {
|
|
10
|
+
(props: import("./Popover").PopoverVirtualTriggerProps & {
|
|
11
|
+
__scopePopover?: import("@radix-ui/react-context").Scope;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
Portal: React.FC<import("./Popover").PopoverPortalProps>;
|
|
16
|
+
Content: React.ForwardRefExoticComponent<import("./Popover").PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Close: React.ForwardRefExoticComponent<import("./Popover").PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
Arrow: React.ForwardRefExoticComponent<import("./Popover").PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
19
|
+
Viewport: React.ForwardRefExoticComponent<Omit<import("./Popover").PopoverViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
};
|
|
21
|
+
render: ({ openTrigger, children }: PropsWithChildren<{
|
|
6
22
|
openTrigger: ReactNode;
|
|
7
23
|
}>) => React.JSX.Element;
|
|
8
24
|
decorators: import("@storybook/react/*").Decorator[];
|
|
@@ -19,4 +35,7 @@ export declare const Default: {
|
|
|
19
35
|
children: string;
|
|
20
36
|
};
|
|
21
37
|
};
|
|
38
|
+
export declare const VirtualTrigger: {
|
|
39
|
+
render: () => React.JSX.Element;
|
|
40
|
+
};
|
|
22
41
|
//# sourceMappingURL=Popover.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/Popover.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/Popover.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAoB,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;wCAUnC,iBAAiB,CAAC;QAAE,WAAW,EAAE,SAAS,CAAA;KAAE,CAAC;;;;;;;;AAclG,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,cAAc;;CAqB1B,CAAC"}
|
|
@@ -2,7 +2,26 @@ import '@dxos-theme';
|
|
|
2
2
|
import React, { type PropsWithChildren } from 'react';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component:
|
|
5
|
+
component: {
|
|
6
|
+
Root: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-scroll-area").ScrollAreaProps, "className"> & {
|
|
7
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
8
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Viewport: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-scroll-area").ScrollAreaViewportProps, "className"> & {
|
|
10
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Scrollbar: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-scroll-area").ScrollAreaScrollbarProps, "className"> & {
|
|
13
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
14
|
+
} & {
|
|
15
|
+
variant?: "coarse" | "fine";
|
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Thumb: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-scroll-area").ScrollAreaThumbProps, "className"> & {
|
|
18
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
19
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
Corner: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-scroll-area").ScrollAreaCornerProps, "className"> & {
|
|
21
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
22
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
};
|
|
24
|
+
render: ({ children }: PropsWithChildren<{}>) => React.JSX.Element;
|
|
6
25
|
decorators: import("@storybook/react/*").Decorator[];
|
|
7
26
|
parameters: {
|
|
8
27
|
chromatic: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollArea.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollArea/ScrollArea.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"ScrollArea.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollArea/ScrollArea.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;2BAUX,iBAAiB,CAAC,EAAE,CAAC;;;;;;;;AAmBhE,wBAME;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
|
|
@@ -11,7 +11,7 @@ type SelectTriggerButtonProps = Omit<ButtonProps, 'children'> & Pick<SelectValue
|
|
|
11
11
|
type SelectContentProps = ThemedClassName<SelectPrimitive.SelectContentProps>;
|
|
12
12
|
type SelectScrollUpButtonProps = ThemedClassName<SelectPrimitive.SelectScrollUpButtonProps>;
|
|
13
13
|
type SelectScrollDownButtonProps = ThemedClassName<SelectPrimitive.SelectScrollDownButtonProps>;
|
|
14
|
-
type SelectViewportProps = SelectPrimitive.SelectViewportProps
|
|
14
|
+
type SelectViewportProps = ThemedClassName<SelectPrimitive.SelectViewportProps>;
|
|
15
15
|
type SelectItemProps = ThemedClassName<SelectPrimitive.SelectItemProps>;
|
|
16
16
|
type SelectItemTextProps = SelectPrimitive.SelectItemTextProps;
|
|
17
17
|
type SelectItemIndicatorProps = ThemedClassName<SelectPrimitive.SelectItemIndicatorProps>;
|
|
@@ -36,7 +36,9 @@ export declare const Select: {
|
|
|
36
36
|
ScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps, "className"> & {
|
|
37
37
|
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
38
38
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
-
Viewport: React.ForwardRefExoticComponent<SelectPrimitive.SelectViewportProps &
|
|
39
|
+
Viewport: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectViewportProps, "className"> & {
|
|
40
|
+
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
41
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
40
42
|
Item: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps, "className"> & {
|
|
41
43
|
classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
|
|
42
44
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM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AAK,iBAAiB,GAAG,eAAe,CAAC;AAezC,KAAK,gBAAgB,GAAG,eAAe,CAAC,gBAAgB,CAAC;AAIzD,KAAK,gBAAgB,GAAG,eAAe,CAAC,gBAAgB,CAAC;AAIzD,KAAK,oBAAoB,GAAG,eAAe,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAalF,KAAK,gBAAgB,GAAG,eAAe,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC;AAa1E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBlB,CAAC;AAEF,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,GACjB,CAAC"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
+
import { type StoryObj } from '@storybook/react';
|
|
2
3
|
import React from 'react';
|
|
4
|
+
type ItemProps = {
|
|
5
|
+
id: string;
|
|
6
|
+
text: string;
|
|
7
|
+
};
|
|
8
|
+
type StoryProps = {
|
|
9
|
+
items: ItemProps[];
|
|
10
|
+
};
|
|
11
|
+
export declare const Default: StoryObj<StoryProps>;
|
|
3
12
|
declare const _default: {
|
|
4
13
|
title: string;
|
|
5
|
-
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
}) => React.JSX.Element;
|
|
14
|
+
render: ({ items }: StoryProps) => React.JSX.Element;
|
|
8
15
|
decorators: import("@storybook/react/*").Decorator[];
|
|
9
16
|
parameters: {
|
|
10
17
|
chromatic: {
|
|
@@ -13,12 +20,4 @@ declare const _default: {
|
|
|
13
20
|
};
|
|
14
21
|
};
|
|
15
22
|
export default _default;
|
|
16
|
-
export declare const Default: {
|
|
17
|
-
args: {
|
|
18
|
-
items: {
|
|
19
|
-
id: string;
|
|
20
|
-
text: string;
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
23
|
//# sourceMappingURL=Select.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,
|
|
1
|
+
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAmB,MAAM,OAAO,CAAC;AASxC,KAAK,SAAS,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9C,KAAK,UAAU,GAAG;IAAE,KAAK,EAAE,SAAS,EAAE,CAAA;CAAE,CAAC;AAyBzC,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,UAAU,CAIxC,CAAC;;;wBA3BoC,UAAU;;;;;;;;AA6BhD,wBAKE"}
|
|
@@ -3,9 +3,6 @@ import React from 'react';
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: React.ForwardRefExoticComponent<Omit<import("./Status").StatusProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
-
actions: {
|
|
7
|
-
argTypesRegex: string;
|
|
8
|
-
};
|
|
9
6
|
decorators: import("@storybook/react/*").Decorator[];
|
|
10
7
|
parameters: {
|
|
11
8
|
chromatic: {
|