@a-type/ui 6.0.55 → 6.0.57

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 (72) hide show
  1. package/dist/colors.module.css +2 -1
  2. package/dist/components/actions/ActionBar.module.css +2 -1
  3. package/dist/components/actions/ActionButton.module.css +2 -1
  4. package/dist/components/avatar/Avatar.module.css +2 -1
  5. package/dist/components/box/Box.module.css +6 -1
  6. package/dist/components/box/Box.stories.js +2 -1
  7. package/dist/components/box/Box.stories.js.map +1 -1
  8. package/dist/components/button/Button.module.css +2 -1
  9. package/dist/components/camera/Camera.module.css +2 -1
  10. package/dist/components/card/Card.module.css +2 -1
  11. package/dist/components/checkbox/Checkbox.module.css +2 -1
  12. package/dist/components/chip/Chip.module.css +2 -1
  13. package/dist/components/collapsible/Collapsible.module.css +2 -1
  14. package/dist/components/combobox/Combobox.module.css +2 -1
  15. package/dist/components/datePicker/Calendar.module.css +2 -1
  16. package/dist/components/datePicker/datePicker.module.css +2 -1
  17. package/dist/components/datePicker/dateRangePicker.module.css +2 -1
  18. package/dist/components/dialog/Dialog.module.css +2 -1
  19. package/dist/components/divider/Divider.module.css +2 -1
  20. package/dist/components/dropdownMenu/DropdownMenu.module.css +2 -1
  21. package/dist/components/editableText/EditableText.module.css +2 -1
  22. package/dist/components/emojiPicker/EmojiPicker.module.css +2 -1
  23. package/dist/components/forms/EmojiField.module.css +2 -1
  24. package/dist/components/forms/Field.module.css +2 -1
  25. package/dist/components/forms/Form.module.css +2 -1
  26. package/dist/components/forms/NumberStepperField.module.css +2 -1
  27. package/dist/components/forms/TextField.module.css +2 -1
  28. package/dist/components/horizontalList/HorizontalList.module.css +2 -1
  29. package/dist/components/icon/Icon.module.css +2 -1
  30. package/dist/components/imageUploader/ImageUploader.module.css +2 -1
  31. package/dist/components/img/Img.module.css +2 -1
  32. package/dist/components/input/Input.module.css +2 -1
  33. package/dist/components/layouts/PageContent.module.css +2 -1
  34. package/dist/components/layouts/PageFixedArea.module.css +2 -1
  35. package/dist/components/layouts/PageNav.module.css +2 -1
  36. package/dist/components/layouts/PageNowPlaying.module.css +2 -1
  37. package/dist/components/layouts/PageRoot.module.css +2 -1
  38. package/dist/components/layouts/PageSection.module.css +2 -1
  39. package/dist/components/lightbox/Lightbox.module.css +2 -1
  40. package/dist/components/lists/lists.module.css +2 -1
  41. package/dist/components/marquee/marquee.module.css +2 -1
  42. package/dist/components/navBar/NavBar.module.css +2 -1
  43. package/dist/components/note/Note.module.css +2 -1
  44. package/dist/components/numberStepper/NumberStepper.module.css +2 -1
  45. package/dist/components/particles/ParticleLayer.module.css +2 -1
  46. package/dist/components/peek/Peek.module.css +2 -1
  47. package/dist/components/popover/Popover.module.css +2 -1
  48. package/dist/components/primitives/menus.module.css +2 -1
  49. package/dist/components/progress/Progress.module.css +2 -1
  50. package/dist/components/pwaInstall/PwaInstall.module.css +2 -1
  51. package/dist/components/quickAction/QuickAction.module.css +2 -1
  52. package/dist/components/richEditor/richEditor.module.css +2 -1
  53. package/dist/components/scrollArea/ScrollArea.module.css +2 -1
  54. package/dist/components/select/Select.module.css +2 -1
  55. package/dist/components/skeletons/skeletons.module.css +2 -1
  56. package/dist/components/slider/Slider.module.css +2 -1
  57. package/dist/components/spinner/Spinner.module.css +2 -1
  58. package/dist/components/splashScreen/SplashScreen.module.css +2 -1
  59. package/dist/components/switch/Switch.module.css +2 -1
  60. package/dist/components/tabs/tabs.module.css +2 -1
  61. package/dist/components/textArea/TextArea.module.css +2 -1
  62. package/dist/components/toasts/toasts.module.css +2 -1
  63. package/dist/components/toggleGroup/toggleGroup.module.css +2 -1
  64. package/dist/components/tooltip/Tooltip.module.css +2 -1
  65. package/dist/components/typography/typography.module.css +4 -2
  66. package/dist/components/viewport/Viewport.module.css +2 -1
  67. package/dist/components/viewport/ViewportContent.module.css +2 -1
  68. package/dist/theme.stories.module.css +2 -1
  69. package/package.json +3 -2
  70. package/src/components/box/Box.module.css +4 -0
  71. package/src/components/box/Box.stories.tsx +13 -0
  72. package/src/components/typography/typography.module.css +2 -1
@@ -1,4 +1,4 @@
1
- .bgWash {
1
+ @layer components {.bgWash {
2
2
  @apply --mx-bg(var(--m-color-main-wash));
3
3
  }
4
4
  .bgLight {
@@ -57,3 +57,4 @@
57
57
  .bgBetweenMidHeavy {
58
58
  @apply --mx-bg(--fn-color-between(var(--m-color-main), var(--m-color-main-heavy)));
59
59
  }
60
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  position: relative;
3
3
  height: max-content;
4
4
  width: 100%;
@@ -32,3 +32,4 @@
32
32
  flex-wrap: wrap;
33
33
  }
34
34
  }
35
+ }
@@ -1,6 +1,7 @@
1
- .button {
1
+ @layer components {.button {
2
2
  font-weight: normal;
3
3
  }
4
4
  .collapse {
5
5
  padding: var(--m-space-sm);
6
6
  }
7
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  position: relative;
3
3
  aspect-ratio: 1/1;
4
4
  width: --fn-literal(var(--avatar-size, 24px));
@@ -33,3 +33,4 @@
33
33
  .fallback {
34
34
  font-size: --fn-literal(calc(0.5px * var(--avatar-size, 24px)));
35
35
  }
36
+ }
@@ -1,4 +1,4 @@
1
- @layer box {
1
+ @layer components {@layer box {
2
2
  .root {
3
3
  display: flex;
4
4
  position: relative;
@@ -195,6 +195,10 @@
195
195
  @apply --mx-bg-faded(80%);
196
196
  @apply --mx-borderColor-faded(80%);
197
197
  }
198
+ /* reduce specificity so surface styles override */
199
+ &:where([data-dim='true']) {
200
+ @apply --mx-fg(var(--m-color-neutral-ink));
201
+ }
198
202
  &[data-dim='true'] {
199
203
  @apply --mx-fg-lighter(2.5);
200
204
  }
@@ -289,3 +293,4 @@
289
293
  inherits: false;
290
294
  initial-value:;
291
295
  }
296
+ }
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button } from '../button/Button.js';
3
3
  import { Checkbox } from '../checkbox/Checkbox.js';
4
+ import { Icon } from '../icon/Icon.js';
4
5
  import { Progress } from '../progress/Progress.js';
5
6
  import { Slider } from '../slider/Slider.js';
6
7
  import { Switch } from '../switch/Switch.js';
@@ -85,7 +86,7 @@ export const Surfaces = {
85
86
  };
86
87
  export const DimComparison = {
87
88
  render(args) {
88
- return (_jsxs(Box, { gap: true, children: [_jsx(Box, { surface: "ambient", dim: true, children: "Dimmed box" }), _jsx(Box, { surface: "ambient", children: _jsx(Text, { dim: true, children: "Dimmed text" }) })] }));
89
+ return (_jsxs(Box, { gap: true, children: [_jsxs(Box, { dim: true, children: ["Dimmed non-surface", _jsx(Text, { children: "Text" }), _jsx(Icon, { name: "placeholder" })] }), _jsxs(Box, { surface: "ambient", dim: true, children: ["Dimmed box", _jsx(Text, { children: "Text" }), _jsx(Icon, { name: "placeholder" })] }), _jsxs(Box, { surface: "primary", dim: true, children: ["Dimmed box", _jsx(Text, { children: "Text" }), _jsx(Icon, { name: "placeholder" })] }), _jsx(Box, { surface: "ambient", children: _jsx(Text, { dim: true, children: "Dimmed text" }) })] }));
89
90
  },
90
91
  };
91
92
  //# sourceMappingURL=Box.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.stories.js","sourceRoot":"","sources":["../../../src/components/box/Box.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UA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oBAAK,IAAI,IAAE,OAAO,QAAC,SAAS,EAAC,eAAe,EAAC,CAAC,EAAC,IAAI,EAAC,GAAG,QAAC,GAAG,kBAC9D,KAAC,cAAc,IAAC,IAAI,EAAC,SAAS,GAAG,IAC5B,KACD,CACN,CAAC;IACH,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAU;IACnC,MAAM,CAAC,IAAI;QACV,OAAO,CACN,MAAC,GAAG,IAAC,GAAG,mBACP,MAAC,GAAG,IAAC,GAAG,yCAEP,KAAC,IAAI,uBAAY,EACjB,KAAC,IAAI,IAAC,IAAI,EAAC,aAAa,GAAG,IACtB,EACN,MAAC,GAAG,IAAC,OAAO,EAAC,SAAS,EAAC,GAAG,iCAEzB,KAAC,IAAI,uBAAY,EACjB,KAAC,IAAI,IAAC,IAAI,EAAC,aAAa,GAAG,IACtB,EACN,MAAC,GAAG,IAAC,OAAO,EAAC,SAAS,EAAC,GAAG,iCAEzB,KAAC,IAAI,uBAAY,EACjB,KAAC,IAAI,IAAC,IAAI,EAAC,aAAa,GAAG,IACtB,EACN,KAAC,GAAG,IAAC,OAAO,EAAC,SAAS,YACrB,KAAC,IAAI,IAAC,GAAG,kCAAmB,GACvB,IACD,CACN,CAAC;IACH,CAAC;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  user-select: none;
3
3
  appearance: none;
4
4
  cursor: pointer;
@@ -146,3 +146,4 @@
146
146
  display: none;
147
147
  }
148
148
  }
149
+ }
@@ -1,4 +1,4 @@
1
- .fullscreen {
1
+ @layer components {.fullscreen {
2
2
  position: fixed;
3
3
  inset: 0;
4
4
  z-index: 1000;
@@ -63,3 +63,4 @@
63
63
  top: var(--m-space-xs);
64
64
  right: var(--m-space-xs);
65
65
  }
66
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  position: relative;
3
3
  height: max-content;
4
4
  display: flex;
@@ -181,3 +181,4 @@
181
181
  border-width: var(--m-lineWidth-sm);
182
182
  border-radius: var(--m-action-radius);
183
183
  }
184
+ }
@@ -1,4 +1,4 @@
1
- @keyframes checkbox-fade {
1
+ @layer components {@keyframes checkbox-fade {
2
2
  from {
3
3
  background-color: var(--mx-bg-ref);
4
4
  opacity: 1;
@@ -72,3 +72,4 @@
72
72
  transform: translate(-50%, -50%);
73
73
  color: var(--m-color-main-ink);
74
74
  }
75
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  display: inline-flex;
3
3
  align-items: center;
4
4
  gap: var(--m-space-md);
@@ -30,3 +30,4 @@
30
30
  @apply --mx-fg(var(--m-color-neutral-ink));
31
31
  }
32
32
  }
33
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  overflow: clip;
3
3
  transition: all var(--m-duration) var(--m-easing);
4
4
 
@@ -34,3 +34,4 @@
34
34
  transform: rotate(180deg);
35
35
  }
36
36
  }
37
+ }
@@ -1,4 +1,4 @@
1
- .backdrop {
1
+ @layer components {.backdrop {
2
2
  position: fixed;
3
3
  inset: 0;
4
4
  }
@@ -168,3 +168,4 @@
168
168
  @apply --mx-fg(var(--m-color-neutral-heavy));
169
169
  padding: var(--m-space-md);
170
170
  }
171
+ }
@@ -1,4 +1,4 @@
1
- .monthRow {
1
+ @layer components {.monthRow {
2
2
  width: 100%;
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -165,3 +165,4 @@
165
165
  border-radius: var(--m-radius-sm);
166
166
  }
167
167
  }
168
+ }
@@ -1,7 +1,8 @@
1
- .root {
1
+ @layer components {.root {
2
2
  width: --fn-literal(calc(var(--day-size, 32px) * 7));
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  align-items: center;
6
6
  justify-content: center;
7
7
  }
8
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  }
@@ -36,3 +36,4 @@
36
36
  display: grid;
37
37
  }
38
38
  }
39
+ }
@@ -1,4 +1,4 @@
1
- .overlay {
1
+ @layer components {.overlay {
2
2
  position: fixed;
3
3
  inset: 0;
4
4
  @apply --mx-shadow;
@@ -186,3 +186,4 @@
186
186
  gap: var(--m-space-sm);
187
187
  border-radius: var(--m-surface-radius);
188
188
  }
189
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  position: relative;
3
3
  height: --fn-literal(1px);
4
4
  width: 100%;
@@ -8,3 +8,4 @@
8
8
  margin-block: var(--m-space-md);
9
9
  }
10
10
  }
11
+ }
@@ -1,3 +1,4 @@
1
- .content {
1
+ @layer components {.content {
2
2
  min-width: 220px;
3
3
  }
4
+ }
@@ -1,4 +1,4 @@
1
- .input {
1
+ @layer components {.input {
2
2
  & input {
3
3
  font-size: inherit;
4
4
  }
@@ -42,3 +42,4 @@
42
42
  font-size: 1rem;
43
43
  @apply --mx-stroke(var(--m-color-main-heavy));
44
44
  }
45
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  height: --fn-literal(368px);
3
3
  width: fit-content;
4
4
  display: flex;
@@ -82,3 +82,4 @@
82
82
  .skinToneSelector {
83
83
  margin-right: auto;
84
84
  }
85
+ }
@@ -1,4 +1,4 @@
1
- .triggerIcon {
1
+ @layer components {.triggerIcon {
2
2
  height: 20px;
3
3
  width: 20px;
4
4
  display: flex;
@@ -6,3 +6,4 @@
6
6
  justify-content: center;
7
7
  font-size: 20px;
8
8
  }
9
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  display: grid;
3
3
  grid-template-areas: 'label' 'control' 'description';
4
4
  justify-content: start;
@@ -60,3 +60,4 @@
60
60
  margin-top: var(--m-space-sm);
61
61
  margin-left: calc(var(--m-global-shape-roundness) * var(--m-space-md));
62
62
  }
63
+ }
@@ -1,6 +1,7 @@
1
- .form {
1
+ @layer components {.form {
2
2
  display: flex;
3
3
  align-items: start;
4
4
  flex-direction: column;
5
5
  gap: var(--m-space-lg);
6
6
  }
7
+ }
@@ -1,5 +1,6 @@
1
- .root {
1
+ @layer components {.root {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: var(--m-space-xs);
5
5
  }
6
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -9,3 +9,4 @@
9
9
  .input {
10
10
  width: 100%;
11
11
  }
12
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  width: 100%;
3
3
  max-height: 300px;
4
4
  display: flex;
@@ -48,3 +48,4 @@
48
48
  transform: rotate(180deg);
49
49
  }
50
50
  }
51
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  fill: none;
3
3
  flex-shrink: 0;
4
4
 
@@ -18,3 +18,4 @@
18
18
  width: var(--size);
19
19
  height: var(--size);
20
20
  }
21
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  position: relative;
3
3
  border-radius: var(--m-surface-radius);
4
4
  }
@@ -65,3 +65,4 @@
65
65
  @apply --mx-bg-heavier(2);
66
66
  }
67
67
  }
68
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  &[data-full='width'],
3
3
  &[data-full='true'] {
4
4
  width: 100%;
@@ -40,3 +40,4 @@
40
40
  object-position: center;
41
41
  }
42
42
  }
43
+ }
@@ -1,4 +1,4 @@
1
- .input {
1
+ @layer components {.input {
2
2
  display: flex;
3
3
  flex-grow: 1;
4
4
  user-select: auto;
@@ -98,3 +98,4 @@
98
98
  margin-right: calc(-1 * var(--m-control-padding-inline));
99
99
  }
100
100
  }
101
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: stretch;
@@ -23,3 +23,4 @@
23
23
 
24
24
  grid-area: content;
25
25
  }
26
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  position: sticky;
3
3
  top: 0;
4
4
  z-index: var(--z-nav);
@@ -9,3 +9,4 @@
9
9
  gap: var(--m-space-sm);
10
10
  @apply --mx-bg(inherit);
11
11
  }
12
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  grid-area: nav;
3
3
  position: sticky;
4
4
  bottom: 0;
@@ -29,3 +29,4 @@
29
29
  height: auto;
30
30
  }
31
31
  }
32
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -44,3 +44,4 @@
44
44
  }
45
45
  }
46
46
  }
47
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  align-items: stretch;
3
3
  justify-content: center;
4
4
  min-height: 100dvh;
@@ -27,3 +27,4 @@
27
27
  grid-template-columns: 1fr auto min(800px, 70vw) 1fr;
28
28
  }
29
29
  }
30
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  max-width: 80vw;
3
3
  width: 100%;
4
4
  padding: var(--m-space-md);
@@ -17,3 +17,4 @@
17
17
  align-items: start;
18
18
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
19
19
  }
20
+ }
@@ -1,4 +1,4 @@
1
- .trigger {
1
+ @layer components {.trigger {
2
2
  cursor: pointer;
3
3
 
4
4
  &:focus {
@@ -102,3 +102,4 @@
102
102
  min-height: 80px;
103
103
  min-width: 80px;
104
104
  }
105
+ }
@@ -1,4 +1,4 @@
1
- .ol,
1
+ @layer components {.ol,
2
2
  .ul {
3
3
  list-style-position: inside;
4
4
  margin: 0;
@@ -29,3 +29,4 @@
29
29
  .ul {
30
30
  list-style: disc;
31
31
  }
32
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  position: relative;
3
3
  height: 100%;
4
4
  width: 100%;
@@ -30,3 +30,4 @@
30
30
  object-fit: cover;
31
31
  }
32
32
  }
33
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  display: grid;
3
3
  grid-auto-columns: 1fr;
4
4
  grid-auto-flow: column;
@@ -141,3 +141,4 @@
141
141
  @apply --mx-shadow;
142
142
  --mx-shadow-value: var(--m-shadow-sm);
143
143
  }
144
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  @apply --mx-shadow;
3
3
 
4
4
  &:has(input:focus[data-focus-clicked]),
@@ -112,3 +112,4 @@
112
112
  width: 100%;
113
113
  padding: 0;
114
114
  }
115
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  width: min-content;
3
3
  display: flex;
4
4
  flex-shrink: 0;
@@ -30,3 +30,4 @@
30
30
  width: 80px;
31
31
  text-align: center;
32
32
  }
33
+ }
@@ -1,4 +1,4 @@
1
- .canvas {
1
+ @layer components {.canvas {
2
2
  pointer-events: none;
3
3
  position: fixed;
4
4
  inset: 0;
@@ -6,3 +6,4 @@
6
6
  width: 100%;
7
7
  height: 100%;
8
8
  }
9
+ }
@@ -1,4 +1,4 @@
1
- @keyframes peekClose {
1
+ @layer components {@keyframes peekClose {
2
2
  from {
3
3
  height: calc(var(--collapsible-height) + 80px);
4
4
  max-height: none;
@@ -94,3 +94,4 @@
94
94
  opacity: 1;
95
95
  transition: opacity var(--m-duration) var(--m-easing);
96
96
  }
97
+ }
@@ -1,4 +1,4 @@
1
- .close {
1
+ @layer components {.close {
2
2
  position: absolute;
3
3
  right: var(--m-space-sm);
4
4
  top: var(--m-space-sm);
@@ -22,3 +22,4 @@
22
22
  line-height: var(--m-prose-ambient-lineHeight);
23
23
  @apply --mx-fg(var(--m-color-neutral-heavy));
24
24
  }
25
+ }
@@ -1,4 +1,4 @@
1
- .popup {
1
+ @layer components {.popup {
2
2
  box-sizing: border-box;
3
3
 
4
4
  min-width: 120px;
@@ -260,3 +260,4 @@
260
260
  transform: rotate(180deg);
261
261
  }
262
262
  }
263
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  width: 100%;
3
3
 
4
4
  display: grid;
@@ -52,3 +52,4 @@
52
52
  line-height: var(--m-prose-ambient-lineHeight);
53
53
  font-weight: 500;
54
54
  }
55
+ }
@@ -1,4 +1,4 @@
1
- .dialogContent {
1
+ @layer components {.dialogContent {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: var(--m-space-xs);
@@ -21,3 +21,4 @@
21
21
  .appDescription {
22
22
  margin-bottom: var(--m-space-sm);
23
23
  }
24
+ }
@@ -1,4 +1,4 @@
1
- .trigger {
1
+ @layer components {.trigger {
2
2
  position: relative;
3
3
  justify-content: center;
4
4
  padding: var(--m-space-xs);
@@ -57,3 +57,4 @@
57
57
  opacity: 0;
58
58
  }
59
59
  }
60
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  @apply --mx-prose-secondary;
3
3
  width: 100%;
4
4
 
@@ -100,3 +100,4 @@
100
100
  border-width: 0;
101
101
  }
102
102
  }
103
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  box-sizing: border-box;
3
3
  min-height: 0;
4
4
  min-width: 0;
@@ -185,3 +185,4 @@
185
185
  .corner {
186
186
  @apply --mx-bg(transparent);
187
187
  }
188
+ }
@@ -1,4 +1,4 @@
1
- .trigger {
1
+ @layer components {.trigger {
2
2
  display: inline-flex;
3
3
  font-weight: normal;
4
4
  gap: var(--m-space-md);
@@ -44,3 +44,4 @@
44
44
  min-width: calc(var(--anchor-width) + 2rem);
45
45
  }
46
46
  }
47
+ }
@@ -1,4 +1,4 @@
1
- @keyframes skeleton {
1
+ @layer components {@keyframes skeleton {
2
2
  0% {
3
3
  background-position: 0% 50%;
4
4
  }
@@ -31,3 +31,4 @@
31
31
  transparent 100%
32
32
  );
33
33
  }
34
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  width: 100%;
3
3
  box-sizing: border-box;
4
4
  }
@@ -95,3 +95,4 @@
95
95
  opacity: 0.5;
96
96
  }
97
97
  }
98
+ }
@@ -1,4 +1,4 @@
1
- @keyframes spinner-rotate {
1
+ @layer components {@keyframes spinner-rotate {
2
2
  from {
3
3
  transform: rotate(0deg);
4
4
  }
@@ -52,3 +52,4 @@
52
52
  justify-content: center;
53
53
  gap: var(--m-space-md);
54
54
  }
55
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  position: relative;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -52,3 +52,4 @@
52
52
  transform: scale(0.6);
53
53
  }
54
54
  }
55
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  all: unset;
3
3
  position: relative;
4
4
  height: --fn-literal(20px);
@@ -61,3 +61,4 @@
61
61
  font-size: var(--m-prose-ambient-size);
62
62
  }
63
63
  }
64
+ }
@@ -1,4 +1,4 @@
1
- .styledList {
1
+ @layer components {.styledList {
2
2
  position: relative;
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -137,3 +137,4 @@
137
137
 
138
138
  @apply --mx-fg(--fn-color-faded(var(--m-color-neutral-heavy), 50%));
139
139
  }
140
+ }
@@ -1,4 +1,4 @@
1
- .input {
1
+ @layer components {.input {
2
2
  font-family: inherit;
3
3
  overflow: clip;
4
4
  @apply --mx-fg(inherit);
@@ -12,3 +12,4 @@
12
12
  .border {
13
13
  padding-block-end: var(--m-space-sm);
14
14
  }
15
+ }
@@ -1,4 +1,4 @@
1
- .toaster {
1
+ @layer components {.toaster {
2
2
  pointer-events: none;
3
3
  overflow: clip;
4
4
  }
@@ -199,3 +199,4 @@
199
199
  opacity: 0;
200
200
  }
201
201
  }
202
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  width: fit-content;
3
3
  display: inline-flex;
4
4
  gap: var(--m-space-sm);
@@ -53,3 +53,4 @@
53
53
  --mx-ring-value: --fn-focus-ring();
54
54
  }
55
55
  }
56
+ }
@@ -1,4 +1,4 @@
1
- .popup {
1
+ @layer components {.popup {
2
2
  position: relative;
3
3
  display: flex;
4
4
  user-select: none;
@@ -70,3 +70,4 @@
70
70
  opacity: 0;
71
71
  }
72
72
  }
73
+ }
@@ -1,4 +1,4 @@
1
- .typography {
1
+ @layer components {.typography {
2
2
  @apply --mx-fg(inherit);
3
3
 
4
4
  &[data-emphasis='primary'] {
@@ -49,7 +49,8 @@
49
49
  &[data-wrap] {
50
50
  text-wrap: wrap;
51
51
  }
52
- &[data-dim] {
52
+ &[data-dim],
53
+ :where([data-dim='true']) & {
53
54
  @apply --mx-fg-lighter(2.5);
54
55
  }
55
56
 
@@ -72,3 +73,4 @@
72
73
  margin-block: 0;
73
74
  }
74
75
  }
76
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  min-height: 32px;
3
3
  min-width: 32px;
4
4
  }
@@ -42,3 +42,4 @@
42
42
  right: var(--m-space-sm);
43
43
  }
44
44
  }
45
+ }
@@ -1,4 +1,4 @@
1
- .root {
1
+ @layer components {.root {
2
2
  position: absolute;
3
3
  transform-origin: center;
4
4
  touch-action: none;
@@ -6,3 +6,4 @@
6
6
  overflow: visible;
7
7
  overscroll-behavior: none;
8
8
  }
9
+ }
@@ -1,4 +1,4 @@
1
- .grid {
1
+ @layer components {.grid {
2
2
  display: grid;
3
3
  grid-template-columns: repeat(2, 1fr);
4
4
  gap: var(--m-space-lg);
@@ -11,3 +11,4 @@
11
11
  width: 100%;
12
12
  }
13
13
  }
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a-type/ui",
3
- "version": "6.0.55",
3
+ "version": "6.0.57",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "url": "https://github.com/a-type/ui"
@@ -83,6 +83,7 @@
83
83
  "husky": "^9.1.7",
84
84
  "jiti": "^2.6.1",
85
85
  "lint-staged": "^16.2.7",
86
+ "postcss": "^8.5.16",
86
87
  "postcss-assign-layer": "^0.4.0",
87
88
  "postcss-cli": "^11.0.1",
88
89
  "prettier": "^3.0.3",
@@ -104,7 +105,7 @@
104
105
  "scripts": {
105
106
  "build:transpile": "tsc --build tsconfig.json",
106
107
  "build:copy": "node --experimental-strip-types ./scripts/copy.ts",
107
- "build:css": "postcss ./dist/**/*.css --replace --config scripts --verbose",
108
+ "build:css": "node --experimental-strip-types ./scripts/postcss.ts",
108
109
  "build": "pnpm run build:transpile && pnpm run build:copy && pnpm run build:css",
109
110
  "prepublish": "pnpm run build",
110
111
  "icons": "node ./scripts/generateIcons.js",
@@ -195,6 +195,10 @@
195
195
  @apply --mx-bg-faded(80%);
196
196
  @apply --mx-borderColor-faded(80%);
197
197
  }
198
+ /* reduce specificity so surface styles override */
199
+ &:where([data-dim='true']) {
200
+ @apply --mx-fg(var(--m-color-neutral-ink));
201
+ }
198
202
  &[data-dim='true'] {
199
203
  @apply --mx-fg-lighter(2.5);
200
204
  }
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Button } from '../button/Button.js';
3
3
  import { Checkbox } from '../checkbox/Checkbox.js';
4
+ import { Icon } from '../icon/Icon.js';
4
5
  import { Progress } from '../progress/Progress.js';
5
6
  import { Slider } from '../slider/Slider.js';
6
7
  import { Switch } from '../switch/Switch.js';
@@ -158,8 +159,20 @@ export const DimComparison: Story = {
158
159
  render(args) {
159
160
  return (
160
161
  <Box gap>
162
+ <Box dim>
163
+ Dimmed non-surface
164
+ <Text>Text</Text>
165
+ <Icon name="placeholder" />
166
+ </Box>
161
167
  <Box surface="ambient" dim>
162
168
  Dimmed box
169
+ <Text>Text</Text>
170
+ <Icon name="placeholder" />
171
+ </Box>
172
+ <Box surface="primary" dim>
173
+ Dimmed box
174
+ <Text>Text</Text>
175
+ <Icon name="placeholder" />
163
176
  </Box>
164
177
  <Box surface="ambient">
165
178
  <Text dim>Dimmed text</Text>
@@ -49,7 +49,8 @@
49
49
  &[data-wrap] {
50
50
  text-wrap: wrap;
51
51
  }
52
- &[data-dim] {
52
+ &[data-dim],
53
+ :where([data-dim='true']) & {
53
54
  @apply --mx-fg-lighter(2.5);
54
55
  }
55
56