@comercti/react-components 0.15.0 → 0.20.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/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>;
@@ -255,23 +256,23 @@ dropdownRef: HTMLButtonElement;
255
256
  }, any>;
256
257
 
257
258
  declare const __VLS_component_7: DefineComponent<__VLS_Props_11, {
258
- /** focus input */
259
259
  focus: () => void;
260
+ valorSemMascara: Ref<string | number, string | number>;
260
261
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
261
262
  "update:modelValue": (value: string | number | CustomEvent<any>) => any;
262
263
  change: (value: string | number | CustomEvent<any>) => any;
263
264
  input: (value: string | number | CustomEvent<any>) => any;
264
- blur: (value: Event) => any;
265
+ blur: (value: string | number | CustomEvent<any>) => any;
265
266
  }, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
266
267
  "onUpdate:modelValue"?: (value: string | number | CustomEvent<any>) => any;
267
268
  onChange?: (value: string | number | CustomEvent<any>) => any;
268
269
  onInput?: (value: string | number | CustomEvent<any>) => any;
269
- onBlur?: (value: Event) => any;
270
+ onBlur?: (value: string | number | CustomEvent<any>) => any;
270
271
  }>, {
271
272
  invalid: boolean;
272
273
  disabled: boolean;
273
274
  reserveSpaceFeedback: boolean;
274
- type: "text" | "password" | "email" | "number" | "tel" | "url" | "search" | "date" | "time";
275
+ type: "text" | "password" | "email" | "number" | "tel" | "url" | "search" | "date" | "time" | "datetime-local";
275
276
  rounded: boolean;
276
277
  noAlertIcon: boolean;
277
278
  readonly: boolean;
@@ -339,6 +340,8 @@ declare type __VLS_Props_10 = {
339
340
  maxFileSize?: number;
340
341
  /** habilita a opção de selecionar múltiplos arquivos */
341
342
  selectAll?: boolean;
343
+ /** Mensagem personalizada de tipos de arquivos */
344
+ customMessage?: string[];
342
345
  /** limpa a lista de arquivos */
343
346
  clear: boolean;
344
347
  };
@@ -347,11 +350,11 @@ declare type __VLS_Props_11 = {
347
350
  /** Valor do input para two-way binding (v-model) */
348
351
  modelValue?: string | number | null;
349
352
  /** Tipo do input (text, password, email, etc) */
350
- type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time';
353
+ type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local';
351
354
  /** ID única do input */
352
355
  id?: string;
353
- /** Máscara do input (cpf, cnpj, cel, tel, date, cep) */
354
- mask?: 'cpf' | 'cnpj' | 'cel' | 'tel' | 'cep';
356
+ /** Máscara do input (Exemplo de formato esperado: ###.###.###-##)*/
357
+ mask?: string | string[];
355
358
  /** Texto do placeholder do input */
356
359
  placeholder?: string;
357
360
  /** Texto da label exibida acima do input */
@@ -522,6 +525,8 @@ declare type __VLS_Props_19 = {
522
525
  isSearch?: boolean;
523
526
  /** Se true inicializa o menu aberto */
524
527
  isOpen?: boolean;
528
+ /** Título do menu */
529
+ title?: string;
525
530
  };
526
531
 
527
532
  declare type __VLS_Props_2 = {
@@ -1651,7 +1656,17 @@ declare interface Coluna {
1651
1656
  }
1652
1657
 
1653
1658
  declare type DataTableProps = {
1654
- /** Array utilizado no header da tabela */
1659
+ /** Array utilizado no header da tabela
1660
+ *
1661
+ * text: string
1662
+ *
1663
+ * value: string | ((item: Record<string, unknown>) => string)
1664
+ *
1665
+ * sortable?: boolean
1666
+ *
1667
+ * width?: string
1668
+ *
1669
+ */
1655
1670
  headers: Header[];
1656
1671
  /** Ativa a opção de selecinar os conteúdos da tabela */
1657
1672
  selectable?: boolean;
@@ -1673,6 +1688,10 @@ declare type DataTableProps = {
1673
1688
  loadingType?: 'spinner' | 'semi-circle' | 'dots';
1674
1689
  /** Define se o texto das células será truncado */
1675
1690
  truncated?: boolean;
1691
+ /** String com as diretivas tailwind a serem aplicadas ao slot pagination */
1692
+ paginationStyle?: string;
1693
+ /** Habilita a funcionalidade de copiar o conteúdo da célula ao clicar nela */
1694
+ copyable?: boolean;
1676
1695
  };
1677
1696
 
1678
1697
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1731,7 +1750,10 @@ multiple: boolean;
1731
1750
  maxFile: number;
1732
1751
  maxFileSize: number;
1733
1752
  selectAll: boolean;
1734
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1753
+ customMessage: string[];
1754
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
1755
+ inputFile: HTMLInputElement;
1756
+ }, HTMLDivElement>;
1735
1757
 
1736
1758
  declare const _default_17: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1737
1759
 
@@ -1813,6 +1835,7 @@ toggleMenu: (clicado: boolean) => any;
1813
1835
  onRedirect?: (item: SubMenu | ItensMenu_2) => any;
1814
1836
  onToggleMenu?: (clicado: boolean) => any;
1815
1837
  }>, {
1838
+ title: string;
1816
1839
  itemsSearch: ItensMenu_2[];
1817
1840
  isHome: boolean;
1818
1841
  isSearch: boolean;
@@ -1953,6 +1976,7 @@ declare type Header = {
1953
1976
  text: string;
1954
1977
  value: string | ((item: Record<string, unknown>) => string);
1955
1978
  sortable?: boolean;
1979
+ width?: string;
1956
1980
  };
1957
1981
 
1958
1982
  declare interface IBreadcrumbsProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comercti/react-components",
3
- "version": "0.15.0",
3
+ "version": "0.20.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",