@cobre-npm/ds-v3 0.21.0 → 0.23.0

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.
@@ -0,0 +1,65 @@
1
+ interface Props {
2
+ id?: string;
3
+ placeholder: string;
4
+ searchable: boolean;
5
+ disabled: boolean;
6
+ isRequired: boolean;
7
+ }
8
+ declare function __VLS_template(): {
9
+ "open-indicator"?(_: {
10
+ attributes: any;
11
+ }): any;
12
+ "selected-option"?(_: {
13
+ option: never;
14
+ }): any;
15
+ option?(_: {
16
+ option: never;
17
+ }): any;
18
+ };
19
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
20
+ id: string;
21
+ placeholder: string;
22
+ searchable: boolean;
23
+ disabled: boolean;
24
+ isRequired: boolean;
25
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ "update:modelValue": (...args: any[]) => void;
27
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
28
+ id: string;
29
+ placeholder: string;
30
+ searchable: boolean;
31
+ disabled: boolean;
32
+ isRequired: boolean;
33
+ }>>> & {
34
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
35
+ }, {
36
+ disabled: boolean;
37
+ id: string;
38
+ placeholder: string;
39
+ searchable: boolean;
40
+ isRequired: boolean;
41
+ }, {}>;
42
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
43
+ export default _default;
44
+ type __VLS_WithDefaults<P, D> = {
45
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
46
+ default: D[K];
47
+ }> : P[K];
48
+ };
49
+ type __VLS_Prettify<T> = {
50
+ [K in keyof T]: T[K];
51
+ } & {};
52
+ type __VLS_WithTemplateSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
57
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
+ type __VLS_TypePropsToOption<T> = {
59
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
60
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
61
+ } : {
62
+ type: import('vue').PropType<T[K]>;
63
+ required: true;
64
+ };
65
+ };
@@ -7,6 +7,7 @@ export { default as CobreColumnTable } from './atoms/CobreColumnTable/CobreColum
7
7
  export { default as CobreCountryFlag } from './atoms/CobreCountryFlag/CobreCountryFlag.vue';
8
8
  export { default as CobreEmptyResults } from './atoms/CobreEmptyResults/CobreEmptyResults.vue';
9
9
  export { default as CobreEmptyState } from './atoms/CobreEmptyState/CobreEmptyState.vue';
10
+ export { default as CobreIndicative } from './atoms/CobreIndicative/CobreIndicative.vue';
10
11
  export { default as CobreInfoDetail } from './atoms/CobreInfoDetail/CobreInfoDetail.vue';
11
12
  export { default as CobreInputLabel } from './atoms/CobreInputLabel/CobreInputLabel.vue';
12
13
  export { default as CobreOptionsSwitch } from './atoms/CobreOptionsSwitch/CobreOptionsSwitch.vue';
@@ -29,6 +30,7 @@ export { default as CobreFieldLogo } from './molecules/CobreFieldLogo/CobreField
29
30
  export { default as CobreFlowResult } from './molecules/CobreFlowResult/CobreFlowResult.vue';
30
31
  export { default as CobreInput } from './molecules/CobreInput/CobreInput.vue';
31
32
  export { default as CobreInputAmount } from './molecules/CobreInputAmount/CobreInputAmount.vue';
33
+ export { default as CobreInputPhoneNumber } from './molecules/CobreInputPhoneNumber/CobreInputPhoneNumber.vue';
32
34
  export { default as CobreInputSearch } from './molecules/Toolbar/CobreInputSearch/CobreInputSearch.vue';
33
35
  export { default as CobreInputUrl } from './molecules/CobreInputUrl/CobreInputUrl.vue';
34
36
  export { default as CobreKebabMenu } from './molecules/CobreKebabMenu/CobreKebabMenu.vue';
@@ -55,8 +55,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
55
55
  }, {
56
56
  type: "alphanumeric" | "numeric" | "letters" | "anyCharacter" | "password" | "email";
57
57
  theme: "white" | "cloudy";
58
- isDisabled: boolean;
59
58
  isRequired: boolean;
59
+ isDisabled: boolean;
60
60
  minlength: string;
61
61
  maxlength: string;
62
62
  errorMsg: string;
@@ -8,6 +8,7 @@ interface Props {
8
8
  minlength?: string;
9
9
  maxlength?: string;
10
10
  min?: number;
11
+ max?: number;
11
12
  errorMsg?: string;
12
13
  disabled?: boolean;
13
14
  label?: string;
@@ -21,6 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
21
22
  errorMsg: string;
22
23
  disabled: boolean;
23
24
  min: number;
25
+ max: number;
24
26
  labelOptional: string;
25
27
  allowDecimals: boolean;
26
28
  }>, {
@@ -28,6 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
30
  isDirty: import("vue").ComputedRef<boolean>;
29
31
  showErrors: () => void;
30
32
  isValidMinAmount: import("vue").ComputedRef<boolean>;
33
+ isValidMaxAmount: import("vue").ComputedRef<boolean>;
31
34
  handleSetValue: (value: number) => void;
32
35
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
36
  "update:modelValue": (...args: any[]) => void;
@@ -38,14 +41,16 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
38
41
  errorMsg: string;
39
42
  disabled: boolean;
40
43
  min: number;
44
+ max: number;
41
45
  labelOptional: string;
42
46
  allowDecimals: boolean;
43
47
  }>>> & {
44
48
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
45
49
  }, {
46
50
  disabled: boolean;
47
- min: number;
48
51
  isRequired: boolean;
52
+ max: number;
53
+ min: number;
49
54
  minlength: string;
50
55
  maxlength: string;
51
56
  errorMsg: string;
@@ -0,0 +1,81 @@
1
+ interface Props {
2
+ modelValue: string | undefined | null;
3
+ id?: string;
4
+ placeholder?: string;
5
+ isRequired?: boolean;
6
+ minlength?: string;
7
+ maxlength?: string;
8
+ errorMsg?: string;
9
+ isDisabled?: boolean;
10
+ theme?: 'white' | 'cloudy';
11
+ label?: string;
12
+ labelTooltip?: string;
13
+ labelOptional?: string;
14
+ infoLabel?: string | null;
15
+ iconInfoLabel?: boolean;
16
+ showErrors?: boolean;
17
+ }
18
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
19
+ isRequired: boolean;
20
+ minlength: string;
21
+ maxlength: string;
22
+ placeholder: string;
23
+ errorMsg: string;
24
+ isDisabled: boolean;
25
+ labelOptional: string;
26
+ infoLabel: string;
27
+ iconInfoLabel: boolean;
28
+ theme: string;
29
+ showErrors: boolean;
30
+ }>, {
31
+ isValid: import("vue").ComputedRef<boolean>;
32
+ isValidMinlength: import("vue").ComputedRef<boolean>;
33
+ isValidMaxlength: import("vue").ComputedRef<boolean>;
34
+ isValidNumeric: import("vue").ComputedRef<boolean>;
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ "update:modelValue": (...args: any[]) => void;
37
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
38
+ isRequired: boolean;
39
+ minlength: string;
40
+ maxlength: string;
41
+ placeholder: string;
42
+ errorMsg: string;
43
+ isDisabled: boolean;
44
+ labelOptional: string;
45
+ infoLabel: string;
46
+ iconInfoLabel: boolean;
47
+ theme: string;
48
+ showErrors: boolean;
49
+ }>>> & {
50
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
51
+ }, {
52
+ theme: "white" | "cloudy";
53
+ placeholder: string;
54
+ isRequired: boolean;
55
+ isDisabled: boolean;
56
+ minlength: string;
57
+ maxlength: string;
58
+ errorMsg: string;
59
+ labelOptional: string;
60
+ infoLabel: string | null;
61
+ iconInfoLabel: boolean;
62
+ showErrors: boolean;
63
+ }, {}>;
64
+ export default _default;
65
+ type __VLS_WithDefaults<P, D> = {
66
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
67
+ default: D[K];
68
+ }> : P[K];
69
+ };
70
+ type __VLS_Prettify<T> = {
71
+ [K in keyof T]: T[K];
72
+ } & {};
73
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
74
+ type __VLS_TypePropsToOption<T> = {
75
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
76
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
77
+ } : {
78
+ type: import('vue').PropType<T[K]>;
79
+ required: true;
80
+ };
81
+ };
@@ -55,8 +55,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
55
55
  }, {
56
56
  theme: "white" | "cloudy";
57
57
  height: string;
58
- isDisabled: boolean;
59
58
  isRequired: boolean;
59
+ isDisabled: boolean;
60
60
  minlength: string;
61
61
  maxlength: string;
62
62
  errorMsg: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"