sakana-element 2.1.3 → 2.1.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/README.md +81 -80
- package/dist/es/{Alert-A4stKumX.js → Alert-C76ZWSVk.js} +5 -5
- package/dist/es/Button-fW_ZOLmT.js +24 -0
- package/dist/es/Card-BCBnlVi_.js +12 -0
- package/dist/es/{Dropdown-CA-nv-2j.js → Dropdown-49nf6F8P.js} +10 -10
- package/dist/es/{Form-VB1SL_iW.js → Form-CGiTDSGI.js} +1 -1
- package/dist/es/Input-DBPpvf0Y.js +42 -0
- package/dist/es/{Loading-4MsOvzx9.js → Loading-DlygqGOv.js} +3 -3
- package/dist/es/{Message-CxT9rRUp.js → Message-ganFfLeU.js} +11 -11
- package/dist/es/{Notification-D6em5HmO.js → Notification-D4RYHV9o.js} +3 -3
- package/dist/es/{Popconfirm-D0ABSr-F.js → Popconfirm-Cop44KwQ.js} +2 -2
- package/dist/es/Select-TIoGsqKv.js +133 -0
- package/dist/es/Switch-CHjcLtHs.js +34 -0
- package/dist/es/{Tooltip-KpwbZdMX.js → Tooltip-HWx_i2FA.js} +8 -8
- package/dist/es/{hooks-DNMt3QPi.js → hooks-CYdEHUVd.js} +6 -5
- package/dist/es/index.js +53 -51
- package/dist/index.css +1 -1
- package/dist/theme/Alert.css +51 -51
- package/dist/theme/Button.css +365 -105
- package/dist/theme/Card.css +112 -0
- package/dist/theme/Collapse.css +2 -2
- package/dist/theme/Dropdown.css +4 -4
- package/dist/theme/Input.css +213 -4
- package/dist/theme/Select.css +182 -38
- package/dist/theme/Switch.css +56 -0
- package/dist/theme/Tooltip.css +10 -10
- package/dist/theme/fonts/zpix.woff2 +0 -0
- package/dist/theme/index.css +21 -3
- package/dist/types/components/Button/types.d.ts +3 -0
- package/dist/types/components/Card/index.d.ts +26 -0
- package/dist/types/components/Card/types.d.ts +6 -0
- package/dist/types/components/Input/constants.d.ts +3 -0
- package/dist/types/components/Input/types.d.ts +2 -0
- package/dist/types/components/Select/constants.d.ts +3 -0
- package/dist/types/components/Select/index.d.ts +7 -5
- package/dist/types/components/Select/types.d.ts +4 -1
- package/dist/types/components/Select/useKeyMap.d.ts +1 -1
- package/dist/types/components/Switch/types.d.ts +6 -0
- package/dist/types/components/Tooltip/useEventsToTriggerNode.d.ts +4 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/hooks/useSystemTheme.d.ts +1 -1
- 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 +1 -1
- package/dist/es/Button-CFGE4_Ng.js +0 -22
- package/dist/es/Input-C-bIqqo_.js +0 -38
- package/dist/es/Select-BKYDP224.js +0 -126
- package/dist/es/Switch-C1IdbnUa.js +0 -22
- package/dist/types/components/Tooltip/useEventsToTiggerNode.d.ts +0 -4
|
@@ -14,6 +14,9 @@ export interface SelectProps {
|
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
clearable?: boolean;
|
|
17
|
+
ghost?: boolean;
|
|
18
|
+
color?: string;
|
|
19
|
+
size?: 'large' | 'small';
|
|
17
20
|
renderLabel?: RenderLabelFunc;
|
|
18
21
|
filterable?: boolean;
|
|
19
22
|
filterMethod?: CustomFilterFunc;
|
|
@@ -30,7 +33,7 @@ export interface SelectStates {
|
|
|
30
33
|
export interface SelectEmits {
|
|
31
34
|
(e: 'update:modelValue', value: string): void;
|
|
32
35
|
(e: 'change', value: string): void;
|
|
33
|
-
(e: 'visible-change',
|
|
36
|
+
(e: 'visible-change', value: boolean): void;
|
|
34
37
|
(e: 'clear'): void;
|
|
35
38
|
(e: 'focus'): void;
|
|
36
39
|
(e: 'blur'): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
2
|
export type SwitchValueType = boolean | string | number;
|
|
3
|
+
export type SwitchType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
4
|
export interface SwitchProps {
|
|
4
5
|
modelValue: SwitchValueType;
|
|
5
6
|
disabled?: boolean;
|
|
@@ -10,6 +11,11 @@ export interface SwitchProps {
|
|
|
10
11
|
name?: string;
|
|
11
12
|
id?: string;
|
|
12
13
|
size?: 'small' | 'large';
|
|
14
|
+
type?: SwitchType;
|
|
15
|
+
activeColor?: string;
|
|
16
|
+
inactiveColor?: string;
|
|
17
|
+
activeIcon?: string;
|
|
18
|
+
inactiveIcon?: string;
|
|
13
19
|
}
|
|
14
20
|
export interface SwitchEmits {
|
|
15
21
|
(e: 'update:modelValue', value: SwitchValueType): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { TooltipProps } from './types';
|
|
3
|
+
export declare function useEventsToTriggerNode(props: TooltipProps, triggerNode: ComputedRef<HTMLElement | undefined>, events: Ref<Record<string, EventListener>>, closeMethod: () => void): void;
|
|
4
|
+
export default useEventsToTriggerNode;
|
|
@@ -21,5 +21,5 @@ export declare function useSystemTheme(): {
|
|
|
21
21
|
/** Whether system prefers dark mode */
|
|
22
22
|
prefersDark: Ref<boolean, boolean>;
|
|
23
23
|
/** System color scheme preference */
|
|
24
|
-
prefers:
|
|
24
|
+
prefers: import('vue').ComputedRef<"dark" | "light">;
|
|
25
25
|
};
|