@comercti/react-components 0.20.0 → 0.22.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 +31 -31
- package/comerc-style-guide.es.js +4298 -3197
- package/comerc-style-guide.umd.js +31 -31
- package/index.d.ts +88 -22
- package/package.json +2 -1
package/index.d.ts
CHANGED
|
@@ -173,8 +173,11 @@ showCloseButton: boolean;
|
|
|
173
173
|
|
|
174
174
|
declare const __VLS_component_21: DefineComponent<__VLS_Props_26, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_26> & Readonly<{}>, {
|
|
175
175
|
focus: boolean;
|
|
176
|
-
location: "
|
|
177
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
176
|
+
location: "top" | "bottom" | "left" | "right";
|
|
177
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
178
|
+
activatorRef: HTMLDivElement;
|
|
179
|
+
tooltipRef: HTMLDivElement;
|
|
180
|
+
}, any>;
|
|
178
181
|
|
|
179
182
|
declare const __VLS_component_22: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{}>, {
|
|
180
183
|
color: number;
|
|
@@ -205,6 +208,19 @@ openMenu: boolean;
|
|
|
205
208
|
layout: "default" | "base" | "minimal";
|
|
206
209
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
207
210
|
|
|
211
|
+
declare const __VLS_component_27: DefineComponent<__VLS_Props_35, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
212
|
+
"toggle-collapse": (value: ICollapse[]) => any;
|
|
213
|
+
}, string, PublicProps, Readonly<__VLS_Props_35> & Readonly<{
|
|
214
|
+
"onToggle-collapse"?: (value: ICollapse[]) => any;
|
|
215
|
+
}>, {
|
|
216
|
+
items: Array<Record<string, unknown>>;
|
|
217
|
+
variant: "accordion" | "card" | "minimal" | "compact";
|
|
218
|
+
openTheFirst: boolean;
|
|
219
|
+
allOpen: boolean;
|
|
220
|
+
direction: "row" | "column";
|
|
221
|
+
closeCollapse: number | null;
|
|
222
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
223
|
+
|
|
208
224
|
declare const __VLS_component_3: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
209
225
|
|
|
210
226
|
declare const __VLS_component_4: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -530,17 +546,11 @@ declare type __VLS_Props_19 = {
|
|
|
530
546
|
};
|
|
531
547
|
|
|
532
548
|
declare type __VLS_Props_2 = {
|
|
533
|
-
/** Define o label do componente */
|
|
534
549
|
label: string;
|
|
535
|
-
/** Define os valores exibidos no select */
|
|
536
550
|
options: number[];
|
|
537
|
-
/** Desabilita o componente */
|
|
538
551
|
disabled?: boolean;
|
|
539
|
-
/** Define a direção do texto */
|
|
540
552
|
textDirection?: 'left' | 'right';
|
|
541
|
-
/** Define o valor selecionado */
|
|
542
553
|
modelValue: number;
|
|
543
|
-
/**Define a posição de abertura das opções */
|
|
544
554
|
position?: 'top' | 'bottom';
|
|
545
555
|
};
|
|
546
556
|
|
|
@@ -623,11 +633,8 @@ declare type __VLS_Props_25 = {
|
|
|
623
633
|
};
|
|
624
634
|
|
|
625
635
|
declare type __VLS_Props_26 = {
|
|
626
|
-
/** Texto do tooltip */
|
|
627
636
|
text: string;
|
|
628
|
-
|
|
629
|
-
location: 'left' | 'top' | 'right' | 'bottom';
|
|
630
|
-
/** Ativa o tooltip quando o elemento estiver em foco */
|
|
637
|
+
location?: 'top' | 'bottom' | 'left' | 'right';
|
|
631
638
|
focus?: boolean;
|
|
632
639
|
};
|
|
633
640
|
|
|
@@ -711,6 +718,15 @@ declare type __VLS_Props_34 = {
|
|
|
711
718
|
}[];
|
|
712
719
|
};
|
|
713
720
|
|
|
721
|
+
declare type __VLS_Props_35 = {
|
|
722
|
+
items: Array<Record<string, unknown>>;
|
|
723
|
+
openTheFirst?: boolean;
|
|
724
|
+
allOpen?: boolean;
|
|
725
|
+
variant: 'accordion' | 'card' | 'minimal' | 'compact';
|
|
726
|
+
direction?: 'row' | 'column';
|
|
727
|
+
closeCollapse?: number | null;
|
|
728
|
+
};
|
|
729
|
+
|
|
714
730
|
declare type __VLS_Props_4 = {
|
|
715
731
|
/** Tipo do button (`attrs:to` ou `attrs:href` podem sobrepor essa regra) */
|
|
716
732
|
type?: 'button' | 'submit' | 'a';
|
|
@@ -827,6 +843,8 @@ declare function __VLS_template(): {
|
|
|
827
843
|
slots: Readonly<NonNullable<{
|
|
828
844
|
[key: string]: (props: {
|
|
829
845
|
item: Record<string, any>;
|
|
846
|
+
indexItem: number;
|
|
847
|
+
indexHeader: number;
|
|
830
848
|
}) => VNode[];
|
|
831
849
|
} & {
|
|
832
850
|
/**Slot usado para exibir a paginação da tabela */
|
|
@@ -846,6 +864,8 @@ declare function __VLS_template(): {
|
|
|
846
864
|
}>> & {
|
|
847
865
|
[key: string]: (props: {
|
|
848
866
|
item: Record<string, any>;
|
|
867
|
+
indexItem: number;
|
|
868
|
+
indexHeader: number;
|
|
849
869
|
}) => VNode[];
|
|
850
870
|
} & {
|
|
851
871
|
/**Slot usado para exibir a paginação da tabela */
|
|
@@ -1041,15 +1061,14 @@ declare function __VLS_template_20(): {
|
|
|
1041
1061
|
|
|
1042
1062
|
declare function __VLS_template_21(): {
|
|
1043
1063
|
attrs: Partial<{}>;
|
|
1044
|
-
slots:
|
|
1045
|
-
|
|
1046
|
-
activator: () => VNode[];
|
|
1047
|
-
}> & {
|
|
1048
|
-
/** Permite passar qualquer elemento como ativador do tooltip */
|
|
1049
|
-
activator: () => VNode[];
|
|
1064
|
+
slots: {
|
|
1065
|
+
activator?(_: {}): any;
|
|
1050
1066
|
};
|
|
1051
|
-
refs: {
|
|
1052
|
-
|
|
1067
|
+
refs: {
|
|
1068
|
+
activatorRef: HTMLDivElement;
|
|
1069
|
+
tooltipRef: HTMLDivElement;
|
|
1070
|
+
};
|
|
1071
|
+
rootEl: any;
|
|
1053
1072
|
};
|
|
1054
1073
|
|
|
1055
1074
|
declare function __VLS_template_22(): {
|
|
@@ -1171,6 +1190,33 @@ declare function __VLS_template_26(): {
|
|
|
1171
1190
|
rootEl: any;
|
|
1172
1191
|
};
|
|
1173
1192
|
|
|
1193
|
+
declare function __VLS_template_27(): {
|
|
1194
|
+
attrs: Partial<{}>;
|
|
1195
|
+
slots: Readonly<{
|
|
1196
|
+
[key: string]: (props: {
|
|
1197
|
+
item: Record<string, any>;
|
|
1198
|
+
}) => VNode[];
|
|
1199
|
+
header?: (props: {
|
|
1200
|
+
item: Record<string, any>;
|
|
1201
|
+
}) => VNode[];
|
|
1202
|
+
content?: (props: {
|
|
1203
|
+
item: Record<string, any>;
|
|
1204
|
+
}) => VNode[];
|
|
1205
|
+
}> & {
|
|
1206
|
+
[key: string]: (props: {
|
|
1207
|
+
item: Record<string, any>;
|
|
1208
|
+
}) => VNode[];
|
|
1209
|
+
header?: (props: {
|
|
1210
|
+
item: Record<string, any>;
|
|
1211
|
+
}) => VNode[];
|
|
1212
|
+
content?: (props: {
|
|
1213
|
+
item: Record<string, any>;
|
|
1214
|
+
}) => VNode[];
|
|
1215
|
+
};
|
|
1216
|
+
refs: {};
|
|
1217
|
+
rootEl: HTMLDivElement;
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1174
1220
|
declare function __VLS_template_3(): {
|
|
1175
1221
|
attrs: Partial<{}>;
|
|
1176
1222
|
slots: {
|
|
@@ -1353,6 +1399,8 @@ declare type __VLS_TemplateResult_25 = ReturnType<typeof __VLS_template_25>;
|
|
|
1353
1399
|
|
|
1354
1400
|
declare type __VLS_TemplateResult_26 = ReturnType<typeof __VLS_template_26>;
|
|
1355
1401
|
|
|
1402
|
+
declare type __VLS_TemplateResult_27 = ReturnType<typeof __VLS_template_27>;
|
|
1403
|
+
|
|
1356
1404
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
1357
1405
|
|
|
1358
1406
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
@@ -1481,6 +1529,12 @@ declare type __VLS_WithTemplateSlots_26<T, S> = T & {
|
|
|
1481
1529
|
};
|
|
1482
1530
|
};
|
|
1483
1531
|
|
|
1532
|
+
declare type __VLS_WithTemplateSlots_27<T, S> = T & {
|
|
1533
|
+
new (): {
|
|
1534
|
+
$slots: S;
|
|
1535
|
+
};
|
|
1536
|
+
};
|
|
1537
|
+
|
|
1484
1538
|
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
1485
1539
|
new (): {
|
|
1486
1540
|
$slots: S;
|
|
@@ -1557,6 +1611,8 @@ export declare const CeCheckboxGroup: default_2.ComponentType<typeof _default_13
|
|
|
1557
1611
|
|
|
1558
1612
|
export declare const CeCol: default_2.ComponentType<typeof _default_22>;
|
|
1559
1613
|
|
|
1614
|
+
export declare const CeCollapse: default_2.ComponentType<typeof _default_46>;
|
|
1615
|
+
|
|
1560
1616
|
export declare const CeContainer: default_2.ComponentType<typeof _default_24>;
|
|
1561
1617
|
|
|
1562
1618
|
export declare const CeContentDivider: default_2.ComponentType<typeof _default_42>;
|
|
@@ -1690,7 +1746,7 @@ declare type DataTableProps = {
|
|
|
1690
1746
|
truncated?: boolean;
|
|
1691
1747
|
/** String com as diretivas tailwind a serem aplicadas ao slot pagination */
|
|
1692
1748
|
paginationStyle?: string;
|
|
1693
|
-
/** Habilita a funcionalidade de copiar o conteúdo da célula ao clicar
|
|
1749
|
+
/** Habilita a funcionalidade de copiar o conteúdo da célula ao clicar */
|
|
1694
1750
|
copyable?: boolean;
|
|
1695
1751
|
};
|
|
1696
1752
|
|
|
@@ -1903,6 +1959,8 @@ declare const _default_44: __VLS_WithTemplateSlots_26<typeof __VLS_component_26,
|
|
|
1903
1959
|
|
|
1904
1960
|
declare const _default_45: DefineComponent<__VLS_Props_34, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_34> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1905
1961
|
|
|
1962
|
+
declare const _default_46: __VLS_WithTemplateSlots_27<typeof __VLS_component_27, __VLS_TemplateResult_27["slots"]>;
|
|
1963
|
+
|
|
1906
1964
|
declare const _default_5: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1907
1965
|
"update:modelValue": (value: number) => any;
|
|
1908
1966
|
updatePerPage: (value: number) => any;
|
|
@@ -1915,7 +1973,9 @@ textDirection: "left" | "right";
|
|
|
1915
1973
|
position: "top" | "bottom";
|
|
1916
1974
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1917
1975
|
menuRef: HTMLDivElement;
|
|
1918
|
-
|
|
1976
|
+
referenceRef: HTMLButtonElement;
|
|
1977
|
+
dropdownRef: HTMLUListElement;
|
|
1978
|
+
}, any>;
|
|
1919
1979
|
|
|
1920
1980
|
declare const _default_6: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1921
1981
|
"update:modelValue": (value: string) => any;
|
|
@@ -1993,6 +2053,11 @@ declare interface IBreadcrumbsProps {
|
|
|
1993
2053
|
variant?: 'primary' | 'secondary' | 'text';
|
|
1994
2054
|
}
|
|
1995
2055
|
|
|
2056
|
+
declare interface ICollapse {
|
|
2057
|
+
index: number;
|
|
2058
|
+
value: boolean;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
1996
2061
|
declare interface IData_2<T = unknown> {
|
|
1997
2062
|
[key: string]: T;
|
|
1998
2063
|
}
|
|
@@ -2260,5 +2325,6 @@ declare module 'vue' {
|
|
|
2260
2325
|
'ce-footer': typeof FooterComponent;
|
|
2261
2326
|
'ce-layout': typeof LayoutComponent;
|
|
2262
2327
|
'ce-section-footer': typeof SectionFooterComponent;
|
|
2328
|
+
'ce-collapse': typeof CollapseComponent;
|
|
2263
2329
|
}
|
|
2264
2330
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comercti/react-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.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",
|