@cobre-npm/ds-v3 0.51.0 → 0.53.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.
@@ -19,19 +19,18 @@
19
19
  --cobre-input-error-fs: var(--cobre-label-small-fs);
20
20
 
21
21
  --cobre-input-focus-border: var(--cobre-border-stroke-M) solid var(--cobre-secondary-50);
22
- --cobre-input-focus-shadow: 0 0 0 0.25rem var(--cobre-secondary-10);
23
- --cobre-input-focus-color: var(--cobre-primary-95);
24
22
  --cobre-input-focus-bg: transparent;
25
23
 
26
24
  --cobre-input-hover-border: var(--cobre-border-stroke-M) solid var(--cobre-primary-95);
27
- --cobre-input-hover-bg: var(--cobre-primary-10);
25
+ --cobre-input-hover-bg: var(--cobre-primary-5);
28
26
 
29
27
  --cobre-input-disabled-color: var(--cobre-primary-50);
30
- --cobre-input-disabled-bg: var(--cobre-white);
31
- --cobre-input-disabled-border: var(--cobre-border-stroke-M) solid var(--cobre-primary-50);
28
+ --cobre-input-disabled-bg: var(--cobre-primary-10);
29
+ --cobre-input-disabled-border: none;
32
30
 
33
- --cobre-input-active-border: var(--cobre-border-stroke-L) solid var(--cobre-secondary-50);
34
- --cobre-input-active-bg: var(--cobre-primary-10);
31
+ --cobre-input-active-color: var(--cobre-primary-95);
32
+ --cobre-input-active-border: var(--cobre-border-stroke-M) solid var(--cobre-secondary-50);
33
+ --cobre-input-active-shadow: 0 0 0 0.25rem var(--cobre-secondary-10);
35
34
 
36
35
  --cobre-input-autofill-border: var(--cobre-border-stroke-M) solid var(--cobre-secondary-50);
37
36
 
@@ -89,9 +88,9 @@
89
88
  --cobre-input-v3-white-hover-border: 0.5px solid var(--cobre-primary-95);
90
89
  --cobre-input-v3-white-hover-bg: var(--cobre-primary-5);
91
90
 
92
- --cobre-input-v3-white-disabled-bg: var(--cobre-primary-10);
91
+ --cobre-input-v3-white-disabled-bg: var(--cobre-primary-20);
93
92
  --cobre-input-v3-white-disabled-color: var(--cobre-primary-50);
94
- --cobre-input-v3-white-disabled-border: none;
93
+ --cobre-input-v3-white-disabled-border: var(--cobre-border-stroke-M) solid var(--cobre-primary-60);
95
94
 
96
95
  --cobre-input-v3-white-active-bg: var(--cobre-white);
97
96
  --cobre-input-v3-white-active-border: 1px solid var(--cobre-secondary-50);
@@ -104,9 +103,9 @@
104
103
  --cobre-input-v3-cloudy-hover-border: 0.5px solid var(--cobre-primary-95);
105
104
  --cobre-input-v3-cloudy-hover-bg: var(--cobre-primary-10);
106
105
 
107
- --cobre-input-v3-cloudy-disabled-bg: var(--cobre-primary-20);
106
+ --cobre-input-v3-cloudy-disabled-bg: var(--cobre-primary-10);
108
107
  --cobre-input-v3-cloudy-disabled-color: var(--cobre-primary-50);
109
- --cobre-input-v3-cloudy-disabled-border: 0.5px solid var(--cobre-primary-60);
108
+ --cobre-input-v3-cloudy-disabled-border: none;
110
109
 
111
110
  --cobre-input-v3-cloudy-active-bg: var(--cobre-white);
112
111
  --cobre-input-v3-cloudy-active-border: 1px solid var(--cobre-secondary-50);
@@ -7,7 +7,7 @@ interface Props {
7
7
  name?: string;
8
8
  id?: string;
9
9
  description?: string;
10
- type: "single" | "box";
10
+ type: 'single' | 'box';
11
11
  }
12
12
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
13
13
  modelValue: boolean;
@@ -31,6 +31,7 @@ export { default as CobreFieldLogo } from './molecules/CobreFieldLogo/CobreField
31
31
  export { default as CobreFlowResult } from './molecules/CobreFlowResult/CobreFlowResult.vue';
32
32
  export { default as CobreInput } from './molecules/CobreInput/CobreInput.vue';
33
33
  export { default as CobreInputAmount } from './molecules/CobreInputAmount/CobreInputAmount.vue';
34
+ export { default as CobreInputCurrency } from './molecules/CobreInputCurrency/CobreInputCurrency.vue';
34
35
  export { default as CobreInputPhoneNumber } from './molecules/CobreInputPhoneNumber/CobreInputPhoneNumber.vue';
35
36
  export { default as CobreInputSearch } from './molecules/Toolbar/CobreInputSearch/CobreInputSearch.vue';
36
37
  export { default as CobreInputUrl } from './molecules/CobreInputUrl/CobreInputUrl.vue';
@@ -0,0 +1,90 @@
1
+ import { CurrencyInputOptions } from 'vue-currency-input';
2
+ interface Currency {
3
+ code: string;
4
+ label: string;
5
+ geo: string;
6
+ }
7
+ interface Props {
8
+ modelValue: string | number | undefined;
9
+ placeholder?: string;
10
+ id?: string;
11
+ options?: Partial<CurrencyInputOptions>;
12
+ isRequired?: boolean;
13
+ minlength?: string;
14
+ maxlength?: string;
15
+ min?: number;
16
+ max?: number;
17
+ errorMsg?: string;
18
+ label?: string;
19
+ labelTooltip?: string;
20
+ labelOptional?: string;
21
+ currencies: Currency[];
22
+ isAmountDisabled?: boolean;
23
+ isCurrencyDisabled?: boolean;
24
+ }
25
+ declare let __VLS_typeProps: Props;
26
+ declare const currencySelected: import("vue").ModelRef<string | undefined, string>;
27
+ type __VLS_PublicProps = {
28
+ 'currencySelected'?: NonNullable<typeof currencySelected['value']>;
29
+ } & typeof __VLS_typeProps;
30
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
31
+ isRequired: boolean;
32
+ minlength: string;
33
+ maxlength: string;
34
+ errorMsg: string;
35
+ isDisabled: boolean;
36
+ min: number;
37
+ max: number;
38
+ labelOptional: string;
39
+ }>, {
40
+ isValid: import("vue").ComputedRef<boolean>;
41
+ isDirty: import("vue").ComputedRef<boolean>;
42
+ isValidMinAmount: import("vue").ComputedRef<boolean>;
43
+ isValidMaxAmount: import("vue").ComputedRef<boolean>;
44
+ handleSetValue: (value: number) => void;
45
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
+ "update:currencySelected": (currencySelected: string) => void;
47
+ "update:modelValue": (...args: any[]) => void;
48
+ "update:amount": (...args: any[]) => void;
49
+ "update:currency": (...args: any[]) => void;
50
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
51
+ isRequired: boolean;
52
+ minlength: string;
53
+ maxlength: string;
54
+ errorMsg: string;
55
+ isDisabled: boolean;
56
+ min: number;
57
+ max: number;
58
+ labelOptional: string;
59
+ }>>> & {
60
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
61
+ "onUpdate:amount"?: ((...args: any[]) => any) | undefined;
62
+ "onUpdate:currency"?: ((...args: any[]) => any) | undefined;
63
+ "onUpdate:currencySelected"?: ((currencySelected: string) => any) | undefined;
64
+ }, {
65
+ isRequired: boolean;
66
+ max: number;
67
+ min: number;
68
+ minlength: string;
69
+ maxlength: string;
70
+ errorMsg: string;
71
+ labelOptional: string;
72
+ }, {}>;
73
+ export default _default;
74
+ type __VLS_WithDefaults<P, D> = {
75
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
76
+ default: D[K];
77
+ }> : P[K];
78
+ };
79
+ type __VLS_Prettify<T> = {
80
+ [K in keyof T]: T[K];
81
+ } & {};
82
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
83
+ type __VLS_TypePropsToOption<T> = {
84
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
85
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
86
+ } : {
87
+ type: import('vue').PropType<T[K]>;
88
+ required: true;
89
+ };
90
+ };
@@ -1,6 +1,6 @@
1
1
  import 'vue-select/dist/vue-select.css';
2
2
  interface Props {
3
- labelName: string;
3
+ labelName?: string;
4
4
  isRequired?: boolean;
5
5
  errorMsg?: string;
6
6
  labelTooltip?: string;
@@ -128,4 +128,5 @@ export declare const banks: {
128
128
  PR_MEX_901: string;
129
129
  PR_MEX_902: string;
130
130
  PR_MEX_903: string;
131
+ PR_GLOBAL_COBRE: string;
131
132
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.51.0",
3
+ "version": "0.53.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"