@eqtylab/equality 2.5.0 → 3.0.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.
@@ -10,6 +10,14 @@
10
10
  @import './generated/tailwind-tokens.css';
11
11
 
12
12
  @import './theme-base.css';
13
- @import './theme-preflight-global.css';
14
13
  @import './theme-components.css';
15
14
  @import './theme-utilities.css';
15
+
16
+ /* NOTE: preflight is deliberately NOT imported here. It is an opt-in import so
17
+ that host sites with their own base styles can skip it or scope it:
18
+
19
+ @import '@eqtylab/equality/preflight.css' layer(base); // own the document
20
+ @import '@eqtylab/equality/preflight-scoped.css' layer(base); // reset only inside
21
+ // [data-equality-root]
22
+ Import this file first so the layer order above is registered before the
23
+ preflight lands in `base`. */
package/dist/index.cjs CHANGED
@@ -4178,10 +4178,19 @@ var PortalContainerProvider = ({ container, children }) => /* @__PURE__ */ jsxRu
4178
4178
  var ThemeProvider = ({ customVars, portalContainer, children }) => {
4179
4179
  const [ownPortalContainer, setOwnPortalContainer] = React15__namespace.useState(null);
4180
4180
  const usesOwnPortal = portalContainer === void 0;
4181
- return /* @__PURE__ */ jsxRuntime.jsx(PortalContainerProvider, { container: usesOwnPortal ? ownPortalContainer : portalContainer, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { id: "equality-theme-provider-root", className: styles63__default.default.root, style: customVars, children: [
4182
- children,
4183
- usesOwnPortal && /* @__PURE__ */ jsxRuntime.jsx(Portal8, { ref: setOwnPortalContainer })
4184
- ] }) });
4181
+ return /* @__PURE__ */ jsxRuntime.jsx(PortalContainerProvider, { container: usesOwnPortal ? ownPortalContainer : portalContainer, children: /* @__PURE__ */ jsxRuntime.jsxs(
4182
+ "div",
4183
+ {
4184
+ id: "equality-theme-provider-root",
4185
+ "data-equality-root": true,
4186
+ className: styles63__default.default.root,
4187
+ style: customVars,
4188
+ children: [
4189
+ children,
4190
+ usesOwnPortal && /* @__PURE__ */ jsxRuntime.jsx(Portal8, { ref: setOwnPortalContainer })
4191
+ ]
4192
+ }
4193
+ ) });
4185
4194
  };
4186
4195
 
4187
4196
  exports.Alert = Alert;