@ox0/ui 3.10.0 → 3.10.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.
@@ -1 +1 @@
1
- {"version":3,"file":"theme-root.d.ts","sourceRoot":"","sources":["../../src/components/theme-root.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAErF"}
1
+ {"version":3,"file":"theme-root.d.ts","sourceRoot":"","sources":["../../src/components/theme-root.ts"],"names":[],"mappings":"AAOA,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAIrF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=theme-root.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-root.test.d.ts","sourceRoot":"","sources":["../../src/components/theme-root.test.ts"],"names":[],"mappings":""}
package/dist/index.js CHANGED
@@ -6738,9 +6738,10 @@ const button_Button = /*#__PURE__*/ forwardRef(function({ children, icon: Icon,
6738
6738
  })
6739
6739
  });
6740
6740
  });
6741
- const THEME_SCOPE = "[data-theme], [data-color-scheme], [data-density]";
6741
+ const THEME_SCOPE = "[data-ox0-root], [data-theme], [data-color-scheme], [data-density]";
6742
6742
  function themeRoot(anchor) {
6743
- return anchor?.closest(THEME_SCOPE) ?? void 0;
6743
+ const root = anchor?.closest(THEME_SCOPE);
6744
+ return root && root !== root.ownerDocument.documentElement ? root : void 0;
6744
6745
  }
6745
6746
  const WARMUP_MS = 1000;
6746
6747
  const COOLDOWN_MS = 500;
@@ -13649,6 +13650,7 @@ function Ox0Provider({ children, colorScheme, density, locale, messages, navigat
13649
13650
  value: routerValue,
13650
13651
  children: /*#__PURE__*/ jsx("div", {
13651
13652
  className: ox0_provider_module.root,
13653
+ "data-ox0-root": "",
13652
13654
  "data-theme": neutralTheme,
13653
13655
  "data-color-scheme": dataColorScheme,
13654
13656
  "data-density": dataDensity,
@@ -1 +1 @@
1
- {"version":3,"file":"ox0-provider.d.ts","sourceRoot":"","sources":["../../src/providers/ox0-provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG9C,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,oBAAoB,CAAA;AAKtE,OAAO,wBAAwB,CAAA;AAG/B,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC1C;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAA;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAA;IAClC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,WAAW,CAAA;IACrC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAA;IAChC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAA;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3C;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,GACf,EAAE,gBAAgB,+BA2BlB"}
1
+ {"version":3,"file":"ox0-provider.d.ts","sourceRoot":"","sources":["../../src/providers/ox0-provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG9C,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,oBAAoB,CAAA;AAKtE,OAAO,wBAAwB,CAAA;AAG/B,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC1C;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAA;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAA;IAClC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,WAAW,CAAA;IACrC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAA;IAChC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAA;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3C;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,GACf,EAAE,gBAAgB,+BA6BlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ox0/ui",
3
- "version": "3.10.0",
3
+ "version": "3.10.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/esturcke/ox0-platform.git",
@@ -25,9 +25,9 @@
25
25
  "@internationalized/date": "^3.12.4",
26
26
  "react-aria": "^3.52.1",
27
27
  "react-stately": "^3.50.0",
28
- "@ox0/hooks": "0.3.0",
29
28
  "@ox0/i18n": "0.4.0",
30
- "@ox0/tokens": "0.7.0"
29
+ "@ox0/tokens": "0.7.0",
30
+ "@ox0/hooks": "0.3.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": "^19.0.0",