@snolui/vue 1.0.3 → 1.0.5
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/components/button/Button.vue.d.ts +3 -2
- package/dist/components/button/type.d.ts +1 -0
- package/dist/components/{checkbox/Checkbox.vue.d.ts → checkbox-group/CheckboxGroup.vue.d.ts} +2 -2
- package/dist/components/{checkbox → checkbox-group}/type.d.ts +4 -5
- package/dist/components/index.d.ts +1 -1
- package/dist/components/loading/Loading.vue.d.ts +1 -1
- package/dist/components/loading/type.d.ts +1 -1
- package/dist/components/progress/Progress.vue.d.ts +9 -1
- package/dist/components/progress/type.d.ts +15 -1
- package/dist/components/radio-group/RadioGroup.vue.d.ts +1 -0
- package/dist/components/radio-group/type.d.ts +1 -0
- package/dist/config/local.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/plugin.d.ts +6 -0
- package/dist/snol-ui.css +1 -1
- package/dist/snol-ui.js +10160 -5035
- package/dist/snol-ui.umd.cjs +69 -69
- package/package.json +3 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SnolButtonProps } from './type.ts';
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_6: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof
|
|
4
|
+
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import('vue').DefineComponent<SnolButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SnolButtonProps> & Readonly<{}>, {
|
|
7
7
|
radius: "none" | "sm" | "md" | "lg" | "full";
|
|
@@ -10,6 +10,7 @@ declare const __VLS_base: import('vue').DefineComponent<SnolButtonProps, {}, {},
|
|
|
10
10
|
class: string;
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
color: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "error";
|
|
13
|
+
loading: boolean;
|
|
13
14
|
iconOnly: boolean;
|
|
14
15
|
iconPosition: "left" | "right";
|
|
15
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
package/dist/components/{checkbox/Checkbox.vue.d.ts → checkbox-group/CheckboxGroup.vue.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const __VLS_export: import('vue').DefineComponent<
|
|
1
|
+
import { SnolCheckboxGroupProps } from './type.ts';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<SnolCheckboxGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SnolCheckboxGroupProps> & Readonly<{}>, {
|
|
3
3
|
radius: "none" | "sm" | "md" | "lg" | "full";
|
|
4
4
|
size: "sm" | "md" | "lg";
|
|
5
5
|
color: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "error";
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
export type SnolCheckboxItems = {
|
|
1
|
+
export type SnolCheckboxGroupItems = {
|
|
3
2
|
label: string;
|
|
4
3
|
value: any;
|
|
5
4
|
name?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface
|
|
5
|
+
};
|
|
6
|
+
export interface SnolCheckboxGroupProps {
|
|
8
7
|
label?: string;
|
|
9
8
|
required?: boolean;
|
|
10
9
|
invalid?: boolean;
|
|
11
10
|
description?: string;
|
|
12
11
|
errorMessage?: string;
|
|
13
|
-
items?:
|
|
12
|
+
items?: SnolCheckboxGroupItems[];
|
|
14
13
|
isVertical?: boolean;
|
|
15
14
|
radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
16
15
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -18,5 +18,5 @@ export { default as Avatar } from './avatar/Avatar.vue';
|
|
|
18
18
|
export { default as Loading } from './loading/Loading.vue';
|
|
19
19
|
export { default as Progress } from './progress/Progress.vue';
|
|
20
20
|
export { default as RadioGroup } from './radio-group/RadioGroup.vue';
|
|
21
|
-
export { default as
|
|
21
|
+
export { default as CheckboxGroup } from './checkbox-group/CheckboxGroup.vue';
|
|
22
22
|
export { default as User } from './user/User.vue';
|
|
@@ -5,7 +5,7 @@ type __VLS_Slots = {} & {
|
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import('vue').DefineComponent<LoadingProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
|
|
7
7
|
size: "sm" | "md" | "lg";
|
|
8
|
-
variant: "spinner" | "wave" | "dots" | "overlay";
|
|
8
|
+
variant: "spinner" | "wave" | "dots" | "overlay" | "circle";
|
|
9
9
|
color: "primary" | "secondary" | "success" | "warning" | "danger" | "black" | "white";
|
|
10
10
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface LoadingProps {
|
|
2
2
|
size?: "sm" | "md" | "lg";
|
|
3
3
|
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "black" | "white";
|
|
4
|
-
variant?: "spinner" | "wave" | "dots" | "overlay";
|
|
4
|
+
variant?: "spinner" | "wave" | "dots" | "overlay" | 'circle';
|
|
5
5
|
label?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { ProgressProps } from './type';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<ProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
|
|
3
|
+
radius: "none" | "sm" | "md" | "lg" | "full";
|
|
4
|
+
size: "sm" | "md" | "lg";
|
|
5
|
+
value: number;
|
|
6
|
+
color: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "error";
|
|
7
|
+
loop: boolean;
|
|
8
|
+
isIndeterminate: boolean;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
2
10
|
declare const _default: typeof __VLS_export;
|
|
3
11
|
export default _default;
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export interface ProgressProps {
|
|
2
|
+
value?: number;
|
|
3
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4
|
+
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'error';
|
|
5
|
+
class?: string;
|
|
6
|
+
classNames?: {
|
|
7
|
+
root?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
progress?: string;
|
|
10
|
+
};
|
|
11
|
+
loop?: boolean;
|
|
12
|
+
label?: string;
|
|
13
|
+
radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
14
|
+
isIndeterminate?: boolean;
|
|
15
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SnolRadioProps } from './type';
|
|
2
2
|
declare const __VLS_export: import('vue').DefineComponent<SnolRadioProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SnolRadioProps> & Readonly<{}>, {
|
|
3
|
+
size: "sm" | "md" | "lg";
|
|
3
4
|
color: "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "error";
|
|
4
5
|
groupName: string;
|
|
5
6
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
package/dist/config/local.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface SnolTranslates {
|
|
2
2
|
[locale: string]: {
|
|
3
3
|
[key: string]: string;
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
6
|
export interface SnolLocaleOptions {
|
|
7
7
|
locale?: string;
|
|
8
|
-
translate?:
|
|
8
|
+
translate?: SnolTranslates;
|
|
9
9
|
}
|
|
10
10
|
export declare function setupSnolLocale(options?: SnolLocaleOptions): void;
|
|
11
11
|
export declare function useSnolLocale(): {
|
|
12
12
|
t: (key: string) => string;
|
|
13
13
|
locale: {
|
|
14
14
|
locale: string;
|
|
15
|
-
translate:
|
|
15
|
+
translate: SnolTranslates;
|
|
16
16
|
};
|
|
17
17
|
setLocale: (locale: string) => void;
|
|
18
18
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -7,10 +7,10 @@ import { ApiAxios } from './lib/ApiAxios.ts';
|
|
|
7
7
|
import { useSnolLocale } from './config/local.ts';
|
|
8
8
|
import { default as SnolUI } from './plugin';
|
|
9
9
|
import { useToast, Toast as SnolToast } from 'primevue';
|
|
10
|
-
import { Button as SnolButton, Icon as SnolIcon, Chip as SnolChip, Card as SnolCard, Tag as SnolTag, InputNumber as SnolInputNumber, InputNumberGroup as SnolInputNumberGroup, InputText as SnolInputText, InputTextGroup as SnolInputTextGroup, Textarea as SnolTextarea, Otp as SnolOtp, Select as SnolSelect, MultiSelect as SnolMultiSelect, Typography as SnolTypography, DatePicker as SnolDatePicker, Popover as SnolPopover, Avatar as SnolAvatar, Loading as SnolLoading, Progress as SnolProgress, RadioGroup as SnolRadioGroup,
|
|
10
|
+
import { Button as SnolButton, Icon as SnolIcon, Chip as SnolChip, Card as SnolCard, Tag as SnolTag, InputNumber as SnolInputNumber, InputNumberGroup as SnolInputNumberGroup, InputText as SnolInputText, InputTextGroup as SnolInputTextGroup, Textarea as SnolTextarea, Otp as SnolOtp, Select as SnolSelect, MultiSelect as SnolMultiSelect, Typography as SnolTypography, DatePicker as SnolDatePicker, Popover as SnolPopover, Avatar as SnolAvatar, Loading as SnolLoading, Progress as SnolProgress, RadioGroup as SnolRadioGroup, CheckboxGroup as SnolCheckboxGroup, User as SnolUser } from './components';
|
|
11
11
|
export * from './composables';
|
|
12
12
|
export * from './plugin';
|
|
13
|
-
export { SnolButton, SnolIcon, SnolChip, SnolCard, SnolTag, SnolInputNumber, SnolInputNumberGroup, SnolInputText, SnolInputTextGroup, SnolTextarea, SnolOtp, SnolSelect, SnolMultiSelect, SnolTypography, SnolDatePicker, SnolPopover, SnolAvatar, SnolLoading, SnolProgress, SnolRadioGroup,
|
|
13
|
+
export { SnolButton, SnolIcon, SnolChip, SnolCard, SnolTag, SnolInputNumber, SnolInputNumberGroup, SnolInputText, SnolInputTextGroup, SnolTextarea, SnolOtp, SnolSelect, SnolMultiSelect, SnolTypography, SnolDatePicker, SnolPopover, SnolAvatar, SnolLoading, SnolProgress, SnolRadioGroup, SnolCheckboxGroup, SnolUser, useSnolLocale, axios, configureApi, ApiAxios, Md5, required, helpers, useVuelidate, SnolToast, useToast, };
|
|
14
14
|
declare module "vue" {
|
|
15
15
|
interface GlobalComponents {
|
|
16
16
|
SnolButton: typeof import("./components/button/Button.vue")["default"];
|
|
@@ -33,7 +33,7 @@ declare module "vue" {
|
|
|
33
33
|
SnolLoading: typeof import("./components/loading/Loading.vue")["default"];
|
|
34
34
|
SnolProgress: typeof import("./components/progress/Progress.vue")["default"];
|
|
35
35
|
SnolRadioGroup: typeof import("./components/radio-group/RadioGroup.vue")["default"];
|
|
36
|
-
|
|
36
|
+
SnolCheckboxGroup: typeof import("./components/checkbox-group/CheckboxGroup.vue")["default"];
|
|
37
37
|
SnolUser: typeof import("./components/user/User.vue")["default"];
|
|
38
38
|
}
|
|
39
39
|
}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -14,6 +14,11 @@ type ThemeLayout = {
|
|
|
14
14
|
fontSize?: Partial<Record<'xs' | 'sm' | 'md' | 'lg', string>>;
|
|
15
15
|
leading?: Partial<Record<'xs' | 'sm' | 'md' | 'lg', string>>;
|
|
16
16
|
};
|
|
17
|
+
export interface DefaultVariants {
|
|
18
|
+
size?: "sm" | "md" | "lg";
|
|
19
|
+
radius?: "none" | "sm" | "md" | "lg" | "full";
|
|
20
|
+
color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info";
|
|
21
|
+
}
|
|
17
22
|
export interface SnolUIOptions {
|
|
18
23
|
primevue?: boolean;
|
|
19
24
|
ripple?: boolean;
|
|
@@ -31,6 +36,7 @@ export interface SnolUIOptions {
|
|
|
31
36
|
};
|
|
32
37
|
components?: ThemeLayout;
|
|
33
38
|
};
|
|
39
|
+
defaultVariants?: DefaultVariants;
|
|
34
40
|
}
|
|
35
41
|
declare const SnolUI: Plugin;
|
|
36
42
|
export default SnolUI;
|