@triptease/tt-combobox 5.7.1 → 5.7.3

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.
@@ -1,847 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "src/TtCombobox.ts",
8
- "declarations": [
9
- {
10
- "kind": "class",
11
- "description": "",
12
- "name": "TtCombobox",
13
- "members": [
14
- {
15
- "kind": "field",
16
- "name": "formAssociated",
17
- "type": {
18
- "text": "boolean"
19
- },
20
- "static": true,
21
- "default": "true"
22
- },
23
- {
24
- "kind": "field",
25
- "name": "shadowRootOptions",
26
- "type": {
27
- "text": "object"
28
- },
29
- "static": true,
30
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
31
- },
32
- {
33
- "kind": "field",
34
- "name": "multiselect",
35
- "type": {
36
- "text": "boolean"
37
- },
38
- "default": "false",
39
- "attribute": "multiselect"
40
- },
41
- {
42
- "kind": "field",
43
- "name": "disabled",
44
- "type": {
45
- "text": "boolean"
46
- },
47
- "default": "false",
48
- "attribute": "disabled"
49
- },
50
- {
51
- "kind": "field",
52
- "name": "invalid",
53
- "type": {
54
- "text": "boolean"
55
- },
56
- "default": "false",
57
- "attribute": "invalid"
58
- },
59
- {
60
- "kind": "field",
61
- "name": "displaySelectAll",
62
- "type": {
63
- "text": "boolean"
64
- },
65
- "default": "false",
66
- "attribute": "display-select-all"
67
- },
68
- {
69
- "kind": "field",
70
- "name": "required",
71
- "type": {
72
- "text": "boolean"
73
- },
74
- "default": "false",
75
- "attribute": "required"
76
- },
77
- {
78
- "kind": "field",
79
- "name": "name",
80
- "type": {
81
- "text": "string"
82
- },
83
- "default": "''",
84
- "attribute": "name"
85
- },
86
- {
87
- "kind": "field",
88
- "name": "ariaLabelledby",
89
- "default": "nothing",
90
- "attribute": "aria-labelledby"
91
- },
92
- {
93
- "kind": "field",
94
- "name": "hideCaret",
95
- "type": {
96
- "text": "boolean"
97
- },
98
- "default": "false",
99
- "attribute": "hide-caret"
100
- },
101
- {
102
- "kind": "field",
103
- "name": "placeholder",
104
- "type": {
105
- "text": "string | undefined"
106
- },
107
- "attribute": "placeholder"
108
- },
109
- {
110
- "kind": "field",
111
- "name": "selectAllPlaceholder",
112
- "type": {
113
- "text": "string | undefined"
114
- },
115
- "attribute": "select-all-placeholder"
116
- },
117
- {
118
- "kind": "field",
119
- "name": "openUpward",
120
- "type": {
121
- "text": "boolean"
122
- },
123
- "default": "false",
124
- "attribute": "open-upward"
125
- },
126
- {
127
- "kind": "field",
128
- "name": "form",
129
- "type": {
130
- "text": "HTMLFormElement | null"
131
- },
132
- "readonly": true
133
- },
134
- {
135
- "kind": "field",
136
- "name": "_activeOption",
137
- "type": {
138
- "text": "number"
139
- },
140
- "privacy": "protected",
141
- "default": "-1"
142
- },
143
- {
144
- "kind": "field",
145
- "name": "_expanded",
146
- "type": {
147
- "text": "boolean"
148
- },
149
- "privacy": "protected",
150
- "default": "false"
151
- },
152
- {
153
- "kind": "field",
154
- "name": "_filter",
155
- "type": {
156
- "text": "string"
157
- },
158
- "privacy": "protected",
159
- "default": "''"
160
- },
161
- {
162
- "kind": "field",
163
- "name": "options",
164
- "type": {
165
- "text": "Array<HTMLOptionElement>"
166
- }
167
- },
168
- {
169
- "kind": "field",
170
- "name": "activeOptions",
171
- "type": {
172
- "text": "Array<HTMLOptionElement>"
173
- }
174
- },
175
- {
176
- "kind": "field",
177
- "name": "errorElements",
178
- "type": {
179
- "text": "Array<HTMLElement>"
180
- },
181
- "privacy": "protected"
182
- },
183
- {
184
- "kind": "field",
185
- "name": "_visibleOptions",
186
- "type": {
187
- "text": "Array<TtOption>"
188
- },
189
- "privacy": "protected"
190
- },
191
- {
192
- "kind": "field",
193
- "name": "_visibleOptionsNotSelectAll",
194
- "type": {
195
- "text": "Array<TtOption>"
196
- },
197
- "privacy": "protected"
198
- },
199
- {
200
- "kind": "field",
201
- "name": "_selectableOptions",
202
- "type": {
203
- "text": "NodeListOf<TtOption>"
204
- },
205
- "privacy": "protected"
206
- },
207
- {
208
- "kind": "field",
209
- "name": "_selectableVisibleOptions",
210
- "type": {
211
- "text": "NodeListOf<TtOption>"
212
- },
213
- "privacy": "protected"
214
- },
215
- {
216
- "kind": "field",
217
- "name": "_comboboxInput",
218
- "type": {
219
- "text": "HTMLInputElement"
220
- },
221
- "privacy": "protected"
222
- },
223
- {
224
- "kind": "field",
225
- "name": "_chevronButton",
226
- "type": {
227
- "text": "HTMLButtonElement"
228
- },
229
- "privacy": "protected"
230
- },
231
- {
232
- "kind": "field",
233
- "name": "internals",
234
- "type": {
235
- "text": "ReturnType<typeof this.attachInternals>"
236
- },
237
- "privacy": "public"
238
- },
239
- {
240
- "kind": "field",
241
- "name": "value",
242
- "type": {
243
- "text": "string[]"
244
- },
245
- "privacy": "public",
246
- "default": "[]",
247
- "attribute": "value"
248
- },
249
- {
250
- "kind": "field",
251
- "name": "_isAllSelected",
252
- "type": {
253
- "text": "boolean"
254
- },
255
- "privacy": "private",
256
- "readonly": true
257
- },
258
- {
259
- "kind": "field",
260
- "name": "_selectedVisibleOptions",
261
- "type": {
262
- "text": "Array<TtOption>"
263
- },
264
- "privacy": "protected",
265
- "readonly": true
266
- },
267
- {
268
- "kind": "field",
269
- "name": "_selectedOptions",
270
- "type": {
271
- "text": "Array<TtOption>"
272
- },
273
- "privacy": "protected",
274
- "readonly": true
275
- },
276
- {
277
- "kind": "field",
278
- "name": "_slotObserver",
279
- "type": {
280
- "text": "MutationObserver"
281
- },
282
- "privacy": "private",
283
- "default": "new MutationObserver((mutations) => { mutations.forEach((mutation) => { if (mutation.type === 'attributes') { this.requestUpdate('options'); } }); })"
284
- },
285
- {
286
- "kind": "method",
287
- "name": "_handleFocusOut",
288
- "privacy": "private",
289
- "parameters": [
290
- {
291
- "name": "e",
292
- "type": {
293
- "text": "FocusEvent"
294
- }
295
- }
296
- ]
297
- },
298
- {
299
- "kind": "method",
300
- "name": "_onFocus",
301
- "privacy": "private"
302
- },
303
- {
304
- "kind": "field",
305
- "name": "_valueChanged",
306
- "privacy": "private"
307
- },
308
- {
309
- "kind": "field",
310
- "name": "_listenForOptionChange",
311
- "privacy": "private"
312
- },
313
- {
314
- "kind": "method",
315
- "name": "_reportValidity",
316
- "privacy": "private"
317
- },
318
- {
319
- "kind": "field",
320
- "name": "labels",
321
- "type": {
322
- "text": "Array<HTMLElement>"
323
- },
324
- "privacy": "private",
325
- "readonly": true
326
- },
327
- {
328
- "kind": "field",
329
- "name": "labelContent",
330
- "type": {
331
- "text": "string"
332
- },
333
- "privacy": "private",
334
- "readonly": true
335
- },
336
- {
337
- "kind": "method",
338
- "name": "_onKeyUp",
339
- "privacy": "private",
340
- "parameters": [
341
- {
342
- "name": "event",
343
- "type": {
344
- "text": "KeyboardEvent"
345
- }
346
- }
347
- ]
348
- },
349
- {
350
- "kind": "method",
351
- "name": "_uncheckOption",
352
- "privacy": "private",
353
- "parameters": [
354
- {
355
- "name": "option",
356
- "type": {
357
- "text": "HTMLElement"
358
- }
359
- }
360
- ]
361
- },
362
- {
363
- "kind": "method",
364
- "name": "_checkOption",
365
- "privacy": "private",
366
- "parameters": [
367
- {
368
- "name": "option",
369
- "type": {
370
- "text": "HTMLElement"
371
- }
372
- }
373
- ]
374
- },
375
- {
376
- "kind": "method",
377
- "name": "_getActiveOptionId",
378
- "privacy": "private",
379
- "return": {
380
- "type": {
381
- "text": "string | undefined"
382
- }
383
- }
384
- },
385
- {
386
- "kind": "method",
387
- "name": "_onClick",
388
- "privacy": "private"
389
- },
390
- {
391
- "kind": "method",
392
- "name": "_onChevronClick",
393
- "privacy": "private"
394
- },
395
- {
396
- "kind": "method",
397
- "name": "_onClickOption",
398
- "privacy": "private",
399
- "parameters": [
400
- {
401
- "name": "event",
402
- "type": {
403
- "text": "MouseEvent"
404
- }
405
- }
406
- ]
407
- },
408
- {
409
- "kind": "method",
410
- "name": "_onInput",
411
- "privacy": "private",
412
- "parameters": [
413
- {
414
- "name": "event",
415
- "type": {
416
- "text": "Event"
417
- }
418
- }
419
- ]
420
- },
421
- {
422
- "kind": "method",
423
- "name": "_dispatchSelectedOptions",
424
- "privacy": "private"
425
- },
426
- {
427
- "kind": "field",
428
- "name": "_selectAll",
429
- "privacy": "private"
430
- },
431
- {
432
- "kind": "field",
433
- "name": "_isValid",
434
- "type": {
435
- "text": "boolean"
436
- },
437
- "privacy": "private",
438
- "readonly": true
439
- },
440
- {
441
- "kind": "method",
442
- "name": "_renderCombobox",
443
- "privacy": "private"
444
- },
445
- {
446
- "kind": "field",
447
- "name": "_renderSelectAll",
448
- "privacy": "private"
449
- },
450
- {
451
- "kind": "method",
452
- "name": "_renderOption",
453
- "privacy": "private",
454
- "parameters": [
455
- {
456
- "name": "option",
457
- "type": {
458
- "text": "HTMLOptionElement"
459
- }
460
- }
461
- ]
462
- },
463
- {
464
- "kind": "field",
465
- "name": "_renderChevron",
466
- "privacy": "private"
467
- },
468
- {
469
- "kind": "method",
470
- "name": "_hasErrorContent",
471
- "privacy": "private",
472
- "return": {
473
- "type": {
474
- "text": "boolean"
475
- }
476
- }
477
- }
478
- ],
479
- "events": [
480
- {
481
- "name": "change",
482
- "type": {
483
- "text": "Event"
484
- }
485
- }
486
- ],
487
- "attributes": [
488
- {
489
- "name": "multiselect",
490
- "type": {
491
- "text": "boolean"
492
- },
493
- "default": "false",
494
- "fieldName": "multiselect"
495
- },
496
- {
497
- "name": "disabled",
498
- "type": {
499
- "text": "boolean"
500
- },
501
- "default": "false",
502
- "fieldName": "disabled"
503
- },
504
- {
505
- "name": "invalid",
506
- "type": {
507
- "text": "boolean"
508
- },
509
- "default": "false",
510
- "fieldName": "invalid"
511
- },
512
- {
513
- "name": "display-select-all",
514
- "type": {
515
- "text": "boolean"
516
- },
517
- "default": "false",
518
- "fieldName": "displaySelectAll"
519
- },
520
- {
521
- "name": "required",
522
- "type": {
523
- "text": "boolean"
524
- },
525
- "default": "false",
526
- "fieldName": "required"
527
- },
528
- {
529
- "name": "name",
530
- "type": {
531
- "text": "string"
532
- },
533
- "default": "''",
534
- "fieldName": "name"
535
- },
536
- {
537
- "name": "aria-labelledby",
538
- "default": "nothing",
539
- "fieldName": "ariaLabelledby"
540
- },
541
- {
542
- "name": "hide-caret",
543
- "type": {
544
- "text": "boolean"
545
- },
546
- "default": "false",
547
- "fieldName": "hideCaret"
548
- },
549
- {
550
- "name": "placeholder",
551
- "type": {
552
- "text": "string | undefined"
553
- },
554
- "fieldName": "placeholder"
555
- },
556
- {
557
- "name": "select-all-placeholder",
558
- "type": {
559
- "text": "string | undefined"
560
- },
561
- "fieldName": "selectAllPlaceholder"
562
- },
563
- {
564
- "name": "open-upward",
565
- "type": {
566
- "text": "boolean"
567
- },
568
- "default": "false",
569
- "fieldName": "openUpward"
570
- },
571
- {
572
- "name": "value",
573
- "type": {
574
- "text": "string[]"
575
- },
576
- "default": "[]",
577
- "fieldName": "value"
578
- }
579
- ],
580
- "superclass": {
581
- "name": "LitElement",
582
- "package": "lit"
583
- },
584
- "tagName": "tt-combobox",
585
- "customElement": true
586
- }
587
- ],
588
- "exports": [
589
- {
590
- "kind": "js",
591
- "name": "TtCombobox",
592
- "declaration": {
593
- "name": "TtCombobox",
594
- "module": "src/TtCombobox.ts"
595
- }
596
- }
597
- ]
598
- },
599
- {
600
- "kind": "javascript-module",
601
- "path": "src/index.ts",
602
- "declarations": [],
603
- "exports": [
604
- {
605
- "kind": "js",
606
- "name": "*",
607
- "declaration": {
608
- "name": "*",
609
- "package": "./types.js"
610
- }
611
- },
612
- {
613
- "kind": "js",
614
- "name": "TtCombobox",
615
- "declaration": {
616
- "name": "TtCombobox",
617
- "module": "./tt-combobox.js"
618
- }
619
- }
620
- ]
621
- },
622
- {
623
- "kind": "javascript-module",
624
- "path": "src/styles.ts",
625
- "declarations": [
626
- {
627
- "kind": "variable",
628
- "name": "styles",
629
- "default": "css` :host { display: flex; flex-direction: var(--tt-combobox-flex-direction, row); align-items: var(--tt-combobox-align-items, center); justify-content: var(--tt-combobox-justify-content, initial); align-content: var(--tt-combobox-align-content, initial); gap: var(--tt-combobox-gap, 0.5rem); font-size: var(--tt-combobox-font-size, var(--font-size-200)); color: var(--tt-combobox-color, var(--color-text-400)); } :host([disabled]) .tt-combobox-container { border-color: var(--tt-combobox-disabled-border-color, var(--color-border-200)); color: var(--tt-combobox-disabled-color, var(--color-text-200)); background-color: var(--tt-combobox-disabled-background-color, var(--color-surface-200)); pointer-events: none; } .tt-combobox-container:focus-within { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; } .tt-combobox-container:hover { background-color: var(--tt-combobox-hover-background-color, var(--color-surface-300)); } :host([invalid]) .tt-combobox-container, :host(:state(interacted):invalid) .tt-combobox-container { outline: 1px solid var(--color-alert-strong); } .errormessage { visibility: hidden; display: flex; align-items: center; gap: var(--space-scale-0-5); color: var(--color-alert-strong); &[data-hidden] { display: none; } } .errormessage svg path { fill: var(--color-alert-strong); height: 20px; } .tt-combobox-container:has([role='combobox'][aria-invalid='true']) ~ .errormessage { visibility: visible; } :has([role='combobox'][aria-invalid='true']) ::slotted([slot='error']) { color: var(--color-alert-strong); font-size: var(--font-size-100); margin: 0; font-weight: var(--font-weight-regular); line-height: 1.2; } slot[name='option']::slotted(*) { display: none; } * { box-sizing: border-box; font-family: var(--font-family-sans); cursor: inherit; } .tt-combobox-container { position: relative; max-width: var(--tt-combobox-max-width, 300px); min-width: var(--tt-combobox-min-width, 250px); display: flex; flex-direction: row; align-items: center; border-radius: var(--border-radius); border-color: var(--tt-combobox-border-color, var(--color-border-400)); border-style: solid; border-width: var(--tt-combobox-border-width, 1px); background-color: var(--tt-combobox-background-color, var(--color-surface-100)); padding: 0.5rem; gap: 0.25rem; //width: 100%; } [role='listbox'] { display: none; } [role='combobox'] { width: 100%; border-style: none; background-color: transparent; font-size: var(--tt-combobox-font-size, var(--font-size-200)); } .hide-caret { caret-color: transparent; } [role='combobox']::placeholder { color: var(--tt-combobox-placeholder-color, var(--color-text-300)); font-family: var(--font-family-inter); font-size: var(--tt-combobox-font-size, var(--font-size-200)); } :host([disabled]) [role='combobox']::placeholder { color: var(--tt-combobox-disabled-placeholder-color, var(--color-text-200)); } [role='combobox']:placeholder-shown { text-overflow: ellipsis; overflow: clip; } [role='combobox']:focus { outline: none; } [role='combobox'] ~ button { appearance: none; padding: 0; border-width: 0; background-color: transparent; aspect-ratio: 1; } [role='combobox'] ~ button svg { transition: transform 0.2s ease-in-out; color: var(--tt-combobox-dropdown-color, var(--color-text-400)); } [role='combobox'][aria-expanded='true'] ~ button svg { transform: rotate(180deg); } [role='combobox'][aria-expanded='true'] ~ [role='listbox'] { display: block; width: max-content; max-width: var(--tt-combobox-list-max-width, 35ch); min-width: 100%; background-color: var(--tt-combobox-list-background-color, var(--color-surface-100, white)); border: 1px solid var(--tt-combobox-border-color, var(--color-border-300)); border-radius: var(--border-radius); box-shadow: var(--box-shadow-lg); padding: 0; position: absolute; top: var(--tt-combobox-top, calc(100% + 0.5rem)); left: var(--tt-combobox-left, 0); right: var(--tt-combobox-right, unset); bottom: var(--tt-combobox-bottom, unset); z-index: 2; margin: 0; list-style: none; max-height: var(--tt-combobox-max-height, 400px); overflow-y: auto; .no-results { display: none; } &:not(:has(tt-option:not([hidden], .select-all))) { .no-results { display: flex; padding: 0.5rem; box-sizing: border-box; text-align: left; text-overflow: ellipsis; text-wrap: nowrap; align-items: center; gap: 0.25rem; max-width: 100%; width: 100%; overflow-y: visible; flex: 1; span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; line-height: 1.1; } } .select-all { display: none; } } } [role='combobox'][aria-expanded='true'] ~ [role='listbox'][data-open-upward] { top: unset; bottom: calc(100% + 0.5rem); } slot[name='icon'] { display: inline-block; max-width: var(--tt-combobox-icon-size, 1rem); aspect-ratio: 1; } tt-option.select-all::part(option) { border-bottom: 1px solid var(--color-border-300); } label { font-size: var(--tt-combobox-label-font-size, inherit); color: var(--tt-combobox-label-color, inherit); font-weight: var(--tt-combobox-label-font-weight, inherit); &[data-hidden] { display: none; } } `"
630
- }
631
- ],
632
- "exports": [
633
- {
634
- "kind": "js",
635
- "name": "styles",
636
- "declaration": {
637
- "name": "styles",
638
- "module": "src/styles.ts"
639
- }
640
- }
641
- ]
642
- },
643
- {
644
- "kind": "javascript-module",
645
- "path": "src/tt-combobox.ts",
646
- "declarations": [],
647
- "exports": [
648
- {
649
- "kind": "custom-element-definition",
650
- "name": "tt-combobox",
651
- "declaration": {
652
- "name": "TtCombobox",
653
- "module": "/src/TtCombobox.js"
654
- }
655
- },
656
- {
657
- "kind": "js",
658
- "name": "TtCombobox",
659
- "declaration": {
660
- "name": "TtCombobox",
661
- "module": "src/tt-combobox.ts"
662
- }
663
- }
664
- ]
665
- },
666
- {
667
- "kind": "javascript-module",
668
- "path": "src/types.ts",
669
- "declarations": [],
670
- "exports": []
671
- },
672
- {
673
- "kind": "javascript-module",
674
- "path": "src/tt-option/TtOption.ts",
675
- "declarations": [
676
- {
677
- "kind": "class",
678
- "description": "",
679
- "name": "TtOption",
680
- "members": [
681
- {
682
- "kind": "field",
683
- "name": "shadowRootOptions",
684
- "type": {
685
- "text": "object"
686
- },
687
- "static": true,
688
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
689
- },
690
- {
691
- "kind": "field",
692
- "name": "disabled",
693
- "type": {
694
- "text": "boolean"
695
- },
696
- "default": "false",
697
- "attribute": "disabled"
698
- },
699
- {
700
- "kind": "field",
701
- "name": "selected",
702
- "type": {
703
- "text": "boolean"
704
- },
705
- "default": "false",
706
- "attribute": "selected"
707
- },
708
- {
709
- "kind": "field",
710
- "name": "active",
711
- "type": {
712
- "text": "boolean"
713
- },
714
- "default": "false",
715
- "attribute": "active"
716
- },
717
- {
718
- "kind": "field",
719
- "name": "value",
720
- "type": {
721
- "text": "string"
722
- },
723
- "default": "''",
724
- "attribute": "value"
725
- },
726
- {
727
- "kind": "field",
728
- "name": "includeCheckbox",
729
- "type": {
730
- "text": "boolean"
731
- },
732
- "default": "false",
733
- "attribute": "include-checkbox"
734
- },
735
- {
736
- "kind": "field",
737
- "name": "_onClick",
738
- "privacy": "private"
739
- }
740
- ],
741
- "attributes": [
742
- {
743
- "name": "disabled",
744
- "type": {
745
- "text": "boolean"
746
- },
747
- "default": "false",
748
- "fieldName": "disabled"
749
- },
750
- {
751
- "name": "selected",
752
- "type": {
753
- "text": "boolean"
754
- },
755
- "default": "false",
756
- "fieldName": "selected"
757
- },
758
- {
759
- "name": "active",
760
- "type": {
761
- "text": "boolean"
762
- },
763
- "default": "false",
764
- "fieldName": "active"
765
- },
766
- {
767
- "name": "value",
768
- "type": {
769
- "text": "string"
770
- },
771
- "default": "''",
772
- "fieldName": "value"
773
- },
774
- {
775
- "name": "include-checkbox",
776
- "type": {
777
- "text": "boolean"
778
- },
779
- "default": "false",
780
- "fieldName": "includeCheckbox"
781
- }
782
- ],
783
- "superclass": {
784
- "name": "LitElement",
785
- "package": "lit"
786
- },
787
- "tagName": "tt-option",
788
- "customElement": true
789
- }
790
- ],
791
- "exports": [
792
- {
793
- "kind": "js",
794
- "name": "TtOption",
795
- "declaration": {
796
- "name": "TtOption",
797
- "module": "src/tt-option/TtOption.ts"
798
- }
799
- }
800
- ]
801
- },
802
- {
803
- "kind": "javascript-module",
804
- "path": "src/tt-option/styles.ts",
805
- "declarations": [
806
- {
807
- "kind": "variable",
808
- "name": "styles",
809
- "default": "css` li { cursor: pointer; display: flex; padding: 0.5rem; box-sizing: border-box; text-align: left; text-overflow: ellipsis; text-wrap: nowrap; align-items: center; gap: 0.25rem; max-width: 100%; width: 100%; overflow-y: visible; flex: 1; input[type='checkbox'] { width: var(--checkbox-size, var(--space-scale-2)); aspect-ratio: 1; flex: 0 0 auto; accent-color: var(--color-primary-400); pointer-events: none; } span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; line-height: 1.1; } &[aria-hidden='true'] { visibility: hidden; display: none; } &[aria-disabled='true'] { pointer-events: none; opacity: 0.5; } &[aria-selected='true']:not(:has(input[type='checkbox'])) { color: var(--tt-combobox-option-selected-color, var(--color-primary-400)); font-weight: var(--font-weight-medium); } } :host([active]), :host(:hover) { li { background-color: var(--tt-combobox-option-background-color-hover, var(--color-surface-300)); color: var(--tt-combobox-option-color-hover, inherit); } &:first-child li { border-top-left-radius: var(--border-radius); border-top-right-radius: var(--border-radius); } &:last-child li { border-bottom-left-radius: var(--border-radius); border-bottom-right-radius: var(--border-radius); } } :host([disabled]) { pointer-events: none; } `"
810
- }
811
- ],
812
- "exports": [
813
- {
814
- "kind": "js",
815
- "name": "styles",
816
- "declaration": {
817
- "name": "styles",
818
- "module": "src/tt-option/styles.ts"
819
- }
820
- }
821
- ]
822
- },
823
- {
824
- "kind": "javascript-module",
825
- "path": "src/tt-option/tt-option.ts",
826
- "declarations": [],
827
- "exports": [
828
- {
829
- "kind": "custom-element-definition",
830
- "name": "tt-option",
831
- "declaration": {
832
- "name": "TtOption",
833
- "module": "/src/tt-option/TtOption.js"
834
- }
835
- },
836
- {
837
- "kind": "js",
838
- "name": "TtOption",
839
- "declaration": {
840
- "name": "TtOption",
841
- "module": "src/tt-option/tt-option.ts"
842
- }
843
- }
844
- ]
845
- }
846
- ]
847
- }