@iyulab/components 2.26.0 → 2.27.0

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 (71) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +1 -0
  3. package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/decorate.js +1 -1
  4. package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/decorateMetadata.js +1 -1
  5. package/dist/components/UFloatingElement.js +2 -2
  6. package/dist/components/UFormControlElement.js +2 -2
  7. package/dist/components/UOverlayElement.js +2 -2
  8. package/dist/components/alert/UAlert.js +2 -2
  9. package/dist/components/avatar/UAvatar.js +2 -2
  10. package/dist/components/badge/UBadge.js +2 -2
  11. package/dist/components/breadcrumb/UBreadcrumb.js +1 -1
  12. package/dist/components/breadcrumb-item/UBreadcrumbItem.js +2 -2
  13. package/dist/components/button/UButton.js +2 -2
  14. package/dist/components/button-group/UButtonGroup.js +2 -2
  15. package/dist/components/calendar/UCalendar.js +2 -2
  16. package/dist/components/calendar/UCalendar.styles.js +9 -0
  17. package/dist/components/calendar/picker.styles.js +13 -0
  18. package/dist/components/card/UCard.js +2 -2
  19. package/dist/components/carousel/UCarousel.js +2 -2
  20. package/dist/components/checkbox/UCheckbox.js +2 -2
  21. package/dist/components/checkbox/UCheckbox.styles.js +9 -0
  22. package/dist/components/chip/UChip.js +2 -2
  23. package/dist/components/copy-button/UCopyButton.js +2 -2
  24. package/dist/components/date-picker/UDatePicker.js +2 -2
  25. package/dist/components/date-range-picker/UDateRangePicker.js +2 -2
  26. package/dist/components/date-range-picker/UDateRangePicker.styles.js +10 -0
  27. package/dist/components/dialog/UDialog.js +2 -2
  28. package/dist/components/divider/UDivider.js +2 -2
  29. package/dist/components/drawer/UDrawer.js +2 -2
  30. package/dist/components/expander/UExpander.js +2 -2
  31. package/dist/components/field/UField.js +2 -2
  32. package/dist/components/file-input/UFileInput.js +2 -2
  33. package/dist/components/file-input/UFileInput.styles.js +9 -0
  34. package/dist/components/form/UForm.js +2 -2
  35. package/dist/components/icon/UIcon.js +2 -2
  36. package/dist/components/icon-button/UIconButton.js +2 -2
  37. package/dist/components/input/UInput.js +2 -2
  38. package/dist/components/input/UInput.styles.js +14 -0
  39. package/dist/components/menu/UMenu.js +2 -2
  40. package/dist/components/menu-item/UMenuItem.js +2 -2
  41. package/dist/components/option/UOption.js +2 -2
  42. package/dist/components/pagination/UPagination.js +2 -2
  43. package/dist/components/panel/UPanel.js +2 -2
  44. package/dist/components/popover/UPopover.js +2 -2
  45. package/dist/components/progress-bar/UProgressBar.js +2 -2
  46. package/dist/components/progress-ring/UProgressRing.js +2 -2
  47. package/dist/components/radio/URadio.js +2 -2
  48. package/dist/components/rating/URating.js +2 -2
  49. package/dist/components/select/USelect.js +2 -2
  50. package/dist/components/select/USelect.styles.js +9 -0
  51. package/dist/components/skeleton/USkeleton.js +2 -2
  52. package/dist/components/slider/USlider.js +2 -2
  53. package/dist/components/slider/USlider.styles.js +9 -0
  54. package/dist/components/spinner/USpinner.js +2 -2
  55. package/dist/components/split-panel/USplitPanel.js +2 -2
  56. package/dist/components/steps/USteps.js +2 -2
  57. package/dist/components/switch/USwitch.js +2 -2
  58. package/dist/components/switch/USwitch.styles.js +23 -0
  59. package/dist/components/tab/UTab.js +2 -2
  60. package/dist/components/tab-nav/UTabNav.js +2 -2
  61. package/dist/components/tab-panel/UTabPanel.js +2 -2
  62. package/dist/components/tag/UTag.js +2 -2
  63. package/dist/components/text/UText.js +2 -2
  64. package/dist/components/textarea/UTextarea.js +2 -2
  65. package/dist/components/textarea/UTextarea.styles.js +14 -0
  66. package/dist/components/tooltip/UTooltip.js +2 -2
  67. package/dist/components/tree/UTree.js +2 -2
  68. package/dist/components/tree-item/UTreeItem.js +2 -2
  69. package/dist/plugins/dts-globals.d.ts +55 -0
  70. package/dist/plugins/dts-globals.js +225 -0
  71. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.27.0] - 2026-10-15
4
+
5
+ ### Added
6
+
7
+ - `plugins/dts-globals` — `fixPublishedDtsGlobals(packageRoot)`, a build step for packages that bundle their
8
+ declarations (`vite-plugin-dts` with `bundleTypes`). The bundler copies every `declare global` merge of the source
9
+ tree into each entry `.d.ts` but drops the classes those merges name when the entry does not reach them, so a
10
+ consumer that checks library types (`skipLibCheck: false`) fails with `TS2304` just for importing the package. The
11
+ step points each such name at the public entry that exports it (`import('<package>/<subpath>').Name`), types a tag
12
+ whose class no entry exports as `HTMLElement`, and leaves built-in types alone. Call it from the plugin's
13
+ `afterBuild` hook (`import { fixPublishedDtsGlobals } from '@iyulab/components/plugins/dts-globals.js'`).
14
+
15
+ ## [2.26.1] - 2026-10-14
16
+
17
+ ### Fixed
18
+
19
+ - **Focus is visible in forced colors mode** (Windows contrast themes). Forced colors drop `box-shadow`, and
20
+ `u-input`, `u-textarea`, `u-checkbox`, `u-switch`, `u-slider`, `u-file-input`, the calendar day, the picker field
21
+ and time input and the date range presets drew focus with `box-shadow` alone — tabbing to them showed nothing. They
22
+ now draw a `Highlight` outline in that mode. Normal rendering is unchanged.
23
+ - **`u-switch` on and off look different in forced colors mode.** The track and thumb were told apart by background
24
+ colour only, which forced colours paint the same; the track now has a border and the thumb and the checked track use
25
+ system colours.
26
+ - **Invalid `u-input`, `u-textarea` and `u-select` are marked in forced colors mode** with a dashed outline (their red
27
+ ring is a `box-shadow`). Focus still wins while the field is focused.
28
+
3
29
  ## [2.26.0] - 2026-10-14
4
30
 
5
31
  ### Added
package/README.md CHANGED
@@ -171,6 +171,7 @@ Theme.set('system');
171
171
  | SC 2.5.8 타깃 크기(최소) | 등록된 모든 컴포넌트의 포인터 타깃이 24×24 CSS px 이상이거나 간격 예외(중심 간 24px)를 충족하고, 그 좌표에서 실제로 눌린다 | `tests/browser/target-size.browser.test.ts`(실제 크로미움) |
172
172
  | SC 2.1.1 키보드(포인터 커서 검사) | 픽스처가 그리는 어떤 요소도 포인터 커서를 보이면서 상호작용 요소가 아닌 채로 있지 않다 — 클릭만 받는 `div` 가 들어오지 못한다(키 처리 자체는 컴포넌트 테스트가 잰다) | 같은 파일 |
173
173
  | SC 1.3.1 정보와 관계 · SC 4.1.2 이름·역할·값 | `u-field` 의 `label`/`description` 이 슬롯된 컨트롤의 접근성 이름·설명으로 실제로 도달한다(네이티브 엘리먼트 · `u-*` 폼 컨트롤 양쪽) | `tests/browser/field-label-association.browser.test.ts` |
174
+ | SC 2.4.7 포커스 표시 · SC 1.4.11 비텍스트 대비(강제 색 모드) | Windows 대비 테마(`forced-colors: active`)에서도 포커스 링이 보이고, `u-switch` 켬/끔과 입력류의 무효 표시가 구분된다 — 색을 시스템 색으로 덮는 그 모드를 에뮬레이션해 Tab·상태 전환 전후의 픽셀로 잰다 | `tests/browser/forced-colors-focus.browser.test.ts` · `tests/browser/forced-colors-state.browser.test.ts` |
174
175
 
175
176
  🔴**폼 컨트롤의 접근성 이름은 «한 곳에서만» 준다.** `u-field` 는 자기 `label` 을 슬롯된 컨트롤에
176
177
  `aria-label` 로 얹고(섀도우 경계를 넘지 못하는 `aria-labelledby` 대신 문자열 복사다), 폼 컨트롤은
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
1
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorate.js
2
2
  function __decorate(decorators, target, key, desc) {
3
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateMetadata.js
1
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorateMetadata.js
2
2
  function __decorateMetadata(k, v) {
3
3
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
4
4
  }
@@ -1,8 +1,8 @@
1
1
  import { UElement } from "./UElement.js";
2
2
  import { getParentElement, querySelectorAllWithin } from "../utilities/elements.js";
3
3
  import { styles } from "./UFloatingElement.styles.js";
4
- import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
5
- import __decorate from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
4
+ import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
5
+ import __decorate from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
6
6
  import { property, state } from "lit/decorators.js";
7
7
  import { arrow, autoPlacement, autoUpdate, computePosition, flip, hide, offset, shift } from "@floating-ui/dom";
8
8
  //#region src/components/UFloatingElement.ts
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "./UElement.js";
2
- import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { styles } from "./UFormControlElement.styles.js";
5
5
  import { property, state } from "lit/decorators.js";
6
6
  //#region src/components/UFormControlElement.ts
@@ -1,7 +1,7 @@
1
1
  import { UElement } from "./UElement.js";
2
2
  import { isFocusCandidate, querySelectorDeep } from "../utilities/elements.js";
3
- import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
5
5
  import { OverlayManager } from "../utilities/OverlayManager.js";
6
6
  import { arrayAttrConverter } from "../utilities/converters.js";
7
7
  import { HostAria, nameFromSlot } from "../utilities/hostAria.js";
@@ -1,7 +1,7 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
2
  import { UElement } from "../UElement.js";
3
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
5
5
  import { HostAria } from "../../utilities/hostAria.js";
6
6
  import "../button/UButton.js";
7
7
  import { devWarnOnce } from "../../utilities/devWarning.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { styles } from "./UAvatar.styles.js";
5
5
  import { html } from "lit";
6
6
  import { customElement, property } from "lit/decorators.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import "../icon/UIcon.js";
5
5
  import { statusIcon } from "../../utilities/statusIcon.js";
6
6
  import { styles } from "./UBadge.styles.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
2
  import { UElement } from "../UElement.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import "../icon/UIcon.js";
5
5
  import { styles } from "./UBreadcrumb.styles.js";
6
6
  import { html } from "lit";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { styles } from "./UBreadcrumbItem.styles.js";
5
5
  import { html } from "lit";
6
6
  import { customElement, property } from "lit/decorators.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import "../spinner/USpinner.js";
5
5
  import { styles } from "./UButton.styles.js";
6
6
  import { FORWARDED_ARIA } from "./forwarded-aria.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UButton } from "../button/UButton.js";
5
5
  import { UIconButton } from "../icon-button/UIconButton.js";
6
6
  import { styles } from "./UButtonGroup.styles.js";
@@ -1,7 +1,7 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
2
  import { UElement } from "../UElement.js";
3
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
5
5
  import "../icon-button/UIconButton.js";
6
6
  import { formatDate } from "../../utilities/format.js";
7
7
  import { addDays, addMonths, daysInMonth, isDayUnavailable, isSameDay, monthDiff, parseISODate, startOfMonth, toISODate } from "./dates.js";
@@ -133,6 +133,15 @@ var styles = css`
133
133
  white-space: nowrap;
134
134
  border: 0;
135
135
  }
136
+
137
+
138
+ @media (forced-colors: active) {
139
+ .day:focus-visible {
140
+ outline: 2px solid Highlight;
141
+ outline-offset: -2px;
142
+ }
143
+ }
144
+
136
145
  `;
137
146
  //#endregion
138
147
  export { styles };
@@ -155,6 +155,19 @@ var styles = css`
155
155
  gap: 4px;
156
156
  margin-inline-start: auto;
157
157
  }
158
+
159
+
160
+ @media (forced-colors: active) {
161
+ :host(:not([readonly]):not(:disabled)) .container:focus-within {
162
+ outline: 2px solid Highlight;
163
+ outline-offset: 1px;
164
+ }
165
+ .time-input:focus-visible {
166
+ outline: 2px solid Highlight;
167
+ outline-offset: 1px;
168
+ }
169
+ }
170
+
158
171
  `;
159
172
  //#endregion
160
173
  export { styles };
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { styles } from "./UCard.styles.js";
5
5
  import { html } from "lit";
6
6
  import { customElement, property } from "lit/decorators.js";
@@ -1,7 +1,7 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
2
  import { UElement } from "../UElement.js";
3
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
5
5
  import { HostAria } from "../../utilities/hostAria.js";
6
6
  import "../button/UButton.js";
7
7
  import "../icon/UIcon.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import "../icon/UIcon.js";
6
6
  import { styles } from "./UCheckbox.styles.js";
@@ -200,6 +200,15 @@ var styles = css`
200
200
  :host([invalid]) .description {
201
201
  color: var(--u-danger-color-strong, #C62828);
202
202
  }
203
+
204
+
205
+ @media (forced-colors: active) {
206
+ input:focus-visible ~ .checkbox {
207
+ outline: 2px solid Highlight;
208
+ outline-offset: 2px;
209
+ }
210
+ }
211
+
203
212
  `;
204
213
  //#endregion
205
214
  export { styles };
@@ -1,7 +1,7 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
2
  import { UElement } from "../UElement.js";
3
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
5
5
  import "../button/UButton.js";
6
6
  import "../icon/UIcon.js";
7
7
  import "../tooltip/UTooltip.js";
@@ -1,7 +1,7 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
2
  import { UElement } from "../UElement.js";
3
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
5
5
  import "../button/UButton.js";
6
6
  import "../icon/UIcon.js";
7
7
  import "../icon-button/UIconButton.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import "../button/UButton.js";
6
6
  import "../icon/UIcon.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import "../button/UButton.js";
6
6
  import { devWarnOnce } from "../../utilities/devWarning.js";
@@ -96,6 +96,16 @@ var styles = css`
96
96
 
97
97
  font-size: calc(var(--u-density, 14px) * 8 / 7);
98
98
  }
99
+
100
+
101
+
102
+ @media (forced-colors: active) {
103
+ .preset:focus-visible {
104
+ outline: 2px solid Highlight;
105
+ outline-offset: -2px;
106
+ }
107
+ }
108
+
99
109
  `;
100
110
  //#endregion
101
111
  export { styles };
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UOverlayElement } from "../UOverlayElement.js";
5
5
  import "../button/UButton.js";
6
6
  import "../icon/UIcon.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { styles } from "./UDivider.styles.js";
5
5
  import { html } from "lit";
6
6
  import { customElement, property } from "lit/decorators.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UOverlayElement } from "../UOverlayElement.js";
5
5
  import "../button/UButton.js";
6
6
  import "../icon/UIcon.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import "../icon/UIcon.js";
5
5
  import { styles } from "./UExpander.styles.js";
6
6
  import { html } from "lit";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { HostAria } from "../../utilities/hostAria.js";
5
5
  import { devWarnOnce } from "../../utilities/devWarning.js";
6
6
  import "../icon/UIcon.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import "../icon/UIcon.js";
6
6
  import "../field/UField.js";
@@ -85,6 +85,15 @@ var styles = css`
85
85
  :host([invalid]) .trigger {
86
86
  border-color: var(--u-input-border-color-invalid, #C62828);
87
87
  }
88
+
89
+
90
+ @media (forced-colors: active) {
91
+ .trigger:focus-visible {
92
+ outline: 2px solid Highlight;
93
+ outline-offset: 2px;
94
+ }
95
+ }
96
+
88
97
  `;
89
98
  //#endregion
90
99
  export { styles };
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import { arrayAttrConverter } from "../../utilities/converters.js";
6
6
  import { styles } from "./UForm.styles.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { IconRegistry, getDefaultBaseUrl } from "../../utilities/icons.js";
5
5
  import { devWarnOnce } from "../../utilities/devWarning.js";
6
6
  import { styles } from "./UIcon.styles.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { FORWARDED_ARIA } from "../button/forwarded-aria.js";
5
5
  import "../button/UButton.js";
6
6
  import "../icon/UIcon.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import { isImeComposing } from "../../utilities/keyboard.js";
6
6
  import "../spinner/USpinner.js";
@@ -248,6 +248,20 @@ var styles = css`
248
248
 
249
249
  font-size: calc(var(--u-density, 14px) * 8 / 7);
250
250
  }
251
+
252
+
253
+ @media (forced-colors: active) {
254
+
255
+ :host([invalid]:not([readonly]):not(:disabled)) .container {
256
+ outline: 2px dashed CanvasText;
257
+ outline-offset: 1px;
258
+ }
259
+ :host(:not([readonly]):not(:disabled)) .container:focus-within {
260
+ outline: 2px solid Highlight;
261
+ outline-offset: 1px;
262
+ }
263
+ }
264
+
251
265
  `;
252
266
  //#endregion
253
267
  export { styles };
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { isFromNestedControl } from "../../utilities/nestedControl.js";
5
5
  import { UMenuItem } from "../menu-item/UMenuItem.js";
6
6
  import { styles } from "./UMenu.styles.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import "../icon/UIcon.js";
5
5
  import "../popover/UPopover.js";
6
6
  import { UDivider } from "../divider/UDivider.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import "../icon/UIcon.js";
5
5
  import { styles } from "./UOption.styles.js";
6
6
  import { html, nothing } from "lit";
@@ -1,7 +1,7 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
2
  import { UElement } from "../UElement.js";
3
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
5
5
  import "../button/UButton.js";
6
6
  import "../icon/UIcon.js";
7
7
  import "../option/UOption.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { styles } from "./UPanel.styles.js";
5
5
  import { html } from "lit";
6
6
  import { customElement, property } from "lit/decorators.js";
@@ -1,6 +1,6 @@
1
1
  import { isCoarsePointer } from "../../utilities/elements.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFloatingElement } from "../UFloatingElement.js";
5
5
  import { OverlayManager } from "../../utilities/OverlayManager.js";
6
6
  import { arrayAttrConverter } from "../../utilities/converters.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { HostAria } from "../../utilities/hostAria.js";
5
5
  import { syncProgressbar } from "../../utilities/progressAria.js";
6
6
  import { styles } from "./UProgressBar.styles.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { HostAria } from "../../utilities/hostAria.js";
5
5
  import { syncProgressbar } from "../../utilities/progressAria.js";
6
6
  import { styles } from "./UProgressRing.styles.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import "../field/UField.js";
6
6
  import { UOption } from "../option/UOption.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import "../icon/UIcon.js";
6
6
  import "../field/UField.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import { isImeComposing } from "../../utilities/keyboard.js";
6
6
  import "../spinner/USpinner.js";
@@ -269,6 +269,15 @@ var styles = css`
269
269
 
270
270
  font-size: calc(var(--u-density, 14px) * 8 / 7);
271
271
  }
272
+
273
+ @media (forced-colors: active) {
274
+
275
+ :host([invalid]:not([readonly]):not(:disabled)) .container {
276
+ outline: 2px dashed CanvasText;
277
+ outline-offset: 1px;
278
+ }
279
+ }
280
+
272
281
  `;
273
282
  //#endregion
274
283
  export { styles };
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { styles } from "./USkeleton.styles.js";
5
5
  import { html } from "lit";
6
6
  import { customElement, property } from "lit/decorators.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import "../tooltip/UTooltip.js";
6
6
  import "../field/UField.js";
@@ -145,6 +145,15 @@ var styles = css`
145
145
  color: var(--u-txt-color-weak, #616161);
146
146
  white-space: nowrap;
147
147
  }
148
+
149
+
150
+ @media (forced-colors: active) {
151
+ .thumb:focus-visible .thumb-content {
152
+ outline: 2px solid Highlight;
153
+ outline-offset: 2px;
154
+ }
155
+ }
156
+
148
157
  `;
149
158
  //#endregion
150
159
  export { styles };
@@ -1,7 +1,7 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
2
  import { UElement } from "../UElement.js";
3
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
5
5
  import { HostAria } from "../../utilities/hostAria.js";
6
6
  import { styles } from "./USpinner.styles.js";
7
7
  import { syncProgressbar } from "../../utilities/progressAria.js";
@@ -1,7 +1,7 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
2
  import { UElement } from "../UElement.js";
3
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
5
5
  import { arrayAttrConverter } from "../../utilities/converters.js";
6
6
  import { devWarnOnce } from "../../utilities/devWarning.js";
7
7
  import { styles } from "./USplitPanel.styles.js";
@@ -1,7 +1,7 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
2
  import { UElement } from "../UElement.js";
3
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
5
5
  import { styles } from "./USteps.styles.js";
6
6
  import { html, nothing } from "lit";
7
7
  import { customElement, property } from "lit/decorators.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import { styles } from "./USwitch.styles.js";
6
6
  import { html } from "lit";
@@ -200,6 +200,29 @@ var styles = css`
200
200
  :host([invalid]) .description {
201
201
  color: var(--u-danger-color-strong, #C62828);
202
202
  }
203
+
204
+
205
+ @media (forced-colors: active) {
206
+
207
+ .track {
208
+ border: 1px solid CanvasText;
209
+ }
210
+ .thumb {
211
+ background: CanvasText;
212
+ }
213
+ :host([checked]) .track {
214
+ background: Highlight;
215
+ border-color: Highlight;
216
+ }
217
+ :host([checked]) .thumb {
218
+ background: HighlightText;
219
+ }
220
+ input:focus-visible ~ .track {
221
+ outline: 2px solid Highlight;
222
+ outline-offset: 2px;
223
+ }
224
+ }
225
+
203
226
  `;
204
227
  //#endregion
205
228
  export { styles };
@@ -1,7 +1,7 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
2
  import { UElement } from "../UElement.js";
3
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
5
5
  import "../button/UButton.js";
6
6
  import "../icon/UIcon.js";
7
7
  import { formatNumber } from "../../utilities/format.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UTab } from "../tab/UTab.js";
5
5
  import { styles } from "./UTabNav.styles.js";
6
6
  import { html, nothing } from "lit";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { isFromNestedControl } from "../../utilities/nestedControl.js";
5
5
  import { UPanel } from "../panel/UPanel.js";
6
6
  import { UTab } from "../tab/UTab.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import "../icon/UIcon.js";
5
5
  import { statusIcon } from "../../utilities/statusIcon.js";
6
6
  import { styles } from "./UTag.styles.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { styles } from "./UText.styles.js";
5
5
  import { customElement, property } from "lit/decorators.js";
6
6
  import { html, literal } from "lit/static-html.js";
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { UFormControlElement } from "../UFormControlElement.js";
5
5
  import "../field/UField.js";
6
6
  import { styles } from "./UTextarea.styles.js";
@@ -183,6 +183,20 @@ var styles = css`
183
183
 
184
184
  font-size: calc(var(--u-density, 14px) * 8 / 7);
185
185
  }
186
+
187
+
188
+ @media (forced-colors: active) {
189
+
190
+ :host([invalid]:not([readonly]):not(:disabled)) .container {
191
+ outline: 2px dashed CanvasText;
192
+ outline-offset: 1px;
193
+ }
194
+ :host(:not([readonly]):not(:disabled)) .container:focus-within {
195
+ outline: 2px solid Highlight;
196
+ outline-offset: 1px;
197
+ }
198
+ }
199
+
186
200
  `;
187
201
  //#endregion
188
202
  export { styles };
@@ -1,5 +1,5 @@
1
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
2
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
1
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
2
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
3
3
  import { UFloatingElement } from "../UFloatingElement.js";
4
4
  import { OverlayManager } from "../../utilities/OverlayManager.js";
5
5
  import { styles } from "./UTooltip.styles.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { isFromNestedControl } from "../../utilities/nestedControl.js";
5
5
  import { UTreeItem } from "../tree-item/UTreeItem.js";
6
6
  import { styles } from "./UTree.styles.js";
@@ -1,6 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.js";
4
4
  import { HostAria } from "../../utilities/hostAria.js";
5
5
  import "../spinner/USpinner.js";
6
6
  import "../icon/UIcon.js";
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Makes every published entry `.d.ts` self-contained with respect to its `declare global` blocks.
3
+ *
4
+ * Why this exists: a declaration bundler (`vite-plugin-dts` with `bundleTypes`, i.e. api-extractor)
5
+ * copies the global augmentations of the whole source tree into **every** entry it rolls up — a
6
+ * component module's `declare global { interface HTMLElementTagNameMap { 'u-x': UX } }` lands in
7
+ * the main entry too — but it only keeps the declarations that entry itself reaches. The merge
8
+ * body survives while the class it names does not, so a consumer that type-checks libraries
9
+ * (`skipLibCheck: false`) fails with `TS2304: Cannot find name 'UX'` just for importing the
10
+ * package. The same happens when the entry has the name only as a value (a React wrapper `const`),
11
+ * which surfaces as `TS2749`.
12
+ *
13
+ * The fix keeps the augmentation (so `document.querySelector('u-x')` stays typed from any entry)
14
+ * and points each dangling name at the public entry that exports it:
15
+ * `'u-x': UX` becomes `'u-x': import('<package>/<subpath>').UX`. A tag whose class no entry
16
+ * exports is a composed-only internal, so its map value becomes `HTMLElement` — the most specific
17
+ * public type there is. Any other dangling name is left as it is: guessing would hide a real
18
+ * export gap, and the published-declaration compile check is what reports it.
19
+ *
20
+ * Call it from the declaration plugin's `afterBuild` hook, after the bundled `.d.ts` files exist.
21
+ */
22
+ export declare function fixPublishedDtsGlobals(packageRoot: string): void;
23
+ interface DeclarationEntry {
24
+ /** Export key, `.` or `./sub`. */
25
+ key: string;
26
+ /** Built declaration file, relative to the package root. */
27
+ file: string;
28
+ }
29
+ /**
30
+ * Entry declaration files from the manifest's `exports`. A local manifest may point at `./src/…`
31
+ * because the publish workflow rewrites `src/` to `dist/`; the built file is always under `dist/`.
32
+ */
33
+ export declare function declarationEntries(exportsMap: Record<string, unknown>): DeclarationEntry[];
34
+ /**
35
+ * `name → specifier` for every type-capable name an entry exports publicly. The main entry wins
36
+ * when several entries export the same name.
37
+ */
38
+ export declare function indexExportedTypes(packageName: string, entries: {
39
+ key: string;
40
+ source: string;
41
+ }[]): Map<string, string>;
42
+ /** Names a declaration file can use as types: its own type declarations and its imports. */
43
+ export declare function localTypeNames(source: string): Set<string>;
44
+ /**
45
+ * Global type names from the TypeScript `lib.*.d.ts` the package builds with (`HTMLElement`,
46
+ * `CustomEvent`, `HTMLDivElement` …). These are never dangling, so they are never rewritten —
47
+ * a tag mapped to a built-in element type keeps that type.
48
+ */
49
+ export declare function libGlobalNames(packageRoot: string): Set<string>;
50
+ /**
51
+ * Rewrites the dangling names inside each top-level `declare global { … }` block of one
52
+ * declaration file (see `fixPublishedDtsGlobals`). Everything outside those blocks is untouched.
53
+ */
54
+ export declare function resolveDanglingGlobals(source: string, exportedFrom: Map<string, string>, globals?: Set<string>): string;
55
+ export {};
@@ -0,0 +1,225 @@
1
+ import { existsSync, readdirSync, readFileSync, writeFileSync } from 'fs';
2
+ import { createRequire } from 'module';
3
+ import { dirname, join, resolve } from 'path';
4
+ /**
5
+ * Makes every published entry `.d.ts` self-contained with respect to its `declare global` blocks.
6
+ *
7
+ * Why this exists: a declaration bundler (`vite-plugin-dts` with `bundleTypes`, i.e. api-extractor)
8
+ * copies the global augmentations of the whole source tree into **every** entry it rolls up — a
9
+ * component module's `declare global { interface HTMLElementTagNameMap { 'u-x': UX } }` lands in
10
+ * the main entry too — but it only keeps the declarations that entry itself reaches. The merge
11
+ * body survives while the class it names does not, so a consumer that type-checks libraries
12
+ * (`skipLibCheck: false`) fails with `TS2304: Cannot find name 'UX'` just for importing the
13
+ * package. The same happens when the entry has the name only as a value (a React wrapper `const`),
14
+ * which surfaces as `TS2749`.
15
+ *
16
+ * The fix keeps the augmentation (so `document.querySelector('u-x')` stays typed from any entry)
17
+ * and points each dangling name at the public entry that exports it:
18
+ * `'u-x': UX` becomes `'u-x': import('<package>/<subpath>').UX`. A tag whose class no entry
19
+ * exports is a composed-only internal, so its map value becomes `HTMLElement` — the most specific
20
+ * public type there is. Any other dangling name is left as it is: guessing would hide a real
21
+ * export gap, and the published-declaration compile check is what reports it.
22
+ *
23
+ * Call it from the declaration plugin's `afterBuild` hook, after the bundled `.d.ts` files exist.
24
+ */
25
+ export function fixPublishedDtsGlobals(packageRoot) {
26
+ const manifest = JSON.parse(readFileSync(join(packageRoot, 'package.json'), 'utf8'));
27
+ const entries = declarationEntries(manifest.exports ?? {})
28
+ .map((entry) => ({ ...entry, path: resolve(packageRoot, entry.file) }))
29
+ .filter((entry) => existsSync(entry.path));
30
+ const sources = entries.map((entry) => ({ ...entry, source: readFileSync(entry.path, 'utf8') }));
31
+ const exportedFrom = indexExportedTypes(manifest.name, sources);
32
+ const globals = libGlobalNames(packageRoot);
33
+ for (const entry of sources) {
34
+ const fixed = resolveDanglingGlobals(entry.source, exportedFrom, globals);
35
+ if (fixed !== entry.source)
36
+ writeFileSync(entry.path, fixed);
37
+ }
38
+ }
39
+ /**
40
+ * Entry declaration files from the manifest's `exports`. A local manifest may point at `./src/…`
41
+ * because the publish workflow rewrites `src/` to `dist/`; the built file is always under `dist/`.
42
+ */
43
+ export function declarationEntries(exportsMap) {
44
+ const out = [];
45
+ for (const [key, target] of Object.entries(exportsMap)) {
46
+ if (!target || typeof target !== 'object')
47
+ continue;
48
+ const types = target.types;
49
+ if (typeof types !== 'string' || key.includes('*'))
50
+ continue;
51
+ out.push({ key, file: types.replace(/^\.\/src\//, './dist/') });
52
+ }
53
+ return out;
54
+ }
55
+ /**
56
+ * `name → specifier` for every type-capable name an entry exports publicly. The main entry wins
57
+ * when several entries export the same name.
58
+ */
59
+ export function indexExportedTypes(packageName, entries) {
60
+ const index = new Map();
61
+ const ordered = [...entries].sort((a, b) => (a.key === '.' ? -1 : b.key === '.' ? 1 : 0));
62
+ for (const { key, source } of ordered) {
63
+ const specifier = key === '.' ? packageName : `${packageName}/${key.replace(/^\.\//, '')}`;
64
+ const declared = localTypeNames(source);
65
+ const exported = new Set();
66
+ for (const m of source.matchAll(/^export\s+declare\s+(?:abstract\s+)?(?:class|interface|type|enum)\s+([A-Za-z_$][\w$]*)/gm)) {
67
+ exported.add(m[1]);
68
+ }
69
+ for (const m of source.matchAll(/^export\s*\{([^}]*)\}\s*;?\s*$/gm)) {
70
+ for (const part of m[1].split(',')) {
71
+ const [local, alias] = part.trim().replace(/^type\s+/, '').split(/\s+as\s+/);
72
+ if (local && declared.has(local))
73
+ exported.add((alias ?? local).trim());
74
+ }
75
+ }
76
+ for (const name of exported)
77
+ if (!index.has(name))
78
+ index.set(name, specifier);
79
+ }
80
+ return index;
81
+ }
82
+ /** Names a declaration file can use as types: its own type declarations and its imports. */
83
+ export function localTypeNames(source) {
84
+ const names = new Set();
85
+ for (const m of source.matchAll(/^\s*(?:export\s+)?(?:declare\s+)?(?:abstract\s+)?(?:class|interface|type|enum)\s+([A-Za-z_$][\w$]*)/gm)) {
86
+ names.add(m[1]);
87
+ }
88
+ for (const m of source.matchAll(/^\s*import\s+(?:type\s+)?([^;]*?)\s+from\s+['"][^'"]+['"]/gm)) {
89
+ const clause = m[1];
90
+ const named = clause.match(/\{([^}]*)\}/);
91
+ if (named) {
92
+ for (const part of named[1].split(',')) {
93
+ const bits = part.trim().replace(/^type\s+/, '').split(/\s+as\s+/);
94
+ const local = (bits[1] ?? bits[0]).trim();
95
+ if (local)
96
+ names.add(local);
97
+ }
98
+ }
99
+ const rest = clause.replace(/\{[^}]*\}/, '').replace(/\*\s+as\s+/, '').split(',');
100
+ for (const part of rest) {
101
+ const local = part.trim();
102
+ if (/^[A-Za-z_$][\w$]*$/.test(local))
103
+ names.add(local);
104
+ }
105
+ }
106
+ return names;
107
+ }
108
+ /**
109
+ * Global type names from the TypeScript `lib.*.d.ts` the package builds with (`HTMLElement`,
110
+ * `CustomEvent`, `HTMLDivElement` …). These are never dangling, so they are never rewritten —
111
+ * a tag mapped to a built-in element type keeps that type.
112
+ */
113
+ export function libGlobalNames(packageRoot) {
114
+ const names = new Set();
115
+ let libDir;
116
+ try {
117
+ libDir = dirname(createRequire(join(packageRoot, 'package.json')).resolve('typescript/package.json'));
118
+ }
119
+ catch {
120
+ return names;
121
+ }
122
+ const dir = join(libDir, 'lib');
123
+ for (const file of readdirSync(dir)) {
124
+ if (!/^lib\..*\.d\.ts$/.test(file))
125
+ continue;
126
+ const text = readFileSync(join(dir, file), 'utf8');
127
+ for (const m of text.matchAll(/^(?:declare\s+)?(?:interface|type|var|class)\s+([A-Za-z_$][\w$]*)/gm))
128
+ names.add(m[1]);
129
+ }
130
+ return names;
131
+ }
132
+ /**
133
+ * Rewrites the dangling names inside each top-level `declare global { … }` block of one
134
+ * declaration file (see `fixPublishedDtsGlobals`). Everything outside those blocks is untouched.
135
+ */
136
+ export function resolveDanglingGlobals(source, exportedFrom, globals = new Set()) {
137
+ const local = localTypeNames(source);
138
+ for (const name of globals)
139
+ if (!exportedFrom.has(name))
140
+ local.add(name);
141
+ let out = '';
142
+ let cursor = 0;
143
+ const marker = /declare\s+global\s*\{/g;
144
+ for (let m = marker.exec(source); m; m = marker.exec(source)) {
145
+ const open = m.index + m[0].length - 1;
146
+ const close = matchingBrace(source, open);
147
+ if (close === -1)
148
+ break;
149
+ out += source.slice(cursor, open) + rewriteBlock(source.slice(open, close + 1), local, exportedFrom);
150
+ cursor = close + 1;
151
+ marker.lastIndex = cursor;
152
+ }
153
+ return out + source.slice(cursor);
154
+ }
155
+ function matchingBrace(text, open) {
156
+ let depth = 0;
157
+ for (let i = open; i < text.length; i++) {
158
+ if (text[i] === '{')
159
+ depth++;
160
+ else if (text[i] === '}' && --depth === 0)
161
+ return i;
162
+ }
163
+ return -1;
164
+ }
165
+ /**
166
+ * Walks one block, tracking which interface each position sits in, and rewrites type references.
167
+ * Skipped: quoted text, names right after `interface`/`namespace`/`extends` targets that are being
168
+ * declared, and qualified tails (`A.B` — only `A` is a reference).
169
+ */
170
+ function rewriteBlock(block, local, exportedFrom) {
171
+ const interfaces = [];
172
+ let pendingInterface = null;
173
+ let out = '';
174
+ let i = 0;
175
+ while (i < block.length) {
176
+ const ch = block[i];
177
+ if (ch === "'" || ch === '"' || ch === '`') {
178
+ const end = block.indexOf(ch, i + 1);
179
+ const stop = end === -1 ? block.length : end + 1;
180
+ out += block.slice(i, stop);
181
+ i = stop;
182
+ continue;
183
+ }
184
+ if (ch === '{') {
185
+ interfaces.push(pendingInterface);
186
+ pendingInterface = null;
187
+ out += ch;
188
+ i++;
189
+ continue;
190
+ }
191
+ if (ch === '}') {
192
+ interfaces.pop();
193
+ out += ch;
194
+ i++;
195
+ continue;
196
+ }
197
+ const word = /^[A-Za-z_$][\w$]*/.exec(block.slice(i));
198
+ if (!word) {
199
+ out += ch;
200
+ i++;
201
+ continue;
202
+ }
203
+ const name = word[0];
204
+ const before = out.trimEnd();
205
+ const declaresName = /\b(?:interface|namespace|class|type|enum)$/.test(before);
206
+ const qualifiedTail = before.endsWith('.');
207
+ if (declaresName && /\binterface$/.test(before))
208
+ pendingInterface = name;
209
+ if (!declaresName && !qualifiedTail && /^[A-Z]/.test(name) && !local.has(name)) {
210
+ const specifier = exportedFrom.get(name);
211
+ const inTagMap = interfaces[interfaces.length - 1] === 'HTMLElementTagNameMap';
212
+ if (specifier)
213
+ out += `import('${specifier}').${name}`;
214
+ else if (inTagMap && /:\s*$/.test(out))
215
+ out += 'HTMLElement';
216
+ else
217
+ out += name;
218
+ }
219
+ else {
220
+ out += name;
221
+ }
222
+ i += name.length;
223
+ }
224
+ return out;
225
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iyulab/components",
3
3
  "description": "web-components library based on lit-element made by iyulab",
4
- "version": "2.26.0",
4
+ "version": "2.27.0",
5
5
  "keywords": [
6
6
  "iyulab",
7
7
  "components",