@sebgroup/green-core 1.49.0 → 1.49.1
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/chunks/{chunk.S4VAAZSU.js → chunk.2LFIIGFP.js} +1 -1
- package/chunks/{chunk.3SJD5JSB.js → chunk.2ZBKBKY3.js} +2 -2
- package/chunks/{chunk.LBO4KOVP.js → chunk.364FA4Y6.js} +1 -1
- package/chunks/{chunk.GEAI5HOL.js → chunk.3RMPIH7U.js} +1 -1
- package/chunks/{chunk.XWVLGNMR.js → chunk.42ZA2AFF.js} +1 -1
- package/chunks/{chunk.YKYSOCEE.js → chunk.4ZBJEQCZ.js} +1 -1
- package/chunks/{chunk.TRMH73XA.js → chunk.525UYGPO.js} +1 -1
- package/chunks/{chunk.RC25VDRL.js → chunk.5ZN5KKL3.js} +2 -2
- package/chunks/{chunk.AZJZPTQM.js → chunk.7D3WJJSZ.js} +1 -1
- package/chunks/{chunk.IFIR2GJH.js → chunk.ANHTAX6Y.js} +2 -2
- package/chunks/{chunk.MOMVCLDM.js → chunk.BIKXIJTT.js} +1 -1
- package/chunks/{chunk.FPU44TUT.js → chunk.C6LHORY3.js} +2 -2
- package/chunks/{chunk.6XYKZASZ.js → chunk.CUDVSZRE.js} +1 -1
- package/chunks/{chunk.NS3YNF4U.js → chunk.DDPLK4SS.js} +2 -2
- package/chunks/{chunk.DK4WNTND.js → chunk.EFOOA2YV.js} +1 -1
- package/chunks/{chunk.LHGAFV5E.js → chunk.EJNAK2K2.js} +1 -1
- package/chunks/{chunk.MULYFXQM.js → chunk.HWZIMEHI.js} +1 -1
- package/chunks/{chunk.LXSXFTZF.js → chunk.IWQT4TKV.js} +2 -2
- package/chunks/{chunk.ACIPAM5Q.js → chunk.JUON57CD.js} +1 -1
- package/chunks/chunk.MLXMQIEV.js +1 -1
- package/chunks/{chunk.JZDHTZFT.js → chunk.OHOWIVVP.js} +1 -64
- package/chunks/{chunk.66RAEZTU.js → chunk.QDDWGVGW.js} +1 -1
- package/chunks/{chunk.2V3TCESQ.js → chunk.RAPECWKI.js} +1 -1
- package/chunks/{chunk.K2YKC27M.js → chunk.S5TW7D44.js} +1 -1
- package/chunks/{chunk.ZKPYN6F4.js → chunk.TVILWIZI.js} +1 -1
- package/chunks/{chunk.MO3DOOTC.js → chunk.TWRFSLE6.js} +1 -1
- package/chunks/{chunk.5HJ2J3HW.js → chunk.UC7MNYMZ.js} +1 -1
- package/chunks/{chunk.LWBDGAUF.js → chunk.UFDLCGCX.js} +1 -1
- package/chunks/{chunk.LPEZEUTO.js → chunk.UPDOJQOA.js} +1 -1
- package/chunks/{chunk.HSY6PRL4.js → chunk.WK4MCKEH.js} +22 -16
- package/chunks/{chunk.H7QIU5VU.js → chunk.WOEEUFXQ.js} +1 -1
- package/chunks/chunk.WXHJIZTY.js +68 -0
- package/chunks/{chunk.EX5R6FB7.js → chunk.YZ6FM7P6.js} +1 -1
- package/components/badge/badge.js +3 -2
- package/components/badge/index.js +3 -2
- package/components/button/button.js +4 -3
- package/components/button/index.js +4 -3
- package/components/calendar/calendar.js +3 -2
- package/components/calendar/index.js +3 -2
- package/components/card/card.js +4 -3
- package/components/card/index.js +4 -3
- package/components/container/container.js +3 -2
- package/components/container/index.js +3 -2
- package/components/datepicker/datepicker.js +8 -7
- package/components/datepicker/index.js +8 -7
- package/components/dialog/dialog.js +9 -8
- package/components/dialog/index.js +9 -8
- package/components/dialog/scroll-lock.js +2 -1
- package/components/divider/divider.js +3 -2
- package/components/divider/index.js +3 -2
- package/components/dropdown/dropdown.js +6 -5
- package/components/dropdown/index.js +6 -5
- package/components/fab/fab.js +5 -4
- package/components/fab/index.js +5 -4
- package/components/filter-chips/filter-chip/filter-chip.js +4 -3
- package/components/filter-chips/filter-chip/index.js +4 -3
- package/components/filter-chips/filter-chips.js +4 -3
- package/components/filter-chips/index.js +4 -3
- package/components/flex/flex.js +4 -3
- package/components/flex/index.js +4 -3
- package/components/form/index.js +5 -4
- package/components/form/summary/index.js +5 -4
- package/components/form/summary/summary.js +5 -4
- package/components/grid/grid.js +4 -3
- package/components/grid/index.js +4 -3
- package/components/img/img.js +3 -2
- package/components/img/index.js +3 -2
- package/components/index.js +28 -27
- package/components/input/index.js +10 -9
- package/components/input/input.js +10 -9
- package/components/link/index.js +3 -2
- package/components/link/link.js +3 -2
- package/components/mask/index.js +5 -4
- package/components/mask/mask.js +5 -4
- package/components/menu-button/index.js +3 -2
- package/components/menu-button/menu-button.js +3 -2
- package/components/rich-text/index.js +3 -2
- package/components/rich-text/rich-text.js +3 -2
- package/components/segmented-control/index.js +4 -3
- package/components/segmented-control/segment/index.js +3 -2
- package/components/segmented-control/segment/segment.js +3 -2
- package/components/segmented-control/segmented-control.js +4 -3
- package/components/signal/index.js +3 -2
- package/components/signal/signal.js +3 -2
- package/components/spacer/index.js +3 -2
- package/components/spacer/spacer.js +3 -2
- package/components/text/index.js +3 -2
- package/components/text/text.js +3 -2
- package/components/textarea/index.js +10 -9
- package/components/textarea/textarea.js +10 -9
- package/components/theme/index.js +3 -2
- package/components/theme/theme.js +3 -2
- package/components/video/index.js +3 -2
- package/components/video/video.js +3 -2
- package/index.js +28 -27
- package/package.json +1 -1
- package/primitives/form-control-footer/form-control-footer.js +4 -3
- package/primitives/form-control-footer/index.js +4 -3
- package/primitives/form-control-header/form-control-header.js +6 -5
- package/primitives/form-control-header/index.js +6 -5
- package/primitives/listbox/index.js +3 -2
- package/primitives/listbox/listbox.js +3 -2
- package/primitives/listbox/option.js +3 -2
- package/primitives/ripple/index.js +4 -2
- package/primitives/ripple/ripple.js +4 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsFlex
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ANHTAX6Y.js";
|
|
4
4
|
import {
|
|
5
5
|
styleExpressionProperty
|
|
6
6
|
} from "./chunk.H2KG3F2S.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.WK4MCKEH.js";
|
|
10
10
|
import {
|
|
11
11
|
gdsCustomElement
|
|
12
12
|
} from "./chunk.MLXMQIEV.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.H2KG3F2S.js";
|
|
4
4
|
import {
|
|
5
5
|
forwardAttributes
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.BIKXIJTT.js";
|
|
7
7
|
import {
|
|
8
8
|
GdsFormControlElement
|
|
9
9
|
} from "./chunk.JPBBNSKG.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.TYGMNHNO.js";
|
|
13
13
|
import {
|
|
14
14
|
tokens
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.WK4MCKEH.js";
|
|
16
16
|
import {
|
|
17
17
|
gdsCustomElement,
|
|
18
18
|
html
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsContainer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.JUON57CD.js";
|
|
4
4
|
import {
|
|
5
5
|
styleExpressionProperty
|
|
6
6
|
} from "./chunk.H2KG3F2S.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.WK4MCKEH.js";
|
|
10
10
|
import {
|
|
11
11
|
gdsCustomElement,
|
|
12
12
|
html
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsContainer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.JUON57CD.js";
|
|
4
4
|
import {
|
|
5
5
|
styleExpressionProperty
|
|
6
6
|
} from "./chunk.H2KG3F2S.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.WK4MCKEH.js";
|
|
10
10
|
import {
|
|
11
11
|
gdsCustomElement,
|
|
12
12
|
html
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsContainer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.JUON57CD.js";
|
|
4
4
|
import {
|
|
5
5
|
styleExpressionProperty
|
|
6
6
|
} from "./chunk.H2KG3F2S.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.WK4MCKEH.js";
|
|
10
10
|
import {
|
|
11
11
|
gdsCustomElement,
|
|
12
12
|
html
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
forwardAttributes
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.BIKXIJTT.js";
|
|
4
4
|
import {
|
|
5
5
|
GdsFormControlElement
|
|
6
6
|
} from "./chunk.JPBBNSKG.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.WK4MCKEH.js";
|
|
10
10
|
import {
|
|
11
11
|
gdsCustomElement,
|
|
12
12
|
html
|
package/chunks/chunk.MLXMQIEV.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
// libs/core/src/utils/helpers/custom-element-scoping.ts
|
|
7
7
|
import { html as litHtml } from "lit";
|
|
8
8
|
import { customElement } from "lit/decorators.js";
|
|
9
|
-
var VER_SUFFIX = "-
|
|
9
|
+
var VER_SUFFIX = "-087d7c";
|
|
10
10
|
var ScopedElementRegistry = class {
|
|
11
11
|
static get instance() {
|
|
12
12
|
var _a;
|
|
@@ -7,9 +7,6 @@ import {
|
|
|
7
7
|
__privateMethod
|
|
8
8
|
} from "./chunk.SEHSDSX2.js";
|
|
9
9
|
|
|
10
|
-
// libs/core/src/components/dialog/scroll-lock.ts
|
|
11
|
-
import { css } from "lit";
|
|
12
|
-
|
|
13
10
|
// libs/core/src/utils/global-styles.ts
|
|
14
11
|
var _useLegacyStylesheets, _styleSheets, _legacyStyleSheets, _initialStyleSheets, _injectStylesLegacy, injectStylesLegacy_fn, _injectStyles, injectStyles_fn;
|
|
15
12
|
var _GlobalStylesRegistry = class _GlobalStylesRegistry {
|
|
@@ -69,66 +66,6 @@ injectStyles_fn = function(key, styleSheet) {
|
|
|
69
66
|
};
|
|
70
67
|
var GlobalStylesRegistry = _GlobalStylesRegistry;
|
|
71
68
|
|
|
72
|
-
// libs/core/src/components/dialog/scroll-lock.ts
|
|
73
|
-
var locks = /* @__PURE__ */ new Set();
|
|
74
|
-
function registerGlobalScrollLockStyles() {
|
|
75
|
-
GlobalStylesRegistry.instance.injectGlobalStyles(
|
|
76
|
-
"dialog-scroll-lock",
|
|
77
|
-
css`
|
|
78
|
-
.gds-scroll-lock body {
|
|
79
|
-
padding-right: var(--gds-scroll-lock-size) !important;
|
|
80
|
-
overflow: hidden !important;
|
|
81
|
-
}
|
|
82
|
-
`
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
function lockBodyScrolling(lockingEl) {
|
|
86
|
-
locks.add(lockingEl);
|
|
87
|
-
if (!document.documentElement.classList.contains("gds-scroll-lock")) {
|
|
88
|
-
const scrollbarWidth = getScrollbarWidth() + getExistingBodyPadding();
|
|
89
|
-
let scrollbarGutterProperty = getComputedStyle(
|
|
90
|
-
document.documentElement
|
|
91
|
-
).scrollbarGutter;
|
|
92
|
-
if (!scrollbarGutterProperty || scrollbarGutterProperty === "auto") {
|
|
93
|
-
scrollbarGutterProperty = "stable";
|
|
94
|
-
}
|
|
95
|
-
if (scrollbarWidth < 2) {
|
|
96
|
-
scrollbarGutterProperty = "";
|
|
97
|
-
}
|
|
98
|
-
document.documentElement.style.setProperty(
|
|
99
|
-
"--gds-scroll-lock-gutter",
|
|
100
|
-
scrollbarGutterProperty
|
|
101
|
-
);
|
|
102
|
-
document.documentElement.classList.add("gds-scroll-lock");
|
|
103
|
-
document.documentElement.style.setProperty(
|
|
104
|
-
"--gds-scroll-lock-size",
|
|
105
|
-
`${scrollbarWidth}px`
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function unlockBodyScrolling(lockingEl) {
|
|
110
|
-
locks.delete(lockingEl);
|
|
111
|
-
if (locks.size === 0) {
|
|
112
|
-
document.documentElement.classList.remove("gds-scroll-lock");
|
|
113
|
-
document.documentElement.style.removeProperty("--gds-scroll-lock-size");
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function getScrollbarWidth() {
|
|
117
|
-
const documentWidth = document.documentElement.clientWidth;
|
|
118
|
-
return Math.abs(window.innerWidth - documentWidth);
|
|
119
|
-
}
|
|
120
|
-
function getExistingBodyPadding() {
|
|
121
|
-
const padding = Number(
|
|
122
|
-
getComputedStyle(document.body).paddingRight.replace(/px/, "")
|
|
123
|
-
);
|
|
124
|
-
if (isNaN(padding) || !padding) {
|
|
125
|
-
return 0;
|
|
126
|
-
}
|
|
127
|
-
return padding;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
69
|
export {
|
|
131
|
-
|
|
132
|
-
lockBodyScrolling,
|
|
133
|
-
unlockBodyScrolling
|
|
70
|
+
GlobalStylesRegistry
|
|
134
71
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GlobalStylesRegistry
|
|
3
|
+
} from "./chunk.OHOWIVVP.js";
|
|
4
|
+
|
|
1
5
|
// dist/libs/tokens/internal/dark.css?inline
|
|
2
6
|
var dark_default = `/**
|
|
3
7
|
* Do not edit directly
|
|
4
|
-
* Generated on Fri, 01 Nov 2024
|
|
8
|
+
* Generated on Fri, 01 Nov 2024 13:39:09 GMT
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
color-scheme: dark;
|
|
@@ -115,7 +119,7 @@ color-scheme: dark;
|
|
|
115
119
|
// dist/libs/tokens/internal/light.css?inline
|
|
116
120
|
var light_default = `/**
|
|
117
121
|
* Do not edit directly
|
|
118
|
-
* Generated on Fri, 01 Nov 2024
|
|
122
|
+
* Generated on Fri, 01 Nov 2024 13:39:09 GMT
|
|
119
123
|
*/
|
|
120
124
|
|
|
121
125
|
color-scheme: light;
|
|
@@ -227,12 +231,12 @@ color-scheme: light;
|
|
|
227
231
|
`;
|
|
228
232
|
|
|
229
233
|
// libs/core/src/tokens.style.ts
|
|
230
|
-
import { unsafeCSS } from "lit";
|
|
234
|
+
import { css, unsafeCSS } from "lit";
|
|
231
235
|
|
|
232
236
|
// dist/libs/tokens/internal/motion.css?inline
|
|
233
237
|
var motion_default = `/**
|
|
234
238
|
* Do not edit directly
|
|
235
|
-
* Generated on Fri, 01 Nov 2024
|
|
239
|
+
* Generated on Fri, 01 Nov 2024 13:39:09 GMT
|
|
236
240
|
*/
|
|
237
241
|
|
|
238
242
|
:host {
|
|
@@ -251,7 +255,7 @@ var motion_default = `/**
|
|
|
251
255
|
// dist/libs/tokens/internal/pallet.css?inline
|
|
252
256
|
var pallet_default = `/**
|
|
253
257
|
* Do not edit directly
|
|
254
|
-
* Generated on Fri, 01 Nov 2024
|
|
258
|
+
* Generated on Fri, 01 Nov 2024 13:39:09 GMT
|
|
255
259
|
*/
|
|
256
260
|
|
|
257
261
|
:host {
|
|
@@ -412,7 +416,7 @@ var pallet_default = `/**
|
|
|
412
416
|
// dist/libs/tokens/internal/shadow.css?inline
|
|
413
417
|
var shadow_default = `/**
|
|
414
418
|
* Do not edit directly
|
|
415
|
-
* Generated on Fri, 01 Nov 2024
|
|
419
|
+
* Generated on Fri, 01 Nov 2024 13:39:09 GMT
|
|
416
420
|
*/
|
|
417
421
|
|
|
418
422
|
:host {
|
|
@@ -427,7 +431,7 @@ var shadow_default = `/**
|
|
|
427
431
|
// dist/libs/tokens/internal/size.css?inline
|
|
428
432
|
var size_default = `/**
|
|
429
433
|
* Do not edit directly
|
|
430
|
-
* Generated on Fri, 01 Nov 2024
|
|
434
|
+
* Generated on Fri, 01 Nov 2024 13:39:09 GMT
|
|
431
435
|
*/
|
|
432
436
|
|
|
433
437
|
:host {
|
|
@@ -454,7 +458,7 @@ var size_default = `/**
|
|
|
454
458
|
// dist/libs/tokens/internal/text.css?inline
|
|
455
459
|
var text_default = `/**
|
|
456
460
|
* Do not edit directly
|
|
457
|
-
* Generated on Fri, 01 Nov 2024
|
|
461
|
+
* Generated on Fri, 01 Nov 2024 13:39:09 GMT
|
|
458
462
|
*/
|
|
459
463
|
|
|
460
464
|
:host {
|
|
@@ -515,7 +519,7 @@ var text_default = `/**
|
|
|
515
519
|
// dist/libs/tokens/internal/theme/light.css?inline
|
|
516
520
|
var light_default2 = `/**
|
|
517
521
|
* Do not edit directly
|
|
518
|
-
* Generated on Fri, 01 Nov 2024
|
|
522
|
+
* Generated on Fri, 01 Nov 2024 13:39:09 GMT
|
|
519
523
|
*/
|
|
520
524
|
|
|
521
525
|
:host {
|
|
@@ -741,7 +745,7 @@ var light_default2 = `/**
|
|
|
741
745
|
// dist/libs/tokens/internal/viewport.css?inline
|
|
742
746
|
var viewport_default = `/**
|
|
743
747
|
* Do not edit directly
|
|
744
|
-
* Generated on Fri, 01 Nov 2024
|
|
748
|
+
* Generated on Fri, 01 Nov 2024 13:39:09 GMT
|
|
745
749
|
*/
|
|
746
750
|
|
|
747
751
|
:host {
|
|
@@ -765,12 +769,14 @@ var tokens = [
|
|
|
765
769
|
unsafeCSS(motion_default),
|
|
766
770
|
unsafeCSS(shadow_default)
|
|
767
771
|
];
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
772
|
+
GlobalStylesRegistry.instance.injectGlobalStyles(
|
|
773
|
+
"root-tokens",
|
|
774
|
+
css`
|
|
775
|
+
:root {
|
|
776
|
+
${unsafeCSS(light_default)}
|
|
777
|
+
}
|
|
778
|
+
`
|
|
779
|
+
);
|
|
774
780
|
|
|
775
781
|
export {
|
|
776
782
|
dark_default,
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GlobalStylesRegistry
|
|
3
|
+
} from "./chunk.OHOWIVVP.js";
|
|
4
|
+
|
|
5
|
+
// libs/core/src/components/dialog/scroll-lock.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var locks = /* @__PURE__ */ new Set();
|
|
8
|
+
function registerGlobalScrollLockStyles() {
|
|
9
|
+
GlobalStylesRegistry.instance.injectGlobalStyles(
|
|
10
|
+
"dialog-scroll-lock",
|
|
11
|
+
css`
|
|
12
|
+
.gds-scroll-lock body {
|
|
13
|
+
padding-right: var(--gds-scroll-lock-size) !important;
|
|
14
|
+
overflow: hidden !important;
|
|
15
|
+
}
|
|
16
|
+
`
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
function lockBodyScrolling(lockingEl) {
|
|
20
|
+
locks.add(lockingEl);
|
|
21
|
+
if (!document.documentElement.classList.contains("gds-scroll-lock")) {
|
|
22
|
+
const scrollbarWidth = getScrollbarWidth() + getExistingBodyPadding();
|
|
23
|
+
let scrollbarGutterProperty = getComputedStyle(
|
|
24
|
+
document.documentElement
|
|
25
|
+
).scrollbarGutter;
|
|
26
|
+
if (!scrollbarGutterProperty || scrollbarGutterProperty === "auto") {
|
|
27
|
+
scrollbarGutterProperty = "stable";
|
|
28
|
+
}
|
|
29
|
+
if (scrollbarWidth < 2) {
|
|
30
|
+
scrollbarGutterProperty = "";
|
|
31
|
+
}
|
|
32
|
+
document.documentElement.style.setProperty(
|
|
33
|
+
"--gds-scroll-lock-gutter",
|
|
34
|
+
scrollbarGutterProperty
|
|
35
|
+
);
|
|
36
|
+
document.documentElement.classList.add("gds-scroll-lock");
|
|
37
|
+
document.documentElement.style.setProperty(
|
|
38
|
+
"--gds-scroll-lock-size",
|
|
39
|
+
`${scrollbarWidth}px`
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function unlockBodyScrolling(lockingEl) {
|
|
44
|
+
locks.delete(lockingEl);
|
|
45
|
+
if (locks.size === 0) {
|
|
46
|
+
document.documentElement.classList.remove("gds-scroll-lock");
|
|
47
|
+
document.documentElement.style.removeProperty("--gds-scroll-lock-size");
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function getScrollbarWidth() {
|
|
51
|
+
const documentWidth = document.documentElement.clientWidth;
|
|
52
|
+
return Math.abs(window.innerWidth - documentWidth);
|
|
53
|
+
}
|
|
54
|
+
function getExistingBodyPadding() {
|
|
55
|
+
const padding = Number(
|
|
56
|
+
getComputedStyle(document.body).paddingRight.replace(/px/, "")
|
|
57
|
+
);
|
|
58
|
+
if (isNaN(padding) || !padding) {
|
|
59
|
+
return 0;
|
|
60
|
+
}
|
|
61
|
+
return padding;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
registerGlobalScrollLockStyles,
|
|
66
|
+
lockBodyScrolling,
|
|
67
|
+
unlockBodyScrolling
|
|
68
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsBadge
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.525UYGPO.js";
|
|
4
|
+
import "../../chunks/chunk.WK4MCKEH.js";
|
|
5
|
+
import "../../chunks/chunk.OHOWIVVP.js";
|
|
5
6
|
import "../../chunks/chunk.YO24ZYAD.js";
|
|
6
7
|
import "../../chunks/chunk.6X2WDWO3.js";
|
|
7
8
|
import "../../chunks/chunk.MLXMQIEV.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "../../chunks/chunk.CK2UGCPG.js";
|
|
2
2
|
import {
|
|
3
3
|
GdsBadge
|
|
4
|
-
} from "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
4
|
+
} from "../../chunks/chunk.525UYGPO.js";
|
|
5
|
+
import "../../chunks/chunk.WK4MCKEH.js";
|
|
6
|
+
import "../../chunks/chunk.OHOWIVVP.js";
|
|
6
7
|
import "../../chunks/chunk.YO24ZYAD.js";
|
|
7
8
|
import "../../chunks/chunk.6X2WDWO3.js";
|
|
8
9
|
import "../../chunks/chunk.MLXMQIEV.js";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsButton
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.BIKXIJTT.js";
|
|
4
4
|
import "../../chunks/chunk.TX64TTBN.js";
|
|
5
|
-
import "../../chunks/chunk.
|
|
5
|
+
import "../../chunks/chunk.UFDLCGCX.js";
|
|
6
6
|
import "../../chunks/chunk.JPBBNSKG.js";
|
|
7
7
|
import "../../chunks/chunk.WM7HBMMV.js";
|
|
8
8
|
import "../../chunks/chunk.JMP5YJFE.js";
|
|
9
9
|
import "../../chunks/chunk.TYGMNHNO.js";
|
|
10
|
-
import "../../chunks/chunk.
|
|
10
|
+
import "../../chunks/chunk.WK4MCKEH.js";
|
|
11
|
+
import "../../chunks/chunk.OHOWIVVP.js";
|
|
11
12
|
import "../../chunks/chunk.YO24ZYAD.js";
|
|
12
13
|
import "../../chunks/chunk.6X2WDWO3.js";
|
|
13
14
|
import "../../chunks/chunk.MLXMQIEV.js";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import "../../chunks/chunk.JGTSJ4J6.js";
|
|
2
2
|
import {
|
|
3
3
|
GdsButton
|
|
4
|
-
} from "../../chunks/chunk.
|
|
4
|
+
} from "../../chunks/chunk.BIKXIJTT.js";
|
|
5
5
|
import "../../chunks/chunk.TX64TTBN.js";
|
|
6
|
-
import "../../chunks/chunk.
|
|
6
|
+
import "../../chunks/chunk.UFDLCGCX.js";
|
|
7
7
|
import "../../chunks/chunk.JPBBNSKG.js";
|
|
8
8
|
import "../../chunks/chunk.WM7HBMMV.js";
|
|
9
9
|
import "../../chunks/chunk.JMP5YJFE.js";
|
|
10
10
|
import "../../chunks/chunk.TYGMNHNO.js";
|
|
11
|
-
import "../../chunks/chunk.
|
|
11
|
+
import "../../chunks/chunk.WK4MCKEH.js";
|
|
12
|
+
import "../../chunks/chunk.OHOWIVVP.js";
|
|
12
13
|
import "../../chunks/chunk.YO24ZYAD.js";
|
|
13
14
|
import "../../chunks/chunk.6X2WDWO3.js";
|
|
14
15
|
import "../../chunks/chunk.MLXMQIEV.js";
|