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