fui-material 1.24.21 → 1.24.22

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.
@@ -973,7 +973,6 @@ const FButton = ({
973
973
  color = "primary",
974
974
  size = "btn-sm",
975
975
  st: st2,
976
- className,
977
976
  fullWidth,
978
977
  ...props
979
978
  }) => {
@@ -995,11 +994,11 @@ const FButton = ({
995
994
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
996
995
  "button",
997
996
  {
998
- className: `${stylesBtn["btn"]} ${stylesBtn[size]} ${stylesBtn[`btn${variant === "contained" ? "-" : "-outline-"}${color}`]} ${className || ""}`,
999
997
  style,
1000
998
  type: "button",
1001
999
  ...props,
1002
1000
  id: inputId,
1001
+ className: `${stylesBtn["btn"]} ${stylesBtn[size]} ${stylesBtn[`btn${variant === "contained" ? "-" : "-outline-"}${color}`]} ${props.className || ""}`,
1003
1002
  children
1004
1003
  }
1005
1004
  );
@@ -1632,7 +1631,6 @@ const styles$p = {
1632
1631
  const FTableHead = ({
1633
1632
  st: st2,
1634
1633
  children,
1635
- className,
1636
1634
  textAlignment = "left",
1637
1635
  // По умолчанию выравнивание слева
1638
1636
  isSticky = false,
@@ -1647,8 +1645,8 @@ const FTableHead = ({
1647
1645
  "thead",
1648
1646
  {
1649
1647
  style,
1650
- className: `${styles$p["f-table-component__table_header"]} ${isSticky ? styles$p["is-sticky"] : ""} ${className || ""}`,
1651
1648
  ...props,
1649
+ className: `${styles$p["f-table-component__table_header"]} ${isSticky ? styles$p["is-sticky"] : ""} ${props.className || ""}`,
1652
1650
  children
1653
1651
  }
1654
1652
  );
@@ -1660,7 +1658,6 @@ const FTableBody = ({
1660
1658
  // По умолчанию выравнивание слева
1661
1659
  tableWrapperRef,
1662
1660
  visibleRowCount = void 0,
1663
- className,
1664
1661
  ...props
1665
1662
  }) => {
1666
1663
  const style = {
@@ -1746,7 +1743,7 @@ const FTableBody = ({
1746
1743
  } else {
1747
1744
  visibleItems = flatChildren;
1748
1745
  }
1749
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { ref: tableBodyRef, style, ...props, className: `${styles$p["f-table-component__table_body"]} ${className || ""}`, children: [
1746
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { ref: tableBodyRef, style, ...props, className: `${styles$p["f-table-component__table_body"]} ${props.className || ""}`, children: [
1750
1747
  virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { style: { height: topOffset } }),
1751
1748
  visibleItems.map((child, idx) => React.isValidElement(child) ? React.cloneElement(child, { "data-row-index": virtualizationEnabled ? startIdx + idx : idx, key: virtualizationEnabled ? startIdx + idx : idx }) : child),
1752
1749
  virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { style: { height: bottomOffset } })
@@ -1756,7 +1753,6 @@ const FTableBody$1 = React.memo(FTableBody);
1756
1753
  const FTable = ({
1757
1754
  st: st2,
1758
1755
  children,
1759
- className,
1760
1756
  overflowX = "auto",
1761
1757
  // По умолчанию горизонтальное переполнение автоматическое
1762
1758
  overflowY = "auto",
@@ -1791,9 +1787,9 @@ const FTable = ({
1791
1787
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1792
1788
  "table",
1793
1789
  {
1794
- className: `table ${styles$p["f-table-component__table"]} ${styles$p["bordered"]} ${styles$p["bordered-half"]} ${className || ""}`,
1795
1790
  style: st2,
1796
1791
  ...props,
1792
+ className: `table ${styles$p["f-table-component__table"]} ${styles$p["bordered"]} ${styles$p["bordered-half"]} ${props.className || ""}`,
1797
1793
  children: React.Children.map(children, (child) => {
1798
1794
  if (React.isValidElement(child) && child.type === FTableHead) {
1799
1795
  const headProps = child.props;
@@ -1825,8 +1821,6 @@ const FTable = ({
1825
1821
  const FTableRow = ({
1826
1822
  st: st2,
1827
1823
  children,
1828
- id,
1829
- className,
1830
1824
  ...props
1831
1825
  }) => {
1832
1826
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -1834,8 +1828,7 @@ const FTableRow = ({
1834
1828
  {
1835
1829
  style: st2,
1836
1830
  ...props,
1837
- id,
1838
- className: `${styles$p["f-table-component__table_row"]} ${className || ""}`,
1831
+ className: `${styles$p["f-table-component__table_row"]} ${props.className || ""}`,
1839
1832
  children
1840
1833
  }
1841
1834
  );
@@ -1849,8 +1842,6 @@ const FTableHeaderCell = ({
1849
1842
  // По умолчанию выравнивание слева
1850
1843
  width = "auto",
1851
1844
  // По умолчанию ширина автоматическая
1852
- id,
1853
- className,
1854
1845
  ...props
1855
1846
  }) => {
1856
1847
  const style = {
@@ -1861,12 +1852,11 @@ const FTableHeaderCell = ({
1861
1852
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
1862
1853
  "th",
1863
1854
  {
1864
- id,
1865
- className: `${styles$p["f-table-component__table_header-cell"]} ${className || ""}`,
1866
1855
  style,
1867
1856
  rowSpan: row && row > 1 ? row : void 0,
1868
1857
  colSpan: col && col > 1 ? col : void 0,
1869
1858
  ...props,
1859
+ className: `${styles$p["f-table-component__table_header-cell"]} ${props.className || ""}`,
1870
1860
  children
1871
1861
  }
1872
1862
  );
@@ -1880,8 +1870,6 @@ const FTableDataCell = ({
1880
1870
  // По умолчанию выравнивание слева
1881
1871
  height = "auto",
1882
1872
  // По умолчанию высота автоматическая
1883
- className,
1884
- id,
1885
1873
  ...props
1886
1874
  }) => {
1887
1875
  const style = {
@@ -1892,12 +1880,11 @@ const FTableDataCell = ({
1892
1880
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
1893
1881
  "td",
1894
1882
  {
1895
- className: `${styles$p["f-table-component__table_body-cell"]} ${className || ""}`,
1896
- id,
1897
1883
  style,
1898
1884
  rowSpan: row && row > 1 ? row : void 0,
1899
1885
  colSpan: col && col > 1 ? col : void 0,
1900
1886
  ...props,
1887
+ className: `${styles$p["f-table-component__table_body-cell"]} ${props.className || ""}`,
1901
1888
  children
1902
1889
  }
1903
1890
  );
@@ -1905,17 +1892,14 @@ const FTableDataCell = ({
1905
1892
  const FTableFooter = ({
1906
1893
  st: st2,
1907
1894
  children,
1908
- className,
1909
- id,
1910
1895
  ...props
1911
1896
  }) => {
1912
1897
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
1913
1898
  "tfoot",
1914
1899
  {
1915
- className: `${styles$p["f-table-component__table_footer"]} ${className || ""}`,
1916
1900
  style: st2,
1917
- id,
1918
1901
  ...props,
1902
+ className: `${styles$p["f-table-component__table_footer"]} ${props.className || ""}`,
1919
1903
  children
1920
1904
  }
1921
1905
  );
@@ -2111,11 +2095,11 @@ const styles$l = {
2111
2095
  "f-checkbox": "_f-checkbox_9rvqg_1"
2112
2096
  };
2113
2097
  const FCheckbox = forwardRef(
2114
- ({ label, className, id, st: st2, ...props }, ref) => {
2098
+ ({ label, id, st: st2, ...props }, ref) => {
2115
2099
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
2116
2100
  "div",
2117
2101
  {
2118
- className: `${styles$l["f-checkbox"]} ${className || ""}`,
2102
+ className: `${styles$l["f-checkbox"]} ${props.className || ""}`,
2119
2103
  id,
2120
2104
  style: st2,
2121
2105
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
@@ -2821,12 +2805,12 @@ const FSelect = forwardRef(
2821
2805
  "select",
2822
2806
  {
2823
2807
  ref,
2824
- id: inputId,
2825
- className: `f-form-element__control-element ${styles$e["f-select__control-element"]} ${errText ? "error" : ""}`,
2826
2808
  "aria-invalid": !!errText,
2827
2809
  "aria-describedby": [helpText ? inputId + "-helptext" : null, (errText == null ? void 0 : errText.length) ? inputId + "-errortext" : null].filter(Boolean).join(" "),
2828
2810
  ...props,
2811
+ id: inputId,
2829
2812
  disabled: props.disabled || load,
2813
+ className: `f-form-element__control-element ${styles$e["f-select__control-element"]} ${errText ? "error" : ""} ${props.className || ""}`,
2830
2814
  children: !load && children
2831
2815
  }
2832
2816
  ),
@@ -2890,9 +2874,6 @@ const FFullDateField = forwardRef(
2890
2874
  st: st2,
2891
2875
  value,
2892
2876
  fullWidth,
2893
- disabled: disabled2,
2894
- id,
2895
- className,
2896
2877
  load = false,
2897
2878
  errText,
2898
2879
  helpText,
@@ -2904,13 +2885,10 @@ const FFullDateField = forwardRef(
2904
2885
  FTextField,
2905
2886
  {
2906
2887
  st: st2,
2907
- className,
2908
2888
  width,
2909
2889
  height,
2910
2890
  fullWidth,
2911
- id,
2912
2891
  ref,
2913
- disabled: disabled2,
2914
2892
  load,
2915
2893
  value: load ? "" : value,
2916
2894
  type: load ? "text" : "date",
@@ -3663,7 +3641,6 @@ const FSearchBox = forwardRef(
3663
3641
  readOnly,
3664
3642
  errText,
3665
3643
  helpText,
3666
- className,
3667
3644
  load = false,
3668
3645
  children,
3669
3646
  color = "primary",
@@ -3683,12 +3660,12 @@ const FSearchBox = forwardRef(
3683
3660
  ref,
3684
3661
  disabled: disabled2,
3685
3662
  readOnly: readOnly || load,
3686
- className: `${styles$9["f-search-box__input"]} ${className || ""}`,
3687
3663
  type: type ?? "text",
3688
3664
  helpText,
3689
3665
  errText,
3690
3666
  load,
3691
- ...props
3667
+ ...props,
3668
+ className: `${styles$9["f-search-box__input"]} ${props.className || ""}`
3692
3669
  }
3693
3670
  ),
3694
3671
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$9["f-search-box__button"], style: { marginTop: label ? "21.8px" : "0" }, children: [