@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.
Files changed (131) hide show
  1. package/dist/arbor/arbor.d.ts +72 -8
  2. package/dist/arbor/arbor.js +94 -8
  3. package/dist/arbor/arbor.js.map +1 -1
  4. package/dist/colors.module.css +4 -4
  5. package/dist/components/actions/ActionButton.module.css +1 -1
  6. package/dist/components/box/Box.module.css +10 -10
  7. package/dist/components/box/Box.stories.js +1 -1
  8. package/dist/components/box/Box.stories.js.map +1 -1
  9. package/dist/components/button/Button.js +1 -1
  10. package/dist/components/button/Button.js.map +1 -1
  11. package/dist/components/button/Button.module.css +5 -12
  12. package/dist/components/button/index.d.ts +0 -1
  13. package/dist/components/button/index.js +0 -1
  14. package/dist/components/button/index.js.map +1 -1
  15. package/dist/components/camera/Camera.module.css +7 -7
  16. package/dist/components/card/Card.module.css +23 -23
  17. package/dist/components/card/Card.stories.js +2 -2
  18. package/dist/components/card/Card.stories.js.map +1 -1
  19. package/dist/components/chip/Chip.module.css +4 -4
  20. package/dist/components/combobox/Combobox.module.css +25 -25
  21. package/dist/components/datePicker/Calendar.module.css +3 -3
  22. package/dist/components/datePicker/dateRangePicker.module.css +1 -1
  23. package/dist/components/dialog/Dialog.module.css +15 -15
  24. package/dist/components/editableText/EditableText.module.css +1 -1
  25. package/dist/components/emojiPicker/EmojiPicker.module.css +12 -12
  26. package/dist/components/forms/FieldLabel.module.css +8 -8
  27. package/dist/components/forms/Form.module.css +1 -1
  28. package/dist/components/forms/NumberStepperField.module.css +1 -1
  29. package/dist/components/forms/TextField.module.css +1 -1
  30. package/dist/components/horizontalList/HorizontalList.module.css +4 -4
  31. package/dist/components/icon/Icon.stories.js +2 -2
  32. package/dist/components/icon/Icon.stories.js.map +1 -1
  33. package/dist/components/imageUploader/ImageUploader.module.css +6 -6
  34. package/dist/components/input/Input.module.css +5 -5
  35. package/dist/components/layouts/PageContent.module.css +3 -3
  36. package/dist/components/layouts/PageFixedArea.module.css +1 -1
  37. package/dist/components/layouts/PageNav.module.css +3 -3
  38. package/dist/components/layouts/PageNowPlaying.module.css +3 -3
  39. package/dist/components/layouts/PageSection.module.css +2 -2
  40. package/dist/components/lightbox/Lightbox.module.css +3 -3
  41. package/dist/components/lists/lists.module.css +2 -2
  42. package/dist/components/navBar/NavBar.module.css +13 -13
  43. package/dist/components/note/Note.module.css +4 -4
  44. package/dist/components/peek/Peek.module.css +4 -4
  45. package/dist/components/popover/Popover.module.css +8 -8
  46. package/dist/components/popover/Popover.stories.js +1 -1
  47. package/dist/components/popover/Popover.stories.js.map +1 -1
  48. package/dist/components/primitives/menus.module.css +25 -27
  49. package/dist/components/progress/Progress.module.css +7 -7
  50. package/dist/components/pwaInstall/PwaInstall.module.css +3 -3
  51. package/dist/components/quickAction/QuickAction.module.css +1 -1
  52. package/dist/components/richEditor/richEditor.module.css +23 -23
  53. package/dist/components/select/Select.module.css +2 -2
  54. package/dist/components/spinner/Spinner.module.css +1 -1
  55. package/dist/components/switch/Switch.module.css +1 -1
  56. package/dist/components/tabs/tabs.module.css +6 -6
  57. package/dist/components/textArea/TextArea.module.css +1 -1
  58. package/dist/components/toasts/toasts.module.css +19 -19
  59. package/dist/components/toggleGroup/toggleGroup.module.css +1 -1
  60. package/dist/components/tooltip/Tooltip.module.css +1 -1
  61. package/dist/components/typography/typography.module.css +11 -11
  62. package/dist/components/viewport/Viewport.module.css +8 -8
  63. package/dist/css/arbor.css +388 -276
  64. package/dist/css/util.css +10 -10
  65. package/dist/keyboard.stories.js +1 -1
  66. package/dist/keyboard.stories.js.map +1 -1
  67. package/dist/shadows.stories.js +1 -1
  68. package/dist/shadows.stories.js.map +1 -1
  69. package/dist/theme.stories.module.css +1 -1
  70. package/package.json +3 -3
  71. package/src/arbor/arbor.ts +108 -10
  72. package/src/colors.module.css +4 -4
  73. package/src/components/actions/ActionButton.module.css +1 -1
  74. package/src/components/box/Box.module.css +10 -10
  75. package/src/components/box/Box.stories.tsx +1 -1
  76. package/src/components/button/Button.module.css +5 -12
  77. package/src/components/button/Button.tsx +1 -0
  78. package/src/components/button/index.ts +0 -1
  79. package/src/components/camera/Camera.module.css +7 -7
  80. package/src/components/card/Card.module.css +23 -23
  81. package/src/components/card/Card.stories.tsx +2 -2
  82. package/src/components/chip/Chip.module.css +4 -4
  83. package/src/components/combobox/Combobox.module.css +25 -25
  84. package/src/components/datePicker/Calendar.module.css +3 -3
  85. package/src/components/datePicker/dateRangePicker.module.css +1 -1
  86. package/src/components/dialog/Dialog.module.css +15 -15
  87. package/src/components/editableText/EditableText.module.css +1 -1
  88. package/src/components/emojiPicker/EmojiPicker.module.css +12 -12
  89. package/src/components/forms/FieldLabel.module.css +8 -8
  90. package/src/components/forms/Form.module.css +1 -1
  91. package/src/components/forms/NumberStepperField.module.css +1 -1
  92. package/src/components/forms/TextField.module.css +1 -1
  93. package/src/components/horizontalList/HorizontalList.module.css +4 -4
  94. package/src/components/icon/Icon.stories.tsx +2 -2
  95. package/src/components/imageUploader/ImageUploader.module.css +6 -6
  96. package/src/components/input/Input.module.css +5 -5
  97. package/src/components/layouts/PageContent.module.css +3 -3
  98. package/src/components/layouts/PageFixedArea.module.css +1 -1
  99. package/src/components/layouts/PageNav.module.css +3 -3
  100. package/src/components/layouts/PageNowPlaying.module.css +3 -3
  101. package/src/components/layouts/PageSection.module.css +2 -2
  102. package/src/components/lightbox/Lightbox.module.css +3 -3
  103. package/src/components/lists/lists.module.css +2 -2
  104. package/src/components/navBar/NavBar.module.css +13 -13
  105. package/src/components/note/Note.module.css +4 -4
  106. package/src/components/peek/Peek.module.css +4 -4
  107. package/src/components/popover/Popover.module.css +8 -8
  108. package/src/components/popover/Popover.stories.tsx +1 -1
  109. package/src/components/primitives/menus.module.css +25 -27
  110. package/src/components/progress/Progress.module.css +7 -7
  111. package/src/components/pwaInstall/PwaInstall.module.css +3 -3
  112. package/src/components/quickAction/QuickAction.module.css +1 -1
  113. package/src/components/richEditor/richEditor.module.css +23 -23
  114. package/src/components/select/Select.module.css +2 -2
  115. package/src/components/spinner/Spinner.module.css +1 -1
  116. package/src/components/switch/Switch.module.css +1 -1
  117. package/src/components/tabs/tabs.module.css +6 -6
  118. package/src/components/textArea/TextArea.module.css +1 -1
  119. package/src/components/toasts/toasts.module.css +19 -19
  120. package/src/components/toggleGroup/toggleGroup.module.css +1 -1
  121. package/src/components/tooltip/Tooltip.module.css +1 -1
  122. package/src/components/typography/typography.module.css +11 -11
  123. package/src/components/viewport/Viewport.module.css +8 -8
  124. package/src/css/util.css +10 -10
  125. package/src/keyboard.stories.tsx +1 -1
  126. package/src/shadows.stories.tsx +1 -1
  127. package/src/theme.stories.module.css +1 -1
  128. package/dist/components/button/classes.d.ts +0 -7
  129. package/dist/components/button/classes.js +0 -24
  130. package/dist/components/button/classes.js.map +0 -1
  131. 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-spacing-sm);
27
+ padding: var(--m-space-sm);
28
28
 
29
- font-size: var(--m-text-ambient-size);
30
- line-height: var(--m-text-ambient-lineHeight);
31
- font-weight: var(--m-text-ambient-weight);
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-spacing-sm);
80
- font-size: var(--m-text-ambient-size);
81
- line-height: var(--m-text-ambient-lineHeight);
82
- font-weight: var(--m-text-ambient-weight);
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-spacing-sm);
4
- top: var(--m-spacing-sm);
3
+ right: var(--m-space-sm);
4
+ top: var(--m-space-sm);
5
5
  }
6
6
 
7
7
  .popup {
8
- padding: var(--m-spacing-md);
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-spacing-sm);
15
- font-size: var(--m-text-secondary-size);
16
- line-height: var(--m-text-secondary-lineHeight);
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-text-ambient-size);
22
- line-height: var(--m-text-ambient-lineHeight);
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-spacing-md)' }}>
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-spacing-md);
64
+ scroll-padding-block: var(--m-space-md);
65
65
  position: relative;
66
- padding: var(--m-spacing-xs);
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-spacing-lg);
81
- gap: var(--m-spacing-sm);
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-text-secondary-size);
85
- font-weight: var(--m-text-secondary-weight);
86
- line-height: var(--m-text-secondary-lineHeight);
87
- font-family: var(--m-text-secondary-font);
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-spacing-xs));
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-spacing-xs)
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-spacing-xs)
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-spacing-sm);
135
- scroll-padding-block: var(--m-spacing-md);
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-spacing-xs));
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-spacing-sm);
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-spacing-xs);
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-text-ambient-size);
205
- line-height: var(--m-text-ambient-lineHeight);
206
- font-weight: var(--m-text-ambient-weight);
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-spacing-md);
214
- right: var(--m-spacing-md);
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-text-ambient-size);
224
- line-height: var(--m-text-ambient-lineHeight);
225
- font-weight: var(--m-text-ambient-weight);
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-spacing-xs);
7
- column-gap: var(--m-spacing-md);
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-text-ambient-size);
42
- line-height: var(--m-text-ambient-lineHeight);
43
- font-weight: var(--m-text-ambient-weight);
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-text-ambient-size);
52
- line-height: var(--m-text-ambient-lineHeight);
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-spacing-xs);
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-spacing-md);
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-spacing-sm);
22
+ margin-bottom: var(--m-space-sm);
23
23
  }
@@ -1,7 +1,7 @@
1
1
  .trigger {
2
2
  position: relative;
3
3
  justify-content: center;
4
- padding: var(--m-spacing-xs);
4
+ padding: var(--m-space-xs);
5
5
  border-radius: var(--m-action-radius);
6
6
  }
7
7
 
@@ -1,5 +1,5 @@
1
1
  .root {
2
- @apply --mx-text-secondary;
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-text-primary;
19
+ @apply --mx-prose-primary;
20
20
  &:not(:first-child) {
21
- margin-top: var(--m-spacing-xl);
21
+ margin-top: var(--m-space-xl);
22
22
  }
23
23
  }
24
24
  & h2 {
25
- @apply --mx-text-secondary;
26
- font-weight: var(--m-text-primary-weight);
25
+ @apply --mx-prose-secondary;
26
+ font-weight: var(--m-prose-primary-weight);
27
27
  &:not(:first-child) {
28
- margin-top: var(--m-spacing-lg);
28
+ margin-top: var(--m-space-lg);
29
29
  }
30
30
  }
31
31
  & h3 {
32
- @apply --mx-text-ambient;
33
- font-weight: var(--m-text-primary-weight);
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-spacing-md);
36
+ margin-top: var(--m-space-md);
37
37
  }
38
38
  }
39
39
  & h4 {
40
- @apply --mx-text-ambient;
41
- font-weight: var(--m-text-primary-weight);
40
+ @apply --mx-prose-ambient;
41
+ font-weight: var(--m-prose-primary-weight);
42
42
  &:not(:first-child) {
43
- margin-top: var(--m-spacing-md);
43
+ margin-top: var(--m-space-md);
44
44
  }
45
45
  }
46
46
  & p {
47
- @apply --mx-text-secondary;
48
- margin-bottom: var(--m-spacing-md);
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-spacing-md);
59
+ padding-left: var(--m-space-md);
60
60
  font-style: italic;
61
- margin-block: var(--m-spacing-md);
62
- margin-inline-start: var(--m-spacing-md);
63
- padding-inline: var(--m-spacing-md);
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-spacing-lg);
75
- margin-block: var(--m-spacing-md);
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-spacing-xs);
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-typography-weight-bold);
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-spacing-lg);
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-spacing-md);
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-spacing-lg);
17
+ padding-inline: var(--m-space-lg);
18
18
  }
19
19
 
20
20
  .icon {
@@ -50,5 +50,5 @@
50
50
  align-items: center;
51
51
  align-self: stretch;
52
52
  justify-content: center;
53
- gap: var(--m-spacing-md);
53
+ gap: var(--m-space-md);
54
54
  }
@@ -58,6 +58,6 @@
58
58
  justify-content: center;
59
59
  content: '✓';
60
60
  color: var(--m-color-main-ink);
61
- font-size: var(--m-text-ambient-size);
61
+ font-size: var(--m-prose-ambient-size);
62
62
  }
63
63
  }
@@ -3,7 +3,7 @@
3
3
  display: flex;
4
4
  flex-direction: row;
5
5
  align-items: flex-start;
6
- gap: var(--m-spacing-xs);
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-spacing-xs);
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-text-secondary-size);
28
- font-weight: var(--m-text-secondary-weight);
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-spacing-xs);
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-spacing-xs);
126
+ right: var(--m-space-xs);
127
127
  top: 50%;
128
128
  z-index: 10;
129
129
  height: --fn-literal(16px);
@@ -10,5 +10,5 @@
10
10
  }
11
11
 
12
12
  .border {
13
- padding-block-end: var(--m-spacing-sm);
13
+ padding-block-end: var(--m-space-sm);
14
14
  }
@@ -4,8 +4,8 @@
4
4
  }
5
5
 
6
6
  .toast {
7
- --gap: var(--m-spacing-sm);
8
- --peek: var(--m-spacing-sm);
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-spacing-xs);
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-spacing-xs);
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-spacing-sm);
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-spacing-md);
119
- padding-inline-end: var(--m-spacing-sm);
120
- padding-block: var(--m-spacing-sm);
121
- gap: var(--m-spacing-sm);
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-spacing-xs);
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-spacing-xs);
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-text-secondary;
158
- font-weight: var(--m-typography-weight-bold);
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-spacing-sm);
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-text-ambient;
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-spacing-xs);
190
+ gap: var(--m-space-xs);
191
191
 
192
- font-size: var(--m-text-ambient-size);
193
- line-height: var(--m-text-ambient-lineHeight);
194
- font-weight: var(--m-text-ambient-weight);
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,7 +1,7 @@
1
1
  .root {
2
2
  width: fit-content;
3
3
  display: inline-flex;
4
- gap: var(--m-spacing-sm);
4
+ gap: var(--m-space-sm);
5
5
  border-radius: var(--m-radius-lg);
6
6
 
7
7
  @apply --mx-bg(--fn-color-faded(var(--m-color-main-light), 20%));
@@ -6,7 +6,7 @@
6
6
  padding: var(--m-surface-padding);
7
7
  border-radius: var(--m-surface-radius);
8
8
 
9
- font-size: var(--m-text-ambient-size);
9
+ font-size: var(--m-prose-ambient-size);
10
10
 
11
11
  transition:
12
12
  opacity 0.2s ease,
@@ -1,19 +1,19 @@
1
1
  .typography {
2
2
  @apply --mx-fg(inherit);
3
- font-size: var(--m-text-secondary-size);
4
- line-height: var(--m-text-secondary-lineHeight);
5
- font-weight: var(--m-text-secondary-weight);
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-text-primary-size);
9
- line-height: var(--m-text-primary-lineHeight);
10
- font-weight: var(--m-text-primary-weight);
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-text-ambient-size);
15
- line-height: var(--m-text-ambient-lineHeight);
16
- font-weight: var(--m-text-ambient-weight);
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-typography-weight-bold);
29
+ font-weight: var(--m-text-weight-bold);
30
30
  }
31
31
  &[data-thin] {
32
- font-weight: var(--m-typography-weight-thin);
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-spacing-sm);
30
- left: var(--m-spacing-sm);
29
+ top: var(--m-space-sm);
30
+ left: var(--m-space-sm);
31
31
  }
32
32
  &[data-position='top-right'] {
33
- top: var(--m-spacing-sm);
34
- right: var(--m-spacing-sm);
33
+ top: var(--m-space-sm);
34
+ right: var(--m-space-sm);
35
35
  }
36
36
  &[data-position='bottom-left'] {
37
- bottom: var(--m-spacing-sm);
38
- left: var(--m-spacing-sm);
37
+ bottom: var(--m-space-sm);
38
+ left: var(--m-space-sm);
39
39
  }
40
40
  &[data-position='bottom-right'] {
41
- bottom: var(--m-spacing-sm);
42
- right: var(--m-spacing-sm);
41
+ bottom: var(--m-space-sm);
42
+ right: var(--m-space-sm);
43
43
  }
44
44
  }