@comercti/react-components 0.23.0 → 0.25.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 +30 -24
- package/comerc-style-guide.es.js +3162 -2905
- package/comerc-style-guide.umd.js +30 -24
- package/index.d.ts +73 -12
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -217,12 +217,15 @@ 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;
|
|
224
226
|
direction: "row" | "column";
|
|
225
227
|
closeCollapse: number | null;
|
|
228
|
+
openCollapse: number[] | null;
|
|
226
229
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
227
230
|
|
|
228
231
|
declare const __VLS_component_3: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -268,7 +271,7 @@ redirect: (item: ItensMenu_2) => any;
|
|
|
268
271
|
onSelected?: (value: Coluna[]) => any;
|
|
269
272
|
onRedirect?: (item: ItensMenu_2) => any;
|
|
270
273
|
}>, {
|
|
271
|
-
type: "menu" | "selection";
|
|
274
|
+
type: "menu" | "selection" | "button";
|
|
272
275
|
background: "white" | "black";
|
|
273
276
|
itemsMenu: ItensMenu_2[];
|
|
274
277
|
itemsSelection: ItemsSelection[];
|
|
@@ -279,17 +282,23 @@ dropdownRef: HTMLDivElement[];
|
|
|
279
282
|
|
|
280
283
|
declare const __VLS_component_7: DefineComponent<IDropzone, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
281
284
|
"update:modelValue": (file: FileItem | File | FileItem[]) => any;
|
|
285
|
+
delete: (files: FileItem | File | FileItem[]) => any;
|
|
282
286
|
updateFiles: (file: FileItem[]) => any;
|
|
283
287
|
}, string, PublicProps, Readonly<IDropzone> & Readonly<{
|
|
284
288
|
"onUpdate:modelValue"?: (file: FileItem | File | FileItem[]) => any;
|
|
289
|
+
onDelete?: (files: FileItem | File | FileItem[]) => any;
|
|
285
290
|
onUpdateFiles?: (file: FileItem[]) => any;
|
|
286
291
|
}>, {
|
|
292
|
+
invalid: boolean;
|
|
287
293
|
disabled: boolean;
|
|
294
|
+
reserveSpaceFeedback: boolean;
|
|
288
295
|
file: FileItem | null;
|
|
289
296
|
rounded: "md" | "lg" | "xl";
|
|
290
297
|
compact: boolean;
|
|
291
|
-
variant: "primary" | "secondary";
|
|
298
|
+
variant: "primary" | "secondary" | "tertiary";
|
|
292
299
|
clear: boolean;
|
|
300
|
+
errorLabel: string;
|
|
301
|
+
successLabel: string;
|
|
293
302
|
accept: string[];
|
|
294
303
|
multiple: boolean;
|
|
295
304
|
maxFile: number;
|
|
@@ -299,8 +308,9 @@ customMessage: string[];
|
|
|
299
308
|
simulateProgress: boolean;
|
|
300
309
|
showProgressBar: boolean;
|
|
301
310
|
sendRemovedFile: boolean;
|
|
302
|
-
|
|
303
|
-
|
|
311
|
+
tertiaryVariantTitle: string;
|
|
312
|
+
showUploadedFile: boolean;
|
|
313
|
+
showRemoveButton: boolean;
|
|
304
314
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
305
315
|
inputFile: HTMLInputElement;
|
|
306
316
|
}, HTMLDivElement>;
|
|
@@ -443,7 +453,7 @@ declare type __VLS_Props_13 = {
|
|
|
443
453
|
/** ID única do input */
|
|
444
454
|
id?: string;
|
|
445
455
|
/** Valor do input para two-way binding (v-model) */
|
|
446
|
-
modelValue
|
|
456
|
+
modelValue?: string;
|
|
447
457
|
/** Define a quantidade de dígitos do código */
|
|
448
458
|
length: number;
|
|
449
459
|
/** Define se o input deve ser desabilitado */
|
|
@@ -766,12 +776,15 @@ declare type __VLS_Props_34 = {
|
|
|
766
776
|
};
|
|
767
777
|
|
|
768
778
|
declare type __VLS_Props_35 = {
|
|
769
|
-
items: Array<
|
|
779
|
+
items: Array<unknown>;
|
|
770
780
|
openTheFirst?: boolean;
|
|
771
781
|
allOpen?: boolean;
|
|
772
782
|
variant: 'accordion' | 'card' | 'minimal' | 'compact';
|
|
773
783
|
direction?: 'row' | 'column';
|
|
774
784
|
closeCollapse?: number | null;
|
|
785
|
+
disabled?: IFields;
|
|
786
|
+
invalid?: number[];
|
|
787
|
+
openCollapse?: number[] | null;
|
|
775
788
|
};
|
|
776
789
|
|
|
777
790
|
declare type __VLS_Props_4 = {
|
|
@@ -838,6 +851,8 @@ declare type __VLS_Props_7 = {
|
|
|
838
851
|
indeterminate?: boolean;
|
|
839
852
|
/** Se o checkbox deve reservar espaço para feedback de erro */
|
|
840
853
|
reserveSpaceFeedback?: boolean;
|
|
854
|
+
/** Desabilita o clique no checkbox */
|
|
855
|
+
clickDisabled?: boolean;
|
|
841
856
|
};
|
|
842
857
|
|
|
843
858
|
declare type __VLS_Props_8 = {
|
|
@@ -1262,9 +1277,11 @@ declare function __VLS_template_28(): {
|
|
|
1262
1277
|
}) => VNode[];
|
|
1263
1278
|
header?: (props: {
|
|
1264
1279
|
item: Record<string, any>;
|
|
1280
|
+
index: number;
|
|
1265
1281
|
}) => VNode[];
|
|
1266
1282
|
content?: (props: {
|
|
1267
1283
|
item: Record<string, any>;
|
|
1284
|
+
index: number;
|
|
1268
1285
|
}) => VNode[];
|
|
1269
1286
|
}> & {
|
|
1270
1287
|
[key: string]: (props: {
|
|
@@ -1272,9 +1289,11 @@ declare function __VLS_template_28(): {
|
|
|
1272
1289
|
}) => VNode[];
|
|
1273
1290
|
header?: (props: {
|
|
1274
1291
|
item: Record<string, any>;
|
|
1292
|
+
index: number;
|
|
1275
1293
|
}) => VNode[];
|
|
1276
1294
|
content?: (props: {
|
|
1277
1295
|
item: Record<string, any>;
|
|
1296
|
+
index: number;
|
|
1278
1297
|
}) => VNode[];
|
|
1279
1298
|
};
|
|
1280
1299
|
refs: {};
|
|
@@ -1401,6 +1420,8 @@ declare function __VLS_template_9(): {
|
|
|
1401
1420
|
selection?: (props: {
|
|
1402
1421
|
value?: CeSelectFieldProps["modelValue"];
|
|
1403
1422
|
}) => VNode[];
|
|
1423
|
+
/** Slot para customizar a exibição da label do select */
|
|
1424
|
+
'content-label'?: () => VNode[];
|
|
1404
1425
|
}> & {
|
|
1405
1426
|
/** Slot para adicionar conteúdo antes das opções */
|
|
1406
1427
|
'prepend-item'?: () => VNode[];
|
|
@@ -1414,6 +1435,8 @@ declare function __VLS_template_9(): {
|
|
|
1414
1435
|
selection?: (props: {
|
|
1415
1436
|
value?: CeSelectFieldProps["modelValue"];
|
|
1416
1437
|
}) => VNode[];
|
|
1438
|
+
/** Slot para customizar a exibição da label do select */
|
|
1439
|
+
'content-label'?: () => VNode[];
|
|
1417
1440
|
};
|
|
1418
1441
|
refs: {
|
|
1419
1442
|
rootRef: HTMLDivElement;
|
|
@@ -1854,6 +1877,7 @@ disabled: boolean;
|
|
|
1854
1877
|
block: boolean;
|
|
1855
1878
|
indeterminate: boolean;
|
|
1856
1879
|
reserveSpaceFeedback: boolean;
|
|
1880
|
+
clickDisabled: boolean;
|
|
1857
1881
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1858
1882
|
inputRef: HTMLInputElement;
|
|
1859
1883
|
}, any>;
|
|
@@ -1896,6 +1920,7 @@ onPaginate?: (value: number) => any;
|
|
|
1896
1920
|
totalPages: number;
|
|
1897
1921
|
currentPage: number;
|
|
1898
1922
|
itemsPerPage: number;
|
|
1923
|
+
paginationPages: number;
|
|
1899
1924
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1900
1925
|
|
|
1901
1926
|
declare const _default_20: DefineComponent<SliderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -1927,8 +1952,10 @@ contoured: boolean;
|
|
|
1927
1952
|
|
|
1928
1953
|
declare const _default_22: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1929
1954
|
"update:modelValue": (valor: string) => any;
|
|
1955
|
+
change: (valor: string) => any;
|
|
1930
1956
|
}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
|
|
1931
1957
|
"onUpdate:modelValue"?: (valor: string) => any;
|
|
1958
|
+
onChange?: (valor: string) => any;
|
|
1932
1959
|
}>, {
|
|
1933
1960
|
invalid: boolean;
|
|
1934
1961
|
disabled: boolean;
|
|
@@ -2010,7 +2037,10 @@ background: "smoky" | "transparent" | "black";
|
|
|
2010
2037
|
showLoading: boolean;
|
|
2011
2038
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2012
2039
|
|
|
2013
|
-
declare const _default_4: DefineComponent<IProgressStepsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IProgressStepsProps> & Readonly<{}>, {
|
|
2040
|
+
declare const _default_4: DefineComponent<IProgressStepsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IProgressStepsProps> & Readonly<{}>, {
|
|
2041
|
+
position: "horizontal" | "vertical";
|
|
2042
|
+
showInitialStep: boolean;
|
|
2043
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2014
2044
|
|
|
2015
2045
|
declare const _default_40: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
|
|
2016
2046
|
|
|
@@ -2043,8 +2073,8 @@ updatePerPage: (value: number) => any;
|
|
|
2043
2073
|
onUpdatePerPage?: (value: number) => any;
|
|
2044
2074
|
}>, {
|
|
2045
2075
|
disabled: boolean;
|
|
2046
|
-
textDirection: "left" | "right";
|
|
2047
2076
|
position: "top" | "bottom";
|
|
2077
|
+
textDirection: "left" | "right";
|
|
2048
2078
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2049
2079
|
menuRef: HTMLDivElement;
|
|
2050
2080
|
referenceRef: HTMLButtonElement;
|
|
@@ -2098,7 +2128,7 @@ declare interface DropdownProps {
|
|
|
2098
2128
|
/** Define os itens do dropdown tipo seleção */
|
|
2099
2129
|
itemsSelection?: ItemsSelection[];
|
|
2100
2130
|
/** Define o tipo do dropdown */
|
|
2101
|
-
type?: 'menu' | 'selection';
|
|
2131
|
+
type?: 'menu' | 'selection' | 'button';
|
|
2102
2132
|
/** Define a cor de fundo */
|
|
2103
2133
|
background?: 'white' | 'black';
|
|
2104
2134
|
/** Permite redirecionamento */
|
|
@@ -2109,6 +2139,9 @@ declare interface FileItem {
|
|
|
2109
2139
|
file: File;
|
|
2110
2140
|
progress: number;
|
|
2111
2141
|
status: 'uploading' | 'success' | 'error';
|
|
2142
|
+
message?: string;
|
|
2143
|
+
errorLabel?: string;
|
|
2144
|
+
successLabel?: string;
|
|
2112
2145
|
}
|
|
2113
2146
|
|
|
2114
2147
|
declare type FormatDate = 'yyyy-MM-dd' | 'dd/MM/yyyy' | 'timestamp' | 'iso' | 'string';
|
|
@@ -2137,6 +2170,7 @@ declare interface IBreadcrumbsProps {
|
|
|
2137
2170
|
declare interface ICollapse {
|
|
2138
2171
|
index: number;
|
|
2139
2172
|
value: boolean;
|
|
2173
|
+
item: unknown;
|
|
2140
2174
|
}
|
|
2141
2175
|
|
|
2142
2176
|
declare interface IData<T = unknown> {
|
|
@@ -2163,7 +2197,7 @@ declare interface IDropzone {
|
|
|
2163
2197
|
/** limpa a lista de arquivos */
|
|
2164
2198
|
clear?: boolean;
|
|
2165
2199
|
/** Variante do componente */
|
|
2166
|
-
variant?: 'primary' | 'secondary';
|
|
2200
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
2167
2201
|
/** Simula o progresso do upload */
|
|
2168
2202
|
simulateProgress?: boolean;
|
|
2169
2203
|
/** Exibe ou oculta a barra de progresso */
|
|
@@ -2180,6 +2214,27 @@ declare interface IDropzone {
|
|
|
2180
2214
|
rounded?: 'md' | 'lg' | 'xl';
|
|
2181
2215
|
/** Prop utilizada para atualizar o progresso quando simulateProgress é false */
|
|
2182
2216
|
file?: FileItem | null;
|
|
2217
|
+
/** Título da variante terciária */
|
|
2218
|
+
tertiaryVariantTitle?: string;
|
|
2219
|
+
/** Texto de ajuda */
|
|
2220
|
+
hint?: string;
|
|
2221
|
+
/** Texto para ser um erro */
|
|
2222
|
+
invalidFeedback?: string;
|
|
2223
|
+
/** Aciona manualmente o estado de erro */
|
|
2224
|
+
invalid?: boolean;
|
|
2225
|
+
/** Se o input deve reservar espaço para feedback de erro */
|
|
2226
|
+
reserveSpaceFeedback?: boolean;
|
|
2227
|
+
/** Se deve mostrar o arquivo enviado */
|
|
2228
|
+
showUploadedFile?: boolean;
|
|
2229
|
+
/** Nome do arquivo para ser removido */
|
|
2230
|
+
removableFileName?: string;
|
|
2231
|
+
/** Exibi o botão de remover arquivo */
|
|
2232
|
+
showRemoveButton?: boolean;
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
declare interface IFields {
|
|
2236
|
+
field: string;
|
|
2237
|
+
value: string | number | boolean;
|
|
2183
2238
|
}
|
|
2184
2239
|
|
|
2185
2240
|
declare interface IItems {
|
|
@@ -2187,12 +2242,15 @@ declare interface IItems {
|
|
|
2187
2242
|
title: string;
|
|
2188
2243
|
description: string;
|
|
2189
2244
|
status: keyof IStatus;
|
|
2245
|
+
showDescription?: boolean;
|
|
2190
2246
|
}
|
|
2191
2247
|
|
|
2192
2248
|
declare type IProgressStepsProps = {
|
|
2193
2249
|
/** Define os itens que serão exibidos */
|
|
2194
2250
|
items: IItems[];
|
|
2195
|
-
|
|
2251
|
+
position?: 'horizontal' | 'vertical';
|
|
2252
|
+
showInitialStep?: boolean;
|
|
2253
|
+
titleInitialStep?: string;
|
|
2196
2254
|
};
|
|
2197
2255
|
|
|
2198
2256
|
export declare const isMobile: Ref<boolean, boolean>;
|
|
@@ -2285,6 +2343,8 @@ declare type PaginationProps = {
|
|
|
2285
2343
|
totalItems?: number;
|
|
2286
2344
|
/** Valor do currentPage para two-way binding (v-model) */
|
|
2287
2345
|
modelValue?: number;
|
|
2346
|
+
/** Número de páginas exibidas na paginação */
|
|
2347
|
+
paginationPages?: number;
|
|
2288
2348
|
};
|
|
2289
2349
|
|
|
2290
2350
|
declare interface Props {
|
|
@@ -2327,6 +2387,7 @@ declare interface SliderProps {
|
|
|
2327
2387
|
showValue?: boolean;
|
|
2328
2388
|
size?: 'small' | 'large';
|
|
2329
2389
|
modelValue?: number | number[];
|
|
2390
|
+
showPercentage?: boolean;
|
|
2330
2391
|
}
|
|
2331
2392
|
|
|
2332
2393
|
declare interface SubMenu {
|