fui-material 2.7.12 → 2.7.13
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/f-ui-kit.es.js +281 -192
- package/dist/f-ui-kit.es.js.map +1 -1
- package/dist/f-ui-kit.umd.js +2 -2
- package/dist/f-ui-kit.umd.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/types/material/FSegmentedControl/FSegmentedControl.d.ts +92 -0
- package/dist/types/material/FSegmentedControl/index.d.ts +1 -0
- package/dist/types/material/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/f-ui-kit.es.js
CHANGED
|
@@ -114,7 +114,7 @@ FTrashIcon.displayName = "FTrashIcon";
|
|
|
114
114
|
const progressBar = "_progressBar_1xp9s_48";
|
|
115
115
|
const completed = "_completed_1xp9s_60";
|
|
116
116
|
const progress = "_progress_1xp9s_48";
|
|
117
|
-
const styles$
|
|
117
|
+
const styles$z = {
|
|
118
118
|
"file-preview-card": "_file-preview-card_1xp9s_1",
|
|
119
119
|
"file-preview-info": "_file-preview-info_1xp9s_22",
|
|
120
120
|
"file-preview-name": "_file-preview-name_1xp9s_28",
|
|
@@ -136,18 +136,18 @@ const FFile = ({
|
|
|
136
136
|
return /* @__PURE__ */ jsxs(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
|
-
className: `${styles$
|
|
139
|
+
className: `${styles$z["file-preview-card"]} ${className || ""}`,
|
|
140
140
|
id,
|
|
141
141
|
style: st,
|
|
142
142
|
children: [
|
|
143
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
144
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
145
|
-
typeof size === "number" && /* @__PURE__ */ jsxs("span", { className: styles$
|
|
143
|
+
/* @__PURE__ */ jsxs("div", { className: styles$z["file-preview-info"], children: [
|
|
144
|
+
/* @__PURE__ */ jsx("span", { className: styles$z["file-preview-name"], title: name, children: name }),
|
|
145
|
+
typeof size === "number" && /* @__PURE__ */ jsxs("span", { className: styles$z["file-preview-size"], children: [
|
|
146
146
|
Math.round(size / 1024),
|
|
147
147
|
" КБ"
|
|
148
148
|
] })
|
|
149
149
|
] }),
|
|
150
|
-
handleDelete && /* @__PURE__ */ jsx("div", { className: styles$
|
|
150
|
+
handleDelete && /* @__PURE__ */ jsx("div", { className: styles$z["trash-icon"], children: /* @__PURE__ */ jsx(
|
|
151
151
|
FTrashIcon,
|
|
152
152
|
{
|
|
153
153
|
size: 20,
|
|
@@ -155,10 +155,10 @@ const FFile = ({
|
|
|
155
155
|
handleClick: handleDelete
|
|
156
156
|
}
|
|
157
157
|
) }),
|
|
158
|
-
typeof progress2 === "number" && /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
158
|
+
typeof progress2 === "number" && /* @__PURE__ */ jsx("div", { className: `${styles$z.progressBar} ${progress2 === 100 ? styles$z.completed : ""}`, children: /* @__PURE__ */ jsx(
|
|
159
159
|
"div",
|
|
160
160
|
{
|
|
161
|
-
className: styles$
|
|
161
|
+
className: styles$z.progress,
|
|
162
162
|
style: { width: `${progress2}%` }
|
|
163
163
|
}
|
|
164
164
|
) })
|
|
@@ -261,7 +261,7 @@ const FButtonFile = ({
|
|
|
261
261
|
)) }) })
|
|
262
262
|
] });
|
|
263
263
|
};
|
|
264
|
-
const styles$
|
|
264
|
+
const styles$y = {
|
|
265
265
|
"f-text-field": "_f-text-field_200bb_1"
|
|
266
266
|
};
|
|
267
267
|
const FLoadIcon = React.forwardRef(({
|
|
@@ -340,7 +340,7 @@ const FTextField = forwardRef(
|
|
|
340
340
|
return /* @__PURE__ */ jsxs(
|
|
341
341
|
"div",
|
|
342
342
|
{
|
|
343
|
-
className: `f-form-element ${styles$
|
|
343
|
+
className: `f-form-element ${styles$y["f-text-field"]} ${className || ""}`,
|
|
344
344
|
style: mergedStyle,
|
|
345
345
|
role: "group",
|
|
346
346
|
id: inputId + "-text-field-block",
|
|
@@ -446,7 +446,7 @@ const FStack = ({
|
|
|
446
446
|
}
|
|
447
447
|
);
|
|
448
448
|
};
|
|
449
|
-
const styles$
|
|
449
|
+
const styles$x = {
|
|
450
450
|
"f-grid": "_f-grid_3g4xh_1",
|
|
451
451
|
"f-grid__col": "_f-grid__col_3g4xh_10",
|
|
452
452
|
"f-grid__col--auto": "_f-grid__col--auto_3g4xh_16",
|
|
@@ -549,21 +549,21 @@ const FGrid = ({
|
|
|
549
549
|
xxl: xxl ?? xl ?? lg ?? md ?? sm ?? xs
|
|
550
550
|
};
|
|
551
551
|
const getColumnClasses = () => {
|
|
552
|
-
if (colAuto) return styles$
|
|
553
|
-
const classes = [styles$
|
|
554
|
-
if (resolvedSizes.xs !== void 0) classes.push(styles$
|
|
555
|
-
if (resolvedSizes.sm !== void 0) classes.push(styles$
|
|
556
|
-
if (resolvedSizes.md !== void 0) classes.push(styles$
|
|
557
|
-
if (resolvedSizes.lg !== void 0) classes.push(styles$
|
|
558
|
-
if (resolvedSizes.xl !== void 0) classes.push(styles$
|
|
559
|
-
if (resolvedSizes.xxl !== void 0) classes.push(styles$
|
|
552
|
+
if (colAuto) return styles$x["f-grid__col--auto"];
|
|
553
|
+
const classes = [styles$x["f-grid__col"]];
|
|
554
|
+
if (resolvedSizes.xs !== void 0) classes.push(styles$x[`f-grid__col--xs-${resolvedSizes.xs}`]);
|
|
555
|
+
if (resolvedSizes.sm !== void 0) classes.push(styles$x[`f-grid__col--sm-${resolvedSizes.sm}`]);
|
|
556
|
+
if (resolvedSizes.md !== void 0) classes.push(styles$x[`f-grid__col--md-${resolvedSizes.md}`]);
|
|
557
|
+
if (resolvedSizes.lg !== void 0) classes.push(styles$x[`f-grid__col--lg-${resolvedSizes.lg}`]);
|
|
558
|
+
if (resolvedSizes.xl !== void 0) classes.push(styles$x[`f-grid__col--xl-${resolvedSizes.xl}`]);
|
|
559
|
+
if (resolvedSizes.xxl !== void 0) classes.push(styles$x[`f-grid__col--xxl-${resolvedSizes.xxl}`]);
|
|
560
560
|
return classes.join(" ");
|
|
561
561
|
};
|
|
562
562
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
563
563
|
obj === "container" && /* @__PURE__ */ jsx(
|
|
564
564
|
"div",
|
|
565
565
|
{
|
|
566
|
-
className: `${styles$
|
|
566
|
+
className: `${styles$x["f-grid"]} ${className || ""}`,
|
|
567
567
|
style,
|
|
568
568
|
id,
|
|
569
569
|
children
|
|
@@ -581,7 +581,7 @@ const FGrid = ({
|
|
|
581
581
|
obj === void 0 && /* @__PURE__ */ jsx("div", { className, style, id, children })
|
|
582
582
|
] });
|
|
583
583
|
};
|
|
584
|
-
const styles$
|
|
584
|
+
const styles$w = {
|
|
585
585
|
"f-grid-row": "_f-grid-row_1crbx_1",
|
|
586
586
|
"f-grid-row--justify-start": "_f-grid-row--justify-start_1crbx_7",
|
|
587
587
|
"f-grid-row--justify-center": "_f-grid-row--justify-center_1crbx_10",
|
|
@@ -603,21 +603,21 @@ const FGridRow = ({
|
|
|
603
603
|
}) => {
|
|
604
604
|
const getJustifyContentClass = () => {
|
|
605
605
|
if (!justifyContent) return "";
|
|
606
|
-
return styles$
|
|
606
|
+
return styles$w[`f-grid-row--justify-${justifyContent}`];
|
|
607
607
|
};
|
|
608
608
|
const getAlignItemsClass = () => {
|
|
609
609
|
if (!alignItems) return "";
|
|
610
|
-
return styles$
|
|
610
|
+
return styles$w[`f-grid-row--align-${alignItems}`];
|
|
611
611
|
};
|
|
612
612
|
const rowClasses = [
|
|
613
|
-
styles$
|
|
613
|
+
styles$w["f-grid-row"],
|
|
614
614
|
getJustifyContentClass(),
|
|
615
615
|
getAlignItemsClass(),
|
|
616
616
|
className
|
|
617
617
|
].filter(Boolean).join(" ");
|
|
618
618
|
return /* @__PURE__ */ jsx("div", { className: rowClasses, style: st, id, children });
|
|
619
619
|
};
|
|
620
|
-
const styles$
|
|
620
|
+
const styles$v = {
|
|
621
621
|
"f-container": "_f-container_g9ck3_1",
|
|
622
622
|
"container-fluid": "_container-fluid_g9ck3_1",
|
|
623
623
|
"container-xxl": "_container-xxl_g9ck3_1",
|
|
@@ -637,7 +637,7 @@ const FContainer = ({
|
|
|
637
637
|
return /* @__PURE__ */ jsx(
|
|
638
638
|
"div",
|
|
639
639
|
{
|
|
640
|
-
className: `${styles$
|
|
640
|
+
className: `${styles$v["f-container"]} ${styles$v[maxWidth]} ${className || ""}`,
|
|
641
641
|
style: st,
|
|
642
642
|
id,
|
|
643
643
|
children
|
|
@@ -645,7 +645,7 @@ const FContainer = ({
|
|
|
645
645
|
);
|
|
646
646
|
};
|
|
647
647
|
const panel = "_panel_yplsg_1";
|
|
648
|
-
const styles$
|
|
648
|
+
const styles$u = {
|
|
649
649
|
panel,
|
|
650
650
|
"panel-default": "_panel-default_yplsg_6",
|
|
651
651
|
"panel-heading": "_panel-heading_yplsg_12",
|
|
@@ -678,15 +678,15 @@ const FPaper = ({
|
|
|
678
678
|
return /* @__PURE__ */ jsxs(
|
|
679
679
|
"div",
|
|
680
680
|
{
|
|
681
|
-
className: `${styles$
|
|
681
|
+
className: `${styles$u["panel"]} ${styles$u["panel-default"]} ${className || ""} ${animated ? `${styles$u[`animated-${animated.name}`]} ${animated.name}` : ""}`,
|
|
682
682
|
style: st,
|
|
683
683
|
id,
|
|
684
684
|
onAnimationEnd,
|
|
685
685
|
children: [
|
|
686
|
-
label && /* @__PURE__ */ jsx("div", { className: styles$
|
|
686
|
+
label && /* @__PURE__ */ jsx("div", { className: styles$u["panel-heading"], children: /* @__PURE__ */ jsx(
|
|
687
687
|
"h3",
|
|
688
688
|
{
|
|
689
|
-
className: styles$
|
|
689
|
+
className: styles$u["panel-title"],
|
|
690
690
|
style: { fontSize: fontSizeLabel },
|
|
691
691
|
children: label
|
|
692
692
|
}
|
|
@@ -694,7 +694,7 @@ const FPaper = ({
|
|
|
694
694
|
/* @__PURE__ */ jsx(
|
|
695
695
|
"div",
|
|
696
696
|
{
|
|
697
|
-
className: styles$
|
|
697
|
+
className: styles$u["panel-body"],
|
|
698
698
|
style: { fontSize: fontSizeBody },
|
|
699
699
|
children
|
|
700
700
|
}
|
|
@@ -707,7 +707,7 @@ const bordered = "_bordered_ld5gh_18";
|
|
|
707
707
|
const left$1 = "_left_ld5gh_40";
|
|
708
708
|
const center = "_center_ld5gh_43";
|
|
709
709
|
const right = "_right_ld5gh_46";
|
|
710
|
-
const styles$
|
|
710
|
+
const styles$t = {
|
|
711
711
|
"f-table-component": "_f-table-component_ld5gh_1",
|
|
712
712
|
"f-table-component__table": "_f-table-component__table_ld5gh_7",
|
|
713
713
|
bordered,
|
|
@@ -738,7 +738,7 @@ const FTableHead = ({
|
|
|
738
738
|
{
|
|
739
739
|
style: st,
|
|
740
740
|
...props,
|
|
741
|
-
className: `${styles$
|
|
741
|
+
className: `${styles$t["f-table-component__table_header"]} ${isSticky ? styles$t["is-sticky"] : ""} ${props.className || ""} ${styles$t[textAlignment]}`,
|
|
742
742
|
children
|
|
743
743
|
}
|
|
744
744
|
);
|
|
@@ -831,7 +831,7 @@ const FTableBody = ({
|
|
|
831
831
|
} else {
|
|
832
832
|
visibleItems = flatChildren;
|
|
833
833
|
}
|
|
834
|
-
return /* @__PURE__ */ jsxs("tbody", { ref: tableBodyRef, style: st, ...props, className: `${styles$
|
|
834
|
+
return /* @__PURE__ */ jsxs("tbody", { ref: tableBodyRef, style: st, ...props, className: `${styles$t["f-table-component__table_body"]} ${props.className || ""} ${styles$t[textAlignment]}`, children: [
|
|
835
835
|
virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsx("tr", { style: { height: topOffset } }),
|
|
836
836
|
visibleItems.map((child, idx) => React.isValidElement(child) ? React.cloneElement(child, { "data-row-index": virtualizationEnabled ? startIdx + idx : idx, key: virtualizationEnabled ? startIdx + idx : idx }) : child),
|
|
837
837
|
virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsx("tr", { style: { height: bottomOffset } })
|
|
@@ -874,14 +874,14 @@ const FTable = ({
|
|
|
874
874
|
"div",
|
|
875
875
|
{
|
|
876
876
|
ref: tableWrapperRef,
|
|
877
|
-
className: styles$
|
|
877
|
+
className: styles$t["f-table-component"],
|
|
878
878
|
style: { overflowX, overflowY },
|
|
879
879
|
children: /* @__PURE__ */ jsx(
|
|
880
880
|
"table",
|
|
881
881
|
{
|
|
882
882
|
style: { ...st, tableLayout: layout },
|
|
883
883
|
...props,
|
|
884
|
-
className: `table ${styles$
|
|
884
|
+
className: `table ${styles$t["f-table-component__table"]} ${styles$t["bordered"]} ${styles$t["bordered-half"]} ${props.className || ""}`,
|
|
885
885
|
children: React.Children.map(children, (child) => {
|
|
886
886
|
if (React.isValidElement(child) && child.type === FTableHead) {
|
|
887
887
|
const headProps = child.props;
|
|
@@ -919,14 +919,14 @@ const FTableRow = ({
|
|
|
919
919
|
...props
|
|
920
920
|
}) => {
|
|
921
921
|
const rowClasses = [
|
|
922
|
-
styles$
|
|
922
|
+
styles$t["f-table-component__table_row"],
|
|
923
923
|
props.className || ""
|
|
924
924
|
];
|
|
925
925
|
if (disableHover) {
|
|
926
|
-
rowClasses.push(styles$
|
|
926
|
+
rowClasses.push(styles$t["f-table-component__table_row_no-hover"]);
|
|
927
927
|
}
|
|
928
928
|
if (textAlignment !== void 0) {
|
|
929
|
-
rowClasses.push(styles$
|
|
929
|
+
rowClasses.push(styles$t[textAlignment]);
|
|
930
930
|
}
|
|
931
931
|
return /* @__PURE__ */ jsx(
|
|
932
932
|
"tr",
|
|
@@ -960,7 +960,7 @@ const FTableHeaderCell = ({
|
|
|
960
960
|
rowSpan: row && row > 1 ? row : void 0,
|
|
961
961
|
colSpan: col && col > 1 ? col : void 0,
|
|
962
962
|
...props,
|
|
963
|
-
className: `${styles$
|
|
963
|
+
className: `${styles$t["f-table-component__table_header-cell"]} ${props.className || ""}`,
|
|
964
964
|
style,
|
|
965
965
|
children
|
|
966
966
|
}
|
|
@@ -988,7 +988,7 @@ const FTableDataCell = ({
|
|
|
988
988
|
rowSpan: row && row > 1 ? row : void 0,
|
|
989
989
|
colSpan: col && col > 1 ? col : void 0,
|
|
990
990
|
...props,
|
|
991
|
-
className: `${styles$
|
|
991
|
+
className: `${styles$t["f-table-component__table_body-cell"]} ${props.className || ""}`,
|
|
992
992
|
style,
|
|
993
993
|
children
|
|
994
994
|
}
|
|
@@ -1004,7 +1004,7 @@ const FTableFooter = ({
|
|
|
1004
1004
|
{
|
|
1005
1005
|
style: st,
|
|
1006
1006
|
...props,
|
|
1007
|
-
className: `${styles$
|
|
1007
|
+
className: `${styles$t["f-table-component__table_footer"]} ${props.className || ""}`,
|
|
1008
1008
|
children
|
|
1009
1009
|
}
|
|
1010
1010
|
);
|
|
@@ -1012,7 +1012,7 @@ const FTableFooter = ({
|
|
|
1012
1012
|
const entering = "_entering_dwagt_17";
|
|
1013
1013
|
const exiting = "_exiting_dwagt_23";
|
|
1014
1014
|
const hide = "_hide_dwagt_45";
|
|
1015
|
-
const styles$
|
|
1015
|
+
const styles$s = {
|
|
1016
1016
|
"f-dialog": "_f-dialog_dwagt_1",
|
|
1017
1017
|
entering,
|
|
1018
1018
|
"f-dialog__content": "_f-dialog__content_dwagt_20",
|
|
@@ -1092,14 +1092,14 @@ const FDialog = ({
|
|
|
1092
1092
|
adaptive: "fit-content"
|
|
1093
1093
|
};
|
|
1094
1094
|
const contentWidth = widthStyles[width];
|
|
1095
|
-
const animationClass = isClosing ? styles$
|
|
1095
|
+
const animationClass = isClosing ? styles$s["exiting"] : styles$s["entering"];
|
|
1096
1096
|
return ReactDOM.createPortal(
|
|
1097
1097
|
/* @__PURE__ */ jsx(
|
|
1098
1098
|
"div",
|
|
1099
1099
|
{
|
|
1100
1100
|
id,
|
|
1101
1101
|
style: st,
|
|
1102
|
-
className: `${styles$
|
|
1102
|
+
className: `${styles$s["f-dialog"]} ${animationClass} ${className || ""}`,
|
|
1103
1103
|
onMouseDown: (e) => {
|
|
1104
1104
|
if (e.target === e.currentTarget) {
|
|
1105
1105
|
closeButtonBackPage == null ? void 0 : closeButtonBackPage(false);
|
|
@@ -1109,7 +1109,7 @@ const FDialog = ({
|
|
|
1109
1109
|
children: /* @__PURE__ */ jsx(
|
|
1110
1110
|
"div",
|
|
1111
1111
|
{
|
|
1112
|
-
className: `${styles$
|
|
1112
|
+
className: `${styles$s["f-dialog__content"]} ${hide2 ? styles$s["hide"] : ""}`,
|
|
1113
1113
|
style: {
|
|
1114
1114
|
width: contentWidth
|
|
1115
1115
|
},
|
|
@@ -1150,9 +1150,9 @@ const FCloseIcon = React.forwardRef(({
|
|
|
1150
1150
|
});
|
|
1151
1151
|
FCloseIcon.displayName = "FCloseIcon";
|
|
1152
1152
|
const FDialogHeader = ({ title: title2, handleClose }) => {
|
|
1153
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1154
|
-
/* @__PURE__ */ jsx("h3", { className: styles$
|
|
1155
|
-
handleClose && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1153
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$s["f-dialog__header"], children: [
|
|
1154
|
+
/* @__PURE__ */ jsx("h3", { className: styles$s["f-dialog__header_title"], children: title2 }),
|
|
1155
|
+
handleClose && /* @__PURE__ */ jsx("div", { className: styles$s["f-dialog__header_close"], children: /* @__PURE__ */ jsx(
|
|
1156
1156
|
FCloseIcon,
|
|
1157
1157
|
{
|
|
1158
1158
|
handleClose,
|
|
@@ -1167,7 +1167,7 @@ const FDialogBody = ({ st, children, scroll = true }) => {
|
|
|
1167
1167
|
...scroll ? { overflowY: "auto" } : {},
|
|
1168
1168
|
...st
|
|
1169
1169
|
};
|
|
1170
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
1170
|
+
return /* @__PURE__ */ jsx("div", { className: styles$s["f-dialog__body"], style, children });
|
|
1171
1171
|
};
|
|
1172
1172
|
const FDialogFooter = ({ children, className, st, id }) => {
|
|
1173
1173
|
return /* @__PURE__ */ jsx(
|
|
@@ -1175,7 +1175,7 @@ const FDialogFooter = ({ children, className, st, id }) => {
|
|
|
1175
1175
|
{
|
|
1176
1176
|
id,
|
|
1177
1177
|
style: st,
|
|
1178
|
-
className: `${styles$
|
|
1178
|
+
className: `${styles$s["f-dialog__footer"]} ${className || ""}`,
|
|
1179
1179
|
children
|
|
1180
1180
|
}
|
|
1181
1181
|
);
|
|
@@ -1190,7 +1190,7 @@ const info$2 = "_info_1lhk7_62";
|
|
|
1190
1190
|
const light = "_light_1lhk7_66";
|
|
1191
1191
|
const dark = "_dark_1lhk7_70";
|
|
1192
1192
|
const link = "_link_1lhk7_74";
|
|
1193
|
-
const styles$
|
|
1193
|
+
const styles$r = {
|
|
1194
1194
|
"authorization-spinner": "_authorization-spinner_1lhk7_1",
|
|
1195
1195
|
"spinner-item": "_spinner-item_1lhk7_7",
|
|
1196
1196
|
loader,
|
|
@@ -1208,14 +1208,14 @@ const FProgress = ({ st, color = "primary", id, className }) => {
|
|
|
1208
1208
|
return /* @__PURE__ */ jsx(
|
|
1209
1209
|
"div",
|
|
1210
1210
|
{
|
|
1211
|
-
className: `${styles$
|
|
1211
|
+
className: `${styles$r["authorization-spinner"]} ${styles$r.visible} ${className || ""}`,
|
|
1212
1212
|
id,
|
|
1213
1213
|
style: st,
|
|
1214
|
-
children: /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1214
|
+
children: /* @__PURE__ */ jsx("div", { className: `${styles$r["spinner-item"]} ${styles$r[color]}` })
|
|
1215
1215
|
}
|
|
1216
1216
|
);
|
|
1217
1217
|
};
|
|
1218
|
-
const styles$
|
|
1218
|
+
const styles$q = {
|
|
1219
1219
|
"f-preloader": "_f-preloader_17f9x_1",
|
|
1220
1220
|
"active-preloader": "_active-preloader_17f9x_10"
|
|
1221
1221
|
};
|
|
@@ -1242,13 +1242,13 @@ const FPreloader = ({
|
|
|
1242
1242
|
return /* @__PURE__ */ jsx(
|
|
1243
1243
|
"div",
|
|
1244
1244
|
{
|
|
1245
|
-
className: `${styles$
|
|
1245
|
+
className: `${styles$q["f-preloader"]} ${open ? styles$q["active-preloader"] : ""}`,
|
|
1246
1246
|
style: mergedStyle,
|
|
1247
1247
|
children
|
|
1248
1248
|
}
|
|
1249
1249
|
);
|
|
1250
1250
|
};
|
|
1251
|
-
const styles$
|
|
1251
|
+
const styles$p = {
|
|
1252
1252
|
"f-checkbox": "_f-checkbox_9rvqg_1"
|
|
1253
1253
|
};
|
|
1254
1254
|
const FCheckbox = forwardRef(
|
|
@@ -1261,7 +1261,7 @@ const FCheckbox = forwardRef(
|
|
|
1261
1261
|
return /* @__PURE__ */ jsx(
|
|
1262
1262
|
"div",
|
|
1263
1263
|
{
|
|
1264
|
-
className: `${styles$
|
|
1264
|
+
className: `${styles$p["f-checkbox"]} ${className || ""}`,
|
|
1265
1265
|
style: st,
|
|
1266
1266
|
children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1267
1267
|
/* @__PURE__ */ jsx("input", { ref, type: "checkbox", ...props }),
|
|
@@ -1271,7 +1271,7 @@ const FCheckbox = forwardRef(
|
|
|
1271
1271
|
);
|
|
1272
1272
|
}
|
|
1273
1273
|
);
|
|
1274
|
-
const styles$
|
|
1274
|
+
const styles$o = {
|
|
1275
1275
|
"f-radio": "_f-radio_cwhmx_1"
|
|
1276
1276
|
};
|
|
1277
1277
|
const FRadioButton = forwardRef(
|
|
@@ -1284,7 +1284,7 @@ const FRadioButton = forwardRef(
|
|
|
1284
1284
|
return /* @__PURE__ */ jsx(
|
|
1285
1285
|
"div",
|
|
1286
1286
|
{
|
|
1287
|
-
className: `${styles$
|
|
1287
|
+
className: `${styles$o["f-radio"]} ${className || ""}`,
|
|
1288
1288
|
style: st,
|
|
1289
1289
|
children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1290
1290
|
/* @__PURE__ */ jsx("input", { ref, type: "radio", ...props }),
|
|
@@ -1343,15 +1343,15 @@ const usePagination = ({
|
|
|
1343
1343
|
};
|
|
1344
1344
|
const dots = "_dots_aham2_29";
|
|
1345
1345
|
const selected$1 = "_selected_aham2_33";
|
|
1346
|
-
const disabled$
|
|
1346
|
+
const disabled$3 = "_disabled_aham2_37";
|
|
1347
1347
|
const arrow = "_arrow_aham2_43";
|
|
1348
1348
|
const left = "_left_aham2_56";
|
|
1349
|
-
const styles$
|
|
1349
|
+
const styles$n = {
|
|
1350
1350
|
"pagination-container": "_pagination-container_aham2_1",
|
|
1351
1351
|
"pagination-item": "_pagination-item_aham2_9",
|
|
1352
1352
|
dots,
|
|
1353
1353
|
selected: selected$1,
|
|
1354
|
-
disabled: disabled$
|
|
1354
|
+
disabled: disabled$3,
|
|
1355
1355
|
arrow,
|
|
1356
1356
|
left
|
|
1357
1357
|
};
|
|
@@ -1380,26 +1380,26 @@ const FPagination = ({
|
|
|
1380
1380
|
return /* @__PURE__ */ jsxs(
|
|
1381
1381
|
"ul",
|
|
1382
1382
|
{
|
|
1383
|
-
className: `${styles$
|
|
1383
|
+
className: `${styles$n["pagination-container"]} ${className || ""}`,
|
|
1384
1384
|
style: st,
|
|
1385
1385
|
id,
|
|
1386
1386
|
children: [
|
|
1387
1387
|
/* @__PURE__ */ jsx(
|
|
1388
1388
|
"li",
|
|
1389
1389
|
{
|
|
1390
|
-
className: `${styles$
|
|
1390
|
+
className: `${styles$n["pagination-item"]} ${currentPage === 1 ? styles$n.disabled : ""}`,
|
|
1391
1391
|
onClick: onPrevious,
|
|
1392
|
-
children: /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1392
|
+
children: /* @__PURE__ */ jsx("div", { className: `${styles$n.arrow} ${styles$n.left}` })
|
|
1393
1393
|
}
|
|
1394
1394
|
),
|
|
1395
1395
|
paginationRange.map((pageNumber, index) => {
|
|
1396
1396
|
if (pageNumber === DOTS) {
|
|
1397
|
-
return /* @__PURE__ */ jsx("li", { className: `${styles$
|
|
1397
|
+
return /* @__PURE__ */ jsx("li", { className: `${styles$n["pagination-item"]} ${styles$n.dots}`, children: "…" }, index);
|
|
1398
1398
|
}
|
|
1399
1399
|
return /* @__PURE__ */ jsx(
|
|
1400
1400
|
"li",
|
|
1401
1401
|
{
|
|
1402
|
-
className: `${styles$
|
|
1402
|
+
className: `${styles$n["pagination-item"]} ${pageNumber === currentPage ? styles$n.selected : ""}`,
|
|
1403
1403
|
onClick: () => onPageChange(pageNumber),
|
|
1404
1404
|
children: pageNumber
|
|
1405
1405
|
},
|
|
@@ -1409,16 +1409,16 @@ const FPagination = ({
|
|
|
1409
1409
|
/* @__PURE__ */ jsx(
|
|
1410
1410
|
"li",
|
|
1411
1411
|
{
|
|
1412
|
-
className: `${styles$
|
|
1412
|
+
className: `${styles$n["pagination-item"]} ${currentPage === lastPage ? styles$n.disabled : ""}`,
|
|
1413
1413
|
onClick: onNext,
|
|
1414
|
-
children: /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1414
|
+
children: /* @__PURE__ */ jsx("div", { className: `${styles$n.arrow} ${styles$n.right}` })
|
|
1415
1415
|
}
|
|
1416
1416
|
)
|
|
1417
1417
|
]
|
|
1418
1418
|
}
|
|
1419
1419
|
);
|
|
1420
1420
|
};
|
|
1421
|
-
const styles$
|
|
1421
|
+
const styles$m = {
|
|
1422
1422
|
"f-time-line": "_f-time-line_1ybe7_1",
|
|
1423
1423
|
"f-time-line__block": "_f-time-line__block_1ybe7_10",
|
|
1424
1424
|
"f-time-line__block-circle": "_f-time-line__block-circle_1ybe7_29",
|
|
@@ -1432,7 +1432,7 @@ const FTimeline = ({
|
|
|
1432
1432
|
id,
|
|
1433
1433
|
className
|
|
1434
1434
|
}) => {
|
|
1435
|
-
return /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1435
|
+
return /* @__PURE__ */ jsx("div", { className: `${styles$m["f-time-line"]} ${className || ""}`, style: st, id, children });
|
|
1436
1436
|
};
|
|
1437
1437
|
const FTimelineCard = ({
|
|
1438
1438
|
children,
|
|
@@ -1441,17 +1441,17 @@ const FTimelineCard = ({
|
|
|
1441
1441
|
id,
|
|
1442
1442
|
className
|
|
1443
1443
|
}) => {
|
|
1444
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
1445
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1446
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1447
|
-
title2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1448
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1444
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$m["f-time-line__block"]} ${className || ""}`, id, children: [
|
|
1445
|
+
/* @__PURE__ */ jsx("div", { className: styles$m["f-time-line__block-circle"] }),
|
|
1446
|
+
/* @__PURE__ */ jsxs("div", { className: styles$m["f-time-line__block-inner"], style: st, children: [
|
|
1447
|
+
title2 && /* @__PURE__ */ jsx("div", { className: styles$m["f-time-line__block-title"], children: title2 }),
|
|
1448
|
+
/* @__PURE__ */ jsx("div", { className: styles$m["f-time-line__block-content"], children })
|
|
1449
1449
|
] })
|
|
1450
1450
|
] });
|
|
1451
1451
|
};
|
|
1452
1452
|
const spinner = "_spinner_f7bma_133";
|
|
1453
|
-
const active$
|
|
1454
|
-
const styles$
|
|
1453
|
+
const active$4 = "_active_f7bma_183";
|
|
1454
|
+
const styles$l = {
|
|
1455
1455
|
"fv-opn-img-full": "_fv-opn-img-full_f7bma_1",
|
|
1456
1456
|
"fv-opn-img-full-body": "_fv-opn-img-full-body_f7bma_19",
|
|
1457
1457
|
"close-button": "_close-button_f7bma_33",
|
|
@@ -1465,7 +1465,7 @@ const styles$k = {
|
|
|
1465
1465
|
"error-message": "_error-message_f7bma_147",
|
|
1466
1466
|
"progress-indicator": "_progress-indicator_f7bma_158",
|
|
1467
1467
|
"progress-dot": "_progress-dot_f7bma_172",
|
|
1468
|
-
active: active$
|
|
1468
|
+
active: active$4
|
|
1469
1469
|
};
|
|
1470
1470
|
const FArrowIcon = React.forwardRef(({
|
|
1471
1471
|
color = "primary",
|
|
@@ -1590,10 +1590,10 @@ const FOpenImgFull = ({
|
|
|
1590
1590
|
{
|
|
1591
1591
|
openAndClose,
|
|
1592
1592
|
st,
|
|
1593
|
-
className: `${styles$
|
|
1593
|
+
className: `${styles$l["fv-opn-img-full"]} ${className || ""}`,
|
|
1594
1594
|
id,
|
|
1595
|
-
children: /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1596
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1595
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles$l["fv-opn-img-full-body"], children: [
|
|
1596
|
+
/* @__PURE__ */ jsx("div", { className: styles$l["close-button"], children: handleClose && /* @__PURE__ */ jsx(
|
|
1597
1597
|
FCloseIcon,
|
|
1598
1598
|
{
|
|
1599
1599
|
handleClose: () => {
|
|
@@ -1605,21 +1605,21 @@ const FOpenImgFull = ({
|
|
|
1605
1605
|
/* @__PURE__ */ jsxs(
|
|
1606
1606
|
"div",
|
|
1607
1607
|
{
|
|
1608
|
-
className: styles$
|
|
1608
|
+
className: styles$l["image-container"],
|
|
1609
1609
|
onTouchStart: handleTouchStart,
|
|
1610
1610
|
onTouchMove: handleTouchMove,
|
|
1611
1611
|
onTouchEnd: handleTouchEnd,
|
|
1612
1612
|
children: [
|
|
1613
|
-
selectedImg > 0 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1613
|
+
selectedImg > 0 && /* @__PURE__ */ jsx("div", { className: styles$l["arrow-left"], children: /* @__PURE__ */ jsx(
|
|
1614
1614
|
FArrowIcon,
|
|
1615
1615
|
{
|
|
1616
1616
|
direction: "left",
|
|
1617
1617
|
handleClick: () => setSelectedImg(selectedImg - 1)
|
|
1618
1618
|
}
|
|
1619
1619
|
) }),
|
|
1620
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1621
|
-
isLoading && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1622
|
-
error2 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
1620
|
+
/* @__PURE__ */ jsxs("div", { className: styles$l["image-wrapper"], children: [
|
|
1621
|
+
isLoading && /* @__PURE__ */ jsx("div", { className: styles$l["loading-spinner"], children: /* @__PURE__ */ jsx("div", { className: styles$l["spinner"] }) }),
|
|
1622
|
+
error2 ? /* @__PURE__ */ jsx("div", { className: styles$l["error-message"], children: "Ошибка загрузки изображения" }) : /* @__PURE__ */ jsx(
|
|
1623
1623
|
"img",
|
|
1624
1624
|
{
|
|
1625
1625
|
src: imagesUrl[selectedImg],
|
|
@@ -1629,7 +1629,7 @@ const FOpenImgFull = ({
|
|
|
1629
1629
|
setError(true);
|
|
1630
1630
|
setIsLoading(false);
|
|
1631
1631
|
},
|
|
1632
|
-
className: styles$
|
|
1632
|
+
className: styles$l["full-image"],
|
|
1633
1633
|
onClick: handleImageClick,
|
|
1634
1634
|
style: {
|
|
1635
1635
|
cursor: "zoom-in",
|
|
@@ -1639,7 +1639,7 @@ const FOpenImgFull = ({
|
|
|
1639
1639
|
}
|
|
1640
1640
|
)
|
|
1641
1641
|
] }),
|
|
1642
|
-
selectedImg < imagesUrl.length - 1 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1642
|
+
selectedImg < imagesUrl.length - 1 && /* @__PURE__ */ jsx("div", { className: styles$l["arrow-right"], children: /* @__PURE__ */ jsx(
|
|
1643
1643
|
FArrowIcon,
|
|
1644
1644
|
{
|
|
1645
1645
|
direction: "right",
|
|
@@ -1649,10 +1649,10 @@ const FOpenImgFull = ({
|
|
|
1649
1649
|
]
|
|
1650
1650
|
}
|
|
1651
1651
|
),
|
|
1652
|
-
imagesUrl.length > 1 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1652
|
+
imagesUrl.length > 1 && /* @__PURE__ */ jsx("div", { className: styles$l["progress-indicator"], children: imagesUrl.map((_, index) => /* @__PURE__ */ jsx(
|
|
1653
1653
|
"div",
|
|
1654
1654
|
{
|
|
1655
|
-
className: `${styles$
|
|
1655
|
+
className: `${styles$l["progress-dot"]} ${index === selectedImg ? styles$l["active"] : ""}`,
|
|
1656
1656
|
onClick: () => setSelectedImg(index)
|
|
1657
1657
|
},
|
|
1658
1658
|
index
|
|
@@ -1665,7 +1665,7 @@ const card$2 = "_card_1pttw_1";
|
|
|
1665
1665
|
const warning$3 = "_warning_1pttw_16";
|
|
1666
1666
|
const info$1 = "_info_1pttw_24";
|
|
1667
1667
|
const alert = "_alert_1pttw_32";
|
|
1668
|
-
const styles$
|
|
1668
|
+
const styles$k = {
|
|
1669
1669
|
card: card$2,
|
|
1670
1670
|
warning: warning$3,
|
|
1671
1671
|
info: info$1,
|
|
@@ -1693,16 +1693,16 @@ const FAccordion = ({
|
|
|
1693
1693
|
"div",
|
|
1694
1694
|
{
|
|
1695
1695
|
onClick,
|
|
1696
|
-
className: `${styles$
|
|
1696
|
+
className: `${styles$k.card} ${className || ""}`,
|
|
1697
1697
|
id,
|
|
1698
1698
|
children: /* @__PURE__ */ jsxs(
|
|
1699
1699
|
"details",
|
|
1700
1700
|
{
|
|
1701
|
-
className: styles$
|
|
1701
|
+
className: styles$k[variant],
|
|
1702
1702
|
open: isOpen,
|
|
1703
1703
|
style: st,
|
|
1704
1704
|
children: [
|
|
1705
|
-
/* @__PURE__ */ jsx("summary", { className: styles$
|
|
1705
|
+
/* @__PURE__ */ jsx("summary", { className: styles$k["fv-accord-title"], children: title2 }),
|
|
1706
1706
|
children
|
|
1707
1707
|
]
|
|
1708
1708
|
}
|
|
@@ -1711,7 +1711,7 @@ const FAccordion = ({
|
|
|
1711
1711
|
);
|
|
1712
1712
|
};
|
|
1713
1713
|
const container$1 = "_container_6r9j2_1";
|
|
1714
|
-
const styles$
|
|
1714
|
+
const styles$j = {
|
|
1715
1715
|
container: container$1,
|
|
1716
1716
|
"custom-file": "_custom-file_6r9j2_6",
|
|
1717
1717
|
"custom-file-input": "_custom-file-input_6r9j2_9",
|
|
@@ -1841,11 +1841,11 @@ const FInputFileForm = ({
|
|
|
1841
1841
|
setUploadProgress({});
|
|
1842
1842
|
}
|
|
1843
1843
|
}, [deleteFile]);
|
|
1844
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1844
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$j.container, children: [
|
|
1845
1845
|
/* @__PURE__ */ jsxs(
|
|
1846
1846
|
"div",
|
|
1847
1847
|
{
|
|
1848
|
-
className: `${styles$
|
|
1848
|
+
className: `${styles$j["custom-file"]} ${styles$j["custom-file-dropzone"]} ${isDragging ? styles$j.dragging : ""}`,
|
|
1849
1849
|
style: st,
|
|
1850
1850
|
onDragOver: handleDragOver,
|
|
1851
1851
|
onDragLeave: handleDragLeave,
|
|
@@ -1857,7 +1857,7 @@ const FInputFileForm = ({
|
|
|
1857
1857
|
required,
|
|
1858
1858
|
accept,
|
|
1859
1859
|
type: "file",
|
|
1860
|
-
className: `${styles$
|
|
1860
|
+
className: `${styles$j["custom-file-input"]} ${className || ""}`,
|
|
1861
1861
|
name,
|
|
1862
1862
|
id,
|
|
1863
1863
|
title: title2,
|
|
@@ -1868,7 +1868,7 @@ const FInputFileForm = ({
|
|
|
1868
1868
|
ref: inputRef
|
|
1869
1869
|
}
|
|
1870
1870
|
),
|
|
1871
|
-
/* @__PURE__ */ jsxs("label", { htmlFor: id, className: styles$
|
|
1871
|
+
/* @__PURE__ */ jsxs("label", { htmlFor: id, className: styles$j["custom-file-label"], style: disabled2 ? { backgroundColor: "#F3F3F3", border: "1px dashed #C4C4C4" } : void 0, children: [
|
|
1872
1872
|
/* @__PURE__ */ jsxs("svg", { width: "30", height: "30", fill: "currentColor", viewBox: "0 0 16 16", children: [
|
|
1873
1873
|
/* @__PURE__ */ jsx("path", { "fill-rule": "evenodd", d: "M7.646 5.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1-.708.708L8.5 6.707V10.5a.5.5 0 0 1-1 0V6.707L6.354 7.854a.5.5 0 1 1-.708-.708z" }),
|
|
1874
1874
|
/* @__PURE__ */ jsx("path", { d: "M4.406 3.342A5.53 5.53 0 0 1 8 2c2.69 0 4.923 2 5.166 4.579C14.758 6.804 16 8.137 16 9.773 16 11.569 14.502 13 12.687 13H3.781C1.708 13 0 11.366 0 9.318c0-1.763 1.266-3.223 2.942-3.593.143-.863.698-1.723 1.464-2.383m.653.757c-.757.653-1.153 1.44-1.153 2.056v.448l-.445.049C2.064 6.805 1 7.952 1 9.318 1 10.785 2.23 12 3.781 12h8.906C13.98 12 15 10.988 15 9.773c0-1.216-1.02-2.228-2.313-2.228h-.5v-.5C12.188 4.825 10.328 3 8 3a4.53 4.53 0 0 0-2.941 1.1z" })
|
|
@@ -1894,8 +1894,8 @@ const FInputFileForm = ({
|
|
|
1894
1894
|
]
|
|
1895
1895
|
}
|
|
1896
1896
|
),
|
|
1897
|
-
errors.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1898
|
-
showPreview && selectedFiles.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1897
|
+
errors.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$j.errors, children: errors.map((error2, index) => /* @__PURE__ */ jsx("div", { className: styles$j.error, children: error2 }, index)) }),
|
|
1898
|
+
showPreview && selectedFiles.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$j["custom-files-preview"], children: selectedFiles.map((file, index) => /* @__PURE__ */ jsx("div", { className: styles$j.fileItem, children: /* @__PURE__ */ jsx(
|
|
1899
1899
|
FFile,
|
|
1900
1900
|
{
|
|
1901
1901
|
name: file.name,
|
|
@@ -1906,7 +1906,7 @@ const FInputFileForm = ({
|
|
|
1906
1906
|
) }, index)) })
|
|
1907
1907
|
] });
|
|
1908
1908
|
};
|
|
1909
|
-
const styles$
|
|
1909
|
+
const styles$i = {
|
|
1910
1910
|
"f-select": "_f-select_1n6ag_1",
|
|
1911
1911
|
"f-select__control-element": "_f-select__control-element_1n6ag_5"
|
|
1912
1912
|
};
|
|
@@ -1936,7 +1936,7 @@ const FSelect = forwardRef(
|
|
|
1936
1936
|
return /* @__PURE__ */ jsxs(
|
|
1937
1937
|
"div",
|
|
1938
1938
|
{
|
|
1939
|
-
className: `f-form-element ${styles$
|
|
1939
|
+
className: `f-form-element ${styles$i["f-select"]}`,
|
|
1940
1940
|
style: mergedStyle,
|
|
1941
1941
|
id: inputId + "-select-block",
|
|
1942
1942
|
role: "group",
|
|
@@ -1961,7 +1961,7 @@ const FSelect = forwardRef(
|
|
|
1961
1961
|
...props,
|
|
1962
1962
|
id: inputId,
|
|
1963
1963
|
disabled: props.disabled || load,
|
|
1964
|
-
className: `f-form-element__control-element ${styles$
|
|
1964
|
+
className: `f-form-element__control-element ${styles$i["f-select__control-element"]} ${errText ? "error" : ""} ${props.className || ""}`,
|
|
1965
1965
|
children: !load && children
|
|
1966
1966
|
}
|
|
1967
1967
|
),
|
|
@@ -2056,14 +2056,14 @@ const FFullDateField = forwardRef(
|
|
|
2056
2056
|
);
|
|
2057
2057
|
}
|
|
2058
2058
|
);
|
|
2059
|
-
const active$
|
|
2060
|
-
const styles$
|
|
2059
|
+
const active$3 = "_active_yhck3_41";
|
|
2060
|
+
const styles$h = {
|
|
2061
2061
|
"f-select-search-db": "_f-select-search-db_yhck3_1",
|
|
2062
2062
|
"f-select-search-db__input": "_f-select-search-db__input_yhck3_7",
|
|
2063
2063
|
"f-select-search-db__input_field": "_f-select-search-db__input_field_yhck3_11",
|
|
2064
2064
|
"f-select-search-db__input_arrow": "_f-select-search-db__input_arrow_yhck3_14",
|
|
2065
2065
|
"f-select-search-db__dropdown": "_f-select-search-db__dropdown_yhck3_21",
|
|
2066
|
-
active: active$
|
|
2066
|
+
active: active$3,
|
|
2067
2067
|
"f-select-search-db__dropdown_content": "_f-select-search-db__dropdown_content_yhck3_45"
|
|
2068
2068
|
};
|
|
2069
2069
|
const FSelectSearchDb = ({
|
|
@@ -2241,12 +2241,12 @@ const FSelectSearchDb = ({
|
|
|
2241
2241
|
"div",
|
|
2242
2242
|
{
|
|
2243
2243
|
ref: containerRef,
|
|
2244
|
-
className: `${styles$
|
|
2244
|
+
className: `${styles$h["f-select-search-db"]} ${className || ""}`,
|
|
2245
2245
|
style: st,
|
|
2246
2246
|
id,
|
|
2247
2247
|
"data-position": dropdownPosition,
|
|
2248
2248
|
children: [
|
|
2249
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2249
|
+
/* @__PURE__ */ jsxs("div", { className: styles$h["f-select-search-db__input"], children: [
|
|
2250
2250
|
/* @__PURE__ */ jsx(
|
|
2251
2251
|
FTextField,
|
|
2252
2252
|
{
|
|
@@ -2257,7 +2257,7 @@ const FSelectSearchDb = ({
|
|
|
2257
2257
|
label,
|
|
2258
2258
|
type,
|
|
2259
2259
|
placeholder,
|
|
2260
|
-
className: styles$
|
|
2260
|
+
className: styles$h["f-select-search-db__input_field"],
|
|
2261
2261
|
value: valueInput,
|
|
2262
2262
|
onChange: handlerOnChange,
|
|
2263
2263
|
onFocus,
|
|
@@ -2274,7 +2274,7 @@ const FSelectSearchDb = ({
|
|
|
2274
2274
|
!load && !disabled2 && arrObject.length > 0 && /* @__PURE__ */ jsx(
|
|
2275
2275
|
"div",
|
|
2276
2276
|
{
|
|
2277
|
-
className: styles$
|
|
2277
|
+
className: styles$h["f-select-search-db__input_arrow"],
|
|
2278
2278
|
style: { marginTop: label ? "28px" : "7px" },
|
|
2279
2279
|
onClick: handleArrowClick,
|
|
2280
2280
|
children: /* @__PURE__ */ jsx(FArrowIcon, { direction: isDropdownOpen ? "up" : "down", size: 15 })
|
|
@@ -2286,8 +2286,8 @@ const FSelectSearchDb = ({
|
|
|
2286
2286
|
"div",
|
|
2287
2287
|
{
|
|
2288
2288
|
ref: dropdownRef,
|
|
2289
|
-
className: `${styles$
|
|
2290
|
-
children: arrObject.length === 0 && valueInput.trim() === "" ? /* @__PURE__ */ jsx("li", { children: "Введите текст" }) : arrObject.length === 0 && valueInput.trim() !== "" && !load ? /* @__PURE__ */ jsx("li", { children: "Ничего не найдено" }) : /* @__PURE__ */ jsx("ul", { className: styles$
|
|
2289
|
+
className: `${styles$h["f-select-search-db__dropdown"]} ${isDropdownOpen ? styles$h.active : ""}`,
|
|
2290
|
+
children: arrObject.length === 0 && valueInput.trim() === "" ? /* @__PURE__ */ jsx("li", { children: "Введите текст" }) : arrObject.length === 0 && valueInput.trim() !== "" && !load ? /* @__PURE__ */ jsx("li", { children: "Ничего не найдено" }) : /* @__PURE__ */ jsx("ul", { className: styles$h["f-select-search-db__dropdown_content"], children: arrObject.slice(0, 10).map((opt, index) => /* @__PURE__ */ jsx("li", { onMouseDown: () => handleItemClick(opt), children: selectItem(opt) }, index)) })
|
|
2291
2291
|
}
|
|
2292
2292
|
),
|
|
2293
2293
|
dropdownPortalRef.current
|
|
@@ -2296,7 +2296,7 @@ const FSelectSearchDb = ({
|
|
|
2296
2296
|
}
|
|
2297
2297
|
);
|
|
2298
2298
|
};
|
|
2299
|
-
const styles$
|
|
2299
|
+
const styles$g = {
|
|
2300
2300
|
"f-text-area": "_f-text-area_1ywhr_1"
|
|
2301
2301
|
};
|
|
2302
2302
|
const FTextArea = forwardRef(
|
|
@@ -2325,7 +2325,7 @@ const FTextArea = forwardRef(
|
|
|
2325
2325
|
return /* @__PURE__ */ jsxs(
|
|
2326
2326
|
"div",
|
|
2327
2327
|
{
|
|
2328
|
-
className: `f-form-element ${styles$
|
|
2328
|
+
className: `f-form-element ${styles$g["f-text-area"]} ${className || ""}`,
|
|
2329
2329
|
style: mergedStyle,
|
|
2330
2330
|
role: "group",
|
|
2331
2331
|
id: areaId + "-text-area-block",
|
|
@@ -2697,13 +2697,13 @@ const FNative = ({
|
|
|
2697
2697
|
};
|
|
2698
2698
|
const horizontal = "_horizontal_zlvc7_1";
|
|
2699
2699
|
const vertical = "_vertical_zlvc7_7";
|
|
2700
|
-
const active$
|
|
2701
|
-
const styles$
|
|
2700
|
+
const active$2 = "_active_zlvc7_50";
|
|
2701
|
+
const styles$f = {
|
|
2702
2702
|
"f-tabs": "_f-tabs_zlvc7_1",
|
|
2703
2703
|
horizontal,
|
|
2704
2704
|
vertical,
|
|
2705
2705
|
"f-tabs__tab": "_f-tabs__tab_zlvc7_16",
|
|
2706
|
-
active: active$
|
|
2706
|
+
active: active$2
|
|
2707
2707
|
};
|
|
2708
2708
|
const FTabs = ({
|
|
2709
2709
|
children,
|
|
@@ -2717,7 +2717,7 @@ const FTabs = ({
|
|
|
2717
2717
|
{
|
|
2718
2718
|
id,
|
|
2719
2719
|
style: st,
|
|
2720
|
-
className: `${styles$
|
|
2720
|
+
className: `${styles$f["f-tabs"]} ${styles$f[orientation]} ${className || ""}`,
|
|
2721
2721
|
children
|
|
2722
2722
|
}
|
|
2723
2723
|
);
|
|
@@ -2734,20 +2734,20 @@ const FTab = forwardRef(({
|
|
|
2734
2734
|
ref,
|
|
2735
2735
|
type: "button",
|
|
2736
2736
|
style: st,
|
|
2737
|
-
className: `${styles$
|
|
2737
|
+
className: `${styles$f["f-tabs__tab"]} ${active2 ? styles$f["active"] : ""} ${props.className || ""}`,
|
|
2738
2738
|
...props,
|
|
2739
2739
|
children
|
|
2740
2740
|
}
|
|
2741
2741
|
);
|
|
2742
2742
|
});
|
|
2743
2743
|
FTab.displayName = "FTab";
|
|
2744
|
-
const disabled$
|
|
2745
|
-
const styles$
|
|
2744
|
+
const disabled$2 = "_disabled_2ty2i_40";
|
|
2745
|
+
const styles$e = {
|
|
2746
2746
|
"f-dropdown": "_f-dropdown_2ty2i_1",
|
|
2747
2747
|
"f-dropdown__arrow": "_f-dropdown__arrow_2ty2i_6",
|
|
2748
2748
|
"f-dropdown__content": "_f-dropdown__content_2ty2i_10",
|
|
2749
2749
|
"f-dropdown__content-link": "_f-dropdown__content-link_2ty2i_28",
|
|
2750
|
-
disabled: disabled$
|
|
2750
|
+
disabled: disabled$2,
|
|
2751
2751
|
"f-dropdown__content--open": "_f-dropdown__content--open_2ty2i_48"
|
|
2752
2752
|
};
|
|
2753
2753
|
const FDropdown = forwardRef(({
|
|
@@ -2792,7 +2792,7 @@ const FDropdown = forwardRef(({
|
|
|
2792
2792
|
return child;
|
|
2793
2793
|
});
|
|
2794
2794
|
};
|
|
2795
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
2795
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$e["f-dropdown"], ref, ...props, children: [
|
|
2796
2796
|
/* @__PURE__ */ jsx(
|
|
2797
2797
|
FButton,
|
|
2798
2798
|
{
|
|
@@ -2801,21 +2801,21 @@ const FDropdown = forwardRef(({
|
|
|
2801
2801
|
size,
|
|
2802
2802
|
disabled: disabled2,
|
|
2803
2803
|
st,
|
|
2804
|
-
className: `${styles$
|
|
2804
|
+
className: `${styles$e["f-dropdown__button"]} ${className || ""}`,
|
|
2805
2805
|
id,
|
|
2806
2806
|
onClick: () => setIsOpen((v) => !v),
|
|
2807
2807
|
"aria-haspopup": "menu",
|
|
2808
2808
|
"aria-expanded": isOpen,
|
|
2809
2809
|
children: /* @__PURE__ */ jsxs(FStack, { direction: "row", spacing: 2, justifyContent: "center", alignItems: "center", children: [
|
|
2810
2810
|
label,
|
|
2811
|
-
/* @__PURE__ */ jsx(FArrowIcon, { className: styles$
|
|
2811
|
+
/* @__PURE__ */ jsx(FArrowIcon, { className: styles$e["f-dropdown__arrow"], size: 16, color: "light", direction: isOpen ? "up" : "down" })
|
|
2812
2812
|
] })
|
|
2813
2813
|
}
|
|
2814
2814
|
),
|
|
2815
2815
|
/* @__PURE__ */ jsx(
|
|
2816
2816
|
"div",
|
|
2817
2817
|
{
|
|
2818
|
-
className: styles$
|
|
2818
|
+
className: styles$e["f-dropdown__content"] + (isOpen ? " " + styles$e["f-dropdown__content--open"] : ""),
|
|
2819
2819
|
role: "menu",
|
|
2820
2820
|
children: renderChildren()
|
|
2821
2821
|
}
|
|
@@ -2836,7 +2836,7 @@ const FDropdownItem = ({
|
|
|
2836
2836
|
{
|
|
2837
2837
|
id,
|
|
2838
2838
|
style: st,
|
|
2839
|
-
className: `${styles$
|
|
2839
|
+
className: `${styles$e["f-dropdown__content-link"]} ${className || ""} ${disabled2 ? styles$e["disabled"] : ""}`,
|
|
2840
2840
|
onClick: disabled2 ? void 0 : onClick,
|
|
2841
2841
|
"aria-disabled": disabled2,
|
|
2842
2842
|
role: "menuitem",
|
|
@@ -2844,7 +2844,7 @@ const FDropdownItem = ({
|
|
|
2844
2844
|
}
|
|
2845
2845
|
);
|
|
2846
2846
|
};
|
|
2847
|
-
const styles$
|
|
2847
|
+
const styles$d = {
|
|
2848
2848
|
"f-search-box": "_f-search-box_1ce2j_1",
|
|
2849
2849
|
"f-search-box__input": "_f-search-box__input_1ce2j_7",
|
|
2850
2850
|
"f-search-box__button": "_f-search-box__button_1ce2j_13",
|
|
@@ -2870,7 +2870,7 @@ const FSearchBox = forwardRef(
|
|
|
2870
2870
|
type,
|
|
2871
2871
|
...props
|
|
2872
2872
|
}, ref) => {
|
|
2873
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
2873
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$d["f-search-box"]} form-group`, style: st, children: [
|
|
2874
2874
|
/* @__PURE__ */ jsx(
|
|
2875
2875
|
FTextField,
|
|
2876
2876
|
{
|
|
@@ -2884,14 +2884,14 @@ const FSearchBox = forwardRef(
|
|
|
2884
2884
|
errText: typeof errText === "string" ? [errText] : errText,
|
|
2885
2885
|
load,
|
|
2886
2886
|
...props,
|
|
2887
|
-
className: `${styles$
|
|
2887
|
+
className: `${styles$d["f-search-box__input"]} ${props.className || ""}`
|
|
2888
2888
|
}
|
|
2889
2889
|
),
|
|
2890
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2890
|
+
/* @__PURE__ */ jsxs("div", { className: styles$d["f-search-box__button"], style: { marginTop: label ? "21.8px" : "0" }, children: [
|
|
2891
2891
|
/* @__PURE__ */ jsx(
|
|
2892
2892
|
FButton,
|
|
2893
2893
|
{
|
|
2894
|
-
className: `${styles$
|
|
2894
|
+
className: `${styles$d["f-search-box__button_search"]} ${clearDataFromInput ? styles$d["clear-on"] : ""}`,
|
|
2895
2895
|
type: "button",
|
|
2896
2896
|
disabled: disabled2,
|
|
2897
2897
|
onClick: onClickButton,
|
|
@@ -2903,7 +2903,7 @@ const FSearchBox = forwardRef(
|
|
|
2903
2903
|
clearDataFromInput && /* @__PURE__ */ jsx(
|
|
2904
2904
|
FButton,
|
|
2905
2905
|
{
|
|
2906
|
-
className: `${styles$
|
|
2906
|
+
className: `${styles$d["f-search-box__button_clear"]}`,
|
|
2907
2907
|
type: "button",
|
|
2908
2908
|
disabled: disabled2,
|
|
2909
2909
|
onClick: clearDataFromInput,
|
|
@@ -2916,7 +2916,7 @@ const FSearchBox = forwardRef(
|
|
|
2916
2916
|
] });
|
|
2917
2917
|
}
|
|
2918
2918
|
);
|
|
2919
|
-
const styles$
|
|
2919
|
+
const styles$c = {
|
|
2920
2920
|
"f-carousel": "_f-carousel_d5w12_1",
|
|
2921
2921
|
"f-carousel__viewport": "_f-carousel__viewport_d5w12_8",
|
|
2922
2922
|
"f-carousel__track": "_f-carousel__track_d5w12_12",
|
|
@@ -2999,10 +2999,10 @@ const FCarousel = ({
|
|
|
2999
2999
|
const handleTouchEnd = () => {
|
|
3000
3000
|
startX.current = null;
|
|
3001
3001
|
};
|
|
3002
|
-
const rootClass = [styles$
|
|
3002
|
+
const rootClass = [styles$c["f-carousel"], className].filter(Boolean).join(" ");
|
|
3003
3003
|
const trackClass = [
|
|
3004
|
-
styles$
|
|
3005
|
-
isAnimating ? styles$
|
|
3004
|
+
styles$c["f-carousel__track"],
|
|
3005
|
+
isAnimating ? styles$c["f-carousel__track--animating"] : ""
|
|
3006
3006
|
].filter(Boolean).join(" ");
|
|
3007
3007
|
const trackStyle = {
|
|
3008
3008
|
transform: `translateX(-${100 / itemsCount * current}%)`,
|
|
@@ -3013,7 +3013,7 @@ const FCarousel = ({
|
|
|
3013
3013
|
showArrows && /* @__PURE__ */ jsx(
|
|
3014
3014
|
"button",
|
|
3015
3015
|
{
|
|
3016
|
-
className: `${styles$
|
|
3016
|
+
className: `${styles$c["f-carousel__arrow"]} ${styles$c["f-carousel__arrow--left"]}`,
|
|
3017
3017
|
onClick: handlePrev,
|
|
3018
3018
|
disabled: !loop && current === 0,
|
|
3019
3019
|
"aria-label": "Назад",
|
|
@@ -3023,14 +3023,14 @@ const FCarousel = ({
|
|
|
3023
3023
|
/* @__PURE__ */ jsx(
|
|
3024
3024
|
"div",
|
|
3025
3025
|
{
|
|
3026
|
-
className: styles$
|
|
3026
|
+
className: styles$c["f-carousel__viewport"],
|
|
3027
3027
|
onTouchStart: handleTouchStart,
|
|
3028
3028
|
onTouchMove: handleTouchMove,
|
|
3029
3029
|
onTouchEnd: handleTouchEnd,
|
|
3030
3030
|
children: /* @__PURE__ */ jsx("div", { ref: trackRef, className: trackClass, style: trackStyle, children: children.map((child, idx) => /* @__PURE__ */ jsx(
|
|
3031
3031
|
"div",
|
|
3032
3032
|
{
|
|
3033
|
-
className: styles$
|
|
3033
|
+
className: styles$c["f-carousel__item"],
|
|
3034
3034
|
style: { width: `${100 / itemsCount}%` },
|
|
3035
3035
|
children: child
|
|
3036
3036
|
},
|
|
@@ -3041,19 +3041,19 @@ const FCarousel = ({
|
|
|
3041
3041
|
showArrows && /* @__PURE__ */ jsx(
|
|
3042
3042
|
"button",
|
|
3043
3043
|
{
|
|
3044
|
-
className: `${styles$
|
|
3044
|
+
className: `${styles$c["f-carousel__arrow"]} ${styles$c["f-carousel__arrow--right"]}`,
|
|
3045
3045
|
onClick: handleNext,
|
|
3046
3046
|
disabled: !loop && current >= itemsCount - visibleCount,
|
|
3047
3047
|
"aria-label": "Вперёд",
|
|
3048
3048
|
children: /* @__PURE__ */ jsx("img", { src: arrowRight, alt: "Следующий слайд" })
|
|
3049
3049
|
}
|
|
3050
3050
|
),
|
|
3051
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3051
|
+
/* @__PURE__ */ jsx("div", { className: styles$c["f-carousel__indicators"], children: Array.from({ length: itemsCount - visibleCount + 1 }).map((_, idx) => /* @__PURE__ */ jsx(
|
|
3052
3052
|
"button",
|
|
3053
3053
|
{
|
|
3054
3054
|
className: [
|
|
3055
|
-
styles$
|
|
3056
|
-
idx === current ? styles$
|
|
3055
|
+
styles$c["f-carousel__indicator"],
|
|
3056
|
+
idx === current ? styles$c["f-carousel__indicator--active"] : ""
|
|
3057
3057
|
].join(" "),
|
|
3058
3058
|
onClick: () => setCurrent(idx),
|
|
3059
3059
|
"aria-label": `Перейти к слайду ${idx + 1}`
|
|
@@ -3067,10 +3067,10 @@ const FCarouselItem = ({
|
|
|
3067
3067
|
className,
|
|
3068
3068
|
id
|
|
3069
3069
|
}) => {
|
|
3070
|
-
return /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
3070
|
+
return /* @__PURE__ */ jsx("div", { className: `${styles$c["f-carousel-item"]} ${className || ""}`, id, children });
|
|
3071
3071
|
};
|
|
3072
3072
|
const skeleton = "_skeleton_1ojrt_1";
|
|
3073
|
-
const styles$
|
|
3073
|
+
const styles$b = {
|
|
3074
3074
|
"skeleton-block": "_skeleton-block_1ojrt_1",
|
|
3075
3075
|
skeleton
|
|
3076
3076
|
};
|
|
@@ -3080,7 +3080,7 @@ const FSkeleton = ({ children, enable, width, height }) => {
|
|
|
3080
3080
|
const skeletons = useRef([]);
|
|
3081
3081
|
const createSkeleton = (element) => {
|
|
3082
3082
|
const skeleton2 = document.createElement("div");
|
|
3083
|
-
skeleton2.className = styles$
|
|
3083
|
+
skeleton2.className = styles$b.skeleton;
|
|
3084
3084
|
const computedStyle = window.getComputedStyle(element);
|
|
3085
3085
|
skeleton2.style.width = width ?? computedStyle.width;
|
|
3086
3086
|
skeleton2.style.height = height ?? computedStyle.height;
|
|
@@ -3127,16 +3127,16 @@ const FSkeleton = ({ children, enable, width, height }) => {
|
|
|
3127
3127
|
restoreOriginalElements();
|
|
3128
3128
|
};
|
|
3129
3129
|
}, [enable]);
|
|
3130
|
-
return /* @__PURE__ */ jsx("div", { ref: elementRef, className: styles$
|
|
3130
|
+
return /* @__PURE__ */ jsx("div", { ref: elementRef, className: styles$b["skeleton-block"], children });
|
|
3131
3131
|
};
|
|
3132
|
-
const active = "_active_lv3xi_122";
|
|
3133
|
-
const styles$
|
|
3132
|
+
const active$1 = "_active_lv3xi_122";
|
|
3133
|
+
const styles$a = {
|
|
3134
3134
|
"wave-nav-wrapper": "_wave-nav-wrapper_lv3xi_5",
|
|
3135
3135
|
"wave-nav-grid-item": "_wave-nav-grid-item_lv3xi_17",
|
|
3136
3136
|
"wave-nav-bar": "_wave-nav-bar_lv3xi_27",
|
|
3137
3137
|
"wave-nav-list": "_wave-nav-list_lv3xi_48",
|
|
3138
3138
|
"wave-nav-item": "_wave-nav-item_lv3xi_75",
|
|
3139
|
-
active
|
|
3139
|
+
active: active$1
|
|
3140
3140
|
};
|
|
3141
3141
|
const FNavigateBar = ({
|
|
3142
3142
|
st,
|
|
@@ -3144,7 +3144,7 @@ const FNavigateBar = ({
|
|
|
3144
3144
|
id,
|
|
3145
3145
|
className
|
|
3146
3146
|
}) => {
|
|
3147
|
-
return /* @__PURE__ */ jsx(FGrid, { obj: "container", id, className: `${styles$
|
|
3147
|
+
return /* @__PURE__ */ jsx(FGrid, { obj: "container", id, className: `${styles$a["wave-nav-wrapper"]} ${className || ""}`, children: /* @__PURE__ */ jsx(FGridRow, { children: /* @__PURE__ */ jsx(FGrid, { obj: "item", sm: 12, className: styles$a["wave-nav-grid-item"], children: /* @__PURE__ */ jsx("nav", { style: st, className: styles$a["wave-nav-bar"], children: /* @__PURE__ */ jsx("ul", { className: styles$a["wave-nav-list"], children }) }) }) }) });
|
|
3148
3148
|
};
|
|
3149
3149
|
const FNavigateBarItem = ({
|
|
3150
3150
|
st,
|
|
@@ -3160,7 +3160,7 @@ const FNavigateBarItem = ({
|
|
|
3160
3160
|
{
|
|
3161
3161
|
id,
|
|
3162
3162
|
style: st || style,
|
|
3163
|
-
className: `${styles$
|
|
3163
|
+
className: `${styles$a["wave-nav-item"]} ${activeClass ? styles$a.active : ""} ${className || ""}`,
|
|
3164
3164
|
...rest,
|
|
3165
3165
|
children
|
|
3166
3166
|
}
|
|
@@ -3175,8 +3175,8 @@ const countBadge = "_countBadge_14i30_114";
|
|
|
3175
3175
|
const linksList = "_linksList_14i30_124";
|
|
3176
3176
|
const linkItem = "_linkItem_14i30_131";
|
|
3177
3177
|
const badge = "_badge_14i30_172";
|
|
3178
|
-
const disabled = "_disabled_14i30_197";
|
|
3179
|
-
const styles$
|
|
3178
|
+
const disabled$1 = "_disabled_14i30_197";
|
|
3179
|
+
const styles$9 = {
|
|
3180
3180
|
reportsPageContainer,
|
|
3181
3181
|
searchBar,
|
|
3182
3182
|
reportsGrid,
|
|
@@ -3186,7 +3186,7 @@ const styles$8 = {
|
|
|
3186
3186
|
linksList,
|
|
3187
3187
|
linkItem,
|
|
3188
3188
|
badge,
|
|
3189
|
-
disabled
|
|
3189
|
+
disabled: disabled$1
|
|
3190
3190
|
};
|
|
3191
3191
|
const MenuSearchContext = createContext("");
|
|
3192
3192
|
const FMenuBlockLinks = ({
|
|
@@ -3202,8 +3202,8 @@ const FMenuBlockLinks = ({
|
|
|
3202
3202
|
...columns ? { "--cols": columns } : {},
|
|
3203
3203
|
...st
|
|
3204
3204
|
};
|
|
3205
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
3206
|
-
withSearch && /* @__PURE__ */ jsx("div", { className: styles$
|
|
3205
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$9.reportsPageContainer} ${className ?? ""}`.trim(), id, children: [
|
|
3206
|
+
withSearch && /* @__PURE__ */ jsx("div", { className: styles$9.searchBar, children: /* @__PURE__ */ jsx(
|
|
3207
3207
|
"input",
|
|
3208
3208
|
{
|
|
3209
3209
|
type: "text",
|
|
@@ -3212,7 +3212,7 @@ const FMenuBlockLinks = ({
|
|
|
3212
3212
|
onChange: (e) => setSearchValue(e.target.value)
|
|
3213
3213
|
}
|
|
3214
3214
|
) }),
|
|
3215
|
-
/* @__PURE__ */ jsx(MenuSearchContext.Provider, { value: searchValue, children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
3215
|
+
/* @__PURE__ */ jsx(MenuSearchContext.Provider, { value: searchValue, children: /* @__PURE__ */ jsx("div", { className: styles$9.reportsGrid, style: layoutStyle, children }) })
|
|
3216
3216
|
] });
|
|
3217
3217
|
};
|
|
3218
3218
|
const getElementText = (node) => {
|
|
@@ -3248,11 +3248,11 @@ const FMenuLinks = ({
|
|
|
3248
3248
|
const badgeText = badges[originalIndex] || child.props["data-badge"];
|
|
3249
3249
|
const childClass = [
|
|
3250
3250
|
child.props.className,
|
|
3251
|
-
styles$
|
|
3252
|
-
isDisabled ? styles$
|
|
3251
|
+
styles$9.linkItem,
|
|
3252
|
+
isDisabled ? styles$9.disabled : ""
|
|
3253
3253
|
].filter(Boolean).join(" ");
|
|
3254
3254
|
const innerContent = badgeText ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3255
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
3255
|
+
/* @__PURE__ */ jsx("span", { className: styles$9.badge, children: badgeText }),
|
|
3256
3256
|
child.props.children
|
|
3257
3257
|
] }) : child.props.children;
|
|
3258
3258
|
return React.cloneElement(child, {
|
|
@@ -3265,15 +3265,15 @@ const FMenuLinks = ({
|
|
|
3265
3265
|
}
|
|
3266
3266
|
});
|
|
3267
3267
|
});
|
|
3268
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
3269
|
-
title2 && /* @__PURE__ */ jsxs("div", { className: styles$
|
|
3268
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$9.card} ${className ?? ""}`.trim(), style: st, id, children: [
|
|
3269
|
+
title2 && /* @__PURE__ */ jsxs("div", { className: styles$9.cardHeader, children: [
|
|
3270
3270
|
/* @__PURE__ */ jsx("h3", { children: title2 }),
|
|
3271
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
3271
|
+
/* @__PURE__ */ jsx("span", { className: styles$9.countBadge, children: filteredChildren.length })
|
|
3272
3272
|
] }),
|
|
3273
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3273
|
+
/* @__PURE__ */ jsx("div", { className: styles$9.linksList, children: enhancedChildren })
|
|
3274
3274
|
] });
|
|
3275
3275
|
};
|
|
3276
|
-
const styles$
|
|
3276
|
+
const styles$8 = {
|
|
3277
3277
|
"f-tooltip": "_f-tooltip_xpnbo_1",
|
|
3278
3278
|
"f-tooltip--open": "_f-tooltip--open_xpnbo_17",
|
|
3279
3279
|
"f-tooltip--exiting": "_f-tooltip--exiting_xpnbo_22",
|
|
@@ -3462,11 +3462,11 @@ const FTooltip = ({
|
|
|
3462
3462
|
wrappedChild = cloneElement(children, childProps);
|
|
3463
3463
|
}
|
|
3464
3464
|
const tooltipClasses = [
|
|
3465
|
-
styles$
|
|
3466
|
-
styles$
|
|
3467
|
-
arrow2 ? styles$
|
|
3468
|
-
isVisible ? styles$
|
|
3469
|
-
isExiting ? styles$
|
|
3465
|
+
styles$8["f-tooltip"],
|
|
3466
|
+
styles$8[`f-tooltip--${placement}`],
|
|
3467
|
+
arrow2 ? styles$8["f-tooltip--with-arrow"] : "",
|
|
3468
|
+
isVisible ? styles$8["f-tooltip--open"] : "",
|
|
3469
|
+
isExiting ? styles$8["f-tooltip--exiting"] : "",
|
|
3470
3470
|
className
|
|
3471
3471
|
].filter(Boolean).join(" ");
|
|
3472
3472
|
const tooltipElement = mountTooltip && title2 ? /* @__PURE__ */ jsxs(
|
|
@@ -3477,8 +3477,8 @@ const FTooltip = ({
|
|
|
3477
3477
|
style: { ...style, ...tooltipStyles },
|
|
3478
3478
|
role: "tooltip",
|
|
3479
3479
|
children: [
|
|
3480
|
-
arrow2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
3481
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3480
|
+
arrow2 && /* @__PURE__ */ jsx("div", { className: styles$8["f-tooltip__arrow"] }),
|
|
3481
|
+
/* @__PURE__ */ jsx("div", { className: styles$8["f-tooltip__content"], children: title2 })
|
|
3482
3482
|
]
|
|
3483
3483
|
}
|
|
3484
3484
|
) : null;
|
|
@@ -3490,7 +3490,7 @@ const FTooltip = ({
|
|
|
3490
3490
|
const rotate = "_rotate_1kvw2_38";
|
|
3491
3491
|
const focused = "_focused_1kvw2_87";
|
|
3492
3492
|
const selected = "_selected_1kvw2_90";
|
|
3493
|
-
const styles$
|
|
3493
|
+
const styles$7 = {
|
|
3494
3494
|
"f-search-select": "_f-search-select_1kvw2_3",
|
|
3495
3495
|
"f-select-native-hidden": "_f-select-native-hidden_1kvw2_9",
|
|
3496
3496
|
"f-select-actions": "_f-select-actions_1kvw2_20",
|
|
@@ -3521,7 +3521,7 @@ const HighlightedText = ({ text, highlight }) => {
|
|
|
3521
3521
|
const regex = new RegExp(`(${escapeRegExp(highlight)})`, "gi");
|
|
3522
3522
|
const parts = text.split(regex);
|
|
3523
3523
|
return /* @__PURE__ */ jsx("span", { children: parts.map(
|
|
3524
|
-
(part, i) => regex.test(part) ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3524
|
+
(part, i) => regex.test(part) ? /* @__PURE__ */ jsx("span", { className: styles$7["f-select-highlight"], children: part }, i) : /* @__PURE__ */ jsx("span", { children: part }, i)
|
|
3525
3525
|
) });
|
|
3526
3526
|
};
|
|
3527
3527
|
const FSearchableSelect = forwardRef(
|
|
@@ -3734,7 +3734,7 @@ const FSearchableSelect = forwardRef(
|
|
|
3734
3734
|
return /* @__PURE__ */ jsxs(
|
|
3735
3735
|
"div",
|
|
3736
3736
|
{
|
|
3737
|
-
className: `f-form-element ${styles$
|
|
3737
|
+
className: `f-form-element ${styles$7["f-search-select"]} ${restProps.className || ""}`,
|
|
3738
3738
|
style: mergedStyle,
|
|
3739
3739
|
ref: containerRef,
|
|
3740
3740
|
id: inputId + "-block",
|
|
@@ -3756,7 +3756,7 @@ const FSearchableSelect = forwardRef(
|
|
|
3756
3756
|
value: restProps.value !== void 0 ? String(restProps.value) : "",
|
|
3757
3757
|
onChange: () => {
|
|
3758
3758
|
},
|
|
3759
|
-
className: styles$
|
|
3759
|
+
className: styles$7["f-select-native-hidden"],
|
|
3760
3760
|
tabIndex: -1,
|
|
3761
3761
|
disabled: disabled2,
|
|
3762
3762
|
"aria-hidden": "true"
|
|
@@ -3770,7 +3770,7 @@ const FSearchableSelect = forwardRef(
|
|
|
3770
3770
|
id: inputId,
|
|
3771
3771
|
type: "text",
|
|
3772
3772
|
autoComplete: "off",
|
|
3773
|
-
className: `f-form-element__control-element ${styles$
|
|
3773
|
+
className: `f-form-element__control-element ${styles$7["has-icons"]} ${errText ? "error" : ""}`,
|
|
3774
3774
|
...restProps,
|
|
3775
3775
|
disabled: disabled2 || load,
|
|
3776
3776
|
value: searchQuery,
|
|
@@ -3792,41 +3792,41 @@ const FSearchableSelect = forwardRef(
|
|
|
3792
3792
|
}
|
|
3793
3793
|
}
|
|
3794
3794
|
),
|
|
3795
|
-
load ? /* @__PURE__ */ jsx("span", { className: "f-form-element__loader", children: /* @__PURE__ */ jsx(FLoadIcon, { size: 10 }) }) : /* @__PURE__ */ jsxs("div", { className: styles$
|
|
3795
|
+
load ? /* @__PURE__ */ jsx("span", { className: "f-form-element__loader", children: /* @__PURE__ */ jsx(FLoadIcon, { size: 10 }) }) : /* @__PURE__ */ jsxs("div", { className: styles$7["f-select-actions"], children: [
|
|
3796
3796
|
hasValue && !disabled2 && /* @__PURE__ */ jsx(
|
|
3797
3797
|
"div",
|
|
3798
3798
|
{
|
|
3799
3799
|
onClick: handleClear,
|
|
3800
|
-
className: `${styles$
|
|
3800
|
+
className: `${styles$7["f-select-icon"]} close`,
|
|
3801
3801
|
title: "Очистить",
|
|
3802
3802
|
onMouseDown: (e) => e.preventDefault(),
|
|
3803
3803
|
children: /* @__PURE__ */ jsx(CloseIcon, {})
|
|
3804
3804
|
}
|
|
3805
3805
|
),
|
|
3806
|
-
/* @__PURE__ */ jsx("div", { className: `${styles$
|
|
3806
|
+
/* @__PURE__ */ jsx("div", { className: `${styles$7["f-select-icon"]} ${isOpen ? styles$7["rotate"] : ""}`, children: /* @__PURE__ */ jsx(ChevronIcon, {}) })
|
|
3807
3807
|
] })
|
|
3808
3808
|
] }),
|
|
3809
3809
|
isOpen && !disabled2 && !load && typeof document !== "undefined" && createPortal(
|
|
3810
3810
|
/* @__PURE__ */ jsx(
|
|
3811
3811
|
"div",
|
|
3812
3812
|
{
|
|
3813
|
-
className: styles$
|
|
3813
|
+
className: styles$7["f-select-dropdown"],
|
|
3814
3814
|
style: dropdownStyle,
|
|
3815
3815
|
ref: dropdownRef,
|
|
3816
3816
|
children: /* @__PURE__ */ jsx(
|
|
3817
3817
|
"ul",
|
|
3818
3818
|
{
|
|
3819
3819
|
ref: listRef,
|
|
3820
|
-
className: styles$
|
|
3820
|
+
className: styles$7["f-select-list"],
|
|
3821
3821
|
style: { maxHeight: `${listMaxHeight}px` },
|
|
3822
|
-
children: isTyping ? /* @__PURE__ */ jsx("li", { className: styles$
|
|
3822
|
+
children: isTyping ? /* @__PURE__ */ jsx("li", { className: styles$7["f-select-no-results"], children: "Ожидается окончание ввода..." }) : renderList.length === 0 ? /* @__PURE__ */ jsx("li", { className: styles$7["f-select-no-results"], children: allowCreate ? "Нет данных" : "Совпадений не найдено" }) : renderList.map((option, index) => /* @__PURE__ */ jsx(
|
|
3823
3823
|
"li",
|
|
3824
3824
|
{
|
|
3825
3825
|
className: `
|
|
3826
|
-
${styles$
|
|
3827
|
-
${option.isNew ? styles$
|
|
3828
|
-
${index === highlightedIndex ? styles$
|
|
3829
|
-
${currentValStr === option.value ? styles$
|
|
3826
|
+
${styles$7["f-select-option"]}
|
|
3827
|
+
${option.isNew ? styles$7["f-select-create"] : ""}
|
|
3828
|
+
${index === highlightedIndex ? styles$7["focused"] : ""}
|
|
3829
|
+
${currentValStr === option.value ? styles$7["selected"] : ""}
|
|
3830
3830
|
`,
|
|
3831
3831
|
onMouseDown: (e) => e.preventDefault(),
|
|
3832
3832
|
onClick: (e) => {
|
|
@@ -3891,6 +3891,94 @@ const FSearchableSelect = forwardRef(
|
|
|
3891
3891
|
}
|
|
3892
3892
|
);
|
|
3893
3893
|
FSearchableSelect.displayName = "FSearchableSelect";
|
|
3894
|
+
const active = "_active_1btub_75";
|
|
3895
|
+
const disabled = "_disabled_1btub_75";
|
|
3896
|
+
const styles$6 = {
|
|
3897
|
+
"f-segmented-wrapper": "_f-segmented-wrapper_1btub_2",
|
|
3898
|
+
"f-segmented-control": "_f-segmented-control_1btub_12",
|
|
3899
|
+
"f-segmented-sm": "_f-segmented-sm_1btub_28",
|
|
3900
|
+
"f-segmented-item": "_f-segmented-item_1btub_28",
|
|
3901
|
+
"f-segmented-md": "_f-segmented-md_1btub_32",
|
|
3902
|
+
"f-segmented-lg": "_f-segmented-lg_1btub_36",
|
|
3903
|
+
"f-segmented-glider": "_f-segmented-glider_1btub_42",
|
|
3904
|
+
active,
|
|
3905
|
+
disabled,
|
|
3906
|
+
"f-segmented-badge": "_f-segmented-badge_1btub_82",
|
|
3907
|
+
"f-segmented-icon": "_f-segmented-icon_1btub_92",
|
|
3908
|
+
"f-segmented-label": "_f-segmented-label_1btub_105"
|
|
3909
|
+
};
|
|
3910
|
+
const FSegmentedControl = ({
|
|
3911
|
+
items,
|
|
3912
|
+
activeId,
|
|
3913
|
+
onChange,
|
|
3914
|
+
size = "md",
|
|
3915
|
+
className = "",
|
|
3916
|
+
style
|
|
3917
|
+
}) => {
|
|
3918
|
+
const itemRefs = useRef([]);
|
|
3919
|
+
const [gliderStyle, setGliderStyle] = useState({
|
|
3920
|
+
width: 0,
|
|
3921
|
+
left: 0
|
|
3922
|
+
});
|
|
3923
|
+
useEffect(() => {
|
|
3924
|
+
const activeIndex = items.findIndex((item) => item.id === activeId);
|
|
3925
|
+
const activeElement = itemRefs.current[activeIndex !== -1 ? activeIndex : 0];
|
|
3926
|
+
if (activeElement) {
|
|
3927
|
+
setGliderStyle({
|
|
3928
|
+
width: activeElement.offsetWidth,
|
|
3929
|
+
left: activeElement.offsetLeft
|
|
3930
|
+
});
|
|
3931
|
+
}
|
|
3932
|
+
}, [activeId, items]);
|
|
3933
|
+
const handleItemClick = (e, item) => {
|
|
3934
|
+
if (item.disabled) return;
|
|
3935
|
+
if (item.onClick) {
|
|
3936
|
+
item.onClick(e, item);
|
|
3937
|
+
}
|
|
3938
|
+
if (!e.defaultPrevented) {
|
|
3939
|
+
onChange(item.id);
|
|
3940
|
+
}
|
|
3941
|
+
};
|
|
3942
|
+
return /* @__PURE__ */ jsx("div", { className: `${styles$6["f-segmented-wrapper"]} ${className}`, style, children: /* @__PURE__ */ jsxs("div", { className: `${styles$6["f-segmented-control"]} ${styles$6[`f-segmented-${size}`]}`, children: [
|
|
3943
|
+
/* @__PURE__ */ jsx(
|
|
3944
|
+
"div",
|
|
3945
|
+
{
|
|
3946
|
+
className: styles$6["f-segmented-glider"],
|
|
3947
|
+
style: {
|
|
3948
|
+
width: `${gliderStyle.width}px`,
|
|
3949
|
+
transform: `translateX(${gliderStyle.left}px)`,
|
|
3950
|
+
left: 0
|
|
3951
|
+
}
|
|
3952
|
+
}
|
|
3953
|
+
),
|
|
3954
|
+
items.map((item, index) => {
|
|
3955
|
+
const isActive = item.id === activeId;
|
|
3956
|
+
return /* @__PURE__ */ jsxs(
|
|
3957
|
+
"button",
|
|
3958
|
+
{
|
|
3959
|
+
ref: (el) => {
|
|
3960
|
+
itemRefs.current[index] = el;
|
|
3961
|
+
},
|
|
3962
|
+
type: "button",
|
|
3963
|
+
disabled: item.disabled,
|
|
3964
|
+
className: `
|
|
3965
|
+
${styles$6["f-segmented-item"]}
|
|
3966
|
+
${isActive ? styles$6["active"] : ""}
|
|
3967
|
+
${item.disabled ? styles$6["disabled"] : ""}
|
|
3968
|
+
`,
|
|
3969
|
+
onClick: (e) => handleItemClick(e, item),
|
|
3970
|
+
children: [
|
|
3971
|
+
item.icon && /* @__PURE__ */ jsx("span", { className: styles$6["f-segmented-icon"], children: item.icon }),
|
|
3972
|
+
/* @__PURE__ */ jsx("span", { className: styles$6["f-segmented-label"], children: item.label }),
|
|
3973
|
+
item.badge !== void 0 && /* @__PURE__ */ jsx("span", { className: styles$6["f-segmented-badge"], children: item.badge })
|
|
3974
|
+
]
|
|
3975
|
+
},
|
|
3976
|
+
String(item.id)
|
|
3977
|
+
);
|
|
3978
|
+
})
|
|
3979
|
+
] }) });
|
|
3980
|
+
};
|
|
3981
|
+
FSegmentedControl.displayName = "FSegmentedControl";
|
|
3894
3982
|
const FPlusIcon = React.forwardRef(({
|
|
3895
3983
|
color = "primary",
|
|
3896
3984
|
size = 30,
|
|
@@ -8553,6 +8641,7 @@ export {
|
|
|
8553
8641
|
FSafeIcon,
|
|
8554
8642
|
FSearchBox,
|
|
8555
8643
|
FSearchableSelect,
|
|
8644
|
+
FSegmentedControl,
|
|
8556
8645
|
FSelect,
|
|
8557
8646
|
FSelectItem,
|
|
8558
8647
|
FSelectSearchDb,
|