@medway-ui/core 1.4.1 → 1.4.2
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/assets/js/tokens.ts +36 -0
- package/dist/index.d.mts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/assets/js/tokens.ts
CHANGED
|
@@ -578,6 +578,22 @@ export const boxShadow = {
|
|
|
578
578
|
};
|
|
579
579
|
|
|
580
580
|
export const keyframes = {
|
|
581
|
+
"accordion-down": {
|
|
582
|
+
from: {
|
|
583
|
+
height: "0",
|
|
584
|
+
},
|
|
585
|
+
to: {
|
|
586
|
+
height: "var(--radix-accordion-content-height)",
|
|
587
|
+
},
|
|
588
|
+
},
|
|
589
|
+
"accordion-up": {
|
|
590
|
+
from: {
|
|
591
|
+
height: "var(--radix-accordion-content-height)",
|
|
592
|
+
},
|
|
593
|
+
to: {
|
|
594
|
+
height: "0",
|
|
595
|
+
},
|
|
596
|
+
},
|
|
581
597
|
"collapsible-down": {
|
|
582
598
|
from: {
|
|
583
599
|
height: "0",
|
|
@@ -594,9 +610,29 @@ export const keyframes = {
|
|
|
594
610
|
height: "0",
|
|
595
611
|
},
|
|
596
612
|
},
|
|
613
|
+
"fade-in": {
|
|
614
|
+
from: {
|
|
615
|
+
opacity: "0",
|
|
616
|
+
},
|
|
617
|
+
to: {
|
|
618
|
+
opacity: "1",
|
|
619
|
+
},
|
|
620
|
+
},
|
|
621
|
+
"fade-out": {
|
|
622
|
+
from: {
|
|
623
|
+
opacity: "1",
|
|
624
|
+
},
|
|
625
|
+
to: {
|
|
626
|
+
opacity: "0",
|
|
627
|
+
},
|
|
628
|
+
},
|
|
597
629
|
};
|
|
598
630
|
|
|
599
631
|
export const animation = {
|
|
632
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
633
|
+
"accordion-up": "accordion-up 0.2s ease-out",
|
|
600
634
|
"collapsible-down": "collapsible-down 0.2s ease-out",
|
|
601
635
|
"collapsible-up": "collapsible-up 0.2s ease-out",
|
|
636
|
+
"fade-in": "fade-in 0.2s ease-out",
|
|
637
|
+
"fade-out": "fade-out 0.2s ease-out",
|
|
602
638
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -75,14 +75,15 @@ declare const buttonVariants: (props?: ({
|
|
|
75
75
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
76
76
|
declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
animated?: boolean;
|
|
80
|
-
}
|
|
81
|
-
declare function Collapsible({ animated, ...props }: CollapsibleProps): react_jsx_runtime.JSX.Element;
|
|
82
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
78
|
+
type AnimationType = "accordion" | "fade";
|
|
83
79
|
interface CollapsibleContentProps extends React.ComponentProps<typeof Collapsible$1.Content> {
|
|
84
80
|
className?: string;
|
|
85
81
|
}
|
|
82
|
+
interface CollapsibleProps extends React.ComponentProps<typeof Collapsible$1.Root> {
|
|
83
|
+
animation?: AnimationType;
|
|
84
|
+
}
|
|
85
|
+
declare function Collapsible({ animation, ...props }: CollapsibleProps): react_jsx_runtime.JSX.Element;
|
|
86
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
86
87
|
declare function CollapsibleContent({ className, ...props }: CollapsibleContentProps): react_jsx_runtime.JSX.Element;
|
|
87
88
|
|
|
88
89
|
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -75,14 +75,15 @@ declare const buttonVariants: (props?: ({
|
|
|
75
75
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
76
76
|
declare function Button({ className, containerClassName, variant, size, asChild, iconRight, iconLeft, badge, loading, alert, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
animated?: boolean;
|
|
80
|
-
}
|
|
81
|
-
declare function Collapsible({ animated, ...props }: CollapsibleProps): react_jsx_runtime.JSX.Element;
|
|
82
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
78
|
+
type AnimationType = "accordion" | "fade";
|
|
83
79
|
interface CollapsibleContentProps extends React.ComponentProps<typeof Collapsible$1.Content> {
|
|
84
80
|
className?: string;
|
|
85
81
|
}
|
|
82
|
+
interface CollapsibleProps extends React.ComponentProps<typeof Collapsible$1.Root> {
|
|
83
|
+
animation?: AnimationType;
|
|
84
|
+
}
|
|
85
|
+
declare function Collapsible({ animation, ...props }: CollapsibleProps): react_jsx_runtime.JSX.Element;
|
|
86
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
86
87
|
declare function CollapsibleContent({ className, ...props }: CollapsibleContentProps): react_jsx_runtime.JSX.Element;
|
|
87
88
|
|
|
88
89
|
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|