@hunter-industries/hunter-components 0.0.15 → 0.0.16
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/assets/icons/index.d.ts +11 -17
- package/dist/components/Button/Button.vue.d.ts +2 -1
- package/dist/components/Button/ButtonToast.stories.d.ts +6 -0
- package/dist/components/Button/ButtonToast.vue.d.ts +17 -0
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Icon/Icon.vue.d.ts +2 -2
- package/dist/components/Icon/icons.stories.d.ts +10 -2
- package/dist/components/Notification/Notfication.stories.d.ts +6 -0
- package/dist/components/Notification/Notification.vue.d.ts +27 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/hunter-components.js +556 -364
- package/dist/hunter-components.umd.cjs +2 -2
- package/dist/index.d.ts +4 -3
- package/dist/types/assets.d.ts +1 -0
- package/dist/types/ui.d.ts +3 -0
- package/package.json +1 -1
|
@@ -6,27 +6,21 @@ import HunterCaretDownIcon from "./caret-down.svg?component";
|
|
|
6
6
|
import HunterCaretLeftIcon from "./caret-left.svg?component";
|
|
7
7
|
import HunterCaretRightIcon from "./caret-right.svg?component";
|
|
8
8
|
import HunterCaretUpIcon from "./caret-up.svg?component";
|
|
9
|
+
import HunterCloseIcon from "./close.svg?component";
|
|
9
10
|
import HunterCopyContentIcon from "./copy-content.svg?component";
|
|
10
11
|
import HunterDeleteIcon from "./delete.svg?component";
|
|
11
12
|
import HunterDownloadIcon from "./download.svg?component";
|
|
13
|
+
import HunterErrorIcon from "./error.svg?component";
|
|
14
|
+
import HunterErrorOutlineIcon from "./error-outline.svg?component";
|
|
15
|
+
import HunterNotificationIcon from "./notification.svg?component";
|
|
12
16
|
import HunterLocationIcon from "./location.svg?component";
|
|
13
17
|
import HunterSearchIcon from "./search.svg?component";
|
|
14
18
|
import HunterShareIcon from "./share.svg?component";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"caret-left": any;
|
|
23
|
-
"caret-right": any;
|
|
24
|
-
"caret-up": any;
|
|
25
|
-
"copy-content": any;
|
|
26
|
-
delete: any;
|
|
27
|
-
download: any;
|
|
28
|
-
location: any;
|
|
29
|
-
search: any;
|
|
30
|
-
share: any;
|
|
31
|
-
};
|
|
19
|
+
import HunterSuccessIcon from "./success.svg?component";
|
|
20
|
+
import HunterSuccessOutlineIcon from "./success-outline.svg?component";
|
|
21
|
+
import HunterWarningIcon from "./warning.svg?component";
|
|
22
|
+
import HunterWarningOutlineIcon from "./warning-outline.svg?component";
|
|
23
|
+
import { HunterIconName } from "../../types/assets";
|
|
24
|
+
export { HunterAccountCircleIcon, HunterAddIcon, HunterArchiveIcon, HunterBackArrowIcon, HunterCaretDownIcon, HunterCaretLeftIcon, HunterCaretRightIcon, HunterCaretUpIcon, HunterCloseIcon, HunterCopyContentIcon, HunterDeleteIcon, HunterDownloadIcon, HunterErrorIcon, HunterErrorOutlineIcon, HunterNotificationIcon, HunterLocationIcon, HunterSearchIcon, HunterShareIcon, HunterSuccessIcon, HunterSuccessOutlineIcon, HunterWarningIcon, HunterWarningOutlineIcon, };
|
|
25
|
+
declare const icons: Record<HunterIconName, any>;
|
|
32
26
|
export default icons;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
text: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
variant?: "dark" | "light";
|
|
6
|
+
}
|
|
7
|
+
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>>>, {}, {}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToOption<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { HunterIconName } from "../../types/assets";
|
|
2
2
|
interface Props {
|
|
3
|
-
name:
|
|
3
|
+
name: HunterIconName;
|
|
4
4
|
}
|
|
5
5
|
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>>>, {}, {}>;
|
|
6
6
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/vue3";
|
|
2
|
-
import { HunterAccountCircleIcon, HunterAddIcon, HunterArchiveIcon, HunterBackArrowIcon, HunterCaretDownIcon, HunterCaretLeftIcon, HunterCaretRightIcon, HunterCaretUpIcon, HunterCopyContentIcon, HunterDeleteIcon, HunterDownloadIcon, HunterLocationIcon, HunterSearchIcon, HunterShareIcon } from "../../assets/icons";
|
|
2
|
+
import { HunterAccountCircleIcon, HunterAddIcon, HunterArchiveIcon, HunterBackArrowIcon, HunterCaretDownIcon, HunterCaretLeftIcon, HunterCaretRightIcon, HunterCaretUpIcon, HunterCloseIcon, HunterCopyContentIcon, HunterDeleteIcon, HunterDownloadIcon, HunterErrorIcon, HunterErrorOutlineIcon, HunterNotificationIcon, HunterLocationIcon, HunterSearchIcon, HunterShareIcon, HunterSuccessIcon, HunterSuccessOutlineIcon, HunterWarningIcon, HunterWarningOutlineIcon } from "../../assets/icons";
|
|
3
3
|
import Icon from "./Icon.vue";
|
|
4
|
-
type SVGComponent = typeof HunterAccountCircleIcon | typeof HunterAddIcon | typeof HunterArchiveIcon | typeof HunterBackArrowIcon | typeof HunterCaretDownIcon | typeof HunterCaretLeftIcon | typeof HunterCaretRightIcon | typeof HunterCaretUpIcon | typeof HunterCopyContentIcon | typeof HunterDeleteIcon | typeof HunterDownloadIcon | typeof HunterLocationIcon | typeof HunterSearchIcon | typeof HunterShareIcon;
|
|
4
|
+
type SVGComponent = typeof HunterAccountCircleIcon | typeof HunterAddIcon | typeof HunterArchiveIcon | typeof HunterBackArrowIcon | typeof HunterCaretDownIcon | typeof HunterCaretLeftIcon | typeof HunterCaretRightIcon | typeof HunterCaretUpIcon | typeof HunterCloseIcon | typeof HunterCopyContentIcon | typeof HunterDeleteIcon | typeof HunterErrorIcon | typeof HunterErrorOutlineIcon | typeof HunterNotificationIcon | typeof HunterDownloadIcon | typeof HunterLocationIcon | typeof HunterSearchIcon | typeof HunterShareIcon | typeof HunterSuccessIcon | typeof HunterSuccessOutlineIcon | typeof HunterWarningIcon | typeof HunterWarningOutlineIcon;
|
|
5
5
|
export declare const DefaultWithProps: Meta<typeof Icon>;
|
|
6
6
|
declare const meta: Meta<SVGComponent>;
|
|
7
7
|
export default meta;
|
|
@@ -14,9 +14,17 @@ export declare const CaretDown: Story;
|
|
|
14
14
|
export declare const CaretLeft: Story;
|
|
15
15
|
export declare const CaretRight: Story;
|
|
16
16
|
export declare const CaretUp: Story;
|
|
17
|
+
export declare const Close: Story;
|
|
17
18
|
export declare const CopyContent: Story;
|
|
18
19
|
export declare const Delete: Story;
|
|
19
20
|
export declare const Download: Story;
|
|
21
|
+
export declare const Error: Story;
|
|
22
|
+
export declare const ErrorOutline: Story;
|
|
23
|
+
export declare const Notification: Story;
|
|
20
24
|
export declare const Location: Story;
|
|
21
25
|
export declare const Search: Story;
|
|
22
26
|
export declare const Share: Story;
|
|
27
|
+
export declare const Success: Story;
|
|
28
|
+
export declare const SuccessOutline: Story;
|
|
29
|
+
export declare const Warning: Story;
|
|
30
|
+
export declare const WarningOutline: Story;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HunterNotificationButtonType, HunterToastIconType } from "../../types/ui";
|
|
2
|
+
interface HCLNotificationProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
type?: HunterToastIconType;
|
|
6
|
+
variant?: "dark" | "light";
|
|
7
|
+
showIcon?: boolean;
|
|
8
|
+
buttonText?: string;
|
|
9
|
+
buttonType?: HunterNotificationButtonType;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<HCLNotificationProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
close: (el: HTMLDivElement) => void;
|
|
13
|
+
"button-click": (el: HTMLDivElement) => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<HCLNotificationProps>>> & {
|
|
15
|
+
onClose?: ((el: HTMLDivElement) => any) | undefined;
|
|
16
|
+
"onButton-click"?: ((el: HTMLDivElement) => any) | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToOption<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|