fui-material 2.0.3 → 2.1.0

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.
@@ -1,4 +1,4 @@
1
- import React, { useRef, useState, forwardRef, useEffect, useMemo, useCallback, useLayoutEffect, Fragment, isValidElement, cloneElement } from "react";
1
+ import React, { forwardRef, useRef, useState, useEffect, useMemo, useCallback, useLayoutEffect, Fragment, isValidElement, cloneElement } from "react";
2
2
  import ReactDOM from "react-dom";
3
3
  import './main.css';function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
@@ -967,7 +967,7 @@ const stylesBtn = {
967
967
  "btn-link": "_btn-link_ch6o3_411",
968
968
  "btn-outline-link": "_btn-outline-link_ch6o3_434"
969
969
  };
970
- const FButton = ({
970
+ const FButton = forwardRef(({
971
971
  children,
972
972
  variant = "contained",
973
973
  color = "primary",
@@ -975,7 +975,7 @@ const FButton = ({
975
975
  st: st2,
976
976
  fullWidth,
977
977
  ...props
978
- }) => {
978
+ }, ref) => {
979
979
  const inputId = props.id || `button-${Math.random().toString(36).substring(2, 9)}`;
980
980
  let style = st2 !== void 0 ? { ...st2 } : void 0;
981
981
  if (fullWidth) {
@@ -994,6 +994,7 @@ const FButton = ({
994
994
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
995
995
  "button",
996
996
  {
997
+ ref,
997
998
  style,
998
999
  type: "button",
999
1000
  ...props,
@@ -1002,7 +1003,8 @@ const FButton = ({
1002
1003
  children
1003
1004
  }
1004
1005
  );
1005
- };
1006
+ });
1007
+ FButton.displayName = "FButton";
1006
1008
  const defaultStyles = {
1007
1009
  "f-button-file": "_f-button-file_i2hex_1",
1008
1010
  "file-preview-list": "_file-preview-list_i2hex_1"
@@ -3510,7 +3512,7 @@ const FTabs = ({
3510
3512
  }
3511
3513
  );
3512
3514
  };
3513
- const FTab = ({
3515
+ const FTab = forwardRef(({
3514
3516
  children,
3515
3517
  id,
3516
3518
  className,
@@ -3518,10 +3520,11 @@ const FTab = ({
3518
3520
  onClick,
3519
3521
  disabled: disabled2,
3520
3522
  active: active2
3521
- }) => {
3523
+ }, ref) => {
3522
3524
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
3523
3525
  "button",
3524
3526
  {
3527
+ ref,
3525
3528
  type: "button",
3526
3529
  id,
3527
3530
  style: st2,
@@ -3531,7 +3534,8 @@ const FTab = ({
3531
3534
  children
3532
3535
  }
3533
3536
  );
3534
- };
3537
+ });
3538
+ FTab.displayName = "FTab";
3535
3539
  const styles$a = {
3536
3540
  "f-dropdown": "_f-dropdown_d5i2z_1",
3537
3541
  "f-dropdown__arrow": "_f-dropdown__arrow_d5i2z_6",