use-wc 1.0.0-pre.40 → 1.0.0-pre.41
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/custom-elements.json +154 -154
- package/dist/design-system.css +25 -25
- package/package.json +3 -3
- package/vscode.html-custom-data.json +15 -15
- /package/dist/{default-tokens.css → tokens.css} +0 -0
package/custom-elements.json
CHANGED
|
@@ -396,6 +396,71 @@
|
|
|
396
396
|
}
|
|
397
397
|
]
|
|
398
398
|
},
|
|
399
|
+
{
|
|
400
|
+
"kind": "javascript-module",
|
|
401
|
+
"path": "src/elements/use-calendarday/use-calendarday.ts",
|
|
402
|
+
"declarations": [
|
|
403
|
+
{
|
|
404
|
+
"kind": "class",
|
|
405
|
+
"description": "A helper component for customizing specific days within `use-calendar`.\nContent placed inside this element will replace the default day number display.",
|
|
406
|
+
"name": "UseCalendarday",
|
|
407
|
+
"slots": [
|
|
408
|
+
{
|
|
409
|
+
"description": "slot for custom day content (replaces the day number)",
|
|
410
|
+
"name": "default"
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
"members": [
|
|
414
|
+
{
|
|
415
|
+
"kind": "field",
|
|
416
|
+
"name": "date",
|
|
417
|
+
"type": {
|
|
418
|
+
"text": "string"
|
|
419
|
+
},
|
|
420
|
+
"attribute": "date"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"kind": "field",
|
|
424
|
+
"name": "day",
|
|
425
|
+
"readonly": true
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
"attributes": [
|
|
429
|
+
{
|
|
430
|
+
"name": "date",
|
|
431
|
+
"type": {
|
|
432
|
+
"text": "string"
|
|
433
|
+
},
|
|
434
|
+
"fieldName": "date"
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"superclass": {
|
|
438
|
+
"name": "LitElement",
|
|
439
|
+
"package": "lit"
|
|
440
|
+
},
|
|
441
|
+
"tagName": "use-calendarday",
|
|
442
|
+
"customElement": true
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
"exports": [
|
|
446
|
+
{
|
|
447
|
+
"kind": "js",
|
|
448
|
+
"name": "UseCalendarday",
|
|
449
|
+
"declaration": {
|
|
450
|
+
"name": "UseCalendarday",
|
|
451
|
+
"module": "src/elements/use-calendarday/use-calendarday.ts"
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"kind": "custom-element-definition",
|
|
456
|
+
"name": "use-calendarday",
|
|
457
|
+
"declaration": {
|
|
458
|
+
"name": "UseCalendarday",
|
|
459
|
+
"module": "src/elements/use-calendarday/use-calendarday.ts"
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
},
|
|
399
464
|
{
|
|
400
465
|
"kind": "javascript-module",
|
|
401
466
|
"path": "src/elements/use-date-input/use-date-input.ts",
|
|
@@ -522,71 +587,6 @@
|
|
|
522
587
|
}
|
|
523
588
|
]
|
|
524
589
|
},
|
|
525
|
-
{
|
|
526
|
-
"kind": "javascript-module",
|
|
527
|
-
"path": "src/elements/use-calendarday/use-calendarday.ts",
|
|
528
|
-
"declarations": [
|
|
529
|
-
{
|
|
530
|
-
"kind": "class",
|
|
531
|
-
"description": "A helper component for customizing specific days within `use-calendar`.\nContent placed inside this element will replace the default day number display.",
|
|
532
|
-
"name": "UseCalendarday",
|
|
533
|
-
"slots": [
|
|
534
|
-
{
|
|
535
|
-
"description": "slot for custom day content (replaces the day number)",
|
|
536
|
-
"name": "default"
|
|
537
|
-
}
|
|
538
|
-
],
|
|
539
|
-
"members": [
|
|
540
|
-
{
|
|
541
|
-
"kind": "field",
|
|
542
|
-
"name": "date",
|
|
543
|
-
"type": {
|
|
544
|
-
"text": "string"
|
|
545
|
-
},
|
|
546
|
-
"attribute": "date"
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"kind": "field",
|
|
550
|
-
"name": "day",
|
|
551
|
-
"readonly": true
|
|
552
|
-
}
|
|
553
|
-
],
|
|
554
|
-
"attributes": [
|
|
555
|
-
{
|
|
556
|
-
"name": "date",
|
|
557
|
-
"type": {
|
|
558
|
-
"text": "string"
|
|
559
|
-
},
|
|
560
|
-
"fieldName": "date"
|
|
561
|
-
}
|
|
562
|
-
],
|
|
563
|
-
"superclass": {
|
|
564
|
-
"name": "LitElement",
|
|
565
|
-
"package": "lit"
|
|
566
|
-
},
|
|
567
|
-
"tagName": "use-calendarday",
|
|
568
|
-
"customElement": true
|
|
569
|
-
}
|
|
570
|
-
],
|
|
571
|
-
"exports": [
|
|
572
|
-
{
|
|
573
|
-
"kind": "js",
|
|
574
|
-
"name": "UseCalendarday",
|
|
575
|
-
"declaration": {
|
|
576
|
-
"name": "UseCalendarday",
|
|
577
|
-
"module": "src/elements/use-calendarday/use-calendarday.ts"
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
"kind": "custom-element-definition",
|
|
582
|
-
"name": "use-calendarday",
|
|
583
|
-
"declaration": {
|
|
584
|
-
"name": "UseCalendarday",
|
|
585
|
-
"module": "src/elements/use-calendarday/use-calendarday.ts"
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
]
|
|
589
|
-
},
|
|
590
590
|
{
|
|
591
591
|
"kind": "javascript-module",
|
|
592
592
|
"path": "src/elements/use-date-picker/use-date-picker.ts",
|
|
@@ -1233,6 +1233,95 @@
|
|
|
1233
1233
|
}
|
|
1234
1234
|
]
|
|
1235
1235
|
},
|
|
1236
|
+
{
|
|
1237
|
+
"kind": "javascript-module",
|
|
1238
|
+
"path": "src/elements/use-dropdown/use-dropdown.ts",
|
|
1239
|
+
"declarations": [
|
|
1240
|
+
{
|
|
1241
|
+
"kind": "class",
|
|
1242
|
+
"description": "When the popover is opened the tabbable elements are found and indexed for\nkeyboard navigation. The first tabbable element is focused when the popover is opened. The\nfollowing selector is used to find tabbable elements:\n\n```css\n:is(\n [role=\"menuitem\"],\n [role=\"menuitemcheckbox\"],\n [role=\"menuitemradio\"],\n use-menu\n):not(:is(\n [disabled],\n [hidden],\n [inert],\n [aria-hidden=\"true\"]\n))\n```\n\nMenu items are not used for navigation, they are intended for related action\nitems that allows a user to manipulate a user interface or content. Read the\nWCAG guidance for more details:\n[https://www.w3.org/WAI/ARIA/apg/patterns/menubar/](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/)",
|
|
1243
|
+
"name": "UseDropdown",
|
|
1244
|
+
"slots": [
|
|
1245
|
+
{
|
|
1246
|
+
"name": "default"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"name": "trigger-content"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"name": "trigger-label"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"name": "trigger-arrow"
|
|
1256
|
+
}
|
|
1257
|
+
],
|
|
1258
|
+
"members": [
|
|
1259
|
+
{
|
|
1260
|
+
"kind": "field",
|
|
1261
|
+
"name": "trigger",
|
|
1262
|
+
"type": {
|
|
1263
|
+
"text": "HTMLButtonElement | null"
|
|
1264
|
+
},
|
|
1265
|
+
"default": "null"
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"kind": "field",
|
|
1269
|
+
"name": "disabled",
|
|
1270
|
+
"attribute": "disabled"
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"kind": "field",
|
|
1274
|
+
"name": "label",
|
|
1275
|
+
"type": {
|
|
1276
|
+
"text": "string"
|
|
1277
|
+
},
|
|
1278
|
+
"attribute": "label"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"kind": "method",
|
|
1282
|
+
"name": "getId"
|
|
1283
|
+
}
|
|
1284
|
+
],
|
|
1285
|
+
"attributes": [
|
|
1286
|
+
{
|
|
1287
|
+
"name": "disabled",
|
|
1288
|
+
"fieldName": "disabled"
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"name": "label",
|
|
1292
|
+
"type": {
|
|
1293
|
+
"text": "string"
|
|
1294
|
+
},
|
|
1295
|
+
"fieldName": "label"
|
|
1296
|
+
}
|
|
1297
|
+
],
|
|
1298
|
+
"superclass": {
|
|
1299
|
+
"name": "LitElement",
|
|
1300
|
+
"package": "lit"
|
|
1301
|
+
},
|
|
1302
|
+
"tagName": "use-dropdown",
|
|
1303
|
+
"customElement": true
|
|
1304
|
+
}
|
|
1305
|
+
],
|
|
1306
|
+
"exports": [
|
|
1307
|
+
{
|
|
1308
|
+
"kind": "js",
|
|
1309
|
+
"name": "UseDropdown",
|
|
1310
|
+
"declaration": {
|
|
1311
|
+
"name": "UseDropdown",
|
|
1312
|
+
"module": "src/elements/use-dropdown/use-dropdown.ts"
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"kind": "custom-element-definition",
|
|
1317
|
+
"name": "use-dropdown",
|
|
1318
|
+
"declaration": {
|
|
1319
|
+
"name": "UseDropdown",
|
|
1320
|
+
"module": "src/elements/use-dropdown/use-dropdown.ts"
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
]
|
|
1324
|
+
},
|
|
1236
1325
|
{
|
|
1237
1326
|
"kind": "javascript-module",
|
|
1238
1327
|
"path": "src/elements/use-datetime-input/use-datetime-input.ts",
|
|
@@ -1448,95 +1537,6 @@
|
|
|
1448
1537
|
}
|
|
1449
1538
|
]
|
|
1450
1539
|
},
|
|
1451
|
-
{
|
|
1452
|
-
"kind": "javascript-module",
|
|
1453
|
-
"path": "src/elements/use-dropdown/use-dropdown.ts",
|
|
1454
|
-
"declarations": [
|
|
1455
|
-
{
|
|
1456
|
-
"kind": "class",
|
|
1457
|
-
"description": "When the popover is opened the tabbable elements are found and indexed for\nkeyboard navigation. The first tabbable element is focused when the popover is opened. The\nfollowing selector is used to find tabbable elements:\n\n```css\n:is(\n [role=\"menuitem\"],\n [role=\"menuitemcheckbox\"],\n [role=\"menuitemradio\"],\n use-menu\n):not(:is(\n [disabled],\n [hidden],\n [inert],\n [aria-hidden=\"true\"]\n))\n```\n\nMenu items are not used for navigation, they are intended for related action\nitems that allows a user to manipulate a user interface or content. Read the\nWCAG guidance for more details:\n[https://www.w3.org/WAI/ARIA/apg/patterns/menubar/](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/)",
|
|
1458
|
-
"name": "UseDropdown",
|
|
1459
|
-
"slots": [
|
|
1460
|
-
{
|
|
1461
|
-
"name": "default"
|
|
1462
|
-
},
|
|
1463
|
-
{
|
|
1464
|
-
"name": "trigger-content"
|
|
1465
|
-
},
|
|
1466
|
-
{
|
|
1467
|
-
"name": "trigger-label"
|
|
1468
|
-
},
|
|
1469
|
-
{
|
|
1470
|
-
"name": "trigger-arrow"
|
|
1471
|
-
}
|
|
1472
|
-
],
|
|
1473
|
-
"members": [
|
|
1474
|
-
{
|
|
1475
|
-
"kind": "field",
|
|
1476
|
-
"name": "trigger",
|
|
1477
|
-
"type": {
|
|
1478
|
-
"text": "HTMLButtonElement | null"
|
|
1479
|
-
},
|
|
1480
|
-
"default": "null"
|
|
1481
|
-
},
|
|
1482
|
-
{
|
|
1483
|
-
"kind": "field",
|
|
1484
|
-
"name": "disabled",
|
|
1485
|
-
"attribute": "disabled"
|
|
1486
|
-
},
|
|
1487
|
-
{
|
|
1488
|
-
"kind": "field",
|
|
1489
|
-
"name": "label",
|
|
1490
|
-
"type": {
|
|
1491
|
-
"text": "string"
|
|
1492
|
-
},
|
|
1493
|
-
"attribute": "label"
|
|
1494
|
-
},
|
|
1495
|
-
{
|
|
1496
|
-
"kind": "method",
|
|
1497
|
-
"name": "getId"
|
|
1498
|
-
}
|
|
1499
|
-
],
|
|
1500
|
-
"attributes": [
|
|
1501
|
-
{
|
|
1502
|
-
"name": "disabled",
|
|
1503
|
-
"fieldName": "disabled"
|
|
1504
|
-
},
|
|
1505
|
-
{
|
|
1506
|
-
"name": "label",
|
|
1507
|
-
"type": {
|
|
1508
|
-
"text": "string"
|
|
1509
|
-
},
|
|
1510
|
-
"fieldName": "label"
|
|
1511
|
-
}
|
|
1512
|
-
],
|
|
1513
|
-
"superclass": {
|
|
1514
|
-
"name": "LitElement",
|
|
1515
|
-
"package": "lit"
|
|
1516
|
-
},
|
|
1517
|
-
"tagName": "use-dropdown",
|
|
1518
|
-
"customElement": true
|
|
1519
|
-
}
|
|
1520
|
-
],
|
|
1521
|
-
"exports": [
|
|
1522
|
-
{
|
|
1523
|
-
"kind": "js",
|
|
1524
|
-
"name": "UseDropdown",
|
|
1525
|
-
"declaration": {
|
|
1526
|
-
"name": "UseDropdown",
|
|
1527
|
-
"module": "src/elements/use-dropdown/use-dropdown.ts"
|
|
1528
|
-
}
|
|
1529
|
-
},
|
|
1530
|
-
{
|
|
1531
|
-
"kind": "custom-element-definition",
|
|
1532
|
-
"name": "use-dropdown",
|
|
1533
|
-
"declaration": {
|
|
1534
|
-
"name": "UseDropdown",
|
|
1535
|
-
"module": "src/elements/use-dropdown/use-dropdown.ts"
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
]
|
|
1539
|
-
},
|
|
1540
1540
|
{
|
|
1541
1541
|
"kind": "javascript-module",
|
|
1542
1542
|
"path": "src/elements/use-duration-input/use-duration-input.ts",
|
package/dist/design-system.css
CHANGED
|
@@ -14,29 +14,29 @@
|
|
|
14
14
|
font-size: var(--usewc-font-document-size);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
:is(button, a, details summary, use-widget):not(
|
|
17
|
+
:is(button, a, details summary, use-widget):not(.appearance-native):focus-visible,
|
|
18
18
|
:is(input, textarea, select, use-date-input, use-time-input, use-datetime-input, use-duration-input):not(
|
|
19
|
-
|
|
19
|
+
.appearance-native
|
|
20
20
|
):focus,
|
|
21
|
-
input[type="file"]:not(
|
|
22
|
-
use-dropdown:not(
|
|
23
|
-
|
|
21
|
+
input[type="file"]:not(.appearance-native):focus-visible,
|
|
22
|
+
use-dropdown:not(.appearance-native)::part(trigger):focus-visible,
|
|
23
|
+
.appearance-input:has(input:focus) {
|
|
24
24
|
outline: var(--usewc-effect-outline-size) var(--usewc-effect-outline-style) var(--usewc-color-outline);
|
|
25
25
|
outline-offset: var(--usewc-effect-outline-offset);
|
|
26
26
|
transition: var(--usewc-effect-outline-transition);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:is(
|
|
30
|
-
input:not(:is([type="checkbox"], [type="radio"], [type="range"], [type="file"], [
|
|
30
|
+
input:not(:is([type="checkbox"], [type="radio"], [type="range"], [type="file"], [class*="appearance-"])),
|
|
31
31
|
select,
|
|
32
32
|
textarea,
|
|
33
|
-
|
|
33
|
+
.appearance-input,
|
|
34
34
|
use-date-input,
|
|
35
35
|
use-time-input,
|
|
36
36
|
use-datetime-input,
|
|
37
37
|
use-duration-input
|
|
38
|
-
):not(
|
|
39
|
-
use-listbox-input:not(
|
|
38
|
+
):not(.appearance-native),
|
|
39
|
+
use-listbox-input:not(.appearance-native)::part(listbox) {
|
|
40
40
|
border: var(--usewc-layout-input-border) var(--usewc-effect-input-border-style)
|
|
41
41
|
var(--usewc-color-input-border-static);
|
|
42
42
|
line-height: var(--usewc-layout-input-line-height);
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
color: var(--usewc-color-input-text-static);
|
|
50
50
|
border-radius: var(--usewc-effect-input-border-radius);
|
|
51
51
|
|
|
52
|
-
&:not(:is(:disabled, [aria-disabled="true"],
|
|
52
|
+
&:not(:is(:disabled, [aria-disabled="true"], .appearance-input)):hover,
|
|
53
53
|
&:has(input:not(:is(:disabled, [aria-disabled="true"])):hover) {
|
|
54
54
|
border-color: var(--usewc-color-input-border-hover);
|
|
55
55
|
}
|
|
@@ -75,15 +75,15 @@
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
use-listbox-input:not(
|
|
78
|
+
use-listbox-input:not(.appearance-native)::part(listbox) {
|
|
79
79
|
padding: var(--usewc-layout-popover-menu-padding);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
select:not(
|
|
82
|
+
select:not(.appearance-native) {
|
|
83
83
|
appearance: none;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
.appearance-input {
|
|
87
87
|
display: inline-flex;
|
|
88
88
|
align-items: center;
|
|
89
89
|
justify-content: center;
|
|
@@ -190,11 +190,11 @@
|
|
|
190
190
|
* - https://codepen.io/ShadowShahriar/pen/zYPPYrQ
|
|
191
191
|
* - https://open-ui.org/components/enhanced-range-input.explainer/
|
|
192
192
|
*/
|
|
193
|
-
input[type="range"]:not(
|
|
193
|
+
input[type="range"]:not(.appearance-native) {
|
|
194
194
|
accent-color: var(--usewc-color-range-thumb-background-static);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
:is(a:not([
|
|
197
|
+
:is(a:not([class*="appearance-"]), .appearance-a) {
|
|
198
198
|
&:where(:not(a)) {
|
|
199
199
|
all: unset;
|
|
200
200
|
}
|
|
@@ -212,9 +212,9 @@
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
:is(button:not([
|
|
215
|
+
:is(button:not([class*="appearance-"]), .appearance-button),
|
|
216
216
|
use-dropdown,
|
|
217
|
-
input[type="file"]:not([
|
|
217
|
+
input[type="file"]:not([class*="appearance-"]) {
|
|
218
218
|
&:where(:not(button)),
|
|
219
219
|
&::file-selector-button {
|
|
220
220
|
all: unset;
|
|
@@ -376,12 +376,12 @@
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
|
|
379
|
-
input[type="file"]:not([
|
|
379
|
+
input[type="file"]:not([class*="appearance-"]) {
|
|
380
380
|
border-radius: var(--usewc-effect-input-border-radius);
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
code,
|
|
384
|
-
|
|
384
|
+
.appearance-code {
|
|
385
385
|
display: inline-block;
|
|
386
386
|
font-family: var(--usewc-font-code-family);
|
|
387
387
|
font-size: var(--usewc-font-code-size);
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
-
details:not(
|
|
456
|
+
details:not(.appearance-native) {
|
|
457
457
|
summary {
|
|
458
458
|
all: unset;
|
|
459
459
|
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
input styling block. The date and time sub-inputs live in shadow DOM and are reached via
|
|
486
486
|
::part(date) and ::part(time) to override their internal layout. Segment inputs are
|
|
487
487
|
re-exported via exportparts so ::part(segment-input) reaches them too. */
|
|
488
|
-
use-datetime-input:not(
|
|
488
|
+
use-datetime-input:not(.appearance-native) {
|
|
489
489
|
display: inline-flex;
|
|
490
490
|
align-items: center;
|
|
491
491
|
width: fit-content;
|
|
@@ -532,7 +532,7 @@
|
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
/* Segment based controls */
|
|
535
|
-
:is(use-date-input, use-time-input):not(
|
|
535
|
+
:is(use-date-input, use-time-input):not(.appearance-native) {
|
|
536
536
|
display: inline-flex;
|
|
537
537
|
align-items: center;
|
|
538
538
|
width: fit-content;
|
|
@@ -571,7 +571,7 @@
|
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
-
use-duration-input:not(
|
|
574
|
+
use-duration-input:not(.appearance-native) {
|
|
575
575
|
display: inline-flex;
|
|
576
576
|
align-items: center;
|
|
577
577
|
width: fit-content;
|
|
@@ -610,7 +610,7 @@
|
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
-
select:not(
|
|
613
|
+
select:not(.appearance-native),
|
|
614
614
|
use-dropdown::part(trigger),
|
|
615
615
|
use-dropdown use-dropdown::part(trigger) {
|
|
616
616
|
padding-inline-end: calc(var(--usewc-layout-input-padding-inline) * 2 + var(--usewc-layout-selector-width));
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
background-position: right center;
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
select:not(
|
|
630
|
+
select:not(.appearance-native),
|
|
631
631
|
use-dropdown::part(trigger),
|
|
632
632
|
use-dropdown use-dropdown::part(trigger) {
|
|
633
633
|
anchor-name: --use-popover-trigger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "use-wc",
|
|
3
|
-
"version": "1.0.0-pre.
|
|
3
|
+
"version": "1.0.0-pre.41",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": "https://usewc.com",
|
|
6
6
|
"bugs": "https://github.com/dang-rabbits/use-wc/issues",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"types": "./dist/use-wc.d.ts",
|
|
21
21
|
"exports": {
|
|
22
22
|
".": "./dist/use-wc.mjs",
|
|
23
|
+
"./tokens.css": "./dist/tokens.css",
|
|
24
|
+
"./design-system.css": "./dist/design-system.css",
|
|
23
25
|
"./package.json": "./package.json"
|
|
24
26
|
},
|
|
25
27
|
"scripts": {
|
|
@@ -45,7 +47,6 @@
|
|
|
45
47
|
"@storybook/addon-docs": "^10.2.7",
|
|
46
48
|
"@storybook/addon-links": "^10.2.7",
|
|
47
49
|
"@storybook/web-components-vite": "^10.2.7",
|
|
48
|
-
"@tsdown/css": "0.21.4",
|
|
49
50
|
"@types/node": "^25.5.0",
|
|
50
51
|
"@typescript/native-preview": "7.0.0-dev.20260316.1",
|
|
51
52
|
"@vitest/coverage-v8": "^4.0.18",
|
|
@@ -59,7 +60,6 @@
|
|
|
59
60
|
"semantic-release": "^25.0.3",
|
|
60
61
|
"storybook": "^10.2.7",
|
|
61
62
|
"storybook-addon-tag-badges": "^1.4.0",
|
|
62
|
-
"tsdown": "0.21.4",
|
|
63
63
|
"typescript": "^5.9.3",
|
|
64
64
|
"typescript-eslint": "^8.29.1",
|
|
65
65
|
"vite-plus": "^0.1.11",
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
|
|
3
3
|
"version": 1.1,
|
|
4
4
|
"tags": [
|
|
5
|
+
{
|
|
6
|
+
"name": "use-calendarday",
|
|
7
|
+
"description": "A helper component for customizing specific days within `use-calendar`.\nContent placed inside this element will replace the default day number display.\n---\n\n\n### **Slots:**\n - **default** - slot for custom day content (replaces the day number)",
|
|
8
|
+
"attributes": [{ "name": "date", "values": [] }],
|
|
9
|
+
"references": []
|
|
10
|
+
},
|
|
5
11
|
{
|
|
6
12
|
"name": "use-date-input",
|
|
7
13
|
"description": "Displays a date picker using segmented inputs for year, month, and day.\n\nUses browser locale for formatting and ARIA labels.\n---\n",
|
|
@@ -13,12 +19,6 @@
|
|
|
13
19
|
],
|
|
14
20
|
"references": []
|
|
15
21
|
},
|
|
16
|
-
{
|
|
17
|
-
"name": "use-calendarday",
|
|
18
|
-
"description": "A helper component for customizing specific days within `use-calendar`.\nContent placed inside this element will replace the default day number display.\n---\n\n\n### **Slots:**\n - **default** - slot for custom day content (replaces the day number)",
|
|
19
|
-
"attributes": [{ "name": "date", "values": [] }],
|
|
20
|
-
"references": []
|
|
21
|
-
},
|
|
22
22
|
{
|
|
23
23
|
"name": "use-date-picker",
|
|
24
24
|
"description": "A day-granularity date picker. Value format: YYYY-MM-DD.\n---\n\n\n### **Events:**\n - **use-change** - Fired on selection with detail `{ value: string }`\n\n### **Slots:**\n - **header-start** - Content before the title in the header\n- **title** - Title showing the month and year\n- **controls** - Navigation controls (previous, today, next buttons)\n- **header-end** - Content after the controls in the header\n- **date-{YYYY-MM-DD}** - Per-date content that replaces the default day number\n\n### **CSS Parts:**\n - **header** - The header container\n- **title** - The title text\n- **title-month** - The month part of the title\n- **title-literal** - Literal text in the title\n- **title-year** - The year part of the title\n- **controls** - The controls slot container\n- **control** - Individual control button\n- **control-previous** - Previous month button\n- **control-today** - Today button\n- **control-next** - Next month button\n- **grid** - The main calendar grid\n- **grid-header** - The header row with day names\n- **grid-header-cell** - Individual day name header cell\n- **grid-body** - The container for calendar weeks\n- **row** - A row of days\n- **day** - A day cell\n- **day-empty** - An empty day cell (from previous/next month)\n- **day-selected** - A selected day cell\n- **day-today** - The current date cell\n- **day-disabled** - A disabled date cell\n- **title-button** - The clickable button wrapping the month/year title\n- **picker** - The scrollable month/year picker panel (replaces grid when open)\n- **picker-year-section** - Container for one year's label and month grid\n- **picker-year-label** - The year heading inside a year section\n- **picker-months** - The 4-column month grid inside a year section\n- **picker-month** - An individual month button\n- **picker-month-current** - Applied to the currently selected month button",
|
|
@@ -52,6 +52,15 @@
|
|
|
52
52
|
],
|
|
53
53
|
"references": []
|
|
54
54
|
},
|
|
55
|
+
{
|
|
56
|
+
"name": "use-dropdown",
|
|
57
|
+
"description": "When the popover is opened the tabbable elements are found and indexed for\nkeyboard navigation. The first tabbable element is focused when the popover is opened. The\nfollowing selector is used to find tabbable elements:\n\n```css\n:is(\n [role=\"menuitem\"],\n [role=\"menuitemcheckbox\"],\n [role=\"menuitemradio\"],\n use-menu\n):not(:is(\n [disabled],\n [hidden],\n [inert],\n [aria-hidden=\"true\"]\n))\n```\n\nMenu items are not used for navigation, they are intended for related action\nitems that allows a user to manipulate a user interface or content. Read the\nWCAG guidance for more details:\n[https://www.w3.org/WAI/ARIA/apg/patterns/menubar/](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/)\n---\n\n\n### **Slots:**\n - **default** - undefined\n- **trigger-content** - undefined\n- **trigger-label** - undefined\n- **trigger-arrow** - undefined",
|
|
58
|
+
"attributes": [
|
|
59
|
+
{ "name": "disabled", "values": [] },
|
|
60
|
+
{ "name": "label", "values": [] }
|
|
61
|
+
],
|
|
62
|
+
"references": []
|
|
63
|
+
},
|
|
55
64
|
{
|
|
56
65
|
"name": "use-datetime-input",
|
|
57
66
|
"description": "Displays a date and time picker by combining `use-date` and `use-time`.\n\nThe value format is ISO 8601-like: `YYYY-MM-DDTHH:MM:SS.mmm`.\n---\n",
|
|
@@ -72,15 +81,6 @@
|
|
|
72
81
|
],
|
|
73
82
|
"references": []
|
|
74
83
|
},
|
|
75
|
-
{
|
|
76
|
-
"name": "use-dropdown",
|
|
77
|
-
"description": "When the popover is opened the tabbable elements are found and indexed for\nkeyboard navigation. The first tabbable element is focused when the popover is opened. The\nfollowing selector is used to find tabbable elements:\n\n```css\n:is(\n [role=\"menuitem\"],\n [role=\"menuitemcheckbox\"],\n [role=\"menuitemradio\"],\n use-menu\n):not(:is(\n [disabled],\n [hidden],\n [inert],\n [aria-hidden=\"true\"]\n))\n```\n\nMenu items are not used for navigation, they are intended for related action\nitems that allows a user to manipulate a user interface or content. Read the\nWCAG guidance for more details:\n[https://www.w3.org/WAI/ARIA/apg/patterns/menubar/](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/)\n---\n\n\n### **Slots:**\n - **default** - undefined\n- **trigger-content** - undefined\n- **trigger-label** - undefined\n- **trigger-arrow** - undefined",
|
|
78
|
-
"attributes": [
|
|
79
|
-
{ "name": "disabled", "values": [] },
|
|
80
|
-
{ "name": "label", "values": [] }
|
|
81
|
-
],
|
|
82
|
-
"references": []
|
|
83
|
-
},
|
|
84
84
|
{
|
|
85
85
|
"name": "use-duration-input",
|
|
86
86
|
"description": "Displays the parts of an ISO 8601 duration string using [`Intl.DurationFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat).\n\nUses the [`duration-fns`](https://www.npmjs.com/package/duration-fns) library for parsing ISO 8601 values.\n\n<baseline-status featureId=\"intl-duration-format\"></baseline-status>\n---\n",
|
|
File without changes
|