lecom-ui 2.5.1 → 2.5.2

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.
@@ -1,4 +1,4 @@
1
- import { forwardRef } from 'react';
1
+ import * as React from 'react';
2
2
  import { cn } from '../../lib/utils.js';
3
3
  import { cva } from 'class-variance-authority';
4
4
  import { NotificationCallout } from './NotificationCallout.js';
@@ -52,7 +52,7 @@ const getPositionClass = (type, placement = "topRight") => {
52
52
  }
53
53
  return "";
54
54
  };
55
- const Notification = forwardRef(
55
+ const Notification = React.forwardRef(
56
56
  ({ ...props }, ref) => {
57
57
  const { type, placement } = props;
58
58
  const { shouldExpand } = props;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as class_variance_authority_types from 'class-variance-authority/types';
2
2
  import * as React from 'react';
3
- import React__default, { ReactNode } from 'react';
3
+ import React__default from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import { ColumnDef } from '@tanstack/react-table';
6
6
  import * as DialogPrimitive from '@radix-ui/react-dialog';
@@ -357,7 +357,7 @@ declare const notificationVariants: (props?: ({
357
357
  variant?: "error" | "success" | "information" | "warning" | null | undefined;
358
358
  } & class_variance_authority_types.ClassProp) | undefined) => string;
359
359
  type BaseNotificationProps = VariantProps<typeof notificationVariants> & {
360
- action?: ReactNode;
360
+ action?: React.ReactNode;
361
361
  };
362
362
  interface ToastNotificationProps extends BaseNotificationProps {
363
363
  type: 'toast';
@@ -368,14 +368,14 @@ interface ToastNotificationProps extends BaseNotificationProps {
368
368
  }
369
369
  interface CalloutNotificationProps extends BaseNotificationProps {
370
370
  type: 'callout';
371
- title?: ReactNode;
372
- content: ReactNode;
371
+ title?: React.ReactNode;
372
+ content: React.ReactNode;
373
373
  shouldExpand?: boolean;
374
374
  }
375
375
  interface InlineNotificationProps extends BaseNotificationProps {
376
376
  type: 'inline';
377
- title?: ReactNode;
378
- content: ReactNode;
377
+ title?: React.ReactNode;
378
+ content: React.ReactNode;
379
379
  enableClose?: boolean;
380
380
  shouldExpand?: boolean;
381
381
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",