@lets-events/react 12.6.4 → 12.7.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @lets-events/react@12.6.4 build
2
+ > @lets-events/react@12.7.1 build
3
3
  > tsup src/index.tsx --format esm,cjs --dts --external react
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -9,11 +9,11 @@
9
9
  CLI Target: es6
10
10
  ESM Build start
11
11
  CJS Build start
12
- CJS dist\index.js 404.29 KB
13
- CJS ⚡️ Build success in 200ms
14
- ESM dist\index.mjs 389.28 KB
12
+ CJS dist\index.js 404.79 KB
13
+ CJS ⚡️ Build success in 199ms
14
+ ESM dist\index.mjs 389.70 KB
15
15
  ESM ⚡️ Build success in 201ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 4558ms
18
- DTS dist\index.d.mts 402.87 KB
19
- DTS dist\index.d.ts 402.87 KB
17
+ DTS ⚡️ Build success in 4529ms
18
+ DTS dist\index.d.mts 403.02 KB
19
+ DTS dist\index.d.ts 403.02 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fix
8
+
9
+ ## 12.7.0
10
+
11
+ ### Minor Changes
12
+
13
+ - rich text presenter
14
+
3
15
  ## 12.6.4
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -15298,6 +15298,11 @@ interface RichEditorProps {
15298
15298
  }
15299
15299
  declare const RichEditor: (props: RichEditorProps) => react_jsx_runtime.JSX.Element | null;
15300
15300
 
15301
+ type Props = {
15302
+ richText: string;
15303
+ };
15304
+ declare const RichTextPresenter: ({ richText }: Props) => react_jsx_runtime.JSX.Element;
15305
+
15301
15306
  type RichEditorFormFieldProps = Omit<RichEditorProps, "value" | "onChange"> & {
15302
15307
  name: string;
15303
15308
  label?: string;
@@ -15400,4 +15405,4 @@ declare const useImageUpload: (options: UseImageUploadOptions) => {
15400
15405
  reset: () => void;
15401
15406
  };
15402
15407
 
15403
- export { AddressFormFields, Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, BirthDateFormField, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, CNPJFormField, CPFFormField, Calendar, CalendarFormField, type CalendarFormFieldProps, type CalendarProps, Card, type CardProps, CardStyled, CheckboxGroup, CheckboxGroupFormField, type CheckboxGroupFormFieldProps, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, CountryFormField, type DateRange, Divider, DoubleCalendar, DoubleCalendarFormField, type DoubleCalendarFormFieldProps, type DoubleCalendarProps, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, EmailFormField, type EmailFormFieldProps, ErrorFormMessage, type ErrorFormMessageProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Form, FormLabel, type FormLabelProps, type FormProps, Grid, type GridProps, GridStyled, Icon, type IconProps, IdentityDocumentNumberFormField, InputStyled, MenuDropdown, type MenuDropdownProps, Modal, type ModalProps, MultiSelect, MultiSelectFormField, type MultiSelectFormFieldProps, type MultiSelectProps, PhoneFormField, type PhoneFormFieldProps, RadioGroup, RadioGroupFormField, type RadioGroupFormFieldProps, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, RichEditor, RichEditorFormField, type RichEditorFormFieldProps, type RichEditorProps, Section, type SectionProps, SectionStyled, SelectFormField, type SelectFormFieldProps, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, SwitchFormField, type SwitchFormFieldProps, type SwitchProps, SwitchStyled, Text, TextAreaFormField, type TextAreaFormFieldProps, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, TextFormField, type TextFormFieldProps, type TextProps, TextStyle, TextareaField, type TextareaFieldProps, TextareaFieldStyle, TimePicker, TimePickerButtonStyled, TimePickerDropdownStyled, TimePickerFooterStyled, TimePickerFormField, type TimePickerFormFieldProps, TimePickerIconButton, type TimePickerProps, TimePickerStyled, TimerPickerContentStyled, type Toast, type ToastComponentProps, type ToastConfig, type ToastContextType, ToastItem, type ToastOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToasterShowOptions, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UploadConfig, UploadService, isValidCNPJ, maskFormat, maskUnformat, useImageUpload, useToast };
15408
+ export { AddressFormFields, Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, BirthDateFormField, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, CNPJFormField, CPFFormField, Calendar, CalendarFormField, type CalendarFormFieldProps, type CalendarProps, Card, type CardProps, CardStyled, CheckboxGroup, CheckboxGroupFormField, type CheckboxGroupFormFieldProps, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, CountryFormField, type DateRange, Divider, DoubleCalendar, DoubleCalendarFormField, type DoubleCalendarFormFieldProps, type DoubleCalendarProps, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, EmailFormField, type EmailFormFieldProps, ErrorFormMessage, type ErrorFormMessageProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Form, FormLabel, type FormLabelProps, type FormProps, Grid, type GridProps, GridStyled, Icon, type IconProps, IdentityDocumentNumberFormField, InputStyled, MenuDropdown, type MenuDropdownProps, Modal, type ModalProps, MultiSelect, MultiSelectFormField, type MultiSelectFormFieldProps, type MultiSelectProps, PhoneFormField, type PhoneFormFieldProps, RadioGroup, RadioGroupFormField, type RadioGroupFormFieldProps, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, RichEditor, RichEditorFormField, type RichEditorFormFieldProps, type RichEditorProps, RichTextPresenter, Section, type SectionProps, SectionStyled, SelectFormField, type SelectFormFieldProps, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, SwitchFormField, type SwitchFormFieldProps, type SwitchProps, SwitchStyled, Text, TextAreaFormField, type TextAreaFormFieldProps, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, TextFormField, type TextFormFieldProps, type TextProps, TextStyle, TextareaField, type TextareaFieldProps, TextareaFieldStyle, TimePicker, TimePickerButtonStyled, TimePickerDropdownStyled, TimePickerFooterStyled, TimePickerFormField, type TimePickerFormFieldProps, TimePickerIconButton, type TimePickerProps, TimePickerStyled, TimerPickerContentStyled, type Toast, type ToastComponentProps, type ToastConfig, type ToastContextType, ToastItem, type ToastOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToasterShowOptions, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UploadConfig, UploadService, isValidCNPJ, maskFormat, maskUnformat, useImageUpload, useToast };
package/dist/index.d.ts CHANGED
@@ -15298,6 +15298,11 @@ interface RichEditorProps {
15298
15298
  }
15299
15299
  declare const RichEditor: (props: RichEditorProps) => react_jsx_runtime.JSX.Element | null;
15300
15300
 
15301
+ type Props = {
15302
+ richText: string;
15303
+ };
15304
+ declare const RichTextPresenter: ({ richText }: Props) => react_jsx_runtime.JSX.Element;
15305
+
15301
15306
  type RichEditorFormFieldProps = Omit<RichEditorProps, "value" | "onChange"> & {
15302
15307
  name: string;
15303
15308
  label?: string;
@@ -15400,4 +15405,4 @@ declare const useImageUpload: (options: UseImageUploadOptions) => {
15400
15405
  reset: () => void;
15401
15406
  };
15402
15407
 
15403
- export { AddressFormFields, Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, BirthDateFormField, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, CNPJFormField, CPFFormField, Calendar, CalendarFormField, type CalendarFormFieldProps, type CalendarProps, Card, type CardProps, CardStyled, CheckboxGroup, CheckboxGroupFormField, type CheckboxGroupFormFieldProps, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, CountryFormField, type DateRange, Divider, DoubleCalendar, DoubleCalendarFormField, type DoubleCalendarFormFieldProps, type DoubleCalendarProps, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, EmailFormField, type EmailFormFieldProps, ErrorFormMessage, type ErrorFormMessageProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Form, FormLabel, type FormLabelProps, type FormProps, Grid, type GridProps, GridStyled, Icon, type IconProps, IdentityDocumentNumberFormField, InputStyled, MenuDropdown, type MenuDropdownProps, Modal, type ModalProps, MultiSelect, MultiSelectFormField, type MultiSelectFormFieldProps, type MultiSelectProps, PhoneFormField, type PhoneFormFieldProps, RadioGroup, RadioGroupFormField, type RadioGroupFormFieldProps, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, RichEditor, RichEditorFormField, type RichEditorFormFieldProps, type RichEditorProps, Section, type SectionProps, SectionStyled, SelectFormField, type SelectFormFieldProps, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, SwitchFormField, type SwitchFormFieldProps, type SwitchProps, SwitchStyled, Text, TextAreaFormField, type TextAreaFormFieldProps, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, TextFormField, type TextFormFieldProps, type TextProps, TextStyle, TextareaField, type TextareaFieldProps, TextareaFieldStyle, TimePicker, TimePickerButtonStyled, TimePickerDropdownStyled, TimePickerFooterStyled, TimePickerFormField, type TimePickerFormFieldProps, TimePickerIconButton, type TimePickerProps, TimePickerStyled, TimerPickerContentStyled, type Toast, type ToastComponentProps, type ToastConfig, type ToastContextType, ToastItem, type ToastOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToasterShowOptions, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UploadConfig, UploadService, isValidCNPJ, maskFormat, maskUnformat, useImageUpload, useToast };
15408
+ export { AddressFormFields, Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, BirthDateFormField, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, CNPJFormField, CPFFormField, Calendar, CalendarFormField, type CalendarFormFieldProps, type CalendarProps, Card, type CardProps, CardStyled, CheckboxGroup, CheckboxGroupFormField, type CheckboxGroupFormFieldProps, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, CountryFormField, type DateRange, Divider, DoubleCalendar, DoubleCalendarFormField, type DoubleCalendarFormFieldProps, type DoubleCalendarProps, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, EmailFormField, type EmailFormFieldProps, ErrorFormMessage, type ErrorFormMessageProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Form, FormLabel, type FormLabelProps, type FormProps, Grid, type GridProps, GridStyled, Icon, type IconProps, IdentityDocumentNumberFormField, InputStyled, MenuDropdown, type MenuDropdownProps, Modal, type ModalProps, MultiSelect, MultiSelectFormField, type MultiSelectFormFieldProps, type MultiSelectProps, PhoneFormField, type PhoneFormFieldProps, RadioGroup, RadioGroupFormField, type RadioGroupFormFieldProps, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, RichEditor, RichEditorFormField, type RichEditorFormFieldProps, type RichEditorProps, RichTextPresenter, Section, type SectionProps, SectionStyled, SelectFormField, type SelectFormFieldProps, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, SwitchFormField, type SwitchFormFieldProps, type SwitchProps, SwitchStyled, Text, TextAreaFormField, type TextAreaFormFieldProps, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, TextFormField, type TextFormFieldProps, type TextProps, TextStyle, TextareaField, type TextareaFieldProps, TextareaFieldStyle, TimePicker, TimePickerButtonStyled, TimePickerDropdownStyled, TimePickerFooterStyled, TimePickerFormField, type TimePickerFormFieldProps, TimePickerIconButton, type TimePickerProps, TimePickerStyled, TimerPickerContentStyled, type Toast, type ToastComponentProps, type ToastConfig, type ToastContextType, ToastItem, type ToastOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToasterShowOptions, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UploadConfig, UploadService, isValidCNPJ, maskFormat, maskUnformat, useImageUpload, useToast };
package/dist/index.js CHANGED
@@ -925,6 +925,7 @@ __export(index_exports, {
925
925
  RadioItem: () => RadioItem,
926
926
  RichEditor: () => RichEditor_default,
927
927
  RichEditorFormField: () => RichEditorFormField,
928
+ RichTextPresenter: () => RichTextPresenter_default,
928
929
  Section: () => Section,
929
930
  SectionStyled: () => SectionStyled,
930
931
  SelectFormField: () => SelectFormField,
@@ -11575,6 +11576,7 @@ var QuillContainer = styled("div", {
11575
11576
  flexDirection: "column"
11576
11577
  });
11577
11578
  var QuillEditor = styled("div", {
11579
+ position: "relative",
11578
11580
  // Base container
11579
11581
  "& .ql-container": {
11580
11582
  boxSizing: "border-box",
@@ -11586,7 +11588,8 @@ var QuillEditor = styled("div", {
11586
11588
  border: "1px solid $neutral300",
11587
11589
  borderTop: "none",
11588
11590
  borderBottomLeftRadius: "$sm",
11589
- borderBottomRightRadius: "$sm"
11591
+ borderBottomRightRadius: "$sm",
11592
+ padding: "$12"
11590
11593
  },
11591
11594
  "& .ql-container.ql-disabled .ql-tooltip": {
11592
11595
  visibility: "hidden"
@@ -11614,7 +11617,6 @@ var QuillEditor = styled("div", {
11614
11617
  height: "100%",
11615
11618
  outline: "none",
11616
11619
  overflowY: "auto",
11617
- padding: "$12",
11618
11620
  tabSize: 4,
11619
11621
  MozTabSize: 4,
11620
11622
  textAlign: "left",
@@ -12758,7 +12760,7 @@ var QuillComponent = ({
12758
12760
  document.addEventListener("mousedown", handleClickOutside);
12759
12761
  return () => document.removeEventListener("mousedown", handleClickOutside);
12760
12762
  }, [showVideoModal, showLinkModal, handleVideoCancel, handleLinkCancel]);
12761
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(QuillContainer, { className, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(QuillEditor, { style: { position: "relative" }, children: [
12763
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(QuillContainer, { className, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(QuillEditor, { children: [
12762
12764
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { ref: quillRef }),
12763
12765
  showVideoModal && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12764
12766
  "div",
@@ -12917,9 +12919,22 @@ var RichEditor = (props) => {
12917
12919
  };
12918
12920
  var RichEditor_default = RichEditor;
12919
12921
 
12922
+ // src/components/RichEditor/RichTextPresenter.tsx
12923
+ var import_jsx_runtime54 = require("react/jsx-runtime");
12924
+ var RichTextPresenter = ({ richText }) => {
12925
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(QuillEditor, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12926
+ "div",
12927
+ {
12928
+ className: "ql-editor",
12929
+ dangerouslySetInnerHTML: { __html: richText }
12930
+ }
12931
+ ) });
12932
+ };
12933
+ var RichTextPresenter_default = RichTextPresenter;
12934
+
12920
12935
  // src/components/FormFields/RichEditorFormField.tsx
12921
12936
  var import_react24 = require("react");
12922
- var import_jsx_runtime54 = require("react/jsx-runtime");
12937
+ var import_jsx_runtime55 = require("react/jsx-runtime");
12923
12938
  var RichEditorFormField = (_a) => {
12924
12939
  var _b = _a, {
12925
12940
  name,
@@ -12962,9 +12977,9 @@ var RichEditorFormField = (_a) => {
12962
12977
  const fieldError = fieldState.error;
12963
12978
  const haveError = !!fieldError;
12964
12979
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
12965
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Flex, { direction: "column", children: [
12966
- maxLength ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Flex, { direction: "row", justify: "between", children: [
12967
- label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12980
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Flex, { direction: "column", children: [
12981
+ maxLength ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Flex, { direction: "row", justify: "between", children: [
12982
+ label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12968
12983
  FormLabel,
12969
12984
  {
12970
12985
  name,
@@ -12973,8 +12988,8 @@ var RichEditorFormField = (_a) => {
12973
12988
  haveError
12974
12989
  }
12975
12990
  ),
12976
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Badge, { color: "grey", size: "xs", children: caracterQuantity })
12977
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12991
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Badge, { color: "grey", size: "xs", children: caracterQuantity })
12992
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12978
12993
  FormLabel,
12979
12994
  {
12980
12995
  name,
@@ -12983,7 +12998,7 @@ var RichEditorFormField = (_a) => {
12983
12998
  haveError
12984
12999
  }
12985
13000
  ) }),
12986
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
13001
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12987
13002
  RichEditor_default,
12988
13003
  __spreadProps(__spreadValues({}, props), {
12989
13004
  value: field.value,
@@ -12995,14 +13010,14 @@ var RichEditorFormField = (_a) => {
12995
13010
  simpleVersion
12996
13011
  })
12997
13012
  ),
12998
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ErrorFormMessage, { message: errorMsg })
13013
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorFormMessage, { message: errorMsg })
12999
13014
  ] });
13000
13015
  };
13001
13016
 
13002
13017
  // src/components/FormFields/CalendarFormField.tsx
13003
13018
  var import_react_hook_form13 = require("react-hook-form");
13004
13019
  var import_react25 = require("react");
13005
- var import_jsx_runtime55 = require("react/jsx-runtime");
13020
+ var import_jsx_runtime56 = require("react/jsx-runtime");
13006
13021
  var CalendarFormField = (_a) => {
13007
13022
  var _b = _a, {
13008
13023
  name,
@@ -13051,8 +13066,8 @@ var CalendarFormField = (_a) => {
13051
13066
  const handleCalendarChange = (date) => {
13052
13067
  setSelected(date);
13053
13068
  };
13054
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13055
- label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
13069
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13070
+ label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13056
13071
  FormLabel,
13057
13072
  {
13058
13073
  name,
@@ -13061,7 +13076,7 @@ var CalendarFormField = (_a) => {
13061
13076
  haveError
13062
13077
  }
13063
13078
  ),
13064
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
13079
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13065
13080
  Calendar,
13066
13081
  __spreadValues({
13067
13082
  selected,
@@ -13074,14 +13089,14 @@ var CalendarFormField = (_a) => {
13074
13089
  maxYearsFromNow
13075
13090
  }, calendarProps)
13076
13091
  ),
13077
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorFormMessage, { message: errorMsg })
13092
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ErrorFormMessage, { message: errorMsg })
13078
13093
  ] });
13079
13094
  };
13080
13095
 
13081
13096
  // src/components/FormFields/DoubleCalendarFormField.tsx
13082
13097
  var import_react26 = require("react");
13083
13098
  var import_react_hook_form14 = require("react-hook-form");
13084
- var import_jsx_runtime56 = require("react/jsx-runtime");
13099
+ var import_jsx_runtime57 = require("react/jsx-runtime");
13085
13100
  var DoubleCalendarFormField = (_a) => {
13086
13101
  var _b = _a, {
13087
13102
  name,
@@ -13130,9 +13145,9 @@ var DoubleCalendarFormField = (_a) => {
13130
13145
  const handleCalendarChange = (range) => {
13131
13146
  setSelected(range);
13132
13147
  };
13133
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13134
- label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(FormLabel, { name, label, required, haveError }),
13135
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13148
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13149
+ label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(FormLabel, { name, label, required, haveError }),
13150
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
13136
13151
  DoubleCalendar,
13137
13152
  __spreadValues({
13138
13153
  selected,
@@ -13146,14 +13161,14 @@ var DoubleCalendarFormField = (_a) => {
13146
13161
  maxYearsFromNow
13147
13162
  }, calendarProps)
13148
13163
  ),
13149
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ErrorFormMessage, { message: errorMsg })
13164
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ErrorFormMessage, { message: errorMsg })
13150
13165
  ] });
13151
13166
  };
13152
13167
 
13153
13168
  // src/components/FormFields/TimePickerFormField.tsx
13154
13169
  var import_react_hook_form15 = require("react-hook-form");
13155
13170
  var import_react27 = require("react");
13156
- var import_jsx_runtime57 = require("react/jsx-runtime");
13171
+ var import_jsx_runtime58 = require("react/jsx-runtime");
13157
13172
  var TimePickerFormField = (_a) => {
13158
13173
  var _b = _a, {
13159
13174
  name,
@@ -13196,8 +13211,8 @@ var TimePickerFormField = (_a) => {
13196
13211
  const handleTimePickerChange = (time) => {
13197
13212
  setSelected(time);
13198
13213
  };
13199
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13200
- label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
13214
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13215
+ label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
13201
13216
  FormLabel,
13202
13217
  {
13203
13218
  name,
@@ -13206,7 +13221,7 @@ var TimePickerFormField = (_a) => {
13206
13221
  haveError
13207
13222
  }
13208
13223
  ),
13209
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
13224
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
13210
13225
  TimePicker,
13211
13226
  __spreadValues({
13212
13227
  selected,
@@ -13217,7 +13232,7 @@ var TimePickerFormField = (_a) => {
13217
13232
  hasError: haveError
13218
13233
  }, timePickerProps)
13219
13234
  ),
13220
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ErrorFormMessage, { message: errorMsg })
13235
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ErrorFormMessage, { message: errorMsg })
13221
13236
  ] });
13222
13237
  };
13223
13238
 
@@ -13385,6 +13400,7 @@ var useImageUpload = (options) => {
13385
13400
  RadioItem,
13386
13401
  RichEditor,
13387
13402
  RichEditorFormField,
13403
+ RichTextPresenter,
13388
13404
  Section,
13389
13405
  SectionStyled,
13390
13406
  SelectFormField,
package/dist/index.mjs CHANGED
@@ -11470,6 +11470,7 @@ var QuillContainer = styled("div", {
11470
11470
  flexDirection: "column"
11471
11471
  });
11472
11472
  var QuillEditor = styled("div", {
11473
+ position: "relative",
11473
11474
  // Base container
11474
11475
  "& .ql-container": {
11475
11476
  boxSizing: "border-box",
@@ -11481,7 +11482,8 @@ var QuillEditor = styled("div", {
11481
11482
  border: "1px solid $neutral300",
11482
11483
  borderTop: "none",
11483
11484
  borderBottomLeftRadius: "$sm",
11484
- borderBottomRightRadius: "$sm"
11485
+ borderBottomRightRadius: "$sm",
11486
+ padding: "$12"
11485
11487
  },
11486
11488
  "& .ql-container.ql-disabled .ql-tooltip": {
11487
11489
  visibility: "hidden"
@@ -11509,7 +11511,6 @@ var QuillEditor = styled("div", {
11509
11511
  height: "100%",
11510
11512
  outline: "none",
11511
11513
  overflowY: "auto",
11512
- padding: "$12",
11513
11514
  tabSize: 4,
11514
11515
  MozTabSize: 4,
11515
11516
  textAlign: "left",
@@ -12653,7 +12654,7 @@ var QuillComponent = ({
12653
12654
  document.addEventListener("mousedown", handleClickOutside);
12654
12655
  return () => document.removeEventListener("mousedown", handleClickOutside);
12655
12656
  }, [showVideoModal, showLinkModal, handleVideoCancel, handleLinkCancel]);
12656
- return /* @__PURE__ */ jsx52(QuillContainer, { className, children: /* @__PURE__ */ jsxs28(QuillEditor, { style: { position: "relative" }, children: [
12657
+ return /* @__PURE__ */ jsx52(QuillContainer, { className, children: /* @__PURE__ */ jsxs28(QuillEditor, { children: [
12657
12658
  /* @__PURE__ */ jsx52("div", { ref: quillRef }),
12658
12659
  showVideoModal && /* @__PURE__ */ jsx52(
12659
12660
  "div",
@@ -12812,9 +12813,22 @@ var RichEditor = (props) => {
12812
12813
  };
12813
12814
  var RichEditor_default = RichEditor;
12814
12815
 
12816
+ // src/components/RichEditor/RichTextPresenter.tsx
12817
+ import { jsx as jsx54 } from "react/jsx-runtime";
12818
+ var RichTextPresenter = ({ richText }) => {
12819
+ return /* @__PURE__ */ jsx54(QuillEditor, { children: /* @__PURE__ */ jsx54(
12820
+ "div",
12821
+ {
12822
+ className: "ql-editor",
12823
+ dangerouslySetInnerHTML: { __html: richText }
12824
+ }
12825
+ ) });
12826
+ };
12827
+ var RichTextPresenter_default = RichTextPresenter;
12828
+
12815
12829
  // src/components/FormFields/RichEditorFormField.tsx
12816
12830
  import { useState as useState12 } from "react";
12817
- import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
12831
+ import { Fragment as Fragment5, jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
12818
12832
  var RichEditorFormField = (_a) => {
12819
12833
  var _b = _a, {
12820
12834
  name,
@@ -12859,7 +12873,7 @@ var RichEditorFormField = (_a) => {
12859
12873
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
12860
12874
  return /* @__PURE__ */ jsxs29(Flex, { direction: "column", children: [
12861
12875
  maxLength ? /* @__PURE__ */ jsxs29(Flex, { direction: "row", justify: "between", children: [
12862
- label && /* @__PURE__ */ jsx54(
12876
+ label && /* @__PURE__ */ jsx55(
12863
12877
  FormLabel,
12864
12878
  {
12865
12879
  name,
@@ -12868,8 +12882,8 @@ var RichEditorFormField = (_a) => {
12868
12882
  haveError
12869
12883
  }
12870
12884
  ),
12871
- /* @__PURE__ */ jsx54(Badge, { color: "grey", size: "xs", children: caracterQuantity })
12872
- ] }) : /* @__PURE__ */ jsx54(Fragment5, { children: label && /* @__PURE__ */ jsx54(
12885
+ /* @__PURE__ */ jsx55(Badge, { color: "grey", size: "xs", children: caracterQuantity })
12886
+ ] }) : /* @__PURE__ */ jsx55(Fragment5, { children: label && /* @__PURE__ */ jsx55(
12873
12887
  FormLabel,
12874
12888
  {
12875
12889
  name,
@@ -12878,7 +12892,7 @@ var RichEditorFormField = (_a) => {
12878
12892
  haveError
12879
12893
  }
12880
12894
  ) }),
12881
- /* @__PURE__ */ jsx54(
12895
+ /* @__PURE__ */ jsx55(
12882
12896
  RichEditor_default,
12883
12897
  __spreadProps(__spreadValues({}, props), {
12884
12898
  value: field.value,
@@ -12890,14 +12904,14 @@ var RichEditorFormField = (_a) => {
12890
12904
  simpleVersion
12891
12905
  })
12892
12906
  ),
12893
- /* @__PURE__ */ jsx54(ErrorFormMessage, { message: errorMsg })
12907
+ /* @__PURE__ */ jsx55(ErrorFormMessage, { message: errorMsg })
12894
12908
  ] });
12895
12909
  };
12896
12910
 
12897
12911
  // src/components/FormFields/CalendarFormField.tsx
12898
12912
  import { useController as useController4 } from "react-hook-form";
12899
12913
  import { useCallback as useCallback5 } from "react";
12900
- import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
12914
+ import { jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
12901
12915
  var CalendarFormField = (_a) => {
12902
12916
  var _b = _a, {
12903
12917
  name,
@@ -12947,7 +12961,7 @@ var CalendarFormField = (_a) => {
12947
12961
  setSelected(date);
12948
12962
  };
12949
12963
  return /* @__PURE__ */ jsxs30(Flex, { direction: "column", style: { flex: "1" }, children: [
12950
- label && /* @__PURE__ */ jsx55(
12964
+ label && /* @__PURE__ */ jsx56(
12951
12965
  FormLabel,
12952
12966
  {
12953
12967
  name,
@@ -12956,7 +12970,7 @@ var CalendarFormField = (_a) => {
12956
12970
  haveError
12957
12971
  }
12958
12972
  ),
12959
- /* @__PURE__ */ jsx55(
12973
+ /* @__PURE__ */ jsx56(
12960
12974
  Calendar,
12961
12975
  __spreadValues({
12962
12976
  selected,
@@ -12969,14 +12983,14 @@ var CalendarFormField = (_a) => {
12969
12983
  maxYearsFromNow
12970
12984
  }, calendarProps)
12971
12985
  ),
12972
- /* @__PURE__ */ jsx55(ErrorFormMessage, { message: errorMsg })
12986
+ /* @__PURE__ */ jsx56(ErrorFormMessage, { message: errorMsg })
12973
12987
  ] });
12974
12988
  };
12975
12989
 
12976
12990
  // src/components/FormFields/DoubleCalendarFormField.tsx
12977
12991
  import { useCallback as useCallback6 } from "react";
12978
12992
  import { useController as useController5 } from "react-hook-form";
12979
- import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
12993
+ import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
12980
12994
  var DoubleCalendarFormField = (_a) => {
12981
12995
  var _b = _a, {
12982
12996
  name,
@@ -13026,8 +13040,8 @@ var DoubleCalendarFormField = (_a) => {
13026
13040
  setSelected(range);
13027
13041
  };
13028
13042
  return /* @__PURE__ */ jsxs31(Flex, { direction: "column", style: { flex: "1" }, children: [
13029
- label && /* @__PURE__ */ jsx56(FormLabel, { name, label, required, haveError }),
13030
- /* @__PURE__ */ jsx56(
13043
+ label && /* @__PURE__ */ jsx57(FormLabel, { name, label, required, haveError }),
13044
+ /* @__PURE__ */ jsx57(
13031
13045
  DoubleCalendar,
13032
13046
  __spreadValues({
13033
13047
  selected,
@@ -13041,14 +13055,14 @@ var DoubleCalendarFormField = (_a) => {
13041
13055
  maxYearsFromNow
13042
13056
  }, calendarProps)
13043
13057
  ),
13044
- /* @__PURE__ */ jsx56(ErrorFormMessage, { message: errorMsg })
13058
+ /* @__PURE__ */ jsx57(ErrorFormMessage, { message: errorMsg })
13045
13059
  ] });
13046
13060
  };
13047
13061
 
13048
13062
  // src/components/FormFields/TimePickerFormField.tsx
13049
13063
  import { useController as useController6 } from "react-hook-form";
13050
13064
  import { useCallback as useCallback7 } from "react";
13051
- import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
13065
+ import { jsx as jsx58, jsxs as jsxs32 } from "react/jsx-runtime";
13052
13066
  var TimePickerFormField = (_a) => {
13053
13067
  var _b = _a, {
13054
13068
  name,
@@ -13092,7 +13106,7 @@ var TimePickerFormField = (_a) => {
13092
13106
  setSelected(time);
13093
13107
  };
13094
13108
  return /* @__PURE__ */ jsxs32(Flex, { direction: "column", style: { flex: "1" }, children: [
13095
- label && /* @__PURE__ */ jsx57(
13109
+ label && /* @__PURE__ */ jsx58(
13096
13110
  FormLabel,
13097
13111
  {
13098
13112
  name,
@@ -13101,7 +13115,7 @@ var TimePickerFormField = (_a) => {
13101
13115
  haveError
13102
13116
  }
13103
13117
  ),
13104
- /* @__PURE__ */ jsx57(
13118
+ /* @__PURE__ */ jsx58(
13105
13119
  TimePicker,
13106
13120
  __spreadValues({
13107
13121
  selected,
@@ -13112,7 +13126,7 @@ var TimePickerFormField = (_a) => {
13112
13126
  hasError: haveError
13113
13127
  }, timePickerProps)
13114
13128
  ),
13115
- /* @__PURE__ */ jsx57(ErrorFormMessage, { message: errorMsg })
13129
+ /* @__PURE__ */ jsx58(ErrorFormMessage, { message: errorMsg })
13116
13130
  ] });
13117
13131
  };
13118
13132
 
@@ -13279,6 +13293,7 @@ export {
13279
13293
  RadioItem,
13280
13294
  RichEditor_default as RichEditor,
13281
13295
  RichEditorFormField,
13296
+ RichTextPresenter_default as RichTextPresenter,
13282
13297
  Section,
13283
13298
  SectionStyled,
13284
13299
  SelectFormField,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.6.4",
3
+ "version": "12.7.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -327,7 +327,7 @@ const QuillComponent: React.FC<RichEditorProps> = ({
327
327
 
328
328
  return (
329
329
  <QuillContainer className={className}>
330
- <QuillEditor style={{ position: "relative" }}>
330
+ <QuillEditor>
331
331
  <div ref={quillRef} />
332
332
 
333
333
  {/* Video Modal */}
@@ -0,0 +1,18 @@
1
+ import { QuillEditor } from "./styledComponents";
2
+
3
+ type Props = {
4
+ richText: string;
5
+ };
6
+
7
+ const RichTextPresenter = ({ richText }: Props) => {
8
+ return (
9
+ <QuillEditor>
10
+ <div
11
+ className="ql-editor"
12
+ dangerouslySetInnerHTML={{ __html: richText }}
13
+ />
14
+ </QuillEditor>
15
+ );
16
+ };
17
+
18
+ export default RichTextPresenter;
@@ -1,2 +1,3 @@
1
1
  export { default as RichEditor } from "./RichEditor";
2
2
  export type { RichEditorProps } from "./RichEditor";
3
+ export { default as RichTextPresenter } from "./RichTextPresenter";
@@ -6,6 +6,8 @@ export const QuillContainer = styled("div", {
6
6
  });
7
7
 
8
8
  export const QuillEditor = styled("div", {
9
+ position: "relative",
10
+
9
11
  // Base container
10
12
  "& .ql-container": {
11
13
  boxSizing: "border-box",
@@ -18,15 +20,17 @@ export const QuillEditor = styled("div", {
18
20
  borderTop: "none",
19
21
  borderBottomLeftRadius: "$sm",
20
22
  borderBottomRightRadius: "$sm",
23
+ padding: "$12",
21
24
  },
22
25
 
23
26
  "& .ql-container.ql-disabled .ql-tooltip": {
24
27
  visibility: "hidden",
25
28
  },
26
29
 
27
- "& .ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui, & .ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui": {
28
- cursor: "pointer",
29
- },
30
+ "& .ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui, & .ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui":
31
+ {
32
+ cursor: "pointer",
33
+ },
30
34
 
31
35
  // Clipboard
32
36
  "& .ql-clipboard": {
@@ -45,12 +49,12 @@ export const QuillEditor = styled("div", {
45
49
  // Editor
46
50
  "& .ql-editor": {
47
51
  boxSizing: "border-box",
48
- counterReset: "list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9",
52
+ counterReset:
53
+ "list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9",
49
54
  lineHeight: "1.42",
50
55
  height: "100%",
51
56
  outline: "none",
52
57
  overflowY: "auto",
53
- padding: "$12",
54
58
  tabSize: 4,
55
59
  MozTabSize: 4,
56
60
  textAlign: "left",
@@ -89,7 +93,7 @@ export const QuillEditor = styled("div", {
89
93
 
90
94
  "& h1": {
91
95
  fontSize: "2em",
92
- lineHeight: '2em!important',
96
+ lineHeight: "2em!important",
93
97
  },
94
98
 
95
99
  "& h2": {
@@ -704,9 +708,10 @@ export const QuillEditor = styled("div", {
704
708
  },
705
709
  },
706
710
 
707
- "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover": {
708
- borderColor: "#000",
709
- },
711
+ "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover":
712
+ {
713
+ borderColor: "#000",
714
+ },
710
715
  },
711
716
 
712
717
  "@media (pointer: coarse)": {
@@ -970,9 +975,10 @@ export const QuillEditor = styled("div", {
970
975
  width: "18px",
971
976
  },
972
977
 
973
- "& .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before, & .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before, & .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before": {
974
- content: "attr(data-label)",
975
- },
978
+ "& .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before, & .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before, & .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before":
979
+ {
980
+ content: "attr(data-label)",
981
+ },
976
982
 
977
983
  // Header picker
978
984
  "& .ql-picker.ql-header": {
@@ -982,29 +988,35 @@ export const QuillEditor = styled("div", {
982
988
  content: "'Normal'",
983
989
  },
984
990
 
985
- "& .ql-picker-label[data-value='1']::before, & .ql-picker-item[data-value='1']::before": {
986
- content: "'Título 1'",
987
- },
991
+ "& .ql-picker-label[data-value='1']::before, & .ql-picker-item[data-value='1']::before":
992
+ {
993
+ content: "'Título 1'",
994
+ },
988
995
 
989
- "& .ql-picker-label[data-value='2']::before, & .ql-picker-item[data-value='2']::before": {
990
- content: "'Título 2'",
991
- },
996
+ "& .ql-picker-label[data-value='2']::before, & .ql-picker-item[data-value='2']::before":
997
+ {
998
+ content: "'Título 2'",
999
+ },
992
1000
 
993
- "& .ql-picker-label[data-value='3']::before, & .ql-picker-item[data-value='3']::before": {
994
- content: "'Heading 3'",
995
- },
1001
+ "& .ql-picker-label[data-value='3']::before, & .ql-picker-item[data-value='3']::before":
1002
+ {
1003
+ content: "'Heading 3'",
1004
+ },
996
1005
 
997
- "& .ql-picker-label[data-value='4']::before, & .ql-picker-item[data-value='4']::before": {
998
- content: "'Heading 4'",
999
- },
1006
+ "& .ql-picker-label[data-value='4']::before, & .ql-picker-item[data-value='4']::before":
1007
+ {
1008
+ content: "'Heading 4'",
1009
+ },
1000
1010
 
1001
- "& .ql-picker-label[data-value='5']::before, & .ql-picker-item[data-value='5']::before": {
1002
- content: "'Heading 5'",
1003
- },
1011
+ "& .ql-picker-label[data-value='5']::before, & .ql-picker-item[data-value='5']::before":
1012
+ {
1013
+ content: "'Heading 5'",
1014
+ },
1004
1015
 
1005
- "& .ql-picker-label[data-value='6']::before, & .ql-picker-item[data-value='6']::before": {
1006
- content: "'Heading 6'",
1007
- },
1016
+ "& .ql-picker-label[data-value='6']::before, & .ql-picker-item[data-value='6']::before":
1017
+ {
1018
+ content: "'Heading 6'",
1019
+ },
1008
1020
 
1009
1021
  "& .ql-picker-item[data-value='1']::before": {
1010
1022
  fontSize: "2em",
@@ -1039,13 +1051,15 @@ export const QuillEditor = styled("div", {
1039
1051
  content: "'Sans Serif'",
1040
1052
  },
1041
1053
 
1042
- "& .ql-picker-label[data-value=serif]::before, & .ql-picker-item[data-value=serif]::before": {
1043
- content: "'Serif'",
1044
- },
1054
+ "& .ql-picker-label[data-value=serif]::before, & .ql-picker-item[data-value=serif]::before":
1055
+ {
1056
+ content: "'Serif'",
1057
+ },
1045
1058
 
1046
- "& .ql-picker-label[data-value=monospace]::before, & .ql-picker-item[data-value=monospace]::before": {
1047
- content: "'Monospace'",
1048
- },
1059
+ "& .ql-picker-label[data-value=monospace]::before, & .ql-picker-item[data-value=monospace]::before":
1060
+ {
1061
+ content: "'Monospace'",
1062
+ },
1049
1063
 
1050
1064
  "& .ql-picker-item[data-value=serif]::before": {
1051
1065
  fontFamily: "Georgia, Times New Roman, serif",
@@ -1064,17 +1078,20 @@ export const QuillEditor = styled("div", {
1064
1078
  content: "'Normal'",
1065
1079
  },
1066
1080
 
1067
- "& .ql-picker-label[data-value=small]::before, & .ql-picker-item[data-value=small]::before": {
1068
- content: "'Small'",
1069
- },
1081
+ "& .ql-picker-label[data-value=small]::before, & .ql-picker-item[data-value=small]::before":
1082
+ {
1083
+ content: "'Small'",
1084
+ },
1070
1085
 
1071
- "& .ql-picker-label[data-value=large]::before, & .ql-picker-item[data-value=large]::before": {
1072
- content: "'Large'",
1073
- },
1086
+ "& .ql-picker-label[data-value=large]::before, & .ql-picker-item[data-value=large]::before":
1087
+ {
1088
+ content: "'Large'",
1089
+ },
1074
1090
 
1075
- "& .ql-picker-label[data-value=huge]::before, & .ql-picker-item[data-value=huge]::before": {
1076
- content: "'Huge'",
1077
- },
1091
+ "& .ql-picker-label[data-value=huge]::before, & .ql-picker-item[data-value=huge]::before":
1092
+ {
1093
+ content: "'Huge'",
1094
+ },
1078
1095
 
1079
1096
  "& .ql-picker-item[data-value=small]::before": {
1080
1097
  fontSize: "10px",
@@ -1136,9 +1153,10 @@ export const QuillEditor = styled("div", {
1136
1153
  borderColor: "#ccc",
1137
1154
  },
1138
1155
 
1139
- "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover": {
1140
- borderColor: "#000",
1141
- },
1156
+ "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover":
1157
+ {
1158
+ borderColor: "#000",
1159
+ },
1142
1160
  },
1143
1161
 
1144
1162
  "& .ql-toolbar.ql-snow + .ql-container.ql-snow": {
@@ -1149,4 +1167,4 @@ export const QuillEditor = styled("div", {
1149
1167
  "& .ql-container.ql-snow": {
1150
1168
  border: "1px solid #ccc",
1151
1169
  },
1152
- });
1170
+ });