@ngx-stoui/core 21.0.5 → 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;
@@ -152,10 +237,11 @@ span.spacer {
152
237
 
153
238
  html,
154
239
  body {
155
- font: 400 13px/24px var(--application-font);
240
+ font-family: var(--application-font);
156
241
  }
157
242
 
158
243
  body {
244
+ font: 400 13px/20px var(--application-font);
159
245
  margin-left: 0;
160
246
  margin-right: 0;
161
247
  }
@@ -171,21 +257,21 @@ input::-webkit-inner-spin-button {
171
257
  }
172
258
 
173
259
  h1 {
174
- --mat-sys-body-large-size: 1.7rem;
260
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 1.7);
175
261
  --mat-sys-body-large-line-height: 1.4;
176
262
  --mat-sys-body-large-weight: 400;
177
263
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
178
264
  }
179
265
 
180
266
  h2 {
181
- --mat-sys-body-large-size: 1.6rem;
267
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 1.6);
182
268
  --mat-sys-body-large-line-height: 1.4;
183
269
  --mat-sys-body-large-weight: 400;
184
270
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
185
271
  }
186
272
 
187
273
  h3 {
188
- --mat-sys-body-large-size: 1.53846rem;
274
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 1.53846);
189
275
  --mat-sys-body-large-line-height: 1.4;
190
276
  --mat-sys-body-large-weight: 400;
191
277
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
@@ -193,21 +279,21 @@ h3 {
193
279
  }
194
280
 
195
281
  h4 {
196
- --mat-sys-body-large-size: 1.23077rem;
282
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 1.23077);
197
283
  --mat-sys-body-large-line-height: 1.4;
198
284
  --mat-sys-body-large-weight: 400;
199
285
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
200
286
  }
201
287
 
202
288
  h5 {
203
- --mat-sys-body-large-size: 0.9rem;
289
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 0.9);
204
290
  --mat-sys-body-large-line-height: 1;
205
291
  --mat-sys-body-large-weight: 400;
206
292
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
207
293
  }
208
294
 
209
295
  h6 {
210
- --mat-sys-body-large-size: 0.8rem;
296
+ --mat-sys-body-large-size: calc(var(--sto-base-font-size, 13px) * 0.8);
211
297
  --mat-sys-body-large-line-height: 1.25;
212
298
  --mat-sys-body-large-weight: 400;
213
299
  font: var(--mat-sys-body-large-weight) var(--mat-sys-body-large-size)/var(--mat-sys-body-large-line-height) var(--application-font);
@@ -1381,8 +1467,8 @@ span.sortable {
1381
1467
  --mat-progress-bar-track-shape: 0;
1382
1468
  --mat-progress-bar-active-indicator-color: var(--mat-sys-primary);
1383
1469
  --mat-progress-bar-track-color: var(--mat-sys-surface-variant);
1384
- --mat-tooltip-container-color: var(--mat-sys-inverse-surface);
1385
1470
  --mat-tooltip-container-shape: 4px;
1471
+ --mat-tooltip-container-color: var(--mat-sys-inverse-surface);
1386
1472
  --mat-tooltip-supporting-text-color: var(--mat-sys-inverse-on-surface);
1387
1473
  --mat-tooltip-supporting-text-font: var(--mat-sys-body-small-font);
1388
1474
  --mat-tooltip-supporting-text-line-height: var(--mat-sys-body-small-line-height);
@@ -2232,28 +2318,49 @@ span.sortable {
2232
2318
  --mat-timepicker-container-shape: 4px;
2233
2319
  --mat-timepicker-container-background-color: var(--mat-sys-surface-container);
2234
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;
2235
2322
  --application-font: Equinor, Roboto, sans-serif;
2236
2323
  --mat-sys-body-large-font: var(--application-font);
2237
2324
  --mat-sys-body-large-weight: 400;
2238
- --mat-sys-body-large-size: 1rem;
2325
+ --mat-sys-body-large-size: var(--sto-base-font-size);
2239
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;
2240
2335
  --mat-sys-label-medium-font: var(--application-font);
2241
- --mat-sys-label-medium-size: 1.25rem;
2336
+ --mat-sys-label-medium-size: calc(
2337
+ var(--sto-base-font-size) * 1.25
2338
+ );
2242
2339
  --mat-sys-label-medium-line-height: 1.333;
2243
2340
  --mat-sys-label-large-font: var(--application-font);
2244
- --mat-sys-label-large-size: 1.077rem;
2341
+ --mat-sys-label-large-size: calc(
2342
+ var(--sto-base-font-size) * 1.077
2343
+ );
2245
2344
  --mat-sys-label-large-line-height: 1.714;
2246
2345
  --mat-sys-headline-large-font: var(--application-font);
2247
- --mat-sys-headline-large-size: 2.154rem;
2346
+ --mat-sys-headline-large-size: calc(
2347
+ var(--sto-base-font-size) * 2.154
2348
+ );
2248
2349
  --mat-sys-headline-large-line-height: 1.571;
2249
2350
  --mat-sys-headline-medium-font: var(--application-font);
2250
- --mat-sys-headline-medium-size: 1.846rem;
2351
+ --mat-sys-headline-medium-size: calc(
2352
+ var(--sto-base-font-size) * 1.846
2353
+ );
2251
2354
  --mat-sys-headline-medium-line-height: 1.333;
2252
2355
  --mat-sys-title-large-font: var(--application-font);
2253
- --mat-sys-title-large-size: 1.538rem;
2356
+ --mat-sys-title-large-size: calc(
2357
+ var(--sto-base-font-size) * 1.538
2358
+ );
2254
2359
  --mat-sys-title-large-line-height: 1.4;
2255
2360
  --mat-sys-title-medium-font: var(--application-font);
2256
- --mat-sys-title-medium-size: 1.231rem;
2361
+ --mat-sys-title-medium-size: calc(
2362
+ var(--sto-base-font-size) * 1.231
2363
+ );
2257
2364
  --mat-sys-title-medium-line-height: 1.5;
2258
2365
  --mat-sys-primary: var(--primary-resting);
2259
2366
  --mat-sys-on-primary: var(--primary-contrast-resting);
@@ -2318,7 +2425,6 @@ span.sortable {
2318
2425
  --mat-menu-container-shape: var(--mat-sys-corner-small);
2319
2426
  --mat-select-disabled-trigger-text-color: var(--text-disabled);
2320
2427
  --mat-select-panel-background-color: var(--bg-card);
2321
- --mat-select-trigger-text-size: var(--mat-sys-body-small-size, 1em);
2322
2428
  --mat-autocomplete-container-shape: var(--mat-sys-corner-small);
2323
2429
  --mat-snack-bar-container-shape: var(--mat-sys-corner-small);
2324
2430
  --mat-tooltip-supporting-text-color: var(--bg-card);
@@ -2347,9 +2453,7 @@ span.sortable {
2347
2453
  --mat-table-row-item-label-text-weight: 400;
2348
2454
  --mat-table-row-item-outline-color: var(--divider);
2349
2455
  --mat-table-row-item-outline-width: 1px;
2350
- --mat-form-field-container-height: 42px;
2351
- --mat-form-field-container-text-line-height: var(--mat-sys-body-medium-line-height, 1.538);
2352
- --mat-form-field-container-text-size: var(--mat-sys-body-medium-size, 1em);
2456
+ --mat-form-field-container-text-line-height: 1.538;
2353
2457
  --mat-form-field-container-vertical-padding: 6px;
2354
2458
  --mat-form-field-disabled-input-text-placeholder-color: var(--text-disabled);
2355
2459
  --mat-form-field-disabled-leading-icon-color: var(--icon-disabled);
@@ -2367,7 +2471,6 @@ span.sortable {
2367
2471
  --mat-form-field-filled-with-label-container-padding-top: 16px;
2368
2472
  --mat-form-field-hover-state-layer-opacity: 0;
2369
2473
  --mat-form-field-subscript-text-line-height: 1.182;
2370
- --mat-form-field-subscript-text-size: 0.846em;
2371
2474
  --mat-slide-toggle-selected-handle-color: var(--mat-sys-on-primary);
2372
2475
  --mat-slide-toggle-selected-hover-handle-color: var(--mat-sys-on-primary);
2373
2476
  --mat-slide-toggle-selected-focus-handle-color: var(--mat-sys-on-primary);
@@ -2385,19 +2488,75 @@ span.sortable {
2385
2488
  --mat-progress-bar-active-indicator-height: 4px;
2386
2489
  --mat-progress-bar-track-color: var(--bg-app);
2387
2490
  --mat-progress-bar-track-height: 4px;
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;
2388
2512
  }
2389
2513
 
2390
2514
  .sto-sm-typography {
2391
2515
  font: 400 10px/20px var(--application-font);
2392
- 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);
2393
2528
  }
2394
2529
 
2395
2530
  .sto-m-typography {
2396
- font: 400 13px/24px var(--application-font);
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);
2397
2544
  }
2398
2545
 
2399
2546
  .sto-l-typography {
2400
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);
2401
2560
  }
2402
2561
 
2403
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.5",
3
+ "version": "21.0.7",
4
4
  "author": {
5
5
  "name": "Ronnie Laugen",
6
6
  "email": "rhenri@equinor.com"
@@ -39,11 +39,15 @@
39
39
  "./ngx-datatable.css": {
40
40
  "default": "./ngx-datatable.css"
41
41
  },
42
+ "./toolbox-grid.css": {
43
+ "default": "./toolbox-grid.css"
44
+ },
42
45
  "./package.json": {
43
46
  "default": "./package.json"
44
47
  }
45
48
  },
46
49
  "module": "fesm2022/ngx-stoui-core.mjs",
47
50
  "typings": "types/ngx-stoui-core.d.ts",
48
- "sideEffects": false
51
+ "sideEffects": false,
52
+ "type": "module"
49
53
  }