@dxos/react-ui 0.7.0 → 0.7.1-staging.7f6f91c
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 +3 -2
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +3 -2
- package/dist/lib/node/index.cjs.map +2 -2
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +3 -2
- 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 +1 -1
- package/dist/types/src/components/Buttons/IconButton.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/components/Buttons/IconButton.tsx +8 -3
|
@@ -620,14 +620,15 @@ 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, iconOnly, label, classNames, ...props }, forwardedRef) => {
|
|
623
|
+
var LabelledIconButton = /* @__PURE__ */ forwardRef9(({ icon, size, iconOnly, label, classNames, ...props }, forwardedRef) => {
|
|
624
624
|
const { tx } = useThemeContext();
|
|
625
625
|
return /* @__PURE__ */ React10.createElement(Button, {
|
|
626
626
|
...props,
|
|
627
627
|
classNames: tx("iconButton.root", "iconButton", {}, classNames),
|
|
628
628
|
ref: forwardedRef
|
|
629
629
|
}, /* @__PURE__ */ React10.createElement(Icon, {
|
|
630
|
-
icon
|
|
630
|
+
icon,
|
|
631
|
+
size
|
|
631
632
|
}), /* @__PURE__ */ React10.createElement("span", {
|
|
632
633
|
className: iconOnly ? "sr-only" : void 0
|
|
633
634
|
}, label));
|