@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.
Files changed (98) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +24 -21
  3. package/CHANGELOG.md +12 -0
  4. package/dist/index.d.mts +5 -3
  5. package/dist/index.d.ts +5 -3
  6. package/dist/index.js +177 -142
  7. package/dist/index.mjs +177 -142
  8. package/package.json +1 -1
  9. package/src/components/Alert.tsx +303 -303
  10. package/src/components/Avatar.tsx +55 -55
  11. package/src/components/Badge.tsx +132 -132
  12. package/src/components/Box.tsx +3 -3
  13. package/src/components/Button/index.tsx +85 -85
  14. package/src/components/Button/styledComponents.ts +361 -361
  15. package/src/components/ButtonGroup.tsx +484 -484
  16. package/src/components/Calendar/index.tsx +172 -168
  17. package/src/components/Calendar/styledComponents.ts +508 -480
  18. package/src/components/Card.tsx +74 -74
  19. package/src/components/CheckboxGroup.tsx +176 -176
  20. package/src/components/Container.tsx +39 -39
  21. package/src/components/Divider.tsx +7 -7
  22. package/src/components/DoubleCalendar/index.tsx +208 -204
  23. package/src/components/Drawer/index.tsx +113 -113
  24. package/src/components/Drawer/styledComponents.ts +97 -97
  25. package/src/components/Dropdown.tsx +302 -302
  26. package/src/components/Filter.tsx +164 -164
  27. package/src/components/Flex.tsx +130 -130
  28. package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
  29. package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
  30. package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
  31. package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
  32. package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
  33. package/src/components/FormFields/BirthDateFormField.tsx +84 -84
  34. package/src/components/FormFields/CNPJFormField.tsx +87 -87
  35. package/src/components/FormFields/CPFFormField.tsx +78 -78
  36. package/src/components/FormFields/CalendarFormField.tsx +98 -98
  37. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  38. package/src/components/FormFields/DateAndTimeFormField.tsx +217 -217
  39. package/src/components/FormFields/DoubleCalendarFormField.tsx +96 -96
  40. package/src/components/FormFields/EmailFormField.tsx +27 -27
  41. package/src/components/FormFields/Form.tsx +39 -39
  42. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
  43. package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
  44. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  45. package/src/components/FormFields/RadioGroupFormField.tsx +88 -88
  46. package/src/components/FormFields/RichEditorFormField.tsx +128 -128
  47. package/src/components/FormFields/SelectFormField.tsx +113 -113
  48. package/src/components/FormFields/SwitchFormField.tsx +46 -46
  49. package/src/components/FormFields/TextAreaFormField.tsx +61 -61
  50. package/src/components/FormFields/TextFormField.tsx +112 -112
  51. package/src/components/FormFields/TimePickerFormField.tsx +88 -88
  52. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  53. package/src/components/FormFields/subComponents/FormLabel.tsx +36 -36
  54. package/src/components/FormFields/utils/validation.ts +23 -23
  55. package/src/components/Grid.tsx +137 -137
  56. package/src/components/Icon.tsx +47 -47
  57. package/src/components/MenuDropdown/index.tsx +38 -38
  58. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  59. package/src/components/Modal.tsx +135 -131
  60. package/src/components/MultiSelect/index.tsx +418 -417
  61. package/src/components/MultiSelect/styledComponents.ts +176 -176
  62. package/src/components/RadioGroup.tsx +210 -210
  63. package/src/components/RichEditor/QuillComponent.tsx +419 -419
  64. package/src/components/RichEditor/RichEditor.tsx +53 -53
  65. package/src/components/RichEditor/RichTextPresenter.tsx +18 -18
  66. package/src/components/RichEditor/editorConfig.ts +149 -149
  67. package/src/components/RichEditor/index.ts +3 -3
  68. package/src/components/RichEditor/styledComponents.ts +1175 -1175
  69. package/src/components/RichEditor/types.ts +12 -12
  70. package/src/components/Section.tsx +33 -33
  71. package/src/components/Step.tsx +164 -164
  72. package/src/components/Switch.tsx +108 -108
  73. package/src/components/Text.tsx +54 -54
  74. package/src/components/TextField.tsx +423 -423
  75. package/src/components/TextareaField.tsx +116 -116
  76. package/src/components/TimePicker.tsx +357 -357
  77. package/src/components/Toast/components/ToastItem.tsx +41 -41
  78. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  79. package/src/components/Toast/hooks/useToast.ts +12 -12
  80. package/src/components/Toast/index.tsx +5 -5
  81. package/src/components/Toast/styles/index.ts +135 -135
  82. package/src/components/Toast/types/index.ts +46 -46
  83. package/src/components/ToggleElement/index.tsx +58 -58
  84. package/src/components/Tooltip/index.tsx +126 -126
  85. package/src/components/Tooltip/styles.ts +77 -77
  86. package/src/hooks/useCountries.ts +41 -41
  87. package/src/hooks/useHasHover.ts +21 -21
  88. package/src/hooks/useImageUpload.ts +139 -139
  89. package/src/hooks/useMediaQuery.ts +19 -19
  90. package/src/hooks/useOnClickOutside.tsx +42 -42
  91. package/src/index.tsx +72 -72
  92. package/src/styles/index.ts +41 -41
  93. package/src/types/typographyValues.ts +178 -178
  94. package/src/utils/getNestedValue.ts +3 -3
  95. package/src/utils/states.ts +29 -29
  96. package/src/utils/uploadService.ts +180 -180
  97. package/tsconfig.json +3 -3
  98. package/tsup.config.ts +38 -38
package/.eslintrc.json CHANGED
@@ -1,3 +1,3 @@
1
- {
2
- "extends": "@lets-events/eslint-config"
1
+ {
2
+ "extends": "@lets-events/eslint-config"
3
3
  }
@@ -1,21 +1,24 @@
1
-
2
-
3
- > @lets-events/react@12.11.1 build
4
- > tsup src/index.tsx --format esm,cjs --dts --external react
5
-
6
- CLI Building entry: src/index.tsx
7
- CLI Using tsconfig: tsconfig.json
8
- CLI tsup v8.5.0
9
- CLI Using tsup config: /home/bia3003/Lets/design-system/packages/react/tsup.config.ts
10
- CLI Target: es6
11
- ESM Build start
12
- CJS Build start
13
- CJS dist/index.js 437.94 KB
14
- CJS ⚡️ Build success in 305ms
15
- ESM dist/index.mjs 421.87 KB
16
- ESM ⚡️ Build success in 305ms
17
- DTS Build start
18
- DTS ⚡️ Build success in 6455ms
19
- DTS dist/index.d.mts 411.09 KB
20
- DTS dist/index.d.ts 411.09 KB
21
- ⠙
1
+
2
+ > @lets-events/react@12.11.3 build
3
+ > tsup src/index.tsx --format esm,cjs --dts --external react
4
+
5
+ CLI Building entry: src/index.tsx
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.0
8
+ CLI Using tsup config: C:\Users\Cazuza\Desktop\Web\design-system\packages\react\tsup.config.ts
9
+ CLI Target: es6
10
+ ESM Build start
11
+ CJS Build start
12
+ ESM dist\index.mjs 423.24 KB
13
+ ESM ⚡️ Build success in 1314ms
14
+ CJS dist\index.js 439.36 KB
15
+ CJS ⚡️ Build success in 1314ms
16
+ DTS Build start
17
+ DTS ⚡️ Build success in 7050ms
18
+ DTS dist\index.d.mts 411.19 KB
19
+ DTS dist\index.d.ts 411.19 KB
20
+ npm notice
21
+ npm notice New minor version of npm available! 11.5.1 -> 11.19.1
22
+ npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.19.1
23
+ npm notice To update run: npm install -g npm@11.19.1
24
+ npm notice
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.11.3
4
+
5
+ ### Patch Changes
6
+
7
+ - mobile calendar
8
+
9
+ ## 12.11.2
10
+
11
+ ### Patch Changes
12
+
13
+ - modal title typograph
14
+
3
15
  ## 12.11.1
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -929,13 +929,13 @@ declare const TextStyle: _stitches_react_types_styled_component.StyledComponent<
929
929
  transition: "transitions";
930
930
  zIndex: "zIndices";
931
931
  }, {}>>;
932
- type Typography = keyof typeof typographyValues;
932
+ type Typography$1 = keyof typeof typographyValues;
933
933
  type FontWeight = "regular" | "medium" | "semibold" | "bold";
934
934
  type TextProps = {
935
935
  as?: ElementType;
936
936
  asChild?: boolean;
937
937
  color?: keyof Colors;
938
- typography?: Typography;
938
+ typography?: Typography$1;
939
939
  fontWeight?: FontWeight;
940
940
  children?: ReactNode;
941
941
  id?: string;
@@ -4495,6 +4495,7 @@ type BadgeProps = {
4495
4495
  };
4496
4496
  declare function Badge({ asChild, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
4497
4497
 
4498
+ type Typography = keyof typeof typographyValues;
4498
4499
  type ModalProps = ComponentProps<typeof Dialog.Root> & {
4499
4500
  trigger?: React.ReactNode;
4500
4501
  title?: string;
@@ -4505,8 +4506,9 @@ type ModalProps = ComponentProps<typeof Dialog.Root> & {
4505
4506
  height?: string;
4506
4507
  preventAutoFocus?: boolean;
4507
4508
  fitContent?: boolean;
4509
+ titleTypography?: Typography;
4508
4510
  };
4509
- declare function Modal({ children, title, trigger, zIndex, maxWidth, maxHeight, height, preventAutoFocus, fitContent, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
4511
+ declare function Modal({ children, title, trigger, zIndex, maxWidth, maxHeight, height, preventAutoFocus, fitContent, titleTypography, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
4510
4512
 
4511
4513
  type MenuDropdownProps = HTMLAttributes<HTMLDivElement> & {
4512
4514
  children: ReactNode;
package/dist/index.d.ts CHANGED
@@ -929,13 +929,13 @@ declare const TextStyle: _stitches_react_types_styled_component.StyledComponent<
929
929
  transition: "transitions";
930
930
  zIndex: "zIndices";
931
931
  }, {}>>;
932
- type Typography = keyof typeof typographyValues;
932
+ type Typography$1 = keyof typeof typographyValues;
933
933
  type FontWeight = "regular" | "medium" | "semibold" | "bold";
934
934
  type TextProps = {
935
935
  as?: ElementType;
936
936
  asChild?: boolean;
937
937
  color?: keyof Colors;
938
- typography?: Typography;
938
+ typography?: Typography$1;
939
939
  fontWeight?: FontWeight;
940
940
  children?: ReactNode;
941
941
  id?: string;
@@ -4495,6 +4495,7 @@ type BadgeProps = {
4495
4495
  };
4496
4496
  declare function Badge({ asChild, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
4497
4497
 
4498
+ type Typography = keyof typeof typographyValues;
4498
4499
  type ModalProps = ComponentProps<typeof Dialog.Root> & {
4499
4500
  trigger?: React.ReactNode;
4500
4501
  title?: string;
@@ -4505,8 +4506,9 @@ type ModalProps = ComponentProps<typeof Dialog.Root> & {
4505
4506
  height?: string;
4506
4507
  preventAutoFocus?: boolean;
4507
4508
  fitContent?: boolean;
4509
+ titleTypography?: Typography;
4508
4510
  };
4509
- declare function Modal({ children, title, trigger, zIndex, maxWidth, maxHeight, height, preventAutoFocus, fitContent, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
4511
+ declare function Modal({ children, title, trigger, zIndex, maxWidth, maxHeight, height, preventAutoFocus, fitContent, titleTypography, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
4510
4512
 
4511
4513
  type MenuDropdownProps = HTMLAttributes<HTMLDivElement> & {
4512
4514
  children: ReactNode;
package/dist/index.js CHANGED
@@ -3890,7 +3890,8 @@ function Modal(_a) {
3890
3890
  maxHeight,
3891
3891
  height,
3892
3892
  preventAutoFocus = false,
3893
- fitContent = false
3893
+ fitContent = false,
3894
+ titleTypography = "headline6"
3894
3895
  } = _b, props = __objRest(_b, [
3895
3896
  "children",
3896
3897
  "title",
@@ -3900,7 +3901,8 @@ function Modal(_a) {
3900
3901
  "maxHeight",
3901
3902
  "height",
3902
3903
  "preventAutoFocus",
3903
- "fitContent"
3904
+ "fitContent",
3905
+ "titleTypography"
3904
3906
  ]);
3905
3907
  const { onOpenChange } = props;
3906
3908
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_radix_ui.Dialog.Root, __spreadProps(__spreadValues({}, props), { children: [
@@ -3924,7 +3926,7 @@ function Modal(_a) {
3924
3926
  }, maxHeight !== void 0 && { maxHeight }), height !== void 0 && { height }), fitContent && height === void 0 && { height: "fit-content" }),
3925
3927
  children: [
3926
3928
  title && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ModalHeaderStyled, { children: [
3927
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { typography: "headline6", fontWeight: "medium", children: title }) }),
3929
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { typography: titleTypography, fontWeight: "medium", children: title }) }),
3928
3930
  (onOpenChange || trigger) && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalIconClose, { name: "close", size: "xl" }) })
3929
3931
  ] }),
3930
3932
  children
@@ -7934,6 +7936,27 @@ var CalendarStyled = styled("div", {
7934
7936
  }
7935
7937
  }
7936
7938
  });
7939
+ var calendarMobileCentered = {
7940
+ position: "fixed",
7941
+ top: "50%",
7942
+ left: "50%",
7943
+ right: "auto",
7944
+ bottom: "auto",
7945
+ transform: "translate(-50%, -50%)",
7946
+ maxWidth: "calc(100vw - 32px)",
7947
+ maxHeight: "90vh",
7948
+ overflowY: "auto"
7949
+ };
7950
+ var CalendarOverlayStyled = styled("div", {
7951
+ display: "none",
7952
+ "@media (max-width: 748px)": {
7953
+ display: "block",
7954
+ position: "fixed",
7955
+ inset: 0,
7956
+ backgroundColor: "rgba(0, 0, 0, 0.5)",
7957
+ zIndex: 999998
7958
+ }
7959
+ });
7937
7960
  var CalendarButtonStyled = styled("button", {
7938
7961
  backgroundColor: "transparent",
7939
7962
  border: "none",
@@ -7967,23 +7990,28 @@ var CalendarContentStyled = styled("div", {
7967
7990
  position: "absolute",
7968
7991
  backgroundColor: "$neutral50",
7969
7992
  zIndex: "999999",
7993
+ "@media (max-width: 748px)": calendarMobileCentered,
7970
7994
  variants: {
7971
7995
  position: {
7972
7996
  top: {
7973
7997
  bottom: "110%",
7974
- left: "0"
7998
+ left: "0",
7999
+ "@media (max-width: 748px)": calendarMobileCentered
7975
8000
  },
7976
8001
  bottom: {
7977
8002
  top: "110%",
7978
- left: "0"
8003
+ left: "0",
8004
+ "@media (max-width: 748px)": calendarMobileCentered
7979
8005
  },
7980
8006
  "top-right": {
7981
8007
  bottom: "110%",
7982
- right: "0"
8008
+ right: "0",
8009
+ "@media (max-width: 748px)": calendarMobileCentered
7983
8010
  },
7984
8011
  "bottom-right": {
7985
8012
  top: "110%",
7986
- right: "0"
8013
+ right: "0",
8014
+ "@media (max-width: 748px)": calendarMobileCentered
7987
8015
  }
7988
8016
  }
7989
8017
  }
@@ -8461,60 +8489,63 @@ function Calendar(_a) {
8461
8489
  console.warn("Data inv\xE1lida inserida no input:", masked);
8462
8490
  }
8463
8491
  };
8464
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
8465
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8466
- CalendarButtonStyled,
8467
- {
8468
- expand,
8469
- type: "button",
8470
- onClick: () => setShowCalendar((prev) => !prev),
8471
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8472
- TextField,
8473
- {
8474
- placeholder: "00/00/0000",
8475
- type: "text",
8476
- value: inputValue,
8477
- onChange: handleInputChange,
8478
- inputMode: "numeric",
8479
- textAlign: "right",
8480
- color: hasError ? "error" : "default",
8481
- disabled,
8482
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon_default, { name: "calendar", size: "xl", color: "#4C4F54" }) })
8483
- }
8484
- )
8485
- }
8486
- ),
8487
- showContainer && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(CalendarContentStyled, { position, children: [
8488
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DayPickerWrapperStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8489
- import_react_day_picker.DayPicker,
8490
- {
8491
- mode: "single",
8492
- captionLayout: calendarLayout,
8493
- selected,
8494
- onSelect: setSelected,
8495
- required: true,
8496
- locale: ptBR,
8497
- disabled: disabledDays.length > 0 ? disabledDays : void 0,
8498
- startMonth: allowPastDates ? void 0 : today,
8499
- endMonth: resolvedMaxDate
8500
- }
8501
- ) }) }),
8502
- action && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CalendarFooterStyled, { actionAlign, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8503
- Button,
8492
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { children: [
8493
+ showContainer && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CalendarOverlayStyled, { onClick: () => setShowCalendar(false) }),
8494
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
8495
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8496
+ CalendarButtonStyled,
8504
8497
  {
8505
- variant: "text",
8506
- color: "brand",
8498
+ expand,
8507
8499
  type: "button",
8508
- onClick: () => {
8509
- setShowCalendar(false);
8510
- },
8511
- size: "medium",
8512
- fontWeight: "medium",
8513
- children: actionText != null ? actionText : "Aplicar"
8500
+ onClick: () => setShowCalendar((prev) => !prev),
8501
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8502
+ TextField,
8503
+ {
8504
+ placeholder: "00/00/0000",
8505
+ type: "text",
8506
+ value: inputValue,
8507
+ onChange: handleInputChange,
8508
+ inputMode: "numeric",
8509
+ textAlign: "right",
8510
+ color: hasError ? "error" : "default",
8511
+ disabled,
8512
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon_default, { name: "calendar", size: "xl", color: "#4C4F54" }) })
8513
+ }
8514
+ )
8514
8515
  }
8515
- ) })
8516
- ] })
8517
- ] })) });
8516
+ ),
8517
+ showContainer && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(CalendarContentStyled, { position, children: [
8518
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DayPickerWrapperStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8519
+ import_react_day_picker.DayPicker,
8520
+ {
8521
+ mode: "single",
8522
+ captionLayout: calendarLayout,
8523
+ selected,
8524
+ onSelect: setSelected,
8525
+ required: true,
8526
+ locale: ptBR,
8527
+ disabled: disabledDays.length > 0 ? disabledDays : void 0,
8528
+ startMonth: allowPastDates ? void 0 : today,
8529
+ endMonth: resolvedMaxDate
8530
+ }
8531
+ ) }) }),
8532
+ action && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CalendarFooterStyled, { actionAlign, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8533
+ Button,
8534
+ {
8535
+ variant: "text",
8536
+ color: "brand",
8537
+ type: "button",
8538
+ onClick: () => {
8539
+ setShowCalendar(false);
8540
+ },
8541
+ size: "medium",
8542
+ fontWeight: "medium",
8543
+ children: actionText != null ? actionText : "Aplicar"
8544
+ }
8545
+ ) })
8546
+ ] })
8547
+ ] }))
8548
+ ] });
8518
8549
  }
8519
8550
 
8520
8551
  // src/components/DoubleCalendar/index.tsx
@@ -8580,89 +8611,71 @@ function DoubleCalendar(_a) {
8580
8611
  setEndValue("");
8581
8612
  }
8582
8613
  }, [selected]);
8583
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
8584
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8585
- CalendarButtonStyled,
8586
- {
8587
- expand,
8588
- type: "button",
8589
- onClick: () => setShowCalendar((prev) => {
8590
- const next = !prev;
8591
- if (!prev) initialSelectedRef.current = selected;
8592
- return next;
8593
- }),
8594
- disabled,
8595
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { display: "flex", gap: "8px", width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8596
- TextField,
8597
- {
8598
- placeholder: "00/00/0000 - 00/00/0000",
8599
- type: "text",
8600
- value: `${startValue || "00/00/0000"} - ${endValue || "00/00/0000"}`,
8601
- readOnly: true,
8602
- inputMode: "numeric",
8603
- textAlign: "right",
8604
- color: hasError ? "error" : "default",
8605
- disabled,
8606
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon_default, { name: "calendar", size: "xl", color: "#4C4F54" }) })
8607
- }
8608
- ) })
8609
- }
8610
- ),
8611
- showContainer && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CalendarContentStyled, { position, children: [
8612
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DayPickerWrapperStyledToDoubleCalendar, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8613
- import_react_day_picker2.DayPicker,
8614
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
8615
+ showContainer && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CalendarOverlayStyled, { onClick: () => setShowCalendar(false) }),
8616
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
8617
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8618
+ CalendarButtonStyled,
8614
8619
  {
8615
- mode: "range",
8616
- numberOfMonths: 2,
8617
- captionLayout: calendarLayout,
8618
- selected,
8619
- onSelect: setSelected,
8620
- required: true,
8621
- locale: ptBR,
8622
- disabled: disabledDays.length > 0 ? disabledDays : void 0,
8623
- fromMonth: allowPastDates ? void 0 : today,
8624
- toMonth: resolvedMaxDate
8625
- }
8626
- ) }) }),
8627
- action && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CalendarFooterStyled, { children: [
8628
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { textAlign: "center", padding: "1rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("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"}` }) }),
8629
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8630
- Button,
8620
+ expand,
8621
+ type: "button",
8622
+ onClick: () => setShowCalendar((prev) => {
8623
+ const next = !prev;
8624
+ if (!prev) initialSelectedRef.current = selected;
8625
+ return next;
8626
+ }),
8627
+ disabled,
8628
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { display: "flex", gap: "8px", width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8629
+ TextField,
8630
+ {
8631
+ placeholder: "00/00/0000 - 00/00/0000",
8632
+ type: "text",
8633
+ value: `${startValue || "00/00/0000"} - ${endValue || "00/00/0000"}`,
8634
+ readOnly: true,
8635
+ inputMode: "numeric",
8636
+ textAlign: "right",
8637
+ color: hasError ? "error" : "default",
8638
+ disabled,
8639
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon_default, { name: "calendar", size: "xl", color: "#4C4F54" }) })
8640
+ }
8641
+ ) })
8642
+ }
8643
+ ),
8644
+ showContainer && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CalendarContentStyled, { position, children: [
8645
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DayPickerWrapperStyledToDoubleCalendar, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8646
+ import_react_day_picker2.DayPicker,
8631
8647
  {
8632
- style: { margin: "0 0.5rem" },
8633
- variant: "text",
8634
- color: "neutral",
8635
- type: "button",
8636
- onClick: () => {
8637
- setSelected(initialSelectedRef.current);
8638
- setShowCalendar(false);
8639
- },
8640
- size: "medium",
8641
- fontWeight: "regular",
8642
- children: "Cancelar"
8648
+ mode: "range",
8649
+ numberOfMonths: 2,
8650
+ captionLayout: calendarLayout,
8651
+ selected,
8652
+ onSelect: setSelected,
8653
+ required: true,
8654
+ locale: ptBR,
8655
+ disabled: disabledDays.length > 0 ? disabledDays : void 0,
8656
+ fromMonth: allowPastDates ? void 0 : today,
8657
+ toMonth: resolvedMaxDate
8643
8658
  }
8644
- ),
8645
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8646
- Button,
8647
- {
8648
- style: { margin: "0 0.5rem" },
8649
- variant: "text",
8650
- color: "brand",
8651
- type: "button",
8652
- onClick: () => {
8653
- setShowCalendar(false);
8654
- },
8655
- size: "medium",
8656
- fontWeight: "medium",
8657
- children: actionText != null ? actionText : "Aplicar"
8658
- }
8659
- )
8660
- ] }),
8661
- simpleAction && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CalendarFooterStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8662
- "div",
8663
- {
8664
- style: { display: "flex", justifyContent: "center", padding: "1rem", width: "100%" },
8665
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8659
+ ) }) }),
8660
+ action && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CalendarFooterStyled, { children: [
8661
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { textAlign: "center", padding: "1rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("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"}` }) }),
8662
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8663
+ Button,
8664
+ {
8665
+ style: { margin: "0 0.5rem" },
8666
+ variant: "text",
8667
+ color: "neutral",
8668
+ type: "button",
8669
+ onClick: () => {
8670
+ setSelected(initialSelectedRef.current);
8671
+ setShowCalendar(false);
8672
+ },
8673
+ size: "medium",
8674
+ fontWeight: "regular",
8675
+ children: "Cancelar"
8676
+ }
8677
+ ),
8678
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8666
8679
  Button,
8667
8680
  {
8668
8681
  style: { margin: "0 0.5rem" },
@@ -8677,10 +8690,31 @@ function DoubleCalendar(_a) {
8677
8690
  children: actionText != null ? actionText : "Aplicar"
8678
8691
  }
8679
8692
  )
8680
- }
8681
- ) })
8682
- ] })
8683
- ] })) });
8693
+ ] }),
8694
+ simpleAction && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CalendarFooterStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8695
+ "div",
8696
+ {
8697
+ style: { display: "flex", justifyContent: "center", padding: "1rem", width: "100%" },
8698
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8699
+ Button,
8700
+ {
8701
+ style: { margin: "0 0.5rem" },
8702
+ variant: "text",
8703
+ color: "brand",
8704
+ type: "button",
8705
+ onClick: () => {
8706
+ setShowCalendar(false);
8707
+ },
8708
+ size: "medium",
8709
+ fontWeight: "medium",
8710
+ children: actionText != null ? actionText : "Aplicar"
8711
+ }
8712
+ )
8713
+ }
8714
+ ) })
8715
+ ] })
8716
+ ] }))
8717
+ ] });
8684
8718
  }
8685
8719
 
8686
8720
  // src/components/Drawer/index.tsx
@@ -10570,6 +10604,7 @@ var MultiSelect = import_react20.default.forwardRef(
10570
10604
  maxHeight: MOBILE_MODAL_MAX_HEIGHT,
10571
10605
  zIndex: modalZIndex,
10572
10606
  preventAutoFocus: true,
10607
+ titleTypography: "headline8",
10573
10608
  fitContent: true,
10574
10609
  children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
10575
10610
  StyledModalOptionsWrapper,