@dxos/react-ui 0.6.13-main.ed424a1 → 0.6.13-staging.1e988a3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/index.mjs +11 -21
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/components/Input/Input.d.ts.map +1 -1
- package/dist/types/src/components/Lists/Treegrid.stories.d.ts.map +1 -1
- package/dist/types/src/components/Select/Select.d.ts.map +1 -1
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts +4 -4
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +2 -4
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/package.json +14 -17
- package/src/components/Lists/Treegrid.stories.tsx +0 -1
- package/src/components/Select/Select.tsx +10 -9
- package/src/components/Toolbar/Toolbar.tsx +1 -21
- package/dist/lib/node/index.cjs +0 -2400
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node-esm/index.mjs +0 -2401
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
|
@@ -7,15 +7,7 @@ import React, { forwardRef } from 'react';
|
|
|
7
7
|
|
|
8
8
|
import { useThemeContext } from '../../hooks';
|
|
9
9
|
import { type ThemedClassName } from '../../util';
|
|
10
|
-
import {
|
|
11
|
-
Button,
|
|
12
|
-
ButtonGroup,
|
|
13
|
-
type ButtonGroupProps,
|
|
14
|
-
type ButtonProps,
|
|
15
|
-
Toggle,
|
|
16
|
-
type ToggleGroupItemProps,
|
|
17
|
-
type ToggleProps,
|
|
18
|
-
} from '../Buttons';
|
|
10
|
+
import { Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ToggleGroupItemProps } from '../Buttons';
|
|
19
11
|
import { Link, type LinkProps } from '../Link';
|
|
20
12
|
import { Separator, type SeparatorProps } from '../Separator';
|
|
21
13
|
|
|
@@ -40,16 +32,6 @@ const ToolbarButton = forwardRef<HTMLButtonElement, ToolbarButtonProps>((props,
|
|
|
40
32
|
);
|
|
41
33
|
});
|
|
42
34
|
|
|
43
|
-
type ToolbarToggleProps = ToggleProps;
|
|
44
|
-
|
|
45
|
-
const ToolbarToggle = forwardRef<HTMLButtonElement, ToolbarToggleProps>((props, forwardedRef) => {
|
|
46
|
-
return (
|
|
47
|
-
<ToolbarPrimitive.Button asChild>
|
|
48
|
-
<Toggle {...props} ref={forwardedRef} />
|
|
49
|
-
</ToolbarPrimitive.Button>
|
|
50
|
-
);
|
|
51
|
-
});
|
|
52
|
-
|
|
53
35
|
type ToolbarLinkProps = LinkProps;
|
|
54
36
|
|
|
55
37
|
const ToolbarLink = forwardRef<HTMLAnchorElement, ToolbarLinkProps>((props, forwardedRef) => {
|
|
@@ -102,7 +84,6 @@ export const Toolbar = {
|
|
|
102
84
|
Root: ToolbarRoot,
|
|
103
85
|
Button: ToolbarButton,
|
|
104
86
|
Link: ToolbarLink,
|
|
105
|
-
Toggle: ToolbarToggle,
|
|
106
87
|
ToggleGroup: ToolbarToggleGroup,
|
|
107
88
|
ToggleGroupItem: ToolbarToggleGroupItem,
|
|
108
89
|
Separator: ToolbarSeparator,
|
|
@@ -112,7 +93,6 @@ export type {
|
|
|
112
93
|
ToolbarRootProps,
|
|
113
94
|
ToolbarButtonProps,
|
|
114
95
|
ToolbarLinkProps,
|
|
115
|
-
ToolbarToggleProps,
|
|
116
96
|
ToolbarToggleGroupProps,
|
|
117
97
|
ToolbarToggleGroupItemProps,
|
|
118
98
|
ToolbarSeparatorProps,
|