@lets-events/react 12.11.1 → 12.11.3
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/.eslintrc.json +2 -2
- package/.turbo/turbo-build.log +24 -21
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +177 -142
- package/dist/index.mjs +177 -142
- package/package.json +1 -1
- package/src/components/Alert.tsx +303 -303
- package/src/components/Avatar.tsx +55 -55
- package/src/components/Badge.tsx +132 -132
- package/src/components/Box.tsx +3 -3
- package/src/components/Button/index.tsx +85 -85
- package/src/components/Button/styledComponents.ts +361 -361
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +172 -168
- package/src/components/Calendar/styledComponents.ts +508 -480
- package/src/components/Card.tsx +74 -74
- package/src/components/CheckboxGroup.tsx +176 -176
- package/src/components/Container.tsx +39 -39
- package/src/components/Divider.tsx +7 -7
- package/src/components/DoubleCalendar/index.tsx +208 -204
- package/src/components/Drawer/index.tsx +113 -113
- package/src/components/Drawer/styledComponents.ts +97 -97
- package/src/components/Dropdown.tsx +302 -302
- package/src/components/Filter.tsx +164 -164
- package/src/components/Flex.tsx +130 -130
- package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
- package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
- package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
- package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
- package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
- package/src/components/FormFields/BirthDateFormField.tsx +84 -84
- package/src/components/FormFields/CNPJFormField.tsx +87 -87
- package/src/components/FormFields/CPFFormField.tsx +78 -78
- package/src/components/FormFields/CalendarFormField.tsx +98 -98
- package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
- package/src/components/FormFields/DateAndTimeFormField.tsx +217 -217
- package/src/components/FormFields/DoubleCalendarFormField.tsx +96 -96
- package/src/components/FormFields/EmailFormField.tsx +27 -27
- package/src/components/FormFields/Form.tsx +39 -39
- package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
- package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
- package/src/components/FormFields/PhoneFormField.tsx +40 -40
- package/src/components/FormFields/RadioGroupFormField.tsx +88 -88
- package/src/components/FormFields/RichEditorFormField.tsx +128 -128
- package/src/components/FormFields/SelectFormField.tsx +113 -113
- package/src/components/FormFields/SwitchFormField.tsx +46 -46
- package/src/components/FormFields/TextAreaFormField.tsx +61 -61
- package/src/components/FormFields/TextFormField.tsx +112 -112
- package/src/components/FormFields/TimePickerFormField.tsx +88 -88
- package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
- package/src/components/FormFields/subComponents/FormLabel.tsx +36 -36
- package/src/components/FormFields/utils/validation.ts +23 -23
- package/src/components/Grid.tsx +137 -137
- package/src/components/Icon.tsx +47 -47
- package/src/components/MenuDropdown/index.tsx +38 -38
- package/src/components/MenuDropdown/styledComponents.ts +31 -31
- package/src/components/Modal.tsx +135 -131
- package/src/components/MultiSelect/index.tsx +418 -417
- package/src/components/MultiSelect/styledComponents.ts +176 -176
- package/src/components/RadioGroup.tsx +210 -210
- package/src/components/RichEditor/QuillComponent.tsx +419 -419
- package/src/components/RichEditor/RichEditor.tsx +53 -53
- package/src/components/RichEditor/RichTextPresenter.tsx +18 -18
- package/src/components/RichEditor/editorConfig.ts +149 -149
- package/src/components/RichEditor/index.ts +3 -3
- package/src/components/RichEditor/styledComponents.ts +1175 -1175
- package/src/components/RichEditor/types.ts +12 -12
- package/src/components/Section.tsx +33 -33
- package/src/components/Step.tsx +164 -164
- package/src/components/Switch.tsx +108 -108
- package/src/components/Text.tsx +54 -54
- package/src/components/TextField.tsx +423 -423
- package/src/components/TextareaField.tsx +116 -116
- package/src/components/TimePicker.tsx +357 -357
- package/src/components/Toast/components/ToastItem.tsx +41 -41
- package/src/components/Toast/components/ToastProvider.tsx +63 -63
- package/src/components/Toast/hooks/useToast.ts +12 -12
- package/src/components/Toast/index.tsx +5 -5
- package/src/components/Toast/styles/index.ts +135 -135
- package/src/components/Toast/types/index.ts +46 -46
- package/src/components/ToggleElement/index.tsx +58 -58
- package/src/components/Tooltip/index.tsx +126 -126
- package/src/components/Tooltip/styles.ts +77 -77
- package/src/hooks/useCountries.ts +41 -41
- package/src/hooks/useHasHover.ts +21 -21
- package/src/hooks/useImageUpload.ts +139 -139
- package/src/hooks/useMediaQuery.ts +19 -19
- package/src/hooks/useOnClickOutside.tsx +42 -42
- package/src/index.tsx +72 -72
- package/src/styles/index.ts +41 -41
- package/src/types/typographyValues.ts +178 -178
- package/src/utils/getNestedValue.ts +3 -3
- package/src/utils/states.ts +29 -29
- package/src/utils/uploadService.ts +180 -180
- package/tsconfig.json +3 -3
- package/tsup.config.ts +38 -38
package/dist/index.mjs
CHANGED
|
@@ -3773,7 +3773,8 @@ function Modal(_a) {
|
|
|
3773
3773
|
maxHeight,
|
|
3774
3774
|
height,
|
|
3775
3775
|
preventAutoFocus = false,
|
|
3776
|
-
fitContent = false
|
|
3776
|
+
fitContent = false,
|
|
3777
|
+
titleTypography = "headline6"
|
|
3777
3778
|
} = _b, props = __objRest(_b, [
|
|
3778
3779
|
"children",
|
|
3779
3780
|
"title",
|
|
@@ -3783,7 +3784,8 @@ function Modal(_a) {
|
|
|
3783
3784
|
"maxHeight",
|
|
3784
3785
|
"height",
|
|
3785
3786
|
"preventAutoFocus",
|
|
3786
|
-
"fitContent"
|
|
3787
|
+
"fitContent",
|
|
3788
|
+
"titleTypography"
|
|
3787
3789
|
]);
|
|
3788
3790
|
const { onOpenChange } = props;
|
|
3789
3791
|
return /* @__PURE__ */ jsxs5(ModalRadix.Root, __spreadProps(__spreadValues({}, props), { children: [
|
|
@@ -3807,7 +3809,7 @@ function Modal(_a) {
|
|
|
3807
3809
|
}, maxHeight !== void 0 && { maxHeight }), height !== void 0 && { height }), fitContent && height === void 0 && { height: "fit-content" }),
|
|
3808
3810
|
children: [
|
|
3809
3811
|
title && /* @__PURE__ */ jsxs5(ModalHeaderStyled, { children: [
|
|
3810
|
-
/* @__PURE__ */ jsx13(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ jsx13(Text, { typography:
|
|
3812
|
+
/* @__PURE__ */ jsx13(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ jsx13(Text, { typography: titleTypography, fontWeight: "medium", children: title }) }),
|
|
3811
3813
|
(onOpenChange || trigger) && /* @__PURE__ */ jsx13(ModalRadix.Close, { asChild: true, children: /* @__PURE__ */ jsx13(ModalIconClose, { name: "close", size: "xl" }) })
|
|
3812
3814
|
] }),
|
|
3813
3815
|
children
|
|
@@ -7817,6 +7819,27 @@ var CalendarStyled = styled("div", {
|
|
|
7817
7819
|
}
|
|
7818
7820
|
}
|
|
7819
7821
|
});
|
|
7822
|
+
var calendarMobileCentered = {
|
|
7823
|
+
position: "fixed",
|
|
7824
|
+
top: "50%",
|
|
7825
|
+
left: "50%",
|
|
7826
|
+
right: "auto",
|
|
7827
|
+
bottom: "auto",
|
|
7828
|
+
transform: "translate(-50%, -50%)",
|
|
7829
|
+
maxWidth: "calc(100vw - 32px)",
|
|
7830
|
+
maxHeight: "90vh",
|
|
7831
|
+
overflowY: "auto"
|
|
7832
|
+
};
|
|
7833
|
+
var CalendarOverlayStyled = styled("div", {
|
|
7834
|
+
display: "none",
|
|
7835
|
+
"@media (max-width: 748px)": {
|
|
7836
|
+
display: "block",
|
|
7837
|
+
position: "fixed",
|
|
7838
|
+
inset: 0,
|
|
7839
|
+
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
7840
|
+
zIndex: 999998
|
|
7841
|
+
}
|
|
7842
|
+
});
|
|
7820
7843
|
var CalendarButtonStyled = styled("button", {
|
|
7821
7844
|
backgroundColor: "transparent",
|
|
7822
7845
|
border: "none",
|
|
@@ -7850,23 +7873,28 @@ var CalendarContentStyled = styled("div", {
|
|
|
7850
7873
|
position: "absolute",
|
|
7851
7874
|
backgroundColor: "$neutral50",
|
|
7852
7875
|
zIndex: "999999",
|
|
7876
|
+
"@media (max-width: 748px)": calendarMobileCentered,
|
|
7853
7877
|
variants: {
|
|
7854
7878
|
position: {
|
|
7855
7879
|
top: {
|
|
7856
7880
|
bottom: "110%",
|
|
7857
|
-
left: "0"
|
|
7881
|
+
left: "0",
|
|
7882
|
+
"@media (max-width: 748px)": calendarMobileCentered
|
|
7858
7883
|
},
|
|
7859
7884
|
bottom: {
|
|
7860
7885
|
top: "110%",
|
|
7861
|
-
left: "0"
|
|
7886
|
+
left: "0",
|
|
7887
|
+
"@media (max-width: 748px)": calendarMobileCentered
|
|
7862
7888
|
},
|
|
7863
7889
|
"top-right": {
|
|
7864
7890
|
bottom: "110%",
|
|
7865
|
-
right: "0"
|
|
7891
|
+
right: "0",
|
|
7892
|
+
"@media (max-width: 748px)": calendarMobileCentered
|
|
7866
7893
|
},
|
|
7867
7894
|
"bottom-right": {
|
|
7868
7895
|
top: "110%",
|
|
7869
|
-
right: "0"
|
|
7896
|
+
right: "0",
|
|
7897
|
+
"@media (max-width: 748px)": calendarMobileCentered
|
|
7870
7898
|
}
|
|
7871
7899
|
}
|
|
7872
7900
|
}
|
|
@@ -8344,60 +8372,63 @@ function Calendar(_a) {
|
|
|
8344
8372
|
console.warn("Data inv\xE1lida inserida no input:", masked);
|
|
8345
8373
|
}
|
|
8346
8374
|
};
|
|
8347
|
-
return /* @__PURE__ */
|
|
8348
|
-
/* @__PURE__ */ jsx15(
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
type: "button",
|
|
8353
|
-
onClick: () => setShowCalendar((prev) => !prev),
|
|
8354
|
-
children: /* @__PURE__ */ jsx15(
|
|
8355
|
-
TextField,
|
|
8356
|
-
{
|
|
8357
|
-
placeholder: "00/00/0000",
|
|
8358
|
-
type: "text",
|
|
8359
|
-
value: inputValue,
|
|
8360
|
-
onChange: handleInputChange,
|
|
8361
|
-
inputMode: "numeric",
|
|
8362
|
-
textAlign: "right",
|
|
8363
|
-
color: hasError ? "error" : "default",
|
|
8364
|
-
disabled,
|
|
8365
|
-
children: /* @__PURE__ */ jsx15(TextFieldSlot, { children: /* @__PURE__ */ jsx15(Icon_default, { name: "calendar", size: "xl", color: "#4C4F54" }) })
|
|
8366
|
-
}
|
|
8367
|
-
)
|
|
8368
|
-
}
|
|
8369
|
-
),
|
|
8370
|
-
showContainer && /* @__PURE__ */ jsxs7(CalendarContentStyled, { position, children: [
|
|
8371
|
-
/* @__PURE__ */ jsx15(Box, { children: /* @__PURE__ */ jsx15(DayPickerWrapperStyled, { children: /* @__PURE__ */ jsx15(
|
|
8372
|
-
DayPicker,
|
|
8373
|
-
{
|
|
8374
|
-
mode: "single",
|
|
8375
|
-
captionLayout: calendarLayout,
|
|
8376
|
-
selected,
|
|
8377
|
-
onSelect: setSelected,
|
|
8378
|
-
required: true,
|
|
8379
|
-
locale: ptBR,
|
|
8380
|
-
disabled: disabledDays.length > 0 ? disabledDays : void 0,
|
|
8381
|
-
startMonth: allowPastDates ? void 0 : today,
|
|
8382
|
-
endMonth: resolvedMaxDate
|
|
8383
|
-
}
|
|
8384
|
-
) }) }),
|
|
8385
|
-
action && /* @__PURE__ */ jsx15(CalendarFooterStyled, { actionAlign, children: /* @__PURE__ */ jsx15(
|
|
8386
|
-
Button,
|
|
8375
|
+
return /* @__PURE__ */ jsxs7("div", { children: [
|
|
8376
|
+
showContainer && /* @__PURE__ */ jsx15(CalendarOverlayStyled, { onClick: () => setShowCalendar(false) }),
|
|
8377
|
+
/* @__PURE__ */ jsxs7(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
|
|
8378
|
+
/* @__PURE__ */ jsx15(
|
|
8379
|
+
CalendarButtonStyled,
|
|
8387
8380
|
{
|
|
8388
|
-
|
|
8389
|
-
color: "brand",
|
|
8381
|
+
expand,
|
|
8390
8382
|
type: "button",
|
|
8391
|
-
onClick: () =>
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8383
|
+
onClick: () => setShowCalendar((prev) => !prev),
|
|
8384
|
+
children: /* @__PURE__ */ jsx15(
|
|
8385
|
+
TextField,
|
|
8386
|
+
{
|
|
8387
|
+
placeholder: "00/00/0000",
|
|
8388
|
+
type: "text",
|
|
8389
|
+
value: inputValue,
|
|
8390
|
+
onChange: handleInputChange,
|
|
8391
|
+
inputMode: "numeric",
|
|
8392
|
+
textAlign: "right",
|
|
8393
|
+
color: hasError ? "error" : "default",
|
|
8394
|
+
disabled,
|
|
8395
|
+
children: /* @__PURE__ */ jsx15(TextFieldSlot, { children: /* @__PURE__ */ jsx15(Icon_default, { name: "calendar", size: "xl", color: "#4C4F54" }) })
|
|
8396
|
+
}
|
|
8397
|
+
)
|
|
8397
8398
|
}
|
|
8398
|
-
)
|
|
8399
|
-
|
|
8400
|
-
|
|
8399
|
+
),
|
|
8400
|
+
showContainer && /* @__PURE__ */ jsxs7(CalendarContentStyled, { position, children: [
|
|
8401
|
+
/* @__PURE__ */ jsx15(Box, { children: /* @__PURE__ */ jsx15(DayPickerWrapperStyled, { children: /* @__PURE__ */ jsx15(
|
|
8402
|
+
DayPicker,
|
|
8403
|
+
{
|
|
8404
|
+
mode: "single",
|
|
8405
|
+
captionLayout: calendarLayout,
|
|
8406
|
+
selected,
|
|
8407
|
+
onSelect: setSelected,
|
|
8408
|
+
required: true,
|
|
8409
|
+
locale: ptBR,
|
|
8410
|
+
disabled: disabledDays.length > 0 ? disabledDays : void 0,
|
|
8411
|
+
startMonth: allowPastDates ? void 0 : today,
|
|
8412
|
+
endMonth: resolvedMaxDate
|
|
8413
|
+
}
|
|
8414
|
+
) }) }),
|
|
8415
|
+
action && /* @__PURE__ */ jsx15(CalendarFooterStyled, { actionAlign, children: /* @__PURE__ */ jsx15(
|
|
8416
|
+
Button,
|
|
8417
|
+
{
|
|
8418
|
+
variant: "text",
|
|
8419
|
+
color: "brand",
|
|
8420
|
+
type: "button",
|
|
8421
|
+
onClick: () => {
|
|
8422
|
+
setShowCalendar(false);
|
|
8423
|
+
},
|
|
8424
|
+
size: "medium",
|
|
8425
|
+
fontWeight: "medium",
|
|
8426
|
+
children: actionText != null ? actionText : "Aplicar"
|
|
8427
|
+
}
|
|
8428
|
+
) })
|
|
8429
|
+
] })
|
|
8430
|
+
] }))
|
|
8431
|
+
] });
|
|
8401
8432
|
}
|
|
8402
8433
|
|
|
8403
8434
|
// src/components/DoubleCalendar/index.tsx
|
|
@@ -8463,89 +8494,71 @@ function DoubleCalendar(_a) {
|
|
|
8463
8494
|
setEndValue("");
|
|
8464
8495
|
}
|
|
8465
8496
|
}, [selected]);
|
|
8466
|
-
return /* @__PURE__ */
|
|
8467
|
-
/* @__PURE__ */ jsx16(
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
type: "button",
|
|
8472
|
-
onClick: () => setShowCalendar((prev) => {
|
|
8473
|
-
const next = !prev;
|
|
8474
|
-
if (!prev) initialSelectedRef.current = selected;
|
|
8475
|
-
return next;
|
|
8476
|
-
}),
|
|
8477
|
-
disabled,
|
|
8478
|
-
children: /* @__PURE__ */ jsx16("div", { style: { display: "flex", gap: "8px", width: "100%" }, children: /* @__PURE__ */ jsx16(
|
|
8479
|
-
TextField,
|
|
8480
|
-
{
|
|
8481
|
-
placeholder: "00/00/0000 - 00/00/0000",
|
|
8482
|
-
type: "text",
|
|
8483
|
-
value: `${startValue || "00/00/0000"} - ${endValue || "00/00/0000"}`,
|
|
8484
|
-
readOnly: true,
|
|
8485
|
-
inputMode: "numeric",
|
|
8486
|
-
textAlign: "right",
|
|
8487
|
-
color: hasError ? "error" : "default",
|
|
8488
|
-
disabled,
|
|
8489
|
-
children: /* @__PURE__ */ jsx16(TextFieldSlot, { children: /* @__PURE__ */ jsx16(Icon_default, { name: "calendar", size: "xl", color: "#4C4F54" }) })
|
|
8490
|
-
}
|
|
8491
|
-
) })
|
|
8492
|
-
}
|
|
8493
|
-
),
|
|
8494
|
-
showContainer && /* @__PURE__ */ jsxs8(CalendarContentStyled, { position, children: [
|
|
8495
|
-
/* @__PURE__ */ jsx16(Box, { children: /* @__PURE__ */ jsx16(DayPickerWrapperStyledToDoubleCalendar, { children: /* @__PURE__ */ jsx16(
|
|
8496
|
-
DayPicker2,
|
|
8497
|
+
return /* @__PURE__ */ jsxs8("div", { children: [
|
|
8498
|
+
showContainer && /* @__PURE__ */ jsx16(CalendarOverlayStyled, { onClick: () => setShowCalendar(false) }),
|
|
8499
|
+
/* @__PURE__ */ jsxs8(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
|
|
8500
|
+
/* @__PURE__ */ jsx16(
|
|
8501
|
+
CalendarButtonStyled,
|
|
8497
8502
|
{
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
disabled
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8503
|
+
expand,
|
|
8504
|
+
type: "button",
|
|
8505
|
+
onClick: () => setShowCalendar((prev) => {
|
|
8506
|
+
const next = !prev;
|
|
8507
|
+
if (!prev) initialSelectedRef.current = selected;
|
|
8508
|
+
return next;
|
|
8509
|
+
}),
|
|
8510
|
+
disabled,
|
|
8511
|
+
children: /* @__PURE__ */ jsx16("div", { style: { display: "flex", gap: "8px", width: "100%" }, children: /* @__PURE__ */ jsx16(
|
|
8512
|
+
TextField,
|
|
8513
|
+
{
|
|
8514
|
+
placeholder: "00/00/0000 - 00/00/0000",
|
|
8515
|
+
type: "text",
|
|
8516
|
+
value: `${startValue || "00/00/0000"} - ${endValue || "00/00/0000"}`,
|
|
8517
|
+
readOnly: true,
|
|
8518
|
+
inputMode: "numeric",
|
|
8519
|
+
textAlign: "right",
|
|
8520
|
+
color: hasError ? "error" : "default",
|
|
8521
|
+
disabled,
|
|
8522
|
+
children: /* @__PURE__ */ jsx16(TextFieldSlot, { children: /* @__PURE__ */ jsx16(Icon_default, { name: "calendar", size: "xl", color: "#4C4F54" }) })
|
|
8523
|
+
}
|
|
8524
|
+
) })
|
|
8525
|
+
}
|
|
8526
|
+
),
|
|
8527
|
+
showContainer && /* @__PURE__ */ jsxs8(CalendarContentStyled, { position, children: [
|
|
8528
|
+
/* @__PURE__ */ jsx16(Box, { children: /* @__PURE__ */ jsx16(DayPickerWrapperStyledToDoubleCalendar, { children: /* @__PURE__ */ jsx16(
|
|
8529
|
+
DayPicker2,
|
|
8514
8530
|
{
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
children: "Cancelar"
|
|
8531
|
+
mode: "range",
|
|
8532
|
+
numberOfMonths: 2,
|
|
8533
|
+
captionLayout: calendarLayout,
|
|
8534
|
+
selected,
|
|
8535
|
+
onSelect: setSelected,
|
|
8536
|
+
required: true,
|
|
8537
|
+
locale: ptBR,
|
|
8538
|
+
disabled: disabledDays.length > 0 ? disabledDays : void 0,
|
|
8539
|
+
fromMonth: allowPastDates ? void 0 : today,
|
|
8540
|
+
toMonth: resolvedMaxDate
|
|
8526
8541
|
}
|
|
8527
|
-
),
|
|
8528
|
-
/* @__PURE__ */
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
style: { display: "flex", justifyContent: "center", padding: "1rem", width: "100%" },
|
|
8548
|
-
children: /* @__PURE__ */ jsx16(
|
|
8542
|
+
) }) }),
|
|
8543
|
+
action && /* @__PURE__ */ jsxs8(CalendarFooterStyled, { children: [
|
|
8544
|
+
/* @__PURE__ */ jsx16("div", { style: { textAlign: "center", padding: "1rem" }, children: /* @__PURE__ */ jsx16("span", { children: `${(selected == null ? void 0 : selected.from) ? format2(selected.from, "dd/MM/yyyy") : "00/00/0000"} \u2014 ${(selected == null ? void 0 : selected.to) ? format2(selected.to, "dd/MM/yyyy") : "00/00/0000"}` }) }),
|
|
8545
|
+
/* @__PURE__ */ jsx16(
|
|
8546
|
+
Button,
|
|
8547
|
+
{
|
|
8548
|
+
style: { margin: "0 0.5rem" },
|
|
8549
|
+
variant: "text",
|
|
8550
|
+
color: "neutral",
|
|
8551
|
+
type: "button",
|
|
8552
|
+
onClick: () => {
|
|
8553
|
+
setSelected(initialSelectedRef.current);
|
|
8554
|
+
setShowCalendar(false);
|
|
8555
|
+
},
|
|
8556
|
+
size: "medium",
|
|
8557
|
+
fontWeight: "regular",
|
|
8558
|
+
children: "Cancelar"
|
|
8559
|
+
}
|
|
8560
|
+
),
|
|
8561
|
+
/* @__PURE__ */ jsx16(
|
|
8549
8562
|
Button,
|
|
8550
8563
|
{
|
|
8551
8564
|
style: { margin: "0 0.5rem" },
|
|
@@ -8560,10 +8573,31 @@ function DoubleCalendar(_a) {
|
|
|
8560
8573
|
children: actionText != null ? actionText : "Aplicar"
|
|
8561
8574
|
}
|
|
8562
8575
|
)
|
|
8563
|
-
}
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8576
|
+
] }),
|
|
8577
|
+
simpleAction && /* @__PURE__ */ jsx16(CalendarFooterStyled, { children: /* @__PURE__ */ jsx16(
|
|
8578
|
+
"div",
|
|
8579
|
+
{
|
|
8580
|
+
style: { display: "flex", justifyContent: "center", padding: "1rem", width: "100%" },
|
|
8581
|
+
children: /* @__PURE__ */ jsx16(
|
|
8582
|
+
Button,
|
|
8583
|
+
{
|
|
8584
|
+
style: { margin: "0 0.5rem" },
|
|
8585
|
+
variant: "text",
|
|
8586
|
+
color: "brand",
|
|
8587
|
+
type: "button",
|
|
8588
|
+
onClick: () => {
|
|
8589
|
+
setShowCalendar(false);
|
|
8590
|
+
},
|
|
8591
|
+
size: "medium",
|
|
8592
|
+
fontWeight: "medium",
|
|
8593
|
+
children: actionText != null ? actionText : "Aplicar"
|
|
8594
|
+
}
|
|
8595
|
+
)
|
|
8596
|
+
}
|
|
8597
|
+
) })
|
|
8598
|
+
] })
|
|
8599
|
+
] }))
|
|
8600
|
+
] });
|
|
8567
8601
|
}
|
|
8568
8602
|
|
|
8569
8603
|
// src/components/Drawer/index.tsx
|
|
@@ -10457,6 +10491,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
10457
10491
|
maxHeight: MOBILE_MODAL_MAX_HEIGHT,
|
|
10458
10492
|
zIndex: modalZIndex,
|
|
10459
10493
|
preventAutoFocus: true,
|
|
10494
|
+
titleTypography: "headline8",
|
|
10460
10495
|
fitContent: true,
|
|
10461
10496
|
children: /* @__PURE__ */ jsx27(
|
|
10462
10497
|
StyledModalOptionsWrapper,
|