@octanejs/base-ui 0.1.51 → 0.1.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/base-ui",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -431,7 +431,7 @@
431
431
  "dependencies": {
432
432
  "@floating-ui/utils": "^0.2.12",
433
433
  "@octanejs/base-ui-utils": "0.1.1",
434
- "@octanejs/floating-ui": "0.1.52"
434
+ "@octanejs/floating-ui": "0.1.53"
435
435
  },
436
436
  "peerDependencies": {
437
437
  "octane": "^0.2.5",
@@ -441,7 +441,7 @@
441
441
  },
442
442
  "devDependencies": {
443
443
  "@base-ui/react": "1.8.0",
444
- "@tsrx/react": "^0.2.67",
444
+ "@tsrx/react": "^0.3.0",
445
445
  "esbuild": "^0.28.1",
446
446
  "react": "19.2.8",
447
447
  "react-dom": "19.2.8",
@@ -467,7 +467,7 @@
467
467
  "typescript-pristine-native": "npm:typescript@7.0.2",
468
468
  "jsdom": "27.4.0",
469
469
  "semver": "7.8.5",
470
- "octane": "0.2.5",
470
+ "octane": "0.2.12",
471
471
  "@octanejs/testing-library": "0.1.51",
472
472
  "@octanejs/remix-router": "0.1.48"
473
473
  },
@@ -1,15 +1,21 @@
1
1
  const DISABLE_SCROLLBAR_CLASS_NAME = 'base-ui-disable-scrollbar';
2
2
 
3
+ // Resource hoisting is compile-time in Octane. Keep the style in a template;
4
+ // a host descriptor returned from the object method stays in the body.
5
+ function DisableScrollbarStyle({ nonce }: { nonce?: string }) @{
6
+ <style nonce={nonce} href={DISABLE_SCROLLBAR_CLASS_NAME} precedence="base-ui:low">
7
+ .base-ui-disable-scrollbar {
8
+ scrollbar-width: none;
9
+ }
10
+ .base-ui-disable-scrollbar::-webkit-scrollbar {
11
+ display: none;
12
+ }
13
+ </style>
14
+ }
15
+
3
16
  export const styleDisableScrollbar = {
4
17
  className: DISABLE_SCROLLBAR_CLASS_NAME,
5
18
  getElement(nonce?: string) {
6
- return (
7
- <style
8
- nonce={nonce}
9
- href={DISABLE_SCROLLBAR_CLASS_NAME}
10
- precedence="base-ui:low"
11
- children={`.${DISABLE_SCROLLBAR_CLASS_NAME}{scrollbar-width:none}.${DISABLE_SCROLLBAR_CLASS_NAME}::-webkit-scrollbar{display:none}`}
12
- />
13
- );
19
+ return <DisableScrollbarStyle nonce={nonce} />;
14
20
  },
15
21
  };