@lets-events/react 12.1.8 → 12.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.1.8",
3
+ "version": "12.1.10",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -21,6 +21,12 @@ export const IdentityDocumentNumberFormField = ({
21
21
  label={label}
22
22
  required={required}
23
23
  placeholder={placeholder || "__.___.___-_"}
24
+ validate={(value: string) => {
25
+ const isEmpty = value.length === 0;
26
+ if (!required && isEmpty) return true;
27
+ if (value.length >= 3) return true;
28
+ return false || validationErrorMessage;
29
+ }}
24
30
  />
25
31
  );
26
32
  };
@@ -1,7 +1,6 @@
1
- import { lazy, useEffect, useState, Suspense } from "react";
1
+ import { useEffect, useState, Suspense } from "react";
2
2
  import { ToastProvider } from "../Toast";
3
-
4
- const QuillComponent = lazy(() => import("./QuillComponent"));
3
+ import QuillComponent from "./QuillComponent";
5
4
 
6
5
  export interface UploadConfig {
7
6
  apiUrl: string;
@@ -41,9 +40,7 @@ const RichEditor = (props: RichEditorProps) => {
41
40
  return (
42
41
  <div>
43
42
  <ToastProvider>
44
- <Suspense fallback={null}>
45
- <QuillComponent {...props} />
46
- </Suspense>
43
+ <QuillComponent {...props} />
47
44
  </ToastProvider>
48
45
  </div>
49
46
  );
@@ -27,7 +27,9 @@ export const QuillEditor = styled("div", {
27
27
  "& p": {
28
28
  margin: "0 0 $8 0",
29
29
  },
30
-
30
+ "& h1 span, & h1, & h2, & h2 span": {
31
+ lineHeight: "1.5rem",
32
+ },
31
33
  "& p:last-child": {
32
34
  marginBottom: 0,
33
35
  },