demio-ui 2.1.82 → 2.1.84

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.
@@ -10,5 +10,5 @@ type Props = {
10
10
  onCheckedChange?: (checked: CheckedState) => void;
11
11
  value?: string;
12
12
  };
13
- declare const Checkbox: React.MemoExoticComponent<({ children, disabled, id, ...props }: Props) => React.JSX.Element>;
13
+ declare const Checkbox: React.MemoExoticComponent<React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>>;
14
14
  export default Checkbox;
@@ -1,23 +1,25 @@
1
1
  import React from 'react';
2
2
  type Props = {
3
+ align?: 'start' | 'center' | 'end';
4
+ alignOffset?: number;
3
5
  children: React.ReactNode;
6
+ className?: string;
7
+ collisionBoundary?: HTMLElement | null | Array<HTMLElement | null>;
8
+ container?: HTMLElement | null;
4
9
  content: React.ReactNode | string;
5
- open?: boolean;
6
10
  defaultOpen?: boolean;
11
+ delayDuration?: number;
12
+ isCustomTrigger?: boolean;
13
+ isPortal?: boolean;
14
+ isTriggerAsChild?: boolean;
7
15
  onOpenChange?: (open: boolean) => void;
16
+ open?: boolean;
8
17
  side?: 'top' | 'right' | 'bottom' | 'left';
9
- align?: 'start' | 'center' | 'end';
10
- className?: string;
11
- delayDuration?: number;
12
- skipDelayDuration?: number;
13
- alignOffset?: number;
14
18
  sideOffset?: number;
15
- isPortal?: boolean;
16
- container?: HTMLElement | null;
17
- collisionBoundary?: HTMLElement | null | Array<HTMLElement | null>;
19
+ skipDelayDuration?: number;
18
20
  };
19
21
  /**
20
22
  * Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
21
23
  **/
22
- export declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, side, align, className, delayDuration, sideOffset, alignOffset, isPortal, skipDelayDuration, container, collisionBoundary, ...props }: Props): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
24
+ export declare function Tooltip({ align, alignOffset, children, className, collisionBoundary, container, content, defaultOpen, delayDuration, isCustomTrigger, isPortal, isTriggerAsChild, open, onOpenChange, side, sideOffset, skipDelayDuration, ...props }: Props): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
23
25
  export default Tooltip;
package/dist/types.d.ts CHANGED
@@ -98,7 +98,7 @@ type Props$g = {
98
98
  onCheckedChange?: (checked: CheckedState) => void;
99
99
  value?: string;
100
100
  };
101
- declare const Checkbox: React__default.MemoExoticComponent<({ children, disabled, id, ...props }: Props$g) => React__default.JSX.Element>;
101
+ declare const Checkbox: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<Props$g & React__default.RefAttributes<HTMLDivElement>>>;
102
102
 
103
103
  type Props$f = {
104
104
  children?: ReactNode;
@@ -373,26 +373,28 @@ interface TagProps extends PropsWithChildren {
373
373
  declare function Tag({ children, onDelete, className }: TagProps): React__default.JSX.Element;
374
374
 
375
375
  type Props = {
376
+ align?: 'start' | 'center' | 'end';
377
+ alignOffset?: number;
376
378
  children: React__default.ReactNode;
379
+ className?: string;
380
+ collisionBoundary?: HTMLElement | null | Array<HTMLElement | null>;
381
+ container?: HTMLElement | null;
377
382
  content: React__default.ReactNode | string;
378
- open?: boolean;
379
383
  defaultOpen?: boolean;
384
+ delayDuration?: number;
385
+ isCustomTrigger?: boolean;
386
+ isPortal?: boolean;
387
+ isTriggerAsChild?: boolean;
380
388
  onOpenChange?: (open: boolean) => void;
389
+ open?: boolean;
381
390
  side?: 'top' | 'right' | 'bottom' | 'left';
382
- align?: 'start' | 'center' | 'end';
383
- className?: string;
384
- delayDuration?: number;
385
- skipDelayDuration?: number;
386
- alignOffset?: number;
387
391
  sideOffset?: number;
388
- isPortal?: boolean;
389
- container?: HTMLElement | null;
390
- collisionBoundary?: HTMLElement | null | Array<HTMLElement | null>;
392
+ skipDelayDuration?: number;
391
393
  };
392
394
  /**
393
395
  * Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
394
396
  **/
395
- declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, side, align, className, delayDuration, sideOffset, alignOffset, isPortal, skipDelayDuration, container, collisionBoundary, ...props }: Props): string | number | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | null | undefined;
397
+ declare function Tooltip({ align, alignOffset, children, className, collisionBoundary, container, content, defaultOpen, delayDuration, isCustomTrigger, isPortal, isTriggerAsChild, open, onOpenChange, side, sideOffset, skipDelayDuration, ...props }: Props): string | number | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | null | undefined;
396
398
 
397
399
  interface TypoProps extends PropsWithChildren {
398
400
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "2.1.82",
3
+ "version": "2.1.84",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",