@iyulab/components 1.8.0 → 1.8.1
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/CHANGELOG.md +6 -0
- package/dist/components/input/UInput.js +2 -0
- package/dist/components/option/UOption.d.ts +2 -0
- package/dist/components/option/UOption.js +9 -0
- package/dist/components/radio/URadio.js +5 -1
- package/dist/components/rating/URating.js +6 -1
- package/dist/components/select/USelect.d.ts +4 -0
- package/dist/components/select/USelect.js +14 -1
- package/dist/components/slider/USlider.js +8 -0
- package/dist/components/textarea/UTextarea.js +2 -0
- package/dist/react/UAlert.d.ts +3 -1
- package/dist/react/UAvatar.d.ts +3 -1
- package/dist/react/UBadge.d.ts +3 -1
- package/dist/react/UBreadcrumb.d.ts +3 -1
- package/dist/react/UBreadcrumbItem.d.ts +3 -1
- package/dist/react/UButton.d.ts +3 -1
- package/dist/react/UButtonGroup.d.ts +3 -1
- package/dist/react/UCard.d.ts +3 -1
- package/dist/react/UCarousel.d.ts +3 -1
- package/dist/react/UCheckbox.d.ts +3 -1
- package/dist/react/UChip.d.ts +3 -1
- package/dist/react/UCopyButton.d.ts +3 -1
- package/dist/react/UDialog.d.ts +3 -1
- package/dist/react/UDivider.d.ts +3 -1
- package/dist/react/UDrawer.d.ts +3 -1
- package/dist/react/UField.d.ts +3 -1
- package/dist/react/UForm.d.ts +3 -1
- package/dist/react/UIcon.d.ts +3 -1
- package/dist/react/UIconButton.d.ts +3 -1
- package/dist/react/UInput.d.ts +3 -1
- package/dist/react/UMenu.d.ts +3 -1
- package/dist/react/UMenuItem.d.ts +3 -1
- package/dist/react/UOption.d.ts +3 -1
- package/dist/react/UPanel.d.ts +3 -1
- package/dist/react/UPopover.d.ts +3 -1
- package/dist/react/UProgressBar.d.ts +3 -1
- package/dist/react/UProgressRing.d.ts +3 -1
- package/dist/react/URadio.d.ts +3 -1
- package/dist/react/URating.d.ts +3 -1
- package/dist/react/USelect.d.ts +3 -1
- package/dist/react/USkeleton.d.ts +3 -1
- package/dist/react/USlider.d.ts +3 -1
- package/dist/react/USpinner.d.ts +3 -1
- package/dist/react/USplitPanel.d.ts +3 -1
- package/dist/react/USwitch.d.ts +3 -1
- package/dist/react/UTab.d.ts +3 -1
- package/dist/react/UTabPanel.d.ts +3 -1
- package/dist/react/UTag.d.ts +3 -1
- package/dist/react/UTextarea.d.ts +3 -1
- package/dist/react/UTooltip.d.ts +3 -1
- package/dist/react/UTree.d.ts +3 -1
- package/dist/react/UTreeItem.d.ts +3 -1
- package/package.json +1 -1
- package/plugins/vite-plugin-react-wrapper.js +12 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.8.1] - 2026-07-24
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- **u-field 합성 폼 컨트롤이 접근성 트리에서 이름 없이 노출되던 문제 수정** (WCAG 1.3.1·4.1.2 — U-Platform T8-1 Playwright E2E 실측, ISSUE-20260723-uinput-label-a11y). 라벨은 `u-field` 의 별도 섀도 스코프에 렌더되어 `label[for]` 로 컨트롤과 연결될 수 없었고, 섀도 경계 탓에 cross-root `aria-labelledby` 도 현 브라우저에서 신뢰성 있게 배송되지 않는다. 이제 각 컴포넌트가 자신의 접근 이름 호스트에 라벨을 `aria-label`(설명은 `aria-description`)로 미러링한다 — `u-input`/`u-textarea`(네이티브 컨트롤), `u-rating`/`u-radio`(`role=radiogroup`), `u-select`(`role=combobox` + `aria-expanded`/`aria-haspopup`/`aria-controls`), `u-slider`(`role=slider` + `aria-valuenow`/`valuemin`/`valuemax`/`valuetext`). 아울러 `u-option` 이 사용 맥락에 맞는 자식 역할·상태를 노출한다 — radiogroup(`marker='radio'`) 안에서는 `role=radio` + `aria-checked`, listbox(`u-select`/`u-input` combobox) 에서는 `role=option` + `aria-selected`(+ `aria-disabled`) — 이름만 있고 비어 보이던 radiogroup/combobox 위젯이 자식까지 정합하게 읽힌다. `u-rating` 심볼(`role=radio`)도 커밋 값 기준 `aria-checked` 를 노출한다. `getByLabel`/`getByRole({name})` 로케이터와 스크린리더가 컨트롤을 이름으로 인식한다.
|
|
7
|
+
- **React 래퍼 `.d.ts` 타이핑 2건 수정** (React 19 + TS strict 컴파일 차단 — U-CMMS 실측, ISSUE-20260722-react-wrapper-typing). (1) `React.HTMLAttributes` 의 이벤트 핸들러(`onChange` 등)와 래퍼의 CustomEvent 시그니처가 교집합되어 어떤 핸들러도 대입 불가였던 것을, HTMLAttributes 쪽 동명 이벤트 키를 `Omit` 해 CustomEvent 시그니처만 남기도록 교정. (2) `Partial<Element>` 의 DOM `children: HTMLCollection` 이 JSX children 을 가려 `<UButton>text</UButton>` 이 TS2747 로 실패하던 것을, `Omit<Partial<Element>, keyof HTMLAttributes>` 로 DOM 전용 키를 제거하고 React 친화 타입(`children: ReactNode`)이 HTMLAttributes 에서 공급되도록 교정. 소비자의 `as unknown as ComponentType` 우회 제거 가능.
|
|
8
|
+
|
|
3
9
|
## [1.8.0] - 2026-07-22
|
|
4
10
|
|
|
5
11
|
### Fixed
|
|
@@ -148,6 +148,8 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
148
148
|
|
|
149
149
|
<input part="input"
|
|
150
150
|
type=${this.type === "password" && this.showPassword ? "text" : this.type}
|
|
151
|
+
aria-label=${ifDefined(this.label)}
|
|
152
|
+
aria-description=${ifDefined(this.description)}
|
|
151
153
|
name=${ifDefined(this.name)}
|
|
152
154
|
?required=${this.required}
|
|
153
155
|
?disabled=${this.disabled}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
1
2
|
import { UElement } from '../UElement.js';
|
|
2
3
|
export type OptionMarker = 'radio' | 'check';
|
|
3
4
|
/**
|
|
@@ -31,6 +32,7 @@ export declare class UOption extends UElement {
|
|
|
31
32
|
/** 옵션 고유값 */
|
|
32
33
|
value: string;
|
|
33
34
|
connectedCallback(): void;
|
|
35
|
+
protected updated(changed: PropertyValues): void;
|
|
34
36
|
render(): import('lit-html').TemplateResult<1>;
|
|
35
37
|
private renderMarker;
|
|
36
38
|
/** 라벨(기본 slot)의 텍스트 노드만 추출한다 — 엘리먼트 자식(예: 설명용 `<p>`)은 제외. */
|
|
@@ -21,6 +21,15 @@ var UOption = class UOption extends UElement {
|
|
|
21
21
|
this.setAttribute("role", "option");
|
|
22
22
|
this.setAttribute("tabindex", this.disabled ? "-1" : "0");
|
|
23
23
|
}
|
|
24
|
+
updated(changed) {
|
|
25
|
+
super.updated(changed);
|
|
26
|
+
const isRadio = this.marker === "radio";
|
|
27
|
+
this.setAttribute("role", isRadio ? "radio" : "option");
|
|
28
|
+
this.removeAttribute(isRadio ? "aria-selected" : "aria-checked");
|
|
29
|
+
this.setAttribute(isRadio ? "aria-checked" : "aria-selected", String(this.selected));
|
|
30
|
+
this.setAttribute("aria-disabled", String(this.disabled));
|
|
31
|
+
this.setAttribute("tabindex", this.disabled ? "-1" : "0");
|
|
32
|
+
}
|
|
24
33
|
render() {
|
|
25
34
|
return html`
|
|
26
35
|
${this.renderMarker()}
|
|
@@ -7,6 +7,7 @@ import { UOption } from "../option/UOption.js";
|
|
|
7
7
|
import { styles } from "./URadio.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
10
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
11
|
//#region src/components/radio/URadio.ts
|
|
11
12
|
var URadio = class URadio extends UFormControlElement {
|
|
12
13
|
constructor(..._args) {
|
|
@@ -91,7 +92,10 @@ var URadio = class URadio extends UFormControlElement {
|
|
|
91
92
|
.description=${this.description}
|
|
92
93
|
.validationMessage=${this.validationMessage}
|
|
93
94
|
>
|
|
94
|
-
<div class="container" part="container"
|
|
95
|
+
<div class="container" part="container"
|
|
96
|
+
role="radiogroup"
|
|
97
|
+
aria-label=${ifDefined(this.label)}
|
|
98
|
+
aria-description=${ifDefined(this.description)}>
|
|
95
99
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
96
100
|
</div>
|
|
97
101
|
</u-field>
|
|
@@ -7,6 +7,7 @@ import "../field/UField.js";
|
|
|
7
7
|
import { styles } from "./URating.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
10
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
11
|
//#region src/components/rating/URating.ts
|
|
11
12
|
var URating = class URating extends UFormControlElement {
|
|
12
13
|
constructor(..._args) {
|
|
@@ -110,13 +111,17 @@ var URating = class URating extends UFormControlElement {
|
|
|
110
111
|
.description=${this.description}
|
|
111
112
|
.validationMessage=${this.validationMessage}
|
|
112
113
|
>
|
|
113
|
-
<div class="symbols" part="container" role="radiogroup"
|
|
114
|
+
<div class="symbols" part="container" role="radiogroup"
|
|
115
|
+
aria-label=${ifDefined(this.label)}
|
|
116
|
+
aria-description=${ifDefined(this.description)}>
|
|
114
117
|
${Array.from({ length: this.max }, (_, i) => {
|
|
115
118
|
const score = i + 1;
|
|
116
119
|
const fill = Math.max(0, Math.min(1, value - score + 1));
|
|
117
120
|
return html`
|
|
118
121
|
<span class="symbol" part="symbol"
|
|
119
122
|
role="radio"
|
|
123
|
+
aria-checked=${score === Math.round(this.value || 0) ? "true" : "false"}
|
|
124
|
+
aria-disabled=${this.interactive ? "false" : "true"}
|
|
120
125
|
tabindex=${this.interactive ? "0" : "-1"}
|
|
121
126
|
data-score=${score}
|
|
122
127
|
@pointermove=${this.handleSymbolPointerMove}
|
|
@@ -48,6 +48,10 @@ export declare class USelect extends UFormControlElement<string | string[]> {
|
|
|
48
48
|
containerEl?: HTMLElement;
|
|
49
49
|
popoverEl?: UPopover;
|
|
50
50
|
private options;
|
|
51
|
+
/** aria-expanded 배선용 팝오버 열림 상태 */
|
|
52
|
+
private open;
|
|
53
|
+
/** combobox → listbox 연결용 고유 id (aria-controls) */
|
|
54
|
+
private readonly listboxId;
|
|
51
55
|
protected shouldValidate(changed: PropertyValues): boolean;
|
|
52
56
|
private get valueAsString();
|
|
53
57
|
private get valueAsArray();
|
|
@@ -10,6 +10,7 @@ import { UPopover } from "../popover/UPopover.js";
|
|
|
10
10
|
import { styles } from "./USelect.styles.js";
|
|
11
11
|
import { html } from "lit";
|
|
12
12
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
13
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
13
14
|
//#region src/components/select/USelect.ts
|
|
14
15
|
var USelect = class USelect extends UFormControlElement {
|
|
15
16
|
constructor(..._args) {
|
|
@@ -20,6 +21,8 @@ var USelect = class USelect extends UFormControlElement {
|
|
|
20
21
|
this.clearable = false;
|
|
21
22
|
this.loading = false;
|
|
22
23
|
this.options = [];
|
|
24
|
+
this.open = false;
|
|
25
|
+
this.listboxId = `u-select-listbox-${Math.random().toString(36).slice(2, 8)}`;
|
|
23
26
|
this.handleSlotChange = (e) => {
|
|
24
27
|
this.cleanup(this.options);
|
|
25
28
|
const slot = e.target;
|
|
@@ -158,7 +161,13 @@ var USelect = class USelect extends UFormControlElement {
|
|
|
158
161
|
${this.valueAsArray.length} / ${this.maxCount}
|
|
159
162
|
</span>
|
|
160
163
|
|
|
161
|
-
<div class="container" part="container" tabindex=${this.disabled ? "-1" : "0"}
|
|
164
|
+
<div class="container" part="container" tabindex=${this.disabled ? "-1" : "0"}
|
|
165
|
+
role="combobox"
|
|
166
|
+
aria-label=${ifDefined(this.label)}
|
|
167
|
+
aria-description=${ifDefined(this.description)}
|
|
168
|
+
aria-haspopup="listbox"
|
|
169
|
+
aria-expanded=${this.open}
|
|
170
|
+
aria-controls=${this.listboxId}>
|
|
162
171
|
<slot name="prefix"></slot>
|
|
163
172
|
<slot name="display">${this.renderContent()}</slot>
|
|
164
173
|
<slot name="suffix"></slot>
|
|
@@ -181,11 +190,14 @@ var USelect = class USelect extends UFormControlElement {
|
|
|
181
190
|
</u-field>
|
|
182
191
|
|
|
183
192
|
<u-popover part="popover"
|
|
193
|
+
id=${this.listboxId}
|
|
184
194
|
role="listbox"
|
|
185
195
|
scrollable
|
|
186
196
|
autofocus
|
|
187
197
|
for=".container"
|
|
188
198
|
trigger="click"
|
|
199
|
+
@show=${() => this.open = true}
|
|
200
|
+
@hide=${() => this.open = false}
|
|
189
201
|
strategy="fixed"
|
|
190
202
|
placement="bottom-start"
|
|
191
203
|
offset="1"
|
|
@@ -322,6 +334,7 @@ __decorate([property({ converter: { fromAttribute: (value) => {
|
|
|
322
334
|
__decorate([query(".container", true), __decorateMetadata("design:type", typeof HTMLElement === "undefined" ? Object : HTMLElement)], USelect.prototype, "containerEl", void 0);
|
|
323
335
|
__decorate([query("u-popover", true), __decorateMetadata("design:type", typeof UPopover === "undefined" ? Object : UPopover)], USelect.prototype, "popoverEl", void 0);
|
|
324
336
|
__decorate([state(), __decorateMetadata("design:type", Array)], USelect.prototype, "options", void 0);
|
|
337
|
+
__decorate([state(), __decorateMetadata("design:type", Boolean)], USelect.prototype, "open", void 0);
|
|
325
338
|
USelect = __decorate([customElement("u-select")], USelect);
|
|
326
339
|
//#endregion
|
|
327
340
|
export { USelect };
|
|
@@ -7,6 +7,7 @@ import "../field/UField.js";
|
|
|
7
7
|
import { styles } from "./USlider.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
10
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
11
|
//#region src/components/slider/USlider.ts
|
|
11
12
|
var USlider = class USlider extends UFormControlElement {
|
|
12
13
|
constructor(..._args) {
|
|
@@ -217,6 +218,13 @@ var USlider = class USlider extends UFormControlElement {
|
|
|
217
218
|
return html`
|
|
218
219
|
<div class="thumb" part=${isEnd ? "thumb-end" : "thumb"}
|
|
219
220
|
role="slider"
|
|
221
|
+
aria-label=${ifDefined(this.label)}
|
|
222
|
+
aria-valuenow=${val}
|
|
223
|
+
aria-valuemin=${this.min}
|
|
224
|
+
aria-valuemax=${this.max}
|
|
225
|
+
aria-valuetext=${this.formatValue(val)}
|
|
226
|
+
aria-orientation="horizontal"
|
|
227
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
220
228
|
?hidden=${isEnd && !this.range}
|
|
221
229
|
style="left: ${pct}%"
|
|
222
230
|
tabindex=${this.disabled || isEnd && !this.range ? -1 : 0}
|
|
@@ -56,6 +56,8 @@ var UTextarea = class UTextarea extends UFormControlElement {
|
|
|
56
56
|
<div class="container" part="container">
|
|
57
57
|
<textarea part="textarea"
|
|
58
58
|
scrollable
|
|
59
|
+
aria-label=${ifDefined(this.label)}
|
|
60
|
+
aria-description=${ifDefined(this.description)}
|
|
59
61
|
?required=${this.required}
|
|
60
62
|
?disabled=${this.disabled}
|
|
61
63
|
?readonly=${this.readonly}
|
package/dist/react/UAlert.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ import { type ShowEventDetail } from '../events/ShowEvent';
|
|
|
4
4
|
import { type HideEventDetail } from '../events/HideEvent';
|
|
5
5
|
|
|
6
6
|
export declare const UAlert: React.ForwardRefExoticComponent<
|
|
7
|
-
Partial<UAlertElement
|
|
7
|
+
Omit<Partial<UAlertElement>, keyof React.HTMLAttributes<UAlertElement>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UAlertElement>, 'onShow' | 'onHide'>
|
|
9
|
+
& {
|
|
8
10
|
onShow?: (event: CustomEvent<ShowEventDetail>) => void;
|
|
9
11
|
onHide?: (event: CustomEvent<HideEventDetail>) => void;
|
|
10
12
|
}
|
package/dist/react/UAvatar.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UAvatar as UAvatarElement } from '../components/avatar/UAvatar';
|
|
3
3
|
|
|
4
4
|
export declare const UAvatar: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UAvatarElement
|
|
5
|
+
Omit<Partial<UAvatarElement>, keyof React.HTMLAttributes<UAvatarElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UAvatarElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
package/dist/react/UBadge.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UBadge as UBadgeElement } from '../components/badge/UBadge';
|
|
3
3
|
|
|
4
4
|
export declare const UBadge: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UBadgeElement
|
|
5
|
+
Omit<Partial<UBadgeElement>, keyof React.HTMLAttributes<UBadgeElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UBadgeElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UBreadcrumb as UBreadcrumbElement } from '../components/breadcrumb/UBreadcrumb';
|
|
3
3
|
|
|
4
4
|
export declare const UBreadcrumb: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UBreadcrumbElement
|
|
5
|
+
Omit<Partial<UBreadcrumbElement>, keyof React.HTMLAttributes<UBreadcrumbElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UBreadcrumbElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
|
@@ -3,7 +3,9 @@ import { UBreadcrumbItem as UBreadcrumbItemElement } from '../components/breadcr
|
|
|
3
3
|
import { type NavigateEventDetail } from '../events/NavigateEvent';
|
|
4
4
|
|
|
5
5
|
export declare const UBreadcrumbItem: React.ForwardRefExoticComponent<
|
|
6
|
-
Partial<UBreadcrumbItemElement
|
|
6
|
+
Omit<Partial<UBreadcrumbItemElement>, keyof React.HTMLAttributes<UBreadcrumbItemElement>>
|
|
7
|
+
& Omit<React.HTMLAttributes<UBreadcrumbItemElement>, 'onNavigate'>
|
|
8
|
+
& {
|
|
7
9
|
onNavigate?: (event: CustomEvent<NavigateEventDetail>) => void;
|
|
8
10
|
}
|
|
9
11
|
>;
|
package/dist/react/UButton.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UButton as UButtonElement } from '../components/button/UButton';
|
|
3
3
|
|
|
4
4
|
export declare const UButton: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UButtonElement
|
|
5
|
+
Omit<Partial<UButtonElement>, keyof React.HTMLAttributes<UButtonElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UButtonElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UButtonGroup as UButtonGroupElement } from '../components/button-group/UButtonGroup';
|
|
3
3
|
|
|
4
4
|
export declare const UButtonGroup: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UButtonGroupElement
|
|
5
|
+
Omit<Partial<UButtonGroupElement>, keyof React.HTMLAttributes<UButtonGroupElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UButtonGroupElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
package/dist/react/UCard.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UCard as UCardElement } from '../components/card/UCard';
|
|
3
3
|
|
|
4
4
|
export declare const UCard: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UCardElement
|
|
5
|
+
Omit<Partial<UCardElement>, keyof React.HTMLAttributes<UCardElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UCardElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UCarousel as UCarouselElement } from '../components/carousel/UCarousel';
|
|
3
3
|
|
|
4
4
|
export declare const UCarousel: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UCarouselElement
|
|
5
|
+
Omit<Partial<UCarouselElement>, keyof React.HTMLAttributes<UCarouselElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UCarouselElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UCheckbox as UCheckboxElement } from '../components/checkbox/UCheckbox';
|
|
3
3
|
|
|
4
4
|
export declare const UCheckbox: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UCheckboxElement
|
|
5
|
+
Omit<Partial<UCheckboxElement>, keyof React.HTMLAttributes<UCheckboxElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UCheckboxElement>, 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onChange?: (event: CustomEvent) => void;
|
|
7
9
|
}
|
|
8
10
|
>;
|
package/dist/react/UChip.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ import { type PickEventDetail } from '../events/PickEvent';
|
|
|
4
4
|
import { type RemoveEventDetail } from '../events/RemoveEvent';
|
|
5
5
|
|
|
6
6
|
export declare const UChip: React.ForwardRefExoticComponent<
|
|
7
|
-
Partial<UChipElement
|
|
7
|
+
Omit<Partial<UChipElement>, keyof React.HTMLAttributes<UChipElement>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UChipElement>, 'onPick' | 'onRemove'>
|
|
9
|
+
& {
|
|
8
10
|
onPick?: (event: CustomEvent<PickEventDetail>) => void;
|
|
9
11
|
onRemove?: (event: CustomEvent<RemoveEventDetail>) => void;
|
|
10
12
|
}
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UCopyButton as UCopyButtonElement } from '../components/copy-button/UCopyButton';
|
|
3
3
|
|
|
4
4
|
export declare const UCopyButton: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UCopyButtonElement
|
|
5
|
+
Omit<Partial<UCopyButtonElement>, keyof React.HTMLAttributes<UCopyButtonElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UCopyButtonElement>, 'onCopy'>
|
|
7
|
+
& {
|
|
6
8
|
onCopy?: (event: CustomEvent) => void;
|
|
7
9
|
}
|
|
8
10
|
>;
|
package/dist/react/UDialog.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UDialog as UDialogElement } from '../components/dialog/UDialog';
|
|
3
3
|
|
|
4
4
|
export declare const UDialog: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UDialogElement
|
|
5
|
+
Omit<Partial<UDialogElement>, keyof React.HTMLAttributes<UDialogElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UDialogElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
package/dist/react/UDivider.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UDivider as UDividerElement } from '../components/divider/UDivider';
|
|
3
3
|
|
|
4
4
|
export declare const UDivider: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UDividerElement
|
|
5
|
+
Omit<Partial<UDividerElement>, keyof React.HTMLAttributes<UDividerElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UDividerElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
package/dist/react/UDrawer.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UDrawer as UDrawerElement } from '../components/drawer/UDrawer';
|
|
3
3
|
|
|
4
4
|
export declare const UDrawer: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UDrawerElement
|
|
5
|
+
Omit<Partial<UDrawerElement>, keyof React.HTMLAttributes<UDrawerElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UDrawerElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
package/dist/react/UField.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UField as UFieldElement } from '../components/field/UField';
|
|
3
3
|
|
|
4
4
|
export declare const UField: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UFieldElement
|
|
5
|
+
Omit<Partial<UFieldElement>, keyof React.HTMLAttributes<UFieldElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UFieldElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
package/dist/react/UForm.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UForm as UFormElement } from '../components/form/UForm';
|
|
3
3
|
|
|
4
4
|
export declare const UForm: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UFormElement
|
|
5
|
+
Omit<Partial<UFormElement>, keyof React.HTMLAttributes<UFormElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UFormElement>, 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onChange?: (event: CustomEvent) => void;
|
|
7
9
|
}
|
|
8
10
|
>;
|
package/dist/react/UIcon.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UIcon as UIconElement } from '../components/icon/UIcon';
|
|
3
3
|
|
|
4
4
|
export declare const UIcon: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UIconElement
|
|
5
|
+
Omit<Partial<UIconElement>, keyof React.HTMLAttributes<UIconElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UIconElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UIconButton as UIconButtonElement } from '../components/icon-button/UIconButton';
|
|
3
3
|
|
|
4
4
|
export declare const UIconButton: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UIconButtonElement
|
|
5
|
+
Omit<Partial<UIconButtonElement>, keyof React.HTMLAttributes<UIconButtonElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UIconButtonElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
package/dist/react/UInput.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UInput as UInputElement } from '../components/input/UInput';
|
|
3
3
|
|
|
4
4
|
export declare const UInput: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UInputElement
|
|
5
|
+
Omit<Partial<UInputElement>, keyof React.HTMLAttributes<UInputElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UInputElement>, 'onInput' | 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onInput?: (event: CustomEvent) => void;
|
|
7
9
|
onChange?: (event: CustomEvent) => void;
|
|
8
10
|
}
|
package/dist/react/UMenu.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UMenu as UMenuElement } from '../components/menu/UMenu';
|
|
3
3
|
|
|
4
4
|
export declare const UMenu: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UMenuElement
|
|
5
|
+
Omit<Partial<UMenuElement>, keyof React.HTMLAttributes<UMenuElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UMenuElement>, 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onChange?: (event: CustomEvent) => void;
|
|
7
9
|
}
|
|
8
10
|
>;
|
|
@@ -3,7 +3,9 @@ import { UMenuItem as UMenuItemElement } from '../components/menu-item/UMenuItem
|
|
|
3
3
|
import { type PickEventDetail } from '../events/PickEvent';
|
|
4
4
|
|
|
5
5
|
export declare const UMenuItem: React.ForwardRefExoticComponent<
|
|
6
|
-
Partial<UMenuItemElement
|
|
6
|
+
Omit<Partial<UMenuItemElement>, keyof React.HTMLAttributes<UMenuItemElement>>
|
|
7
|
+
& Omit<React.HTMLAttributes<UMenuItemElement>, 'onPick'>
|
|
8
|
+
& {
|
|
7
9
|
onPick?: (event: CustomEvent<PickEventDetail>) => void;
|
|
8
10
|
}
|
|
9
11
|
>;
|
package/dist/react/UOption.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UOption as UOptionElement } from '../components/option/UOption';
|
|
3
3
|
|
|
4
4
|
export declare const UOption: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UOptionElement
|
|
5
|
+
Omit<Partial<UOptionElement>, keyof React.HTMLAttributes<UOptionElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UOptionElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
package/dist/react/UPanel.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UPanel as UPanelElement } from '../components/panel/UPanel';
|
|
3
3
|
|
|
4
4
|
export declare const UPanel: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UPanelElement
|
|
5
|
+
Omit<Partial<UPanelElement>, keyof React.HTMLAttributes<UPanelElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UPanelElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
package/dist/react/UPopover.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UPopover as UPopoverElement } from '../components/popover/UPopover';
|
|
3
3
|
|
|
4
4
|
export declare const UPopover: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UPopoverElement
|
|
5
|
+
Omit<Partial<UPopoverElement>, keyof React.HTMLAttributes<UPopoverElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UPopoverElement>, 'onShow' | 'onHide'>
|
|
7
|
+
& {
|
|
6
8
|
onShow?: (event: CustomEvent) => void;
|
|
7
9
|
onHide?: (event: CustomEvent) => void;
|
|
8
10
|
}
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UProgressBar as UProgressBarElement } from '../components/progress-bar/UProgressBar';
|
|
3
3
|
|
|
4
4
|
export declare const UProgressBar: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UProgressBarElement
|
|
5
|
+
Omit<Partial<UProgressBarElement>, keyof React.HTMLAttributes<UProgressBarElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UProgressBarElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UProgressRing as UProgressRingElement } from '../components/progress-ring/UProgressRing';
|
|
3
3
|
|
|
4
4
|
export declare const UProgressRing: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UProgressRingElement
|
|
5
|
+
Omit<Partial<UProgressRingElement>, keyof React.HTMLAttributes<UProgressRingElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UProgressRingElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
package/dist/react/URadio.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { URadio as URadioElement } from '../components/radio/URadio';
|
|
3
3
|
|
|
4
4
|
export declare const URadio: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<URadioElement
|
|
5
|
+
Omit<Partial<URadioElement>, keyof React.HTMLAttributes<URadioElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<URadioElement>, 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onChange?: (event: CustomEvent) => void;
|
|
7
9
|
}
|
|
8
10
|
>;
|
package/dist/react/URating.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { URating as URatingElement } from '../components/rating/URating';
|
|
3
3
|
|
|
4
4
|
export declare const URating: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<URatingElement
|
|
5
|
+
Omit<Partial<URatingElement>, keyof React.HTMLAttributes<URatingElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<URatingElement>, 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onChange?: (event: CustomEvent) => void;
|
|
7
9
|
}
|
|
8
10
|
>;
|
package/dist/react/USelect.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { USelect as USelectElement } from '../components/select/USelect';
|
|
3
3
|
|
|
4
4
|
export declare const USelect: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<USelectElement
|
|
5
|
+
Omit<Partial<USelectElement>, keyof React.HTMLAttributes<USelectElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<USelectElement>, 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onChange?: (event: CustomEvent) => void;
|
|
7
9
|
}
|
|
8
10
|
>;
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { USkeleton as USkeletonElement } from '../components/skeleton/USkeleton';
|
|
3
3
|
|
|
4
4
|
export declare const USkeleton: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<USkeletonElement
|
|
5
|
+
Omit<Partial<USkeletonElement>, keyof React.HTMLAttributes<USkeletonElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<USkeletonElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
package/dist/react/USlider.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { USlider as USliderElement } from '../components/slider/USlider';
|
|
3
3
|
|
|
4
4
|
export declare const USlider: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<USliderElement
|
|
5
|
+
Omit<Partial<USliderElement>, keyof React.HTMLAttributes<USliderElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<USliderElement>, 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onChange?: (event: CustomEvent) => void;
|
|
7
9
|
}
|
|
8
10
|
>;
|
package/dist/react/USpinner.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { USpinner as USpinnerElement } from '../components/spinner/USpinner';
|
|
3
3
|
|
|
4
4
|
export declare const USpinner: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<USpinnerElement
|
|
5
|
+
Omit<Partial<USpinnerElement>, keyof React.HTMLAttributes<USpinnerElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<USpinnerElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
|
@@ -3,7 +3,9 @@ import { USplitPanel as USplitPanelElement } from '../components/split-panel/USp
|
|
|
3
3
|
import { type ShiftEventDetail } from '../events/ShiftEvent';
|
|
4
4
|
|
|
5
5
|
export declare const USplitPanel: React.ForwardRefExoticComponent<
|
|
6
|
-
Partial<USplitPanelElement
|
|
6
|
+
Omit<Partial<USplitPanelElement>, keyof React.HTMLAttributes<USplitPanelElement>>
|
|
7
|
+
& Omit<React.HTMLAttributes<USplitPanelElement>, 'onShiftStart' | 'onShift' | 'onShiftEnd'>
|
|
8
|
+
& {
|
|
7
9
|
onShiftStart?: (event: CustomEvent<ShiftEventDetail>) => void;
|
|
8
10
|
onShift?: (event: CustomEvent<ShiftEventDetail>) => void;
|
|
9
11
|
onShiftEnd?: (event: CustomEvent<ShiftEventDetail>) => void;
|
package/dist/react/USwitch.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { USwitch as USwitchElement } from '../components/switch/USwitch';
|
|
3
3
|
|
|
4
4
|
export declare const USwitch: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<USwitchElement
|
|
5
|
+
Omit<Partial<USwitchElement>, keyof React.HTMLAttributes<USwitchElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<USwitchElement>, 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onChange?: (event: CustomEvent) => void;
|
|
7
9
|
}
|
|
8
10
|
>;
|
package/dist/react/UTab.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ import { UTab as UTabElement } from '../components/tab/UTab';
|
|
|
3
3
|
import { type RemoveEventDetail } from '../events/RemoveEvent';
|
|
4
4
|
|
|
5
5
|
export declare const UTab: React.ForwardRefExoticComponent<
|
|
6
|
-
Partial<UTabElement
|
|
6
|
+
Omit<Partial<UTabElement>, keyof React.HTMLAttributes<UTabElement>>
|
|
7
|
+
& Omit<React.HTMLAttributes<UTabElement>, 'onRemove'>
|
|
8
|
+
& {
|
|
7
9
|
onRemove?: (event: CustomEvent<RemoveEventDetail>) => void;
|
|
8
10
|
}
|
|
9
11
|
>;
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UTabPanel as UTabPanelElement } from '../components/tab-panel/UTabPanel';
|
|
3
3
|
|
|
4
4
|
export declare const UTabPanel: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UTabPanelElement
|
|
5
|
+
Omit<Partial<UTabPanelElement>, keyof React.HTMLAttributes<UTabPanelElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UTabPanelElement>, 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onChange?: (event: CustomEvent) => void;
|
|
7
9
|
}
|
|
8
10
|
>;
|
package/dist/react/UTag.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UTag as UTagElement } from '../components/tag/UTag';
|
|
3
3
|
|
|
4
4
|
export declare const UTag: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UTagElement
|
|
5
|
+
Omit<Partial<UTagElement>, keyof React.HTMLAttributes<UTagElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UTagElement>, never>
|
|
7
|
+
& {
|
|
6
8
|
}
|
|
7
9
|
>;
|
|
8
10
|
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UTextarea as UTextareaElement } from '../components/textarea/UTextarea';
|
|
3
3
|
|
|
4
4
|
export declare const UTextarea: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UTextareaElement
|
|
5
|
+
Omit<Partial<UTextareaElement>, keyof React.HTMLAttributes<UTextareaElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UTextareaElement>, 'onInput' | 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onInput?: (event: CustomEvent) => void;
|
|
7
9
|
onChange?: (event: CustomEvent) => void;
|
|
8
10
|
}
|
package/dist/react/UTooltip.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UTooltip as UTooltipElement } from '../components/tooltip/UTooltip';
|
|
3
3
|
|
|
4
4
|
export declare const UTooltip: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UTooltipElement
|
|
5
|
+
Omit<Partial<UTooltipElement>, keyof React.HTMLAttributes<UTooltipElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UTooltipElement>, 'onShow' | 'onHide'>
|
|
7
|
+
& {
|
|
6
8
|
onShow?: (event: CustomEvent) => void;
|
|
7
9
|
onHide?: (event: CustomEvent) => void;
|
|
8
10
|
}
|
package/dist/react/UTree.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { UTree as UTreeElement } from '../components/tree/UTree';
|
|
3
3
|
|
|
4
4
|
export declare const UTree: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<UTreeElement
|
|
5
|
+
Omit<Partial<UTreeElement>, keyof React.HTMLAttributes<UTreeElement>>
|
|
6
|
+
& Omit<React.HTMLAttributes<UTreeElement>, 'onChange'>
|
|
7
|
+
& {
|
|
6
8
|
onChange?: (event: CustomEvent) => void;
|
|
7
9
|
}
|
|
8
10
|
>;
|
|
@@ -6,7 +6,9 @@ import { type PickEventDetail } from '../events/PickEvent';
|
|
|
6
6
|
import { type CheckEventDetail } from '../events/CheckEvent';
|
|
7
7
|
|
|
8
8
|
export declare const UTreeItem: React.ForwardRefExoticComponent<
|
|
9
|
-
Partial<UTreeItemElement
|
|
9
|
+
Omit<Partial<UTreeItemElement>, keyof React.HTMLAttributes<UTreeItemElement>>
|
|
10
|
+
& Omit<React.HTMLAttributes<UTreeItemElement>, 'onExpand' | 'onCollapse' | 'onPick' | 'onCheck'>
|
|
11
|
+
& {
|
|
10
12
|
onExpand?: (event: CustomEvent<ExpandEventDetail>) => void;
|
|
11
13
|
onCollapse?: (event: CustomEvent<CollapseEventDetail>) => void;
|
|
12
14
|
onPick?: (event: CustomEvent<PickEventDetail>) => void;
|
package/package.json
CHANGED
|
@@ -190,10 +190,21 @@ export const ${className} = createComponent({
|
|
|
190
190
|
return ` ${e.reactName}?: (event: ${type}) => void;`;
|
|
191
191
|
}).join('\n') + '\n'
|
|
192
192
|
: '';
|
|
193
|
+
// 래퍼 이벤트 prop(onChange 등)은 React.HTMLAttributes 의 동명 핸들러와 교집합되면
|
|
194
|
+
// 어떤 시그니처도 대입 불가가 된다. HTMLAttributes 쪽에서 해당 키를 제거해 CustomEvent
|
|
195
|
+
// 시그니처만 남긴다. 이벤트가 없으면 Omit<…, never> 로 HTMLAttributes 원형 유지.
|
|
196
|
+
const eventKeyUnion = events.length > 0
|
|
197
|
+
? events.map(e => `'${e.reactName}'`).join(' | ')
|
|
198
|
+
: 'never';
|
|
199
|
+
// Partial<Element> 은 DOM 프로퍼티(children: HTMLCollection 등)를 포함해 React 의 JSX
|
|
200
|
+
// children/이벤트/className 등과 충돌한다. keyof React.HTMLAttributes 를 제거해 컴포넌트
|
|
201
|
+
// 고유 prop만 남기고, React 친화 타입(children: ReactNode 포함)은 HTMLAttributes 가 제공한다.
|
|
193
202
|
const dts = `${dtsImports.join('\n')}
|
|
194
203
|
|
|
195
204
|
export declare const ${className}: React.ForwardRefExoticComponent<
|
|
196
|
-
Partial<${className}Element
|
|
205
|
+
Omit<Partial<${className}Element>, keyof React.HTMLAttributes<${className}Element>>
|
|
206
|
+
& Omit<React.HTMLAttributes<${className}Element>, ${eventKeyUnion}>
|
|
207
|
+
& {
|
|
197
208
|
${eventTypes} }
|
|
198
209
|
>;
|
|
199
210
|
|