@lindle/linoardo 1.0.9 → 1.0.11
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.cjs +647 -370
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +86 -26
- package/dist/index.d.ts +86 -26
- package/dist/index.js +643 -370
- package/dist/index.js.map +1 -1
- package/dist/styles.css +634 -53
- package/package.json +1 -1
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' | '
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
|
|
@@ -424,31 +425,15 @@ interface ListProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
424
425
|
declare const List: React$1.ForwardRefExoticComponent<ListProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
425
426
|
|
|
426
427
|
type MenuPlacement = 'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end';
|
|
427
|
-
interface MenuActivatorRenderProps {
|
|
428
|
-
ref: (node: HTMLElement | null) => void;
|
|
429
|
-
id: string;
|
|
430
|
-
'aria-haspopup': 'menu';
|
|
431
|
-
'aria-expanded': boolean;
|
|
432
|
-
'aria-controls': string;
|
|
433
|
-
onClick: React$1.MouseEventHandler<HTMLElement>;
|
|
434
|
-
onKeyDown: React$1.KeyboardEventHandler<HTMLElement>;
|
|
435
|
-
onMouseEnter?: React$1.MouseEventHandler<HTMLElement>;
|
|
436
|
-
onMouseLeave?: React$1.MouseEventHandler<HTMLElement>;
|
|
437
|
-
disabled?: boolean;
|
|
438
|
-
open: boolean;
|
|
439
|
-
}
|
|
440
428
|
interface MenuProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
441
|
-
activator:
|
|
429
|
+
activator: React$1.ReactNode;
|
|
442
430
|
children: React$1.ReactNode;
|
|
443
|
-
open?: boolean;
|
|
444
|
-
defaultOpen?: boolean;
|
|
445
|
-
onOpenChange?: (open: boolean) => void;
|
|
446
431
|
placement?: MenuPlacement;
|
|
432
|
+
open?: boolean;
|
|
447
433
|
openOnHover?: boolean;
|
|
448
|
-
|
|
434
|
+
openOnFocus?: boolean;
|
|
449
435
|
matchActivatorWidth?: boolean;
|
|
450
436
|
keepMounted?: boolean;
|
|
451
|
-
disabled?: boolean;
|
|
452
437
|
scrim?: boolean;
|
|
453
438
|
contentClassName?: string;
|
|
454
439
|
contentProps?: React$1.HTMLAttributes<HTMLDivElement>;
|
|
@@ -456,7 +441,82 @@ interface MenuProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'childr
|
|
|
456
441
|
}
|
|
457
442
|
declare const Menu: React$1.ForwardRefExoticComponent<MenuProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
458
443
|
|
|
459
|
-
type
|
|
444
|
+
type ExpansionPanelValue = React$1.Key;
|
|
445
|
+
type ExpansionPanelVariant = 'elevated' | 'outlined' | 'tonal' | 'plain';
|
|
446
|
+
type ExpansionPanelDensity = 'compact' | 'default' | 'comfortable';
|
|
447
|
+
type ExpansionPanelRounded = 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
448
|
+
type DivAttributes = Omit<React$1.HTMLAttributes<HTMLDivElement>, 'color' | 'value' | 'defaultValue' | 'onChange'>;
|
|
449
|
+
interface ExpansionPanelSharedProps extends DivAttributes {
|
|
450
|
+
variant?: ExpansionPanelVariant;
|
|
451
|
+
rounded?: ExpansionPanelRounded;
|
|
452
|
+
density?: ExpansionPanelDensity;
|
|
453
|
+
color?: Palette;
|
|
454
|
+
divider?: boolean;
|
|
455
|
+
}
|
|
456
|
+
interface ExpansionPanelSingleProps extends ExpansionPanelSharedProps {
|
|
457
|
+
multiple?: false;
|
|
458
|
+
value?: ExpansionPanelValue | null;
|
|
459
|
+
defaultValue?: ExpansionPanelValue | null;
|
|
460
|
+
onChange?: (value: ExpansionPanelValue | null) => void;
|
|
461
|
+
}
|
|
462
|
+
interface ExpansionPanelMultipleProps extends ExpansionPanelSharedProps {
|
|
463
|
+
multiple: true;
|
|
464
|
+
value?: ExpansionPanelValue[];
|
|
465
|
+
defaultValue?: ExpansionPanelValue[];
|
|
466
|
+
onChange?: (value: ExpansionPanelValue[]) => void;
|
|
467
|
+
}
|
|
468
|
+
type ExpansionPanelProps = ExpansionPanelSingleProps | ExpansionPanelMultipleProps;
|
|
469
|
+
interface ExpansionPanelItemProps extends Omit<DivAttributes, 'title'> {
|
|
470
|
+
value?: ExpansionPanelValue;
|
|
471
|
+
title?: React$1.ReactNode;
|
|
472
|
+
subtitle?: React$1.ReactNode;
|
|
473
|
+
text?: React$1.ReactNode;
|
|
474
|
+
disabled?: boolean;
|
|
475
|
+
prepend?: React$1.ReactNode;
|
|
476
|
+
append?: React$1.ReactNode;
|
|
477
|
+
expandIcon?: React$1.ReactNode;
|
|
478
|
+
collapseIcon?: React$1.ReactNode;
|
|
479
|
+
hideToggleIcon?: boolean;
|
|
480
|
+
headerClassName?: string;
|
|
481
|
+
contentClassName?: string;
|
|
482
|
+
color?: Palette;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
declare const ExpansionPanelItem: React$1.ForwardRefExoticComponent<ExpansionPanelItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
486
|
+
|
|
487
|
+
declare const ExpansionPanel: React$1.ForwardRefExoticComponent<ExpansionPanelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
488
|
+
|
|
489
|
+
interface DialogProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
490
|
+
activator?: React$1.ReactNode;
|
|
491
|
+
open?: boolean;
|
|
492
|
+
keepMounted?: boolean;
|
|
493
|
+
scrim?: boolean;
|
|
494
|
+
fullscreen?: boolean;
|
|
495
|
+
maxWidth?: string | number;
|
|
496
|
+
width?: string | number;
|
|
497
|
+
containerClassName?: string;
|
|
498
|
+
overlayClassName?: string;
|
|
499
|
+
overlayProps?: React$1.HTMLAttributes<HTMLDivElement>;
|
|
500
|
+
}
|
|
501
|
+
declare const Dialog: React$1.ForwardRefExoticComponent<DialogProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
502
|
+
|
|
503
|
+
type ToolTipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
504
|
+
interface ToolTipProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
505
|
+
activator: React$1.ReactNode;
|
|
506
|
+
placement?: ToolTipPlacement;
|
|
507
|
+
arrow?: boolean;
|
|
508
|
+
disabled?: boolean;
|
|
509
|
+
persistent?: boolean;
|
|
510
|
+
showOnHover?: boolean;
|
|
511
|
+
showOnFocus?: boolean;
|
|
512
|
+
interactive?: boolean;
|
|
513
|
+
keepMounted?: boolean;
|
|
514
|
+
maxWidth?: string | number;
|
|
515
|
+
wrapperClassName?: string;
|
|
516
|
+
}
|
|
517
|
+
declare const ToolTip: React$1.ForwardRefExoticComponent<ToolTipProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
518
|
+
|
|
519
|
+
type InputVariant = GlobalVariant;
|
|
460
520
|
type StatusMessage = string;
|
|
461
521
|
type EmptyStatus = undefined | null | '';
|
|
462
522
|
type StatusValue = StatusMessage | EmptyStatus;
|
|
@@ -475,4 +535,4 @@ type InputProp = React.InputHTMLAttributes<HTMLInputElement> & InputStatusProps
|
|
|
475
535
|
|
|
476
536
|
declare const Input: React.FC<InputProp>;
|
|
477
537
|
|
|
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
|
|
538
|
+
export { Button, Chip, type ChipProps, type ChipSize, type ChipVariant, Dialog, 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 MenuPlacement, type MenuProps, ToolTip, type ToolTipPlacement, type ToolTipProps };
|