@plurid/plurid-ui-components-react 0.0.0-23 → 0.0.0-25

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.
@@ -3125,8 +3125,8 @@ const Head$1 = properties => {
3125
3125
  const robots = (defaults === null || defaults === void 0 ? void 0 : defaults.robots) || "index,follow";
3126
3126
  const viewport = (defaults === null || defaults === void 0 ? void 0 : defaults.viewport) || "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0, shrink-to-fit=no";
3127
3127
  const faviconIcon = (_a = defaults === null || defaults === void 0 ? void 0 : defaults.faviconIcon) !== null && _a !== void 0 ? _a : "/favicon.ico";
3128
- const favicon16 = (_b = defaults === null || defaults === void 0 ? void 0 : defaults.favicon16) !== null && _b !== void 0 ? _b : "/favicon-32x32.png";
3129
- const favicon32 = (_c = defaults === null || defaults === void 0 ? void 0 : defaults.favicon32) !== null && _c !== void 0 ? _c : "/favicon-16x16.png";
3128
+ const favicon16 = (_b = defaults === null || defaults === void 0 ? void 0 : defaults.favicon16) !== null && _b !== void 0 ? _b : "/favicon-16x16.png";
3129
+ const favicon32 = (_c = defaults === null || defaults === void 0 ? void 0 : defaults.favicon32) !== null && _c !== void 0 ? _c : "/favicon-32x32.png";
3130
3130
  const manifest = (_d = defaults === null || defaults === void 0 ? void 0 : defaults.manifest) !== null && _d !== void 0 ? _d : "/site.webmanifest";
3131
3131
  const themeColor = (defaults === null || defaults === void 0 ? void 0 : defaults.themeColor) || "";
3132
3132
  const titleValue = stateHead.title || (defaults === null || defaults === void 0 ? void 0 : defaults.title) || "";
@@ -3314,13 +3314,14 @@ const Notification$1 = properties => {
3314
3314
  const [prepareForRemoval, setPrepareForRemoval] = useState(false);
3315
3315
  const notificationTimeout = useRef(null);
3316
3316
  useEffect((() => {
3317
- if (timeout) {
3317
+ const timeoutValue = timeout === undefined ? react ? 4e3 : 2e3 + text.length * 40 : timeout === 0 ? undefined : timeout;
3318
+ if (timeoutValue) {
3318
3319
  notificationTimeout.current = setTimeout((() => {
3319
3320
  setPrepareForRemoval(true);
3320
3321
  setTimeout((() => {
3321
3322
  remove(id);
3322
3323
  }), 400);
3323
- }), timeout);
3324
+ }), timeoutValue);
3324
3325
  }
3325
3326
  return () => {
3326
3327
  if (notificationTimeout.current) {