@vonage/vivid 3.0.0-next.8 → 3.0.0-next.80
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 +141 -4
- package/accordion/index.js +2 -4
- package/accordion-item/index.js +26 -20
- package/action-group/index.js +47 -0
- package/avatar/index.js +70 -0
- package/badge/index.js +17 -21
- package/banner/index.js +23 -87
- package/breadcrumb/index.js +21 -18
- package/breadcrumb-item/index.js +19 -12
- package/button/index.js +19 -757
- package/calendar/index.js +67 -25
- package/calendar-event/index.js +115 -0
- package/card/index.js +132 -0
- package/checkbox/index.js +184 -0
- package/dialog/index.js +281 -0
- package/divider/index.js +3 -0
- package/elevation/index.js +3 -31
- package/fab/index.js +105 -0
- package/focus/index.js +18 -3
- package/header/index.js +66 -0
- package/icon/index.js +9 -5
- package/index.js +53 -20
- package/layout/index.js +4 -6
- package/lib/accordion-item/accordion-item.d.ts +2 -2
- package/lib/accordion-item/index.d.ts +2 -1
- package/lib/action-group/action-group.d.ts +10 -0
- package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
- package/lib/{sidenav-item → action-group}/index.d.ts +1 -2
- package/lib/avatar/avatar.d.ts +15 -0
- package/lib/avatar/avatar.template.d.ts +4 -0
- package/lib/avatar/index.d.ts +3 -0
- package/lib/badge/badge.d.ts +5 -5
- package/lib/badge/index.d.ts +1 -1
- package/lib/banner/banner.d.ts +1 -1
- package/lib/banner/banner.template.d.ts +0 -2
- package/lib/banner/index.d.ts +1 -0
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb-item/index.d.ts +1 -0
- package/lib/button/button.d.ts +6 -5
- package/lib/button/index.d.ts +2 -19
- package/lib/calendar/calendar.d.ts +3 -1
- package/lib/calendar/index.d.ts +0 -1
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/{text/text.template.d.ts → card/card.template.d.ts} +2 -2
- package/lib/card/index.d.ts +4 -0
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/index.d.ts +4 -0
- package/lib/components.d.ts +27 -10
- package/lib/dialog/dialog.d.ts +20 -0
- package/lib/dialog/dialog.template.d.ts +4 -0
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/divider.d.ts +3 -0
- package/lib/divider/divider.template.d.ts +4 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/elevation/elevation.d.ts +1 -0
- package/lib/elevation/index.d.ts +1 -1
- package/lib/enums.d.ts +11 -6
- package/lib/fab/fab.d.ts +13 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/index.d.ts +1 -1
- package/lib/header/header.d.ts +5 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +3 -0
- package/lib/icon/icon.d.ts +4 -3
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/layout.d.ts +3 -3
- package/lib/menu/index.d.ts +12 -0
- package/lib/menu/menu.d.ts +10 -0
- package/lib/menu/menu.template.d.ts +3 -0
- package/lib/menu-item/index.d.ts +3 -0
- package/lib/menu-item/menu-item.d.ts +7 -0
- package/lib/menu-item/menu-item.template.d.ts +5 -0
- package/lib/nav/index.d.ts +2 -0
- package/lib/nav/nav.d.ts +3 -0
- package/lib/nav/nav.template.d.ts +4 -0
- package/lib/nav-disclosure/index.d.ts +4 -0
- package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
- package/lib/nav-item/index.d.ts +4 -0
- package/lib/{sidenav-item/sidenav-item.d.ts → nav-item/nav-item.d.ts} +2 -2
- package/lib/nav-item/nav-item.template.d.ts +4 -0
- package/lib/{text → note}/index.d.ts +1 -1
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +5 -0
- package/lib/number-field/index.d.ts +4 -0
- package/lib/number-field/number-field.d.ts +16 -0
- package/lib/number-field/number-field.template.d.ts +4 -0
- package/lib/popup/index.d.ts +1 -1
- package/lib/popup/popup.d.ts +2 -1
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +2 -1
- package/lib/radio/index.d.ts +3 -0
- package/lib/radio/radio.d.ts +4 -0
- package/lib/radio/radio.template.d.ts +4 -0
- package/lib/side-drawer/index.d.ts +1 -1
- package/lib/side-drawer/side-drawer.d.ts +3 -2
- package/lib/text-anchor/text-anchor.d.ts +1 -1
- 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/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +16 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/menu/index.js +381 -0
- package/menu-item/index.js +19 -0
- package/nav/index.js +17 -0
- package/nav-disclosure/index.js +88 -0
- package/nav-item/index.js +45 -0
- package/note/index.js +66 -0
- package/number-field/index.js +529 -0
- package/package.json +51 -7
- package/popup/index.js +23 -2061
- package/progress/index.js +35 -28
- package/progress-ring/index.js +9 -5
- package/radio/index.js +174 -0
- package/shared/anchor.js +10 -2
- package/shared/aria-global.js +2 -86
- package/shared/base-progress.js +5 -0
- package/shared/breadcrumb-item.js +1 -1
- package/shared/button.js +200 -0
- package/shared/calendar-event.js +26 -0
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/enums.js +79 -0
- package/shared/es.object.assign.js +7 -6
- package/shared/export.js +995 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +466 -0
- package/shared/form-elements.js +299 -0
- package/shared/icon.js +533 -520
- package/shared/index.js +71 -55
- package/shared/index2.js +110 -13
- package/shared/index3.js +35 -0
- package/shared/index4.js +86 -0
- package/shared/index5.js +2100 -0
- package/shared/index6.js +371 -0
- package/shared/iterators.js +61 -0
- package/shared/key-codes.js +90 -0
- package/shared/object-keys.js +13 -0
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/form-elements.d.ts +22 -0
- package/shared/patterns/index.d.ts +1 -0
- package/shared/ref.js +41 -0
- package/shared/regexp-flags.js +21 -0
- package/shared/start-end.js +50 -0
- package/shared/text-anchor.js +2 -11
- package/shared/text-anchor.template.js +5 -2
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +78 -1083
- package/side-drawer/index.js +44 -23
- package/styles/core/all.css +75 -0
- package/styles/core/theme.css +11 -0
- package/styles/core/typography.css +69 -0
- package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
- package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
- package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
- package/styles/fonts/spezia.css +9 -12
- package/styles/tokens/theme-dark.css +211 -0
- package/styles/tokens/theme-light.css +211 -0
- package/text-anchor/index.js +9 -1
- package/text-area/index.js +304 -0
- package/text-field/index.js +152 -0
- package/tooltip/index.js +23 -16
- package/lib/text/text.d.ts +0 -10
- package/shared/style-inject.es.js +0 -28
- package/sidenav-item/index.js +0 -38
- package/styles/themes/dark.css +0 -205
- package/styles/themes/light.css +0 -205
- package/text/index.js +0 -45
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Wed, 19 Oct 2022 08:48:31 GMT
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Do not edit directly
|
|
7
|
+
* Generated on Wed, 19 Oct 2022 08:48:31 GMT
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Do not edit directly
|
|
11
|
+
* Generated on Wed, 19 Oct 2022 08:48:31 GMT
|
|
12
|
+
*/
|
|
13
|
+
.vvd-root, ::part(vvd-root) {
|
|
14
|
+
--vvd-color-scheme: light;
|
|
15
|
+
--vvd-color-canvas: #ffffff;
|
|
16
|
+
--vvd-color-canvas-text: #0d0d0d;
|
|
17
|
+
--vvd-color-neutral-50: #F2F2F2;
|
|
18
|
+
--vvd-color-neutral-100: #E6E6E6;
|
|
19
|
+
--vvd-color-neutral-200: #cccccc;
|
|
20
|
+
--vvd-color-neutral-300: #b3b3b3;
|
|
21
|
+
--vvd-color-neutral-400: #929292;
|
|
22
|
+
--vvd-color-neutral-500: #757575;
|
|
23
|
+
--vvd-color-neutral-600: #666666;
|
|
24
|
+
--vvd-color-neutral-700: #4d4d4d;
|
|
25
|
+
--vvd-color-neutral-800: #333333;
|
|
26
|
+
--vvd-color-neutral-900: #1a1a1a;
|
|
27
|
+
--vvd-color-neutral-950: #0d0d0d;
|
|
28
|
+
--vvd-color-cta-50: #f5f0fd;
|
|
29
|
+
--vvd-color-cta-100: #ece2fa;
|
|
30
|
+
--vvd-color-cta-200: #dcc1fc;
|
|
31
|
+
--vvd-color-cta-300: #cba1fa;
|
|
32
|
+
--vvd-color-cta-400: #b27bf2;
|
|
33
|
+
--vvd-color-cta-500: #9941ff;
|
|
34
|
+
--vvd-color-cta-600: #871eff;
|
|
35
|
+
--vvd-color-cta-700: #6405d1;
|
|
36
|
+
--vvd-color-cta-800: #440291;
|
|
37
|
+
--vvd-color-cta-900: #26044d;
|
|
38
|
+
--vvd-color-warning-50: #FDF5D4;
|
|
39
|
+
--vvd-color-warning-100: #FDEAA0;
|
|
40
|
+
--vvd-color-warning-200: #FACC4B;
|
|
41
|
+
--vvd-color-warning-300: #fa9f00;
|
|
42
|
+
--vvd-color-warning-400: #e07902;
|
|
43
|
+
--vvd-color-warning-500: #be5702;
|
|
44
|
+
--vvd-color-warning-600: #A64C03;
|
|
45
|
+
--vvd-color-warning-700: #893000;
|
|
46
|
+
--vvd-color-warning-800: #522801;
|
|
47
|
+
--vvd-color-warning-900: #2A1502;
|
|
48
|
+
--vvd-color-information-50: #e8f4fb;
|
|
49
|
+
--vvd-color-information-100: #d3e9fc;
|
|
50
|
+
--vvd-color-information-200: #9dd2fe;
|
|
51
|
+
--vvd-color-information-300: #65baff;
|
|
52
|
+
--vvd-color-information-400: #2997f0;
|
|
53
|
+
--vvd-color-information-500: #0276d5;
|
|
54
|
+
--vvd-color-information-600: #0e65c2;
|
|
55
|
+
--vvd-color-information-700: #094a9e;
|
|
56
|
+
--vvd-color-information-800: #0e306d;
|
|
57
|
+
--vvd-color-information-900: #071939;
|
|
58
|
+
--vvd-color-announcement-50: #ffedfb;
|
|
59
|
+
--vvd-color-announcement-100: #ffdcf7;
|
|
60
|
+
--vvd-color-announcement-200: #f8b9e7;
|
|
61
|
+
--vvd-color-announcement-300: #fb8fd8;
|
|
62
|
+
--vvd-color-announcement-400: #e560bb;
|
|
63
|
+
--vvd-color-announcement-500: #d6219c;
|
|
64
|
+
--vvd-color-announcement-600: #bb1e89;
|
|
65
|
+
--vvd-color-announcement-700: #8f1669;
|
|
66
|
+
--vvd-color-announcement-800: #620256;
|
|
67
|
+
--vvd-color-announcement-900: #32082c;
|
|
68
|
+
--vvd-color-alert-50: #ffeef2;
|
|
69
|
+
--vvd-color-alert-100: #fedfdf;
|
|
70
|
+
--vvd-color-alert-200: #ffbbbb;
|
|
71
|
+
--vvd-color-alert-300: #fe9696;
|
|
72
|
+
--vvd-color-alert-400: #f75959;
|
|
73
|
+
--vvd-color-alert-500: #e61d1d;
|
|
74
|
+
--vvd-color-alert-600: #cd0d0d;
|
|
75
|
+
--vvd-color-alert-700: #9f0202;
|
|
76
|
+
--vvd-color-alert-800: #6e0000;
|
|
77
|
+
--vvd-color-alert-900: #3e0004;
|
|
78
|
+
--vvd-color-success-50: #e1f8e5;
|
|
79
|
+
--vvd-color-success-100: #cfeed4;
|
|
80
|
+
--vvd-color-success-200: #86e090;
|
|
81
|
+
--vvd-color-success-300: #53ca6a;
|
|
82
|
+
--vvd-color-success-400: #30a849;
|
|
83
|
+
--vvd-color-success-500: #1c8731;
|
|
84
|
+
--vvd-color-success-600: #167629;
|
|
85
|
+
--vvd-color-success-700: #155923;
|
|
86
|
+
--vvd-color-success-800: #183a1e;
|
|
87
|
+
--vvd-color-success-900: #0a1e11;
|
|
88
|
+
--vvd-color-surface-0dp: #ffffff;
|
|
89
|
+
--vvd-color-surface-2dp: #ffffff;
|
|
90
|
+
--vvd-color-surface-4dp: #ffffff;
|
|
91
|
+
--vvd-color-surface-8dp: #ffffff;
|
|
92
|
+
--vvd-color-surface-12dp: #ffffff;
|
|
93
|
+
--vvd-color-surface-16dp: #ffffff;
|
|
94
|
+
--vvd-color-surface-24dp: #ffffff;
|
|
95
|
+
--vvd-shadow-surface-0dp: drop-shadow(1px 0px 0px #cccccc) drop-shadow(0px 1px 0px #cccccc) drop-shadow(0px -1px 0px #cccccc) drop-shadow(-1px 0px 0px #cccccc);
|
|
96
|
+
--vvd-shadow-surface-2dp: drop-shadow(0px 1px 4px #0000001a) drop-shadow(0px 1px 2px #0000000d) drop-shadow(0px 2px 1px #0000000d);
|
|
97
|
+
--vvd-shadow-surface-4dp: drop-shadow(0px 2px 8px #0000001a) drop-shadow(0px 2px 4px #0000000d) drop-shadow(0px 4px 2px #0000000d);
|
|
98
|
+
--vvd-shadow-surface-8dp: drop-shadow(0px 2px 16px #0000001a) drop-shadow(0px 8px 8px #0000000d) drop-shadow(0px 4px 4px #0000000d);
|
|
99
|
+
--vvd-shadow-surface-12dp: drop-shadow(0px 4px 24px #0000001a) drop-shadow(0px 12px 16px #0000000d) drop-shadow(0px 6px 8px #0000000d);
|
|
100
|
+
--vvd-shadow-surface-16dp: drop-shadow(0px 6px 32px #0000001a) drop-shadow(0px 16px 24px #0000000d) drop-shadow(0px 8px 12px #0000000d);
|
|
101
|
+
--vvd-shadow-surface-24dp: drop-shadow(0px 12px 48px #00000033) drop-shadow(0px 24px 32px #0000000d) drop-shadow(0px 12px 16px #0000000d);
|
|
102
|
+
--vvd-font-headline: 500 condensed calc(16px * 4.125)/calc(16px * 5.5) SpeziaCompleteVariableUpright;
|
|
103
|
+
--vvd-font-subtitle: 500 condensed calc(16px * 3.25)/calc(16px * 4.25) SpeziaCompleteVariableUpright;
|
|
104
|
+
--vvd-font-heading1: 500 condensed calc(16px * 2.5)/calc(16px * 3.25) SpeziaCompleteVariableUpright;
|
|
105
|
+
--vvd-font-heading2: 500 condensed calc(16px * 2)/calc(16px * 2.75) SpeziaCompleteVariableUpright;
|
|
106
|
+
--vvd-font-heading3: 500 condensed calc(16px * 1.625)/calc(16px * 2.25) SpeziaCompleteVariableUpright;
|
|
107
|
+
--vvd-font-heading4: 500 condensed calc(16px * 1.25)/calc(16px * 1.75) SpeziaCompleteVariableUpright;
|
|
108
|
+
--vvd-font-base: 400 ultra-condensed calc(16px * 0.875)/calc(16px * 1.25) SpeziaCompleteVariableUpright;
|
|
109
|
+
--vvd-font-base-bold: 600 ultra-condensed calc(16px * 0.875)/calc(16px * 1.25) SpeziaCompleteVariableUpright;
|
|
110
|
+
--vvd-font-base-code: 400 ultra-condensed calc(16px * 0.875)/calc(16px * 1.25) SpeziaMonoCompleteVariable;
|
|
111
|
+
--vvd-font-base-extended: 400 ultra-condensed calc(16px * 1)/calc(16px * 1.5) SpeziaCompleteVariableUpright;
|
|
112
|
+
--vvd-font-base-extended-bold: 600 ultra-condensed calc(16px * 1)/calc(16px * 1.5) SpeziaCompleteVariableUpright;
|
|
113
|
+
--vvd-font-base-extended-code: 400 ultra-condensed calc(16px * 1)/calc(16px * 1.5) SpeziaMonoCompleteVariable;
|
|
114
|
+
--vvd-font-base-condensed: 400 ultra-condensed calc(16px * 0.75)/calc(16px * 1) SpeziaCompleteVariableUpright;
|
|
115
|
+
--vvd-font-base-condensed-bold: 600 ultra-condensed calc(16px * 0.75)/calc(16px * 1) SpeziaCompleteVariableUpright;
|
|
116
|
+
--vvd-font-base-condensed-code: 400 ultra-condensed calc(16px * 0.75)/calc(16px * 1) SpeziaMonoCompleteVariable;
|
|
117
|
+
--vvd-size-base: 40px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.vvd-theme-alternate, ::part(vvd-theme-alternate) {
|
|
121
|
+
--vvd-color-scheme: dark;
|
|
122
|
+
--vvd-color-canvas: #000000;
|
|
123
|
+
--vvd-color-canvas-text: #ffffff;
|
|
124
|
+
--vvd-color-neutral-50: #1a1a1a;
|
|
125
|
+
--vvd-color-neutral-100: #333333;
|
|
126
|
+
--vvd-color-neutral-200: #4d4d4d;
|
|
127
|
+
--vvd-color-neutral-300: #666666;
|
|
128
|
+
--vvd-color-neutral-400: #757575;
|
|
129
|
+
--vvd-color-neutral-500: #929292;
|
|
130
|
+
--vvd-color-neutral-600: #b3b3b3;
|
|
131
|
+
--vvd-color-neutral-700: #cccccc;
|
|
132
|
+
--vvd-color-neutral-800: #E6E6E6;
|
|
133
|
+
--vvd-color-neutral-900: #F2F2F2;
|
|
134
|
+
--vvd-color-neutral-950: #ffffff;
|
|
135
|
+
--vvd-color-cta-50: #26044d;
|
|
136
|
+
--vvd-color-cta-100: #440291;
|
|
137
|
+
--vvd-color-cta-200: #6405d1;
|
|
138
|
+
--vvd-color-cta-300: #871eff;
|
|
139
|
+
--vvd-color-cta-400: #9941ff;
|
|
140
|
+
--vvd-color-cta-500: #b27bf2;
|
|
141
|
+
--vvd-color-cta-600: #cba1fa;
|
|
142
|
+
--vvd-color-cta-700: #dcc1fc;
|
|
143
|
+
--vvd-color-cta-800: #ece2fa;
|
|
144
|
+
--vvd-color-cta-900: #f5f0fd;
|
|
145
|
+
--vvd-color-warning-50: #2A1502;
|
|
146
|
+
--vvd-color-warning-100: #522801;
|
|
147
|
+
--vvd-color-warning-200: #803807;
|
|
148
|
+
--vvd-color-warning-300: #A64C03;
|
|
149
|
+
--vvd-color-warning-400: #be5702;
|
|
150
|
+
--vvd-color-warning-500: #e07902;
|
|
151
|
+
--vvd-color-warning-600: #fa9f00;
|
|
152
|
+
--vvd-color-warning-700: #FACC4B;
|
|
153
|
+
--vvd-color-warning-800: #FDEAA0;
|
|
154
|
+
--vvd-color-warning-900: #FDF5D4;
|
|
155
|
+
--vvd-color-information-50: #071939;
|
|
156
|
+
--vvd-color-information-100: #0e306d;
|
|
157
|
+
--vvd-color-information-200: #094a9e;
|
|
158
|
+
--vvd-color-information-300: #0e65c2;
|
|
159
|
+
--vvd-color-information-400: #0276d5;
|
|
160
|
+
--vvd-color-information-500: #2997f0;
|
|
161
|
+
--vvd-color-information-600: #65baff;
|
|
162
|
+
--vvd-color-information-700: #9dd2fe;
|
|
163
|
+
--vvd-color-information-800: #d3e9fc;
|
|
164
|
+
--vvd-color-information-900: #e8f4fb;
|
|
165
|
+
--vvd-color-announcement-50: #32082c;
|
|
166
|
+
--vvd-color-announcement-100: #620256;
|
|
167
|
+
--vvd-color-announcement-200: #8f1669;
|
|
168
|
+
--vvd-color-announcement-300: #bb1e89;
|
|
169
|
+
--vvd-color-announcement-400: #d6219c;
|
|
170
|
+
--vvd-color-announcement-500: #e560bb;
|
|
171
|
+
--vvd-color-announcement-600: #fb8fd8;
|
|
172
|
+
--vvd-color-announcement-700: #f8b9e7;
|
|
173
|
+
--vvd-color-announcement-800: #ffdcf7;
|
|
174
|
+
--vvd-color-announcement-900: #ffedfb;
|
|
175
|
+
--vvd-color-alert-50: #3e0004;
|
|
176
|
+
--vvd-color-alert-100: #6e0000;
|
|
177
|
+
--vvd-color-alert-200: #9f0202;
|
|
178
|
+
--vvd-color-alert-300: #cd0d0d;
|
|
179
|
+
--vvd-color-alert-400: #e61d1d;
|
|
180
|
+
--vvd-color-alert-500: #f75959;
|
|
181
|
+
--vvd-color-alert-600: #fe9696;
|
|
182
|
+
--vvd-color-alert-700: #ffbbbb;
|
|
183
|
+
--vvd-color-alert-800: #fedfdf;
|
|
184
|
+
--vvd-color-alert-900: #ffeef2;
|
|
185
|
+
--vvd-color-success-50: #0a1e11;
|
|
186
|
+
--vvd-color-success-100: #183a1e;
|
|
187
|
+
--vvd-color-success-200: #155923;
|
|
188
|
+
--vvd-color-success-300: #167629;
|
|
189
|
+
--vvd-color-success-400: #1c8731;
|
|
190
|
+
--vvd-color-success-500: #30a849;
|
|
191
|
+
--vvd-color-success-600: #53ca6a;
|
|
192
|
+
--vvd-color-success-700: #86e090;
|
|
193
|
+
--vvd-color-success-800: #cfeed4;
|
|
194
|
+
--vvd-color-success-900: #e1f8e5;
|
|
195
|
+
--vvd-color-surface-0dp: #0d0d0d;
|
|
196
|
+
--vvd-color-surface-2dp: linear-gradient(#ffffff0f, #ffffff0f), #0d0d0d;
|
|
197
|
+
--vvd-color-surface-4dp: linear-gradient(#ffffff14, #ffffff14), #0d0d0d;
|
|
198
|
+
--vvd-color-surface-8dp: linear-gradient(#ffffff1a, #ffffff1a), #0d0d0d;
|
|
199
|
+
--vvd-color-surface-12dp: linear-gradient(#ffffff1f, #ffffff1f), #0d0d0d;
|
|
200
|
+
--vvd-color-surface-16dp: linear-gradient(#ffffff24, #ffffff24), #0d0d0d;
|
|
201
|
+
--vvd-color-surface-24dp: linear-gradient(#ffffff29, #ffffff29), #0d0d0d;
|
|
202
|
+
--vvd-shadow-surface-0dp: drop-shadow(1px 0px 0px #cccccc) drop-shadow(0px 1px 0px #cccccc) drop-shadow(0px -1px 0px #cccccc) drop-shadow(-1px 0px 0px #cccccc);
|
|
203
|
+
--vvd-shadow-surface-2dp: drop-shadow(0px 1px 4px #00000040) drop-shadow(0px 1px 2px #00000040) drop-shadow(0px 2px 1px #00000040);
|
|
204
|
+
--vvd-shadow-surface-4dp: drop-shadow(0px 2px 8px #00000040) drop-shadow(0px 2px 4px #00000040) drop-shadow(0px 4px 4px #00000040);
|
|
205
|
+
--vvd-shadow-surface-8dp: drop-shadow(0px 2px 16px #00000040) drop-shadow(0px 8px 8px #00000040) drop-shadow(0px 4px 4px #00000040);
|
|
206
|
+
--vvd-shadow-surface-12dp: drop-shadow(0px 4px 24px #00000040) drop-shadow(0px 12px 16px #00000040) drop-shadow(0px 6px 8px #00000040);
|
|
207
|
+
--vvd-shadow-surface-16dp: drop-shadow(0px 6px 32px #00000040) drop-shadow(0px 16px 24px #00000040) drop-shadow(0px 8px 12px #00000040);
|
|
208
|
+
--vvd-shadow-surface-24dp: drop-shadow(0px 12px 48px #00000040) drop-shadow(0px 24px 32px #00000040) drop-shadow(0px 12px 16px #00000040);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/*# sourceMappingURL=theme-light.css.map */
|
package/text-anchor/index.js
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { d as designSystem } from '../shared/index.js';
|
|
2
2
|
import { T as TextAnchor } from '../shared/text-anchor.js';
|
|
3
3
|
import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
|
|
4
|
-
import '../shared/web.dom-collections.iterator.js';
|
|
5
4
|
import '../shared/affix.js';
|
|
5
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
6
|
+
import '../shared/export.js';
|
|
7
|
+
import '../shared/object-keys.js';
|
|
8
|
+
import '../shared/iterators.js';
|
|
6
9
|
import '../shared/icon.js';
|
|
10
|
+
import '../shared/to-string.js';
|
|
7
11
|
import '../shared/_has.js';
|
|
8
12
|
import '../shared/anchor.js';
|
|
9
13
|
import '../shared/apply-mixins.js';
|
|
10
14
|
import '../shared/aria-global.js';
|
|
15
|
+
import '../shared/start-end.js';
|
|
16
|
+
import '../shared/ref.js';
|
|
17
|
+
import '../shared/focus2.js';
|
|
18
|
+
import '../shared/focus.js';
|
|
11
19
|
import '../shared/class-names.js';
|
|
12
20
|
|
|
13
21
|
const vividTextAnchor = TextAnchor.compose({
|
|
@@ -0,0 +1,304 @@
|
|
|
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/start-end.js';
|
|
14
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
15
|
+
import '../shared/export.js';
|
|
16
|
+
import '../shared/object-keys.js';
|
|
17
|
+
import '../shared/iterators.js';
|
|
18
|
+
import '../shared/key-codes.js';
|
|
19
|
+
import '../shared/icon.js';
|
|
20
|
+
import '../shared/to-string.js';
|
|
21
|
+
import '../shared/_has.js';
|
|
22
|
+
|
|
23
|
+
class _TextArea extends FoundationElement {
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A form-associated base class for the {@link @microsoft/fast-foundation#(TextArea:class)} component.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
class FormAssociatedTextArea extends FormAssociated(_TextArea) {
|
|
31
|
+
constructor() {
|
|
32
|
+
super(...arguments);
|
|
33
|
+
this.proxy = document.createElement("textarea");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Resize mode for a TextArea
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
const TextAreaResize = {
|
|
42
|
+
/**
|
|
43
|
+
* No resize.
|
|
44
|
+
*/
|
|
45
|
+
none: "none",
|
|
46
|
+
/**
|
|
47
|
+
* Resize vertically and horizontally.
|
|
48
|
+
*/
|
|
49
|
+
both: "both",
|
|
50
|
+
/**
|
|
51
|
+
* Resize horizontally.
|
|
52
|
+
*/
|
|
53
|
+
horizontal: "horizontal",
|
|
54
|
+
/**
|
|
55
|
+
* Resize vertically.
|
|
56
|
+
*/
|
|
57
|
+
vertical: "vertical",
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* A Text Area Custom HTML Element.
|
|
62
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea | <textarea> element }.
|
|
63
|
+
*
|
|
64
|
+
* @slot - The default slot for the label
|
|
65
|
+
* @csspart label - The label
|
|
66
|
+
* @csspart root - The element wrapping the control
|
|
67
|
+
* @csspart control - The textarea element
|
|
68
|
+
* @fires change - Emits a custom 'change' event when the textarea emits a change event
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
class TextArea$1 extends FormAssociatedTextArea {
|
|
73
|
+
constructor() {
|
|
74
|
+
super(...arguments);
|
|
75
|
+
/**
|
|
76
|
+
* The resize mode of the element.
|
|
77
|
+
* @public
|
|
78
|
+
* @remarks
|
|
79
|
+
* HTML Attribute: resize
|
|
80
|
+
*/
|
|
81
|
+
this.resize = TextAreaResize.none;
|
|
82
|
+
/**
|
|
83
|
+
* Sizes the element horizontally by a number of character columns.
|
|
84
|
+
*
|
|
85
|
+
* @public
|
|
86
|
+
* @remarks
|
|
87
|
+
* HTML Attribute: cols
|
|
88
|
+
*/
|
|
89
|
+
this.cols = 20;
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
this.handleTextInput = () => {
|
|
94
|
+
this.value = this.control.value;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
readOnlyChanged() {
|
|
98
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
99
|
+
this.proxy.readOnly = this.readOnly;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
autofocusChanged() {
|
|
103
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
104
|
+
this.proxy.autofocus = this.autofocus;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
listChanged() {
|
|
108
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
109
|
+
this.proxy.setAttribute("list", this.list);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
maxlengthChanged() {
|
|
113
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
114
|
+
this.proxy.maxLength = this.maxlength;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
minlengthChanged() {
|
|
118
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
119
|
+
this.proxy.minLength = this.minlength;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
spellcheckChanged() {
|
|
123
|
+
if (this.proxy instanceof HTMLTextAreaElement) {
|
|
124
|
+
this.proxy.spellcheck = this.spellcheck;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Selects all the text in the text area
|
|
129
|
+
*
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
select() {
|
|
133
|
+
this.control.select();
|
|
134
|
+
/**
|
|
135
|
+
* The select event does not permeate the shadow DOM boundary.
|
|
136
|
+
* This fn effectively proxies the select event,
|
|
137
|
+
* emitting a `select` event whenever the internal
|
|
138
|
+
* control emits a `select` event
|
|
139
|
+
*/
|
|
140
|
+
this.$emit("select");
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Change event handler for inner control.
|
|
144
|
+
* @remarks
|
|
145
|
+
* "Change" events are not `composable` so they will not
|
|
146
|
+
* permeate the shadow DOM boundary. This fn effectively proxies
|
|
147
|
+
* the change event, emitting a `change` event whenever the internal
|
|
148
|
+
* control emits a `change` event
|
|
149
|
+
* @internal
|
|
150
|
+
*/
|
|
151
|
+
handleChange() {
|
|
152
|
+
this.$emit("change");
|
|
153
|
+
}
|
|
154
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
155
|
+
validate() {
|
|
156
|
+
super.validate(this.control);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
__decorate([
|
|
160
|
+
attr({ mode: "boolean" })
|
|
161
|
+
], TextArea$1.prototype, "readOnly", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
attr
|
|
164
|
+
], TextArea$1.prototype, "resize", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
attr({ mode: "boolean" })
|
|
167
|
+
], TextArea$1.prototype, "autofocus", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
attr({ attribute: "form" })
|
|
170
|
+
], TextArea$1.prototype, "formId", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
attr
|
|
173
|
+
], TextArea$1.prototype, "list", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
attr({ converter: nullableNumberConverter })
|
|
176
|
+
], TextArea$1.prototype, "maxlength", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
attr({ converter: nullableNumberConverter })
|
|
179
|
+
], TextArea$1.prototype, "minlength", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
attr
|
|
182
|
+
], TextArea$1.prototype, "name", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
attr
|
|
185
|
+
], TextArea$1.prototype, "placeholder", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
attr({ converter: nullableNumberConverter, mode: "fromView" })
|
|
188
|
+
], TextArea$1.prototype, "cols", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
attr({ converter: nullableNumberConverter, mode: "fromView" })
|
|
191
|
+
], TextArea$1.prototype, "rows", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
attr({ mode: "boolean" })
|
|
194
|
+
], TextArea$1.prototype, "spellcheck", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
observable
|
|
197
|
+
], TextArea$1.prototype, "defaultSlottedNodes", void 0);
|
|
198
|
+
applyMixins(TextArea$1, DelegatesARIATextbox);
|
|
199
|
+
|
|
200
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 19 Oct 2022 08:48:31 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: transparent;\n --_appearance-color-outline: transparent;\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: transparent;\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: transparent;\n --_appearance-color-outline: transparent;\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: transparent;\n --_appearance-color-outline: transparent;\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: 8px 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}";
|
|
201
|
+
|
|
202
|
+
let TextArea = class TextArea extends TextArea$1 {};
|
|
203
|
+
|
|
204
|
+
__decorate([attr, __metadata("design:type", String)], TextArea.prototype, "wrap", void 0);
|
|
205
|
+
|
|
206
|
+
TextArea = __decorate([formElements], TextArea);
|
|
207
|
+
|
|
208
|
+
let _ = t => t,
|
|
209
|
+
_t,
|
|
210
|
+
_t2,
|
|
211
|
+
_t3,
|
|
212
|
+
_t4;
|
|
213
|
+
|
|
214
|
+
const getClasses = ({
|
|
215
|
+
value,
|
|
216
|
+
errorValidationMessage,
|
|
217
|
+
disabled,
|
|
218
|
+
placeholder,
|
|
219
|
+
readOnly
|
|
220
|
+
}) => classNames('base', ['readonly', readOnly], ['placeholder', Boolean(placeholder)], ['disabled', disabled], ['error', Boolean(errorValidationMessage)], ['has-value', Boolean(value)]);
|
|
221
|
+
|
|
222
|
+
function renderLabel() {
|
|
223
|
+
return html(_t || (_t = _`
|
|
224
|
+
<label for="control" class="label">
|
|
225
|
+
${0}
|
|
226
|
+
</label>`), x => x.label);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function renderHelperText() {
|
|
230
|
+
return html(_t2 || (_t2 = _`<span class="helper-text">${0}</span>`), x => x.helperText);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function renderErrorMessage() {
|
|
234
|
+
return html(_t3 || (_t3 = _`
|
|
235
|
+
<vwc-icon class="error-message-icon" type="info-negative"></vwc-icon>
|
|
236
|
+
<span class="error-message">${0}</span>
|
|
237
|
+
`), x => x.errorValidationMessage);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
const TextAreaTemplate = context => {
|
|
241
|
+
const focusTemplate = focusTemplateFactory(context);
|
|
242
|
+
return html(_t4 || (_t4 = _`
|
|
243
|
+
<div class="${0}">
|
|
244
|
+
${0}
|
|
245
|
+
<div class="fieldset">
|
|
246
|
+
<textarea class="control"
|
|
247
|
+
?autofocus="${0}"
|
|
248
|
+
placeholder="${0}"
|
|
249
|
+
name="${0}"
|
|
250
|
+
maxlength="${0}"
|
|
251
|
+
rows="${0}"
|
|
252
|
+
cols="${0}"
|
|
253
|
+
wrap="${0}"
|
|
254
|
+
?readonly="${0}"
|
|
255
|
+
?required="${0}"
|
|
256
|
+
?spellcheck="${0}"
|
|
257
|
+
:value="${0}"
|
|
258
|
+
aria-atomic="${0}"
|
|
259
|
+
aria-busy="${0}"
|
|
260
|
+
aria-controls="${0}"
|
|
261
|
+
aria-current="${0}"
|
|
262
|
+
aria-describedby="${0}"
|
|
263
|
+
aria-details="${0}"
|
|
264
|
+
aria-disabled="${0}"
|
|
265
|
+
aria-errormessage="${0}"
|
|
266
|
+
aria-flowto="${0}"
|
|
267
|
+
aria-haspopup="${0}"
|
|
268
|
+
aria-hidden="${0}"
|
|
269
|
+
aria-invalid="${0}"
|
|
270
|
+
aria-keyshortcuts="${0}"
|
|
271
|
+
aria-label="${0}"
|
|
272
|
+
aria-labelledby="${0}"
|
|
273
|
+
aria-live="${0}"
|
|
274
|
+
aria-owns="${0}"
|
|
275
|
+
aria-relevant="${0}"
|
|
276
|
+
aria-roledescription="${0}"
|
|
277
|
+
@input="${0}"
|
|
278
|
+
@change="${0}"
|
|
279
|
+
${0}
|
|
280
|
+
>
|
|
281
|
+
</textarea>
|
|
282
|
+
${0}
|
|
283
|
+
</div>
|
|
284
|
+
${0}
|
|
285
|
+
${0}
|
|
286
|
+
</div>
|
|
287
|
+
`), 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 => {
|
|
288
|
+
var _a;
|
|
289
|
+
|
|
290
|
+
return !x.errorValidationMessage && ((_a = x.helperText) === null || _a === void 0 ? void 0 : _a.length);
|
|
291
|
+
}, renderHelperText()), when(x => x.errorValidationMessage, renderErrorMessage()));
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
const vividTextArea = TextArea.compose({
|
|
295
|
+
baseName: 'text-area',
|
|
296
|
+
template: TextAreaTemplate,
|
|
297
|
+
styles: css_248z,
|
|
298
|
+
shadowOptions: {
|
|
299
|
+
delegatesFocus: true
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
designSystem.register(vividTextArea());
|
|
303
|
+
|
|
304
|
+
export { vividTextArea };
|