@x-plat/design-system 0.15.4 → 0.15.6

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 (60) hide show
  1. package/README.md +3 -3
  2. package/dist/components/Accordion/index.css +2 -0
  3. package/dist/components/Alert/index.css +2 -0
  4. package/dist/components/AutoResizeTextArea/index.css +2 -1
  5. package/dist/components/Avatar/index.css +2 -0
  6. package/dist/components/Badge/index.css +2 -0
  7. package/dist/components/Box/index.css +2 -0
  8. package/dist/components/Breadcrumb/index.css +2 -0
  9. package/dist/components/Button/index.css +2 -0
  10. package/dist/components/Calendar/index.css +2 -0
  11. package/dist/components/CardTab/index.css +2 -0
  12. package/dist/components/Chart/index.css +2 -0
  13. package/dist/components/ChatInput/index.css +4 -2
  14. package/dist/components/CheckBox/index.css +2 -0
  15. package/dist/components/Chip/index.css +2 -0
  16. package/dist/components/DatePicker/index.css +2 -1
  17. package/dist/components/Drawer/index.css +2 -0
  18. package/dist/components/EmptyState/index.css +2 -0
  19. package/dist/components/FieldMessage/index.css +2 -0
  20. package/dist/components/FileUpload/index.css +2 -0
  21. package/dist/components/HtmlTypeWriter/index.css +2 -0
  22. package/dist/components/ImageSelector/index.css +2 -0
  23. package/dist/components/Input/index.css +2 -1
  24. package/dist/components/Link/index.css +2 -0
  25. package/dist/components/LinkButton/index.css +2 -0
  26. package/dist/components/NotificationBadge/index.css +2 -0
  27. package/dist/components/Pagination/index.css +2 -0
  28. package/dist/components/Progress/index.css +2 -0
  29. package/dist/components/Radio/index.css +2 -0
  30. package/dist/components/Select/index.css +3 -2
  31. package/dist/components/Stat/index.css +2 -0
  32. package/dist/components/Steps/index.css +2 -0
  33. package/dist/components/Switch/index.css +2 -0
  34. package/dist/components/Tab/index.css +2 -0
  35. package/dist/components/Table/index.css +2 -0
  36. package/dist/components/Tag/index.css +2 -0
  37. package/dist/components/TextArea/index.css +4 -1
  38. package/dist/components/TimePicker/index.css +2 -1
  39. package/dist/components/Toast/index.css +2 -0
  40. package/dist/components/Tooltip/index.css +2 -0
  41. package/dist/components/Video/index.css +2 -0
  42. package/dist/components/index.css +13 -7
  43. package/dist/index.cjs +2 -1
  44. package/dist/index.css +13 -7
  45. package/dist/index.js +2 -1
  46. package/dist/layout/Grid/FullGrid/index.css +2 -0
  47. package/dist/layout/Grid/FullScreen/index.css +2 -0
  48. package/dist/layout/Grid/Item/index.css +2 -0
  49. package/dist/layout/Grid/index.css +2 -0
  50. package/dist/layout/Header/index.cjs +2 -1
  51. package/dist/layout/Header/index.d.cts +10 -0
  52. package/dist/layout/Header/index.d.ts +10 -0
  53. package/dist/layout/Header/index.js +2 -1
  54. package/dist/layout/index.cjs +2 -1
  55. package/dist/layout/index.css +2 -0
  56. package/dist/layout/index.js +2 -1
  57. package/guidelines/AGENT_PROMPT.md +2 -2
  58. package/guidelines/composition/layout.md +6 -3
  59. package/guidelines/setup.md +1 -1
  60. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  XPLAT UI 디자인 시스템. React 컴포넌트, 레이아웃, 토큰 시스템 제공.
4
4
 
5
- `@x-plat/tokens-default` 를 기본 브랜드로 사용하며, 다른 브랜드 토큰 패키지(cbio / daibee-ir / haetbitgil 등) 와 조합 가능.
5
+ `@x-plat/tokens-default` 를 기본 브랜드로 사용하며, 다른 브랜드 토큰 패키지(cbio / daibee-ir / haetbitgil / zium 등) 와 조합 가능.
6
6
 
7
7
  ## 요구 사항
8
8
 
@@ -34,7 +34,7 @@ import { Button, Modal, ToastProvider } from "@x-plat/design-system/components";
34
34
 
35
35
  <ToastProvider position="top-right">
36
36
  <Layout
37
- header={<Header logo={<img src="/logo.svg" />} />}
37
+ header={<Header leftContent={<img src="/logo.svg" />} />}
38
38
  sideBar={<SideBar>...</SideBar>}
39
39
  >
40
40
  <FullGrid>
@@ -46,7 +46,7 @@ import { Button, Modal, ToastProvider } from "@x-plat/design-system/components";
46
46
  </ToastProvider>
47
47
  ```
48
48
 
49
- ### 3. 다른 브랜드 적용 (cbio / haetbitgil / daibee-ir)
49
+ ### 3. 다른 브랜드 적용 (cbio / haetbitgil / daibee-ir / zium)
50
50
 
51
51
  ```tsx
52
52
  import "@x-plat/design-system/style.css"; // 1) 컴포넌트 + default 토큰
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Accordion/accordion.scss */
2
4
  .lib-xplat-accordion {
3
5
  contain: content;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Alert/alert.scss */
2
4
  .lib-xplat-alert {
3
5
  width: 100%;
@@ -72,10 +72,11 @@
72
72
  }
73
73
  .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:hover:not(.disabled):not(:focus-within) {
74
74
  border-color: var(--semantic-border-tertiary);
75
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
75
76
  }
76
77
  .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:focus-within {
77
78
  border-color: var(--semantic-interaction-focus-ring);
78
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
79
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
79
80
  outline: 2px solid transparent;
80
81
  outline-offset: 2px;
81
82
  }
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Avatar/avatar.scss */
2
4
  .lib-xplat-avatar {
3
5
  display: inline-flex;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/NotificationBadge/notificationBadge.scss */
2
4
  .lib-xplat-notification-badge {
3
5
  position: relative;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Box/box.scss */
2
4
  .lib-xplat-box {
3
5
  contain: layout style;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Breadcrumb/breadcrumb.scss */
2
4
  .lib-xplat-breadcrumb {
3
5
  width: 100%;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Button/button.scss */
2
4
  .lib-xplat-button {
3
5
  width: 100%;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Calendar/calendar.scss */
2
4
  .lib-xplat-calendar {
3
5
  contain: content;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/CardTab/cardTab.scss */
2
4
  .lib-xplat-card-tab {
3
5
  width: 100%;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Tooltip/tooltip.scss */
2
4
  .lib-xplat-tooltip-trigger {
3
5
  display: inline-flex;
@@ -150,10 +150,11 @@
150
150
  }
151
151
  .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:hover:not(.disabled):not(:focus-within) {
152
152
  border-color: var(--semantic-border-tertiary);
153
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
153
154
  }
154
155
  .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:focus-within {
155
156
  border-color: var(--semantic-interaction-focus-ring);
156
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
157
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
157
158
  outline: 2px solid transparent;
158
159
  outline-offset: 2px;
159
160
  }
@@ -209,10 +210,11 @@
209
210
  }
210
211
  .lib-xplat-chat-input:hover:not(.disabled):not(:focus-within) {
211
212
  border-color: var(--semantic-border-tertiary);
213
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
212
214
  }
213
215
  .lib-xplat-chat-input:focus-within {
214
216
  border-color: var(--semantic-interaction-focus-ring);
215
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
217
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
216
218
  outline: 2px solid transparent;
217
219
  outline-offset: 2px;
218
220
  }
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/FieldMessage/fieldMessage.scss */
2
4
  .lib-xplat-field {
3
5
  display: flex;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Chip/chip.scss */
2
4
  .lib-xplat-chip {
3
5
  border-radius: var(--spacing-radius-full);
@@ -179,10 +179,11 @@
179
179
  }
180
180
  .lib-xplat-input-wrap .lib-xplat-input:hover:not(.disabled):not(:focus-within) {
181
181
  border-color: var(--semantic-border-tertiary);
182
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
182
183
  }
183
184
  .lib-xplat-input-wrap .lib-xplat-input:focus-within {
184
185
  border-color: var(--semantic-interaction-focus-ring);
185
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
186
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
186
187
  outline: 2px solid transparent;
187
188
  outline-offset: 2px;
188
189
  }
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Drawer/drawer.scss */
2
4
  .lib-xplat-drawer-overlay {
3
5
  position: fixed;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/EmptyState/emptystate.scss */
2
4
  .lib-xplat-empty-state {
3
5
  width: 100%;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/FieldMessage/fieldMessage.scss */
2
4
  .lib-xplat-field {
3
5
  display: flex;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/FieldMessage/fieldMessage.scss */
2
4
  .lib-xplat-field {
3
5
  display: flex;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/HtmlTypeWriter/htmlTypeWriter.scss */
2
4
  .lib-xplat-htmlTypewriter {
3
5
  width: 100%;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/FieldMessage/fieldMessage.scss */
2
4
  .lib-xplat-field {
3
5
  display: flex;
@@ -72,10 +72,11 @@
72
72
  }
73
73
  .lib-xplat-input-wrap .lib-xplat-input:hover:not(.disabled):not(:focus-within) {
74
74
  border-color: var(--semantic-border-tertiary);
75
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
75
76
  }
76
77
  .lib-xplat-input-wrap .lib-xplat-input:focus-within {
77
78
  border-color: var(--semantic-interaction-focus-ring);
78
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
79
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
79
80
  outline: 2px solid transparent;
80
81
  outline-offset: 2px;
81
82
  }
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Link/link.scss */
2
4
  .lib-xplat-link {
3
5
  color: var(--semantic-text-link);
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Button/button.scss */
2
4
  .lib-xplat-button {
3
5
  width: 100%;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/NotificationBadge/notificationBadge.scss */
2
4
  .lib-xplat-notification-badge {
3
5
  position: relative;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Pagination/pagination.scss */
2
4
  .lib-xplat-pagination {
3
5
  display: inline-flex;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Progress/progress.scss */
2
4
  .lib-xplat-progress {
3
5
  display: flex;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/FieldMessage/fieldMessage.scss */
2
4
  .lib-xplat-field {
3
5
  display: flex;
@@ -105,13 +105,14 @@
105
105
  }
106
106
  .lib-xplat-select .select-trigger:hover:not(.disabled) {
107
107
  border-color: var(--semantic-border-tertiary);
108
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
108
109
  }
109
110
  .lib-xplat-select .select-trigger:active:not(.disabled) {
110
111
  border-color: var(--semantic-interaction-focus-ring);
111
112
  }
112
113
  .lib-xplat-select .select-trigger:focus-visible {
113
114
  border-color: var(--semantic-interaction-focus-ring);
114
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
115
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
115
116
  outline: 2px solid transparent;
116
117
  outline-offset: 2px;
117
118
  }
@@ -184,7 +185,7 @@
184
185
  }
185
186
  .lib-xplat-select-content .select-search > input:focus {
186
187
  border-color: var(--semantic-interaction-focus-ring);
187
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
188
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
188
189
  outline: 2px solid transparent;
189
190
  outline-offset: 2px;
190
191
  }
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Stat/stat.scss */
2
4
  .lib-xplat-stat {
3
5
  display: flex;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Steps/steps.scss */
2
4
  .lib-xplat-steps {
3
5
  display: flex;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/FieldMessage/fieldMessage.scss */
2
4
  .lib-xplat-field {
3
5
  display: flex;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Tab/tab.scss */
2
4
  .lib-xplat-tab {
3
5
  position: relative;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Table/table.scss */
2
4
  .lib-xplat-table-wrapper {
3
5
  contain: content;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Tag/tag.scss */
2
4
  .lib-xplat-tag {
3
5
  display: inline-flex;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/FieldMessage/fieldMessage.scss */
2
4
  .lib-xplat-field {
3
5
  display: flex;
@@ -93,10 +95,11 @@
93
95
  }
94
96
  .lib-xplat-textarea-wrap .lib-xplat-textarea:hover:not(.disabled):not(:focus) {
95
97
  border-color: var(--semantic-border-tertiary);
98
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
96
99
  }
97
100
  .lib-xplat-textarea-wrap .lib-xplat-textarea:focus {
98
101
  border-color: var(--semantic-interaction-focus-ring);
99
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
102
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
100
103
  outline: 2px solid transparent;
101
104
  outline-offset: 2px;
102
105
  }
@@ -74,10 +74,11 @@
74
74
  }
75
75
  .lib-xplat-time-picker .time-picker-trigger:hover {
76
76
  border-color: var(--semantic-border-tertiary);
77
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
77
78
  }
78
79
  .lib-xplat-time-picker .time-picker-trigger:focus-visible {
79
80
  border-color: var(--semantic-interaction-focus-ring);
80
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
81
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
81
82
  outline: 2px solid transparent;
82
83
  outline-offset: 2px;
83
84
  }
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Toast/toast.scss */
2
4
  .lib-xplat-toast-container {
3
5
  position: fixed;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Tooltip/tooltip.scss */
2
4
  .lib-xplat-tooltip-trigger {
3
5
  display: inline-flex;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/components/Video/video.scss */
2
4
  .lib-xplat-video {
3
5
  position: relative;
@@ -1507,10 +1507,11 @@
1507
1507
  }
1508
1508
  .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:hover:not(.disabled):not(:focus-within) {
1509
1509
  border-color: var(--semantic-border-tertiary);
1510
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
1510
1511
  }
1511
1512
  .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:focus-within {
1512
1513
  border-color: var(--semantic-interaction-focus-ring);
1513
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
1514
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
1514
1515
  outline: 2px solid transparent;
1515
1516
  outline-offset: 2px;
1516
1517
  }
@@ -2464,10 +2465,11 @@
2464
2465
  }
2465
2466
  .lib-xplat-chat-input:hover:not(.disabled):not(:focus-within) {
2466
2467
  border-color: var(--semantic-border-tertiary);
2468
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
2467
2469
  }
2468
2470
  .lib-xplat-chat-input:focus-within {
2469
2471
  border-color: var(--semantic-interaction-focus-ring);
2470
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
2472
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
2471
2473
  outline: 2px solid transparent;
2472
2474
  outline-offset: 2px;
2473
2475
  }
@@ -2700,10 +2702,11 @@
2700
2702
  }
2701
2703
  .lib-xplat-input-wrap .lib-xplat-input:hover:not(.disabled):not(:focus-within) {
2702
2704
  border-color: var(--semantic-border-tertiary);
2705
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
2703
2706
  }
2704
2707
  .lib-xplat-input-wrap .lib-xplat-input:focus-within {
2705
2708
  border-color: var(--semantic-interaction-focus-ring);
2706
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
2709
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
2707
2710
  outline: 2px solid transparent;
2708
2711
  outline-offset: 2px;
2709
2712
  }
@@ -4436,13 +4439,14 @@
4436
4439
  }
4437
4440
  .lib-xplat-select .select-trigger:hover:not(.disabled) {
4438
4441
  border-color: var(--semantic-border-tertiary);
4442
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
4439
4443
  }
4440
4444
  .lib-xplat-select .select-trigger:active:not(.disabled) {
4441
4445
  border-color: var(--semantic-interaction-focus-ring);
4442
4446
  }
4443
4447
  .lib-xplat-select .select-trigger:focus-visible {
4444
4448
  border-color: var(--semantic-interaction-focus-ring);
4445
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
4449
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
4446
4450
  outline: 2px solid transparent;
4447
4451
  outline-offset: 2px;
4448
4452
  }
@@ -4515,7 +4519,7 @@
4515
4519
  }
4516
4520
  .lib-xplat-select-content .select-search > input:focus {
4517
4521
  border-color: var(--semantic-interaction-focus-ring);
4518
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
4522
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
4519
4523
  outline: 2px solid transparent;
4520
4524
  outline-offset: 2px;
4521
4525
  }
@@ -5575,10 +5579,11 @@
5575
5579
  }
5576
5580
  .lib-xplat-textarea-wrap .lib-xplat-textarea:hover:not(.disabled):not(:focus) {
5577
5581
  border-color: var(--semantic-border-tertiary);
5582
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
5578
5583
  }
5579
5584
  .lib-xplat-textarea-wrap .lib-xplat-textarea:focus {
5580
5585
  border-color: var(--semantic-interaction-focus-ring);
5581
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
5586
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
5582
5587
  outline: 2px solid transparent;
5583
5588
  outline-offset: 2px;
5584
5589
  }
@@ -5609,10 +5614,11 @@
5609
5614
  }
5610
5615
  .lib-xplat-time-picker .time-picker-trigger:hover {
5611
5616
  border-color: var(--semantic-border-tertiary);
5617
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
5612
5618
  }
5613
5619
  .lib-xplat-time-picker .time-picker-trigger:focus-visible {
5614
5620
  border-color: var(--semantic-interaction-focus-ring);
5615
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
5621
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
5616
5622
  outline: 2px solid transparent;
5617
5623
  outline-offset: 2px;
5618
5624
  }
package/dist/index.cjs CHANGED
@@ -12543,12 +12543,13 @@ var Item_default = GridItem;
12543
12543
  // src/layout/Header/Header.tsx
12544
12544
  var import_jsx_runtime359 = require("react/jsx-runtime");
12545
12545
  var Header = ({
12546
+ leftContent,
12546
12547
  logo,
12547
12548
  centerContent,
12548
12549
  rightContent
12549
12550
  }) => {
12550
12551
  return /* @__PURE__ */ (0, import_jsx_runtime359.jsxs)("div", { className: "lib-xplat-layout-header", children: [
12551
- /* @__PURE__ */ (0, import_jsx_runtime359.jsx)("div", { children: logo }),
12552
+ /* @__PURE__ */ (0, import_jsx_runtime359.jsx)("div", { children: leftContent ?? logo }),
12552
12553
  /* @__PURE__ */ (0, import_jsx_runtime359.jsx)("div", { children: centerContent }),
12553
12554
  /* @__PURE__ */ (0, import_jsx_runtime359.jsx)("div", { children: rightContent })
12554
12555
  ] });
package/dist/index.css CHANGED
@@ -1507,10 +1507,11 @@
1507
1507
  }
1508
1508
  .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:hover:not(.disabled):not(:focus-within) {
1509
1509
  border-color: var(--semantic-border-tertiary);
1510
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
1510
1511
  }
1511
1512
  .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:focus-within {
1512
1513
  border-color: var(--semantic-interaction-focus-ring);
1513
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
1514
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
1514
1515
  outline: 2px solid transparent;
1515
1516
  outline-offset: 2px;
1516
1517
  }
@@ -2464,10 +2465,11 @@
2464
2465
  }
2465
2466
  .lib-xplat-chat-input:hover:not(.disabled):not(:focus-within) {
2466
2467
  border-color: var(--semantic-border-tertiary);
2468
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
2467
2469
  }
2468
2470
  .lib-xplat-chat-input:focus-within {
2469
2471
  border-color: var(--semantic-interaction-focus-ring);
2470
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
2472
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
2471
2473
  outline: 2px solid transparent;
2472
2474
  outline-offset: 2px;
2473
2475
  }
@@ -2700,10 +2702,11 @@
2700
2702
  }
2701
2703
  .lib-xplat-input-wrap .lib-xplat-input:hover:not(.disabled):not(:focus-within) {
2702
2704
  border-color: var(--semantic-border-tertiary);
2705
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
2703
2706
  }
2704
2707
  .lib-xplat-input-wrap .lib-xplat-input:focus-within {
2705
2708
  border-color: var(--semantic-interaction-focus-ring);
2706
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
2709
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
2707
2710
  outline: 2px solid transparent;
2708
2711
  outline-offset: 2px;
2709
2712
  }
@@ -4436,13 +4439,14 @@
4436
4439
  }
4437
4440
  .lib-xplat-select .select-trigger:hover:not(.disabled) {
4438
4441
  border-color: var(--semantic-border-tertiary);
4442
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
4439
4443
  }
4440
4444
  .lib-xplat-select .select-trigger:active:not(.disabled) {
4441
4445
  border-color: var(--semantic-interaction-focus-ring);
4442
4446
  }
4443
4447
  .lib-xplat-select .select-trigger:focus-visible {
4444
4448
  border-color: var(--semantic-interaction-focus-ring);
4445
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
4449
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
4446
4450
  outline: 2px solid transparent;
4447
4451
  outline-offset: 2px;
4448
4452
  }
@@ -4515,7 +4519,7 @@
4515
4519
  }
4516
4520
  .lib-xplat-select-content .select-search > input:focus {
4517
4521
  border-color: var(--semantic-interaction-focus-ring);
4518
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
4522
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
4519
4523
  outline: 2px solid transparent;
4520
4524
  outline-offset: 2px;
4521
4525
  }
@@ -5575,10 +5579,11 @@
5575
5579
  }
5576
5580
  .lib-xplat-textarea-wrap .lib-xplat-textarea:hover:not(.disabled):not(:focus) {
5577
5581
  border-color: var(--semantic-border-tertiary);
5582
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
5578
5583
  }
5579
5584
  .lib-xplat-textarea-wrap .lib-xplat-textarea:focus {
5580
5585
  border-color: var(--semantic-interaction-focus-ring);
5581
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
5586
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
5582
5587
  outline: 2px solid transparent;
5583
5588
  outline-offset: 2px;
5584
5589
  }
@@ -5609,10 +5614,11 @@
5609
5614
  }
5610
5615
  .lib-xplat-time-picker .time-picker-trigger:hover {
5611
5616
  border-color: var(--semantic-border-tertiary);
5617
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
5612
5618
  }
5613
5619
  .lib-xplat-time-picker .time-picker-trigger:focus-visible {
5614
5620
  border-color: var(--semantic-interaction-focus-ring);
5615
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
5621
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--semantic-interaction-focus-ring) 20%, transparent);
5616
5622
  outline: 2px solid transparent;
5617
5623
  outline-offset: 2px;
5618
5624
  }
package/dist/index.js CHANGED
@@ -12132,12 +12132,13 @@ var Item_default = GridItem;
12132
12132
  // src/layout/Header/Header.tsx
12133
12133
  import { jsx as jsx359, jsxs as jsxs226 } from "react/jsx-runtime";
12134
12134
  var Header = ({
12135
+ leftContent,
12135
12136
  logo,
12136
12137
  centerContent,
12137
12138
  rightContent
12138
12139
  }) => {
12139
12140
  return /* @__PURE__ */ jsxs226("div", { className: "lib-xplat-layout-header", children: [
12140
- /* @__PURE__ */ jsx359("div", { children: logo }),
12141
+ /* @__PURE__ */ jsx359("div", { children: leftContent ?? logo }),
12141
12142
  /* @__PURE__ */ jsx359("div", { children: centerContent }),
12142
12143
  /* @__PURE__ */ jsx359("div", { children: rightContent })
12143
12144
  ] });
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/layout/Grid/FullGrid/fullgrid.scss */
2
4
  .lib-xplat-full-grid {
3
5
  display: grid;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/layout/Grid/FullScreen/fullscreen.scss */
2
4
  .lib-xplat-full-screen {
3
5
  display: grid;
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/layout/Grid/Item/item.scss */
2
4
  .lib-xplat-grid-item {
3
5
  grid-column: span var(--column-default);
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/layout/Grid/FullGrid/fullgrid.scss */
2
4
  .lib-xplat-full-grid {
3
5
  display: grid;
@@ -27,12 +27,13 @@ module.exports = __toCommonJS(Header_exports);
27
27
  // src/layout/Header/Header.tsx
28
28
  var import_jsx_runtime = require("react/jsx-runtime");
29
29
  var Header = ({
30
+ leftContent,
30
31
  logo,
31
32
  centerContent,
32
33
  rightContent
33
34
  }) => {
34
35
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "lib-xplat-layout-header", children: [
35
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: logo }),
36
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: leftContent ?? logo }),
36
37
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: centerContent }),
37
38
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: rightContent })
38
39
  ] });
@@ -1,8 +1,18 @@
1
1
  import React from 'react';
2
2
 
3
3
  interface HeaderProps {
4
+ /** 왼쪽 영역 */
5
+ leftContent?: React.ReactNode;
6
+ /**
7
+ * @deprecated 왼쪽 영역은 `leftContent` 로 받는다. 이름이 `logo` 라 로고 전용처럼
8
+ * 보였지만 실제로는 아무 내용이나 들어가는 왼쪽 칸이고, `centerContent`·`rightContent`
9
+ * 와 짝이 맞지 않아 "왼쪽 파라미터가 없다" 고 오해됐다. 기존 사용처가 깨지지 않도록
10
+ * 계속 받는다 — 둘 다 주면 `leftContent` 가 이긴다.
11
+ */
4
12
  logo?: React.ReactNode;
13
+ /** 가운데 영역 */
5
14
  centerContent?: React.ReactElement;
15
+ /** 오른쪽 영역 */
6
16
  rightContent?: React.ReactElement;
7
17
  }
8
18
  declare const Header: React.FC<HeaderProps>;
@@ -1,8 +1,18 @@
1
1
  import React from 'react';
2
2
 
3
3
  interface HeaderProps {
4
+ /** 왼쪽 영역 */
5
+ leftContent?: React.ReactNode;
6
+ /**
7
+ * @deprecated 왼쪽 영역은 `leftContent` 로 받는다. 이름이 `logo` 라 로고 전용처럼
8
+ * 보였지만 실제로는 아무 내용이나 들어가는 왼쪽 칸이고, `centerContent`·`rightContent`
9
+ * 와 짝이 맞지 않아 "왼쪽 파라미터가 없다" 고 오해됐다. 기존 사용처가 깨지지 않도록
10
+ * 계속 받는다 — 둘 다 주면 `leftContent` 가 이긴다.
11
+ */
4
12
  logo?: React.ReactNode;
13
+ /** 가운데 영역 */
5
14
  centerContent?: React.ReactElement;
15
+ /** 오른쪽 영역 */
6
16
  rightContent?: React.ReactElement;
7
17
  }
8
18
  declare const Header: React.FC<HeaderProps>;
@@ -1,12 +1,13 @@
1
1
  // src/layout/Header/Header.tsx
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  var Header = ({
4
+ leftContent,
4
5
  logo,
5
6
  centerContent,
6
7
  rightContent
7
8
  }) => {
8
9
  return /* @__PURE__ */ jsxs("div", { className: "lib-xplat-layout-header", children: [
9
- /* @__PURE__ */ jsx("div", { children: logo }),
10
+ /* @__PURE__ */ jsx("div", { children: leftContent ?? logo }),
10
11
  /* @__PURE__ */ jsx("div", { children: centerContent }),
11
12
  /* @__PURE__ */ jsx("div", { children: rightContent })
12
13
  ] });
@@ -125,12 +125,13 @@ var Item_default = GridItem;
125
125
  // src/layout/Header/Header.tsx
126
126
  var import_jsx_runtime4 = require("react/jsx-runtime");
127
127
  var Header = ({
128
+ leftContent,
128
129
  logo,
129
130
  centerContent,
130
131
  rightContent
131
132
  }) => {
132
133
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "lib-xplat-layout-header", children: [
133
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { children: logo }),
134
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { children: leftContent ?? logo }),
134
135
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { children: centerContent }),
135
136
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { children: rightContent })
136
137
  ] });
@@ -1,3 +1,5 @@
1
+ @charset "UTF-8";
2
+
1
3
  /* src/styles/style.css */
2
4
  :root {
3
5
  --spacing-space-1: 4px;
@@ -81,12 +81,13 @@ var Item_default = GridItem;
81
81
  // src/layout/Header/Header.tsx
82
82
  import { jsx as jsx4, jsxs } from "react/jsx-runtime";
83
83
  var Header = ({
84
+ leftContent,
84
85
  logo,
85
86
  centerContent,
86
87
  rightContent
87
88
  }) => {
88
89
  return /* @__PURE__ */ jsxs("div", { className: "lib-xplat-layout-header", children: [
89
- /* @__PURE__ */ jsx4("div", { children: logo }),
90
+ /* @__PURE__ */ jsx4("div", { children: leftContent ?? logo }),
90
91
  /* @__PURE__ */ jsx4("div", { children: centerContent }),
91
92
  /* @__PURE__ */ jsx4("div", { children: rightContent })
92
93
  ] });
@@ -86,7 +86,7 @@ function App() {
86
86
  <Layout
87
87
  header={
88
88
  <Header
89
- logo={<img src="/logo.svg" />}
89
+ leftContent={<img src="/logo.svg" />}
90
90
  centerContent={<NavTabs />}
91
91
  rightContent={<UserMenu />}
92
92
  />
@@ -117,7 +117,7 @@ function App() {
117
117
 
118
118
  | Prop | 타입 |
119
119
  |---|---|
120
- | `logo` | `React.ReactNode` (좌측) |
120
+ | `leftContent` | `React.ReactNode` (왼쪽. 예전 이름 `logo` 는 @deprecated) |
121
121
  | `centerContent` | `React.ReactElement` (가운데) |
122
122
  | `rightContent` | `React.ReactElement` (우측) |
123
123
 
@@ -24,11 +24,14 @@ import { Layout, Header, SideBar } from "@x-plat/design-system/layout";
24
24
 
25
25
  | Prop | 타입 |
26
26
  |---|---|
27
- | `logo` | `React.ReactNode` — 좌측 영역 |
27
+ | `leftContent` | `React.ReactNode` — 왼쪽 영역 |
28
28
  | `centerContent` | `React.ReactElement` — 가운데 영역 |
29
29
  | `rightContent` | `React.ReactElement` — 우측 영역 |
30
30
 
31
- > `title` prop 은 없다. 텍스트가 필요하면 `logo` 또는 `centerContent` 안에 직접 배치.
31
+ > `title` prop 은 없다. 텍스트가 필요하면 `leftContent` 또는 `centerContent` 안에 직접 배치.
32
+ >
33
+ > 예전 이름 `logo` 도 계속 받는다(**@deprecated**). 로고 전용이 아니라 그냥 왼쪽 칸이다 —
34
+ > 둘 다 주면 `leftContent` 가 이긴다.
32
35
 
33
36
  ### SideBar
34
37
 
@@ -53,7 +56,7 @@ function App() {
53
56
  <Layout
54
57
  header={
55
58
  <Header
56
- logo={<img src="/logo.svg" alt="logo" />}
59
+ leftContent={<img src="/logo.svg" alt="logo" />}
57
60
  centerContent={<NavTabs />}
58
61
  rightContent={<UserMenu />}
59
62
  />
@@ -10,7 +10,7 @@ import "@x-plat/design-system/style.css";
10
10
 
11
11
  > `style.css` 는 **컴포넌트 스타일 + tokens-default 의 토큰 값** 을 함께 포함한다. 다른 브랜드를 적용하려면 아래 "브랜드 전환" 섹션 참고.
12
12
 
13
- ## 브랜드 전환 (cbio / haetbitgil / daibee-ir 등)
13
+ ## 브랜드 전환 (cbio / haetbitgil / daibee-ir / zium 등)
14
14
 
15
15
  design-system 은 tokens-default 를 기본으로 사용한다. 다른 브랜드 토큰을 적용하려면 **design-system 의 style.css 를 import 한 뒤** 해당 브랜드 토큰을 import 한다 (CSS 카스케이드: 나중 선언이 이김).
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-plat/design-system",
3
- "version": "0.15.4",
3
+ "version": "0.15.6",
4
4
  "description": "XPLAT UI Design System",
5
5
  "author": "XPLAT WOONG",
6
6
  "main": "dist/index.cjs",