@a-type/ui 6.0.13 → 6.0.15
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 +72 -8
- package/dist/arbor/arbor.js +94 -8
- package/dist/arbor/arbor.js.map +1 -1
- package/dist/colors.module.css +4 -4
- package/dist/components/actions/ActionButton.module.css +1 -1
- package/dist/components/box/Box.module.css +10 -10
- package/dist/components/box/Box.stories.js +1 -1
- package/dist/components/box/Box.stories.js.map +1 -1
- package/dist/components/button/Button.js +1 -1
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/Button.module.css +5 -12
- package/dist/components/button/index.d.ts +0 -1
- package/dist/components/button/index.js +0 -1
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/camera/Camera.module.css +7 -7
- package/dist/components/card/Card.module.css +23 -23
- package/dist/components/card/Card.stories.js +2 -2
- package/dist/components/card/Card.stories.js.map +1 -1
- package/dist/components/chip/Chip.module.css +4 -4
- package/dist/components/combobox/Combobox.module.css +25 -25
- package/dist/components/datePicker/Calendar.module.css +3 -3
- package/dist/components/datePicker/dateRangePicker.module.css +1 -1
- package/dist/components/dialog/Dialog.module.css +15 -15
- package/dist/components/editableText/EditableText.module.css +1 -1
- package/dist/components/emojiPicker/EmojiPicker.module.css +12 -12
- package/dist/components/forms/FieldLabel.module.css +8 -8
- 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 +4 -4
- package/dist/components/icon/Icon.stories.js +2 -2
- package/dist/components/icon/Icon.stories.js.map +1 -1
- package/dist/components/imageUploader/ImageUploader.module.css +6 -6
- package/dist/components/input/Input.module.css +5 -5
- 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 +3 -3
- package/dist/components/layouts/PageNowPlaying.module.css +3 -3
- package/dist/components/layouts/PageSection.module.css +2 -2
- package/dist/components/lightbox/Lightbox.module.css +3 -3
- package/dist/components/lists/lists.module.css +2 -2
- package/dist/components/navBar/NavBar.module.css +13 -13
- package/dist/components/note/Note.module.css +4 -4
- package/dist/components/peek/Peek.module.css +4 -4
- package/dist/components/popover/Popover.module.css +8 -8
- 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 +25 -27
- package/dist/components/progress/Progress.module.css +7 -7
- package/dist/components/pwaInstall/PwaInstall.module.css +3 -3
- package/dist/components/quickAction/QuickAction.module.css +1 -1
- package/dist/components/richEditor/richEditor.module.css +23 -23
- package/dist/components/select/Select.module.css +2 -2
- package/dist/components/spinner/Spinner.module.css +1 -1
- package/dist/components/switch/Switch.module.css +1 -1
- package/dist/components/tabs/tabs.module.css +6 -6
- 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 +1 -1
- package/dist/components/tooltip/Tooltip.module.css +1 -1
- package/dist/components/typography/typography.d.ts +2 -1
- package/dist/components/typography/typography.js +2 -1
- package/dist/components/typography/typography.js.map +1 -1
- package/dist/components/typography/typography.module.css +14 -11
- package/dist/components/viewport/Viewport.module.css +8 -8
- package/dist/css/arbor.css +388 -276
- package/dist/css/util.css +10 -10
- 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 +3 -3
- package/src/arbor/arbor.ts +108 -10
- package/src/colors.module.css +4 -4
- package/src/components/actions/ActionButton.module.css +1 -1
- package/src/components/box/Box.module.css +10 -10
- package/src/components/box/Box.stories.tsx +1 -1
- package/src/components/button/Button.module.css +5 -12
- package/src/components/button/Button.tsx +1 -0
- package/src/components/button/index.ts +0 -1
- package/src/components/camera/Camera.module.css +7 -7
- package/src/components/card/Card.module.css +23 -23
- package/src/components/card/Card.stories.tsx +2 -2
- package/src/components/chip/Chip.module.css +4 -4
- package/src/components/combobox/Combobox.module.css +25 -25
- package/src/components/datePicker/Calendar.module.css +3 -3
- package/src/components/datePicker/dateRangePicker.module.css +1 -1
- package/src/components/dialog/Dialog.module.css +15 -15
- package/src/components/editableText/EditableText.module.css +1 -1
- package/src/components/emojiPicker/EmojiPicker.module.css +12 -12
- package/src/components/forms/FieldLabel.module.css +8 -8
- 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 +4 -4
- package/src/components/icon/Icon.stories.tsx +2 -2
- package/src/components/imageUploader/ImageUploader.module.css +6 -6
- package/src/components/input/Input.module.css +5 -5
- 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 +3 -3
- package/src/components/layouts/PageNowPlaying.module.css +3 -3
- package/src/components/layouts/PageSection.module.css +2 -2
- package/src/components/lightbox/Lightbox.module.css +3 -3
- package/src/components/lists/lists.module.css +2 -2
- package/src/components/navBar/NavBar.module.css +13 -13
- package/src/components/note/Note.module.css +4 -4
- package/src/components/peek/Peek.module.css +4 -4
- package/src/components/popover/Popover.module.css +8 -8
- package/src/components/popover/Popover.stories.tsx +1 -1
- package/src/components/primitives/menus.module.css +25 -27
- package/src/components/progress/Progress.module.css +7 -7
- package/src/components/pwaInstall/PwaInstall.module.css +3 -3
- package/src/components/quickAction/QuickAction.module.css +1 -1
- package/src/components/richEditor/richEditor.module.css +23 -23
- package/src/components/select/Select.module.css +2 -2
- package/src/components/spinner/Spinner.module.css +1 -1
- package/src/components/switch/Switch.module.css +1 -1
- package/src/components/tabs/tabs.module.css +6 -6
- 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 +1 -1
- package/src/components/tooltip/Tooltip.module.css +1 -1
- package/src/components/typography/typography.module.css +14 -11
- package/src/components/typography/typography.tsx +3 -0
- package/src/components/viewport/Viewport.module.css +8 -8
- package/src/css/util.css +10 -10
- package/src/keyboard.stories.tsx +1 -1
- package/src/shadows.stories.tsx +1 -1
- package/src/theme.stories.module.css +1 -1
- package/dist/components/button/classes.d.ts +0 -7
- package/dist/components/button/classes.js +0 -24
- package/dist/components/button/classes.js.map +0 -1
- package/src/components/button/classes.tsx +0 -79
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
.content {
|
|
25
25
|
position: relative;
|
|
26
26
|
flex: 1;
|
|
27
|
-
padding: var(--m-
|
|
27
|
+
padding: var(--m-space-sm);
|
|
28
28
|
|
|
29
|
-
font-size: var(--m-
|
|
30
|
-
line-height: var(--m-
|
|
31
|
-
font-weight: var(--m-
|
|
29
|
+
font-size: var(--m-prose-ambient-size);
|
|
30
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
31
|
+
font-weight: var(--m-prose-ambient-weight);
|
|
32
32
|
font-style: italic;
|
|
33
33
|
|
|
34
34
|
@apply --mx-fg(var(--m-color-neutral-ink));
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
flex-direction: column;
|
|
77
77
|
align-items: center;
|
|
78
78
|
justify-content: end;
|
|
79
|
-
padding: var(--m-
|
|
80
|
-
font-size: var(--m-
|
|
81
|
-
line-height: var(--m-
|
|
82
|
-
font-weight: var(--m-
|
|
79
|
+
padding: var(--m-space-sm);
|
|
80
|
+
font-size: var(--m-prose-ambient-size);
|
|
81
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
82
|
+
font-weight: var(--m-prose-ambient-weight);
|
|
83
83
|
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
84
84
|
}
|
|
85
85
|
&[data-state='open'] {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
.close {
|
|
2
2
|
position: absolute;
|
|
3
|
-
right: var(--m-
|
|
4
|
-
top: var(--m-
|
|
3
|
+
right: var(--m-space-sm);
|
|
4
|
+
top: var(--m-space-sm);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.popup {
|
|
8
|
-
padding: var(--m-
|
|
8
|
+
padding: var(--m-space-md);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.title {
|
|
12
12
|
font-weight: 500;
|
|
13
13
|
margin: 0;
|
|
14
|
-
margin-block-end: var(--m-
|
|
15
|
-
font-size: var(--m-
|
|
16
|
-
line-height: var(--m-
|
|
14
|
+
margin-block-end: var(--m-space-sm);
|
|
15
|
+
font-size: var(--m-prose-secondary-size);
|
|
16
|
+
line-height: var(--m-prose-secondary-lineHeight);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.description {
|
|
20
20
|
margin: 0;
|
|
21
|
-
font-size: var(--m-
|
|
22
|
-
line-height: var(--m-
|
|
21
|
+
font-size: var(--m-prose-ambient-size);
|
|
22
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
23
23
|
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
24
24
|
}
|
|
@@ -22,7 +22,7 @@ export const Default: Story = {
|
|
|
22
22
|
<Popover.Trigger render={<Button color="primary" size="small" />}>
|
|
23
23
|
Open Popover
|
|
24
24
|
</Popover.Trigger>
|
|
25
|
-
<Popover.Content style={{ padding: 'var(--m-
|
|
25
|
+
<Popover.Content style={{ padding: 'var(--m-space-md)' }}>
|
|
26
26
|
<Popover.Arrow />
|
|
27
27
|
<Popover.Title>Hello</Popover.Title>
|
|
28
28
|
<Popover.Description>This is a popover content.</Popover.Description>
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
min-height: 0px;
|
|
62
62
|
overflow-x: clip;
|
|
63
63
|
overflow-y: auto;
|
|
64
|
-
scroll-padding-block: var(--m-
|
|
64
|
+
scroll-padding-block: var(--m-space-md);
|
|
65
65
|
position: relative;
|
|
66
|
-
padding: var(--m-
|
|
66
|
+
padding: var(--m-space-xs);
|
|
67
67
|
|
|
68
68
|
border-radius: inherit;
|
|
69
69
|
}
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
user-select: none;
|
|
78
78
|
|
|
79
79
|
padding: var(--m-action-padding);
|
|
80
|
-
padding-left: var(--m-
|
|
81
|
-
gap: var(--m-
|
|
80
|
+
padding-left: var(--m-space-lg);
|
|
81
|
+
gap: var(--m-space-sm);
|
|
82
82
|
|
|
83
83
|
text-align: left;
|
|
84
|
-
font-size: var(--m-
|
|
85
|
-
font-weight: var(--m-
|
|
86
|
-
line-height: var(--m-
|
|
87
|
-
font-family: var(--m-
|
|
84
|
+
font-size: var(--m-prose-secondary-size);
|
|
85
|
+
font-weight: var(--m-prose-secondary-weight);
|
|
86
|
+
line-height: var(--m-prose-secondary-lineHeight);
|
|
87
|
+
font-family: var(--m-prose-secondary-font);
|
|
88
88
|
|
|
89
89
|
@apply --mx-fg(color-contrast(var(--mx-bg-ref)));
|
|
90
90
|
|
|
@@ -111,17 +111,15 @@
|
|
|
111
111
|
|
|
112
112
|
border-radius: var(--m-radius-xs);
|
|
113
113
|
&:first-child {
|
|
114
|
-
border-top-left-radius: calc(var(--m-surface-radius) - var(--m-
|
|
115
|
-
border-top-right-radius: calc(
|
|
116
|
-
var(--m-surface-radius) - var(--m-spacing-xs)
|
|
117
|
-
);
|
|
114
|
+
border-top-left-radius: calc(var(--m-surface-radius) - var(--m-space-xs));
|
|
115
|
+
border-top-right-radius: calc(var(--m-surface-radius) - var(--m-space-xs));
|
|
118
116
|
}
|
|
119
117
|
&:last-child {
|
|
120
118
|
border-bottom-left-radius: calc(
|
|
121
|
-
var(--m-surface-radius) - var(--m-
|
|
119
|
+
var(--m-surface-radius) - var(--m-space-xs)
|
|
122
120
|
);
|
|
123
121
|
border-bottom-right-radius: calc(
|
|
124
|
-
var(--m-surface-radius) - var(--m-
|
|
122
|
+
var(--m-surface-radius) - var(--m-space-xs)
|
|
125
123
|
);
|
|
126
124
|
}
|
|
127
125
|
}
|
|
@@ -131,8 +129,8 @@
|
|
|
131
129
|
display: flex;
|
|
132
130
|
flex-direction: row;
|
|
133
131
|
align-items: center;
|
|
134
|
-
gap: var(--m-
|
|
135
|
-
scroll-padding-block: var(--m-
|
|
132
|
+
gap: var(--m-space-sm);
|
|
133
|
+
scroll-padding-block: var(--m-space-md);
|
|
136
134
|
}
|
|
137
135
|
|
|
138
136
|
.itemIndicator {
|
|
@@ -144,12 +142,12 @@
|
|
|
144
142
|
align-items: center;
|
|
145
143
|
justify-content: center;
|
|
146
144
|
position: relative;
|
|
147
|
-
right: calc(-1 * var(--m-
|
|
145
|
+
right: calc(-1 * var(--m-space-xs));
|
|
148
146
|
}
|
|
149
147
|
|
|
150
148
|
.itemRightSlot {
|
|
151
149
|
margin-inline-start: auto;
|
|
152
|
-
padding-inline-start: var(--m-
|
|
150
|
+
padding-inline-start: var(--m-space-sm);
|
|
153
151
|
}
|
|
154
152
|
|
|
155
153
|
.arrow {
|
|
@@ -193,7 +191,7 @@
|
|
|
193
191
|
}
|
|
194
192
|
|
|
195
193
|
.separator {
|
|
196
|
-
margin: var(--m-
|
|
194
|
+
margin: var(--m-space-xs);
|
|
197
195
|
height: var(--m-lineWidth-sm);
|
|
198
196
|
@apply --mx-bg(var(--m-color-neutral));
|
|
199
197
|
}
|
|
@@ -201,17 +199,17 @@
|
|
|
201
199
|
.groupLabel {
|
|
202
200
|
user-select: none;
|
|
203
201
|
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
204
|
-
font-size: var(--m-
|
|
205
|
-
line-height: var(--m-
|
|
206
|
-
font-weight: var(--m-
|
|
202
|
+
font-size: var(--m-prose-ambient-size);
|
|
203
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
204
|
+
font-weight: var(--m-prose-ambient-weight);
|
|
207
205
|
}
|
|
208
206
|
|
|
209
207
|
.scrollArrow {
|
|
210
208
|
box-sizing: border-box;
|
|
211
209
|
z-index: 1;
|
|
212
210
|
height: 1rem;
|
|
213
|
-
left: var(--m-
|
|
214
|
-
right: var(--m-
|
|
211
|
+
left: var(--m-space-md);
|
|
212
|
+
right: var(--m-space-md);
|
|
215
213
|
cursor: default;
|
|
216
214
|
user-select: none;
|
|
217
215
|
align-items: center;
|
|
@@ -220,9 +218,9 @@
|
|
|
220
218
|
@apply --mx-bg(var(--m-surface-ambient-bg));
|
|
221
219
|
@apply --mx-fg(var(--m-surface-ambient-fg));
|
|
222
220
|
border-radius: inherit;
|
|
223
|
-
font-size: var(--m-
|
|
224
|
-
line-height: var(--m-
|
|
225
|
-
font-weight: var(--m-
|
|
221
|
+
font-size: var(--m-prose-ambient-size);
|
|
222
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
223
|
+
font-weight: var(--m-prose-ambient-weight);
|
|
226
224
|
|
|
227
225
|
&::before {
|
|
228
226
|
position: absolute;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
display: grid;
|
|
5
5
|
grid-template-columns: 1fr 1fr;
|
|
6
|
-
row-gap: var(--m-
|
|
7
|
-
column-gap: var(--m-
|
|
6
|
+
row-gap: var(--m-space-xs);
|
|
7
|
+
column-gap: var(--m-space-md);
|
|
8
8
|
align-items: center;
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
}
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
grid-column-start: 1;
|
|
39
39
|
grid-row-start: 1;
|
|
40
40
|
@apply --mx-fg(var(--m-color-neutral-ink));
|
|
41
|
-
font-size: var(--m-
|
|
42
|
-
line-height: var(--m-
|
|
43
|
-
font-weight: var(--m-
|
|
41
|
+
font-size: var(--m-prose-ambient-size);
|
|
42
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
43
|
+
font-weight: var(--m-prose-ambient-weight);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.value {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
grid-row-start: 1;
|
|
49
49
|
justify-self: end;
|
|
50
50
|
@apply --mx-fg(var(--m-color-neutral-ink));
|
|
51
|
-
font-size: var(--m-
|
|
52
|
-
line-height: var(--m-
|
|
51
|
+
font-size: var(--m-prose-ambient-size);
|
|
52
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
53
53
|
font-weight: 500;
|
|
54
54
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
.dialogContent {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: var(--m-
|
|
4
|
+
gap: var(--m-space-xs);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.dialogTitle {
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: row;
|
|
10
10
|
align-items: center;
|
|
11
|
-
gap: var(--m-
|
|
11
|
+
gap: var(--m-space-md);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.appIcon {
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.appDescription {
|
|
22
|
-
margin-bottom: var(--m-
|
|
22
|
+
margin-bottom: var(--m-space-sm);
|
|
23
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
@apply --mx-
|
|
2
|
+
@apply --mx-prose-secondary;
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
5
5
|
& .ProseMirror {
|
|
@@ -16,36 +16,36 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
& h1 {
|
|
19
|
-
@apply --mx-
|
|
19
|
+
@apply --mx-prose-primary;
|
|
20
20
|
&:not(:first-child) {
|
|
21
|
-
margin-top: var(--m-
|
|
21
|
+
margin-top: var(--m-space-xl);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
& h2 {
|
|
25
|
-
@apply --mx-
|
|
26
|
-
font-weight: var(--m-
|
|
25
|
+
@apply --mx-prose-secondary;
|
|
26
|
+
font-weight: var(--m-prose-primary-weight);
|
|
27
27
|
&:not(:first-child) {
|
|
28
|
-
margin-top: var(--m-
|
|
28
|
+
margin-top: var(--m-space-lg);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
& h3 {
|
|
32
|
-
@apply --mx-
|
|
33
|
-
font-weight: var(--m-
|
|
32
|
+
@apply --mx-prose-ambient;
|
|
33
|
+
font-weight: var(--m-prose-primary-weight);
|
|
34
34
|
text-transform: uppercase;
|
|
35
35
|
&:not(:first-child) {
|
|
36
|
-
margin-top: var(--m-
|
|
36
|
+
margin-top: var(--m-space-md);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
& h4 {
|
|
40
|
-
@apply --mx-
|
|
41
|
-
font-weight: var(--m-
|
|
40
|
+
@apply --mx-prose-ambient;
|
|
41
|
+
font-weight: var(--m-prose-primary-weight);
|
|
42
42
|
&:not(:first-child) {
|
|
43
|
-
margin-top: var(--m-
|
|
43
|
+
margin-top: var(--m-space-md);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
& p {
|
|
47
|
-
@apply --mx-
|
|
48
|
-
margin-bottom: var(--m-
|
|
47
|
+
@apply --mx-prose-secondary;
|
|
48
|
+
margin-bottom: var(--m-space-md);
|
|
49
49
|
}
|
|
50
50
|
& a {
|
|
51
51
|
text-decoration: underline;
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
}
|
|
57
57
|
& blockquote {
|
|
58
58
|
border-left: 4px solid var(--m-color-neutral-heavy);
|
|
59
|
-
padding-left: var(--m-
|
|
59
|
+
padding-left: var(--m-space-md);
|
|
60
60
|
font-style: italic;
|
|
61
|
-
margin-block: var(--m-
|
|
62
|
-
margin-inline-start: var(--m-
|
|
63
|
-
padding-inline: var(--m-
|
|
61
|
+
margin-block: var(--m-space-md);
|
|
62
|
+
margin-inline-start: var(--m-space-md);
|
|
63
|
+
padding-inline: var(--m-space-md);
|
|
64
64
|
@apply --mx-bg(var(--m-color-neutral-wash));
|
|
65
65
|
}
|
|
66
66
|
& ul {
|
|
@@ -71,17 +71,17 @@
|
|
|
71
71
|
}
|
|
72
72
|
& ul,
|
|
73
73
|
& ol {
|
|
74
|
-
padding-inline-start: var(--m-
|
|
75
|
-
margin-block: var(--m-
|
|
74
|
+
padding-inline-start: var(--m-space-lg);
|
|
75
|
+
margin-block: var(--m-space-md);
|
|
76
76
|
}
|
|
77
77
|
& li {
|
|
78
|
-
margin-block-end: var(--m-
|
|
78
|
+
margin-block-end: var(--m-space-xs);
|
|
79
79
|
}
|
|
80
80
|
& mark {
|
|
81
81
|
@apply --mx-bg(var(--m-color-main-wash));
|
|
82
82
|
}
|
|
83
83
|
& strong {
|
|
84
|
-
font-weight: var(--m-
|
|
84
|
+
font-weight: var(--m-text-weight-bold);
|
|
85
85
|
}
|
|
86
86
|
& em {
|
|
87
87
|
font-style: italic;
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
& hr {
|
|
90
90
|
border: none;
|
|
91
91
|
border-top: var(--m-lineWidth) solid var(--m-color-neutral-heavy);
|
|
92
|
-
margin-block: var(--m-
|
|
92
|
+
margin-block: var(--m-space-lg);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.trigger {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
font-weight: normal;
|
|
4
|
-
gap: var(--m-
|
|
4
|
+
gap: var(--m-space-md);
|
|
5
5
|
|
|
6
6
|
&[data-placeholder] {
|
|
7
7
|
color: var(--m-color-neutral-heavy);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.groupLabel {
|
|
17
|
-
padding-inline: var(--m-
|
|
17
|
+
padding-inline: var(--m-space-lg);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.icon {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
5
5
|
align-items: flex-start;
|
|
6
|
-
gap: var(--m-
|
|
6
|
+
gap: var(--m-space-xs);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.trigger {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
flex-direction: row;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: center;
|
|
16
|
-
gap: var(--m-
|
|
16
|
+
gap: var(--m-space-xs);
|
|
17
17
|
padding: var(--m-action-padding);
|
|
18
18
|
|
|
19
19
|
cursor: pointer;
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
white-space: nowrap;
|
|
25
25
|
|
|
26
26
|
@apply --mx-fg(var(--m-color-neutral-ink));
|
|
27
|
-
font-size: var(--m-
|
|
28
|
-
font-weight: var(--m-
|
|
27
|
+
font-size: var(--m-prose-secondary-size);
|
|
28
|
+
font-weight: var(--m-prose-secondary-weight);
|
|
29
29
|
line-height: 1;
|
|
30
30
|
font-family: inherit;
|
|
31
31
|
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
.moreLeftIcon {
|
|
106
106
|
pointer-events: none;
|
|
107
107
|
position: absolute;
|
|
108
|
-
left: var(--m-
|
|
108
|
+
left: var(--m-space-xs);
|
|
109
109
|
top: 50%;
|
|
110
110
|
z-index: 10;
|
|
111
111
|
height: --fn-literal(16px);
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
.moreRightIcon {
|
|
124
124
|
pointer-events: none;
|
|
125
125
|
position: absolute;
|
|
126
|
-
right: var(--m-
|
|
126
|
+
right: var(--m-space-xs);
|
|
127
127
|
top: 50%;
|
|
128
128
|
z-index: 10;
|
|
129
129
|
height: --fn-literal(16px);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.toast {
|
|
7
|
-
--gap: var(--m-
|
|
8
|
-
--peek: var(--m-
|
|
7
|
+
--gap: var(--m-space-sm);
|
|
8
|
+
--peek: var(--m-space-sm);
|
|
9
9
|
--scale: calc(max(0, 1 - var(--toast-index) * 0.1));
|
|
10
10
|
--height: var(--toast-frontmost-height, var(--toast-height));
|
|
11
11
|
--shrink: calc(1 - var(--scale));
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
/* basic positioning */
|
|
18
18
|
position: fixed;
|
|
19
19
|
left: auto;
|
|
20
|
-
top: var(--m-
|
|
20
|
+
top: var(--m-space-xs);
|
|
21
21
|
z-index: calc(100000 - var(--toast-index));
|
|
22
22
|
margin-right: 0;
|
|
23
23
|
width: 100%;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: column;
|
|
29
29
|
align-items: center;
|
|
30
|
-
gap: var(--m-
|
|
30
|
+
gap: var(--m-space-xs);
|
|
31
31
|
|
|
32
32
|
/* styling happens in content element */
|
|
33
33
|
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
pointer-events: auto;
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
|
-
gap: var(--m-
|
|
103
|
+
gap: var(--m-space-sm);
|
|
104
104
|
|
|
105
105
|
&[data-behind]:not([data-expanded]) {
|
|
106
106
|
pointer-events: none;
|
|
@@ -115,10 +115,10 @@
|
|
|
115
115
|
@apply --mx-shadow(var(--m-shadow-md));
|
|
116
116
|
@apply --mx-surface-secondary;
|
|
117
117
|
|
|
118
|
-
padding-inline-start: var(--m-
|
|
119
|
-
padding-inline-end: var(--m-
|
|
120
|
-
padding-block: var(--m-
|
|
121
|
-
gap: var(--m-
|
|
118
|
+
padding-inline-start: var(--m-space-md);
|
|
119
|
+
padding-inline-end: var(--m-space-sm);
|
|
120
|
+
padding-block: var(--m-space-sm);
|
|
121
|
+
gap: var(--m-space-sm);
|
|
122
122
|
|
|
123
123
|
[data-behind]:not([data-expanded]) & {
|
|
124
124
|
max-height: var(--height);
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
display: flex;
|
|
131
131
|
flex-direction: row;
|
|
132
132
|
align-items: center;
|
|
133
|
-
gap: var(--m-
|
|
133
|
+
gap: var(--m-space-xs);
|
|
134
134
|
@apply --mx-fg(inherit);
|
|
135
135
|
|
|
136
136
|
transition: opacity var(--m-duration) var(--m-easing);
|
|
@@ -148,20 +148,20 @@
|
|
|
148
148
|
.toastMainBodyContent {
|
|
149
149
|
display: flex;
|
|
150
150
|
flex-direction: column;
|
|
151
|
-
gap: var(--m-
|
|
151
|
+
gap: var(--m-space-xs);
|
|
152
152
|
@apply --mx-fg(inherit);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.toastTitle {
|
|
156
156
|
@apply --mx-fg(inherit);
|
|
157
|
-
@apply --mx-
|
|
158
|
-
font-weight: var(--m-
|
|
157
|
+
@apply --mx-prose-secondary;
|
|
158
|
+
font-weight: var(--m-text-weight-bold);
|
|
159
159
|
margin: 0;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.toastDescriptionRow {
|
|
163
163
|
display: flex;
|
|
164
|
-
gap: var(--m-
|
|
164
|
+
gap: var(--m-space-sm);
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.icon {
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
.toastDescription {
|
|
173
173
|
margin: 0;
|
|
174
174
|
@apply --mx-fg(inherit);
|
|
175
|
-
@apply --mx-
|
|
175
|
+
@apply --mx-prose-ambient;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
.toastClose {
|
|
@@ -187,11 +187,11 @@
|
|
|
187
187
|
margin-inline-start: auto;
|
|
188
188
|
display: flex;
|
|
189
189
|
align-items: center;
|
|
190
|
-
gap: var(--m-
|
|
190
|
+
gap: var(--m-space-xs);
|
|
191
191
|
|
|
192
|
-
font-size: var(--m-
|
|
193
|
-
line-height: var(--m-
|
|
194
|
-
font-weight: var(--m-
|
|
192
|
+
font-size: var(--m-prose-ambient-size);
|
|
193
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
194
|
+
font-weight: var(--m-prose-ambient-weight);
|
|
195
195
|
|
|
196
196
|
transition: opacity var(--m-duration) var(--m-easing);
|
|
197
197
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
.typography {
|
|
2
2
|
@apply --mx-fg(inherit);
|
|
3
|
-
font-size: var(--m-
|
|
4
|
-
line-height: var(--m-
|
|
5
|
-
font-weight: var(--m-
|
|
3
|
+
font-size: var(--m-prose-secondary-size);
|
|
4
|
+
line-height: var(--m-prose-secondary-lineHeight);
|
|
5
|
+
font-weight: var(--m-prose-secondary-weight);
|
|
6
6
|
|
|
7
7
|
&[data-emphasis='primary'] {
|
|
8
|
-
font-size: var(--m-
|
|
9
|
-
line-height: var(--m-
|
|
10
|
-
font-weight: var(--m-
|
|
8
|
+
font-size: var(--m-prose-primary-size);
|
|
9
|
+
line-height: var(--m-prose-primary-lineHeight);
|
|
10
|
+
font-weight: var(--m-prose-primary-weight);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&[data-emphasis='ambient'] {
|
|
14
|
-
font-size: var(--m-
|
|
15
|
-
line-height: var(--m-
|
|
16
|
-
font-weight: var(--m-
|
|
14
|
+
font-size: var(--m-prose-ambient-size);
|
|
15
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
16
|
+
font-weight: var(--m-prose-ambient-weight);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&[data-italic] {
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
text-decoration: line-through;
|
|
27
27
|
}
|
|
28
28
|
&[data-bold] {
|
|
29
|
-
font-weight: var(--m-
|
|
29
|
+
font-weight: var(--m-text-weight-bold);
|
|
30
30
|
}
|
|
31
31
|
&[data-thin] {
|
|
32
|
-
font-weight: var(--m-
|
|
32
|
+
font-weight: var(--m-text-weight-thin);
|
|
33
33
|
}
|
|
34
34
|
&[data-truncate] {
|
|
35
35
|
overflow: hidden;
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
white-space: nowrap;
|
|
38
38
|
max-width: 100%;
|
|
39
39
|
}
|
|
40
|
+
&[data-dim] {
|
|
41
|
+
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
42
|
+
}
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
@layer components {
|
|
@@ -12,6 +12,7 @@ export interface TypographyProps extends useRender.ComponentProps<'span'> {
|
|
|
12
12
|
bold?: boolean;
|
|
13
13
|
thin?: boolean;
|
|
14
14
|
truncate?: boolean;
|
|
15
|
+
dim?: boolean;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export function Text({
|
|
@@ -24,6 +25,7 @@ export function Text({
|
|
|
24
25
|
bold,
|
|
25
26
|
thin,
|
|
26
27
|
truncate,
|
|
28
|
+
dim,
|
|
27
29
|
...rest
|
|
28
30
|
}: TypographyProps) {
|
|
29
31
|
return useRender({
|
|
@@ -41,6 +43,7 @@ export function Text({
|
|
|
41
43
|
bold: bold ? true : undefined,
|
|
42
44
|
thin: thin ? true : undefined,
|
|
43
45
|
truncate: truncate ? true : undefined,
|
|
46
|
+
dim: dim ? true : undefined,
|
|
44
47
|
},
|
|
45
48
|
});
|
|
46
49
|
}
|