@lindle/linoardo 1.0.9 → 1.0.10

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.cts CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as React$1 from 'react';
2
2
 
3
- type Palette = 'primary' | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'surface';
4
- type GlobalVariant = 'solid' | 'outline' | 'text' | 'ghost' | 'bw' | 'filled' | 'underlined';
3
+ type Palette = 'primary' | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'surface' | 'bw';
4
+ type GlobalVariant = 'solid' | 'outline' | 'text' | 'ghost' | 'filled' | 'underlined' | 'rounded' | 'sharp';
5
5
  type GlobalSize = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
6
6
  type IconLibrary$1 = 'mdi';
7
7
  type PropIcon = string | readonly [IconLibrary$1, string];
8
8
 
9
- type ButtonVariant = Extract<GlobalVariant, 'solid' | 'outline' | 'text' | 'ghost' | 'bw'>;
9
+ type ButtonVariant = GlobalVariant;
10
10
 
11
11
  /**
12
12
  * Containment button supporting variant, size, block layout and loading states.
@@ -21,7 +21,7 @@ declare const Button: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttrib
21
21
  icon?: PropIcon;
22
22
  } & React$1.RefAttributes<HTMLButtonElement>>;
23
23
 
24
- type ChipVariant = Extract<GlobalVariant, 'solid' | 'outline' | 'text' | 'ghost' | 'bw'>;
24
+ type ChipVariant = GlobalVariant;
25
25
  type ChipSize = 'small' | 'medium' | 'large';
26
26
  type NativeChipProps = Omit<React$1.HTMLAttributes<HTMLSpanElement>, 'color'>;
27
27
  type ChipProps = NativeChipProps & {
@@ -385,7 +385,7 @@ declare const Chip: React$1.ForwardRefExoticComponent<{
385
385
  disabled?: boolean;
386
386
  } & React$1.RefAttributes<HTMLSpanElement>>;
387
387
 
388
- type ListVariant = Extract<GlobalVariant, 'solid' | 'outline' | 'text' | 'ghost' | 'bw'>;
388
+ type ListVariant = GlobalVariant;
389
389
  type ListDensity = 'default' | 'comfortable' | 'compact';
390
390
  type ListLines = 'one' | 'two' | 'three';
391
391
  type ListRounded = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'pill';
@@ -409,6 +409,7 @@ interface ListItemProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'title
409
409
  nav?: boolean;
410
410
  divided?: boolean;
411
411
  color?: Palette;
412
+ sharp?: boolean;
412
413
  }
413
414
  declare const ListItem: React$1.ForwardRefExoticComponent<ListItemProps & React$1.RefAttributes<HTMLElement>>;
414
415
 
@@ -456,7 +457,119 @@ interface MenuProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'childr
456
457
  }
457
458
  declare const Menu: React$1.ForwardRefExoticComponent<MenuProps & React$1.RefAttributes<HTMLDivElement>>;
458
459
 
459
- type InputVariant = Extract<GlobalVariant, 'outline' | 'filled' | 'underlined'>;
460
+ type ExpansionPanelValue = React$1.Key;
461
+ type ExpansionPanelVariant = 'elevated' | 'outlined' | 'tonal' | 'plain';
462
+ type ExpansionPanelDensity = 'compact' | 'default' | 'comfortable';
463
+ type ExpansionPanelRounded = 'none' | 'sm' | 'md' | 'lg' | 'xl';
464
+ type DivAttributes = Omit<React$1.HTMLAttributes<HTMLDivElement>, 'color' | 'value' | 'defaultValue' | 'onChange'>;
465
+ interface ExpansionPanelSharedProps extends DivAttributes {
466
+ variant?: ExpansionPanelVariant;
467
+ rounded?: ExpansionPanelRounded;
468
+ density?: ExpansionPanelDensity;
469
+ color?: Palette;
470
+ divider?: boolean;
471
+ }
472
+ interface ExpansionPanelSingleProps extends ExpansionPanelSharedProps {
473
+ multiple?: false;
474
+ value?: ExpansionPanelValue | null;
475
+ defaultValue?: ExpansionPanelValue | null;
476
+ onChange?: (value: ExpansionPanelValue | null) => void;
477
+ }
478
+ interface ExpansionPanelMultipleProps extends ExpansionPanelSharedProps {
479
+ multiple: true;
480
+ value?: ExpansionPanelValue[];
481
+ defaultValue?: ExpansionPanelValue[];
482
+ onChange?: (value: ExpansionPanelValue[]) => void;
483
+ }
484
+ type ExpansionPanelProps = ExpansionPanelSingleProps | ExpansionPanelMultipleProps;
485
+ interface ExpansionPanelItemProps extends Omit<DivAttributes, 'title'> {
486
+ value?: ExpansionPanelValue;
487
+ title?: React$1.ReactNode;
488
+ subtitle?: React$1.ReactNode;
489
+ text?: React$1.ReactNode;
490
+ disabled?: boolean;
491
+ prepend?: React$1.ReactNode;
492
+ append?: React$1.ReactNode;
493
+ expandIcon?: React$1.ReactNode;
494
+ collapseIcon?: React$1.ReactNode;
495
+ hideToggleIcon?: boolean;
496
+ headerClassName?: string;
497
+ contentClassName?: string;
498
+ color?: Palette;
499
+ }
500
+
501
+ declare const ExpansionPanelItem: React$1.ForwardRefExoticComponent<ExpansionPanelItemProps & React$1.RefAttributes<HTMLDivElement>>;
502
+
503
+ declare const ExpansionPanel: React$1.ForwardRefExoticComponent<ExpansionPanelProps & React$1.RefAttributes<HTMLDivElement>>;
504
+
505
+ interface DialogActivatorRenderProps {
506
+ ref: (node: HTMLElement | null) => void;
507
+ id: string;
508
+ open: boolean;
509
+ disabled?: boolean;
510
+ 'aria-haspopup': 'dialog';
511
+ 'aria-expanded': boolean;
512
+ 'aria-controls': string;
513
+ onClick: React$1.MouseEventHandler<HTMLElement>;
514
+ onKeyDown: React$1.KeyboardEventHandler<HTMLElement>;
515
+ }
516
+ interface DialogProps extends React$1.HTMLAttributes<HTMLDivElement> {
517
+ activator?: (props: DialogActivatorRenderProps) => React$1.ReactNode;
518
+ open?: boolean;
519
+ defaultOpen?: boolean;
520
+ onOpenChange?: (open: boolean) => void;
521
+ persistent?: boolean;
522
+ closeOnEsc?: boolean;
523
+ closeOnOutsideClick?: boolean;
524
+ closeOnContentClick?: boolean;
525
+ scrim?: boolean;
526
+ keepMounted?: boolean;
527
+ fullscreen?: boolean;
528
+ maxWidth?: string | number;
529
+ width?: string | number;
530
+ containerClassName?: string;
531
+ overlayClassName?: string;
532
+ overlayProps?: React$1.HTMLAttributes<HTMLDivElement>;
533
+ scrollLock?: boolean;
534
+ disabled?: boolean;
535
+ }
536
+ declare const Dialog: React$1.ForwardRefExoticComponent<DialogProps & React$1.RefAttributes<HTMLDivElement>>;
537
+
538
+ type ToolTipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
539
+ interface ToolTipActivatorRenderProps {
540
+ id: string;
541
+ open: boolean;
542
+ disabled?: boolean;
543
+ 'aria-describedby'?: string;
544
+ onPointerEnter: React$1.PointerEventHandler<HTMLElement>;
545
+ onPointerLeave: React$1.PointerEventHandler<HTMLElement>;
546
+ onFocus: React$1.FocusEventHandler<HTMLElement>;
547
+ onBlur: React$1.FocusEventHandler<HTMLElement>;
548
+ onClick?: React$1.MouseEventHandler<HTMLElement>;
549
+ onKeyDown?: React$1.KeyboardEventHandler<HTMLElement>;
550
+ }
551
+ interface ToolTipProps extends React$1.HTMLAttributes<HTMLDivElement> {
552
+ activator: (props: ToolTipActivatorRenderProps) => React$1.ReactNode;
553
+ open?: boolean;
554
+ defaultOpen?: boolean;
555
+ onOpenChange?: (open: boolean) => void;
556
+ placement?: ToolTipPlacement;
557
+ openDelay?: number;
558
+ closeDelay?: number;
559
+ openOnHover?: boolean;
560
+ openOnFocus?: boolean;
561
+ openOnClick?: boolean;
562
+ interactive?: boolean;
563
+ arrow?: boolean;
564
+ disabled?: boolean;
565
+ keepMounted?: boolean;
566
+ maxWidth?: string | number;
567
+ wrapperClassName?: string;
568
+ closeOnContentClick?: boolean;
569
+ }
570
+ declare const ToolTip: React$1.ForwardRefExoticComponent<ToolTipProps & React$1.RefAttributes<HTMLDivElement>>;
571
+
572
+ type InputVariant = GlobalVariant;
460
573
  type StatusMessage = string;
461
574
  type EmptyStatus = undefined | null | '';
462
575
  type StatusValue = StatusMessage | EmptyStatus;
@@ -475,4 +588,4 @@ type InputProp = React.InputHTMLAttributes<HTMLInputElement> & InputStatusProps
475
588
 
476
589
  declare const Input: React.FC<InputProp>;
477
590
 
478
- export { Button, Chip, type ChipProps, type ChipSize, type ChipVariant, Input, List, type ListDensity, ListItem, type ListItemProps, type ListLines, type ListProps, type ListRounded, type ListVariant, Menu, type MenuActivatorRenderProps, type MenuPlacement, type MenuProps };
591
+ export { Button, Chip, type ChipProps, type ChipSize, type ChipVariant, Dialog, type DialogActivatorRenderProps, type DialogProps, ExpansionPanel, type ExpansionPanelDensity, ExpansionPanelItem, type ExpansionPanelItemProps, type ExpansionPanelProps, type ExpansionPanelRounded, type ExpansionPanelValue, type ExpansionPanelVariant, Input, List, type ListDensity, ListItem, type ListItemProps, type ListLines, type ListProps, type ListRounded, type ListVariant, Menu, type MenuActivatorRenderProps, type MenuPlacement, type MenuProps, ToolTip, type ToolTipActivatorRenderProps, type ToolTipPlacement, type ToolTipProps };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as React$1 from 'react';
2
2
 
3
- type Palette = 'primary' | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'surface';
4
- type GlobalVariant = 'solid' | 'outline' | 'text' | 'ghost' | 'bw' | 'filled' | 'underlined';
3
+ type Palette = 'primary' | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'surface' | 'bw';
4
+ type GlobalVariant = 'solid' | 'outline' | 'text' | 'ghost' | 'filled' | 'underlined' | 'rounded' | 'sharp';
5
5
  type GlobalSize = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
6
6
  type IconLibrary$1 = 'mdi';
7
7
  type PropIcon = string | readonly [IconLibrary$1, string];
8
8
 
9
- type ButtonVariant = Extract<GlobalVariant, 'solid' | 'outline' | 'text' | 'ghost' | 'bw'>;
9
+ type ButtonVariant = GlobalVariant;
10
10
 
11
11
  /**
12
12
  * Containment button supporting variant, size, block layout and loading states.
@@ -21,7 +21,7 @@ declare const Button: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttrib
21
21
  icon?: PropIcon;
22
22
  } & React$1.RefAttributes<HTMLButtonElement>>;
23
23
 
24
- type ChipVariant = Extract<GlobalVariant, 'solid' | 'outline' | 'text' | 'ghost' | 'bw'>;
24
+ type ChipVariant = GlobalVariant;
25
25
  type ChipSize = 'small' | 'medium' | 'large';
26
26
  type NativeChipProps = Omit<React$1.HTMLAttributes<HTMLSpanElement>, 'color'>;
27
27
  type ChipProps = NativeChipProps & {
@@ -385,7 +385,7 @@ declare const Chip: React$1.ForwardRefExoticComponent<{
385
385
  disabled?: boolean;
386
386
  } & React$1.RefAttributes<HTMLSpanElement>>;
387
387
 
388
- type ListVariant = Extract<GlobalVariant, 'solid' | 'outline' | 'text' | 'ghost' | 'bw'>;
388
+ type ListVariant = GlobalVariant;
389
389
  type ListDensity = 'default' | 'comfortable' | 'compact';
390
390
  type ListLines = 'one' | 'two' | 'three';
391
391
  type ListRounded = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'pill';
@@ -409,6 +409,7 @@ interface ListItemProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'title
409
409
  nav?: boolean;
410
410
  divided?: boolean;
411
411
  color?: Palette;
412
+ sharp?: boolean;
412
413
  }
413
414
  declare const ListItem: React$1.ForwardRefExoticComponent<ListItemProps & React$1.RefAttributes<HTMLElement>>;
414
415
 
@@ -456,7 +457,119 @@ interface MenuProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'childr
456
457
  }
457
458
  declare const Menu: React$1.ForwardRefExoticComponent<MenuProps & React$1.RefAttributes<HTMLDivElement>>;
458
459
 
459
- type InputVariant = Extract<GlobalVariant, 'outline' | 'filled' | 'underlined'>;
460
+ type ExpansionPanelValue = React$1.Key;
461
+ type ExpansionPanelVariant = 'elevated' | 'outlined' | 'tonal' | 'plain';
462
+ type ExpansionPanelDensity = 'compact' | 'default' | 'comfortable';
463
+ type ExpansionPanelRounded = 'none' | 'sm' | 'md' | 'lg' | 'xl';
464
+ type DivAttributes = Omit<React$1.HTMLAttributes<HTMLDivElement>, 'color' | 'value' | 'defaultValue' | 'onChange'>;
465
+ interface ExpansionPanelSharedProps extends DivAttributes {
466
+ variant?: ExpansionPanelVariant;
467
+ rounded?: ExpansionPanelRounded;
468
+ density?: ExpansionPanelDensity;
469
+ color?: Palette;
470
+ divider?: boolean;
471
+ }
472
+ interface ExpansionPanelSingleProps extends ExpansionPanelSharedProps {
473
+ multiple?: false;
474
+ value?: ExpansionPanelValue | null;
475
+ defaultValue?: ExpansionPanelValue | null;
476
+ onChange?: (value: ExpansionPanelValue | null) => void;
477
+ }
478
+ interface ExpansionPanelMultipleProps extends ExpansionPanelSharedProps {
479
+ multiple: true;
480
+ value?: ExpansionPanelValue[];
481
+ defaultValue?: ExpansionPanelValue[];
482
+ onChange?: (value: ExpansionPanelValue[]) => void;
483
+ }
484
+ type ExpansionPanelProps = ExpansionPanelSingleProps | ExpansionPanelMultipleProps;
485
+ interface ExpansionPanelItemProps extends Omit<DivAttributes, 'title'> {
486
+ value?: ExpansionPanelValue;
487
+ title?: React$1.ReactNode;
488
+ subtitle?: React$1.ReactNode;
489
+ text?: React$1.ReactNode;
490
+ disabled?: boolean;
491
+ prepend?: React$1.ReactNode;
492
+ append?: React$1.ReactNode;
493
+ expandIcon?: React$1.ReactNode;
494
+ collapseIcon?: React$1.ReactNode;
495
+ hideToggleIcon?: boolean;
496
+ headerClassName?: string;
497
+ contentClassName?: string;
498
+ color?: Palette;
499
+ }
500
+
501
+ declare const ExpansionPanelItem: React$1.ForwardRefExoticComponent<ExpansionPanelItemProps & React$1.RefAttributes<HTMLDivElement>>;
502
+
503
+ declare const ExpansionPanel: React$1.ForwardRefExoticComponent<ExpansionPanelProps & React$1.RefAttributes<HTMLDivElement>>;
504
+
505
+ interface DialogActivatorRenderProps {
506
+ ref: (node: HTMLElement | null) => void;
507
+ id: string;
508
+ open: boolean;
509
+ disabled?: boolean;
510
+ 'aria-haspopup': 'dialog';
511
+ 'aria-expanded': boolean;
512
+ 'aria-controls': string;
513
+ onClick: React$1.MouseEventHandler<HTMLElement>;
514
+ onKeyDown: React$1.KeyboardEventHandler<HTMLElement>;
515
+ }
516
+ interface DialogProps extends React$1.HTMLAttributes<HTMLDivElement> {
517
+ activator?: (props: DialogActivatorRenderProps) => React$1.ReactNode;
518
+ open?: boolean;
519
+ defaultOpen?: boolean;
520
+ onOpenChange?: (open: boolean) => void;
521
+ persistent?: boolean;
522
+ closeOnEsc?: boolean;
523
+ closeOnOutsideClick?: boolean;
524
+ closeOnContentClick?: boolean;
525
+ scrim?: boolean;
526
+ keepMounted?: boolean;
527
+ fullscreen?: boolean;
528
+ maxWidth?: string | number;
529
+ width?: string | number;
530
+ containerClassName?: string;
531
+ overlayClassName?: string;
532
+ overlayProps?: React$1.HTMLAttributes<HTMLDivElement>;
533
+ scrollLock?: boolean;
534
+ disabled?: boolean;
535
+ }
536
+ declare const Dialog: React$1.ForwardRefExoticComponent<DialogProps & React$1.RefAttributes<HTMLDivElement>>;
537
+
538
+ type ToolTipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
539
+ interface ToolTipActivatorRenderProps {
540
+ id: string;
541
+ open: boolean;
542
+ disabled?: boolean;
543
+ 'aria-describedby'?: string;
544
+ onPointerEnter: React$1.PointerEventHandler<HTMLElement>;
545
+ onPointerLeave: React$1.PointerEventHandler<HTMLElement>;
546
+ onFocus: React$1.FocusEventHandler<HTMLElement>;
547
+ onBlur: React$1.FocusEventHandler<HTMLElement>;
548
+ onClick?: React$1.MouseEventHandler<HTMLElement>;
549
+ onKeyDown?: React$1.KeyboardEventHandler<HTMLElement>;
550
+ }
551
+ interface ToolTipProps extends React$1.HTMLAttributes<HTMLDivElement> {
552
+ activator: (props: ToolTipActivatorRenderProps) => React$1.ReactNode;
553
+ open?: boolean;
554
+ defaultOpen?: boolean;
555
+ onOpenChange?: (open: boolean) => void;
556
+ placement?: ToolTipPlacement;
557
+ openDelay?: number;
558
+ closeDelay?: number;
559
+ openOnHover?: boolean;
560
+ openOnFocus?: boolean;
561
+ openOnClick?: boolean;
562
+ interactive?: boolean;
563
+ arrow?: boolean;
564
+ disabled?: boolean;
565
+ keepMounted?: boolean;
566
+ maxWidth?: string | number;
567
+ wrapperClassName?: string;
568
+ closeOnContentClick?: boolean;
569
+ }
570
+ declare const ToolTip: React$1.ForwardRefExoticComponent<ToolTipProps & React$1.RefAttributes<HTMLDivElement>>;
571
+
572
+ type InputVariant = GlobalVariant;
460
573
  type StatusMessage = string;
461
574
  type EmptyStatus = undefined | null | '';
462
575
  type StatusValue = StatusMessage | EmptyStatus;
@@ -475,4 +588,4 @@ type InputProp = React.InputHTMLAttributes<HTMLInputElement> & InputStatusProps
475
588
 
476
589
  declare const Input: React.FC<InputProp>;
477
590
 
478
- export { Button, Chip, type ChipProps, type ChipSize, type ChipVariant, Input, List, type ListDensity, ListItem, type ListItemProps, type ListLines, type ListProps, type ListRounded, type ListVariant, Menu, type MenuActivatorRenderProps, type MenuPlacement, type MenuProps };
591
+ export { Button, Chip, type ChipProps, type ChipSize, type ChipVariant, Dialog, type DialogActivatorRenderProps, type DialogProps, ExpansionPanel, type ExpansionPanelDensity, ExpansionPanelItem, type ExpansionPanelItemProps, type ExpansionPanelProps, type ExpansionPanelRounded, type ExpansionPanelValue, type ExpansionPanelVariant, Input, List, type ListDensity, ListItem, type ListItemProps, type ListLines, type ListProps, type ListRounded, type ListVariant, Menu, type MenuActivatorRenderProps, type MenuPlacement, type MenuProps, ToolTip, type ToolTipActivatorRenderProps, type ToolTipPlacement, type ToolTipProps };