@appcorp/app-corp-vista 0.1.63 → 0.1.65

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.
@@ -66,7 +66,7 @@ var VistaUploadV1 = function (_a) {
66
66
  var inputRef = (0, react_1.useRef)(null);
67
67
  var slickConfig = {
68
68
  dots: true,
69
- infinite: true,
69
+ infinite: (imageUrls === null || imageUrls === void 0 ? void 0 : imageUrls.length) === 1 ? false : true,
70
70
  speed: 500,
71
71
  slidesToShow: 1,
72
72
  slidesToScroll: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "scripts": {
5
5
  "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib",
6
6
  "build:next": "next build",
@@ -81,7 +81,7 @@
81
81
  "react-dom": "^19",
82
82
  "react-slick": "^0.30.3",
83
83
  "react-tooltip": "^5.28.1",
84
- "slick-carousel": "^1.8.1",
84
+ "slick-carousel": "^1",
85
85
  "storybook": "^8",
86
86
  "swr": "^2.3.0",
87
87
  "tailwindcss": "^4",
@@ -12,23 +12,23 @@ interface Base {
12
12
  enabled: boolean;
13
13
  order: number;
14
14
  }
15
- interface ButtonV1 extends VistaButtonV1Props, Base {
15
+ export interface ButtonV1 extends VistaButtonV1Props, Base {
16
16
  }
17
- interface CheckboxV1 extends VistaCheckboxV1Props, Base {
17
+ export interface CheckboxV1 extends VistaCheckboxV1Props, Base {
18
18
  }
19
- interface ComboboxV1 extends VistaComboboxV1Props, Base {
19
+ export interface ComboboxV1 extends VistaComboboxV1Props, Base {
20
20
  }
21
- interface DividerV4 extends VistaVerticalDividerV4Props, Base {
21
+ export interface DividerV4 extends VistaVerticalDividerV4Props, Base {
22
22
  }
23
- interface RadioV1 extends VistaRadioV1Props, Base {
23
+ export interface RadioV1 extends VistaRadioV1Props, Base {
24
24
  }
25
- interface SelectV1 extends VistaSelectV1Props, Base {
25
+ export interface SelectV1 extends VistaSelectV1Props, Base {
26
26
  }
27
- interface TextAreaV1 extends VistaTextAreaV1Props, Base {
27
+ export interface TextAreaV1 extends VistaTextAreaV1Props, Base {
28
28
  }
29
- interface TextInputV1 extends VistaTextInputV1Props, Base {
29
+ export interface TextInputV1 extends VistaTextInputV1Props, Base {
30
30
  }
31
- interface UploadV1 extends VistaUploadV1Props, Base {
31
+ export interface UploadV1 extends VistaUploadV1Props, Base {
32
32
  }
33
33
  export interface VistaFormElements {
34
34
  [VISTA_FORM_ELEMENTS.BUTTON_V1]?: ButtonV1[];
@@ -1,13 +1,7 @@
1
1
  import React from "react";
2
- import { VistaTextAreaV1Props } from "../type/vista-text-area-type";
3
- import { VistaTextInputV1Props } from "../type/vista-text-input-type";
4
- import { VistaSelectV1Props } from "../type/vista-select-type";
5
2
  import { VistaComboboxV1Props } from "../type/vista-combobox-type";
6
- import { VistaVerticalDividerV4Props } from "../type/vista-vertical-divider-type";
7
- import { VistaCheckboxV1Props, VistaCheckboxV2Props, VistaCheckboxV3Props } from "../type/vista-checkbox-type";
8
- import { VistaRadioV1Props } from "../type/vista-radio-type";
9
- import { VistaButtonV1Props } from "../type/vista-button-type";
10
- import { VistaUploadV1Props } from "../type/vista-upload-type";
3
+ import { VistaCheckboxV2Props, VistaCheckboxV3Props } from "../type/vista-checkbox-type";
4
+ import { ButtonV1, CheckboxV1, DividerV4, RadioV1, SelectV1, TextAreaV1, TextInputV1, UploadV1 } from "../type/vista-form-elements";
11
5
  export declare enum VISTA_FORM_ELEMENTS {
12
6
  AUDIO_V1 = "AUDIO_V1",
13
7
  BUTTON_V1 = "BUTTON_V1",
@@ -24,15 +18,15 @@ export declare enum VISTA_FORM_ELEMENTS {
24
18
  }
25
19
  export declare const vistaFormSchema: {
26
20
  AUDIO_V1: (props: any) => React.JSX.Element;
27
- BUTTON_V1: (props: VistaButtonV1Props) => React.JSX.Element;
28
- CHECKBOX_V1: (props: VistaCheckboxV1Props) => React.JSX.Element;
21
+ BUTTON_V1: (props: ButtonV1) => React.JSX.Element;
22
+ CHECKBOX_V1: (props: CheckboxV1) => React.JSX.Element;
29
23
  CHECKBOX_V2: (props: VistaCheckboxV2Props) => React.JSX.Element;
30
24
  CHECKBOX_V3: (props: VistaCheckboxV3Props) => React.JSX.Element;
31
25
  COMBOBOX_V1: (props: VistaComboboxV1Props) => React.JSX.Element;
32
- DIVIDER_V4: (props: VistaVerticalDividerV4Props) => React.JSX.Element;
33
- RADIO_V1: (props: VistaRadioV1Props) => React.JSX.Element;
34
- SELECT_V1: (props: VistaSelectV1Props) => React.JSX.Element;
35
- TEXT_AREA_V1: (props: VistaTextAreaV1Props) => React.JSX.Element;
36
- TEXT_INPUT_V1: (props: VistaTextInputV1Props) => React.JSX.Element;
37
- UPLOAD_V1: (props: VistaUploadV1Props) => React.JSX.Element;
26
+ DIVIDER_V4: (props: DividerV4) => React.JSX.Element;
27
+ RADIO_V1: (props: RadioV1) => React.JSX.Element;
28
+ SELECT_V1: (props: SelectV1) => React.JSX.Element;
29
+ TEXT_AREA_V1: (props: TextAreaV1) => React.JSX.Element;
30
+ TEXT_INPUT_V1: (props: TextInputV1) => React.JSX.Element;
31
+ UPLOAD_V1: (props: UploadV1) => React.JSX.Element;
38
32
  };