@a-type/ui 6.0.80 → 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 -4
  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
@@ -29,13 +29,10 @@
29
29
  text-decoration: line-through;
30
30
  }
31
31
  &[data-bold] {
32
- font-weight: var(--m-text-weight-bold);
33
- }
34
- &[data-thin] {
35
- font-weight: var(--m-text-weight-thin);
32
+ font-weight: var(--m-fw-bold);
36
33
  }
37
34
  &[data-normal] {
38
- font-weight: var(--m-text-weight-normal);
35
+ font-weight: var(--m-fw-normal);
39
36
  }
40
37
  &[data-uppercase] {
41
38
  text-transform: uppercase;
@@ -58,16 +55,16 @@
58
55
  }
59
56
 
60
57
  &[data-color='neutral'] {
61
- @apply --mx-fg(var(--m-color-neutral-ink));
58
+ @apply --mx-fg(var(--m-gray-ink));
62
59
  }
63
60
  &[data-color='main'] {
64
- @apply --mx-fg(var(--m-color-main-heavy));
61
+ @apply --mx-fg(var(--m-tint-heavy));
65
62
  }
66
63
  &[data-color='attention'] {
67
- @apply --mx-fg(var(--m-color-palette-attention-heavy));
64
+ @apply --mx-fg(var(--m-color-attention-heavy));
68
65
  }
69
66
  &[data-color='success'] {
70
- @apply --mx-fg(var(--m-color-palette-success-heavy));
67
+ @apply --mx-fg(var(--m-color-success-heavy));
71
68
  }
72
69
 
73
70
  &[data-align='start'] {
@@ -11,7 +11,6 @@ export interface TypographyProps extends useRender.ComponentProps<'span'> {
11
11
  underline?: boolean;
12
12
  strikethrough?: boolean;
13
13
  bold?: boolean;
14
- thin?: boolean;
15
14
  normal?: boolean;
16
15
  uppercase?: boolean;
17
16
  truncate?: boolean;
@@ -29,7 +28,6 @@ export function Text({
29
28
  render,
30
29
  className,
31
30
  bold,
32
- thin,
33
31
  truncate,
34
32
  dim,
35
33
  color,
@@ -52,7 +50,6 @@ export function Text({
52
50
  underline: underline ? true : undefined,
53
51
  strikethrough: strikethrough ? true : undefined,
54
52
  bold: bold ? true : undefined,
55
- thin: thin ? true : undefined,
56
53
  truncate: truncate ? true : undefined,
57
54
  dim: dim ? true : undefined,
58
55
  color: color ? color : undefined,
@@ -18,7 +18,7 @@
18
18
  }
19
19
  &:focus-visible {
20
20
  @apply --mx-shadow;
21
- --mx-ring-value: --fn-ring(var(--m-color-main-ink), 1px);
21
+ --mx-ring-value: --fn-ring(var(--m-tint-ink), 1px);
22
22
  }
23
23
  }
24
24
 
@@ -26,19 +26,19 @@
26
26
  position: absolute;
27
27
 
28
28
  &[data-position='top-left'] {
29
- top: var(--m-space-sm);
30
- left: var(--m-space-sm);
29
+ top: var(--m-sp-sm);
30
+ left: var(--m-sp-sm);
31
31
  }
32
32
  &[data-position='top-right'] {
33
- top: var(--m-space-sm);
34
- right: var(--m-space-sm);
33
+ top: var(--m-sp-sm);
34
+ right: var(--m-sp-sm);
35
35
  }
36
36
  &[data-position='bottom-left'] {
37
- bottom: var(--m-space-sm);
38
- left: var(--m-space-sm);
37
+ bottom: var(--m-sp-sm);
38
+ left: var(--m-sp-sm);
39
39
  }
40
40
  &[data-position='bottom-right'] {
41
- bottom: var(--m-space-sm);
42
- right: var(--m-space-sm);
41
+ bottom: var(--m-sp-sm);
42
+ right: var(--m-sp-sm);
43
43
  }
44
44
  }
package/src/css/base.css CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  body {
30
30
  overflow: overlay;
31
- @apply --mx-bg(var(--m-color-main-paper));
31
+ @apply --mx-bg(var(--m-tint-paper));
32
32
  }
33
33
 
34
34
  a {
package/src/css/util.css CHANGED
@@ -61,19 +61,19 @@
61
61
  gap: 0;
62
62
  }
63
63
  .gap-xs {
64
- gap: var(--m-space-xs);
64
+ gap: var(--m-sp-xs);
65
65
  }
66
66
  .gap-sm {
67
- gap: var(--m-space-sm);
67
+ gap: var(--m-sp-sm);
68
68
  }
69
69
  .gap-md {
70
- gap: var(--m-space-md);
70
+ gap: var(--m-sp-md);
71
71
  }
72
72
  .gap-lg {
73
- gap: var(--m-space-lg);
73
+ gap: var(--m-sp-lg);
74
74
  }
75
75
  .gap-xl {
76
- gap: var(--m-space-xl);
76
+ gap: var(--m-sp-xl);
77
77
  }
78
78
 
79
79
  .items-start {
@@ -112,19 +112,19 @@
112
112
  padding: 0;
113
113
  }
114
114
  .p-xs {
115
- padding: var(--m-space-xs);
115
+ padding: var(--m-sp-xs);
116
116
  }
117
117
  .p-sm {
118
- padding: var(--m-space-sm);
118
+ padding: var(--m-sp-sm);
119
119
  }
120
120
  .p-md {
121
- padding: var(--m-space-md);
121
+ padding: var(--m-sp-md);
122
122
  }
123
123
  .p-lg {
124
- padding: var(--m-space-lg);
124
+ padding: var(--m-sp-lg);
125
125
  }
126
126
  .p-xl {
127
- padding: var(--m-space-xl);
127
+ padding: var(--m-sp-xl);
128
128
  }
129
129
 
130
130
  /* Responsive */
@@ -98,6 +98,6 @@ function MockTitleBar() {
98
98
  }
99
99
 
100
100
  function Overrider() {
101
- useThemedTitleBar('--m-color-accent-light');
101
+ useThemedTitleBar('--m-accent-light');
102
102
  return null;
103
103
  }
@@ -41,7 +41,7 @@ export const Default: Story = {
41
41
  flexDirection: 'column',
42
42
  alignItems: 'center',
43
43
  justifyContent: 'center',
44
- padding: 'var(--m-space-lg)',
44
+ padding: 'var(--m-sp-lg)',
45
45
  }}
46
46
  >
47
47
  Focus the inputs below to see how the virtual keyboard behavior
@@ -22,7 +22,7 @@ export const Default: Story = {
22
22
  style={{
23
23
  display: 'grid',
24
24
  gridTemplateColumns: 'repeat(4, 1fr)',
25
- gap: 'var(--m-space-xl)',
25
+ gap: 'var(--m-sp-xl)',
26
26
  }}
27
27
  >
28
28
  <Box surface border p elevated="sm">
@@ -1,7 +1,7 @@
1
1
  .grid {
2
2
  display: grid;
3
3
  grid-template-columns: repeat(2, 1fr);
4
- gap: var(--m-space-lg);
4
+ gap: var(--m-sp-lg);
5
5
  width: 100%;
6
6
  min-width: 0;
7
7
  flex: 1 0 auto;