@vonage/vivid 3.0.0-next.9 → 3.0.0-next.90

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