@comercti/react-components-hmg 0.10.22 → 0.15.4

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
@@ -134,8 +134,8 @@ close: (value: boolean) => any;
134
134
  }, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{
135
135
  onClose?: (value: boolean) => any;
136
136
  }>, {
137
- rounded: boolean;
138
137
  background: "white" | "green";
138
+ rounded: boolean;
139
139
  position: "top" | "bottom";
140
140
  isOpen: boolean;
141
141
  showIcon: boolean;
@@ -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: Event) => any;
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: Event) => any;
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";
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,9 +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';
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 (Exemplo de formato esperado: ###.###.###-##)*/
354
+ mask?: string | string[];
353
355
  /** Texto do placeholder do input */
354
356
  placeholder?: string;
355
357
  /** Texto da label exibida acima do input */
@@ -1520,39 +1522,39 @@ export declare const activateCeLoading: () => void;
1520
1522
 
1521
1523
  export declare const addCeToast: (title: string, message: string, type: "success" | "error" | "warn" | "info", duration?: number, data?: IData | null) => void;
1522
1524
 
1523
- export declare const CeAutocomplete: default_2.ComponentType<typeof _default_6>;
1525
+ export declare const CeAutocomplete: default_2.ComponentType<typeof _default_7>;
1524
1526
 
1525
- export declare const CeAvatar: default_2.ComponentType<typeof _default_30>;
1527
+ export declare const CeAvatar: default_2.ComponentType<typeof _default_31>;
1526
1528
 
1527
- export declare const CeBadge: default_2.ComponentType<typeof _default_32>;
1529
+ export declare const CeBadge: default_2.ComponentType<typeof _default_33>;
1528
1530
 
1529
- export declare const CeBanners: default_2.ComponentType<typeof _default_34>;
1531
+ export declare const CeBanners: default_2.ComponentType<typeof _default_35>;
1530
1532
 
1531
- export declare const CeBreadcrumbs: default_2.ComponentType<typeof _default_27>;
1533
+ export declare const CeBreadcrumbs: default_2.ComponentType<typeof _default_28>;
1532
1534
 
1533
- export declare const CeButton: default_2.ComponentType<typeof _default_7>;
1535
+ export declare const CeButton: default_2.ComponentType<typeof _default_8>;
1534
1536
 
1535
- export declare const CeButtonGroup: default_2.ComponentType<typeof _default_8>;
1537
+ export declare const CeButtonGroup: default_2.ComponentType<typeof _default_9>;
1536
1538
 
1537
- export declare const CeButtonPagination: default_2.ComponentType<typeof _default_9>;
1539
+ export declare const CeButtonPagination: default_2.ComponentType<typeof _default_10>;
1538
1540
 
1539
- export declare const CeButtonWrapper: default_2.ComponentType<typeof _default_10>;
1541
+ export declare const CeButtonWrapper: default_2.ComponentType<typeof _default_11>;
1540
1542
 
1541
- export declare const CeCard: default_2.ComponentType<typeof _default_38>;
1543
+ export declare const CeCard: default_2.ComponentType<typeof _default_39>;
1542
1544
 
1543
- export declare const CeCardHeader: default_2.ComponentType<typeof _default_39>;
1545
+ export declare const CeCardHeader: default_2.ComponentType<typeof _default_40>;
1544
1546
 
1545
- export declare const CeCardText: default_2.ComponentType<typeof _default_40>;
1547
+ export declare const CeCardText: default_2.ComponentType<typeof _default_41>;
1546
1548
 
1547
- export declare const CeCheckbox: default_2.ComponentType<typeof _default_11>;
1549
+ export declare const CeCheckbox: default_2.ComponentType<typeof _default_12>;
1548
1550
 
1549
- export declare const CeCheckboxGroup: default_2.ComponentType<typeof _default_12>;
1551
+ export declare const CeCheckboxGroup: default_2.ComponentType<typeof _default_13>;
1550
1552
 
1551
- export declare const CeCol: default_2.ComponentType<typeof _default_21>;
1553
+ export declare const CeCol: default_2.ComponentType<typeof _default_22>;
1552
1554
 
1553
- export declare const CeContainer: default_2.ComponentType<typeof _default_23>;
1555
+ export declare const CeContainer: default_2.ComponentType<typeof _default_24>;
1554
1556
 
1555
- export declare const CeContentDivider: default_2.ComponentType<typeof _default_41>;
1557
+ export declare const CeContentDivider: default_2.ComponentType<typeof _default_42>;
1556
1558
 
1557
1559
  export declare const CeDataTable: default_2.ComponentType<typeof _default & CeDataTableVueSlots>;
1558
1560
 
@@ -1560,29 +1562,29 @@ declare type CeDataTableVueSlots = {
1560
1562
  [slotName: string]: ((ctx: any) => default_2.ReactNode) | default_2.ReactNode;
1561
1563
  };
1562
1564
 
1563
- export declare const CeDatePicker: default_2.ComponentType<typeof _default_13>;
1565
+ export declare const CeDatePicker: default_2.ComponentType<typeof _default_14>;
1564
1566
 
1565
- export declare const CeDropdown: default_2.ComponentType<typeof _default_14>;
1567
+ export declare const CeDropdown: default_2.ComponentType<typeof _default_15>;
1566
1568
 
1567
- export declare const CeFileUpload: default_2.ComponentType<typeof _default_15>;
1569
+ export declare const CeFileUpload: default_2.ComponentType<typeof _default_16>;
1568
1570
 
1569
- export declare const CeFilterGroup: default_2.ComponentType<typeof _default_31>;
1571
+ export declare const CeFilterGroup: default_2.ComponentType<typeof _default_32>;
1570
1572
 
1571
- export declare const CeFooter: default_2.ComponentType<typeof _default_42>;
1573
+ export declare const CeFooter: default_2.ComponentType<typeof _default_43>;
1572
1574
 
1573
- export declare const CeInput: default_2.ComponentType<typeof _default_16>;
1575
+ export declare const CeInput: default_2.ComponentType<typeof _default_17>;
1574
1576
 
1575
1577
  export declare const CeItemsPerPage: default_2.ComponentType<typeof _default_5>;
1576
1578
 
1577
- export declare const CeLayout: default_2.ComponentType<typeof _default_43>;
1579
+ export declare const CeLayout: default_2.ComponentType<typeof _default_44>;
1578
1580
 
1579
- export declare const CeLoading: default_2.ComponentType<typeof _default_37>;
1581
+ export declare const CeLoading: default_2.ComponentType<typeof _default_38>;
1580
1582
 
1581
- export declare const CeMenuHeader: default_2.ComponentType<typeof _default_25>;
1583
+ export declare const CeMenuHeader: default_2.ComponentType<typeof _default_26>;
1582
1584
 
1583
- export declare const CeMenuSidebar: default_2.ComponentType<typeof _default_26>;
1585
+ export declare const CeMenuSidebar: default_2.ComponentType<typeof _default_27>;
1584
1586
 
1585
- export declare const CeModal: default_2.ComponentType<typeof _default_35>;
1587
+ export declare const CeModal: default_2.ComponentType<typeof _default_36>;
1586
1588
 
1587
1589
  export declare const CePagination: default_2.ComponentType<typeof _default_2>;
1588
1590
 
@@ -1590,13 +1592,13 @@ export declare const CeProgressIndicator: default_2.ComponentType<typeof _defaul
1590
1592
 
1591
1593
  export declare const CeProgressSteps: default_2.ComponentType<typeof _default_4>;
1592
1594
 
1593
- export declare const CeRadioGroup: default_2.ComponentType<typeof _default_17>;
1595
+ export declare const CeRadioGroup: default_2.ComponentType<typeof _default_18>;
1594
1596
 
1595
- export declare const CeRow: default_2.ComponentType<typeof _default_22>;
1597
+ export declare const CeRow: default_2.ComponentType<typeof _default_23>;
1596
1598
 
1597
- export declare const CeSectionFooter: default_2.ComponentType<typeof _default_44>;
1599
+ export declare const CeSectionFooter: default_2.ComponentType<typeof _default_45>;
1598
1600
 
1599
- export declare const CeSelect: default_2.ComponentType<typeof _default_18>;
1601
+ export declare const CeSelect: default_2.ComponentType<typeof _default_19>;
1600
1602
 
1601
1603
  declare interface CeSelectFieldProps {
1602
1604
  /** Valor do select para two-way binding (v-model) */
@@ -1627,19 +1629,21 @@ declare interface CeSelectFieldProps {
1627
1629
  reserveSpaceFeedback?: boolean;
1628
1630
  }
1629
1631
 
1630
- export declare const CeSlider: default_2.ComponentType<typeof _default_19>;
1632
+ export declare const CeSlider: default_2.ComponentType<typeof _default_20>;
1633
+
1634
+ export declare const CeSvgIcon: default_2.ComponentType<typeof _default_25>;
1631
1635
 
1632
- export declare const CeSvgIcon: default_2.ComponentType<typeof _default_24>;
1636
+ export declare const CeTab: default_2.ComponentType<typeof _default_29>;
1633
1637
 
1634
- export declare const CeTab: default_2.ComponentType<typeof _default_28>;
1638
+ export declare const CeTabItem: default_2.ComponentType<typeof _default_30>;
1635
1639
 
1636
- export declare const CeTabItem: default_2.ComponentType<typeof _default_29>;
1640
+ export declare const CeTextarea: default_2.ComponentType<typeof _default_6>;
1637
1641
 
1638
- export declare const CeToast: default_2.ComponentType<typeof _default_33>;
1642
+ export declare const CeToast: default_2.ComponentType<typeof _default_34>;
1639
1643
 
1640
- export declare const CeToggle: default_2.ComponentType<typeof _default_20>;
1644
+ export declare const CeToggle: default_2.ComponentType<typeof _default_21>;
1641
1645
 
1642
- export declare const CeTooltip: default_2.ComponentType<typeof _default_36>;
1646
+ export declare const CeTooltip: default_2.ComponentType<typeof _default_37>;
1643
1647
 
1644
1648
  declare interface Coluna {
1645
1649
  text: string;
@@ -1647,7 +1651,17 @@ declare interface Coluna {
1647
1651
  }
1648
1652
 
1649
1653
  declare type DataTableProps = {
1650
- /** 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
+ */
1651
1665
  headers: Header[];
1652
1666
  /** Ativa a opção de selecinar os conteúdos da tabela */
1653
1667
  selectable?: boolean;
@@ -1673,9 +1687,20 @@ declare type DataTableProps = {
1673
1687
 
1674
1688
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1675
1689
 
1676
- declare const _default_10: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1690
+ declare const _default_10: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1691
+ "update:modelValue": (value: number | CustomEvent<any>) => any;
1692
+ updateCurrentPage: (page: number) => any;
1693
+ }, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
1694
+ "onUpdate:modelValue"?: (value: number | CustomEvent<any>) => any;
1695
+ onUpdateCurrentPage?: (page: number) => any;
1696
+ }>, {
1697
+ currentPage: number;
1698
+ totalPage: number;
1699
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1700
+
1701
+ declare const _default_11: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1677
1702
 
1678
- declare const _default_11: DefineComponent<__VLS_Props_7, {
1703
+ declare const _default_12: DefineComponent<__VLS_Props_7, {
1679
1704
  /** Focus checkbox input */
1680
1705
  focus: () => void;
1681
1706
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -1696,13 +1721,13 @@ reserveSpaceFeedback: boolean;
1696
1721
  inputRef: HTMLInputElement;
1697
1722
  }, any>;
1698
1723
 
1699
- declare const _default_12: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1724
+ declare const _default_13: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1700
1725
 
1701
- declare const _default_13: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1726
+ declare const _default_14: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1702
1727
 
1703
- declare const _default_14: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1728
+ declare const _default_15: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1704
1729
 
1705
- declare const _default_15: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1730
+ declare const _default_16: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1706
1731
  "update:modelValue": (file: FileItem[]) => any;
1707
1732
  updateFiles: (file: FileItem[]) => any;
1708
1733
  }, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{
@@ -1718,9 +1743,9 @@ maxFileSize: number;
1718
1743
  selectAll: boolean;
1719
1744
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1720
1745
 
1721
- declare const _default_16: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1746
+ declare const _default_17: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1722
1747
 
1723
- declare const _default_17: DefineComponent<__VLS_Props_12, {
1748
+ declare const _default_18: DefineComponent<__VLS_Props_12, {
1724
1749
  /** Focus radio input */
1725
1750
  focus: (id?: string) => void;
1726
1751
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -1736,9 +1761,21 @@ block: boolean;
1736
1761
  row: boolean;
1737
1762
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1738
1763
 
1739
- declare const _default_18: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1764
+ declare const _default_19: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1765
+
1766
+ declare const _default_2: DefineComponent<PaginationProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1767
+ "update:modelValue": (value: number) => any;
1768
+ paginate: (value: number) => any;
1769
+ }, string, PublicProps, Readonly<PaginationProps> & Readonly<{
1770
+ "onUpdate:modelValue"?: (value: number) => any;
1771
+ onPaginate?: (value: number) => any;
1772
+ }>, {
1773
+ totalPages: number;
1774
+ currentPage: number;
1775
+ itemsPerPage: number;
1776
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1740
1777
 
1741
- declare const _default_19: DefineComponent<SliderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1778
+ declare const _default_20: DefineComponent<SliderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1742
1779
  "update:modelValue": (value: number | number[]) => any;
1743
1780
  sendValue: (value: number | number[]) => any;
1744
1781
  }, string, PublicProps, Readonly<SliderProps> & Readonly<{
@@ -1753,19 +1790,7 @@ maxValue: number;
1753
1790
  showValue: boolean;
1754
1791
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
1755
1792
 
1756
- declare const _default_2: DefineComponent<PaginationProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1757
- "update:modelValue": (value: number) => any;
1758
- paginate: (value: number) => any;
1759
- }, string, PublicProps, Readonly<PaginationProps> & Readonly<{
1760
- "onUpdate:modelValue"?: (value: number) => any;
1761
- onPaginate?: (value: number) => any;
1762
- }>, {
1763
- totalPages: number;
1764
- currentPage: number;
1765
- itemsPerPage: number;
1766
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1767
-
1768
- declare const _default_20: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1793
+ declare const _default_21: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1769
1794
  "update:modelValue": (value: boolean) => any;
1770
1795
  change: (value: boolean | CustomEvent<any>) => any;
1771
1796
  }, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
@@ -1777,21 +1802,21 @@ disabled: boolean;
1777
1802
  contoured: boolean;
1778
1803
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1779
1804
 
1780
- declare const _default_21: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
1805
+ declare const _default_22: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
1781
1806
 
1782
- declare const _default_22: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1807
+ declare const _default_23: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1783
1808
 
1784
- declare const _default_23: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1809
+ declare const _default_24: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1785
1810
 
1786
- declare const _default_24: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {
1811
+ declare const _default_25: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {
1787
1812
  fill: string;
1788
1813
  color: string;
1789
1814
  size: number | string;
1790
1815
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1791
1816
 
1792
- declare const _default_25: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
1817
+ declare const _default_26: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
1793
1818
 
1794
- declare const _default_26: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1819
+ declare const _default_27: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1795
1820
  redirect: (item: SubMenu | ItensMenu_2) => any;
1796
1821
  toggleMenu: (clicado: boolean) => any;
1797
1822
  }, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{
@@ -1804,21 +1829,21 @@ isSearch: boolean;
1804
1829
  isOpen: boolean;
1805
1830
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1806
1831
 
1807
- declare const _default_27: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
1808
-
1809
- declare const _default_28: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
1832
+ declare const _default_28: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
1810
1833
 
1811
- declare const _default_29: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
1834
+ declare const _default_29: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
1812
1835
 
1813
1836
  declare const _default_3: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1814
1837
 
1815
- declare const _default_30: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
1838
+ declare const _default_30: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
1816
1839
 
1817
- declare const _default_31: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
1840
+ declare const _default_31: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
1818
1841
 
1819
- declare const _default_32: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
1842
+ declare const _default_32: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
1820
1843
 
1821
- declare const _default_33: DefineComponent<IToastProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1844
+ declare const _default_33: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
1845
+
1846
+ declare const _default_34: DefineComponent<IToastProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1822
1847
  sendData: (data: IData_2<unknown>) => any;
1823
1848
  }, string, PublicProps, Readonly<IToastProps> & Readonly<{
1824
1849
  onSendData?: (data: IData_2<unknown>) => any;
@@ -1830,29 +1855,29 @@ showActionButton: boolean;
1830
1855
  textButton: string;
1831
1856
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1832
1857
 
1833
- declare const _default_34: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
1858
+ declare const _default_35: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
1834
1859
 
1835
- declare const _default_35: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
1860
+ declare const _default_36: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
1836
1861
 
1837
- declare const _default_36: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
1862
+ declare const _default_37: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
1838
1863
 
1839
- declare const _default_37: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{}>, {
1864
+ declare const _default_38: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{}>, {
1840
1865
  type: "spinner" | "semi-circle" | "dots";
1841
- showLoading: boolean;
1842
1866
  background: "smoky" | "transparent";
1867
+ showLoading: boolean;
1843
1868
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1844
1869
 
1845
- declare const _default_38: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
1846
-
1847
- declare const _default_39: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
1870
+ declare const _default_39: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
1848
1871
 
1849
1872
  declare const _default_4: DefineComponent<IProgressStepsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IProgressStepsProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1850
1873
 
1851
- declare const _default_40: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
1874
+ declare const _default_40: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
1852
1875
 
1853
- declare const _default_41: __VLS_WithTemplateSlots_25<typeof __VLS_component_25, __VLS_TemplateResult_25["slots"]>;
1876
+ declare const _default_41: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
1854
1877
 
1855
- declare const _default_42: DefineComponent<__VLS_Props_32, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1878
+ declare const _default_42: __VLS_WithTemplateSlots_25<typeof __VLS_component_25, __VLS_TemplateResult_25["slots"]>;
1879
+
1880
+ declare const _default_43: DefineComponent<__VLS_Props_32, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1856
1881
  redirect: (valor?: string) => any;
1857
1882
  }, string, PublicProps, Readonly<__VLS_Props_32> & Readonly<{
1858
1883
  onRedirect?: (valor?: string) => any;
@@ -1861,9 +1886,9 @@ background: "white" | "green";
1861
1886
  variant: "1" | "2" | "3" | "4" | "5";
1862
1887
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1863
1888
 
1864
- declare const _default_43: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
1889
+ declare const _default_44: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
1865
1890
 
1866
- declare const _default_44: DefineComponent<__VLS_Props_34, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_34> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1891
+ declare const _default_45: DefineComponent<__VLS_Props_34, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_34> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1867
1892
 
1868
1893
  declare const _default_5: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1869
1894
  "update:modelValue": (value: number) => any;
@@ -1879,7 +1904,21 @@ position: "top" | "bottom";
1879
1904
  menuRef: HTMLDivElement;
1880
1905
  }, HTMLDivElement>;
1881
1906
 
1882
- declare const _default_6: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1907
+ declare const _default_6: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1908
+ "update:modelValue": (value: string) => any;
1909
+ input: (value: string) => any;
1910
+ }, string, PublicProps, Readonly<Props> & Readonly<{
1911
+ "onUpdate:modelValue"?: (value: string) => any;
1912
+ onInput?: (value: string) => any;
1913
+ }>, {
1914
+ modelValue: string;
1915
+ invalid: boolean;
1916
+ disabled: boolean;
1917
+ reserveSpaceFeedback: boolean;
1918
+ clearButton: boolean;
1919
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1920
+
1921
+ declare const _default_7: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1883
1922
  "update:modelValue": (value: string | CustomEvent<any>) => any;
1884
1923
  filterList: (value: string | CustomEvent<any>) => any;
1885
1924
  clearFilter: () => any;
@@ -1891,9 +1930,9 @@ onClearFilter?: () => any;
1891
1930
  "onInput:focus"?: () => any;
1892
1931
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1893
1932
 
1894
- declare const _default_7: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1933
+ declare const _default_8: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1895
1934
 
1896
- declare const _default_8: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
1935
+ declare const _default_9: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
1897
1936
  id: string | number;
1898
1937
  disabled: boolean;
1899
1938
  text: string;
@@ -1901,17 +1940,6 @@ variant: "text" | "radio";
1901
1940
  selected: number;
1902
1941
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
1903
1942
 
1904
- declare const _default_9: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1905
- "update:modelValue": (value: number | CustomEvent<any>) => any;
1906
- updateCurrentPage: (page: number) => any;
1907
- }, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
1908
- "onUpdate:modelValue"?: (value: number | CustomEvent<any>) => any;
1909
- onUpdateCurrentPage?: (page: number) => any;
1910
- }>, {
1911
- currentPage: number;
1912
- totalPage: number;
1913
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1914
-
1915
1943
  export declare const disableCeLoading: () => void;
1916
1944
 
1917
1945
  declare interface DropdownProps {
@@ -1935,6 +1963,7 @@ declare type Header = {
1935
1963
  text: string;
1936
1964
  value: string | ((item: Record<string, unknown>) => string);
1937
1965
  sortable?: boolean;
1966
+ width?: string;
1938
1967
  };
1939
1968
 
1940
1969
  declare interface IBreadcrumbsProps {
@@ -2048,13 +2077,40 @@ declare interface optsRadio {
2048
2077
 
2049
2078
  declare type PaginationProps = {
2050
2079
  /** Total de páginas */
2051
- totalPages: number;
2080
+ totalPages?: number;
2052
2081
  /** Página atual */
2053
2082
  currentPage: number;
2054
2083
  /** Itens por página */
2055
- itemsPerPage: number;
2084
+ itemsPerPage?: number;
2085
+ /** totalItems + itemsPerPage, geram o total de páginas (alternativa ao totalPages) */
2086
+ totalItems?: number;
2087
+ /** Valor do currentPage para two-way binding (v-model) */
2088
+ modelValue?: number;
2056
2089
  };
2057
2090
 
2091
+ declare interface Props {
2092
+ /** Valor do textarea para two-way binding (v-model) */
2093
+ modelValue: string;
2094
+ /** Texto da label exibida acima do textarea */
2095
+ label?: string;
2096
+ /** Desativa o textarea */
2097
+ disabled?: boolean;
2098
+ /** Indica se o textarea é inválido */
2099
+ invalid?: boolean;
2100
+ /** Mensagem de feedback para o usuário quando o textarea é inválido */
2101
+ invalidFeedback?: string;
2102
+ /** Texto exibido como placeholder no textarea */
2103
+ placeholder?: string;
2104
+ /** Limite máximo de caracteres permitidos no textarea */
2105
+ maxlength?: number;
2106
+ /** Texto de ajuda exibido abaixo do textarea */
2107
+ hint?: string;
2108
+ /** Reserva espaço para mensagens de feedback, evitando mudanças de layout */
2109
+ reserveSpaceFeedback?: boolean;
2110
+ /** Exibe um botão para limpar o conteúdo do textarea */
2111
+ clearButton?: boolean;
2112
+ }
2113
+
2058
2114
  export declare const removeCeToast: (id: number) => void;
2059
2115
 
2060
2116
  declare interface SelectOption {
@@ -2137,6 +2193,7 @@ declare module 'vue' {
2137
2193
  'ce-toggle': typeof ToggleComponent;
2138
2194
  'ce-button-wrapper': typeof ButtonWrapperComponent;
2139
2195
  'ce-button-pagination': typeof ButtonPaginationComponent;
2196
+ 'ce-textarea': typeof TextareaComponent;
2140
2197
  }
2141
2198
  }
2142
2199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comercti/react-components-hmg",
3
- "version": "0.10.22",
3
+ "version": "0.15.4",
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",