@vonage/vivid 3.0.0-next.52 → 3.0.0-next.55
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/README.md +3 -0
- package/accordion/index.js +1 -3
- package/accordion-item/index.js +1 -3
- package/action-group/index.js +1 -3
- package/avatar/index.js +51 -0
- package/badge/index.js +1 -3
- package/banner/index.js +1 -3
- package/breadcrumb/index.js +0 -2
- package/breadcrumb-item/index.js +1 -3
- package/button/index.js +1 -3
- package/calendar/index.js +1 -3
- package/calendar-event/index.js +1 -3
- package/card/index.js +1 -3
- package/checkbox/index.js +1 -3
- package/dialog/index.js +2 -5
- package/divider/index.js +1 -3
- package/elevation/index.js +0 -1
- package/fab/index.js +1 -3
- package/focus/index.js +1 -3
- package/header/index.js +1 -3
- package/icon/index.js +0 -2
- package/index.js +1 -1
- package/layout/index.js +0 -2
- package/lib/avatar/avatar.d.ts +14 -0
- package/lib/avatar/avatar.template.d.ts +4 -0
- package/lib/avatar/index.d.ts +3 -0
- package/lib/text-area/index.d.ts +3 -0
- package/lib/text-area/text-area.d.ts +9 -0
- package/lib/text-area/text-area.template.d.ts +4 -0
- package/menu/index.js +0 -2
- package/nav-disclosure/index.js +1 -3
- package/nav-item/index.js +1 -3
- package/note/index.js +1 -3
- package/package.json +4 -2
- package/popup/index.js +0 -1
- package/progress/index.js +1 -3
- package/progress-ring/index.js +1 -3
- package/shared/form-elements.js +294 -0
- package/shared/index2.js +0 -2
- package/shared/index3.js +1 -3
- package/shared/patterns/form-elements.d.ts +1 -1
- package/side-drawer/index.js +1 -3
- package/styles/themes/dark.css +2 -2
- package/styles/themes/light.css +2 -2
- package/styles/typography/desktop.css +29 -14
- package/text-area/index.js +298 -0
- package/text-field/index.js +6 -294
- package/tooltip/index.js +1 -3
- package/shared/style-inject.es.js +0 -28
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 09 Sep 2022 10:25:25 GMT
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on
|
|
7
|
+
* Generated on Fri, 09 Sep 2022 10:25:24 GMT
|
|
8
8
|
*/
|
|
9
9
|
:root {
|
|
10
10
|
--vvd-font-headline: 500 condensed 66px/88px SpeziaCompleteVariableUpright;
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
--vvd-font-base-condensed: 400 ultra-condensed 12px/16px SpeziaCompleteVariableUpright;
|
|
23
23
|
--vvd-font-base-condensed-bold: 600 ultra-condensed 12px/16px SpeziaCompleteVariableUpright;
|
|
24
24
|
--vvd-font-base-condensed-code: 400 ultra-condensed 12px/16px SpeziaMonoCompleteVariable;
|
|
25
|
-
font-size: 62.5%;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
body {
|
|
@@ -30,14 +29,19 @@ body {
|
|
|
30
29
|
text-rendering: optimizeLegibility; /* emphasise on legibility when rendering, turns on ligatures and kerning */
|
|
31
30
|
-webkit-font-smoothing: antialiased; /* apply font anti-aliasing for Webkit on OSX */
|
|
32
31
|
-moz-osx-font-smoothing: grayscale; /* apply font anti-aliasing for Firefox on OSX */
|
|
33
|
-
font: var(--vvd-font-base
|
|
32
|
+
font: var(--vvd-font-base);
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
p {
|
|
36
|
+
font: var(--vvd-font-base);
|
|
37
|
+
margin-block: 16px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
b, strong {
|
|
37
41
|
font: var(--vvd-font-base-bold);
|
|
38
42
|
}
|
|
39
43
|
|
|
40
|
-
code {
|
|
44
|
+
pre, var, code, kbd, samp {
|
|
41
45
|
font: var(--vvd-font-base-code);
|
|
42
46
|
}
|
|
43
47
|
|
|
@@ -71,19 +75,30 @@ h4, .heading4 {
|
|
|
71
75
|
margin-block: 24px;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
|
|
75
|
-
font: var(--vvd-font-base-
|
|
78
|
+
small, figcaption {
|
|
79
|
+
font: var(--vvd-font-base-condensed);
|
|
80
|
+
}
|
|
81
|
+
small b, small strong, figcaption b, figcaption strong {
|
|
82
|
+
font: var(--vvd-font-base-condensed-bold);
|
|
83
|
+
}
|
|
84
|
+
small pre, small var, small code, small kbd, small samp, figcaption pre, figcaption var, figcaption code, figcaption kbd, figcaption samp {
|
|
85
|
+
font: var(--vvd-font-base-condensed-code);
|
|
76
86
|
}
|
|
77
87
|
|
|
78
|
-
|
|
79
|
-
|
|
88
|
+
sub,
|
|
89
|
+
sup {
|
|
90
|
+
font: 75%;
|
|
91
|
+
line-height: 0;
|
|
92
|
+
position: relative;
|
|
93
|
+
vertical-align: baseline;
|
|
80
94
|
}
|
|
81
95
|
|
|
82
|
-
|
|
83
|
-
|
|
96
|
+
sub {
|
|
97
|
+
bottom: -0.25em;
|
|
84
98
|
}
|
|
85
|
-
|
|
86
|
-
|
|
99
|
+
|
|
100
|
+
sup {
|
|
101
|
+
top: -0.5em;
|
|
87
102
|
}
|
|
88
103
|
|
|
89
104
|
/*# sourceMappingURL=desktop.css.map */
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import '../focus/index.js';
|
|
2
|
+
import { F as FoundationElement, _ as __decorate, a as attr, n as nullableNumberConverter, o as observable, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import { D as DelegatesARIATextbox, f as formElements } from '../shared/form-elements.js';
|
|
4
|
+
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
5
|
+
import { F as FormAssociated } from '../shared/form-associated.js';
|
|
6
|
+
import '../shared/affix.js';
|
|
7
|
+
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
8
|
+
import { w as when } from '../shared/when.js';
|
|
9
|
+
import { r as ref } from '../shared/ref.js';
|
|
10
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
11
|
+
import '../shared/focus.js';
|
|
12
|
+
import '../shared/aria-global.js';
|
|
13
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
14
|
+
import '../shared/export.js';
|
|
15
|
+
import '../shared/object-keys.js';
|
|
16
|
+
import '../shared/iterators.js';
|
|
17
|
+
import '../shared/icon.js';
|
|
18
|
+
import '../shared/to-string.js';
|
|
19
|
+
import '../shared/_has.js';
|
|
20
|
+
|
|
21
|
+
class _TextArea extends FoundationElement {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A form-associated base class for the {@link @microsoft/fast-foundation#(TextArea:class)} component.
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
class FormAssociatedTextArea extends FormAssociated(_TextArea) {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
this.proxy = document.createElement("textarea");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Resize mode for a TextArea
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
const TextAreaResize = {
|
|
40
|
+
/**
|
|
41
|
+
* No resize.
|
|
42
|
+
*/
|
|
43
|
+
none: "none",
|
|
44
|
+
/**
|
|
45
|
+
* Resize vertically and horizontally.
|
|
46
|
+
*/
|
|
47
|
+
both: "both",
|
|
48
|
+
/**
|
|
49
|
+
* Resize horizontally.
|
|
50
|
+
*/
|
|
51
|
+
horizontal: "horizontal",
|
|
52
|
+
/**
|
|
53
|
+
* Resize vertically.
|
|
54
|
+
*/
|
|
55
|
+
vertical: "vertical",
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* A Text Area Custom HTML Element.
|
|
60
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea | <textarea> element }.
|
|
61
|
+
*
|
|
62
|
+
* @slot - The default slot for the label
|
|
63
|
+
* @csspart label - The label
|
|
64
|
+
* @csspart root - The element wrapping the control
|
|
65
|
+
* @csspart control - The textarea element
|
|
66
|
+
* @fires change - Emits a custom 'change' event when the textarea emits a change event
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
class TextArea$1 extends FormAssociatedTextArea {
|
|
71
|
+
constructor() {
|
|
72
|
+
super(...arguments);
|
|
73
|
+
/**
|
|
74
|
+
* The resize mode of the element.
|
|
75
|
+
* @public
|
|
76
|
+
* @remarks
|
|
77
|
+
* HTML Attribute: resize
|
|
78
|
+
*/
|
|
79
|
+
this.resize = TextAreaResize.none;
|
|
80
|
+
/**
|
|
81
|
+
* Sizes the element horizontally by a number of character columns.
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
* @remarks
|
|
85
|
+
* HTML Attribute: cols
|
|
86
|
+
*/
|
|
87
|
+
this.cols = 20;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
this.handleTextInput = () => {
|
|
92
|
+
this.value = this.control.value;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
readOnlyChanged() {
|
|
96
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
97
|
+
this.proxy.readOnly = this.readOnly;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
autofocusChanged() {
|
|
101
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
102
|
+
this.proxy.autofocus = this.autofocus;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
listChanged() {
|
|
106
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
107
|
+
this.proxy.setAttribute("list", this.list);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
maxlengthChanged() {
|
|
111
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
112
|
+
this.proxy.maxLength = this.maxlength;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
minlengthChanged() {
|
|
116
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
117
|
+
this.proxy.minLength = this.minlength;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
spellcheckChanged() {
|
|
121
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
122
|
+
this.proxy.spellcheck = this.spellcheck;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Selects all the text in the text area
|
|
127
|
+
*
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
select() {
|
|
131
|
+
this.control.select();
|
|
132
|
+
/**
|
|
133
|
+
* The select event does not permeate the shadow DOM boundary.
|
|
134
|
+
* This fn effectively proxies the select event,
|
|
135
|
+
* emitting a `select` event whenever the internal
|
|
136
|
+
* control emits a `select` event
|
|
137
|
+
*/
|
|
138
|
+
this.$emit("select");
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Change event handler for inner control.
|
|
142
|
+
* @remarks
|
|
143
|
+
* "Change" events are not `composable` so they will not
|
|
144
|
+
* permeate the shadow DOM boundary. This fn effectively proxies
|
|
145
|
+
* the change event, emitting a `change` event whenever the internal
|
|
146
|
+
* control emits a `change` event
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
149
|
+
handleChange() {
|
|
150
|
+
this.$emit("change");
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
__decorate([
|
|
154
|
+
attr({ mode: "boolean" })
|
|
155
|
+
], TextArea$1.prototype, "readOnly", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
attr
|
|
158
|
+
], TextArea$1.prototype, "resize", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
attr({ mode: "boolean" })
|
|
161
|
+
], TextArea$1.prototype, "autofocus", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
attr({ attribute: "form" })
|
|
164
|
+
], TextArea$1.prototype, "formId", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
attr
|
|
167
|
+
], TextArea$1.prototype, "list", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
attr({ converter: nullableNumberConverter })
|
|
170
|
+
], TextArea$1.prototype, "maxlength", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
attr({ converter: nullableNumberConverter })
|
|
173
|
+
], TextArea$1.prototype, "minlength", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
attr
|
|
176
|
+
], TextArea$1.prototype, "name", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
attr
|
|
179
|
+
], TextArea$1.prototype, "placeholder", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
attr({ converter: nullableNumberConverter, mode: "fromView" })
|
|
182
|
+
], TextArea$1.prototype, "cols", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
attr({ converter: nullableNumberConverter, mode: "fromView" })
|
|
185
|
+
], TextArea$1.prototype, "rows", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
attr({ mode: "boolean" })
|
|
188
|
+
], TextArea$1.prototype, "spellcheck", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
observable
|
|
191
|
+
], TextArea$1.prototype, "defaultSlottedNodes", void 0);
|
|
192
|
+
applyMixins(TextArea$1, DelegatesARIATextbox);
|
|
193
|
+
|
|
194
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Fri, 09 Sep 2022 10:25:24 GMT\n */\n:host {\n display: inline-block;\n}\n\n.base {\n display: inline-grid;\n width: 100%;\n gap: 4px;\n grid-template-columns: min-content 1fr max-content;\n}\n.base {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.base.appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-canvas-text);\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled)).appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transaprent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: var(--vvd-color-neutral-100);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.base:where(:disabled, .disabled).appearance-ghost {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base:where(:readonly, .readonly):where(:not(:disabled, .disabled, :hover, .hover, :active, .active)) {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--vvd-color-neutral-100);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.base:where(:readonly, .readonly):where(:not(:disabled, .disabled, :hover, .hover, :active, .active)).appearance-ghost {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base:where(.error):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--vvd-color-alert-500);\n --_appearance-color-fill: var(--vvd-color-alert-100);\n --_appearance-color-outline: var(--vvd-color-alert-500);\n}\n.base:where(.error):where(:not(:disabled, .disabled)).appearance-ghost {\n --_appearance-color-text: transparent;\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n@supports (user-select: none) {\n .base {\n user-select: none;\n }\n}\n.base:not(.disabled) {\n --_low-ink-color: var(--vvd-color-neutral-600);\n}\n.base.disabled {\n --_low-ink-color: var(--vvd-color-neutral-400);\n pointer-events: none;\n}\n\n.label {\n contain: inline-size;\n font: var(--vvd-font-base);\n grid-column: 1/4;\n grid-row: 1;\n line-height: 20px;\n}\n.base:not(.disabled) .label {\n color: var(--vvd-color-canvas-text);\n}\n.base.disabled .label {\n color: var(--vvd-color-neutral-400);\n}\n\n.fieldset {\n position: relative;\n display: flex;\n align-items: center;\n border-radius: 6px;\n grid-column: 1/4;\n}\n\n.control {\n width: 100%;\n padding: 4px 16px;\n border: 0 none;\n background-color: var(--_appearance-color-fill);\n border-radius: inherit;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n font: var(--vvd-font-base);\n min-block-size: 40px;\n transition: box-shadow 0.2s, background-color 0.2s, color 0.2s;\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n.control::placeholder {\n color: var(--_low-ink-color);\n}\n\n.helper-text {\n color: var(--_low-ink-color);\n font: var(--vvd-font-base-condensed);\n grid-column: 1/4;\n}\n\n.error-message {\n display: flex;\n color: var(--vvd-color-canvas-text);\n contain: inline-size;\n font: var(--vvd-font-base-condensed);\n grid-column: 2/4;\n}\n.error-message-icon {\n color: var(--vvd-color-alert-500);\n font-size: 16px;\n grid-column: 1/2;\n}\n\n.focus-indicator {\n --focus-stroke-gap-color: transparent;\n pointer-events: none;\n}\n.fieldset:not(:focus-visible, :focus-within) > .focus-indicator {\n display: none;\n}";
|
|
195
|
+
|
|
196
|
+
let TextArea = class TextArea extends TextArea$1 {};
|
|
197
|
+
|
|
198
|
+
__decorate([attr, __metadata("design:type", String)], TextArea.prototype, "wrap", void 0);
|
|
199
|
+
|
|
200
|
+
TextArea = __decorate([formElements], TextArea);
|
|
201
|
+
|
|
202
|
+
let _ = t => t,
|
|
203
|
+
_t,
|
|
204
|
+
_t2,
|
|
205
|
+
_t3,
|
|
206
|
+
_t4;
|
|
207
|
+
|
|
208
|
+
const getClasses = ({
|
|
209
|
+
value,
|
|
210
|
+
errorValidationMessage,
|
|
211
|
+
disabled,
|
|
212
|
+
placeholder,
|
|
213
|
+
readOnly
|
|
214
|
+
}) => classNames('base', ['readonly', readOnly], ['placeholder', Boolean(placeholder)], ['disabled', disabled], ['error', Boolean(errorValidationMessage)], ['has-value', Boolean(value)]);
|
|
215
|
+
|
|
216
|
+
function renderLabel() {
|
|
217
|
+
return html(_t || (_t = _`
|
|
218
|
+
<label for="control" class="label">
|
|
219
|
+
${0}
|
|
220
|
+
</label>`), x => x.label);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function renderHelperText() {
|
|
224
|
+
return html(_t2 || (_t2 = _`<span class="helper-text">${0}</span>`), x => x.helperText);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function renderErrorMessage() {
|
|
228
|
+
return html(_t3 || (_t3 = _`
|
|
229
|
+
<vwc-icon class="error-message-icon" type="info-negative"></vwc-icon>
|
|
230
|
+
<span class="error-message">${0}</span>
|
|
231
|
+
`), x => x.errorValidationMessage);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const TextAreaTemplate = context => {
|
|
235
|
+
const focusTemplate = focusTemplateFactory(context);
|
|
236
|
+
return html(_t4 || (_t4 = _`
|
|
237
|
+
<div class="${0}">
|
|
238
|
+
${0}
|
|
239
|
+
<div class="fieldset">
|
|
240
|
+
<textarea class="control"
|
|
241
|
+
?autofocus="${0}"
|
|
242
|
+
placeholder="${0}"
|
|
243
|
+
name="${0}"
|
|
244
|
+
maxlength="${0}"
|
|
245
|
+
rows="${0}"
|
|
246
|
+
cols="${0}"
|
|
247
|
+
wrap="${0}"
|
|
248
|
+
?readonly="${0}"
|
|
249
|
+
?required="${0}"
|
|
250
|
+
?spellcheck="${0}"
|
|
251
|
+
:value="${0}"
|
|
252
|
+
aria-atomic="${0}"
|
|
253
|
+
aria-busy="${0}"
|
|
254
|
+
aria-controls="${0}"
|
|
255
|
+
aria-current="${0}"
|
|
256
|
+
aria-describedby="${0}"
|
|
257
|
+
aria-details="${0}"
|
|
258
|
+
aria-disabled="${0}"
|
|
259
|
+
aria-errormessage="${0}"
|
|
260
|
+
aria-flowto="${0}"
|
|
261
|
+
aria-haspopup="${0}"
|
|
262
|
+
aria-hidden="${0}"
|
|
263
|
+
aria-invalid="${0}"
|
|
264
|
+
aria-keyshortcuts="${0}"
|
|
265
|
+
aria-label="${0}"
|
|
266
|
+
aria-labelledby="${0}"
|
|
267
|
+
aria-live="${0}"
|
|
268
|
+
aria-owns="${0}"
|
|
269
|
+
aria-relevant="${0}"
|
|
270
|
+
aria-roledescription="${0}"
|
|
271
|
+
@input="${0}"
|
|
272
|
+
@change="${0}"
|
|
273
|
+
${0}
|
|
274
|
+
>
|
|
275
|
+
</textarea>
|
|
276
|
+
${0}
|
|
277
|
+
</div>
|
|
278
|
+
${0}
|
|
279
|
+
${0}
|
|
280
|
+
</div>
|
|
281
|
+
`), getClasses, when(x => x.label, renderLabel()), x => x.autofocus, x => x.placeholder ? x.placeholder : null, x => x.name ? x.name : null, x => x.maxlength ? x.maxlength : null, x => x.rows ? x.rows : null, x => x.cols ? x.cols : null, x => x.wrap ? x.wrap : null, x => x.readOnly, x => x.required, x => x.spellcheck, x => x.value, x => x.ariaAtomic, x => x.ariaBusy, x => x.ariaControls, x => x.ariaCurrent, x => x.ariaDescribedby, x => x.ariaDetails, x => x.ariaDisabled, x => x.ariaErrormessage, x => x.ariaFlowto, x => x.ariaHaspopup, x => x.ariaHidden, x => x.ariaInvalid, x => x.ariaKeyshortcuts, x => x.ariaLabel, x => x.ariaLabelledby, x => x.ariaLive, x => x.ariaOwns, x => x.ariaRelevant, x => x.ariaRoledescription, x => x.handleTextInput(), x => x.handleChange(), ref('control'), () => focusTemplate, when(x => {
|
|
282
|
+
var _a;
|
|
283
|
+
|
|
284
|
+
return !x.errorValidationMessage && ((_a = x.helperText) === null || _a === void 0 ? void 0 : _a.length);
|
|
285
|
+
}, renderHelperText()), when(x => x.errorValidationMessage, renderErrorMessage()));
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
const vividTextArea = TextArea.compose({
|
|
289
|
+
baseName: 'text-area',
|
|
290
|
+
template: TextAreaTemplate,
|
|
291
|
+
styles: css_248z,
|
|
292
|
+
shadowOptions: {
|
|
293
|
+
delegatesFocus: true
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
designSystem.register(vividTextArea());
|
|
297
|
+
|
|
298
|
+
export { vividTextArea };
|