@comercti/react-components 0.21.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 +27 -27
- package/comerc-style-guide.es.js +2388 -2213
- package/comerc-style-guide.umd.js +27 -27
- package/index.d.ts +77 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ compact: boolean;
|
|
|
34
34
|
loading: boolean;
|
|
35
35
|
loadingType: "spinner" | "semi-circle" | "dots";
|
|
36
36
|
truncated: boolean;
|
|
37
|
+
copyable: boolean;
|
|
37
38
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
38
39
|
rootRef: HTMLDivElement;
|
|
39
40
|
}, HTMLDivElement>;
|
|
@@ -207,6 +208,19 @@ openMenu: boolean;
|
|
|
207
208
|
layout: "default" | "base" | "minimal";
|
|
208
209
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
209
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
|
+
|
|
210
224
|
declare const __VLS_component_3: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
211
225
|
|
|
212
226
|
declare const __VLS_component_4: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -532,17 +546,11 @@ declare type __VLS_Props_19 = {
|
|
|
532
546
|
};
|
|
533
547
|
|
|
534
548
|
declare type __VLS_Props_2 = {
|
|
535
|
-
/** Define o label do componente */
|
|
536
549
|
label: string;
|
|
537
|
-
/** Define os valores exibidos no select */
|
|
538
550
|
options: number[];
|
|
539
|
-
/** Desabilita o componente */
|
|
540
551
|
disabled?: boolean;
|
|
541
|
-
/** Define a direção do texto */
|
|
542
552
|
textDirection?: 'left' | 'right';
|
|
543
|
-
/** Define o valor selecionado */
|
|
544
553
|
modelValue: number;
|
|
545
|
-
/**Define a posição de abertura das opções */
|
|
546
554
|
position?: 'top' | 'bottom';
|
|
547
555
|
};
|
|
548
556
|
|
|
@@ -710,6 +718,15 @@ declare type __VLS_Props_34 = {
|
|
|
710
718
|
}[];
|
|
711
719
|
};
|
|
712
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
|
+
|
|
713
730
|
declare type __VLS_Props_4 = {
|
|
714
731
|
/** Tipo do button (`attrs:to` ou `attrs:href` podem sobrepor essa regra) */
|
|
715
732
|
type?: 'button' | 'submit' | 'a';
|
|
@@ -826,6 +843,8 @@ declare function __VLS_template(): {
|
|
|
826
843
|
slots: Readonly<NonNullable<{
|
|
827
844
|
[key: string]: (props: {
|
|
828
845
|
item: Record<string, any>;
|
|
846
|
+
indexItem: number;
|
|
847
|
+
indexHeader: number;
|
|
829
848
|
}) => VNode[];
|
|
830
849
|
} & {
|
|
831
850
|
/**Slot usado para exibir a paginação da tabela */
|
|
@@ -845,6 +864,8 @@ declare function __VLS_template(): {
|
|
|
845
864
|
}>> & {
|
|
846
865
|
[key: string]: (props: {
|
|
847
866
|
item: Record<string, any>;
|
|
867
|
+
indexItem: number;
|
|
868
|
+
indexHeader: number;
|
|
848
869
|
}) => VNode[];
|
|
849
870
|
} & {
|
|
850
871
|
/**Slot usado para exibir a paginação da tabela */
|
|
@@ -1169,6 +1190,33 @@ declare function __VLS_template_26(): {
|
|
|
1169
1190
|
rootEl: any;
|
|
1170
1191
|
};
|
|
1171
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
|
+
|
|
1172
1220
|
declare function __VLS_template_3(): {
|
|
1173
1221
|
attrs: Partial<{}>;
|
|
1174
1222
|
slots: {
|
|
@@ -1351,6 +1399,8 @@ declare type __VLS_TemplateResult_25 = ReturnType<typeof __VLS_template_25>;
|
|
|
1351
1399
|
|
|
1352
1400
|
declare type __VLS_TemplateResult_26 = ReturnType<typeof __VLS_template_26>;
|
|
1353
1401
|
|
|
1402
|
+
declare type __VLS_TemplateResult_27 = ReturnType<typeof __VLS_template_27>;
|
|
1403
|
+
|
|
1354
1404
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
1355
1405
|
|
|
1356
1406
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
@@ -1479,6 +1529,12 @@ declare type __VLS_WithTemplateSlots_26<T, S> = T & {
|
|
|
1479
1529
|
};
|
|
1480
1530
|
};
|
|
1481
1531
|
|
|
1532
|
+
declare type __VLS_WithTemplateSlots_27<T, S> = T & {
|
|
1533
|
+
new (): {
|
|
1534
|
+
$slots: S;
|
|
1535
|
+
};
|
|
1536
|
+
};
|
|
1537
|
+
|
|
1482
1538
|
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
1483
1539
|
new (): {
|
|
1484
1540
|
$slots: S;
|
|
@@ -1555,6 +1611,8 @@ export declare const CeCheckboxGroup: default_2.ComponentType<typeof _default_13
|
|
|
1555
1611
|
|
|
1556
1612
|
export declare const CeCol: default_2.ComponentType<typeof _default_22>;
|
|
1557
1613
|
|
|
1614
|
+
export declare const CeCollapse: default_2.ComponentType<typeof _default_46>;
|
|
1615
|
+
|
|
1558
1616
|
export declare const CeContainer: default_2.ComponentType<typeof _default_24>;
|
|
1559
1617
|
|
|
1560
1618
|
export declare const CeContentDivider: default_2.ComponentType<typeof _default_42>;
|
|
@@ -1688,6 +1746,8 @@ declare type DataTableProps = {
|
|
|
1688
1746
|
truncated?: boolean;
|
|
1689
1747
|
/** String com as diretivas tailwind a serem aplicadas ao slot pagination */
|
|
1690
1748
|
paginationStyle?: string;
|
|
1749
|
+
/** Habilita a funcionalidade de copiar o conteúdo da célula ao clicar */
|
|
1750
|
+
copyable?: boolean;
|
|
1691
1751
|
};
|
|
1692
1752
|
|
|
1693
1753
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1899,6 +1959,8 @@ declare const _default_44: __VLS_WithTemplateSlots_26<typeof __VLS_component_26,
|
|
|
1899
1959
|
|
|
1900
1960
|
declare const _default_45: DefineComponent<__VLS_Props_34, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_34> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1901
1961
|
|
|
1962
|
+
declare const _default_46: __VLS_WithTemplateSlots_27<typeof __VLS_component_27, __VLS_TemplateResult_27["slots"]>;
|
|
1963
|
+
|
|
1902
1964
|
declare const _default_5: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1903
1965
|
"update:modelValue": (value: number) => any;
|
|
1904
1966
|
updatePerPage: (value: number) => any;
|
|
@@ -1911,7 +1973,9 @@ textDirection: "left" | "right";
|
|
|
1911
1973
|
position: "top" | "bottom";
|
|
1912
1974
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1913
1975
|
menuRef: HTMLDivElement;
|
|
1914
|
-
|
|
1976
|
+
referenceRef: HTMLButtonElement;
|
|
1977
|
+
dropdownRef: HTMLUListElement;
|
|
1978
|
+
}, any>;
|
|
1915
1979
|
|
|
1916
1980
|
declare const _default_6: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1917
1981
|
"update:modelValue": (value: string) => any;
|
|
@@ -1989,6 +2053,11 @@ declare interface IBreadcrumbsProps {
|
|
|
1989
2053
|
variant?: 'primary' | 'secondary' | 'text';
|
|
1990
2054
|
}
|
|
1991
2055
|
|
|
2056
|
+
declare interface ICollapse {
|
|
2057
|
+
index: number;
|
|
2058
|
+
value: boolean;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
1992
2061
|
declare interface IData_2<T = unknown> {
|
|
1993
2062
|
[key: string]: T;
|
|
1994
2063
|
}
|
|
@@ -2256,5 +2325,6 @@ declare module 'vue' {
|
|
|
2256
2325
|
'ce-footer': typeof FooterComponent;
|
|
2257
2326
|
'ce-layout': typeof LayoutComponent;
|
|
2258
2327
|
'ce-section-footer': typeof SectionFooterComponent;
|
|
2328
|
+
'ce-collapse': typeof CollapseComponent;
|
|
2259
2329
|
}
|
|
2260
2330
|
}
|