@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
package/dist/css/util.css CHANGED
@@ -61,19 +61,19 @@
61
61
  gap: 0;
62
62
  }
63
63
  .gap-xs {
64
- gap: var(--m-spacing-xs);
64
+ gap: var(--m-space-xs);
65
65
  }
66
66
  .gap-sm {
67
- gap: var(--m-spacing-sm);
67
+ gap: var(--m-space-sm);
68
68
  }
69
69
  .gap-md {
70
- gap: var(--m-spacing-md);
70
+ gap: var(--m-space-md);
71
71
  }
72
72
  .gap-lg {
73
- gap: var(--m-spacing-lg);
73
+ gap: var(--m-space-lg);
74
74
  }
75
75
  .gap-xl {
76
- gap: var(--m-spacing-xl);
76
+ gap: var(--m-space-xl);
77
77
  }
78
78
 
79
79
  .items-start {
@@ -112,17 +112,17 @@
112
112
  padding: 0;
113
113
  }
114
114
  .p-xs {
115
- padding: var(--m-spacing-xs);
115
+ padding: var(--m-space-xs);
116
116
  }
117
117
  .p-sm {
118
- padding: var(--m-spacing-sm);
118
+ padding: var(--m-space-sm);
119
119
  }
120
120
  .p-md {
121
- padding: var(--m-spacing-md);
121
+ padding: var(--m-space-md);
122
122
  }
123
123
  .p-lg {
124
- padding: var(--m-spacing-lg);
124
+ padding: var(--m-space-lg);
125
125
  }
126
126
  .p-xl {
127
- padding: var(--m-spacing-xl);
127
+ padding: var(--m-space-xl);
128
128
  }
@@ -22,7 +22,7 @@ export const Default = {
22
22
  flexDirection: 'column',
23
23
  alignItems: 'center',
24
24
  justifyContent: 'center',
25
- padding: 'var(--m-spacing-lg)',
25
+ padding: 'var(--m-space-lg)',
26
26
  }, children: "Focus the inputs below to see how the virtual keyboard behavior works." }), _jsx(Input, { style: { width: '100%' } }), _jsx(TextArea, { style: { width: '100%' } })] }), _jsx(PageNowPlaying, { keepAboveKeyboard: true, children: _jsx(Input, { placeholder: "now playing" }) })] }) }));
27
27
  },
28
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"keyboard.stories.js","sourceRoot":"","sources":["../src/keyboard.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EACN,KAAK,EACL,WAAW,EACX,cAAc,EACd,QAAQ,EACR,QAAQ,GACR,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,MAAM,IAAI,GAAG;IACZ,KAAK,EAAE,uBAAuB;IAC9B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACX,QAAQ,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE;QAC7B,MAAM,EAAE,YAAY;KACpB;CACc,CAAC;AAEjB,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC7B,MAAM,CAAC,IAAI;QACV,0BAA0B,CAAC,SAAS,CAAC,CAAC;QACtC,OAAO,CACN,KAAC,QAAQ,IAAC,EAAE,EAAC,MAAM,YAClB,MAAC,WAAW,eACX,eACC,KAAK,EAAE;4BACN,MAAM,EAAE,OAAO;4BACf,OAAO,EAAE,MAAM;4BACf,aAAa,EAAE,QAAQ;yBACvB,aAED,cACC,SAAS,EAAC,WAAW,EACrB,KAAK,EAAE;oCACN,OAAO,EAAE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AAE,QAAQ;oCACpB,cAAc,EAAE,QAAQ;oCACxB,OAAO,EAAE,mBAAmB;iCAC5B,uFAII,EACN,KAAC,KAAK,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAI,EACnC,KAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAI,IACjC,EACN,KAAC,cAAc,IAAC,iBAAiB,kBAChC,KAAC,KAAK,IAAC,WAAW,EAAC,aAAa,GAAG,GACnB,IACJ,GACJ,CACX,CAAC;IACH,CAAC;CACD,CAAC"}
@@ -15,7 +15,7 @@ export const Default = {
15
15
  return (_jsxs("div", { style: {
16
16
  display: 'grid',
17
17
  gridTemplateColumns: 'repeat(4, 1fr)',
18
- gap: 'var(--m-spacing-xl)',
18
+ gap: 'var(--m-space-xl)',
19
19
  }, children: [_jsx(Box, { surface: true, border: true, p: true, elevated: "sm", children: "Small Shadow" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "md", children: "Medium Shadow" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "lg", children: "Large Shadow" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "xl", children: "Extra Large Shadow" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "-sm", children: "Small Inset Shadow" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "-md", children: "Medium Inset Shadow" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "-lg", children: "Large Inset Shadow" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "-xl", children: "Extra Large Inset Shadow" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "sm-up", children: "Small Shadow Up" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "md-up", children: "Medium Shadow Up" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "lg-up", children: "Large Shadow Up" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "xl-up", children: "Extra Large Shadow Up" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "-sm-up", children: "Small Inset Shadow Up" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "-md-up", children: "Medium Inset Shadow Up" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "-lg-up", children: "Large Inset Shadow Up" }), _jsx(Box, { surface: true, border: true, p: true, elevated: "-xl-up", children: "Extra Large Inset Shadow Up" })] }));
20
20
  },
21
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"shadows.stories.js","sourceRoot":"","sources":["../src/shadows.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,MAAM,IAAI,GAAG;IACZ,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE;QACL,OAAO,EAAE,GAAG;KACZ;IACD,UAAU,EAAE;QACX,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC5B;CACmC,CAAC;AAEtC,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC7B,MAAM,CAAC,IAAI;QACV,OAAO,CACN,eACC,KAAK,EAAE;gBACN,OAAO,EAAE,MAAM;gBACf,mBAAmB,EAAE,gBAAgB;gBACrC,GAAG,EAAE,qBAAqB;aAC1B,aAED,KAAC,GAAG,IAAC,OAAO,QAAC,MAAM,QAAC,CAAC,QAAC,QAAQ,EAAC,IAAI,6BAE7B,EACN,KAAC,GAAG,IAAC,OAAO,QAAC,MAAM,QAAC,CAAC,QAAC,QAAQ,EAAC,IAAI,8BAE7B,EACN,KAAC,GAAG,IAAC,OAAO,QAAC,MAAM,QAAC,CAAC,QAAC,QAAQ,EAAC,IAAI,6BAE7B,EACN,KAAC,GAAG,IAAC,OAAO,QAAC,MAAM,QAAC,CAAC,QAAC,QAAQ,EAAC,IAAI,mCAE7B,EACN,KAAC,GAAG,IAAC,OAAO,QAAC,MAAM,QAAC,CAAC,QAAC,QAAQ,EAAC,KAAK,mCAE9B,EACN,KAAC,GAAG,IAAC,OAAO,QAAC,MAAM,QAAC,CA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AAC,QAAC,QAAQ,EAAC,OAAO,sCAEhC,EACN,KAAC,GAAG,IAAC,OAAO,QAAC,MAAM,QAAC,CAAC,QAAC,QAAQ,EAAC,QAAQ,sCAEjC,EACN,KAAC,GAAG,IAAC,OAAO,QAAC,MAAM,QAAC,CAAC,QAAC,QAAQ,EAAC,QAAQ,uCAEjC,EACN,KAAC,GAAG,IAAC,OAAO,QAAC,MAAM,QAAC,CAAC,QAAC,QAAQ,EAAC,QAAQ,sCAEjC,EACN,KAAC,GAAG,IAAC,OAAO,QAAC,MAAM,QAAC,CAAC,QAAC,QAAQ,EAAC,QAAQ,4CAEjC,IACD,CACN,CAAC;IACH,CAAC;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  .grid {
2
2
  display: grid;
3
3
  grid-template-columns: repeat(2, 1fr);
4
- gap: var(--m-spacing-lg);
4
+ gap: var(--m-space-lg);
5
5
  width: 100%;
6
6
  min-width: 0;
7
7
  flex: 1 0 auto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a-type/ui",
3
- "version": "6.0.13",
3
+ "version": "6.0.14",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "url": "https://github.com/a-type/ui"
@@ -38,8 +38,8 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@a-type/utils": "^1.1.9",
41
- "@arbor-css/core": "^0.0.127",
42
- "@arbor-css/postcss": "^0.0.127",
41
+ "@arbor-css/core": "^0.0.131",
42
+ "@arbor-css/postcss": "^0.0.131",
43
43
  "@base-ui/react": "^1.4.1",
44
44
  "@use-gesture/react": "^10.3.1",
45
45
  "browser-image-resizer": "^2.4.1",
@@ -75,19 +75,108 @@ export function presetAtype<
75
75
  roundToPixel: true,
76
76
  ...config?.typography,
77
77
  },
78
- spacing: {
78
+ space: {
79
79
  baseSize: '8px',
80
80
  roundToPixel: true,
81
- ...config?.spacing,
81
+ ...config?.space,
82
82
  },
83
83
  shape: {
84
- roundness: 1,
84
+ roundness: 1.5,
85
85
  ...config?.shape,
86
86
  },
87
87
  shadow: {
88
88
  defaultColor: 'rgba(0, 0, 0, 0.05)',
89
89
  ...config?.shadow,
90
90
  },
91
+ keyframes: {
92
+ fadeInUp: (css, $) => css`
93
+ from {
94
+ opacity: 0;
95
+ transform: translateY(${$.mode.space.sm});
96
+ }
97
+ to {
98
+ opacity: 1;
99
+ transform: translateY(0);
100
+ }
101
+ `,
102
+ fadeInLeft: (css, $) => css`
103
+ from {
104
+ opacity: 0;
105
+ transform: translateX(-${$.mode.space.sm});
106
+ }
107
+ to {
108
+ opacity: 1;
109
+ transform: translateX(0);
110
+ }
111
+ `,
112
+ fadeInRight: (css, $) => css`
113
+ from {
114
+ opacity: 0;
115
+ transform: translateX(${$.mode.space.sm});
116
+ }
117
+ to {
118
+ opacity: 1;
119
+ transform: translateX(0);
120
+ }
121
+ `,
122
+ fadeOutUp: (css, $) => css`
123
+ from {
124
+ opacity: 1;
125
+ transform: translateY(0);
126
+ }
127
+ to {
128
+ opacity: 0;
129
+ transform: translateY(-${$.mode.space.sm});
130
+ }
131
+ `,
132
+ fadeOutLeft: (css, $) => css`
133
+ from {
134
+ opacity: 1;
135
+ transform: translateX(0);
136
+ }
137
+ to {
138
+ opacity: 0;
139
+ transform: translateX(-${$.mode.space.sm});
140
+ }
141
+ `,
142
+ fadeOutRight: (css, $) => css`
143
+ from {
144
+ opacity: 1;
145
+ transform: translateX(0);
146
+ }
147
+ to {
148
+ opacity: 0;
149
+ transform: translateX(${$.mode.space.sm});
150
+ }
151
+ `,
152
+ fadeOutDown: (css, $) => css`
153
+ from {
154
+ opacity: 1;
155
+ transform: translateY(0);
156
+ }
157
+ to {
158
+ opacity: 0;
159
+ transform: translateY(${$.mode.space.sm});
160
+ }
161
+ `,
162
+ fadeOut: (css) => css`
163
+ from {
164
+ opacity: 1;
165
+ }
166
+ to {
167
+ opacity: 0;
168
+ }
169
+ `,
170
+ fadeIn: (css) => css`
171
+ from {
172
+ opacity: 0;
173
+ }
174
+ to {
175
+ opacity: 1;
176
+ }
177
+ `,
178
+ ...config?.keyframes,
179
+ },
91
180
  });
92
181
 
93
182
  const preset = definePreset({
@@ -119,9 +208,9 @@ export function presetAtype<
119
208
  },
120
209
  },
121
210
  control: {
122
- roundness: config?.roundControls ? 1.5 : undefined,
211
+ roundness: config?.roundControls ? 2 : undefined,
123
212
  padding: {
124
- block: $.mode.spacing.sm,
213
+ block: $.mode.space.sm,
125
214
  },
126
215
  },
127
216
  surface: {
@@ -310,7 +399,7 @@ export function presetAtype<
310
399
  // density and size
311
400
  preset.bundleMode('dense', {
312
401
  global: {
313
- spacing: {
402
+ space: {
314
403
  density: 1.25,
315
404
  },
316
405
  typography: {
@@ -320,7 +409,7 @@ export function presetAtype<
320
409
  });
321
410
  preset.bundleMode('denser', {
322
411
  global: {
323
- spacing: {
412
+ space: {
324
413
  density: 1.5,
325
414
  },
326
415
  typography: {
@@ -331,7 +420,7 @@ export function presetAtype<
331
420
  });
332
421
  preset.bundleMode('normal', {
333
422
  global: {
334
- spacing: {
423
+ space: {
335
424
  density: 1,
336
425
  },
337
426
  typography: {
@@ -342,7 +431,7 @@ export function presetAtype<
342
431
  });
343
432
  preset.bundleMode('loose', {
344
433
  global: {
345
- spacing: {
434
+ space: {
346
435
  density: 0.75,
347
436
  },
348
437
  typography: {
@@ -364,11 +453,20 @@ export function presetAtype<
364
453
  size: 2,
365
454
  fontSizeScaleBase: 2,
366
455
  },
367
- spacing: {
456
+ space: {
368
457
  density: 0.5,
369
458
  },
370
459
  },
371
460
  });
461
+ preset.bundleMode('bold', {
462
+ global: {
463
+ typography: {
464
+ minWeight: 300,
465
+ maxWeight: 800,
466
+ baseWeight: 500,
467
+ },
468
+ },
469
+ });
372
470
 
373
471
  return preset;
374
472
  }
@@ -31,10 +31,10 @@
31
31
  @apply --mx-fg(var(--m-color-neutral));
32
32
  @apply --mx-bg(var(--m-color-neutral-ink));
33
33
  @apply --mx-bg-faded(50%);
34
- font-size: var(--m-text-ambient-size);
35
- line-height: var(--m-text-ambient-lineHeight);
36
- font-weight: var(--m-text-ambient-weight);
37
- padding: var(--m-spacing-xs);
34
+ font-size: var(--m-prose-ambient-size);
35
+ line-height: var(--m-prose-ambient-lineHeight);
36
+ font-weight: var(--m-prose-ambient-weight);
37
+ padding: var(--m-space-xs);
38
38
  border-radius: var(--m-radius-sm);
39
39
  }
40
40
 
@@ -2,5 +2,5 @@
2
2
  font-weight: normal;
3
3
  }
4
4
  .collapse {
5
- padding: var(--m-spacing-sm);
5
+ padding: var(--m-space-sm);
6
6
  }
@@ -28,20 +28,20 @@
28
28
  gap: 0;
29
29
  }
30
30
  &[data-gap='xs'] {
31
- gap: var(--m-spacing-xs);
31
+ gap: var(--m-space-xs);
32
32
  }
33
33
  &[data-gap='sm'] {
34
- gap: var(--m-spacing-sm);
34
+ gap: var(--m-space-sm);
35
35
  }
36
36
  &[data-gap='md'],
37
37
  &[data-gap='true'] {
38
- gap: var(--m-spacing-md);
38
+ gap: var(--m-space-md);
39
39
  }
40
40
  &[data-gap='lg'] {
41
- gap: var(--m-spacing-lg);
41
+ gap: var(--m-space-lg);
42
42
  }
43
43
  &[data-gap='xl'] {
44
- gap: var(--m-spacing-xl);
44
+ gap: var(--m-space-xl);
45
45
  }
46
46
 
47
47
  &[data-items='start'] {
@@ -79,20 +79,20 @@
79
79
  padding: 0;
80
80
  }
81
81
  &[data-p='xs'] {
82
- padding: var(--m-spacing-xs);
82
+ padding: var(--m-space-xs);
83
83
  }
84
84
  &[data-p='sm'] {
85
- padding: var(--m-spacing-sm);
85
+ padding: var(--m-space-sm);
86
86
  }
87
87
  &[data-p='md'] {
88
- padding: var(--m-spacing-md);
88
+ padding: var(--m-space-md);
89
89
  }
90
90
  &[data-p='lg'],
91
91
  &[data-p='true'] {
92
- padding: var(--m-spacing-lg);
92
+ padding: var(--m-space-lg);
93
93
  }
94
94
  &[data-p='xl'] {
95
- padding: var(--m-spacing-xl);
95
+ padding: var(--m-space-xl);
96
96
  }
97
97
 
98
98
  &[data-rounded='none'] {
@@ -109,7 +109,7 @@ export const Surfaces: Story = {
109
109
  style={{
110
110
  display: 'grid',
111
111
  gridTemplateColumns: 'repeat(2, 1fr)',
112
- gap: 'var(--m-spacing-lg)',
112
+ gap: 'var(--m-space-lg)',
113
113
  }}
114
114
  {...args}
115
115
  >
@@ -7,7 +7,7 @@
7
7
  display: flex;
8
8
  flex-direction: row;
9
9
  align-items: center;
10
- gap: var(--m-spacing-sm);
10
+ gap: var(--m-space-sm);
11
11
  align-self: center;
12
12
 
13
13
  position: relative;
@@ -16,11 +16,6 @@
16
16
 
17
17
  @apply --mx-action-secondary;
18
18
 
19
- font-size: var(--m-text-secondary-size);
20
- line-height: 1;
21
- font-family: inherit;
22
- font-weight: 500;
23
-
24
19
  @apply --mx-shadow(var(--m-shadow-sm));
25
20
  @apply --mx-ring;
26
21
 
@@ -38,13 +33,11 @@
38
33
  --mx-ring-value: 0 0 0 0 transparent;
39
34
  --mx-shadow-value: 0 0 0 0 transparent;
40
35
 
41
- font-weight: 600;
42
-
43
36
  &:hover,
44
37
  &:focus {
45
38
  --mx-bg-applied: inherit;
46
39
  --mx-bg-ref: --fn-color-heavier(
47
- color-mix(var(--mx-bg-applied), var(--m-color-main-light) 10%),
40
+ color-mix(var(--mx-bg-applied), var(--m-color-main-light) 20%),
48
41
  1
49
42
  );
50
43
  }
@@ -60,10 +53,10 @@
60
53
  [data-disable-icon-mode='true']
61
54
  ):not([data-size='wrapper']),
62
55
  &[data-force-icon-mode='true']:not([data-size='wrapper']) {
63
- padding: var(--m-spacing-md);
56
+ padding: var(--m-space-md);
64
57
 
65
58
  &[data-size='small'] {
66
- padding: var(--m-spacing-sm);
59
+ padding: var(--m-space-sm);
67
60
  }
68
61
 
69
62
  &:not([aria-pressed='true']) {
@@ -121,6 +114,6 @@
121
114
  width: --fn-literal(15px);
122
115
  }
123
116
  &[data-open='false'] {
124
- margin-left: calc(-1 * var(--m-spacing-sm));
117
+ margin-left: calc(-1 * var(--m-space-sm));
125
118
  }
126
119
  }
@@ -91,6 +91,7 @@ export function ButtonRoot({
91
91
  'data-emphasis': emphasis,
92
92
  className: clsx(
93
93
  emphasis === 'unstyled' ? cls.unstyled : cls.root,
94
+ emphasis === 'ghost' && '@mode-bold',
94
95
  size === 'small' ? '@mode-dense' : '',
95
96
  color ? `@mode-${color}` : '',
96
97
  className,
@@ -1,3 +1,2 @@
1
1
  export * from './Button.js';
2
2
  export * from './ConfirmedButton.js';
3
- export * from './classes.js';
@@ -20,10 +20,10 @@
20
20
 
21
21
  .shutterButton {
22
22
  position: absolute;
23
- bottom: var(--m-spacing-md);
23
+ bottom: var(--m-space-md);
24
24
  left: 50%;
25
- width: calc(48px / var(--m-global-spacing-density));
26
- height: calc(48px / var(--m-global-spacing-density));
25
+ width: calc(48px / var(--m-global-space-density));
26
+ height: calc(48px / var(--m-global-space-density));
27
27
  cursor: pointer;
28
28
  transform: translateX(-50%);
29
29
  opacity: 80%;
@@ -54,12 +54,12 @@
54
54
 
55
55
  .swapButton {
56
56
  position: absolute;
57
- bottom: var(--m-spacing-xs);
58
- left: var(--m-spacing-xs);
57
+ bottom: var(--m-space-xs);
58
+ left: var(--m-space-xs);
59
59
  }
60
60
 
61
61
  .fullscreenButton {
62
62
  position: absolute;
63
- top: var(--m-spacing-xs);
64
- right: var(--m-spacing-xs);
63
+ top: var(--m-space-xs);
64
+ right: var(--m-space-xs);
65
65
  }
@@ -11,9 +11,9 @@
11
11
  border-width: var(--m-lineWidth-sm);
12
12
  border-radius: var(--m-surface-radius);
13
13
 
14
- font-size: var(--m-text-secondary-size);
15
- line-height: var(--m-text-secondary-lineHeight);
16
- font-weight: var(--m-text-secondary-weight);
14
+ font-size: var(--m-prose-secondary-size);
15
+ line-height: var(--m-prose-secondary-lineHeight);
16
+ font-weight: var(--m-prose-secondary-weight);
17
17
 
18
18
  padding: 0;
19
19
 
@@ -31,16 +31,16 @@
31
31
  flex-direction: column;
32
32
  flex-grow: 1;
33
33
  align-items: start;
34
- gap: var(--m-spacing-xs);
34
+ gap: var(--m-space-xs);
35
35
 
36
36
  text-align: start;
37
- font-size: var(--m-text-ambient-size);
38
- line-height: var(--m-text-ambient-lineHeight);
39
- font-weight: var(--m-text-ambient-weight);
37
+ font-size: var(--m-prose-ambient-size);
38
+ line-height: var(--m-prose-ambient-lineHeight);
39
+ font-weight: var(--m-prose-ambient-weight);
40
40
 
41
- padding: var(--m-spacing-md);
42
- padding-bottom: var(--m-spacing-xs);
43
- gap: var(--m-spacing-sm);
41
+ padding: var(--m-space-md);
42
+ padding-bottom: var(--m-space-xs);
43
+ gap: var(--m-space-sm);
44
44
  &[data-compact='true'] {
45
45
  padding-bottom: 0;
46
46
  }
@@ -81,14 +81,14 @@
81
81
 
82
82
  .title {
83
83
  z-index: 1;
84
- padding: var(--m-spacing-xs) var(--m-spacing-md);
84
+ padding: var(--m-space-xs) var(--m-space-md);
85
85
 
86
- font-size: var(--m-text-primary-size);
87
- line-height: var(--m-text-primary-lineHeight);
88
- font-weight: var(--m-text-primary-weight);
86
+ font-size: var(--m-prose-primary-size);
87
+ line-height: var(--m-prose-primary-lineHeight);
88
+ font-weight: var(--m-prose-primary-weight);
89
89
 
90
90
  [data-compact] & {
91
- font-size: var(--m-text-ambient-size);
91
+ font-size: var(--m-prose-ambient-size);
92
92
  }
93
93
 
94
94
  text-overflow: ellipsis;
@@ -101,15 +101,15 @@
101
101
  .content {
102
102
  z-index: 1;
103
103
 
104
- padding: var(--m-spacing-sm) var(--m-spacing-md);
104
+ padding: var(--m-space-sm) var(--m-space-md);
105
105
 
106
- font-size: var(--m-text-ambient-size);
106
+ font-size: var(--m-prose-ambient-size);
107
107
  line-height: 1;
108
- font-weight: var(--m-text-ambient-weight);
108
+ font-weight: var(--m-prose-ambient-weight);
109
109
 
110
110
  [data-compact] & {
111
- padding: 0 var(--m-spacing-xs);
112
- margin: 0 var(--m-spacing-sm);
111
+ padding: 0 var(--m-space-xs);
112
+ margin: 0 var(--m-space-sm);
113
113
  }
114
114
 
115
115
  &[data-unstyled] {
@@ -139,13 +139,13 @@
139
139
  display: flex;
140
140
  flex-direction: row;
141
141
  flex-shrink: 0;
142
- padding: var(--m-spacing-md);
142
+ padding: var(--m-space-md);
143
143
  }
144
144
 
145
145
  .actions {
146
146
  display: flex;
147
147
  flex-direction: row;
148
- gap: var(--m-spacing-sm);
148
+ gap: var(--m-space-sm);
149
149
  align-items: center;
150
150
 
151
151
  margin: auto auto auto --fn-literal(0px);
@@ -166,7 +166,7 @@
166
166
  flex-direction: row;
167
167
  align-items: center;
168
168
 
169
- gap: var(--m-spacing-xs);
169
+ gap: var(--m-space-xs);
170
170
 
171
171
  @apply --mx-bg(--fn-color-faded(var(--m-surface-ambient-bg), 50%));
172
172
  @apply --mx-borderColor(var(--m-surface-ambient-borderColor));
@@ -36,7 +36,7 @@ export const Default: Story = {
36
36
  display: 'flex',
37
37
  flexDirection: 'row',
38
38
  alignItems: 'stretch',
39
- gap: 'var(--m-spacing-md)',
39
+ gap: 'var(--m-space-md)',
40
40
  }}
41
41
  >
42
42
  <CardRoot {...args} style={{ minHeight: '20vh' }}>
@@ -274,7 +274,7 @@ export const CardsInBox: Story = {
274
274
  width: '100%',
275
275
  display: 'flex',
276
276
  flexDirection: 'row',
277
- gap: 'var(--m-spacing-lg)',
277
+ gap: 'var(--m-space-lg)',
278
278
  }}
279
279
  >
280
280
  <div style={{ flex: 1 }}>
@@ -1,7 +1,7 @@
1
1
  .root {
2
2
  display: inline-flex;
3
3
  align-items: center;
4
- gap: var(--m-spacing-xs);
4
+ gap: var(--m-space-xs);
5
5
  white-space: nowrap;
6
6
 
7
7
  @apply --mx-bg(var(--m-color-main-wash));
@@ -11,10 +11,10 @@
11
11
  border-width: var(--m-lineWidth-sm);
12
12
  border-radius: var(--m-action-radius);
13
13
 
14
- font-size: var(--m-text-ambient-size);
14
+ font-size: var(--m-prose-ambient-size);
15
15
  line-height: normal;
16
- font-weight: var(--m-text-ambient-weight);
17
- font-family: var(--m-text-ambient-font);
16
+ font-weight: var(--m-prose-ambient-weight);
17
+ font-family: var(--m-prose-ambient-font);
18
18
 
19
19
  &:not(:is(button)) {
20
20
  padding: var(--m-action-padding);