@comercti/react-components 0.23.0 → 0.24.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 +7 -4
- package/comerc-style-guide.es.js +2659 -2504
- package/comerc-style-guide.umd.js +10 -7
- package/index.d.ts +59 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -217,7 +217,9 @@ declare const __VLS_component_28: DefineComponent<__VLS_Props_35, {}, {}, {}, {}
|
|
|
217
217
|
}, string, PublicProps, Readonly<__VLS_Props_35> & Readonly<{
|
|
218
218
|
"onToggle-collapse"?: (value: ICollapse[]) => any;
|
|
219
219
|
}>, {
|
|
220
|
-
|
|
220
|
+
invalid: number[];
|
|
221
|
+
disabled: IFields;
|
|
222
|
+
items: Array<unknown>;
|
|
221
223
|
variant: "accordion" | "card" | "minimal" | "compact";
|
|
222
224
|
openTheFirst: boolean;
|
|
223
225
|
allOpen: boolean;
|
|
@@ -279,17 +281,23 @@ dropdownRef: HTMLDivElement[];
|
|
|
279
281
|
|
|
280
282
|
declare const __VLS_component_7: DefineComponent<IDropzone, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
281
283
|
"update:modelValue": (file: FileItem | File | FileItem[]) => any;
|
|
284
|
+
delete: (files: FileItem | File | FileItem[]) => any;
|
|
282
285
|
updateFiles: (file: FileItem[]) => any;
|
|
283
286
|
}, string, PublicProps, Readonly<IDropzone> & Readonly<{
|
|
284
287
|
"onUpdate:modelValue"?: (file: FileItem | File | FileItem[]) => any;
|
|
288
|
+
onDelete?: (files: FileItem | File | FileItem[]) => any;
|
|
285
289
|
onUpdateFiles?: (file: FileItem[]) => any;
|
|
286
290
|
}>, {
|
|
291
|
+
invalid: boolean;
|
|
287
292
|
disabled: boolean;
|
|
293
|
+
reserveSpaceFeedback: boolean;
|
|
288
294
|
file: FileItem | null;
|
|
289
295
|
rounded: "md" | "lg" | "xl";
|
|
290
296
|
compact: boolean;
|
|
291
|
-
variant: "primary" | "secondary";
|
|
297
|
+
variant: "primary" | "secondary" | "tertiary";
|
|
292
298
|
clear: boolean;
|
|
299
|
+
errorLabel: string;
|
|
300
|
+
successLabel: string;
|
|
293
301
|
accept: string[];
|
|
294
302
|
multiple: boolean;
|
|
295
303
|
maxFile: number;
|
|
@@ -299,8 +307,9 @@ customMessage: string[];
|
|
|
299
307
|
simulateProgress: boolean;
|
|
300
308
|
showProgressBar: boolean;
|
|
301
309
|
sendRemovedFile: boolean;
|
|
302
|
-
|
|
303
|
-
|
|
310
|
+
tertiaryVariantTitle: string;
|
|
311
|
+
showUploadedFile: boolean;
|
|
312
|
+
showRemoveButton: boolean;
|
|
304
313
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
305
314
|
inputFile: HTMLInputElement;
|
|
306
315
|
}, HTMLDivElement>;
|
|
@@ -443,7 +452,7 @@ declare type __VLS_Props_13 = {
|
|
|
443
452
|
/** ID única do input */
|
|
444
453
|
id?: string;
|
|
445
454
|
/** Valor do input para two-way binding (v-model) */
|
|
446
|
-
modelValue
|
|
455
|
+
modelValue?: string;
|
|
447
456
|
/** Define a quantidade de dígitos do código */
|
|
448
457
|
length: number;
|
|
449
458
|
/** Define se o input deve ser desabilitado */
|
|
@@ -766,12 +775,14 @@ declare type __VLS_Props_34 = {
|
|
|
766
775
|
};
|
|
767
776
|
|
|
768
777
|
declare type __VLS_Props_35 = {
|
|
769
|
-
items: Array<
|
|
778
|
+
items: Array<unknown>;
|
|
770
779
|
openTheFirst?: boolean;
|
|
771
780
|
allOpen?: boolean;
|
|
772
781
|
variant: 'accordion' | 'card' | 'minimal' | 'compact';
|
|
773
782
|
direction?: 'row' | 'column';
|
|
774
783
|
closeCollapse?: number | null;
|
|
784
|
+
disabled?: IFields;
|
|
785
|
+
invalid?: number[];
|
|
775
786
|
};
|
|
776
787
|
|
|
777
788
|
declare type __VLS_Props_4 = {
|
|
@@ -838,6 +849,8 @@ declare type __VLS_Props_7 = {
|
|
|
838
849
|
indeterminate?: boolean;
|
|
839
850
|
/** Se o checkbox deve reservar espaço para feedback de erro */
|
|
840
851
|
reserveSpaceFeedback?: boolean;
|
|
852
|
+
/** Desabilita o clique no checkbox */
|
|
853
|
+
clickDisabled?: boolean;
|
|
841
854
|
};
|
|
842
855
|
|
|
843
856
|
declare type __VLS_Props_8 = {
|
|
@@ -1262,9 +1275,11 @@ declare function __VLS_template_28(): {
|
|
|
1262
1275
|
}) => VNode[];
|
|
1263
1276
|
header?: (props: {
|
|
1264
1277
|
item: Record<string, any>;
|
|
1278
|
+
index: number;
|
|
1265
1279
|
}) => VNode[];
|
|
1266
1280
|
content?: (props: {
|
|
1267
1281
|
item: Record<string, any>;
|
|
1282
|
+
index: number;
|
|
1268
1283
|
}) => VNode[];
|
|
1269
1284
|
}> & {
|
|
1270
1285
|
[key: string]: (props: {
|
|
@@ -1272,9 +1287,11 @@ declare function __VLS_template_28(): {
|
|
|
1272
1287
|
}) => VNode[];
|
|
1273
1288
|
header?: (props: {
|
|
1274
1289
|
item: Record<string, any>;
|
|
1290
|
+
index: number;
|
|
1275
1291
|
}) => VNode[];
|
|
1276
1292
|
content?: (props: {
|
|
1277
1293
|
item: Record<string, any>;
|
|
1294
|
+
index: number;
|
|
1278
1295
|
}) => VNode[];
|
|
1279
1296
|
};
|
|
1280
1297
|
refs: {};
|
|
@@ -1401,6 +1418,8 @@ declare function __VLS_template_9(): {
|
|
|
1401
1418
|
selection?: (props: {
|
|
1402
1419
|
value?: CeSelectFieldProps["modelValue"];
|
|
1403
1420
|
}) => VNode[];
|
|
1421
|
+
/** Slot para customizar a exibição da label do select */
|
|
1422
|
+
'content-label'?: () => VNode[];
|
|
1404
1423
|
}> & {
|
|
1405
1424
|
/** Slot para adicionar conteúdo antes das opções */
|
|
1406
1425
|
'prepend-item'?: () => VNode[];
|
|
@@ -1414,6 +1433,8 @@ declare function __VLS_template_9(): {
|
|
|
1414
1433
|
selection?: (props: {
|
|
1415
1434
|
value?: CeSelectFieldProps["modelValue"];
|
|
1416
1435
|
}) => VNode[];
|
|
1436
|
+
/** Slot para customizar a exibição da label do select */
|
|
1437
|
+
'content-label'?: () => VNode[];
|
|
1417
1438
|
};
|
|
1418
1439
|
refs: {
|
|
1419
1440
|
rootRef: HTMLDivElement;
|
|
@@ -1854,6 +1875,7 @@ disabled: boolean;
|
|
|
1854
1875
|
block: boolean;
|
|
1855
1876
|
indeterminate: boolean;
|
|
1856
1877
|
reserveSpaceFeedback: boolean;
|
|
1878
|
+
clickDisabled: boolean;
|
|
1857
1879
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1858
1880
|
inputRef: HTMLInputElement;
|
|
1859
1881
|
}, any>;
|
|
@@ -1896,6 +1918,7 @@ onPaginate?: (value: number) => any;
|
|
|
1896
1918
|
totalPages: number;
|
|
1897
1919
|
currentPage: number;
|
|
1898
1920
|
itemsPerPage: number;
|
|
1921
|
+
paginationPages: number;
|
|
1899
1922
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1900
1923
|
|
|
1901
1924
|
declare const _default_20: DefineComponent<SliderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -1927,8 +1950,10 @@ contoured: boolean;
|
|
|
1927
1950
|
|
|
1928
1951
|
declare const _default_22: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1929
1952
|
"update:modelValue": (valor: string) => any;
|
|
1953
|
+
change: (valor: string) => any;
|
|
1930
1954
|
}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
|
|
1931
1955
|
"onUpdate:modelValue"?: (valor: string) => any;
|
|
1956
|
+
onChange?: (valor: string) => any;
|
|
1932
1957
|
}>, {
|
|
1933
1958
|
invalid: boolean;
|
|
1934
1959
|
disabled: boolean;
|
|
@@ -2109,6 +2134,9 @@ declare interface FileItem {
|
|
|
2109
2134
|
file: File;
|
|
2110
2135
|
progress: number;
|
|
2111
2136
|
status: 'uploading' | 'success' | 'error';
|
|
2137
|
+
message?: string;
|
|
2138
|
+
errorLabel?: string;
|
|
2139
|
+
successLabel?: string;
|
|
2112
2140
|
}
|
|
2113
2141
|
|
|
2114
2142
|
declare type FormatDate = 'yyyy-MM-dd' | 'dd/MM/yyyy' | 'timestamp' | 'iso' | 'string';
|
|
@@ -2137,6 +2165,7 @@ declare interface IBreadcrumbsProps {
|
|
|
2137
2165
|
declare interface ICollapse {
|
|
2138
2166
|
index: number;
|
|
2139
2167
|
value: boolean;
|
|
2168
|
+
item: unknown;
|
|
2140
2169
|
}
|
|
2141
2170
|
|
|
2142
2171
|
declare interface IData<T = unknown> {
|
|
@@ -2163,7 +2192,7 @@ declare interface IDropzone {
|
|
|
2163
2192
|
/** limpa a lista de arquivos */
|
|
2164
2193
|
clear?: boolean;
|
|
2165
2194
|
/** Variante do componente */
|
|
2166
|
-
variant?: 'primary' | 'secondary';
|
|
2195
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
2167
2196
|
/** Simula o progresso do upload */
|
|
2168
2197
|
simulateProgress?: boolean;
|
|
2169
2198
|
/** Exibe ou oculta a barra de progresso */
|
|
@@ -2180,6 +2209,27 @@ declare interface IDropzone {
|
|
|
2180
2209
|
rounded?: 'md' | 'lg' | 'xl';
|
|
2181
2210
|
/** Prop utilizada para atualizar o progresso quando simulateProgress é false */
|
|
2182
2211
|
file?: FileItem | null;
|
|
2212
|
+
/** Título da variante terciária */
|
|
2213
|
+
tertiaryVariantTitle?: string;
|
|
2214
|
+
/** Texto de ajuda */
|
|
2215
|
+
hint?: string;
|
|
2216
|
+
/** Texto para ser um erro */
|
|
2217
|
+
invalidFeedback?: string;
|
|
2218
|
+
/** Aciona manualmente o estado de erro */
|
|
2219
|
+
invalid?: boolean;
|
|
2220
|
+
/** Se o input deve reservar espaço para feedback de erro */
|
|
2221
|
+
reserveSpaceFeedback?: boolean;
|
|
2222
|
+
/** Se deve mostrar o arquivo enviado */
|
|
2223
|
+
showUploadedFile?: boolean;
|
|
2224
|
+
/** Nome do arquivo para ser removido */
|
|
2225
|
+
removableFileName?: string;
|
|
2226
|
+
/** Exibi o botão de remover arquivo */
|
|
2227
|
+
showRemoveButton?: boolean;
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
declare interface IFields {
|
|
2231
|
+
field: string;
|
|
2232
|
+
value: string | number | boolean;
|
|
2183
2233
|
}
|
|
2184
2234
|
|
|
2185
2235
|
declare interface IItems {
|
|
@@ -2285,6 +2335,8 @@ declare type PaginationProps = {
|
|
|
2285
2335
|
totalItems?: number;
|
|
2286
2336
|
/** Valor do currentPage para two-way binding (v-model) */
|
|
2287
2337
|
modelValue?: number;
|
|
2338
|
+
/** Número de páginas exibidas na paginação */
|
|
2339
|
+
paginationPages?: number;
|
|
2288
2340
|
};
|
|
2289
2341
|
|
|
2290
2342
|
declare interface Props {
|