@marwes-ui/presets 0.0.3 → 1.0.0
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/LICENSE +1 -1
- package/README.md +200 -47
- package/dist/chunk-2JNIKK66.js +21 -0
- package/dist/chunk-2JNIKK66.js.map +1 -0
- package/dist/firstEdition/index.d.ts +3 -3
- package/dist/firstEdition/index.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +15 -9
- package/src/firstEdition/accordion.css +140 -0
- package/src/firstEdition/avatar.css +204 -0
- package/src/firstEdition/badge.css +139 -0
- package/src/firstEdition/button.css +219 -0
- package/src/firstEdition/card.css +136 -0
- package/src/firstEdition/checkbox.css +214 -0
- package/src/firstEdition/dialog.css +149 -0
- package/src/firstEdition/divider.css +37 -0
- package/src/firstEdition/icon.css +72 -0
- package/src/firstEdition/index.ts +19 -0
- package/src/firstEdition/input-otp.css +107 -0
- package/src/firstEdition/input.css +73 -0
- package/src/firstEdition/molecules/accordion-field.css +46 -0
- package/src/firstEdition/molecules/checkbox-field.css +53 -0
- package/src/firstEdition/molecules/checkbox-group-field.css +67 -0
- package/src/firstEdition/molecules/dialog-modal.css +34 -0
- package/src/firstEdition/molecules/input-field.css +260 -0
- package/src/firstEdition/molecules/radio-group-field.css +59 -0
- package/src/firstEdition/molecules/slider-field.css +83 -0
- package/src/firstEdition/molecules/switch-field.css +37 -0
- package/src/firstEdition/molecules/tab-group.css +26 -0
- package/src/firstEdition/molecules/toast-container.css +45 -0
- package/src/firstEdition/radio.css +121 -0
- package/src/firstEdition/rich-text.css +134 -0
- package/src/firstEdition/select.css +337 -0
- package/src/firstEdition/slider.css +228 -0
- package/src/firstEdition/spacing.css +6 -0
- package/src/firstEdition/spinner.css +94 -0
- package/src/firstEdition/styles.css +27 -0
- package/src/firstEdition/switch.css +156 -0
- package/src/firstEdition/tab.css +81 -0
- package/src/firstEdition/textarea.css +63 -0
- package/src/firstEdition/toast.css +318 -0
- package/src/firstEdition/tokens.css +35 -0
- package/src/firstEdition/tooltip.css +112 -0
- package/src/firstEdition/typography.css +33 -0
- package/dist/chunk-UJIVT75P.js +0 -26
- package/dist/chunk-UJIVT75P.js.map +0 -1
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Toast Component Styles
|
|
3
|
+
* Figma: 1365:12526 (light) / 2276:56938 (dark)
|
|
4
|
+
*
|
|
5
|
+
* Toast supports three emphasis levels:
|
|
6
|
+
* subtle — quiet, low-contrast surface
|
|
7
|
+
* outline — default emphasis
|
|
8
|
+
* rich — high-emphasis, use sparingly
|
|
9
|
+
*
|
|
10
|
+
* Supported intent mappings:
|
|
11
|
+
* neutral, info, success, warning, error, brand
|
|
12
|
+
*
|
|
13
|
+
* Purpose toasts map semantic intents automatically in the React/Vue adapters.
|
|
14
|
+
* Raw <Toast> can opt into the neutral/brand primitives with data-intent.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
.mw-toast {
|
|
18
|
+
--mw-toast-surface: var(--mw-color-surface-elevated);
|
|
19
|
+
--mw-toast-border: var(--mw-color-border);
|
|
20
|
+
--mw-toast-icon: var(--mw-color-text-muted);
|
|
21
|
+
--mw-toast-text: var(--mw-color-text);
|
|
22
|
+
--mw-toast-action: var(--mw-color-text);
|
|
23
|
+
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: var(--mw-spacing-sp-8);
|
|
27
|
+
min-width: 288px;
|
|
28
|
+
max-width: 480px;
|
|
29
|
+
padding: var(--mw-spacing-sp-16);
|
|
30
|
+
border: 1px solid var(--mw-toast-border);
|
|
31
|
+
border-radius: var(--mw-ui-radius, 8px);
|
|
32
|
+
background: var(--mw-toast-surface);
|
|
33
|
+
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.mw-toast__icon {
|
|
37
|
+
display: flex;
|
|
38
|
+
width: 16px;
|
|
39
|
+
height: 16px;
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
align-items: center;
|
|
42
|
+
color: var(--mw-toast-icon);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.mw-toast__icon svg {
|
|
46
|
+
width: 16px;
|
|
47
|
+
height: 16px;
|
|
48
|
+
stroke-width: 1.5;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.mw-toast__body {
|
|
52
|
+
display: flex;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
flex: 1;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: var(--mw-spacing-sp-8);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.mw-toast__text {
|
|
60
|
+
min-width: 0;
|
|
61
|
+
flex: 1;
|
|
62
|
+
color: var(--mw-toast-text);
|
|
63
|
+
font-family: var(--mw-font-primary, inherit);
|
|
64
|
+
font-size: var(--mw-density-font-size, 16px);
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
line-height: 1.5;
|
|
67
|
+
letter-spacing: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.mw-toast__action {
|
|
71
|
+
display: inline-flex;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
color: var(--mw-toast-action);
|
|
74
|
+
font-family: var(--mw-font-primary, inherit);
|
|
75
|
+
font-size: var(--mw-density-font-size, 16px);
|
|
76
|
+
font-weight: 400;
|
|
77
|
+
line-height: 1.5;
|
|
78
|
+
letter-spacing: 0;
|
|
79
|
+
text-decoration-line: underline;
|
|
80
|
+
text-decoration-thickness: 1px;
|
|
81
|
+
text-underline-offset: 2px;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.mw-toast__action-button {
|
|
86
|
+
appearance: none;
|
|
87
|
+
padding: 0;
|
|
88
|
+
border: 0;
|
|
89
|
+
background: transparent;
|
|
90
|
+
color: inherit;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
font: inherit;
|
|
93
|
+
text-decoration: inherit;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.mw-toast__action-button:focus-visible,
|
|
97
|
+
.mw-toast__action :where(a, button):focus-visible {
|
|
98
|
+
outline: 2px solid var(--mw-color-focus, #2684ff);
|
|
99
|
+
outline-offset: 2px;
|
|
100
|
+
border-radius: 2px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.mw-toast__dismiss {
|
|
104
|
+
display: flex;
|
|
105
|
+
width: 16px;
|
|
106
|
+
height: 16px;
|
|
107
|
+
flex-shrink: 0;
|
|
108
|
+
align-items: center;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
padding: 0;
|
|
111
|
+
border: none;
|
|
112
|
+
background: none;
|
|
113
|
+
color: var(--mw-toast-icon);
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.mw-toast__dismiss:focus-visible {
|
|
118
|
+
outline: 2px solid var(--mw-color-focus);
|
|
119
|
+
outline-offset: 2px;
|
|
120
|
+
border-radius: 2px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.mw-toast__dismiss::before {
|
|
124
|
+
content: "";
|
|
125
|
+
display: block;
|
|
126
|
+
width: 16px;
|
|
127
|
+
height: 16px;
|
|
128
|
+
background-color: currentColor;
|
|
129
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cline x1='18' y1='6' x2='6' y2='18' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='6' y1='6' x2='18' y2='18' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
130
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cline x1='18' y1='6' x2='6' y2='18' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='6' y1='6' x2='18' y2='18' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
131
|
+
mask-repeat: no-repeat;
|
|
132
|
+
mask-position: center;
|
|
133
|
+
mask-size: contain;
|
|
134
|
+
-webkit-mask-repeat: no-repeat;
|
|
135
|
+
-webkit-mask-position: center;
|
|
136
|
+
-webkit-mask-size: contain;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* --------------------------------------------
|
|
140
|
+
Light mode
|
|
141
|
+
-------------------------------------------- */
|
|
142
|
+
|
|
143
|
+
.mw-toast--subtle {
|
|
144
|
+
--mw-toast-surface: var(--mw-color-surface-elevated);
|
|
145
|
+
--mw-toast-border: var(--mw-color-border);
|
|
146
|
+
--mw-toast-icon: var(--mw-color-text-muted);
|
|
147
|
+
--mw-toast-text: var(--mw-color-text);
|
|
148
|
+
--mw-toast-action: var(--mw-color-text);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.mw-toast--subtle[data-intent="error"],
|
|
152
|
+
.mw-toast--subtle[data-intent="brand"] {
|
|
153
|
+
--mw-toast-icon: var(--mw-color-text);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.mw-toast--outline {
|
|
157
|
+
--mw-toast-surface: var(--mw-color-surface-elevated);
|
|
158
|
+
--mw-toast-border: var(--mw-color-primary-base);
|
|
159
|
+
--mw-toast-icon: var(--mw-color-primary-base);
|
|
160
|
+
--mw-toast-text: var(--mw-color-primary-base);
|
|
161
|
+
--mw-toast-action: var(--mw-color-primary-base);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.mw-toast--outline[data-intent="neutral"] {
|
|
165
|
+
--mw-toast-border: var(--mw-color-border);
|
|
166
|
+
--mw-toast-icon: var(--mw-color-text-muted);
|
|
167
|
+
--mw-toast-text: var(--mw-color-text);
|
|
168
|
+
--mw-toast-action: var(--mw-color-text);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.mw-toast--outline[data-intent="success"] {
|
|
172
|
+
--mw-toast-border: var(--mw-color-success-base);
|
|
173
|
+
--mw-toast-icon: var(--mw-color-success-base);
|
|
174
|
+
--mw-toast-text: var(--mw-color-success-base);
|
|
175
|
+
--mw-toast-action: var(--mw-color-success-base);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.mw-toast--outline[data-intent="warning"] {
|
|
179
|
+
--mw-toast-border: var(--mw-color-warning-base);
|
|
180
|
+
--mw-toast-icon: var(--mw-color-warning-base);
|
|
181
|
+
--mw-toast-text: var(--mw-color-warning-base);
|
|
182
|
+
--mw-toast-action: var(--mw-color-warning-base);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.mw-toast--outline[data-intent="error"] {
|
|
186
|
+
--mw-toast-border: var(--mw-color-danger-base);
|
|
187
|
+
--mw-toast-icon: var(--mw-color-danger-base);
|
|
188
|
+
--mw-toast-text: var(--mw-color-danger-base);
|
|
189
|
+
--mw-toast-action: var(--mw-color-danger-base);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.mw-toast--rich {
|
|
193
|
+
--mw-toast-surface: color-mix(in srgb, var(--mw-color-primary-base) 12%, var(--mw-color-surface));
|
|
194
|
+
--mw-toast-border: var(--mw-color-primary-base);
|
|
195
|
+
--mw-toast-icon: var(--mw-color-primary-base);
|
|
196
|
+
--mw-toast-text: var(--mw-color-primary-base);
|
|
197
|
+
--mw-toast-action: var(--mw-color-primary-base);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.mw-toast--rich[data-intent="neutral"] {
|
|
201
|
+
--mw-toast-surface: var(--mw-color-surface-subtle);
|
|
202
|
+
--mw-toast-border: var(--mw-color-border-subtle);
|
|
203
|
+
--mw-toast-icon: var(--mw-color-text-muted);
|
|
204
|
+
--mw-toast-text: var(--mw-color-text);
|
|
205
|
+
--mw-toast-action: var(--mw-color-text-muted);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.mw-toast--rich[data-intent="success"] {
|
|
209
|
+
--mw-toast-surface: color-mix(in srgb, var(--mw-color-success-base) 12%, var(--mw-color-surface));
|
|
210
|
+
--mw-toast-border: var(--mw-color-success-base);
|
|
211
|
+
--mw-toast-icon: var(--mw-color-success-base);
|
|
212
|
+
--mw-toast-text: var(--mw-color-success-base);
|
|
213
|
+
--mw-toast-action: var(--mw-color-success-base);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.mw-toast--rich[data-intent="warning"] {
|
|
217
|
+
--mw-toast-surface: color-mix(in srgb, var(--mw-color-warning-base) 16%, var(--mw-color-surface));
|
|
218
|
+
--mw-toast-border: var(--mw-color-warning-base);
|
|
219
|
+
--mw-toast-icon: var(--mw-color-warning-base);
|
|
220
|
+
--mw-toast-text: var(--mw-color-warning-base);
|
|
221
|
+
--mw-toast-action: var(--mw-color-warning-base);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.mw-toast--rich[data-intent="error"] {
|
|
225
|
+
--mw-toast-surface: color-mix(in srgb, var(--mw-color-danger-base) 12%, var(--mw-color-surface));
|
|
226
|
+
--mw-toast-border: var(--mw-color-danger-base);
|
|
227
|
+
--mw-toast-icon: var(--mw-color-danger-base);
|
|
228
|
+
--mw-toast-text: var(--mw-color-danger-base);
|
|
229
|
+
--mw-toast-action: var(--mw-color-danger-base);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* --------------------------------------------
|
|
233
|
+
Dark mode
|
|
234
|
+
-------------------------------------------- */
|
|
235
|
+
|
|
236
|
+
.mw-theme--dark .mw-toast--subtle {
|
|
237
|
+
--mw-toast-surface: var(--mw-color-surface-elevated);
|
|
238
|
+
--mw-toast-border: var(--mw-color-border);
|
|
239
|
+
--mw-toast-icon: var(--mw-color-text-muted);
|
|
240
|
+
--mw-toast-text: var(--mw-color-text);
|
|
241
|
+
--mw-toast-action: var(--mw-color-text);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.mw-theme--dark .mw-toast--outline {
|
|
245
|
+
--mw-toast-surface: var(--mw-color-surface-elevated);
|
|
246
|
+
--mw-toast-border: var(--mw-color-primary-base);
|
|
247
|
+
--mw-toast-icon: var(--mw-color-primary-base);
|
|
248
|
+
--mw-toast-text: var(--mw-color-primary-base);
|
|
249
|
+
--mw-toast-action: var(--mw-color-primary-base);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.mw-theme--dark .mw-toast--outline[data-intent="neutral"] {
|
|
253
|
+
--mw-toast-border: var(--mw-color-border);
|
|
254
|
+
--mw-toast-icon: var(--mw-color-text-muted);
|
|
255
|
+
--mw-toast-text: var(--mw-color-text);
|
|
256
|
+
--mw-toast-action: var(--mw-color-text);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.mw-theme--dark .mw-toast--outline[data-intent="success"] {
|
|
260
|
+
--mw-toast-border: var(--mw-color-success-base);
|
|
261
|
+
--mw-toast-icon: var(--mw-color-success-base);
|
|
262
|
+
--mw-toast-text: var(--mw-color-success-base);
|
|
263
|
+
--mw-toast-action: var(--mw-color-success-base);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.mw-theme--dark .mw-toast--outline[data-intent="warning"] {
|
|
267
|
+
--mw-toast-border: var(--mw-color-warning-base);
|
|
268
|
+
--mw-toast-icon: var(--mw-color-warning-base);
|
|
269
|
+
--mw-toast-text: var(--mw-color-warning-base);
|
|
270
|
+
--mw-toast-action: var(--mw-color-warning-base);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.mw-theme--dark .mw-toast--outline[data-intent="error"] {
|
|
274
|
+
--mw-toast-border: var(--mw-color-danger-base);
|
|
275
|
+
--mw-toast-icon: var(--mw-color-danger-base);
|
|
276
|
+
--mw-toast-text: var(--mw-color-danger-base);
|
|
277
|
+
--mw-toast-action: var(--mw-color-danger-base);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.mw-theme--dark .mw-toast--rich {
|
|
281
|
+
--mw-toast-surface: color-mix(in srgb, var(--mw-color-primary-base) 18%, var(--mw-color-surface));
|
|
282
|
+
--mw-toast-border: var(--mw-color-primary-base);
|
|
283
|
+
--mw-toast-icon: var(--mw-color-primary-base);
|
|
284
|
+
--mw-toast-text: var(--mw-color-primary-base);
|
|
285
|
+
--mw-toast-action: var(--mw-color-primary-base);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.mw-theme--dark .mw-toast--rich[data-intent="neutral"] {
|
|
289
|
+
--mw-toast-surface: var(--mw-color-surface-subtle);
|
|
290
|
+
--mw-toast-border: var(--mw-color-border-subtle);
|
|
291
|
+
--mw-toast-icon: var(--mw-color-text-muted);
|
|
292
|
+
--mw-toast-text: var(--mw-color-text);
|
|
293
|
+
--mw-toast-action: var(--mw-color-text-muted);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.mw-theme--dark .mw-toast--rich[data-intent="success"] {
|
|
297
|
+
--mw-toast-surface: color-mix(in srgb, var(--mw-color-success-base) 18%, var(--mw-color-surface));
|
|
298
|
+
--mw-toast-border: var(--mw-color-success-base);
|
|
299
|
+
--mw-toast-icon: var(--mw-color-success-base);
|
|
300
|
+
--mw-toast-text: var(--mw-color-success-base);
|
|
301
|
+
--mw-toast-action: var(--mw-color-success-base);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.mw-theme--dark .mw-toast--rich[data-intent="warning"] {
|
|
305
|
+
--mw-toast-surface: color-mix(in srgb, var(--mw-color-warning-base) 20%, var(--mw-color-surface));
|
|
306
|
+
--mw-toast-border: var(--mw-color-warning-base);
|
|
307
|
+
--mw-toast-icon: var(--mw-color-warning-base);
|
|
308
|
+
--mw-toast-text: var(--mw-color-warning-base);
|
|
309
|
+
--mw-toast-action: var(--mw-color-warning-base);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.mw-theme--dark .mw-toast--rich[data-intent="error"] {
|
|
313
|
+
--mw-toast-surface: color-mix(in srgb, var(--mw-color-danger-base) 18%, var(--mw-color-surface));
|
|
314
|
+
--mw-toast-border: var(--mw-color-danger-base);
|
|
315
|
+
--mw-toast-icon: var(--mw-color-danger-base);
|
|
316
|
+
--mw-toast-text: var(--mw-color-danger-base);
|
|
317
|
+
--mw-toast-action: var(--mw-color-danger-base);
|
|
318
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* FirstEdition — Design Tokens
|
|
2
|
+
Static, density-independent values available across all component CSS files.
|
|
3
|
+
The theme engine (theme-css.ts) handles color, density, and typography vars.
|
|
4
|
+
These are fixed primitives that do not change with theme or density.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
:root,
|
|
8
|
+
[data-marwes-theme] {
|
|
9
|
+
/* ── Spacing scale ──────────────────────────────────────────────────────────
|
|
10
|
+
Named after the actual pixel values to stay aligned with Figma.
|
|
11
|
+
sp-0 → 0px | sp-2 → 2px | sp-4 → 4px | sp-8 → 8px | sp-16 → 16px
|
|
12
|
+
sp-24 → 24px | sp-32 → 32px | sp-40 → 40px | sp-48 → 48px
|
|
13
|
+
sp-56 → 56px | sp-64 → 64px | sp-72 → 72px | sp-80 → 80px
|
|
14
|
+
sp-88 → 88px | sp-96 → 96px | sp-104 → 104px | sp-112 → 112px
|
|
15
|
+
sp-120 → 120px
|
|
16
|
+
*/
|
|
17
|
+
--mw-spacing-sp-0: 0px;
|
|
18
|
+
--mw-spacing-sp-2: 2px;
|
|
19
|
+
--mw-spacing-sp-4: 4px;
|
|
20
|
+
--mw-spacing-sp-8: 8px;
|
|
21
|
+
--mw-spacing-sp-16: 16px;
|
|
22
|
+
--mw-spacing-sp-24: 24px;
|
|
23
|
+
--mw-spacing-sp-32: 32px;
|
|
24
|
+
--mw-spacing-sp-40: 40px;
|
|
25
|
+
--mw-spacing-sp-48: 48px;
|
|
26
|
+
--mw-spacing-sp-56: 56px;
|
|
27
|
+
--mw-spacing-sp-64: 64px;
|
|
28
|
+
--mw-spacing-sp-72: 72px;
|
|
29
|
+
--mw-spacing-sp-80: 80px;
|
|
30
|
+
--mw-spacing-sp-88: 88px;
|
|
31
|
+
--mw-spacing-sp-96: 96px;
|
|
32
|
+
--mw-spacing-sp-104: 104px;
|
|
33
|
+
--mw-spacing-sp-112: 112px;
|
|
34
|
+
--mw-spacing-sp-120: 120px;
|
|
35
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Tooltip Component Styles
|
|
3
|
+
* Figma: 1364:7739 (Tooltip) / 1574:21100 (Tooltip group)
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.mw-tooltip {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
max-width: 240px;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
padding: 8px 12px;
|
|
12
|
+
border-radius: var(--mw-ui-radius, 4px);
|
|
13
|
+
background: var(--mw-color-surface-inverted, #141414);
|
|
14
|
+
color: var(--mw-color-text-inverted, #ffffff);
|
|
15
|
+
font-family: var(--mw-font-primary, inherit);
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
line-height: 16px;
|
|
19
|
+
letter-spacing: 0;
|
|
20
|
+
text-align: center;
|
|
21
|
+
transform-origin: bottom center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.mw-tooltip:not([data-state]),
|
|
25
|
+
.mw-tooltip[data-state="open"] {
|
|
26
|
+
animation: mw-tooltip-enter 160ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mw-tooltip[data-state="closed"] {
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
animation: mw-tooltip-exit 160ms cubic-bezier(0.4, 0, 1, 1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.mw-tooltip-group {
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: var(--mw-spacing-sp-4);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.mw-tooltip-group__trigger {
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
width: 16px;
|
|
44
|
+
height: 16px;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
padding: 0;
|
|
48
|
+
border: none;
|
|
49
|
+
background: transparent;
|
|
50
|
+
color: var(--mw-color-text-muted);
|
|
51
|
+
cursor: help;
|
|
52
|
+
transition: color 120ms ease, transform 120ms ease;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.mw-tooltip-group__trigger:hover,
|
|
56
|
+
.mw-tooltip-group__trigger:focus-visible {
|
|
57
|
+
transform: translateY(-1px);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.mw-tooltip-group__trigger:focus-visible {
|
|
61
|
+
outline: 2px solid var(--mw-color-focus);
|
|
62
|
+
outline-offset: 2px;
|
|
63
|
+
border-radius: 2px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.mw-tooltip-group__trigger svg {
|
|
67
|
+
width: 16px;
|
|
68
|
+
height: 16px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@keyframes mw-tooltip-enter {
|
|
72
|
+
from {
|
|
73
|
+
opacity: 0;
|
|
74
|
+
transform: translateY(4px) scale(0.98);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
to {
|
|
78
|
+
opacity: 1;
|
|
79
|
+
transform: translateY(0) scale(1);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@keyframes mw-tooltip-exit {
|
|
84
|
+
from {
|
|
85
|
+
opacity: 1;
|
|
86
|
+
transform: translateY(0) scale(1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
to {
|
|
90
|
+
opacity: 0;
|
|
91
|
+
transform: translateY(2px) scale(0.99);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@media (prefers-reduced-motion: reduce) {
|
|
96
|
+
.mw-tooltip {
|
|
97
|
+
animation: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.mw-tooltip-group__trigger {
|
|
101
|
+
transition: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.mw-tooltip-group__trigger:hover,
|
|
105
|
+
.mw-tooltip-group__trigger:focus-visible {
|
|
106
|
+
transform: none;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.mw-theme--dark .mw-tooltip-group__trigger {
|
|
111
|
+
color: var(--mw-color-text-muted);
|
|
112
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
Typography Component Styles - firstEdition
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
/* BASE HEADING */
|
|
6
|
+
.mw-heading {
|
|
7
|
+
font-family: var(--mw-font-primary, inherit);
|
|
8
|
+
font-size: var(--mw-heading-size);
|
|
9
|
+
line-height: var(--mw-heading-line-height);
|
|
10
|
+
font-weight: var(--mw-heading-weight);
|
|
11
|
+
letter-spacing: var(--mw-heading-letter-spacing);
|
|
12
|
+
color: var(--mw-color-text);
|
|
13
|
+
margin: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Heading sizes are controlled via CSS variables set by the recipe */
|
|
17
|
+
/* .mw-heading--h1 uses 32/38, weight 700, letter-spacing -0.96px */
|
|
18
|
+
/* .mw-heading--h2 uses 24/30, weight 500, letter-spacing -0.72px */
|
|
19
|
+
/* .mw-heading--h3 uses 20/26, weight 500, letter-spacing -0.6px */
|
|
20
|
+
|
|
21
|
+
/* BASE PARAGRAPH */
|
|
22
|
+
.mw-p {
|
|
23
|
+
font-family: var(--mw-font-primary, inherit);
|
|
24
|
+
font-size: var(--mw-p-size);
|
|
25
|
+
line-height: var(--mw-p-line-height);
|
|
26
|
+
color: var(--mw-color-text);
|
|
27
|
+
margin: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Paragraph sizes are controlled via CSS variables set by the recipe */
|
|
31
|
+
/* .mw-p--sm uses --mw-p-size: 14px, --mw-p-line-height: 1.5 */
|
|
32
|
+
/* .mw-p--md uses --mw-p-size: 16px, --mw-p-line-height: 1.6 */
|
|
33
|
+
/* .mw-p--lg uses --mw-p-size: 18px, --mw-p-line-height: 1.7 */
|
package/dist/chunk-UJIVT75P.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import '@fontsource/instrument-sans/400.css';
|
|
2
|
-
import '@fontsource/instrument-sans/500.css';
|
|
3
|
-
import '@fontsource/instrument-sans/600.css';
|
|
4
|
-
|
|
5
|
-
// src/firstEdition/index.ts
|
|
6
|
-
var firstEdition = {
|
|
7
|
-
name: "firstEdition",
|
|
8
|
-
theme: {
|
|
9
|
-
ui: {
|
|
10
|
-
radius: 4,
|
|
11
|
-
density: "comfortable",
|
|
12
|
-
variant: "solid"
|
|
13
|
-
},
|
|
14
|
-
font: {
|
|
15
|
-
primary: "Instrument Sans, system-ui, -apple-system, sans-serif"
|
|
16
|
-
},
|
|
17
|
-
icon: {
|
|
18
|
-
size: "sm",
|
|
19
|
-
strokeWidth: "sm"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { firstEdition };
|
|
25
|
-
//# sourceMappingURL=chunk-UJIVT75P.js.map
|
|
26
|
-
//# sourceMappingURL=chunk-UJIVT75P.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/firstEdition/index.ts"],"names":[],"mappings":";;;;;AAKO,IAAM,YAAA,GAAuB;AAAA,EAClC,IAAA,EAAM,cAAA;AAAA,EACN,KAAA,EAAO;AAAA,IACL,EAAA,EAAI;AAAA,MACF,MAAA,EAAQ,CAAA;AAAA,MACR,OAAA,EAAS,aAAA;AAAA,MACT,OAAA,EAAS;AAAA,KACX;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,OAAA,EAAS;AAAA,KACX;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM,IAAA;AAAA,MACN,WAAA,EAAa;AAAA;AACf;AAEJ","file":"chunk-UJIVT75P.js","sourcesContent":["import type { Preset } from \"@marwes-ui/core\"\nimport \"@fontsource/instrument-sans/400.css\"\nimport \"@fontsource/instrument-sans/500.css\"\nimport \"@fontsource/instrument-sans/600.css\"\n\nexport const firstEdition: Preset = {\n name: \"firstEdition\",\n theme: {\n ui: {\n radius: 4,\n density: \"comfortable\",\n variant: \"solid\",\n },\n font: {\n primary: \"Instrument Sans, system-ui, -apple-system, sans-serif\",\n },\n icon: {\n size: \"sm\",\n strokeWidth: \"sm\",\n },\n },\n}\n"]}
|