@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.
- package/dist/components/wysiwygEditor/index.d.ts +1 -1
- package/dist/globals.css +34 -27
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/utilities.css +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -644,7 +644,7 @@ const TextInput = React.forwardRef(({ rightSection, leftSection, className, erro
|
|
|
644
644
|
disabled,
|
|
645
645
|
step,
|
|
646
646
|
maxLength,
|
|
647
|
-
className: clsx(`${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
|
|
647
|
+
className: clsx(`${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),
|
|
648
648
|
"aria-busy": loadingState || undefined,
|
|
649
649
|
"data-lpignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
650
650
|
"data-1p-ignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
@@ -3245,7 +3245,7 @@ const WysiwygEditor = forwardRef(({ id, content, className, placeholder, onChang
|
|
|
3245
3245
|
immediatelyRender: false,
|
|
3246
3246
|
editable: !readOnly,
|
|
3247
3247
|
onUpdate({ editor: editor$1 }) {
|
|
3248
|
-
onChange && onChange(editor$1.getHTML().replaceAll(/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi, "<li>$1<$2$3>"));
|
|
3248
|
+
onChange && onChange(editor$1.getHTML().replaceAll(/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi, "<li>$1<$2$3>").replaceAll("<p></p>", ""));
|
|
3249
3249
|
}
|
|
3250
3250
|
});
|
|
3251
3251
|
useEffect(() => {
|