@pyreon/elements 0.1.2 → 0.2.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.
Files changed (2) hide show
  1. package/lib/index.js +4 -6
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Provider, alignContent, extendCss, makeItResponsive, value } from "@pyreon/unistyle";
2
- import { Fragment, Portal, createContext, onMount, onUnmount, popContext, pushContext, useContext } from "@pyreon/core";
2
+ import { Fragment, Portal, createContext, onMount, provide, useContext } from "@pyreon/core";
3
3
  import { config, isEmpty, omit, pick, render, throttle } from "@pyreon/ui-core";
4
4
  import { signal } from "@pyreon/reactivity";
5
5
 
@@ -83,7 +83,7 @@ const StyledComponent = styled$2(component$1)`
83
83
  `;
84
84
 
85
85
  //#endregion
86
- //#region ../../node_modules/.bun/@pyreon+core@0.5.4/node_modules/@pyreon/core/lib/jsx-runtime.js
86
+ //#region ../../node_modules/.bun/@pyreon+core@0.7.0/node_modules/@pyreon/core/lib/jsx-runtime.js
87
87
  /** Marker for fragment nodes — renders children without a wrapper element */
88
88
  const Fragment$1 = Symbol("Pyreon.Fragment");
89
89
  /**
@@ -679,13 +679,11 @@ Component$1.PYREON__COMPONENT = name$4;
679
679
  const context = createContext({});
680
680
  const useOverlayContext = () => useContext(context);
681
681
  const Component$3 = ({ children, blocked, setBlocked, setUnblocked }) => {
682
- const ctx = {
682
+ provide(context, {
683
683
  blocked,
684
684
  setBlocked,
685
685
  setUnblocked
686
- };
687
- pushContext(new Map([[context.id, ctx]]));
688
- onUnmount(() => popContext());
686
+ });
689
687
  return /* @__PURE__ */ jsx(Fragment$1, { children });
690
688
  };
691
689
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyreon/elements",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/pyreon/ui-system",
@@ -43,8 +43,8 @@
43
43
  "peerDependencies": {
44
44
  "@pyreon/core": ">=0.4.0 <1.0.0",
45
45
  "@pyreon/reactivity": ">=0.4.0 <1.0.0",
46
- "@pyreon/ui-core": ">=0.1.2",
47
- "@pyreon/unistyle": ">=0.1.2"
46
+ "@pyreon/ui-core": ">=0.2.0",
47
+ "@pyreon/unistyle": ">=0.2.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@vitus-labs/tools-rolldown": "^1.15.3",