vanilla-jui 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/index.d.ts +7 -14
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/accordion.ts +7 -10
- package/src/components/drop.ts +5 -15
- package/src/components/parabola.ts +2 -2
- package/src/components/tabs.ts +5 -25
- package/src/components/theme.ts +25 -22
- package/src/components/toast.ts +34 -19
- package/src/components/tooltip.ts +3 -9
- package/src/core/Component.ts +1 -1
- package/src/css/accordion.css +1 -1
- package/src/css/components.css +1 -0
- package/src/css/content.css +147 -151
- package/src/css/drop.css +1 -1
- package/src/css/editor.css +16 -0
- package/src/css/form.css +27 -14
- package/src/css/icon.css +3 -3
- package/src/css/index.css +2 -2
- package/src/css/layout.css +2 -2
- package/src/css/loading.css +77 -29
- package/src/css/menu.css +29 -32
- package/src/css/pagination.css +4 -4
- package/src/css/status.css +2 -1
- package/src/css/table.css +20 -20
- package/src/css/tabs.css +2 -2
- package/src/css/theme-palette.css +10 -17
- package/src/css/themes/default/accordion.css +4 -4
- package/src/css/themes/default/avatar.css +17 -1
- package/src/css/themes/default/content.css +59 -0
- package/src/css/themes/default/editor.css +10 -0
- package/src/css/themes/default/index.css +8 -1
- package/src/css/themes/default/loading.css +16 -16
- package/src/css/themes/default/menu.css +15 -0
- package/src/css/themes/default/pagination.css +8 -0
- package/src/css/themes/default/table.css +18 -0
- package/src/css/themes/default/tabs.css +2 -2
- package/src/css/themes/default/theme-palette.css +12 -0
- package/src/css/themes/default/toolbar.css +34 -0
- package/src/css/toast.css +11 -9
- package/src/css/toolbar.css +29 -48
- package/src/locales/index.ts +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -630,7 +630,6 @@ declare const _default: {
|
|
|
630
630
|
en: {
|
|
631
631
|
b: string;
|
|
632
632
|
t: string;
|
|
633
|
-
d: string;
|
|
634
633
|
sm: string;
|
|
635
634
|
md: string;
|
|
636
635
|
lg: string;
|
|
@@ -638,8 +637,7 @@ declare const _default: {
|
|
|
638
637
|
zh: {
|
|
639
638
|
b: string;
|
|
640
639
|
t: string;
|
|
641
|
-
|
|
642
|
-
Theme: string;
|
|
640
|
+
Primary: string;
|
|
643
641
|
Radius: string;
|
|
644
642
|
Shadow: string;
|
|
645
643
|
Font: string;
|
|
@@ -668,6 +666,8 @@ declare const _default: {
|
|
|
668
666
|
Light: string;
|
|
669
667
|
Dark: string;
|
|
670
668
|
Auto: string;
|
|
669
|
+
Close: string;
|
|
670
|
+
Confirm: string;
|
|
671
671
|
};
|
|
672
672
|
};
|
|
673
673
|
//#endregion
|
|
@@ -752,13 +752,12 @@ interface ToastClassNames {
|
|
|
752
752
|
toast: string;
|
|
753
753
|
icon: string;
|
|
754
754
|
message: string;
|
|
755
|
-
shown: string;
|
|
756
755
|
hidden: string;
|
|
757
756
|
lite: string;
|
|
758
757
|
action: string;
|
|
759
758
|
actions: string;
|
|
760
759
|
button: string;
|
|
761
|
-
|
|
760
|
+
closeButton: string;
|
|
762
761
|
actionButton: string;
|
|
763
762
|
info: string;
|
|
764
763
|
success: string;
|
|
@@ -772,10 +771,11 @@ interface ToastOptions {
|
|
|
772
771
|
}
|
|
773
772
|
interface ToastActionProps extends ToastOptions {
|
|
774
773
|
text?: {
|
|
775
|
-
|
|
774
|
+
close?: string;
|
|
776
775
|
action?: string;
|
|
777
776
|
};
|
|
778
777
|
onAction?: () => void | Promise<void>;
|
|
778
|
+
onClose?: () => void | Promise<void>;
|
|
779
779
|
}
|
|
780
780
|
/**
|
|
781
781
|
* Toast 消息提示工具。
|
|
@@ -1722,7 +1722,6 @@ interface TabsClassNames {
|
|
|
1722
1722
|
tab: string;
|
|
1723
1723
|
panelWrap: string;
|
|
1724
1724
|
panel: string;
|
|
1725
|
-
active: string;
|
|
1726
1725
|
disabled: string;
|
|
1727
1726
|
dragging: string;
|
|
1728
1727
|
}
|
|
@@ -1889,7 +1888,6 @@ interface AccordionClassNames {
|
|
|
1889
1888
|
arrow: string;
|
|
1890
1889
|
panel: string;
|
|
1891
1890
|
content: string;
|
|
1892
|
-
active: string;
|
|
1893
1891
|
}
|
|
1894
1892
|
type AccordionClassNameConfig = Partial<AccordionClassNames>;
|
|
1895
1893
|
interface AccordionItem extends Record<string, unknown> {
|
|
@@ -1988,7 +1986,6 @@ type DropPosition = 'auto' | 'top-left' | 'top-center' | 'top-right' | 'bottom-l
|
|
|
1988
1986
|
interface DropClassNames {
|
|
1989
1987
|
root: string;
|
|
1990
1988
|
container: string;
|
|
1991
|
-
active: string;
|
|
1992
1989
|
}
|
|
1993
1990
|
type DropClassNameConfig = Partial<DropClassNames>;
|
|
1994
1991
|
interface DropDelay {
|
|
@@ -2003,7 +2000,6 @@ interface DropProps extends Record<string, unknown> {
|
|
|
2003
2000
|
content?: RenderableContent<Drop>;
|
|
2004
2001
|
className?: DropClassNameConfig;
|
|
2005
2002
|
id?: string | null;
|
|
2006
|
-
containerClassName?: string | null;
|
|
2007
2003
|
delay?: number | DropDelay;
|
|
2008
2004
|
hoverIntent?: boolean;
|
|
2009
2005
|
onShown?: ((drop: Drop) => void | Promise<void>) | null;
|
|
@@ -2017,7 +2013,6 @@ interface ResolvedDropProps extends Record<string, unknown> {
|
|
|
2017
2013
|
content: RenderableContent<Drop>;
|
|
2018
2014
|
className: DropClassNames;
|
|
2019
2015
|
id: string;
|
|
2020
|
-
containerClassName: string | null;
|
|
2021
2016
|
delay: number | DropDelay;
|
|
2022
2017
|
hoverIntent: boolean;
|
|
2023
2018
|
onShown: NonNullable<DropProps['onShown']> | null;
|
|
@@ -2065,7 +2060,7 @@ declare function createDrop(container: DOMReference, input?: DropProps): Drop;
|
|
|
2065
2060
|
//#endregion
|
|
2066
2061
|
//#region src/components/tooltip.d.ts
|
|
2067
2062
|
interface TooltipClassNames {
|
|
2068
|
-
|
|
2063
|
+
container: string;
|
|
2069
2064
|
message: string;
|
|
2070
2065
|
}
|
|
2071
2066
|
type TooltipClassNameConfig = Partial<TooltipClassNames>;
|
|
@@ -2076,7 +2071,6 @@ interface TooltipProps extends Record<string, unknown> {
|
|
|
2076
2071
|
offset?: number;
|
|
2077
2072
|
message?: string;
|
|
2078
2073
|
className?: TooltipClassNameConfig;
|
|
2079
|
-
dropClassName?: DropClassNameConfig;
|
|
2080
2074
|
id?: string | null;
|
|
2081
2075
|
delay?: number | DropDelay;
|
|
2082
2076
|
hoverIntent?: boolean;
|
|
@@ -2090,7 +2084,6 @@ interface ResolvedTooltipProps extends Record<string, unknown> {
|
|
|
2090
2084
|
offset: number;
|
|
2091
2085
|
message: string;
|
|
2092
2086
|
className: TooltipClassNames;
|
|
2093
|
-
dropClassName: DropClassNameConfig;
|
|
2094
2087
|
id: string | null;
|
|
2095
2088
|
delay: number | DropDelay;
|
|
2096
2089
|
hoverIntent: boolean;
|