@viasat/beam-styles 2.38.0 → 2.39.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.
@@ -42,7 +42,7 @@ $checkboxStates: (
42
42
  display: inherit;
43
43
  word-break: break-word;
44
44
  color: tokens.$bm-comp-input-color-text;
45
- font: tokens.$bm-comp-input-typo-default;
45
+ font: tokens.$bm-comp-input-typo-md;
46
46
  gap: tokens.$bm-comp-input-space-choice-gap-inside;
47
47
  cursor: var(#{$inputChoiceLabelCursor}, pointer);
48
48
  }
@@ -175,6 +175,12 @@ $stateStyleTokens: (
175
175
  // chevron are unaffected, per EPTOOLS-1515.
176
176
  &__content-before,
177
177
  &__content-after {
178
+ svg,
179
+ ::slotted([slot*='content']) {
180
+ color: tokens.$bm-comp-input-color-icon;
181
+ height: tokens.$bm-primitive-dimension-100;
182
+ }
183
+
178
184
  @include inputVars.field-content-icon;
179
185
  }
180
186
 
@@ -241,7 +247,8 @@ $stateStyleTokens: (
241
247
  padding-block: var(#{inputVars.$fieldPaddingY});
242
248
  padding-inline: var(#{inputVars.$fieldPaddingX})
243
249
  calc(
244
- #{$expandIconWidth} + #{tokens.$bm-comp-input-space-field-gap} + var(#{inputVars.$fieldPaddingX})
250
+ #{$expandIconWidth} + #{tokens.$bm-comp-input-space-field-gap} +
251
+ var(#{inputVars.$fieldPaddingX})
245
252
  );
246
253
 
247
254
  min-height: var(#{inputVars.$fieldHeight});
@@ -85,9 +85,9 @@ $stateStyleTokens: (
85
85
  gap: tokens.$bm-comp-input-space-field-gap;
86
86
  box-shadow: tokens.$bm-comp-input-shadow-field;
87
87
  background-color: tokens.$bm-comp-input-color-bg;
88
- height: tokens.$bm-comp-input-size-field-md-height;
89
- padding-block: tokens.$bm-comp-input-space-field-y;
90
- padding-inline: tokens.$bm-comp-input-space-field-x;
88
+ height: tokens.$bm-comp-input-size-field-height-md;
89
+ padding-block: tokens.$bm-comp-input-space-field-y-md;
90
+ padding-inline: tokens.$bm-comp-input-space-field-x-md;
91
91
 
92
92
  &:focus-within {
93
93
  @include mixins.simulated-inset-outline(
@@ -103,7 +103,7 @@ $stateStyleTokens: (
103
103
  display: inline-flex;
104
104
  align-items: baseline;
105
105
  color: tokens.$bm-comp-input-color-text;
106
- font: tokens.$bm-comp-input-typo-default;
106
+ font: tokens.$bm-comp-input-typo-md;
107
107
  font-variant-numeric: tabular-nums;
108
108
  gap: tokens.$bm-sem-space-12;
109
109
  }
@@ -140,7 +140,7 @@ $stateStyleTokens: (
140
140
 
141
141
  &__field &__separator {
142
142
  color: tokens.$bm-comp-input-color-text;
143
- font: tokens.$bm-comp-input-typo-default;
143
+ font: tokens.$bm-comp-input-typo-md;
144
144
  user-select: none;
145
145
  }
146
146
  }
@@ -19,25 +19,25 @@ $fieldIconSize: '--#{constants.$prefix}input-field-icon-size';
19
19
  // bm-comp-input-size-field-{sm,lg}-* component tokens once PR #1315 merges.
20
20
  $sizes: (
21
21
  'sm': (
22
- 'height': tokens.$bm-sem-size-height-sm,
23
- 'padding-y': tokens.$bm-sem-space-25,
24
- 'padding-x': tokens.$bm-sem-space-75,
25
- 'icon': tokens.$bm-sem-size-icon-sm,
26
- 'font': tokens.$bm-sem-typo-compact-body-sm,
22
+ 'height': tokens.$bm-comp-input-size-field-height-sm,
23
+ 'padding-y': tokens.$bm-comp-input-space-field-y-sm,
24
+ 'padding-x': tokens.$bm-comp-input-space-field-x-sm,
25
+ 'icon': tokens.$bm-comp-input-size-field-icon-sm,
26
+ 'font': tokens.$bm-comp-input-typo-sm,
27
27
  ),
28
28
  'md': (
29
- 'height': tokens.$bm-comp-input-size-field-md-height,
30
- 'padding-y': tokens.$bm-comp-input-space-field-y,
31
- 'padding-x': tokens.$bm-comp-input-space-field-x,
32
- 'icon': tokens.$bm-comp-input-size-field-icon,
33
- 'font': tokens.$bm-comp-input-typo-default,
29
+ 'height': tokens.$bm-comp-input-size-field-height-md,
30
+ 'padding-y': tokens.$bm-comp-input-space-field-y-md,
31
+ 'padding-x': tokens.$bm-comp-input-space-field-x-md,
32
+ 'icon': tokens.$bm-comp-input-size-field-icon-md,
33
+ 'font': tokens.$bm-comp-input-typo-md,
34
34
  ),
35
35
  'lg': (
36
- 'height': tokens.$bm-sem-size-height-lg,
37
- 'padding-y': tokens.$bm-sem-space-75,
38
- 'padding-x': tokens.$bm-sem-space-125,
39
- 'icon': tokens.$bm-comp-input-size-field-icon,
40
- 'font': tokens.$bm-comp-input-typo-default,
36
+ 'height': tokens.$bm-comp-input-size-field-height-lg,
37
+ 'padding-y': tokens.$bm-comp-input-space-field-y-lg,
38
+ 'padding-x': tokens.$bm-comp-input-space-field-x-lg,
39
+ 'icon': tokens.$bm-comp-input-size-field-icon-lg,
40
+ 'font': tokens.$bm-comp-input-typo-lg,
41
41
  ),
42
42
  );
43
43
  // Emits the per-size field custom properties. Include inside an input
@@ -127,7 +127,8 @@ $stateStyleTokens: (
127
127
  padding-block: var(#{inputVars.$fieldPaddingY});
128
128
  padding-inline: var(#{inputVars.$fieldPaddingX})
129
129
  calc(
130
- #{$expandIconWidth} + #{tokens.$bm-comp-input-space-field-gap} + var(#{inputVars.$fieldPaddingX})
130
+ #{$expandIconWidth} + #{tokens.$bm-comp-input-space-field-gap} +
131
+ var(#{inputVars.$fieldPaddingX})
131
132
  );
132
133
 
133
134
  &:focus {
@@ -22,7 +22,7 @@ $panel-sizes: (
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
 
25
- background-color: tokens.$bm-sem-color-surface-01;
25
+ background-color: tokens.$bm-comp-panel-color-bg;
26
26
 
27
27
  &--inline {
28
28
  position: relative;
@@ -70,16 +70,31 @@ $panel-sizes: (
70
70
 
71
71
  $floating-positions: (
72
72
  'start': (
73
- 'x': ('left',),
74
- 'y': ('top', 'bottom'),
73
+ 'x': (
74
+ 'left',
75
+ ),
76
+ 'y': (
77
+ 'top',
78
+ 'bottom',
79
+ ),
75
80
  ),
76
81
  'end': (
77
- 'x': ('right',),
78
- 'y': ('top', 'bottom'),
82
+ 'x': (
83
+ 'right',
84
+ ),
85
+ 'y': (
86
+ 'top',
87
+ 'bottom',
88
+ ),
79
89
  ),
80
90
  'bottom': (
81
- 'x': ('left', 'right'),
82
- 'y': ('bottom',),
91
+ 'x': (
92
+ 'left',
93
+ 'right',
94
+ ),
95
+ 'y': (
96
+ 'bottom',
97
+ ),
83
98
  ),
84
99
  );
85
100
 
@@ -308,9 +323,27 @@ $panel-sizes: (
308
323
  $panelResizeHandleSize: 0.75rem;
309
324
 
310
325
  $resize-handle-positions: (
311
- 'start': (cursor: col-resize, size-prop: width, stretch: inset-block, placement: inset-inline-end, border-side: inline-end),
312
- 'end': (cursor: col-resize, size-prop: width, stretch: inset-block, placement: inset-inline-start, border-side: inline-start),
313
- 'bottom': (cursor: row-resize, size-prop: height, stretch: inset-inline, placement: inset-block-start, border-side: block-start),
326
+ 'start': (
327
+ cursor: col-resize,
328
+ size-prop: width,
329
+ stretch: inset-block,
330
+ placement: inset-inline-end,
331
+ border-side: inline-end,
332
+ ),
333
+ 'end': (
334
+ cursor: col-resize,
335
+ size-prop: width,
336
+ stretch: inset-block,
337
+ placement: inset-inline-start,
338
+ border-side: inline-start,
339
+ ),
340
+ 'bottom': (
341
+ cursor: row-resize,
342
+ size-prop: height,
343
+ stretch: inset-inline,
344
+ placement: inset-block-start,
345
+ border-side: block-start,
346
+ ),
314
347
  );
315
348
 
316
349
  @each $pos, $cfg in $resize-handle-positions {
@@ -337,11 +370,15 @@ $resize-handle-positions: (
337
370
  &[data-status='open'] {
338
371
  transition: $prop $duration ease-out;
339
372
  #{$prop}: $visible;
340
- @media (prefers-reduced-motion: reduce) { transition: none; }
373
+ @media (prefers-reduced-motion: reduce) {
374
+ transition: none;
375
+ }
341
376
  }
342
377
  &[data-status='close'] {
343
378
  transition: $prop $duration ease-in;
344
- @media (prefers-reduced-motion: reduce) { transition: none; }
379
+ @media (prefers-reduced-motion: reduce) {
380
+ transition: none;
381
+ }
345
382
  }
346
383
  }
347
384
 
@@ -370,13 +407,17 @@ $resize-handle-positions: (
370
407
  &[data-status] {
371
408
  width: 0;
372
409
  transition: width $panel-transition-duration ease-in;
373
- @media (prefers-reduced-motion: reduce) { transition: none; }
410
+ @media (prefers-reduced-motion: reduce) {
411
+ transition: none;
412
+ }
374
413
  }
375
414
 
376
415
  &[data-status='open'] {
377
416
  width: var(#{$panelSizeVar}, #{tokens.$bm-comp-panel-size-md});
378
417
  transition: width $panel-transition-duration ease-out;
379
- @media (prefers-reduced-motion: reduce) { transition: none; }
418
+ @media (prefers-reduced-motion: reduce) {
419
+ transition: none;
420
+ }
380
421
  }
381
422
 
382
423
  &[data-position='bottom'][data-status] {
@@ -388,14 +429,18 @@ $resize-handle-positions: (
388
429
  .#{$panelBaseClass}__inline-wrapper-content {
389
430
  transform: translateY(100%);
390
431
  transition: transform $panel-transition-duration ease-in;
391
- @media (prefers-reduced-motion: reduce) { transition: none; }
432
+ @media (prefers-reduced-motion: reduce) {
433
+ transition: none;
434
+ }
392
435
  }
393
436
 
394
437
  &[data-position='bottom'][data-status='open']
395
438
  .#{$panelBaseClass}__inline-wrapper-content {
396
439
  transform: translateY(0);
397
440
  transition: transform $panel-transition-duration ease-out;
398
- @media (prefers-reduced-motion: reduce) { transition: none; }
441
+ @media (prefers-reduced-motion: reduce) {
442
+ transition: none;
443
+ }
399
444
  }
400
445
  }
401
446
 
@@ -42,7 +42,7 @@ $radioButtonStates: (
42
42
  display: inherit;
43
43
  word-break: break-word;
44
44
  color: tokens.$bm-comp-input-color-text;
45
- font: tokens.$bm-comp-input-typo-default;
45
+ font: tokens.$bm-comp-input-typo-md;
46
46
  gap: tokens.$bm-comp-input-space-choice-gap-inside;
47
47
  cursor: var(#{$inputChoiceLabelCursor}, pointer);
48
48
  pointer-events: var(#{$inputChoiceLabelPointerEvents}, auto);
@@ -85,7 +85,7 @@ $stateStyleTokens: (
85
85
  &::-webkit-search-cancel-button,
86
86
  &::-webkit-search-results-button,
87
87
  &::-webkit-search-results-decoration {
88
- -webkit-appearance:none;
88
+ -webkit-appearance: none;
89
89
  }
90
90
 
91
91
  &::placeholder {
@@ -108,7 +108,8 @@ $stateStyleTokens: (
108
108
  }
109
109
  }
110
110
 
111
- &--disabled, &--disabled &__field {
111
+ &--disabled,
112
+ &--disabled &__field {
112
113
  #{$searchCursor}: not-allowed;
113
114
  #{$searchInputCursor}: not-allowed;
114
115
  }
@@ -183,8 +184,7 @@ $stateStyleTokens: (
183
184
  svg,
184
185
  ::slotted([slot*='content']) {
185
186
  color: tokens.$bm-comp-input-color-icon;
186
- width: tokens.$bm-comp-input-size-field-icon;
187
- height: tokens.$bm-comp-input-size-field-icon;
187
+ height: tokens.$bm-primitive-dimension-100;
188
188
  }
189
189
 
190
190
  // Beam icons resize with the field; third-party SVGs keep the fixed size
@@ -32,7 +32,7 @@ $sliderTransitionDuration: 0.05s;
32
32
  #{$sliderMinPercentage}: 0cqw;
33
33
  #{$sliderMaxPercentage}: 0cqw;
34
34
 
35
- font: tokens.$bm-comp-input-typo-default;
35
+ font: tokens.$bm-comp-input-typo-md;
36
36
 
37
37
  &--disabled {
38
38
  #{$sliderCursor}: not-allowed;
@@ -42,7 +42,7 @@ $switchStates: (
42
42
  gap: tokens.$bm-comp-input-space-choice-gap-inside;
43
43
  min-width: tokens.$bm-comp-input-size-choice-switch-width;
44
44
  min-height: tokens.$bm-comp-input-size-choice-switch-height;
45
- font: tokens.$bm-comp-input-typo-default;
45
+ font: tokens.$bm-comp-input-typo-md;
46
46
  color: tokens.$bm-comp-input-color-text;
47
47
  cursor: var(#{$inputChoiceLabelCursor}, pointer);
48
48
  pointer-events: var(#{$inputChoiceLabelPointerEvents}, auto);
@@ -151,12 +151,12 @@ $stateStyleTokens: (
151
151
  border-width: tokens.$bm-comp-input-border-width-field-default;
152
152
 
153
153
  color: tokens.$bm-comp-input-color-text;
154
- font: tokens.$bm-comp-input-typo-default;
154
+ font: tokens.$bm-comp-input-typo-md;
155
155
  cursor: var(#{$textAreaInputCursor}, text);
156
156
  box-shadow: tokens.$bm-comp-input-shadow-field;
157
157
  background-color: tokens.$bm-comp-input-color-bg;
158
158
  min-height: tokens.$bm-comp-input-size-field-text-area-height;
159
- padding: tokens.$bm-comp-input-space-field-y tokens.$bm-comp-input-space-field-x;
159
+ padding: tokens.$bm-comp-input-space-field-y-md tokens.$bm-comp-input-space-field-x-md;
160
160
  transform: translate3d(
161
161
  tokens.$bm-sem-space-0,
162
162
  tokens.$bm-sem-space-0,
@@ -158,8 +158,7 @@ $stateStyleTokens: (
158
158
  svg,
159
159
  ::slotted([slot*='content']) {
160
160
  color: tokens.$bm-comp-input-color-icon;
161
- width: tokens.$bm-comp-input-size-field-icon;
162
- height: tokens.$bm-comp-input-size-field-icon;
161
+ height: tokens.$bm-primitive-dimension-100;
163
162
  }
164
163
 
165
164
  // Beam icons resize with the field; third-party SVGs keep the fixed size
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viasat/beam-styles",
3
- "version": "2.38.0",
3
+ "version": "2.39.0",
4
4
  "description": "SCSS modules and component styles for the Beam Design System",
5
5
  "license": "MIT",
6
6
  "author": "Viasat",