@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
|
@@ -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;
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
position: absolute;
|
|
27
27
|
|
|
28
28
|
&[data-position='top-left'] {
|
|
29
|
-
top: var(--m-
|
|
30
|
-
left: var(--m-
|
|
29
|
+
top: var(--m-space-sm);
|
|
30
|
+
left: var(--m-space-sm);
|
|
31
31
|
}
|
|
32
32
|
&[data-position='top-right'] {
|
|
33
|
-
top: var(--m-
|
|
34
|
-
right: var(--m-
|
|
33
|
+
top: var(--m-space-sm);
|
|
34
|
+
right: var(--m-space-sm);
|
|
35
35
|
}
|
|
36
36
|
&[data-position='bottom-left'] {
|
|
37
|
-
bottom: var(--m-
|
|
38
|
-
left: var(--m-
|
|
37
|
+
bottom: var(--m-space-sm);
|
|
38
|
+
left: var(--m-space-sm);
|
|
39
39
|
}
|
|
40
40
|
&[data-position='bottom-right'] {
|
|
41
|
-
bottom: var(--m-
|
|
42
|
-
right: var(--m-
|
|
41
|
+
bottom: var(--m-space-sm);
|
|
42
|
+
right: var(--m-space-sm);
|
|
43
43
|
}
|
|
44
44
|
}
|