@oliasoft-open-source/react-ui-library 3.1.18 → 3.1.20-beta1

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 (2) hide show
  1. package/dist/index.js +5 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10718,14 +10718,9 @@ const Actions = (props) => {
10718
10718
  const hidden2 = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
10719
10719
  if (!hidden2) {
10720
10720
  if (action2.childComponent && React__default.isValidElement(action2.childComponent)) {
10721
- return /* @__PURE__ */ jsx(Button$1, {
10722
- colored: action2.primary ? true : "muted",
10723
- round: true,
10724
- basic: true,
10725
- small: true,
10726
- icon: action2.childComponent,
10727
- testId: action2.testId,
10728
- width: "auto"
10721
+ return /* @__PURE__ */ jsx("div", {
10722
+ "data-testid": action2.testId,
10723
+ children: action2.childComponent
10729
10724
  }, index2);
10730
10725
  } else if (action2.subActions) {
10731
10726
  return /* @__PURE__ */ jsx(SubmenuActions, {
@@ -26167,6 +26162,8 @@ const useFontsReady = () => {
26167
26162
  const [isFontLoaded, setFontLoaded] = useState(false);
26168
26163
  useEffect(() => {
26169
26164
  const fontIsReady = async () => {
26165
+ if (!document.fonts)
26166
+ return;
26170
26167
  await document.fonts.ready.then(() => setFontLoaded(true));
26171
26168
  };
26172
26169
  fontIsReady();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "3.1.18",
3
+ "version": "3.1.20-beta1",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",