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.
@@ -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 = "_btn_ch6o3_1";
10
+ import './index.css';const btn = "_btn_u1cjw_1";
11
+ const disabled$4 = "_disabled_u1cjw_31";
11
12
  const stylesBtn = {
12
13
  btn,
13
- "btn-xs": "_btn-xs_ch6o3_21",
14
- "btn-sm": "_btn-sm_ch6o3_26",
15
- "btn-lg": "_btn-lg_ch6o3_31",
16
- "btn-primary": "_btn-primary_ch6o3_35",
17
- "btn-outline-primary": "_btn-outline-primary_ch6o3_58",
18
- "btn-secondary": "_btn-secondary_ch6o3_82",
19
- "btn-outline-secondary": "_btn-outline-secondary_ch6o3_105",
20
- "btn-success": "_btn-success_ch6o3_129",
21
- "btn-outline-success": "_btn-outline-success_ch6o3_152",
22
- "btn-danger": "_btn-danger_ch6o3_176",
23
- "btn-outline-danger": "_btn-outline-danger_ch6o3_199",
24
- "btn-warning": "_btn-warning_ch6o3_223",
25
- "btn-outline-warning": "_btn-outline-warning_ch6o3_246",
26
- "btn-info": "_btn-info_ch6o3_270",
27
- "btn-outline-info": "_btn-outline-info_ch6o3_293",
28
- "btn-light": "_btn-light_ch6o3_317",
29
- "btn-outline-light": "_btn-outline-light_ch6o3_340",
30
- "btn-dark": "_btn-dark_ch6o3_364",
31
- "btn-outline-dark": "_btn-outline-dark_ch6o3_387",
32
- "btn-link": "_btn-link_ch6o3_411",
33
- "btn-outline-link": "_btn-outline-link_ch6o3_434"
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-sm",
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 = props.id || `button-${Math.random().toString(36).substring(2, 9)}`;
45
- let style = { width: "fit-content" };
46
- if (fullWidth) {
47
- if (style === void 0) {
48
- style = { width: "100%" };
49
- } else {
50
- style.width = "100%";
51
- }
52
- }
53
- style = st !== void 0 ? { ...style, ...st } : style;
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
- className: `${stylesBtn["btn"]} ${stylesBtn[size]} ${stylesBtn[`btn${variant === "contained" ? "-" : "-outline-"}${color}`]} ${props.className || ""}`,
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-box_1ce2j_1",
2849
- "f-search-box__input": "_f-search-box__input_1ce2j_7",
2850
- "f-search-box__button": "_f-search-box__button_1ce2j_13",
2851
- "f-search-box__button_search": "_f-search-box__button_search_1ce2j_19",
2852
- "clear-on": "_clear-on_1ce2j_23",
2853
- "f-search-box__button_clear": "_f-search-box__button_clear_1ce2j_26"
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
  ({