@comercti/react-components 0.15.0 → 0.18.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 +28 -28
- package/comerc-style-guide.es.js +2942 -2725
- package/comerc-style-guide.umd.js +27 -27
- package/index.d.ts +19 -8
- package/package.json +2 -1
package/index.d.ts
CHANGED
|
@@ -255,23 +255,23 @@ dropdownRef: HTMLButtonElement;
|
|
|
255
255
|
}, any>;
|
|
256
256
|
|
|
257
257
|
declare const __VLS_component_7: DefineComponent<__VLS_Props_11, {
|
|
258
|
-
/** focus input */
|
|
259
258
|
focus: () => void;
|
|
259
|
+
valorSemMascara: Ref<string | number, string | number>;
|
|
260
260
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
261
261
|
"update:modelValue": (value: string | number | CustomEvent<any>) => any;
|
|
262
262
|
change: (value: string | number | CustomEvent<any>) => any;
|
|
263
263
|
input: (value: string | number | CustomEvent<any>) => any;
|
|
264
|
-
blur: (value:
|
|
264
|
+
blur: (value: string | number | CustomEvent<any>) => any;
|
|
265
265
|
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
266
266
|
"onUpdate:modelValue"?: (value: string | number | CustomEvent<any>) => any;
|
|
267
267
|
onChange?: (value: string | number | CustomEvent<any>) => any;
|
|
268
268
|
onInput?: (value: string | number | CustomEvent<any>) => any;
|
|
269
|
-
onBlur?: (value:
|
|
269
|
+
onBlur?: (value: string | number | CustomEvent<any>) => any;
|
|
270
270
|
}>, {
|
|
271
271
|
invalid: boolean;
|
|
272
272
|
disabled: boolean;
|
|
273
273
|
reserveSpaceFeedback: boolean;
|
|
274
|
-
type: "text" | "password" | "email" | "number" | "tel" | "url" | "search" | "date" | "time";
|
|
274
|
+
type: "text" | "password" | "email" | "number" | "tel" | "url" | "search" | "date" | "time" | "datetime-local";
|
|
275
275
|
rounded: boolean;
|
|
276
276
|
noAlertIcon: boolean;
|
|
277
277
|
readonly: boolean;
|
|
@@ -347,11 +347,11 @@ declare type __VLS_Props_11 = {
|
|
|
347
347
|
/** Valor do input para two-way binding (v-model) */
|
|
348
348
|
modelValue?: string | number | null;
|
|
349
349
|
/** Tipo do input (text, password, email, etc) */
|
|
350
|
-
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time';
|
|
350
|
+
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local';
|
|
351
351
|
/** ID única do input */
|
|
352
352
|
id?: string;
|
|
353
|
-
/** Máscara do input (
|
|
354
|
-
mask?:
|
|
353
|
+
/** Máscara do input (Exemplo de formato esperado: ###.###.###-##)*/
|
|
354
|
+
mask?: string | string[];
|
|
355
355
|
/** Texto do placeholder do input */
|
|
356
356
|
placeholder?: string;
|
|
357
357
|
/** Texto da label exibida acima do input */
|
|
@@ -1651,7 +1651,17 @@ declare interface Coluna {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
|
|
1653
1653
|
declare type DataTableProps = {
|
|
1654
|
-
/** Array utilizado no header da tabela
|
|
1654
|
+
/** Array utilizado no header da tabela
|
|
1655
|
+
*
|
|
1656
|
+
* text: string
|
|
1657
|
+
*
|
|
1658
|
+
* value: string | ((item: Record<string, unknown>) => string)
|
|
1659
|
+
*
|
|
1660
|
+
* sortable?: boolean
|
|
1661
|
+
*
|
|
1662
|
+
* width?: string
|
|
1663
|
+
*
|
|
1664
|
+
*/
|
|
1655
1665
|
headers: Header[];
|
|
1656
1666
|
/** Ativa a opção de selecinar os conteúdos da tabela */
|
|
1657
1667
|
selectable?: boolean;
|
|
@@ -1953,6 +1963,7 @@ declare type Header = {
|
|
|
1953
1963
|
text: string;
|
|
1954
1964
|
value: string | ((item: Record<string, unknown>) => string);
|
|
1955
1965
|
sortable?: boolean;
|
|
1966
|
+
width?: string;
|
|
1956
1967
|
};
|
|
1957
1968
|
|
|
1958
1969
|
declare interface IBreadcrumbsProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comercti/react-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"types": "index.d.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "private",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"@wdns/vue-code-block": "^2.3.5",
|
|
14
14
|
"date-fns": "^4.1.0",
|
|
15
15
|
"highlight.js": "^11.11.1",
|
|
16
|
+
"maska": "^3.2.0",
|
|
16
17
|
"prismjs": "^1.30.0",
|
|
17
18
|
"react": "^17.0.2",
|
|
18
19
|
"react-dom": "^17.0.2",
|