@comercti/vue-components 0.13.0 → 0.14.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 +9 -6
- package/comerc-style-guide.es.js +2316 -2212
- package/comerc-style-guide.umd.js +9 -6
- package/index.d.ts +40 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -766,6 +766,8 @@ declare type __VLS_Props_8 = {
|
|
|
766
766
|
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date';
|
|
767
767
|
/** ID única do input */
|
|
768
768
|
id?: string;
|
|
769
|
+
/** Máscara do input (cpf, cnpj, cel, tel, date, cep) */
|
|
770
|
+
mask?: 'cpf' | 'cnpj' | 'cel' | 'tel' | 'cep';
|
|
769
771
|
/** Texto do placeholder do input */
|
|
770
772
|
placeholder?: string;
|
|
771
773
|
/** Texto da label exibida acima do input */
|
|
@@ -1722,6 +1724,20 @@ export declare const CeTab: __VLS_WithTemplateSlots_13<typeof __VLS_component_13
|
|
|
1722
1724
|
|
|
1723
1725
|
export declare const CeTabItem: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
|
|
1724
1726
|
|
|
1727
|
+
export declare const CeTextarea: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1728
|
+
"update:modelValue": (value: string) => any;
|
|
1729
|
+
input: (value: string) => any;
|
|
1730
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
1731
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1732
|
+
onInput?: (value: string) => any;
|
|
1733
|
+
}>, {
|
|
1734
|
+
invalid: boolean;
|
|
1735
|
+
modelValue: string;
|
|
1736
|
+
disabled: boolean;
|
|
1737
|
+
reserveSpaceFeedback: boolean;
|
|
1738
|
+
clearButton: boolean;
|
|
1739
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1740
|
+
|
|
1725
1741
|
export declare const CeToast: DefineComponent<IToastProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1726
1742
|
sendData: (data: IData_2<unknown>) => any;
|
|
1727
1743
|
}, string, PublicProps, Readonly<IToastProps> & Readonly<{
|
|
@@ -1925,6 +1941,29 @@ declare type PaginationProps = {
|
|
|
1925
1941
|
modelValue?: number;
|
|
1926
1942
|
};
|
|
1927
1943
|
|
|
1944
|
+
declare interface Props {
|
|
1945
|
+
/** Valor do textarea para two-way binding (v-model) */
|
|
1946
|
+
modelValue: string;
|
|
1947
|
+
/** Texto da label exibida acima do textarea */
|
|
1948
|
+
label?: string;
|
|
1949
|
+
/** Desativa o textarea */
|
|
1950
|
+
disabled?: boolean;
|
|
1951
|
+
/** Indica se o textarea é inválido */
|
|
1952
|
+
invalid?: boolean;
|
|
1953
|
+
/** Mensagem de feedback para o usuário quando o textarea é inválido */
|
|
1954
|
+
invalidFeedback?: string;
|
|
1955
|
+
/** Texto exibido como placeholder no textarea */
|
|
1956
|
+
placeholder?: string;
|
|
1957
|
+
/** Limite máximo de caracteres permitidos no textarea */
|
|
1958
|
+
maxlength?: number;
|
|
1959
|
+
/** Texto de ajuda exibido abaixo do textarea */
|
|
1960
|
+
hint?: string;
|
|
1961
|
+
/** Reserva espaço para mensagens de feedback, evitando mudanças de layout */
|
|
1962
|
+
reserveSpaceFeedback?: boolean;
|
|
1963
|
+
/** Exibe um botão para limpar o conteúdo do textarea */
|
|
1964
|
+
clearButton?: boolean;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1928
1967
|
export declare const removeCeToast: (id: number) => void;
|
|
1929
1968
|
|
|
1930
1969
|
declare interface SelectOption {
|
|
@@ -2007,6 +2046,7 @@ declare module 'vue' {
|
|
|
2007
2046
|
'ce-toggle': typeof ToggleComponent;
|
|
2008
2047
|
'ce-button-wrapper': typeof ButtonWrapperComponent;
|
|
2009
2048
|
'ce-button-pagination': typeof ButtonPaginationComponent;
|
|
2049
|
+
'ce-textarea': typeof TextareaComponent;
|
|
2010
2050
|
}
|
|
2011
2051
|
}
|
|
2012
2052
|
|