@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
@@ -18,14 +18,14 @@
18
18
  & h1 {
19
19
  @apply --mx-prose-primary;
20
20
  &:not(:first-child) {
21
- margin-top: var(--m-space-xl);
21
+ margin-top: var(--m-sp-xl);
22
22
  }
23
23
  }
24
24
  & h2 {
25
25
  @apply --mx-prose-secondary;
26
26
  font-weight: var(--m-prose-primary-weight);
27
27
  &:not(:first-child) {
28
- margin-top: var(--m-space-lg);
28
+ margin-top: var(--m-sp-lg);
29
29
  }
30
30
  }
31
31
  & h3 {
@@ -33,19 +33,19 @@
33
33
  font-weight: var(--m-prose-primary-weight);
34
34
  text-transform: uppercase;
35
35
  &:not(:first-child) {
36
- margin-top: var(--m-space-md);
36
+ margin-top: var(--m-sp-md);
37
37
  }
38
38
  }
39
39
  & h4 {
40
40
  @apply --mx-prose-ambient;
41
41
  font-weight: var(--m-prose-primary-weight);
42
42
  &:not(:first-child) {
43
- margin-top: var(--m-space-md);
43
+ margin-top: var(--m-sp-md);
44
44
  }
45
45
  }
46
46
  & p {
47
47
  @apply --mx-prose-secondary;
48
- margin-bottom: var(--m-space-md);
48
+ margin-bottom: var(--m-sp-md);
49
49
  }
50
50
  & a {
51
51
  text-decoration: underline;
@@ -55,13 +55,13 @@
55
55
  @apply --mx-focus;
56
56
  }
57
57
  & blockquote {
58
- border-left: 4px solid var(--m-color-neutral-heavy);
59
- padding-left: var(--m-space-md);
58
+ border-left: 4px solid var(--m-gray-heavy);
59
+ padding-left: var(--m-sp-md);
60
60
  font-style: italic;
61
- margin-block: var(--m-space-md);
62
- margin-inline-start: var(--m-space-md);
63
- padding-inline: var(--m-space-md);
64
- @apply --mx-bg(var(--m-color-neutral-wash));
61
+ margin-block: var(--m-sp-md);
62
+ margin-inline-start: var(--m-sp-md);
63
+ padding-inline: var(--m-sp-md);
64
+ @apply --mx-bg(var(--m-gray-wash));
65
65
  }
66
66
  & ul {
67
67
  list-style: disc;
@@ -71,25 +71,25 @@
71
71
  }
72
72
  & ul,
73
73
  & ol {
74
- padding-inline-start: var(--m-space-lg);
75
- margin-block: var(--m-space-md);
74
+ padding-inline-start: var(--m-sp-lg);
75
+ margin-block: var(--m-sp-md);
76
76
  }
77
77
  & li {
78
- margin-block-end: var(--m-space-xs);
78
+ margin-block-end: var(--m-sp-xs);
79
79
  }
80
80
  & mark {
81
- @apply --mx-bg(var(--m-color-main-wash));
81
+ @apply --mx-bg(var(--m-tint-wash));
82
82
  }
83
83
  & strong {
84
- font-weight: var(--m-text-weight-bold);
84
+ font-weight: var(--m-fw-bold);
85
85
  }
86
86
  & em {
87
87
  font-style: italic;
88
88
  }
89
89
  & hr {
90
90
  border: none;
91
- border-top: var(--m-lineWidth) solid var(--m-color-neutral-heavy);
92
- margin-block: var(--m-space-lg);
91
+ border-top: var(--m-lw) solid var(--m-gray-heavy);
92
+ margin-block: var(--m-sp-lg);
93
93
  }
94
94
  }
95
95
 
@@ -15,7 +15,7 @@
15
15
  outline: none;
16
16
  }
17
17
  &:focus-visible {
18
- --mx-ring-value: --fn-ring(var(--m-color-main-ink), 1px);
18
+ --mx-ring-value: --fn-ring(var(--m-tint-ink), 1px);
19
19
  }
20
20
  }
21
21
 
@@ -37,7 +37,7 @@
37
37
  display: block;
38
38
  height: min(40px, var(--scroll-area-overflow-y-start, 40px));
39
39
  width: 100%;
40
- transition: height var(--m-duration) var(--m-easing);
40
+ transition: height var(--m-dur) var(--m-ease);
41
41
 
42
42
  background: linear-gradient(
43
43
  to bottom,
@@ -56,7 +56,7 @@
56
56
  display: block;
57
57
  height: min(40px, var(--scroll-area-overflow-y-end, 40px));
58
58
  width: 100%;
59
- transition: height var(--m-duration) var(--m-easing);
59
+ transition: height var(--m-dur) var(--m-ease);
60
60
 
61
61
  background: linear-gradient(to top, var(--mx-bg-ref) 0%, transparent 100%);
62
62
  }
@@ -80,7 +80,7 @@
80
80
  display: block;
81
81
  height: 100%;
82
82
  width: min(40px, var(--scroll-area-overflow-x-start, 40px));
83
- transition: width var(--m-duration) var(--m-easing);
83
+ transition: width var(--m-dur) var(--m-ease);
84
84
 
85
85
  background: linear-gradient(
86
86
  to right,
@@ -99,7 +99,7 @@
99
99
  display: block;
100
100
  height: 100%;
101
101
  width: min(40px, var(--scroll-area-overflow-x-end, 40px));
102
- transition: width var(--m-duration) var(--m-easing);
102
+ transition: width var(--m-dur) var(--m-ease);
103
103
 
104
104
  background: linear-gradient(to left, var(--mx-bg-ref) 0%, transparent 100%);
105
105
  }
@@ -118,7 +118,7 @@
118
118
  .thumb {
119
119
  @apply --mx-bg(var(--mx-fg-ref));
120
120
  @apply --mx-bg-faded(25%);
121
- border-radius: var(--m-radius-full);
121
+ border-radius: var(--m-rd-full);
122
122
 
123
123
  &[data-orientation='vertical'] {
124
124
  width: 100%;
@@ -135,12 +135,12 @@
135
135
  display: flex;
136
136
  user-select: none;
137
137
  opacity: 0;
138
- border-radius: var(--m-radius-full);
138
+ border-radius: var(--m-rd-full);
139
139
  touch-action: none;
140
140
  transition:
141
141
  opacity,
142
142
  height,
143
- width var(--m-duration) var(--m-easing);
143
+ width var(--m-dur) var(--m-ease);
144
144
 
145
145
  @apply --mx-bg(var(--mx-fg-ref));
146
146
  @apply --mx-bg-faded(5%);
@@ -1,10 +1,10 @@
1
1
  .trigger {
2
2
  display: inline-flex;
3
3
  font-weight: normal;
4
- gap: var(--m-space-md);
4
+ gap: var(--m-sp-md);
5
5
 
6
6
  &[data-placeholder] {
7
- color: var(--m-color-neutral-heavy);
7
+ color: var(--m-gray-heavy);
8
8
  }
9
9
  }
10
10
 
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .groupLabel {
17
- padding-inline: var(--m-space-lg);
17
+ padding-inline: var(--m-sp-lg);
18
18
  }
19
19
 
20
20
  .icon {
@@ -12,7 +12,7 @@
12
12
  display: inline-block;
13
13
  height: 100%;
14
14
  max-width: 100%;
15
- border-radius: var(--m-radius-md);
15
+ border-radius: var(--m-rd-md);
16
16
  width: 100%;
17
17
  flex-shrink: 0;
18
18
  opacity: 20%;
@@ -20,14 +20,14 @@
20
20
  animation-name: skeleton;
21
21
  animation-duration: 1.5s;
22
22
  animation-iteration-count: infinite;
23
- animation-timing-function: var(--m-easing);
23
+ animation-timing-function: var(--m-ease);
24
24
  animation-direction: alternate;
25
25
  animation-play-state: running;
26
26
 
27
27
  background-image: linear-gradient(
28
28
  to right,
29
29
  transparent 0%,
30
- var(--mx-fg-ref, var(--m-color-main-ink)) 50%,
30
+ var(--mx-fg-ref, var(--m-tint-ink)) 50%,
31
31
  transparent 100%
32
32
  );
33
33
  }
@@ -30,12 +30,12 @@
30
30
  height: var(--size);
31
31
  flex-grow: 1;
32
32
  user-select: none;
33
- transition: background-color var(--m-duration) var(--m-easing);
33
+ transition: background-color var(--m-dur) var(--m-ease);
34
34
  box-sizing: border-box;
35
35
 
36
36
  @apply --mx-bg(transparent);
37
- border-radius: var(--m-radius-lg);
38
- @apply --mx-ring(--fn-ring(var(--m-color-neutral-ink), 1px));
37
+ border-radius: var(--m-rd-lg);
38
+ @apply --mx-ring(--fn-ring(var(--m-gray-ink), 1px));
39
39
 
40
40
  &[data-orientation='vertical'] {
41
41
  height: 100%;
@@ -46,9 +46,9 @@
46
46
 
47
47
  .range {
48
48
  box-sizing: border-box;
49
- transition: background-color var(--m-duration) var(--m-easing);
50
- @apply --mx-bg(var(--m-color-main));
51
- border-radius: var(--m-radius-lg);
49
+ transition: background-color var(--m-dur) var(--m-ease);
50
+ @apply --mx-bg(var(--m-tint));
51
+ border-radius: var(--m-rd-lg);
52
52
  }
53
53
 
54
54
  .thumb {
@@ -63,24 +63,24 @@
63
63
  line-height: 1;
64
64
  touch-action: none;
65
65
  transition:
66
- background-color var(--m-duration) var(--m-easing),
67
- box-shadow var(--m-duration) var(--m-easing);
66
+ background-color var(--m-dur) var(--m-ease),
67
+ box-shadow var(--m-dur) var(--m-ease);
68
68
 
69
69
  @apply --mx-shadow;
70
70
  --mx-shadow-value: var(--m-shadow-sm);
71
71
 
72
- @apply --mx-borderColor(var(--m-color-neutral-ink));
73
- border-width: var(--m-lineWidth-md);
72
+ @apply --mx-borderColor(var(--m-gray-ink));
73
+ border-width: var(--m-lw-md);
74
74
 
75
75
  @apply --mx-bg(var(--m-control-bg));
76
- border-radius: var(--m-control-radius);
76
+ border-radius: var(--m-control-rd);
77
77
 
78
78
  &:hover {
79
79
  --mx-shadow-value: var(--m-shadow-md);
80
80
  }
81
81
 
82
82
  &:active {
83
- @apply --mx-bg(var(--m-color-main-light));
83
+ @apply --mx-bg(var(--m-tint-light));
84
84
  --mx-shadow-value: var(--m-shadow-lg);
85
85
  --mx-ring-value: --fn-ring(var(--mx-bg-ref), 4px);
86
86
  }
@@ -90,7 +90,7 @@
90
90
  }
91
91
 
92
92
  &:focus-visible {
93
- @apply --mx-bg(var(--m-color-main-light));
93
+ @apply --mx-bg(var(--m-tint-light));
94
94
  --mx-shadow-value: var(--m-shadow-lg);
95
95
  --mx-ring-value: --fn-focus-ring();
96
96
  }
@@ -50,5 +50,5 @@
50
50
  align-items: center;
51
51
  align-self: stretch;
52
52
  justify-content: center;
53
- gap: var(--m-space-md);
53
+ gap: var(--m-sp-md);
54
54
  }
@@ -9,17 +9,17 @@
9
9
  appearance: none;
10
10
  padding: --fn-literal(3px);
11
11
 
12
- transition: all var(--m-duration) var(--m-easing);
12
+ transition: all var(--m-dur) var(--m-ease);
13
13
 
14
14
  @apply --mx-shadow;
15
15
  --mx-shadow-value: inset var(--m-shadow-sm);
16
16
 
17
17
  @apply --mx-bg(var(--m-control-bg));
18
- @apply --mx-borderColor(var(--m-control-borderColor));
19
- border-radius: var(--m-radius-lg);
18
+ @apply --mx-borderColor(var(--m-control-b-color));
19
+ border-radius: var(--m-rd-lg);
20
20
 
21
21
  &[data-checked] {
22
- @apply --mx-bg(var(--m-color-main));
22
+ @apply --mx-bg(var(--m-tint));
23
23
  }
24
24
 
25
25
  @apply --mx-hover;
@@ -32,14 +32,14 @@
32
32
  display: block;
33
33
  aspect-ratio: 1/1;
34
34
  height: 100%;
35
- transition: transform var(--m-duration) var(--m-easing);
35
+ transition: transform var(--m-dur) var(--m-ease);
36
36
  will-change: transform;
37
37
 
38
38
  @apply --mx-shadow(var(--m-shadow-sm));
39
39
 
40
- @apply --mx-bg(var(--m-color-neutral-paper));
41
- @apply --mx-borderColor(var(--m-control-border));
42
- border-radius: var(--m-radius-lg);
40
+ @apply --mx-bg(var(--m-gray-paper));
41
+ @apply --mx-borderColor(var(--m-control-b));
42
+ border-radius: var(--m-rd-lg);
43
43
 
44
44
  position: relative;
45
45
 
@@ -57,7 +57,7 @@
57
57
  align-items: center;
58
58
  justify-content: center;
59
59
  content: '✓';
60
- color: var(--m-color-main-ink);
60
+ color: var(--m-tint-ink);
61
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-space-xs);
6
+ gap: var(--m-sp-xs);
7
7
  }
8
8
 
9
9
  .trigger {
@@ -13,17 +13,17 @@
13
13
  flex-direction: row;
14
14
  align-items: center;
15
15
  justify-content: center;
16
- gap: var(--m-space-xs);
17
- padding: var(--m-action-padding);
16
+ gap: var(--m-sp-xs);
17
+ padding: var(--m-action-p);
18
18
 
19
19
  cursor: pointer;
20
20
  user-select: none;
21
- transition: all var(--m-duration) var(--m-easing);
21
+ transition: all var(--m-dur) var(--m-ease);
22
22
 
23
23
  text-align: center;
24
24
  white-space: nowrap;
25
25
 
26
- @apply --mx-fg(var(--m-color-neutral-ink));
26
+ @apply --mx-fg(var(--m-gray-ink));
27
27
  font-size: var(--m-prose-secondary-size);
28
28
  font-weight: var(--m-prose-secondary-weight);
29
29
  line-height: 1;
@@ -36,11 +36,11 @@
36
36
  flex-shrink: 0;
37
37
 
38
38
  background: transparent;
39
- border: var(--m-lineWidth-sm) solid transparent;
40
- border-radius: var(--m-radius-lg);
39
+ border: var(--m-lw-sm) solid transparent;
40
+ border-radius: var(--m-rd-lg);
41
41
 
42
42
  &[aria-selected='false']:hover {
43
- @apply --mx-bg(var(--m-color-neutral-light));
43
+ @apply --mx-bg(var(--m-gray-light));
44
44
  --mx-ring-value: --fn-ring(var(--mx-bg-ref), 4px);
45
45
  }
46
46
 
@@ -49,7 +49,7 @@
49
49
  }
50
50
 
51
51
  &:focus-visible {
52
- @apply --mx-bg(var(--m-color-neutral-light));
52
+ @apply --mx-bg(var(--m-gray-light));
53
53
  --mx-ring-value: --fn-focus-ring();
54
54
  outline: none;
55
55
  }
@@ -68,8 +68,8 @@
68
68
  height: 100%;
69
69
  width: var(--active-tab-width);
70
70
  transition-property: transform, width, color;
71
- transition-duration: var(--m-duration);
72
- transition-timing-function: var(--m-easing);
71
+ transition-duration: var(--m-dur);
72
+ transition-timing-function: var(--m-ease);
73
73
  transform: translateX(
74
74
  calc(
75
75
  var(--active-tab-left, 0px) + var(--scroll-area-overflow-x-start, 0px)
@@ -99,13 +99,13 @@
99
99
  @apply --mx-shadow(var(--m-shadow-sm));
100
100
  @apply --mx-surface-ambient;
101
101
  padding: 0;
102
- border-radius: var(--m-radius-lg);
102
+ border-radius: var(--m-rd-lg);
103
103
  }
104
104
 
105
105
  .moreLeftIcon {
106
106
  pointer-events: none;
107
107
  position: absolute;
108
- left: var(--m-space-xs);
108
+ left: var(--m-sp-xs);
109
109
  top: 50%;
110
110
  z-index: 10;
111
111
  height: --fn-literal(16px);
@@ -117,13 +117,13 @@
117
117
  round(min(1, calc(var(--scroll-area-overflow-x-start, 0px) / 10px)))
118
118
  );
119
119
 
120
- @apply --mx-fg(--fn-color-faded(var(--m-color-neutral-heavy), 50%));
120
+ @apply --mx-fg(--fn-color-faded(var(--m-gray-heavy), 50%));
121
121
  }
122
122
 
123
123
  .moreRightIcon {
124
124
  pointer-events: none;
125
125
  position: absolute;
126
- right: var(--m-space-xs);
126
+ right: var(--m-sp-xs);
127
127
  top: 50%;
128
128
  z-index: 10;
129
129
  height: --fn-literal(16px);
@@ -135,5 +135,5 @@
135
135
  round(min(1, calc(var(--scroll-area-overflow-x-end, 0px) / 10px)))
136
136
  );
137
137
 
138
- @apply --mx-fg(--fn-color-faded(var(--m-color-neutral-heavy), 50%));
138
+ @apply --mx-fg(--fn-color-faded(var(--m-gray-heavy), 50%));
139
139
  }
@@ -10,5 +10,5 @@
10
10
  }
11
11
 
12
12
  .border {
13
- padding-block-end: var(--m-space-sm);
13
+ padding-block-end: var(--m-sp-sm);
14
14
  }
@@ -4,8 +4,8 @@
4
4
  }
5
5
 
6
6
  .toast {
7
- --gap: var(--m-space-sm);
8
- --peek: var(--m-space-sm);
7
+ --gap: var(--m-sp-sm);
8
+ --peek: var(--m-sp-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-space-xs);
20
+ top: var(--m-sp-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-space-xs);
30
+ gap: var(--m-sp-xs);
31
31
 
32
32
  /* styling happens in content element */
33
33
 
@@ -43,9 +43,9 @@
43
43
  )
44
44
  scale(var(--scale));
45
45
  transition:
46
- transform var(--m-duration) var(--m-easing),
47
- opacity var(--m-duration) var(--m-easing),
48
- height var(--m-duration-short) var(--m-easing);
46
+ transform var(--m-dur) var(--m-ease),
47
+ opacity var(--m-dur) var(--m-ease),
48
+ height var(--m-dur-short) var(--m-ease);
49
49
 
50
50
  &::after {
51
51
  position: absolute;
@@ -100,7 +100,7 @@
100
100
  pointer-events: auto;
101
101
  display: flex;
102
102
  flex-direction: column;
103
- gap: var(--m-space-sm);
103
+ gap: var(--m-sp-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-space-md);
119
- padding-inline-end: var(--m-space-sm);
120
- padding-block: var(--m-space-sm);
121
- gap: var(--m-space-sm);
118
+ padding-inline-start: var(--m-sp-md);
119
+ padding-inline-end: var(--m-sp-sm);
120
+ padding-block: var(--m-sp-sm);
121
+ gap: var(--m-sp-sm);
122
122
 
123
123
  [data-behind]:not([data-expanded]) & {
124
124
  max-height: var(--height);
@@ -130,10 +130,10 @@
130
130
  display: flex;
131
131
  flex-direction: row;
132
132
  align-items: center;
133
- gap: var(--m-space-xs);
133
+ gap: var(--m-sp-xs);
134
134
  @apply --mx-fg(inherit);
135
135
 
136
- transition: opacity var(--m-duration) var(--m-easing);
136
+ transition: opacity var(--m-dur) var(--m-ease);
137
137
 
138
138
  /* Hide content when not in front */
139
139
  [data-behind]:not([data-expanded]) & {
@@ -148,20 +148,20 @@
148
148
  .toastMainBodyContent {
149
149
  display: flex;
150
150
  flex-direction: column;
151
- gap: var(--m-space-xs);
151
+ gap: var(--m-sp-xs);
152
152
  @apply --mx-fg(inherit);
153
153
  }
154
154
 
155
155
  .toastTitle {
156
156
  @apply --mx-fg(inherit);
157
157
  @apply --mx-prose-secondary;
158
- font-weight: var(--m-text-weight-bold);
158
+ font-weight: var(--m-fw-bold);
159
159
  margin: 0;
160
160
  }
161
161
 
162
162
  .toastDescriptionRow {
163
163
  display: flex;
164
- gap: var(--m-space-sm);
164
+ gap: var(--m-sp-sm);
165
165
  }
166
166
 
167
167
  .icon {
@@ -187,13 +187,13 @@
187
187
  margin-inline-start: auto;
188
188
  display: flex;
189
189
  align-items: center;
190
- gap: var(--m-space-xs);
190
+ gap: var(--m-sp-xs);
191
191
 
192
192
  font-size: var(--m-prose-ambient-size);
193
193
  line-height: var(--m-prose-ambient-lineHeight);
194
194
  font-weight: var(--m-prose-ambient-weight);
195
195
 
196
- transition: opacity var(--m-duration) var(--m-easing);
196
+ transition: opacity var(--m-dur) var(--m-ease);
197
197
 
198
198
  [data-behind]:not([data-expanded]) & {
199
199
  opacity: 0;
@@ -1,10 +1,10 @@
1
1
  .root {
2
2
  width: fit-content;
3
3
  display: inline-flex;
4
- gap: var(--m-space-sm);
5
- border-radius: var(--m-radius-lg);
4
+ gap: var(--m-sp-sm);
5
+ border-radius: var(--m-rd-lg);
6
6
 
7
- @apply --mx-bg(--fn-color-faded(var(--m-color-main-light), 20%));
7
+ @apply --mx-bg(--fn-color-faded(var(--m-tint-light), 20%));
8
8
  }
9
9
 
10
10
  .item {
@@ -13,36 +13,36 @@
13
13
  align-items: center;
14
14
  justify-content: center;
15
15
  white-space: nowrap;
16
- transition: all var(--m-duration) var(--m-easing);
16
+ transition: all var(--m-dur) var(--m-ease);
17
17
 
18
- @apply --mx-fg(var(--m-color-neutral-ink));
18
+ @apply --mx-fg(var(--m-gray-ink));
19
19
 
20
- padding: var(--m-action-padding);
20
+ padding: var(--m-action-p);
21
21
 
22
22
  @apply --mx-borderColor(transparent);
23
- border-radius: var(--m-radius-lg);
23
+ border-radius: var(--m-rd-lg);
24
24
 
25
25
  &[data-pressed] {
26
26
  @apply --mx-shadow;
27
27
  --mx-shadow-value: var(--m-shadow-sm);
28
- @apply --mx-bg(var(--m-color-main));
29
- @apply --mx-borderColor(var(--m-color-neutral-ink));
28
+ @apply --mx-bg(var(--m-tint));
29
+ @apply --mx-borderColor(var(--m-gray-ink));
30
30
  }
31
31
 
32
32
  &:not([data-pressed]) {
33
- @apply --mx-bg(--fn-color-faded(var(--m-color-neutral), 30%));
33
+ @apply --mx-bg(--fn-color-faded(var(--m-gray), 30%));
34
34
  }
35
35
 
36
36
  &:hover:not([data-pressed]) {
37
37
  @apply --mx-bg-lighter(2);
38
38
  --mx-ring-value: --fn-ring(var(--mx-bg-ref), 2px);
39
- @apply --mx-borderColor(--fn-color-faded(var(--m-color-main-ink), 20%));
39
+ @apply --mx-borderColor(--fn-color-faded(var(--m-tint-ink), 20%));
40
40
  }
41
41
 
42
42
  &:active:not([data-pressed]) {
43
43
  @apply --mx-bg-lighter(1);
44
44
  --mx-ring-value: --fn-ring(var(--mx-bg-ref), 4px);
45
- @apply --mx-borderColor(--fn-color-faded(var(--m-color-main-ink), 30%));
45
+ @apply --mx-borderColor(--fn-color-faded(var(--m-tint-ink), 30%));
46
46
  }
47
47
 
48
48
  &:focus {
@@ -3,8 +3,8 @@
3
3
  display: flex;
4
4
  user-select: none;
5
5
 
6
- padding: var(--m-surface-padding);
7
- border-radius: var(--m-surface-radius);
6
+ padding: var(--m-surface-p);
7
+ border-radius: var(--m-surface-rd);
8
8
 
9
9
  font-size: var(--m-prose-ambient-size);
10
10
 
@@ -18,22 +18,22 @@
18
18
  --mx-shadow-value: var(--m-shadow-sm);
19
19
 
20
20
  &[data-color='contrast'] {
21
- @apply --mx-fg(var(--m-color-neutral-paper));
22
- @apply --mx-bg(var(--m-color-neutral-ink));
21
+ @apply --mx-fg(var(--m-gray-paper));
22
+ @apply --mx-bg(var(--m-gray-ink));
23
23
  }
24
24
 
25
25
  &[data-color='white'],
26
26
  &[data-color='neutral'] {
27
- @apply --mx-fg(var(--m-color-neutral-ink));
28
- @apply --mx-bg(var(--m-color-neutral-paper));
29
- @apply --mx-borderColor(var(--m-color-neutral));
27
+ @apply --mx-fg(var(--m-gray-ink));
28
+ @apply --mx-bg(var(--m-gray-paper));
29
+ @apply --mx-borderColor(var(--m-gray));
30
30
  border-style: solid;
31
- border-width: var(--m-lineWidth-sm);
31
+ border-width: var(--m-lw-sm);
32
32
  }
33
33
 
34
34
  &[data-color='attention'] {
35
- @apply --mx-bg(var(--m-color-main-heavy));
36
- @apply --mx-fg(var(--m-color-neutral-paper));
35
+ @apply --mx-bg(var(--m-tint-heavy));
36
+ @apply --mx-fg(var(--m-gray-paper));
37
37
  }
38
38
 
39
39
  opacity: 0;