@salmonui/editors 0.0.0-stage → 0.2.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 (111) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +39 -2
  3. package/dist/image-editor/ImageEditor.d.ts +59 -0
  4. package/dist/image-editor/ImageEditor.d.ts.map +1 -0
  5. package/dist/image-editor/ImageEditor.js +493 -0
  6. package/dist/image-editor/ImageEditor.js.map +1 -0
  7. package/dist/image-editor/adjust.d.ts +17 -0
  8. package/dist/image-editor/adjust.d.ts.map +1 -0
  9. package/dist/image-editor/adjust.js +53 -0
  10. package/dist/image-editor/adjust.js.map +1 -0
  11. package/dist/image-editor/annotations.d.ts +40 -0
  12. package/dist/image-editor/annotations.d.ts.map +1 -0
  13. package/dist/image-editor/annotations.js +184 -0
  14. package/dist/image-editor/annotations.js.map +1 -0
  15. package/dist/image-editor/draw.d.ts +25 -0
  16. package/dist/image-editor/draw.d.ts.map +1 -0
  17. package/dist/image-editor/draw.js +248 -0
  18. package/dist/image-editor/draw.js.map +1 -0
  19. package/dist/image-editor/engine.d.ts +116 -0
  20. package/dist/image-editor/engine.d.ts.map +1 -0
  21. package/dist/image-editor/engine.js +367 -0
  22. package/dist/image-editor/engine.js.map +1 -0
  23. package/dist/image-editor/geometry.d.ts +41 -0
  24. package/dist/image-editor/geometry.d.ts.map +1 -0
  25. package/dist/image-editor/geometry.js +62 -0
  26. package/dist/image-editor/geometry.js.map +1 -0
  27. package/dist/image-editor/history.d.ts +24 -0
  28. package/dist/image-editor/history.d.ts.map +1 -0
  29. package/dist/image-editor/history.js +31 -0
  30. package/dist/image-editor/history.js.map +1 -0
  31. package/dist/image-editor/interact.d.ts +73 -0
  32. package/dist/image-editor/interact.d.ts.map +1 -0
  33. package/dist/image-editor/interact.js +686 -0
  34. package/dist/image-editor/interact.js.map +1 -0
  35. package/dist/image-editor/items.d.ts +9 -0
  36. package/dist/image-editor/items.d.ts.map +1 -0
  37. package/dist/image-editor/items.js +179 -0
  38. package/dist/image-editor/items.js.map +1 -0
  39. package/dist/image-editor/ops.d.ts +35 -0
  40. package/dist/image-editor/ops.d.ts.map +1 -0
  41. package/dist/image-editor/ops.js +332 -0
  42. package/dist/image-editor/ops.js.map +1 -0
  43. package/dist/image-editor/panels.d.ts +24 -0
  44. package/dist/image-editor/panels.d.ts.map +1 -0
  45. package/dist/image-editor/panels.js +185 -0
  46. package/dist/image-editor/panels.js.map +1 -0
  47. package/dist/image-editor/pixels.d.ts +10 -0
  48. package/dist/image-editor/pixels.d.ts.map +1 -0
  49. package/dist/image-editor/pixels.js +172 -0
  50. package/dist/image-editor/pixels.js.map +1 -0
  51. package/dist/image-editor/transform.d.ts +33 -0
  52. package/dist/image-editor/transform.d.ts.map +1 -0
  53. package/dist/image-editor/transform.js +142 -0
  54. package/dist/image-editor/transform.js.map +1 -0
  55. package/dist/image-editor/types.d.ts +445 -0
  56. package/dist/image-editor/types.d.ts.map +1 -0
  57. package/dist/image-editor/types.js +6 -0
  58. package/dist/image-editor/types.js.map +1 -0
  59. package/dist/image-editor.css +1228 -0
  60. package/dist/image-editor.d.ts +5 -0
  61. package/dist/image-editor.d.ts.map +1 -0
  62. package/dist/image-editor.js +13 -0
  63. package/dist/image-editor.js.map +1 -0
  64. package/dist/inline-edit/InlineEdit.d.ts +6 -0
  65. package/dist/inline-edit/InlineEdit.d.ts.map +1 -0
  66. package/dist/inline-edit/InlineEdit.js +337 -0
  67. package/dist/inline-edit/InlineEdit.js.map +1 -0
  68. package/dist/inline-edit/types.d.ts +172 -0
  69. package/dist/inline-edit/types.d.ts.map +1 -0
  70. package/dist/inline-edit/types.js +2 -0
  71. package/dist/inline-edit/types.js.map +1 -0
  72. package/dist/inline-edit/validate.d.ts +11 -0
  73. package/dist/inline-edit/validate.d.ts.map +1 -0
  74. package/dist/inline-edit/validate.js +30 -0
  75. package/dist/inline-edit/validate.js.map +1 -0
  76. package/dist/inline-edit.css +621 -0
  77. package/dist/inline-edit.d.ts +3 -0
  78. package/dist/inline-edit.d.ts.map +1 -0
  79. package/dist/inline-edit.js +9 -0
  80. package/dist/inline-edit.js.map +1 -0
  81. package/dist/markdown-editor/MarkdownEditor.d.ts +6 -0
  82. package/dist/markdown-editor/MarkdownEditor.d.ts.map +1 -0
  83. package/dist/markdown-editor/MarkdownEditor.js +423 -0
  84. package/dist/markdown-editor/MarkdownEditor.js.map +1 -0
  85. package/dist/markdown-editor/commands.d.ts +69 -0
  86. package/dist/markdown-editor/commands.d.ts.map +1 -0
  87. package/dist/markdown-editor/commands.js +207 -0
  88. package/dist/markdown-editor/commands.js.map +1 -0
  89. package/dist/markdown-editor/dialog.d.ts +19 -0
  90. package/dist/markdown-editor/dialog.d.ts.map +1 -0
  91. package/dist/markdown-editor/dialog.js +88 -0
  92. package/dist/markdown-editor/dialog.js.map +1 -0
  93. package/dist/markdown-editor/items.d.ts +12 -0
  94. package/dist/markdown-editor/items.d.ts.map +1 -0
  95. package/dist/markdown-editor/items.js +110 -0
  96. package/dist/markdown-editor/items.js.map +1 -0
  97. package/dist/markdown-editor/menu-popup.d.ts +14 -0
  98. package/dist/markdown-editor/menu-popup.d.ts.map +1 -0
  99. package/dist/markdown-editor/menu-popup.js +13 -0
  100. package/dist/markdown-editor/menu-popup.js.map +1 -0
  101. package/dist/markdown-editor/types.d.ts +153 -0
  102. package/dist/markdown-editor/types.d.ts.map +1 -0
  103. package/dist/markdown-editor/types.js +2 -0
  104. package/dist/markdown-editor/types.js.map +1 -0
  105. package/dist/markdown-editor.css +1020 -0
  106. package/dist/markdown-editor.d.ts +6 -0
  107. package/dist/markdown-editor.d.ts.map +1 -0
  108. package/dist/markdown-editor.js +12 -0
  109. package/dist/markdown-editor.js.map +1 -0
  110. package/dist/styles.css +1699 -0
  111. package/package.json +53 -4
@@ -0,0 +1,1228 @@
1
+ @layer salmon.a,salmon.b,salmon.c,salmon.d;
2
+ @layer salmon.a {
3
+ /* @salmonui/buttons/button/styles.css, first part (button-core): Button,
4
+ ToggleButton, ButtonGroup, ToggleButtonGroup without the chip, progress
5
+ and floating extras of styles/button.css. Colors come from --salmon-*
6
+ theme variables only; tone and variant are orthogonal (data-tone x
7
+ data-variant); sizes are three fixed metric sets. Logical properties only. */
8
+
9
+ .salmon-button {
10
+ --salmon-button-c: var(--salmon-surface-sunken);
11
+ --salmon-button-c-hover: var(--salmon-surface-hover);
12
+ --salmon-button-c-active: var(--salmon-border-subtle);
13
+ --salmon-button-c-on: var(--salmon-text-primary);
14
+ --salmon-button-c-edge: var(--salmon-border-default);
15
+ --salmon-button-c-subtle: var(--salmon-surface-hover);
16
+ --salmon-button-c-subtle-hover: var(--salmon-surface-sunken);
17
+ --salmon-button-c-text: var(--salmon-text-primary);
18
+ --salmon-button-c-border: var(--salmon-border-default);
19
+ --salmon-button-c-selected: var(--salmon-surface-selected);
20
+ --salmon-button-c-selected-edge: var(--salmon-border-selected);
21
+ --salmon-button-h: var(--salmon-control-height-md, 32px);
22
+ --salmon-button-pad: var(--salmon-control-padding-md, 12px);
23
+ --salmon-button-bg: var(--salmon-button-c);
24
+ --salmon-button-fg: var(--salmon-button-c-on);
25
+ --salmon-button-bd: var(--salmon-button-c-edge);
26
+ position: relative;
27
+ isolation: isolate;
28
+ display: inline-flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ gap: 6px;
32
+ box-sizing: border-box;
33
+ min-block-size: var(--salmon-button-h);
34
+ margin: 0;
35
+ padding-block: 0;
36
+ padding-inline: var(--salmon-button-pad);
37
+ overflow: hidden;
38
+ border: 1px solid var(--salmon-button-bd);
39
+ border-radius: var(--salmon-radius-md);
40
+ background: var(--salmon-button-bg);
41
+ color: var(--salmon-button-fg);
42
+ font-family: var(--salmon-font-sans);
43
+ font-size: var(--salmon-font-size-md);
44
+ font-weight: var(--salmon-font-weight-medium);
45
+ line-height: var(--salmon-line-height-tight);
46
+ text-decoration: none;
47
+ white-space: nowrap;
48
+ vertical-align: middle;
49
+ cursor: pointer;
50
+ user-select: none;
51
+ -webkit-tap-highlight-color: transparent;
52
+ transition: background-color var(--salmon-motion-duration-fast) var(--salmon-motion-easing), border-color var(--salmon-motion-duration-fast) var(--salmon-motion-easing), color var(--salmon-motion-duration-fast) var(--salmon-motion-easing);
53
+ }
54
+
55
+ /* The class's display would override the native hidden attribute. */
56
+ .salmon-button[hidden] {
57
+ display: none;
58
+ }
59
+
60
+ .salmon-button[data-tone='primary'],
61
+ .salmon-button[data-tone='success'],
62
+ .salmon-button[data-tone='warning'],
63
+ .salmon-button[data-tone='danger'],
64
+ .salmon-button[data-tone='info'] {
65
+ --salmon-button-c-edge: var(--salmon-button-c);
66
+ --salmon-button-c-selected: var(--salmon-button-c-subtle);
67
+ --salmon-button-c-selected-edge: var(--salmon-button-c);
68
+ }
69
+ .salmon-button[data-tone='primary'] {
70
+ --salmon-button-c: var(--salmon-color-primary);
71
+ --salmon-button-c-hover: var(--salmon-color-primary-hover);
72
+ --salmon-button-c-active: var(--salmon-color-primary-active);
73
+ --salmon-button-c-on: var(--salmon-color-primary-on);
74
+ --salmon-button-c-subtle: var(--salmon-color-primary-subtle);
75
+ --salmon-button-c-subtle-hover: var(--salmon-color-primary-subtle-hover);
76
+ --salmon-button-c-text: var(--salmon-color-primary-text);
77
+ --salmon-button-c-border: var(--salmon-color-primary-border);
78
+ }
79
+ .salmon-button[data-tone='success'] {
80
+ --salmon-button-c: var(--salmon-color-success);
81
+ --salmon-button-c-hover: var(--salmon-color-success-hover);
82
+ --salmon-button-c-active: var(--salmon-color-success-active);
83
+ --salmon-button-c-on: var(--salmon-color-success-on);
84
+ --salmon-button-c-subtle: var(--salmon-color-success-subtle);
85
+ --salmon-button-c-subtle-hover: var(--salmon-color-success-subtle-hover);
86
+ --salmon-button-c-text: var(--salmon-color-success-text);
87
+ --salmon-button-c-border: var(--salmon-color-success-border);
88
+ }
89
+ .salmon-button[data-tone='warning'] {
90
+ --salmon-button-c: var(--salmon-color-warning);
91
+ --salmon-button-c-hover: var(--salmon-color-warning-hover);
92
+ --salmon-button-c-active: var(--salmon-color-warning-active);
93
+ --salmon-button-c-on: var(--salmon-color-warning-on);
94
+ --salmon-button-c-subtle: var(--salmon-color-warning-subtle);
95
+ --salmon-button-c-subtle-hover: var(--salmon-color-warning-subtle-hover);
96
+ --salmon-button-c-text: var(--salmon-color-warning-text);
97
+ --salmon-button-c-border: var(--salmon-color-warning-border);
98
+ }
99
+ .salmon-button[data-tone='danger'] {
100
+ --salmon-button-c: var(--salmon-color-danger);
101
+ --salmon-button-c-hover: var(--salmon-color-danger-hover);
102
+ --salmon-button-c-active: var(--salmon-color-danger-active);
103
+ --salmon-button-c-on: var(--salmon-color-danger-on);
104
+ --salmon-button-c-subtle: var(--salmon-color-danger-subtle);
105
+ --salmon-button-c-subtle-hover: var(--salmon-color-danger-subtle-hover);
106
+ --salmon-button-c-text: var(--salmon-color-danger-text);
107
+ --salmon-button-c-border: var(--salmon-color-danger-border);
108
+ }
109
+ .salmon-button[data-tone='info'] {
110
+ --salmon-button-c: var(--salmon-color-info);
111
+ --salmon-button-c-hover: var(--salmon-color-info-hover);
112
+ --salmon-button-c-active: var(--salmon-color-info-active);
113
+ --salmon-button-c-on: var(--salmon-color-info-on);
114
+ --salmon-button-c-subtle: var(--salmon-color-info-subtle);
115
+ --salmon-button-c-subtle-hover: var(--salmon-color-info-subtle-hover);
116
+ --salmon-button-c-text: var(--salmon-color-info-text);
117
+ --salmon-button-c-border: var(--salmon-color-info-border);
118
+ }
119
+
120
+ /* Sizes: the density control metrics. */
121
+ .salmon-button[data-size='sm'] {
122
+ --salmon-button-h: var(--salmon-control-height-sm, 24px);
123
+ --salmon-button-pad: var(--salmon-control-padding-sm, 8px);
124
+ gap: 4px;
125
+ font-size: var(--salmon-font-size-sm);
126
+ }
127
+ .salmon-button[data-size='lg'] {
128
+ --salmon-button-h: var(--salmon-control-height-lg, 40px);
129
+ --salmon-button-pad: var(--salmon-control-padding-lg, 16px);
130
+ gap: 8px;
131
+ font-size: var(--salmon-font-size-lg);
132
+ }
133
+ .salmon-button[data-icon-only] {
134
+ min-inline-size: var(--salmon-button-h);
135
+ padding-inline: 0;
136
+ }
137
+ /* A glyph in the label is a flex item, not an inline box on the text baseline,
138
+ so it sits on the centre axis. */
139
+ .salmon-button[data-icon-only] > .salmon-button__label {
140
+ display: flex;
141
+ }
142
+
143
+ /* Variants. */
144
+ .salmon-button[data-variant='solid']:hover {
145
+ --salmon-button-bg: var(--salmon-button-c-hover);
146
+ }
147
+ .salmon-button[data-variant='solid']:active {
148
+ --salmon-button-bg: var(--salmon-button-c-active);
149
+ }
150
+ /* A pressed state persists, so it keeps the guaranteed pairs:
151
+ the fill with its on-color, marked by an inset ring
152
+ of that on-color; outline and ghost use the subtle surface with tone text. */
153
+ .salmon-button[data-variant='solid'][data-pressed] {
154
+ --salmon-button-bg: var(--salmon-button-c);
155
+ box-shadow: inset 0 0 0 2px var(--salmon-button-c-on);
156
+ }
157
+ .salmon-button[data-variant='outline'],
158
+ .salmon-button[data-variant='ghost'],
159
+ .salmon-button[data-variant='link'] {
160
+ --salmon-button-bg: transparent;
161
+ --salmon-button-fg: var(--salmon-button-c-text);
162
+ --salmon-button-bd: transparent;
163
+ }
164
+ .salmon-button[data-variant='outline'] {
165
+ --salmon-button-bd: var(--salmon-button-c-border);
166
+ }
167
+ .salmon-button[data-variant='outline']:hover,
168
+ .salmon-button[data-variant='ghost']:hover {
169
+ --salmon-button-bg: var(--salmon-button-c-subtle);
170
+ }
171
+ .salmon-button[data-variant='outline']:active,
172
+ .salmon-button[data-variant='ghost']:active {
173
+ --salmon-button-bg: var(--salmon-button-c-subtle-hover);
174
+ }
175
+ .salmon-button[data-variant='outline'][data-pressed],
176
+ .salmon-button[data-variant='ghost'][data-pressed] {
177
+ --salmon-button-bg: var(--salmon-button-c-subtle);
178
+ --salmon-button-bd: var(--salmon-button-c-selected-edge);
179
+ }
180
+ .salmon-button[data-variant='link'] {
181
+ padding-inline: 2px;
182
+ min-block-size: auto;
183
+ font-weight: var(--salmon-font-weight-regular);
184
+ }
185
+ .salmon-button[data-variant='link'][data-tone='neutral'] {
186
+ --salmon-button-fg: var(--salmon-text-link);
187
+ }
188
+ .salmon-button[data-variant='link']:hover,
189
+ .salmon-button[data-variant='link'][data-pressed] {
190
+ text-decoration: underline;
191
+ }
192
+ /* States. */
193
+ .salmon-button:focus-visible {
194
+ z-index: 1;
195
+ outline: var(--salmon-state-focus-ring-width) solid var(--salmon-state-focus-ring);
196
+ outline-offset: var(--salmon-state-focus-ring-offset);
197
+ }
198
+ .salmon-button[data-variant]:disabled,
199
+ .salmon-button[data-variant][aria-disabled='true']:not([data-loading]) {
200
+ --salmon-button-bg: var(--salmon-surface-disabled);
201
+ --salmon-button-fg: var(--salmon-text-disabled);
202
+ --salmon-button-bd: var(--salmon-border-subtle);
203
+ cursor: not-allowed;
204
+ }
205
+ .salmon-button[data-variant='link']:disabled,
206
+ .salmon-button[data-variant='link'][aria-disabled='true']:not([data-loading]),
207
+ .salmon-button[data-variant='ghost']:disabled {
208
+ --salmon-button-bg: transparent;
209
+ --salmon-button-bd: transparent;
210
+ }
211
+ .salmon-button[data-loading] {
212
+ cursor: progress;
213
+ }
214
+
215
+ .salmon-button__label {
216
+ min-inline-size: 0;
217
+ overflow: hidden;
218
+ text-overflow: ellipsis;
219
+ }
220
+ .salmon-button__icon,
221
+ .salmon-button__spinner {
222
+ display: inline-flex;
223
+ flex: none;
224
+ align-items: center;
225
+ justify-content: center;
226
+ }
227
+ .salmon-button__spinner:empty {
228
+ inline-size: 1em;
229
+ block-size: 1em;
230
+ box-sizing: border-box;
231
+ border: 2px solid currentColor;
232
+ border-inline-end-color: transparent;
233
+ border-radius: 50%;
234
+ animation: salmon-button-spin 0.8s linear infinite;
235
+ }
236
+ @keyframes salmon-button-spin {
237
+ to {
238
+ rotate: 360deg;
239
+ }
240
+ }
241
+ .salmon-button__sr {
242
+ position: absolute;
243
+ inline-size: 1px;
244
+ block-size: 1px;
245
+ margin: -1px;
246
+ padding: 0;
247
+ overflow: hidden;
248
+ clip-path: inset(50%);
249
+ white-space: nowrap;
250
+ border: 0;
251
+ }
252
+
253
+ /* Groups. */
254
+ .salmon-button-group,
255
+ .salmon-toggle-button-group {
256
+ display: inline-flex;
257
+ gap: 8px;
258
+ vertical-align: middle;
259
+ }
260
+ .salmon-button-group:not([data-attached]),
261
+ .salmon-toggle-button-group:not([data-attached]) {
262
+ flex-wrap: wrap;
263
+ }
264
+ .salmon-button-group[data-orientation='vertical'],
265
+ .salmon-toggle-button-group[data-orientation='vertical'] {
266
+ flex-direction: column;
267
+ align-items: stretch;
268
+ }
269
+ .salmon-button-group[data-attached],
270
+ .salmon-toggle-button-group[data-attached] {
271
+ gap: 0;
272
+ }
273
+ [data-attached][data-orientation='horizontal'] > .salmon-button:not(:first-of-type) {
274
+ margin-inline-start: -1px;
275
+ border-start-start-radius: 0;
276
+ border-end-start-radius: 0;
277
+ }
278
+ [data-attached][data-orientation='horizontal'] > .salmon-button:not(:last-of-type) {
279
+ border-start-end-radius: 0;
280
+ border-end-end-radius: 0;
281
+ }
282
+ [data-attached][data-orientation='vertical'] > .salmon-button:not(:first-of-type) {
283
+ margin-block-start: -1px;
284
+ border-start-start-radius: 0;
285
+ border-start-end-radius: 0;
286
+ }
287
+ [data-attached][data-orientation='vertical'] > .salmon-button:not(:last-of-type) {
288
+ border-end-start-radius: 0;
289
+ border-end-end-radius: 0;
290
+ }
291
+ [data-attached] > .salmon-button:hover,
292
+ [data-attached] > .salmon-button[data-pressed] {
293
+ z-index: 1;
294
+ }
295
+
296
+ @media (prefers-reduced-motion: reduce) {
297
+ .salmon-button {
298
+ transition: none;
299
+ }
300
+ .salmon-button__spinner:empty {
301
+ animation-duration: 2.4s;
302
+ }
303
+ }
304
+
305
+ @media (forced-colors: active) {
306
+ .salmon-button {
307
+ border-color: ButtonText;
308
+ }
309
+ .salmon-button[data-pressed] {
310
+ forced-color-adjust: none;
311
+ border-color: Highlight;
312
+ background: Highlight;
313
+ color: HighlightText;
314
+ }
315
+ .salmon-button:disabled {
316
+ border-color: GrayText;
317
+ color: GrayText;
318
+ }
319
+ }
320
+
321
+ }
322
+ @layer salmon.a {
323
+ /* @salmonui/react/toolbar: Toolbar parts and the .salmon-app-bar recipe.
324
+ Colors-only: --salmon-* variables, logical properties. Buttons inside are
325
+ styled by /button/styles.css; the overflow menu by /menu/styles.css. */
326
+
327
+ .salmon-toolbar {
328
+ box-sizing: border-box;
329
+ display: flex;
330
+ align-items: center;
331
+ min-inline-size: 0;
332
+ font-family: var(--salmon-font-sans);
333
+ font-size: var(--salmon-font-size-md);
334
+ color: var(--salmon-text-primary);
335
+ }
336
+
337
+ .salmon-toolbar *,
338
+ .salmon-toolbar ::before,
339
+ .salmon-toolbar ::after {
340
+ box-sizing: border-box;
341
+ }
342
+
343
+ .salmon-toolbar[data-orientation="vertical"] {
344
+ flex-direction: column;
345
+ align-items: stretch;
346
+ min-block-size: 0;
347
+ }
348
+
349
+ /* A disabled <fieldset> carries `disabled`; it is only a flex box. */
350
+ .salmon-toolbar-content {
351
+ display: flex;
352
+ flex: 1 1 auto;
353
+ align-items: center;
354
+ gap: var(--salmon-space-2);
355
+ min-inline-size: 0;
356
+ min-block-size: 0;
357
+ margin: 0;
358
+ padding: var(--salmon-space-2);
359
+ border: 0;
360
+ }
361
+
362
+ .salmon-toolbar[data-orientation="vertical"] > .salmon-toolbar-content {
363
+ flex-direction: column;
364
+ align-items: stretch;
365
+ }
366
+
367
+ .salmon-toolbar[data-overflow="menu"] > .salmon-toolbar-content {
368
+ overflow: hidden;
369
+ }
370
+
371
+ .salmon-toolbar[data-overflow="wrap"] > .salmon-toolbar-content {
372
+ flex-wrap: wrap;
373
+ }
374
+
375
+ .salmon-toolbar[data-overflow="scroll"] > .salmon-toolbar-content {
376
+ overflow: auto;
377
+ scrollbar-width: none;
378
+ overscroll-behavior-inline: contain;
379
+ }
380
+
381
+ .salmon-toolbar[data-overflow="scroll"] > .salmon-toolbar-content::-webkit-scrollbar {
382
+ display: none;
383
+ }
384
+
385
+ .salmon-toolbar-item,
386
+ .salmon-toolbar-group {
387
+ display: flex;
388
+ flex: none;
389
+ align-items: center;
390
+ gap: var(--salmon-space-2);
391
+ }
392
+
393
+ .salmon-toolbar[data-orientation="vertical"] .salmon-toolbar-group {
394
+ flex-direction: column;
395
+ align-items: stretch;
396
+ }
397
+
398
+ .salmon-toolbar[data-overflow="wrap"] .salmon-toolbar-group {
399
+ flex-wrap: wrap;
400
+ }
401
+
402
+ .salmon-toolbar-item[hidden],
403
+ .salmon-toolbar-separator[hidden],
404
+ .salmon-toolbar-more[hidden] {
405
+ display: none !important;
406
+ }
407
+
408
+ /* Labelled group (Ribbon recipe): items over a label row; the label never widens the group. */
409
+ .salmon-toolbar-group[data-labelled] {
410
+ flex-direction: column;
411
+ align-items: stretch;
412
+ align-self: stretch;
413
+ gap: var(--salmon-space-1);
414
+ padding-inline: var(--salmon-space-2);
415
+ border-inline-end: 1px solid var(--salmon-border-subtle);
416
+ }
417
+
418
+ .salmon-toolbar-group[data-labelled]:not(:has(.salmon-toolbar-item:not([hidden]))) {
419
+ display: none;
420
+ }
421
+
422
+ .salmon-toolbar-group-items {
423
+ display: flex;
424
+ flex: 1 1 auto;
425
+ align-items: center;
426
+ gap: var(--salmon-space-2);
427
+ }
428
+
429
+ .salmon-toolbar-group-label {
430
+ display: flex;
431
+ align-items: center;
432
+ justify-content: center;
433
+ gap: var(--salmon-space-1);
434
+ inline-size: 0;
435
+ min-inline-size: 100%;
436
+ color: var(--salmon-text-secondary);
437
+ font-size: var(--salmon-font-size-sm);
438
+ }
439
+
440
+ .salmon-toolbar-group-label > span {
441
+ overflow: hidden;
442
+ text-overflow: ellipsis;
443
+ white-space: nowrap;
444
+ }
445
+
446
+ /* A large multi-size item stacks a button's icon over its label. */
447
+ .salmon-toolbar-item[data-size="lg"] > .salmon-button {
448
+ flex-direction: column;
449
+ padding-block: var(--salmon-space-1);
450
+ }
451
+
452
+ .salmon-toolbar-group[data-align="center"] {
453
+ margin-inline: auto;
454
+ }
455
+
456
+ .salmon-toolbar-group[data-align="end"] {
457
+ margin-inline-start: auto;
458
+ }
459
+
460
+ .salmon-toolbar-spacer {
461
+ flex: 1 1 0;
462
+ min-inline-size: 0;
463
+ }
464
+
465
+ .salmon-toolbar-separator {
466
+ flex: none;
467
+ align-self: stretch;
468
+ inline-size: 1px;
469
+ margin-block: var(--salmon-space-1);
470
+ background: var(--salmon-border-subtle);
471
+ }
472
+
473
+ .salmon-toolbar[data-orientation="vertical"] .salmon-toolbar-separator {
474
+ inline-size: auto;
475
+ block-size: 1px;
476
+ margin-block: 0;
477
+ margin-inline: var(--salmon-space-1);
478
+ }
479
+
480
+ .salmon-toolbar-more,
481
+ .salmon-toolbar-scroll-button {
482
+ display: inline-flex;
483
+ flex: none;
484
+ align-items: center;
485
+ justify-content: center;
486
+ min-inline-size: var(--salmon-control-height-md, 32px);
487
+ block-size: var(--salmon-control-height-md, 32px);
488
+ padding: 0;
489
+ border: 1px solid transparent;
490
+ border-radius: var(--salmon-radius-md);
491
+ background: transparent;
492
+ color: var(--salmon-text-secondary);
493
+ font: inherit;
494
+ cursor: pointer;
495
+ }
496
+
497
+ .salmon-toolbar-more {
498
+ margin-inline-start: auto;
499
+ }
500
+
501
+ .salmon-toolbar-more:hover,
502
+ .salmon-toolbar-more[data-open],
503
+ .salmon-toolbar-scroll-button:hover {
504
+ background: var(--salmon-surface-hover);
505
+ color: var(--salmon-text-primary);
506
+ }
507
+
508
+ .salmon-toolbar-more:focus-visible {
509
+ outline: var(--salmon-state-focus-ring-width) solid var(--salmon-state-focus-ring);
510
+ outline-offset: var(--salmon-state-focus-ring-offset);
511
+ }
512
+
513
+ .salmon-toolbar-more:disabled {
514
+ color: var(--salmon-text-disabled);
515
+ cursor: default;
516
+ }
517
+
518
+ /* Scroll buttons show only while the content scrolls; the end at the edge fades. */
519
+ .salmon-toolbar-scroll-button {
520
+ display: none;
521
+ }
522
+
523
+ .salmon-toolbar[data-scrollable] > .salmon-toolbar-scroll-button {
524
+ display: inline-flex;
525
+ }
526
+
527
+ .salmon-toolbar[data-at-start] > [data-scroll="back"],
528
+ .salmon-toolbar[data-at-end] > [data-scroll="forward"] {
529
+ visibility: hidden;
530
+ }
531
+
532
+ .salmon-toolbar-scroll-button[data-scroll="forward"] svg,
533
+ [dir="rtl"] .salmon-toolbar-scroll-button[data-scroll="back"] svg {
534
+ transform: scaleX(-1);
535
+ }
536
+
537
+ [dir="rtl"] .salmon-toolbar-scroll-button[data-scroll="forward"] svg {
538
+ transform: none;
539
+ }
540
+
541
+ .salmon-toolbar[data-orientation="vertical"] > [data-scroll="back"] svg {
542
+ transform: rotate(90deg);
543
+ }
544
+
545
+ .salmon-toolbar[data-orientation="vertical"] > [data-scroll="forward"] svg {
546
+ transform: rotate(-90deg);
547
+ }
548
+
549
+ /* Overflow menu overlay (the menu itself is .salmon-menu). */
550
+ .salmon-toolbar-menu {
551
+ z-index: 1000;
552
+ padding: 0;
553
+ border: 0;
554
+ background: transparent;
555
+ overflow: visible;
556
+ }
557
+
558
+ .salmon-toolbar-menu:not([data-placed]) {
559
+ visibility: hidden;
560
+ }
561
+
562
+ .salmon-toolbar-menu > .salmon-menu {
563
+ box-shadow: var(--salmon-shadow-md);
564
+ }
565
+
566
+ /* AppBar recipe: <header className="salmon-app-bar"><Toolbar /></header>. */
567
+ .salmon-app-bar {
568
+ box-sizing: border-box;
569
+ display: flex;
570
+ align-items: center;
571
+ inline-size: 100%;
572
+ min-block-size: 48px;
573
+ padding-inline: var(--salmon-space-3);
574
+ background: var(--salmon-surface-raised);
575
+ color: var(--salmon-text-primary);
576
+ border-block-end: 1px solid var(--salmon-border-subtle);
577
+ }
578
+
579
+ .salmon-app-bar > .salmon-toolbar {
580
+ flex: 1 1 auto;
581
+ }
582
+
583
+ .salmon-app-bar[data-position="bottom"] {
584
+ border-block-end: 0;
585
+ border-block-start: 1px solid var(--salmon-border-subtle);
586
+ }
587
+
588
+ .salmon-app-bar[data-sticky] {
589
+ position: sticky;
590
+ inset-block-start: 0;
591
+ z-index: 10;
592
+ }
593
+
594
+ .salmon-app-bar[data-sticky][data-position="bottom"] {
595
+ inset-block-start: auto;
596
+ inset-block-end: 0;
597
+ }
598
+
599
+ .salmon-app-bar[data-tone="primary"] {
600
+ background: var(--salmon-color-primary);
601
+ color: var(--salmon-color-primary-on);
602
+ border-color: transparent;
603
+ }
604
+
605
+ .salmon-app-bar[data-tone="primary"] .salmon-toolbar,
606
+ .salmon-app-bar[data-tone="primary"] .salmon-toolbar-more {
607
+ color: inherit;
608
+ }
609
+
610
+ /* Text-like buttons on the primary surface take its on-color (contrast). */
611
+ .salmon-app-bar[data-tone="primary"] .salmon-button:is([data-variant="ghost"], [data-variant="link"], [data-variant="outline"]) {
612
+ --salmon-button-c-text: var(--salmon-color-primary-on);
613
+ --salmon-button-c-border: var(--salmon-color-primary-on);
614
+ --salmon-button-c-subtle: color-mix(in srgb, var(--salmon-color-primary-on) 16%, transparent);
615
+ --salmon-button-c-subtle-hover: color-mix(in srgb, var(--salmon-color-primary-on) 24%, transparent);
616
+ }
617
+
618
+ .salmon-app-bar[data-tone="primary"] .salmon-toolbar-more:hover {
619
+ background: color-mix(in srgb, currentColor 16%, transparent);
620
+ }
621
+
622
+ @media (forced-colors: active) {
623
+ .salmon-toolbar-separator {
624
+ background: CanvasText;
625
+ }
626
+ .salmon-app-bar {
627
+ border-color: CanvasText;
628
+ }
629
+ }
630
+
631
+ }
632
+ @layer salmon.a {
633
+ /* Shared accessibility helper: text for assistive technology only (badge
634
+ counts, spinner labels, live regions). Carried by the family stylesheets
635
+ whose markup uses it (`@salmonui/core:a11y` in the manifest). */
636
+
637
+ .salmon-visually-hidden {
638
+ position: absolute;
639
+ inline-size: 1px;
640
+ block-size: 1px;
641
+ margin: -1px;
642
+ padding: 0;
643
+ overflow: hidden;
644
+ clip-path: inset(50%);
645
+ white-space: nowrap;
646
+ border: 0;
647
+ }
648
+
649
+ }
650
+ @layer salmon.b {
651
+ /* @salmonui/buttons/button/styles.css, second part: the filter chip variant,
652
+ the progress fill and the floating action button. tooling/checks/copy-css.mjs
653
+ writes dist/button.css as styles/button-core.css followed by this file;
654
+ families of other packages that render plain buttons only carry
655
+ button-core.css (`@salmonui/buttons:button-core` in the manifest).
656
+ Chip hover and pressed apply
657
+ to enabled chips only, so the disabled state of button-core.css, which
658
+ comes first, keeps winning. */
659
+
660
+ .salmon-button[data-variant='chip'] {
661
+ --salmon-button-h: calc(var(--salmon-control-height-md, 32px) - 4px);
662
+ --salmon-button-bg: transparent;
663
+ --salmon-button-fg: var(--salmon-button-c-text);
664
+ --salmon-button-bd: var(--salmon-button-c-border);
665
+ border-radius: var(--salmon-radius-sm);
666
+ font-weight: var(--salmon-font-weight-regular);
667
+ }
668
+ .salmon-button[data-variant='chip'][data-size='sm'] {
669
+ --salmon-button-h: calc(var(--salmon-control-height-sm, 24px) - 2px);
670
+ }
671
+ .salmon-button[data-variant='chip'][data-size='lg'] {
672
+ --salmon-button-h: calc(var(--salmon-control-height-lg, 40px) - 6px);
673
+ }
674
+ .salmon-button[data-variant='chip']:hover:where(:enabled) {
675
+ --salmon-button-bg: var(--salmon-button-c-subtle);
676
+ }
677
+ .salmon-button[data-variant='chip'][data-pressed]:where(:enabled) {
678
+ --salmon-button-bg: var(--salmon-button-c-selected);
679
+ --salmon-button-bd: var(--salmon-button-c-selected-edge);
680
+ }
681
+ /* Filter chips show a check when pressed. */
682
+ .salmon-button[data-variant='chip'][data-pressed]::after {
683
+ content: '';
684
+ order: -1;
685
+ inline-size: 0.3em;
686
+ block-size: 0.6em;
687
+ margin-block-start: -0.2em;
688
+ border: solid currentColor;
689
+ border-width: 0 2px 2px 0;
690
+ rotate: 45deg;
691
+ }
692
+
693
+ /* Progress fill from inline-start. */
694
+ .salmon-button[data-progress]::before {
695
+ content: '';
696
+ position: absolute;
697
+ z-index: -1;
698
+ inset-block: 0;
699
+ inset-inline-start: 0;
700
+ inline-size: var(--salmon-button-progress, 0%);
701
+ background: currentColor;
702
+ opacity: 0.22;
703
+ transition: inline-size var(--salmon-motion-duration-fast) var(--salmon-motion-easing);
704
+ }
705
+
706
+ /* Floating action button: circular, elevated, CSS positioned. */
707
+ .salmon-button[data-floating] {
708
+ --salmon-button-h: 56px;
709
+ --salmon-button-pad: 20px;
710
+ --salmon-button-inset: 16px;
711
+ position: fixed;
712
+ z-index: 10;
713
+ border-radius: var(--salmon-radius-full);
714
+ box-shadow: var(--salmon-shadow-lg);
715
+ }
716
+ .salmon-button[data-floating][data-size='sm'] {
717
+ --salmon-button-h: 40px;
718
+ --salmon-button-pad: 14px;
719
+ }
720
+ .salmon-button[data-floating][data-size='lg'] {
721
+ --salmon-button-h: 64px;
722
+ --salmon-button-pad: 24px;
723
+ }
724
+ .salmon-button[data-floating-scope='parent'] {
725
+ position: absolute;
726
+ }
727
+ .salmon-button[data-floating^='top'] {
728
+ inset-block-start: var(--salmon-button-inset);
729
+ }
730
+ .salmon-button[data-floating^='bottom'] {
731
+ inset-block-end: var(--salmon-button-inset);
732
+ }
733
+ .salmon-button[data-floating$='Start'] {
734
+ inset-inline-start: var(--salmon-button-inset);
735
+ }
736
+ .salmon-button[data-floating$='End'] {
737
+ inset-inline-end: var(--salmon-button-inset);
738
+ }
739
+ .salmon-button[data-floating^='middle'] {
740
+ inset-block-start: 50%;
741
+ translate: 0 -50%;
742
+ }
743
+ /* Direction sign: -1 under the nearest dir="rtl", 1 under dir="ltr". */
744
+ :where([dir='rtl']) { --salmon-dir: -1; }
745
+ :where([dir='ltr']) { --salmon-dir: 1; }
746
+ .salmon-button[data-floating$='Center'] {
747
+ inset-inline-start: 50%;
748
+ translate: calc(-50% * var(--salmon-dir, 1)) 0;
749
+ }
750
+ .salmon-button[data-floating='middleCenter'] {
751
+ translate: calc(-50% * var(--salmon-dir, 1)) -50%;
752
+ }
753
+
754
+ @media (prefers-reduced-motion: reduce) {
755
+ .salmon-button[data-progress]::before {
756
+ transition: none;
757
+ }
758
+ }
759
+
760
+ }
761
+ @layer salmon.c {
762
+ /* @salmonui/react/menu: Menu family, MenuButton and SplitButton parts.
763
+ The trigger buttons are styled by /button/styles.css. Logical properties only. */
764
+
765
+ .salmon-menu {
766
+ box-sizing: border-box;
767
+ display: flex;
768
+ flex-direction: column;
769
+ /* A popup opened from a trigger is at least as wide as the trigger (list.tsx). */
770
+ min-inline-size: max(160px, var(--salmon-menu-anchor-width, 0px));
771
+ max-height: calc(100vh - 16px);
772
+ overflow: auto;
773
+ padding: var(--salmon-space-2);
774
+ font-family: var(--salmon-font-sans);
775
+ font-size: var(--salmon-font-size-md);
776
+ line-height: var(--salmon-line-height-tight);
777
+ color: var(--salmon-text-primary);
778
+ background: var(--salmon-surface-overlay);
779
+ border: 1px solid var(--salmon-border-default);
780
+ border-radius: var(--salmon-radius-lg);
781
+ outline: none;
782
+ }
783
+
784
+ .salmon-menu[data-popup] {
785
+ inset: 0 auto auto 0;
786
+ margin: 0;
787
+ z-index: 1000;
788
+ box-shadow: var(--salmon-shadow-md);
789
+ }
790
+
791
+ .salmon-menu[data-popup]:not([data-placed]) {
792
+ visibility: hidden;
793
+ }
794
+
795
+ .salmon-menu *,
796
+ .salmon-menu ::before,
797
+ .salmon-menu ::after {
798
+ box-sizing: border-box;
799
+ }
800
+
801
+ .salmon-menu-item {
802
+ display: flex;
803
+ align-items: center;
804
+ gap: var(--salmon-space-2);
805
+ min-height: var(--salmon-control-height-md, 32px);
806
+ padding-block: var(--salmon-space-1);
807
+ padding-inline: var(--salmon-space-3);
808
+ border-radius: var(--salmon-radius-sm);
809
+ color: inherit;
810
+ text-decoration: none;
811
+ white-space: nowrap;
812
+ cursor: pointer;
813
+ outline: none;
814
+ user-select: none;
815
+ }
816
+
817
+ .salmon-menu-item[data-highlighted],
818
+ .salmon-menu-item[data-open] {
819
+ background: var(--salmon-surface-hover);
820
+ }
821
+
822
+ .salmon-menu-item:focus-visible {
823
+ outline: var(--salmon-state-focus-ring-width) solid var(--salmon-state-focus-ring);
824
+ outline-offset: calc(-1 * var(--salmon-state-focus-ring-width));
825
+ }
826
+
827
+ .salmon-menu-item[data-disabled] {
828
+ color: var(--salmon-text-disabled);
829
+ background: none;
830
+ cursor: default;
831
+ }
832
+
833
+ .salmon-menu-item-icon,
834
+ .salmon-menu-item-check,
835
+ .salmon-menu-submenu-indicator {
836
+ display: inline-flex;
837
+ flex: none;
838
+ align-items: center;
839
+ justify-content: center;
840
+ width: 16px;
841
+ height: 16px;
842
+ }
843
+
844
+ .salmon-menu-item-check {
845
+ visibility: hidden;
846
+ }
847
+
848
+ .salmon-menu-item[data-checked] .salmon-menu-item-check {
849
+ visibility: visible;
850
+ }
851
+
852
+ .salmon-menu-item-dot {
853
+ width: 6px;
854
+ height: 6px;
855
+ border-radius: var(--salmon-radius-full);
856
+ background: currentColor;
857
+ }
858
+
859
+ .salmon-menu-item-label {
860
+ flex: 1 1 auto;
861
+ }
862
+
863
+ .salmon-menu-submenu-indicator {
864
+ margin-inline-start: var(--salmon-space-3);
865
+ color: var(--salmon-text-secondary);
866
+ }
867
+
868
+ .salmon-menu-separator {
869
+ flex: none;
870
+ height: 1px;
871
+ margin-block: var(--salmon-space-1);
872
+ background: var(--salmon-border-subtle);
873
+ }
874
+
875
+ .salmon-menu-group {
876
+ display: flex;
877
+ flex-direction: column;
878
+ }
879
+
880
+ .salmon-menu-group-label {
881
+ padding-block: var(--salmon-space-1);
882
+ padding-inline: var(--salmon-space-3);
883
+ font-size: var(--salmon-font-size-sm);
884
+ font-weight: var(--salmon-font-weight-semibold);
885
+ color: var(--salmon-text-secondary);
886
+ }
887
+
888
+ .salmon-menu-button-indicator {
889
+ display: inline-flex;
890
+ transition: transform var(--salmon-motion-duration-fast) var(--salmon-motion-easing);
891
+ }
892
+
893
+ [data-open] > .salmon-button__icon > .salmon-menu-button-indicator,
894
+ [data-open] > .salmon-menu-button-indicator {
895
+ transform: rotate(180deg);
896
+ }
897
+
898
+ /* Directional icons supplied by the system mirror in RTL. */
899
+ .salmon-menu[dir='rtl'] .salmon-menu-submenu-indicator svg {
900
+ transform: scaleX(-1);
901
+ }
902
+
903
+ /* SplitButton is an attached ButtonGroup (button.css). Nested in an outer group
904
+ it joins its neighbours; in a vertical group it stretches and stays horizontal. */
905
+ [data-attached][data-orientation='horizontal'] > .salmon-split-button:not(:first-child) {
906
+ margin-inline-start: -1px;
907
+ }
908
+ [data-attached][data-orientation='horizontal'] > .salmon-split-button:not(:first-child) > .salmon-button:first-child,
909
+ [data-attached][data-orientation='horizontal'] > .salmon-split-button + .salmon-button {
910
+ border-start-start-radius: 0;
911
+ border-end-start-radius: 0;
912
+ }
913
+ [data-attached][data-orientation='horizontal'] > .salmon-split-button:not(:last-child) > .salmon-button:last-child,
914
+ [data-attached][data-orientation='horizontal'] > .salmon-button:has(+ .salmon-split-button) {
915
+ border-start-end-radius: 0;
916
+ border-end-end-radius: 0;
917
+ }
918
+ [data-orientation='vertical'] > .salmon-split-button {
919
+ display: flex;
920
+ }
921
+ [data-orientation='vertical'] > .salmon-split-button > .salmon-split-button-primary {
922
+ flex: 1 1 auto;
923
+ }
924
+ [data-attached][data-orientation='vertical'] > .salmon-split-button:not(:first-child) {
925
+ margin-block-start: -1px;
926
+ }
927
+ [data-attached][data-orientation='vertical'] > .salmon-split-button:not(:first-child) > .salmon-button,
928
+ [data-attached][data-orientation='vertical'] > .salmon-split-button + .salmon-button {
929
+ border-start-start-radius: 0;
930
+ border-start-end-radius: 0;
931
+ }
932
+ [data-attached][data-orientation='vertical'] > .salmon-split-button:not(:last-child) > .salmon-button,
933
+ [data-attached][data-orientation='vertical'] > .salmon-button:has(+ .salmon-split-button) {
934
+ border-end-start-radius: 0;
935
+ border-end-end-radius: 0;
936
+ }
937
+
938
+ /* ContextMenu target: a long-press opens the menu, not the touch callout. */
939
+ .salmon-context-menu {
940
+ -webkit-touch-callout: none;
941
+ }
942
+
943
+ /* Menubar (APG Menubar, horizontal). */
944
+ .salmon-menubar {
945
+ box-sizing: border-box;
946
+ display: flex;
947
+ align-items: center;
948
+ gap: 2px;
949
+ min-width: 0;
950
+ padding: var(--salmon-space-2);
951
+ font-family: var(--salmon-font-sans);
952
+ font-size: var(--salmon-font-size-md);
953
+ line-height: var(--salmon-line-height-tight);
954
+ color: var(--salmon-text-primary);
955
+ background: var(--salmon-surface-raised);
956
+ border: 1px solid var(--salmon-border-default);
957
+ border-radius: var(--salmon-radius-lg);
958
+ }
959
+
960
+ .salmon-menubar[data-overflow='scroll'] {
961
+ overflow-x: auto;
962
+ scrollbar-width: none;
963
+ }
964
+
965
+ .salmon-menubar[data-overflow='scroll']::-webkit-scrollbar {
966
+ display: none;
967
+ }
968
+
969
+ .salmon-menubar-item {
970
+ box-sizing: border-box;
971
+ display: inline-flex;
972
+ flex: none;
973
+ align-items: center;
974
+ gap: var(--salmon-space-2);
975
+ min-height: var(--salmon-control-height-md, 32px);
976
+ padding-block: var(--salmon-space-1);
977
+ padding-inline: var(--salmon-space-3);
978
+ border-radius: var(--salmon-radius-sm);
979
+ color: inherit;
980
+ text-decoration: none;
981
+ white-space: nowrap;
982
+ cursor: pointer;
983
+ outline: none;
984
+ user-select: none;
985
+ }
986
+
987
+ .salmon-menubar-item:hover,
988
+ .salmon-menubar-item[data-open] {
989
+ background: var(--salmon-surface-hover);
990
+ }
991
+
992
+ .salmon-menubar-item:focus-visible {
993
+ outline: var(--salmon-state-focus-ring-width) solid var(--salmon-state-focus-ring);
994
+ outline-offset: calc(-1 * var(--salmon-state-focus-ring-width));
995
+ }
996
+
997
+ .salmon-menubar-item[data-disabled] {
998
+ color: var(--salmon-text-disabled);
999
+ background: none;
1000
+ cursor: default;
1001
+ }
1002
+
1003
+ .salmon-menubar-item-icon {
1004
+ display: inline-flex;
1005
+ flex: none;
1006
+ width: 16px;
1007
+ height: 16px;
1008
+ }
1009
+
1010
+ /* overflow: 'scroll' indicators, shown while there is more to scroll to on that side. */
1011
+ .salmon-menubar-scroll {
1012
+ position: sticky;
1013
+ z-index: 1;
1014
+ display: none;
1015
+ flex: none;
1016
+ align-self: stretch;
1017
+ align-items: center;
1018
+ justify-content: center;
1019
+ width: 24px;
1020
+ color: var(--salmon-text-secondary);
1021
+ background: var(--salmon-surface-raised);
1022
+ cursor: pointer;
1023
+ }
1024
+
1025
+ .salmon-menubar-scroll[data-direction='backward'] {
1026
+ inset-inline-start: calc(-1 * var(--salmon-space-2));
1027
+ }
1028
+
1029
+ .salmon-menubar-scroll[data-direction='forward'] {
1030
+ inset-inline-end: calc(-1 * var(--salmon-space-2));
1031
+ margin-inline-start: auto;
1032
+ }
1033
+
1034
+ .salmon-menubar-scroll[data-direction='forward'] svg {
1035
+ transform: scaleX(-1);
1036
+ }
1037
+
1038
+ .salmon-menubar[data-scroll-start] > .salmon-menubar-scroll[data-direction='backward'],
1039
+ .salmon-menubar[data-scroll-end] > .salmon-menubar-scroll[data-direction='forward'] {
1040
+ display: flex;
1041
+ }
1042
+
1043
+ .salmon-menubar[dir='rtl'] .salmon-menubar-scroll svg,
1044
+ [dir='rtl'] .salmon-menubar .salmon-menubar-scroll svg {
1045
+ transform: scaleX(-1);
1046
+ }
1047
+
1048
+ [dir='rtl'] .salmon-menubar .salmon-menubar-scroll[data-direction='forward'] svg {
1049
+ transform: none;
1050
+ }
1051
+
1052
+ @media (prefers-reduced-motion: reduce) {
1053
+ .salmon-menu-button-indicator {
1054
+ transition: none;
1055
+ }
1056
+ }
1057
+
1058
+ @media (forced-colors: active) {
1059
+ .salmon-menu-item[data-highlighted] {
1060
+ forced-color-adjust: none;
1061
+ color: HighlightText;
1062
+ background: Highlight;
1063
+ }
1064
+ }
1065
+
1066
+ }
1067
+ @layer salmon.d {
1068
+ /* @salmonui/react/image-editor: ImageEditor.
1069
+ The published styles.css prepends the Button, Menu, Toolbar and
1070
+ visually-hidden rules it composes, so the subpath stylesheet is
1071
+ self-contained. Logical properties only; size through width / height. */
1072
+
1073
+ .salmon-image-editor {
1074
+ --salmon-image-editor-accent: var(--salmon-accent, #2f6fed);
1075
+ display: flex;
1076
+ flex-direction: column;
1077
+ box-sizing: border-box;
1078
+ min-inline-size: 0;
1079
+ block-size: 480px;
1080
+ border: 1px solid var(--salmon-border-default);
1081
+ border-radius: var(--salmon-radius-lg);
1082
+ background: var(--salmon-surface-base);
1083
+ color: var(--salmon-text-primary);
1084
+ font-family: var(--salmon-font-sans);
1085
+ font-size: var(--salmon-font-size-md);
1086
+ overflow: hidden;
1087
+ }
1088
+
1089
+ .salmon-image-editor-toolbar {
1090
+ flex: none;
1091
+ padding: var(--salmon-space-1);
1092
+ border-block-end: 1px solid var(--salmon-border-subtle);
1093
+ background: var(--salmon-surface-header);
1094
+ }
1095
+
1096
+ .salmon-image-editor-stage {
1097
+ position: relative;
1098
+ flex: 1 1 auto;
1099
+ min-block-size: 0;
1100
+ background:
1101
+ repeating-conic-gradient(var(--salmon-surface-sunken, #eef0f3) 0 25%, var(--salmon-surface-base) 0 50%) 0 0 / 16px 16px;
1102
+ }
1103
+
1104
+ .salmon-image-editor-canvas {
1105
+ display: block;
1106
+ inline-size: 100%;
1107
+ block-size: 100%;
1108
+ touch-action: none;
1109
+ user-select: none;
1110
+ outline: none;
1111
+ }
1112
+
1113
+ .salmon-image-editor-canvas:focus-visible {
1114
+ outline: 2px solid var(--salmon-focus-ring, var(--salmon-image-editor-accent));
1115
+ outline-offset: -2px;
1116
+ }
1117
+
1118
+ .salmon-image-editor-message {
1119
+ position: absolute;
1120
+ inset: 0;
1121
+ display: grid;
1122
+ place-items: center;
1123
+ padding: var(--salmon-space-4);
1124
+ color: var(--salmon-text-secondary);
1125
+ text-align: center;
1126
+ pointer-events: none;
1127
+ }
1128
+
1129
+ .salmon-image-editor-message[data-status='error'] {
1130
+ color: var(--salmon-danger-text, var(--salmon-text-primary));
1131
+ }
1132
+
1133
+ .salmon-image-editor-panel {
1134
+ position: absolute;
1135
+ inset-inline: var(--salmon-space-2);
1136
+ inset-block-end: var(--salmon-space-2);
1137
+ display: flex;
1138
+ flex-wrap: wrap;
1139
+ align-items: center;
1140
+ gap: var(--salmon-space-2);
1141
+ padding: var(--salmon-space-2);
1142
+ border: 1px solid var(--salmon-border-subtle);
1143
+ border-radius: var(--salmon-radius-md);
1144
+ background: var(--salmon-surface-raised, var(--salmon-surface-base));
1145
+ box-shadow: var(--salmon-shadow-md, 0 2px 8px rgb(0 0 0 / 0.15));
1146
+ }
1147
+
1148
+ .salmon-image-editor-field {
1149
+ display: inline-flex;
1150
+ align-items: center;
1151
+ gap: var(--salmon-space-1);
1152
+ font-size: var(--salmon-font-size-sm);
1153
+ }
1154
+
1155
+ .salmon-image-editor-field input[type='range'] {
1156
+ inline-size: 110px;
1157
+ accent-color: var(--salmon-image-editor-accent);
1158
+ }
1159
+
1160
+ .salmon-image-editor-field input[type='number'] {
1161
+ inline-size: 72px;
1162
+ padding-block: 2px;
1163
+ padding-inline: 4px;
1164
+ border: 1px solid var(--salmon-border-default);
1165
+ border-radius: var(--salmon-radius-md);
1166
+ background: var(--salmon-surface-base);
1167
+ color: inherit;
1168
+ font: inherit;
1169
+ }
1170
+
1171
+ .salmon-image-editor-field input[type='color'] {
1172
+ inline-size: 28px;
1173
+ block-size: 24px;
1174
+ padding: 0;
1175
+ border: 1px solid var(--salmon-border-default);
1176
+ border-radius: var(--salmon-radius-sm);
1177
+ background: none;
1178
+ }
1179
+
1180
+ .salmon-image-editor-field-value {
1181
+ min-inline-size: 3ch;
1182
+ color: var(--salmon-text-secondary);
1183
+ font-variant-numeric: tabular-nums;
1184
+ }
1185
+
1186
+ .salmon-image-editor-choices {
1187
+ display: inline-flex;
1188
+ flex-wrap: wrap;
1189
+ gap: 2px;
1190
+ }
1191
+
1192
+ .salmon-image-editor-quick {
1193
+ position: absolute;
1194
+ inset-block-start: 0;
1195
+ inset-inline-start: 0;
1196
+ padding: 2px;
1197
+ border: 1px solid var(--salmon-border-subtle);
1198
+ border-radius: var(--salmon-radius-md);
1199
+ background: var(--salmon-surface-raised, var(--salmon-surface-base));
1200
+ box-shadow: var(--salmon-shadow-md, 0 2px 8px rgb(0 0 0 / 0.15));
1201
+ visibility: hidden;
1202
+ }
1203
+
1204
+ .salmon-image-editor-text-input {
1205
+ position: absolute;
1206
+ inset-block-start: 0;
1207
+ inset-inline-start: 0;
1208
+ transform-origin: 0 0;
1209
+ min-inline-size: 4ch;
1210
+ margin: 0;
1211
+ padding: 0;
1212
+ border: 1px dashed var(--salmon-image-editor-accent);
1213
+ background: rgb(255 255 255 / 0.6);
1214
+ line-height: 1.2;
1215
+ resize: none;
1216
+ overflow: hidden;
1217
+ field-sizing: content;
1218
+ }
1219
+
1220
+ @media (pointer: coarse) {
1221
+ .salmon-image-editor-quick .salmon-button,
1222
+ .salmon-image-editor-toolbar .salmon-button {
1223
+ min-inline-size: 44px;
1224
+ min-block-size: 44px;
1225
+ }
1226
+ }
1227
+
1228
+ }