sakana-element 2.3.0 → 2.4.1
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/README.md +5 -5
- package/dist/es/{Alert-BwTsp4X3.js → Alert-DRIDwear.js} +2 -2
- package/dist/es/{Avatar-CJu6JYV3.js → Avatar-Dkvvhw_D.js} +1 -1
- package/dist/es/{Badge-BmxZXX8k.js → Badge-CLNacHVq.js} +2 -2
- package/dist/es/{Breadcrumb-BP8MSklj.js → Breadcrumb-CfJA9NZz.js} +2 -2
- package/dist/es/{Button-BJHtN7gh.js → Button-Dj1DIvXh.js} +3 -3
- package/dist/es/{Card-DJHkCmsz.js → Card-meh7F1e2.js} +1 -1
- package/dist/es/ChatBubble-Ccr3wzoK.js +9 -0
- package/dist/es/{Checkbox-DX8L3fyp.js → Checkbox-vOcwl1OX.js} +3 -3
- package/dist/es/{Collapse-Ir3V9CuO.js → Collapse-BG58s0uJ.js} +4 -4
- package/dist/es/{ConfigProvider-CsbSqwwi.js → ConfigProvider-Cr8Hpzf2.js} +2 -2
- package/dist/es/Diff-KQ44cDcY.js +64 -0
- package/dist/es/{Divider-C7PtODSK.js → Divider-CYYeUqYc.js} +1 -1
- package/dist/es/{Drawer-C2eVmvUp.js → Drawer-CDXFDfrf.js} +2 -2
- package/dist/es/{Dropdown-CVg_c2fB.js → Dropdown-CPZtzHPx.js} +9 -9
- package/dist/es/{FileInput-BE26BmXm.js → FileInput-Ram4-wy2.js} +3 -3
- package/dist/es/Filter-CLLkrn-W.js +40 -0
- package/dist/es/{Form-7lZt5ehf.js → Form-po3aIrSN.js} +62 -61
- package/dist/es/{Icon-BLDDdSU-.js → Icon-XJfGGAMY.js} +1 -1
- package/dist/es/{Indicator-B-en-MgG.js → Indicator-vsSp5r5K.js} +1 -1
- package/dist/es/{Input-C5HuVehE.js → Input-KrNqNZMe.js} +5 -5
- package/dist/es/Kbd-CtCGx7_s.js +13 -0
- package/dist/es/{Link-Av9RdcFv.js → Link-Bbwdgs74.js} +1 -1
- package/dist/es/{Loading-CBNDUWQd.js → Loading-DiyIiKxO.js} +3 -3
- package/dist/es/{Message-DgnyyuXn.js → Message-BoNCtMo7.js} +14 -14
- package/dist/es/{Notification-LYRXnVAf.js → Notification-CFY-yvRf.js} +13 -13
- package/dist/es/{Overlay-CpvMhnuU.js → Overlay-DoFA2lgP.js} +1 -1
- package/dist/es/Pixelate-dqwHc6nX.js +39 -0
- package/dist/es/{Popconfirm-DvxFdLrw.js → Popconfirm-DPOujyiA.js} +12 -12
- package/dist/es/{Progress-Bc5INMhJ.js → Progress-B0oYE8Z3.js} +1 -1
- package/dist/es/{Radio-263_rtRl.js → Radio-C-Ot7pLA.js} +3 -3
- package/dist/es/Resizable-G5KVHayx.js +151 -0
- package/dist/es/{Select-7ZxUCS8z.js → Select-DqxPeAKK.js} +14 -14
- package/dist/es/Skeleton-4SeKRKn9.js +15 -0
- package/dist/es/{Switch-DiCsMJT3.js → Switch-C_tBxZtT.js} +3 -3
- package/dist/es/{Table-BvA_xzDe.js → Table-Cr6HFL4_.js} +1 -1
- package/dist/es/{Tooltip-J3ji6weH.js → Tooltip-rak4BryQ.js} +3 -3
- package/dist/es/Validator-DKVfknvI.js +40 -0
- package/dist/es/{hooks-BqobYUzS.js → hooks-pTjI-j9o.js} +51 -53
- package/dist/es/index.js +119 -90
- package/dist/es/utils-DzOow9K9.js +155 -0
- package/dist/es/{vendor-DXmGx29U.js → vendor-DrBJKLFW.js} +254 -210
- package/dist/index.css +1 -1
- package/dist/{es/theme → theme}/Badge.css +151 -151
- package/dist/{es/theme → theme}/Button.css +92 -8
- package/dist/theme/ChatBubble.css +218 -0
- package/dist/{es/theme → theme}/Checkbox.css +138 -18
- package/dist/{es/theme → theme}/Collapse.css +96 -96
- package/dist/theme/Diff.css +110 -0
- package/dist/{es/theme → theme}/Divider.css +42 -3
- package/dist/{es/theme → theme}/Dropdown.css +2 -2
- package/dist/{es/theme → theme}/FileInput.css +32 -0
- package/dist/theme/Filter.css +598 -0
- package/dist/{es/theme → theme}/Input.css +414 -407
- package/dist/theme/Kbd.css +104 -0
- package/dist/{es/theme → theme}/Message.css +1 -1
- package/dist/{es/theme → theme}/Notification.css +44 -44
- package/dist/{es/theme → theme}/Radio.css +114 -48
- package/dist/theme/Resizable.css +95 -0
- package/dist/{es/theme → theme}/Select.css +198 -88
- package/dist/theme/Skeleton.css +192 -0
- package/dist/{es/theme → theme}/Switch.css +22 -3
- package/dist/theme/Validator.css +25 -0
- package/dist/types/components/ChatBubble/constants.d.ts +2 -0
- package/dist/types/components/ChatBubble/index.d.ts +27 -0
- package/dist/types/components/ChatBubble/types.d.ts +10 -0
- package/dist/types/components/Diff/constants.d.ts +4 -0
- package/dist/types/components/Diff/index.d.ts +67 -0
- package/dist/types/components/Diff/types.d.ts +29 -0
- package/dist/types/components/Dropdown/index.d.ts +3 -3
- package/dist/types/components/Filter/constants.d.ts +5 -0
- package/dist/types/components/Filter/index.d.ts +59 -0
- package/dist/types/components/Filter/types.d.ts +38 -0
- package/dist/types/components/Icon/index.d.ts +1 -0
- package/dist/types/components/Kbd/constants.d.ts +3 -0
- package/dist/types/components/Kbd/index.d.ts +24 -0
- package/dist/types/components/Kbd/types.d.ts +10 -0
- package/dist/types/components/Pixelate/index.d.ts +3 -3
- package/dist/types/components/Popconfirm/index.d.ts +3 -3
- package/dist/types/components/Resizable/constants.d.ts +3 -0
- package/dist/types/components/Resizable/index.d.ts +135 -0
- package/dist/types/components/Resizable/types.d.ts +52 -0
- package/dist/types/components/Select/index.d.ts +3 -3
- package/dist/types/components/Skeleton/index.d.ts +36 -0
- package/dist/types/components/Skeleton/types.d.ts +12 -0
- package/dist/types/components/Tooltip/index.d.ts +3 -3
- package/dist/types/components/Validator/index.d.ts +52 -0
- package/dist/types/components/Validator/types.d.ts +13 -0
- package/dist/types/components/index.d.ts +8 -1
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useFocusController.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/pixelate.d.ts +10 -0
- package/dist/types/utils/style.d.ts +1 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.css.gz +0 -0
- package/dist/umd/index.umd.cjs +3 -3
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +4 -4
- package/dist/es/Pixelate-BPypBgJU.js +0 -67
- package/dist/es/utils-BS5vsvlM.js +0 -101
- /package/dist/{es/theme → theme}/Alert.css +0 -0
- /package/dist/{es/theme → theme}/Avatar.css +0 -0
- /package/dist/{es/theme → theme}/Breadcrumb.css +0 -0
- /package/dist/{es/theme → theme}/Card.css +0 -0
- /package/dist/{es/theme → theme}/Drawer.css +0 -0
- /package/dist/{es/theme → theme}/Form.css +0 -0
- /package/dist/{es/theme → theme}/Icon.css +0 -0
- /package/dist/{es/theme → theme}/Indicator.css +0 -0
- /package/dist/{es/theme → theme}/Link.css +0 -0
- /package/dist/{es/theme → theme}/Loading.css +0 -0
- /package/dist/{es/theme → theme}/Overlay.css +0 -0
- /package/dist/{es/theme → theme}/Popconfirm.css +0 -0
- /package/dist/{es/theme → theme}/Progress.css +0 -0
- /package/dist/{es/theme → theme}/Table.css +0 -0
- /package/dist/{es/theme → theme}/Tooltip.css +0 -0
- /package/dist/{es/theme → theme}/fonts/zpix.woff2 +0 -0
- /package/dist/{es/theme → theme}/index.css +0 -0
|
@@ -67,8 +67,8 @@ export declare const PxPopconfirm: {
|
|
|
67
67
|
}, string, {
|
|
68
68
|
effect: import('packages/core').TooltipEffect;
|
|
69
69
|
transition: string;
|
|
70
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
71
70
|
placement: import('@popperjs/core').Placement;
|
|
71
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
72
72
|
showTimeout: number;
|
|
73
73
|
hideTimeout: number;
|
|
74
74
|
enterable: boolean;
|
|
@@ -95,15 +95,15 @@ export declare const PxPopconfirm: {
|
|
|
95
95
|
} & Readonly<{
|
|
96
96
|
effect: import('packages/core').TooltipEffect;
|
|
97
97
|
transition: string;
|
|
98
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
99
98
|
placement: import('@popperjs/core').Placement;
|
|
99
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
100
100
|
showTimeout: number;
|
|
101
101
|
hideTimeout: number;
|
|
102
102
|
enterable: boolean;
|
|
103
103
|
}> & Omit<Readonly<import('packages/core').TooltipProps> & Readonly<{
|
|
104
104
|
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
105
105
|
"onClick-outside"?: (() => any) | undefined;
|
|
106
|
-
}>, "toggle" | "show" | "hide" | ("effect" | "transition" | "
|
|
106
|
+
}>, "toggle" | "show" | "hide" | ("effect" | "transition" | "placement" | "trigger" | "showTimeout" | "hideTimeout" | "enterable")> & import('vue').ShallowUnwrapRef<{
|
|
107
107
|
show(): void;
|
|
108
108
|
hide(): void;
|
|
109
109
|
toggle(): void;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export declare const PxResizableGroup: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').ResizableGroupProps> & Readonly<{
|
|
3
|
+
onLayout?: ((sizes: number[]) => any) | undefined;
|
|
4
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
layout: (sizes: number[]) => any;
|
|
6
|
+
}, import('vue').PublicProps, {
|
|
7
|
+
keyboardResizeBy: number;
|
|
8
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
9
|
+
groupRef: HTMLDivElement;
|
|
10
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
11
|
+
P: {};
|
|
12
|
+
B: {};
|
|
13
|
+
D: {};
|
|
14
|
+
C: {};
|
|
15
|
+
M: {};
|
|
16
|
+
Defaults: {};
|
|
17
|
+
}, Readonly<import('packages/core').ResizableGroupProps> & Readonly<{
|
|
18
|
+
onLayout?: ((sizes: number[]) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, {
|
|
20
|
+
keyboardResizeBy: number;
|
|
21
|
+
}>;
|
|
22
|
+
__isFragment?: never;
|
|
23
|
+
__isTeleport?: never;
|
|
24
|
+
__isSuspense?: never;
|
|
25
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').ResizableGroupProps> & Readonly<{
|
|
26
|
+
onLayout?: ((sizes: number[]) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
28
|
+
layout: (sizes: number[]) => any;
|
|
29
|
+
}, string, {
|
|
30
|
+
keyboardResizeBy: number;
|
|
31
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
32
|
+
$slots: {
|
|
33
|
+
default?(_: {}): any;
|
|
34
|
+
};
|
|
35
|
+
}) & import('vue').Plugin;
|
|
36
|
+
export declare const PxResizablePanel: {
|
|
37
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').ResizablePanelProps> & Readonly<{
|
|
38
|
+
onResize?: ((size: number) => any) | undefined;
|
|
39
|
+
onCollapse?: (() => any) | undefined;
|
|
40
|
+
onExpand?: (() => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
collapse(): void;
|
|
43
|
+
expand(): void;
|
|
44
|
+
getSize(): number;
|
|
45
|
+
resize(size: number): void;
|
|
46
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
47
|
+
resize: (size: number) => any;
|
|
48
|
+
collapse: () => any;
|
|
49
|
+
expand: () => any;
|
|
50
|
+
}, import('vue').PublicProps, {
|
|
51
|
+
minSize: number;
|
|
52
|
+
maxSize: number;
|
|
53
|
+
collapsible: boolean;
|
|
54
|
+
collapsedSize: number;
|
|
55
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
56
|
+
P: {};
|
|
57
|
+
B: {};
|
|
58
|
+
D: {};
|
|
59
|
+
C: {};
|
|
60
|
+
M: {};
|
|
61
|
+
Defaults: {};
|
|
62
|
+
}, Readonly<import('packages/core').ResizablePanelProps> & Readonly<{
|
|
63
|
+
onResize?: ((size: number) => any) | undefined;
|
|
64
|
+
onCollapse?: (() => any) | undefined;
|
|
65
|
+
onExpand?: (() => any) | undefined;
|
|
66
|
+
}>, {
|
|
67
|
+
collapse(): void;
|
|
68
|
+
expand(): void;
|
|
69
|
+
getSize(): number;
|
|
70
|
+
resize(size: number): void;
|
|
71
|
+
}, {}, {}, {}, {
|
|
72
|
+
minSize: number;
|
|
73
|
+
maxSize: number;
|
|
74
|
+
collapsible: boolean;
|
|
75
|
+
collapsedSize: number;
|
|
76
|
+
}>;
|
|
77
|
+
__isFragment?: never;
|
|
78
|
+
__isTeleport?: never;
|
|
79
|
+
__isSuspense?: never;
|
|
80
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').ResizablePanelProps> & Readonly<{
|
|
81
|
+
onResize?: ((size: number) => any) | undefined;
|
|
82
|
+
onCollapse?: (() => any) | undefined;
|
|
83
|
+
onExpand?: (() => any) | undefined;
|
|
84
|
+
}>, {
|
|
85
|
+
collapse(): void;
|
|
86
|
+
expand(): void;
|
|
87
|
+
getSize(): number;
|
|
88
|
+
resize(size: number): void;
|
|
89
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
90
|
+
resize: (size: number) => any;
|
|
91
|
+
collapse: () => any;
|
|
92
|
+
expand: () => any;
|
|
93
|
+
}, string, {
|
|
94
|
+
minSize: number;
|
|
95
|
+
maxSize: number;
|
|
96
|
+
collapsible: boolean;
|
|
97
|
+
collapsedSize: number;
|
|
98
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
99
|
+
$slots: {
|
|
100
|
+
default?(_: {}): any;
|
|
101
|
+
};
|
|
102
|
+
}) & import('vue').Plugin;
|
|
103
|
+
export declare const PxResizableHandle: {
|
|
104
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').ResizableHandleProps> & Readonly<{
|
|
105
|
+
onDragging?: ((isDragging: boolean) => any) | undefined;
|
|
106
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
107
|
+
dragging: (isDragging: boolean) => any;
|
|
108
|
+
}, import('vue').PublicProps, {
|
|
109
|
+
disabled: boolean;
|
|
110
|
+
hitAreaMargins: number;
|
|
111
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
112
|
+
P: {};
|
|
113
|
+
B: {};
|
|
114
|
+
D: {};
|
|
115
|
+
C: {};
|
|
116
|
+
M: {};
|
|
117
|
+
Defaults: {};
|
|
118
|
+
}, Readonly<import('packages/core').ResizableHandleProps> & Readonly<{
|
|
119
|
+
onDragging?: ((isDragging: boolean) => any) | undefined;
|
|
120
|
+
}>, {}, {}, {}, {}, {
|
|
121
|
+
disabled: boolean;
|
|
122
|
+
hitAreaMargins: number;
|
|
123
|
+
}>;
|
|
124
|
+
__isFragment?: never;
|
|
125
|
+
__isTeleport?: never;
|
|
126
|
+
__isSuspense?: never;
|
|
127
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').ResizableHandleProps> & Readonly<{
|
|
128
|
+
onDragging?: ((isDragging: boolean) => any) | undefined;
|
|
129
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
130
|
+
dragging: (isDragging: boolean) => any;
|
|
131
|
+
}, string, {
|
|
132
|
+
disabled: boolean;
|
|
133
|
+
hitAreaMargins: number;
|
|
134
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
135
|
+
export * from './types';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface ResizableGroupProps {
|
|
3
|
+
direction: 'horizontal' | 'vertical';
|
|
4
|
+
autoSaveId?: string;
|
|
5
|
+
keyboardResizeBy?: number;
|
|
6
|
+
}
|
|
7
|
+
export type ResizableGroupEmits = (e: 'layout', sizes: number[]) => void;
|
|
8
|
+
export interface ResizablePanelProps {
|
|
9
|
+
defaultSize?: number;
|
|
10
|
+
minSize?: number;
|
|
11
|
+
maxSize?: number;
|
|
12
|
+
collapsible?: boolean;
|
|
13
|
+
collapsedSize?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ResizablePanelEmits {
|
|
16
|
+
(e: 'resize', size: number): void;
|
|
17
|
+
(e: 'collapse'): void;
|
|
18
|
+
(e: 'expand'): void;
|
|
19
|
+
}
|
|
20
|
+
export interface ResizablePanelInstance {
|
|
21
|
+
collapse(): void;
|
|
22
|
+
expand(): void;
|
|
23
|
+
getSize(): number;
|
|
24
|
+
resize(size: number): void;
|
|
25
|
+
}
|
|
26
|
+
export interface ResizableHandleProps {
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
hitAreaMargins?: number;
|
|
29
|
+
}
|
|
30
|
+
export type ResizableHandleEmits = (e: 'dragging', isDragging: boolean) => void;
|
|
31
|
+
export interface PanelData {
|
|
32
|
+
id: number;
|
|
33
|
+
minSize: number;
|
|
34
|
+
maxSize: number;
|
|
35
|
+
collapsible: boolean;
|
|
36
|
+
collapsedSize: number;
|
|
37
|
+
defaultSize?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface ResizableGroupContext {
|
|
40
|
+
direction: Ref<'horizontal' | 'vertical'>;
|
|
41
|
+
keyboardResizeBy: Ref<number>;
|
|
42
|
+
registerPanel(data: PanelData): void;
|
|
43
|
+
unregisterPanel(id: number): void;
|
|
44
|
+
getPanelSize(id: number): number;
|
|
45
|
+
setPanelSize(id: number, size: number, force?: boolean): void;
|
|
46
|
+
startResize(handleId: number, onDragEnd?: () => void): void;
|
|
47
|
+
keyboardResize(handleId: number, delta: number): void;
|
|
48
|
+
getNextHandleId(): number;
|
|
49
|
+
registerHandle(id: number): void;
|
|
50
|
+
unregisterHandle(id: number): void;
|
|
51
|
+
panelSizes: Ref<Map<number, number>>;
|
|
52
|
+
}
|
|
@@ -74,8 +74,8 @@ export declare const PxSelect: {
|
|
|
74
74
|
}, string, {
|
|
75
75
|
effect: import('packages/core').TooltipEffect;
|
|
76
76
|
transition: string;
|
|
77
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
78
77
|
placement: import('@popperjs/core').Placement;
|
|
78
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
79
79
|
showTimeout: number;
|
|
80
80
|
hideTimeout: number;
|
|
81
81
|
enterable: boolean;
|
|
@@ -102,15 +102,15 @@ export declare const PxSelect: {
|
|
|
102
102
|
} & Readonly<{
|
|
103
103
|
effect: import('packages/core').TooltipEffect;
|
|
104
104
|
transition: string;
|
|
105
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
106
105
|
placement: import('@popperjs/core').Placement;
|
|
106
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
107
107
|
showTimeout: number;
|
|
108
108
|
hideTimeout: number;
|
|
109
109
|
enterable: boolean;
|
|
110
110
|
}> & Omit<Readonly<import('packages/core').TooltipProps> & Readonly<{
|
|
111
111
|
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
112
112
|
"onClick-outside"?: (() => any) | undefined;
|
|
113
|
-
}>, "toggle" | "show" | "hide" | ("effect" | "transition" | "
|
|
113
|
+
}>, "toggle" | "show" | "hide" | ("effect" | "transition" | "placement" | "trigger" | "showTimeout" | "hideTimeout" | "enterable")> & import('vue').ShallowUnwrapRef<{
|
|
114
114
|
show(): void;
|
|
115
115
|
hide(): void;
|
|
116
116
|
toggle(): void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const PxSkeleton: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
+
loading: boolean;
|
|
4
|
+
animation: import('packages/core').SkeletonAnimation;
|
|
5
|
+
variant: import('packages/core').SkeletonVariant;
|
|
6
|
+
animated: boolean;
|
|
7
|
+
rows: number;
|
|
8
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
9
|
+
P: {};
|
|
10
|
+
B: {};
|
|
11
|
+
D: {};
|
|
12
|
+
C: {};
|
|
13
|
+
M: {};
|
|
14
|
+
Defaults: {};
|
|
15
|
+
}, Readonly<import('packages/core').SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
16
|
+
loading: boolean;
|
|
17
|
+
animation: import('packages/core').SkeletonAnimation;
|
|
18
|
+
variant: import('packages/core').SkeletonVariant;
|
|
19
|
+
animated: boolean;
|
|
20
|
+
rows: number;
|
|
21
|
+
}>;
|
|
22
|
+
__isFragment?: never;
|
|
23
|
+
__isTeleport?: never;
|
|
24
|
+
__isSuspense?: never;
|
|
25
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
26
|
+
loading: boolean;
|
|
27
|
+
animation: import('packages/core').SkeletonAnimation;
|
|
28
|
+
variant: import('packages/core').SkeletonVariant;
|
|
29
|
+
animated: boolean;
|
|
30
|
+
rows: number;
|
|
31
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
32
|
+
$slots: {
|
|
33
|
+
default?(_: {}): any;
|
|
34
|
+
};
|
|
35
|
+
}) & import('vue').Plugin;
|
|
36
|
+
export * from './types';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type SkeletonVariant = 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
2
|
+
export type SkeletonAnimation = 'shimmer' | 'pulse' | 'dither';
|
|
3
|
+
export interface SkeletonProps {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
animated?: boolean;
|
|
6
|
+
animation?: SkeletonAnimation;
|
|
7
|
+
variant?: SkeletonVariant;
|
|
8
|
+
width?: string | number;
|
|
9
|
+
height?: string | number;
|
|
10
|
+
rows?: number;
|
|
11
|
+
size?: 'large' | 'default' | 'small';
|
|
12
|
+
}
|
|
@@ -12,8 +12,8 @@ export declare const PxTooltip: {
|
|
|
12
12
|
}, import('vue').PublicProps, {
|
|
13
13
|
effect: import('packages/core').TooltipEffect;
|
|
14
14
|
transition: string;
|
|
15
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
16
15
|
placement: import('@popperjs/core').Placement;
|
|
16
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
17
17
|
showTimeout: number;
|
|
18
18
|
hideTimeout: number;
|
|
19
19
|
enterable: boolean;
|
|
@@ -38,8 +38,8 @@ export declare const PxTooltip: {
|
|
|
38
38
|
}, {}, {}, {}, {
|
|
39
39
|
effect: import('packages/core').TooltipEffect;
|
|
40
40
|
transition: string;
|
|
41
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
42
41
|
placement: import('@popperjs/core').Placement;
|
|
42
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
43
43
|
showTimeout: number;
|
|
44
44
|
hideTimeout: number;
|
|
45
45
|
enterable: boolean;
|
|
@@ -60,8 +60,8 @@ export declare const PxTooltip: {
|
|
|
60
60
|
}, string, {
|
|
61
61
|
effect: import('packages/core').TooltipEffect;
|
|
62
62
|
transition: string;
|
|
63
|
-
trigger: "hover" | "click" | "contextmenu";
|
|
64
63
|
placement: import('@popperjs/core').Placement;
|
|
64
|
+
trigger: "hover" | "click" | "contextmenu";
|
|
65
65
|
showTimeout: number;
|
|
66
66
|
hideTimeout: number;
|
|
67
67
|
enterable: boolean;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const PxValidator: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('packages/core').ValidatorProps> & Readonly<{
|
|
3
|
+
onValidate?: ((isValid: boolean, message: string) => any) | undefined;
|
|
4
|
+
}>, {
|
|
5
|
+
validate(trigger?: string): Promise<boolean>;
|
|
6
|
+
reset(): void;
|
|
7
|
+
validateStatus: import('vue').Ref<import('packages/core').ValidateStatus>;
|
|
8
|
+
validateMessage: import('vue').Ref<string>;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
validate: (isValid: boolean, message: string) => any;
|
|
11
|
+
}, import('vue').PublicProps, {
|
|
12
|
+
rules: import('packages/core').FormItemRule[];
|
|
13
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
14
|
+
P: {};
|
|
15
|
+
B: {};
|
|
16
|
+
D: {};
|
|
17
|
+
C: {};
|
|
18
|
+
M: {};
|
|
19
|
+
Defaults: {};
|
|
20
|
+
}, Readonly<import('packages/core').ValidatorProps> & Readonly<{
|
|
21
|
+
onValidate?: ((isValid: boolean, message: string) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
validate(trigger?: string): Promise<boolean>;
|
|
24
|
+
reset(): void;
|
|
25
|
+
validateStatus: import('vue').Ref<import('packages/core').ValidateStatus>;
|
|
26
|
+
validateMessage: import('vue').Ref<string>;
|
|
27
|
+
}, {}, {}, {}, {
|
|
28
|
+
rules: import('packages/core').FormItemRule[];
|
|
29
|
+
}>;
|
|
30
|
+
__isFragment?: never;
|
|
31
|
+
__isTeleport?: never;
|
|
32
|
+
__isSuspense?: never;
|
|
33
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('packages/core').ValidatorProps> & Readonly<{
|
|
34
|
+
onValidate?: ((isValid: boolean, message: string) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
validate(trigger?: string): Promise<boolean>;
|
|
37
|
+
reset(): void;
|
|
38
|
+
validateStatus: import('vue').Ref<import('packages/core').ValidateStatus>;
|
|
39
|
+
validateMessage: import('vue').Ref<string>;
|
|
40
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
41
|
+
validate: (isValid: boolean, message: string) => any;
|
|
42
|
+
}, string, {
|
|
43
|
+
rules: import('packages/core').FormItemRule[];
|
|
44
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
45
|
+
$slots: {
|
|
46
|
+
default?(_: {}): any;
|
|
47
|
+
hint?(_: {
|
|
48
|
+
message: string;
|
|
49
|
+
}): any;
|
|
50
|
+
};
|
|
51
|
+
}) & import('vue').Plugin;
|
|
52
|
+
export * from './types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { FormItemRule, ValidateStatus } from '../Form/types';
|
|
3
|
+
export interface ValidatorProps {
|
|
4
|
+
modelValue?: unknown;
|
|
5
|
+
rules?: FormItemRule[];
|
|
6
|
+
}
|
|
7
|
+
export type ValidatorEmits = (e: 'validate', isValid: boolean, message: string) => void;
|
|
8
|
+
export interface ValidatorInstance {
|
|
9
|
+
validate(trigger?: string): Promise<boolean>;
|
|
10
|
+
reset(): void;
|
|
11
|
+
validateStatus: Ref<ValidateStatus>;
|
|
12
|
+
validateMessage: Ref<string>;
|
|
13
|
+
}
|
|
@@ -4,17 +4,21 @@ export * from './Badge';
|
|
|
4
4
|
export * from './Breadcrumb';
|
|
5
5
|
export * from './Button';
|
|
6
6
|
export * from './Card';
|
|
7
|
+
export * from './ChatBubble';
|
|
7
8
|
export * from './Checkbox';
|
|
8
9
|
export * from './Collapse';
|
|
9
10
|
export * from './ConfigProvider';
|
|
10
|
-
export * from './
|
|
11
|
+
export * from './Diff';
|
|
11
12
|
export * from './Divider';
|
|
13
|
+
export * from './Drawer';
|
|
12
14
|
export * from './Dropdown';
|
|
13
15
|
export * from './FileInput';
|
|
16
|
+
export * from './Filter';
|
|
14
17
|
export * from './Form';
|
|
15
18
|
export * from './Icon';
|
|
16
19
|
export * from './Indicator';
|
|
17
20
|
export * from './Input';
|
|
21
|
+
export * from './Kbd';
|
|
18
22
|
export * from './Link';
|
|
19
23
|
export * from './Loading';
|
|
20
24
|
export * from './Message';
|
|
@@ -24,7 +28,10 @@ export * from './Pixelate';
|
|
|
24
28
|
export * from './Popconfirm';
|
|
25
29
|
export * from './Progress';
|
|
26
30
|
export * from './Radio';
|
|
31
|
+
export * from './Resizable';
|
|
27
32
|
export * from './Select';
|
|
33
|
+
export * from './Skeleton';
|
|
28
34
|
export * from './Switch';
|
|
29
35
|
export * from './Table';
|
|
30
36
|
export * from './Tooltip';
|
|
37
|
+
export * from './Validator';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const installer: import('vue').Plugin;
|
|
2
2
|
export * from '../components';
|
|
3
|
-
export { type Theme, useSystemTheme, useTheme } from '../hooks';
|
|
3
|
+
export { type Theme, type UseDraggableOptions, type UseFocusControllerOptions, useSystemTheme, useTheme, useClickOutside, useDraggable, useFocusTrap, useLocale, } from '../hooks';
|
|
4
4
|
export * from '../locale';
|
|
5
5
|
export default installer;
|
|
@@ -8,6 +8,8 @@ import { default as useId } from './useId';
|
|
|
8
8
|
import { default as useLocale } from './useLocale';
|
|
9
9
|
import { default as useOffset } from './useOffset';
|
|
10
10
|
import { default as useZIndex } from './useZIndex';
|
|
11
|
+
export { type UseDraggableOptions } from './useDraggable';
|
|
12
|
+
export { type UseFocusControllerOptions } from './useFocusController';
|
|
11
13
|
export { useSystemTheme } from './useSystemTheme';
|
|
12
14
|
export { type Theme, useTheme } from './useTheme';
|
|
13
15
|
export { useClickOutside, useDraggable, useEventListener, useDisabledStyle, useFocusController, useFocusTrap, useLocale, useOffset, useZIndex, useId, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared pixelation utilities used by PxPixelate and PxDiff.
|
|
3
|
+
*/
|
|
4
|
+
export interface PixelateCanvasOptions {
|
|
5
|
+
pixelSize: number;
|
|
6
|
+
grayscale?: boolean;
|
|
7
|
+
palette?: string[] | number[][];
|
|
8
|
+
background?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function pixelateCanvas(canvas: HTMLCanvasElement, img: HTMLImageElement, options: PixelateCanvasOptions): void;
|