@youngonesworks/ui 0.1.114 → 0.1.116

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/index.d.ts CHANGED
@@ -62,5 +62,5 @@ export { UnorderedList } from './components/unorderedList';
62
62
  export { UnorderedListItem } from './components/unorderedListItem';
63
63
  export { UnstyledButton } from './components/unstyledButton';
64
64
  export { ProfileMenu } from './components/profileMenu';
65
- export { WysiwygEditor } from './components/wysiwygEditor';
65
+ export { type IWysiwygEditorImperativeHandle, WysiwygEditor } from './components/wysiwygEditor';
66
66
  export * from './theme';
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-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),
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(() => {