@a-type/ui 6.0.81 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/dist/arbor/arbor.d.ts +637 -691
  2. package/dist/arbor/arbor.js +51 -63
  3. package/dist/arbor/arbor.js.map +1 -1
  4. package/dist/colors.module.css +14 -14
  5. package/dist/components/actions/ActionBar.module.css +1 -1
  6. package/dist/components/actions/ActionButton.module.css +1 -1
  7. package/dist/components/avatar/Avatar.module.css +5 -5
  8. package/dist/components/box/Box.module.css +19 -19
  9. package/dist/components/box/Box.stories.js +1 -1
  10. package/dist/components/box/Box.stories.js.map +1 -1
  11. package/dist/components/button/Button.module.css +9 -9
  12. package/dist/components/camera/Camera.module.css +9 -9
  13. package/dist/components/card/Card.module.css +24 -24
  14. package/dist/components/card/Card.stories.js +2 -2
  15. package/dist/components/card/Card.stories.js.map +1 -1
  16. package/dist/components/checkbox/Checkbox.module.css +8 -8
  17. package/dist/components/chip/Chip.module.css +9 -9
  18. package/dist/components/collapsible/Collapsible.module.css +2 -2
  19. package/dist/components/combobox/Combobox.module.css +26 -26
  20. package/dist/components/datePicker/Calendar.module.css +32 -32
  21. package/dist/components/datePicker/dateRangePicker.module.css +1 -1
  22. package/dist/components/dialog/Dialog.module.css +25 -25
  23. package/dist/components/dialog/Dialog.stories.js +1 -1
  24. package/dist/components/dialog/Dialog.stories.js.map +1 -1
  25. package/dist/components/divider/Divider.module.css +2 -2
  26. package/dist/components/editableText/EditableText.module.css +5 -5
  27. package/dist/components/emojiPicker/EmojiPicker.module.css +10 -10
  28. package/dist/components/forms/Field.module.css +10 -12
  29. package/dist/components/forms/Form.module.css +1 -1
  30. package/dist/components/forms/NumberStepperField.module.css +1 -1
  31. package/dist/components/forms/TextField.module.css +1 -1
  32. package/dist/components/horizontalList/HorizontalList.module.css +7 -8
  33. package/dist/components/horizontalList/HorizontalList.stories.js +5 -5
  34. package/dist/components/horizontalList/HorizontalList.stories.js.map +1 -1
  35. package/dist/components/icon/Icon.module.css +1 -1
  36. package/dist/components/icon/Icon.stories.js +1 -1
  37. package/dist/components/icon/Icon.stories.js.map +1 -1
  38. package/dist/components/imageUploader/ImageUploader.module.css +9 -9
  39. package/dist/components/input/Input.module.css +13 -13
  40. package/dist/components/layouts/PageContent.module.css +3 -3
  41. package/dist/components/layouts/PageFixedArea.module.css +1 -1
  42. package/dist/components/layouts/PageNav.module.css +4 -4
  43. package/dist/components/layouts/PageNowPlaying.module.css +4 -4
  44. package/dist/components/layouts/PageRoot.module.css +1 -1
  45. package/dist/components/layouts/PageSection.module.css +4 -4
  46. package/dist/components/layouts/layouts.stories.js +1 -1
  47. package/dist/components/layouts/layouts.stories.js.map +1 -1
  48. package/dist/components/lightbox/Lightbox.module.css +5 -5
  49. package/dist/components/lists/lists.module.css +3 -3
  50. package/dist/components/marquee/marquee.module.css +1 -1
  51. package/dist/components/navBar/NavBar.module.css +19 -19
  52. package/dist/components/note/Note.module.css +16 -16
  53. package/dist/components/numberStepper/NumberStepper.module.css +4 -4
  54. package/dist/components/peek/Peek.module.css +9 -9
  55. package/dist/components/popover/Popover.module.css +5 -5
  56. package/dist/components/popover/Popover.stories.js +1 -1
  57. package/dist/components/popover/Popover.stories.js.map +1 -1
  58. package/dist/components/primitives/menus.module.css +29 -33
  59. package/dist/components/progress/Progress.module.css +11 -11
  60. package/dist/components/provider/Provider.js +1 -1
  61. package/dist/components/provider/Provider.js.map +1 -1
  62. package/dist/components/pwaInstall/PwaInstall.module.css +4 -4
  63. package/dist/components/quickAction/QuickAction.module.css +4 -4
  64. package/dist/components/richEditor/richEditor.module.css +18 -18
  65. package/dist/components/scrollArea/ScrollArea.module.css +8 -8
  66. package/dist/components/select/Select.module.css +3 -3
  67. package/dist/components/skeletons/skeletons.module.css +3 -3
  68. package/dist/components/slider/Slider.module.css +13 -13
  69. package/dist/components/spinner/Spinner.module.css +1 -1
  70. package/dist/components/switch/Switch.module.css +9 -9
  71. package/dist/components/tabs/tabs.module.css +16 -16
  72. package/dist/components/textArea/TextArea.module.css +1 -1
  73. package/dist/components/toasts/toasts.module.css +19 -19
  74. package/dist/components/toggleGroup/toggleGroup.module.css +12 -12
  75. package/dist/components/tooltip/Tooltip.module.css +10 -10
  76. package/dist/components/typography/typography.d.ts +1 -2
  77. package/dist/components/typography/typography.js +1 -2
  78. package/dist/components/typography/typography.js.map +1 -1
  79. package/dist/components/typography/typography.module.css +6 -9
  80. package/dist/components/viewport/Viewport.module.css +9 -9
  81. package/dist/css/base.css +1 -1
  82. package/dist/css/util.css +10 -10
  83. package/dist/hooks/useTitleBarColor.stories.js +1 -1
  84. package/dist/hooks/useTitleBarColor.stories.js.map +1 -1
  85. package/dist/keyboard.stories.js +1 -1
  86. package/dist/keyboard.stories.js.map +1 -1
  87. package/dist/shadows.stories.js +1 -1
  88. package/dist/shadows.stories.js.map +1 -1
  89. package/dist/theme.stories.module.css +1 -1
  90. package/package.json +5 -5
  91. package/src/arbor/arbor.ts +54 -67
  92. package/src/colors.module.css +14 -14
  93. package/src/components/actions/ActionBar.module.css +1 -1
  94. package/src/components/actions/ActionButton.module.css +1 -1
  95. package/src/components/avatar/Avatar.module.css +5 -5
  96. package/src/components/box/Box.module.css +19 -19
  97. package/src/components/box/Box.stories.tsx +1 -1
  98. package/src/components/button/Button.module.css +9 -9
  99. package/src/components/camera/Camera.module.css +9 -9
  100. package/src/components/card/Card.module.css +24 -24
  101. package/src/components/card/Card.stories.tsx +2 -2
  102. package/src/components/checkbox/Checkbox.module.css +8 -8
  103. package/src/components/chip/Chip.module.css +9 -9
  104. package/src/components/collapsible/Collapsible.module.css +2 -2
  105. package/src/components/combobox/Combobox.module.css +26 -26
  106. package/src/components/datePicker/Calendar.module.css +32 -32
  107. package/src/components/datePicker/dateRangePicker.module.css +1 -1
  108. package/src/components/dialog/Dialog.module.css +25 -25
  109. package/src/components/dialog/Dialog.stories.tsx +1 -1
  110. package/src/components/divider/Divider.module.css +2 -2
  111. package/src/components/editableText/EditableText.module.css +5 -5
  112. package/src/components/emojiPicker/EmojiPicker.module.css +10 -10
  113. package/src/components/forms/Field.module.css +10 -12
  114. package/src/components/forms/Form.module.css +1 -1
  115. package/src/components/forms/NumberStepperField.module.css +1 -1
  116. package/src/components/forms/TextField.module.css +1 -1
  117. package/src/components/horizontalList/HorizontalList.module.css +7 -8
  118. package/src/components/horizontalList/HorizontalList.stories.tsx +5 -5
  119. package/src/components/icon/Icon.module.css +1 -1
  120. package/src/components/icon/Icon.stories.tsx +1 -1
  121. package/src/components/imageUploader/ImageUploader.module.css +9 -9
  122. package/src/components/input/Input.module.css +13 -13
  123. package/src/components/layouts/PageContent.module.css +3 -3
  124. package/src/components/layouts/PageFixedArea.module.css +1 -1
  125. package/src/components/layouts/PageNav.module.css +4 -4
  126. package/src/components/layouts/PageNowPlaying.module.css +4 -4
  127. package/src/components/layouts/PageRoot.module.css +1 -1
  128. package/src/components/layouts/PageSection.module.css +4 -4
  129. package/src/components/layouts/layouts.stories.tsx +1 -1
  130. package/src/components/lightbox/Lightbox.module.css +5 -5
  131. package/src/components/lists/lists.module.css +3 -3
  132. package/src/components/marquee/marquee.module.css +1 -1
  133. package/src/components/navBar/NavBar.module.css +19 -19
  134. package/src/components/note/Note.module.css +16 -16
  135. package/src/components/numberStepper/NumberStepper.module.css +4 -4
  136. package/src/components/peek/Peek.module.css +9 -9
  137. package/src/components/popover/Popover.module.css +5 -5
  138. package/src/components/popover/Popover.stories.tsx +1 -1
  139. package/src/components/primitives/menus.module.css +29 -33
  140. package/src/components/progress/Progress.module.css +11 -11
  141. package/src/components/provider/Provider.tsx +1 -1
  142. package/src/components/pwaInstall/PwaInstall.module.css +4 -4
  143. package/src/components/quickAction/QuickAction.module.css +4 -4
  144. package/src/components/richEditor/richEditor.module.css +18 -18
  145. package/src/components/scrollArea/ScrollArea.module.css +8 -8
  146. package/src/components/select/Select.module.css +3 -3
  147. package/src/components/skeletons/skeletons.module.css +3 -3
  148. package/src/components/slider/Slider.module.css +13 -13
  149. package/src/components/spinner/Spinner.module.css +1 -1
  150. package/src/components/switch/Switch.module.css +9 -9
  151. package/src/components/tabs/tabs.module.css +16 -16
  152. package/src/components/textArea/TextArea.module.css +1 -1
  153. package/src/components/toasts/toasts.module.css +19 -19
  154. package/src/components/toggleGroup/toggleGroup.module.css +12 -12
  155. package/src/components/tooltip/Tooltip.module.css +10 -10
  156. package/src/components/typography/typography.module.css +6 -9
  157. package/src/components/typography/typography.tsx +0 -3
  158. package/src/components/viewport/Viewport.module.css +9 -9
  159. package/src/css/base.css +1 -1
  160. package/src/css/util.css +10 -10
  161. package/src/hooks/useTitleBarColor.stories.tsx +1 -1
  162. package/src/keyboard.stories.tsx +1 -1
  163. package/src/shadows.stories.tsx +1 -1
  164. package/src/theme.stories.module.css +1 -1
@@ -3,11 +3,11 @@
3
3
  inset: 0;
4
4
  @apply --mx-shadow;
5
5
  /* --mx-shadow-value: inset 0 30px 60px 0px
6
- --fn-color-faded(var(--m-color-main-ink), 20%); */
7
- @apply --mx-bg(var(--m-color-neutral-ink));
6
+ --fn-color-faded(var(--m-tint-ink), 20%); */
7
+ @apply --mx-bg(var(--m-gray-ink));
8
8
  @apply --mx-bg-faded(5%);
9
- border-top: var(--m-lineWidth) solid var(--m-color-neutral);
10
- transition: all var(--m-duration) var(--m-easing);
9
+ border-top: var(--m-lw) solid var(--m-gray);
10
+ transition: all var(--m-dur) var(--m-ease);
11
11
  backdrop-filter: blur(2px);
12
12
 
13
13
  &[data-starting-style],
@@ -23,20 +23,20 @@
23
23
  flex-direction: column;
24
24
  align-items: stretch;
25
25
  overflow: clip;
26
- transition: all var(--m-duration) var(--m-easing);
26
+ transition: all var(--m-dur) var(--m-ease);
27
27
  --shadow-dir: 1;
28
28
  @apply --mx-shadow;
29
29
  --mx-shadow-value: 0 calc(var(--shadow-dir, 1) * var(--m-shadow-xl-y))
30
30
  var(--m-shadow-xl-blur) var(--m-shadow-xl-spread) var(--m-shadow-xl-color);
31
31
  @apply --mx-bg(var(--m-surface-ambient-bg));
32
- @apply --mx-borderColor(var(--m-color-neutral-heavy));
32
+ @apply --mx-borderColor(var(--m-gray-heavy));
33
33
 
34
34
  left: 50%;
35
35
  top: 50%;
36
36
  max-height: 85vh;
37
37
  max-width: 450px;
38
38
  width: 90vw;
39
- border-radius: var(--m-surface-radius);
39
+ border-radius: var(--m-surface-rd);
40
40
  transform: translate3d(-50%, -50%, 0);
41
41
  will-change: transform, opacity;
42
42
 
@@ -56,11 +56,11 @@
56
56
  max-width: unset;
57
57
  height: min-content;
58
58
  width: 100vw;
59
- border-radius: var(--m-surface-radius) var(--m-surface-radius) 0 0;
59
+ border-radius: var(--m-surface-rd) var(--m-surface-rd) 0 0;
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-space-lg);
63
+ padding-top: var(--m-sp-lg);
64
64
 
65
65
  &[data-starting-style],
66
66
  &[data-ending-style] {
@@ -106,8 +106,8 @@
106
106
  .contentScrollAreaContent {
107
107
  display: flex;
108
108
  flex-direction: column;
109
- gap: var(--m-space-md);
110
- padding: var(--m-surface-padding);
109
+ gap: var(--m-sp-md);
110
+ padding: var(--m-surface-p);
111
111
  }
112
112
 
113
113
  .swipeHandle {
@@ -120,7 +120,7 @@
120
120
  cursor: grab;
121
121
  will-change: transform;
122
122
  touch-action: none;
123
- padding-block: var(--m-space-sm);
123
+ padding-block: var(--m-sp-sm);
124
124
  z-index: 1;
125
125
 
126
126
  @media (min-width: 600px) {
@@ -130,14 +130,14 @@
130
130
  .swipeHandleBar {
131
131
  height: 4px;
132
132
  width: 100%;
133
- @apply --mx-bg(var(--m-color-neutral));
134
- border-radius: var(--m-radius-lg);
133
+ @apply --mx-bg(var(--m-gray));
134
+ border-radius: var(--m-rd-lg);
135
135
  }
136
136
 
137
137
  .close {
138
138
  position: absolute;
139
- right: var(--m-space-sm);
140
- top: var(--m-space-sm);
139
+ right: var(--m-sp-sm);
140
+ top: var(--m-sp-sm);
141
141
  z-index: 101;
142
142
  display: flex;
143
143
 
@@ -149,25 +149,25 @@
149
149
  }
150
150
 
151
151
  .title {
152
- @apply --mx-fg(var(--m-color-neutral-ink));
152
+ @apply --mx-fg(var(--m-gray-ink));
153
153
  font-size: var(--m-prose-primary-size);
154
154
  font-weight: var(--m-prose-primary-weight);
155
155
  line-height: var(--m-prose-primary-lineHeight);
156
- margin-block-end: var(--m-space-xs);
156
+ margin-block-end: var(--m-sp-xs);
157
157
  margin-block-start: 0;
158
158
  }
159
159
 
160
160
  .description {
161
- @apply --mx-fg(var(--m-color-neutral-heavy));
161
+ @apply --mx-fg(var(--m-gray-heavy));
162
162
  font-size: var(--m-prose-ambient-size);
163
163
  line-height: var(--m-prose-ambient-lineHeight);
164
164
  margin: 0;
165
- margin-block-end: var(--m-space-xs);
165
+ margin-block-end: var(--m-sp-xs);
166
166
  }
167
167
 
168
168
  .actions {
169
169
  position: sticky;
170
- bottom: var(--m-space-md);
170
+ bottom: var(--m-sp-md);
171
171
  z-index: 100;
172
172
  display: flex;
173
173
  flex-direction: row;
@@ -179,10 +179,10 @@
179
179
  @apply --mx-shadow;
180
180
  /* override blur in case user turned it off */
181
181
  --mx-shadow-value: 0 calc(-1 * var(--m-shadow-md-y)) 16px
182
- var(--m-shadow-md-spread) var(--m-color-neutral-paper);
182
+ var(--m-shadow-md-spread) var(--m-gray-paper);
183
183
  @apply --mx-bg(var(--m-surface-ambient-bg));
184
184
  @apply --mx-bg-faded(50%);
185
- margin-block-start: var(--m-space-md);
186
- gap: var(--m-space-sm);
187
- border-radius: var(--m-surface-radius);
185
+ margin-block-start: var(--m-sp-md);
186
+ gap: var(--m-sp-sm);
187
+ border-radius: var(--m-surface-rd);
188
188
  }
@@ -178,7 +178,7 @@ export const VirtualKeyboard: Story = {
178
178
  right: 0,
179
179
  height: 'var(--mock-virtual-keyboard-height,0)',
180
180
  width: '100%',
181
- transition: 'height var(--m-duration) var(--m-easing)',
181
+ transition: 'height var(--m-dur) var(--m-ease)',
182
182
  }}
183
183
  />
184
184
  </Provider>
@@ -2,9 +2,9 @@
2
2
  position: relative;
3
3
  height: --fn-literal(1px);
4
4
  width: 100%;
5
- @apply --mx-bg(var(--m-color-neutral-ink));
5
+ @apply --mx-bg(var(--m-gray-ink));
6
6
 
7
7
  &[data-padded] {
8
- margin-block: var(--m-space-md);
8
+ margin-block: var(--m-sp-md);
9
9
  }
10
10
  }
@@ -19,13 +19,13 @@
19
19
  @apply --mx-bg(transparent);
20
20
  @apply --mx-borderColor(transparent);
21
21
 
22
- padding: var(--m-control-padding);
23
- gap: var(--m-space-sm);
24
- border-radius: var(--m-control-radius);
22
+ padding: var(--m-control-p);
23
+ gap: var(--m-sp-sm);
24
+ border-radius: var(--m-control-rd);
25
25
 
26
26
  &:hover,
27
27
  &:focus-visible {
28
- @apply --mx-bg(var(--m-color-neutral-light));
28
+ @apply --mx-bg(var(--m-gray-light));
29
29
  @apply --mx-bg-faded(80%);
30
30
  }
31
31
 
@@ -40,5 +40,5 @@
40
40
  .icon {
41
41
  opacity: 80%;
42
42
  font-size: 1rem;
43
- @apply --mx-stroke(var(--m-color-main-heavy));
43
+ @apply --mx-stroke(var(--m-tint-heavy));
44
44
  }
@@ -4,7 +4,7 @@
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  isolation: isolate;
7
- gap: var(--m-space-sm);
7
+ gap: var(--m-sp-sm);
8
8
  @apply --mx-bg(var(--m-surface-ambient-bg));
9
9
  }
10
10
 
@@ -19,7 +19,7 @@
19
19
  flex: 1;
20
20
  overflow: clip;
21
21
  @apply --mx-bg(var(--m-surface-ambient-bg));
22
- border-radius: var(--m-surface-radius);
22
+ border-radius: var(--m-surface-rd);
23
23
  }
24
24
  .viewportInner {
25
25
  position: relative;
@@ -42,7 +42,7 @@
42
42
  align-items: center;
43
43
  justify-content: center;
44
44
  @apply --mx-bg(inherit);
45
- @apply --mx-fg(var(--m-color-neutral-heavy));
45
+ @apply --mx-fg(var(--m-gray-heavy));
46
46
  font-size: var(--m-prose-ambient-size);
47
47
  line-height: var(--m-prose-ambient-lineHeight);
48
48
  font-weight: var(--m-prose-ambient-weight);
@@ -52,30 +52,30 @@
52
52
  position: sticky;
53
53
  top: 0;
54
54
  @apply --mx-bg(inherit);
55
- @apply --mx-fg(var(--m-color-neutral-heavy));
56
- padding: var(--m-space-sm) var(--m-space-md);
55
+ @apply --mx-fg(var(--m-gray-heavy));
56
+ padding: var(--m-sp-sm) var(--m-sp-md);
57
57
  font-weight: semibold;
58
58
  font-size: var(--m-prose-ambient-size);
59
59
  line-height: var(--m-prose-ambient-lineHeight);
60
60
  }
61
61
 
62
62
  .row {
63
- scroll-margin-block: var(--m-space-xs);
64
- padding-inline: var(--m-space-xs);
63
+ scroll-margin-block: var(--m-sp-xs);
64
+ padding-inline: var(--m-sp-xs);
65
65
  }
66
66
 
67
67
  .emoji {
68
- padding: var(--m-space-xs);
68
+ padding: var(--m-sp-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-space-md);
74
+ padding-block-end: var(--m-sp-md);
75
75
  }
76
76
 
77
77
  .skinToneButton {
78
- padding: var(--m-space-xs);
78
+ padding: var(--m-sp-xs);
79
79
  font-size: --fn-literal(20px);
80
80
  }
81
81
 
@@ -33,21 +33,19 @@
33
33
  .label {
34
34
  grid-area: label;
35
35
  @apply --mx-prose-ambient;
36
- @apply --mx-fg(var(--m-color-neutral-heavy));
37
- font-weight: var(--m-text-weight-bold);
38
- margin-bottom: var(--m-space-xs);
39
- margin-left: calc(var(--m-global-shape-roundness) * var(--m-space-md));
36
+ @apply --mx-fg(var(--m-gray-heavy));
37
+ font-weight: var(--m-fw-bold);
38
+ margin-bottom: var(--m-sp-xs);
39
+ margin-left: calc(var(--m-global-shape-roundness) * var(--m-sp-md));
40
40
 
41
41
  [data-horizontal] & {
42
- @apply --mx-fg(var(--m-color-neutral-ink));
43
- font-weight: var(--m-text-weight-normal);
42
+ @apply --mx-fg(var(--m-gray-ink));
43
+ font-weight: var(--m-fw-normal);
44
44
  margin-block-start: --fn-literal(5px);
45
45
 
46
46
  [data-reverse] & {
47
47
  margin-inline-start: 0;
48
- margin-inline-end: calc(
49
- var(--m-global-shape-roundness) * var(--m-space-md)
50
- );
48
+ margin-inline-end: calc(var(--m-global-shape-roundness) * var(--m-sp-md));
51
49
  }
52
50
  }
53
51
  }
@@ -55,8 +53,8 @@
55
53
  .description {
56
54
  grid-area: description;
57
55
  @apply --mx-prose-ambient;
58
- @apply --mx-fg(var(--m-color-neutral-heavy));
56
+ @apply --mx-fg(var(--m-gray-heavy));
59
57
  font-style: italic;
60
- margin-top: var(--m-space-sm);
61
- margin-left: calc(var(--m-global-shape-roundness) * var(--m-space-md));
58
+ margin-top: var(--m-sp-sm);
59
+ margin-left: calc(var(--m-global-shape-roundness) * var(--m-sp-md));
62
60
  }
@@ -2,5 +2,5 @@
2
2
  display: flex;
3
3
  align-items: start;
4
4
  flex-direction: column;
5
- gap: var(--m-space-lg);
5
+ gap: var(--m-sp-lg);
6
6
  }
@@ -1,5 +1,5 @@
1
1
  .root {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- gap: var(--m-space-xs);
4
+ gap: var(--m-sp-xs);
5
5
  }
@@ -3,7 +3,7 @@
3
3
  flex-direction: column;
4
4
  align-items: stretch;
5
5
  align-self: stretch;
6
- gap: var(--m-space-xs);
6
+ gap: var(--m-sp-xs);
7
7
  }
8
8
 
9
9
  .input {
@@ -16,17 +16,16 @@
16
16
  flex-shrink: 0;
17
17
  flex-direction: row;
18
18
  align-items: center;
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);
19
+ gap: var(--m-sp-sm);
20
+ padding: var(--m-sp-sm) var(--m-sp-sm) var(--m-sp-md) var(--m-sp-sm);
22
21
  }
23
22
 
24
23
  .toggleButton {
25
24
  &[data-open='false'] {
26
25
  height: 100%;
27
- border-inline-end: var(--m-lineWidth) solid var(--m-color-neutral);
28
- border-top-left-radius: var(--m-radius-sm);
29
- border-bottom-left-radius: var(--m-radius-sm);
26
+ border-inline-end: var(--m-lw) solid var(--m-gray);
27
+ border-top-left-radius: var(--m-rd-sm);
28
+ border-bottom-left-radius: var(--m-rd-sm);
30
29
  border-top-right-radius: 0;
31
30
  border-bottom-right-radius: 0;
32
31
  }
@@ -36,14 +35,14 @@
36
35
  position: sticky;
37
36
  left: 0;
38
37
  height: 100%;
39
- top: var(--m-space-sm);
38
+ top: var(--m-sp-sm);
40
39
  z-index: 1;
41
40
  flex-shrink: 0;
42
41
  @apply --mx-bg(inherit);
43
42
  }
44
43
 
45
44
  .chevronIcon {
46
- transition: transform var(--m-duration) var(--m-easing);
45
+ transition: transform var(--m-dur) var(--m-ease);
47
46
  &[data-flip='true'] {
48
47
  transform: rotate(180deg);
49
48
  }
@@ -72,7 +72,7 @@ export const Default: Story = {
72
72
  display: 'flex',
73
73
  flexDirection: 'column',
74
74
  alignItems: 'center',
75
- backgroundColor: 'var(--m-color-neutral-ink)',
75
+ backgroundColor: 'var(--m-gray-ink)',
76
76
  }}
77
77
  >
78
78
  <div
@@ -82,7 +82,7 @@ export const Default: Story = {
82
82
  flexDirection: 'column',
83
83
  flex: 1,
84
84
  alignItems: 'stretch',
85
- backgroundColor: 'var(--m-color-neutral-paper)',
85
+ backgroundColor: 'var(--m-gray-paper)',
86
86
  }}
87
87
  >
88
88
  <Button
@@ -99,7 +99,7 @@ export const Default: Story = {
99
99
  </Button>
100
100
  <HorizontalList
101
101
  style={{
102
- borderTop: '1px solid var(--m-color-neutral)',
102
+ borderTop: '1px solid var(--m-gray)',
103
103
  maxHeight: 200,
104
104
  }}
105
105
  openDirection="up"
@@ -125,13 +125,13 @@ export const CantOpen: Story = {
125
125
  flexDirection: 'column',
126
126
  alignItems: 'stretch',
127
127
  justifyContent: 'flex-end',
128
- backgroundColor: 'var(--m-color-neutral-paper)',
128
+ backgroundColor: 'var(--m-gray-paper)',
129
129
  }}
130
130
  >
131
131
  <HorizontalList
132
132
  style={{
133
133
  maxHeight: 200,
134
- borderTop: '1px solid var(--m-color-neutral)',
134
+ borderTop: '1px solid var(--m-gray)',
135
135
  }}
136
136
  openDirection="up"
137
137
  {...args}
@@ -7,7 +7,7 @@
7
7
  height: var(--size);
8
8
 
9
9
  &[data-filled] {
10
- fill: var(--m-color-main);
10
+ fill: var(--m-tint);
11
11
  }
12
12
  }
13
13
 
@@ -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-space-xs)',
39
+ gap: 'var(--m-sp-xs)',
40
40
  }}
41
41
  >
42
42
  {iconNames.map((name) => (
@@ -1,6 +1,6 @@
1
1
  .root {
2
2
  position: relative;
3
- border-radius: var(--m-surface-radius);
3
+ border-radius: var(--m-surface-rd);
4
4
  }
5
5
 
6
6
  .input {
@@ -19,24 +19,24 @@
19
19
 
20
20
  .cameraCancelButton {
21
21
  position: absolute;
22
- top: var(--m-space-sm);
23
- left: var(--m-space-sm);
24
- @apply --mx-fg(var(--m-color-neutral-paper));
22
+ top: var(--m-sp-sm);
23
+ left: var(--m-sp-sm);
24
+ @apply --mx-fg(var(--m-gray-paper));
25
25
  }
26
26
 
27
27
  .removeButton {
28
28
  position: absolute;
29
- top: var(--m-space-sm);
30
- right: var(--m-space-sm);
29
+ top: var(--m-sp-sm);
30
+ right: var(--m-sp-sm);
31
31
  z-index: 10;
32
32
  height: 32px;
33
33
  width: 32px;
34
34
  cursor: pointer;
35
- padding: var(--m-space-sm);
35
+ padding: var(--m-sp-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;
39
- border-radius: var(--m-radius-lg);
39
+ border-radius: var(--m-rd-lg);
40
40
  border: none;
41
41
  }
42
42
 
@@ -56,7 +56,7 @@
56
56
  flex-direction: column;
57
57
  align-items: center;
58
58
  justify-content: center;
59
- gap: var(--m-space-sm);
59
+ gap: var(--m-sp-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;
@@ -2,7 +2,7 @@
2
2
  display: flex;
3
3
  flex-grow: 1;
4
4
  user-select: auto;
5
- padding: var(--m-control-padding-block) 0px;
5
+ padding: var(--m-control-p-block) 0px;
6
6
  min-width: 60px;
7
7
 
8
8
  @apply --mx-fg(inherit);
@@ -14,7 +14,7 @@
14
14
  line-height: inherit;
15
15
 
16
16
  &::placeholder {
17
- @apply --mx-fg(var(--m-color-neutral-heavy));
17
+ @apply --mx-fg(var(--m-gray-heavy));
18
18
  }
19
19
 
20
20
  /* Focus visuals handled by wrapper */
@@ -24,12 +24,12 @@
24
24
  }
25
25
 
26
26
  /* &:first-child {
27
- padding-left: var(--m-control-padding-inline);
27
+ padding-left: var(--m-control-p-inline);
28
28
  border-top-left-radius: inherit;
29
29
  border-bottom-left-radius: inherit;
30
30
  }
31
31
  &:last-child {
32
- padding-right: var(--m-control-padding-inline);
32
+ padding-right: var(--m-control-p-inline);
33
33
  border-top-right-radius: inherit;
34
34
  border-bottom-right-radius: inherit;
35
35
  } */
@@ -39,19 +39,19 @@
39
39
  display: flex;
40
40
  flex-direction: row;
41
41
  align-items: center;
42
- gap: var(--m-space-xs);
42
+ gap: var(--m-sp-xs);
43
43
  width: max-content;
44
44
  overflow: clip;
45
45
 
46
- transition: box-shadow var(--m-duration) var(--m-easing);
46
+ transition: box-shadow var(--m-dur) var(--m-ease);
47
47
 
48
48
  @apply --mx-shadow;
49
49
  --mx-shadow-value: inset var(--m-shadow-sm);
50
50
 
51
51
  @apply --mx-fg(var(--m-control-fg));
52
52
  @apply --mx-bg(var(--m-control-bg));
53
- @apply --mx-borderColor(var(--m-control-borderColor));
54
- border-radius: var(--m-control-radius);
53
+ @apply --mx-borderColor(var(--m-control-b-color));
54
+ border-radius: var(--m-control-rd);
55
55
 
56
56
  font-size: var(--m-prose-secondary-size);
57
57
  line-height: var(--m-prose-secondary-lineHeight);
@@ -77,7 +77,7 @@
77
77
  &:has(input:focus),
78
78
  &:has(textarea:focus) {
79
79
  @apply --mx-bg-lighter(3);
80
- --mx-ring-value: --fn-ring(var(--m-color-main-light), 4px);
80
+ --mx-ring-value: --fn-ring(var(--m-tint-light), 4px);
81
81
  }
82
82
 
83
83
  &:has(input:hover:not(:disabled):not(:focus)),
@@ -87,14 +87,14 @@
87
87
  }
88
88
 
89
89
  & > [data-icon] {
90
- margin-inline: var(--m-space-sm);
90
+ margin-inline: var(--m-sp-sm);
91
91
  }
92
92
 
93
- padding-inline: var(--m-control-padding-inline);
93
+ padding-inline: var(--m-control-p-inline);
94
94
  & > [data-input-border-flush]:first-child {
95
- margin-left: calc(-1 * var(--m-control-padding-inline));
95
+ margin-left: calc(-1 * var(--m-control-p-inline));
96
96
  }
97
97
  & > [data-input-border-flush]:last-child {
98
- margin-right: calc(-1 * var(--m-control-padding-inline));
98
+ margin-right: calc(-1 * var(--m-control-p-inline));
99
99
  }
100
100
  }
@@ -7,11 +7,11 @@
7
7
  anchor-name: --page-content;
8
8
  flex: 1;
9
9
 
10
- gap: var(--m-space-md);
10
+ gap: var(--m-sp-md);
11
11
 
12
- padding: var(--m-space-md);
12
+ padding: var(--m-sp-md);
13
13
  @media (min-width: 768px) {
14
- padding: var(--m-space-lg);
14
+ padding: var(--m-sp-lg);
15
15
  }
16
16
 
17
17
  margin-inline: auto;
@@ -6,6 +6,6 @@
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  align-items: stretch;
9
- gap: var(--m-space-sm);
9
+ gap: var(--m-sp-sm);
10
10
  @apply --mx-bg(inherit);
11
11
  }
@@ -12,10 +12,10 @@
12
12
  position: absolute;
13
13
  content: '';
14
14
  top: 0;
15
- left: var(--m-space-md);
16
- right: var(--m-space-md);
15
+ left: var(--m-sp-md);
16
+ right: var(--m-sp-md);
17
17
  height: 1px;
18
- @apply --mx-bg(var(--m-color-neutral-heavy));
18
+ @apply --mx-bg(var(--m-gray-heavy));
19
19
  @media (min-width: 768px) {
20
20
  display: none;
21
21
  }
@@ -25,7 +25,7 @@
25
25
  bottom: auto;
26
26
  left: auto;
27
27
  right: auto;
28
- top: var(--m-space-lg);
28
+ top: var(--m-sp-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-space-sm);
5
+ gap: var(--m-sp-sm);
6
6
 
7
- padding: var(--m-space-sm);
7
+ padding: var(--m-sp-sm);
8
8
 
9
9
  position: fixed;
10
10
  position-anchor: --page-content;
@@ -14,9 +14,9 @@
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-space-md);
17
+ bottom: var(--m-sp-md);
18
18
  align-items: center;
19
- transition: bottom var(--m-duration) var(--m-easing);
19
+ transition: bottom var(--m-dur) var(--m-ease);
20
20
  }
21
21
 
22
22
  &[data-disable-portal='true'] {
@@ -10,7 +10,7 @@
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
 
13
- @apply --mx-bg(var(--m-color-main-paper));
13
+ @apply --mx-bg(var(--m-tint-paper));
14
14
 
15
15
  @media (min-width: 768px) {
16
16
  display: grid;
@@ -1,10 +1,10 @@
1
1
  .root {
2
2
  max-width: 80vw;
3
3
  width: 100%;
4
- padding: var(--m-space-md);
4
+ padding: var(--m-sp-md);
5
5
  @apply --mx-bg(var(--m-surface-ambient-bg));
6
- border-radius: var(--m-radius-lg);
7
- @apply --mx-borderColor(var(--m-surface-ambient-borderColor));
6
+ border-radius: var(--m-rd-lg);
7
+ @apply --mx-borderColor(var(--m-surface-ambient-b-color));
8
8
 
9
9
  @media (min-width: 768px) {
10
10
  min-width: 0;
@@ -13,7 +13,7 @@
13
13
 
14
14
  .grid {
15
15
  display: grid;
16
- gap: var(--m-space-md);
16
+ gap: var(--m-sp-md);
17
17
  align-items: start;
18
18
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
19
19
  }
@@ -226,7 +226,7 @@ export const WithVirtualKeyboard: Story = {
226
226
  right: 0,
227
227
  height: 'var(--mock-virtual-keyboard-height,0)',
228
228
  width: '100%',
229
- transition: 'height var(--m-duration) var(--m-easing)',
229
+ transition: 'height var(--m-dur) var(--m-ease)',
230
230
  }}
231
231
  />
232
232
  </PageRoot>