fui-material 2.7.13 → 2.7.14
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 +52 -43
- 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/package.json +1 -1
package/dist/f-ui-kit.es.js
CHANGED
|
@@ -7,59 +7,68 @@ import { renderToStaticMarkup } from "react-dom/server";
|
|
|
7
7
|
import { initializeModule as initializeModule$1, installFormatCode } from "allorion-exporting-html-to-xlsx";
|
|
8
8
|
import axios from "axios";
|
|
9
9
|
import { useQueryClient, useMutation, useQuery } from "@tanstack/react-query";
|
|
10
|
-
import './index.css';const btn = "
|
|
10
|
+
import './index.css';const btn = "_btn_u1cjw_1";
|
|
11
|
+
const disabled$4 = "_disabled_u1cjw_31";
|
|
11
12
|
const stylesBtn = {
|
|
12
13
|
btn,
|
|
13
|
-
|
|
14
|
-
"btn-
|
|
15
|
-
"btn-
|
|
16
|
-
"btn-
|
|
17
|
-
"btn-
|
|
18
|
-
"btn-
|
|
19
|
-
"btn-
|
|
20
|
-
"btn-
|
|
21
|
-
"btn-
|
|
22
|
-
"btn-
|
|
23
|
-
"btn-
|
|
24
|
-
"btn-
|
|
25
|
-
"btn-
|
|
26
|
-
"btn-
|
|
27
|
-
"btn-
|
|
28
|
-
"btn-
|
|
29
|
-
"btn-
|
|
30
|
-
"btn-
|
|
31
|
-
"btn-
|
|
32
|
-
"btn-
|
|
33
|
-
"btn-
|
|
14
|
+
disabled: disabled$4,
|
|
15
|
+
"btn-xs": "_btn-xs_u1cjw_40",
|
|
16
|
+
"btn-sm": "_btn-sm_u1cjw_51",
|
|
17
|
+
"btn-lg": "_btn-lg_u1cjw_62",
|
|
18
|
+
"btn-primary": "_btn-primary_u1cjw_73",
|
|
19
|
+
"btn-outline-primary": "_btn-outline-primary_u1cjw_87",
|
|
20
|
+
"btn-secondary": "_btn-secondary_u1cjw_104",
|
|
21
|
+
"btn-outline-secondary": "_btn-outline-secondary_u1cjw_118",
|
|
22
|
+
"btn-success": "_btn-success_u1cjw_135",
|
|
23
|
+
"btn-outline-success": "_btn-outline-success_u1cjw_149",
|
|
24
|
+
"btn-danger": "_btn-danger_u1cjw_166",
|
|
25
|
+
"btn-outline-danger": "_btn-outline-danger_u1cjw_180",
|
|
26
|
+
"btn-warning": "_btn-warning_u1cjw_197",
|
|
27
|
+
"btn-outline-warning": "_btn-outline-warning_u1cjw_211",
|
|
28
|
+
"btn-info": "_btn-info_u1cjw_228",
|
|
29
|
+
"btn-outline-info": "_btn-outline-info_u1cjw_242",
|
|
30
|
+
"btn-light": "_btn-light_u1cjw_259",
|
|
31
|
+
"btn-outline-light": "_btn-outline-light_u1cjw_274",
|
|
32
|
+
"btn-dark": "_btn-dark_u1cjw_291",
|
|
33
|
+
"btn-outline-dark": "_btn-outline-dark_u1cjw_305",
|
|
34
|
+
"btn-link": "_btn-link_u1cjw_322",
|
|
35
|
+
"btn-outline-link": "_btn-outline-link_u1cjw_338"
|
|
34
36
|
};
|
|
35
37
|
const FButton = forwardRef(({
|
|
36
38
|
children,
|
|
37
39
|
variant = "contained",
|
|
38
40
|
color = "primary",
|
|
39
|
-
size = "btn-
|
|
41
|
+
size = "btn-xs",
|
|
42
|
+
type = "button",
|
|
40
43
|
st,
|
|
41
44
|
fullWidth,
|
|
45
|
+
style: customStyle,
|
|
46
|
+
id,
|
|
47
|
+
className,
|
|
42
48
|
...props
|
|
43
49
|
}, ref) => {
|
|
44
|
-
const inputId =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
const inputId = id || `button-${Math.random().toString(36).substring(2, 9)}`;
|
|
51
|
+
const mergedStyle = {
|
|
52
|
+
width: fullWidth ? "100%" : "fit-content",
|
|
53
|
+
...st,
|
|
54
|
+
...customStyle
|
|
55
|
+
};
|
|
56
|
+
const variantClass = variant === "contained" ? `btn-${color}` : `btn-outline-${color}`;
|
|
57
|
+
const buttonClasses = [
|
|
58
|
+
stylesBtn["btn"],
|
|
59
|
+
stylesBtn[size],
|
|
60
|
+
stylesBtn[variantClass],
|
|
61
|
+
className
|
|
62
|
+
].filter(Boolean).join(" ");
|
|
54
63
|
return /* @__PURE__ */ jsx(
|
|
55
64
|
"button",
|
|
56
65
|
{
|
|
57
66
|
ref,
|
|
58
|
-
style,
|
|
59
|
-
type: "button",
|
|
60
|
-
...props,
|
|
61
67
|
id: inputId,
|
|
62
|
-
|
|
68
|
+
type,
|
|
69
|
+
style: mergedStyle,
|
|
70
|
+
className: buttonClasses,
|
|
71
|
+
...props,
|
|
63
72
|
children
|
|
64
73
|
}
|
|
65
74
|
);
|
|
@@ -2845,12 +2854,12 @@ const FDropdownItem = ({
|
|
|
2845
2854
|
);
|
|
2846
2855
|
};
|
|
2847
2856
|
const styles$d = {
|
|
2848
|
-
"f-search-box": "_f-search-
|
|
2849
|
-
"f-search-box__input": "_f-search-
|
|
2850
|
-
"f-search-box__button": "_f-search-
|
|
2851
|
-
"f-search-box__button_search": "_f-search-
|
|
2852
|
-
"clear-on": "_clear-
|
|
2853
|
-
"f-search-box__button_clear": "_f-search-
|
|
2857
|
+
"f-search-box": "_f-search-box_15oxr_1",
|
|
2858
|
+
"f-search-box__input": "_f-search-box__input_15oxr_7",
|
|
2859
|
+
"f-search-box__button": "_f-search-box__button_15oxr_13",
|
|
2860
|
+
"f-search-box__button_search": "_f-search-box__button_search_15oxr_19",
|
|
2861
|
+
"clear-on": "_clear-on_15oxr_23",
|
|
2862
|
+
"f-search-box__button_clear": "_f-search-box__button_clear_15oxr_26"
|
|
2854
2863
|
};
|
|
2855
2864
|
const FSearchBox = forwardRef(
|
|
2856
2865
|
({
|