@comercti/react-components-hmg 0.9.9 → 0.10.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 +27 -27
- package/comerc-style-guide.es.js +2873 -2739
- package/comerc-style-guide.umd.js +24 -24
- package/index.d.ts +7 -13
- package/package.json +3 -1
package/index.d.ts
CHANGED
|
@@ -109,10 +109,7 @@ onSubmit?: () => any;
|
|
|
109
109
|
onClear?: () => any;
|
|
110
110
|
}>, {
|
|
111
111
|
title: string;
|
|
112
|
-
color: string;
|
|
113
112
|
variant: "dropdown" | "collapse";
|
|
114
|
-
backgroundColor: string;
|
|
115
|
-
titleColor: string;
|
|
116
113
|
disabledSubmit: boolean;
|
|
117
114
|
disabledClear: boolean;
|
|
118
115
|
showClearButton: boolean;
|
|
@@ -134,9 +131,9 @@ close: (value: boolean) => any;
|
|
|
134
131
|
onClose?: (value: boolean) => any;
|
|
135
132
|
}>, {
|
|
136
133
|
rounded: boolean;
|
|
134
|
+
background: "white" | "green";
|
|
137
135
|
isOpen: boolean;
|
|
138
136
|
position: "top" | "bottom";
|
|
139
|
-
background: "1" | "2";
|
|
140
137
|
showIcon: boolean;
|
|
141
138
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
142
139
|
|
|
@@ -151,6 +148,7 @@ onClick?: (event: MouseEvent) => any;
|
|
|
151
148
|
disabled: boolean;
|
|
152
149
|
block: boolean;
|
|
153
150
|
type: "button" | "submit" | "a";
|
|
151
|
+
size: "xxs" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
154
152
|
rounded: "small" | "medium" | "large";
|
|
155
153
|
variant: tipoVariante;
|
|
156
154
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
@@ -162,8 +160,8 @@ close: (value: boolean) => any;
|
|
|
162
160
|
}, string, PublicProps, Readonly<__VLS_Props_25> & Readonly<{
|
|
163
161
|
onClose?: (value: boolean) => any;
|
|
164
162
|
}>, {
|
|
165
|
-
isOpen: boolean;
|
|
166
163
|
background: "1" | "2";
|
|
164
|
+
isOpen: boolean;
|
|
167
165
|
closeOutside: boolean;
|
|
168
166
|
showCloseButton: boolean;
|
|
169
167
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -554,14 +552,8 @@ declare type __VLS_Props_21 = {
|
|
|
554
552
|
declare type __VLS_Props_22 = {
|
|
555
553
|
/** Define o tipo do filtro */
|
|
556
554
|
variant?: 'dropdown' | 'collapse';
|
|
557
|
-
/** Define a cor do texto e do ícone */
|
|
558
|
-
color?: string;
|
|
559
|
-
/** Define a cor do background */
|
|
560
|
-
backgroundColor?: string;
|
|
561
555
|
/** Define o título do filtro */
|
|
562
556
|
title: string;
|
|
563
|
-
/** Define a cor do título do filtro */
|
|
564
|
-
titleColor?: string;
|
|
565
557
|
/** Define o texto do botão */
|
|
566
558
|
text: string;
|
|
567
559
|
/**Desabilita o botão de submit */
|
|
@@ -591,7 +583,7 @@ declare type __VLS_Props_24 = {
|
|
|
591
583
|
/** Define se o banner abre ou fecha */
|
|
592
584
|
isOpen: boolean;
|
|
593
585
|
/** Define a cor do background */
|
|
594
|
-
background?: '
|
|
586
|
+
background?: 'white' | 'green';
|
|
595
587
|
/** Define o border radius do banner */
|
|
596
588
|
rounded?: boolean;
|
|
597
589
|
/** Define se o icone aparece */
|
|
@@ -701,6 +693,8 @@ declare type __VLS_Props_34 = {
|
|
|
701
693
|
declare type __VLS_Props_4 = {
|
|
702
694
|
/** Tipo do button (`attrs:to` ou `attrs:href` podem sobrepor essa regra) */
|
|
703
695
|
type?: 'button' | 'submit' | 'a';
|
|
696
|
+
/** Tamanho do button */
|
|
697
|
+
size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
704
698
|
/** Variante de cores do button */
|
|
705
699
|
variant?: tipoVariante;
|
|
706
700
|
/** Arredondamento do button */
|
|
@@ -1837,8 +1831,8 @@ redirect: (valor?: string) => any;
|
|
|
1837
1831
|
}, string, PublicProps, Readonly<__VLS_Props_32> & Readonly<{
|
|
1838
1832
|
onRedirect?: (valor?: string) => any;
|
|
1839
1833
|
}>, {
|
|
1840
|
-
variant: "1" | "2" | "3" | "4" | "5";
|
|
1841
1834
|
background: "white" | "green";
|
|
1835
|
+
variant: "1" | "2" | "3" | "4" | "5";
|
|
1842
1836
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1843
1837
|
|
|
1844
1838
|
declare const _default_43: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comercti/react-components-hmg",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"types": "index.d.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "private",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@storybook/addon-onboarding": "8.5.5",
|
|
31
31
|
"@storybook/addon-postcss": "^2.0.0",
|
|
32
32
|
"@storybook/addon-viewport": "^8.5.5",
|
|
33
|
+
"@storybook/addons": "^7.6.17",
|
|
33
34
|
"@storybook/blocks": "8.5.5",
|
|
34
35
|
"@storybook/manager-api": "^8.5.5",
|
|
35
36
|
"@storybook/test": "8.5.5",
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
"prettier": "^3.5.1",
|
|
63
64
|
"storybook": "8.5.5",
|
|
64
65
|
"storybook-addon-vue-mdx": "^1.0.6",
|
|
66
|
+
"storybook-dark-mode": "^4.0.2",
|
|
65
67
|
"tailwindcss": "^3.4.17",
|
|
66
68
|
"typescript": "~5.7.3",
|
|
67
69
|
"vite": "^6.1.0",
|