@cobre-npm/ds-v3 0.9.0 → 0.11.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.
- package/dist/cobre-ds-v3-lib.es.js +2608 -2461
- package/dist/style.css +1 -1
- package/dist/tokens/_components.scss +13 -0
- package/dist/types/components/atoms/CobreOptionsSwitch/CobreOptionsSwitch.vue.d.ts +43 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/molecules/CobreAccountButton/CobreAccountButton.vue.d.ts +21 -0
- package/dist/types/components/molecules/CobreInputAmount/CobreInputAmount.vue.d.ts +1 -1
- package/dist/types/components/molecules/CobreKebabMenu/CobreKebabMenu.vue.d.ts +26 -0
- package/dist/types/components/molecules/CobreRowTable/CobreRowTable.vue.d.ts +4 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -401,6 +401,19 @@
|
|
|
401
401
|
--cobre-btn-v3-primary-warning-focus-bg: var(--cobre-red-50);
|
|
402
402
|
--cobre-btn-v3-primary-warning-focus-box-shadow: 0 0 0 0.25rem #A8C5C4;
|
|
403
403
|
--cobre-btn-v3-primary-warning-disabled-bg: var(--cobre-red-40);
|
|
404
|
+
|
|
405
|
+
// Chip
|
|
406
|
+
--cobre-btn-v3-chip-height: 20px;
|
|
407
|
+
--cobre-btn-v3-chip-radius: var(--cobre-radius-full);
|
|
408
|
+
--cobre-btn-v3-chip-border: var(--cobre-border-stroke-M) solid var(--cobre-primary-20);
|
|
409
|
+
--cobre-btn-v3-chip-bg: var(--cobre-white);
|
|
410
|
+
--cobre-btn-v3-chip-color: var(--cobre-primary-80);
|
|
411
|
+
--cobre-btn-v3-chip-padding: 0 4px;
|
|
412
|
+
--cobre-btn-v3-chip-fs: 12px;
|
|
413
|
+
--cobre-btn-v3-chip-hover-border: var(--cobre-border-stroke-M) solid var(--cobre-secondary-50);
|
|
414
|
+
--cobre-btn-v3-chip-hover-bg: var(--cobre-secondary-10);
|
|
415
|
+
--cobre-btn-v3-chip-disabled-bg: transparent;
|
|
416
|
+
--cobre-btn-v3-chip-disabled-color: var(--cobre-primary-60);
|
|
404
417
|
}
|
|
405
418
|
|
|
406
419
|
/**
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
interface Option {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
tooltipText?: string;
|
|
8
|
+
}
|
|
9
|
+
interface Props {
|
|
10
|
+
/** List of options - since 0.11.0 */
|
|
11
|
+
options: Option[];
|
|
12
|
+
/** Index position of option */
|
|
13
|
+
default?: number;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
16
|
+
options: () => never[];
|
|
17
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
change: (option: Option) => void;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
20
|
+
options: () => never[];
|
|
21
|
+
}>>> & {
|
|
22
|
+
onChange?: ((option: Option) => any) | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
options: Option[];
|
|
25
|
+
}, {}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
}> : P[K];
|
|
31
|
+
};
|
|
32
|
+
type __VLS_Prettify<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToOption<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -9,12 +9,14 @@ export { default as CobreEmptyResults } from './atoms/CobreEmptyResults/CobreEmp
|
|
|
9
9
|
export { default as CobreEmptyState } from './atoms/CobreEmptyState/CobreEmptyState.vue';
|
|
10
10
|
export { default as CobreInfoDetail } from './atoms/CobreInfoDetail/CobreInfoDetail.vue';
|
|
11
11
|
export { default as CobreInputLabel } from './atoms/CobreInputLabel/CobreInputLabel.vue';
|
|
12
|
+
export { default as CobreOptionsSwitch } from './atoms/CobreOptionsSwitch/CobreOptionsSwitch.vue';
|
|
12
13
|
export { default as CobrePager } from './atoms/CobrePager/CobrePager.vue';
|
|
13
14
|
export { default as CobreRadio } from './atoms/CobreRadio/CobreRadio.vue';
|
|
14
15
|
export { default as CobreTabMenu } from './atoms/CobreTabMenu/CobreTabMenu.vue';
|
|
15
16
|
export { default as CobreToastAlert } from './atoms/CobreToastAlert/CobreToastAlert.vue';
|
|
16
17
|
export { default as CobreTruncateTooltipText } from './atoms/CobreTruncateTooltipText/CobreTruncateTooltipText.vue';
|
|
17
18
|
export { default as CobreUploader } from './atoms/CobreUploader/CobreUploader.vue';
|
|
19
|
+
export { default as CobreAccountButton } from './molecules/CobreAccountButton/CobreAccountButton.vue';
|
|
18
20
|
export { default as CobreAccountInfoField } from './molecules/CobreAccountInfoFiled/CobreAccountInfoField.vue';
|
|
19
21
|
export { default as CobreActionList } from './molecules/CobreActionList/CobreActionList.vue';
|
|
20
22
|
export { default as CobreBadge } from './molecules/CobreBadge/CobreBadge.vue';
|
|
@@ -28,6 +30,7 @@ export { default as CobreInput } from './molecules/CobreInput/CobreInput.vue';
|
|
|
28
30
|
export { default as CobreInputAmount } from './molecules/CobreInputAmount/CobreInputAmount.vue';
|
|
29
31
|
export { default as CobreInputSearch } from './molecules/Toolbar/CobreInputSearch/CobreInputSearch.vue';
|
|
30
32
|
export { default as CobreInputUrl } from './molecules/CobreInputUrl/CobreInputUrl.vue';
|
|
33
|
+
export { default as CobreKebabMenu } from './molecules/CobreKebabMenu/CobreKebabMenu.vue';
|
|
31
34
|
export { default as CobreLogoField } from './molecules/CobreLogoField/CobreLogoField.vue';
|
|
32
35
|
export { default as CobreModal } from './molecules/CobreModal/CobreModal.vue';
|
|
33
36
|
export { default as CobreModalAction } from './molecules/CobreModalAction/CobreModalAction.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
id: string;
|
|
3
|
+
alias: string;
|
|
4
|
+
providerId: string;
|
|
5
|
+
accountNumber: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
click: (...args: any[]) => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & {
|
|
10
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToOption<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -44,12 +44,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
44
44
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
disabled: boolean;
|
|
47
|
+
min: number;
|
|
47
48
|
isRequired: boolean;
|
|
48
49
|
minlength: string;
|
|
49
50
|
maxlength: string;
|
|
50
51
|
errorMsg: string;
|
|
51
52
|
labelOptional: string;
|
|
52
|
-
min: number;
|
|
53
53
|
allowDecimals: boolean;
|
|
54
54
|
}, {}>;
|
|
55
55
|
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface Option {
|
|
2
|
+
id: string;
|
|
3
|
+
icon?: string;
|
|
4
|
+
text: string;
|
|
5
|
+
path?: string;
|
|
6
|
+
lineBottom?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface Props {
|
|
10
|
+
options: Option[];
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
clickOption: (...args: any[]) => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & {
|
|
15
|
+
onClickOption?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}, {}, {}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
+
import { Option } from '../CobreKebabMenu/CobreKebabMenu.vue';
|
|
2
3
|
export interface Column {
|
|
3
4
|
key: string;
|
|
4
5
|
width: number;
|
|
@@ -32,6 +33,7 @@ interface Props {
|
|
|
32
33
|
isMultipleCheckEnabled: boolean;
|
|
33
34
|
haveToolbar?: boolean;
|
|
34
35
|
isToolbarOpen?: boolean;
|
|
36
|
+
kebabMenuOptions?: Option[];
|
|
35
37
|
}
|
|
36
38
|
declare let __VLS_typeProps: Props;
|
|
37
39
|
declare const selectedRows: Ref<Item[]>;
|
|
@@ -57,6 +59,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
57
59
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
58
60
|
"update:selectedRows": (selectedRows: Item[]) => void;
|
|
59
61
|
selectItem: (...args: any[]) => void;
|
|
62
|
+
clickKebabOption: (...args: any[]) => void;
|
|
60
63
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
61
64
|
emptyResultTitle: string;
|
|
62
65
|
emptyResultMsg: string;
|
|
@@ -71,6 +74,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
71
74
|
isToolbarOpen: boolean;
|
|
72
75
|
}>>> & {
|
|
73
76
|
onSelectItem?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
onClickKebabOption?: ((...args: any[]) => any) | undefined;
|
|
74
78
|
"onUpdate:selectedRows"?: ((selectedRows: Item[]) => any) | undefined;
|
|
75
79
|
}, {
|
|
76
80
|
dataKey: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobre-npm/ds-v3",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@vueuse/components": "^10.11.0",
|
|
33
33
|
"@vueuse/core": "^10.11.0",
|
|
34
34
|
"bootstrap": "^5.3.3",
|
|
35
|
-
"sass": "
|
|
35
|
+
"sass": "1.77.6",
|
|
36
36
|
"vue": "^3.4.21",
|
|
37
37
|
"vue-collapsed": "^1.3.3",
|
|
38
38
|
"vue-currency-input": "^3.1.0",
|