@dxos/react-ui 0.7.1 → 0.7.2-staging.6d26b2a
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 +8 -3
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +8 -3
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +8 -3
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Buttons/IconButton.d.ts +2 -0
- package/dist/types/src/components/Buttons/IconButton.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +1 -0
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +1 -0
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/components/Buttons/IconButton.tsx +5 -2
- package/src/components/Toolbar/Toolbar.tsx +3 -0
|
@@ -620,7 +620,7 @@ var IconOnlyButton = /* @__PURE__ */ forwardRef9(({ tooltipPortal = true, toolti
|
|
|
620
620
|
ref: forwardedRef
|
|
621
621
|
})), tooltipPortal ? /* @__PURE__ */ React10.createElement(Tooltip.Portal, null, content) : content);
|
|
622
622
|
});
|
|
623
|
-
var LabelledIconButton = /* @__PURE__ */ forwardRef9(({ icon, size, iconOnly, label, classNames, ...props }, forwardedRef) => {
|
|
623
|
+
var LabelledIconButton = /* @__PURE__ */ forwardRef9(({ icon, size, iconOnly, label, classNames, iconClassNames, ...props }, forwardedRef) => {
|
|
624
624
|
const { tx } = useThemeContext();
|
|
625
625
|
return /* @__PURE__ */ React10.createElement(Button, {
|
|
626
626
|
...props,
|
|
@@ -628,7 +628,8 @@ var LabelledIconButton = /* @__PURE__ */ forwardRef9(({ icon, size, iconOnly, la
|
|
|
628
628
|
ref: forwardedRef
|
|
629
629
|
}, /* @__PURE__ */ React10.createElement(Icon, {
|
|
630
630
|
icon,
|
|
631
|
-
size
|
|
631
|
+
size,
|
|
632
|
+
classNames: iconClassNames
|
|
632
633
|
}), /* @__PURE__ */ React10.createElement("span", {
|
|
633
634
|
className: iconOnly ? "sr-only" : void 0
|
|
634
635
|
}, label));
|
|
@@ -2850,6 +2851,9 @@ var ToolbarSeparator = (props) => {
|
|
|
2850
2851
|
...props
|
|
2851
2852
|
}));
|
|
2852
2853
|
};
|
|
2854
|
+
var ToolbarExpander = () => /* @__PURE__ */ React32.createElement("div", {
|
|
2855
|
+
className: "grow"
|
|
2856
|
+
});
|
|
2853
2857
|
var Toolbar = {
|
|
2854
2858
|
Root: ToolbarRoot,
|
|
2855
2859
|
Button: ToolbarButton,
|
|
@@ -2857,7 +2861,8 @@ var Toolbar = {
|
|
|
2857
2861
|
Toggle: ToolbarToggle,
|
|
2858
2862
|
ToggleGroup: ToolbarToggleGroup2,
|
|
2859
2863
|
ToggleGroupItem: ToolbarToggleGroupItem,
|
|
2860
|
-
Separator: ToolbarSeparator
|
|
2864
|
+
Separator: ToolbarSeparator,
|
|
2865
|
+
Expander: ToolbarExpander
|
|
2861
2866
|
};
|
|
2862
2867
|
|
|
2863
2868
|
// packages/ui/react-ui/src/components/ThemeProvider/ThemeProvider.tsx
|