fui-material 2.0.0 → 2.0.1

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.
@@ -1048,7 +1048,7 @@ const FTrashIcon = ({
1048
1048
  const progressBar = "_progressBar_1xp9s_48";
1049
1049
  const completed = "_completed_1xp9s_60";
1050
1050
  const progress = "_progress_1xp9s_48";
1051
- const styles$v = {
1051
+ const styles$w = {
1052
1052
  "file-preview-card": "_file-preview-card_1xp9s_1",
1053
1053
  "file-preview-info": "_file-preview-info_1xp9s_22",
1054
1054
  "file-preview-name": "_file-preview-name_1xp9s_28",
@@ -1070,18 +1070,18 @@ const FFile = ({
1070
1070
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
1071
1071
  "div",
1072
1072
  {
1073
- className: `${styles$v["file-preview-card"]} ${className || ""}`,
1073
+ className: `${styles$w["file-preview-card"]} ${className || ""}`,
1074
1074
  id,
1075
1075
  style: st2,
1076
1076
  children: [
1077
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$v["file-preview-info"], children: [
1078
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$v["file-preview-name"], title: name, children: name }),
1079
- typeof size === "number" && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$v["file-preview-size"], children: [
1077
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$w["file-preview-info"], children: [
1078
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$w["file-preview-name"], title: name, children: name }),
1079
+ typeof size === "number" && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$w["file-preview-size"], children: [
1080
1080
  Math.round(size / 1024),
1081
1081
  " КБ"
1082
1082
  ] })
1083
1083
  ] }),
1084
- handleDelete && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$v["trash-icon"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1084
+ handleDelete && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$w["trash-icon"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1085
1085
  FTrashIcon,
1086
1086
  {
1087
1087
  size: 20,
@@ -1089,10 +1089,10 @@ const FFile = ({
1089
1089
  handleClick: handleDelete
1090
1090
  }
1091
1091
  ) }),
1092
- typeof progress2 === "number" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$v.progressBar} ${progress2 === 100 ? styles$v.completed : ""}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1092
+ typeof progress2 === "number" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$w.progressBar} ${progress2 === 100 ? styles$w.completed : ""}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1093
1093
  "div",
1094
1094
  {
1095
- className: styles$v.progress,
1095
+ className: styles$w.progress,
1096
1096
  style: { width: `${progress2}%` }
1097
1097
  }
1098
1098
  ) })
@@ -1195,7 +1195,7 @@ const FButtonFile = ({
1195
1195
  )) }) })
1196
1196
  ] });
1197
1197
  };
1198
- const styles$u = {
1198
+ const styles$v = {
1199
1199
  "f-text-field": "_f-text-field_200bb_1"
1200
1200
  };
1201
1201
  const FLoadIcon = ({ size = 30, st: st2, id, className, color = "primary" }) => {
@@ -1266,7 +1266,7 @@ const FTextField = forwardRef(
1266
1266
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
1267
1267
  "div",
1268
1268
  {
1269
- className: `f-form-element ${styles$u["f-text-field"]} ${className || ""}`,
1269
+ className: `f-form-element ${styles$v["f-text-field"]} ${className || ""}`,
1270
1270
  style: mergedStyle,
1271
1271
  role: "group",
1272
1272
  id: inputId + "-text-field-block",
@@ -1357,7 +1357,7 @@ const FStack = ({
1357
1357
  }
1358
1358
  );
1359
1359
  };
1360
- const styles$t = {
1360
+ const styles$u = {
1361
1361
  "f-grid": "_f-grid_3g4xh_1",
1362
1362
  "f-grid__col": "_f-grid__col_3g4xh_10",
1363
1363
  "f-grid__col--auto": "_f-grid__col--auto_3g4xh_16",
@@ -1460,21 +1460,21 @@ const FGrid = ({
1460
1460
  xxl: xxl ?? xl ?? lg ?? md ?? sm ?? xs
1461
1461
  };
1462
1462
  const getColumnClasses = () => {
1463
- if (colAuto) return styles$t["f-grid__col--auto"];
1464
- const classes = [styles$t["f-grid__col"]];
1465
- if (resolvedSizes.xs !== void 0) classes.push(styles$t[`f-grid__col--xs-${resolvedSizes.xs}`]);
1466
- if (resolvedSizes.sm !== void 0) classes.push(styles$t[`f-grid__col--sm-${resolvedSizes.sm}`]);
1467
- if (resolvedSizes.md !== void 0) classes.push(styles$t[`f-grid__col--md-${resolvedSizes.md}`]);
1468
- if (resolvedSizes.lg !== void 0) classes.push(styles$t[`f-grid__col--lg-${resolvedSizes.lg}`]);
1469
- if (resolvedSizes.xl !== void 0) classes.push(styles$t[`f-grid__col--xl-${resolvedSizes.xl}`]);
1470
- if (resolvedSizes.xxl !== void 0) classes.push(styles$t[`f-grid__col--xxl-${resolvedSizes.xxl}`]);
1463
+ if (colAuto) return styles$u["f-grid__col--auto"];
1464
+ const classes = [styles$u["f-grid__col"]];
1465
+ if (resolvedSizes.xs !== void 0) classes.push(styles$u[`f-grid__col--xs-${resolvedSizes.xs}`]);
1466
+ if (resolvedSizes.sm !== void 0) classes.push(styles$u[`f-grid__col--sm-${resolvedSizes.sm}`]);
1467
+ if (resolvedSizes.md !== void 0) classes.push(styles$u[`f-grid__col--md-${resolvedSizes.md}`]);
1468
+ if (resolvedSizes.lg !== void 0) classes.push(styles$u[`f-grid__col--lg-${resolvedSizes.lg}`]);
1469
+ if (resolvedSizes.xl !== void 0) classes.push(styles$u[`f-grid__col--xl-${resolvedSizes.xl}`]);
1470
+ if (resolvedSizes.xxl !== void 0) classes.push(styles$u[`f-grid__col--xxl-${resolvedSizes.xxl}`]);
1471
1471
  return classes.join(" ");
1472
1472
  };
1473
1473
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1474
1474
  obj === "container" && /* @__PURE__ */ jsxRuntimeExports.jsx(
1475
1475
  "div",
1476
1476
  {
1477
- className: `${styles$t["f-grid"]} ${className || ""}`,
1477
+ className: `${styles$u["f-grid"]} ${className || ""}`,
1478
1478
  style,
1479
1479
  id,
1480
1480
  children
@@ -1492,7 +1492,7 @@ const FGrid = ({
1492
1492
  obj === void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className, style, id, children })
1493
1493
  ] });
1494
1494
  };
1495
- const styles$s = {
1495
+ const styles$t = {
1496
1496
  "f-grid-row": "_f-grid-row_1crbx_1",
1497
1497
  "f-grid-row--justify-start": "_f-grid-row--justify-start_1crbx_7",
1498
1498
  "f-grid-row--justify-center": "_f-grid-row--justify-center_1crbx_10",
@@ -1514,21 +1514,21 @@ const FGridRow = ({
1514
1514
  }) => {
1515
1515
  const getJustifyContentClass = () => {
1516
1516
  if (!justifyContent) return "";
1517
- return styles$s[`f-grid-row--justify-${justifyContent}`];
1517
+ return styles$t[`f-grid-row--justify-${justifyContent}`];
1518
1518
  };
1519
1519
  const getAlignItemsClass = () => {
1520
1520
  if (!alignItems) return "";
1521
- return styles$s[`f-grid-row--align-${alignItems}`];
1521
+ return styles$t[`f-grid-row--align-${alignItems}`];
1522
1522
  };
1523
1523
  const rowClasses = [
1524
- styles$s["f-grid-row"],
1524
+ styles$t["f-grid-row"],
1525
1525
  getJustifyContentClass(),
1526
1526
  getAlignItemsClass(),
1527
1527
  className
1528
1528
  ].filter(Boolean).join(" ");
1529
1529
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: rowClasses, style: st2, id, children });
1530
1530
  };
1531
- const styles$r = {
1531
+ const styles$s = {
1532
1532
  "f-container": "_f-container_g9ck3_1",
1533
1533
  "container-fluid": "_container-fluid_g9ck3_1",
1534
1534
  "container-xxl": "_container-xxl_g9ck3_1",
@@ -1548,7 +1548,7 @@ const FContainer = ({
1548
1548
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
1549
1549
  "div",
1550
1550
  {
1551
- className: `${styles$r["f-container"]} ${styles$r[maxWidth]} ${className || ""}`,
1551
+ className: `${styles$s["f-container"]} ${styles$s[maxWidth]} ${className || ""}`,
1552
1552
  style: st2,
1553
1553
  id,
1554
1554
  children
@@ -1556,7 +1556,7 @@ const FContainer = ({
1556
1556
  );
1557
1557
  };
1558
1558
  const panel = "_panel_yplsg_1";
1559
- const styles$q = {
1559
+ const styles$r = {
1560
1560
  panel,
1561
1561
  "panel-default": "_panel-default_yplsg_6",
1562
1562
  "panel-heading": "_panel-heading_yplsg_12",
@@ -1589,15 +1589,15 @@ const FPaper = ({
1589
1589
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
1590
1590
  "div",
1591
1591
  {
1592
- className: `${styles$q["panel"]} ${styles$q["panel-default"]} ${className || ""} ${animated ? `${styles$q[`animated-${animated.name}`]} ${animated.name}` : ""}`,
1592
+ className: `${styles$r["panel"]} ${styles$r["panel-default"]} ${className || ""} ${animated ? `${styles$r[`animated-${animated.name}`]} ${animated.name}` : ""}`,
1593
1593
  style: st2,
1594
1594
  id,
1595
1595
  onAnimationEnd,
1596
1596
  children: [
1597
- label && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$q["panel-heading"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1597
+ label && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$r["panel-heading"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1598
1598
  "h3",
1599
1599
  {
1600
- className: styles$q["panel-title"],
1600
+ className: styles$r["panel-title"],
1601
1601
  style: { fontSize: fontSizeLabel },
1602
1602
  children: label
1603
1603
  }
@@ -1605,7 +1605,7 @@ const FPaper = ({
1605
1605
  /* @__PURE__ */ jsxRuntimeExports.jsx(
1606
1606
  "div",
1607
1607
  {
1608
- className: styles$q["panel-body"],
1608
+ className: styles$r["panel-body"],
1609
1609
  style: { fontSize: fontSizeBody },
1610
1610
  children
1611
1611
  }
@@ -1615,7 +1615,7 @@ const FPaper = ({
1615
1615
  );
1616
1616
  };
1617
1617
  const bordered = "_bordered_bxmcg_18";
1618
- const styles$p = {
1618
+ const styles$q = {
1619
1619
  "f-table-component": "_f-table-component_bxmcg_1",
1620
1620
  "f-table-component__table": "_f-table-component__table_bxmcg_7",
1621
1621
  bordered,
@@ -1646,7 +1646,7 @@ const FTableHead = ({
1646
1646
  {
1647
1647
  style,
1648
1648
  ...props,
1649
- className: `${styles$p["f-table-component__table_header"]} ${isSticky ? styles$p["is-sticky"] : ""} ${props.className || ""}`,
1649
+ className: `${styles$q["f-table-component__table_header"]} ${isSticky ? styles$q["is-sticky"] : ""} ${props.className || ""}`,
1650
1650
  children
1651
1651
  }
1652
1652
  );
@@ -1743,7 +1743,7 @@ const FTableBody = ({
1743
1743
  } else {
1744
1744
  visibleItems = flatChildren;
1745
1745
  }
1746
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { ref: tableBodyRef, style, ...props, className: `${styles$p["f-table-component__table_body"]} ${props.className || ""}`, children: [
1746
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { ref: tableBodyRef, style, ...props, className: `${styles$q["f-table-component__table_body"]} ${props.className || ""}`, children: [
1747
1747
  virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { style: { height: topOffset } }),
1748
1748
  visibleItems.map((child, idx) => React.isValidElement(child) ? React.cloneElement(child, { "data-row-index": virtualizationEnabled ? startIdx + idx : idx, key: virtualizationEnabled ? startIdx + idx : idx }) : child),
1749
1749
  virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { style: { height: bottomOffset } })
@@ -1782,14 +1782,14 @@ const FTable = ({
1782
1782
  "div",
1783
1783
  {
1784
1784
  ref: tableWrapperRef,
1785
- className: styles$p["f-table-component"],
1785
+ className: styles$q["f-table-component"],
1786
1786
  style: { overflowX, overflowY },
1787
1787
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1788
1788
  "table",
1789
1789
  {
1790
1790
  style: st2,
1791
1791
  ...props,
1792
- className: `table ${styles$p["f-table-component__table"]} ${styles$p["bordered"]} ${styles$p["bordered-half"]} ${props.className || ""}`,
1792
+ className: `table ${styles$q["f-table-component__table"]} ${styles$q["bordered"]} ${styles$q["bordered-half"]} ${props.className || ""}`,
1793
1793
  children: React.Children.map(children, (child) => {
1794
1794
  if (React.isValidElement(child) && child.type === FTableHead) {
1795
1795
  const headProps = child.props;
@@ -1828,7 +1828,7 @@ const FTableRow = ({
1828
1828
  {
1829
1829
  style: st2,
1830
1830
  ...props,
1831
- className: `${styles$p["f-table-component__table_row"]} ${props.className || ""}`,
1831
+ className: `${styles$q["f-table-component__table_row"]} ${props.className || ""}`,
1832
1832
  children
1833
1833
  }
1834
1834
  );
@@ -1856,7 +1856,7 @@ const FTableHeaderCell = ({
1856
1856
  rowSpan: row && row > 1 ? row : void 0,
1857
1857
  colSpan: col && col > 1 ? col : void 0,
1858
1858
  ...props,
1859
- className: `${styles$p["f-table-component__table_header-cell"]} ${props.className || ""}`,
1859
+ className: `${styles$q["f-table-component__table_header-cell"]} ${props.className || ""}`,
1860
1860
  children
1861
1861
  }
1862
1862
  );
@@ -1884,7 +1884,7 @@ const FTableDataCell = ({
1884
1884
  rowSpan: row && row > 1 ? row : void 0,
1885
1885
  colSpan: col && col > 1 ? col : void 0,
1886
1886
  ...props,
1887
- className: `${styles$p["f-table-component__table_body-cell"]} ${props.className || ""}`,
1887
+ className: `${styles$q["f-table-component__table_body-cell"]} ${props.className || ""}`,
1888
1888
  children
1889
1889
  }
1890
1890
  );
@@ -1899,14 +1899,14 @@ const FTableFooter = ({
1899
1899
  {
1900
1900
  style: st2,
1901
1901
  ...props,
1902
- className: `${styles$p["f-table-component__table_footer"]} ${props.className || ""}`,
1902
+ className: `${styles$q["f-table-component__table_footer"]} ${props.className || ""}`,
1903
1903
  children
1904
1904
  }
1905
1905
  );
1906
1906
  };
1907
1907
  const active$4 = "_active_16jkc_16";
1908
1908
  const hide = "_hide_16jkc_37";
1909
- const styles$o = {
1909
+ const styles$p = {
1910
1910
  "f-dialog": "_f-dialog_16jkc_1",
1911
1911
  "active-dialog": "_active-dialog_16jkc_16",
1912
1912
  "f-dialog__content": "_f-dialog__content_16jkc_20",
@@ -1958,12 +1958,12 @@ const FDialog = ({
1958
1958
  {
1959
1959
  id,
1960
1960
  style: st2,
1961
- className: `${styles$o["f-dialog"]} ${openAndClose ? styles$o["active-dialog"] : ""} ${className || ""}`,
1961
+ className: `${styles$p["f-dialog"]} ${openAndClose ? styles$p["active-dialog"] : ""} ${className || ""}`,
1962
1962
  onClick: () => closeButtonBackPage == null ? void 0 : closeButtonBackPage(false),
1963
1963
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1964
1964
  "div",
1965
1965
  {
1966
- className: `${styles$o["f-dialog__content"]} ${openAndClose ? styles$o["active"] : ""} ${hide2 ? styles$o["hide"] : ""}`,
1966
+ className: `${styles$p["f-dialog__content"]} ${openAndClose ? styles$p["active"] : ""} ${hide2 ? styles$p["hide"] : ""}`,
1967
1967
  style: {
1968
1968
  width: contentWidth
1969
1969
  },
@@ -1992,9 +1992,9 @@ const FCloseIcon = ({ color = "primary", size = 30, st: st2, id, className, hand
1992
1992
  );
1993
1993
  };
1994
1994
  const FDialogHeader = ({ title, handleClose }) => {
1995
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$o["f-dialog__header"], children: [
1996
- /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: styles$o["f-dialog__header_title"], children: title }),
1997
- handleClose && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$o["f-dialog__header_close"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1995
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$p["f-dialog__header"], children: [
1996
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: styles$p["f-dialog__header_title"], children: title }),
1997
+ handleClose && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$p["f-dialog__header_close"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1998
1998
  FCloseIcon,
1999
1999
  {
2000
2000
  handleClose,
@@ -2009,7 +2009,7 @@ const FDialogBody = ({ st: st2, children, scroll = true }) => {
2009
2009
  ...scroll ? { overflowY: "auto" } : {},
2010
2010
  ...st2
2011
2011
  };
2012
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$o["f-dialog__body"], style, children });
2012
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$p["f-dialog__body"], style, children });
2013
2013
  };
2014
2014
  const FDialogFooter = ({ children, className, st: st2, id }) => {
2015
2015
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -2017,7 +2017,7 @@ const FDialogFooter = ({ children, className, st: st2, id }) => {
2017
2017
  {
2018
2018
  id,
2019
2019
  style: st2,
2020
- className: `${styles$o["f-dialog__footer"]} ${className || ""}`,
2020
+ className: `${styles$p["f-dialog__footer"]} ${className || ""}`,
2021
2021
  children
2022
2022
  }
2023
2023
  );
@@ -2032,7 +2032,7 @@ const info$2 = "_info_1lhk7_62";
2032
2032
  const light = "_light_1lhk7_66";
2033
2033
  const dark = "_dark_1lhk7_70";
2034
2034
  const link$1 = "_link_1lhk7_74";
2035
- const styles$n = {
2035
+ const styles$o = {
2036
2036
  "authorization-spinner": "_authorization-spinner_1lhk7_1",
2037
2037
  "spinner-item": "_spinner-item_1lhk7_7",
2038
2038
  loader,
@@ -2050,14 +2050,14 @@ const FProgress = ({ st: st2, color = "primary", id, className }) => {
2050
2050
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
2051
2051
  "div",
2052
2052
  {
2053
- className: `${styles$n["authorization-spinner"]} ${styles$n.visible} ${className || ""}`,
2053
+ className: `${styles$o["authorization-spinner"]} ${styles$o.visible} ${className || ""}`,
2054
2054
  id,
2055
2055
  style: st2,
2056
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$n["spinner-item"]} ${styles$n[color]}` })
2056
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$o["spinner-item"]} ${styles$o[color]}` })
2057
2057
  }
2058
2058
  );
2059
2059
  };
2060
- const styles$m = {
2060
+ const styles$n = {
2061
2061
  "f-preloader": "_f-preloader_17f9x_1",
2062
2062
  "active-preloader": "_active-preloader_17f9x_10"
2063
2063
  };
@@ -2084,13 +2084,13 @@ const FPreloader = ({
2084
2084
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
2085
2085
  "div",
2086
2086
  {
2087
- className: `${styles$m["f-preloader"]} ${open ? styles$m["active-preloader"] : ""}`,
2087
+ className: `${styles$n["f-preloader"]} ${open ? styles$n["active-preloader"] : ""}`,
2088
2088
  style: mergedStyle,
2089
2089
  children
2090
2090
  }
2091
2091
  );
2092
2092
  };
2093
- const styles$l = {
2093
+ const styles$m = {
2094
2094
  "f-checkbox": "_f-checkbox_9rvqg_1"
2095
2095
  };
2096
2096
  const FCheckbox = forwardRef(
@@ -2104,7 +2104,7 @@ const FCheckbox = forwardRef(
2104
2104
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
2105
2105
  "div",
2106
2106
  {
2107
- className: `${styles$l["f-checkbox"]} ${className || ""}`,
2107
+ className: `${styles$m["f-checkbox"]} ${className || ""}`,
2108
2108
  id,
2109
2109
  style: st2,
2110
2110
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
@@ -2115,7 +2115,7 @@ const FCheckbox = forwardRef(
2115
2115
  );
2116
2116
  }
2117
2117
  );
2118
- const styles$k = {
2118
+ const styles$l = {
2119
2119
  "f-radio": "_f-radio_cwhmx_1"
2120
2120
  };
2121
2121
  const FRadioButton = ({
@@ -2130,7 +2130,7 @@ const FRadioButton = ({
2130
2130
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
2131
2131
  "div",
2132
2132
  {
2133
- className: `${styles$k["f-radio"]} ${className || ""}`,
2133
+ className: `${styles$l["f-radio"]} ${className || ""}`,
2134
2134
  style: st2,
2135
2135
  id,
2136
2136
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
@@ -2200,7 +2200,7 @@ const selected = "_selected_aham2_33";
2200
2200
  const disabled$1 = "_disabled_aham2_37";
2201
2201
  const arrow = "_arrow_aham2_43";
2202
2202
  const left = "_left_aham2_56";
2203
- const styles$j = {
2203
+ const styles$k = {
2204
2204
  "pagination-container": "_pagination-container_aham2_1",
2205
2205
  "pagination-item": "_pagination-item_aham2_9",
2206
2206
  dots,
@@ -2234,26 +2234,26 @@ const FPagination = ({
2234
2234
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
2235
2235
  "ul",
2236
2236
  {
2237
- className: `${styles$j["pagination-container"]} ${className || ""}`,
2237
+ className: `${styles$k["pagination-container"]} ${className || ""}`,
2238
2238
  style: st2,
2239
2239
  id,
2240
2240
  children: [
2241
2241
  /* @__PURE__ */ jsxRuntimeExports.jsx(
2242
2242
  "li",
2243
2243
  {
2244
- className: `${styles$j["pagination-item"]} ${currentPage === 1 ? styles$j.disabled : ""}`,
2244
+ className: `${styles$k["pagination-item"]} ${currentPage === 1 ? styles$k.disabled : ""}`,
2245
2245
  onClick: onPrevious,
2246
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$j.arrow} ${styles$j.left}` })
2246
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$k.arrow} ${styles$k.left}` })
2247
2247
  }
2248
2248
  ),
2249
2249
  paginationRange.map((pageNumber, index) => {
2250
2250
  if (pageNumber === DOTS) {
2251
- return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: `${styles$j["pagination-item"]} ${styles$j.dots}`, children: "…" }, index);
2251
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: `${styles$k["pagination-item"]} ${styles$k.dots}`, children: "…" }, index);
2252
2252
  }
2253
2253
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
2254
2254
  "li",
2255
2255
  {
2256
- className: `${styles$j["pagination-item"]} ${pageNumber === currentPage ? styles$j.selected : ""}`,
2256
+ className: `${styles$k["pagination-item"]} ${pageNumber === currentPage ? styles$k.selected : ""}`,
2257
2257
  onClick: () => onPageChange(pageNumber),
2258
2258
  children: pageNumber
2259
2259
  },
@@ -2263,16 +2263,16 @@ const FPagination = ({
2263
2263
  /* @__PURE__ */ jsxRuntimeExports.jsx(
2264
2264
  "li",
2265
2265
  {
2266
- className: `${styles$j["pagination-item"]} ${currentPage === lastPage ? styles$j.disabled : ""}`,
2266
+ className: `${styles$k["pagination-item"]} ${currentPage === lastPage ? styles$k.disabled : ""}`,
2267
2267
  onClick: onNext,
2268
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$j.arrow} ${styles$j.right}` })
2268
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$k.arrow} ${styles$k.right}` })
2269
2269
  }
2270
2270
  )
2271
2271
  ]
2272
2272
  }
2273
2273
  );
2274
2274
  };
2275
- const styles$i = {
2275
+ const styles$j = {
2276
2276
  "f-time-line": "_f-time-line_1ybe7_1",
2277
2277
  "f-time-line__block": "_f-time-line__block_1ybe7_10",
2278
2278
  "f-time-line__block-circle": "_f-time-line__block-circle_1ybe7_29",
@@ -2286,7 +2286,7 @@ const FTimeline = ({
2286
2286
  id,
2287
2287
  className
2288
2288
  }) => {
2289
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$i["f-time-line"]} ${className || ""}`, style: st2, id, children });
2289
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$j["f-time-line"]} ${className || ""}`, style: st2, id, children });
2290
2290
  };
2291
2291
  const FTimelineCard = ({
2292
2292
  children,
@@ -2295,17 +2295,17 @@ const FTimelineCard = ({
2295
2295
  id,
2296
2296
  className
2297
2297
  }) => {
2298
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${styles$i["f-time-line__block"]} ${className || ""}`, id, children: [
2299
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i["f-time-line__block-circle"] }),
2300
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$i["f-time-line__block-inner"], style: st2, children: [
2301
- title && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i["f-time-line__block-title"], children: title }),
2302
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i["f-time-line__block-content"], children })
2298
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${styles$j["f-time-line__block"]} ${className || ""}`, id, children: [
2299
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$j["f-time-line__block-circle"] }),
2300
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$j["f-time-line__block-inner"], style: st2, children: [
2301
+ title && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$j["f-time-line__block-title"], children: title }),
2302
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$j["f-time-line__block-content"], children })
2303
2303
  ] })
2304
2304
  ] });
2305
2305
  };
2306
2306
  const spinner = "_spinner_f7bma_133";
2307
2307
  const active$3 = "_active_f7bma_183";
2308
- const styles$h = {
2308
+ const styles$i = {
2309
2309
  "fv-opn-img-full": "_fv-opn-img-full_f7bma_1",
2310
2310
  "fv-opn-img-full-body": "_fv-opn-img-full-body_f7bma_19",
2311
2311
  "close-button": "_close-button_f7bma_33",
@@ -2440,10 +2440,10 @@ const FOpenImgFull = ({
2440
2440
  {
2441
2441
  openAndClose,
2442
2442
  st: st2,
2443
- className: `${styles$h["fv-opn-img-full"]} ${className || ""}`,
2443
+ className: `${styles$i["fv-opn-img-full"]} ${className || ""}`,
2444
2444
  id,
2445
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$h["fv-opn-img-full-body"], children: [
2446
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$h["close-button"], children: handleClose && /* @__PURE__ */ jsxRuntimeExports.jsx(
2445
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$i["fv-opn-img-full-body"], children: [
2446
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i["close-button"], children: handleClose && /* @__PURE__ */ jsxRuntimeExports.jsx(
2447
2447
  FCloseIcon,
2448
2448
  {
2449
2449
  handleClose: () => {
@@ -2455,21 +2455,21 @@ const FOpenImgFull = ({
2455
2455
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
2456
2456
  "div",
2457
2457
  {
2458
- className: styles$h["image-container"],
2458
+ className: styles$i["image-container"],
2459
2459
  onTouchStart: handleTouchStart,
2460
2460
  onTouchMove: handleTouchMove,
2461
2461
  onTouchEnd: handleTouchEnd,
2462
2462
  children: [
2463
- selectedImg > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$h["arrow-left"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2463
+ selectedImg > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i["arrow-left"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2464
2464
  FArrowIcon,
2465
2465
  {
2466
2466
  direction: "left",
2467
2467
  handleClick: () => setSelectedImg(selectedImg - 1)
2468
2468
  }
2469
2469
  ) }),
2470
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$h["image-wrapper"], children: [
2471
- isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$h["loading-spinner"], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$h["spinner"] }) }),
2472
- error2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$h["error-message"], children: "Ошибка загрузки изображения" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
2470
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$i["image-wrapper"], children: [
2471
+ isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i["loading-spinner"], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i["spinner"] }) }),
2472
+ error2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i["error-message"], children: "Ошибка загрузки изображения" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
2473
2473
  "img",
2474
2474
  {
2475
2475
  src: imagesUrl[selectedImg],
@@ -2479,7 +2479,7 @@ const FOpenImgFull = ({
2479
2479
  setError(true);
2480
2480
  setIsLoading(false);
2481
2481
  },
2482
- className: styles$h["full-image"],
2482
+ className: styles$i["full-image"],
2483
2483
  onClick: handleImageClick,
2484
2484
  style: {
2485
2485
  cursor: "zoom-in",
@@ -2489,7 +2489,7 @@ const FOpenImgFull = ({
2489
2489
  }
2490
2490
  )
2491
2491
  ] }),
2492
- selectedImg < imagesUrl.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$h["arrow-right"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2492
+ selectedImg < imagesUrl.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i["arrow-right"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2493
2493
  FArrowIcon,
2494
2494
  {
2495
2495
  direction: "right",
@@ -2499,10 +2499,10 @@ const FOpenImgFull = ({
2499
2499
  ]
2500
2500
  }
2501
2501
  ),
2502
- imagesUrl.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$h["progress-indicator"], children: imagesUrl.map((_, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
2502
+ imagesUrl.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i["progress-indicator"], children: imagesUrl.map((_, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
2503
2503
  "div",
2504
2504
  {
2505
- className: `${styles$h["progress-dot"]} ${index === selectedImg ? styles$h["active"] : ""}`,
2505
+ className: `${styles$i["progress-dot"]} ${index === selectedImg ? styles$i["active"] : ""}`,
2506
2506
  onClick: () => setSelectedImg(index)
2507
2507
  },
2508
2508
  index
@@ -2515,7 +2515,7 @@ const card = "_card_1pttw_1";
2515
2515
  const warning$3 = "_warning_1pttw_16";
2516
2516
  const info$1 = "_info_1pttw_24";
2517
2517
  const alert$1 = "_alert_1pttw_32";
2518
- const styles$g = {
2518
+ const styles$h = {
2519
2519
  card,
2520
2520
  warning: warning$3,
2521
2521
  info: info$1,
@@ -2543,16 +2543,16 @@ const FAccordion = ({
2543
2543
  "div",
2544
2544
  {
2545
2545
  onClick,
2546
- className: `${styles$g.card} ${className || ""}`,
2546
+ className: `${styles$h.card} ${className || ""}`,
2547
2547
  id,
2548
2548
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
2549
2549
  "details",
2550
2550
  {
2551
- className: styles$g[variant],
2551
+ className: styles$h[variant],
2552
2552
  open: isOpen,
2553
2553
  style: st2,
2554
2554
  children: [
2555
- /* @__PURE__ */ jsxRuntimeExports.jsx("summary", { className: styles$g["fv-accord-title"], children: title }),
2555
+ /* @__PURE__ */ jsxRuntimeExports.jsx("summary", { className: styles$h["fv-accord-title"], children: title }),
2556
2556
  children
2557
2557
  ]
2558
2558
  }
@@ -2561,7 +2561,7 @@ const FAccordion = ({
2561
2561
  );
2562
2562
  };
2563
2563
  const container = "_container_6r9j2_1";
2564
- const styles$f = {
2564
+ const styles$g = {
2565
2565
  container,
2566
2566
  "custom-file": "_custom-file_6r9j2_6",
2567
2567
  "custom-file-input": "_custom-file-input_6r9j2_9",
@@ -2688,11 +2688,11 @@ const FInputFileForm = ({
2688
2688
  setUploadProgress({});
2689
2689
  }
2690
2690
  }, [deleteFile]);
2691
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$f.container, children: [
2691
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$g.container, children: [
2692
2692
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
2693
2693
  "div",
2694
2694
  {
2695
- className: `${styles$f["custom-file"]} ${styles$f["custom-file-dropzone"]} ${isDragging ? styles$f.dragging : ""}`,
2695
+ className: `${styles$g["custom-file"]} ${styles$g["custom-file-dropzone"]} ${isDragging ? styles$g.dragging : ""}`,
2696
2696
  style: st2,
2697
2697
  onDragOver: handleDragOver,
2698
2698
  onDragLeave: handleDragLeave,
@@ -2704,7 +2704,7 @@ const FInputFileForm = ({
2704
2704
  required,
2705
2705
  accept,
2706
2706
  type: "file",
2707
- className: `${styles$f["custom-file-input"]} ${className || ""}`,
2707
+ className: `${styles$g["custom-file-input"]} ${className || ""}`,
2708
2708
  name,
2709
2709
  id,
2710
2710
  title,
@@ -2715,11 +2715,11 @@ const FInputFileForm = ({
2715
2715
  ref: inputRef
2716
2716
  }
2717
2717
  ),
2718
- /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { htmlFor: id, className: styles$f["custom-file-label"], style: disabled2 ? { backgroundColor: "#F3F3F3", border: "1px dashed #C4C4C4" } : void 0, children: [
2718
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { htmlFor: id, className: styles$g["custom-file-label"], style: disabled2 ? { backgroundColor: "#F3F3F3", border: "1px dashed #C4C4C4" } : void 0, children: [
2719
2719
  /* @__PURE__ */ jsxRuntimeExports.jsx(
2720
2720
  "svg",
2721
2721
  {
2722
- className: `${styles$f["svg-icon"]} ${styles$f["icon-md"]}`,
2722
+ className: `${styles$g["svg-icon"]} ${styles$g["icon-md"]}`,
2723
2723
  focusable: "false",
2724
2724
  role: "img",
2725
2725
  viewBox: "0 0 36 35",
@@ -2748,8 +2748,8 @@ const FInputFileForm = ({
2748
2748
  ]
2749
2749
  }
2750
2750
  ),
2751
- errors.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$f.errors, children: errors.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$f.error, children: error2 }, index)) }),
2752
- showPreview && selectedFiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$f["custom-files-preview"], children: selectedFiles.map((file, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$f.fileItem, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2751
+ errors.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$g.errors, children: errors.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$g.error, children: error2 }, index)) }),
2752
+ showPreview && selectedFiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$g["custom-files-preview"], children: selectedFiles.map((file, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$g.fileItem, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2753
2753
  FFile,
2754
2754
  {
2755
2755
  name: file.name,
@@ -2760,7 +2760,7 @@ const FInputFileForm = ({
2760
2760
  ) }, index)) })
2761
2761
  ] });
2762
2762
  };
2763
- const styles$e = {
2763
+ const styles$f = {
2764
2764
  "f-select": "_f-select_16vqs_1",
2765
2765
  "f-select__control-element": "_f-select__control-element_16vqs_5"
2766
2766
  };
@@ -2790,7 +2790,7 @@ const FSelect = forwardRef(
2790
2790
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
2791
2791
  "div",
2792
2792
  {
2793
- className: `f-form-element ${styles$e["f-select"]}`,
2793
+ className: `f-form-element ${styles$f["f-select"]}`,
2794
2794
  style: mergedStyle,
2795
2795
  id: inputId + "-select-block",
2796
2796
  role: "group",
@@ -2815,7 +2815,7 @@ const FSelect = forwardRef(
2815
2815
  ...props,
2816
2816
  id: inputId,
2817
2817
  disabled: props.disabled || load,
2818
- className: `f-form-element__control-element ${styles$e["f-select__control-element"]} ${errText ? "error" : ""} ${props.className || ""}`,
2818
+ className: `f-form-element__control-element ${styles$f["f-select__control-element"]} ${errText ? "error" : ""} ${props.className || ""}`,
2819
2819
  children: !load && children
2820
2820
  }
2821
2821
  ),
@@ -2873,36 +2873,74 @@ const FSelectItem = ({
2873
2873
  }
2874
2874
  );
2875
2875
  };
2876
+ const styles$e = {
2877
+ "f-full-date-field__clear": "_f-full-date-field__clear_auayi_1"
2878
+ };
2876
2879
  const FFullDateField = forwardRef(
2877
2880
  ({
2878
2881
  label,
2879
2882
  st: st2,
2880
- value,
2883
+ value: valueProp,
2881
2884
  fullWidth,
2882
2885
  load = false,
2883
2886
  errText,
2884
2887
  helpText,
2885
2888
  width,
2886
2889
  height,
2890
+ onClear,
2891
+ disabled: disabled2,
2887
2892
  ...props
2888
2893
  }, ref) => {
2889
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
2890
- FTextField,
2891
- {
2892
- label,
2893
- st: st2,
2894
- width,
2895
- height,
2896
- fullWidth,
2897
- ref,
2898
- load,
2899
- value: load ? "" : value,
2900
- type: load ? "text" : "date",
2901
- helpText,
2902
- errText,
2903
- ...props
2894
+ const [innerValue, setInnerValue] = useState(valueProp);
2895
+ const isControlled = valueProp !== void 0;
2896
+ const value = isControlled ? valueProp : innerValue;
2897
+ const handleClear = (e) => {
2898
+ e.stopPropagation();
2899
+ if (disabled2 || load) return;
2900
+ if (onClear) onClear();
2901
+ if (!isControlled) setInnerValue("");
2902
+ if (props.onChange) {
2903
+ const event = {
2904
+ ...e,
2905
+ target: { ...e.target, value: "" }
2906
+ };
2907
+ props.onChange(event);
2904
2908
  }
2905
- );
2909
+ };
2910
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { position: "relative", width: fullWidth ? "calc(100% - 25px)" : width }, className: styles$e["f-full-date-field"], children: [
2911
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
2912
+ FTextField,
2913
+ {
2914
+ label,
2915
+ st: st2,
2916
+ width,
2917
+ height,
2918
+ fullWidth,
2919
+ ref,
2920
+ load,
2921
+ value: load ? "" : value,
2922
+ type: load ? "text" : "date",
2923
+ helpText,
2924
+ errText,
2925
+ disabled: disabled2,
2926
+ onChange: (e) => {
2927
+ if (!isControlled) setInnerValue(e.target.value);
2928
+ if (props.onChange) props.onChange(e);
2929
+ },
2930
+ ...props
2931
+ }
2932
+ ),
2933
+ !load && !disabled2 && value && String(value).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
2934
+ "span",
2935
+ {
2936
+ className: styles$e["f-full-date-field__clear"],
2937
+ onClick: handleClear,
2938
+ tabIndex: 0,
2939
+ "aria-label": "Очистить поле",
2940
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(FCloseIcon, { size: 18, color: "danger" })
2941
+ }
2942
+ )
2943
+ ] });
2906
2944
  }
2907
2945
  );
2908
2946
  const active$2 = "_active_j5nh9_38";