@lets-events/react 12.11.3 → 12.11.5
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 +21 -24
- package/CHANGELOG.md +12 -0
- package/dist/index.js +37 -31
- package/dist/index.mjs +46 -40
- 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 -172
- package/src/components/Calendar/styledComponents.ts +508 -508
- 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 -208
- package/src/components/Drawer/index.tsx +113 -113
- package/src/components/Drawer/styledComponents.ts +105 -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 -135
- package/src/components/MultiSelect/index.tsx +418 -418
- 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/.eslintrc.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@lets-events/eslint-config"
|
|
1
|
+
{
|
|
2
|
+
"extends": "@lets-events/eslint-config"
|
|
3
3
|
}
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[34mCLI[39m
|
|
7
|
-
[34mCLI[39m
|
|
8
|
-
[34mCLI[39m
|
|
9
|
-
[34mCLI[39m
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[32mESM[39m
|
|
14
|
-
[
|
|
15
|
-
[32mCJS[39m
|
|
16
|
-
[
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @lets-events/react@12.11.5 build
|
|
4
|
+
> tsup src/index.tsx --format esm,cjs --dts --external react
|
|
5
|
+
|
|
6
|
+
[1G[0K[34mCLI[39m Building entry: src/index.tsx
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.0
|
|
9
|
+
[34mCLI[39m Using tsup config: /home/bia3003/Lets/design-system/packages/react/tsup.config.ts
|
|
10
|
+
[34mCLI[39m Target: es6
|
|
11
|
+
[34mESM[39m Build start
|
|
12
|
+
[34mCJS[39m Build start
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m423.54 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in -258293ms
|
|
15
|
+
[32mCJS[39m [1mdist/index.js [22m[32m439.68 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in -258292ms
|
|
17
|
+
DTS Build start
|
|
18
|
+
DTS ⚡️ Build success in 7027ms
|
|
19
|
+
DTS dist/index.d.mts 411.19 KB
|
|
20
|
+
DTS dist/index.d.ts 411.19 KB
|
|
21
|
+
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -8721,12 +8721,20 @@ function DoubleCalendar(_a) {
|
|
|
8721
8721
|
var import_react10 = require("react");
|
|
8722
8722
|
|
|
8723
8723
|
// src/components/Drawer/styledComponents.ts
|
|
8724
|
-
var
|
|
8724
|
+
var viewportHeight = {
|
|
8725
|
+
height: "100vh",
|
|
8726
|
+
minHeight: "100vh",
|
|
8727
|
+
"@supports (height: 100dvh)": {
|
|
8728
|
+
height: "100dvh",
|
|
8729
|
+
minHeight: "100dvh"
|
|
8730
|
+
}
|
|
8731
|
+
};
|
|
8732
|
+
var DrawerOverlayStyled = styled("div", __spreadProps(__spreadValues({
|
|
8725
8733
|
position: "fixed",
|
|
8726
8734
|
top: 0,
|
|
8727
8735
|
right: 0,
|
|
8728
|
-
width: "100vw"
|
|
8729
|
-
|
|
8736
|
+
width: "100vw"
|
|
8737
|
+
}, viewportHeight), {
|
|
8730
8738
|
background: "rgba(0, 0, 0, 0.4)",
|
|
8731
8739
|
transition: "opacity 200ms ease",
|
|
8732
8740
|
variants: {
|
|
@@ -8740,46 +8748,44 @@ var DrawerOverlayStyled = styled("div", {
|
|
|
8740
8748
|
}
|
|
8741
8749
|
}
|
|
8742
8750
|
}
|
|
8743
|
-
});
|
|
8744
|
-
var DrawerWrapper = styled("div", {
|
|
8751
|
+
}));
|
|
8752
|
+
var DrawerWrapper = styled("div", __spreadProps(__spreadValues({
|
|
8745
8753
|
position: "fixed",
|
|
8746
8754
|
top: 0,
|
|
8747
|
-
right: 0
|
|
8748
|
-
|
|
8755
|
+
right: 0
|
|
8756
|
+
}, viewportHeight), {
|
|
8749
8757
|
overflow: "hidden",
|
|
8758
|
+
transition: "transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)",
|
|
8750
8759
|
variants: {
|
|
8751
8760
|
open: {
|
|
8752
|
-
true: {
|
|
8761
|
+
true: {
|
|
8762
|
+
transform: "translateX(0) scale(1)"
|
|
8763
|
+
},
|
|
8753
8764
|
false: {
|
|
8754
|
-
pointerEvents: "none"
|
|
8765
|
+
pointerEvents: "none",
|
|
8766
|
+
transform: "translateX(110%) scale(0.98)"
|
|
8755
8767
|
}
|
|
8756
8768
|
}
|
|
8757
8769
|
}
|
|
8758
|
-
});
|
|
8770
|
+
}));
|
|
8759
8771
|
var DrawerContainerStyled = styled("div", {
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
right: 0,
|
|
8763
|
-
height: "100dvh",
|
|
8772
|
+
width: "100%",
|
|
8773
|
+
height: "100%",
|
|
8764
8774
|
background: "$neutral50",
|
|
8765
8775
|
display: "flex",
|
|
8766
8776
|
flexDirection: "column",
|
|
8767
8777
|
boxShadow: "-4px 0 12px rgba(0, 0, 0, 0.2)",
|
|
8778
|
+
overflow: "hidden",
|
|
8779
|
+
boxSizing: "border-box"
|
|
8780
|
+
});
|
|
8781
|
+
var DrawerBodyStyled = styled("div", {
|
|
8782
|
+
flex: 1,
|
|
8783
|
+
minHeight: 0,
|
|
8768
8784
|
overflowY: "auto",
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
paddingBottom: "1.5rem"
|
|
8773
|
-
variants: {
|
|
8774
|
-
open: {
|
|
8775
|
-
true: {
|
|
8776
|
-
transform: "translateX(0) scale(1)"
|
|
8777
|
-
},
|
|
8778
|
-
false: {
|
|
8779
|
-
transform: "translateX(110%) scale(0.98)"
|
|
8780
|
-
}
|
|
8781
|
-
}
|
|
8782
|
-
}
|
|
8785
|
+
WebkitOverflowScrolling: "touch",
|
|
8786
|
+
touchAction: "pan-y",
|
|
8787
|
+
overscrollBehavior: "contain",
|
|
8788
|
+
paddingBottom: "1.5rem"
|
|
8783
8789
|
});
|
|
8784
8790
|
var DrawerHeaderDiv = styled("div", {
|
|
8785
8791
|
display: "flex",
|
|
@@ -8787,7 +8793,8 @@ var DrawerHeaderDiv = styled("div", {
|
|
|
8787
8793
|
alignItems: "center",
|
|
8788
8794
|
borderBottom: "1px solid $neutral300",
|
|
8789
8795
|
padding: "1.5rem 1rem",
|
|
8790
|
-
position: "relative"
|
|
8796
|
+
position: "relative",
|
|
8797
|
+
flexShrink: 0
|
|
8791
8798
|
});
|
|
8792
8799
|
var DrawerHeaderTitle = styled("h2", {
|
|
8793
8800
|
fontSize: "1.125rem",
|
|
@@ -8865,7 +8872,6 @@ function Drawer({
|
|
|
8865
8872
|
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
8866
8873
|
DrawerContainerStyled,
|
|
8867
8874
|
{
|
|
8868
|
-
open: isOpen,
|
|
8869
8875
|
css: {
|
|
8870
8876
|
backgroundColor: colors[backgroundColor != null ? backgroundColor : "neutral50"]
|
|
8871
8877
|
},
|
|
@@ -8886,7 +8892,7 @@ function Drawer({
|
|
|
8886
8892
|
] })
|
|
8887
8893
|
] })
|
|
8888
8894
|
] }),
|
|
8889
|
-
isOpen ? children : null
|
|
8895
|
+
isOpen ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DrawerBodyStyled, { children }) : null
|
|
8890
8896
|
]
|
|
8891
8897
|
}
|
|
8892
8898
|
)
|
package/dist/index.mjs
CHANGED
|
@@ -8604,12 +8604,20 @@ function DoubleCalendar(_a) {
|
|
|
8604
8604
|
import { useEffect as useEffect5 } from "react";
|
|
8605
8605
|
|
|
8606
8606
|
// src/components/Drawer/styledComponents.ts
|
|
8607
|
-
var
|
|
8607
|
+
var viewportHeight = {
|
|
8608
|
+
height: "100vh",
|
|
8609
|
+
minHeight: "100vh",
|
|
8610
|
+
"@supports (height: 100dvh)": {
|
|
8611
|
+
height: "100dvh",
|
|
8612
|
+
minHeight: "100dvh"
|
|
8613
|
+
}
|
|
8614
|
+
};
|
|
8615
|
+
var DrawerOverlayStyled = styled("div", __spreadProps(__spreadValues({
|
|
8608
8616
|
position: "fixed",
|
|
8609
8617
|
top: 0,
|
|
8610
8618
|
right: 0,
|
|
8611
|
-
width: "100vw"
|
|
8612
|
-
|
|
8619
|
+
width: "100vw"
|
|
8620
|
+
}, viewportHeight), {
|
|
8613
8621
|
background: "rgba(0, 0, 0, 0.4)",
|
|
8614
8622
|
transition: "opacity 200ms ease",
|
|
8615
8623
|
variants: {
|
|
@@ -8623,46 +8631,44 @@ var DrawerOverlayStyled = styled("div", {
|
|
|
8623
8631
|
}
|
|
8624
8632
|
}
|
|
8625
8633
|
}
|
|
8626
|
-
});
|
|
8627
|
-
var DrawerWrapper = styled("div", {
|
|
8634
|
+
}));
|
|
8635
|
+
var DrawerWrapper = styled("div", __spreadProps(__spreadValues({
|
|
8628
8636
|
position: "fixed",
|
|
8629
8637
|
top: 0,
|
|
8630
|
-
right: 0
|
|
8631
|
-
|
|
8638
|
+
right: 0
|
|
8639
|
+
}, viewportHeight), {
|
|
8632
8640
|
overflow: "hidden",
|
|
8641
|
+
transition: "transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)",
|
|
8633
8642
|
variants: {
|
|
8634
8643
|
open: {
|
|
8635
|
-
true: {
|
|
8644
|
+
true: {
|
|
8645
|
+
transform: "translateX(0) scale(1)"
|
|
8646
|
+
},
|
|
8636
8647
|
false: {
|
|
8637
|
-
pointerEvents: "none"
|
|
8648
|
+
pointerEvents: "none",
|
|
8649
|
+
transform: "translateX(110%) scale(0.98)"
|
|
8638
8650
|
}
|
|
8639
8651
|
}
|
|
8640
8652
|
}
|
|
8641
|
-
});
|
|
8653
|
+
}));
|
|
8642
8654
|
var DrawerContainerStyled = styled("div", {
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
right: 0,
|
|
8646
|
-
height: "100dvh",
|
|
8655
|
+
width: "100%",
|
|
8656
|
+
height: "100%",
|
|
8647
8657
|
background: "$neutral50",
|
|
8648
8658
|
display: "flex",
|
|
8649
8659
|
flexDirection: "column",
|
|
8650
8660
|
boxShadow: "-4px 0 12px rgba(0, 0, 0, 0.2)",
|
|
8661
|
+
overflow: "hidden",
|
|
8662
|
+
boxSizing: "border-box"
|
|
8663
|
+
});
|
|
8664
|
+
var DrawerBodyStyled = styled("div", {
|
|
8665
|
+
flex: 1,
|
|
8666
|
+
minHeight: 0,
|
|
8651
8667
|
overflowY: "auto",
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
paddingBottom: "1.5rem"
|
|
8656
|
-
variants: {
|
|
8657
|
-
open: {
|
|
8658
|
-
true: {
|
|
8659
|
-
transform: "translateX(0) scale(1)"
|
|
8660
|
-
},
|
|
8661
|
-
false: {
|
|
8662
|
-
transform: "translateX(110%) scale(0.98)"
|
|
8663
|
-
}
|
|
8664
|
-
}
|
|
8665
|
-
}
|
|
8668
|
+
WebkitOverflowScrolling: "touch",
|
|
8669
|
+
touchAction: "pan-y",
|
|
8670
|
+
overscrollBehavior: "contain",
|
|
8671
|
+
paddingBottom: "1.5rem"
|
|
8666
8672
|
});
|
|
8667
8673
|
var DrawerHeaderDiv = styled("div", {
|
|
8668
8674
|
display: "flex",
|
|
@@ -8670,7 +8676,8 @@ var DrawerHeaderDiv = styled("div", {
|
|
|
8670
8676
|
alignItems: "center",
|
|
8671
8677
|
borderBottom: "1px solid $neutral300",
|
|
8672
8678
|
padding: "1.5rem 1rem",
|
|
8673
|
-
position: "relative"
|
|
8679
|
+
position: "relative",
|
|
8680
|
+
flexShrink: 0
|
|
8674
8681
|
});
|
|
8675
8682
|
var DrawerHeaderTitle = styled("h2", {
|
|
8676
8683
|
fontSize: "1.125rem",
|
|
@@ -8748,7 +8755,6 @@ function Drawer({
|
|
|
8748
8755
|
children: /* @__PURE__ */ jsxs9(
|
|
8749
8756
|
DrawerContainerStyled,
|
|
8750
8757
|
{
|
|
8751
|
-
open: isOpen,
|
|
8752
8758
|
css: {
|
|
8753
8759
|
backgroundColor: colors[backgroundColor != null ? backgroundColor : "neutral50"]
|
|
8754
8760
|
},
|
|
@@ -8769,7 +8775,7 @@ function Drawer({
|
|
|
8769
8775
|
] })
|
|
8770
8776
|
] })
|
|
8771
8777
|
] }),
|
|
8772
|
-
isOpen ? children : null
|
|
8778
|
+
isOpen ? /* @__PURE__ */ jsx17(DrawerBodyStyled, { children }) : null
|
|
8773
8779
|
]
|
|
8774
8780
|
}
|
|
8775
8781
|
)
|
|
@@ -8779,7 +8785,7 @@ function Drawer({
|
|
|
8779
8785
|
}
|
|
8780
8786
|
|
|
8781
8787
|
// src/components/TimePicker.tsx
|
|
8782
|
-
import { useCallback, useEffect as useEffect6, useRef as
|
|
8788
|
+
import { useCallback, useEffect as useEffect6, useRef as useRef5, useState as useState5 } from "react";
|
|
8783
8789
|
import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
8784
8790
|
var TimePickerStyled = styled("div", {
|
|
8785
8791
|
position: "relative",
|
|
@@ -8923,7 +8929,7 @@ function TimePicker({
|
|
|
8923
8929
|
const [rawHours, setRawHours] = useState5("00");
|
|
8924
8930
|
const [rawMinutes, setRawMinutes] = useState5("00");
|
|
8925
8931
|
const [isOpen, setIsOpen] = useState5(false);
|
|
8926
|
-
const dropdownRef =
|
|
8932
|
+
const dropdownRef = useRef5(null);
|
|
8927
8933
|
useOnClickOutside(dropdownRef, () => setIsOpen(false));
|
|
8928
8934
|
useEffect6(() => {
|
|
8929
8935
|
const { parsedHours, parsedMinutes } = parseTime(selected);
|
|
@@ -9666,7 +9672,7 @@ function Card(_a) {
|
|
|
9666
9672
|
|
|
9667
9673
|
// src/components/TextareaField.tsx
|
|
9668
9674
|
import { TextArea as TextAreaRadix } from "@radix-ui/themes";
|
|
9669
|
-
import React9, { useRef as
|
|
9675
|
+
import React9, { useRef as useRef6, useState as useState6, useEffect as useEffect7 } from "react";
|
|
9670
9676
|
import { jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
9671
9677
|
var TextareaFieldStyle = styled(TextAreaRadix, {
|
|
9672
9678
|
display: "flex",
|
|
@@ -9719,7 +9725,7 @@ var TextareaContainer = styled("div", {
|
|
|
9719
9725
|
});
|
|
9720
9726
|
var TextareaField = React9.forwardRef((_a, forwardedRef) => {
|
|
9721
9727
|
var _b = _a, { maxLength, color, top = "-1.75rem" } = _b, props = __objRest(_b, ["maxLength", "color", "top"]);
|
|
9722
|
-
const inputRef =
|
|
9728
|
+
const inputRef = useRef6(null);
|
|
9723
9729
|
const [remaining, setRemaining] = useState6(maxLength);
|
|
9724
9730
|
useEffect7(() => {
|
|
9725
9731
|
var _a2;
|
|
@@ -10079,7 +10085,7 @@ function Tooltip({
|
|
|
10079
10085
|
}
|
|
10080
10086
|
|
|
10081
10087
|
// src/components/MultiSelect/index.tsx
|
|
10082
|
-
import React11, { useCallback as useCallback3, useRef as
|
|
10088
|
+
import React11, { useCallback as useCallback3, useRef as useRef8, useState as useState12 } from "react";
|
|
10083
10089
|
import { DropdownMenu as DropdownMenu4, Theme as Theme3 } from "@radix-ui/themes";
|
|
10084
10090
|
import { FontAwesomeIcon as FontAwesomeIcon3 } from "@fortawesome/react-fontawesome";
|
|
10085
10091
|
import {
|
|
@@ -10293,7 +10299,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
10293
10299
|
helperTextAfterField = ""
|
|
10294
10300
|
}, fowardedRef) => {
|
|
10295
10301
|
const [isOpen, setIsOpen] = useState12(false);
|
|
10296
|
-
const triggerRef =
|
|
10302
|
+
const triggerRef = useRef8(null);
|
|
10297
10303
|
const [allOptionsSelected, setAllOptionsSelected] = useState12(false);
|
|
10298
10304
|
const isMobile = useMediaQuery(MOBILE_BREAKPOINT);
|
|
10299
10305
|
const hasSections = !!(optionsBySection == null ? void 0 : optionsBySection.length);
|
|
@@ -12001,7 +12007,7 @@ import { useController as useController3 } from "react-hook-form";
|
|
|
12001
12007
|
import { useEffect as useEffect12, useState as useState16 } from "react";
|
|
12002
12008
|
|
|
12003
12009
|
// src/components/RichEditor/QuillComponent.tsx
|
|
12004
|
-
import { useState as useState15, useRef as
|
|
12010
|
+
import { useState as useState15, useRef as useRef9, useEffect as useEffect11, useCallback as useCallback5 } from "react";
|
|
12005
12011
|
import { useQuill } from "react-quilljs";
|
|
12006
12012
|
|
|
12007
12013
|
// src/utils/uploadService.ts
|
|
@@ -13208,8 +13214,8 @@ var QuillComponent = ({
|
|
|
13208
13214
|
const [videoUrl, setVideoUrl] = useState15("");
|
|
13209
13215
|
const [showLinkModal, setShowLinkModal] = useState15(false);
|
|
13210
13216
|
const [linkUrl, setLinkUrl] = useState15("");
|
|
13211
|
-
const videoModalRef =
|
|
13212
|
-
const linkModalRef =
|
|
13217
|
+
const videoModalRef = useRef9(null);
|
|
13218
|
+
const linkModalRef = useRef9(null);
|
|
13213
13219
|
const { addToast, removeToast } = useToast();
|
|
13214
13220
|
const formatHTML = (html) => {
|
|
13215
13221
|
const parser = new DOMParser();
|