@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.
Files changed (49) hide show
  1. package/README.md +3 -0
  2. package/accordion/index.js +1 -3
  3. package/accordion-item/index.js +1 -3
  4. package/action-group/index.js +1 -3
  5. package/avatar/index.js +51 -0
  6. package/badge/index.js +1 -3
  7. package/banner/index.js +1 -3
  8. package/breadcrumb/index.js +0 -2
  9. package/breadcrumb-item/index.js +1 -3
  10. package/button/index.js +1 -3
  11. package/calendar/index.js +1 -3
  12. package/calendar-event/index.js +1 -3
  13. package/card/index.js +1 -3
  14. package/checkbox/index.js +1 -3
  15. package/dialog/index.js +2 -5
  16. package/divider/index.js +1 -3
  17. package/elevation/index.js +0 -1
  18. package/fab/index.js +1 -3
  19. package/focus/index.js +1 -3
  20. package/header/index.js +1 -3
  21. package/icon/index.js +0 -2
  22. package/index.js +1 -1
  23. package/layout/index.js +0 -2
  24. package/lib/avatar/avatar.d.ts +14 -0
  25. package/lib/avatar/avatar.template.d.ts +4 -0
  26. package/lib/avatar/index.d.ts +3 -0
  27. package/lib/text-area/index.d.ts +3 -0
  28. package/lib/text-area/text-area.d.ts +9 -0
  29. package/lib/text-area/text-area.template.d.ts +4 -0
  30. package/menu/index.js +0 -2
  31. package/nav-disclosure/index.js +1 -3
  32. package/nav-item/index.js +1 -3
  33. package/note/index.js +1 -3
  34. package/package.json +4 -2
  35. package/popup/index.js +0 -1
  36. package/progress/index.js +1 -3
  37. package/progress-ring/index.js +1 -3
  38. package/shared/form-elements.js +294 -0
  39. package/shared/index2.js +0 -2
  40. package/shared/index3.js +1 -3
  41. package/shared/patterns/form-elements.d.ts +1 -1
  42. package/side-drawer/index.js +1 -3
  43. package/styles/themes/dark.css +2 -2
  44. package/styles/themes/light.css +2 -2
  45. package/styles/typography/desktop.css +29 -14
  46. package/text-area/index.js +298 -0
  47. package/text-field/index.js +6 -294
  48. package/tooltip/index.js +1 -3
  49. package/shared/style-inject.es.js +0 -28
@@ -1,13 +1,10 @@
1
1
  import '../icon/index.js';
2
2
  import '../focus/index.js';
3
- import { F as FoundationElement, D as DOM, _ as __decorate, a as attr, n as nullableNumberConverter, o as observable, b as __metadata, v as volatile, c as __classPrivateFieldGet, i as __classPrivateFieldSet, h as html, d as designSystem } from '../shared/index.js';
3
+ import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
4
4
  import { b as AffixIcon, a as affixIconTemplateFactory } from '../shared/affix.js';
5
5
  import '../shared/focus.js';
6
- import '../shared/web.dom-collections.iterator.js';
6
+ import { T as TextField$1, f as formElements } from '../shared/form-elements.js';
7
7
  import { a as applyMixins } from '../shared/apply-mixins.js';
8
- import { F as FormAssociated } from '../shared/form-associated.js';
9
- import { A as ARIAGlobalStatesAndProperties, S as StartEnd } from '../shared/aria-global.js';
10
- import { s as styleInject } from '../shared/style-inject.es.js';
11
8
  import { f as focusTemplateFactory } from '../shared/focus2.js';
12
9
  import { w as when } from '../shared/when.js';
13
10
  import { r as ref } from '../shared/ref.js';
@@ -17,294 +14,10 @@ import '../shared/export.js';
17
14
  import '../shared/iterators.js';
18
15
  import '../shared/to-string.js';
19
16
  import '../shared/_has.js';
17
+ import '../shared/web.dom-collections.iterator.js';
20
18
  import '../shared/object-keys.js';
21
-
22
- class _TextField extends FoundationElement {
23
- }
24
- /**
25
- * A form-associated base class for the {@link @microsoft/fast-foundation#(TextField:class)} component.
26
- *
27
- * @internal
28
- */
29
- class FormAssociatedTextField extends FormAssociated(_TextField) {
30
- constructor() {
31
- super(...arguments);
32
- this.proxy = document.createElement("input");
33
- }
34
- }
35
-
36
- /**
37
- * Text field sub-types
38
- * @public
39
- */
40
- const TextFieldType = {
41
- /**
42
- * An email TextField
43
- */
44
- email: "email",
45
- /**
46
- * A password TextField
47
- */
48
- password: "password",
49
- /**
50
- * A telephone TextField
51
- */
52
- tel: "tel",
53
- /**
54
- * A text TextField
55
- */
56
- text: "text",
57
- /**
58
- * A URL TextField
59
- */
60
- url: "url",
61
- };
62
-
63
- /**
64
- * A Text Field Custom HTML Element.
65
- * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text | <input type="text" /> element }.
66
- *
67
- * @slot start - Content which can be provided before the number field input
68
- * @slot end - Content which can be provided after the number field input
69
- * @slot - The default slot for the label
70
- * @csspart label - The label
71
- * @csspart root - The element wrapping the control, including start and end slots
72
- * @csspart control - The text field element
73
- * @fires change - Fires a custom 'change' event when the value has changed
74
- *
75
- * @public
76
- */
77
- class TextField$1 extends FormAssociatedTextField {
78
- constructor() {
79
- super(...arguments);
80
- /**
81
- * Allows setting a type or mode of text.
82
- * @public
83
- * @remarks
84
- * HTML Attribute: type
85
- */
86
- this.type = TextFieldType.text;
87
- }
88
- readOnlyChanged() {
89
- if (this.proxy instanceof HTMLInputElement) {
90
- this.proxy.readOnly = this.readOnly;
91
- this.validate();
92
- }
93
- }
94
- autofocusChanged() {
95
- if (this.proxy instanceof HTMLInputElement) {
96
- this.proxy.autofocus = this.autofocus;
97
- this.validate();
98
- }
99
- }
100
- placeholderChanged() {
101
- if (this.proxy instanceof HTMLInputElement) {
102
- this.proxy.placeholder = this.placeholder;
103
- }
104
- }
105
- typeChanged() {
106
- if (this.proxy instanceof HTMLInputElement) {
107
- this.proxy.type = this.type;
108
- this.validate();
109
- }
110
- }
111
- listChanged() {
112
- if (this.proxy instanceof HTMLInputElement) {
113
- this.proxy.setAttribute("list", this.list);
114
- this.validate();
115
- }
116
- }
117
- maxlengthChanged() {
118
- if (this.proxy instanceof HTMLInputElement) {
119
- this.proxy.maxLength = this.maxlength;
120
- this.validate();
121
- }
122
- }
123
- minlengthChanged() {
124
- if (this.proxy instanceof HTMLInputElement) {
125
- this.proxy.minLength = this.minlength;
126
- this.validate();
127
- }
128
- }
129
- patternChanged() {
130
- if (this.proxy instanceof HTMLInputElement) {
131
- this.proxy.pattern = this.pattern;
132
- this.validate();
133
- }
134
- }
135
- sizeChanged() {
136
- if (this.proxy instanceof HTMLInputElement) {
137
- this.proxy.size = this.size;
138
- }
139
- }
140
- spellcheckChanged() {
141
- if (this.proxy instanceof HTMLInputElement) {
142
- this.proxy.spellcheck = this.spellcheck;
143
- }
144
- }
145
- /**
146
- * @internal
147
- */
148
- connectedCallback() {
149
- super.connectedCallback();
150
- this.proxy.setAttribute("type", this.type);
151
- this.validate();
152
- if (this.autofocus) {
153
- DOM.queueUpdate(() => {
154
- this.focus();
155
- });
156
- }
157
- }
158
- /**
159
- * Selects all the text in the text field
160
- *
161
- * @public
162
- */
163
- select() {
164
- this.control.select();
165
- /**
166
- * The select event does not permeate the shadow DOM boundary.
167
- * This fn effectively proxies the select event,
168
- * emitting a `select` event whenever the internal
169
- * control emits a `select` event
170
- */
171
- this.$emit("select");
172
- }
173
- /**
174
- * Handles the internal control's `input` event
175
- * @internal
176
- */
177
- handleTextInput() {
178
- this.value = this.control.value;
179
- }
180
- /**
181
- * Change event handler for inner control.
182
- * @remarks
183
- * "Change" events are not `composable` so they will not
184
- * permeate the shadow DOM boundary. This fn effectively proxies
185
- * the change event, emitting a `change` event whenever the internal
186
- * control emits a `change` event
187
- * @internal
188
- */
189
- handleChange() {
190
- this.$emit("change");
191
- }
192
- }
193
- __decorate([
194
- attr({ attribute: "readonly", mode: "boolean" })
195
- ], TextField$1.prototype, "readOnly", void 0);
196
- __decorate([
197
- attr({ mode: "boolean" })
198
- ], TextField$1.prototype, "autofocus", void 0);
199
- __decorate([
200
- attr
201
- ], TextField$1.prototype, "placeholder", void 0);
202
- __decorate([
203
- attr
204
- ], TextField$1.prototype, "type", void 0);
205
- __decorate([
206
- attr
207
- ], TextField$1.prototype, "list", void 0);
208
- __decorate([
209
- attr({ converter: nullableNumberConverter })
210
- ], TextField$1.prototype, "maxlength", void 0);
211
- __decorate([
212
- attr({ converter: nullableNumberConverter })
213
- ], TextField$1.prototype, "minlength", void 0);
214
- __decorate([
215
- attr
216
- ], TextField$1.prototype, "pattern", void 0);
217
- __decorate([
218
- attr({ converter: nullableNumberConverter })
219
- ], TextField$1.prototype, "size", void 0);
220
- __decorate([
221
- attr({ mode: "boolean" })
222
- ], TextField$1.prototype, "spellcheck", void 0);
223
- __decorate([
224
- observable
225
- ], TextField$1.prototype, "defaultSlottedNodes", void 0);
226
- /**
227
- * Includes ARIA states and properties relating to the ARIA textbox role
228
- *
229
- * @public
230
- */
231
- class DelegatesARIATextbox {
232
- }
233
- applyMixins(DelegatesARIATextbox, ARIAGlobalStatesAndProperties);
234
- applyMixins(TextField$1, StartEnd, DelegatesARIATextbox);
235
-
236
- const ElementInternalsKey = 'ElementInternals';
237
-
238
- const supportsElementInternals = () => ElementInternalsKey in window && 'setFormValue' in window[ElementInternalsKey].prototype;
239
-
240
- function formElements(constructor) {
241
- var _Decorated_blurred;
242
-
243
- class Decorated extends constructor {
244
- constructor(...args) {
245
- super(...args);
246
- this.charCount = false;
247
- this.userValid = true;
248
-
249
- _Decorated_blurred.set(this, false);
250
-
251
- this.validate = () => {
252
- if (supportsElementInternals() && this.proxy instanceof HTMLElement) {
253
- this.setValidity(this.proxy.validity, this.proxy.validationMessage, this.control);
254
- } else {
255
- super.validate();
256
- }
257
-
258
- this.userValid = !this.userValid;
259
-
260
- if (this.proxy instanceof HTMLElement) {
261
- this.userValid = __classPrivateFieldGet(this, _Decorated_blurred, "f") && this.dirtyValue ? !this.validationMessage : true;
262
- }
263
- };
264
-
265
- this.addEventListener('blur', () => {
266
- __classPrivateFieldSet(this, _Decorated_blurred, true, "f");
267
-
268
- this.validate();
269
- });
270
- this.addEventListener('focus', () => {
271
- __classPrivateFieldSet(this, _Decorated_blurred, false, "f");
272
- });
273
- this.addEventListener('invalid', () => {
274
- if (__classPrivateFieldGet(this, _Decorated_blurred, "f") && this.dirtyValue) return;
275
-
276
- __classPrivateFieldSet(this, _Decorated_blurred, true, "f");
277
-
278
- this.dirtyValue = true;
279
- this.validate();
280
- });
281
- }
282
-
283
- get errorValidationMessage() {
284
- return this.userValid ? '' : this.validationMessage;
285
- }
286
-
287
- }
288
-
289
- _Decorated_blurred = new WeakMap();
290
-
291
- __decorate([attr, __metadata("design:type", String)], Decorated.prototype, "label", void 0);
292
-
293
- __decorate([attr({
294
- attribute: 'helper-text'
295
- }), __metadata("design:type", String)], Decorated.prototype, "helperText", void 0);
296
-
297
- __decorate([attr({
298
- attribute: 'char-count',
299
- mode: 'boolean'
300
- }), __metadata("design:type", Object)], Decorated.prototype, "charCount", void 0);
301
-
302
- __decorate([observable, __metadata("design:type", Object)], Decorated.prototype, "userValid", void 0);
303
-
304
- __decorate([volatile, __metadata("design:type", Object), __metadata("design:paramtypes", [])], Decorated.prototype, "errorValidationMessage", null);
305
-
306
- return Decorated;
307
- }
19
+ import '../shared/form-associated.js';
20
+ import '../shared/aria-global.js';
308
21
 
309
22
  let TextField = class TextField extends TextField$1 {};
310
23
 
@@ -319,8 +32,7 @@ __decorate([attr, __metadata("design:type", String)], TextField.prototype, "auto
319
32
  TextField = __decorate([formElements], TextField);
320
33
  applyMixins(TextField, AffixIcon);
321
34
 
322
- var css_248z = "/**\n * Do not edit directly\n * Generated on Mon, 05 Sep 2022 17:52:00 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 ((-webkit-user-select: none) or (user-select: none)) {\n .base {\n -webkit-user-select: none;\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}\n\n.label {\n contain: inline-size;\n font: var(--vvd-font-base);\n grid-column: 1/4;\n grid-row: 1;\n}\n.char-count + .label {\n grid-column: 1/3;\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.char-count {\n color: var(--_low-ink-color);\n font: var(--vvd-font-base);\n grid-column: 3/4;\n}\n\n.fieldset {\n position: relative;\n display: flex;\n align-items: center;\n color: var(--_appearance-color-text);\n grid-column: 1/4;\n transition: color 0.2s;\n /* Size */\n /* Shape */\n}\n.base:not(.density-extended) > .fieldset {\n block-size: 40px;\n}\n.base.density-extended > .fieldset {\n block-size: 48px;\n}\n.base:not(.shape-pill) .fieldset {\n border-radius: 6px;\n}\n.base.shape-pill .fieldset {\n border-radius: 24px;\n}\n\n.control {\n width: 100%;\n border: 0 none;\n background-color: var(--_appearance-color-fill);\n block-size: 100%;\n border-radius: inherit;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: inherit;\n font: var(--vvd-font-base);\n padding-inline-end: 16px;\n padding-inline-start: 16px;\n transition: box-shadow 0.2s, background-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.icon {\n position: absolute;\n z-index: 1;\n color: var(--_low-ink-color);\n inset-inline-start: 16px;\n}\n.icon + .control {\n padding-inline-start: 44px;\n}\n\n.helper-text {\n color: var(--_low-ink-color);\n font: var(--vvd-font-base-condensed);\n grid-column: 1/4;\n margin-inline-start: 16px;\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}";
323
- styleInject(css_248z);
35
+ 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}\n\n.label {\n contain: inline-size;\n font: var(--vvd-font-base);\n grid-column: 1/4;\n grid-row: 1;\n}\n.char-count + .label {\n grid-column: 1/3;\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.char-count {\n color: var(--_low-ink-color);\n font: var(--vvd-font-base);\n grid-column: 3/4;\n}\n\n.fieldset {\n position: relative;\n display: flex;\n align-items: center;\n color: var(--_appearance-color-text);\n grid-column: 1/4;\n transition: color 0.2s;\n /* Size */\n /* Shape */\n}\n.base:not(.density-extended) > .fieldset {\n block-size: 40px;\n}\n.base.density-extended > .fieldset {\n block-size: 48px;\n}\n.base:not(.shape-pill) .fieldset {\n border-radius: 6px;\n}\n.base.shape-pill .fieldset {\n border-radius: 24px;\n}\n\n.control {\n width: 100%;\n border: 0 none;\n background-color: var(--_appearance-color-fill);\n block-size: 100%;\n border-radius: inherit;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: inherit;\n font: var(--vvd-font-base);\n padding-inline-end: 16px;\n padding-inline-start: 16px;\n transition: box-shadow 0.2s, background-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.icon {\n position: absolute;\n z-index: 1;\n color: var(--_low-ink-color);\n inset-inline-start: 16px;\n}\n.icon + .control {\n padding-inline-start: 44px;\n}\n\n.helper-text {\n color: var(--_low-ink-color);\n font: var(--vvd-font-base-condensed);\n grid-column: 1/4;\n margin-inline-start: 16px;\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}";
324
36
 
325
37
  let _ = t => t,
326
38
  _t,
package/tooltip/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import '../shared/index3.js';
2
2
  import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
3
- import { s as styleInject } from '../shared/style-inject.es.js';
4
3
  import '../shared/web.dom-collections.iterator.js';
5
4
  import { c as classNames } from '../shared/class-names.js';
6
5
  import '../shared/index2.js';
@@ -24,8 +23,7 @@ import '../shared/focus2.js';
24
23
  import '../shared/object-keys.js';
25
24
  import '../shared/es.object.assign.js';
26
25
 
27
- var css_248z = "/**\n * Do not edit directly\n * Generated on Mon, 05 Sep 2022 17:52:00 GMT\n */\n.control {\n pointer-events: none;\n}\n\n.tooltip {\n width: var(--tooltip-inline-size, 240px);\n}\n.tooltip-text {\n padding: 8px 12px;\n color: var(--vvd-color-canvas-text);\n font: var(--vvd-font-base-bold);\n}";
28
- styleInject(css_248z);
26
+ var css_248z = "/**\n * Do not edit directly\n * Generated on Fri, 09 Sep 2022 10:25:24 GMT\n */\n.control {\n pointer-events: none;\n}\n\n.tooltip {\n width: var(--tooltip-inline-size, 240px);\n}\n.tooltip-text {\n padding: 8px 12px;\n color: var(--vvd-color-canvas-text);\n font: var(--vvd-font-base-bold);\n}";
29
27
 
30
28
  class Tooltip extends FoundationElement {
31
29
  constructor() {
@@ -1,28 +0,0 @@
1
- function styleInject(css, ref) {
2
- if ( ref === void 0 ) ref = {};
3
- var insertAt = ref.insertAt;
4
-
5
- if (!css || typeof document === 'undefined') { return; }
6
-
7
- var head = document.head || document.getElementsByTagName('head')[0];
8
- var style = document.createElement('style');
9
- style.type = 'text/css';
10
-
11
- if (insertAt === 'top') {
12
- if (head.firstChild) {
13
- head.insertBefore(style, head.firstChild);
14
- } else {
15
- head.appendChild(style);
16
- }
17
- } else {
18
- head.appendChild(style);
19
- }
20
-
21
- if (style.styleSheet) {
22
- style.styleSheet.cssText = css;
23
- } else {
24
- style.appendChild(document.createTextNode(css));
25
- }
26
- }
27
-
28
- export { styleInject as s };