@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
|
@@ -2,7 +2,6 @@ import { css } from "lit";
|
|
|
2
2
|
//#region src/components/checkbox/UCheckbox.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
|
-
--checkbox-fill-color: var(--u-primary-color, #1976D2);
|
|
6
5
|
--checkbox-color: inherit;
|
|
7
6
|
--checkbox-border-color: var(--u-input-border-color, #E0E0E0);
|
|
8
7
|
--checkbox-background-color: var(--u-input-bg-color, #FFFFFF);
|
|
@@ -15,7 +14,9 @@ var styles = css`
|
|
|
15
14
|
⚠재는 것은 **포인터 타깃**이지 시각 크기가 아니다 — 체크 박스(.checkbox)의
|
|
16
15
|
치수는 그대로 두고 «클릭을 받는 영역»만 최소 높이를 갖는다. 라벨이 있으면
|
|
17
16
|
내용이 이미 이보다 크므로 아무 일도 일어나지 않는다. */
|
|
18
|
-
min-block-size: 24px;
|
|
17
|
+
min-block-size: max(24px, var(--u-target-size, 0px));
|
|
18
|
+
/* 호스트 하한(--u-target-size, 미설정 = 0)이 있으면 폭도 — 라벨 없는 단독 컨트롤이 그 값보다 좁다. */
|
|
19
|
+
min-inline-size: var(--u-target-size, 0px);
|
|
19
20
|
justify-content: center;
|
|
20
21
|
color: var(--u-txt-color, #212121);
|
|
21
22
|
font-size: inherit;
|
|
@@ -46,21 +47,21 @@ var styles = css`
|
|
|
46
47
|
--checkbox-border-color: var(--u-input-border-color-hover, #BDBDBD);
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
/* ===
|
|
50
|
-
:host([
|
|
51
|
-
:host([
|
|
50
|
+
/* === solid — 배경 채움 === */
|
|
51
|
+
:host([appearance="solid"][checked]),
|
|
52
|
+
:host([appearance="solid"][indeterminate]) {
|
|
52
53
|
/* 체크 표시가 **채운 면 위**에 선다 — 역할 축에서만 on-color 로 갈린다(장식 축은 폴백). */
|
|
53
54
|
--checkbox-color: var(--checkbox-hue-on-fill, var(--u-neutral-100, #F5F5F5));
|
|
54
|
-
--checkbox-border-color: var(--checkbox-hue
|
|
55
|
-
--checkbox-background-color: var(--checkbox-hue
|
|
55
|
+
--checkbox-border-color: var(--checkbox-hue);
|
|
56
|
+
--checkbox-background-color: var(--checkbox-hue);
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
/* ===
|
|
59
|
-
:host([
|
|
60
|
-
:host([
|
|
59
|
+
/* === outlined — 테두리만 === */
|
|
60
|
+
:host([appearance="outlined"][checked]),
|
|
61
|
+
:host([appearance="outlined"][indeterminate]) {
|
|
61
62
|
/* 여기서는 같은 표시가 **바탕 위**에 선다 — 면 단이 아니라 -strong 이 맡는다. */
|
|
62
|
-
--checkbox-color: var(--checkbox-hue-strong, var(--checkbox-hue
|
|
63
|
-
--checkbox-border-color: var(--checkbox-hue
|
|
63
|
+
--checkbox-color: var(--checkbox-hue-strong, var(--checkbox-hue));
|
|
64
|
+
--checkbox-border-color: var(--checkbox-hue);
|
|
64
65
|
--checkbox-background-color: transparent;
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -96,11 +97,14 @@ var styles = css`
|
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
/* ==========================================================================
|
|
99
|
-
장식 축 — color= 는 hue 슬롯만 채운다.
|
|
100
|
-
기본값 blue
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
장식 축 — color= 는 hue 슬롯만 채운다. appearance 규칙이 그것을 읽는다.
|
|
101
|
+
2.0 전에는 기본값 blue 에 규칙이 없어 «브랜드 경로»를 탔다(blue 가 파랑이 아니라 «색 미지정»의
|
|
102
|
+
표기였다). 이제 기본값은 primary(역할 축)이고 blue 는 다른 장식 색처럼 파랑이다 — 모든 색이 슬롯을
|
|
103
|
+
채우므로 «빈 슬롯»용 채움 훅(--checkbox-fill-color)은 폐지했다.
|
|
103
104
|
========================================================================== */
|
|
105
|
+
:host([color="blue"]) {
|
|
106
|
+
--checkbox-hue: var(--u-blue-600, #1E88E5);
|
|
107
|
+
}
|
|
104
108
|
:host([color="green"]) {
|
|
105
109
|
--checkbox-hue: var(--u-green-600, #43A047);
|
|
106
110
|
}
|
|
@@ -143,8 +147,8 @@ var styles = css`
|
|
|
143
147
|
}
|
|
144
148
|
input:focus-visible ~ .checkbox {
|
|
145
149
|
box-shadow:
|
|
146
|
-
0 0 0 1px var(--u-
|
|
147
|
-
0 0 0 3px color-mix(in srgb, var(--u-
|
|
150
|
+
0 0 0 1px var(--u-focus-ring-color, #1565C0),
|
|
151
|
+
0 0 0 3px color-mix(in srgb, var(--u-focus-ring-color, #1565C0) 22%, transparent);
|
|
148
152
|
}
|
|
149
153
|
|
|
150
154
|
/* 체크박스 외형 — 클릭은 항상 .wrapper(<label>)가 받아야 한다(위임으로 이미
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
2
|
import { UElement } from '../UElement.js';
|
|
3
|
-
import {
|
|
3
|
+
import { TagAppearance, TagColor } from '../tag/UTag.js';
|
|
4
4
|
/**
|
|
5
5
|
* 태그 상태 표시 또는 선택 UI와 인터랙션(선택, 삭제)을 지원하는 칩 컴포넌트입니다.
|
|
6
6
|
*
|
|
@@ -20,7 +20,7 @@ import { TagVariant, TagColor } from '../tag/UTag.js';
|
|
|
20
20
|
export declare class UChip extends UElement {
|
|
21
21
|
static styles: import('lit').CSSResultGroup[];
|
|
22
22
|
/** 칩의 스타일 변형 */
|
|
23
|
-
|
|
23
|
+
appearance: TagAppearance;
|
|
24
24
|
/** 칩의 색상 */
|
|
25
25
|
color: TagColor;
|
|
26
26
|
/** 둥근 모서리 여부 */
|
|
@@ -13,7 +13,7 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
13
13
|
var UChip = class UChip extends UElement {
|
|
14
14
|
constructor(..._args) {
|
|
15
15
|
super(..._args);
|
|
16
|
-
this.
|
|
16
|
+
this.appearance = "soft";
|
|
17
17
|
this.color = "neutral";
|
|
18
18
|
this.rounded = false;
|
|
19
19
|
this.removable = false;
|
|
@@ -44,7 +44,7 @@ var UChip = class UChip extends UElement {
|
|
|
44
44
|
render() {
|
|
45
45
|
return html`
|
|
46
46
|
<u-tag part="tag"
|
|
47
|
-
.
|
|
47
|
+
.appearance=${this.appearance}
|
|
48
48
|
.color=${this.color}
|
|
49
49
|
.rounded=${this.rounded}
|
|
50
50
|
@click=${this.handleTagClick}
|
|
@@ -62,7 +62,7 @@ var UChip = class UChip extends UElement {
|
|
|
62
62
|
<u-button class="remove-btn" part="remove" slot="suffix"
|
|
63
63
|
?hidden=${!this.removable}
|
|
64
64
|
rounded
|
|
65
|
-
|
|
65
|
+
appearance="plain"
|
|
66
66
|
aria-label=${Locale.getValue("remove")}
|
|
67
67
|
@click=${this.handleRemoveClick}>
|
|
68
68
|
<u-icon lib="internal" name="x"></u-icon>
|
|
@@ -121,7 +121,7 @@ var UChip = class UChip extends UElement {
|
|
|
121
121
|
__decorate([property({
|
|
122
122
|
type: String,
|
|
123
123
|
reflect: true
|
|
124
|
-
}), __decorateMetadata("design:type", Object)], UChip.prototype, "
|
|
124
|
+
}), __decorateMetadata("design:type", Object)], UChip.prototype, "appearance", void 0);
|
|
125
125
|
__decorate([property({
|
|
126
126
|
type: String,
|
|
127
127
|
reflect: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Placement, OffsetOptions } from '@floating-ui/dom';
|
|
2
2
|
import { UElement } from '../UElement.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ButtonAppearance } from '../button/UButton.js';
|
|
4
4
|
/**
|
|
5
5
|
* 클릭 시 클립보드에 텍스트를 복사하는 버튼입니다. 복사 상태를 표시하기 위해 아이콘이 변경됩니다.
|
|
6
6
|
*
|
|
@@ -23,7 +23,7 @@ export declare class UCopyButton extends UElement {
|
|
|
23
23
|
/** 호스트의 `.focus()` 를 안쪽 컨트롤로 위임한다 — `UButton` 과 같은 계약(호스트는 포커스 가능하지 않다). */
|
|
24
24
|
static shadowRootOptions: ShadowRootInit;
|
|
25
25
|
/** 버튼 스타일 변형 */
|
|
26
|
-
|
|
26
|
+
appearance: ButtonAppearance;
|
|
27
27
|
/** 원형 표시 여부 */
|
|
28
28
|
rounded: boolean;
|
|
29
29
|
/** 비활성화 여부 */
|
|
@@ -12,7 +12,7 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
12
12
|
var UCopyButton = class UCopyButton extends UElement {
|
|
13
13
|
constructor(..._args) {
|
|
14
14
|
super(..._args);
|
|
15
|
-
this.
|
|
15
|
+
this.appearance = "plain";
|
|
16
16
|
this.rounded = false;
|
|
17
17
|
this.disabled = false;
|
|
18
18
|
this.copied = false;
|
|
@@ -60,7 +60,7 @@ var UCopyButton = class UCopyButton extends UElement {
|
|
|
60
60
|
<u-button part="button"
|
|
61
61
|
exportparts="icon"
|
|
62
62
|
?disabled=${this.disabled}
|
|
63
|
-
.
|
|
63
|
+
.appearance=${this.appearance}
|
|
64
64
|
.rounded=${this.rounded}
|
|
65
65
|
@click=${this.handleButtonClick}
|
|
66
66
|
>
|
|
@@ -72,7 +72,7 @@ var UCopyButton = class UCopyButton extends UElement {
|
|
|
72
72
|
<u-icon-button part="button"
|
|
73
73
|
exportparts="icon,tooltip"
|
|
74
74
|
?disabled=${this.disabled}
|
|
75
|
-
.
|
|
75
|
+
.appearance=${this.appearance}
|
|
76
76
|
.rounded=${this.rounded}
|
|
77
77
|
.tooltipPlacement=${this.tooltipPlacement}
|
|
78
78
|
.tooltipOffset=${this.tooltipOffset}
|
|
@@ -89,7 +89,7 @@ var UCopyButton = class UCopyButton extends UElement {
|
|
|
89
89
|
__decorate([property({
|
|
90
90
|
type: String,
|
|
91
91
|
reflect: true
|
|
92
|
-
}), __decorateMetadata("design:type", Object)], UCopyButton.prototype, "
|
|
92
|
+
}), __decorateMetadata("design:type", Object)], UCopyButton.prototype, "appearance", void 0);
|
|
93
93
|
__decorate([property({
|
|
94
94
|
type: Boolean,
|
|
95
95
|
reflect: true
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
|
+
import { FieldSize } from '../input/UInput.js';
|
|
2
3
|
import { UFormControlElement } from '../UFormControlElement.js';
|
|
3
4
|
import { DateTextFormat } from '../../utilities/format.js';
|
|
4
5
|
import { UCalendar } from '../calendar/UCalendar.js';
|
|
@@ -59,6 +60,8 @@ export type { DateDisabledFn } from '../calendar/dates.js';
|
|
|
59
60
|
*/
|
|
60
61
|
export declare class UDatePicker extends UFormControlElement<string> {
|
|
61
62
|
static styles: import('lit').CSSResultGroup[];
|
|
63
|
+
/** 크기 — 다른 필드·버튼과 같은 세 단(`sm` 12px · `md` = `--u-density`(14px) · `lg` 16px). */
|
|
64
|
+
size: FieldSize;
|
|
62
65
|
/** `date` (default) selects a calendar day only. `datetime` also captures a time-of-day and
|
|
63
66
|
* the value becomes a complete ISO-8601 `DateTimeOffset` string. */
|
|
64
67
|
mode: DatePickerMode;
|
|
@@ -37,6 +37,7 @@ function splitValue(value) {
|
|
|
37
37
|
var UDatePicker = class UDatePicker extends UFormControlElement {
|
|
38
38
|
constructor(..._args) {
|
|
39
39
|
super(..._args);
|
|
40
|
+
this.size = "md";
|
|
40
41
|
this.mode = "date";
|
|
41
42
|
this.seconds = false;
|
|
42
43
|
this.clearable = false;
|
|
@@ -235,7 +236,7 @@ var UDatePicker = class UDatePicker extends UFormControlElement {
|
|
|
235
236
|
}
|
|
236
237
|
renderCalendar() {
|
|
237
238
|
return html`
|
|
238
|
-
<div class="calendar" part="calendar">
|
|
239
|
+
<div class="calendar" part="calendar" @mousedown=${this.textEntry.holdFocus}>
|
|
239
240
|
<u-calendar
|
|
240
241
|
exportparts="calendar-header, calendar-title, calendar-weekdays, calendar-grid, calendar-week, day"
|
|
241
242
|
.value=${this.working ? toISODate(splitValue(this.working).date) : void 0}
|
|
@@ -268,13 +269,13 @@ var UDatePicker = class UDatePicker extends UFormControlElement {
|
|
|
268
269
|
const todayDisabled = this.unavailable(/* @__PURE__ */ new Date());
|
|
269
270
|
return html`
|
|
270
271
|
<div class="calendar-footer" part="calendar-footer">
|
|
271
|
-
<u-button
|
|
272
|
+
<u-button appearance="plain" size="sm" ?disabled=${todayDisabled} @click=${this.handleTodayClick}>${Locale.getValue("today")}</u-button>
|
|
272
273
|
${this.clearable && this.working ? html`
|
|
273
|
-
<u-button
|
|
274
|
+
<u-button appearance="plain" size="sm" @click=${this.handleFooterResetClick}>${Locale.getValue("clear")}</u-button>
|
|
274
275
|
` : ""}
|
|
275
276
|
${this.confirm ? html`
|
|
276
277
|
<span class="confirm-actions">
|
|
277
|
-
<u-button
|
|
278
|
+
<u-button appearance="plain" size="sm" @click=${this.handleCancelClick}>${Locale.getValue("cancel")}</u-button>
|
|
278
279
|
<u-button size="sm" @click=${this.handleApplyClick}>${Locale.getValue("apply")}</u-button>
|
|
279
280
|
</span>
|
|
280
281
|
` : ""}
|
|
@@ -379,6 +380,10 @@ var UDatePicker = class UDatePicker extends UFormControlElement {
|
|
|
379
380
|
(this.textInputEl ?? this.containerEl)?.blur();
|
|
380
381
|
}
|
|
381
382
|
};
|
|
383
|
+
__decorate([property({
|
|
384
|
+
type: String,
|
|
385
|
+
reflect: true
|
|
386
|
+
}), __decorateMetadata("design:type", Object)], UDatePicker.prototype, "size", void 0);
|
|
382
387
|
__decorate([property({
|
|
383
388
|
type: String,
|
|
384
389
|
reflect: true
|
|
@@ -10,12 +10,12 @@ var styles = css`
|
|
|
10
10
|
display: var(--u-date-picker-display, inline-block);
|
|
11
11
|
width: var(--u-date-picker-width, auto);
|
|
12
12
|
color: var(--u-txt-color, #212121);
|
|
13
|
-
font-size: inherit;
|
|
14
13
|
font-family: var(--u-font-base);
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
u-popover {
|
|
18
|
-
|
|
17
|
+
/* 호스트 하한(--u-target-size)이 있으면 칸 7개가 그 폭으로 들어가는 너비(팝오버 여백 8px ×2 · 테두리 1px ×2) 이상. */
|
|
18
|
+
width: max(var(--date-picker-popover-width), calc(7 * var(--u-target-size, 0px) + 18px));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* mode="date": the trigger is a text box — it takes the container's room and reads like its text. */
|
|
@@ -36,6 +36,17 @@ var styles = css`
|
|
|
36
36
|
.calendar-button {
|
|
37
37
|
cursor: pointer;
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
/* === Size — 다른 필드·버튼과 같은 세 단 === */
|
|
41
|
+
:host {
|
|
42
|
+
font-size: var(--u-density, 14px);
|
|
43
|
+
}
|
|
44
|
+
:host([size="sm"]) {
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
}
|
|
47
|
+
:host([size="lg"]) {
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
}
|
|
39
50
|
`;
|
|
40
51
|
//#endregion
|
|
41
52
|
export { styles };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
|
+
import { FieldSize } from '../input/UInput.js';
|
|
2
3
|
import { UFormControlElement } from '../UFormControlElement.js';
|
|
3
4
|
import { DateTextFormat } from '../../utilities/format.js';
|
|
4
5
|
import { UCalendar } from '../calendar/UCalendar.js';
|
|
@@ -73,6 +74,8 @@ export type { DateRangePreset, DateRangePresetName, DateRangePresetOption } from
|
|
|
73
74
|
*/
|
|
74
75
|
export declare class UDateRangePicker extends UFormControlElement<string> {
|
|
75
76
|
static styles: import('lit').CSSResultGroup[];
|
|
77
|
+
/** 크기 — 다른 필드·버튼과 같은 세 단(`sm` 12px · `md` = `--u-density`(14px) · `lg` 16px). */
|
|
78
|
+
size: FieldSize;
|
|
76
79
|
/** Earliest selectable day (ISO `YYYY-MM-DD`), inclusive. */
|
|
77
80
|
min?: string;
|
|
78
81
|
/** Latest selectable day (ISO `YYYY-MM-DD`), inclusive. */
|
|
@@ -42,6 +42,7 @@ var dayPart = (half) => half.slice(0, 10);
|
|
|
42
42
|
var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
|
|
43
43
|
constructor(..._args) {
|
|
44
44
|
super(..._args);
|
|
45
|
+
this.size = "md";
|
|
45
46
|
this.clearable = false;
|
|
46
47
|
this.format = "iso";
|
|
47
48
|
this.presets = [];
|
|
@@ -275,7 +276,7 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
|
|
|
275
276
|
return html`
|
|
276
277
|
<div class="body">
|
|
277
278
|
${presets.length ? this.renderPresets(presets) : ""}
|
|
278
|
-
<div class="calendar" part="calendar">
|
|
279
|
+
<div class="calendar" part="calendar" @mousedown=${this.textEntry.holdFocus}>
|
|
279
280
|
<u-calendar
|
|
280
281
|
exportparts="calendar-month, calendar-header, calendar-title, calendar-weekdays, calendar-grid, calendar-week, day"
|
|
281
282
|
selection="range"
|
|
@@ -292,11 +293,11 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
|
|
|
292
293
|
${showClear || this.confirm ? html`
|
|
293
294
|
<div class="calendar-footer" part="calendar-footer">
|
|
294
295
|
${showClear ? html`
|
|
295
|
-
<u-button
|
|
296
|
+
<u-button appearance="plain" size="sm" @click=${this.handleFooterResetClick}>${Locale.getValue("clear")}</u-button>
|
|
296
297
|
` : ""}
|
|
297
298
|
${this.confirm ? html`
|
|
298
299
|
<span class="confirm-actions">
|
|
299
|
-
<u-button
|
|
300
|
+
<u-button appearance="plain" size="sm" @click=${this.handleCancelClick}>${Locale.getValue("cancel")}</u-button>
|
|
300
301
|
<u-button size="sm" @click=${this.handleApplyClick}>${Locale.getValue("apply")}</u-button>
|
|
301
302
|
</span>
|
|
302
303
|
` : ""}
|
|
@@ -451,6 +452,10 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
|
|
|
451
452
|
this.textInputEl?.blur();
|
|
452
453
|
}
|
|
453
454
|
};
|
|
455
|
+
__decorate([property({
|
|
456
|
+
type: String,
|
|
457
|
+
reflect: true
|
|
458
|
+
}), __decorateMetadata("design:type", Object)], UDateRangePicker.prototype, "size", void 0);
|
|
454
459
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UDateRangePicker.prototype, "min", void 0);
|
|
455
460
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UDateRangePicker.prototype, "max", void 0);
|
|
456
461
|
__decorate([property({
|
|
@@ -6,7 +6,6 @@ var styles = css`
|
|
|
6
6
|
display: var(--u-date-range-picker-display, inline-block);
|
|
7
7
|
width: var(--u-date-range-picker-width, auto);
|
|
8
8
|
color: var(--u-txt-color, #212121);
|
|
9
|
-
font-size: inherit;
|
|
10
9
|
font-family: var(--u-font-base);
|
|
11
10
|
}
|
|
12
11
|
|
|
@@ -34,7 +33,7 @@ var styles = css`
|
|
|
34
33
|
.preset {
|
|
35
34
|
display: flex;
|
|
36
35
|
align-items: center;
|
|
37
|
-
min-height: 28px;
|
|
36
|
+
min-height: max(28px, var(--u-target-size, 0px));
|
|
38
37
|
padding: 0 10px;
|
|
39
38
|
border: none;
|
|
40
39
|
border-radius: var(--u-radius-md, 4px);
|
|
@@ -51,7 +50,7 @@ var styles = css`
|
|
|
51
50
|
}
|
|
52
51
|
.preset:focus-visible {
|
|
53
52
|
outline: none;
|
|
54
|
-
box-shadow: 0 0 0 2px var(--u-
|
|
53
|
+
box-shadow: 0 0 0 2px var(--u-focus-ring-color, #1565C0);
|
|
55
54
|
}
|
|
56
55
|
/* 지금 범위와 같은 프리셋 — 달력의 띠와 같은 색 축으로 «지금 이것» 을 보인다. */
|
|
57
56
|
.preset[aria-pressed="true"] {
|
|
@@ -97,6 +96,17 @@ var styles = css`
|
|
|
97
96
|
.calendar-button {
|
|
98
97
|
cursor: pointer;
|
|
99
98
|
}
|
|
99
|
+
|
|
100
|
+
/* === Size — 다른 필드·버튼과 같은 세 단 === */
|
|
101
|
+
:host {
|
|
102
|
+
font-size: var(--u-density, 14px);
|
|
103
|
+
}
|
|
104
|
+
:host([size="sm"]) {
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
}
|
|
107
|
+
:host([size="lg"]) {
|
|
108
|
+
font-size: 16px;
|
|
109
|
+
}
|
|
100
110
|
`;
|
|
101
111
|
//#endregion
|
|
102
112
|
export { styles };
|
|
@@ -32,7 +32,7 @@ var UDialog = class UDialog extends UOverlayElement {
|
|
|
32
32
|
<slot name="header" @slotchange=${this.handleHeaderSlotChange}></slot>
|
|
33
33
|
<div style="flex: 1;"></div>
|
|
34
34
|
<u-button class="close-btn" part="close-btn"
|
|
35
|
-
|
|
35
|
+
appearance="plain"
|
|
36
36
|
?hidden=${!this.closable}
|
|
37
37
|
aria-label=${Locale.getValue("close")}
|
|
38
38
|
@click=${() => this.requestClose("button")}>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UElement } from '../UElement.js';
|
|
2
|
-
export type
|
|
2
|
+
export type DividerLine = 'solid' | 'dashed' | 'dotted';
|
|
3
3
|
export type DividerAlign = 'start' | 'center' | 'end';
|
|
4
4
|
/**
|
|
5
5
|
* 요소 사이에 구분선을 제공하는 컴포넌트입니다.
|
|
@@ -19,8 +19,8 @@ export declare class UDivider extends UElement {
|
|
|
19
19
|
static styles: import('lit').CSSResultGroup[];
|
|
20
20
|
/** 수직 방향 여부 (기본값 수평) */
|
|
21
21
|
vertical: boolean;
|
|
22
|
-
/**
|
|
23
|
-
|
|
22
|
+
/** 선 모양 */
|
|
23
|
+
line: DividerLine;
|
|
24
24
|
/** 슬롯 콘텐츠 정렬 위치 */
|
|
25
25
|
align: DividerAlign;
|
|
26
26
|
protected render(): import('lit-html').TemplateResult<1>;
|
|
@@ -9,7 +9,7 @@ var UDivider = class UDivider extends UElement {
|
|
|
9
9
|
constructor(..._args) {
|
|
10
10
|
super(..._args);
|
|
11
11
|
this.vertical = false;
|
|
12
|
-
this.
|
|
12
|
+
this.line = "solid";
|
|
13
13
|
this.align = "center";
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
@@ -38,7 +38,7 @@ __decorate([property({
|
|
|
38
38
|
__decorate([property({
|
|
39
39
|
type: String,
|
|
40
40
|
reflect: true
|
|
41
|
-
}), __decorateMetadata("design:type", Object)], UDivider.prototype, "
|
|
41
|
+
}), __decorateMetadata("design:type", Object)], UDivider.prototype, "line", void 0);
|
|
42
42
|
__decorate([property({
|
|
43
43
|
type: String,
|
|
44
44
|
reflect: true
|
|
@@ -27,11 +27,11 @@ var styles = css`
|
|
|
27
27
|
padding: var(--divider-spacing) 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
/*
|
|
31
|
-
:host([
|
|
30
|
+
/* line */
|
|
31
|
+
:host([line="dashed"]) .line {
|
|
32
32
|
border-top-style: dashed;
|
|
33
33
|
}
|
|
34
|
-
:host([
|
|
34
|
+
:host([line="dotted"]) .line {
|
|
35
35
|
border-top-style: dotted;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -85,10 +85,10 @@ var styles = css`
|
|
|
85
85
|
border-left: var(--divider-size) solid var(--divider-color);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
:host([vertical][
|
|
88
|
+
:host([vertical][line="dashed"]) .line {
|
|
89
89
|
border-left-style: dashed;
|
|
90
90
|
}
|
|
91
|
-
:host([vertical][
|
|
91
|
+
:host([vertical][line="dotted"]) .line {
|
|
92
92
|
border-left-style: dotted;
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -25,7 +25,7 @@ var UDrawer = class UDrawer extends UOverlayElement {
|
|
|
25
25
|
?hidden=${!this.hasHeader && !this.closable}>
|
|
26
26
|
<slot name="header" @slotchange=${this.handleHeaderSlotChange}></slot>
|
|
27
27
|
<u-button class="close-btn" part="close-btn"
|
|
28
|
-
|
|
28
|
+
appearance="plain"
|
|
29
29
|
?hidden=${!this.closable}
|
|
30
30
|
aria-label=${Locale.getValue("close")}
|
|
31
31
|
@click=${() => this.requestClose("button")}>
|
|
@@ -25,7 +25,7 @@ var styles = css`
|
|
|
25
25
|
width: 100%;
|
|
26
26
|
box-sizing: border-box;
|
|
27
27
|
padding: var(--u-space-sm, 8px) var(--u-space-md, 12px);
|
|
28
|
-
border: none;
|
|
28
|
+
border: none;\n /* 호스트 하한(--u-target-size, 미설정 = 0). */\n min-height: var(--u-target-size, 0px);
|
|
29
29
|
border-radius: inherit;
|
|
30
30
|
background: none;
|
|
31
31
|
color: var(--u-txt-color, #212121);
|
|
@@ -39,7 +39,7 @@ var styles = css`
|
|
|
39
39
|
cursor: default;
|
|
40
40
|
}
|
|
41
41
|
.header:focus-visible {
|
|
42
|
-
outline: 2px solid var(--u-
|
|
42
|
+
outline: 2px solid var(--u-focus-ring-color, #1565C0);
|
|
43
43
|
outline-offset: -2px;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -22,6 +22,9 @@ var styles = css`
|
|
|
22
22
|
align-items: center;
|
|
23
23
|
padding: 0.4em 0.9em;
|
|
24
24
|
border: 1px solid var(--u-input-border-color, #E0E0E0);
|
|
25
|
+
/* 호스트 하한(--u-target-size, 미설정 = 0). */
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
min-height: var(--u-target-size, 0px);
|
|
25
28
|
border-radius: 0.25em;
|
|
26
29
|
background-color: var(--u-panel-bg-color, #FFFFFF);
|
|
27
30
|
color: var(--u-primary-color, #1976D2);
|
|
@@ -36,8 +39,8 @@ var styles = css`
|
|
|
36
39
|
}
|
|
37
40
|
.trigger:focus-visible {
|
|
38
41
|
outline: none;
|
|
39
|
-
box-shadow: 0 0 0 1px var(--u-
|
|
40
|
-
0 0 0 3px color-mix(in srgb, var(--u-
|
|
42
|
+
box-shadow: 0 0 0 1px var(--u-focus-ring-color, #1565C0),
|
|
43
|
+
0 0 0 3px color-mix(in srgb, var(--u-focus-ring-color, #1565C0) 22%, transparent);
|
|
41
44
|
}
|
|
42
45
|
.trigger:disabled {
|
|
43
46
|
color: var(--u-txt-color-weak, #616161);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Placement, OffsetOptions } from '@floating-ui/dom';
|
|
2
2
|
import { UElement } from '../UElement.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ButtonAppearance } from '../button/UButton.js';
|
|
4
4
|
import { IconLibrary } from '../icon/UIcon.js';
|
|
5
5
|
/**
|
|
6
6
|
* 아이콘만 표시하는 정사각형 버튼 컴포넌트입니다.
|
|
@@ -17,7 +17,7 @@ export declare class UIconButton extends UElement {
|
|
|
17
17
|
/** 호스트의 `.focus()` 를 안쪽 컨트롤로 위임한다 — `UButton` 과 같은 계약(호스트는 포커스 가능하지 않다). */
|
|
18
18
|
static shadowRootOptions: ShadowRootInit;
|
|
19
19
|
/** 버튼 스타일 변형 */
|
|
20
|
-
|
|
20
|
+
appearance: ButtonAppearance;
|
|
21
21
|
/** 원형 표시 여부 */
|
|
22
22
|
rounded: boolean;
|
|
23
23
|
/** 비활성화 여부 */
|
|
@@ -41,7 +41,8 @@ export declare class UIconButton extends UElement {
|
|
|
41
41
|
/** 툴팁 거리 */
|
|
42
42
|
tooltipOffset: OffsetOptions;
|
|
43
43
|
/**
|
|
44
|
-
* 호스트에 세팅된 `aria-label
|
|
44
|
+
* 호스트에 세팅된 `aria-label`과 버튼 상태 ARIA(`FORWARDED_ARIA`)를 내부 `<u-button>`으로 옮긴다 —
|
|
45
|
+
* `UButton`과 같은 이유
|
|
45
46
|
* (섀도우 경계 안쪽 엘리먼트가 실제 접근 가능한 이름 대상). 아이콘 전용
|
|
46
47
|
* 버튼이라 텍스트 콘텐츠로 이름이 생기지 않으므로 이 전달이 없으면 접근 가능한 이름이
|
|
47
48
|
* 아예 비게 된다 — 내장 툴팁(`<u-tooltip>`)은 ARIA를 배선하지 않아 대체 경로가 안 된다.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
|
+
import { FORWARDED_ARIA } from "../button/forwarded-aria.js";
|
|
4
5
|
import "../button/UButton.js";
|
|
5
6
|
import "../icon/UIcon.js";
|
|
6
7
|
import "../tooltip/UTooltip.js";
|
|
@@ -12,7 +13,7 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
|
|
12
13
|
var UIconButton = class UIconButton extends UElement {
|
|
13
14
|
constructor(..._args) {
|
|
14
15
|
super(..._args);
|
|
15
|
-
this.
|
|
16
|
+
this.appearance = "plain";
|
|
16
17
|
this.rounded = false;
|
|
17
18
|
this.disabled = false;
|
|
18
19
|
this.loading = false;
|
|
@@ -29,26 +30,35 @@ var UIconButton = class UIconButton extends UElement {
|
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
|
-
* 호스트에 세팅된 `aria-label
|
|
33
|
+
* 호스트에 세팅된 `aria-label`과 버튼 상태 ARIA(`FORWARDED_ARIA`)를 내부 `<u-button>`으로 옮긴다 —
|
|
34
|
+
* `UButton`과 같은 이유
|
|
33
35
|
* (섀도우 경계 안쪽 엘리먼트가 실제 접근 가능한 이름 대상). 아이콘 전용
|
|
34
36
|
* 버튼이라 텍스트 콘텐츠로 이름이 생기지 않으므로 이 전달이 없으면 접근 가능한 이름이
|
|
35
37
|
* 아예 비게 된다 — 내장 툴팁(`<u-tooltip>`)은 ARIA를 배선하지 않아 대체 경로가 안 된다.
|
|
36
38
|
*/
|
|
37
39
|
static get observedAttributes() {
|
|
38
|
-
return [...super.observedAttributes,
|
|
40
|
+
return [...super.observedAttributes, ...FORWARDED_ARIA];
|
|
39
41
|
}
|
|
40
42
|
attributeChangedCallback(name, old, value) {
|
|
41
43
|
super.attributeChangedCallback(name, old, value);
|
|
42
|
-
if (name
|
|
44
|
+
if (FORWARDED_ARIA.includes(name)) this.requestUpdate();
|
|
43
45
|
}
|
|
44
46
|
render() {
|
|
45
47
|
const ariaLabel = this.getAttribute("aria-label") ?? void 0;
|
|
48
|
+
const pressed = this.getAttribute("aria-pressed") ?? void 0;
|
|
49
|
+
const expanded = this.getAttribute("aria-expanded") ?? void 0;
|
|
50
|
+
const haspopup = this.getAttribute("aria-haspopup") ?? void 0;
|
|
51
|
+
const controls = this.getAttribute("aria-controls") ?? void 0;
|
|
46
52
|
return html`
|
|
47
53
|
<u-button part="button"
|
|
48
54
|
aria-label=${ifDefined(ariaLabel)}
|
|
55
|
+
aria-pressed=${ifDefined(pressed)}
|
|
56
|
+
aria-expanded=${ifDefined(expanded)}
|
|
57
|
+
aria-haspopup=${ifDefined(haspopup)}
|
|
58
|
+
aria-controls=${ifDefined(controls)}
|
|
49
59
|
.disabled=${this.disabled}
|
|
50
60
|
.loading=${this.loading}
|
|
51
|
-
.
|
|
61
|
+
.appearance=${this.appearance}
|
|
52
62
|
.rounded=${this.rounded}
|
|
53
63
|
.href=${this.href}
|
|
54
64
|
.target=${this.target}
|
|
@@ -73,7 +83,7 @@ var UIconButton = class UIconButton extends UElement {
|
|
|
73
83
|
__decorate([property({
|
|
74
84
|
type: String,
|
|
75
85
|
reflect: true
|
|
76
|
-
}), __decorateMetadata("design:type", Object)], UIconButton.prototype, "
|
|
86
|
+
}), __decorateMetadata("design:type", Object)], UIconButton.prototype, "appearance", void 0);
|
|
77
87
|
__decorate([property({
|
|
78
88
|
type: Boolean,
|
|
79
89
|
reflect: true
|