@snolui/vue 1.0.3 → 1.0.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.
@@ -1,5 +1,5 @@
1
- import { SnolCheckboxProps } from './type.ts';
2
- declare const __VLS_export: import('vue').DefineComponent<SnolCheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SnolCheckboxProps> & Readonly<{}>, {
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
- import { CheckboxProps } from 'primevue';
2
- export type SnolCheckboxItems = {
1
+ export type SnolCheckboxGroupItems = {
3
2
  label: string;
4
3
  value: any;
5
4
  name?: string;
6
- }[];
7
- export interface SnolCheckboxProps extends /* @vue-ignore */ Omit<CheckboxProps, 'size'> {
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?: SnolCheckboxItems;
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 Checkbox } from './checkbox/Checkbox.vue';
21
+ export { default as CheckboxGroup } from './checkbox-group/CheckboxGroup.vue';
22
22
  export { default as User } from './user/User.vue';
@@ -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>;
@@ -14,4 +14,5 @@ export interface SnolRadioProps {
14
14
  optionValue?: string;
15
15
  isVertical?: boolean;
16
16
  color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'error';
17
+ size?: 'sm' | 'md' | 'lg';
17
18
  }
@@ -1,18 +1,18 @@
1
- export interface SnolMessages {
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?: SnolMessages;
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: SnolMessages;
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, Checkbox as SnolCheckbox, User as SnolUser } from './components';
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, SnolCheckbox, SnolUser, useSnolLocale, axios, configureApi, ApiAxios, Md5, required, helpers, useVuelidate, SnolToast, useToast, };
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
- SnolCheckbox: typeof import("./components/checkbox/Checkbox.vue")["default"];
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;