@viasat/beam-styles 2.48.1 → 2.49.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.
@@ -0,0 +1,97 @@
1
+ @use 'sass:map';
2
+ @use './../utils/tokens.scss' as tokens;
3
+ @use './dataTable.vars.scss' as dataTableVars;
4
+
5
+ @import '@viasat/beam-tokens/components/DataTable';
6
+
7
+ $dataTableBaseClass: dataTableVars.$dataTableBaseClass;
8
+
9
+ $dataTableDensity: (
10
+ 'sm': (
11
+ 'cell-height': tokens.$bm-comp-data-table-size-cell-sm-height,
12
+ 'cell-y': tokens.$bm-comp-data-table-space-cell-sm-y,
13
+ ),
14
+ 'md': (
15
+ 'cell-height': tokens.$bm-comp-data-table-size-cell-md-height,
16
+ 'cell-y': tokens.$bm-comp-data-table-space-cell-md-y,
17
+ ),
18
+ 'lg': (
19
+ 'cell-height': tokens.$bm-comp-data-table-size-cell-lg-height,
20
+ 'cell-y': tokens.$bm-comp-data-table-space-cell-lg-y,
21
+ ),
22
+ );
23
+
24
+ .#{$dataTableBaseClass}-container {
25
+ display: flex;
26
+ flex-direction: column;
27
+ width: 100%;
28
+
29
+ .#{$dataTableBaseClass}__toolbar {
30
+ color: tokens.$bm-comp-data-table-color-header-body;
31
+ text-align: start;
32
+ padding-inline: tokens.$bm-comp-data-table-space-x;
33
+ padding-block: tokens.$bm-comp-data-table-space-header-md-y;
34
+ }
35
+ }
36
+
37
+ .#{$dataTableBaseClass} {
38
+ width: 100%;
39
+ border-collapse: collapse;
40
+ background: tokens.$bm-comp-data-table-color-bg;
41
+ border-radius: tokens.$bm-comp-data-table-radius;
42
+ color: tokens.$bm-comp-data-table-color-cell-text;
43
+
44
+ &__header {
45
+ color: tokens.$bm-comp-data-table-color-header-heading;
46
+ font: tokens.$bm-comp-data-table-typo-col-header;
47
+ text-align: start;
48
+ padding-inline: tokens.$bm-comp-data-table-space-x;
49
+ padding-block: tokens.$bm-comp-data-table-space-header-md-y;
50
+ }
51
+
52
+ &__head {
53
+ background: tokens.$bm-comp-data-table-color-col-header-bg;
54
+ }
55
+
56
+ &__column-header {
57
+ background: tokens.$bm-comp-data-table-color-col-header-bg;
58
+ color: tokens.$bm-comp-data-table-color-col-header-text;
59
+ font: tokens.$bm-comp-data-table-typo-col-header;
60
+ text-align: start;
61
+ }
62
+
63
+ &__body {
64
+ background: tokens.$bm-comp-data-table-color-bg;
65
+ }
66
+
67
+ &__row {
68
+ &:nth-of-type(even) {
69
+ background: tokens.$bm-comp-data-table-color-zebra;
70
+ }
71
+ }
72
+
73
+ &__cell {
74
+ font: tokens.$bm-comp-data-table-typo-cell;
75
+ color: tokens.$bm-comp-data-table-color-cell-text;
76
+ border-bottom: tokens.$bm-sem-border-width-md solid
77
+ tokens.$bm-comp-data-table-color-border;
78
+ }
79
+
80
+ &__footer {
81
+ color: tokens.$bm-comp-data-table-color-cell-text;
82
+ padding-inline: tokens.$bm-comp-data-table-space-x;
83
+ padding-block: tokens.$bm-comp-data-table-space-footer-md-y;
84
+ }
85
+ }
86
+
87
+ // Density modifiers (sm / md / lg)
88
+ @each $density, $props in $dataTableDensity {
89
+ .#{$dataTableBaseClass}--#{$density} {
90
+ .#{$dataTableBaseClass}__cell,
91
+ .#{$dataTableBaseClass}__column-header {
92
+ height: map.get($props, 'cell-height');
93
+ padding-block: map.get($props, 'cell-y');
94
+ padding-inline: tokens.$bm-comp-data-table-space-x;
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,3 @@
1
+ @use './../utils/constants.scss';
2
+
3
+ $dataTableBaseClass: '#{constants.$prefix}data-table';
@@ -15,6 +15,7 @@
15
15
  @use './chipsGroup.module.scss';
16
16
  @use './closeButton.module.scss';
17
17
  @use './combobox.module.scss';
18
+ @use './dataTable.module.scss';
18
19
  @use './dateField.module.scss';
19
20
  @use './dialog.module.scss';
20
21
  @use './divider.module.scss';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viasat/beam-styles",
3
- "version": "2.48.1",
3
+ "version": "2.49.0",
4
4
  "description": "SCSS modules and component styles for the Beam Design System",
5
5
  "license": "MIT",
6
6
  "author": "Viasat",
package/styles.css CHANGED
@@ -6234,6 +6234,304 @@ textarea:focus-visible,
6234
6234
  overflow-y: auto;
6235
6235
  }
6236
6236
 
6237
+ :root,
6238
+ :host,
6239
+ .bm-light,
6240
+ .bm-dark .bm-inverse,
6241
+ .bm-dark.bm-inverse,
6242
+ [data-bm-theme~=bm-dark] .bm-inverse,
6243
+ [data-bm-theme~=bm-dark].bm-inverse,
6244
+ .bm-enterprise,
6245
+ .bm-consumer,
6246
+ [data-bm-theme~=bm-light] {
6247
+ --bm-comp-data-table-color-bg: var(--bm-sem-color-surface-01, #ffffff);
6248
+ --bm-comp-data-table-color-border: var(--bm-sem-color-border-01, #dfe7ec);
6249
+ --bm-comp-data-table-color-zebra: var(
6250
+ --bm-sem-color-surface-highlight,
6251
+ rgba(159, 175, 188, 0.16)
6252
+ );
6253
+ --bm-comp-data-table-color-header-heading: var(
6254
+ --bm-sem-color-text-primary,
6255
+ #141d24
6256
+ );
6257
+ --bm-comp-data-table-color-header-body: var(
6258
+ --bm-sem-color-text-secondary,
6259
+ #576775
6260
+ );
6261
+ --bm-comp-data-table-color-col-header-bg: var(
6262
+ --bm-sem-color-surface-transparent,
6263
+ #ffffff00
6264
+ );
6265
+ --bm-comp-data-table-color-col-header-text: var(
6266
+ --bm-sem-color-text-primary,
6267
+ #141d24
6268
+ );
6269
+ --bm-comp-data-table-color-col-header-group-bg: var(
6270
+ --bm-sem-color-surface-highlight,
6271
+ rgba(159, 175, 188, 0.16)
6272
+ );
6273
+ --bm-comp-data-table-color-col-header-group-text: var(
6274
+ --bm-sem-color-text-secondary,
6275
+ #576775
6276
+ );
6277
+ --bm-comp-data-table-color-cell-text: var(
6278
+ --bm-sem-color-text-primary,
6279
+ #141d24
6280
+ );
6281
+ --bm-comp-data-table-color-cell-text-supporting: var(
6282
+ --bm-sem-color-text-secondary,
6283
+ #576775
6284
+ );
6285
+ --bm-comp-data-table-color-cell-icon: var(
6286
+ --bm-sem-color-icon-secondary,
6287
+ #576775
6288
+ );
6289
+ --bm-comp-data-table-space-x: var(--bm-sem-space-100, 1rem);
6290
+ --bm-comp-data-table-space-header-gap: var(--bm-sem-space-50, 0.5rem);
6291
+ --bm-comp-data-table-space-header-sm-x: var(--bm-sem-space-75, 0.75rem);
6292
+ --bm-comp-data-table-space-header-md-y: var(--bm-sem-space-100, 1rem);
6293
+ --bm-comp-data-table-space-header-lg-y: var(--bm-sem-space-125, 1.25rem);
6294
+ --bm-comp-data-table-space-col-header-gap: var(--bm-sem-space-25, 0.25rem);
6295
+ --bm-comp-data-table-space-col-header-group-height: var(
6296
+ --bm-primitive-dimension-200,
6297
+ 2rem
6298
+ );
6299
+ --bm-comp-data-table-space-cell-gap: var(--bm-sem-space-50, 0.5rem);
6300
+ --bm-comp-data-table-space-cell-sm-y: var(--bm-sem-space-75, 0.75rem);
6301
+ --bm-comp-data-table-space-cell-md-y: var(--bm-sem-space-100, 1rem);
6302
+ --bm-comp-data-table-space-cell-lg-y: var(--bm-sem-space-125, 1.25rem);
6303
+ --bm-comp-data-table-space-footer-sm-x: var(--bm-sem-space-50, 0.5rem);
6304
+ --bm-comp-data-table-space-footer-md-y: var(--bm-sem-space-100, 1rem);
6305
+ --bm-comp-data-table-space-footer-lg-y: var(--bm-sem-space-125, 1.25rem);
6306
+ --bm-comp-data-table-space-section-inner-y: var(--bm-sem-space-25, 0.25rem);
6307
+ --bm-comp-data-table-space-section-sm-y: var(--bm-sem-space-50, 0.5rem);
6308
+ --bm-comp-data-table-space-section-md-y: var(--bm-sem-space-75, 0.75rem);
6309
+ --bm-comp-data-table-space-section-lg-y: var(--bm-sem-space-100, 1rem);
6310
+ --bm-comp-data-table-typo-cell: var(
6311
+ --bm-sem-typo-body-sm,
6312
+ 400 0.875rem/1.25rem "Source Sans Pro"
6313
+ );
6314
+ --bm-comp-data-table-typo-cell-emphisis: var(
6315
+ --bm-sem-typo-label-sm,
6316
+ 600 0.875rem/1.25rem "Source Sans Pro"
6317
+ );
6318
+ --bm-comp-data-table-typo-cell-supporting: var(
6319
+ --bm-sem-typo-compact-body-xs,
6320
+ 400 0.75rem/1rem "Source Sans Pro"
6321
+ );
6322
+ --bm-comp-data-table-typo-col-header: var(
6323
+ --bm-sem-typo-compact-label-sm,
6324
+ 600 0.875rem/1rem "Source Sans Pro"
6325
+ );
6326
+ --bm-comp-data-table-typo-col-header-group: var(
6327
+ --bm-sem-typo-compact-label-xs,
6328
+ 600 0.75rem/1rem "Source Sans Pro"
6329
+ );
6330
+ --bm-comp-data-table-size-col-header-group-height: var(
6331
+ --bm-primitive-dimension-225,
6332
+ 2.25rem
6333
+ );
6334
+ --bm-comp-data-table-size-cell-sm-height: var(
6335
+ --bm-primitive-dimension-275,
6336
+ 2.75rem
6337
+ );
6338
+ --bm-comp-data-table-size-cell-md-height: var(
6339
+ --bm-primitive-dimension-325,
6340
+ 3.25rem
6341
+ );
6342
+ --bm-comp-data-table-size-cell-lg-height: var(
6343
+ --bm-primitive-dimension-375,
6344
+ 3.75rem
6345
+ );
6346
+ --bm-comp-data-table-size-cell-icon: var(--bm-sem-size-icon-md, 1.25rem);
6347
+ --bm-comp-data-table-radius: var(--bm-sem-radius-md, 0.5rem);
6348
+ }
6349
+
6350
+ :host,
6351
+ .bm-dark,
6352
+ .bm-light .bm-inverse,
6353
+ .bm-light.bm-inverse,
6354
+ [data-bm-theme~=bm-light] .bm-inverse,
6355
+ [data-bm-theme~=bm-light].bm-inverse,
6356
+ .bm-enterprise,
6357
+ .bm-consumer,
6358
+ [data-bm-theme~=bm-dark] {
6359
+ --bm-comp-data-table-color-bg: var(--bm-sem-color-surface-01, #202e39);
6360
+ --bm-comp-data-table-color-border: var(--bm-sem-color-border-01, #32424e);
6361
+ --bm-comp-data-table-color-zebra: var(
6362
+ --bm-sem-color-surface-highlight,
6363
+ rgba(134, 151, 165, 0.16)
6364
+ );
6365
+ --bm-comp-data-table-color-header-heading: var(
6366
+ --bm-sem-color-text-primary,
6367
+ #ffffff
6368
+ );
6369
+ --bm-comp-data-table-color-header-body: var(
6370
+ --bm-sem-color-text-secondary,
6371
+ #c3cdd5
6372
+ );
6373
+ --bm-comp-data-table-color-col-header-bg: var(
6374
+ --bm-sem-color-surface-transparent,
6375
+ #ffffff00
6376
+ );
6377
+ --bm-comp-data-table-color-col-header-text: var(
6378
+ --bm-sem-color-text-primary,
6379
+ #ffffff
6380
+ );
6381
+ --bm-comp-data-table-color-col-header-group-bg: var(
6382
+ --bm-sem-color-surface-highlight,
6383
+ rgba(134, 151, 165, 0.16)
6384
+ );
6385
+ --bm-comp-data-table-color-col-header-group-text: var(
6386
+ --bm-sem-color-text-secondary,
6387
+ #c3cdd5
6388
+ );
6389
+ --bm-comp-data-table-color-cell-text: var(
6390
+ --bm-sem-color-text-primary,
6391
+ #ffffff
6392
+ );
6393
+ --bm-comp-data-table-color-cell-text-supporting: var(
6394
+ --bm-sem-color-text-secondary,
6395
+ #c3cdd5
6396
+ );
6397
+ --bm-comp-data-table-color-cell-icon: var(
6398
+ --bm-sem-color-icon-secondary,
6399
+ #c3cdd5
6400
+ );
6401
+ --bm-comp-data-table-space-x: var(--bm-sem-space-100, 1rem);
6402
+ --bm-comp-data-table-space-header-gap: var(--bm-sem-space-50, 0.5rem);
6403
+ --bm-comp-data-table-space-header-sm-x: var(--bm-sem-space-75, 0.75rem);
6404
+ --bm-comp-data-table-space-header-md-y: var(--bm-sem-space-100, 1rem);
6405
+ --bm-comp-data-table-space-header-lg-y: var(--bm-sem-space-125, 1.25rem);
6406
+ --bm-comp-data-table-space-col-header-gap: var(--bm-sem-space-25, 0.25rem);
6407
+ --bm-comp-data-table-space-col-header-group-height: var(
6408
+ --bm-primitive-dimension-200,
6409
+ 2rem
6410
+ );
6411
+ --bm-comp-data-table-space-cell-gap: var(--bm-sem-space-50, 0.5rem);
6412
+ --bm-comp-data-table-space-cell-sm-y: var(--bm-sem-space-75, 0.75rem);
6413
+ --bm-comp-data-table-space-cell-md-y: var(--bm-sem-space-100, 1rem);
6414
+ --bm-comp-data-table-space-cell-lg-y: var(--bm-sem-space-125, 1.25rem);
6415
+ --bm-comp-data-table-space-footer-sm-x: var(--bm-sem-space-50, 0.5rem);
6416
+ --bm-comp-data-table-space-footer-md-y: var(--bm-sem-space-100, 1rem);
6417
+ --bm-comp-data-table-space-footer-lg-y: var(--bm-sem-space-125, 1.25rem);
6418
+ --bm-comp-data-table-space-section-inner-y: var(--bm-sem-space-25, 0.25rem);
6419
+ --bm-comp-data-table-space-section-sm-y: var(--bm-sem-space-50, 0.5rem);
6420
+ --bm-comp-data-table-space-section-md-y: var(--bm-sem-space-75, 0.75rem);
6421
+ --bm-comp-data-table-space-section-lg-y: var(--bm-sem-space-100, 1rem);
6422
+ --bm-comp-data-table-typo-cell: var(
6423
+ --bm-sem-typo-body-sm,
6424
+ 400 0.875rem/1.25rem "Source Sans Pro"
6425
+ );
6426
+ --bm-comp-data-table-typo-cell-emphisis: var(
6427
+ --bm-sem-typo-label-sm,
6428
+ 600 0.875rem/1.25rem "Source Sans Pro"
6429
+ );
6430
+ --bm-comp-data-table-typo-cell-supporting: var(
6431
+ --bm-sem-typo-compact-body-xs,
6432
+ 400 0.75rem/1rem "Source Sans Pro"
6433
+ );
6434
+ --bm-comp-data-table-typo-col-header: var(
6435
+ --bm-sem-typo-compact-label-sm,
6436
+ 600 0.875rem/1rem "Source Sans Pro"
6437
+ );
6438
+ --bm-comp-data-table-typo-col-header-group: var(
6439
+ --bm-sem-typo-compact-label-xs,
6440
+ 600 0.75rem/1rem "Source Sans Pro"
6441
+ );
6442
+ --bm-comp-data-table-size-col-header-group-height: var(
6443
+ --bm-primitive-dimension-225,
6444
+ 2.25rem
6445
+ );
6446
+ --bm-comp-data-table-size-cell-sm-height: var(
6447
+ --bm-primitive-dimension-275,
6448
+ 2.75rem
6449
+ );
6450
+ --bm-comp-data-table-size-cell-md-height: var(
6451
+ --bm-primitive-dimension-325,
6452
+ 3.25rem
6453
+ );
6454
+ --bm-comp-data-table-size-cell-lg-height: var(
6455
+ --bm-primitive-dimension-375,
6456
+ 3.75rem
6457
+ );
6458
+ --bm-comp-data-table-size-cell-icon: var(--bm-sem-size-icon-md, 1.25rem);
6459
+ --bm-comp-data-table-radius: var(--bm-sem-radius-md, 0.5rem);
6460
+ }
6461
+
6462
+ .bm-data-table-container {
6463
+ display: flex;
6464
+ flex-direction: column;
6465
+ width: 100%;
6466
+ }
6467
+ .bm-data-table-container .bm-data-table__toolbar {
6468
+ color: var(--bm-comp-data-table-color-header-body);
6469
+ text-align: start;
6470
+ padding-inline: var(--bm-comp-data-table-space-x);
6471
+ padding-block: var(--bm-comp-data-table-space-header-md-y);
6472
+ }
6473
+
6474
+ .bm-data-table {
6475
+ width: 100%;
6476
+ border-collapse: collapse;
6477
+ background: var(--bm-comp-data-table-color-bg);
6478
+ border-radius: var(--bm-comp-data-table-radius);
6479
+ color: var(--bm-comp-data-table-color-cell-text);
6480
+ }
6481
+ .bm-data-table__header {
6482
+ color: var(--bm-comp-data-table-color-header-heading);
6483
+ font: var(--bm-comp-data-table-typo-col-header);
6484
+ text-align: start;
6485
+ padding-inline: var(--bm-comp-data-table-space-x);
6486
+ padding-block: var(--bm-comp-data-table-space-header-md-y);
6487
+ }
6488
+ .bm-data-table__head {
6489
+ background: var(--bm-comp-data-table-color-col-header-bg);
6490
+ }
6491
+ .bm-data-table__column-header {
6492
+ background: var(--bm-comp-data-table-color-col-header-bg);
6493
+ color: var(--bm-comp-data-table-color-col-header-text);
6494
+ font: var(--bm-comp-data-table-typo-col-header);
6495
+ text-align: start;
6496
+ }
6497
+ .bm-data-table__body {
6498
+ background: var(--bm-comp-data-table-color-bg);
6499
+ }
6500
+ .bm-data-table__row:nth-of-type(even) {
6501
+ background: var(--bm-comp-data-table-color-zebra);
6502
+ }
6503
+ .bm-data-table__cell {
6504
+ font: var(--bm-comp-data-table-typo-cell);
6505
+ color: var(--bm-comp-data-table-color-cell-text);
6506
+ border-bottom: var(--bm-sem-border-width-md) solid var(--bm-comp-data-table-color-border);
6507
+ }
6508
+ .bm-data-table__footer {
6509
+ color: var(--bm-comp-data-table-color-cell-text);
6510
+ padding-inline: var(--bm-comp-data-table-space-x);
6511
+ padding-block: var(--bm-comp-data-table-space-footer-md-y);
6512
+ }
6513
+
6514
+ .bm-data-table--sm .bm-data-table__cell,
6515
+ .bm-data-table--sm .bm-data-table__column-header {
6516
+ height: var(--bm-comp-data-table-size-cell-sm-height);
6517
+ padding-block: var(--bm-comp-data-table-space-cell-sm-y);
6518
+ padding-inline: var(--bm-comp-data-table-space-x);
6519
+ }
6520
+
6521
+ .bm-data-table--md .bm-data-table__cell,
6522
+ .bm-data-table--md .bm-data-table__column-header {
6523
+ height: var(--bm-comp-data-table-size-cell-md-height);
6524
+ padding-block: var(--bm-comp-data-table-space-cell-md-y);
6525
+ padding-inline: var(--bm-comp-data-table-space-x);
6526
+ }
6527
+
6528
+ .bm-data-table--lg .bm-data-table__cell,
6529
+ .bm-data-table--lg .bm-data-table__column-header {
6530
+ height: var(--bm-comp-data-table-size-cell-lg-height);
6531
+ padding-block: var(--bm-comp-data-table-space-cell-lg-y);
6532
+ padding-inline: var(--bm-comp-data-table-space-x);
6533
+ }
6534
+
6237
6535
  :root,
6238
6536
  :host,
6239
6537
  .bm-light,