@mlw-packages/react-components 1.8.2 → 1.8.4
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.css +11 -0
- package/dist/index.d.mts +16 -15
- package/dist/index.d.ts +16 -15
- package/dist/index.js +3266 -3262
- package/dist/index.mjs +3035 -3031
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -735,6 +735,9 @@ body {
|
|
|
735
735
|
.ml-auto {
|
|
736
736
|
margin-left: auto;
|
|
737
737
|
}
|
|
738
|
+
.mr-0\.5 {
|
|
739
|
+
margin-right: 0.125rem;
|
|
740
|
+
}
|
|
738
741
|
.mr-1 {
|
|
739
742
|
margin-right: 0.25rem;
|
|
740
743
|
}
|
|
@@ -869,6 +872,10 @@ body {
|
|
|
869
872
|
width: 2.25rem;
|
|
870
873
|
height: 2.25rem;
|
|
871
874
|
}
|
|
875
|
+
.size-\[0\.75em\] {
|
|
876
|
+
width: 0.75em;
|
|
877
|
+
height: 0.75em;
|
|
878
|
+
}
|
|
872
879
|
.size-full {
|
|
873
880
|
width: 100%;
|
|
874
881
|
height: 100%;
|
|
@@ -2696,6 +2703,10 @@ body {
|
|
|
2696
2703
|
padding-left: 24rem;
|
|
2697
2704
|
padding-right: 24rem;
|
|
2698
2705
|
}
|
|
2706
|
+
.px-\[0\.5em\] {
|
|
2707
|
+
padding-left: 0.5em;
|
|
2708
|
+
padding-right: 0.5em;
|
|
2709
|
+
}
|
|
2699
2710
|
.py-0 {
|
|
2700
2711
|
padding-top: 0px;
|
|
2701
2712
|
padding-bottom: 0px;
|
package/dist/index.d.mts
CHANGED
|
@@ -267,20 +267,21 @@ declare const TooltipTriggerBase: React$1.ForwardRefExoticComponent<Omit<Tooltip
|
|
|
267
267
|
declare const TooltipContentBase: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
268
268
|
|
|
269
269
|
declare const buttonVariantsBase: (props?: ({
|
|
270
|
-
variant?: "
|
|
271
|
-
size?: "
|
|
270
|
+
variant?: "select" | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
271
|
+
size?: "select" | "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
272
272
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
273
|
-
interface ButtonProps extends
|
|
273
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariantsBase> {
|
|
274
274
|
asChild?: boolean;
|
|
275
275
|
testid?: string;
|
|
276
276
|
isLoading?: boolean;
|
|
277
|
+
tooltip?: React__default.ReactNode;
|
|
277
278
|
}
|
|
278
|
-
declare const ButtonBase:
|
|
279
|
-
interface ButtonGroupProps extends
|
|
280
|
-
children:
|
|
279
|
+
declare const ButtonBase: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
280
|
+
interface ButtonGroupProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
281
|
+
children: React__default.ReactNode;
|
|
281
282
|
orientation?: "horizontal" | "vertical";
|
|
282
283
|
}
|
|
283
|
-
declare const ButtonGroupBase:
|
|
284
|
+
declare const ButtonGroupBase: React__default.ForwardRefExoticComponent<ButtonGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
284
285
|
|
|
285
286
|
declare const CheckboxBase: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
286
287
|
testid?: string;
|
|
@@ -444,7 +445,7 @@ declare const CommandBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
444
445
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
445
446
|
} & {
|
|
446
447
|
asChild?: boolean;
|
|
447
|
-
}, "
|
|
448
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
448
449
|
label?: string;
|
|
449
450
|
shouldFilter?: boolean;
|
|
450
451
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -462,7 +463,7 @@ declare const CommandInputBase: React$1.ForwardRefExoticComponent<Omit<Omit<Pick
|
|
|
462
463
|
ref?: React$1.Ref<HTMLInputElement>;
|
|
463
464
|
} & {
|
|
464
465
|
asChild?: boolean;
|
|
465
|
-
}, "
|
|
466
|
+
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
466
467
|
value?: string;
|
|
467
468
|
onValueChange?: (search: string) => void;
|
|
468
469
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
@@ -474,7 +475,7 @@ declare const CommandListBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
474
475
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
475
476
|
} & {
|
|
476
477
|
asChild?: boolean;
|
|
477
|
-
}, "
|
|
478
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
478
479
|
label?: string;
|
|
479
480
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
480
481
|
testid?: string;
|
|
@@ -485,7 +486,7 @@ declare const CommandEmptyBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
485
486
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
486
487
|
} & {
|
|
487
488
|
asChild?: boolean;
|
|
488
|
-
}, "
|
|
489
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
489
490
|
testid?: string;
|
|
490
491
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
491
492
|
declare const CommandGroupBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
@@ -494,7 +495,7 @@ declare const CommandGroupBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
494
495
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
495
496
|
} & {
|
|
496
497
|
asChild?: boolean;
|
|
497
|
-
}, "
|
|
498
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
|
498
499
|
heading?: React$1.ReactNode;
|
|
499
500
|
value?: string;
|
|
500
501
|
forceMount?: boolean;
|
|
@@ -505,7 +506,7 @@ declare const CommandSeparatorBase: React$1.ForwardRefExoticComponent<Omit<Pick<
|
|
|
505
506
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
506
507
|
} & {
|
|
507
508
|
asChild?: boolean;
|
|
508
|
-
}, "
|
|
509
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
509
510
|
alwaysRender?: boolean;
|
|
510
511
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
511
512
|
testid?: string;
|
|
@@ -516,7 +517,7 @@ declare const CommandItemBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
516
517
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
517
518
|
} & {
|
|
518
519
|
asChild?: boolean;
|
|
519
|
-
}, "
|
|
520
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
520
521
|
disabled?: boolean;
|
|
521
522
|
onSelect?: (value: string) => void;
|
|
522
523
|
value?: string;
|
|
@@ -658,7 +659,7 @@ declare const SheetCloseBase: React$1.ForwardRefExoticComponent<DialogPrimitive.
|
|
|
658
659
|
declare const SheetPortalBase: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
659
660
|
declare const SheetOverlayBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
660
661
|
declare const sheetVariants: (props?: ({
|
|
661
|
-
side?: "left" | "right" | "
|
|
662
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
662
663
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
663
664
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
664
665
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -267,20 +267,21 @@ declare const TooltipTriggerBase: React$1.ForwardRefExoticComponent<Omit<Tooltip
|
|
|
267
267
|
declare const TooltipContentBase: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
268
268
|
|
|
269
269
|
declare const buttonVariantsBase: (props?: ({
|
|
270
|
-
variant?: "
|
|
271
|
-
size?: "
|
|
270
|
+
variant?: "select" | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
271
|
+
size?: "select" | "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
272
272
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
273
|
-
interface ButtonProps extends
|
|
273
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariantsBase> {
|
|
274
274
|
asChild?: boolean;
|
|
275
275
|
testid?: string;
|
|
276
276
|
isLoading?: boolean;
|
|
277
|
+
tooltip?: React__default.ReactNode;
|
|
277
278
|
}
|
|
278
|
-
declare const ButtonBase:
|
|
279
|
-
interface ButtonGroupProps extends
|
|
280
|
-
children:
|
|
279
|
+
declare const ButtonBase: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
280
|
+
interface ButtonGroupProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
281
|
+
children: React__default.ReactNode;
|
|
281
282
|
orientation?: "horizontal" | "vertical";
|
|
282
283
|
}
|
|
283
|
-
declare const ButtonGroupBase:
|
|
284
|
+
declare const ButtonGroupBase: React__default.ForwardRefExoticComponent<ButtonGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
284
285
|
|
|
285
286
|
declare const CheckboxBase: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
286
287
|
testid?: string;
|
|
@@ -444,7 +445,7 @@ declare const CommandBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
444
445
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
445
446
|
} & {
|
|
446
447
|
asChild?: boolean;
|
|
447
|
-
}, "
|
|
448
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
448
449
|
label?: string;
|
|
449
450
|
shouldFilter?: boolean;
|
|
450
451
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -462,7 +463,7 @@ declare const CommandInputBase: React$1.ForwardRefExoticComponent<Omit<Omit<Pick
|
|
|
462
463
|
ref?: React$1.Ref<HTMLInputElement>;
|
|
463
464
|
} & {
|
|
464
465
|
asChild?: boolean;
|
|
465
|
-
}, "
|
|
466
|
+
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
466
467
|
value?: string;
|
|
467
468
|
onValueChange?: (search: string) => void;
|
|
468
469
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
@@ -474,7 +475,7 @@ declare const CommandListBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
474
475
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
475
476
|
} & {
|
|
476
477
|
asChild?: boolean;
|
|
477
|
-
}, "
|
|
478
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
478
479
|
label?: string;
|
|
479
480
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
480
481
|
testid?: string;
|
|
@@ -485,7 +486,7 @@ declare const CommandEmptyBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
485
486
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
486
487
|
} & {
|
|
487
488
|
asChild?: boolean;
|
|
488
|
-
}, "
|
|
489
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
489
490
|
testid?: string;
|
|
490
491
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
491
492
|
declare const CommandGroupBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
@@ -494,7 +495,7 @@ declare const CommandGroupBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
494
495
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
495
496
|
} & {
|
|
496
497
|
asChild?: boolean;
|
|
497
|
-
}, "
|
|
498
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
|
498
499
|
heading?: React$1.ReactNode;
|
|
499
500
|
value?: string;
|
|
500
501
|
forceMount?: boolean;
|
|
@@ -505,7 +506,7 @@ declare const CommandSeparatorBase: React$1.ForwardRefExoticComponent<Omit<Pick<
|
|
|
505
506
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
506
507
|
} & {
|
|
507
508
|
asChild?: boolean;
|
|
508
|
-
}, "
|
|
509
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
509
510
|
alwaysRender?: boolean;
|
|
510
511
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
511
512
|
testid?: string;
|
|
@@ -516,7 +517,7 @@ declare const CommandItemBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
516
517
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
517
518
|
} & {
|
|
518
519
|
asChild?: boolean;
|
|
519
|
-
}, "
|
|
520
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
520
521
|
disabled?: boolean;
|
|
521
522
|
onSelect?: (value: string) => void;
|
|
522
523
|
value?: string;
|
|
@@ -658,7 +659,7 @@ declare const SheetCloseBase: React$1.ForwardRefExoticComponent<DialogPrimitive.
|
|
|
658
659
|
declare const SheetPortalBase: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
659
660
|
declare const SheetOverlayBase: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
660
661
|
declare const sheetVariants: (props?: ({
|
|
661
|
-
side?: "left" | "right" | "
|
|
662
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
662
663
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
663
664
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
664
665
|
}
|