-
-
-
-
-
+
+ {children}
);
};
-function mergeHostClassNames(osInstance: OverlayScrollbars, className: string) {
- if (OverlayScrollbars.valid(osInstance)) {
- const { host } = osInstance.getElements();
- const regex = new RegExp(
- `(^os-host([-_].+|)$)|${osInstance.options().className.replace(/\s/g, '$|')}$`,
- 'g'
- );
- const osClassNames = host.className
- .split(' ')
- .filter((name) => name.match(regex))
- .join(' ');
-
- host.className = `${osClassNames} ${className || ''}`;
- }
-}
-
export default OverlayScrollbarsComponent;
diff --git a/code/ui/components/src/ScrollArea/ScrollArea.stories.tsx b/code/ui/components/src/ScrollArea/ScrollArea.stories.tsx
index 85d3e8aa7522..e4a7a09e7dc2 100644
--- a/code/ui/components/src/ScrollArea/ScrollArea.stories.tsx
+++ b/code/ui/components/src/ScrollArea/ScrollArea.stories.tsx
@@ -51,9 +51,11 @@ export const Vertical = () => (
export const Horizontal = () => (
- {list((i) => (
- {i}
- ))}
+
+ {list((i) => (
+ {i}
+ ))}
+
);
diff --git a/code/ui/components/src/ScrollArea/ScrollArea.tsx b/code/ui/components/src/ScrollArea/ScrollArea.tsx
index 46d989742b10..02cce4bdd8f5 100644
--- a/code/ui/components/src/ScrollArea/ScrollArea.tsx
+++ b/code/ui/components/src/ScrollArea/ScrollArea.tsx
@@ -8,7 +8,10 @@ const OverlayScrollbars = lazy(() => import('./OverlayScrollbars'));
const Scroller: FC
= ({ horizontal, vertical, ...props }) => (
}>
-
+
);
diff --git a/code/yarn.lock b/code/yarn.lock
index b4a8d2e1cdfd..2513cf877d8b 100644
--- a/code/yarn.lock
+++ b/code/yarn.lock
@@ -2908,7 +2908,7 @@ __metadata:
languageName: node
linkType: hard
-"@gar/promisify@npm:^1.0.1, @gar/promisify@npm:^1.1.3":
+"@gar/promisify@npm:^1.1.3":
version: 1.1.3
resolution: "@gar/promisify@npm:1.1.3"
checksum: 0b3c9958d3cd17f4add3574975e3115ae05dc7f1298a60810414b16f6f558c137b5fb3cd3905df380bacfd955ec13f67c1e6710cbb5c246a7e8d65a8289b2bff
@@ -4158,16 +4158,6 @@ __metadata:
languageName: node
linkType: hard
-"@npmcli/fs@npm:^1.0.0":
- version: 1.1.1
- resolution: "@npmcli/fs@npm:1.1.1"
- dependencies:
- "@gar/promisify": ^1.0.1
- semver: ^7.3.5
- checksum: 4143c317a7542af9054018b71601e3c3392e6704e884561229695f099a71336cbd580df9a9ffb965d0024bf0ed593189ab58900fd1714baef1c9ee59c738c3e2
- languageName: node
- linkType: hard
-
"@npmcli/fs@npm:^2.1.0":
version: 2.1.2
resolution: "@npmcli/fs@npm:2.1.2"
@@ -4239,16 +4229,6 @@ __metadata:
languageName: node
linkType: hard
-"@npmcli/move-file@npm:^1.0.1":
- version: 1.1.2
- resolution: "@npmcli/move-file@npm:1.1.2"
- dependencies:
- mkdirp: ^1.0.4
- rimraf: ^3.0.2
- checksum: 02e946f3dafcc6743132fe2e0e2b585a96ca7265653a38df5a3e53fcf26c7c7a57fc0f861d7c689a23fdb6d6836c7eea5050c8086abf3c994feb2208d1514ff0
- languageName: node
- linkType: hard
-
"@npmcli/move-file@npm:^2.0.0":
version: 2.0.1
resolution: "@npmcli/move-file@npm:2.0.1"
@@ -6277,7 +6257,8 @@ __metadata:
"@types/util-deprecate": ^1.0.0
css: ^3.0.0
memoizerific: ^1.11.3
- overlayscrollbars: ^1.13.1
+ overlayscrollbars: ^2.2.0
+ overlayscrollbars-react: ^0.5.0
polished: ^4.2.2
prettier: ^2.8.0
react-popper-tooltip: ^4.4.2
@@ -6388,7 +6369,7 @@ __metadata:
jest-os-detection: ^1.3.1
jest-specific-snapshot: ^7.0.0
lodash: ^4.17.21
- node-fetch: ^2.6.7
+ node-fetch: ^3.3.1
open: ^8.4.0
pretty-hrtime: ^1.0.3
prompts: ^2.4.0
@@ -7414,7 +7395,7 @@ __metadata:
lerna: ^6.4.0
lint-staged: ^10.5.4
lodash: ^4.17.21
- node-gyp: ^8.4.0
+ node-gyp: ^9.3.1
nx: 16.2.1
nx-cloud: 16.0.5
prettier: 2.8.0
@@ -8132,13 +8113,6 @@ __metadata:
languageName: node
linkType: hard
-"@tootallnate/once@npm:1":
- version: 1.1.2
- resolution: "@tootallnate/once@npm:1.1.2"
- checksum: 8fe4d006e90422883a4fa9339dd05a83ff626806262e1710cee5758d493e8cbddf2db81c0e4690636dc840b02c9fda62877866ea774ebd07c1777ed5fafbdec6
- languageName: node
- linkType: hard
-
"@tootallnate/once@npm:2":
version: 2.0.0
resolution: "@tootallnate/once@npm:2.0.0"
@@ -9981,7 +9955,7 @@ __metadata:
languageName: node
linkType: hard
-"abbrev@npm:1, abbrev@npm:^1.0.0":
+"abbrev@npm:^1.0.0":
version: 1.1.1
resolution: "abbrev@npm:1.1.1"
checksum: 3f762677702acb24f65e813070e306c61fafe25d4b2583f9dfc935131f774863f3addd5741572ed576bd69cabe473c5af18e1e108b829cb7b6b4747884f726e6
@@ -10133,7 +10107,7 @@ __metadata:
languageName: node
linkType: hard
-"agentkeepalive@npm:^4.1.3, agentkeepalive@npm:^4.2.1":
+"agentkeepalive@npm:^4.2.1":
version: 4.3.0
resolution: "agentkeepalive@npm:4.3.0"
dependencies:
@@ -11992,32 +11966,6 @@ __metadata:
languageName: node
linkType: hard
-"cacache@npm:^15.2.0":
- version: 15.3.0
- resolution: "cacache@npm:15.3.0"
- dependencies:
- "@npmcli/fs": ^1.0.0
- "@npmcli/move-file": ^1.0.1
- chownr: ^2.0.0
- fs-minipass: ^2.0.0
- glob: ^7.1.4
- infer-owner: ^1.0.4
- lru-cache: ^6.0.0
- minipass: ^3.1.1
- minipass-collect: ^1.0.2
- minipass-flush: ^1.0.5
- minipass-pipeline: ^1.2.2
- mkdirp: ^1.0.3
- p-map: ^4.0.0
- promise-inflight: ^1.0.1
- rimraf: ^3.0.2
- ssri: ^8.0.1
- tar: ^6.0.2
- unique-filename: ^1.1.1
- checksum: 886fcc0acc4f6fd5cd142d373d8276267bc6d655d7c4ce60726fbbec10854de3395ee19bbf9e7e73308cdca9fdad0ad55060ff3bd16c6d4165c5b8d21515e1d8
- languageName: node
- linkType: hard
-
"cacache@npm:^16.1.0":
version: 16.1.3
resolution: "cacache@npm:16.1.3"
@@ -13593,6 +13541,13 @@ __metadata:
languageName: node
linkType: hard
+"data-uri-to-buffer@npm:^4.0.0":
+ version: 4.0.1
+ resolution: "data-uri-to-buffer@npm:4.0.1"
+ checksum: 20a6b93107597530d71d4cb285acee17f66bcdfc03fd81040921a81252f19db27588d87fc8fc69e1950c55cfb0bf8ae40d0e5e21d907230813eb5d5a7f9eb45b
+ languageName: node
+ linkType: hard
+
"data-urls@npm:^3.0.1, data-urls@npm:^3.0.2":
version: 3.0.2
resolution: "data-urls@npm:3.0.2"
@@ -14632,7 +14587,7 @@ __metadata:
languageName: node
linkType: hard
-"encoding@npm:^0.1.12, encoding@npm:^0.1.13":
+"encoding@npm:^0.1.13":
version: 0.1.13
resolution: "encoding@npm:0.1.13"
dependencies:
@@ -16158,6 +16113,16 @@ __metadata:
languageName: node
linkType: hard
+"fetch-blob@npm:^3.1.2, fetch-blob@npm:^3.1.4":
+ version: 3.2.0
+ resolution: "fetch-blob@npm:3.2.0"
+ dependencies:
+ node-domexception: ^1.0.0
+ web-streams-polyfill: ^3.0.3
+ checksum: 60054bf47bfa10fb0ba6cb7742acec2f37c1f56344f79a70bb8b1c48d77675927c720ff3191fa546410a0442c998d27ab05e9144c32d530d8a52fbe68f843b69
+ languageName: node
+ linkType: hard
+
"fetch-retry@npm:^5.0.2":
version: 5.0.6
resolution: "fetch-retry@npm:5.0.6"
@@ -16544,6 +16509,15 @@ __metadata:
languageName: node
linkType: hard
+"formdata-polyfill@npm:^4.0.10":
+ version: 4.0.10
+ resolution: "formdata-polyfill@npm:4.0.10"
+ dependencies:
+ fetch-blob: ^3.1.2
+ checksum: 5392ec484f9ce0d5e0d52fb5a78e7486637d516179b0eb84d81389d7eccf9ca2f663079da56f761355c0a65792810e3b345dc24db9a8bbbcf24ef3c8c88570c6
+ languageName: node
+ linkType: hard
+
"formik@npm:^2.2.9":
version: 2.4.0
resolution: "formik@npm:2.4.0"
@@ -18052,17 +18026,6 @@ __metadata:
languageName: node
linkType: hard
-"http-proxy-agent@npm:^4.0.1":
- version: 4.0.1
- resolution: "http-proxy-agent@npm:4.0.1"
- dependencies:
- "@tootallnate/once": 1
- agent-base: 6
- debug: 4
- checksum: 4fa4774d65b5331814b74ac05cefea56854fc0d5989c80b13432c1b0d42a14c9f4342ca3ad9f0359a52e78da12b1744c9f8a28e50042136ea9171675d972a5fd
- languageName: node
- linkType: hard
-
"http-proxy-agent@npm:^5.0.0":
version: 5.0.0
resolution: "http-proxy-agent@npm:5.0.0"
@@ -21636,30 +21599,6 @@ __metadata:
languageName: node
linkType: hard
-"make-fetch-happen@npm:^9.1.0":
- version: 9.1.0
- resolution: "make-fetch-happen@npm:9.1.0"
- dependencies:
- agentkeepalive: ^4.1.3
- cacache: ^15.2.0
- http-cache-semantics: ^4.1.0
- http-proxy-agent: ^4.0.1
- https-proxy-agent: ^5.0.0
- is-lambda: ^1.0.1
- lru-cache: ^6.0.0
- minipass: ^3.1.3
- minipass-collect: ^1.0.2
- minipass-fetch: ^1.3.2
- minipass-flush: ^1.0.5
- minipass-pipeline: ^1.2.4
- negotiator: ^0.6.2
- promise-retry: ^2.0.1
- socks-proxy-agent: ^6.0.0
- ssri: ^8.0.0
- checksum: 2c737faf6a7f67077679da548b5bfeeef890595bf8c4323a1f76eae355d27ebb33dcf9cf1a673f944cf2f2a7cbf4e2b09f0a0a62931737728f210d902c6be966
- languageName: node
- linkType: hard
-
"makeerror@npm:1.0.12":
version: 1.0.12
resolution: "makeerror@npm:1.0.12"
@@ -22791,21 +22730,6 @@ __metadata:
languageName: node
linkType: hard
-"minipass-fetch@npm:^1.3.2":
- version: 1.4.1
- resolution: "minipass-fetch@npm:1.4.1"
- dependencies:
- encoding: ^0.1.12
- minipass: ^3.1.0
- minipass-sized: ^1.0.3
- minizlib: ^2.0.0
- dependenciesMeta:
- encoding:
- optional: true
- checksum: a43da7401cd7c4f24b993887d41bd37d097356083b0bb836fd655916467463a1e6e9e553b2da4fcbe8745bf23d40c8b884eab20745562199663b3e9060cd8e7a
- languageName: node
- linkType: hard
-
"minipass-fetch@npm:^2.0.3":
version: 2.1.2
resolution: "minipass-fetch@npm:2.1.2"
@@ -22855,7 +22779,7 @@ __metadata:
languageName: node
linkType: hard
-"minipass-pipeline@npm:^1.2.2, minipass-pipeline@npm:^1.2.4":
+"minipass-pipeline@npm:^1.2.4":
version: 1.2.4
resolution: "minipass-pipeline@npm:1.2.4"
dependencies:
@@ -22873,7 +22797,7 @@ __metadata:
languageName: node
linkType: hard
-"minipass@npm:^3.0.0, minipass@npm:^3.1.0, minipass@npm:^3.1.1, minipass@npm:^3.1.3, minipass@npm:^3.1.6":
+"minipass@npm:^3.0.0, minipass@npm:^3.1.1, minipass@npm:^3.1.6":
version: 3.3.6
resolution: "minipass@npm:3.3.6"
dependencies:
@@ -22903,7 +22827,7 @@ __metadata:
languageName: node
linkType: hard
-"minizlib@npm:^2.0.0, minizlib@npm:^2.1.1, minizlib@npm:^2.1.2":
+"minizlib@npm:^2.1.1, minizlib@npm:^2.1.2":
version: 2.1.2
resolution: "minizlib@npm:2.1.2"
dependencies:
@@ -23162,7 +23086,7 @@ __metadata:
languageName: node
linkType: hard
-"negotiator@npm:0.6.3, negotiator@npm:^0.6.2, negotiator@npm:^0.6.3":
+"negotiator@npm:0.6.3, negotiator@npm:^0.6.3":
version: 0.6.3
resolution: "negotiator@npm:0.6.3"
checksum: 3ec9fd413e7bf071c937ae60d572bc67155262068ed522cf4b3be5edbe6ddf67d095ec03a3a14ebf8fc8e95f8e1d61be4869db0dbb0de696f6b837358bd43fc2
@@ -23294,6 +23218,13 @@ __metadata:
languageName: node
linkType: hard
+"node-domexception@npm:^1.0.0":
+ version: 1.0.0
+ resolution: "node-domexception@npm:1.0.0"
+ checksum: 5e5d63cda29856402df9472335af4bb13875e1927ad3be861dc5ebde38917aecbf9ae337923777af52a48c426b70148815e890a5d72760f1b4d758cc671b1a2b
+ languageName: node
+ linkType: hard
+
"node-fetch-native@npm:^1.0.2":
version: 1.1.1
resolution: "node-fetch-native@npm:1.1.1"
@@ -23329,6 +23260,17 @@ __metadata:
languageName: node
linkType: hard
+"node-fetch@npm:^3.3.1":
+ version: 3.3.1
+ resolution: "node-fetch@npm:3.3.1"
+ dependencies:
+ data-uri-to-buffer: ^4.0.0
+ fetch-blob: ^3.1.4
+ formdata-polyfill: ^4.0.10
+ checksum: 78671bffed741a2f3ccb15588a42fd7e9db2bdc9f99f9f584e0c749307f9603d961692f0877d853b28a4d1375ab2253b19978dd3bfc0c3189b42adc340bef927
+ languageName: node
+ linkType: hard
+
"node-forge@npm:^1, node-forge@npm:^1.3.1":
version: 1.3.1
resolution: "node-forge@npm:1.3.1"
@@ -23347,27 +23289,7 @@ __metadata:
languageName: node
linkType: hard
-"node-gyp@npm:^8.4.0":
- version: 8.4.1
- resolution: "node-gyp@npm:8.4.1"
- dependencies:
- env-paths: ^2.2.0
- glob: ^7.1.4
- graceful-fs: ^4.2.6
- make-fetch-happen: ^9.1.0
- nopt: ^5.0.0
- npmlog: ^6.0.0
- rimraf: ^3.0.2
- semver: ^7.3.5
- tar: ^6.1.2
- which: ^2.0.2
- bin:
- node-gyp: bin/node-gyp.js
- checksum: 80ef333b3a882eb6a2695a8e08f31d618f4533eff192864e4a3a16b67ff0abc9d8c1d5fac0395550ec699326b9248c5e2b3be178492f7f4d1ccf97d2cf948021
- languageName: node
- linkType: hard
-
-"node-gyp@npm:^9.0.0, node-gyp@npm:latest":
+"node-gyp@npm:^9.0.0, node-gyp@npm:^9.3.1, node-gyp@npm:latest":
version: 9.3.1
resolution: "node-gyp@npm:9.3.1"
dependencies:
@@ -23443,17 +23365,6 @@ __metadata:
languageName: node
linkType: hard
-"nopt@npm:^5.0.0":
- version: 5.0.0
- resolution: "nopt@npm:5.0.0"
- dependencies:
- abbrev: 1
- bin:
- nopt: bin/nopt.js
- checksum: fc5c4f07155cb455bf5fc3dd149fac421c1a40fd83c6bfe83aa82b52f02c17c5e88301321318adaa27611c8a6811423d51d29deaceab5fa158b585a61a551061
- languageName: node
- linkType: hard
-
"nopt@npm:^6.0.0":
version: 6.0.0
resolution: "nopt@npm:6.0.0"
@@ -24283,10 +24194,20 @@ __metadata:
languageName: node
linkType: hard
-"overlayscrollbars@npm:^1.13.1":
- version: 1.13.3
- resolution: "overlayscrollbars@npm:1.13.3"
- checksum: 2eea68189aebf772282305ff83c90a6caa20b7e0f2b0dd792a017a6226c68a2db756665c59a8a40b1de53e83c3918c9a13dc35875b6e1d56ff08237cb6f57699
+"overlayscrollbars-react@npm:^0.5.0":
+ version: 0.5.0
+ resolution: "overlayscrollbars-react@npm:0.5.0"
+ peerDependencies:
+ overlayscrollbars: ^2.0.0
+ react: ">=16.8.0"
+ checksum: 2d70c41e8f171c0e701825b17a3184e403f8173a7124112834feec8f90d3633337acfffdeaf41583b2f948191b855d8a468ebd0990d8437a792ca4899801abd0
+ languageName: node
+ linkType: hard
+
+"overlayscrollbars@npm:^2.2.0":
+ version: 2.2.0
+ resolution: "overlayscrollbars@npm:2.2.0"
+ checksum: 25a2b5cc6c5cd5276bb82b7338ceed307815c3d0ee8ea8053f4b19898189b955d00da4f03e1615b8e330fdf61275e02791818937901fff17cc5462d7bb9b8edc
languageName: node
linkType: hard
@@ -28314,17 +28235,6 @@ __metadata:
languageName: node
linkType: hard
-"socks-proxy-agent@npm:^6.0.0":
- version: 6.2.1
- resolution: "socks-proxy-agent@npm:6.2.1"
- dependencies:
- agent-base: ^6.0.2
- debug: ^4.3.3
- socks: ^2.6.2
- checksum: d75c1cf1fdd7f8309a43a77f84409b793fc0f540742ef915154e70ac09a08b0490576fe85d4f8d68bbf80e604a62957a17ab5ef50d312fe1442b0ab6f8f6e6f6
- languageName: node
- linkType: hard
-
"socks-proxy-agent@npm:^7.0.0":
version: 7.0.0
resolution: "socks-proxy-agent@npm:7.0.0"
@@ -28698,15 +28608,6 @@ __metadata:
languageName: node
linkType: hard
-"ssri@npm:^8.0.0, ssri@npm:^8.0.1":
- version: 8.0.1
- resolution: "ssri@npm:8.0.1"
- dependencies:
- minipass: ^3.1.1
- checksum: 5cfae216ae02dcd154d1bbed2d0a60038a4b3a2fcaac3c7e47401ff4e058e551ee74cfdba618871bf168cd583db7b8324f94af6747d4303b73cd4c3f6dc5c9c2
- languageName: node
- linkType: hard
-
"stack-utils@npm:^2.0.2, stack-utils@npm:^2.0.3":
version: 2.0.6
resolution: "stack-utils@npm:2.0.6"
@@ -29407,7 +29308,7 @@ __metadata:
languageName: node
linkType: hard
-"tar@npm:^6.0.2, tar@npm:^6.1.11, tar@npm:^6.1.13, tar@npm:^6.1.2":
+"tar@npm:^6.1.11, tar@npm:^6.1.13, tar@npm:^6.1.2":
version: 6.1.15
resolution: "tar@npm:6.1.15"
dependencies:
@@ -30477,15 +30378,6 @@ __metadata:
languageName: node
linkType: hard
-"unique-filename@npm:^1.1.1":
- version: 1.1.1
- resolution: "unique-filename@npm:1.1.1"
- dependencies:
- unique-slug: ^2.0.0
- checksum: d005bdfaae6894da8407c4de2b52f38b3c58ec86e79fc2ee19939da3085374413b073478ec54e721dc8e32b102cf9e50d0481b8331abdc62202e774b789ea874
- languageName: node
- linkType: hard
-
"unique-filename@npm:^2.0.0":
version: 2.0.1
resolution: "unique-filename@npm:2.0.1"
@@ -30504,15 +30396,6 @@ __metadata:
languageName: node
linkType: hard
-"unique-slug@npm:^2.0.0":
- version: 2.0.2
- resolution: "unique-slug@npm:2.0.2"
- dependencies:
- imurmurhash: ^0.1.4
- checksum: 9eabc51680cf0b8b197811a48857e41f1364b25362300c1ff636c0eca5ec543a92a38786f59cf0697e62c6f814b11ecbe64e8093db71246468a1f03b80c83970
- languageName: node
- linkType: hard
-
"unique-slug@npm:^3.0.0":
version: 3.0.0
resolution: "unique-slug@npm:3.0.0"
@@ -31626,6 +31509,13 @@ __metadata:
languageName: node
linkType: hard
+"web-streams-polyfill@npm:^3.0.3":
+ version: 3.2.1
+ resolution: "web-streams-polyfill@npm:3.2.1"
+ checksum: 70ed6b5708e14afa2ab699221ea197d7c68ec0c8274bbe0181aecc5ba636ca27cbd383d2049f0eb9d529e738f5c088825502b317f3df24d18a278e4cc9a10e8b
+ languageName: node
+ linkType: hard
+
"webidl-conversions@npm:^3.0.0":
version: 3.0.1
resolution: "webidl-conversions@npm:3.0.1"