@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.
- package/dist/global-theme-config.css +9 -1
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/theme-preflight-global.css +229 -222
- package/dist/theme-preflight-scoped.css +229 -223
- package/dist/theme.module.css +1 -1
- package/dist/theme.module.module.css.module.css +37 -37
- package/package.json +6 -3
|
@@ -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(
|
|
4182
|
-
|
|
4183
|
-
|
|
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;
|