@comercti/react-components 0.18.0 → 0.21.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/comerc-style-guide.cjs.js +33 -30
- package/comerc-style-guide.es.js +4192 -3166
- package/comerc-style-guide.umd.js +33 -30
- package/index.d.ts +24 -15
- package/package.json +2 -1
package/index.d.ts
CHANGED
|
@@ -172,8 +172,11 @@ showCloseButton: boolean;
|
|
|
172
172
|
|
|
173
173
|
declare const __VLS_component_21: DefineComponent<__VLS_Props_26, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_26> & Readonly<{}>, {
|
|
174
174
|
focus: boolean;
|
|
175
|
-
location: "
|
|
176
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
175
|
+
location: "top" | "bottom" | "left" | "right";
|
|
176
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
177
|
+
activatorRef: HTMLDivElement;
|
|
178
|
+
tooltipRef: HTMLDivElement;
|
|
179
|
+
}, any>;
|
|
177
180
|
|
|
178
181
|
declare const __VLS_component_22: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{}>, {
|
|
179
182
|
color: number;
|
|
@@ -339,6 +342,8 @@ declare type __VLS_Props_10 = {
|
|
|
339
342
|
maxFileSize?: number;
|
|
340
343
|
/** habilita a opção de selecionar múltiplos arquivos */
|
|
341
344
|
selectAll?: boolean;
|
|
345
|
+
/** Mensagem personalizada de tipos de arquivos */
|
|
346
|
+
customMessage?: string[];
|
|
342
347
|
/** limpa a lista de arquivos */
|
|
343
348
|
clear: boolean;
|
|
344
349
|
};
|
|
@@ -522,6 +527,8 @@ declare type __VLS_Props_19 = {
|
|
|
522
527
|
isSearch?: boolean;
|
|
523
528
|
/** Se true inicializa o menu aberto */
|
|
524
529
|
isOpen?: boolean;
|
|
530
|
+
/** Título do menu */
|
|
531
|
+
title?: string;
|
|
525
532
|
};
|
|
526
533
|
|
|
527
534
|
declare type __VLS_Props_2 = {
|
|
@@ -618,11 +625,8 @@ declare type __VLS_Props_25 = {
|
|
|
618
625
|
};
|
|
619
626
|
|
|
620
627
|
declare type __VLS_Props_26 = {
|
|
621
|
-
/** Texto do tooltip */
|
|
622
628
|
text: string;
|
|
623
|
-
|
|
624
|
-
location: 'left' | 'top' | 'right' | 'bottom';
|
|
625
|
-
/** Ativa o tooltip quando o elemento estiver em foco */
|
|
629
|
+
location?: 'top' | 'bottom' | 'left' | 'right';
|
|
626
630
|
focus?: boolean;
|
|
627
631
|
};
|
|
628
632
|
|
|
@@ -1036,15 +1040,14 @@ declare function __VLS_template_20(): {
|
|
|
1036
1040
|
|
|
1037
1041
|
declare function __VLS_template_21(): {
|
|
1038
1042
|
attrs: Partial<{}>;
|
|
1039
|
-
slots:
|
|
1040
|
-
|
|
1041
|
-
activator: () => VNode[];
|
|
1042
|
-
}> & {
|
|
1043
|
-
/** Permite passar qualquer elemento como ativador do tooltip */
|
|
1044
|
-
activator: () => VNode[];
|
|
1043
|
+
slots: {
|
|
1044
|
+
activator?(_: {}): any;
|
|
1045
1045
|
};
|
|
1046
|
-
refs: {
|
|
1047
|
-
|
|
1046
|
+
refs: {
|
|
1047
|
+
activatorRef: HTMLDivElement;
|
|
1048
|
+
tooltipRef: HTMLDivElement;
|
|
1049
|
+
};
|
|
1050
|
+
rootEl: any;
|
|
1048
1051
|
};
|
|
1049
1052
|
|
|
1050
1053
|
declare function __VLS_template_22(): {
|
|
@@ -1683,6 +1686,8 @@ declare type DataTableProps = {
|
|
|
1683
1686
|
loadingType?: 'spinner' | 'semi-circle' | 'dots';
|
|
1684
1687
|
/** Define se o texto das células será truncado */
|
|
1685
1688
|
truncated?: boolean;
|
|
1689
|
+
/** String com as diretivas tailwind a serem aplicadas ao slot pagination */
|
|
1690
|
+
paginationStyle?: string;
|
|
1686
1691
|
};
|
|
1687
1692
|
|
|
1688
1693
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1741,7 +1746,10 @@ multiple: boolean;
|
|
|
1741
1746
|
maxFile: number;
|
|
1742
1747
|
maxFileSize: number;
|
|
1743
1748
|
selectAll: boolean;
|
|
1744
|
-
|
|
1749
|
+
customMessage: string[];
|
|
1750
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1751
|
+
inputFile: HTMLInputElement;
|
|
1752
|
+
}, HTMLDivElement>;
|
|
1745
1753
|
|
|
1746
1754
|
declare const _default_17: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
1747
1755
|
|
|
@@ -1823,6 +1831,7 @@ toggleMenu: (clicado: boolean) => any;
|
|
|
1823
1831
|
onRedirect?: (item: SubMenu | ItensMenu_2) => any;
|
|
1824
1832
|
onToggleMenu?: (clicado: boolean) => any;
|
|
1825
1833
|
}>, {
|
|
1834
|
+
title: string;
|
|
1826
1835
|
itemsSearch: ItensMenu_2[];
|
|
1827
1836
|
isHome: boolean;
|
|
1828
1837
|
isSearch: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comercti/react-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"types": "index.d.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "private",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"description": "",
|
|
12
12
|
"dependencies": {
|
|
13
|
+
"@popperjs/core": "^2.11.8",
|
|
13
14
|
"@wdns/vue-code-block": "^2.3.5",
|
|
14
15
|
"date-fns": "^4.1.0",
|
|
15
16
|
"highlight.js": "^11.11.1",
|