use-wc 1.0.0-pre.45 → 1.0.0-pre.46
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 +65 -65
- package/dist/design-system.css +27 -18
- package/dist/use-wc.d.mts +0 -6
- package/dist/use-wc.mjs +1 -1
- package/package.json +8 -5
- package/vscode.html-custom-data.json +6 -6
package/custom-elements.json
CHANGED
|
@@ -396,71 +396,6 @@
|
|
|
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
|
-
},
|
|
464
399
|
{
|
|
465
400
|
"kind": "javascript-module",
|
|
466
401
|
"path": "src/elements/use-date-input/use-date-input.ts",
|
|
@@ -587,6 +522,71 @@
|
|
|
587
522
|
}
|
|
588
523
|
]
|
|
589
524
|
},
|
|
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",
|
package/dist/design-system.css
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
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
|
-
|
|
20
|
-
|
|
19
|
+
.appearance-native
|
|
20
|
+
):focus,
|
|
21
21
|
input[type="file"]:not(.appearance-native):focus-visible,
|
|
22
22
|
use-dropdown:not(.appearance-native)::part(trigger):focus-visible,
|
|
23
23
|
.appearance-input:has(input:focus) {
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
&:active:not([type="file"], use-dropdown),
|
|
286
|
-
|
|
286
|
+
&::part(trigger):active,
|
|
287
287
|
&:active::file-selector-button {
|
|
288
288
|
background: var(--usewc-color-button-background-active);
|
|
289
289
|
border-color: var(--usewc-color-button-border-active);
|
|
@@ -688,24 +688,29 @@
|
|
|
688
688
|
}
|
|
689
689
|
|
|
690
690
|
use-dropdown::part(menu) {
|
|
691
|
+
--min-size: 30vh;
|
|
692
|
+
--max-size: 80vh;
|
|
693
|
+
|
|
694
|
+
inset: unset;
|
|
695
|
+
height: unset;
|
|
696
|
+
position-anchor: --use-popover-trigger;
|
|
697
|
+
position: fixed;
|
|
698
|
+
position-area: bottom span-right;
|
|
699
|
+
min-block-size: var(--min-size);
|
|
700
|
+
max-block-size: min(100% - var(--usewc-layout-popover-menu-anchor-offset), var(--max-size));
|
|
701
|
+
position-try: flip-block;
|
|
702
|
+
margin-block: var(--usewc-layout-popover-menu-anchor-offset);
|
|
703
|
+
overflow: auto;
|
|
691
704
|
border: var(--usewc-layout-popover-menu-border) var(--usewc-effect-popover-menu-border-style)
|
|
692
705
|
var(--usewc-color-popover-menu-border);
|
|
693
706
|
padding: var(--usewc-layout-popover-menu-padding);
|
|
694
707
|
background: var(--usewc-color-popover-menu-background);
|
|
695
708
|
border-radius: var(--usewc-effect-popover-menu-border-radius);
|
|
696
|
-
margin: unset;
|
|
697
|
-
}
|
|
698
709
|
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
inset-block-start: calc(anchor(end) + var(--usewc-layout-popover-menu-anchor-offset));
|
|
704
|
-
inset-inline-start: anchor(start);
|
|
705
|
-
position-try-fallbacks:
|
|
706
|
-
flip-block,
|
|
707
|
-
flip-inline,
|
|
708
|
-
flip-inline flip-block;
|
|
710
|
+
@supports (min-block-size: calc-size(fit-content, min(size, 1px))) {
|
|
711
|
+
min-block-size: calc-size(fit-content, min(size, var(--min-size)));
|
|
712
|
+
max-block-size: calc-size(stretch, min(size, var(--max-size)));
|
|
713
|
+
}
|
|
709
714
|
}
|
|
710
715
|
|
|
711
716
|
use-option,
|
|
@@ -790,11 +795,15 @@
|
|
|
790
795
|
}
|
|
791
796
|
|
|
792
797
|
use-dropdown use-dropdown::part(menu) {
|
|
793
|
-
|
|
798
|
+
inset-inline-start: calc(anchor(end) + var(--usewc-layout-popover-menu-anchor-offset) * 2);
|
|
794
799
|
inset-block-start: calc(
|
|
795
|
-
anchor(start) - var(--usewc-layout-popover-menu-
|
|
800
|
+
anchor(start) - var(--usewc-layout-popover-menu-anchor-offset) -
|
|
801
|
+
var(--usewc-layout-popover-menu-item-padding-block)
|
|
796
802
|
);
|
|
797
|
-
|
|
803
|
+
position-try:
|
|
804
|
+
flip-block,
|
|
805
|
+
flip-inline,
|
|
806
|
+
flip-inline flip-block;
|
|
798
807
|
}
|
|
799
808
|
|
|
800
809
|
use-dropdown [aria-checked="true"],
|
package/dist/use-wc.d.mts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { CSSResultGroup, LitElement, TemplateResult, html } from "lit";
|
|
2
|
-
|
|
3
2
|
//#region node_modules/lit-html/development/lit-html.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright 2017 Google LLC
|
|
7
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
-
*/
|
|
9
3
|
/** TemplateResult types */
|
|
10
4
|
declare const HTML_RESULT = 1;
|
|
11
5
|
declare const SVG_RESULT = 2;
|
package/dist/use-wc.mjs
CHANGED
|
@@ -9,7 +9,7 @@ function createId() {
|
|
|
9
9
|
return ":" + Math.random().toString(36).substring(2, 6) + ":";
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region \0@oxc-project+runtime@0.
|
|
12
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorate.js
|
|
13
13
|
function __decorate(decorators, target, key, desc) {
|
|
14
14
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15
15
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
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.46",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": "https://usewc.com",
|
|
6
6
|
"bugs": "https://github.com/dang-rabbits/use-wc/issues",
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"@storybook/web-components-vite": "^10.2.7",
|
|
50
50
|
"@types/node": "^25.5.0",
|
|
51
51
|
"@typescript/native-preview": "7.0.0-dev.20260316.1",
|
|
52
|
-
"@vitest/
|
|
52
|
+
"@vitest/browser-playwright": "4.1.10",
|
|
53
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
53
54
|
"baseline-status": "^1.0.10",
|
|
54
55
|
"custom-element-vs-code-integration": "^1.5.0",
|
|
55
56
|
"eslint-config-prettier": "^10.1.1",
|
|
@@ -62,7 +63,9 @@
|
|
|
62
63
|
"storybook-addon-tag-badges": "^1.4.0",
|
|
63
64
|
"typescript": "^5.9.3",
|
|
64
65
|
"typescript-eslint": "^8.29.1",
|
|
65
|
-
"vite
|
|
66
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.6",
|
|
67
|
+
"vite-plus": "0.2.6",
|
|
68
|
+
"vitest": "4.1.10",
|
|
66
69
|
"vitest-browser-lit": "^1.0.1"
|
|
67
70
|
},
|
|
68
71
|
"overrides": {
|
|
@@ -77,8 +80,8 @@
|
|
|
77
80
|
"npm": "^11.18.0",
|
|
78
81
|
"postcss": "^8.5.10",
|
|
79
82
|
"storybook": "$storybook",
|
|
80
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@
|
|
81
|
-
"vitest": "
|
|
83
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.6",
|
|
84
|
+
"vitest": "4.1.10"
|
|
82
85
|
},
|
|
83
86
|
"packageManager": "npm@11.12.1",
|
|
84
87
|
"customElements": "custom-elements.json",
|
|
@@ -2,12 +2,6 @@
|
|
|
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
|
-
},
|
|
11
5
|
{
|
|
12
6
|
"name": "use-date-input",
|
|
13
7
|
"description": "Displays a date picker using segmented inputs for year, month, and day.\n\nUses browser locale for formatting and ARIA labels.\n---\n",
|
|
@@ -19,6 +13,12 @@
|
|
|
19
13
|
],
|
|
20
14
|
"references": []
|
|
21
15
|
},
|
|
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",
|