@ngx-stoui/core 21.0.6 → 21.0.8

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.
package/ngx-stoui.css CHANGED
@@ -102,6 +102,91 @@
102
102
  color-scheme: dark;
103
103
  }
104
104
 
105
+ /**
106
+ * CDK Overlay Theming
107
+ *
108
+ * Autocomplete, select, and datepicker panels render in the CDK
109
+ * overlay container at document.body level. EDS token overrides
110
+ * ensure consistent styling outside the component tree.
111
+ */
112
+ .cdk-overlay-container {
113
+ /* Option panels */
114
+ --mat-option-label-text-color: var(
115
+ --eds_text_static_icons__default,
116
+ light-dark(#3d3d3d, #ffffff)
117
+ );
118
+ --mat-option-hover-state-layer-color: var(
119
+ --eds_interactive_table__cell__fill_hover,
120
+ light-dark(#eaeaea, #324d62)
121
+ );
122
+ --mat-option-focus-state-layer-color: var(
123
+ --eds_interactive_table__cell__fill_hover,
124
+ light-dark(#eaeaea, #324d62)
125
+ );
126
+ --mat-option-selected-state-layer-color: var(
127
+ --eds_interactive_primary__selected_highlight,
128
+ light-dark(#e6faec, #007079)
129
+ );
130
+ --mat-option-selected-state-label-text-color: var(
131
+ --eds_text_static_icons__default,
132
+ light-dark(#3d3d3d, #ffffff)
133
+ );
134
+ --mat-option-label-text-font: Equinor, sans-serif;
135
+ --mat-option-label-text-size: 0.875rem;
136
+ /* Autocomplete */
137
+ --mat-autocomplete-background-color: var(
138
+ --eds_ui_background__default,
139
+ light-dark(#ffffff, #243746)
140
+ );
141
+ /* Select */
142
+ --mat-select-panel-background-color: var(
143
+ --eds_ui_background__default,
144
+ light-dark(#ffffff, #243746)
145
+ );
146
+ /* Datepicker */
147
+ --mat-datepicker-calendar-date-text-color: var(
148
+ --eds_text_static_icons__default,
149
+ light-dark(#3d3d3d, #ffffff)
150
+ );
151
+ --mat-datepicker-calendar-date-hover-state-background-color: var(
152
+ --eds_interactive_table__cell__fill_hover,
153
+ light-dark(#eaeaea, #324d62)
154
+ );
155
+ --mat-datepicker-calendar-date-focus-state-background-color: var(
156
+ --eds_interactive_table__cell__fill_hover,
157
+ light-dark(#eaeaea, #324d62)
158
+ );
159
+ --mat-datepicker-calendar-date-selected-state-background-color: var(
160
+ --eds_interactive_primary__resting,
161
+ light-dark(#007079, #97cace)
162
+ );
163
+ --mat-datepicker-calendar-date-selected-state-text-color: var(
164
+ --eds_text_static_icons__primary_white,
165
+ light-dark(#ffffff, #000000)
166
+ );
167
+ --mat-datepicker-calendar-date-today-outline-color: var(
168
+ --eds_interactive_primary__resting,
169
+ light-dark(#007079, #97cace)
170
+ );
171
+ --mat-datepicker-calendar-container-background-color: var(
172
+ --eds_ui_background__default,
173
+ light-dark(#ffffff, #243746)
174
+ );
175
+ --mat-datepicker-calendar-header-text-color: var(
176
+ --eds_text_static_icons__default,
177
+ light-dark(#3d3d3d, #ffffff)
178
+ );
179
+ --mat-datepicker-calendar-body-label-text-color: var(
180
+ --eds_text_static_icons__tertiary,
181
+ light-dark(#6f6f6f, #9ca6ac)
182
+ );
183
+ --mat-datepicker-calendar-text-font: Equinor, sans-serif;
184
+ }
185
+
186
+ body.sto-dark-theme .cdk-overlay-container {
187
+ color-scheme: dark;
188
+ }
189
+
105
190
  .sto-grid, .sto-f-grid {
106
191
  display: grid;
107
192
  gap: 0.5rem;
@@ -172,21 +257,21 @@ input::-webkit-inner-spin-button {
172
257
  }
173
258
 
174
259
  h1 {
175
- --mat-sys-body-large-size: 1.7rem;
260
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 1.7);
176
261
  --mat-sys-body-large-line-height: 1.4;
177
262
  --mat-sys-body-large-weight: 400;
178
263
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
179
264
  }
180
265
 
181
266
  h2 {
182
- --mat-sys-body-large-size: 1.6rem;
267
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 1.6);
183
268
  --mat-sys-body-large-line-height: 1.4;
184
269
  --mat-sys-body-large-weight: 400;
185
270
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
186
271
  }
187
272
 
188
273
  h3 {
189
- --mat-sys-body-large-size: 1.53846rem;
274
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 1.53846);
190
275
  --mat-sys-body-large-line-height: 1.4;
191
276
  --mat-sys-body-large-weight: 400;
192
277
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
@@ -194,21 +279,21 @@ h3 {
194
279
  }
195
280
 
196
281
  h4 {
197
- --mat-sys-body-large-size: 1.23077rem;
282
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 1.23077);
198
283
  --mat-sys-body-large-line-height: 1.4;
199
284
  --mat-sys-body-large-weight: 400;
200
285
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
201
286
  }
202
287
 
203
288
  h5 {
204
- --mat-sys-body-large-size: 0.9rem;
289
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 0.9);
205
290
  --mat-sys-body-large-line-height: 1;
206
291
  --mat-sys-body-large-weight: 400;
207
292
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
208
293
  }
209
294
 
210
295
  h6 {
211
- --mat-sys-body-large-size: 0.8rem;
296
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 0.8);
212
297
  --mat-sys-body-large-line-height: 1.25;
213
298
  --mat-sys-body-large-weight: 400;
214
299
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
@@ -1185,7 +1270,8 @@ span.sortable {
1185
1270
  cursor: pointer;
1186
1271
  }
1187
1272
 
1188
- [data-icon]::before {
1273
+ .sto-datatable [data-icon]::before,
1274
+ .sto-mdl-table [data-icon]::before {
1189
1275
  font-family: "Material Icons" !important;
1190
1276
  content: attr(data-icon);
1191
1277
  font-style: normal !important;
@@ -1382,8 +1468,8 @@ span.sortable {
1382
1468
  --mat-progress-bar-track-shape: 0;
1383
1469
  --mat-progress-bar-active-indicator-color: var(--mat-sys-primary);
1384
1470
  --mat-progress-bar-track-color: var(--mat-sys-surface-variant);
1385
- --mat-tooltip-container-color: var(--mat-sys-inverse-surface);
1386
1471
  --mat-tooltip-container-shape: 4px;
1472
+ --mat-tooltip-container-color: var(--mat-sys-inverse-surface);
1387
1473
  --mat-tooltip-supporting-text-color: var(--mat-sys-inverse-on-surface);
1388
1474
  --mat-tooltip-supporting-text-font: var(--mat-sys-body-small-font);
1389
1475
  --mat-tooltip-supporting-text-line-height: var(--mat-sys-body-small-line-height);
@@ -2233,28 +2319,49 @@ span.sortable {
2233
2319
  --mat-timepicker-container-shape: 4px;
2234
2320
  --mat-timepicker-container-background-color: var(--mat-sys-surface-container);
2235
2321
  --mat-timepicker-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
2322
+ --sto-base-font-size: 13px;
2236
2323
  --application-font: Equinor, Roboto, sans-serif;
2237
2324
  --mat-sys-body-large-font: var(--application-font);
2238
2325
  --mat-sys-body-large-weight: 400;
2239
- --mat-sys-body-large-size: 1rem;
2326
+ --mat-sys-body-large-size: var(--sto-base-font-size);
2240
2327
  --mat-sys-body-large-line-height: 1.55;
2328
+ --mat-sys-body-medium-font: var(--application-font);
2329
+ --mat-sys-body-medium-weight: 400;
2330
+ --mat-sys-body-medium-size: var(--sto-base-font-size);
2331
+ --mat-sys-body-medium-line-height: 1.538;
2332
+ --mat-sys-body-small-font: var(--application-font);
2333
+ --mat-sys-body-small-weight: 400;
2334
+ --mat-sys-body-small-size: calc(var(--sto-base-font-size) * 0.846);
2335
+ --mat-sys-body-small-line-height: 1.45;
2241
2336
  --mat-sys-label-medium-font: var(--application-font);
2242
- --mat-sys-label-medium-size: 1.25rem;
2337
+ --mat-sys-label-medium-size: calc(
2338
+ var(--sto-base-font-size) * 1.25
2339
+ );
2243
2340
  --mat-sys-label-medium-line-height: 1.333;
2244
2341
  --mat-sys-label-large-font: var(--application-font);
2245
- --mat-sys-label-large-size: 1.077rem;
2342
+ --mat-sys-label-large-size: calc(
2343
+ var(--sto-base-font-size) * 1.077
2344
+ );
2246
2345
  --mat-sys-label-large-line-height: 1.714;
2247
2346
  --mat-sys-headline-large-font: var(--application-font);
2248
- --mat-sys-headline-large-size: 2.154rem;
2347
+ --mat-sys-headline-large-size: calc(
2348
+ var(--sto-base-font-size) * 2.154
2349
+ );
2249
2350
  --mat-sys-headline-large-line-height: 1.571;
2250
2351
  --mat-sys-headline-medium-font: var(--application-font);
2251
- --mat-sys-headline-medium-size: 1.846rem;
2352
+ --mat-sys-headline-medium-size: calc(
2353
+ var(--sto-base-font-size) * 1.846
2354
+ );
2252
2355
  --mat-sys-headline-medium-line-height: 1.333;
2253
2356
  --mat-sys-title-large-font: var(--application-font);
2254
- --mat-sys-title-large-size: 1.538rem;
2357
+ --mat-sys-title-large-size: calc(
2358
+ var(--sto-base-font-size) * 1.538
2359
+ );
2255
2360
  --mat-sys-title-large-line-height: 1.4;
2256
2361
  --mat-sys-title-medium-font: var(--application-font);
2257
- --mat-sys-title-medium-size: 1.231rem;
2362
+ --mat-sys-title-medium-size: calc(
2363
+ var(--sto-base-font-size) * 1.231
2364
+ );
2258
2365
  --mat-sys-title-medium-line-height: 1.5;
2259
2366
  --mat-sys-primary: var(--primary-resting);
2260
2367
  --mat-sys-on-primary: var(--primary-contrast-resting);
@@ -2319,7 +2426,6 @@ span.sortable {
2319
2426
  --mat-menu-container-shape: var(--mat-sys-corner-small);
2320
2427
  --mat-select-disabled-trigger-text-color: var(--text-disabled);
2321
2428
  --mat-select-panel-background-color: var(--bg-card);
2322
- --mat-select-trigger-text-size: var(--mat-sys-body-small-size, 1em);
2323
2429
  --mat-autocomplete-container-shape: var(--mat-sys-corner-small);
2324
2430
  --mat-snack-bar-container-shape: var(--mat-sys-corner-small);
2325
2431
  --mat-tooltip-supporting-text-color: var(--bg-card);
@@ -2348,9 +2454,7 @@ span.sortable {
2348
2454
  --mat-table-row-item-label-text-weight: 400;
2349
2455
  --mat-table-row-item-outline-color: var(--divider);
2350
2456
  --mat-table-row-item-outline-width: 1px;
2351
- --mat-form-field-container-height: 42px;
2352
- --mat-form-field-container-text-line-height: var(--mat-sys-body-medium-line-height, 1.538);
2353
- --mat-form-field-container-text-size: var(--mat-sys-body-medium-size, 1em);
2457
+ --mat-form-field-container-text-line-height: 1.538;
2354
2458
  --mat-form-field-container-vertical-padding: 6px;
2355
2459
  --mat-form-field-disabled-input-text-placeholder-color: var(--text-disabled);
2356
2460
  --mat-form-field-disabled-leading-icon-color: var(--icon-disabled);
@@ -2368,7 +2472,6 @@ span.sortable {
2368
2472
  --mat-form-field-filled-with-label-container-padding-top: 16px;
2369
2473
  --mat-form-field-hover-state-layer-opacity: 0;
2370
2474
  --mat-form-field-subscript-text-line-height: 1.182;
2371
- --mat-form-field-subscript-text-size: 0.846em;
2372
2475
  --mat-slide-toggle-selected-handle-color: var(--mat-sys-on-primary);
2373
2476
  --mat-slide-toggle-selected-hover-handle-color: var(--mat-sys-on-primary);
2374
2477
  --mat-slide-toggle-selected-focus-handle-color: var(--mat-sys-on-primary);
@@ -2386,20 +2489,75 @@ span.sortable {
2386
2489
  --mat-progress-bar-active-indicator-height: 4px;
2387
2490
  --mat-progress-bar-track-color: var(--bg-app);
2388
2491
  --mat-progress-bar-track-height: 4px;
2389
- --mat-slider-label-label-text-size: 0.6rem;
2492
+ --mat-slider-label-label-text-size: calc(var(--sto-base-font-size) * 0.6);
2493
+ --mat-form-field-container-text-size: initial;
2494
+ --mat-form-field-filled-label-text-size: initial;
2495
+ --mat-form-field-outlined-label-text-size: initial;
2496
+ --mat-form-field-subscript-text-size: initial;
2497
+ --mat-select-trigger-text-size: initial;
2498
+ --mat-expansion-container-text-size: initial;
2499
+ --mat-expansion-header-text-size: initial;
2500
+ --mat-option-label-text-size: initial;
2501
+ --mat-slide-toggle-label-text-size: initial;
2502
+ --mat-checkbox-label-text-size: initial;
2503
+ --mat-button-text-label-text-size: initial;
2504
+ --mat-button-filled-label-text-size: initial;
2505
+ --mat-button-protected-label-text-size: initial;
2506
+ --mat-button-outlined-label-text-size: initial;
2507
+ --mat-button-tonal-label-text-size: initial;
2508
+ --mat-button-toggle-label-text-size: initial;
2509
+ --mat-menu-item-label-text-size: initial;
2510
+ --mat-slider-label-label-text-size: initial;
2511
+ --mat-form-field-container-height: initial;
2512
+ --mat-form-field-filled-with-label-container-padding-top: initial;
2390
2513
  }
2391
2514
 
2392
2515
  .sto-sm-typography {
2393
2516
  font: 400 10px/20px var(--application-font);
2394
- font-size: 10px;
2517
+ --sto-base-font-size: 10px;
2518
+ --mat-sys-body-large-size: 10px;
2519
+ --mat-sys-body-medium-size: 10px;
2520
+ --mat-sys-body-small-size: calc(10px * 0.846);
2521
+ --mat-sys-label-large-size: calc(10px * 1.077);
2522
+ --mat-sys-label-medium-size: calc(10px * 1.25);
2523
+ --mat-sys-title-large-size: calc(10px * 1.538);
2524
+ --mat-sys-title-medium-size: calc(10px * 1.231);
2525
+ --mat-sys-headline-large-size: calc(10px * 2.154);
2526
+ --mat-sys-headline-medium-size: calc(10px * 1.846);
2527
+ --mat-form-field-container-height: calc(10px * 3.23);
2528
+ --mat-form-field-filled-with-label-container-padding-top: calc(10px * 1.23);
2395
2529
  }
2396
2530
 
2397
2531
  .sto-m-typography {
2398
2532
  font: 400 13px/20px var(--application-font);
2533
+ --sto-base-font-size: 13px;
2534
+ --mat-sys-body-large-size: 13px;
2535
+ --mat-sys-body-medium-size: 13px;
2536
+ --mat-sys-body-small-size: calc(13px * 0.846);
2537
+ --mat-sys-label-large-size: calc(13px * 1.077);
2538
+ --mat-sys-label-medium-size: calc(13px * 1.25);
2539
+ --mat-sys-title-large-size: calc(13px * 1.538);
2540
+ --mat-sys-title-medium-size: calc(13px * 1.231);
2541
+ --mat-sys-headline-large-size: calc(13px * 2.154);
2542
+ --mat-sys-headline-medium-size: calc(13px * 1.846);
2543
+ --mat-form-field-container-height: calc(13px * 3.23);
2544
+ --mat-form-field-filled-with-label-container-padding-top: calc(13px * 1.23);
2399
2545
  }
2400
2546
 
2401
2547
  .sto-l-typography {
2402
2548
  font: 400 16px/28px var(--application-font);
2549
+ --sto-base-font-size: 16px;
2550
+ --mat-sys-body-large-size: 16px;
2551
+ --mat-sys-body-medium-size: 16px;
2552
+ --mat-sys-body-small-size: calc(16px * 0.846);
2553
+ --mat-sys-label-large-size: calc(16px * 1.077);
2554
+ --mat-sys-label-medium-size: calc(16px * 1.25);
2555
+ --mat-sys-title-large-size: calc(16px * 1.538);
2556
+ --mat-sys-title-medium-size: calc(16px * 1.231);
2557
+ --mat-sys-headline-large-size: calc(16px * 2.154);
2558
+ --mat-sys-headline-medium-size: calc(16px * 1.846);
2559
+ --mat-form-field-container-height: calc(16px * 3.23);
2560
+ --mat-form-field-filled-with-label-container-padding-top: calc(16px * 1.23);
2403
2561
  }
2404
2562
 
2405
2563
  .mat-elevation-z0, .mat-mdc-elevation-specific.mat-elevation-z0 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngx-stoui/core",
3
- "version": "21.0.6",
3
+ "version": "21.0.8",
4
4
  "author": {
5
5
  "name": "Ronnie Laugen",
6
6
  "email": "rhenri@equinor.com"
@@ -48,5 +48,6 @@
48
48
  },
49
49
  "module": "fesm2022/ngx-stoui-core.mjs",
50
50
  "typings": "types/ngx-stoui-core.d.ts",
51
- "sideEffects": false
51
+ "sideEffects": false,
52
+ "type": "module"
52
53
  }