@pyreon/coolgrid 0.1.1 → 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.
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Provider, extendCss } from "@pyreon/unistyle";
2
2
  import { ComponentFn, VNodeChild } from "@pyreon/core";
3
- import { BreakpointKeys, config } from "@pyreon/ui-core";
3
+ import { BreakpointKeys } from "@pyreon/ui-core";
4
4
 
5
5
  //#region src/types.d.ts
6
6
  type CreateValueType<T> = T | T[] | Partial<Record<BreakpointKeys, T>>;
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ALIGN_CONTENT_MAP_X, Provider, context, extendCss, makeItResponsive, value } from "@pyreon/unistyle";
2
- import { createContext, onUnmount, popContext, pushContext, useContext } from "@pyreon/core";
2
+ import { createContext, provide, useContext } from "@pyreon/core";
3
3
  import { config, get, omit, pick } from "@pyreon/ui-core";
4
4
 
5
5
  //#region src/constants.ts
@@ -143,7 +143,7 @@ var styled_default$2 = styled$2(component$2)`
143
143
  `;
144
144
 
145
145
  //#endregion
146
- //#region ../../node_modules/.bun/@pyreon+core@0.5.4/node_modules/@pyreon/core/lib/jsx-runtime.js
146
+ //#region ../../node_modules/.bun/@pyreon+core@0.7.0/node_modules/@pyreon/core/lib/jsx-runtime.js
147
147
  /**
148
148
  * Hyperscript function — the compiled output of JSX.
149
149
  * `<div class="x">hello</div>` → `h("div", { class: "x" }, "hello")`
@@ -287,8 +287,7 @@ const Component$1 = ({ children, component, css, width, ...props }) => {
287
287
  })(),
288
288
  extraStyles: css
289
289
  } };
290
- pushContext(new Map([[ContainerContext_default.id, context]]));
291
- onUnmount(() => popContext());
290
+ provide(ContainerContext_default, context);
292
291
  return /* @__PURE__ */ jsx(styled_default$1, {
293
292
  ...omitCtxKeys(props),
294
293
  as: component,
@@ -384,8 +383,7 @@ const Component = ({ children, component, css, contentAlignX: rowAlignX, ...prop
384
383
  gutter,
385
384
  extraStyles: css || rowCss
386
385
  } };
387
- pushContext(new Map([[RowContext_default.id, context]]));
388
- onUnmount(() => popContext());
386
+ provide(RowContext_default, context);
389
387
  return /* @__PURE__ */ jsx(styled_default, {
390
388
  ...omitCtxKeys(props),
391
389
  as: component || rowComponent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyreon/coolgrid",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/pyreon/ui-system",
@@ -43,9 +43,9 @@
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.1",
47
- "@pyreon/unistyle": "^0.1.1",
48
- "@pyreon/styler": "^0.1.1"
46
+ "@pyreon/ui-core": "^0.2.0",
47
+ "@pyreon/unistyle": "^0.2.0",
48
+ "@pyreon/styler": "^0.2.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@vitus-labs/tools-rolldown": "^1.15.3",