@a-type/ui 6.0.13 → 6.0.14
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.module.css +11 -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 +11 -11
- 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
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
|
|
6
6
|
.empty:not(:empty) {
|
|
7
7
|
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
8
|
-
padding: var(--m-
|
|
9
|
-
font-size: var(--m-
|
|
10
|
-
line-height: var(--m-
|
|
11
|
-
font-weight: var(--m-
|
|
8
|
+
padding: var(--m-space-sm);
|
|
9
|
+
font-size: var(--m-prose-ambient-size);
|
|
10
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
11
|
+
font-weight: var(--m-prose-ambient-weight);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.group {
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
overflow: clip;
|
|
18
|
-
padding: var(--m-
|
|
19
|
-
gap: var(--m-
|
|
18
|
+
padding: var(--m-space-sm);
|
|
19
|
+
gap: var(--m-space-xs);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.groupItem {
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-direction: row;
|
|
32
32
|
flex-wrap: wrap;
|
|
33
|
-
gap: var(--m-
|
|
33
|
+
gap: var(--m-space-xs);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.groupLabel {
|
|
37
37
|
text-transform: uppercase;
|
|
38
38
|
width: 100%;
|
|
39
39
|
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
40
|
-
padding-inline: var(--m-
|
|
41
|
-
font-size: var(--m-
|
|
42
|
-
line-height: var(--m-
|
|
43
|
-
font-weight: var(--m-
|
|
40
|
+
padding-inline: var(--m-space-xs);
|
|
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
|
.icon {
|
|
@@ -60,17 +60,17 @@
|
|
|
60
60
|
flex-direction: row;
|
|
61
61
|
flex-wrap: wrap;
|
|
62
62
|
align-items: center;
|
|
63
|
-
gap: var(--m-
|
|
64
|
-
padding-inline-start: var(--m-
|
|
63
|
+
gap: var(--m-space-xs);
|
|
64
|
+
padding-inline-start: var(--m-space-md);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.chipsList {
|
|
68
68
|
display: flex;
|
|
69
69
|
flex-direction: row;
|
|
70
70
|
flex-wrap: wrap;
|
|
71
|
-
gap: var(--m-
|
|
72
|
-
padding-inline: var(--m-
|
|
73
|
-
margin-inline-start: calc(-1 * var(--m-
|
|
71
|
+
gap: var(--m-space-xs);
|
|
72
|
+
padding-inline: var(--m-space-sm);
|
|
73
|
+
margin-inline-start: calc(-1 * var(--m-space-md));
|
|
74
74
|
|
|
75
75
|
&:empty {
|
|
76
76
|
display: none;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
flex-direction: row;
|
|
91
91
|
flex-grow: 1;
|
|
92
92
|
align-items: center;
|
|
93
|
-
gap: var(--m-
|
|
93
|
+
gap: var(--m-space-xs);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.chip {
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
display: flex;
|
|
99
99
|
flex-direction: row;
|
|
100
100
|
align-items: center;
|
|
101
|
-
padding-inline: var(--m-
|
|
102
|
-
gap: var(--m-
|
|
101
|
+
padding-inline: var(--m-space-sm);
|
|
102
|
+
gap: var(--m-space-xs);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.chipRemove {
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
min-width: 0;
|
|
108
108
|
padding: 0;
|
|
109
109
|
line-height: 1;
|
|
110
|
-
margin-block: calc(-1 * var(--m-
|
|
111
|
-
margin-inline-end: calc(-1 * var(--m-
|
|
110
|
+
margin-block: calc(-1 * var(--m-space-xs));
|
|
111
|
+
margin-inline-end: calc(-1 * var(--m-space-sm));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.item[data-selected] {
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
.row {
|
|
144
144
|
display: flex;
|
|
145
145
|
align-items: center;
|
|
146
|
-
gap: var(--m-
|
|
146
|
+
gap: var(--m-space-xs);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.multiValue {
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
display: flex;
|
|
152
152
|
flex-direction: row;
|
|
153
153
|
flex-wrap: wrap;
|
|
154
|
-
gap: var(--m-
|
|
154
|
+
gap: var(--m-space-xs);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.clearAndCaret {
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.details {
|
|
165
|
-
@apply --mx-
|
|
165
|
+
@apply --mx-prose-ambient;
|
|
166
166
|
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
167
|
-
padding: var(--m-
|
|
167
|
+
padding: var(--m-space-sm);
|
|
168
168
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
white-space: nowrap;
|
|
14
14
|
text-overflow: ellipsis;
|
|
15
15
|
text-align: center;
|
|
16
|
-
font-size: var(--m-
|
|
16
|
+
font-size: var(--m-prose-ambient-size);
|
|
17
17
|
font-weight: bold;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
grid-template-columns: repeat(7, var(--day-size, 32px));
|
|
27
27
|
grid-auto-rows: var(--day-size, 32px);
|
|
28
28
|
overflow: hidden;
|
|
29
|
-
padding: var(--m-
|
|
29
|
+
padding: var(--m-space-sm);
|
|
30
30
|
border-radius: var(--m-radius-sm);
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
display: flex;
|
|
35
35
|
align-items: center;
|
|
36
36
|
justify-content: center;
|
|
37
|
-
font-size: var(--m-
|
|
37
|
+
font-size: var(--m-prose-ambient-size);
|
|
38
38
|
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
border-bottom-width: 0;
|
|
61
61
|
transform: translate(0, 0);
|
|
62
62
|
padding-bottom: env(safe-area-inset-bottom);
|
|
63
|
-
padding-top: var(--m-
|
|
63
|
+
padding-top: var(--m-space-lg);
|
|
64
64
|
|
|
65
65
|
&[data-starting-style],
|
|
66
66
|
&[data-ending-style] {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
.contentScrollAreaContent {
|
|
107
107
|
display: flex;
|
|
108
108
|
flex-direction: column;
|
|
109
|
-
gap: var(--m-
|
|
109
|
+
gap: var(--m-space-md);
|
|
110
110
|
padding: var(--m-surface-padding);
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
cursor: grab;
|
|
121
121
|
will-change: transform;
|
|
122
122
|
touch-action: none;
|
|
123
|
-
padding-block: var(--m-
|
|
123
|
+
padding-block: var(--m-space-sm);
|
|
124
124
|
z-index: 1;
|
|
125
125
|
|
|
126
126
|
@media (min-width: 600px) {
|
|
@@ -136,8 +136,8 @@
|
|
|
136
136
|
|
|
137
137
|
.close {
|
|
138
138
|
position: absolute;
|
|
139
|
-
right: var(--m-
|
|
140
|
-
top: var(--m-
|
|
139
|
+
right: var(--m-space-sm);
|
|
140
|
+
top: var(--m-space-sm);
|
|
141
141
|
z-index: 101;
|
|
142
142
|
display: flex;
|
|
143
143
|
|
|
@@ -150,24 +150,24 @@
|
|
|
150
150
|
|
|
151
151
|
.title {
|
|
152
152
|
@apply --mx-fg(var(--m-color-neutral-ink));
|
|
153
|
-
font-size: var(--m-
|
|
154
|
-
font-weight: var(--m-
|
|
155
|
-
line-height: var(--m-
|
|
156
|
-
margin-block-end: var(--m-
|
|
153
|
+
font-size: var(--m-prose-primary-size);
|
|
154
|
+
font-weight: var(--m-prose-primary-weight);
|
|
155
|
+
line-height: var(--m-prose-primary-lineHeight);
|
|
156
|
+
margin-block-end: var(--m-space-xs);
|
|
157
157
|
margin-block-start: 0;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.description {
|
|
161
161
|
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
162
|
-
font-size: var(--m-
|
|
163
|
-
line-height: var(--m-
|
|
162
|
+
font-size: var(--m-prose-ambient-size);
|
|
163
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
164
164
|
margin: 0;
|
|
165
|
-
margin-block-end: var(--m-
|
|
165
|
+
margin-block-end: var(--m-space-xs);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.actions {
|
|
169
169
|
position: sticky;
|
|
170
|
-
bottom: var(--m-
|
|
170
|
+
bottom: var(--m-space-md);
|
|
171
171
|
z-index: 100;
|
|
172
172
|
display: flex;
|
|
173
173
|
flex-direction: row;
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
var(--m-shadow-md-spread) var(--m-color-neutral-paper);
|
|
183
183
|
@apply --mx-bg(var(--m-surface-ambient-bg));
|
|
184
184
|
@apply --mx-bg-faded(50%);
|
|
185
|
-
margin-block-start: var(--m-
|
|
186
|
-
gap: var(--m-
|
|
185
|
+
margin-block-start: var(--m-space-md);
|
|
186
|
+
gap: var(--m-space-sm);
|
|
187
187
|
border-radius: var(--m-surface-radius);
|
|
188
188
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
isolation: isolate;
|
|
7
|
-
gap: var(--m-
|
|
7
|
+
gap: var(--m-space-sm);
|
|
8
8
|
@apply --mx-bg(var(--m-surface-ambient-bg));
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
justify-content: center;
|
|
44
44
|
@apply --mx-bg(inherit);
|
|
45
45
|
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
46
|
-
font-size: var(--m-
|
|
47
|
-
line-height: var(--m-
|
|
48
|
-
font-weight: var(--m-
|
|
46
|
+
font-size: var(--m-prose-ambient-size);
|
|
47
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
48
|
+
font-weight: var(--m-prose-ambient-weight);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.categoryHeader {
|
|
@@ -53,29 +53,29 @@
|
|
|
53
53
|
top: 0;
|
|
54
54
|
@apply --mx-bg(inherit);
|
|
55
55
|
@apply --mx-fg(var(--m-color-neutral-heavy));
|
|
56
|
-
padding: var(--m-
|
|
56
|
+
padding: var(--m-space-sm) var(--m-space-md);
|
|
57
57
|
font-weight: semibold;
|
|
58
|
-
font-size: var(--m-
|
|
59
|
-
line-height: var(--m-
|
|
58
|
+
font-size: var(--m-prose-ambient-size);
|
|
59
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.row {
|
|
63
|
-
scroll-margin-block: var(--m-
|
|
64
|
-
padding-inline: var(--m-
|
|
63
|
+
scroll-margin-block: var(--m-space-xs);
|
|
64
|
+
padding-inline: var(--m-space-xs);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.emoji {
|
|
68
|
-
padding: var(--m-
|
|
68
|
+
padding: var(--m-space-xs);
|
|
69
69
|
font-size: --fn-literal(20px);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.list {
|
|
73
73
|
user-select: none;
|
|
74
|
-
padding-block-end: var(--m-
|
|
74
|
+
padding-block-end: var(--m-space-md);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.skinToneButton {
|
|
78
|
-
padding: var(--m-
|
|
78
|
+
padding: var(--m-space-xs);
|
|
79
79
|
font-size: --fn-literal(20px);
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
@apply --mx-fg(var(--m-color-neutral-ink));
|
|
5
|
-
margin-inline-start: var(--m-
|
|
6
|
-
gap: var(--m-
|
|
7
|
-
font-size: var(--m-
|
|
8
|
-
line-height: var(--m-
|
|
5
|
+
margin-inline-start: var(--m-space-md);
|
|
6
|
+
gap: var(--m-space-xs);
|
|
7
|
+
font-size: var(--m-prose-ambient-size);
|
|
8
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
9
9
|
font-weight: bold;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
display: inline-flex;
|
|
14
14
|
flex-direction: row;
|
|
15
15
|
@apply --mx-fg(var(--m-color-neutral-ink));
|
|
16
|
-
gap: var(--m-
|
|
17
|
-
font-size: var(--m-
|
|
18
|
-
line-height: var(--m-
|
|
19
|
-
margin-block-start: var(--m-
|
|
16
|
+
gap: var(--m-space-sm);
|
|
17
|
+
font-size: var(--m-prose-ambient-size);
|
|
18
|
+
line-height: var(--m-prose-ambient-lineHeight);
|
|
19
|
+
margin-block-start: var(--m-space-sm);
|
|
20
20
|
}
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
flex-shrink: 0;
|
|
17
17
|
flex-direction: row;
|
|
18
18
|
align-items: center;
|
|
19
|
-
gap: var(--m-
|
|
20
|
-
padding: var(--m-
|
|
21
|
-
var(--m-
|
|
19
|
+
gap: var(--m-space-sm);
|
|
20
|
+
padding: var(--m-space-sm) var(--m-space-sm) var(--m-space-md)
|
|
21
|
+
var(--m-space-sm);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.toggleButton {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
position: sticky;
|
|
37
37
|
left: 0;
|
|
38
38
|
height: 100%;
|
|
39
|
-
top: var(--m-
|
|
39
|
+
top: var(--m-space-sm);
|
|
40
40
|
z-index: 1;
|
|
41
41
|
flex-shrink: 0;
|
|
42
42
|
@apply --mx-bg(inherit);
|
|
@@ -36,7 +36,7 @@ export const All: Story = {
|
|
|
36
36
|
style={{
|
|
37
37
|
display: 'grid',
|
|
38
38
|
gridTemplateColumns: 'repeat(6, 1fr)',
|
|
39
|
-
gap: 'var(--m-
|
|
39
|
+
gap: 'var(--m-space-xs)',
|
|
40
40
|
}}
|
|
41
41
|
>
|
|
42
42
|
{iconNames.map((name) => (
|
|
@@ -52,7 +52,7 @@ export const All: Story = {
|
|
|
52
52
|
<span
|
|
53
53
|
style={{
|
|
54
54
|
textAlign: 'center',
|
|
55
|
-
fontSize: 'var(--m-
|
|
55
|
+
fontSize: 'var(--m-prose-ambient-size)',
|
|
56
56
|
}}
|
|
57
57
|
>
|
|
58
58
|
{name}
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
|
|
20
20
|
.cameraCancelButton {
|
|
21
21
|
position: absolute;
|
|
22
|
-
top: var(--m-
|
|
23
|
-
left: var(--m-
|
|
22
|
+
top: var(--m-space-sm);
|
|
23
|
+
left: var(--m-space-sm);
|
|
24
24
|
@apply --mx-fg(var(--m-color-neutral-paper));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.removeButton {
|
|
28
28
|
position: absolute;
|
|
29
|
-
top: var(--m-
|
|
30
|
-
right: var(--m-
|
|
29
|
+
top: var(--m-space-sm);
|
|
30
|
+
right: var(--m-space-sm);
|
|
31
31
|
z-index: 10;
|
|
32
32
|
height: 32px;
|
|
33
33
|
width: 32px;
|
|
34
34
|
cursor: pointer;
|
|
35
|
-
padding: var(--m-
|
|
35
|
+
padding: var(--m-space-sm);
|
|
36
36
|
@apply --mx-bg(var(--m-surface-ambient-bg));
|
|
37
37
|
@apply --mx-fg(var(--m-surface-ambient-fg));
|
|
38
38
|
@apply --mx-shadow;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
flex-direction: column;
|
|
57
57
|
align-items: center;
|
|
58
58
|
justify-content: center;
|
|
59
|
-
gap: var(--m-
|
|
59
|
+
gap: var(--m-space-sm);
|
|
60
60
|
@apply --mx-bg(var(--m-surface-primary-bg));
|
|
61
61
|
@apply --mx-fg(var(--m-surface-primary-fg));
|
|
62
62
|
border-radius: inherit;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: row;
|
|
41
41
|
align-items: center;
|
|
42
|
-
gap: var(--m-
|
|
42
|
+
gap: var(--m-space-xs);
|
|
43
43
|
width: max-content;
|
|
44
44
|
overflow: clip;
|
|
45
45
|
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
@apply --mx-borderColor(var(--m-control-borderColor));
|
|
54
54
|
border-radius: var(--m-control-radius);
|
|
55
55
|
|
|
56
|
-
font-size: var(--m-
|
|
57
|
-
line-height: var(--m-
|
|
58
|
-
font-weight: var(--m-
|
|
56
|
+
font-size: var(--m-prose-secondary-size);
|
|
57
|
+
line-height: var(--m-prose-secondary-lineHeight);
|
|
58
|
+
font-weight: var(--m-prose-secondary-weight);
|
|
59
59
|
|
|
60
60
|
&:has(input:disabled),
|
|
61
61
|
&:has(textarea:disabled) {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
& > [data-icon] {
|
|
90
|
-
margin-inline: var(--m-
|
|
90
|
+
margin-inline: var(--m-space-sm);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
padding-inline: var(--m-control-padding-inline);
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
anchor-name: --page-content;
|
|
8
8
|
flex: 1;
|
|
9
9
|
|
|
10
|
-
gap: var(--m-
|
|
10
|
+
gap: var(--m-space-md);
|
|
11
11
|
|
|
12
|
-
padding: var(--m-
|
|
12
|
+
padding: var(--m-space-md);
|
|
13
13
|
@media (min-width: 768px) {
|
|
14
|
-
padding: var(--m-
|
|
14
|
+
padding: var(--m-space-lg);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
margin-inline: auto;
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
position: absolute;
|
|
13
13
|
content: '';
|
|
14
14
|
top: 0;
|
|
15
|
-
left: var(--m-
|
|
16
|
-
right: var(--m-
|
|
15
|
+
left: var(--m-space-md);
|
|
16
|
+
right: var(--m-space-md);
|
|
17
17
|
height: 1px;
|
|
18
18
|
@apply --mx-bg(var(--m-color-neutral-heavy));
|
|
19
19
|
@media (min-width: 768px) {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
bottom: auto;
|
|
26
26
|
left: auto;
|
|
27
27
|
right: auto;
|
|
28
|
-
top: var(--m-
|
|
28
|
+
top: var(--m-space-lg);
|
|
29
29
|
height: auto;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
5
|
-
gap: var(--m-
|
|
5
|
+
gap: var(--m-space-sm);
|
|
6
6
|
|
|
7
|
-
padding: var(--m-
|
|
7
|
+
padding: var(--m-space-sm);
|
|
8
8
|
|
|
9
9
|
position: fixed;
|
|
10
10
|
position-anchor: --page-content;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
bottom: --fn-literal(var(--nav-height, env(safe-area-inset-bottom, 0px)));
|
|
15
15
|
|
|
16
16
|
@media (min-width: 768px) {
|
|
17
|
-
bottom: var(--m-
|
|
17
|
+
bottom: var(--m-space-md);
|
|
18
18
|
align-items: center;
|
|
19
19
|
transition: bottom var(--m-duration) var(--m-easing);
|
|
20
20
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
max-width: 80vw;
|
|
3
3
|
width: 100%;
|
|
4
|
-
padding: var(--m-
|
|
4
|
+
padding: var(--m-space-md);
|
|
5
5
|
@apply --mx-bg(var(--m-surface-ambient-bg));
|
|
6
6
|
border-radius: var(--m-radius-lg);
|
|
7
7
|
@apply --mx-borderColor(var(--m-surface-ambient-borderColor));
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
.grid {
|
|
15
15
|
display: grid;
|
|
16
|
-
gap: var(--m-
|
|
16
|
+
gap: var(--m-space-md);
|
|
17
17
|
align-items: start;
|
|
18
18
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
19
19
|
}
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
|
|
27
27
|
.close {
|
|
28
28
|
position: absolute;
|
|
29
|
-
right: var(--m-
|
|
30
|
-
top: var(--m-
|
|
29
|
+
right: var(--m-space-md);
|
|
30
|
+
top: var(--m-space-md);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.overlay {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
width: 90vw;
|
|
61
61
|
max-width: 100%;
|
|
62
62
|
|
|
63
|
-
padding: var(--m-
|
|
63
|
+
padding: var(--m-space-lg);
|
|
64
64
|
border: none;
|
|
65
65
|
background: none;
|
|
66
66
|
pointer-events: none;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
justify-items: center;
|
|
7
7
|
overflow: clip;
|
|
8
8
|
border-radius: 0;
|
|
9
|
-
padding: var(--m-
|
|
9
|
+
padding: var(--m-space-sm);
|
|
10
10
|
z-index: 50;
|
|
11
|
-
padding-bottom: calc(var(--m-
|
|
11
|
+
padding-bottom: calc(var(--m-space-sm) + env(safe-area-inset-bottom, 0px));
|
|
12
12
|
|
|
13
13
|
@media (min-width: 768px) {
|
|
14
14
|
height: min-content;
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
align-items: stretch;
|
|
18
18
|
justify-content: start;
|
|
19
|
-
gap: var(--m-
|
|
19
|
+
gap: var(--m-space-sm);
|
|
20
20
|
overflow-x: clip;
|
|
21
21
|
overflow-y: auto;
|
|
22
22
|
border-radius: 0;
|
|
23
|
-
padding-bottom: var(--m-
|
|
23
|
+
padding-bottom: var(--m-space-xl);
|
|
24
24
|
box-shadow: none;
|
|
25
25
|
@apply --mx-bg(transparent);
|
|
26
26
|
border: none;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
user-select: none;
|
|
37
37
|
align-items: center;
|
|
38
38
|
justify-content: center;
|
|
39
|
-
gap: var(--m-
|
|
39
|
+
gap: var(--m-space-sm);
|
|
40
40
|
white-space: nowrap;
|
|
41
41
|
padding: var(--m-action-padding);
|
|
42
42
|
transition: all var(--m-duration) var(--m-easing);
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
@apply --mx-bg(transparent);
|
|
45
45
|
border-radius: var(--m-radius-sm);
|
|
46
46
|
border: none;
|
|
47
|
-
font-size: var(--m-
|
|
47
|
+
font-size: var(--m-prose-ambient-size);
|
|
48
48
|
line-height: 1;
|
|
49
|
-
font-weight: var(--m-
|
|
49
|
+
font-weight: var(--m-prose-ambient-weight);
|
|
50
50
|
@apply --mx-shadow;
|
|
51
51
|
|
|
52
52
|
&:active {
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
flex-direction: row-reverse;
|
|
77
77
|
justify-content: end;
|
|
78
78
|
align-items: center;
|
|
79
|
-
gap: var(--m-
|
|
79
|
+
gap: var(--m-space-md);
|
|
80
80
|
padding: var(--m-action-padding);
|
|
81
81
|
overflow: visible;
|
|
82
|
-
font-size: var(--m-
|
|
82
|
+
font-size: var(--m-prose-secondary-size);
|
|
83
83
|
&:active {
|
|
84
84
|
@apply --mx-bg-heavier(1);
|
|
85
85
|
}
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
@media (min-width: 768px) {
|
|
94
94
|
@apply --mx-bg(var(--m-color-neutral-light));
|
|
95
95
|
@apply --mx-bg-faded(50%);
|
|
96
|
-
padding: var(--m-
|
|
96
|
+
padding: var(--m-space-sm);
|
|
97
97
|
border-radius: var(--m-action-radius);
|
|
98
98
|
|
|
99
99
|
[data-active='true'] & {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
|
|
105
105
|
.itemText {
|
|
106
106
|
@apply --mx-fg(var(--m-color-neutral-ink));
|
|
107
|
-
font-size: var(--m-
|
|
107
|
+
font-size: var(--m-prose-ambient-size);
|
|
108
108
|
line-height: 1;
|
|
109
109
|
font-weight: inherit;
|
|
110
110
|
display: inline-block;
|
|
@@ -126,8 +126,8 @@
|
|
|
126
126
|
|
|
127
127
|
.pip {
|
|
128
128
|
position: absolute;
|
|
129
|
-
top: var(--m-
|
|
130
|
-
right: var(--m-
|
|
129
|
+
top: var(--m-space-sm);
|
|
130
|
+
right: var(--m-space-sm);
|
|
131
131
|
width: 6px;
|
|
132
132
|
height: 6px;
|
|
133
133
|
border-radius: 50%;
|