@youngonesworks/ui 0.1.114 → 0.1.115

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.
@@ -4,7 +4,7 @@ export interface IWysiwygEditorImperativeHandle {
4
4
  interface IWysiwygEditor {
5
5
  id: string;
6
6
  content?: string;
7
- placeholder: string;
7
+ placeholder?: string;
8
8
  forceRefresh?: boolean;
9
9
  readOnly?: boolean;
10
10
  onChange?: (v: string) => void;
package/dist/globals.css CHANGED
@@ -9,30 +9,37 @@
9
9
  @import "./styles/variables.css";
10
10
  @import "./styles/utilities.css";
11
11
  @import "react-phone-input-2/lib/style.css";
12
-
13
- @keyframes spin {
14
- from {
15
- transform: rotate(0deg);
16
- }
17
- to {
18
- transform: rotate(360deg);
19
- }
20
- }
21
-
22
- .tiptap {
23
- :first-child {
24
- margin-top: 0;
25
- }
26
-
27
- /* List styles */
28
- ul,
29
- ol {
30
- padding: 0 1rem;
31
- margin: 1.25rem 1rem 1.25rem 0.4rem;
32
-
33
- li p {
34
- margin-top: 0.25em;
35
- margin-bottom: 0.25em;
36
- }
37
- }
38
- }
12
+
13
+ @keyframes spin {
14
+ from {
15
+ transform: rotate(0deg);
16
+ }
17
+ to {
18
+ transform: rotate(360deg);
19
+ }
20
+ }
21
+
22
+ .tiptap {
23
+ :first-child {
24
+ margin-top: 0;
25
+ }
26
+
27
+ /* List styles */
28
+ ul,
29
+ ol {
30
+ padding: 0 1rem;
31
+ margin: 1.25rem 1rem 1.25rem 0.4rem;
32
+
33
+ li p {
34
+ margin-top: 0.25em;
35
+ margin-bottom: 0.25em;
36
+ }
37
+ }
38
+
39
+ ul {
40
+ list-style-type: disc;
41
+ }
42
+ ol {
43
+ list-style-type: decimal;
44
+ }
45
+ }
package/dist/index.cjs CHANGED
@@ -666,7 +666,7 @@ const TextInput = react.default.forwardRef(({ rightSection, leftSection, classNa
666
666
  disabled,
667
667
  step,
668
668
  maxLength,
669
- className: (0, clsx.default)(`${loadingState ? "cursor-not-allowed" : ""}`, `${disabled ? "text-gray-500" : "text-gray-900"} selection:bg-turquoise-200 focus:border-turquoise-500 focus:ring-turquoise-500 active:border-turquoise-500 active:ring-turquoise-500 h-10 w-full rounded-[4px] border border-gray-200 bg-gray-50 px-3 text-sm font-normal outline-hidden ${rightSection && "pr-12"} ${leftSection && "pl-12"} ${error && "border-red-500 text-red-500 selection:bg-red-200 focus:border-red-500 focus:ring-red-500 focus:placeholder:text-red-500 active:border-red-500 active:ring-red-500"}`, className),
669
+ className: (0, clsx.default)(`${loadingState ? "cursor-not-allowed" : ""}`, `${disabled ? "text-gray-500" : "text-gray-900"} selection:bg-turquoise-200 focus:border-turquoise-500 focus:ring-turquoise-500 active:border-turquoise-500 active:ring-turquoise-500 h-10 w-full rounded-[4px] border border-gray-200 bg-ultra-light-gray px-3 text-sm font-normal outline-hidden ${rightSection && "pr-12"} ${leftSection && "pl-12"} ${error && "border-red-500 text-red-500 selection:bg-red-200 focus:border-red-500 focus:ring-red-500 focus:placeholder:text-red-500 active:border-red-500 active:ring-red-500"}`, className),
670
670
  "aria-busy": loadingState || undefined,
671
671
  "data-lpignore": enablePasswordManagerAutofill ? undefined : "true",
672
672
  "data-1p-ignore": enablePasswordManagerAutofill ? undefined : "true",
@@ -3267,7 +3267,7 @@ const WysiwygEditor = (0, react.forwardRef)(({ id, content, className, placehold
3267
3267
  immediatelyRender: false,
3268
3268
  editable: !readOnly,
3269
3269
  onUpdate({ editor: editor$1 }) {
3270
- onChange && onChange(editor$1.getHTML().replaceAll(/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi, "<li>$1<$2$3>"));
3270
+ onChange && onChange(editor$1.getHTML().replaceAll(/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi, "<li>$1<$2$3>").replaceAll("<p></p>", ""));
3271
3271
  }
3272
3272
  });
3273
3273
  (0, react.useEffect)(() => {