@hunter-industries/hunter-components 0.0.39 → 0.0.41

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.
@@ -38,6 +38,7 @@ import HunterGrassIcon from "./grass.svg?component";
38
38
  import HunterGridIcon from "./grid.svg?component";
39
39
  import HunterHiddenIcon from "./hidden.svg?component";
40
40
  import HunterHouseIcon from "./house.svg?component";
41
+ import HunterImagePlaceholder from "./image-placeholder.svg?component";
41
42
  import HunterLocationIcon from "./location.svg?component";
42
43
  import HunterLockIcon from "./lock.svg?component";
43
44
  import HunterMapIcon from "./map.svg?component";
@@ -75,6 +76,6 @@ import HunterWaterIcon from "./water.svg?component";
75
76
  import HunterWaterOffIcon from "./water-off.svg?component";
76
77
  import HunterZonesIcon from "./zones.svg?component";
77
78
  import { HunterIconName } from "../../types/assets";
78
- export { HunterAccountCircleIcon, HunterAddIcon, HunterArchiveIcon, HunterArrowDownIcon, HunterArrowLeftIcon, HunterArrowRightIcon, HunterArrowUpIcon, HunterArrowLongDownIcon, HunterArrowLongLeftIcon, HunterArrowLongRightIcon, HunterArrowLongUpIcon, HunterCameraIcon, HunterCaretDownIcon, HunterCaretLeftIcon, HunterCaretRightIcon, HunterCaretUpIcon, HunterCaretOutlineLeftIcon, HunterCaretOutlineDownIcon, HunterCaretOutlineRightIcon, HunterCaretOutlineUpIcon, HunterCheckIcon, HunterCircleOutlineIcon, HunterClockwiseIcon, HunterCloseIcon, HunterCopyContentIcon, HunterCounterClockwiseIcon, HunterCrossHairIcon, HunterDeleteIcon, HunterDownloadIcon, HunterDrawIcon, HunterEditPencil, HunterErrorIcon, HunterErrorOutlineIcon, HunterFenceIcon, HunterFlowerIcon, HunterForwardArrow, HunterGrassIcon, HunterGridIcon, HunterHiddenIcon, HunterHouseIcon, HunterLocationIcon, HunterLockIcon, HunterMapIcon, HunterMaximizeImage, HunterMenuIcon, HunterMinimizeImage, HunterNorthArrowIcon, HunterNotificationIcon, HunterOutdoorTableIcon, HunterPlantOutlineIcon, HunterPolygonOutlineIcon, HunterPottedPlantIcon, HunterRectangleOutlineIcon, HunterRedoIcon, HunterRotateDoubleArrow, HunterRulerIcon, HunterSearchIcon, HunterShareIcon, HunterSquareOutlineIcon, HunterStarIcon, HunterStarOutilneIcon, HunterSubtractIcon, HunterSuccessIcon, HunterSuccessOutlineIcon, HunterTapeMeasure, HunterTreeIcon, HunterTriangleOutlineIcon, HunterUndoIcon, HunterUnlockIcon, HunterUploadIcon, HunterVisibleIcon, HunterWarningIcon, HunterWarningOutlineIcon, HunterWaterIcon, HunterWaterOffIcon, HunterZonesIcon, };
79
+ export { HunterAccountCircleIcon, HunterAddIcon, HunterArchiveIcon, HunterArrowDownIcon, HunterArrowLeftIcon, HunterArrowRightIcon, HunterArrowUpIcon, HunterArrowLongDownIcon, HunterArrowLongLeftIcon, HunterArrowLongRightIcon, HunterArrowLongUpIcon, HunterCameraIcon, HunterCaretDownIcon, HunterCaretLeftIcon, HunterCaretRightIcon, HunterCaretUpIcon, HunterCaretOutlineLeftIcon, HunterCaretOutlineDownIcon, HunterCaretOutlineRightIcon, HunterCaretOutlineUpIcon, HunterCheckIcon, HunterCircleOutlineIcon, HunterClockwiseIcon, HunterCloseIcon, HunterCopyContentIcon, HunterCounterClockwiseIcon, HunterCrossHairIcon, HunterDeleteIcon, HunterDownloadIcon, HunterDrawIcon, HunterEditPencil, HunterErrorIcon, HunterErrorOutlineIcon, HunterFenceIcon, HunterFlowerIcon, HunterForwardArrow, HunterGrassIcon, HunterGridIcon, HunterHiddenIcon, HunterHouseIcon, HunterImagePlaceholder, HunterLocationIcon, HunterLockIcon, HunterMapIcon, HunterMaximizeImage, HunterMenuIcon, HunterMinimizeImage, HunterNorthArrowIcon, HunterNotificationIcon, HunterOutdoorTableIcon, HunterPlantOutlineIcon, HunterPolygonOutlineIcon, HunterPottedPlantIcon, HunterRectangleOutlineIcon, HunterRedoIcon, HunterRotateDoubleArrow, HunterRulerIcon, HunterSearchIcon, HunterShareIcon, HunterSquareOutlineIcon, HunterStarIcon, HunterStarOutilneIcon, HunterSubtractIcon, HunterSuccessIcon, HunterSuccessOutlineIcon, HunterTapeMeasure, HunterTreeIcon, HunterTriangleOutlineIcon, HunterUndoIcon, HunterUnlockIcon, HunterUploadIcon, HunterVisibleIcon, HunterWarningIcon, HunterWarningOutlineIcon, HunterWaterIcon, HunterWaterOffIcon, HunterZonesIcon, };
79
80
  declare const icons: Record<HunterIconName, any>;
80
81
  export default icons;
@@ -1,8 +1,9 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3";
2
2
  import Card from "./Card.vue";
3
- declare const meta: Meta<typeof Card>;
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 Small: Story;
9
+ export declare const Category: Story;
@@ -1,16 +1,23 @@
1
1
  interface Props {
2
- variant?: string;
3
- image?: string;
4
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;
5
11
  description?: string;
6
12
  className?: string;
13
+ variant?: string;
7
14
  active?: boolean;
8
- alt?: string;
15
+ hideToggleButton?: boolean;
9
16
  }
10
17
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- addProduct: (value: any) => void;
18
+ updateIsActive: (bool: boolean, id: string) => void;
12
19
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & {
13
- onAddProduct?: ((value: any) => any) | undefined;
20
+ onUpdateIsActive?: ((bool: boolean, id: string) => any) | undefined;
14
21
  }, {}, {}>;
15
22
  export default _default;
16
23
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -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
+ };
@@ -1,2 +1,3 @@
1
1
  import Card from "./Card.vue";
2
- export { Card as HunterCard };
2
+ import CategoryCard from "./CategoryCard.vue";
3
+ export { Card as HunterCard, CategoryCard as HunterCategoryCard };
@@ -2,6 +2,8 @@ import type { HunterIconName } from "../../types/assets";
2
2
  interface Props {
3
3
  name: HunterIconName;
4
4
  className?: string;
5
+ width?: string | number;
6
+ height?: string | number;
5
7
  }
6
8
  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>>>, {}, {}>;
7
9
  export default _default;
@@ -0,0 +1,6 @@
1
+ import type { Meta } from "@storybook/vue3";
2
+ import ImageWithPlaceholder from "./ImageWithPlaceholder.vue";
3
+ declare const meta: Meta<typeof ImageWithPlaceholder>;
4
+ export default meta;
5
+ export declare const Default: any;
6
+ export declare const NoImage: any;
@@ -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
+ };