demio-ui 2.1.83 → 2.1.85

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,24 +1,25 @@
1
1
  import React from 'react';
2
2
  type Props = {
3
- isTriggerAsChild: boolean;
3
+ align?: 'start' | 'center' | 'end';
4
+ alignOffset?: number;
4
5
  children: React.ReactNode;
6
+ className?: string;
7
+ collisionBoundary?: HTMLElement | null | Array<HTMLElement | null>;
8
+ container?: HTMLElement | null;
5
9
  content: React.ReactNode | string;
6
- open?: boolean;
7
10
  defaultOpen?: boolean;
11
+ delayDuration?: number;
12
+ isCustomTrigger?: boolean;
13
+ isPortal?: boolean;
14
+ isTriggerAsChild?: boolean;
8
15
  onOpenChange?: (open: boolean) => void;
16
+ open?: boolean;
9
17
  side?: 'top' | 'right' | 'bottom' | 'left';
10
- align?: 'start' | 'center' | 'end';
11
- className?: string;
12
- delayDuration?: number;
13
- skipDelayDuration?: number;
14
- alignOffset?: number;
15
18
  sideOffset?: number;
16
- isPortal?: boolean;
17
- container?: HTMLElement | null;
18
- collisionBoundary?: HTMLElement | null | Array<HTMLElement | null>;
19
+ skipDelayDuration?: number;
19
20
  };
20
21
  /**
21
22
  * Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
22
23
  **/
23
- export declare function Tooltip({ isTriggerAsChild, 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;
24
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,27 +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
- isTriggerAsChild: boolean;
376
+ align?: 'start' | 'center' | 'end';
377
+ alignOffset?: number;
377
378
  children: React__default.ReactNode;
379
+ className?: string;
380
+ collisionBoundary?: HTMLElement | null | Array<HTMLElement | null>;
381
+ container?: HTMLElement | null;
378
382
  content: React__default.ReactNode | string;
379
- open?: boolean;
380
383
  defaultOpen?: boolean;
384
+ delayDuration?: number;
385
+ isCustomTrigger?: boolean;
386
+ isPortal?: boolean;
387
+ isTriggerAsChild?: boolean;
381
388
  onOpenChange?: (open: boolean) => void;
389
+ open?: boolean;
382
390
  side?: 'top' | 'right' | 'bottom' | 'left';
383
- align?: 'start' | 'center' | 'end';
384
- className?: string;
385
- delayDuration?: number;
386
- skipDelayDuration?: number;
387
- alignOffset?: number;
388
391
  sideOffset?: number;
389
- isPortal?: boolean;
390
- container?: HTMLElement | null;
391
- collisionBoundary?: HTMLElement | null | Array<HTMLElement | null>;
392
+ skipDelayDuration?: number;
392
393
  };
393
394
  /**
394
395
  * Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
395
396
  **/
396
- declare function Tooltip({ isTriggerAsChild, 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;
397
398
 
398
399
  interface TypoProps extends PropsWithChildren {
399
400
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "2.1.83",
3
+ "version": "2.1.85",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",