@hunter-industries/hunter-components 0.0.40 → 0.0.42
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/Card/Card.stories.d.ts +3 -2
- package/dist/components/Card/CategoryCard.vue.d.ts +31 -0
- package/dist/components/Card/index.d.ts +2 -1
- package/dist/components/Image/ImageWithPlaceholder.stories.d.ts +6 -0
- package/dist/components/Image/ImageWithPlaceholder.vue.d.ts +25 -0
- package/dist/hunter-components.js +557 -510
- package/dist/hunter-components.umd.cjs +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/vue3";
|
|
2
2
|
import Card from "./Card.vue";
|
|
3
|
-
|
|
3
|
+
import CategoryCard from "./CategoryCard.vue";
|
|
4
|
+
declare const meta: Meta<typeof Card | typeof CategoryCard>;
|
|
4
5
|
export default meta;
|
|
5
6
|
type Story = StoryObj<typeof meta>;
|
|
6
7
|
export declare const Default: Story;
|
|
7
8
|
export declare const Horizontal: Story;
|
|
8
|
-
export declare const
|
|
9
|
+
export declare const Category: Story;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
title: string;
|
|
3
|
+
image: {
|
|
4
|
+
src?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
height?: number | string;
|
|
9
|
+
};
|
|
10
|
+
id?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
variant?: string;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
isButton?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
updateIsActive: (bool: boolean, id: string) => void;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & {
|
|
20
|
+
onUpdateIsActive?: ((bool: boolean, id: string) => any) | undefined;
|
|
21
|
+
}, {}, {}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToOption<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
title: string;
|
|
3
|
+
image: {
|
|
4
|
+
src?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
height?: number | string;
|
|
9
|
+
};
|
|
10
|
+
id?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
imageFit?: string;
|
|
13
|
+
aspectRatio?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Props>>>, {}, {}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToOption<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|