@cobre-npm/ds-v3 0.8.0 → 0.10.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.
@@ -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
  /**
@@ -7,7 +7,6 @@ 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 CobreFloatModal } from './atoms/CobreFloatModal/CobreFloatModal.vue';
11
10
  export { default as CobreInfoDetail } from './atoms/CobreInfoDetail/CobreInfoDetail.vue';
12
11
  export { default as CobreInputLabel } from './atoms/CobreInputLabel/CobreInputLabel.vue';
13
12
  export { default as CobrePager } from './atoms/CobrePager/CobrePager.vue';
@@ -38,5 +37,7 @@ export { default as CobreSelect } from './molecules/CobreSelect/CobreSelect.vue'
38
37
  export { default as CobreSnackBar } from './molecules/CobreSnackBar/CobreSnackBar.vue';
39
38
  export { default as CobreTableCellCopy } from './molecules/CobreTableCellCopy/CobreTableCellCopy.vue';
40
39
  export { default as CobreTextArea } from './molecules/CobreTextArea/CobreTextArea.vue';
40
+ export { default as CobreKebabMenu } from './molecules/CobreKebabMenu/CobreKebabMenu.vue';
41
+ export { default as CobreAccountButton } from './molecules/CobreAccountButton/CobreAccountButton.vue';
41
42
  export { default as CobreHeader } from './organisms/CobreHeader/CobreHeader.vue';
42
43
  export { default as CobreSideMenu } from './organisms/CobreSideMenu/CobreSideMenu.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
+ };
@@ -9,6 +9,7 @@ export interface Option {
9
9
  method: (path: string) => void;
10
10
  };
11
11
  theme?: 'error';
12
+ key?: string;
12
13
  }
13
14
  interface Props {
14
15
  options: Array<Option>;
@@ -16,7 +17,10 @@ interface Props {
16
17
  title?: string;
17
18
  actionButton?: string;
18
19
  }
19
- declare function __VLS_template(): {
20
+ declare function __VLS_template(): Partial<Record<string, (_: {
21
+ data: Option;
22
+ index: number;
23
+ }) => any>> & {
20
24
  header?(_: {}): any;
21
25
  footer?(_: {}): any;
22
26
  };
@@ -33,8 +37,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
33
37
  onClose?: ((...args: any[]) => any) | undefined;
34
38
  onClickOption?: ((...args: any[]) => any) | undefined;
35
39
  }, {
36
- hasCloseButton: boolean;
37
40
  options: Array<Option>;
41
+ hasCloseButton: boolean;
38
42
  }, {}>;
39
43
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
40
44
  export default _default;
@@ -16,8 +16,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
16
16
  }>>> & {
17
17
  onClose?: ((...args: any[]) => any) | undefined;
18
18
  }, {
19
- hasCloseButton: boolean;
20
19
  isDisabled: boolean;
20
+ hasCloseButton: boolean;
21
21
  }, {}>;
22
22
  export default _default;
23
23
  type __VLS_WithDefaults<P, D> = {
@@ -34,8 +34,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
34
34
  "onClose-button"?: ((...args: any[]) => any) | undefined;
35
35
  }, {
36
36
  size: string;
37
- position: Positions;
38
37
  hasCloseButton: boolean;
38
+ position: Positions;
39
39
  blurred: boolean;
40
40
  btnChevronHide: boolean;
41
41
  }, {}>;
@@ -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;
@@ -3,3 +3,4 @@ export declare const getParams: (url?: string) => {
3
3
  };
4
4
  export declare const makeBodyNotScrollable: () => string;
5
5
  export declare const makeBodyScrollable: () => string;
6
+ export declare const maskString: (data: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,60 +0,0 @@
1
- type Positions = 'left' | 'right';
2
- interface Props {
3
- position: Positions;
4
- size: string;
5
- isLoading: boolean;
6
- hasCloseButton?: boolean;
7
- }
8
- declare function __VLS_template(): {
9
- onlyWrapper?(_: {}): any;
10
- left?(_: {}): any;
11
- header?(_: {}): any;
12
- content?(_: {}): any;
13
- };
14
- declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
15
- position: string;
16
- size: string;
17
- hasCloseButton: boolean;
18
- isLoading: boolean;
19
- }>, {
20
- toggleModal: () => void;
21
- isOpen: import("vue").Ref<boolean>;
22
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
- close: (...args: any[]) => void;
24
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
25
- position: string;
26
- size: string;
27
- hasCloseButton: boolean;
28
- isLoading: boolean;
29
- }>>> & {
30
- onClose?: ((...args: any[]) => any) | undefined;
31
- }, {
32
- size: string;
33
- isLoading: boolean;
34
- position: Positions;
35
- hasCloseButton: boolean;
36
- }, {}>;
37
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
38
- export default _default;
39
- type __VLS_WithDefaults<P, D> = {
40
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
- default: D[K];
42
- }> : P[K];
43
- };
44
- type __VLS_Prettify<T> = {
45
- [K in keyof T]: T[K];
46
- } & {};
47
- type __VLS_WithTemplateSlots<T, S> = T & {
48
- new (): {
49
- $slots: S;
50
- };
51
- };
52
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
53
- type __VLS_TypePropsToOption<T> = {
54
- [K in keyof T]-?: {} extends Pick<T, K> ? {
55
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
56
- } : {
57
- type: import('vue').PropType<T[K]>;
58
- required: true;
59
- };
60
- };