@comercti/react-components-hmg 0.22.15 → 0.23.2
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 +1618 -1541
- package/comerc-style-guide.umd.js +8 -5
- package/index.d.ts +23 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -272,8 +272,9 @@ type: "menu" | "selection";
|
|
|
272
272
|
background: "white" | "black";
|
|
273
273
|
itemsMenu: ItensMenu_2[];
|
|
274
274
|
itemsSelection: ItemsSelection[];
|
|
275
|
+
allowRedirect: boolean;
|
|
275
276
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
276
|
-
dropdownRef:
|
|
277
|
+
dropdownRef: HTMLDivElement[];
|
|
277
278
|
}, any>;
|
|
278
279
|
|
|
279
280
|
declare const __VLS_component_7: DefineComponent<IDropzone, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -283,11 +284,13 @@ updateFiles: (file: FileItem[]) => any;
|
|
|
283
284
|
"onUpdate:modelValue"?: (file: FileItem | File | FileItem[]) => any;
|
|
284
285
|
onUpdateFiles?: (file: FileItem[]) => any;
|
|
285
286
|
}>, {
|
|
287
|
+
invalid: boolean;
|
|
286
288
|
disabled: boolean;
|
|
289
|
+
reserveSpaceFeedback: boolean;
|
|
287
290
|
file: FileItem | null;
|
|
288
291
|
rounded: "md" | "lg" | "xl";
|
|
289
292
|
compact: boolean;
|
|
290
|
-
variant: "primary" | "secondary";
|
|
293
|
+
variant: "primary" | "secondary" | "tertiary";
|
|
291
294
|
clear: boolean;
|
|
292
295
|
accept: string[];
|
|
293
296
|
multiple: boolean;
|
|
@@ -300,6 +303,8 @@ showProgressBar: boolean;
|
|
|
300
303
|
sendRemovedFile: boolean;
|
|
301
304
|
errorLabel: string;
|
|
302
305
|
successLabel: string;
|
|
306
|
+
tertiaryVariantTitle: string;
|
|
307
|
+
showUploadedFile: boolean;
|
|
303
308
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
304
309
|
inputFile: HTMLInputElement;
|
|
305
310
|
}, HTMLDivElement>;
|
|
@@ -1345,7 +1350,7 @@ declare function __VLS_template_6(): {
|
|
|
1345
1350
|
default: () => VNode[];
|
|
1346
1351
|
};
|
|
1347
1352
|
refs: {
|
|
1348
|
-
dropdownRef:
|
|
1353
|
+
dropdownRef: HTMLDivElement[];
|
|
1349
1354
|
};
|
|
1350
1355
|
rootEl: any;
|
|
1351
1356
|
};
|
|
@@ -2100,6 +2105,8 @@ declare interface DropdownProps {
|
|
|
2100
2105
|
type?: 'menu' | 'selection';
|
|
2101
2106
|
/** Define a cor de fundo */
|
|
2102
2107
|
background?: 'white' | 'black';
|
|
2108
|
+
/** Permite redirecionamento */
|
|
2109
|
+
allowRedirect?: boolean;
|
|
2103
2110
|
}
|
|
2104
2111
|
|
|
2105
2112
|
declare interface FileItem {
|
|
@@ -2160,7 +2167,7 @@ declare interface IDropzone {
|
|
|
2160
2167
|
/** limpa a lista de arquivos */
|
|
2161
2168
|
clear?: boolean;
|
|
2162
2169
|
/** Variante do componente */
|
|
2163
|
-
variant?: 'primary' | 'secondary';
|
|
2170
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
2164
2171
|
/** Simula o progresso do upload */
|
|
2165
2172
|
simulateProgress?: boolean;
|
|
2166
2173
|
/** Exibe ou oculta a barra de progresso */
|
|
@@ -2177,6 +2184,18 @@ declare interface IDropzone {
|
|
|
2177
2184
|
rounded?: 'md' | 'lg' | 'xl';
|
|
2178
2185
|
/** Prop utilizada para atualizar o progresso quando simulateProgress é false */
|
|
2179
2186
|
file?: FileItem | null;
|
|
2187
|
+
/** Título da variante terciária */
|
|
2188
|
+
tertiaryVariantTitle?: string;
|
|
2189
|
+
/** Texto de ajuda */
|
|
2190
|
+
hint?: string;
|
|
2191
|
+
/** Texto para ser um erro */
|
|
2192
|
+
invalidFeedback?: string;
|
|
2193
|
+
/** Aciona manualmente o estado de erro */
|
|
2194
|
+
invalid?: boolean;
|
|
2195
|
+
/** Se o input deve reservar espaço para feedback de erro */
|
|
2196
|
+
reserveSpaceFeedback?: boolean;
|
|
2197
|
+
/** Se deve mostrar o arquivo enviado */
|
|
2198
|
+
showUploadedFile?: boolean;
|
|
2180
2199
|
}
|
|
2181
2200
|
|
|
2182
2201
|
declare interface IItems {
|