@lets-events/react 12.5.1 → 12.6.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.
- package/.turbo/turbo-build.log +6 -11
- package/CHANGELOG.md +596 -584
- package/dist/index.js +64 -22
- package/dist/index.mjs +162 -120
- package/package.json +49 -49
- package/src/components/Button/index.tsx +19 -7
- package/src/components/FormFields/RadioGroupFormField.tsx +8 -6
- package/src/components/FormFields/subComponents/FormLabel.tsx +16 -9
- package/src/components/MultiSelect/index.tsx +34 -9
package/dist/index.js
CHANGED
|
@@ -1882,7 +1882,21 @@ function Button(_a) {
|
|
|
1882
1882
|
return "md";
|
|
1883
1883
|
}
|
|
1884
1884
|
}, [size]);
|
|
1885
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonStyled, __spreadProps(__spreadValues({ as: Component }, props), { disabled: disabled || loading, children:
|
|
1885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonStyled, __spreadProps(__spreadValues({ as: Component }, props), { disabled: disabled || loading, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { position: "relative" }, children: [
|
|
1886
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { visibility: loading ? "hidden" : void 0 }, children }),
|
|
1887
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1888
|
+
"div",
|
|
1889
|
+
{
|
|
1890
|
+
style: {
|
|
1891
|
+
position: "absolute",
|
|
1892
|
+
top: "50%",
|
|
1893
|
+
left: "50%",
|
|
1894
|
+
transform: "translate(-50%, -50%)"
|
|
1895
|
+
},
|
|
1896
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SpinningDiv, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "circle-notch", size: spinnerSize }) })
|
|
1897
|
+
}
|
|
1898
|
+
)
|
|
1899
|
+
] }) }));
|
|
1886
1900
|
}
|
|
1887
1901
|
|
|
1888
1902
|
// src/components/ButtonGroup.tsx
|
|
@@ -9942,9 +9956,7 @@ var MultiSelect = import_react18.default.forwardRef(
|
|
|
9942
9956
|
value: selectedValues,
|
|
9943
9957
|
onValueChange: (v) => {
|
|
9944
9958
|
onValueChange == null ? void 0 : onValueChange(v);
|
|
9945
|
-
|
|
9946
|
-
setAllOptionsSelected(false);
|
|
9947
|
-
}
|
|
9959
|
+
setAllOptionsSelected((v || []).length === options.length);
|
|
9948
9960
|
},
|
|
9949
9961
|
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
9950
9962
|
StyledFlexWithMaxHeight,
|
|
@@ -9994,7 +10006,38 @@ var MultiSelect = import_react18.default.forwardRef(
|
|
|
9994
10006
|
align: selectedOrientation === "column" ? "start" : "center",
|
|
9995
10007
|
justify: "start",
|
|
9996
10008
|
css: __spreadValues({}, selectedScroll && { maxHeight: maxHeight || "400px" }),
|
|
9997
|
-
children:
|
|
10009
|
+
children: allOptionsSelected ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
10010
|
+
Flex2,
|
|
10011
|
+
{
|
|
10012
|
+
gap: 4,
|
|
10013
|
+
align: "center",
|
|
10014
|
+
css: { flexWrap: "wrap" },
|
|
10015
|
+
children: [
|
|
10016
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
10017
|
+
CloseBtnStyled,
|
|
10018
|
+
{
|
|
10019
|
+
onClick: (e) => {
|
|
10020
|
+
e.stopPropagation();
|
|
10021
|
+
onValueChange == null ? void 0 : onValueChange([]);
|
|
10022
|
+
setAllOptionsSelected(false);
|
|
10023
|
+
},
|
|
10024
|
+
type: "button",
|
|
10025
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_fontawesome3.FontAwesomeIcon, { icon: import_free_solid_svg_icons3.faSquareXmark, size: "sm" })
|
|
10026
|
+
}
|
|
10027
|
+
),
|
|
10028
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
10029
|
+
Text,
|
|
10030
|
+
{
|
|
10031
|
+
typography: "captionMedium",
|
|
10032
|
+
fontWeight: "regular",
|
|
10033
|
+
color: "dark600",
|
|
10034
|
+
children: "Todos selecionados"
|
|
10035
|
+
}
|
|
10036
|
+
)
|
|
10037
|
+
]
|
|
10038
|
+
},
|
|
10039
|
+
"all-selected"
|
|
10040
|
+
) : selectedValues.map((value) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
9998
10041
|
Flex2,
|
|
9999
10042
|
{
|
|
10000
10043
|
gap: 4,
|
|
@@ -10245,6 +10288,8 @@ var ErrorFormMessage = ({ message: message2 }) => {
|
|
|
10245
10288
|
};
|
|
10246
10289
|
|
|
10247
10290
|
// src/components/FormFields/subComponents/FormLabel.tsx
|
|
10291
|
+
var import_react_fontawesome5 = require("@fortawesome/react-fontawesome");
|
|
10292
|
+
var import_free_solid_svg_icons5 = require("@fortawesome/free-solid-svg-icons");
|
|
10248
10293
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
10249
10294
|
var FormLabel = ({
|
|
10250
10295
|
name,
|
|
@@ -10253,19 +10298,19 @@ var FormLabel = ({
|
|
|
10253
10298
|
required
|
|
10254
10299
|
}) => {
|
|
10255
10300
|
if (!label) return null;
|
|
10256
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
label
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
}
|
|
10268
|
-
);
|
|
10301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Flex2, { align: "start", gap: 6, children: [
|
|
10302
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
10303
|
+
Text,
|
|
10304
|
+
{
|
|
10305
|
+
typography: "labelMedium",
|
|
10306
|
+
fontWeight: "medium",
|
|
10307
|
+
color: haveError ? "error600" : "dark700",
|
|
10308
|
+
id: `${name}-label`,
|
|
10309
|
+
children: label
|
|
10310
|
+
}
|
|
10311
|
+
),
|
|
10312
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_fontawesome5.FontAwesomeIcon, { icon: import_free_solid_svg_icons5.faAsterisk, fontSize: "8px", color: "#AD1F2B" })
|
|
10313
|
+
] });
|
|
10269
10314
|
};
|
|
10270
10315
|
|
|
10271
10316
|
// src/components/FormFields/TextAreaFormField.tsx
|
|
@@ -11230,10 +11275,7 @@ var RadioGroupFormField = ({
|
|
|
11230
11275
|
color: haveError ? "error" : color,
|
|
11231
11276
|
fontWeight,
|
|
11232
11277
|
disabled,
|
|
11233
|
-
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime48.
|
|
11234
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(RadioItem, { value: option.value }),
|
|
11235
|
-
option.label
|
|
11236
|
-
] }, option.value))
|
|
11278
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Flex2, { direction: "column", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(RadioItem, { value: option.value, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
|
|
11237
11279
|
}
|
|
11238
11280
|
)
|
|
11239
11281
|
}
|