@nexxtmove/ui 1.7.0 → 1.8.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.
@@ -0,0 +1,49 @@
1
+ export interface NexxtTextareaProps {
2
+ /** Placeholder shown while the field is empty. */
3
+ placeholder?: string;
4
+ /** Label rendered above the field. */
5
+ label?: string;
6
+ /** Put the field in its error state. */
7
+ error?: boolean;
8
+ /** Message shown below the field while `error` is set. */
9
+ errorMessage?: string;
10
+ /** Mark the label with an asterisk. */
11
+ required?: boolean;
12
+ /**
13
+ * Visible rows, and the floor for `autosize`. The field is never shorter than
14
+ * a NexxtInputField, whatever this is set to.
15
+ */
16
+ rows?: number;
17
+ /**
18
+ * Grow with the content instead of scrolling, between `rows` and `maxRows`.
19
+ * Off by default: a field that changes height while typing moves whatever sits
20
+ * below it, so it should be asked for rather than assumed.
21
+ */
22
+ autosize?: boolean;
23
+ /** Upper bound for `autosize`, in rows. Unset means it grows indefinitely. */
24
+ maxRows?: number;
25
+ /**
26
+ * Whether the field can be dragged taller by its corner grip. Named after the
27
+ * CSS property it sets, so it can grow to cover the other values later
28
+ * without changing what the two it has today mean.
29
+ *
30
+ * Ignored while `autosize` is on: the autosizer rewrites the height on every
31
+ * keystroke, so a dragged height would not survive the next character.
32
+ */
33
+ resize?: 'vertical' | 'none';
34
+ }
35
+ type __VLS_Props = NexxtTextareaProps;
36
+ type __VLS_ModelProps = {
37
+ modelValue?: string | null;
38
+ };
39
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
40
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {
41
+ textareaEl: Readonly<import('vue').ShallowRef<HTMLTextAreaElement | null>>;
42
+ fitToContent: () => void;
43
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
44
+ "update:modelValue": (value: string | null) => any;
45
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
46
+ "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
47
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
48
+ declare const _default: typeof __VLS_export;
49
+ export default _default;
package/dist/index.d.ts CHANGED
@@ -53,6 +53,7 @@ export { default as NexxtTabbedContent } from './components/TabbedContent/Tabbed
53
53
  export { default as NexxtTable } from './components/Table/Table.vue';
54
54
  export { default as NexxtTabs } from './components/Tabs/Tabs.vue';
55
55
  export { default as NexxtTemplateCard } from './components/TemplateCard/TemplateCard.vue';
56
+ export { default as NexxtTextarea } from './components/Textarea/Textarea.vue';
56
57
  export { default as NexxtTimelineEvent } from './components/TimelineEvent/TimelineEvent.vue';
57
58
  export { default as NexxtTimelineLanes } from './components/TimelineLanes/TimelineLanes.vue';
58
59
  export { default as NexxtTimelinePhaseblock } from './components/TimelinePhaseblock/TimelinePhaseblock.vue';