@a-type/ui 6.0.50 → 6.0.52

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 (69) hide show
  1. package/dist/behaviors/iconOnly.module.css +2 -1
  2. package/dist/css/util.css +2 -1
  3. package/package.json +8 -5
  4. package/dist/colors.module.css +0 -59
  5. package/dist/components/actions/ActionBar.module.css +0 -34
  6. package/dist/components/actions/ActionButton.module.css +0 -6
  7. package/dist/components/avatar/Avatar.module.css +0 -35
  8. package/dist/components/box/Box.module.css +0 -291
  9. package/dist/components/button/Button.module.css +0 -148
  10. package/dist/components/camera/Camera.module.css +0 -65
  11. package/dist/components/card/Card.module.css +0 -183
  12. package/dist/components/checkbox/Checkbox.module.css +0 -74
  13. package/dist/components/chip/Chip.module.css +0 -32
  14. package/dist/components/collapsible/Collapsible.module.css +0 -36
  15. package/dist/components/combobox/Combobox.module.css +0 -170
  16. package/dist/components/datePicker/Calendar.module.css +0 -167
  17. package/dist/components/datePicker/datePicker.module.css +0 -7
  18. package/dist/components/datePicker/dateRangePicker.module.css +0 -38
  19. package/dist/components/dialog/Dialog.module.css +0 -188
  20. package/dist/components/divider/Divider.module.css +0 -10
  21. package/dist/components/dropdownMenu/DropdownMenu.module.css +0 -3
  22. package/dist/components/editableText/EditableText.module.css +0 -44
  23. package/dist/components/emojiPicker/EmojiPicker.module.css +0 -84
  24. package/dist/components/forms/EmojiField.module.css +0 -8
  25. package/dist/components/forms/Field.module.css +0 -62
  26. package/dist/components/forms/Form.module.css +0 -6
  27. package/dist/components/forms/NumberStepperField.module.css +0 -5
  28. package/dist/components/forms/TextField.module.css +0 -11
  29. package/dist/components/horizontalList/HorizontalList.module.css +0 -50
  30. package/dist/components/icon/Icon.module.css +0 -20
  31. package/dist/components/imageUploader/ImageUploader.module.css +0 -67
  32. package/dist/components/img/Img.module.css +0 -42
  33. package/dist/components/input/Input.module.css +0 -100
  34. package/dist/components/layouts/PageContent.module.css +0 -25
  35. package/dist/components/layouts/PageFixedArea.module.css +0 -11
  36. package/dist/components/layouts/PageNav.module.css +0 -31
  37. package/dist/components/layouts/PageNowPlaying.module.css +0 -46
  38. package/dist/components/layouts/PageRoot.module.css +0 -29
  39. package/dist/components/layouts/PageSection.module.css +0 -19
  40. package/dist/components/lightbox/Lightbox.module.css +0 -104
  41. package/dist/components/lists/lists.module.css +0 -31
  42. package/dist/components/marquee/marquee.module.css +0 -32
  43. package/dist/components/navBar/NavBar.module.css +0 -143
  44. package/dist/components/note/Note.module.css +0 -114
  45. package/dist/components/numberStepper/NumberStepper.module.css +0 -32
  46. package/dist/components/particles/ParticleLayer.module.css +0 -8
  47. package/dist/components/peek/Peek.module.css +0 -96
  48. package/dist/components/popover/Popover.module.css +0 -24
  49. package/dist/components/primitives/menus.module.css +0 -262
  50. package/dist/components/progress/Progress.module.css +0 -54
  51. package/dist/components/pwaInstall/PwaInstall.module.css +0 -23
  52. package/dist/components/quickAction/QuickAction.module.css +0 -59
  53. package/dist/components/richEditor/richEditor.module.css +0 -102
  54. package/dist/components/scrollArea/ScrollArea.module.css +0 -187
  55. package/dist/components/select/Select.module.css +0 -46
  56. package/dist/components/skeletons/skeletons.module.css +0 -33
  57. package/dist/components/slider/Slider.module.css +0 -97
  58. package/dist/components/spinner/Spinner.module.css +0 -54
  59. package/dist/components/splashScreen/SplashScreen.module.css +0 -54
  60. package/dist/components/switch/Switch.module.css +0 -63
  61. package/dist/components/tabs/tabs.module.css +0 -139
  62. package/dist/components/textArea/TextArea.module.css +0 -14
  63. package/dist/components/toasts/toasts.module.css +0 -201
  64. package/dist/components/toggleGroup/toggleGroup.module.css +0 -55
  65. package/dist/components/tooltip/Tooltip.module.css +0 -72
  66. package/dist/components/typography/typography.module.css +0 -74
  67. package/dist/components/viewport/Viewport.module.css +0 -44
  68. package/dist/components/viewport/ViewportContent.module.css +0 -8
  69. package/dist/theme.stories.module.css +0 -13
@@ -1,4 +1,5 @@
1
- .iconWrapper {
1
+ @layer components {.iconWrapper {
2
2
  display: inline-block;
3
3
  flex-shrink: 0;
4
4
  }
5
+ }
package/dist/css/util.css CHANGED
@@ -1,4 +1,4 @@
1
- /* Sizes */
1
+ @layer utils {/* Sizes */
2
2
  .w-auto {
3
3
  width: auto;
4
4
  }
@@ -177,3 +177,4 @@
177
177
  white-space: nowrap;
178
178
  border: 0;
179
179
  }
180
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a-type/ui",
3
- "version": "6.0.50",
3
+ "version": "6.0.52",
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.135",
42
- "@arbor-css/postcss": "^0.0.135",
41
+ "@arbor-css/core": "^0.0.136",
42
+ "@arbor-css/postcss": "^0.0.136",
43
43
  "@base-ui/react": "^1.4.1",
44
44
  "@use-gesture/react": "^10.3.1",
45
45
  "browser-image-resizer": "^2.4.1",
@@ -80,6 +80,8 @@
80
80
  "husky": "^9.1.7",
81
81
  "jiti": "^2.6.1",
82
82
  "lint-staged": "^16.2.7",
83
+ "postcss-assign-layer": "^0.4.0",
84
+ "postcss-cli": "^11.0.1",
83
85
  "prettier": "^3.0.3",
84
86
  "react": "19.0.0",
85
87
  "react-dom": "19.0.0",
@@ -97,9 +99,10 @@
97
99
  ]
98
100
  },
99
101
  "scripts": {
100
- "build:transpile": "tsc",
102
+ "build:transpile": "tsc --build tsconfig.json",
101
103
  "build:copy": "node --experimental-strip-types ./scripts/copy.ts",
102
- "build": "pnpm run build:transpile && pnpm run build:copy",
104
+ "build:css": "postcss ./src/**/*.css --dir ./dist --base ./src --config scripts",
105
+ "build": "pnpm run build:transpile && pnpm run build:copy && pnpm run build:css",
103
106
  "prepublish": "pnpm run build",
104
107
  "icons": "node ./scripts/generateIcons.js",
105
108
  "storybook": "storybook dev -p 6006",
@@ -1,59 +0,0 @@
1
- .bgWash {
2
- @apply --mx-bg(var(--m-color-main-wash));
3
- }
4
- .bgLight {
5
- @apply --mx-bg(var(--m-color-main-light));
6
- }
7
- .bgMid {
8
- @apply --mx-bg(var(--m-color-main));
9
- }
10
- .bgHeavy {
11
- @apply --mx-bg(var(--m-color-main-heavy));
12
- }
13
- .bgInk {
14
- @apply --mx-bg(var(--m-color-main-ink));
15
- }
16
-
17
- .bgNeutralInk {
18
- @apply --mx-bg(var(--m-color-neutral-ink));
19
- }
20
- .bgNeutralPaper {
21
- @apply --mx-bg(var(--m-color-neutral-paper));
22
- }
23
- .bgNeutralWash {
24
- @apply --mx-bg(var(--m-color-neutral-wash));
25
- }
26
-
27
- .rangeLabel {
28
- position: absolute;
29
- left: 0;
30
- top: 0;
31
- @apply --mx-fg(var(--m-color-neutral));
32
- @apply --mx-bg(var(--m-color-neutral-ink));
33
- @apply --mx-bg-faded(50%);
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
- border-radius: var(--m-radius-sm);
39
- }
40
-
41
- .bgLighten1 {
42
- @apply --mx-bg-lighter(1);
43
- }
44
- .bgLighten2 {
45
- @apply --mx-bg-lighter(2);
46
- }
47
- .bgDarken1 {
48
- @apply --mx-bg-heavier(1);
49
- }
50
- .bgDarken2 {
51
- @apply --mx-bg-heavier(2);
52
- }
53
-
54
- .bgBetweenMidLight {
55
- @apply --mx-bg(--fn-color-between(var(--m-color-main), var(--m-color-main-light)));
56
- }
57
- .bgBetweenMidHeavy {
58
- @apply --mx-bg(--fn-color-between(var(--m-color-main), var(--m-color-main-heavy)));
59
- }
@@ -1,34 +0,0 @@
1
- .root {
2
- position: relative;
3
- height: max-content;
4
- width: 100%;
5
- display: flex;
6
- flex-direction: row;
7
- align-items: center;
8
- justify-content: flex-start;
9
- overflow: clip;
10
- transition: height var(--m-duration) var(--m-easing);
11
-
12
- &:empty {
13
- height: 0;
14
- }
15
- }
16
-
17
- .scrollArea {
18
- height: 100%;
19
- width: 100%;
20
- flex: 1;
21
- }
22
-
23
- .scrollAreaContent {
24
- position: relative;
25
- height: 100%;
26
- display: flex;
27
- flex-direction: row;
28
- align-items: center;
29
- justify-content: flex-start;
30
-
31
- &[data-wrap='true'] {
32
- flex-wrap: wrap;
33
- }
34
- }
@@ -1,6 +0,0 @@
1
- .button {
2
- font-weight: normal;
3
- }
4
- .collapse {
5
- padding: var(--m-space-sm);
6
- }
@@ -1,35 +0,0 @@
1
- .root {
2
- position: relative;
3
- aspect-ratio: 1/1;
4
- width: --fn-literal(var(--avatar-size, 24px));
5
- height: --fn-literal(var(--avatar-size, 24px));
6
- display: flex;
7
- flex-shrink: 0;
8
- user-select: none;
9
- align-items: center;
10
- justify-content: center;
11
- overflow: hidden;
12
-
13
- @apply --mx-bg(var(--m-color-neutral-paper));
14
-
15
- border-width: var(--m-lineWidth-sm);
16
- border-style: solid;
17
- border-color: var(--m-color-neutral-ink);
18
-
19
- border-radius: var(--m-radius-lg);
20
-
21
- &[data-empty='true'] {
22
- border-style: dashed;
23
- @apply --mx-bg(var(--m-color-neutral-light));
24
- }
25
- }
26
-
27
- .image {
28
- object-fit: cover;
29
- width: 100%;
30
- height: 100%;
31
- }
32
-
33
- .fallback {
34
- font-size: --fn-literal(calc(0.5px * var(--avatar-size, 24px)));
35
- }
@@ -1,291 +0,0 @@
1
- @layer box {
2
- .root {
3
- display: flex;
4
- position: relative;
5
-
6
- flex-direction: row;
7
- &[data-reverse] {
8
- flex-direction: row-reverse;
9
- }
10
- &[data-col] {
11
- flex-direction: column;
12
- &[data-reverse] {
13
- flex-direction: column-reverse;
14
- }
15
- }
16
-
17
- &[data-wrap='wrap'],
18
- &[data-wrap='true'] {
19
- flex-wrap: wrap;
20
- }
21
- &[data-wrap='nowrap'] {
22
- flex-wrap: nowrap;
23
- }
24
-
25
- &[data-gap='none'] {
26
- gap: 0;
27
- }
28
- &[data-gap='xs'] {
29
- gap: var(--m-space-xs);
30
- }
31
- &[data-gap='sm'] {
32
- gap: var(--m-space-sm);
33
- }
34
- &[data-gap='md'],
35
- &[data-gap='true'] {
36
- gap: var(--m-space-md);
37
- }
38
- &[data-gap='lg'] {
39
- gap: var(--m-space-lg);
40
- }
41
- &[data-gap='xl'] {
42
- gap: var(--m-space-xl);
43
- }
44
-
45
- &[data-items='start'] {
46
- align-items: flex-start;
47
- }
48
- &[data-items='center'] {
49
- align-items: center;
50
- }
51
- &[data-items='end'] {
52
- align-items: flex-end;
53
- }
54
- &[data-items='stretch'] {
55
- align-items: stretch;
56
- }
57
- &[data-justify='start'] {
58
- justify-content: flex-start;
59
- }
60
- &[data-justify='center'] {
61
- justify-content: center;
62
- }
63
- &[data-justify='end'] {
64
- justify-content: flex-end;
65
- }
66
- &[data-justify='between'] {
67
- justify-content: space-between;
68
- }
69
- &[data-justify='around'] {
70
- justify-content: space-around;
71
- }
72
- &[data-justify='evenly'] {
73
- justify-content: space-evenly;
74
- }
75
- &[data-self='auto'] {
76
- align-self: auto;
77
- }
78
- &[data-self='start'] {
79
- align-self: flex-start;
80
- }
81
- &[data-self='center'] {
82
- align-self: center;
83
- }
84
- &[data-self='end'] {
85
- align-self: flex-end;
86
- }
87
- &[data-self='stretch'] {
88
- align-self: stretch;
89
- }
90
-
91
- &[data-p='none'] {
92
- padding: 0;
93
- }
94
- &[data-p='xs'] {
95
- padding: var(--m-space-xs);
96
- }
97
- &[data-p='sm'] {
98
- padding: var(--m-space-sm);
99
- }
100
- &[data-p='md'] {
101
- padding: var(--m-space-md);
102
- }
103
- &[data-p='lg'],
104
- &[data-p='true'] {
105
- padding: var(--m-space-lg);
106
- }
107
- &[data-p='xl'] {
108
- padding: var(--m-space-xl);
109
- }
110
-
111
- &[data-rounded='none'] {
112
- border-radius: 0;
113
- }
114
- &[data-rounded='xs'] {
115
- border-radius: var(--m-radius-xs);
116
- }
117
- &[data-rounded='sm'] {
118
- border-radius: var(--m-radius-sm);
119
- }
120
- &[data-rounded='md'],
121
- &[data-rounded='true'] {
122
- border-radius: var(--m-radius-md);
123
- }
124
- &[data-rounded='lg'] {
125
- border-radius: var(--m-radius-lg);
126
- }
127
-
128
- &[data-w='full'] {
129
- width: 100%;
130
- }
131
- &[data-h='full'] {
132
- height: 100%;
133
- }
134
- &[data-full='width'],
135
- &[data-full='true'] {
136
- width: 100%;
137
- }
138
- &[data-full='height'],
139
- &[data-full='true'] {
140
- height: 100%;
141
- }
142
-
143
- &[data-overflow='visible'] {
144
- overflow: visible;
145
- }
146
- &[data-overflow='hidden'] {
147
- overflow: hidden;
148
- }
149
- &[data-overflow='scroll'] {
150
- overflow: scroll;
151
- }
152
- &[data-overflow='auto'] {
153
- overflow: auto;
154
- }
155
- &[data-overflow='clip'] {
156
- overflow: clip;
157
- }
158
- &[data-overflow='auto-y'] {
159
- overflow-y: auto;
160
- overflow-x: clip;
161
- }
162
- &[data-overflow='auto-x'] {
163
- overflow-x: auto;
164
- overflow-y: clip;
165
- }
166
-
167
- &[data-border='true'] {
168
- @apply --mx-borderColor(var(--m-surface-ambient-borderColor));
169
- }
170
-
171
- &[data-surface='ambient'],
172
- &[data-surface='true'] {
173
- @apply --mx-bg(var(--m-surface-ambient-bg));
174
- @apply --mx-fg(var(--m-surface-ambient-fg));
175
- &[data-border='true'] {
176
- @apply --mx-borderColor(var(--m-surface-ambient-borderColor));
177
- }
178
- }
179
- &[data-surface='secondary'] {
180
- @apply --mx-bg(var(--m-surface-secondary-bg));
181
- @apply --mx-fg(var(--m-surface-secondary-fg));
182
- &[data-border='true'] {
183
- @apply --mx-borderColor(var(--m-surface-secondary-borderColor));
184
- }
185
- }
186
- &[data-surface='primary'] {
187
- @apply --mx-bg(var(--m-surface-primary-bg));
188
- @apply --mx-fg(var(--m-surface-primary-fg));
189
- &[data-border='true'] {
190
- @apply --mx-borderColor(var(--m-surface-primary-borderColor));
191
- }
192
- }
193
-
194
- &[data-glass='true'] {
195
- @apply --mx-bg-faded(80%);
196
- @apply --mx-borderColor-faded(80%);
197
- }
198
- &[data-dim='true'] {
199
- @apply --mx-fg-lighter(2.5);
200
- }
201
-
202
- &[data-grow='true'] {
203
- flex-grow: 1;
204
- }
205
- &[data-shrink='true'] {
206
- flex-shrink: 1;
207
- min-width: 0;
208
- }
209
-
210
- @apply --mx-shadow;
211
- --mx-shadow-value: var(--shadow-inset) var(--shadow-x, 0)
212
- calc(var(--shadow-y, 0) * var(--shadow-invert, 1)) var(--shadow-blur, 0)
213
- var(--shadow-spread, 0) var(--shadow-color, transparent);
214
- --shadow-inset: ;
215
- &[data-elevated='sm'] {
216
- --shadow-x: var(--m-shadow-sm-x);
217
- --shadow-y: var(--m-shadow-sm-y);
218
- --shadow-blur: var(--m-shadow-sm-blur);
219
- --shadow-spread: var(--m-shadow-sm-spread);
220
- --shadow-color: var(--m-shadow-sm-color);
221
- }
222
- &[data-elevated='md'],
223
- &[data-elevated='true'] {
224
- --shadow-x: var(--m-shadow-md-x);
225
- --shadow-y: var(--m-shadow-md-y);
226
- --shadow-blur: var(--m-shadow-md-blur);
227
- --shadow-spread: var(--m-shadow-md-spread);
228
- --shadow-color: var(--m-shadow-md-color);
229
- }
230
- &[data-elevated='lg'] {
231
- --shadow-x: var(--m-shadow-lg-x);
232
- --shadow-y: var(--m-shadow-lg-y);
233
- --shadow-blur: var(--m-shadow-lg-blur);
234
- --shadow-spread: var(--m-shadow-lg-spread);
235
- --shadow-color: var(--m-shadow-lg-color);
236
- }
237
- &[data-elevated='xl'] {
238
- --shadow-x: var(--m-shadow-xl-x);
239
- --shadow-y: var(--m-shadow-xl-y);
240
- --shadow-blur: var(--m-shadow-xl-blur);
241
- --shadow-spread: var(--m-shadow-xl-spread);
242
- --shadow-color: var(--m-shadow-xl-color);
243
- }
244
- &[data-shadow-up='true'] {
245
- --shadow-invert: -1;
246
- }
247
- &[data-shadow-inset='true'] {
248
- --shadow-inset: inset;
249
- }
250
-
251
- &[data-container='true'] {
252
- container-type: inline-size;
253
- }
254
- }
255
- }
256
-
257
- @property --shadow-color {
258
- syntax: '<color>';
259
- inherits: false;
260
- initial-value: transparent;
261
- }
262
-
263
- @property --shadow-x {
264
- syntax: '<length>';
265
- inherits: false;
266
- initial-value: 0;
267
- }
268
-
269
- @property --shadow-y {
270
- syntax: '<length>';
271
- inherits: false;
272
- initial-value: 0;
273
- }
274
-
275
- @property --shadow-blur {
276
- syntax: '<length>';
277
- inherits: false;
278
- initial-value: 0;
279
- }
280
-
281
- @property --shadow-spread {
282
- syntax: '<length>';
283
- inherits: false;
284
- initial-value: 0;
285
- }
286
-
287
- @property --shadow-inset {
288
- syntax: 'inset';
289
- inherits: false;
290
- initial-value:;
291
- }
@@ -1,148 +0,0 @@
1
- .root {
2
- user-select: none;
3
- appearance: none;
4
- cursor: pointer;
5
- transition: all var(--m-duration) var(--m-easing);
6
-
7
- display: flex;
8
- flex-direction: row;
9
- align-items: center;
10
- justify-content: start;
11
- gap: var(--m-space-sm);
12
-
13
- position: relative;
14
- overflow: visible;
15
- white-space: nowrap;
16
-
17
- @apply --mx-action-secondary;
18
-
19
- @apply --mx-shadow(var(--m-shadow-sm));
20
- @apply --mx-ring;
21
-
22
- &[data-emphasis='primary'] {
23
- @apply --mx-action-primary;
24
- }
25
- &[data-emphasis='light'] {
26
- @apply --mx-action-light;
27
- }
28
- &[data-emphasis='default'] {
29
- @apply --mx-action-secondary;
30
- }
31
- &[data-emphasis='ghost'] {
32
- @apply --mx-action-ambient;
33
- --mx-ring-value: 0 0 0 0 transparent;
34
- --mx-shadow-value: 0 0 0 0 transparent;
35
-
36
- &:hover,
37
- &:focus {
38
- --mx-bg-applied: inherit;
39
- --mx-bg-ref: --fn-color-heavier(
40
- color-mix(var(--mx-bg-applied), var(--m-color-main-light) 20%),
41
- 1
42
- );
43
- }
44
- }
45
- &[data-emphasis='ghost'],
46
- &[data-emphasis='default'] {
47
- &[aria-pressed='true'] {
48
- @apply --mx-bg(var(--m-color-main-light));
49
- }
50
- }
51
-
52
- &[data-has-icon='true'][data-has-label='false']:not(
53
- [data-disable-icon-mode='true']
54
- ):not([data-size='wrapper']),
55
- &[data-force-icon-mode='true']:not([data-size='wrapper']) {
56
- padding: var(--m-space-md);
57
-
58
- &[data-size='small'] {
59
- padding: var(--m-space-sm);
60
- }
61
-
62
- &:not([aria-pressed='true']) {
63
- aspect-ratio: 1/1;
64
- align-items: center;
65
- justify-content: center;
66
- }
67
- }
68
-
69
- &[data-size='small'] {
70
- min-height: --fn-literal(28px);
71
- }
72
- &[data-size='wrapper'] {
73
- padding: 0;
74
- width: fit-content;
75
- }
76
- &[data-full='width'],
77
- &[data-full='both'] {
78
- width: 100%;
79
- }
80
- &[data-full='height'],
81
- &[data-full='both'] {
82
- height: 100%;
83
- }
84
-
85
- &[data-align='start'] {
86
- align-self: start;
87
- }
88
- &[data-align='center'] {
89
- align-self: center;
90
- }
91
- &[data-align='end'] {
92
- align-self: end;
93
- }
94
-
95
- @apply --mx-hover;
96
- @apply --mx-active;
97
- @apply --mx-focus;
98
- @apply --mx-disabled;
99
-
100
- /* Always turn off background for toggleable buttons that aren't pressed */
101
- &[data-toggleable='true'][aria-pressed='false']:not(:hover) {
102
- @apply --mx-bg(transparent);
103
- --mx-bg-contrast: var(--m-global-trueLightColor);
104
- }
105
- }
106
-
107
- .unstyled {
108
- @apply --mx-bg(transparent);
109
- margin: 0;
110
- padding: 0;
111
- appearance: none;
112
- border: none;
113
- cursor: pointer;
114
- &:focus {
115
- outline: none;
116
- }
117
- &:focus-visible {
118
- box-shadow: 0 0 0 4px var(--m-color-main-ink);
119
- }
120
- }
121
-
122
- .icon {
123
- display: flex;
124
- flex-shrink: 0;
125
- }
126
-
127
- .toggleIndicator {
128
- width: 0;
129
- transition: width var(--m-duration) var(--m-easing);
130
-
131
- &[data-open='true'] {
132
- width: --fn-literal(15px);
133
- }
134
- &[data-open='false'] {
135
- margin-left: calc(-1 * var(--m-space-sm));
136
- }
137
- }
138
-
139
- .defaultSpinner {
140
- margin-block: auto;
141
- display: flex;
142
- flex-shrink: 0;
143
- overflow: clip;
144
-
145
- [data-has-icon='true'] & {
146
- display: none;
147
- }
148
- }
@@ -1,65 +0,0 @@
1
- .fullscreen {
2
- position: fixed;
3
- inset: 0;
4
- z-index: 1000;
5
- width: 100%;
6
- height: 100%;
7
- border-radius: 0;
8
- }
9
-
10
- .root {
11
- min-width: --fn-literal(48px);
12
- min-height: --fn-literal(48px);
13
- }
14
-
15
- .video {
16
- width: 100%;
17
- height: 100%;
18
- object-fit: cover;
19
- }
20
-
21
- .shutterButton {
22
- position: absolute;
23
- bottom: var(--m-space-md);
24
- left: 50%;
25
- width: calc(48px / var(--m-global-space-density));
26
- height: calc(48px / var(--m-global-space-density));
27
- cursor: pointer;
28
- transform: translateX(-50%);
29
- opacity: 80%;
30
- transition: all var(--m-duration) var(--m-easing);
31
-
32
- @apply --mx-shadow;
33
- --mx-ring-value: --fn-ring(var(--m-action-secondary-bg), 2px);
34
- @apply --mx-bg(var(--m-action-secondary-bg));
35
- @apply --mx-fg(color-contrast(var(--mx-bg-ref)));
36
- @apply --mx-borderColor(var(--mx-fg-ref));
37
- border-width: var(--m-lineWidth);
38
- border-radius: var(--m-action-radius);
39
-
40
- &:hover {
41
- opacity: 100%;
42
- @apply --mx-bg-heavier(2);
43
- }
44
-
45
- &:focus {
46
- outline: none;
47
- opacity: 100%;
48
- }
49
- &:focus-visible {
50
- @apply --mx-bg-lighter(1);
51
- --mx-ring-value: --fn-ring(var(--m-color-main-ink), 4px);
52
- }
53
- }
54
-
55
- .swapButton {
56
- position: absolute;
57
- bottom: var(--m-space-xs);
58
- left: var(--m-space-xs);
59
- }
60
-
61
- .fullscreenButton {
62
- position: absolute;
63
- top: var(--m-space-xs);
64
- right: var(--m-space-xs);
65
- }