@a-type/ui 6.0.81 → 6.1.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/dist/arbor/arbor.d.ts +637 -691
- package/dist/arbor/arbor.js +51 -63
- package/dist/arbor/arbor.js.map +1 -1
- package/dist/colors.module.css +14 -14
- package/dist/components/actions/ActionBar.module.css +1 -1
- package/dist/components/actions/ActionButton.module.css +1 -1
- package/dist/components/avatar/Avatar.module.css +5 -5
- package/dist/components/box/Box.module.css +19 -19
- package/dist/components/box/Box.stories.js +1 -1
- package/dist/components/box/Box.stories.js.map +1 -1
- package/dist/components/button/Button.module.css +9 -9
- package/dist/components/camera/Camera.module.css +9 -9
- package/dist/components/card/Card.module.css +24 -24
- package/dist/components/card/Card.stories.js +2 -2
- package/dist/components/card/Card.stories.js.map +1 -1
- package/dist/components/checkbox/Checkbox.module.css +8 -8
- package/dist/components/chip/Chip.module.css +9 -9
- package/dist/components/collapsible/Collapsible.module.css +2 -2
- package/dist/components/combobox/Combobox.module.css +26 -26
- package/dist/components/datePicker/Calendar.module.css +32 -32
- package/dist/components/datePicker/dateRangePicker.module.css +1 -1
- package/dist/components/dialog/Dialog.module.css +25 -25
- package/dist/components/dialog/Dialog.stories.js +1 -1
- package/dist/components/dialog/Dialog.stories.js.map +1 -1
- package/dist/components/divider/Divider.module.css +2 -2
- package/dist/components/editableText/EditableText.module.css +5 -5
- package/dist/components/emojiPicker/EmojiPicker.module.css +10 -10
- package/dist/components/forms/Field.module.css +10 -12
- package/dist/components/forms/Form.module.css +1 -1
- package/dist/components/forms/NumberStepperField.module.css +1 -1
- package/dist/components/forms/TextField.module.css +1 -1
- package/dist/components/horizontalList/HorizontalList.module.css +7 -8
- package/dist/components/horizontalList/HorizontalList.stories.js +5 -5
- package/dist/components/horizontalList/HorizontalList.stories.js.map +1 -1
- package/dist/components/icon/Icon.module.css +1 -1
- package/dist/components/icon/Icon.stories.js +1 -1
- package/dist/components/icon/Icon.stories.js.map +1 -1
- package/dist/components/imageUploader/ImageUploader.module.css +9 -9
- package/dist/components/input/Input.module.css +13 -13
- package/dist/components/layouts/PageContent.module.css +3 -3
- package/dist/components/layouts/PageFixedArea.module.css +1 -1
- package/dist/components/layouts/PageNav.module.css +4 -4
- package/dist/components/layouts/PageNowPlaying.module.css +4 -4
- package/dist/components/layouts/PageRoot.module.css +1 -1
- package/dist/components/layouts/PageSection.module.css +4 -4
- package/dist/components/layouts/layouts.stories.js +1 -1
- package/dist/components/layouts/layouts.stories.js.map +1 -1
- package/dist/components/lightbox/Lightbox.module.css +5 -5
- package/dist/components/lists/lists.module.css +3 -3
- package/dist/components/marquee/marquee.module.css +1 -1
- package/dist/components/navBar/NavBar.module.css +19 -19
- package/dist/components/note/Note.module.css +16 -16
- package/dist/components/numberStepper/NumberStepper.module.css +4 -4
- package/dist/components/peek/Peek.module.css +9 -9
- package/dist/components/popover/Popover.module.css +5 -5
- package/dist/components/popover/Popover.stories.js +1 -1
- package/dist/components/popover/Popover.stories.js.map +1 -1
- package/dist/components/primitives/menus.module.css +29 -33
- package/dist/components/progress/Progress.module.css +11 -11
- package/dist/components/provider/Provider.js +1 -1
- package/dist/components/provider/Provider.js.map +1 -1
- package/dist/components/pwaInstall/PwaInstall.module.css +4 -4
- package/dist/components/quickAction/QuickAction.module.css +4 -4
- package/dist/components/richEditor/richEditor.module.css +18 -18
- package/dist/components/scrollArea/ScrollArea.module.css +8 -8
- package/dist/components/select/Select.module.css +3 -3
- package/dist/components/skeletons/skeletons.module.css +3 -3
- package/dist/components/slider/Slider.module.css +13 -13
- package/dist/components/spinner/Spinner.module.css +1 -1
- package/dist/components/switch/Switch.module.css +9 -9
- package/dist/components/tabs/tabs.module.css +16 -16
- package/dist/components/textArea/TextArea.module.css +1 -1
- package/dist/components/toasts/toasts.module.css +19 -19
- package/dist/components/toggleGroup/toggleGroup.module.css +12 -12
- package/dist/components/tooltip/Tooltip.module.css +10 -10
- package/dist/components/typography/typography.d.ts +1 -2
- package/dist/components/typography/typography.js +1 -2
- package/dist/components/typography/typography.js.map +1 -1
- package/dist/components/typography/typography.module.css +6 -9
- package/dist/components/viewport/Viewport.module.css +9 -9
- package/dist/css/base.css +1 -1
- package/dist/css/util.css +10 -10
- package/dist/hooks/useTitleBarColor.stories.js +1 -1
- package/dist/hooks/useTitleBarColor.stories.js.map +1 -1
- package/dist/keyboard.stories.js +1 -1
- package/dist/keyboard.stories.js.map +1 -1
- package/dist/shadows.stories.js +1 -1
- package/dist/shadows.stories.js.map +1 -1
- package/dist/theme.stories.module.css +1 -1
- package/package.json +5 -5
- package/src/arbor/arbor.ts +54 -67
- package/src/colors.module.css +14 -14
- package/src/components/actions/ActionBar.module.css +1 -1
- package/src/components/actions/ActionButton.module.css +1 -1
- package/src/components/avatar/Avatar.module.css +5 -5
- package/src/components/box/Box.module.css +19 -19
- package/src/components/box/Box.stories.tsx +1 -1
- package/src/components/button/Button.module.css +9 -9
- package/src/components/camera/Camera.module.css +9 -9
- package/src/components/card/Card.module.css +24 -24
- package/src/components/card/Card.stories.tsx +2 -2
- package/src/components/checkbox/Checkbox.module.css +8 -8
- package/src/components/chip/Chip.module.css +9 -9
- package/src/components/collapsible/Collapsible.module.css +2 -2
- package/src/components/combobox/Combobox.module.css +26 -26
- package/src/components/datePicker/Calendar.module.css +32 -32
- package/src/components/datePicker/dateRangePicker.module.css +1 -1
- package/src/components/dialog/Dialog.module.css +25 -25
- package/src/components/dialog/Dialog.stories.tsx +1 -1
- package/src/components/divider/Divider.module.css +2 -2
- package/src/components/editableText/EditableText.module.css +5 -5
- package/src/components/emojiPicker/EmojiPicker.module.css +10 -10
- package/src/components/forms/Field.module.css +10 -12
- package/src/components/forms/Form.module.css +1 -1
- package/src/components/forms/NumberStepperField.module.css +1 -1
- package/src/components/forms/TextField.module.css +1 -1
- package/src/components/horizontalList/HorizontalList.module.css +7 -8
- package/src/components/horizontalList/HorizontalList.stories.tsx +5 -5
- package/src/components/icon/Icon.module.css +1 -1
- package/src/components/icon/Icon.stories.tsx +1 -1
- package/src/components/imageUploader/ImageUploader.module.css +9 -9
- package/src/components/input/Input.module.css +13 -13
- package/src/components/layouts/PageContent.module.css +3 -3
- package/src/components/layouts/PageFixedArea.module.css +1 -1
- package/src/components/layouts/PageNav.module.css +4 -4
- package/src/components/layouts/PageNowPlaying.module.css +4 -4
- package/src/components/layouts/PageRoot.module.css +1 -1
- package/src/components/layouts/PageSection.module.css +4 -4
- package/src/components/layouts/layouts.stories.tsx +1 -1
- package/src/components/lightbox/Lightbox.module.css +5 -5
- package/src/components/lists/lists.module.css +3 -3
- package/src/components/marquee/marquee.module.css +1 -1
- package/src/components/navBar/NavBar.module.css +19 -19
- package/src/components/note/Note.module.css +16 -16
- package/src/components/numberStepper/NumberStepper.module.css +4 -4
- package/src/components/peek/Peek.module.css +9 -9
- package/src/components/popover/Popover.module.css +5 -5
- package/src/components/popover/Popover.stories.tsx +1 -1
- package/src/components/primitives/menus.module.css +29 -33
- package/src/components/progress/Progress.module.css +11 -11
- package/src/components/provider/Provider.tsx +1 -1
- package/src/components/pwaInstall/PwaInstall.module.css +4 -4
- package/src/components/quickAction/QuickAction.module.css +4 -4
- package/src/components/richEditor/richEditor.module.css +18 -18
- package/src/components/scrollArea/ScrollArea.module.css +8 -8
- package/src/components/select/Select.module.css +3 -3
- package/src/components/skeletons/skeletons.module.css +3 -3
- package/src/components/slider/Slider.module.css +13 -13
- package/src/components/spinner/Spinner.module.css +1 -1
- package/src/components/switch/Switch.module.css +9 -9
- package/src/components/tabs/tabs.module.css +16 -16
- package/src/components/textArea/TextArea.module.css +1 -1
- package/src/components/toasts/toasts.module.css +19 -19
- package/src/components/toggleGroup/toggleGroup.module.css +12 -12
- package/src/components/tooltip/Tooltip.module.css +10 -10
- package/src/components/typography/typography.module.css +6 -9
- package/src/components/typography/typography.tsx +0 -3
- package/src/components/viewport/Viewport.module.css +9 -9
- package/src/css/base.css +1 -1
- package/src/css/util.css +10 -10
- package/src/hooks/useTitleBarColor.stories.tsx +1 -1
- package/src/keyboard.stories.tsx +1 -1
- package/src/shadows.stories.tsx +1 -1
- package/src/theme.stories.module.css +1 -1
package/src/arbor/arbor.ts
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ArborPresetConfig,
|
|
4
4
|
compileSingleColor,
|
|
5
5
|
presetArbor,
|
|
6
|
-
} from '@arbor-css/core/preset-
|
|
6
|
+
} from '@arbor-css/core/preset-v2';
|
|
7
7
|
import { $userColorHue, $userColorSaturation } from './props.js';
|
|
8
8
|
|
|
9
9
|
const defaultColors = {
|
|
@@ -103,7 +103,7 @@ export function presetAtype<
|
|
|
103
103
|
fadeInUp: (css, $) => css`
|
|
104
104
|
from {
|
|
105
105
|
opacity: 0;
|
|
106
|
-
transform: translateY(${$.mode.
|
|
106
|
+
transform: translateY(${$.mode.sp.sm});
|
|
107
107
|
}
|
|
108
108
|
to {
|
|
109
109
|
opacity: 1;
|
|
@@ -113,7 +113,7 @@ export function presetAtype<
|
|
|
113
113
|
fadeInLeft: (css, $) => css`
|
|
114
114
|
from {
|
|
115
115
|
opacity: 0;
|
|
116
|
-
transform: translateX(-${$.mode.
|
|
116
|
+
transform: translateX(-${$.mode.sp.sm});
|
|
117
117
|
}
|
|
118
118
|
to {
|
|
119
119
|
opacity: 1;
|
|
@@ -123,7 +123,7 @@ export function presetAtype<
|
|
|
123
123
|
fadeInRight: (css, $) => css`
|
|
124
124
|
from {
|
|
125
125
|
opacity: 0;
|
|
126
|
-
transform: translateX(${$.mode.
|
|
126
|
+
transform: translateX(${$.mode.sp.sm});
|
|
127
127
|
}
|
|
128
128
|
to {
|
|
129
129
|
opacity: 1;
|
|
@@ -137,7 +137,7 @@ export function presetAtype<
|
|
|
137
137
|
}
|
|
138
138
|
to {
|
|
139
139
|
opacity: 0;
|
|
140
|
-
transform: translateY(-${$.mode.
|
|
140
|
+
transform: translateY(-${$.mode.sp.sm});
|
|
141
141
|
}
|
|
142
142
|
`,
|
|
143
143
|
fadeOutLeft: (css, $) => css`
|
|
@@ -147,7 +147,7 @@ export function presetAtype<
|
|
|
147
147
|
}
|
|
148
148
|
to {
|
|
149
149
|
opacity: 0;
|
|
150
|
-
transform: translateX(-${$.mode.
|
|
150
|
+
transform: translateX(-${$.mode.sp.sm});
|
|
151
151
|
}
|
|
152
152
|
`,
|
|
153
153
|
fadeOutRight: (css, $) => css`
|
|
@@ -157,7 +157,7 @@ export function presetAtype<
|
|
|
157
157
|
}
|
|
158
158
|
to {
|
|
159
159
|
opacity: 0;
|
|
160
|
-
transform: translateX(${$.mode.
|
|
160
|
+
transform: translateX(${$.mode.sp.sm});
|
|
161
161
|
}
|
|
162
162
|
`,
|
|
163
163
|
fadeOutDown: (css, $) => css`
|
|
@@ -167,7 +167,7 @@ export function presetAtype<
|
|
|
167
167
|
}
|
|
168
168
|
to {
|
|
169
169
|
opacity: 0;
|
|
170
|
-
transform: translateY(${$.mode.
|
|
170
|
+
transform: translateY(${$.mode.sp.sm});
|
|
171
171
|
}
|
|
172
172
|
`,
|
|
173
173
|
fadeOut: (css) => css`
|
|
@@ -202,31 +202,31 @@ export function presetAtype<
|
|
|
202
202
|
name: 'a-type',
|
|
203
203
|
extends: [base],
|
|
204
204
|
baseMode: ($) => ({
|
|
205
|
+
accent: $.mode.color[defaultAccent],
|
|
205
206
|
color: {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
$.mode.global,
|
|
214
|
-
),
|
|
215
|
-
},
|
|
207
|
+
user: compileSingleColor(
|
|
208
|
+
{
|
|
209
|
+
hue: $.mode.user.hue,
|
|
210
|
+
saturation: $.mode.user.saturation,
|
|
211
|
+
},
|
|
212
|
+
$.mode.global,
|
|
213
|
+
),
|
|
216
214
|
},
|
|
217
215
|
action: {
|
|
218
216
|
roundness: config?.roundActions === false ? undefined : 2,
|
|
219
217
|
|
|
220
218
|
light: {
|
|
221
|
-
bg: $.mode.
|
|
219
|
+
bg: $.mode.tint.light,
|
|
222
220
|
fg: $.mode.global.trueHeavyColor,
|
|
223
|
-
|
|
224
|
-
$
|
|
225
|
-
.
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
221
|
+
b: {
|
|
222
|
+
$root: css`
|
|
223
|
+
${$.mode.action.light.b.width} ${$.mode.action.light.b.style} ${$
|
|
224
|
+
.mode.action.light.b.color}
|
|
225
|
+
`,
|
|
226
|
+
width: $.mode.lw.$root,
|
|
227
|
+
color: $.mixins.fg.ref,
|
|
228
|
+
style: 'solid',
|
|
229
|
+
},
|
|
230
230
|
},
|
|
231
231
|
primary: {
|
|
232
232
|
borderColor: $.mixins.fg.ref,
|
|
@@ -236,13 +236,17 @@ export function presetAtype<
|
|
|
236
236
|
},
|
|
237
237
|
},
|
|
238
238
|
control: {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
config: {
|
|
240
|
+
roundness: config?.roundControls ? 2 : undefined,
|
|
241
|
+
},
|
|
242
|
+
p: {
|
|
243
|
+
block: $.mode.sp.sm,
|
|
242
244
|
},
|
|
243
245
|
},
|
|
244
246
|
surface: {
|
|
245
|
-
|
|
247
|
+
config: {
|
|
248
|
+
roundness: 1,
|
|
249
|
+
},
|
|
246
250
|
},
|
|
247
251
|
user: {
|
|
248
252
|
hue: 0,
|
|
@@ -261,9 +265,7 @@ export function presetAtype<
|
|
|
261
265
|
},
|
|
262
266
|
}),
|
|
263
267
|
modeSchema: {
|
|
264
|
-
|
|
265
|
-
accent: base.modeSchema.color.main,
|
|
266
|
-
},
|
|
268
|
+
accent: base.modeSchema.tint,
|
|
267
269
|
user: {
|
|
268
270
|
hue: {
|
|
269
271
|
purpose: 'other',
|
|
@@ -285,12 +287,12 @@ export function presetAtype<
|
|
|
285
287
|
${base.mixins.bg.apply({ '--color': $.mode.action.light.bg })}
|
|
286
288
|
${base.mixins.fg.apply({ '--color': $.mode.action.light.fg })}
|
|
287
289
|
${base.mixins.borderColor.apply({
|
|
288
|
-
'--color': $.mode.action.light.
|
|
290
|
+
'--color': $.mode.action.light.b.color,
|
|
289
291
|
})}
|
|
290
|
-
border-width: ${$.mode.action.light.
|
|
291
|
-
border-style: ${$.mode.action.light.
|
|
292
|
-
border-radius: ${$.mode.action.
|
|
293
|
-
padding: ${$.mode.action.
|
|
292
|
+
border-width: ${$.mode.action.light.b.width};
|
|
293
|
+
border-style: ${$.mode.action.light.b.style};
|
|
294
|
+
border-radius: ${$.mode.action.rd};
|
|
295
|
+
padding: ${$.mode.action.p.$root};
|
|
294
296
|
`,
|
|
295
297
|
}),
|
|
296
298
|
hover: create('hover', {
|
|
@@ -322,7 +324,7 @@ export function presetAtype<
|
|
|
322
324
|
${base.mixins.bgLighter.apply({ '--step': 1 })}
|
|
323
325
|
${base.mixins.ring.apply({
|
|
324
326
|
'--ring': base.functions.ring.compute({
|
|
325
|
-
'--color': $.mode.
|
|
327
|
+
'--color': $.mode.tint.heavy,
|
|
326
328
|
'--size': '2px',
|
|
327
329
|
}),
|
|
328
330
|
})}
|
|
@@ -353,7 +355,7 @@ export function presetAtype<
|
|
|
353
355
|
${base.mixins.bgDesaturated.apply({ '--step': 8 })}
|
|
354
356
|
${base.mixins.fgFaded.apply({
|
|
355
357
|
'--opacity': 0.65,
|
|
356
|
-
'--source': $.mode.
|
|
358
|
+
'--source': $.mode.gray.ink,
|
|
357
359
|
})}
|
|
358
360
|
}
|
|
359
361
|
`,
|
|
@@ -368,45 +370,32 @@ export function presetAtype<
|
|
|
368
370
|
fallback: '2px',
|
|
369
371
|
},
|
|
370
372
|
],
|
|
371
|
-
definition: (css, width) =>
|
|
372
|
-
css`0 0 0 ${width} ${$.mode.color.main.heavy}`,
|
|
373
|
+
definition: (css, width) => css`0 0 0 ${width} ${$.mode.tint.heavy}`,
|
|
373
374
|
}),
|
|
374
375
|
}),
|
|
375
376
|
});
|
|
376
377
|
|
|
377
378
|
preset.bundleMode('primary', {
|
|
378
|
-
|
|
379
|
-
main: preset.$.mode.color.palette[config?.mainColor ?? 'lemon'] as any,
|
|
380
|
-
},
|
|
379
|
+
tint: preset.$.mode.color[config?.mainColor ?? 'lemon'] as any,
|
|
381
380
|
});
|
|
382
381
|
preset.bundleMode('accent', {
|
|
383
|
-
|
|
384
|
-
main: preset.$.mode.color.accent,
|
|
385
|
-
},
|
|
382
|
+
tint: preset.$.mode.accent,
|
|
386
383
|
});
|
|
387
384
|
preset.bundleMode('success', {
|
|
388
|
-
|
|
389
|
-
main: preset.$.mode.color.palette.success,
|
|
390
|
-
},
|
|
385
|
+
tint: preset.$.mode.color.success,
|
|
391
386
|
});
|
|
392
387
|
preset.bundleMode('attention', {
|
|
393
|
-
|
|
394
|
-
main: preset.$.mode.color.palette.attention,
|
|
395
|
-
},
|
|
388
|
+
tint: preset.$.mode.color.attention,
|
|
396
389
|
});
|
|
397
390
|
preset.bundleMode('neutral', {
|
|
398
|
-
|
|
399
|
-
main: preset.$.mode.color.neutral,
|
|
400
|
-
},
|
|
391
|
+
tint: preset.$.mode.gray,
|
|
401
392
|
});
|
|
402
393
|
preset.bundleMode('user', {
|
|
403
394
|
user: {
|
|
404
395
|
hue: `var(${$userColorHue}, 200)`,
|
|
405
396
|
saturation: `var(${$userColorSaturation}, 1)`,
|
|
406
397
|
},
|
|
407
|
-
|
|
408
|
-
main: preset.$.mode.color.palette.user,
|
|
409
|
-
},
|
|
398
|
+
tint: preset.$.mode.color.user,
|
|
410
399
|
});
|
|
411
400
|
|
|
412
401
|
const allColorNames = new Set<DefaultColorRangeName>([
|
|
@@ -417,13 +406,11 @@ export function presetAtype<
|
|
|
417
406
|
]);
|
|
418
407
|
for (const colorName of allColorNames) {
|
|
419
408
|
preset.bundleMode(colorName, {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
: preset.$.mode.color.palette[defaultAccent]) as any,
|
|
426
|
-
},
|
|
409
|
+
tint: preset.$.mode.color[colorName],
|
|
410
|
+
// avoid assigning leek to both main and accent
|
|
411
|
+
accent: (colorName === defaultAccent
|
|
412
|
+
? preset.$.mode.color[fallbackAccent]
|
|
413
|
+
: preset.$.mode.color[defaultAccent]) as any,
|
|
427
414
|
});
|
|
428
415
|
}
|
|
429
416
|
|
package/src/colors.module.css
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
.bgWash {
|
|
2
|
-
@apply --mx-bg(var(--m-
|
|
2
|
+
@apply --mx-bg(var(--m-tint-wash));
|
|
3
3
|
}
|
|
4
4
|
.bgLight {
|
|
5
|
-
@apply --mx-bg(var(--m-
|
|
5
|
+
@apply --mx-bg(var(--m-tint-light));
|
|
6
6
|
}
|
|
7
7
|
.bgMid {
|
|
8
|
-
@apply --mx-bg(var(--m-
|
|
8
|
+
@apply --mx-bg(var(--m-tint));
|
|
9
9
|
}
|
|
10
10
|
.bgHeavy {
|
|
11
|
-
@apply --mx-bg(var(--m-
|
|
11
|
+
@apply --mx-bg(var(--m-tint-heavy));
|
|
12
12
|
}
|
|
13
13
|
.bgInk {
|
|
14
|
-
@apply --mx-bg(var(--m-
|
|
14
|
+
@apply --mx-bg(var(--m-tint-ink));
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.bgNeutralInk {
|
|
18
|
-
@apply --mx-bg(var(--m-
|
|
18
|
+
@apply --mx-bg(var(--m-gray-ink));
|
|
19
19
|
}
|
|
20
20
|
.bgNeutralPaper {
|
|
21
|
-
@apply --mx-bg(var(--m-
|
|
21
|
+
@apply --mx-bg(var(--m-gray-paper));
|
|
22
22
|
}
|
|
23
23
|
.bgNeutralWash {
|
|
24
|
-
@apply --mx-bg(var(--m-
|
|
24
|
+
@apply --mx-bg(var(--m-gray-wash));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.rangeLabel {
|
|
28
28
|
position: absolute;
|
|
29
29
|
left: 0;
|
|
30
30
|
top: 0;
|
|
31
|
-
@apply --mx-fg(var(--m-
|
|
32
|
-
@apply --mx-bg(var(--m-
|
|
31
|
+
@apply --mx-fg(var(--m-gray));
|
|
32
|
+
@apply --mx-bg(var(--m-gray-ink));
|
|
33
33
|
@apply --mx-bg-faded(50%);
|
|
34
34
|
font-size: var(--m-prose-ambient-size);
|
|
35
35
|
line-height: var(--m-prose-ambient-lineHeight);
|
|
36
36
|
font-weight: var(--m-prose-ambient-weight);
|
|
37
|
-
padding: var(--m-
|
|
38
|
-
border-radius: var(--m-
|
|
37
|
+
padding: var(--m-sp-xs);
|
|
38
|
+
border-radius: var(--m-rd-sm);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.bgLighten1 {
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.bgBetweenMidLight {
|
|
55
|
-
@apply --mx-bg(--fn-color-between(var(--m-
|
|
55
|
+
@apply --mx-bg(--fn-color-between(var(--m-tint), var(--m-tint-light)));
|
|
56
56
|
}
|
|
57
57
|
.bgBetweenMidHeavy {
|
|
58
|
-
@apply --mx-bg(--fn-color-between(var(--m-
|
|
58
|
+
@apply --mx-bg(--fn-color-between(var(--m-tint), var(--m-tint-heavy)));
|
|
59
59
|
}
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
justify-content: center;
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
|
|
13
|
-
@apply --mx-bg(var(--m-
|
|
13
|
+
@apply --mx-bg(var(--m-gray-paper));
|
|
14
14
|
|
|
15
|
-
border-width: var(--m-
|
|
15
|
+
border-width: var(--m-lw-sm);
|
|
16
16
|
border-style: solid;
|
|
17
|
-
border-color: var(--m-
|
|
17
|
+
border-color: var(--m-gray-ink);
|
|
18
18
|
|
|
19
|
-
border-radius: var(--m-
|
|
19
|
+
border-radius: var(--m-rd-lg);
|
|
20
20
|
|
|
21
21
|
&[data-empty='true'] {
|
|
22
22
|
border-style: dashed;
|
|
23
|
-
@apply --mx-bg(var(--m-
|
|
23
|
+
@apply --mx-bg(var(--m-gray-light));
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
gap: 0;
|
|
27
27
|
}
|
|
28
28
|
&[data-gap='xs'] {
|
|
29
|
-
gap: var(--m-
|
|
29
|
+
gap: var(--m-sp-xs);
|
|
30
30
|
}
|
|
31
31
|
&[data-gap='sm'] {
|
|
32
|
-
gap: var(--m-
|
|
32
|
+
gap: var(--m-sp-sm);
|
|
33
33
|
}
|
|
34
34
|
&[data-gap='md'],
|
|
35
35
|
&[data-gap='true'] {
|
|
36
|
-
gap: var(--m-
|
|
36
|
+
gap: var(--m-sp-md);
|
|
37
37
|
}
|
|
38
38
|
&[data-gap='lg'] {
|
|
39
|
-
gap: var(--m-
|
|
39
|
+
gap: var(--m-sp-lg);
|
|
40
40
|
}
|
|
41
41
|
&[data-gap='xl'] {
|
|
42
|
-
gap: var(--m-
|
|
42
|
+
gap: var(--m-sp-xl);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
&[data-items='start'] {
|
|
@@ -92,20 +92,20 @@
|
|
|
92
92
|
--padding: 0;
|
|
93
93
|
}
|
|
94
94
|
&[data-p='xs'] {
|
|
95
|
-
--padding: var(--m-
|
|
95
|
+
--padding: var(--m-sp-xs);
|
|
96
96
|
}
|
|
97
97
|
&[data-p='sm'] {
|
|
98
|
-
--padding: var(--m-
|
|
98
|
+
--padding: var(--m-sp-sm);
|
|
99
99
|
}
|
|
100
100
|
&[data-p='md'] {
|
|
101
|
-
--padding: var(--m-
|
|
101
|
+
--padding: var(--m-sp-md);
|
|
102
102
|
}
|
|
103
103
|
&[data-p='lg'],
|
|
104
104
|
&[data-p='true'] {
|
|
105
|
-
--padding: var(--m-
|
|
105
|
+
--padding: var(--m-sp-lg);
|
|
106
106
|
}
|
|
107
107
|
&[data-p='xl'] {
|
|
108
|
-
--padding: var(--m-
|
|
108
|
+
--padding: var(--m-sp-xl);
|
|
109
109
|
}
|
|
110
110
|
padding: var(--padding, 0);
|
|
111
111
|
&[data-squish='vertical'] {
|
|
@@ -119,17 +119,17 @@
|
|
|
119
119
|
border-radius: 0;
|
|
120
120
|
}
|
|
121
121
|
&[data-rounded='xs'] {
|
|
122
|
-
border-radius: var(--m-
|
|
122
|
+
border-radius: var(--m-rd-xs);
|
|
123
123
|
}
|
|
124
124
|
&[data-rounded='sm'] {
|
|
125
|
-
border-radius: var(--m-
|
|
125
|
+
border-radius: var(--m-rd-sm);
|
|
126
126
|
}
|
|
127
127
|
&[data-rounded='md'],
|
|
128
128
|
&[data-rounded='true'] {
|
|
129
|
-
border-radius: var(--m-
|
|
129
|
+
border-radius: var(--m-rd-md);
|
|
130
130
|
}
|
|
131
131
|
&[data-rounded='lg'] {
|
|
132
|
-
border-radius: var(--m-
|
|
132
|
+
border-radius: var(--m-rd-lg);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
&[data-w='full'] {
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
&[data-border='true'] {
|
|
185
|
-
@apply --mx-borderColor(var(--m-surface-ambient-
|
|
185
|
+
@apply --mx-borderColor(var(--m-surface-ambient-b-color));
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
&[data-surface='ambient'],
|
|
@@ -190,21 +190,21 @@
|
|
|
190
190
|
@apply --mx-bg(var(--m-surface-ambient-bg));
|
|
191
191
|
@apply --mx-fg(var(--m-surface-ambient-fg));
|
|
192
192
|
&[data-border='true'] {
|
|
193
|
-
@apply --mx-borderColor(var(--m-surface-ambient-
|
|
193
|
+
@apply --mx-borderColor(var(--m-surface-ambient-b-color));
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
&[data-surface='secondary'] {
|
|
197
197
|
@apply --mx-bg(var(--m-surface-secondary-bg));
|
|
198
198
|
@apply --mx-fg(var(--m-surface-secondary-fg));
|
|
199
199
|
&[data-border='true'] {
|
|
200
|
-
@apply --mx-borderColor(var(--m-surface-secondary-
|
|
200
|
+
@apply --mx-borderColor(var(--m-surface-secondary-b-color));
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
&[data-surface='primary'] {
|
|
204
204
|
@apply --mx-bg(var(--m-surface-primary-bg));
|
|
205
205
|
@apply --mx-fg(var(--m-surface-primary-fg));
|
|
206
206
|
&[data-border='true'] {
|
|
207
|
-
@apply --mx-borderColor(var(--m-surface-primary-
|
|
207
|
+
@apply --mx-borderColor(var(--m-surface-primary-b-color));
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
}
|
|
215
215
|
/* reduce specificity so surface styles override */
|
|
216
216
|
&:where([data-dim='true']) {
|
|
217
|
-
@apply --mx-fg(var(--m-
|
|
217
|
+
@apply --mx-fg(var(--m-gray-ink));
|
|
218
218
|
}
|
|
219
219
|
&[data-dim='true'] {
|
|
220
220
|
@apply --mx-fg-lighter(2.5);
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
user-select: none;
|
|
3
3
|
appearance: none;
|
|
4
4
|
cursor: pointer;
|
|
5
|
-
transition: all var(--m-
|
|
5
|
+
transition: all var(--m-dur) var(--m-ease);
|
|
6
6
|
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: start;
|
|
11
|
-
gap: var(--m-
|
|
11
|
+
gap: var(--m-sp-sm);
|
|
12
12
|
|
|
13
13
|
position: relative;
|
|
14
14
|
overflow: visible;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
&:focus {
|
|
38
38
|
--mx-bg-applied: inherit;
|
|
39
39
|
--mx-bg-ref: --fn-color-heavier(
|
|
40
|
-
color-mix(var(--mx-bg-applied), var(--m-
|
|
40
|
+
color-mix(var(--mx-bg-applied), var(--m-tint-light) 20%),
|
|
41
41
|
1
|
|
42
42
|
);
|
|
43
43
|
}
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
&[data-emphasis='ghost'],
|
|
46
46
|
&[data-emphasis='default'] {
|
|
47
47
|
&[aria-pressed='true'] {
|
|
48
|
-
@apply --mx-bg(var(--m-
|
|
48
|
+
@apply --mx-bg(var(--m-tint-light));
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
[data-disable-icon-mode='true']
|
|
54
54
|
):not([data-size='wrapper']),
|
|
55
55
|
&[data-force-icon-mode='true']:not([data-size='wrapper']) {
|
|
56
|
-
padding: var(--m-
|
|
56
|
+
padding: var(--m-sp-md);
|
|
57
57
|
|
|
58
58
|
&[data-size='small'] {
|
|
59
|
-
padding: var(--m-
|
|
59
|
+
padding: var(--m-sp-sm);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&:not([aria-pressed='true']) {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
outline: none;
|
|
116
116
|
}
|
|
117
117
|
&:focus-visible {
|
|
118
|
-
box-shadow: 0 0 0 4px var(--m-
|
|
118
|
+
box-shadow: 0 0 0 4px var(--m-tint-ink);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -126,13 +126,13 @@
|
|
|
126
126
|
|
|
127
127
|
.toggleIndicator {
|
|
128
128
|
width: 0;
|
|
129
|
-
transition: width var(--m-
|
|
129
|
+
transition: width var(--m-dur) var(--m-ease);
|
|
130
130
|
|
|
131
131
|
&[data-open='true'] {
|
|
132
132
|
width: --fn-literal(15px);
|
|
133
133
|
}
|
|
134
134
|
&[data-open='false'] {
|
|
135
|
-
margin-left: calc(-1 * var(--m-
|
|
135
|
+
margin-left: calc(-1 * var(--m-sp-sm));
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
@@ -20,22 +20,22 @@
|
|
|
20
20
|
|
|
21
21
|
.shutterButton {
|
|
22
22
|
position: absolute;
|
|
23
|
-
bottom: var(--m-
|
|
23
|
+
bottom: var(--m-sp-md);
|
|
24
24
|
left: 50%;
|
|
25
25
|
width: calc(48px / var(--m-global-space-density));
|
|
26
26
|
height: calc(48px / var(--m-global-space-density));
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
transform: translateX(-50%);
|
|
29
29
|
opacity: 80%;
|
|
30
|
-
transition: all var(--m-
|
|
30
|
+
transition: all var(--m-dur) var(--m-ease);
|
|
31
31
|
|
|
32
32
|
@apply --mx-shadow;
|
|
33
33
|
--mx-ring-value: --fn-ring(var(--m-action-secondary-bg), 2px);
|
|
34
34
|
@apply --mx-bg(var(--m-action-secondary-bg));
|
|
35
35
|
@apply --mx-fg(color-contrast(var(--mx-bg-ref)));
|
|
36
36
|
@apply --mx-borderColor(var(--mx-fg-ref));
|
|
37
|
-
border-width: var(--m-
|
|
38
|
-
border-radius: var(--m-action-
|
|
37
|
+
border-width: var(--m-lw);
|
|
38
|
+
border-radius: var(--m-action-rd);
|
|
39
39
|
|
|
40
40
|
&:hover {
|
|
41
41
|
opacity: 100%;
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
}
|
|
49
49
|
&:focus-visible {
|
|
50
50
|
@apply --mx-bg-lighter(1);
|
|
51
|
-
--mx-ring-value: --fn-ring(var(--m-
|
|
51
|
+
--mx-ring-value: --fn-ring(var(--m-tint-ink), 4px);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.swapButton {
|
|
56
56
|
position: absolute;
|
|
57
|
-
bottom: var(--m-
|
|
58
|
-
left: var(--m-
|
|
57
|
+
bottom: var(--m-sp-xs);
|
|
58
|
+
left: var(--m-sp-xs);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.fullscreenButton {
|
|
62
62
|
position: absolute;
|
|
63
|
-
top: var(--m-
|
|
64
|
-
right: var(--m-
|
|
63
|
+
top: var(--m-sp-xs);
|
|
64
|
+
right: var(--m-sp-xs);
|
|
65
65
|
}
|