@dxos/react-ui 0.8.2-main.30e4dbb → 0.8.2-main.4c6cf53

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.
Files changed (103) hide show
  1. package/dist/lib/browser/chunk-5Y5JI6KC.mjs +4355 -0
  2. package/dist/lib/browser/chunk-5Y5JI6KC.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +73 -3518
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/testing/index.mjs +85 -0
  7. package/dist/lib/browser/testing/index.mjs.map +7 -0
  8. package/dist/lib/node/chunk-KMS7RFL7.cjs +4340 -0
  9. package/dist/lib/node/chunk-KMS7RFL7.cjs.map +7 -0
  10. package/dist/lib/node/index.cjs +69 -3480
  11. package/dist/lib/node/index.cjs.map +4 -4
  12. package/dist/lib/node/meta.json +1 -1
  13. package/dist/lib/node/testing/index.cjs +114 -0
  14. package/dist/lib/node/testing/index.cjs.map +7 -0
  15. package/dist/lib/node-esm/chunk-ANVE7WX5.mjs +4357 -0
  16. package/dist/lib/node-esm/chunk-ANVE7WX5.mjs.map +7 -0
  17. package/dist/lib/node-esm/index.mjs +72 -3518
  18. package/dist/lib/node-esm/index.mjs.map +4 -4
  19. package/dist/lib/node-esm/meta.json +1 -1
  20. package/dist/lib/node-esm/testing/index.mjs +86 -0
  21. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  22. package/dist/types/src/components/Avatars/Avatar.d.ts +2 -2
  23. package/dist/types/src/components/Avatars/Avatar.d.ts.map +1 -1
  24. package/dist/types/src/components/Avatars/Avatar.stories.d.ts +2 -2
  25. package/dist/types/src/components/Avatars/Avatar.stories.d.ts.map +1 -1
  26. package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts +0 -1
  27. package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts.map +1 -1
  28. package/dist/types/src/components/Buttons/IconButton.d.ts +1 -2
  29. package/dist/types/src/components/Buttons/IconButton.d.ts.map +1 -1
  30. package/dist/types/src/components/Buttons/IconButton.stories.d.ts +7 -6
  31. package/dist/types/src/components/Buttons/IconButton.stories.d.ts.map +1 -1
  32. package/dist/types/src/components/Buttons/Toggle.stories.d.ts.map +1 -1
  33. package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts +1 -4
  34. package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts.map +1 -1
  35. package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts +2 -2
  36. package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts.map +1 -1
  37. package/dist/types/src/components/Dialogs/Dialog.d.ts +1 -5
  38. package/dist/types/src/components/Dialogs/Dialog.d.ts.map +1 -1
  39. package/dist/types/src/components/Dialogs/Dialog.stories.d.ts +2 -2
  40. package/dist/types/src/components/Dialogs/Dialog.stories.d.ts.map +1 -1
  41. package/dist/types/src/components/Input/Input.d.ts +1 -1
  42. package/dist/types/src/components/Input/Input.d.ts.map +1 -1
  43. package/dist/types/src/components/Input/Input.stories.d.ts +33 -159
  44. package/dist/types/src/components/Input/Input.stories.d.ts.map +1 -1
  45. package/dist/types/src/components/Lists/Tree.stories.d.ts.map +1 -1
  46. package/dist/types/src/components/Lists/Treegrid.stories.d.ts +1 -1
  47. package/dist/types/src/components/Lists/Treegrid.stories.d.ts.map +1 -1
  48. package/dist/types/src/components/Main/Main.d.ts.map +1 -1
  49. package/dist/types/src/components/Main/Main.stories.d.ts.map +1 -1
  50. package/dist/types/src/components/Message/Message.stories.d.ts +2 -2
  51. package/dist/types/src/components/Message/Message.stories.d.ts.map +1 -1
  52. package/dist/types/src/components/Popover/Popover.d.ts +13 -5
  53. package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
  54. package/dist/types/src/components/Popover/Popover.stories.d.ts +5 -1
  55. package/dist/types/src/components/Popover/Popover.stories.d.ts.map +1 -1
  56. package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -1
  57. package/dist/types/src/components/Toast/Toast.stories.d.ts +2 -2
  58. package/dist/types/src/components/Toast/Toast.stories.d.ts.map +1 -1
  59. package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
  60. package/dist/types/src/components/Tooltip/Tooltip.d.ts +0 -2
  61. package/dist/types/src/components/Tooltip/Tooltip.d.ts.map +1 -1
  62. package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts +2 -3
  63. package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
  64. package/dist/types/src/testing/decorators/index.d.ts +1 -1
  65. package/dist/types/src/testing/decorators/index.d.ts.map +1 -1
  66. package/dist/types/src/testing/decorators/{withVariants.d.ts → withSurfaceVariantsLayout.d.ts} +2 -3
  67. package/dist/types/src/testing/decorators/withSurfaceVariantsLayout.d.ts.map +1 -0
  68. package/package.json +24 -15
  69. package/src/components/Avatars/Avatar.stories.tsx +27 -27
  70. package/src/components/Avatars/Avatar.tsx +7 -8
  71. package/src/components/Avatars/AvatarGroup.stories.tsx +4 -5
  72. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +2 -2
  73. package/src/components/Buttons/Button.stories.tsx +2 -2
  74. package/src/components/Buttons/IconButton.stories.tsx +9 -10
  75. package/src/components/Buttons/IconButton.tsx +4 -8
  76. package/src/components/Buttons/Toggle.stories.tsx +2 -2
  77. package/src/components/Buttons/ToggleGroup.stories.tsx +3 -7
  78. package/src/components/Dialogs/AlertDialog.stories.tsx +4 -11
  79. package/src/components/Dialogs/Dialog.stories.tsx +3 -3
  80. package/src/components/Dialogs/Dialog.tsx +6 -8
  81. package/src/components/Input/Input.stories.tsx +69 -58
  82. package/src/components/Input/Input.tsx +1 -0
  83. package/src/components/Lists/Tree.stories.tsx +2 -2
  84. package/src/components/Lists/Treegrid.stories.tsx +12 -12
  85. package/src/components/Main/Main.stories.tsx +2 -2
  86. package/src/components/Main/Main.tsx +1 -0
  87. package/src/components/Menus/ContextMenu.stories.tsx +2 -2
  88. package/src/components/Menus/DropdownMenu.stories.tsx +2 -2
  89. package/src/components/Message/Message.stories.tsx +3 -3
  90. package/src/components/Popover/Popover.stories.tsx +2 -2
  91. package/src/components/Popover/Popover.tsx +5 -4
  92. package/src/components/ScrollArea/ScrollArea.stories.tsx +4 -4
  93. package/src/components/Select/Select.stories.tsx +2 -2
  94. package/src/components/Toast/Toast.stories.tsx +15 -10
  95. package/src/components/Toolbar/Toolbar.stories.tsx +2 -2
  96. package/src/components/Tooltip/Tooltip.stories.tsx +3 -3
  97. package/src/components/Tooltip/Tooltip.tsx +1 -16
  98. package/src/playground/Controls.stories.tsx +2 -2
  99. package/src/playground/Typography.stories.tsx +2 -2
  100. package/src/testing/decorators/index.ts +1 -1
  101. package/src/testing/decorators/withSurfaceVariantsLayout.tsx +53 -0
  102. package/dist/types/src/testing/decorators/withVariants.d.ts.map +0 -1
  103. package/src/testing/decorators/withVariants.tsx +0 -45
@@ -3,7 +3,7 @@ import React, { type PropsWithChildren } from 'react';
3
3
  import { type HuePalette } from '@dxos/react-ui-theme';
4
4
  import { type Size } from '@dxos/react-ui-types';
5
5
  import { type AvatarVariant, type AvatarStatus, type AvatarAnimation } from './Avatar';
6
- type StorybookAvatarProps = {
6
+ type StoryProps = {
7
7
  id?: string;
8
8
  imgSrc?: string;
9
9
  fallbackText?: string;
@@ -23,7 +23,7 @@ declare const _default: {
23
23
  Label: React.ForwardRefExoticComponent<Omit<import("./Avatar").AvatarLabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
24
24
  Description: React.ForwardRefExoticComponent<Omit<import("./Avatar").AvatarDescriptionProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
25
25
  };
26
- render: (props: PropsWithChildren<StorybookAvatarProps>) => React.JSX.Element;
26
+ render: (props: PropsWithChildren<StoryProps>) => React.JSX.Element;
27
27
  decorators: import("@storybook/react").Decorator[];
28
28
  parameters: {
29
29
  chromatic: {
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatars/Avatar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAU,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAG/F,KAAK,oBAAoB,GAAG;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,GAAG,CAAC,EAAE,UAAU,CAAC;CAClB,CAAC;;;;;;;;;oBAE8B,iBAAiB,CAAC,oBAAoB,CAAC;;;;;;;;AA8BvE,wBAME;AAaF,eAAO,MAAM,OAAO,yBAenB,CAAC;AAEF,eAAO,MAAM,KAAK,yBAIjB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAOlB,CAAC;AAEF,eAAO,MAAM,YAAY,yBAOxB,CAAC;AAEF,eAAO,MAAM,WAAW,yBAA+D,CAAC;AAExF,eAAO,MAAM,WAAW,yBASvB,CAAC;AAEF,eAAO,MAAM,KAAK,yBAAiE,CAAC;AAEpF,eAAO,MAAM,KAAK,yBAOjB,CAAC"}
1
+ {"version":3,"file":"Avatar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatars/Avatar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAU,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAG/F,KAAK,UAAU,GAAG;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,GAAG,CAAC,EAAE,UAAU,CAAC;CAClB,CAAC;;;;;;;;;oBAE2B,iBAAiB,CAAC,UAAU,CAAC;;;;;;;;AA8B1D,wBAME;AAaF,eAAO,MAAM,OAAO,yBAenB,CAAC;AAEF,eAAO,MAAM,KAAK,yBAIjB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAOlB,CAAC;AAEF,eAAO,MAAM,YAAY,yBAOxB,CAAC;AAEF,eAAO,MAAM,WAAW,yBAA4D,CAAC;AAErF,eAAO,MAAM,WAAW,yBASvB,CAAC;AAEF,eAAO,MAAM,KAAK,yBAA8D,CAAC;AAEjF,eAAO,MAAM,KAAK,yBAOjB,CAAC"}
@@ -2,7 +2,6 @@ import '@dxos-theme';
2
2
  import React from 'react';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: () => React.JSX.Element;
6
5
  render: () => React.JSX.Element;
7
6
  decorators: import("@storybook/react").Decorator[];
8
7
  parameters: {
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarGroup.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatars/AvatarGroup.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AACrB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;AAiC1B,wBAME;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
1
+ {"version":3,"file":"AvatarGroup.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatars/AvatarGroup.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AACrB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;AAiC1B,wBAKE;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
@@ -1,4 +1,4 @@
1
- import React, { type MutableRefObject } from 'react';
1
+ import React from 'react';
2
2
  import { type ButtonProps } from './Button';
3
3
  import { type ThemedClassName } from '../../util';
4
4
  import { type IconProps } from '../Icon';
@@ -11,7 +11,6 @@ type IconButtonProps = Omit<ButtonProps, 'children'> & Pick<IconProps, 'icon' |
11
11
  iconClassNames?: ThemedClassName<any>['classNames'];
12
12
  tooltipPortal?: boolean;
13
13
  tooltipSide?: TooltipSide;
14
- suppressNextTooltip?: MutableRefObject<boolean>;
15
14
  };
16
15
  declare const IconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
16
  export { IconButton };
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/IconButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAc,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,C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,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC;IACpD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AA4BJ,QAAA,MAAM,UAAU,wGAMf,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
@@ -1,12 +1,10 @@
1
1
  import '@dxos-theme';
2
2
  import React from 'react';
3
- type StorybookIconButtonProps = {
4
- iconOnly?: boolean;
5
- };
3
+ import { type IconButtonProps } from './IconButton';
6
4
  declare const _default: {
7
5
  title: string;
8
- component: React.ForwardRefExoticComponent<Omit<import("./IconButton").IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
- render: (props: StorybookIconButtonProps) => React.JSX.Element;
6
+ component: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ render: (props: IconButtonProps) => React.JSX.Element;
10
8
  decorators: import("@storybook/react").Decorator[];
11
9
  parameters: {
12
10
  chromatic: {
@@ -16,6 +14,9 @@ declare const _default: {
16
14
  };
17
15
  export default _default;
18
16
  export declare const Default: {
19
- args: {};
17
+ args: {
18
+ label: string;
19
+ icon: string;
20
+ };
20
21
  };
21
22
  //# 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;AAM1B,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;;;oBAEkC,wBAAwB;;;;;;;;AAa5D,wBAME;AAEF,eAAO,MAAM,OAAO;;CAEnB,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;AAE1B,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;;;;oBAInC,eAAe;;;;;;;;AAa5C,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;CAKnB,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;;;;oBAEC,oBAAoB;;;;;;;;AAQpD,wBAME;AAEF,eAAO,MAAM,OAAO;;CAEnB,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;;;;oBAEF,oBAAoB;;;;;;;;AAQjD,wBAME;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
@@ -1,9 +1,6 @@
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
- };
7
4
  declare const _default: {
8
5
  title: string;
9
6
  component: React.ForwardRefExoticComponent<(Omit<Omit<import("@radix-ui/react-toggle-group").ToggleGroupSingleProps, "className"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
@@ -25,7 +22,7 @@ declare const _default: {
25
22
  elevation?: import("@dxos/react-ui-types").Elevation;
26
23
  asChild?: boolean;
27
24
  }, "ref">) & React.RefAttributes<HTMLDivElement>>;
28
- render: (props: StorybookToggleGroupProps) => React.JSX.Element;
25
+ render: (props: ToggleGroupProps) => React.JSX.Element;
29
26
  decorators: import("@storybook/react").Decorator[];
30
27
  parameters: {
31
28
  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;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
+ {"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;;;;;;;;;;;;;;;;;;;;;;oBAIvD,gBAAgB;;;;;;;;AAa7C,wBAME;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import '@dxos-theme';
2
2
  import React from 'react';
3
- type StorybookAlertDialogProps = Partial<{
3
+ type StoryProps = 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, }: StorybookAlertDialogProps) => React.JSX.Element;
24
+ render: ({ title, openTrigger, description, body, cancelTrigger, actionTrigger }: StoryProps) => 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,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"}
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,UAAU,GAAG,OAAO,CAAC;IACxB,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;;;;;;;;;;;;;;sFAE4F,UAAU;;;;;;;;AA0BzG,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;CASnB,CAAC"}
@@ -11,11 +11,7 @@ type DialogDescriptionProps = ThemedClassName<DialogDescriptionPrimitiveProps> &
11
11
  srOnly?: boolean;
12
12
  };
13
13
  type DialogCloseProps = DialogClosePrimitiveProps;
14
- type OverlayLayoutContextValue = {
15
- descriptionId?: string;
16
- inOverlayLayout?: boolean;
17
- };
18
- type DialogOverlayProps = ThemedClassName<DialogOverlayPrimitiveProps & Pick<OverlayLayoutContextValue, 'descriptionId'> & {
14
+ type DialogOverlayProps = ThemedClassName<DialogOverlayPrimitiveProps & {
19
15
  blockAlign?: 'center' | 'start' | 'end';
20
16
  }>;
21
17
  type DialogContentProps = ThemedClassName<DialogContentPrimitiveProps> & {
@@ -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,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,KAAK,eAAe,GAAG,wBAAwB,CAAC;AAQhD,KAAK,kBAAkB,GAAG,2BAA2B,CAAC;AAItD,KAAK,iBAAiB,GAAG,0BAA0B,CAAC;AAIpD,KAAK,gBAAgB,GAAG,eAAe,CAAC,yBAAyB,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAe1F,KAAK,sBAAsB,GAAG,eAAe,CAAC,+BAA+B,CAAC,GAAG;IAAE,MAAM,CAAC,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,CAAC;AAItD,KAAK,iBAAiB,GAAG,0BAA0B,CAAC;AAIpD,KAAK,gBAAgB,GAAG,eAAe,CAAC,yBAAyB,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAe1F,KAAK,sBAAsB,GAAG,eAAe,CAAC,+BAA+B,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAgBtG,KAAK,gBAAgB,GAAG,yBAAyB,CAAC;AAYlD,KAAK,kBAAkB,GAAG,eAAe,CAAC,2BAA2B,GAAG;IAAE,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;CAAE,CAAC,CAAC;AAqBrH,KAAK,kBAAkB,GAAG,eAAe,CAAC,2BAA2B,CAAC,GAAG;IAAE,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AA6BvG,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 StorybookDialogProps = Partial<{
3
+ type StoryProps = 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 }: StorybookDialogProps) => React.JSX.Element;
23
+ render: ({ title, openTrigger, description, body, closeTrigger, blockAlign }: StoryProps) => 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,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
+ {"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,UAAU,GAAG,OAAO,CAAC;IACxB,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;;;;;;;;;;;;;kFAEwF,UAAU;;;;;;;;AAoBrG,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;CAenB,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, PinInputProps, TextInputProps, TextAreaProps, CheckboxProps, SwitchProps, LabelProps, DescriptionProps, ValidationProps, DescriptionAndValidationProps, };
53
+ export type { InputVariant, InputRootProps, InputSharedProps, 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,gBAAgB,IAAI,yBAAyB,EAElD,KAAK,UAAU,IAAI,mBAAmB,EAEtC,KAAK,eAAe,IAAI,wBAAwB,EACjD,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAGpG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,KAAK,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAE1C,KAAK,gBAAgB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC;AAEn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2
- import React from 'react';
2
+ import { type StoryObj, type Meta } from '@storybook/react';
3
3
  import { type MessageValence } from '@dxos/react-ui-types';
4
- type StoryInputProps = Partial<{
4
+ import { type CheckboxProps, type PinInputProps, type SwitchProps, type TextInputProps, type TextAreaProps } from './Input';
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;
5
19
  label: string;
6
- placeholder: string;
7
- disabled: boolean;
8
- description: string;
9
20
  labelVisuallyHidden: boolean;
21
+ description: string;
10
22
  descriptionVisuallyHidden: boolean;
11
- type: 'default' | 'pin' | 'textarea' | 'checkbox' | 'switch';
12
- validationMessage: string;
13
23
  validationValence: MessageValence;
24
+ validationMessage: string;
14
25
  }>;
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
- };
26
+ declare const meta: Meta<BaseProps>;
27
+ export default meta;
28
+ type Story = StoryObj<BaseProps & Variant>;
29
+ export declare const Default: Story;
30
+ export declare const DensityFine: Story;
31
+ export declare const Subdued: Story;
32
+ export declare const Disabled: Story;
33
+ export declare const LabelVisuallyHidden: Story;
34
+ export declare const InputWithDescription: Story;
35
+ export declare const InputWithErrorAndDescription: Story;
36
+ export declare const InputWithValidationAndDescription: Story;
37
+ export declare const TextArea: Story;
38
+ export declare const PinInput: Story;
39
+ export declare const Checkbox: Story;
166
40
  export declare const Switch: {
167
41
  args: {
42
+ kind: string;
168
43
  label: string;
169
- type: string;
170
44
  description: string;
171
45
  };
172
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Input.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/Input.stories.tsx"],"names":[],"m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AAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAOjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAOlC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,KAS1C,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,KAS/C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;CAMlB,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;;;;;;;uBAwC+B,kBAAkB;;;;;;;;AAInD,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;CAmBnB,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;;;;;;;uBAwC8B,kBAAkB;;;;;;;;AAIlD,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- export declare const Default: {};
3
2
  declare const _default: {
4
3
  title: string;
5
4
  component: React.ForwardRefExoticComponent<Omit<import("./Treegrid").TreegridRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -7,4 +6,5 @@ declare const _default: {
7
6
  decorators: import("@storybook/react").Decorator[];
8
7
  };
9
8
  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;AA2I1B,eAAO,MAAM,OAAO,IAAK,CAAC;;;;;;;AAE1B,wBAKE"}
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,wBAKE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -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,OAAO,KAAK,EAAE,EACZ,KAAK,qBAAqB,EAC1B,KAAK,QAAQ,EAEb,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAKnB,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC9B,MAAM,OAAO,CAAC;AAOf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,KAAK,KAAK,EAAqC,MAAM,kBAAkB,CAAC;AAQjF,KAAK,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAExD,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,sBAAsB,EAAE,YAAY,CAAC;IACrC,yBAAyB,EAAE,QAAQ,CAAC,cAAc,CAAC,YAAY,GAAG,SAAS,CAA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,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;AA6BF,KAAK,gBAAgB,GAAG,eAAe,CAAC,IAAI,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;AA2BvG,eAAO,MAAM,IAAI;;qRArNd,aAAa;;;;;;;CA2Nf,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;;;;;;;oBAYE,aAAa;;;;;;;;AAuBvC,wBAME;AAEF,eAAO,MAAM,OAAO;;;CAGnB,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;;;;;;;oBAYK,aAAa;;;;;;;;AAuB1C,wBAME;AAEF,eAAO,MAAM,OAAO;;;CAGnB,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 StoryMessageProps = {
4
+ type StoryProps = {
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 }: StoryMessageProps) => React.JSX.Element;
16
+ render: ({ valence, title, body }: StoryProps) => 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,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
+ {"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,UAAU,GAAG;IAChB,OAAO,EAAE,cAAc,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;;;;;;;;uCAE8C,UAAU;;;;;;;;AAS1D,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC"}
@@ -40,14 +40,14 @@ interface PopoverPortalProps {
40
40
  */
41
41
  forceMount?: true;
42
42
  }
43
- interface PopoverContentProps extends PopoverContentTypeProps {
43
+ type PopoverContentProps = ThemedClassName<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?: true;
49
- }
50
- interface PopoverContentTypeProps extends Omit<PopoverContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
48
+ forceMount?: boolean;
49
+ };
50
+ export interface PopoverContentTypeProps extends Omit<PopoverContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
51
51
  }
52
52
  type FocusScopeProps = ComponentPropsWithoutRef<typeof FocusScope>;
53
53
  type DismissableLayerProps = ComponentPropsWithoutRef<typeof DismissableLayer>;
@@ -89,7 +89,15 @@ export declare const Popover: {
89
89
  displayName: string;
90
90
  };
91
91
  Portal: React.FC<PopoverPortalProps>;
92
- Content: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
92
+ Content: React.ForwardRefExoticComponent<Omit<PopoverContentTypeProps, "className"> & {
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>>;
93
101
  Close: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
94
102
  Arrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
95
103
  Viewport: React.ForwardRefExoticComponent<Omit<PopoverViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -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;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AA0CD,KAAK,iBAAiB,GAAG,wBAAwB,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjF,UAAU,kBAAmB,SAAQ,iBAAiB;CAAG;AA0BzD,KAAK,qBAAqB,GAAG,UAAU,CAAC,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,CAAC,CAAC,CAAC,CAAC;AAE/G,eAAO,MAAM,OAAO;;;;;gBArYkB,WAAW,CAAC,0BAA0B,CAAC;;;;;;;QA8D3E;;;WAGG;qBACU,OAAO;;;;;CA6UrB,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,EACpB,kCAAkC,GACnC,CAAC"}
@@ -13,7 +13,11 @@ declare const _default: {
13
13
  displayName: string;
14
14
  };
15
15
  Portal: React.FC<import("./Popover").PopoverPortalProps>;
16
- Content: React.ForwardRefExoticComponent<import("./Popover").PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
16
+ Content: React.ForwardRefExoticComponent<Omit<import("./Popover").PopoverContentTypeProps, "className"> & {
17
+ classNames?: import("@dxos/react-ui-types").ClassNameValue;
18
+ } & {
19
+ forceMount?: boolean;
20
+ } & React.RefAttributes<HTMLDivElement>>;
17
21
  Close: React.ForwardRefExoticComponent<import("./Popover").PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
18
22
  Arrow: React.ForwardRefExoticComponent<import("./Popover").PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
19
23
  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;;;;;;;;;;;;;;;;;;;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
+ {"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;;;;;;;;;;;;;;;;;;;;;;;wCAUvC,iBAAiB,CAAC;QAAE,WAAW,EAAE,SAAS,CAAA;KAAE,CAAC;;;;;;;;AAc9F,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,cAAc;;CAqB1B,CAAC"}
@@ -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;;;;;;;;;;;;;;;;;;;;;;2BAUX,iBAAiB,CAAC,EAAE,CAAC;;;;;;;;AAmBhE,wBAME;AAEF,eAAO,MAAM,OAAO;;;;CAInB,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;;;;;;;;;;;;;;;;;;;;;;2BAUlB,iBAAiB,CAAC,EAAE,CAAC;;;;;;;;AAmBzD,wBAME;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
@@ -5,10 +5,10 @@ type ActionTriggerProps = {
5
5
  trigger: ReactNode;
6
6
  };
7
7
  type StorybookToastProps = Partial<{
8
- openTrigger: string;
9
8
  title: string;
10
9
  description: string;
11
10
  actionTriggers: ActionTriggerProps[];
11
+ openTrigger: string;
12
12
  closeTrigger: ReactNode;
13
13
  }>;
14
14
  declare const _default: {
@@ -32,7 +32,7 @@ declare const _default: {
32
32
  Action: React.FunctionComponent<import("@radix-ui/react-toast").ToastActionProps>;
33
33
  Close: React.FunctionComponent<import("@radix-ui/react-toast").ToastCloseProps>;
34
34
  };
35
- render: (props: StorybookToastProps) => React.JSX.Element;
35
+ render: ({ title, description, actionTriggers, openTrigger, closeTrigger }: StorybookToastProps) => React.JSX.Element;
36
36
  decorators: import("@storybook/react").Decorator[];
37
37
  parameters: {
38
38
  chromatic: {
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAMxD,KAAK,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,CAAA;CAAE,CAAC;AAElE,KAAK,mBAAmB,GAAG,OAAO,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,kBAAkB,EAAE,CAAC;IACrC,YAAY,EAAE,SAAS,CAAC;CACzB,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;oBAE4B,mBAAmB;;;;;;;;AAwBlD,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;CAWnB,CAAC"}
1
+ {"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAMxD,KAAK,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,CAAA;CAAE,CAAC;AAElE,KAAK,mBAAmB,GAAG,OAAO,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,kBAAkB,EAAE,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,SAAS,CAAC;CACzB,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;gFAEsF,mBAAmB;;;;;;;;AAwB5G,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;CAgBnB,CAAC"}