@iyulab/components 2.18.0 → 2.19.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +9 -2
  3. package/dist/components/UElement.styles.js +8 -8
  4. package/dist/components/UFloatingElement.styles.js +6 -6
  5. package/dist/components/UOverlayElement.styles.js +1 -1
  6. package/dist/components/alert/UAlert.styles.js +12 -12
  7. package/dist/components/badge/UBadge.styles.js +13 -13
  8. package/dist/components/breadcrumb-item/UBreadcrumbItem.styles.js +1 -1
  9. package/dist/components/button/UButton.styles.js +97 -97
  10. package/dist/components/button-group/UButtonGroup.styles.js +2 -2
  11. package/dist/components/calendar/UCalendar.styles.js +10 -10
  12. package/dist/components/calendar/picker.styles.js +14 -14
  13. package/dist/components/card/UCard.styles.js +3 -3
  14. package/dist/components/carousel/UCarousel.styles.js +8 -8
  15. package/dist/components/checkbox/UCheckbox.styles.js +26 -26
  16. package/dist/components/chip/UChip.styles.js +5 -5
  17. package/dist/components/copy-button/UCopyButton.styles.js +2 -2
  18. package/dist/components/date-picker/UDatePicker.styles.js +6 -6
  19. package/dist/components/date-range-picker/UDateRangePicker.styles.js +9 -9
  20. package/dist/components/dialog/UDialog.styles.js +8 -8
  21. package/dist/components/divider/UDivider.styles.js +14 -14
  22. package/dist/components/drawer/UDrawer.styles.js +19 -19
  23. package/dist/components/expander/UExpander.styles.js +13 -13
  24. package/dist/components/field/UField.styles.js +10 -10
  25. package/dist/components/file-input/UFileInput.styles.js +4 -4
  26. package/dist/components/form/UForm.styles.js +1 -1
  27. package/dist/components/icon/UIcon.styles.js +5 -5
  28. package/dist/components/icon-button/UIconButton.styles.js +1 -1
  29. package/dist/components/input/UInput.styles.js +40 -40
  30. package/dist/components/menu/UMenu.styles.js +1 -1
  31. package/dist/components/menu-item/UMenuItem.styles.js +8 -8
  32. package/dist/components/option/UOption.styles.js +5 -5
  33. package/dist/components/pagination/UPagination.styles.js +1 -1
  34. package/dist/components/panel/UPanel.styles.js +6 -6
  35. package/dist/components/progress-bar/UProgressBar.styles.js +10 -10
  36. package/dist/components/progress-ring/UProgressRing.styles.js +9 -9
  37. package/dist/components/radio/URadio.styles.js +12 -12
  38. package/dist/components/rating/URating.styles.js +6 -6
  39. package/dist/components/select/USelect.styles.js +37 -37
  40. package/dist/components/skeleton/USkeleton.styles.js +15 -15
  41. package/dist/components/slider/USlider.styles.js +17 -17
  42. package/dist/components/spinner/USpinner.styles.js +4 -4
  43. package/dist/components/split-panel/USplitPanel.styles.js +9 -9
  44. package/dist/components/steps/USteps.styles.js +5 -5
  45. package/dist/components/switch/USwitch.styles.js +13 -13
  46. package/dist/components/tab/UTab.styles.js +2 -2
  47. package/dist/components/tab-panel/UTabPanel.styles.js +4 -4
  48. package/dist/components/tag/UTag.styles.js +37 -37
  49. package/dist/components/text/UText.styles.js +18 -18
  50. package/dist/components/textarea/UTextarea.styles.js +14 -14
  51. package/dist/components/tooltip/UTooltip.styles.js +2 -2
  52. package/dist/components/tree/UTree.styles.js +3 -3
  53. package/dist/components/tree-item/UTreeItem.styles.js +18 -18
  54. package/dist/plugins/vite-plugin-strip-css-comments.d.ts +29 -0
  55. package/dist/plugins/vite-plugin-strip-css-comments.js +186 -0
  56. package/dist/utilities/Dialog.js +1 -1
  57. package/package.json +2 -2
  58. package/skills/iyulab-components/SKILL.md +2 -1
  59. package/skills/iyulab-components/references/usage.md +13 -0
@@ -41,12 +41,12 @@ var styles = css`
41
41
  border-color: var(--u-danger-color, #D32F2F);
42
42
  }
43
43
 
44
- /* Type: default */
44
+
45
45
  :host([type="default"]) ::slotted(u-option) {
46
46
  padding: 0;
47
47
  }
48
48
 
49
- /* Default + Solid */
49
+
50
50
  :host([type="default"][appearance="solid"]) ::slotted(u-option) {
51
51
  --option-color-active: #fff;
52
52
  --option-border-color-active: var(--radio-color);
@@ -56,7 +56,7 @@ var styles = css`
56
56
  --option-background-color-active-interactive: var(--radio-color-active);
57
57
  }
58
58
 
59
- /* Default + Outlined */
59
+
60
60
  :host([type="default"][appearance="outlined"]) ::slotted(u-option) {
61
61
  --option-color-active: var(--radio-color-active);
62
62
  --option-border-color-active: var(--radio-color);
@@ -66,7 +66,7 @@ var styles = css`
66
66
  --option-background-color-active-interactive: transparent;
67
67
  }
68
68
 
69
- /* Button + Solid */
69
+
70
70
  :host([type="button"][appearance="solid"]) ::slotted(u-option) {
71
71
  --option-color-active: #fff;
72
72
  --option-border-color-active: var(--radio-color);
@@ -76,7 +76,7 @@ var styles = css`
76
76
  --option-background-color-active-interactive: var(--radio-color-active);
77
77
  }
78
78
 
79
- /* Button + Outlined */
79
+
80
80
  :host([type="button"][appearance="outlined"]) ::slotted(u-option) {
81
81
  --option-color-active: var(--radio-color-active);
82
82
  --option-border-color-active: var(--radio-color);
@@ -86,7 +86,7 @@ var styles = css`
86
86
  --option-background-color-active-interactive: transparent;
87
87
  }
88
88
 
89
- /* === Button - Horizontal 배치 === */
89
+
90
90
  :host([type="button"]:not([appearance="soft"])[orientation="horizontal"]) ::slotted(u-option:first-child) {
91
91
  border-radius: 0.35em 0 0 0.35em;
92
92
  }
@@ -97,7 +97,7 @@ var styles = css`
97
97
  border-right: 1px solid var(--u-neutral-300, #E0E0E0);
98
98
  }
99
99
 
100
- /* === Button - Vertical 배치 === */
100
+
101
101
  :host([type="button"]:not([appearance="soft"])[orientation="vertical"]) ::slotted(u-option) {
102
102
  width: 100%;
103
103
  justify-content: center;
@@ -112,8 +112,8 @@ var styles = css`
112
112
  border-bottom: 1px solid var(--u-neutral-300, #E0E0E0);
113
113
  }
114
114
 
115
- /* === Button + Soft — a segmented control ===
116
- A quiet track; the picked segment rises onto the surface. No joined borders. */
115
+
116
+
117
117
  :host([type="button"][appearance="soft"]) .container {
118
118
  gap: 2px;
119
119
  padding: 2px;
@@ -134,9 +134,9 @@ var styles = css`
134
134
  --option-border-color-active-interactive: transparent;
135
135
  --option-background-color-active-interactive: var(--u-bg-color, #FFFFFF);
136
136
  }
137
- /* The segments' borders are transparent and u-option drops its own outline, so focus needs a
138
- ring of its own — in a radiogroup focus moves with the selection, and without this the focused
139
- segment shows no change at all (WCAG 2.4.7). */
137
+
138
+
139
+
140
140
  :host([type="button"][appearance="soft"]) ::slotted(u-option:focus-visible) {
141
141
  outline: 2px solid var(--u-focus-ring-color, #1565C0);
142
142
  outline-offset: 1px;
@@ -26,13 +26,13 @@ var styles = css`
26
26
  align-items: center;
27
27
  justify-content: center;
28
28
  font-size: 1.2em;
29
- /* WCAG 2.2 SC 2.5.8 — 심볼은 «각각이» 포인터 타깃이고 서로 인접해 있어
30
- 간격 예외를 받지 못한다(중심 간 24px 미만). ⚠글리프 크기(font-size)는
31
- 그대로 두고 **패딩으로 타깃만** 24×24 이상으로 만든다 — 별이 커지면
32
- 평점 위젯의 시각적 무게가 달라지고, 그것은 이 처방이 피하려는 것이다.
33
- 패딩이 늘면 중심 간 거리도 함께 벌어져 겹침도 생기지 않는다. */
29
+
30
+
31
+
32
+
33
+
34
34
  padding: 0.16em;
35
- /* 호스트 하한(--u-target-size, 미설정 = 0) — 글리프는 그대로, 상자만. */
35
+
36
36
  box-sizing: border-box;
37
37
  min-width: var(--u-target-size, 0px);
38
38
  min-height: var(--u-target-size, 0px);
@@ -2,16 +2,16 @@ import { css } from "lit";
2
2
  //#region src/components/select/USelect.styles.ts
3
3
  var styles = css`
4
4
  :host {
5
- /* --anchor-width는 u-popover(자식) 자신에게 JS로 설정되므로 여기서는 참조할 수 없다
6
- (커스텀 프로퍼티는 조상→자손으로만 상속). 실제 폴백은 아래 u-popover 규칙에서 처리. */
5
+
6
+
7
7
  --select-popover-min-height: 0px;
8
8
  --select-popover-max-height: 50vh;
9
9
  }
10
10
 
11
11
  :host {
12
12
  position: relative;
13
- /* 폼/그리드 셀에서 컨테이너 폭을 채우려면 소비자가 --u-select-display: block 을 준다.
14
- flex 컨테이너처럼 block 만으로 늘어나지 않는 맥락을 위해 width 경로도 함께 연다. */
13
+
14
+
15
15
  display: var(--u-select-display, inline-block);
16
16
  width: var(--u-select-width, auto);
17
17
  color: var(--u-txt-color, #212121);
@@ -23,25 +23,25 @@ var styles = css`
23
23
  flex-direction: row;
24
24
  align-items: center;
25
25
  padding: var(--u-field-padding-block, 0.3em) var(--u-field-padding-inline, 0.6em);
26
- /* 호스트 하한(--u-target-size, 미설정 = 0) — 글자와 독립된 터치 하한. */
26
+
27
27
  box-sizing: border-box;
28
28
  min-height: var(--u-target-size, 0px);
29
29
  border: 1px solid var(--u-input-border-color, #E0E0E0);
30
30
  border-radius: var(--u-field-radius, 0.25em);
31
31
  background-color: var(--u-input-bg-color, #FFFFFF);
32
32
  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));
33
- /* 잘라 내는 경계를 테두리 바깥선까지 — 호스트 하한(--u-target-size)으로 커진 접미 아이콘은 필드 높이를 채우고
34
- 테두리 1px 위까지 닿는다. 패딩 상자에서 자르면 그 1px 이 눌리지 않는다(hidden 은 여백을 받지 않는다). */
33
+
34
+
35
35
  overflow: clip;
36
36
  overflow-clip-margin: 1px;
37
37
  user-select: none;
38
38
  cursor: pointer;
39
- /* 지우기 «x» 의 받는 여백 — 아래 접미 버튼 규칙과 글자 하한이 함께 읽는다. */
39
+
40
40
  --_target-pad: max(0.25em, calc(12px - 0.5em), calc(var(--u-target-size, 0px) / 2 - 0.5em));
41
- /* 글자 영역의 하한 — 지우기(받는 상자) · 펼침 화살표가 한 줄을 나눌 때 주어진 폭이 좁으면 표시 글자가 0 까지 접혀
42
- «무엇이 골라졌는지 보이지 않는» 채 정상처럼 그려졌다. 하한 아래로는 칸이 호스트 밖으로 넘친다 — 보이는 실패다.
43
- 지우기 몫 = 글리프 1em + 받는 여백(왼쪽은 표시 글자 쪽으로 넓히고 오른쪽은 화살표 간격과 맞댄다) · 화살표(또는 스피너) 몫 =
44
- 1em + 앞 간격 0.25em. 지우기가 보이는지(--_clear)는 렌더가 정한다. */
41
+
42
+
43
+
44
+
45
45
  min-inline-size: calc(
46
46
  2px + 2 * var(--u-field-padding-inline, 0.6em) + var(--select-min-text, 4ch)
47
47
  + var(--_clear, 0) * (1em + var(--_target-pad)) + 1.25em
@@ -68,7 +68,7 @@ var styles = css`
68
68
  box-shadow: 0 0 0 1px var(--u-input-border-color-invalid, #C62828);
69
69
  }
70
70
 
71
- /* ===== Appearance: soft (중립 틴트 면) ===== */
71
+
72
72
  :host([appearance="soft"]) .container {
73
73
  border: none;
74
74
  border-radius: var(--u-field-radius, 0.25em) var(--u-field-radius, 0.25em) 0 0;
@@ -94,7 +94,7 @@ var styles = css`
94
94
  border-bottom-color: var(--u-input-border-color-invalid, #C62828);
95
95
  }
96
96
 
97
- /* ===== Appearance: underlined ===== */
97
+
98
98
  :host([appearance="underlined"]) .container {
99
99
  border: none;
100
100
  border-radius: var(--u-radius-none, 0);
@@ -122,7 +122,7 @@ var styles = css`
122
122
  border-bottom-color: var(--u-input-border-color-invalid, #C62828);
123
123
  }
124
124
 
125
- /* ===== Appearance: plain (외형 없음) ===== */
125
+
126
126
  :host([appearance="plain"]) .container {
127
127
  border: none;
128
128
  border-radius: var(--u-radius-none, 0);
@@ -134,8 +134,8 @@ var styles = css`
134
134
  :host([appearance="plain"]:not([readonly]):not(:disabled)) .container:focus-within {
135
135
  box-shadow: none;
136
136
  }
137
- /* 외형이 없어도 포커스는 보여야 한다(WCAG 2.4.7) — 쉬는 동안은 아무것도 그리지 않고, 포커스가
138
- 들어오면 링을 그린다. 깜박이는 캐럿만으로는 «어디에 포커스가 있는가» 를 알리기 어렵다. */
137
+
138
+
139
139
  :host([appearance="plain"]:not(:disabled)) .container:focus-within {
140
140
  outline: 2px solid var(--u-focus-ring-color, #1565C0);
141
141
  outline-offset: 2px;
@@ -144,7 +144,7 @@ var styles = css`
144
144
  .count {
145
145
  color: var(--u-txt-color-weak, #616161);
146
146
  line-height: 1.25;
147
- /* n / m 은 제자리에서 n 이 바뀐다 — 비례폭이면 선택할 때마다 라벨 줄이 흔들린다 */
147
+
148
148
  font-variant-numeric: tabular-nums;
149
149
  }
150
150
 
@@ -152,8 +152,8 @@ var styles = css`
152
152
  flex: 1;
153
153
  min-width: 0;
154
154
  line-height: 1.5;
155
- /* 비어 있어도(값 없음 · 플레이스홀더 없음) 한 줄 높이 — 종전에는 줄 상자가 없어 빈 선택이
156
- 값이 있는 선택보다, 그리고 같은 행의 u-input 보다 낮았고 라벨 기준선이 어긋났다. */
155
+
156
+
157
157
  min-block-size: 1.5em;
158
158
  white-space: nowrap;
159
159
  overflow: hidden;
@@ -163,8 +163,8 @@ var styles = css`
163
163
  color: var(--u-txt-color-weak, #616161);
164
164
  }
165
165
 
166
- /* chars — 표시 글자 요소의 폭을 N자로(렌더가 --_chars 를 준다). 고유 폭 계산에서 고른 값의 길이 대신 이 값이 쓰여
167
- 칸이 값마다 흔들리지 않고, 폭을 받은 칸에서는 flex: 1 이 그대로 채운다. 없으면 종전 auto. */
166
+
167
+
168
168
  .text-content,
169
169
  .chips-content {
170
170
  inline-size: var(--_chars, auto);
@@ -199,22 +199,22 @@ var styles = css`
199
199
  color: var(--u-icon-color-active, #1565C0);
200
200
  }
201
201
 
202
- /* 지우기 «x» — 글리프는 1em 그대로, 받는 영역만 24px(1.5em)로 넓힌다(WCAG 2.2 SC 2.5.8). 왼쪽은 자기 앞
203
- 간격을 패딩으로, 오른쪽은 뒤따르는 펼침 화살표(트리거의 일부인 장식 — 별도 타깃이 아니다)의 간격으로,
204
- 위아래는 컨테이너 여백(0.3em) 쪽으로 넓힌다. 음수 여백이라 배치·트리거 높이는 그대로다 — 트리거의 줄은
205
- 1em 이라 세로 패딩만 주면 트리거가 8px 커진다. */
202
+
203
+
204
+
205
+
206
206
  .suffix-item[role="button"] {
207
- /* 받는 여백(--_target-pad)은 컨테이너가 정한다 — u-input 과 같은 식: 글자 크기와 무관하게 ≥ 24px,
208
- 호스트 하한(--u-target-size)이 있으면 상자가 그 값. */
207
+
208
+
209
209
  box-sizing: content-box;
210
- /* 오른쪽은 펼침 화살표와 종전처럼 0.25em 만 맞댄다 — 글자가 작아 늘어난 폭은 왼쪽(값 글자 쪽, 타깃 아님)으로 넓힌다.
211
- 16px 에서는 P = 0.25em 이라 종전 배치와 같다. */
210
+
211
+
212
212
  margin: calc(-1 * var(--_target-pad)) -0.25em calc(-1 * var(--_target-pad)) calc(0.25em - var(--_target-pad));
213
213
  padding: var(--_target-pad);
214
214
  }
215
215
 
216
- /* 드롭다운 패널 — 옵션 텍스트가 길어도 팝오버가 앵커보다 넓어지지 않도록 고정 너비로
217
- 맞춘다(긴 텍스트는 UOption 자체의 ellipsis로 처리). */
216
+
217
+
218
218
  u-popover {
219
219
  width: var(--select-popover-width, var(--anchor-width, 100%));
220
220
  min-height: var(--select-popover-min-height);
@@ -228,7 +228,7 @@ var styles = css`
228
228
  overflow-y: auto;
229
229
  }
230
230
 
231
- /* 결과 0건 — 비어 있을 때는 자리를 차지하지 않는다(상태 영역은 늘 있어야 바뀐 문구가 읽힌다). */
231
+
232
232
  .no-matches:empty {
233
233
  display: none;
234
234
  }
@@ -247,7 +247,7 @@ var styles = css`
247
247
  }
248
248
  .search-input input {
249
249
  all: unset;
250
- /* 포인터를 받는 것은 이 입력이다 — 글자 크기와 무관하게 24px 이상(WCAG 2.5.8). */
250
+
251
251
  min-block-size: max(24px, var(--u-target-size, 0px));
252
252
  flex: 1;
253
253
  min-width: 0;
@@ -257,16 +257,16 @@ var styles = css`
257
257
  color: var(--u-txt-color-weak, #616161);
258
258
  }
259
259
 
260
- /* === Size — 버튼과 같은 세 단. md 는 주변 글자 크기를 상속하지 않는다(버튼과 높이가 갈렸다). === */
260
+
261
261
  :host {
262
262
  font-size: var(--u-density, 14px);
263
263
  }
264
264
  :host([size="sm"]) {
265
- /* 밀도 단에 비례 — 기본 밀도 14px 에서 12px. */
265
+
266
266
  font-size: calc(var(--u-density, 14px) * 6 / 7);
267
267
  }
268
268
  :host([size="lg"]) {
269
- /* 밀도 단에 비례 — 기본 밀도 14px 에서 16px. */
269
+
270
270
  font-size: calc(var(--u-density, 14px) * 8 / 7);
271
271
  }
272
272
  `;
@@ -16,7 +16,7 @@ var styles = css`
16
16
  animation: none;
17
17
  }
18
18
 
19
- /* 모양 설정 */
19
+
20
20
  :host([shape="rectangle"]) {
21
21
  border-radius: var(--u-radius-md, 4px);
22
22
  }
@@ -27,7 +27,7 @@ var styles = css`
27
27
  border-radius: var(--u-radius-pill, 9999px);
28
28
  }
29
29
 
30
- /* 애니메이션 효과 설정 */
30
+
31
31
  :host([effect="pulse"]) {
32
32
  animation: pulse 1.5s ease-in-out infinite;
33
33
  }
@@ -52,10 +52,10 @@ var styles = css`
52
52
  transform: translateX(-100%);
53
53
  }
54
54
 
55
- /* === 여러 줄(lines) ===
56
- 기본(단일 막대)에서는 :host 자신이 막대다 — 그 모양을 바꾸지 않는다. lines 가 붙었을
57
- 때만 호스트가 «막대들의 통»이 되고, 색·모양·효과는 각 .line 이 받는다.
58
- ⚠마지막 줄을 짧게 만드는 것은 장식이 아니라 신호다 — 문단의 끝을 그렇게 읽는다. */
55
+
56
+
57
+
58
+
59
59
  :host([lines]) {
60
60
  display: flex;
61
61
  flex-direction: column;
@@ -97,16 +97,16 @@ var styles = css`
97
97
  transform: translateX(-100%);
98
98
  }
99
99
 
100
- /* ★**장식만 멈춘다.**
101
- 시트의 reduce 규칙은 지속시간 축(--u-duration-*)을 0 으로 누르는 방식이라 animation
102
- 속성을 직접 쓰는 이 자리에는 닿지 않는다 — 그 규칙이 animation: none 으로 강제하지
103
- 않는 것은 의도다(로딩 스피너처럼 «회전 자체가 신호»인 움직임까지 죽이면 진행 여부를
104
- 알 수 없다).
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
105
109
 
106
- 스켈레톤은 다르다: **기본값이 이미 animation: none** 이고, 정지한 회색 블록이
107
- «로딩 중»을 그대로 나른다. 즉 pulse/shimmer 는 **opt-in 장식**이고, WCAG 2.2.2 의
108
- «움직임이 본질인 것» 예외에 해당하지 않는다.
109
- ⇒ 여기서만 멈춘다. u-spinner 는 건드리지 않는다. */
110
110
  @media (prefers-reduced-motion: reduce) {
111
111
  :host([effect="pulse"]),
112
112
  :host([effect="shimmer"])::after,
@@ -21,9 +21,9 @@ var styles = css`
21
21
  font-family: var(--u-font-base);
22
22
  }
23
23
 
24
- /* 라이브러리가 **스스로 그리는 숫자**는 고정폭 자릿수로 낸다.
25
- 둘 다 제자리에서 값이 바뀌는 자리라 비례폭이면 드래그 중 글자가 흔들린다.
26
- ★툴팁은 슬롯을 건너 상속으로 닿는다 — font-variant-numeric 은 상속 프로퍼티다. */
24
+
25
+
26
+
27
27
  [slot="label-aside"],
28
28
  u-tooltip[part="thumb-tooltip"] {
29
29
  font-variant-numeric: tabular-nums;
@@ -31,10 +31,10 @@ var styles = css`
31
31
 
32
32
  .container {
33
33
  position: relative;
34
- /* ⚠실제 포인터 타깃은 thumb 이 아니라 이 컨테이너다 — pointerdown 이 여기 걸려 있고
35
- 트랙 어디를 눌러도 값이 바뀐다. WCAG 2.2 SC 2.5.8 의 24px 하한은 그래서 여기에도 든다.
36
- 보이는 트랙(6px)·thumb 치수는 그대로이고, 늘어나는 것은 «잡히는 높이»뿐이다.
37
- ⚠주석에 백틱을 쓰지 말 것 — 태그드 템플릿이 그 자리에서 끝난다. */
34
+
35
+
36
+
37
+
38
38
  height: max(var(--slider-thumb-size), 24px, var(--u-target-size, 0px));
39
39
  touch-action: none;
40
40
  user-select: none;
@@ -68,15 +68,15 @@ var styles = css`
68
68
  top: 50%;
69
69
  transform: translate(-50%, -50%);
70
70
  outline: none;
71
- /* 🔴히트·포커스 영역만 24px 하한으로 넓힌다 — 보이는 원은 .thumb-content 가 그대로 그린다
72
- (WCAG 2.2 SC 2.5.8). 박스가 커져도 중심은 그대로다: 콘텐츠를 가운데 놓으므로
73
- left:% + translate(-50%) 가 가리키는 점이 곧 보이는 원의 중심이다.
74
- ⚠**여백(padding)으로 넓히지 않는다** — 24px 은 여백 스케일의 2xl 과 같은 값이라
75
- 「축 B 는 스케일 리터럴을 여백에 쓰지 않는다」 규칙(space-scale)에 걸리고, 그렇다고
76
- --u-space-2xl 로 배선하면 ***접근성 하한이 여백 스케일을 손볼 때 따라 움직인다.***
77
- 하한은 여백이 아니므로 여백이 아닌 자리에 적는다.
78
- ⚠툴팁은 이 박스의 레이아웃에 참여하지 않는다(플로팅이라 흐름 밖) — 그래서 grid 로
79
- 바꿔도 콘텐츠와 겹치지 않는다. */
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
80
  display: grid;
81
81
  place-items: center;
82
82
  min-width: max(24px, var(--u-target-size, 0px));
@@ -105,7 +105,7 @@ var styles = css`
105
105
  box-shadow: 0 0 0 2px var(--u-focus-ring-color, #1565C0);
106
106
  }
107
107
 
108
- /* 슬롯에 커스텀 엘리먼트가 들어오면 기본 스타일 제거 */
108
+
109
109
  .thumb-content:has(::slotted(*)) {
110
110
  width: auto;
111
111
  height: auto;
@@ -8,15 +8,15 @@ var styles = css`
8
8
  --spinner-indicator-speed: 2s;
9
9
  }
10
10
 
11
- /* Color variants */
12
- /* 역할 축 — 스피너는 **바탕 위의 그래픽**이므로 면 단(-color)이 아니라 -strong 을
13
- 읽는다. 다크에서 -color 는 바탕 위 3.07 까지 떨어진다(Cycle 141 실측). */
11
+
12
+
13
+
14
14
  :host([color="primary"]) { --spinner-indicator-color: var(--u-primary-color-strong, #1565C0); }
15
15
  :host([color="info"]) { --spinner-indicator-color: var(--u-info-color-strong, #1565C0); }
16
16
  :host([color="success"]) { --spinner-indicator-color: var(--u-success-color-strong, #1B5E20); }
17
17
  :host([color="warning"]) { --spinner-indicator-color: var(--u-warning-color-strong, #8A4A00); }
18
18
  :host([color="danger"]) { --spinner-indicator-color: var(--u-danger-color-strong, #C62828); }
19
- /* neutral — 무채색(모든 컴포넌트에서 같은 뜻). 바탕 위 그래픽이라 3단 글자색(4.6:1)을 읽는다. */
19
+
20
20
  :host([color="neutral"]) { --spinner-indicator-color: var(--u-txt-color-weaker, #757575); }
21
21
 
22
22
  :host([color="blue"]) { --spinner-indicator-color: var(--u-blue-600, #1E88E5); }
@@ -3,15 +3,15 @@ import { css } from "lit";
3
3
  var styles = css`
4
4
  :host {
5
5
  --splitter-size: 4px;
6
- /* 호스트 하한(--u-target-size)이 있으면 그 값 — 미설정이면 24px. */
6
+
7
7
  --splitter-hit-size: max(24px, var(--u-target-size, 0px));
8
8
  --splitter-color: var(--u-neutral-200, #EEEEEE);
9
9
  --splitter-color-hover: var(--u-primary-color-weaker, #64B5F6);
10
10
  --splitter-color-active: var(--u-primary-color-strong, #1565C0);
11
11
 
12
- /* The handle's box: the larger of the visible line and the pointer area. It takes real
13
- layout space, so it never overlaps a panel — each panel is a scroll container and its
14
- scrollbar sits right against the handle. */
12
+
13
+
14
+
15
15
  --_splitter-box: max(var(--splitter-size), var(--splitter-hit-size));
16
16
  }
17
17
 
@@ -34,7 +34,7 @@ var styles = css`
34
34
  opacity: 0.4;
35
35
  }
36
36
 
37
- /* Splitter — the box receives the pointer; the line inside it is what you see */
37
+
38
38
  .splitter {
39
39
  position: relative;
40
40
  z-index: 1;
@@ -59,8 +59,8 @@ var styles = css`
59
59
  .splitter:focus-visible::before {
60
60
  background-color: var(--splitter-color-active);
61
61
  }
62
- /* The handle spans the host's full cross axis and the host clips overflow, so the base
63
- focus ring (drawn 2px outside) would lose two of its sides. Draw it inside the box. */
62
+
63
+
64
64
  .splitter:focus-visible {
65
65
  outline-offset: -2px;
66
66
  }
@@ -83,7 +83,7 @@ var styles = css`
83
83
  height: var(--splitter-size);
84
84
  }
85
85
 
86
- /* Ghost Splitter (lazy) */
86
+
87
87
  .splitter-ghost {
88
88
  display: none;
89
89
  position: absolute;
@@ -95,7 +95,7 @@ var styles = css`
95
95
  .splitter-ghost[active] {
96
96
  display: block;
97
97
  }
98
- /* The ghost is placed at the box's leading edge; the margin centres it on the line. */
98
+
99
99
  :host([orientation="horizontal"]) .splitter-ghost {
100
100
  top: 0;
101
101
  width: var(--splitter-size);
@@ -3,8 +3,8 @@ import { css } from "lit";
3
3
  var styles = css`
4
4
  :host {
5
5
  display: block;
6
- /* 위치 지정 — 안의 숨김 문구(절대 위치 · 1px)의 포함 블록이 이 요소가 된다. 없으면 포함 블록이 문서 전체라 호스트의
7
- overflow 감싸개를 건너뛰고 그 정적 위치에서 문서를 늘렸다(위치 지정되지 않은 스크롤 상자 안에서). */
6
+
7
+
8
8
  position: relative;
9
9
  font-size: var(--u-text-label-size, 13px);
10
10
  line-height: var(--u-text-label-leading, 1.5);
@@ -57,7 +57,7 @@ var styles = css`
57
57
  color: var(--u-txt-color-weaker, #757575);
58
58
  }
59
59
 
60
- /* 완료 — 지나온 색의 채운 체크, 이름은 한 단 물러선다 */
60
+
61
61
  .step[data-status="complete"] {
62
62
  color: var(--u-txt-color-weak, #616161);
63
63
  }
@@ -67,7 +67,7 @@ var styles = css`
67
67
  color: var(--u-bg-color, #FFFFFF);
68
68
  }
69
69
 
70
- /* 지금 — 굵은 고리, 이름은 본문 잉크 */
70
+
71
71
  .step[data-status="current"] {
72
72
  color: var(--u-txt-color, #212121);
73
73
  font-weight: var(--u-text-subtitle-weight, 600);
@@ -76,7 +76,7 @@ var styles = css`
76
76
  border: calc(var(--steps-marker-size, 18px) * 0.28) solid var(--u-txt-color, #212121);
77
77
  }
78
78
 
79
- /* 보류 — 경고 면이라 막힌 단계가 이웃보다 먼저 읽힌다 */
79
+
80
80
  .step[data-status="hold"] {
81
81
  color: var(--u-warning-color-strong, #8A4A00);
82
82
  font-weight: var(--u-text-subtitle-weight, 600);
@@ -11,9 +11,9 @@ var styles = css`
11
11
  --switch-thumb-color: #fff;
12
12
  --switch-thumb-color-checked: #fff;
13
13
  --switch-radius: 9999px;
14
- /* ★로컬 축이지만 **기본값은 공용 축에서 파생**한다 — 그러지 않으면
15
- prefers-reduced-motion 이 이 컴포넌트만 비껴간다(축을 경유해야 함께 멈춘다).
16
- 소비자가 --switch-duration 을 덮으면 그 값이 이긴다(로컬 축의 존재 이유). */
14
+
15
+
16
+
17
17
  --switch-duration: var(--u-duration-normal, 220ms);
18
18
  --switch-move-width: calc(var(--switch-track-width) - var(--switch-thumb-size) - var(--switch-thumb-offset) * 2);
19
19
  }
@@ -21,11 +21,11 @@ var styles = css`
21
21
  :host {
22
22
  display: inline-flex;
23
23
  flex-direction: column;
24
- /* WCAG 2.2 SC 2.5.8 — 트랙(--switch-track-height)의 시각 치수는 그대로 두고
25
- 포인터 타깃만 24px 하한을 갖는다. UCheckbox 와 같은 처방이다.
26
- ⚠이 주석에 백틱을 쓰면 css 템플릿이 그 자리에서 끝난다(sweep 의 「css 백틱」). */
24
+
25
+
26
+
27
27
  min-block-size: max(24px, var(--u-target-size, 0px));
28
- /* 호스트 하한(--u-target-size, 미설정 = 0)이 있으면 폭도 — 라벨 없는 단독 컨트롤이 그 값보다 좁다. */
28
+
29
29
  min-inline-size: var(--u-target-size, 0px);
30
30
  justify-content: center;
31
31
  color: var(--u-txt-color, #212121);
@@ -35,7 +35,7 @@ var styles = css`
35
35
  cursor: pointer;
36
36
  }
37
37
 
38
- /* === 상태 스타일 === */
38
+
39
39
  :host(:disabled) {
40
40
  opacity: 0.6;
41
41
  cursor: not-allowed;
@@ -58,7 +58,7 @@ var styles = css`
58
58
  cursor: inherit;
59
59
  }
60
60
 
61
- /* === 네이티브 input === */
61
+
62
62
  input {
63
63
  position: absolute;
64
64
  opacity: 0;
@@ -70,7 +70,7 @@ var styles = css`
70
70
  0 0 0 3px color-mix(in srgb, var(--u-focus-ring-color, #1565C0) 22%, transparent);
71
71
  }
72
72
 
73
- /* === 트랙 === */
73
+
74
74
  .track {
75
75
  position: relative;
76
76
  flex-shrink: 0;
@@ -86,7 +86,7 @@ var styles = css`
86
86
  background: var(--switch-track-color-checked);
87
87
  }
88
88
 
89
- /* === 트랙 인디케이터(슬롯) === */
89
+
90
90
  .track-checked,
91
91
  .track-unchecked {
92
92
  position: absolute;
@@ -121,7 +121,7 @@ var styles = css`
121
121
  opacity: 0;
122
122
  }
123
123
 
124
- /* === 핸들 === */
124
+
125
125
  .thumb {
126
126
  position: absolute;
127
127
  z-index: 1;
@@ -144,7 +144,7 @@ var styles = css`
144
144
  background: var(--switch-thumb-color-checked);
145
145
  }
146
146
 
147
- /* === 핸들 인디케이터(슬롯) === */
147
+
148
148
  .thumb-checked,
149
149
  .thumb-unchecked {
150
150
  position: absolute;
@@ -16,14 +16,14 @@ var styles = css`
16
16
  --tab-padding-inline: 0.75em;
17
17
  }
18
18
 
19
- /* 여백은 내부 요소가 진다 — :host 에 두면 소비 앱 CSS 리셋에 지워진다. */
19
+
20
20
  .base {
21
21
  box-sizing: border-box;
22
22
  width: 100%;
23
23
  display: inline-flex;
24
24
  flex-direction: row;
25
25
  align-items: center;
26
- padding: var(--tab-padding-block) var(--tab-padding-inline);\n /* 호스트 하한(--u-target-size, 미설정 = 0). */\n min-height: var(--u-target-size, 0px);
26
+ padding: var(--tab-padding-block) var(--tab-padding-inline);\n \n min-height: var(--u-target-size, 0px);
27
27
  border-radius: inherit;
28
28
  }
29
29
 
@@ -79,7 +79,7 @@ var styles = css`
79
79
  overflow: auto;
80
80
  }
81
81
 
82
- /* Appearance: line */
82
+
83
83
 
84
84
  :host([appearance="line"]) ::slotted(u-tab[active]) {
85
85
  position: relative;
@@ -131,7 +131,7 @@ var styles = css`
131
131
  bottom: 0;
132
132
  }
133
133
 
134
- /* Appearance: card */
134
+
135
135
 
136
136
  :host([appearance="card"]) ::slotted(u-tab) {
137
137
  background-color: var(--u-neutral-100, #F5F5F5);
@@ -173,7 +173,7 @@ var styles = css`
173
173
  border-left: none;
174
174
  }
175
175
 
176
- /* Appearance: pill */
176
+
177
177
 
178
178
  :host([appearance="pill"]) .nav {
179
179
  gap: 0.25em;
@@ -191,7 +191,7 @@ var styles = css`
191
191
  box-shadow: var(--u-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.04));
192
192
  }
193
193
 
194
- /* Appearance: plain */
194
+
195
195
 
196
196
  :host([appearance="plain"]) .nav {
197
197
  gap: 0.25em;