@aortl/admin-react 0.12.0 → 0.13.0

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,10 +1,13 @@
1
1
  import { RefObject } from 'react';
2
2
  /**
3
3
  * Container that Base UI popups (Select, Tooltip, etc.) should portal into.
4
- * When a `<Dialog>` ancestor publishes its `<dialog>` element through this
5
- * context, popups render inside that top-layer dialog so they paint above
6
- * the backdrop and escape its `overflow: hidden`. Outside a dialog the
7
- * context is null and popups portal to `document.body` as before.
4
+ * `<AdminRoot>` publishes its own element here so popups render inside the
5
+ * scoped subtree and match the `@scope (._ao-admin-root)` CSS without it
6
+ * they portal to `document.body`, outside the scope, and render unstyled. A
7
+ * `<Dialog>` ancestor overrides it with its own `<dialog>` element so popups
8
+ * join the top layer, painting above the backdrop and escaping its
9
+ * `overflow: hidden`. With no provider the context is null and popups fall
10
+ * back to `document.body`.
8
11
  */
9
12
  export declare const PortalContainerContext: import('react').Context<RefObject<HTMLElement | null> | null>;
10
13
  //# sourceMappingURL=portal-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"portal-context.d.ts","sourceRoot":"","sources":["../src/portal-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,+DAA4D,CAAC"}
1
+ {"version":3,"file":"portal-context.d.ts","sourceRoot":"","sources":["../src/portal-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,+DAA4D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aortl/admin-react",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "React component library for the admin design system. Pairs with @aortl/admin-css.",
5
5
  "keywords": [
6
6
  "components",
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@base-ui/react": "1.4.1",
44
44
  "clsx": "2.1.1",
45
- "@aortl/admin-css": "0.12.0"
45
+ "@aortl/admin-css": "0.13.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@testing-library/dom": "10.4.1",