@cobre-npm/ds-v3 0.9.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
  /**
@@ -37,5 +37,7 @@ export { default as CobreSelect } from './molecules/CobreSelect/CobreSelect.vue'
37
37
  export { default as CobreSnackBar } from './molecules/CobreSnackBar/CobreSnackBar.vue';
38
38
  export { default as CobreTableCellCopy } from './molecules/CobreTableCellCopy/CobreTableCellCopy.vue';
39
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';
40
42
  export { default as CobreHeader } from './organisms/CobreHeader/CobreHeader.vue';
41
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
+ };
@@ -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.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"