@ngx-stoui/core 21.0.6 → 21.0.7

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);
@@ -1382,8 +1467,8 @@ span.sortable {
1382
1467
  --mat-progress-bar-track-shape: 0;
1383
1468
  --mat-progress-bar-active-indicator-color: var(--mat-sys-primary);
1384
1469
  --mat-progress-bar-track-color: var(--mat-sys-surface-variant);
1385
- --mat-tooltip-container-color: var(--mat-sys-inverse-surface);
1386
1470
  --mat-tooltip-container-shape: 4px;
1471
+ --mat-tooltip-container-color: var(--mat-sys-inverse-surface);
1387
1472
  --mat-tooltip-supporting-text-color: var(--mat-sys-inverse-on-surface);
1388
1473
  --mat-tooltip-supporting-text-font: var(--mat-sys-body-small-font);
1389
1474
  --mat-tooltip-supporting-text-line-height: var(--mat-sys-body-small-line-height);
@@ -2233,28 +2318,49 @@ span.sortable {
2233
2318
  --mat-timepicker-container-shape: 4px;
2234
2319
  --mat-timepicker-container-background-color: var(--mat-sys-surface-container);
2235
2320
  --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);
2321
+ --sto-base-font-size: 13px;
2236
2322
  --application-font: Equinor, Roboto, sans-serif;
2237
2323
  --mat-sys-body-large-font: var(--application-font);
2238
2324
  --mat-sys-body-large-weight: 400;
2239
- --mat-sys-body-large-size: 1rem;
2325
+ --mat-sys-body-large-size: var(--sto-base-font-size);
2240
2326
  --mat-sys-body-large-line-height: 1.55;
2327
+ --mat-sys-body-medium-font: var(--application-font);
2328
+ --mat-sys-body-medium-weight: 400;
2329
+ --mat-sys-body-medium-size: var(--sto-base-font-size);
2330
+ --mat-sys-body-medium-line-height: 1.538;
2331
+ --mat-sys-body-small-font: var(--application-font);
2332
+ --mat-sys-body-small-weight: 400;
2333
+ --mat-sys-body-small-size: calc(var(--sto-base-font-size) * 0.846);
2334
+ --mat-sys-body-small-line-height: 1.45;
2241
2335
  --mat-sys-label-medium-font: var(--application-font);
2242
- --mat-sys-label-medium-size: 1.25rem;
2336
+ --mat-sys-label-medium-size: calc(
2337
+ var(--sto-base-font-size) * 1.25
2338
+ );
2243
2339
  --mat-sys-label-medium-line-height: 1.333;
2244
2340
  --mat-sys-label-large-font: var(--application-font);
2245
- --mat-sys-label-large-size: 1.077rem;
2341
+ --mat-sys-label-large-size: calc(
2342
+ var(--sto-base-font-size) * 1.077
2343
+ );
2246
2344
  --mat-sys-label-large-line-height: 1.714;
2247
2345
  --mat-sys-headline-large-font: var(--application-font);
2248
- --mat-sys-headline-large-size: 2.154rem;
2346
+ --mat-sys-headline-large-size: calc(
2347
+ var(--sto-base-font-size) * 2.154
2348
+ );
2249
2349
  --mat-sys-headline-large-line-height: 1.571;
2250
2350
  --mat-sys-headline-medium-font: var(--application-font);
2251
- --mat-sys-headline-medium-size: 1.846rem;
2351
+ --mat-sys-headline-medium-size: calc(
2352
+ var(--sto-base-font-size) * 1.846
2353
+ );
2252
2354
  --mat-sys-headline-medium-line-height: 1.333;
2253
2355
  --mat-sys-title-large-font: var(--application-font);
2254
- --mat-sys-title-large-size: 1.538rem;
2356
+ --mat-sys-title-large-size: calc(
2357
+ var(--sto-base-font-size) * 1.538
2358
+ );
2255
2359
  --mat-sys-title-large-line-height: 1.4;
2256
2360
  --mat-sys-title-medium-font: var(--application-font);
2257
- --mat-sys-title-medium-size: 1.231rem;
2361
+ --mat-sys-title-medium-size: calc(
2362
+ var(--sto-base-font-size) * 1.231
2363
+ );
2258
2364
  --mat-sys-title-medium-line-height: 1.5;
2259
2365
  --mat-sys-primary: var(--primary-resting);
2260
2366
  --mat-sys-on-primary: var(--primary-contrast-resting);
@@ -2319,7 +2425,6 @@ span.sortable {
2319
2425
  --mat-menu-container-shape: var(--mat-sys-corner-small);
2320
2426
  --mat-select-disabled-trigger-text-color: var(--text-disabled);
2321
2427
  --mat-select-panel-background-color: var(--bg-card);
2322
- --mat-select-trigger-text-size: var(--mat-sys-body-small-size, 1em);
2323
2428
  --mat-autocomplete-container-shape: var(--mat-sys-corner-small);
2324
2429
  --mat-snack-bar-container-shape: var(--mat-sys-corner-small);
2325
2430
  --mat-tooltip-supporting-text-color: var(--bg-card);
@@ -2348,9 +2453,7 @@ span.sortable {
2348
2453
  --mat-table-row-item-label-text-weight: 400;
2349
2454
  --mat-table-row-item-outline-color: var(--divider);
2350
2455
  --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);
2456
+ --mat-form-field-container-text-line-height: 1.538;
2354
2457
  --mat-form-field-container-vertical-padding: 6px;
2355
2458
  --mat-form-field-disabled-input-text-placeholder-color: var(--text-disabled);
2356
2459
  --mat-form-field-disabled-leading-icon-color: var(--icon-disabled);
@@ -2368,7 +2471,6 @@ span.sortable {
2368
2471
  --mat-form-field-filled-with-label-container-padding-top: 16px;
2369
2472
  --mat-form-field-hover-state-layer-opacity: 0;
2370
2473
  --mat-form-field-subscript-text-line-height: 1.182;
2371
- --mat-form-field-subscript-text-size: 0.846em;
2372
2474
  --mat-slide-toggle-selected-handle-color: var(--mat-sys-on-primary);
2373
2475
  --mat-slide-toggle-selected-hover-handle-color: var(--mat-sys-on-primary);
2374
2476
  --mat-slide-toggle-selected-focus-handle-color: var(--mat-sys-on-primary);
@@ -2386,20 +2488,75 @@ span.sortable {
2386
2488
  --mat-progress-bar-active-indicator-height: 4px;
2387
2489
  --mat-progress-bar-track-color: var(--bg-app);
2388
2490
  --mat-progress-bar-track-height: 4px;
2389
- --mat-slider-label-label-text-size: 0.6rem;
2491
+ --mat-slider-label-label-text-size: calc(var(--sto-base-font-size) * 0.6);
2492
+ --mat-form-field-container-text-size: initial;
2493
+ --mat-form-field-filled-label-text-size: initial;
2494
+ --mat-form-field-outlined-label-text-size: initial;
2495
+ --mat-form-field-subscript-text-size: initial;
2496
+ --mat-select-trigger-text-size: initial;
2497
+ --mat-expansion-container-text-size: initial;
2498
+ --mat-expansion-header-text-size: initial;
2499
+ --mat-option-label-text-size: initial;
2500
+ --mat-slide-toggle-label-text-size: initial;
2501
+ --mat-checkbox-label-text-size: initial;
2502
+ --mat-button-text-label-text-size: initial;
2503
+ --mat-button-filled-label-text-size: initial;
2504
+ --mat-button-protected-label-text-size: initial;
2505
+ --mat-button-outlined-label-text-size: initial;
2506
+ --mat-button-tonal-label-text-size: initial;
2507
+ --mat-button-toggle-label-text-size: initial;
2508
+ --mat-menu-item-label-text-size: initial;
2509
+ --mat-slider-label-label-text-size: initial;
2510
+ --mat-form-field-container-height: initial;
2511
+ --mat-form-field-filled-with-label-container-padding-top: initial;
2390
2512
  }
2391
2513
 
2392
2514
  .sto-sm-typography {
2393
2515
  font: 400 10px/20px var(--application-font);
2394
- font-size: 10px;
2516
+ --sto-base-font-size: 10px;
2517
+ --mat-sys-body-large-size: 10px;
2518
+ --mat-sys-body-medium-size: 10px;
2519
+ --mat-sys-body-small-size: calc(10px * 0.846);
2520
+ --mat-sys-label-large-size: calc(10px * 1.077);
2521
+ --mat-sys-label-medium-size: calc(10px * 1.25);
2522
+ --mat-sys-title-large-size: calc(10px * 1.538);
2523
+ --mat-sys-title-medium-size: calc(10px * 1.231);
2524
+ --mat-sys-headline-large-size: calc(10px * 2.154);
2525
+ --mat-sys-headline-medium-size: calc(10px * 1.846);
2526
+ --mat-form-field-container-height: calc(10px * 3.23);
2527
+ --mat-form-field-filled-with-label-container-padding-top: calc(10px * 1.23);
2395
2528
  }
2396
2529
 
2397
2530
  .sto-m-typography {
2398
2531
  font: 400 13px/20px var(--application-font);
2532
+ --sto-base-font-size: 13px;
2533
+ --mat-sys-body-large-size: 13px;
2534
+ --mat-sys-body-medium-size: 13px;
2535
+ --mat-sys-body-small-size: calc(13px * 0.846);
2536
+ --mat-sys-label-large-size: calc(13px * 1.077);
2537
+ --mat-sys-label-medium-size: calc(13px * 1.25);
2538
+ --mat-sys-title-large-size: calc(13px * 1.538);
2539
+ --mat-sys-title-medium-size: calc(13px * 1.231);
2540
+ --mat-sys-headline-large-size: calc(13px * 2.154);
2541
+ --mat-sys-headline-medium-size: calc(13px * 1.846);
2542
+ --mat-form-field-container-height: calc(13px * 3.23);
2543
+ --mat-form-field-filled-with-label-container-padding-top: calc(13px * 1.23);
2399
2544
  }
2400
2545
 
2401
2546
  .sto-l-typography {
2402
2547
  font: 400 16px/28px var(--application-font);
2548
+ --sto-base-font-size: 16px;
2549
+ --mat-sys-body-large-size: 16px;
2550
+ --mat-sys-body-medium-size: 16px;
2551
+ --mat-sys-body-small-size: calc(16px * 0.846);
2552
+ --mat-sys-label-large-size: calc(16px * 1.077);
2553
+ --mat-sys-label-medium-size: calc(16px * 1.25);
2554
+ --mat-sys-title-large-size: calc(16px * 1.538);
2555
+ --mat-sys-title-medium-size: calc(16px * 1.231);
2556
+ --mat-sys-headline-large-size: calc(16px * 2.154);
2557
+ --mat-sys-headline-medium-size: calc(16px * 1.846);
2558
+ --mat-form-field-container-height: calc(16px * 3.23);
2559
+ --mat-form-field-filled-with-label-container-padding-top: calc(16px * 1.23);
2403
2560
  }
2404
2561
 
2405
2562
  .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.7",
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
  }