@dxos/react-ui 0.8.2-main.fbd8ed0 → 0.8.2-staging.7ac8446
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 +1081 -1616
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +1404 -1941
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +1081 -1616
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Avatars/Avatar.d.ts +2 -2
- package/dist/types/src/components/Avatars/Avatar.d.ts.map +1 -1
- package/dist/types/src/components/Avatars/Avatar.stories.d.ts +3 -3
- package/dist/types/src/components/Avatars/Avatar.stories.d.ts.map +1 -1
- package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts +1 -0
- package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/Button.stories.d.ts +44 -10
- package/dist/types/src/components/Buttons/Button.stories.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/IconButton.d.ts +5 -4
- package/dist/types/src/components/Buttons/IconButton.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/IconButton.stories.d.ts +6 -7
- package/dist/types/src/components/Buttons/IconButton.stories.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/Toggle.stories.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts +4 -1
- package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts.map +1 -1
- package/dist/types/src/components/Clipboard/ClipboardProvider.d.ts.map +1 -1
- package/dist/types/src/components/Clipboard/CopyButton.d.ts +1 -2
- package/dist/types/src/components/Clipboard/CopyButton.d.ts.map +1 -1
- package/dist/types/src/components/Clipboard/index.d.ts +2 -2
- package/dist/types/src/components/DensityProvider/DensityProvider.d.ts.map +1 -1
- package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts +2 -2
- package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts.map +1 -1
- package/dist/types/src/components/Dialogs/Dialog.d.ts +2 -2
- package/dist/types/src/components/Dialogs/Dialog.d.ts.map +1 -1
- package/dist/types/src/components/Dialogs/Dialog.stories.d.ts +2 -2
- package/dist/types/src/components/Dialogs/Dialog.stories.d.ts.map +1 -1
- package/dist/types/src/components/ElevationProvider/ElevationProvider.d.ts.map +1 -1
- package/dist/types/src/components/Input/Input.d.ts +1 -1
- package/dist/types/src/components/Input/Input.d.ts.map +1 -1
- package/dist/types/src/components/Input/Input.stories.d.ts +159 -33
- package/dist/types/src/components/Input/Input.stories.d.ts.map +1 -1
- package/dist/types/src/components/Lists/ListDropIndicator.d.ts.map +1 -1
- package/dist/types/src/components/Lists/Tree.stories.d.ts.map +1 -1
- package/dist/types/src/components/Lists/TreeDropIndicator.d.ts.map +1 -1
- package/dist/types/src/components/Lists/Treegrid.stories.d.ts +1 -1
- package/dist/types/src/components/Lists/Treegrid.stories.d.ts.map +1 -1
- package/dist/types/src/components/Main/Main.d.ts.map +1 -1
- package/dist/types/src/components/Main/Main.stories.d.ts.map +1 -1
- package/dist/types/src/components/Main/useSwipeToDismiss.d.ts.map +1 -1
- package/dist/types/src/components/Message/Message.stories.d.ts +2 -2
- package/dist/types/src/components/Message/Message.stories.d.ts.map +1 -1
- package/dist/types/src/components/Popover/Popover.d.ts +6 -15
- package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/src/components/Popover/Popover.stories.d.ts +1 -5
- package/dist/types/src/components/Popover/Popover.stories.d.ts.map +1 -1
- package/dist/types/src/components/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -1
- package/dist/types/src/components/Status/Status.stories.d.ts.map +1 -1
- package/dist/types/src/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts +1 -1
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts.map +1 -1
- package/dist/types/src/components/Toast/Toast.stories.d.ts +2 -2
- package/dist/types/src/components/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
- package/dist/types/src/components/Tooltip/Tooltip.d.ts +20 -94
- package/dist/types/src/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts +17 -41
- package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- 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/hooks/useDensityContext.d.ts.map +1 -1
- package/dist/types/src/hooks/useElevationContext.d.ts.map +1 -1
- package/dist/types/src/hooks/useIconHref.d.ts.map +1 -1
- package/dist/types/src/hooks/useSafeCollisionPadding.d.ts.map +1 -1
- package/dist/types/src/hooks/useVisualViewport.d.ts.map +1 -1
- package/dist/types/src/playground/Controls.stories.d.ts +1 -1
- package/dist/types/src/playground/Controls.stories.d.ts.map +1 -1
- package/dist/types/src/testing/decorators/withVariants.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -14
- package/src/components/Avatars/Avatar.stories.tsx +27 -27
- package/src/components/Avatars/Avatar.tsx +13 -17
- package/src/components/Avatars/AvatarGroup.stories.tsx +5 -4
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +2 -2
- package/src/components/Buttons/Button.stories.tsx +14 -19
- package/src/components/Buttons/IconButton.stories.tsx +10 -9
- package/src/components/Buttons/IconButton.tsx +33 -8
- package/src/components/Buttons/Toggle.stories.tsx +2 -2
- package/src/components/Buttons/ToggleGroup.stories.tsx +7 -3
- package/src/components/Clipboard/CopyButton.tsx +24 -22
- package/src/components/Dialogs/AlertDialog.stories.tsx +11 -4
- package/src/components/Dialogs/Dialog.stories.tsx +3 -3
- package/src/components/Dialogs/Dialog.tsx +4 -8
- package/src/components/Input/Input.stories.tsx +56 -67
- package/src/components/Input/Input.tsx +0 -1
- package/src/components/Lists/Tree.stories.tsx +2 -2
- package/src/components/Lists/Treegrid.stories.tsx +12 -12
- package/src/components/Main/Main.stories.tsx +2 -2
- package/src/components/Menus/ContextMenu.stories.tsx +2 -2
- package/src/components/Menus/DropdownMenu.stories.tsx +2 -2
- package/src/components/Message/Message.stories.tsx +3 -3
- package/src/components/Popover/Popover.stories.tsx +2 -2
- package/src/components/Popover/Popover.tsx +4 -8
- package/src/components/ScrollArea/ScrollArea.stories.tsx +2 -2
- package/src/components/ScrollArea/ScrollArea.tsx +0 -3
- package/src/components/Toast/Toast.stories.tsx +10 -15
- package/src/components/Toolbar/Toolbar.stories.tsx +2 -2
- package/src/components/Tooltip/Tooltip.stories.tsx +18 -43
- package/src/components/Tooltip/Tooltip.tsx +58 -748
- package/src/components/index.ts +1 -1
- package/src/playground/Controls.stories.tsx +2 -2
- package/src/playground/Typography.stories.tsx +2 -2
- package/dist/types/src/playground/Custom.stories.d.ts +0 -8
- package/dist/types/src/playground/Custom.stories.d.ts.map +0 -1
- package/src/playground/Custom.stories.tsx +0 -137
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
type StorybookIconButtonProps = {
|
|
4
|
+
iconOnly?: boolean;
|
|
5
|
+
};
|
|
4
6
|
declare const _default: {
|
|
5
7
|
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
render: (props:
|
|
8
|
+
component: React.ForwardRefExoticComponent<Omit<import("./IconButton").IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
render: (props: StorybookIconButtonProps) => React.JSX.Element;
|
|
8
10
|
decorators: import("@storybook/react").Decorator[];
|
|
9
11
|
parameters: {
|
|
10
12
|
chromatic: {
|
|
@@ -14,9 +16,6 @@ declare const _default: {
|
|
|
14
16
|
};
|
|
15
17
|
export default _default;
|
|
16
18
|
export declare const Default: {
|
|
17
|
-
args: {
|
|
18
|
-
label: string;
|
|
19
|
-
icon: string;
|
|
20
|
-
};
|
|
19
|
+
args: {};
|
|
21
20
|
};
|
|
22
21
|
//# sourceMappingURL=IconButton.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/IconButton.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/IconButton.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;;;oBAEkC,wBAAwB;;;;;;;;AAa5D,wBAME;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/Toggle.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,oBAAoB,GAAG,EAAE,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"Toggle.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/Toggle.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,oBAAoB,GAAG,EAAE,CAAC;;;;oBAEC,oBAAoB;;;;;;;;AAQpD,wBAME;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type ToggleGroupProps } from './ToggleGroup';
|
|
4
|
+
type StorybookToggleGroupProps = {
|
|
5
|
+
type: ToggleGroupProps['type'];
|
|
6
|
+
};
|
|
4
7
|
declare const _default: {
|
|
5
8
|
title: string;
|
|
6
9
|
component: React.ForwardRefExoticComponent<(Omit<Omit<import("@radix-ui/react-toggle-group").ToggleGroupSingleProps, "className"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -22,7 +25,7 @@ declare const _default: {
|
|
|
22
25
|
elevation?: import("@dxos/react-ui-types").Elevation;
|
|
23
26
|
asChild?: boolean;
|
|
24
27
|
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
render: (props:
|
|
28
|
+
render: (props: StorybookToggleGroupProps) => React.JSX.Element;
|
|
26
29
|
decorators: import("@storybook/react").Decorator[];
|
|
27
30
|
parameters: {
|
|
28
31
|
chromatic: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleGroup.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/ToggleGroup.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAgC,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ToggleGroup.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/ToggleGroup.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAgC,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGpF,KAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;;;;;;;;;;;;;;;;;;;;;;oBAGmC,yBAAyB;;;;;;;;AAa9D,wBAME;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClipboardProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/Clipboard/ClipboardProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAqC,MAAM,OAAO,CAAC;AAExG,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpD,CAAC;AAEF,eAAO,MAAM,gBAAgB,sCAG3B,CAAC;AAEH,eAAO,MAAM,YAAY,6BAAqC,CAAC;AAE/D,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ClipboardProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/Clipboard/ClipboardProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAqC,MAAM,OAAO,CAAC;AAExG,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpD,CAAC;AAEF,eAAO,MAAM,gBAAgB,sCAG3B,CAAC;AAEH,eAAO,MAAM,YAAY,6BAAqC,CAAC;AAE/D,eAAO,MAAM,iBAAiB,iBAAkB,iBAAiB,CAAC,EAAE,CAAC,sBAOpE,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type IconProps } from '@phosphor-icons/react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type ButtonProps } from '../Buttons';
|
|
4
|
-
import { type TooltipScopedProps } from '../Tooltip';
|
|
5
4
|
export type CopyButtonProps = ButtonProps & {
|
|
6
5
|
value: string;
|
|
7
6
|
iconProps?: IconProps;
|
|
@@ -10,6 +9,6 @@ export declare const CopyButton: ({ value, classNames, iconProps, ...props }: Co
|
|
|
10
9
|
type CopyButtonIconOnlyProps = CopyButtonProps & {
|
|
11
10
|
label?: string;
|
|
12
11
|
};
|
|
13
|
-
export declare const CopyButtonIconOnly: ({
|
|
12
|
+
export declare const CopyButtonIconOnly: ({ value, classNames, iconProps, variant, ...props }: CopyButtonIconOnlyProps) => React.JSX.Element;
|
|
14
13
|
export {};
|
|
15
14
|
//# sourceMappingURL=CopyButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Clipboard/CopyButton.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"CopyButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Clipboard/CopyButton.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAKtD,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAIF,eAAO,MAAM,UAAU,+CAAgD,eAAe,sBAsBrF,CAAC;AAEF,KAAK,uBAAuB,GAAG,eAAe,GAAG;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,kBAAkB,wDAAyD,uBAAuB,sBA2B9G,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const Clipboard: {
|
|
2
2
|
Button: ({ value, classNames, iconProps, ...props }: import("./CopyButton").CopyButtonProps) => import("react").JSX.Element;
|
|
3
|
-
IconButton: ({
|
|
3
|
+
IconButton: ({ value, classNames, iconProps, variant, ...props }: import("..").ButtonProps & {
|
|
4
4
|
value: string;
|
|
5
5
|
iconProps?: import("@phosphor-icons/react").IconProps;
|
|
6
6
|
} & {
|
|
7
7
|
label?: string;
|
|
8
|
-
}
|
|
8
|
+
}) => import("react").JSX.Element;
|
|
9
9
|
Provider: ({ children }: import("react").PropsWithChildren<{}>) => import("react").JSX.Element;
|
|
10
10
|
};
|
|
11
11
|
export { useClipboard } from './ClipboardProvider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DensityProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/DensityProvider/DensityProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH,eAAO,MAAM,cAAc,oCAA0D,CAAC;AAEtF,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"DensityProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/DensityProvider/DensityProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH,eAAO,MAAM,cAAc,oCAA0D,CAAC;AAEtF,eAAO,MAAM,eAAe,0BAA2B,oBAAoB,sBAE1E,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
type
|
|
3
|
+
type StorybookAlertDialogProps = Partial<{
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
6
|
body: string;
|
|
@@ -21,7 +21,7 @@ declare const _default: {
|
|
|
21
21
|
Cancel: React.FunctionComponent<import("@radix-ui/react-alert-dialog").AlertDialogCancelProps>;
|
|
22
22
|
Action: React.FunctionComponent<import("@radix-ui/react-alert-dialog").AlertDialogActionProps>;
|
|
23
23
|
};
|
|
24
|
-
render: ({ title, openTrigger, description, body, cancelTrigger, actionTrigger }:
|
|
24
|
+
render: ({ title, openTrigger, description, body, cancelTrigger, actionTrigger, }: StorybookAlertDialogProps) => React.JSX.Element;
|
|
25
25
|
decorators: import("@storybook/react").Decorator[];
|
|
26
26
|
parameters: {
|
|
27
27
|
chromatic: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialogs/AlertDialog.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,KAAK,
|
|
1
|
+
{"version":3,"file":"AlertDialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialogs/AlertDialog.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,KAAK,yBAAyB,GAAG,OAAO,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC,CAAC;;;;;;;;;;;;;;uFASA,yBAAyB;;;;;;;;AA0B5B,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;CASnB,CAAC"}
|
|
@@ -11,9 +11,9 @@ type DialogDescriptionProps = ThemedClassName<DialogDescriptionPrimitiveProps> &
|
|
|
11
11
|
srOnly?: boolean;
|
|
12
12
|
};
|
|
13
13
|
type DialogCloseProps = DialogClosePrimitiveProps;
|
|
14
|
-
type DialogOverlayProps = ThemedClassName<DialogOverlayPrimitiveProps & {
|
|
14
|
+
type DialogOverlayProps = ThemedClassName<DialogOverlayPrimitiveProps> & {
|
|
15
15
|
blockAlign?: 'center' | 'start' | 'end';
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
type DialogContentProps = ThemedClassName<DialogContentPrimitiveProps> & {
|
|
18
18
|
inOverlayLayout?: boolean;
|
|
19
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialogs/Dialog.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,WAAW,IAAI,wBAAwB,EAG5C,KAAK,kBAAkB,IAAI,2BAA2B,EAEtD,KAAK,iBAAiB,IAAI,0BAA0B,EAEpD,KAAK,kBAAkB,IAAI,2BAA2B,EAEtD,KAAK,gBAAgB,IAAI,yBAAyB,EAElD,KAAK,sBAAsB,IAAI,+BAA+B,EAE9D,KAAK,gBAAgB,IAAI,yBAAyB,EAElD,KAAK,kBAAkB,IAAI,2BAA2B,EACvD,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAA6E,MAAM,OAAO,CAAC;AAGlG,OAAO,EAAE,KAAK,eA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E,OAAO,CAAA;CAAE,CAAC;AAgBtG,KAAK,gBAAgB,GAAG,yBAAyB,CAAC;AAWlD,KAAK,kBAAkB,GAAG,eAAe,CAAC,2BAA2B,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;CAAE,CAAC;AAqBrH,KAAK,kBAAkB,GAAG,eAAe,CAAC,2BAA2B,CAAC,GAAG;IAAE,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AA0BvG,eAAO,MAAM,MAAM;;;;;;;;;CASlB,CAAC;AAEF,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,GACjB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
type
|
|
3
|
+
type StorybookDialogProps = Partial<{
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
6
|
body: string;
|
|
@@ -20,7 +20,7 @@ declare const _default: {
|
|
|
20
20
|
Description: React.ForwardRefExoticComponent<import("./Dialog").DialogTitleProps>;
|
|
21
21
|
Close: React.FunctionComponent<import("@radix-ui/react-dialog").DialogCloseProps>;
|
|
22
22
|
};
|
|
23
|
-
render: ({ title, openTrigger, description, body, closeTrigger, blockAlign }:
|
|
23
|
+
render: ({ title, openTrigger, description, body, closeTrigger, blockAlign }: StorybookDialogProps) => React.JSX.Element;
|
|
24
24
|
decorators: import("@storybook/react").Decorator[];
|
|
25
25
|
parameters: {
|
|
26
26
|
chromatic: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialogs/Dialog.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,
|
|
1
|
+
{"version":3,"file":"Dialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialogs/Dialog.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,oBAAoB,GAAG,OAAO,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,QAAQ,GAAG,OAAO,CAAC;CAChC,CAAC,CAAC;;;;;;;;;;;;;kFAE2F,oBAAoB;;;;;;;;AAoBlH,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;CAenB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElevationProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ElevationProvider/ElevationProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;IACrD,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,sCAA8D,CAAC;AAE5F,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ElevationProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ElevationProvider/ElevationProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;IACrD,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,sCAA8D,CAAC;AAE5F,eAAO,MAAM,iBAAiB,4BAA6B,sBAAsB,sBAEhF,CAAC"}
|
|
@@ -50,5 +50,5 @@ export declare const Input: {
|
|
|
50
50
|
Validation: React.ForwardRefExoticComponent<Omit<InputScopedProps<ValidationProps>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
51
51
|
DescriptionAndValidation: React.ForwardRefExoticComponent<Omit<DescriptionAndValidationProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
52
52
|
};
|
|
53
|
-
export type { InputVariant, InputRootProps,
|
|
53
|
+
export type { InputVariant, InputRootProps, PinInputProps, TextInputProps, TextAreaProps, CheckboxProps, SwitchProps, LabelProps, DescriptionProps, ValidationProps, DescriptionAndValidationProps, };
|
|
54
54
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAA6B,KAAK,aAAa,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEnH,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAA2D,MAAM,OAAO,CAAC;AAEnH,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,aAAa,IAAI,sBAAsB,EAE5C,KAAK,cAAc,IAAI,uBAAuB,EAE9C,KAAK,aAAa,IAAI,sBAAsB,EAG5C,KAAK,gBAAgB,EAGrB,KAAK,6BAA6B,IAAI,sCAAsC,EAC5E,KAAK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,EAAE,OAAO,KAAK,IAAI,CAAA;CAAE,CACjH,CAAC;AA2CF,eAAO,MAAM,KAAK;;iLAhTM,MAAO,GAAG,CAAC,OAAO;;;;;;;;;;;;CA2TzC,CAAC;AAEF,YAAY,EACV,YAAY,EACZ,cAAc,EACd,aAAa,EACb,cAAc,EACd,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,6BAA6B,GAC9B,CAAC"}
|
|
@@ -1,46 +1,172 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { type MessageValence } from '@dxos/react-ui-types';
|
|
4
|
-
|
|
5
|
-
type VariantMap = {
|
|
6
|
-
text: TextInputProps;
|
|
7
|
-
pin: PinInputProps;
|
|
8
|
-
textarea: TextAreaProps;
|
|
9
|
-
checkbox: CheckboxProps;
|
|
10
|
-
switch: SwitchProps;
|
|
11
|
-
};
|
|
12
|
-
type Variant = {
|
|
13
|
-
[K in keyof VariantMap]: {
|
|
14
|
-
type: K;
|
|
15
|
-
} & VariantMap[K];
|
|
16
|
-
}[keyof VariantMap];
|
|
17
|
-
type BaseProps = Partial<{
|
|
18
|
-
kind: keyof VariantMap;
|
|
4
|
+
type StoryInputProps = Partial<{
|
|
19
5
|
label: string;
|
|
20
|
-
|
|
6
|
+
placeholder: string;
|
|
7
|
+
disabled: boolean;
|
|
21
8
|
description: string;
|
|
9
|
+
labelVisuallyHidden: boolean;
|
|
22
10
|
descriptionVisuallyHidden: boolean;
|
|
23
|
-
|
|
11
|
+
type: 'default' | 'pin' | 'textarea' | 'checkbox' | 'switch';
|
|
24
12
|
validationMessage: string;
|
|
13
|
+
validationValence: MessageValence;
|
|
25
14
|
}>;
|
|
26
|
-
declare const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
15
|
+
declare const _default: {
|
|
16
|
+
title: string;
|
|
17
|
+
component: {
|
|
18
|
+
Root: {
|
|
19
|
+
({ __inputScope, id: propsId, descriptionId: propsDescriptionId, errorMessageId: propsErrorMessageId, validationValence, children, }: import("@dxos/react-input").InputScopedProps<import("@dxos/react-input").InputRootProps>): React.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
PinInput: React.ForwardRefExoticComponent<Omit<import("./Input").PinInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
23
|
+
TextInput: React.ForwardRefExoticComponent<Omit<import("@dxos/react-input").InputScopedProps<import("./Input").TextInputProps>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
24
|
+
TextArea: React.ForwardRefExoticComponent<Omit<import("@dxos/react-input").InputScopedProps<import("./Input").TextAreaProps>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
25
|
+
Checkbox: React.ForwardRefExoticComponent<import("./Input").CheckboxProps>;
|
|
26
|
+
Switch: React.ForwardRefExoticComponent<Omit<import("@dxos/react-input").InputScopedProps<import("./Input").SwitchProps>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
27
|
+
Label: React.ForwardRefExoticComponent<Omit<import("./Input").LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
28
|
+
Description: React.ForwardRefExoticComponent<Omit<import("./Input").DescriptionProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
29
|
+
Validation: React.ForwardRefExoticComponent<Omit<import("@dxos/react-input").InputScopedProps<import("./Input").ValidationProps>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
30
|
+
DescriptionAndValidation: React.ForwardRefExoticComponent<Omit<import("./Input").DescriptionAndValidationProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
31
|
+
};
|
|
32
|
+
render: (props: StoryInputProps) => React.JSX.Element;
|
|
33
|
+
argTypes: {
|
|
34
|
+
label: {
|
|
35
|
+
control: string;
|
|
36
|
+
};
|
|
37
|
+
description: {
|
|
38
|
+
control: string;
|
|
39
|
+
};
|
|
40
|
+
validationMessage: {
|
|
41
|
+
control: string;
|
|
42
|
+
};
|
|
43
|
+
validationValence: {
|
|
44
|
+
control: string;
|
|
45
|
+
options: string[];
|
|
46
|
+
};
|
|
47
|
+
type: {
|
|
48
|
+
control: string;
|
|
49
|
+
options: string[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
decorators: import("@storybook/react").Decorator[];
|
|
53
|
+
parameters: {
|
|
54
|
+
chromatic: {
|
|
55
|
+
disableSnapshot: boolean;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default _default;
|
|
60
|
+
export declare const Default: {
|
|
61
|
+
args: {
|
|
62
|
+
label: string;
|
|
63
|
+
placeholder: string;
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
description: undefined;
|
|
66
|
+
labelVisuallyHidden: boolean;
|
|
67
|
+
descriptionVisuallyHidden: boolean;
|
|
68
|
+
validationMessage: string;
|
|
69
|
+
validationValence: undefined;
|
|
70
|
+
length: number;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export declare const DensityFine: {
|
|
74
|
+
args: {
|
|
75
|
+
label: string;
|
|
76
|
+
placeholder: string;
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
description: undefined;
|
|
79
|
+
labelVisuallyHidden: boolean;
|
|
80
|
+
descriptionVisuallyHidden: boolean;
|
|
81
|
+
validationMessage: string;
|
|
82
|
+
validationValence: undefined;
|
|
83
|
+
length: number;
|
|
84
|
+
density: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export declare const Subdued: {
|
|
88
|
+
args: {
|
|
89
|
+
label: string;
|
|
90
|
+
placeholder: string;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
description: undefined;
|
|
93
|
+
labelVisuallyHidden: boolean;
|
|
94
|
+
descriptionVisuallyHidden: boolean;
|
|
95
|
+
validationMessage: string;
|
|
96
|
+
validationValence: undefined;
|
|
97
|
+
length: number;
|
|
98
|
+
variant: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export declare const Disabled: {
|
|
102
|
+
args: {
|
|
103
|
+
label: string;
|
|
104
|
+
placeholder: string;
|
|
105
|
+
disabled: boolean;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export declare const LabelVisuallyHidden: {
|
|
109
|
+
args: {
|
|
110
|
+
label: string;
|
|
111
|
+
labelVisuallyHidden: boolean;
|
|
112
|
+
placeholder: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
export declare const InputWithDescription: {
|
|
116
|
+
args: {
|
|
117
|
+
label: string;
|
|
118
|
+
placeholder: string;
|
|
119
|
+
description: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
export declare const InputWithErrorAndDescription: {
|
|
123
|
+
args: {
|
|
124
|
+
label: string;
|
|
125
|
+
placeholder: string;
|
|
126
|
+
description: string;
|
|
127
|
+
validationValence: string;
|
|
128
|
+
validationMessage: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export declare const InputWithValidationAndDescription: {
|
|
132
|
+
args: {
|
|
133
|
+
label: string;
|
|
134
|
+
placeholder: string;
|
|
135
|
+
description: string;
|
|
136
|
+
validationValence: string;
|
|
137
|
+
validationMessage: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
export declare const TextArea: {
|
|
141
|
+
args: {
|
|
142
|
+
label: string;
|
|
143
|
+
type: string;
|
|
144
|
+
description: string;
|
|
145
|
+
placeholder: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
export declare const PinInput: {
|
|
149
|
+
args: {
|
|
150
|
+
label: string;
|
|
151
|
+
type: string;
|
|
152
|
+
length: number;
|
|
153
|
+
description: string;
|
|
154
|
+
placeholder: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
export declare const Checkbox: {
|
|
158
|
+
args: {
|
|
159
|
+
label: string;
|
|
160
|
+
type: string;
|
|
161
|
+
description: string;
|
|
162
|
+
size: number;
|
|
163
|
+
weight: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
40
166
|
export declare const Switch: {
|
|
41
167
|
args: {
|
|
42
|
-
kind: string;
|
|
43
168
|
label: string;
|
|
169
|
+
type: string;
|
|
44
170
|
description: string;
|
|
45
171
|
};
|
|
46
172
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/Input.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,
|
|
1
|
+
{"version":3,"file":"Input.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/Input.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAK3D,KAAK,eAAe,GAAG,OAAO,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,yBAAyB,EAAE,OAAO,CAAC;IACnC,IAAI,EAAE,SAAS,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC7D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,cAAc,CAAC;CACnC,CAAC,CAAC;;;;;6OAcwD,MAAO,GAAG,CAC/D,OAAC;;;;;;;;;;;;;oBAiBoB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiB1C,wBAoBE;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYnB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAanB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;CAMpB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;CAM/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;CAMhC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;CAQxC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;CAQ7C,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;CAOpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;CAQpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;CAQpB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListDropIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/ListDropIndicator.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,KAAkD,MAAM,OAAO,CAAC;AA6BvE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ListDropIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/ListDropIndicator.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,KAAkD,MAAM,OAAO,CAAC;AA6BvE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,6CAK3B,kBAAkB,sBAoBpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/Tree.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;;;;;;;
|
|
1
|
+
{"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/Tree.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;;;;;;;uBAwC+B,kBAAkB;;;;;;;;AAInD,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeDropIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/TreeDropIndicator.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,KAAkD,MAAM,OAAO,CAAC;AAkCvE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,WAAW,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"TreeDropIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/TreeDropIndicator.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,KAAkD,MAAM,OAAO,CAAC;AAkCvE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,WAAW,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,iBAAiB,yBAA8B,kBAAkB,6BAyB7E,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export declare const Default: {};
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: React.ForwardRefExoticComponent<Omit<import("./Treegrid").TreegridRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -6,5 +7,4 @@ declare const _default: {
|
|
|
6
7
|
decorators: import("@storybook/react").Decorator[];
|
|
7
8
|
};
|
|
8
9
|
export default _default;
|
|
9
|
-
export declare const Default: {};
|
|
10
10
|
//# sourceMappingURL=Treegrid.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Treegrid.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/Treegrid.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"Treegrid.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/Treegrid.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AA2I1B,eAAO,MAAM,OAAO,IAAK,CAAC;;;;;;;AAE1B,wBAKE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../../../src/components/Main/Main.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAsB,aAAa,EAAe,MAAM,wBAAwB,CAAC;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OA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E,KAAK,CAAC;CACd,CAAC;AA+CF,KAAK,0BAA0B,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC;AAqB9E,KAAK,6BAA6B,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC;AAsBjF,KAAK,SAAS,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AA4BF,KAAK,gBAAgB,GAAG,eAAe,CAAC,IAAI,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;AA2BvG,eAAO,MAAM,IAAI;;qRApNd,aAAa;;;;;;;CA0Nf,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;AAEzD,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSwipeToDismiss.d.ts","sourceRoot":"","sources":["../../../../../src/components/Main/useSwipeToDismiss.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAC;AAQzE,KAAK,OAAO,GAAG,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,cAAc,GAAG,YAAY,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useSwipeToDismiss.d.ts","sourceRoot":"","sources":["../../../../../src/components/Main/useSwipeToDismiss.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAC;AAQzE,KAAK,OAAO,GAAG,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,cAAc,GAAG,YAAY,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH,eAAO,MAAM,iBAAiB,QACvB,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,8DACmE,OAAO,SA8E7G,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type MessageValence } from '@dxos/react-ui-types';
|
|
4
|
-
type
|
|
4
|
+
type StoryMessageProps = {
|
|
5
5
|
valence: MessageValence;
|
|
6
6
|
title: string;
|
|
7
7
|
body: string;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
Title: React.ForwardRefExoticComponent<Omit<import("./Message").MessageTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
14
14
|
Body: React.ForwardRefExoticComponent<Omit<import("./Message").MessageBodyProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
15
15
|
};
|
|
16
|
-
render: ({ valence, title, body }:
|
|
16
|
+
render: ({ valence, title, body }: StoryMessageProps) => React.JSX.Element;
|
|
17
17
|
decorators: import("@storybook/react").Decorator[];
|
|
18
18
|
parameters: {
|
|
19
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,
|
|
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"}
|
|
@@ -40,14 +40,14 @@ interface PopoverPortalProps {
|
|
|
40
40
|
*/
|
|
41
41
|
forceMount?: true;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
interface PopoverContentProps extends PopoverContentTypeProps {
|
|
44
44
|
/**
|
|
45
45
|
* Used to force mounting when more control is needed. Useful when
|
|
46
46
|
* controlling animation with React animation libraries.
|
|
47
47
|
*/
|
|
48
|
-
forceMount?:
|
|
49
|
-
}
|
|
50
|
-
|
|
48
|
+
forceMount?: true;
|
|
49
|
+
}
|
|
50
|
+
interface PopoverContentTypeProps extends Omit<PopoverContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
|
|
51
51
|
}
|
|
52
52
|
type FocusScopeProps = ComponentPropsWithoutRef<typeof FocusScope>;
|
|
53
53
|
type DismissableLayerProps = ComponentPropsWithoutRef<typeof DismissableLayer>;
|
|
@@ -79,7 +79,6 @@ type PopoverViewportProps = ThemedClassName<ComponentPropsWithRef<typeof Primiti
|
|
|
79
79
|
constrainInline?: boolean;
|
|
80
80
|
constrainBlock?: boolean;
|
|
81
81
|
};
|
|
82
|
-
type PopoverContentInteractOutsideEvent = Parameters<NonNullable<PopoverContentProps['onInteractOutside']>>[0];
|
|
83
82
|
export declare const Popover: {
|
|
84
83
|
Root: React.FC<PopoverRootProps>;
|
|
85
84
|
Anchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -89,19 +88,11 @@ export declare const Popover: {
|
|
|
89
88
|
displayName: string;
|
|
90
89
|
};
|
|
91
90
|
Portal: React.FC<PopoverPortalProps>;
|
|
92
|
-
Content: React.ForwardRefExoticComponent<
|
|
93
|
-
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
94
|
-
} & {
|
|
95
|
-
/**
|
|
96
|
-
* Used to force mounting when more control is needed. Useful when
|
|
97
|
-
* controlling animation with React animation libraries.
|
|
98
|
-
*/
|
|
99
|
-
forceMount?: boolean;
|
|
100
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
+
Content: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
101
92
|
Close: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
102
93
|
Arrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
103
94
|
Viewport: React.ForwardRefExoticComponent<Omit<PopoverViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
104
95
|
};
|
|
105
96
|
export { createPopoverScope };
|
|
106
|
-
export type { PopoverRootProps, PopoverAnchorProps, PopoverTriggerProps, PopoverVirtualTriggerProps, PopoverPortalProps, PopoverContentProps, PopoverCloseProps, PopoverArrowProps, PopoverViewportProps,
|
|
97
|
+
export type { PopoverRootProps, PopoverAnchorProps, PopoverTriggerProps, PopoverVirtualTriggerProps, PopoverPortalProps, PopoverContentProps, PopoverCloseProps, PopoverArrowProps, PopoverViewportProps, };
|
|
107
98
|
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;AAKf,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,QAAA,MAA6B,kBAAkB,+CAAyD,CAAC;AAiBzG,UAAU,gBAAgB;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0B,CAAC;;;;;;;;CA4Y5E,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,GACrB,CAAC"}
|
|
@@ -13,11 +13,7 @@ declare const _default: {
|
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
15
|
Portal: React.FC<import("./Popover").PopoverPortalProps>;
|
|
16
|
-
Content: React.ForwardRefExoticComponent<
|
|
17
|
-
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
18
|
-
} & {
|
|
19
|
-
forceMount?: boolean;
|
|
20
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
Content: React.ForwardRefExoticComponent<import("./Popover").PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
17
|
Close: React.ForwardRefExoticComponent<import("./Popover").PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
22
18
|
Arrow: React.ForwardRefExoticComponent<import("./Popover").PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
23
19
|
Viewport: React.ForwardRefExoticComponent<Omit<import("./Popover").PopoverViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -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,EAAoB,MAAM,OAAO,CAAC
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollArea/ScrollArea.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,eAAe,IAAI,4BAA4B,EAEpD,KAAK,uBAAuB,IAAI,gCAAgC,EAEhE,KAAK,wBAAwB,IAAI,iCAAiC,EAElE,KAAK,oBAAoB,IAAI,6BAA6B,EAE1D,KAAK,qBAAqB,IAAI,8BAA8B,EAC7D,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,KAAK,iBAAiB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3C,KAAK,mBAAmB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ScrollArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollArea/ScrollArea.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,eAAe,IAAI,4BAA4B,EAEpD,KAAK,uBAAuB,IAAI,gCAAgC,EAEhE,KAAK,wBAAwB,IAAI,iCAAiC,EAElE,KAAK,oBAAoB,IAAI,6BAA6B,EAE1D,KAAK,qBAAqB,IAAI,8BAA8B,EAC7D,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,KAAK,iBAAiB,GAAG,QAAQ,GA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