@mobileaction/action-kit 0.0.17 → 0.0.18

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,9 +1,9 @@
1
1
  import { type CheckboxGroupProps } from 'ant-design-vue';
2
2
  export interface MaCheckboxGroupProps extends CheckboxGroupProps {
3
+ hint?: string;
4
+ disabled?: boolean;
3
5
  }
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaCheckboxGroupProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaCheckboxGroupProps>>> & {
5
- onClick?: ((...args: any[]) => any) | undefined;
6
- }, {}>, Record<NonNullable<string | number>, (_: {}) => any>>;
6
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaCheckboxGroupProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaCheckboxGroupProps>>>, {}>, Record<NonNullable<string | number>, (_: {}) => any>>;
7
7
  export default _default;
8
8
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
9
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -4,9 +4,13 @@ export interface MaCheckboxProps extends CheckboxProps {
4
4
  indeterminate?: boolean;
5
5
  disabled?: boolean;
6
6
  }
7
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>>> & {
8
- onClick?: ((...args: any[]) => any) | undefined;
9
- }, {}>, Record<NonNullable<string | number>, (_: {}) => any>>;
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>, {
8
+ indeterminate: undefined;
9
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>, {
10
+ indeterminate: undefined;
11
+ }>>>, {
12
+ indeterminate: boolean;
13
+ }>, Record<NonNullable<string | number>, (_: {}) => any>>;
10
14
  export default _default;
11
15
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
16
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -17,6 +21,11 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
17
21
  required: true;
18
22
  };
19
23
  };
24
+ declare type __VLS_WithDefaults<P, D> = {
25
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
26
+ default: D[K];
27
+ } : P[K];
28
+ };
20
29
  declare type __VLS_WithTemplateSlots<T, S> = T & {
21
30
  new (): {
22
31
  $slots: S;
@@ -3,3 +3,4 @@ import MaCheckbox from '../index.vue';
3
3
  export declare const baseConfig: Meta<typeof MaCheckbox>;
4
4
  export declare const Template: StoryFn;
5
5
  export declare const GroupTemplate: StoryFn;
6
+ export declare const IndeterminedTemplate: StoryFn;
@@ -4,6 +4,4 @@ declare const meta: Meta<typeof MaCheckbox>;
4
4
  export default meta;
5
5
  declare type Story = StoryObj<typeof MaCheckbox>;
6
6
  export declare const Default: Story;
7
- export declare const Indeterminate: Story;
8
- export declare const ChekboxGroup: Story;
9
7
  export declare const Disabled: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaCheckbox from '../index.vue';
3
+ declare const meta: Meta<typeof MaCheckbox>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaCheckbox>;
6
+ export declare const ChekboxGroup: Story;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaCheckbox from '../index.vue';
3
+ declare const meta: Meta<typeof MaCheckbox>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaCheckbox>;
6
+ export declare const Indeterminate: Story;
7
+ export declare const Disabled: Story;
package/dist/index.d.ts CHANGED
@@ -9,3 +9,5 @@ export { default as MaFormItem } from './components/form-item/index.vue';
9
9
  export { default as MaInput } from './components/input/index.vue';
10
10
  export { default as MaIcon } from './components/icon/index.vue';
11
11
  export { default as MaSelect } from './components/select/index.vue';
12
+ export { default as MaCheckbox } from './components/checkbox/index.vue';
13
+ export { default as MaCheckboxGroup } from './components/checkbox/group.vue';