@cobre-npm/ds-v3 0.72.0 → 0.74.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.
@@ -985,4 +985,19 @@
985
985
  --cobre-checkbox-input-disabled-checked-bg: var(--cobre-secondary-30);
986
986
  --cobre-checkbox-input-disabled-unchecked-bg: var(--cobre-primary-10);
987
987
  --cobre-checkbox-input-disabled-unchecked-border: var(--cobre-border-stroke-M) solid var(--cobre-primary-20);
988
+ }
989
+
990
+ /**
991
+ * CardIcon
992
+ */
993
+
994
+ :root {
995
+ --cobre-card-icon-padding: 8px;
996
+ --cobre-card-icon-width: 114px;
997
+ --cobre-card-icon-bg: var(--cobre-white);
998
+ --cobre-card-icon-bg-hover: var(--cobre-primary-5);
999
+ --cobre-card-icon-radius: var(--cobre-radius-S);
1000
+ --cobre-card-icon-border: var(--cobre-border-stroke-M) solid var(--cobre-primary-20);
1001
+ --cobre-card-icon-bg-active: var(--cobre-secondary-5);
1002
+ --cobre-card-icon-border-active: var(--cobre-border-stroke-M) solid var(--cobre-secondary-50);
988
1003
  }
@@ -1,7 +1,11 @@
1
1
  interface Props {
2
2
  geo: string;
3
+ width?: number;
4
+ height?: number;
3
5
  }
4
6
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
7
+ width: number;
8
+ height: number;
5
9
  geo: string;
6
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLImageElement>;
7
11
  export default _default;
@@ -9,7 +9,16 @@ interface Props {
9
9
  id?: string;
10
10
  description?: string;
11
11
  }
12
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ content?(_: {}): any;
16
+ };
17
+ refs: {};
18
+ rootEl: HTMLDivElement;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
22
  "update:modelValue": (...args: any[]) => void;
14
23
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
15
24
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -19,4 +28,10 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
19
28
  value: string | number | string[];
20
29
  checked: boolean;
21
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
32
  export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -1,6 +1,6 @@
1
- interface Action {
1
+ export interface Action {
2
2
  id: string;
3
- label: string;
3
+ label?: string;
4
4
  icon: string;
5
5
  tooltipText?: string;
6
6
  onClick?: () => void | undefined;
@@ -20,6 +20,7 @@ export { default as CobreUploader } from './atoms/CobreUploader/CobreUploader.vu
20
20
  export { default as CobreAlert } from './atoms/CobreAlert/CobreAlert.vue';
21
21
  export { default as CobreSwitch } from './atoms/CobreSwitch/CobreSwitch.vue';
22
22
  export { default as CobreCardButton } from './atoms/CobreCardButton/CobreCardButton.vue';
23
+ export { default as CobreRowActions } from './atoms/CobreRowActions/CobreRowActions.vue';
23
24
  export { default as CobreAccountCpButton } from './molecules/CobreAccountCpButton/CobreAccountCpButton.vue';
24
25
  export { default as CobreAccountInfoField } from './molecules/CobreAccountInfoFiled/CobreAccountInfoField.vue';
25
26
  export { default as CobreActionList } from './molecules/CobreActionList/CobreActionList.vue';
@@ -48,6 +49,7 @@ export { default as CobreSnackBar } from './molecules/CobreSnackBar/CobreSnackBa
48
49
  export { default as CobreTableCellCopy } from './molecules/CobreTableCellCopy/CobreTableCellCopy.vue';
49
50
  export { default as CobreTextArea } from './molecules/CobreTextArea/CobreTextArea.vue';
50
51
  export { default as CobreAvatarsGroup } from './molecules/CobreAvatarsGroup/CobreAvatarsGroup.vue';
52
+ export { default as CobreCardIcon } from './molecules/CobreCardIcon/CobreCardIcon.vue';
51
53
  export { default as CobreHeader } from './organisms/CobreHeader/CobreHeader.vue';
52
54
  export { default as CobreSideMenu } from './organisms/CobreSideMenu/CobreSideMenu.vue';
53
55
  export { default as CobreDateFilter } from './organisms/CobreDateFilter/CobreDateFilter.vue';
@@ -0,0 +1,36 @@
1
+ interface Props {
2
+ label: string;
3
+ cardValue: string | number;
4
+ modelValue: string | number | null;
5
+ geo?: string;
6
+ orientation?: 'horizontal' | 'vertical';
7
+ disabled?: boolean;
8
+ }
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ icon?(_: {
13
+ class: string;
14
+ }): any;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLDivElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (...args: any[]) => void;
22
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
23
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
24
+ }>, {
25
+ disabled: boolean;
26
+ label: string;
27
+ geo: string;
28
+ orientation: "horizontal" | "vertical";
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -1,4 +1,5 @@
1
1
  import { Option } from '../CobreKebabMenu/CobreKebabMenu.vue';
2
+ import { Action } from '../../atoms/CobreRowActions/CobreRowActions.vue';
2
3
  export interface Column {
3
4
  key: string;
4
5
  width: number;
@@ -34,6 +35,7 @@ interface Props {
34
35
  isToolbarOpen?: boolean;
35
36
  kebabMenuOptions?: Option[];
36
37
  tableWrap?: boolean;
38
+ rowActions?: Action[];
37
39
  }
38
40
  type __VLS_Props = Props;
39
41
  declare const __VLS_defaults: {
@@ -53,10 +55,12 @@ declare function __VLS_template(): {
53
55
  };
54
56
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
55
57
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
+ action: (...args: any[]) => void;
56
59
  selectItem: (...args: any[]) => void;
57
60
  clickKebabOption: (...args: any[]) => void;
58
61
  "update:selectedRows": (value: never[]) => void;
59
62
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
63
+ onAction?: ((...args: any[]) => any) | undefined;
60
64
  "onUpdate:selectedRows"?: ((value: never[]) => any) | undefined;
61
65
  onSelectItem?: ((...args: any[]) => any) | undefined;
62
66
  onClickKebabOption?: ((...args: any[]) => any) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.72.0",
3
+ "version": "0.74.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"