@vonage/vivid 3.0.0-next.10 → 3.0.0-next.100
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 +3 -12
- package/accordion-item/index.js +31 -38
- package/action-group/index.js +41 -0
- package/avatar/index.js +61 -0
- package/badge/index.js +17 -30
- package/banner/index.js +26 -111
- package/breadcrumb/index.js +21 -18
- package/breadcrumb-item/index.js +24 -20
- package/button/index.js +20 -757
- package/calendar/index.js +72 -67
- package/calendar-event/index.js +112 -0
- package/card/index.js +114 -0
- package/checkbox/index.js +179 -0
- package/dialog/index.js +230 -0
- package/divider/index.js +4 -0
- package/elevation/index.js +3 -31
- package/fab/index.js +100 -0
- package/focus/index.js +18 -3
- package/header/index.js +61 -0
- package/icon/index.js +11 -9
- package/index.js +64 -20
- package/layout/index.js +5 -15
- 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 +3 -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 +4 -3
- 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 +32 -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 +19 -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 +4 -4
- package/lib/listbox/index.d.ts +4 -0
- package/lib/listbox/listbox.d.ts +9 -0
- package/lib/listbox/listbox.template.d.ts +4 -0
- package/lib/listbox-option/index.d.ts +4 -0
- package/lib/listbox-option/listbox-option.d.ts +9 -0
- package/lib/listbox-option/listbox-option.template.d.ts +4 -0
- 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 +14 -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/radio-group/index.d.ts +10 -0
- package/lib/radio-group/radio-group.d.ts +4 -0
- package/lib/radio-group/radio-group.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/slider/index.d.ts +3 -0
- package/lib/slider/slider.d.ts +4 -0
- package/lib/slider/slider.template.d.ts +4 -0
- package/lib/switch/index.d.ts +4 -0
- package/lib/switch/switch.d.ts +7 -0
- package/lib/switch/switch.template.d.ts +4 -0
- package/lib/text-anchor/text-anchor.d.ts +1 -1
- package/lib/text-area/index.d.ts +4 -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 +14 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/listbox/index.js +1090 -0
- package/listbox-option/index.js +22 -0
- package/menu/index.js +371 -0
- package/menu-item/index.js +21 -0
- package/nav/index.js +17 -0
- package/nav-disclosure/index.js +82 -0
- package/nav-item/index.js +46 -0
- package/note/index.js +59 -0
- package/number-field/index.js +461 -0
- package/package.json +61 -10
- package/popup/index.js +23 -2061
- package/progress/index.js +35 -36
- package/progress-ring/index.js +11 -11
- package/radio/index.js +47 -0
- package/radio-group/index.js +435 -0
- package/shared/affix.js +1 -6
- package/shared/anchor.js +10 -2
- package/shared/apply-mixins.js +5 -4
- package/shared/aria-global.js +2 -86
- package/shared/aria.js +9 -0
- 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 +19 -0
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/direction.js +20 -0
- package/shared/dom.js +8 -0
- package/shared/enums.js +70 -0
- package/shared/es.object.assign.js +3 -2
- package/shared/es.regexp.to-string.js +59 -0
- package/shared/export.js +1017 -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 +331 -0
- package/shared/icon.js +532 -564
- package/shared/index.js +108 -79
- package/shared/index2.js +100 -14
- package/shared/index3.js +31 -0
- package/shared/index4.js +77 -0
- package/shared/index5.js +261 -0
- package/shared/index6.js +1525 -0
- package/shared/index7.js +349 -0
- package/shared/iterators.js +61 -0
- package/shared/key-codes.js +97 -0
- package/shared/numbers.js +25 -0
- package/shared/object-keys.js +13 -0
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/form-elements/form-elements.d.ts +28 -0
- package/shared/patterns/form-elements/index.d.ts +1 -0
- package/shared/patterns/index.d.ts +2 -0
- package/shared/radio.js +127 -0
- package/shared/ref.js +41 -0
- package/shared/slotted.js +1 -1
- package/shared/start-end.js +50 -0
- package/shared/string-trim.js +40 -0
- package/shared/text-anchor.js +2 -13
- package/shared/text-anchor.template.js +6 -5
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +74 -1081
- package/side-drawer/index.js +41 -33
- package/slider/index.js +596 -0
- 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 +230 -0
- package/styles/tokens/theme-light.css +230 -0
- package/switch/index.js +153 -0
- package/text-anchor/index.js +10 -1
- package/text-area/index.js +289 -0
- package/text-field/index.js +130 -0
- package/tooltip/index.js +24 -24
- 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
package/shared/index5.js
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import '../icon/index.js';
|
|
2
|
+
import '../focus/index.js';
|
|
3
|
+
import { F as FoundationElement, O as Observable, _ as __decorate, o as observable, a as attr, b as __metadata, h as html, d as designSystem } from './index.js';
|
|
4
|
+
import { A as AffixIconWithTrailing, a as affixIconTemplateFactory } from './affix.js';
|
|
5
|
+
import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
|
|
6
|
+
import { S as StartEnd } from './start-end.js';
|
|
7
|
+
import { a as applyMixins } from './apply-mixins.js';
|
|
8
|
+
import { i as isHTMLElement } from './dom.js';
|
|
9
|
+
import { f as focusTemplateFactory } from './focus2.js';
|
|
10
|
+
import './web.dom-collections.iterator.js';
|
|
11
|
+
import './icon.js';
|
|
12
|
+
import { w as when } from './when.js';
|
|
13
|
+
import { c as classNames } from './class-names.js';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Determines if the element is a {@link (ListboxOption:class)}
|
|
17
|
+
*
|
|
18
|
+
* @param element - the element to test.
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
function isListboxOption(el) {
|
|
22
|
+
return (isHTMLElement(el) &&
|
|
23
|
+
(el.getAttribute("role") === "option" ||
|
|
24
|
+
el instanceof HTMLOptionElement));
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* An Option Custom HTML Element.
|
|
28
|
+
* Implements {@link https://www.w3.org/TR/wai-aria-1.1/#option | ARIA option }.
|
|
29
|
+
*
|
|
30
|
+
* @slot start - Content which can be provided before the listbox option content
|
|
31
|
+
* @slot end - Content which can be provided after the listbox option content
|
|
32
|
+
* @slot - The default slot for listbox option content
|
|
33
|
+
* @csspart content - Wraps the listbox option content
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
class ListboxOption$1 extends FoundationElement {
|
|
38
|
+
constructor(text, value, defaultSelected, selected) {
|
|
39
|
+
super();
|
|
40
|
+
/**
|
|
41
|
+
* The defaultSelected state of the option.
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
this.defaultSelected = false;
|
|
45
|
+
/**
|
|
46
|
+
* Tracks whether the "selected" property has been changed.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
this.dirtySelected = false;
|
|
50
|
+
/**
|
|
51
|
+
* The checked state of the control.
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
this.selected = this.defaultSelected;
|
|
56
|
+
/**
|
|
57
|
+
* Track whether the value has been changed from the initial value
|
|
58
|
+
*/
|
|
59
|
+
this.dirtyValue = false;
|
|
60
|
+
if (text) {
|
|
61
|
+
this.textContent = text;
|
|
62
|
+
}
|
|
63
|
+
if (value) {
|
|
64
|
+
this.initialValue = value;
|
|
65
|
+
}
|
|
66
|
+
if (defaultSelected) {
|
|
67
|
+
this.defaultSelected = defaultSelected;
|
|
68
|
+
}
|
|
69
|
+
if (selected) {
|
|
70
|
+
this.selected = selected;
|
|
71
|
+
}
|
|
72
|
+
this.proxy = new Option(`${this.textContent}`, this.initialValue, this.defaultSelected, this.selected);
|
|
73
|
+
this.proxy.disabled = this.disabled;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Updates the ariaChecked property when the checked property changes.
|
|
77
|
+
*
|
|
78
|
+
* @param prev - the previous checked value
|
|
79
|
+
* @param next - the current checked value
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
checkedChanged(prev, next) {
|
|
84
|
+
if (typeof next === "boolean") {
|
|
85
|
+
this.ariaChecked = next ? "true" : "false";
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
this.ariaChecked = null;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Updates the proxy's text content when the default slot changes.
|
|
92
|
+
* @param prev - the previous content value
|
|
93
|
+
* @param next - the current content value
|
|
94
|
+
*
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
contentChanged(prev, next) {
|
|
98
|
+
if (this.proxy instanceof HTMLOptionElement) {
|
|
99
|
+
this.proxy.textContent = this.textContent;
|
|
100
|
+
}
|
|
101
|
+
this.$emit("contentchange", null, { bubbles: true });
|
|
102
|
+
}
|
|
103
|
+
defaultSelectedChanged() {
|
|
104
|
+
if (!this.dirtySelected) {
|
|
105
|
+
this.selected = this.defaultSelected;
|
|
106
|
+
if (this.proxy instanceof HTMLOptionElement) {
|
|
107
|
+
this.proxy.selected = this.defaultSelected;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
disabledChanged(prev, next) {
|
|
112
|
+
this.ariaDisabled = this.disabled ? "true" : "false";
|
|
113
|
+
if (this.proxy instanceof HTMLOptionElement) {
|
|
114
|
+
this.proxy.disabled = this.disabled;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
selectedAttributeChanged() {
|
|
118
|
+
this.defaultSelected = this.selectedAttribute;
|
|
119
|
+
if (this.proxy instanceof HTMLOptionElement) {
|
|
120
|
+
this.proxy.defaultSelected = this.defaultSelected;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
selectedChanged() {
|
|
124
|
+
this.ariaSelected = this.selected ? "true" : "false";
|
|
125
|
+
if (!this.dirtySelected) {
|
|
126
|
+
this.dirtySelected = true;
|
|
127
|
+
}
|
|
128
|
+
if (this.proxy instanceof HTMLOptionElement) {
|
|
129
|
+
this.proxy.selected = this.selected;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
initialValueChanged(previous, next) {
|
|
133
|
+
// If the value is clean and the component is connected to the DOM
|
|
134
|
+
// then set value equal to the attribute value.
|
|
135
|
+
if (!this.dirtyValue) {
|
|
136
|
+
this.value = this.initialValue;
|
|
137
|
+
this.dirtyValue = false;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
get label() {
|
|
141
|
+
var _a;
|
|
142
|
+
return (_a = this.value) !== null && _a !== void 0 ? _a : this.text;
|
|
143
|
+
}
|
|
144
|
+
get text() {
|
|
145
|
+
var _a, _b;
|
|
146
|
+
return (_b = (_a = this.textContent) === null || _a === void 0 ? void 0 : _a.replace(/\s+/g, " ").trim()) !== null && _b !== void 0 ? _b : "";
|
|
147
|
+
}
|
|
148
|
+
set value(next) {
|
|
149
|
+
const newValue = `${next !== null && next !== void 0 ? next : ""}`;
|
|
150
|
+
this._value = newValue;
|
|
151
|
+
this.dirtyValue = true;
|
|
152
|
+
if (this.proxy instanceof HTMLOptionElement) {
|
|
153
|
+
this.proxy.value = newValue;
|
|
154
|
+
}
|
|
155
|
+
Observable.notify(this, "value");
|
|
156
|
+
}
|
|
157
|
+
get value() {
|
|
158
|
+
var _a;
|
|
159
|
+
Observable.track(this, "value");
|
|
160
|
+
return (_a = this._value) !== null && _a !== void 0 ? _a : this.text;
|
|
161
|
+
}
|
|
162
|
+
get form() {
|
|
163
|
+
return this.proxy ? this.proxy.form : null;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
__decorate([
|
|
167
|
+
observable
|
|
168
|
+
], ListboxOption$1.prototype, "checked", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
observable
|
|
171
|
+
], ListboxOption$1.prototype, "content", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
observable
|
|
174
|
+
], ListboxOption$1.prototype, "defaultSelected", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
attr({ mode: "boolean" })
|
|
177
|
+
], ListboxOption$1.prototype, "disabled", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
attr({ attribute: "selected", mode: "boolean" })
|
|
180
|
+
], ListboxOption$1.prototype, "selectedAttribute", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
observable
|
|
183
|
+
], ListboxOption$1.prototype, "selected", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
attr({ attribute: "value", mode: "fromView" })
|
|
186
|
+
], ListboxOption$1.prototype, "initialValue", void 0);
|
|
187
|
+
/**
|
|
188
|
+
* States and properties relating to the ARIA `option` role.
|
|
189
|
+
*
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
class DelegatesARIAListboxOption {
|
|
193
|
+
}
|
|
194
|
+
__decorate([
|
|
195
|
+
observable
|
|
196
|
+
], DelegatesARIAListboxOption.prototype, "ariaChecked", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
observable
|
|
199
|
+
], DelegatesARIAListboxOption.prototype, "ariaPosInSet", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
observable
|
|
202
|
+
], DelegatesARIAListboxOption.prototype, "ariaSelected", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
observable
|
|
205
|
+
], DelegatesARIAListboxOption.prototype, "ariaSetSize", void 0);
|
|
206
|
+
applyMixins(DelegatesARIAListboxOption, ARIAGlobalStatesAndProperties);
|
|
207
|
+
applyMixins(ListboxOption$1, StartEnd, DelegatesARIAListboxOption);
|
|
208
|
+
|
|
209
|
+
class ListboxOption extends ListboxOption$1 {
|
|
210
|
+
set text(value) {
|
|
211
|
+
this._text = value;
|
|
212
|
+
}
|
|
213
|
+
get text() {
|
|
214
|
+
var _a;
|
|
215
|
+
return (_a = this._text) !== null && _a !== void 0 ? _a : '';
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
__decorate([attr({
|
|
219
|
+
attribute: 'text'
|
|
220
|
+
}), __metadata("design:type", String)], ListboxOption.prototype, "_text", void 0);
|
|
221
|
+
applyMixins(ListboxOption, AffixIconWithTrailing);
|
|
222
|
+
|
|
223
|
+
let _ = t => t,
|
|
224
|
+
_t,
|
|
225
|
+
_t2;
|
|
226
|
+
const getClasses = ({
|
|
227
|
+
icon,
|
|
228
|
+
disabled,
|
|
229
|
+
selected,
|
|
230
|
+
checked
|
|
231
|
+
}) => classNames('base', ['disabled', disabled], ['selected', Boolean(selected)], ['active', Boolean(checked)], ['icon', Boolean(icon)]);
|
|
232
|
+
const ListboxOptionTemplate = context => {
|
|
233
|
+
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
234
|
+
const focusTemplate = focusTemplateFactory(context);
|
|
235
|
+
return html(_t || (_t = _`
|
|
236
|
+
<template
|
|
237
|
+
aria-checked="${0}"
|
|
238
|
+
aria-disabled="${0}"
|
|
239
|
+
aria-posinset="${0}"
|
|
240
|
+
aria-selected="${0}"
|
|
241
|
+
aria-setsize="${0}"
|
|
242
|
+
role="option">
|
|
243
|
+
<div class="${0}">
|
|
244
|
+
${0}
|
|
245
|
+
${0}
|
|
246
|
+
${0}
|
|
247
|
+
</div>
|
|
248
|
+
</template>
|
|
249
|
+
`), x => x.ariaChecked, x => x.ariaDisabled, x => x.ariaPosInSet, x => x.ariaSelected, x => x.ariaSetSize, getClasses, () => focusTemplate, x => affixIconTemplate(x.icon), when(x => x.text, html(_t2 || (_t2 = _`<div class="text">${0}</div>`), x => x.text)));
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Tue, 15 Nov 2022 13:39:19 GMT\n */\n.base {\n position: relative; /* this is needed for the focus */\n display: flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n border-radius: 6px;\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 gap: 8px;\n hyphens: auto;\n inline-size: 100%;\n min-block-size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1)));\n padding-block: 10px;\n padding-inline: 8px;\n vertical-align: middle;\n word-break: break-word;\n}\n.base {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-800);\n --_connotation-color-faint: var(--vvd-color-neutral-50);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n.base {\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, .readonly)) {\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: transparent;\n --_appearance-color-outline: transparent;\n}\n.base:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transparent;\n}\n.base:where(.selected, [aria-current]):where(:not(:disabled, .disabled, :hover, .hover)) {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.base:where(.selected, [aria-current]):where(:hover, .hover) {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary-increment);\n --_appearance-color-outline: transparent;\n}\n@supports (user-select: none) {\n .base {\n user-select: none;\n }\n}\n.base:not(.disabled) {\n cursor: pointer;\n}\n.base.disabled {\n cursor: not-allowed;\n}\n.base .text {\n font: var(--vvd-typography-base);\n}\n\n.icon {\n font-size: 20px;\n}\n.base:not(.disabled, .selected) .icon {\n color: var(--vvd-color-neutral-600);\n}\n\n.focus-indicator {\n --focus-stroke-color: var(--vvd-color-neutral-500);\n --focus-stroke-gap-color: transparent;\n}\n:host(:not([aria-checked=true])) .focus-indicator {\n display: none;\n}";
|
|
253
|
+
|
|
254
|
+
const vividListboxOption = ListboxOption.compose({
|
|
255
|
+
baseName: 'option',
|
|
256
|
+
template: ListboxOptionTemplate,
|
|
257
|
+
styles: css_248z
|
|
258
|
+
});
|
|
259
|
+
designSystem.register(vividListboxOption());
|
|
260
|
+
|
|
261
|
+
export { isListboxOption as i, vividListboxOption as v };
|