@dxos/react-ui 0.6.13 → 0.6.14-main.2b6a0f3

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 (114) hide show
  1. package/dist/lib/browser/index.mjs +34 -29
  2. package/dist/lib/browser/index.mjs.map +3 -3
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node/index.cjs +2395 -0
  5. package/dist/lib/node/index.cjs.map +7 -0
  6. package/dist/lib/node/meta.json +1 -0
  7. package/dist/lib/node-esm/index.mjs +2396 -0
  8. package/dist/lib/node-esm/index.mjs.map +7 -0
  9. package/dist/lib/node-esm/meta.json +1 -0
  10. package/dist/types/src/components/Avatars/Avatar.stories.d.ts +15 -1
  11. package/dist/types/src/components/Avatars/Avatar.stories.d.ts.map +1 -1
  12. package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts +6 -1
  13. package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts.map +1 -1
  14. package/dist/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts +9 -1
  15. package/dist/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -1
  16. package/dist/types/src/components/Buttons/Button.stories.d.ts +12 -17
  17. package/dist/types/src/components/Buttons/Button.stories.d.ts.map +1 -1
  18. package/dist/types/src/components/Buttons/Toggle.stories.d.ts +2 -1
  19. package/dist/types/src/components/Buttons/Toggle.stories.d.ts.map +1 -1
  20. package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts +20 -1
  21. package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts.map +1 -1
  22. package/dist/types/src/components/DensityProvider/DensityProvider.d.ts.map +1 -1
  23. package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts +12 -1
  24. package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts.map +1 -1
  25. package/dist/types/src/components/Dialogs/Dialog.stories.d.ts +11 -1
  26. package/dist/types/src/components/Dialogs/Dialog.stories.d.ts.map +1 -1
  27. package/dist/types/src/components/Input/Input.d.ts.map +1 -1
  28. package/dist/types/src/components/Input/Input.stories.d.ts +16 -1
  29. package/dist/types/src/components/Input/Input.stories.d.ts.map +1 -1
  30. package/dist/types/src/components/Lists/List.stories.d.ts +2 -3
  31. package/dist/types/src/components/Lists/List.stories.d.ts.map +1 -1
  32. package/dist/types/src/components/Lists/Tree.stories.d.ts +5 -1
  33. package/dist/types/src/components/Lists/Tree.stories.d.ts.map +1 -1
  34. package/dist/types/src/components/Lists/Treegrid.stories.d.ts +3 -2
  35. package/dist/types/src/components/Lists/Treegrid.stories.d.ts.map +1 -1
  36. package/dist/types/src/components/Main/Main.stories.d.ts +5 -1
  37. package/dist/types/src/components/Main/Main.stories.d.ts.map +1 -1
  38. package/dist/types/src/components/Menus/ContextMenu.stories.d.ts +29 -1
  39. package/dist/types/src/components/Menus/ContextMenu.stories.d.ts.map +1 -1
  40. package/dist/types/src/components/Menus/DropdownMenu.stories.d.ts +29 -1
  41. package/dist/types/src/components/Menus/DropdownMenu.stories.d.ts.map +1 -1
  42. package/dist/types/src/components/Message/Message.stories.d.ts +6 -1
  43. package/dist/types/src/components/Message/Message.stories.d.ts.map +1 -1
  44. package/dist/types/src/components/Popover/Popover.stories.d.ts +15 -1
  45. package/dist/types/src/components/Popover/Popover.stories.d.ts.map +1 -1
  46. package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts +20 -1
  47. package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -1
  48. package/dist/types/src/components/Select/Select.d.ts.map +1 -1
  49. package/dist/types/src/components/Select/Select.stories.d.ts +10 -11
  50. package/dist/types/src/components/Select/Select.stories.d.ts.map +1 -1
  51. package/dist/types/src/components/Status/Status.stories.d.ts +0 -3
  52. package/dist/types/src/components/Status/Status.stories.d.ts.map +1 -1
  53. package/dist/types/src/components/ThemeProvider/ThemeProvider.d.ts +4 -5
  54. package/dist/types/src/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  55. package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts +4 -4
  56. package/dist/types/src/components/Toast/Toast.d.ts.map +1 -1
  57. package/dist/types/src/components/Toast/Toast.stories.d.ts +20 -1
  58. package/dist/types/src/components/Toast/Toast.stories.d.ts.map +1 -1
  59. package/dist/types/src/components/Toolbar/Toolbar.d.ts +4 -2
  60. package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
  61. package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +30 -1
  62. package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
  63. package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts +13 -1
  64. package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
  65. package/dist/types/src/hooks/useThemeContext.d.ts.map +1 -1
  66. package/dist/types/src/playground/Controls.stories.d.ts +2 -6
  67. package/dist/types/src/playground/Controls.stories.d.ts.map +1 -1
  68. package/dist/types/src/playground/Surfaces.stories.d.ts +6 -2
  69. package/dist/types/src/playground/Surfaces.stories.d.ts.map +1 -1
  70. package/dist/types/src/playground/Typography.stories.d.ts +1 -1
  71. package/dist/types/src/testing/decorators/index.d.ts +1 -0
  72. package/dist/types/src/testing/decorators/index.d.ts.map +1 -1
  73. package/dist/types/src/testing/decorators/withVariants.d.ts +13 -0
  74. package/dist/types/src/testing/decorators/withVariants.d.ts.map +1 -0
  75. package/package.json +20 -14
  76. package/src/components/Avatars/Avatar.stories.tsx +3 -2
  77. package/src/components/Avatars/AvatarGroup.stories.tsx +3 -2
  78. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +3 -2
  79. package/src/components/Buttons/Button.stories.tsx +34 -63
  80. package/src/components/Buttons/Toggle.stories.tsx +3 -2
  81. package/src/components/Buttons/ToggleGroup.stories.tsx +3 -2
  82. package/src/components/DensityProvider/DensityProvider.tsx +1 -1
  83. package/src/components/Dialogs/AlertDialog.stories.tsx +3 -2
  84. package/src/components/Dialogs/Dialog.stories.tsx +3 -2
  85. package/src/components/Input/Input.stories.tsx +4 -3
  86. package/src/components/Link/Link.stories.tsx +1 -1
  87. package/src/components/Lists/List.stories.tsx +4 -4
  88. package/src/components/Lists/Tree.stories.tsx +3 -2
  89. package/src/components/Lists/Treegrid.stories.tsx +7 -5
  90. package/src/components/Main/Main.stories.tsx +3 -2
  91. package/src/components/Menus/ContextMenu.stories.tsx +3 -2
  92. package/src/components/Menus/DropdownMenu.stories.tsx +3 -2
  93. package/src/components/Message/Message.stories.tsx +3 -2
  94. package/src/components/Popover/Popover.stories.tsx +3 -2
  95. package/src/components/ScrollArea/ScrollArea.stories.tsx +3 -2
  96. package/src/components/Select/Select.stories.tsx +14 -31
  97. package/src/components/Select/Select.tsx +9 -10
  98. package/src/components/Status/Status.stories.tsx +1 -2
  99. package/src/components/Tag/Tag.stories.tsx +1 -1
  100. package/src/components/ThemeProvider/ThemeProvider.tsx +17 -18
  101. package/src/components/Toast/Toast.stories.tsx +3 -2
  102. package/src/components/Toast/Toast.tsx +1 -4
  103. package/src/components/Toolbar/Toolbar.stories.tsx +3 -2
  104. package/src/components/Toolbar/Toolbar.tsx +21 -1
  105. package/src/components/Tooltip/Tooltip.stories.tsx +3 -2
  106. package/src/hooks/useThemeContext.ts +3 -1
  107. package/src/playground/Controls.stories.tsx +7 -10
  108. package/src/playground/Surfaces.stories.tsx +4 -3
  109. package/src/playground/Typography.stories.tsx +2 -2
  110. package/src/testing/decorators/index.ts +1 -0
  111. package/src/testing/decorators/withVariants.tsx +45 -0
  112. package/dist/types/src/playground/helpers.d.ts +0 -6
  113. package/dist/types/src/playground/helpers.d.ts.map +0 -1
  114. package/src/playground/helpers.tsx +0 -32
@@ -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;;;;;;;;;;;AAuF1B,wBAKE;AAEF,eAAO,MAAM,OAAO;;;;;;;CAKnB,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"}
@@ -2,7 +2,35 @@ import '@dxos-theme';
2
2
  import React from 'react';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: () => React.JSX.Element;
5
+ component: {
6
+ Root: React.FC<import("@radix-ui/react-dropdown-menu").DropdownMenuProps>;
7
+ Trigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dropdown-menu").DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
8
+ Portal: React.FC<import("@radix-ui/react-dropdown-menu").DropdownMenuPortalProps>;
9
+ Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuContentProps, "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("./DropdownMenu").DropdownMenuViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ Arrow: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuArrowProps, "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-dropdown-menu").DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
19
+ Item: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuItemProps, "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-dropdown-menu").DropdownMenuCheckboxItemProps, "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-dropdown-menu").DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
26
+ Separator: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuSeparatorProps, "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-dropdown-menu").DropdownMenuLabelProps, "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":"DropdownMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menus/DropdownMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;AAuF1B,wBAKE;AAEF,eAAO,MAAM,OAAO;;;;;;;CAKnB,CAAC"}
1
+ {"version":3,"file":"DropdownMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menus/DropdownMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuF1B,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;CAKnB,CAAC"}
@@ -8,7 +8,12 @@ type StoryMessageProps = {
8
8
  };
9
9
  declare const _default: {
10
10
  title: string;
11
- component: ({ valence, title, body }: StoryMessageProps) => React.JSX.Element;
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;;;0CAE8C,iBAAiB;;;;;;;;AASjE,wBAKE;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,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"}
@@ -2,7 +2,21 @@ import '@dxos-theme';
2
2
  import React, { type PropsWithChildren, type ReactNode } from 'react';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: ({ openTrigger, children }: PropsWithChildren<{
5
+ component: {
6
+ Root: React.FunctionComponent<import("@radix-ui/react-popover").PopoverProps>;
7
+ Portal: React.FC<import("@radix-ui/react-popover").PopoverPortalProps>;
8
+ Trigger: React.ForwardRefExoticComponent<import("@radix-ui/react-popover").PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
9
+ Anchor: React.ForwardRefExoticComponent<import("@radix-ui/react-popover").PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
10
+ Arrow: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-popover").PopoverArrowProps, "className"> & {
11
+ classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
12
+ } & React.RefAttributes<SVGSVGElement>>;
13
+ Close: React.ForwardRefExoticComponent<import("@radix-ui/react-popover").PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
14
+ Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-popover").PopoverContentProps, "className"> & {
15
+ classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
16
+ } & React.RefAttributes<HTMLDivElement>>;
17
+ Viewport: React.ForwardRefExoticComponent<Omit<import("./Popover").PopoverViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
+ };
19
+ render: ({ openTrigger, children }: PropsWithChildren<{
6
20
  openTrigger: ReactNode;
7
21
  }>) => React.JSX.Element;
8
22
  decorators: import("@storybook/react/*").Decorator[];
@@ -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,EAAE,MAAM,OAAO,CAAC;;;2CAUjB,iBAAiB,CAAC;QAAE,WAAW,EAAE,SAAS,CAAA;KAAE,CAAC;;;;;;;;AAclG,wBAKE;AAEF,eAAO,MAAM,OAAO;;;;;CAKnB,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,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;wCAUjB,iBAAiB,CAAC;QAAE,WAAW,EAAE,SAAS,CAAA;KAAE,CAAC;;;;;;;;AAclG,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;CAKnB,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: ({ children }: PropsWithChildren<{}>) => React.JSX.Element;
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;;;8BAUX,iBAAiB,CAAC,EAAE,CAAC;;;;;;;;AAmBhE,wBAKE;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;;;;;;;;;;;;;;;;;;;;;;2BAUX,iBAAiB,CAAC,EAAE,CAAC;;;;;;;;AAmBhE,wBAME;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
@@ -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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B,GAAG,eAAe,CAAC,eAAe,CAAC,2BAA2B,CAAC,CAAC;AAiBhG,KAAK,mBAAmB,GAAG,eAAe,CAAC,mBAAmB,CAAC;AAI/D,KAAK,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;AAOxE,KAAK,mBAAmB,GAAG,eAAe,CAAC,mBAAmB,CAAC;AAI/D,KAAK,wBAAwB,GAAG,eAAe,CAAC,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAiB1F,KAAK,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
- component: ({ ...props }: {
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,KAAoD,MAAM,OAAO,CAAC;;;;;;;;;;;;;AAsDzE,wBAKE;AAEF,eAAO,MAAM,OAAO;;;;;;;CAInB,CAAC"}
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: {
@@ -1 +1 @@
1
- {"version":3,"file":"Status.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Status/Status.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;AAK1B,wBAME;AAEF,eAAO,MAAM,MAAM,UAAW,GAAG,sBAShC,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,GAAG,sBAMvC,CAAC"}
1
+ {"version":3,"file":"Status.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Status/Status.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;AAK1B,wBAKE;AAEF,eAAO,MAAM,MAAM,UAAW,GAAG,sBAShC,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,GAAG,sBAMvC,CAAC"}
@@ -2,15 +2,14 @@ import React, { type PropsWithChildren } from 'react';
2
2
  import { type Density, type Elevation, type ThemeFunction } from '@dxos/react-ui-types';
3
3
  import { type TranslationsProviderProps } from './TranslationsProvider';
4
4
  export type ThemeMode = 'light' | 'dark';
5
- export interface ThemeContextValue {
5
+ export type ThemeContextValue = {
6
6
  tx: ThemeFunction<any>;
7
7
  themeMode: ThemeMode;
8
8
  hasIosKeyboard: boolean;
9
- }
9
+ };
10
10
  export type ThemeProviderProps = Omit<TranslationsProviderProps, 'children'> & Partial<ThemeContextValue> & PropsWithChildren<{
11
- rootElevation?: Elevation;
12
11
  rootDensity?: Density;
12
+ rootElevation?: Elevation;
13
13
  }>;
14
- export declare const ThemeContext: React.Context<ThemeContextValue>;
15
- export declare const ThemeProvider: ({ children, fallback, resourceExtensions, appNs, tx, themeMode, rootElevation, rootDensity, }: ThemeProviderProps) => React.JSX.Element;
14
+ export declare const ThemeProvider: ({ children, fallback, resourceExtensions, appNs, tx, themeMode, rootDensity, rootElevation, }: ThemeProviderProps) => React.JSX.Element;
16
15
  //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ThemeProvider/ThemeProvider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAExF,OAAO,EAAwB,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAK9F,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,yBAAyB,EAAE,UAAU,CAAC,GAC1E,OAAO,CAAC,iBAAiB,CAAC,GAC1B,iBAAiB,CAAC;IAChB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC,CAAC;AAEL,eAAO,MAAM,YAAY,kCAIvB,CAAC;AAUH,eAAO,MAAM,aAAa,kGASvB,kBAAkB,sBAwBpB,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ThemeProvider/ThemeProvider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAExF,OAAO,EAAwB,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAK9F,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAOF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,yBAAyB,EAAE,UAAU,CAAC,GAC1E,OAAO,CAAC,iBAAiB,CAAC,GAC1B,iBAAiB,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAC,CAAC;AAEL,eAAO,MAAM,aAAa,kGASvB,kBAAkB,sBAwBpB,CAAC"}
@@ -66,9 +66,9 @@ export declare const useTranslation: (ns?: string | string[] | readonly string[]
66
66
  findIndex(predicate: (value: boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>, index: number, obj: (boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>)[]) => unknown, thisArg?: any): number;
67
67
  fill(value: boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>, start?: number, end?: number): import("react-i18next").UseTranslationResponse<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>;
68
68
  copyWithin(target: number, start: number, end?: number): import("react-i18next").UseTranslationResponse<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>;
69
- entries(): IterableIterator<[number, boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>]>;
70
- keys(): IterableIterator<number>;
71
- values(): IterableIterator<boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>>;
69
+ entries(): ArrayIterator<[number, boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>]>;
70
+ keys(): ArrayIterator<number>;
71
+ values(): ArrayIterator<boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>>;
72
72
  includes(searchElement: boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>, fromIndex?: number): boolean;
73
73
  flatMap<U, This = undefined>(callback: (this: This, value: boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>, index: number, array: (boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>)[]) => U | readonly U[], thisArg?: This | undefined): U[];
74
74
  flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
@@ -81,7 +81,7 @@ export declare const useTranslation: (ns?: string | string[] | readonly string[]
81
81
  toSpliced(start: number, deleteCount: number, ...items: (boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>)[]): (boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>)[];
82
82
  toSpliced(start: number, deleteCount?: number): (boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>)[];
83
83
  with(index: number, value: boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>): (boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>)[];
84
- [Symbol.iterator](): IterableIterator<boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>>;
84
+ [Symbol.iterator](): ArrayIterator<boolean | import("i18next").i18n | import("react-i18next").TFunction<import("react-i18next").Namespace<string>, import("react-i18next").KeyPrefix<import("react-i18next").Namespace<string>>>>;
85
85
  [Symbol.unscopables]: {
86
86
  [x: number]: boolean | undefined;
87
87
  length?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAEL,KAAK,kBAAkB,IAAI,2BAA2B,EAEtD,KAAK,kBAAkB,IAAI,2BAA2B,EAEtD,KAAK,UAAU,IAAI,uBAAuB,EAE1C,KAAK,eAAe,IAAI,wBAAwB,EAEhD,KAAK,qBAAqB,IAAI,8BAA8B,EAE5D,KAAK,gBAAgB,IAAI,yBAAyB,EAElD,KAAK,eAAe,IAAI,wBAAwB,EACjD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAsC,MAAM,OAAO,CAAC;AAG9F,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,KAAK,kBAAkB,GAAG,2BAA2B,CAAC;AAItD,KAAK,kBAAkB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AASvE,KAAK,cAAc,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAa/D,KAAK,cAAc,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,CA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CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAQnF,KAAK,eAAe,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAUjE,KAAK,qBAAqB,GAAG,eAAe,CAAC,8BAA8B,CAAC,CAAC;AAY7E,KAAK,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAUtF,KAAK,gBAAgB,GAAG,yBAAyB,CAAC;AAIlD,KAAK,eAAe,GAAG,wBAAwB,CAAC;AAIhD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;CAUjB,CAAC;AAEF,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,GAChB,CAAC"}
@@ -13,7 +13,26 @@ type StorybookToastProps = Partial<{
13
13
  }>;
14
14
  declare const _default: {
15
15
  title: string;
16
- component: (props: StorybookToastProps) => React.JSX.Element;
16
+ component: {
17
+ Provider: React.FunctionComponent<import("@radix-ui/react-toast").ToastProviderProps>;
18
+ Viewport: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toast").ToastViewportProps, "className"> & {
19
+ classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
20
+ } & React.RefAttributes<HTMLOListElement>>;
21
+ Root: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toast").ToastProps, "className"> & {
22
+ classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
23
+ } & React.RefAttributes<HTMLLIElement>>;
24
+ Body: React.ForwardRefExoticComponent<Omit<import("./Toast").ToastBodyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
+ Title: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toast").ToastTitleProps, "className"> & {
26
+ classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
27
+ } & React.RefAttributes<HTMLHeadingElement>>;
28
+ Description: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toast").ToastDescriptionProps, "className"> & {
29
+ classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
30
+ } & React.RefAttributes<HTMLParagraphElement>>;
31
+ Actions: React.ForwardRefExoticComponent<Omit<import("./Toast").ToastActionsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
32
+ Action: React.FunctionComponent<import("@radix-ui/react-toast").ToastActionProps>;
33
+ Close: React.FunctionComponent<import("@radix-ui/react-toast").ToastCloseProps>;
34
+ };
35
+ render: (props: StorybookToastProps) => React.JSX.Element;
17
36
  decorators: import("@storybook/react/*").Decorator[];
18
37
  parameters: {
19
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;;;uBAE4B,mBAAmB;;;;;;;;AAwBlD,wBAKE;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,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,11 +1,12 @@
1
1
  import * as ToolbarPrimitive from '@radix-ui/react-toolbar';
2
2
  import React from 'react';
3
3
  import { type ThemedClassName } from '../../util';
4
- import { type ButtonGroupProps, type ButtonProps, type ToggleGroupItemProps } from '../Buttons';
4
+ import { type ButtonGroupProps, type ButtonProps, type ToggleGroupItemProps, type ToggleProps } from '../Buttons';
5
5
  import { type LinkProps } from '../Link';
6
6
  import { type SeparatorProps } from '../Separator';
7
7
  type ToolbarRootProps = ThemedClassName<ToolbarPrimitive.ToolbarProps>;
8
8
  type ToolbarButtonProps = ButtonProps;
9
+ type ToolbarToggleProps = ToggleProps;
9
10
  type ToolbarLinkProps = LinkProps;
10
11
  type ToolbarToggleGroupProps = (Omit<ToolbarPrimitive.ToolbarToggleGroupSingleProps, 'className'> | Omit<ToolbarPrimitive.ToolbarToggleGroupMultipleProps, 'className'>) & ButtonGroupProps;
11
12
  type ToolbarToggleGroupItemProps = ToggleGroupItemProps;
@@ -16,6 +17,7 @@ export declare const Toolbar: {
16
17
  } & React.RefAttributes<HTMLDivElement>>;
17
18
  Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
19
  Link: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
20
+ Toggle: React.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
21
  ToggleGroup: React.ForwardRefExoticComponent<(Omit<Omit<ToolbarPrimitive.ToolbarToggleGroupSingleProps, "className"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
20
22
  ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
21
23
  } & {
@@ -38,5 +40,5 @@ export declare const Toolbar: {
38
40
  ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupItemProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
39
41
  Separator: (props: SeparatorProps) => React.JSX.Element;
40
42
  };
41
- export type { ToolbarRootProps, ToolbarButtonProps, ToolbarLinkProps, ToolbarToggleGroupProps, ToolbarToggleGroupItemProps, ToolbarSeparatorProps, };
43
+ export type { ToolbarRootProps, ToolbarButtonProps, ToolbarLinkProps, ToolbarToggleProps, ToolbarToggleGroupProps, ToolbarToggleGroupItemProps, ToolbarSeparatorProps, };
42
44
  //# sourceMappingURL=Toolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAuB,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAA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C,CAAC;AAWvE,KAAK,kBAAkB,GAAG,WAAW,CAAC;AAUtC,KAAK,kBAAkB,GAAG,WAAW,CAAC;AAUtC,KAAK,gBAAgB,GAAG,SAAS,CAAC;AAUlC,KAAK,uBAAuB,GAAG,CAC3B,IAAI,CAAC,gBAAgB,CAAC,6BAA6B,EAAE,WAAW,CAAC,GACjE,IAAI,CAAC,gBAAgB,CAAC,+BAA+B,EAAE,WAAW,CAAC,CACtE,GACC,gBAAgB,CAAC;AAYnB,KAAK,2BAA2B,GAAG,oBAAoB,CAAC;AAYxD,KAAK,qBAAqB,GAAG,cAAc,CAAC;AAU5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;uBARa,cAAc;CAgB9C,CAAC;AAEF,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,GACtB,CAAC"}
@@ -3,7 +3,36 @@ import React from 'react';
3
3
  type StorybookToolbarProps = {};
4
4
  declare const _default: {
5
5
  title: string;
6
- component: (props: StorybookToolbarProps) => React.JSX.Element;
6
+ component: {
7
+ Root: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toolbar").ToolbarProps, "className"> & {
8
+ classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
9
+ } & React.RefAttributes<HTMLDivElement>>;
10
+ Button: React.ForwardRefExoticComponent<Omit<import("../Buttons").ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
+ Link: React.ForwardRefExoticComponent<Omit<import("..").LinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
12
+ Toggle: React.ForwardRefExoticComponent<Omit<import("../Buttons").ToggleProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
13
+ ToggleGroup: React.ForwardRefExoticComponent<(Omit<Omit<import("@radix-ui/react-toolbar").ToolbarToggleGroupSingleProps, "className"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
+ ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
15
+ } & {
16
+ asChild?: boolean;
17
+ }, "className"> & {
18
+ classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
19
+ } & {
20
+ elevation?: import("packages/ui/react-ui-types/dist/types/src").Elevation;
21
+ asChild?: boolean;
22
+ }, "ref"> | Omit<Omit<import("@radix-ui/react-toolbar").ToolbarToggleGroupMultipleProps, "className"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
23
+ ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
24
+ } & {
25
+ asChild?: boolean;
26
+ }, "className"> & {
27
+ classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
28
+ } & {
29
+ elevation?: import("packages/ui/react-ui-types/dist/types/src").Elevation;
30
+ asChild?: boolean;
31
+ }, "ref">) & React.RefAttributes<HTMLDivElement>>;
32
+ ToggleGroupItem: React.ForwardRefExoticComponent<Omit<import("../Buttons").ToggleGroupItemProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
33
+ Separator: (props: import("..").SeparatorProps) => React.JSX.Element;
34
+ };
35
+ render: (props: StorybookToolbarProps) => React.JSX.Element;
7
36
  decorators: import("@storybook/react/*").Decorator[];
8
37
  parameters: {
9
38
  chromatic: {
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,KAAK,qBAAqB,GAAG,EAAE,CAAC;;;uBAEC,qBAAqB;;;;;;;;AAuDtD,wBAKE;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
1
+ {"version":3,"file":"Toolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,KAAK,qBAAqB,GAAG,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEC,qBAAqB;;;;;;;;AAuDtD,wBAME;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
@@ -5,7 +5,19 @@ type StoryTooltipProps = {
5
5
  };
6
6
  declare const _default: {
7
7
  title: string;
8
- component: ({ content }: StoryTooltipProps) => React.JSX.Element;
8
+ component: {
9
+ Provider: React.FunctionComponent<import("@radix-ui/react-tooltip").TooltipProviderProps>;
10
+ Root: React.FunctionComponent<import("@radix-ui/react-tooltip").TooltipProps>;
11
+ Portal: React.FC<import("@radix-ui/react-tooltip").TooltipPortalProps>;
12
+ Trigger: React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
13
+ Arrow: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tooltip").TooltipArrowProps, "className"> & {
14
+ classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
15
+ } & React.RefAttributes<SVGSVGElement>>;
16
+ Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tooltip").TooltipContentProps, "className"> & {
17
+ classNames?: import("packages/ui/react-ui-types/dist/types/src").ClassNameValue;
18
+ } & React.RefAttributes<HTMLDivElement>>;
19
+ };
20
+ render: ({ content }: StoryTooltipProps) => React.JSX.Element;
9
21
  decorators: import("@storybook/react/*").Decorator[];
10
22
  parameters: {
11
23
  chromatic: {
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;;;6BAEiC,iBAAiB;;;;;;;;AAcpD,wBAKE;AAEF,eAAO,MAAM,OAAO;;;;;;;;;CAOnB,CAAC"}
1
+ {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;;;;;;;;;;;;;;;0BAEiC,iBAAiB;;;;;;;;AAcpD,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;CAOnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useThemeContext.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useThemeContext.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe,iDAAiC,CAAC"}
1
+ {"version":3,"file":"useThemeContext.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useThemeContext.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,iDAA6E,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import '@dxos-theme';
2
2
  import React from 'react';
3
+ export declare const Default: {};
3
4
  declare const _default: {
4
5
  title: string;
5
- component: () => React.JSX.Element;
6
+ render: () => React.JSX.Element;
6
7
  decorators: import("@storybook/react/*").Decorator[];
7
8
  parameters: {
8
9
  chromatic: {
@@ -11,9 +12,4 @@ declare const _default: {
11
12
  };
12
13
  };
13
14
  export default _default;
14
- export declare const Default: {
15
- render: ({ ...props }: {
16
- [x: string]: any;
17
- }) => React.JSX.Element;
18
- };
19
15
  //# sourceMappingURL=Controls.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Controls.stories.d.ts","sourceRoot":"","sources":["../../../../src/playground/Controls.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAmB,MAAM,OAAO,CAAC;;;;;;;;;;;AA6ExC,wBAKE;AAEF,eAAO,MAAM,OAAO;;;;CAEnB,CAAC"}
1
+ {"version":3,"file":"Controls.stories.d.ts","sourceRoot":"","sources":["../../../../src/playground/Controls.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAmB,MAAM,OAAO,CAAC;AA4ExC,eAAO,MAAM,OAAO,IAAK,CAAC;;;;;;;;;;;AAE1B,wBAKE"}
@@ -1,8 +1,12 @@
1
1
  import '@dxos-theme';
2
- import React from 'react';
2
+ import React, { type PropsWithChildren } from 'react';
3
+ type SurfaceLevel = 'base' | 'group' | 'chrome' | 'fixed' | 'input' | 'accent';
3
4
  declare const _default: {
4
5
  title: string;
5
- component: () => React.JSX.Element;
6
+ component: ({ children, level }: PropsWithChildren & {
7
+ level: SurfaceLevel;
8
+ }) => React.JSX.Element;
9
+ render: () => React.JSX.Element;
6
10
  decorators: import("@storybook/react/*").Decorator[];
7
11
  parameters: {
8
12
  chromatic: {
@@ -1 +1 @@
1
- {"version":3,"file":"Surfaces.stories.d.ts","sourceRoot":"","sources":["../../../../src/playground/Surfaces.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAiC,MAAM,OAAO,CAAC;;;;;;;;;;;AAwDtD,wBAKE;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
1
+ {"version":3,"file":"Surfaces.stories.d.ts","sourceRoot":"","sources":["../../../../src/playground/Surfaces.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAgBtD,KAAK,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;;;qCAEzC,iBAAiB,GAAG;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE;;;;;;;;;AAsCjF,wBAME;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
@@ -2,7 +2,7 @@ import '@dxos-theme';
2
2
  import React from 'react';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: () => React.JSX.Element;
5
+ render: () => React.JSX.Element;
6
6
  decorators: import("@storybook/react/*").Decorator[];
7
7
  parameters: {
8
8
  chromatic: {
@@ -1,2 +1,3 @@
1
1
  export * from './withTheme';
2
+ export * from './withVariants';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/testing/decorators/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/testing/decorators/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import '@dxos-theme';
2
+ import { type Decorator } from '@storybook/react';
3
+ import { type Density, type Elevation } from '@dxos/react-ui-types';
4
+ type Config = {
5
+ elevations?: {
6
+ elevation: Elevation;
7
+ surface?: string;
8
+ }[];
9
+ densities?: Density[];
10
+ };
11
+ export declare const withVariants: ({ elevations, densities, }?: Config) => Decorator;
12
+ export {};
13
+ //# sourceMappingURL=withVariants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withVariants.d.ts","sourceRoot":"","sources":["../../../../../src/testing/decorators/withVariants.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIpE,KAAK,MAAM,GAAG;IACZ,UAAU,CAAC,EAAE;QAAE,SAAS,EAAE,SAAS,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1D,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,YAAY,gCAOtB,MAAM,KAAQ,SAkBhB,CAAC"}
package/package.json CHANGED
@@ -1,14 +1,19 @@
1
1
  {
2
2
  "name": "@dxos/react-ui",
3
- "version": "0.6.13",
3
+ "version": "0.6.14-main.2b6a0f3",
4
4
  "description": "Low-level React components for DXOS, applying a theme to a core group of primitives",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
7
  "license": "MIT",
8
8
  "author": "DXOS.org",
9
+ "sideEffects": false,
9
10
  "exports": {
10
11
  ".": {
11
12
  "browser": "./dist/lib/browser/index.mjs",
13
+ "node": {
14
+ "require": "./dist/lib/node/index.cjs",
15
+ "default": "./dist/lib/node-esm/index.mjs"
16
+ },
12
17
  "types": "./dist/types/src/index.d.ts"
13
18
  }
14
19
  },
@@ -49,12 +54,13 @@
49
54
  "i18next": "^21.10.0",
50
55
  "keyborg": "^2.5.0",
51
56
  "react-i18next": "^11.18.6",
52
- "@dxos/react-hooks": "0.6.13",
53
- "@dxos/log": "0.6.13",
54
- "@dxos/react-ui-types": "0.6.13",
55
- "@dxos/react-list": "0.6.13",
56
- "@dxos/util": "0.6.13",
57
- "@dxos/react-input": "0.6.13"
57
+ "@dxos/debug": "0.6.14-main.2b6a0f3",
58
+ "@dxos/log": "0.6.14-main.2b6a0f3",
59
+ "@dxos/react-hooks": "0.6.14-main.2b6a0f3",
60
+ "@dxos/react-input": "0.6.14-main.2b6a0f3",
61
+ "@dxos/react-ui-types": "0.6.14-main.2b6a0f3",
62
+ "@dxos/util": "0.6.14-main.2b6a0f3",
63
+ "@dxos/react-list": "0.6.14-main.2b6a0f3"
58
64
  },
59
65
  "devDependencies": {
60
66
  "@dnd-kit/core": "^6.0.5",
@@ -65,16 +71,16 @@
65
71
  "@types/react-dom": "~18.2.0",
66
72
  "react": "~18.2.0",
67
73
  "react-dom": "~18.2.0",
68
- "vite": "^5.3.4",
69
- "@dxos/react-ui-theme": "0.6.13",
70
- "@dxos/random": "0.6.13",
71
- "@dxos/util": "0.6.13"
74
+ "vite": "5.4.7",
75
+ "@dxos/random": "0.6.14-main.2b6a0f3",
76
+ "@dxos/util": "0.6.14-main.2b6a0f3",
77
+ "@dxos/react-ui-theme": "0.6.14-main.2b6a0f3"
72
78
  },
73
79
  "peerDependencies": {
74
80
  "@phosphor-icons/react": "^2.1.5",
75
- "date-fns": "^3.3.1",
76
- "react": "^18.0.0",
77
- "react-dom": "^18.0.0"
81
+ "react": "~18.2.0",
82
+ "react-dom": "~18.2.0",
83
+ "@dxos/react-ui-theme": "0.6.14-main.2b6a0f3"
78
84
  },
79
85
  "publishConfig": {
80
86
  "access": "public"
@@ -57,8 +57,9 @@ const StorybookAvatar = (props: PropsWithChildren<StorybookAvatarProps>) => {
57
57
  };
58
58
 
59
59
  export default {
60
- title: 'react-ui/Avatar',
61
- component: StorybookAvatar,
60
+ title: 'ui/react-ui-core/Avatar',
61
+ component: Avatar,
62
+ render: StorybookAvatar,
62
63
  decorators: [withTheme],
63
64
  parameters: { chromatic: { disableSnapshot: false } },
64
65
  };