@iyulab/components 1.58.0 → 2.0.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 +171 -0
- package/README.md +6 -4
- package/dist/_virtual/_glob-assets_raw/dark.css.e8ac080d.js +1 -1
- package/dist/_virtual/_glob-assets_raw/light.css.637cb2f8.js +1 -1
- package/dist/assets/locales/ar.json.js +5 -1
- package/dist/assets/locales/de.json.js +5 -1
- package/dist/assets/locales/en.json.js +5 -1
- package/dist/assets/locales/es.json.js +5 -1
- package/dist/assets/locales/fr.json.js +5 -1
- package/dist/assets/locales/id.json.js +5 -1
- package/dist/assets/locales/ja.json.js +5 -1
- package/dist/assets/locales/ko.json.js +5 -1
- package/dist/assets/locales/pt-BR.json.js +5 -1
- package/dist/assets/locales/ru.json.js +5 -1
- package/dist/assets/locales/th.json.js +5 -1
- package/dist/assets/locales/vi.json.js +5 -1
- package/dist/assets/locales/zh-CN.json.js +5 -1
- package/dist/assets/locales/zh-TW.json.js +5 -1
- package/dist/components/UElement.styles.js +2 -2
- package/dist/components/alert/UAlert.d.ts +12 -7
- package/dist/components/alert/UAlert.js +3 -3
- package/dist/components/alert/UAlert.styles.js +6 -23
- package/dist/components/badge/UBadge.d.ts +5 -5
- package/dist/components/badge/UBadge.js +3 -3
- package/dist/components/badge/UBadge.styles.js +4 -4
- package/dist/components/breadcrumb-item/UBreadcrumbItem.styles.js +1 -1
- package/dist/components/button/UButton.d.ts +32 -16
- package/dist/components/button/UButton.js +38 -5
- package/dist/components/button/UButton.styles.js +67 -50
- package/dist/components/button/forwarded-aria.d.ts +6 -0
- package/dist/components/button/forwarded-aria.js +15 -0
- package/dist/components/button-group/UButtonGroup.d.ts +4 -4
- package/dist/components/button-group/UButtonGroup.js +8 -8
- package/dist/components/button-group/UButtonGroup.styles.js +2 -2
- package/dist/components/calendar/UCalendar.styles.js +4 -3
- package/dist/components/calendar/date-text-controller.d.ts +5 -0
- package/dist/components/calendar/date-text-controller.js +7 -0
- package/dist/components/calendar/picker.styles.js +7 -2
- package/dist/components/card/UCard.d.ts +4 -3
- package/dist/components/card/UCard.js +3 -3
- package/dist/components/card/UCard.styles.js +2 -1
- package/dist/components/carousel/UCarousel.js +2 -2
- package/dist/components/carousel/UCarousel.styles.js +17 -6
- package/dist/components/checkbox/UCheckbox.d.ts +8 -9
- package/dist/components/checkbox/UCheckbox.js +3 -3
- package/dist/components/checkbox/UCheckbox.styles.js +22 -18
- package/dist/components/chip/UChip.d.ts +2 -2
- package/dist/components/chip/UChip.js +4 -4
- package/dist/components/copy-button/UCopyButton.d.ts +2 -2
- package/dist/components/copy-button/UCopyButton.js +4 -4
- package/dist/components/date-picker/UDatePicker.d.ts +3 -0
- package/dist/components/date-picker/UDatePicker.js +9 -4
- package/dist/components/date-picker/UDatePicker.styles.js +13 -2
- package/dist/components/date-range-picker/UDateRangePicker.d.ts +3 -0
- package/dist/components/date-range-picker/UDateRangePicker.js +8 -3
- package/dist/components/date-range-picker/UDateRangePicker.styles.js +13 -3
- package/dist/components/dialog/UDialog.js +1 -1
- package/dist/components/divider/UDivider.d.ts +3 -3
- package/dist/components/divider/UDivider.js +2 -2
- package/dist/components/divider/UDivider.styles.js +5 -5
- package/dist/components/drawer/UDrawer.js +1 -1
- package/dist/components/expander/UExpander.styles.js +2 -2
- package/dist/components/file-input/UFileInput.styles.js +5 -2
- package/dist/components/icon-button/UIconButton.d.ts +4 -3
- package/dist/components/icon-button/UIconButton.js +16 -6
- package/dist/components/icon-button/UIconButton.styles.js +2 -2
- package/dist/components/input/UInput.d.ts +12 -5
- package/dist/components/input/UInput.js +7 -4
- package/dist/components/input/UInput.styles.js +60 -30
- package/dist/components/menu/UMenu.d.ts +5 -4
- package/dist/components/menu/UMenu.js +3 -3
- package/dist/components/menu/UMenu.styles.js +1 -1
- package/dist/components/menu-item/UMenuItem.styles.js +1 -1
- package/dist/components/option/UOption.d.ts +1 -0
- package/dist/components/option/UOption.js +6 -3
- package/dist/components/option/UOption.styles.js +1 -1
- package/dist/components/progress-bar/UProgressBar.styles.js +11 -0
- package/dist/components/radio/URadio.d.ts +27 -6
- package/dist/components/radio/URadio.js +48 -12
- package/dist/components/radio/URadio.styles.js +47 -13
- package/dist/components/rating/URating.styles.js +5 -1
- package/dist/components/select/USelect.d.ts +9 -2
- package/dist/components/select/USelect.js +7 -2
- package/dist/components/select/USelect.styles.js +55 -26
- package/dist/components/slider/USlider.styles.js +4 -4
- package/dist/components/spinner/USpinner.styles.js +2 -0
- package/dist/components/split-panel/USplitPanel.styles.js +2 -1
- package/dist/components/steps/USteps.d.ts +57 -0
- package/dist/components/steps/USteps.js +58 -0
- package/dist/components/steps/USteps.styles.d.ts +1 -0
- package/dist/components/steps/USteps.styles.js +110 -0
- package/dist/components/switch/USwitch.styles.js +5 -3
- package/dist/components/tab/UTab.js +2 -2
- package/dist/components/tab/UTab.styles.js +1 -1
- package/dist/components/tab-panel/UTabPanel.d.ts +11 -2
- package/dist/components/tab-panel/UTabPanel.js +33 -5
- package/dist/components/tab-panel/UTabPanel.styles.js +29 -29
- package/dist/components/tag/UTag.d.ts +14 -6
- package/dist/components/tag/UTag.js +8 -3
- package/dist/components/tag/UTag.styles.js +33 -26
- package/dist/components/textarea/UTextarea.d.ts +9 -3
- package/dist/components/textarea/UTextarea.js +7 -2
- package/dist/components/textarea/UTextarea.styles.js +41 -22
- package/dist/components/tree-item/UTreeItem.styles.js +7 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/plugins/vite-plugin-react-wrapper.js +14 -5
- package/dist/react/UAlert.d.ts +4 -2
- package/dist/react/UAvatar.d.ts +4 -2
- package/dist/react/UBadge.d.ts +4 -2
- package/dist/react/UBreadcrumb.d.ts +4 -2
- package/dist/react/UBreadcrumbItem.d.ts +4 -2
- package/dist/react/UButton.d.ts +4 -2
- package/dist/react/UButtonGroup.d.ts +4 -2
- package/dist/react/UCard.d.ts +4 -2
- package/dist/react/UCarousel.d.ts +4 -2
- package/dist/react/UCheckbox.d.ts +4 -2
- package/dist/react/UChip.d.ts +4 -2
- package/dist/react/UCopyButton.d.ts +4 -2
- package/dist/react/UDatePicker.d.ts +4 -2
- package/dist/react/UDateRangePicker.d.ts +4 -2
- package/dist/react/UDialog.d.ts +4 -2
- package/dist/react/UDivider.d.ts +4 -2
- package/dist/react/UDrawer.d.ts +4 -2
- package/dist/react/UExpander.d.ts +4 -2
- package/dist/react/UField.d.ts +4 -2
- package/dist/react/UFileInput.d.ts +4 -2
- package/dist/react/UForm.d.ts +4 -2
- package/dist/react/UIcon.d.ts +4 -2
- package/dist/react/UIconButton.d.ts +4 -2
- package/dist/react/UInput.d.ts +4 -2
- package/dist/react/UMenu.d.ts +4 -2
- package/dist/react/UMenuItem.d.ts +4 -2
- package/dist/react/UOption.d.ts +4 -2
- package/dist/react/UPanel.d.ts +4 -2
- package/dist/react/UPopover.d.ts +4 -2
- package/dist/react/UProgressBar.d.ts +4 -2
- package/dist/react/UProgressRing.d.ts +4 -2
- package/dist/react/URadio.d.ts +4 -2
- package/dist/react/URating.d.ts +4 -2
- package/dist/react/USelect.d.ts +4 -2
- package/dist/react/USkeleton.d.ts +4 -2
- package/dist/react/USlider.d.ts +4 -2
- package/dist/react/USpinner.d.ts +4 -2
- package/dist/react/USplitPanel.d.ts +4 -2
- package/dist/react/USteps.d.ts +14 -0
- package/dist/react/USteps.js +10 -0
- package/dist/react/USwitch.d.ts +4 -2
- package/dist/react/UTab.d.ts +4 -2
- package/dist/react/UTabPanel.d.ts +4 -2
- package/dist/react/UTag.d.ts +4 -2
- package/dist/react/UText.d.ts +4 -2
- package/dist/react/UTextarea.d.ts +4 -2
- package/dist/react/UTooltip.d.ts +4 -2
- package/dist/react/UTree.d.ts +4 -2
- package/dist/react/UTreeItem.d.ts +4 -2
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -0
- package/dist/styles/dark.css +42 -0
- package/dist/styles/light.css +44 -0
- package/dist/utilities/Dialog.d.ts +2 -2
- package/dist/utilities/Dialog.js +3 -3
- package/dist/utilities/Locale.d.ts +1 -1
- package/dist/utilities/Toast.d.ts +2 -2
- package/dist/utilities/Toast.js +1 -1
- package/dist/utilities/icons.d.ts +12 -3
- package/dist/utilities/icons.js +24 -6
- package/package.json +1 -1
- package/skills/iyulab-components/SKILL.md +3 -3
- package/skills/iyulab-components/references/components/alert.md +5 -5
- package/skills/iyulab-components/references/components/badge.md +3 -3
- package/skills/iyulab-components/references/components/button-group.md +3 -3
- package/skills/iyulab-components/references/components/button.md +34 -19
- package/skills/iyulab-components/references/components/card.md +3 -3
- package/skills/iyulab-components/references/components/checkbox.md +5 -5
- package/skills/iyulab-components/references/components/chip.md +2 -2
- package/skills/iyulab-components/references/components/copy-button.md +1 -1
- package/skills/iyulab-components/references/components/date-picker.md +1 -0
- package/skills/iyulab-components/references/components/date-range-picker.md +1 -0
- package/skills/iyulab-components/references/components/dialog.md +2 -2
- package/skills/iyulab-components/references/components/divider.md +2 -2
- package/skills/iyulab-components/references/components/drawer.md +1 -1
- package/skills/iyulab-components/references/components/field.md +1 -1
- package/skills/iyulab-components/references/components/icon-button.md +8 -2
- package/skills/iyulab-components/references/components/input.md +4 -2
- package/skills/iyulab-components/references/components/menu.md +1 -1
- package/skills/iyulab-components/references/components/radio.md +16 -4
- package/skills/iyulab-components/references/components/select.md +2 -1
- package/skills/iyulab-components/references/components/steps.md +66 -0
- package/skills/iyulab-components/references/components/tab-panel.md +10 -3
- package/skills/iyulab-components/references/components/tag.md +11 -7
- package/skills/iyulab-components/references/components/textarea.md +2 -1
- package/skills/iyulab-components/references/usage.md +1 -1
- package/skills/iyulab-components/references/utilities/dialog.md +2 -2
- package/skills/iyulab-components/references/utilities/icons.md +2 -2
- package/skills/iyulab-components/references/utilities/theme.md +9 -5
- package/skills/iyulab-components/references/utilities/toast.md +2 -2
|
@@ -7,16 +7,18 @@ var styles = css`
|
|
|
7
7
|
display: var(--u-textarea-display, inline-block);
|
|
8
8
|
width: var(--u-textarea-width, auto);
|
|
9
9
|
color: var(--u-txt-color, #212121);
|
|
10
|
-
font-size: inherit;
|
|
11
10
|
font-family: var(--u-font-base);
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
/* ===== 컨테이너 (outlined 기본) ===== */
|
|
15
14
|
.container {
|
|
16
15
|
display: flex;
|
|
17
|
-
padding: 0.3em 0.6em;
|
|
16
|
+
padding: var(--u-field-padding-block, 0.3em) var(--u-field-padding-inline, 0.6em);
|
|
17
|
+
/* 호스트 하한(--u-target-size, 미설정 = 0) — 글자와 독립된 터치 하한. */
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
min-height: var(--u-target-size, 0px);
|
|
18
20
|
border: 1px solid var(--u-input-border-color, #E0E0E0);
|
|
19
|
-
border-radius: 0.25em;
|
|
21
|
+
border-radius: var(--u-field-radius, 0.25em);
|
|
20
22
|
background-color: var(--u-input-bg-color, #FFFFFF);
|
|
21
23
|
transition: border-color var(--u-duration-normal, 220ms) var(--u-ease-standard, cubic-bezier(0.2, 0, 0, 1)), box-shadow var(--u-duration-normal, 220ms) var(--u-ease-standard, cubic-bezier(0.2, 0, 0, 1)), background-color var(--u-duration-normal, 220ms) var(--u-ease-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
22
24
|
}
|
|
@@ -35,34 +37,34 @@ var styles = css`
|
|
|
35
37
|
box-shadow: 0 0 0 1px var(--u-input-border-color-invalid, #C62828);
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
/* =====
|
|
39
|
-
:host([
|
|
40
|
+
/* ===== Appearance: soft (중립 틴트 면) ===== */
|
|
41
|
+
:host([appearance="soft"]) .container {
|
|
40
42
|
border-color: transparent;
|
|
41
43
|
background-color: var(--u-neutral-200, #EEEEEE);
|
|
42
|
-
border-radius: 0.25em 0.25em 0 0;
|
|
44
|
+
border-radius: var(--u-field-radius, 0.25em) var(--u-field-radius, 0.25em) 0 0;
|
|
43
45
|
border-bottom: 2px solid var(--u-input-border-color, #E0E0E0);
|
|
44
46
|
}
|
|
45
|
-
:host([
|
|
46
|
-
:host([
|
|
47
|
+
:host([appearance="soft"][readonly]) .container,
|
|
48
|
+
:host([appearance="soft"]:disabled) .container {
|
|
47
49
|
background-color: var(--u-bg-color-disabled, #FAFAFA);
|
|
48
50
|
border-bottom-color: var(--u-border-color-weak, #EEEEEE);
|
|
49
51
|
}
|
|
50
|
-
:host([
|
|
52
|
+
:host([appearance="soft"]:not([readonly]):not(:disabled)) .container:hover {
|
|
51
53
|
box-shadow: none;
|
|
52
54
|
background-color: var(--u-neutral-300, #E0E0E0);
|
|
53
55
|
border-bottom-color: var(--u-input-border-color-hover, #BDBDBD);
|
|
54
56
|
}
|
|
55
|
-
:host([
|
|
57
|
+
:host([appearance="soft"]:not([readonly]):not(:disabled)) .container:focus-within {
|
|
56
58
|
box-shadow: none;
|
|
57
59
|
border-bottom-color: var(--u-input-border-color-focus, #1565C0);
|
|
58
60
|
}
|
|
59
|
-
:host([
|
|
61
|
+
:host([appearance="soft"][invalid]:not([readonly]):not(:disabled)) .container {
|
|
60
62
|
box-shadow: none;
|
|
61
63
|
border-bottom-color: var(--u-input-border-color-invalid, #C62828);
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
/* =====
|
|
65
|
-
:host([
|
|
66
|
+
/* ===== Appearance: underlined ===== */
|
|
67
|
+
:host([appearance="underlined"]) .container {
|
|
66
68
|
border: none;
|
|
67
69
|
border-radius: var(--u-radius-none, 0);
|
|
68
70
|
background-color: transparent;
|
|
@@ -70,37 +72,43 @@ var styles = css`
|
|
|
70
72
|
padding-right: 0;
|
|
71
73
|
border-bottom: 1px solid var(--u-input-border-color, #E0E0E0);
|
|
72
74
|
}
|
|
73
|
-
:host([
|
|
74
|
-
:host([
|
|
75
|
+
:host([appearance="underlined"][readonly]) .container,
|
|
76
|
+
:host([appearance="underlined"]:disabled) .container {
|
|
75
77
|
background-color: transparent;
|
|
76
78
|
border-bottom-color: var(--u-border-color-weak, #EEEEEE);
|
|
77
79
|
}
|
|
78
|
-
:host([
|
|
80
|
+
:host([appearance="underlined"]:not([readonly]):not(:disabled)) .container:hover {
|
|
79
81
|
box-shadow: none;
|
|
80
82
|
border-bottom-color: var(--u-input-border-color-hover, #BDBDBD);
|
|
81
83
|
}
|
|
82
|
-
:host([
|
|
84
|
+
:host([appearance="underlined"]:not([readonly]):not(:disabled)) .container:focus-within {
|
|
83
85
|
box-shadow: none;
|
|
84
86
|
border-bottom-color: var(--u-input-border-color-focus, #1565C0);
|
|
85
87
|
border-bottom-width: 2px;
|
|
86
88
|
}
|
|
87
|
-
:host([
|
|
89
|
+
:host([appearance="underlined"][invalid]:not([readonly]):not(:disabled)) .container {
|
|
88
90
|
box-shadow: none;
|
|
89
91
|
border-bottom-color: var(--u-input-border-color-invalid, #C62828);
|
|
90
92
|
}
|
|
91
93
|
|
|
92
|
-
/* =====
|
|
93
|
-
:host([
|
|
94
|
+
/* ===== Appearance: plain (외형 없음) ===== */
|
|
95
|
+
:host([appearance="plain"]) .container {
|
|
94
96
|
border: none;
|
|
95
97
|
border-radius: var(--u-radius-none, 0);
|
|
96
98
|
background-color: transparent;
|
|
97
99
|
padding: 0;
|
|
98
100
|
box-shadow: none;
|
|
99
101
|
}
|
|
100
|
-
:host([
|
|
101
|
-
:host([
|
|
102
|
+
:host([appearance="plain"]:not([readonly]):not(:disabled)) .container:hover,
|
|
103
|
+
:host([appearance="plain"]:not([readonly]):not(:disabled)) .container:focus-within {
|
|
102
104
|
box-shadow: none;
|
|
103
105
|
}
|
|
106
|
+
/* 외형이 없어도 포커스는 보여야 한다(WCAG 2.4.7) — 쉬는 동안은 아무것도 그리지 않고, 포커스가
|
|
107
|
+
들어오면 링을 그린다. 깜박이는 캐럿만으로는 «어디에 포커스가 있는가» 를 알리기 어렵다. */
|
|
108
|
+
:host([appearance="plain"]:not(:disabled)) .container:focus-within {
|
|
109
|
+
outline: 2px solid var(--u-focus-ring-color, #1565C0);
|
|
110
|
+
outline-offset: 2px;
|
|
111
|
+
}
|
|
104
112
|
|
|
105
113
|
/* ===== Textarea 요소 ===== */
|
|
106
114
|
textarea {
|
|
@@ -162,6 +170,17 @@ var styles = css`
|
|
|
162
170
|
font-size: 0.75em;
|
|
163
171
|
line-height: 1.2;
|
|
164
172
|
}
|
|
173
|
+
|
|
174
|
+
/* === Size — 버튼과 같은 세 단. md 는 주변 글자 크기를 상속하지 않는다(버튼과 높이가 갈렸다). === */
|
|
175
|
+
:host {
|
|
176
|
+
font-size: var(--u-density, 14px);
|
|
177
|
+
}
|
|
178
|
+
:host([size="sm"]) {
|
|
179
|
+
font-size: 12px;
|
|
180
|
+
}
|
|
181
|
+
:host([size="lg"]) {
|
|
182
|
+
font-size: 16px;
|
|
183
|
+
}
|
|
165
184
|
`;
|
|
166
185
|
//#endregion
|
|
167
186
|
export { styles };
|
|
@@ -26,7 +26,7 @@ var styles = css`
|
|
|
26
26
|
padding-left: calc(
|
|
27
27
|
var(--tree-indent-size) * var(--tree-item-depth)
|
|
28
28
|
+ var(--tree-indent-guide-offset)
|
|
29
|
-
);
|
|
29
|
+
);\n /* 호스트 하한(--u-target-size, 미설정 = 0). */\n box-sizing: border-box;\n min-height: var(--u-target-size, 0px);
|
|
30
30
|
transition: background-color var(--u-duration-fast, 140ms) var(--u-ease-standard, cubic-bezier(0.2, 0, 0, 1)), color var(--u-duration-fast, 140ms) var(--u-ease-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
31
31
|
user-select: none;
|
|
32
32
|
cursor: pointer;
|
|
@@ -72,8 +72,9 @@ var styles = css`
|
|
|
72
72
|
display: inline-flex;
|
|
73
73
|
align-items: center;
|
|
74
74
|
justify-content: center;
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
/* 호스트 하한(--u-target-size)이 있으면 그 값 — 미설정이면 24px 그대로. */
|
|
76
|
+
width: max(24px, var(--u-target-size, 0px));
|
|
77
|
+
height: max(24px, var(--u-target-size, 0px));
|
|
77
78
|
}
|
|
78
79
|
.prefix-toggler::before {
|
|
79
80
|
content: "";
|
|
@@ -115,8 +116,9 @@ var styles = css`
|
|
|
115
116
|
display: inline-flex;
|
|
116
117
|
align-items: center;
|
|
117
118
|
justify-content: center;
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
/* 호스트 하한(--u-target-size)이 있으면 그 값 — 미설정이면 24px 그대로. */
|
|
120
|
+
width: max(24px, var(--u-target-size, 0px));
|
|
121
|
+
height: max(24px, var(--u-target-size, 0px));
|
|
120
122
|
cursor: pointer;
|
|
121
123
|
}
|
|
122
124
|
.prefix-checkbox::before {
|
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from './components/skeleton/USkeleton.js';
|
|
|
40
40
|
export * from './components/slider/USlider.js';
|
|
41
41
|
export * from './components/spinner/USpinner.js';
|
|
42
42
|
export * from './components/split-panel/USplitPanel.js';
|
|
43
|
+
export * from './components/steps/USteps.js';
|
|
43
44
|
export * from './components/switch/USwitch.js';
|
|
44
45
|
export * from './components/tab/UTab.js';
|
|
45
46
|
export * from './components/tab-panel/UTabPanel.js';
|
package/dist/index.js
CHANGED
|
@@ -50,6 +50,7 @@ import { USelect } from "./components/select/USelect.js";
|
|
|
50
50
|
import { USkeleton } from "./components/skeleton/USkeleton.js";
|
|
51
51
|
import { USlider } from "./components/slider/USlider.js";
|
|
52
52
|
import { USplitPanel } from "./components/split-panel/USplitPanel.js";
|
|
53
|
+
import { USteps } from "./components/steps/USteps.js";
|
|
53
54
|
import { USwitch } from "./components/switch/USwitch.js";
|
|
54
55
|
import { UTab } from "./components/tab/UTab.js";
|
|
55
56
|
import { UTabPanel } from "./components/tab-panel/UTabPanel.js";
|
|
@@ -62,4 +63,4 @@ import { Dialog } from "./utilities/Dialog.js";
|
|
|
62
63
|
import { Theme } from "./utilities/Theme.js";
|
|
63
64
|
import { Toast } from "./utilities/Toast.js";
|
|
64
65
|
import { decodeTsv, encodeTsv } from "./utilities/tsv.js";
|
|
65
|
-
export { ALERT_STATUSES, BrowserStorage, Dialog, IconCache, IconRegistry, Locale, OverlayManager, Theme, Toast, UAlert, UAvatar, UBadge, UBreadcrumb, UBreadcrumbItem, UButton, UButtonGroup, UCard, UCarousel, UCheckbox, UChip, UCopyButton, UDatePicker, UDateRangePicker, UDialog, UDivider, UDrawer, UElement, UExpander, UField, UFileInput, UFloatingElement, UForm, UFormControlElement, UIcon, UIconButton, UInput, UMenu, UMenuItem, UOption, UOverlayElement, UPanel, UPopover, UProgressBar, UProgressRing, URadio, URating, USelect, USkeleton, USlider, USpinner, USplitPanel, USwitch, UTab, UTabPanel, UTag, UText, UTextarea, UTooltip, UTree, UTreeItem, arrayAttrConverter, booleanAttrConverter, createDevWarner, dateAttrConverter, dateTextPattern, decodeTsv, devWarnOnce, encodeTsv, formatCurrency, formatDate, formatDateRange, formatDateRangeText, formatDateText, formatDateTimeRangeText, formatDateTimeText, formatNumber, getDefaultBaseUrl, getParentElement, isCoarsePointer, isFocusCandidate, isImeComposing, jsonAttrConverter, parseDate, parseDateRange, parseDateTime, parseDateTimeRange, parseNumber, querySelectorAllWithin, querySelectorDeep, querySelectorWithin, resetDevWarnings, setDefaultBaseUrl, urlAttrConverter };
|
|
66
|
+
export { ALERT_STATUSES, BrowserStorage, Dialog, IconCache, IconRegistry, Locale, OverlayManager, Theme, Toast, UAlert, UAvatar, UBadge, UBreadcrumb, UBreadcrumbItem, UButton, UButtonGroup, UCard, UCarousel, UCheckbox, UChip, UCopyButton, UDatePicker, UDateRangePicker, UDialog, UDivider, UDrawer, UElement, UExpander, UField, UFileInput, UFloatingElement, UForm, UFormControlElement, UIcon, UIconButton, UInput, UMenu, UMenuItem, UOption, UOverlayElement, UPanel, UPopover, UProgressBar, UProgressRing, URadio, URating, USelect, USkeleton, USlider, USpinner, USplitPanel, USteps, USwitch, UTab, UTabPanel, UTag, UText, UTextarea, UTooltip, UTree, UTreeItem, arrayAttrConverter, booleanAttrConverter, createDevWarner, dateAttrConverter, dateTextPattern, decodeTsv, devWarnOnce, encodeTsv, formatCurrency, formatDate, formatDateRange, formatDateRangeText, formatDateText, formatDateTimeRangeText, formatDateTimeText, formatNumber, getDefaultBaseUrl, getParentElement, isCoarsePointer, isFocusCandidate, isImeComposing, jsonAttrConverter, parseDate, parseDateRange, parseDateTime, parseDateTimeRange, parseNumber, querySelectorAllWithin, querySelectorDeep, querySelectorWithin, resetDevWarnings, setDefaultBaseUrl, urlAttrConverter };
|
|
@@ -285,9 +285,16 @@ export const ${className} = createComponent({
|
|
|
285
285
|
const eventKeyUnion = events.length > 0
|
|
286
286
|
? events.map(e => `'${e.reactName}'`).join(' | ')
|
|
287
287
|
: 'never';
|
|
288
|
-
// Partial<
|
|
289
|
-
// children
|
|
290
|
-
//
|
|
288
|
+
// 엘리먼트 쪽 = `Partial<El>` 에서 React.HTMLAttributes 와 겹치는 키를 뺀 것. DOM 프로퍼티
|
|
289
|
+
// (children: HTMLCollection 등)는 거기서 빠지므로 React 의 JSX children/className 등과 충돌하지
|
|
290
|
+
// 않고, 그것들은 HTMLAttributes 가 React 친화 타입(children: ReactNode 포함)으로 제공한다.
|
|
291
|
+
// React 가 모르는 DOM 프로퍼티(`autofocus` 등)는 엘리먼트 쪽에 남는다.
|
|
292
|
+
//
|
|
293
|
+
// 🔴**단, 컴포넌트가 «스스로 선언한» prop(`OwnProps` = `HTMLElement` 에 없는 키)은 겹쳐도
|
|
294
|
+
// 엘리먼트 쪽이 이긴다** — 그 이름은 HTMLAttributes 쪽에서 뺀다.
|
|
295
|
+
// 종전에는 반대(`Omit<Partial<El>, keyof React.HTMLAttributes>`)라, React 가 HTML 속성으로도
|
|
296
|
+
// 아는 이름(`color` — 폐기된 `<font color>` 계열)의 정밀 타입이 `string` 으로 열렸다:
|
|
297
|
+
// 역할 축(`TagColor`·`ButtonColor` …)이 타입 검사를 통과하지 않는 값을 받았다.
|
|
291
298
|
//
|
|
292
299
|
// `React.RefAttributes` 를 반드시 교집합에 넣는다 — `ForwardRefExoticComponent<P>` 는 P 에
|
|
293
300
|
// ref 를 자동으로 더해 주지 않는다. @lit/react 의 `ReactWebComponent` 자신이
|
|
@@ -295,9 +302,11 @@ export const ${className} = createComponent({
|
|
|
295
302
|
// 이것을 빠뜨리면 **런타임은 되는데 타입만 거부하는** 괴리가 생긴다.
|
|
296
303
|
const dts = `${dtsImports.join('\n')}
|
|
297
304
|
|
|
305
|
+
type ${className}OwnProps = Omit<${className}Element, keyof HTMLElement>;
|
|
306
|
+
|
|
298
307
|
export declare const ${className}: React.ForwardRefExoticComponent<
|
|
299
|
-
Omit
|
|
300
|
-
& Omit<React.HTMLAttributes<${className}Element>, ${eventKeyUnion}>
|
|
308
|
+
Partial<Omit<${className}Element, Exclude<keyof React.HTMLAttributes<${className}Element>, keyof ${className}OwnProps>>>
|
|
309
|
+
& Omit<React.HTMLAttributes<${className}Element>, keyof ${className}OwnProps | ${eventKeyUnion}>
|
|
301
310
|
& React.RefAttributes<${className}Element>
|
|
302
311
|
& {
|
|
303
312
|
${eventTypes} }
|
package/dist/react/UAlert.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ import { UAlert as UAlertElement } from '@iyulab/components/dist/components/aler
|
|
|
3
3
|
import { type ShowEventDetail } from '@iyulab/components/dist/events/ShowEvent.js';
|
|
4
4
|
import { type HideEventDetail } from '@iyulab/components/dist/events/HideEvent.js';
|
|
5
5
|
|
|
6
|
+
type UAlertOwnProps = Omit<UAlertElement, keyof HTMLElement>;
|
|
7
|
+
|
|
6
8
|
export declare const UAlert: React.ForwardRefExoticComponent<
|
|
7
|
-
Omit<
|
|
8
|
-
& Omit<React.HTMLAttributes<UAlertElement>, 'onShow' | 'onHide'>
|
|
9
|
+
Partial<Omit<UAlertElement, Exclude<keyof React.HTMLAttributes<UAlertElement>, keyof UAlertOwnProps>>>
|
|
10
|
+
& Omit<React.HTMLAttributes<UAlertElement>, keyof UAlertOwnProps | 'onShow' | 'onHide'>
|
|
9
11
|
& React.RefAttributes<UAlertElement>
|
|
10
12
|
& {
|
|
11
13
|
onShow?: (event: CustomEvent<ShowEventDetail>) => void;
|
package/dist/react/UAvatar.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UAvatar as UAvatarElement } from '@iyulab/components/dist/components/avatar/UAvatar.js';
|
|
3
3
|
|
|
4
|
+
type UAvatarOwnProps = Omit<UAvatarElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UAvatar: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UAvatarElement>, never>
|
|
7
|
+
Partial<Omit<UAvatarElement, Exclude<keyof React.HTMLAttributes<UAvatarElement>, keyof UAvatarOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UAvatarElement>, keyof UAvatarOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UAvatarElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
package/dist/react/UBadge.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UBadge as UBadgeElement } from '@iyulab/components/dist/components/badge/UBadge.js';
|
|
3
3
|
|
|
4
|
+
type UBadgeOwnProps = Omit<UBadgeElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UBadge: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UBadgeElement>, never>
|
|
7
|
+
Partial<Omit<UBadgeElement, Exclude<keyof React.HTMLAttributes<UBadgeElement>, keyof UBadgeOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UBadgeElement>, keyof UBadgeOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UBadgeElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UBreadcrumb as UBreadcrumbElement } from '@iyulab/components/dist/components/breadcrumb/UBreadcrumb.js';
|
|
3
3
|
|
|
4
|
+
type UBreadcrumbOwnProps = Omit<UBreadcrumbElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UBreadcrumb: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UBreadcrumbElement>, never>
|
|
7
|
+
Partial<Omit<UBreadcrumbElement, Exclude<keyof React.HTMLAttributes<UBreadcrumbElement>, keyof UBreadcrumbOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UBreadcrumbElement>, keyof UBreadcrumbOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UBreadcrumbElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
|
@@ -2,9 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { UBreadcrumbItem as UBreadcrumbItemElement } from '@iyulab/components/dist/components/breadcrumb-item/UBreadcrumbItem.js';
|
|
3
3
|
import { type NavigateEventDetail } from '@iyulab/components/dist/events/NavigateEvent.js';
|
|
4
4
|
|
|
5
|
+
type UBreadcrumbItemOwnProps = Omit<UBreadcrumbItemElement, keyof HTMLElement>;
|
|
6
|
+
|
|
5
7
|
export declare const UBreadcrumbItem: React.ForwardRefExoticComponent<
|
|
6
|
-
Omit<
|
|
7
|
-
& Omit<React.HTMLAttributes<UBreadcrumbItemElement>, 'onNavigate'>
|
|
8
|
+
Partial<Omit<UBreadcrumbItemElement, Exclude<keyof React.HTMLAttributes<UBreadcrumbItemElement>, keyof UBreadcrumbItemOwnProps>>>
|
|
9
|
+
& Omit<React.HTMLAttributes<UBreadcrumbItemElement>, keyof UBreadcrumbItemOwnProps | 'onNavigate'>
|
|
8
10
|
& React.RefAttributes<UBreadcrumbItemElement>
|
|
9
11
|
& {
|
|
10
12
|
onNavigate?: (event: CustomEvent<NavigateEventDetail>) => void;
|
package/dist/react/UButton.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UButton as UButtonElement } from '@iyulab/components/dist/components/button/UButton.js';
|
|
3
3
|
|
|
4
|
+
type UButtonOwnProps = Omit<UButtonElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UButton: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UButtonElement>, never>
|
|
7
|
+
Partial<Omit<UButtonElement, Exclude<keyof React.HTMLAttributes<UButtonElement>, keyof UButtonOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UButtonElement>, keyof UButtonOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UButtonElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UButtonGroup as UButtonGroupElement } from '@iyulab/components/dist/components/button-group/UButtonGroup.js';
|
|
3
3
|
|
|
4
|
+
type UButtonGroupOwnProps = Omit<UButtonGroupElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UButtonGroup: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UButtonGroupElement>, never>
|
|
7
|
+
Partial<Omit<UButtonGroupElement, Exclude<keyof React.HTMLAttributes<UButtonGroupElement>, keyof UButtonGroupOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UButtonGroupElement>, keyof UButtonGroupOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UButtonGroupElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
package/dist/react/UCard.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UCard as UCardElement } from '@iyulab/components/dist/components/card/UCard.js';
|
|
3
3
|
|
|
4
|
+
type UCardOwnProps = Omit<UCardElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UCard: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UCardElement>, never>
|
|
7
|
+
Partial<Omit<UCardElement, Exclude<keyof React.HTMLAttributes<UCardElement>, keyof UCardOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UCardElement>, keyof UCardOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UCardElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UCarousel as UCarouselElement } from '@iyulab/components/dist/components/carousel/UCarousel.js';
|
|
3
3
|
|
|
4
|
+
type UCarouselOwnProps = Omit<UCarouselElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UCarousel: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UCarouselElement>, never>
|
|
7
|
+
Partial<Omit<UCarouselElement, Exclude<keyof React.HTMLAttributes<UCarouselElement>, keyof UCarouselOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UCarouselElement>, keyof UCarouselOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UCarouselElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UCheckbox as UCheckboxElement } from '@iyulab/components/dist/components/checkbox/UCheckbox.js';
|
|
3
3
|
|
|
4
|
+
type UCheckboxOwnProps = Omit<UCheckboxElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UCheckbox: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UCheckboxElement>, 'onChange'>
|
|
7
|
+
Partial<Omit<UCheckboxElement, Exclude<keyof React.HTMLAttributes<UCheckboxElement>, keyof UCheckboxOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UCheckboxElement>, keyof UCheckboxOwnProps | 'onChange'>
|
|
7
9
|
& React.RefAttributes<UCheckboxElement>
|
|
8
10
|
& {
|
|
9
11
|
onChange?: (event: CustomEvent) => void;
|
package/dist/react/UChip.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ import { UChip as UChipElement } from '@iyulab/components/dist/components/chip/U
|
|
|
3
3
|
import { type PickEventDetail } from '@iyulab/components/dist/events/PickEvent.js';
|
|
4
4
|
import { type RemoveEventDetail } from '@iyulab/components/dist/events/RemoveEvent.js';
|
|
5
5
|
|
|
6
|
+
type UChipOwnProps = Omit<UChipElement, keyof HTMLElement>;
|
|
7
|
+
|
|
6
8
|
export declare const UChip: React.ForwardRefExoticComponent<
|
|
7
|
-
Omit<
|
|
8
|
-
& Omit<React.HTMLAttributes<UChipElement>, 'onPick' | 'onRemove'>
|
|
9
|
+
Partial<Omit<UChipElement, Exclude<keyof React.HTMLAttributes<UChipElement>, keyof UChipOwnProps>>>
|
|
10
|
+
& Omit<React.HTMLAttributes<UChipElement>, keyof UChipOwnProps | 'onPick' | 'onRemove'>
|
|
9
11
|
& React.RefAttributes<UChipElement>
|
|
10
12
|
& {
|
|
11
13
|
onPick?: (event: CustomEvent<PickEventDetail>) => void;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UCopyButton as UCopyButtonElement } from '@iyulab/components/dist/components/copy-button/UCopyButton.js';
|
|
3
3
|
|
|
4
|
+
type UCopyButtonOwnProps = Omit<UCopyButtonElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UCopyButton: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UCopyButtonElement>, 'onCopy'>
|
|
7
|
+
Partial<Omit<UCopyButtonElement, Exclude<keyof React.HTMLAttributes<UCopyButtonElement>, keyof UCopyButtonOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UCopyButtonElement>, keyof UCopyButtonOwnProps | 'onCopy'>
|
|
7
9
|
& React.RefAttributes<UCopyButtonElement>
|
|
8
10
|
& {
|
|
9
11
|
onCopy?: (event: CustomEvent) => void;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UDatePicker as UDatePickerElement } from '@iyulab/components/dist/components/date-picker/UDatePicker.js';
|
|
3
3
|
|
|
4
|
+
type UDatePickerOwnProps = Omit<UDatePickerElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UDatePicker: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UDatePickerElement>, 'onChange'>
|
|
7
|
+
Partial<Omit<UDatePickerElement, Exclude<keyof React.HTMLAttributes<UDatePickerElement>, keyof UDatePickerOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UDatePickerElement>, keyof UDatePickerOwnProps | 'onChange'>
|
|
7
9
|
& React.RefAttributes<UDatePickerElement>
|
|
8
10
|
& {
|
|
9
11
|
onChange?: (event: CustomEvent) => void;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UDateRangePicker as UDateRangePickerElement } from '@iyulab/components/dist/components/date-range-picker/UDateRangePicker.js';
|
|
3
3
|
|
|
4
|
+
type UDateRangePickerOwnProps = Omit<UDateRangePickerElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UDateRangePicker: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UDateRangePickerElement>, 'onChange'>
|
|
7
|
+
Partial<Omit<UDateRangePickerElement, Exclude<keyof React.HTMLAttributes<UDateRangePickerElement>, keyof UDateRangePickerOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UDateRangePickerElement>, keyof UDateRangePickerOwnProps | 'onChange'>
|
|
7
9
|
& React.RefAttributes<UDateRangePickerElement>
|
|
8
10
|
& {
|
|
9
11
|
onChange?: (event: CustomEvent) => void;
|
package/dist/react/UDialog.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ import { UDialog as UDialogElement } from '@iyulab/components/dist/components/di
|
|
|
3
3
|
import { type ShowEventDetail } from '@iyulab/components/dist/events/ShowEvent.js';
|
|
4
4
|
import { type HideEventDetail } from '@iyulab/components/dist/events/HideEvent.js';
|
|
5
5
|
|
|
6
|
+
type UDialogOwnProps = Omit<UDialogElement, keyof HTMLElement>;
|
|
7
|
+
|
|
6
8
|
export declare const UDialog: React.ForwardRefExoticComponent<
|
|
7
|
-
Omit<
|
|
8
|
-
& Omit<React.HTMLAttributes<UDialogElement>, 'onShow' | 'onHide'>
|
|
9
|
+
Partial<Omit<UDialogElement, Exclude<keyof React.HTMLAttributes<UDialogElement>, keyof UDialogOwnProps>>>
|
|
10
|
+
& Omit<React.HTMLAttributes<UDialogElement>, keyof UDialogOwnProps | 'onShow' | 'onHide'>
|
|
9
11
|
& React.RefAttributes<UDialogElement>
|
|
10
12
|
& {
|
|
11
13
|
onShow?: (event: CustomEvent<ShowEventDetail>) => void;
|
package/dist/react/UDivider.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UDivider as UDividerElement } from '@iyulab/components/dist/components/divider/UDivider.js';
|
|
3
3
|
|
|
4
|
+
type UDividerOwnProps = Omit<UDividerElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UDivider: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UDividerElement>, never>
|
|
7
|
+
Partial<Omit<UDividerElement, Exclude<keyof React.HTMLAttributes<UDividerElement>, keyof UDividerOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UDividerElement>, keyof UDividerOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UDividerElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
package/dist/react/UDrawer.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ import { UDrawer as UDrawerElement } from '@iyulab/components/dist/components/dr
|
|
|
3
3
|
import { type ShowEventDetail } from '@iyulab/components/dist/events/ShowEvent.js';
|
|
4
4
|
import { type HideEventDetail } from '@iyulab/components/dist/events/HideEvent.js';
|
|
5
5
|
|
|
6
|
+
type UDrawerOwnProps = Omit<UDrawerElement, keyof HTMLElement>;
|
|
7
|
+
|
|
6
8
|
export declare const UDrawer: React.ForwardRefExoticComponent<
|
|
7
|
-
Omit<
|
|
8
|
-
& Omit<React.HTMLAttributes<UDrawerElement>, 'onShow' | 'onHide'>
|
|
9
|
+
Partial<Omit<UDrawerElement, Exclude<keyof React.HTMLAttributes<UDrawerElement>, keyof UDrawerOwnProps>>>
|
|
10
|
+
& Omit<React.HTMLAttributes<UDrawerElement>, keyof UDrawerOwnProps | 'onShow' | 'onHide'>
|
|
9
11
|
& React.RefAttributes<UDrawerElement>
|
|
10
12
|
& {
|
|
11
13
|
onShow?: (event: CustomEvent<ShowEventDetail>) => void;
|
|
@@ -3,9 +3,11 @@ import { UExpander as UExpanderElement } from '@iyulab/components/dist/component
|
|
|
3
3
|
import { type ExpandEventDetail } from '@iyulab/components/dist/events/ExpandEvent.js';
|
|
4
4
|
import { type CollapseEventDetail } from '@iyulab/components/dist/events/CollapseEvent.js';
|
|
5
5
|
|
|
6
|
+
type UExpanderOwnProps = Omit<UExpanderElement, keyof HTMLElement>;
|
|
7
|
+
|
|
6
8
|
export declare const UExpander: React.ForwardRefExoticComponent<
|
|
7
|
-
Omit<
|
|
8
|
-
& Omit<React.HTMLAttributes<UExpanderElement>, 'onExpand' | 'onCollapse'>
|
|
9
|
+
Partial<Omit<UExpanderElement, Exclude<keyof React.HTMLAttributes<UExpanderElement>, keyof UExpanderOwnProps>>>
|
|
10
|
+
& Omit<React.HTMLAttributes<UExpanderElement>, keyof UExpanderOwnProps | 'onExpand' | 'onCollapse'>
|
|
9
11
|
& React.RefAttributes<UExpanderElement>
|
|
10
12
|
& {
|
|
11
13
|
onExpand?: (event: CustomEvent<ExpandEventDetail>) => void;
|
package/dist/react/UField.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UField as UFieldElement } from '@iyulab/components/dist/components/field/UField.js';
|
|
3
3
|
|
|
4
|
+
type UFieldOwnProps = Omit<UFieldElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UField: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UFieldElement>, never>
|
|
7
|
+
Partial<Omit<UFieldElement, Exclude<keyof React.HTMLAttributes<UFieldElement>, keyof UFieldOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UFieldElement>, keyof UFieldOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UFieldElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UFileInput as UFileInputElement } from '@iyulab/components/dist/components/file-input/UFileInput.js';
|
|
3
3
|
|
|
4
|
+
type UFileInputOwnProps = Omit<UFileInputElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UFileInput: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UFileInputElement>, 'onChange'>
|
|
7
|
+
Partial<Omit<UFileInputElement, Exclude<keyof React.HTMLAttributes<UFileInputElement>, keyof UFileInputOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UFileInputElement>, keyof UFileInputOwnProps | 'onChange'>
|
|
7
9
|
& React.RefAttributes<UFileInputElement>
|
|
8
10
|
& {
|
|
9
11
|
onChange?: (event: CustomEvent) => void;
|
package/dist/react/UForm.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UForm as UFormElement } from '@iyulab/components/dist/components/form/UForm.js';
|
|
3
3
|
|
|
4
|
+
type UFormOwnProps = Omit<UFormElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UForm: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UFormElement>, 'onChange'>
|
|
7
|
+
Partial<Omit<UFormElement, Exclude<keyof React.HTMLAttributes<UFormElement>, keyof UFormOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UFormElement>, keyof UFormOwnProps | 'onChange'>
|
|
7
9
|
& React.RefAttributes<UFormElement>
|
|
8
10
|
& {
|
|
9
11
|
onChange?: (event: CustomEvent) => void;
|
package/dist/react/UIcon.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UIcon as UIconElement } from '@iyulab/components/dist/components/icon/UIcon.js';
|
|
3
3
|
|
|
4
|
+
type UIconOwnProps = Omit<UIconElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UIcon: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UIconElement>, never>
|
|
7
|
+
Partial<Omit<UIconElement, Exclude<keyof React.HTMLAttributes<UIconElement>, keyof UIconOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UIconElement>, keyof UIconOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UIconElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UIconButton as UIconButtonElement } from '@iyulab/components/dist/components/icon-button/UIconButton.js';
|
|
3
3
|
|
|
4
|
+
type UIconButtonOwnProps = Omit<UIconButtonElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UIconButton: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UIconButtonElement>, never>
|
|
7
|
+
Partial<Omit<UIconButtonElement, Exclude<keyof React.HTMLAttributes<UIconButtonElement>, keyof UIconButtonOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UIconButtonElement>, keyof UIconButtonOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UIconButtonElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
package/dist/react/UInput.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UInput as UInputElement } from '@iyulab/components/dist/components/input/UInput.js';
|
|
3
3
|
|
|
4
|
+
type UInputOwnProps = Omit<UInputElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UInput: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UInputElement>, 'onInput' | 'onChange'>
|
|
7
|
+
Partial<Omit<UInputElement, Exclude<keyof React.HTMLAttributes<UInputElement>, keyof UInputOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UInputElement>, keyof UInputOwnProps | 'onInput' | 'onChange'>
|
|
7
9
|
& React.RefAttributes<UInputElement>
|
|
8
10
|
& {
|
|
9
11
|
onInput?: (event: CustomEvent) => void;
|
package/dist/react/UMenu.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UMenu as UMenuElement } from '@iyulab/components/dist/components/menu/UMenu.js';
|
|
3
3
|
|
|
4
|
+
type UMenuOwnProps = Omit<UMenuElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UMenu: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UMenuElement>, 'onChange'>
|
|
7
|
+
Partial<Omit<UMenuElement, Exclude<keyof React.HTMLAttributes<UMenuElement>, keyof UMenuOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UMenuElement>, keyof UMenuOwnProps | 'onChange'>
|
|
7
9
|
& React.RefAttributes<UMenuElement>
|
|
8
10
|
& {
|
|
9
11
|
onChange?: (event: CustomEvent) => void;
|