@vmscloud/moz-ui-components-core 0.1.42

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 (146) hide show
  1. package/dist/components/avatar/avatar.core.d.ts +39 -0
  2. package/dist/components/avatar/index.d.ts +14 -0
  3. package/dist/components/bread-crumb/breadcrumb.core.d.ts +70 -0
  4. package/dist/components/bread-crumb/icons.d.ts +9 -0
  5. package/dist/components/bread-crumb/index.d.ts +10 -0
  6. package/dist/components/button/button.core.d.ts +59 -0
  7. package/dist/components/button/circleLoader.d.ts +8 -0
  8. package/dist/components/button/index.d.ts +12 -0
  9. package/dist/components/calendar/calendar.core.d.ts +25 -0
  10. package/dist/components/calendar/icons.d.ts +7 -0
  11. package/dist/components/calendar/index.d.ts +7 -0
  12. package/dist/components/checkbox/checkbox.core.d.ts +46 -0
  13. package/dist/components/checkbox/icons.d.ts +9 -0
  14. package/dist/components/checkbox/index.d.ts +10 -0
  15. package/dist/components/collapsible/collapsible.core.d.ts +34 -0
  16. package/dist/components/collapsible/index.d.ts +15 -0
  17. package/dist/components/context-menu/contextmenu.core.d.ts +58 -0
  18. package/dist/components/context-menu/index.d.ts +10 -0
  19. package/dist/components/controller/controller.core.d.ts +44 -0
  20. package/dist/components/controller/icons.d.ts +12 -0
  21. package/dist/components/controller/index.d.ts +12 -0
  22. package/dist/components/date-input/dateinput.core.d.ts +32 -0
  23. package/dist/components/date-input/icons.d.ts +6 -0
  24. package/dist/components/date-input/index.d.ts +7 -0
  25. package/dist/components/empty-state/emptystate.core.d.ts +25 -0
  26. package/dist/components/empty-state/emptystate.types.d.ts +17 -0
  27. package/dist/components/empty-state/index.d.ts +8 -0
  28. package/dist/components/input/icons.d.ts +4 -0
  29. package/dist/components/input/index.d.ts +10 -0
  30. package/dist/components/input/input.core.d.ts +38 -0
  31. package/dist/components/label/index.d.ts +6 -0
  32. package/dist/components/label/label.core.d.ts +22 -0
  33. package/dist/components/multi-select/icons.d.ts +14 -0
  34. package/dist/components/multi-select/index.d.ts +10 -0
  35. package/dist/components/multi-select/multiselect.core.d.ts +60 -0
  36. package/dist/components/number-input/icons.d.ts +7 -0
  37. package/dist/components/number-input/index.d.ts +7 -0
  38. package/dist/components/number-input/numberinput.core.d.ts +30 -0
  39. package/dist/components/password-input/icons.d.ts +7 -0
  40. package/dist/components/password-input/index.d.ts +7 -0
  41. package/dist/components/password-input/passwordinput.core.d.ts +29 -0
  42. package/dist/components/popover/index.d.ts +14 -0
  43. package/dist/components/popover/popover.core.d.ts +65 -0
  44. package/dist/components/popup/icons.d.ts +18 -0
  45. package/dist/components/popup/index.d.ts +14 -0
  46. package/dist/components/popup/popup.core.d.ts +132 -0
  47. package/dist/components/radio/index.d.ts +9 -0
  48. package/dist/components/radio/radio.core.d.ts +35 -0
  49. package/dist/components/scroll-area/index.d.ts +16 -0
  50. package/dist/components/scroll-area/scrollarea.core.d.ts +47 -0
  51. package/dist/components/select/icons.d.ts +16 -0
  52. package/dist/components/select/index.d.ts +10 -0
  53. package/dist/components/select/select.core.d.ts +48 -0
  54. package/dist/components/slider/index.d.ts +6 -0
  55. package/dist/components/slider/slider.core.d.ts +23 -0
  56. package/dist/components/split-pane/index.d.ts +15 -0
  57. package/dist/components/split-pane/splitpane.core.d.ts +24 -0
  58. package/dist/components/tab/icons.d.ts +4 -0
  59. package/dist/components/tab/index.d.ts +10 -0
  60. package/dist/components/tab/tab.core.d.ts +28 -0
  61. package/dist/components/table-select/index.d.ts +10 -0
  62. package/dist/components/table-select/tableselect.core.d.ts +45 -0
  63. package/dist/components/tag-input/icons.d.ts +9 -0
  64. package/dist/components/tag-input/index.d.ts +12 -0
  65. package/dist/components/tag-input/taginput.core.d.ts +32 -0
  66. package/dist/components/textarea/index.d.ts +6 -0
  67. package/dist/components/textarea/textarea.core.d.ts +35 -0
  68. package/dist/components/time-picker/icons.d.ts +9 -0
  69. package/dist/components/time-picker/index.d.ts +10 -0
  70. package/dist/components/time-picker/timepicker.core.d.ts +26 -0
  71. package/dist/components/toast/icons.d.ts +12 -0
  72. package/dist/components/toast/index.d.ts +13 -0
  73. package/dist/components/toast/timer.d.ts +17 -0
  74. package/dist/components/toast/toast.core.d.ts +48 -0
  75. package/dist/components/toast/useToast.d.ts +13 -0
  76. package/dist/components/toggle/index.d.ts +9 -0
  77. package/dist/components/toggle/toggle.core.d.ts +54 -0
  78. package/dist/components/tooltip/index.d.ts +18 -0
  79. package/dist/components/tooltip/placement.d.ts +9 -0
  80. package/dist/components/tooltip/tooltip.core.d.ts +50 -0
  81. package/dist/components/tree-select/icons.d.ts +14 -0
  82. package/dist/components/tree-select/index.d.ts +12 -0
  83. package/dist/components/tree-select/tree-utils.d.ts +63 -0
  84. package/dist/components/tree-select/treeselect.core.d.ts +45 -0
  85. package/dist/index.cjs +1887 -0
  86. package/dist/index.cjs.map +1 -0
  87. package/dist/index.d.ts +51 -0
  88. package/dist/index.js +9233 -0
  89. package/dist/index.js.map +1 -0
  90. package/dist/locale/en.d.ts +3 -0
  91. package/dist/locale/index.d.ts +10 -0
  92. package/dist/locale/ja.d.ts +3 -0
  93. package/dist/locale/ko.d.ts +3 -0
  94. package/dist/locale/types.d.ts +482 -0
  95. package/dist/locale/zh.d.ts +3 -0
  96. package/dist/overlay/DismissStack.d.ts +49 -0
  97. package/dist/overlay/Overlay.d.ts +39 -0
  98. package/dist/overlay/PortalHost.d.ts +11 -0
  99. package/dist/overlay/index.d.ts +5 -0
  100. package/dist/overlay/placement.d.ts +74 -0
  101. package/dist/runtime/ChromeComponent.d.ts +38 -0
  102. package/dist/runtime/Observable.d.ts +18 -0
  103. package/dist/runtime/SlotHost.d.ts +48 -0
  104. package/dist/runtime/defineHeadless.d.ts +28 -0
  105. package/dist/runtime/spread.d.ts +26 -0
  106. package/dist/runtime/types.d.ts +149 -0
  107. package/dist/shared/cn.d.ts +8 -0
  108. package/dist/shared/dayjs.d.ts +10 -0
  109. package/dist/shared/index.d.ts +5 -0
  110. package/dist/shared/utils.d.ts +58 -0
  111. package/dist/styles/default/avatar.css +94 -0
  112. package/dist/styles/default/breadcrumb.css +120 -0
  113. package/dist/styles/default/button.css +220 -0
  114. package/dist/styles/default/calendar.css +158 -0
  115. package/dist/styles/default/checkbox.css +128 -0
  116. package/dist/styles/default/collapsible.css +27 -0
  117. package/dist/styles/default/contextmenu.css +212 -0
  118. package/dist/styles/default/controller.css +157 -0
  119. package/dist/styles/default/dateinput.css +193 -0
  120. package/dist/styles/default/emptystate.css +91 -0
  121. package/dist/styles/default/index.css +3877 -0
  122. package/dist/styles/default/input.css +179 -0
  123. package/dist/styles/default/label.css +65 -0
  124. package/dist/styles/default/multiselect.css +394 -0
  125. package/dist/styles/default/numberinput.css +174 -0
  126. package/dist/styles/default/passwordinput.css +189 -0
  127. package/dist/styles/default/popover.css +92 -0
  128. package/dist/styles/default/popup.css +222 -0
  129. package/dist/styles/default/radio.css +264 -0
  130. package/dist/styles/default/scrollarea.css +133 -0
  131. package/dist/styles/default/select.css +287 -0
  132. package/dist/styles/default/slider.css +123 -0
  133. package/dist/styles/default/splitpane.css +62 -0
  134. package/dist/styles/default/tab.css +172 -0
  135. package/dist/styles/default/tableselect.css +313 -0
  136. package/dist/styles/default/taginput.css +296 -0
  137. package/dist/styles/default/textarea.css +145 -0
  138. package/dist/styles/default/timepicker.css +221 -0
  139. package/dist/styles/default/toast.css +165 -0
  140. package/dist/styles/default/toggle.css +129 -0
  141. package/dist/styles/default/tooltip.css +131 -0
  142. package/dist/styles/default/treeselect.css +382 -0
  143. package/dist/validator/createValidator.d.ts +7 -0
  144. package/dist/validator/index.d.ts +2 -0
  145. package/dist/validator/types.d.ts +26 -0
  146. package/package.json +57 -0
@@ -0,0 +1,165 @@
1
+ @charset "UTF-8";
2
+ /* moz color tokens — override in :root */
3
+ @layer moz {
4
+ :root {
5
+ /* ── 기본 팔레트 ── */
6
+ --moz-color-accent: #4568e0;
7
+ --moz-color-accent-strong: #3e5dc9;
8
+ --moz-color-accent-subtle: #e2e7fa;
9
+ --moz-color-danger: #dc5a5a;
10
+ --moz-color-warning: #fa9e23;
11
+ --moz-color-success: #357e63;
12
+ --moz-color-surface: #ffffff;
13
+ --moz-color-on-accent: #ffffff;
14
+ --moz-color-surface-subtle: #f4f4f9;
15
+ --moz-color-surface-muted: #f8f8fd;
16
+ --moz-color-border: #bac6d4;
17
+ --moz-color-border-subtle: #e1e3f0;
18
+ --moz-color-text: #28364e;
19
+ --moz-color-text-secondary: #6a7184;
20
+ --moz-color-text-subtle: #96a5be;
21
+ --moz-color-text-muted: #a7b1bc;
22
+ --moz-color-disabled: #e0e1ec;
23
+ /* 반전 표면 — 툴팁처럼 본문과 배경/전경이 뒤집힌 떠 있는 조각 */
24
+ --moz-color-inverse-surface: var(--moz-color-text);
25
+ --moz-color-inverse-text: var(--moz-color-surface);
26
+ /* ── 파생(알파) — 위 solid 토큰을 따라간다 ── */
27
+ --moz-color-accent-ring: color-mix(in srgb, var(--moz-color-accent) 20%, transparent);
28
+ --moz-color-accent-ring-strong: color-mix(in srgb, var(--moz-color-accent) 30%, transparent);
29
+ --moz-color-accent-soft: color-mix(in srgb, var(--moz-color-accent) 16%, transparent);
30
+ --moz-color-accent-ghost: color-mix(in srgb, var(--moz-color-accent) 9%, transparent);
31
+ --moz-color-danger-ring: color-mix(in srgb, var(--moz-color-danger) 20%, transparent);
32
+ --moz-color-danger-ghost: color-mix(in srgb, var(--moz-color-danger) 13%, transparent);
33
+ --moz-color-muted-soft: color-mix(in srgb, var(--moz-color-text-subtle) 16%, transparent);
34
+ /* ── 그림자·스크림 ── */
35
+ --moz-color-shadow: rgb(57 55 122 / 0.1);
36
+ --moz-color-shadow-weak: rgb(0 0 0 / 0.05);
37
+ --moz-color-scrim: rgb(0 0 0 / 0.3);
38
+ --moz-color-scrim-strong: rgb(66 72 83 / 0.5);
39
+ }
40
+ }
41
+ /* moz radius tokens — override in :root */
42
+ @layer moz {
43
+ :root {
44
+ /* 소형 마커 — 체크박스, 칩 내부 요소 */
45
+ --moz-radius-xs: 2px;
46
+ /* 컨트롤 박스 — 버튼·입력·셀렉트·탭·브레드크럼 (가장 많이 쓰이는 값) */
47
+ --moz-radius-control: 4px;
48
+ /* 보조 표면 — 캘린더 컨테이너, 슬라이더 트랙, 세그먼트 그룹 */
49
+ --moz-radius-surface: 6px;
50
+ /* 떠 있는 패널 — 팝업·대화상자 */
51
+ --moz-radius-panel: 10px;
52
+ /* 칩 — 태그 아이템처럼 컨트롤보다 작은 조각 (panel 과 기본값은 같지만 역할이 다르다:
53
+ 소비자가 panel 을 카드값으로 올려도 태그까지 알약이 되지 않도록 분리해 둔다) */
54
+ --moz-radius-chip: 10px;
55
+ /* 알약 — 토글, 토스트, 라디오 도트, 슬라이더 핸들 */
56
+ --moz-radius-pill: 999px;
57
+ /* 원 — 아바타 */
58
+ --moz-radius-circle: 50%;
59
+ }
60
+ }
61
+ @layer moz {
62
+ .moz-toast {
63
+ display: inline-flex;
64
+ align-items: center;
65
+ border-radius: var(--moz-radius-pill);
66
+ padding: 0.875rem 1.25rem;
67
+ margin: 0.5rem 0;
68
+ gap: 0.875rem;
69
+ box-shadow: 0 1px 2px 0 var(--moz-color-shadow-weak);
70
+ color: var(--moz-color-surface);
71
+ pointer-events: auto;
72
+ cursor: pointer;
73
+ }
74
+ .moz-toast.bg-success {
75
+ background-color: var(--moz-color-success);
76
+ }
77
+ .moz-toast.bg-error {
78
+ background-color: var(--moz-color-danger);
79
+ }
80
+ .moz-toast.bg-info {
81
+ background-color: var(--moz-color-accent);
82
+ }
83
+ .moz-toast.bg-warning {
84
+ background-color: var(--moz-color-warning);
85
+ }
86
+ .moz-toast.position-center {
87
+ align-self: center;
88
+ }
89
+ .moz-toast.position-end {
90
+ align-self: flex-end;
91
+ }
92
+ .moz-toast.position-start {
93
+ align-self: flex-start;
94
+ }
95
+ .moz-toast.moz-toast-composed {
96
+ position: relative;
97
+ display: flex;
98
+ align-items: flex-start;
99
+ cursor: default;
100
+ margin: 0;
101
+ color: inherit;
102
+ }
103
+ .moz-toast.moz-toast-composed .moz-toast-icon {
104
+ flex-shrink: 0;
105
+ }
106
+ .moz-toast.moz-toast-composed .moz-toast-content {
107
+ flex: 1 1 auto;
108
+ min-width: 0;
109
+ }
110
+ .moz-toast.moz-toast-composed .moz-toast-heading,
111
+ .moz-toast.moz-toast-composed .moz-toast-description,
112
+ .moz-toast.moz-toast-composed .moz-toast-actions {
113
+ display: contents;
114
+ }
115
+ .moz-toast.moz-toast-composed .moz-toast-close {
116
+ flex-shrink: 0;
117
+ display: inline-flex;
118
+ align-items: center;
119
+ justify-content: center;
120
+ border: none;
121
+ background: transparent;
122
+ color: inherit;
123
+ cursor: pointer;
124
+ border-radius: var(--moz-radius-control);
125
+ }
126
+ .moz-toast.moz-toast-composed .moz-toast-progress {
127
+ position: absolute;
128
+ top: 0;
129
+ left: 0;
130
+ right: 0;
131
+ height: 4px;
132
+ overflow: hidden;
133
+ }
134
+ .moz-toast.moz-toast-composed .moz-toast-progress-bar {
135
+ height: 100%;
136
+ background-color: currentColor;
137
+ }
138
+ .toast-message {
139
+ overflow: hidden;
140
+ text-overflow: ellipsis;
141
+ white-space: nowrap;
142
+ font-size: 0.875rem;
143
+ }
144
+ .moz-toast-body {
145
+ position: fixed;
146
+ display: flex;
147
+ top: 0;
148
+ right: 0;
149
+ bottom: 0;
150
+ left: 0;
151
+ padding: 1.25rem;
152
+ overflow: hidden;
153
+ z-index: 2000;
154
+ pointer-events: none;
155
+ }
156
+ .moz-toast-body--top {
157
+ flex-direction: column;
158
+ }
159
+ .moz-toast-body--bottom {
160
+ flex-direction: column-reverse;
161
+ }
162
+ .moz-toast-body > .moz-overlay-portal {
163
+ display: contents;
164
+ }
165
+ }
@@ -0,0 +1,129 @@
1
+ @charset "UTF-8";
2
+ /* moz color tokens — override in :root */
3
+ @layer moz {
4
+ :root {
5
+ /* ── 기본 팔레트 ── */
6
+ --moz-color-accent: #4568e0;
7
+ --moz-color-accent-strong: #3e5dc9;
8
+ --moz-color-accent-subtle: #e2e7fa;
9
+ --moz-color-danger: #dc5a5a;
10
+ --moz-color-warning: #fa9e23;
11
+ --moz-color-success: #357e63;
12
+ --moz-color-surface: #ffffff;
13
+ --moz-color-on-accent: #ffffff;
14
+ --moz-color-surface-subtle: #f4f4f9;
15
+ --moz-color-surface-muted: #f8f8fd;
16
+ --moz-color-border: #bac6d4;
17
+ --moz-color-border-subtle: #e1e3f0;
18
+ --moz-color-text: #28364e;
19
+ --moz-color-text-secondary: #6a7184;
20
+ --moz-color-text-subtle: #96a5be;
21
+ --moz-color-text-muted: #a7b1bc;
22
+ --moz-color-disabled: #e0e1ec;
23
+ /* 반전 표면 — 툴팁처럼 본문과 배경/전경이 뒤집힌 떠 있는 조각 */
24
+ --moz-color-inverse-surface: var(--moz-color-text);
25
+ --moz-color-inverse-text: var(--moz-color-surface);
26
+ /* ── 파생(알파) — 위 solid 토큰을 따라간다 ── */
27
+ --moz-color-accent-ring: color-mix(in srgb, var(--moz-color-accent) 20%, transparent);
28
+ --moz-color-accent-ring-strong: color-mix(in srgb, var(--moz-color-accent) 30%, transparent);
29
+ --moz-color-accent-soft: color-mix(in srgb, var(--moz-color-accent) 16%, transparent);
30
+ --moz-color-accent-ghost: color-mix(in srgb, var(--moz-color-accent) 9%, transparent);
31
+ --moz-color-danger-ring: color-mix(in srgb, var(--moz-color-danger) 20%, transparent);
32
+ --moz-color-danger-ghost: color-mix(in srgb, var(--moz-color-danger) 13%, transparent);
33
+ --moz-color-muted-soft: color-mix(in srgb, var(--moz-color-text-subtle) 16%, transparent);
34
+ /* ── 그림자·스크림 ── */
35
+ --moz-color-shadow: rgb(57 55 122 / 0.1);
36
+ --moz-color-shadow-weak: rgb(0 0 0 / 0.05);
37
+ --moz-color-scrim: rgb(0 0 0 / 0.3);
38
+ --moz-color-scrim-strong: rgb(66 72 83 / 0.5);
39
+ }
40
+ }
41
+ /* moz radius tokens — override in :root */
42
+ @layer moz {
43
+ :root {
44
+ /* 소형 마커 — 체크박스, 칩 내부 요소 */
45
+ --moz-radius-xs: 2px;
46
+ /* 컨트롤 박스 — 버튼·입력·셀렉트·탭·브레드크럼 (가장 많이 쓰이는 값) */
47
+ --moz-radius-control: 4px;
48
+ /* 보조 표면 — 캘린더 컨테이너, 슬라이더 트랙, 세그먼트 그룹 */
49
+ --moz-radius-surface: 6px;
50
+ /* 떠 있는 패널 — 팝업·대화상자 */
51
+ --moz-radius-panel: 10px;
52
+ /* 칩 — 태그 아이템처럼 컨트롤보다 작은 조각 (panel 과 기본값은 같지만 역할이 다르다:
53
+ 소비자가 panel 을 카드값으로 올려도 태그까지 알약이 되지 않도록 분리해 둔다) */
54
+ --moz-radius-chip: 10px;
55
+ /* 알약 — 토글, 토스트, 라디오 도트, 슬라이더 핸들 */
56
+ --moz-radius-pill: 999px;
57
+ /* 원 — 아바타 */
58
+ --moz-radius-circle: 50%;
59
+ }
60
+ }
61
+ /**
62
+ * Toggle 스타일 — Toggle.vue 의 scoped SCSS 를 별도 파일로 분리 (1:1, 하드코딩 hex 유지).
63
+ * (Label 스타일은 label.scss 에 별도 — Toggle 은 label-left/right 위치만 얹는다)
64
+ */
65
+ @layer moz {
66
+ .moz-switch {
67
+ width: 100%;
68
+ box-sizing: border-box;
69
+ height: 1.75rem;
70
+ display: flex;
71
+ align-items: center;
72
+ gap: 6px;
73
+ }
74
+ .moz-switch .label-left {
75
+ cursor: pointer;
76
+ }
77
+ .moz-switch .label-right {
78
+ cursor: pointer;
79
+ }
80
+ .moz-switch .moz-switch-box {
81
+ width: 36px;
82
+ height: 20px;
83
+ padding: 2px;
84
+ box-sizing: border-box;
85
+ border-radius: var(--moz-radius-pill);
86
+ background-color: var(--moz-color-accent-ring-strong);
87
+ transition: background-color 0.2s ease-in;
88
+ position: relative;
89
+ }
90
+ .moz-switch .moz-switch-box.active {
91
+ background-color: var(--moz-color-accent);
92
+ }
93
+ .moz-switch .moz-switch-box.disabled {
94
+ background-color: var(--moz-color-disabled);
95
+ }
96
+ .moz-switch .moz-switch-box.active.disabled {
97
+ background-color: var(--moz-color-border);
98
+ }
99
+ .moz-switch .moz-switch-box:focus-within {
100
+ box-shadow: 0 0 0 3px var(--moz-color-accent-ring);
101
+ }
102
+ .moz-switch .moz-switch-box .moz-switch-input {
103
+ width: 100%;
104
+ height: 100%;
105
+ position: absolute;
106
+ left: 0;
107
+ top: 0;
108
+ margin: 0;
109
+ cursor: pointer;
110
+ z-index: 2;
111
+ opacity: 0;
112
+ }
113
+ .moz-switch .moz-switch-box .moz-switch-input:disabled {
114
+ cursor: not-allowed;
115
+ }
116
+ .moz-switch .moz-switch-box .moz-switch-handler {
117
+ width: 16px;
118
+ height: 16px;
119
+ border-radius: var(--moz-radius-pill);
120
+ background-color: var(--moz-color-surface);
121
+ transition: transform 0.2s cubic-bezier(0.65, 0.05, 0.36, 1);
122
+ }
123
+ .moz-switch .moz-switch-box .moz-switch-handler.active {
124
+ transform: translateX(16px);
125
+ }
126
+ .moz-switch .moz-switch-box .moz-switch-handler.disabled {
127
+ background-color: var(--moz-color-surface-subtle);
128
+ }
129
+ }
@@ -0,0 +1,131 @@
1
+ @charset "UTF-8";
2
+ /* moz color tokens — override in :root */
3
+ @layer moz {
4
+ :root {
5
+ /* ── 기본 팔레트 ── */
6
+ --moz-color-accent: #4568e0;
7
+ --moz-color-accent-strong: #3e5dc9;
8
+ --moz-color-accent-subtle: #e2e7fa;
9
+ --moz-color-danger: #dc5a5a;
10
+ --moz-color-warning: #fa9e23;
11
+ --moz-color-success: #357e63;
12
+ --moz-color-surface: #ffffff;
13
+ --moz-color-on-accent: #ffffff;
14
+ --moz-color-surface-subtle: #f4f4f9;
15
+ --moz-color-surface-muted: #f8f8fd;
16
+ --moz-color-border: #bac6d4;
17
+ --moz-color-border-subtle: #e1e3f0;
18
+ --moz-color-text: #28364e;
19
+ --moz-color-text-secondary: #6a7184;
20
+ --moz-color-text-subtle: #96a5be;
21
+ --moz-color-text-muted: #a7b1bc;
22
+ --moz-color-disabled: #e0e1ec;
23
+ /* 반전 표면 — 툴팁처럼 본문과 배경/전경이 뒤집힌 떠 있는 조각 */
24
+ --moz-color-inverse-surface: var(--moz-color-text);
25
+ --moz-color-inverse-text: var(--moz-color-surface);
26
+ /* ── 파생(알파) — 위 solid 토큰을 따라간다 ── */
27
+ --moz-color-accent-ring: color-mix(in srgb, var(--moz-color-accent) 20%, transparent);
28
+ --moz-color-accent-ring-strong: color-mix(in srgb, var(--moz-color-accent) 30%, transparent);
29
+ --moz-color-accent-soft: color-mix(in srgb, var(--moz-color-accent) 16%, transparent);
30
+ --moz-color-accent-ghost: color-mix(in srgb, var(--moz-color-accent) 9%, transparent);
31
+ --moz-color-danger-ring: color-mix(in srgb, var(--moz-color-danger) 20%, transparent);
32
+ --moz-color-danger-ghost: color-mix(in srgb, var(--moz-color-danger) 13%, transparent);
33
+ --moz-color-muted-soft: color-mix(in srgb, var(--moz-color-text-subtle) 16%, transparent);
34
+ /* ── 그림자·스크림 ── */
35
+ --moz-color-shadow: rgb(57 55 122 / 0.1);
36
+ --moz-color-shadow-weak: rgb(0 0 0 / 0.05);
37
+ --moz-color-scrim: rgb(0 0 0 / 0.3);
38
+ --moz-color-scrim-strong: rgb(66 72 83 / 0.5);
39
+ }
40
+ }
41
+ /* moz radius tokens — override in :root */
42
+ @layer moz {
43
+ :root {
44
+ /* 소형 마커 — 체크박스, 칩 내부 요소 */
45
+ --moz-radius-xs: 2px;
46
+ /* 컨트롤 박스 — 버튼·입력·셀렉트·탭·브레드크럼 (가장 많이 쓰이는 값) */
47
+ --moz-radius-control: 4px;
48
+ /* 보조 표면 — 캘린더 컨테이너, 슬라이더 트랙, 세그먼트 그룹 */
49
+ --moz-radius-surface: 6px;
50
+ /* 떠 있는 패널 — 팝업·대화상자 */
51
+ --moz-radius-panel: 10px;
52
+ /* 칩 — 태그 아이템처럼 컨트롤보다 작은 조각 (panel 과 기본값은 같지만 역할이 다르다:
53
+ 소비자가 panel 을 카드값으로 올려도 태그까지 알약이 되지 않도록 분리해 둔다) */
54
+ --moz-radius-chip: 10px;
55
+ /* 알약 — 토글, 토스트, 라디오 도트, 슬라이더 핸들 */
56
+ --moz-radius-pill: 999px;
57
+ /* 원 — 아바타 */
58
+ --moz-radius-circle: 50%;
59
+ }
60
+ }
61
+ /* moz tooltip — 앵커에 붙는 설명 버블 (버블만 body 포털에 렌더, 트리거는 소비처 소유) */
62
+ @layer moz {
63
+ :root {
64
+ /* 화살표 한 변의 절반. tooltip.core.ts 의 ARROW_SIZE 와 같은 값을 유지한다 */
65
+ --moz-tooltip-arrow: 5px;
66
+ }
67
+ .moz-tooltip {
68
+ /* 팝업(1000) 위. 좌표는 코어가 인라인 style 로 준다 */
69
+ z-index: 1100;
70
+ max-width: 20rem;
71
+ padding: 0.375rem 0.625rem;
72
+ border-radius: var(--moz-radius-control);
73
+ background-color: var(--moz-color-inverse-surface);
74
+ color: var(--moz-color-inverse-text);
75
+ font-size: 0.8125rem;
76
+ font-weight: 500;
77
+ line-height: 1.5;
78
+ word-break: break-word;
79
+ box-shadow: 0 2px 8px var(--moz-color-shadow);
80
+ /* 기본은 포인터를 통과시킨다 — 트리거를 벗어나면 닫히는 툴팁이 클릭을 가로채지 않도록.
81
+ 콘텐츠 위 hover 를 유지하는 소비처는 래퍼가 data-hoverable 을 붙인다 */
82
+ pointer-events: none;
83
+ animation: moz-tooltip-in 120ms ease-out;
84
+ }
85
+ .moz-tooltip[data-hoverable=true] {
86
+ pointer-events: auto;
87
+ }
88
+ .moz-tooltip-content {
89
+ position: relative;
90
+ }
91
+ /* 회전한 정사각형 — 테두리 삼각형과 달리 버블 배경색을 그대로 물려받는다 */
92
+ .moz-tooltip-arrow {
93
+ position: absolute;
94
+ width: calc(var(--moz-tooltip-arrow) * 2);
95
+ height: calc(var(--moz-tooltip-arrow) * 2);
96
+ background-color: inherit;
97
+ transform: rotate(45deg);
98
+ }
99
+ /* 인라인 style 로 오는 left/top 은 앵커 중심 오프셋이므로 절반만큼 당겨 중심을 맞춘다 */
100
+ .moz-tooltip-arrow[data-side=top] {
101
+ bottom: calc(var(--moz-tooltip-arrow) * -1);
102
+ margin-left: calc(var(--moz-tooltip-arrow) * -1);
103
+ }
104
+ .moz-tooltip-arrow[data-side=bottom] {
105
+ top: calc(var(--moz-tooltip-arrow) * -1);
106
+ margin-left: calc(var(--moz-tooltip-arrow) * -1);
107
+ }
108
+ .moz-tooltip-arrow[data-side=left] {
109
+ right: calc(var(--moz-tooltip-arrow) * -1);
110
+ margin-top: calc(var(--moz-tooltip-arrow) * -1);
111
+ }
112
+ .moz-tooltip-arrow[data-side=right] {
113
+ left: calc(var(--moz-tooltip-arrow) * -1);
114
+ margin-top: calc(var(--moz-tooltip-arrow) * -1);
115
+ }
116
+ @keyframes moz-tooltip-in {
117
+ from {
118
+ opacity: 0;
119
+ transform: scale(0.96);
120
+ }
121
+ to {
122
+ opacity: 1;
123
+ transform: none;
124
+ }
125
+ }
126
+ @media (prefers-reduced-motion: reduce) {
127
+ .moz-tooltip {
128
+ animation: none;
129
+ }
130
+ }
131
+ }