@pyreon/coolgrid 0.50.0 → 0.52.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,7 +1,6 @@
1
1
  import { Provider, extendCss } from "@pyreon/unistyle";
2
2
  import { ComponentFn, VNodeChild } from "@pyreon/core";
3
3
  import { BreakpointKeys } from "@pyreon/ui-core";
4
-
5
4
  //#region src/types.d.ts
6
5
  type CreateValueType<T> = T | T[] | Partial<Record<BreakpointKeys, T>>;
7
6
  type Value = string | number;
package/lib/index.js CHANGED
@@ -91,7 +91,8 @@ const widthStyles = ({ size, columns, gap }, { rootSize }) => {
91
91
  const g = gap;
92
92
  const width = s / c * 100;
93
93
  const hasGap = hasValue(gap);
94
- const v = value(isCssVarValue(gap) ? `calc(${width}% - ${gap})` : hasGap ? `calc(${width}% - ${g}px)` : `${width}%`, rootSize);
94
+ const val = isCssVarValue(gap) ? `calc(${width}% - ${gap})` : hasGap ? `calc(${width}% - ${g}px)` : `${width}%`;
95
+ const v = value(val, rootSize);
95
96
  return css$2`
96
97
  flex-grow: 0;
97
98
  flex-shrink: 0;
@@ -105,8 +106,9 @@ const spacingStyles$1 = (type, param, rootSize) => {
105
106
  ${`${type}: calc(${param} * 0.5)`};
106
107
  `;
107
108
  if (!isNumber(param)) return "";
109
+ const finalStyle = `${type}: ${value(param / 2, rootSize)}`;
108
110
  return css$2`
109
- ${`${type}: ${value(param / 2, rootSize)}`};
111
+ ${finalStyle};
110
112
  `;
111
113
  };
112
114
  /**
@@ -168,8 +170,9 @@ const Component$2 = (props) => {
168
170
  "component",
169
171
  "css"
170
172
  ]);
173
+ const parentCtx = useContext(RowContext_default);
171
174
  const { colCss, colComponent, columns, gap, size, padding } = useGridContext({
172
- ...useContext(RowContext_default),
175
+ ...parentCtx,
173
176
  ...rest
174
177
  });
175
178
  const finalProps = { $coolgrid: {
@@ -290,16 +293,18 @@ const { styled, css, component } = config;
290
293
  const spacingStyles = ({ gap, gutter }, { rootSize }) => {
291
294
  if (isCssVarValue(gap)) {
292
295
  const spacingX = `calc(${gap} * -0.5)`;
296
+ const spacingY = isCssVarValue(gutter) ? `calc(${gutter} - ${gap} * 0.5)` : isNumber(gutter) ? `calc(${value(gutter, rootSize)} - ${gap} * 0.5)` : `calc(${gap} * 0.5)`;
293
297
  return css`
294
- margin: ${isCssVarValue(gutter) ? `calc(${gutter} - ${gap} * 0.5)` : isNumber(gutter) ? `calc(${value(gutter, rootSize)} - ${gap} * 0.5)` : `calc(${gap} * 0.5)`} ${spacingX};
298
+ margin: ${spacingY} ${spacingX};
295
299
  `;
296
300
  }
297
301
  if (!isNumber(gap)) return "";
298
302
  const g = gap;
299
303
  const getValue = (param) => value(param, rootSize);
300
304
  const spacingX = g / 2 * -1;
305
+ const spacingY = isNumber(gutter) ? gutter - g / 2 : g / 2;
301
306
  return css`
302
- margin: ${getValue(isNumber(gutter) ? gutter - g / 2 : g / 2)} ${getValue(spacingX)};
307
+ margin: ${getValue(spacingY)} ${getValue(spacingX)};
303
308
  `;
304
309
  };
305
310
  /** Maps the contentAlignX prop to a CSS justify-content value. */
@@ -354,8 +359,9 @@ const Component = (props) => {
354
359
  "css",
355
360
  "contentAlignX"
356
361
  ]);
362
+ const parentCtx = useContext(ContainerContext_default);
357
363
  const { columns, gap, gutter, rowComponent, rowCss, contentAlignX, containerWidth, size, padding, colCss, colComponent } = useGridContext({
358
- ...useContext(ContainerContext_default),
364
+ ...parentCtx,
359
365
  ...rest
360
366
  });
361
367
  const context = {
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["spacingStyles","styles","component","DEV_PROPS","Component","RowContext","Styled","name","component","styles","component","DEV_PROPS","Component","ContainerContext","Styled","name","component","ContainerContext","RowContext","Styled","component"],"sources":["../src/constants.ts","../src/context/ContainerContext.ts","../src/context/RowContext.ts","../src/useContext.tsx","../src/utils.ts","../src/Col/styled.ts","../src/Col/component.tsx","../src/Col/index.ts","../src/Container/styled.ts","../src/Container/component.tsx","../src/Container/index.ts","../src/Row/styled.ts","../src/Row/component.tsx","../src/Row/index.ts","../src/theme.ts"],"sourcesContent":["export const PKG_NAME = '@pyreon/coolgrid'\n\n/**\n * Grid configuration keys that are passed through context\n * from Container to Row and from Row to Col components.\n */\nexport const CONTEXT_KEYS = [\n // 'breakpoints',\n // 'rootSize',\n 'columns',\n 'size',\n 'gap',\n 'padding',\n 'gutter',\n 'colCss',\n 'colComponent',\n 'rowCss',\n 'rowComponent',\n 'contentAlignX',\n]\n","import { createContext } from '@pyreon/core'\nimport type { Context as ContextType } from '../types'\n\n/**\n * Context for container-level grid configuration.\n * Provided by the Container component and consumed by Row children\n * to inherit columns, gap, gutter, and other grid settings.\n */\nexport default createContext<ContextType>({})\n","import { createContext } from '@pyreon/core'\nimport type { Context as ContextType } from '../types'\n\n/**\n * Context for row-level grid configuration.\n * Provided by the Row component and consumed by Col children\n * to inherit columns, gap, gutter, and sizing for width calculations.\n */\nexport default createContext<ContextType>({})\n","import { useContext } from '@pyreon/core'\nimport { get, pick } from '@pyreon/ui-core'\nimport { context } from '@pyreon/unistyle'\nimport { CONTEXT_KEYS } from './constants'\nimport type { Context, Obj, ValueType } from './types'\n\n/**\n * Resolves grid columns and container width using a three-layer fallback:\n * 1. Explicit component props (e.g. `columns={6}`)\n * 2. `theme.grid.columns` / `theme.grid.container`\n * 3. `theme.coolgrid.columns` / `theme.coolgrid.container`\n */\ntype GetGridContext = (\n props: Obj,\n theme: Obj,\n) => {\n columns?: ValueType\n containerWidth?: Record<string, number>\n}\n\nexport const getGridContext: GetGridContext = (props = {}, theme = {}) => ({\n // `props` is always a plain object (callers pass a `pick()` result or a\n // user-supplied object literal), so direct property access is safe and\n // skips `get`'s path-parsing for these single-key lookups. Ported from\n // vitus-labs `55402572`. Two `get` calls per `getGridContext` invocation\n // saved; fires once per Container/Row/Col render.\n columns: ((props as Obj).columns ||\n get(theme, 'grid.columns') ||\n get(theme, 'coolgrid.columns')) as ValueType,\n containerWidth: ((props as Obj).width ||\n get(theme, 'grid.container') ||\n get(theme, 'coolgrid.container')) as Record<string, number>,\n})\n\n/**\n * Hook that reads the unistyle theme context and merges it with the\n * component's own props to produce the final grid configuration.\n * Applies the three-layer resolution (props -> grid.* -> coolgrid.*).\n */\ntype UseGridContext = (props: Obj) => Context\nconst useGridContext: UseGridContext = (props) => {\n const getCtx = useContext(context)\n const { theme } = getCtx()\n // Direct `pick` (vs the `pickThemeProps` one-liner wrapper that was\n // removed in vitus-labs `55402572`) saves one function call per render.\n const ctxProps = pick(props, CONTEXT_KEYS as Array<keyof typeof props>)\n const gridContext = getGridContext(ctxProps, theme as Record<string, unknown>)\n\n return { ...gridContext, ...ctxProps }\n}\n\nexport default useGridContext\n","import { omit } from '@pyreon/ui-core'\nimport { CONTEXT_KEYS } from './constants'\n\n/** Checks whether a value is a finite number. */\nexport const isNumber = (value: unknown): value is number => Number.isFinite(value)\n\n/** Checks whether a value is a finite number greater than zero. */\nexport const hasValue = (value: unknown): boolean => isNumber(value) && value > 0\n\n/**\n * A CSS-variables-mode value — a `var(…)`/`calc(…)` reference string produced\n * by the cssVariables theming mode (unistyle's `themeToCssVars` leaves /\n * rocketstyle's mode pairs). Grid math can't run JS arithmetic on these;\n * the styled helpers express the same split with native CSS `calc()`.\n */\nexport const isCssVarValue = (value: unknown): value is string =>\n typeof value === 'string' && (value.startsWith('var(') || value.startsWith('calc('))\n\n/**\n * Determines if a column should be visible. A column is visible when its\n * size is undefined (auto) or a non-zero number. Size 0 hides the column.\n */\nexport const isVisible = (value: unknown): boolean =>\n (isNumber(value) && value !== 0) || value === undefined\n\n/** Returns true when both size and columns are positive numbers, indicating an explicit width can be calculated. */\ntype HasWidth = (size: unknown, columns: unknown) => boolean\nexport const hasWidth: HasWidth = (size, columns) => !!(hasValue(size) && hasValue(columns))\n\n/** Strips grid context keys from a props object so they are not forwarded to the DOM element. */\ntype OmitCtxKeys = (props?: Record<string, any>) => ReturnType<typeof omit>\nexport const omitCtxKeys: OmitCtxKeys = (props) => omit(props, CONTEXT_KEYS)\n","import { config } from '@pyreon/ui-core'\nimport type { MakeItResponsiveStyles } from '@pyreon/unistyle'\nimport { extendCss, makeItResponsive, value } from '@pyreon/unistyle'\nimport type { CssOutput, StyledTypes } from '../types'\nimport { hasValue, isCssVarValue, isNumber, isVisible } from '../utils'\n\nconst { styled, css, component } = config\n\ntype HasWidth = (size?: number, columns?: number) => boolean\n\n/** Returns true when both size and columns are valid, enabling explicit width calculation. */\nconst hasWidth: HasWidth = (size, columns) => hasValue(size) && hasValue(columns)\n\ntype WidthStyles = (\n props: Pick<StyledTypes, 'size' | 'columns' | 'gap'>,\n defaults: { rootSize?: number | undefined },\n) => CssOutput\n\n/**\n * Calculates column width as a percentage of total columns, subtracting\n * the gap when present. Uses `calc(%)` for web.\n */\nconst widthStyles: WidthStyles = ({ size, columns, gap }, { rootSize }) => {\n if (!hasWidth(size, columns)) {\n return ''\n }\n\n const s = size as number\n const c = columns as number\n const g = gap as number\n\n // calculate % of width\n const width = (s / c) * 100\n\n const hasGap = hasValue(gap)\n\n // CSS-variables mode: the var reference already carries its unit — never\n // append `px` (that would emit the malformed `var(--x)px`).\n const val = isCssVarValue(gap)\n ? `calc(${width}% - ${gap})`\n : hasGap\n ? `calc(${width}% - ${g}px)`\n : `${width}%`\n\n const v = value(val, rootSize)\n\n return css`\n flex-grow: 0;\n flex-shrink: 0;\n max-width: ${v};\n flex-basis: ${v};\n `\n}\n\ntype SpacingStyles = (\n type: 'margin' | 'padding',\n param?: number | string,\n rootSize?: number,\n) => CssOutput\n/** Applies half of the given value as either margin or padding (used for gap and padding distribution). */\nconst spacingStyles: SpacingStyles = (type, param, rootSize) => {\n if (isCssVarValue(param)) {\n // CSS-variables mode: halve via native calc() — JS division would NaN.\n // (Multiplication for consistency with Row — see the calc divisor note.)\n return css`\n ${`${type}: calc(${param} * 0.5)`};\n `\n }\n\n if (!isNumber(param)) {\n return ''\n }\n\n const finalStyle = `${type}: ${value((param as number) / 2, rootSize)}`\n\n return css`\n ${finalStyle};\n `\n}\n\n/**\n * Main responsive style block for Col. When the column is visible, applies\n * width, padding, margin, and extra CSS. When hidden (size === 0), moves\n * the element off-screen with fixed positioning.\n */\nconst styles: MakeItResponsiveStyles<StyledTypes> = ({ theme, css: cssFn, rootSize }) => {\n const { size, columns, gap, padding, extraStyles } = theme\n const renderStyles = isVisible(size)\n\n if (renderStyles) {\n return cssFn`\n left: initial;\n position: relative;\n ${widthStyles({ size, columns, gap }, { rootSize })};\n ${spacingStyles('padding', padding, rootSize)};\n ${spacingStyles('margin', gap, rootSize)};\n ${extendCss(extraStyles)};\n `\n }\n\n return cssFn`\n left: -9999px;\n position: fixed;\n margin: 0;\n padding: 0;\n `\n}\n\nexport default styled(component, { layer: 'elements' })`\n box-sizing: border-box;\n justify-content: stretch;\n\n position: relative;\n display: flex;\n flex-basis: 0;\n flex-grow: 1;\n flex-direction: column;\n\n ${makeItResponsive({\n key: '$coolgrid',\n styles,\n css,\n normalize: true,\n })};\n`\n","import { splitProps, useContext } from '@pyreon/core'\nimport { PKG_NAME } from '../constants'\nimport { RowContext } from '../context'\nimport type { ElementFn } from '../types'\nimport useGridContext from '../useContext'\nimport { omitCtxKeys } from '../utils'\nimport Styled from './styled'\n\n/**\n * Col (column) component that reads grid settings from RowContext\n * (columns, gap, gutter) and calculates its own width as a fraction\n * of the total columns. Supports responsive size, padding, and visibility.\n */\n\n/* v8 ignore next — production branch not exercised in tests */\nconst DEV_PROPS: Record<string, string> = process.env.NODE_ENV !== 'production' ? { 'data-coolgrid': 'col' } : {}\n\nconst Component: ElementFn<\n [\n 'containerWidth',\n 'width',\n 'rowComponent',\n 'rowCss',\n 'colCss',\n 'colComponent',\n 'columns',\n 'gap',\n 'gutter',\n 'contentAlignX',\n ]\n> = (props) => {\n const [own, rest] = splitProps(props, ['children', 'component', 'css'])\n const parentCtx = useContext(RowContext)\n const { colCss, colComponent, columns, gap, size, padding } = useGridContext({\n ...parentCtx,\n ...rest,\n })\n\n const finalProps = {\n $coolgrid: {\n columns,\n gap,\n size,\n padding,\n extraStyles: own.css ?? colCss,\n },\n }\n\n return (\n <Styled {...omitCtxKeys(rest)} as={own.component ?? colComponent} {...finalProps} {...DEV_PROPS}>\n {own.children}\n </Styled>\n )\n}\n\nconst name = `${PKG_NAME}/Col`\n\n\n// Branding rides the PURE export expression — a bare top-level\n// `Component.x = y` assignment is an unremovable side effect that pins every\n// component in the package into every consumer bundle (measured on\n// @pyreon/elements: importing just <Portal> paid the whole 7.5KB gz; PR ref\n// in elements/src/Portal/component.tsx).\nexport default /* @__PURE__ */ Object.assign(Component, {\n displayName: name,\n pkgName: PKG_NAME,\n PYREON__COMPONENT: name,\n})\n","import component from './component'\n\nexport default component\n","import { config } from '@pyreon/ui-core'\nimport type { MakeItResponsiveStyles } from '@pyreon/unistyle'\nimport { extendCss, makeItResponsive, value } from '@pyreon/unistyle'\nimport type { StyledTypes } from '../types'\n\nconst { styled, css, component } = config\n\n/** Responsive styles that apply the container's max-width and any extra CSS at each breakpoint. */\nconst styles: MakeItResponsiveStyles<Pick<StyledTypes, 'width' | 'extraStyles'>> = ({\n theme: t,\n css: cssFn,\n rootSize,\n}) => {\n const w = t.width != null && typeof t.width !== 'object' ? t.width : null\n\n return cssFn`\n ${w != null ? `max-width: ${value(w, rootSize)};` : ''};\n ${extendCss(t.extraStyles)};\n `\n}\n\n/** Styled Container element. Centered via auto margins with responsive max-width. */\nexport default styled(component, { layer: 'elements' })`\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 100%;\n margin-right: auto;\n margin-left: auto;\n\n ${makeItResponsive({\n key: '$coolgrid',\n styles,\n css,\n normalize: true,\n })};\n`\n","import { nativeCompat, provide, splitProps } from '@pyreon/core'\nimport { PKG_NAME } from '../constants'\nimport ContainerContext from '../context/ContainerContext'\nimport type { ElementFn } from '../types'\nimport useGridContext from '../useContext'\nimport { omitCtxKeys } from '../utils'\nimport Styled from './styled'\n\n/**\n * Container component that establishes the outermost grid boundary.\n * Resolves grid config from the theme, provides it to descendant Row/Col\n * components via ContainerContext, and renders a styled wrapper with\n * responsive max-width.\n */\n\n/* v8 ignore next — production branch not exercised in tests */\nconst DEV_PROPS: Record<string, string> = process.env.NODE_ENV !== 'production' ? { 'data-coolgrid': 'container' } : {}\n\nconst Component: ElementFn<['containerWidth']> = (props) => {\n const [own, rest] = splitProps(props, ['children', 'component', 'css', 'width'])\n const {\n containerWidth,\n columns,\n size,\n gap,\n padding,\n gutter,\n colCss,\n colComponent,\n rowCss,\n rowComponent,\n contentAlignX,\n } = useGridContext(rest)\n\n const context = {\n columns,\n size,\n gap,\n padding,\n gutter,\n colCss,\n colComponent,\n rowCss,\n rowComponent,\n contentAlignX,\n }\n\n const finalWidth = (() => {\n if (!own.width) return containerWidth\n if (typeof own.width === 'function') return own.width(containerWidth as Record<string, any>)\n return own.width\n })()\n\n const finalProps = {\n $coolgrid: {\n width: finalWidth,\n extraStyles: own.css,\n },\n }\n\n // Provide container context to descendant Row/Col components\n provide(ContainerContext, context)\n\n return (\n <Styled {...omitCtxKeys(rest)} as={own.component} {...finalProps} {...DEV_PROPS}>\n {own.children}\n </Styled>\n )\n}\n\nconst name = `${PKG_NAME}/Container`\n\n\n// Mark as native — compat-mode jsx() runtimes skip wrapCompatComponent so\n// Container's provide(ContainerContext, ...) reaches descendant Row/Col.\n\n// ASSIGNMENT + /* @__PURE__ */ form (not a bare statement): inside a built\n// lib's shared chunk a bare `nativeCompat(X)` call is an unremovable side\n// effect that RETAINS the component body in every consumer bundle that\n// never imports it (see runtime-dom's native-compat-treeshake lock). The\n// PURE call is droppable exactly when the export is unused; when used it\n// returns the SAME fn with the marker applied.\n// Branding rides the PURE export expression — a bare top-level\n// `Component.x = y` assignment is an unremovable side effect that pins every\n// component in the package into every consumer bundle (measured on\n// @pyreon/elements: importing just <Portal> paid the whole 7.5KB gz; PR ref\n// in elements/src/Portal/component.tsx).\nexport default /* @__PURE__ */ nativeCompat(\n /* @__PURE__ */ Object.assign(Component, {\n displayName: name,\n pkgName: PKG_NAME,\n PYREON__COMPONENT: name,\n }),\n)","import component from './component'\n\nexport default component\n","import { config } from '@pyreon/ui-core'\nimport type { MakeItResponsiveStyles } from '@pyreon/unistyle'\nimport { ALIGN_CONTENT_MAP_X, extendCss, makeItResponsive, value } from '@pyreon/unistyle'\nimport type { CssOutput, StyledTypes } from '../types'\nimport { isCssVarValue, isNumber } from '../utils'\n\nconst { styled, css, component } = config\n\n/**\n * Computes negative horizontal margins to compensate for column gap,\n * and vertical margins that account for gutter (inter-row spacing).\n * This creates the classic grid pattern where column gaps cancel out\n * at the row edges.\n */\ntype SpacingStyles = (\n props: Pick<StyledTypes, 'gap' | 'gutter'>,\n { rootSize }: { rootSize?: number | undefined },\n) => CssOutput\n\nconst spacingStyles: SpacingStyles = ({ gap, gutter }, { rootSize }) => {\n if (isCssVarValue(gap)) {\n // CSS-variables mode: the gap is a var()/calc() reference — express the\n // split with native CSS calc() instead of JS arithmetic (which would\n // produce NaN; pre-fix this path silently SKIPPED all spacing).\n // NOTE: multiplication, not division — `calc(x / -2)` is invalid CSS\n // (divisor must be positive in Chromium's parser) and one invalid\n // component would drop the WHOLE margin shorthand.\n const spacingX = `calc(${gap} * -0.5)`\n const spacingY = isCssVarValue(gutter)\n ? `calc(${gutter} - ${gap} * 0.5)`\n : isNumber(gutter)\n ? `calc(${value(gutter, rootSize)} - ${gap} * 0.5)`\n : `calc(${gap} * 0.5)`\n\n return css`\n margin: ${spacingY} ${spacingX};\n `\n }\n\n if (!isNumber(gap)) return ''\n\n const g = gap as number\n const getValue = (param: string | number | null | undefined) => value(param, rootSize)\n\n const spacingX = (g / 2) * -1\n const spacingY = isNumber(gutter) ? (gutter as number) - g / 2 : g / 2\n\n return css`\n margin: ${getValue(spacingY)} ${getValue(spacingX)};\n `\n}\n\n/** Maps the contentAlignX prop to a CSS justify-content value. */\nconst contentAlign = (align?: StyledTypes['contentAlignX']) => {\n if (!align) return ''\n\n return css`\n justify-content: ${ALIGN_CONTENT_MAP_X[align]};\n `\n}\n\n/** Composes spacing, alignment, and extra CSS into a single responsive style block for the Row. */\nconst styles: MakeItResponsiveStyles<\n Pick<StyledTypes, 'gap' | 'gutter' | 'contentAlignX' | 'extraStyles'>\n> = ({ theme, css: cssFn, rootSize }) => {\n const { gap, gutter, contentAlignX, extraStyles } = theme\n\n return cssFn`\n ${spacingStyles({ gap, gutter }, { rootSize })};\n ${contentAlign(contentAlignX)};\n ${extendCss(extraStyles)};\n `\n}\n\nexport default styled(component, { layer: 'elements' })`\n box-sizing: border-box;\n\n display: flex;\n flex-wrap: wrap;\n align-self: stretch;\n flex-direction: row;\n\n ${makeItResponsive({\n key: '$coolgrid',\n styles,\n css,\n normalize: true,\n })};\n`\n","import { nativeCompat, provide, splitProps, useContext } from '@pyreon/core'\nimport { PKG_NAME } from '../constants'\nimport { ContainerContext, RowContext } from '../context'\nimport type { ElementFn } from '../types'\nimport useGridContext from '../useContext'\nimport { omitCtxKeys } from '../utils'\nimport Styled from './styled'\n\n/**\n * Row component that reads inherited config from ContainerContext, merges\n * it with its own props, and provides the resolved grid settings (columns,\n * gap, gutter) to Col children via RowContext. Renders a flex-wrap container\n * with negative margins to offset column gutters.\n */\n\n/* v8 ignore next — production branch not exercised in tests */\nconst DEV_PROPS: Record<string, string> = process.env.NODE_ENV !== 'production' ? { 'data-coolgrid': 'row' } : {}\n\nconst Component: ElementFn<['containerWidth', 'width', 'rowComponent', 'rowCss']> = (props) => {\n const [own, rest] = splitProps(props, ['children', 'component', 'css', 'contentAlignX'])\n const parentCtx = useContext(ContainerContext)\n\n const {\n columns,\n gap,\n gutter,\n rowComponent,\n rowCss,\n contentAlignX,\n containerWidth,\n size,\n padding,\n colCss,\n colComponent,\n } = useGridContext({ ...parentCtx, ...rest })\n\n const context = {\n containerWidth,\n size,\n padding,\n colCss,\n colComponent,\n columns,\n gap,\n gutter,\n }\n\n const finalProps = {\n $coolgrid: {\n contentAlignX: own.contentAlignX || contentAlignX,\n columns,\n gap,\n gutter,\n extraStyles: own.css || rowCss,\n },\n }\n\n // Provide row context to Col children\n provide(RowContext, context)\n\n return (\n <Styled {...omitCtxKeys(rest)} as={own.component || rowComponent} {...finalProps} {...DEV_PROPS}>\n {own.children}\n </Styled>\n )\n}\n\nconst name = `${PKG_NAME}/Row`\n\n\n// Mark as native — compat-mode jsx() runtimes skip wrapCompatComponent so\n// Row's useContext(ContainerContext) read + provide(RowContext, ...) reach\n// Pyreon's setup frame.\n\n// ASSIGNMENT + /* @__PURE__ */ form (not a bare statement): inside a built\n// lib's shared chunk a bare `nativeCompat(X)` call is an unremovable side\n// effect that RETAINS the component body in every consumer bundle that\n// never imports it (see runtime-dom's native-compat-treeshake lock). The\n// PURE call is droppable exactly when the export is unused; when used it\n// returns the SAME fn with the marker applied.\n// Branding rides the PURE export expression — a bare top-level\n// `Component.x = y` assignment is an unremovable side effect that pins every\n// component in the package into every consumer bundle (measured on\n// @pyreon/elements: importing just <Portal> paid the whole 7.5KB gz; PR ref\n// in elements/src/Portal/component.tsx).\nexport default /* @__PURE__ */ nativeCompat(\n /* @__PURE__ */ Object.assign(Component, {\n displayName: name,\n pkgName: PKG_NAME,\n PYREON__COMPONENT: name,\n }),\n)","import component from './component'\n\nexport default component\n","/**\n * Default Bootstrap-like grid configuration. Provides 5 breakpoints (xs-xl),\n * a 12-column grid, and responsive container max-widths matching Bootstrap 4.\n */\nexport default {\n rootSize: 16,\n breakpoints: {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n },\n grid: {\n columns: 12,\n container: {\n xs: '100%',\n sm: 540,\n md: 720,\n lg: 960,\n xl: 1140,\n },\n },\n} as const\n\nexport const defaultBreakpoints: Record<string, number> = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n}\n\nexport const defaultContainerWidths: Record<string, string | number> = {\n xs: '100%',\n sm: 540,\n md: 720,\n lg: 960,\n xl: 1140,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F"}
1
+ {"version":3,"file":"index.js","names":["spacingStyles","styles","component","DEV_PROPS","Component","RowContext","Styled","name","component","styles","component","DEV_PROPS","Component","ContainerContext","Styled","name","component","ContainerContext","RowContext","Styled","component"],"sources":["../src/constants.ts","../src/context/ContainerContext.ts","../src/context/RowContext.ts","../src/useContext.tsx","../src/utils.ts","../src/Col/styled.ts","../src/Col/component.tsx","../src/Col/index.ts","../src/Container/styled.ts","../src/Container/component.tsx","../src/Container/index.ts","../src/Row/styled.ts","../src/Row/component.tsx","../src/Row/index.ts","../src/theme.ts"],"sourcesContent":["export const PKG_NAME = '@pyreon/coolgrid'\n\n/**\n * Grid configuration keys that are passed through context\n * from Container to Row and from Row to Col components.\n */\nexport const CONTEXT_KEYS = [\n // 'breakpoints',\n // 'rootSize',\n 'columns',\n 'size',\n 'gap',\n 'padding',\n 'gutter',\n 'colCss',\n 'colComponent',\n 'rowCss',\n 'rowComponent',\n 'contentAlignX',\n]\n","import { createContext } from '@pyreon/core'\nimport type { Context as ContextType } from '../types'\n\n/**\n * Context for container-level grid configuration.\n * Provided by the Container component and consumed by Row children\n * to inherit columns, gap, gutter, and other grid settings.\n */\nexport default createContext<ContextType>({})\n","import { createContext } from '@pyreon/core'\nimport type { Context as ContextType } from '../types'\n\n/**\n * Context for row-level grid configuration.\n * Provided by the Row component and consumed by Col children\n * to inherit columns, gap, gutter, and sizing for width calculations.\n */\nexport default createContext<ContextType>({})\n","import { useContext } from '@pyreon/core'\nimport { get, pick } from '@pyreon/ui-core'\nimport { context } from '@pyreon/unistyle'\nimport { CONTEXT_KEYS } from './constants'\nimport type { Context, Obj, ValueType } from './types'\n\n/**\n * Resolves grid columns and container width using a three-layer fallback:\n * 1. Explicit component props (e.g. `columns={6}`)\n * 2. `theme.grid.columns` / `theme.grid.container`\n * 3. `theme.coolgrid.columns` / `theme.coolgrid.container`\n */\ntype GetGridContext = (\n props: Obj,\n theme: Obj,\n) => {\n columns?: ValueType\n containerWidth?: Record<string, number>\n}\n\nexport const getGridContext: GetGridContext = (props = {}, theme = {}) => ({\n // `props` is always a plain object (callers pass a `pick()` result or a\n // user-supplied object literal), so direct property access is safe and\n // skips `get`'s path-parsing for these single-key lookups. Ported from\n // vitus-labs `55402572`. Two `get` calls per `getGridContext` invocation\n // saved; fires once per Container/Row/Col render.\n columns: ((props as Obj).columns ||\n get(theme, 'grid.columns') ||\n get(theme, 'coolgrid.columns')) as ValueType,\n containerWidth: ((props as Obj).width ||\n get(theme, 'grid.container') ||\n get(theme, 'coolgrid.container')) as Record<string, number>,\n})\n\n/**\n * Hook that reads the unistyle theme context and merges it with the\n * component's own props to produce the final grid configuration.\n * Applies the three-layer resolution (props -> grid.* -> coolgrid.*).\n */\ntype UseGridContext = (props: Obj) => Context\nconst useGridContext: UseGridContext = (props) => {\n const getCtx = useContext(context)\n const { theme } = getCtx()\n // Direct `pick` (vs the `pickThemeProps` one-liner wrapper that was\n // removed in vitus-labs `55402572`) saves one function call per render.\n const ctxProps = pick(props, CONTEXT_KEYS as Array<keyof typeof props>)\n const gridContext = getGridContext(ctxProps, theme as Record<string, unknown>)\n\n return { ...gridContext, ...ctxProps }\n}\n\nexport default useGridContext\n","import { omit } from '@pyreon/ui-core'\nimport { CONTEXT_KEYS } from './constants'\n\n/** Checks whether a value is a finite number. */\nexport const isNumber = (value: unknown): value is number => Number.isFinite(value)\n\n/** Checks whether a value is a finite number greater than zero. */\nexport const hasValue = (value: unknown): boolean => isNumber(value) && value > 0\n\n/**\n * A CSS-variables-mode value — a `var(…)`/`calc(…)` reference string produced\n * by the cssVariables theming mode (unistyle's `themeToCssVars` leaves /\n * rocketstyle's mode pairs). Grid math can't run JS arithmetic on these;\n * the styled helpers express the same split with native CSS `calc()`.\n */\nexport const isCssVarValue = (value: unknown): value is string =>\n typeof value === 'string' && (value.startsWith('var(') || value.startsWith('calc('))\n\n/**\n * Determines if a column should be visible. A column is visible when its\n * size is undefined (auto) or a non-zero number. Size 0 hides the column.\n */\nexport const isVisible = (value: unknown): boolean =>\n (isNumber(value) && value !== 0) || value === undefined\n\n/** Returns true when both size and columns are positive numbers, indicating an explicit width can be calculated. */\ntype HasWidth = (size: unknown, columns: unknown) => boolean\nexport const hasWidth: HasWidth = (size, columns) => !!(hasValue(size) && hasValue(columns))\n\n/** Strips grid context keys from a props object so they are not forwarded to the DOM element. */\ntype OmitCtxKeys = (props?: Record<string, any>) => ReturnType<typeof omit>\nexport const omitCtxKeys: OmitCtxKeys = (props) => omit(props, CONTEXT_KEYS)\n","import { config } from '@pyreon/ui-core'\nimport type { MakeItResponsiveStyles } from '@pyreon/unistyle'\nimport { extendCss, makeItResponsive, value } from '@pyreon/unistyle'\nimport type { CssOutput, StyledTypes } from '../types'\nimport { hasValue, isCssVarValue, isNumber, isVisible } from '../utils'\n\nconst { styled, css, component } = config\n\ntype HasWidth = (size?: number, columns?: number) => boolean\n\n/** Returns true when both size and columns are valid, enabling explicit width calculation. */\nconst hasWidth: HasWidth = (size, columns) => hasValue(size) && hasValue(columns)\n\ntype WidthStyles = (\n props: Pick<StyledTypes, 'size' | 'columns' | 'gap'>,\n defaults: { rootSize?: number | undefined },\n) => CssOutput\n\n/**\n * Calculates column width as a percentage of total columns, subtracting\n * the gap when present. Uses `calc(%)` for web.\n */\nconst widthStyles: WidthStyles = ({ size, columns, gap }, { rootSize }) => {\n if (!hasWidth(size, columns)) {\n return ''\n }\n\n const s = size as number\n const c = columns as number\n const g = gap as number\n\n // calculate % of width\n const width = (s / c) * 100\n\n const hasGap = hasValue(gap)\n\n // CSS-variables mode: the var reference already carries its unit — never\n // append `px` (that would emit the malformed `var(--x)px`).\n const val = isCssVarValue(gap)\n ? `calc(${width}% - ${gap})`\n : hasGap\n ? `calc(${width}% - ${g}px)`\n : `${width}%`\n\n const v = value(val, rootSize)\n\n return css`\n flex-grow: 0;\n flex-shrink: 0;\n max-width: ${v};\n flex-basis: ${v};\n `\n}\n\ntype SpacingStyles = (\n type: 'margin' | 'padding',\n param?: number | string,\n rootSize?: number,\n) => CssOutput\n/** Applies half of the given value as either margin or padding (used for gap and padding distribution). */\nconst spacingStyles: SpacingStyles = (type, param, rootSize) => {\n if (isCssVarValue(param)) {\n // CSS-variables mode: halve via native calc() — JS division would NaN.\n // (Multiplication for consistency with Row — see the calc divisor note.)\n return css`\n ${`${type}: calc(${param} * 0.5)`};\n `\n }\n\n if (!isNumber(param)) {\n return ''\n }\n\n const finalStyle = `${type}: ${value((param as number) / 2, rootSize)}`\n\n return css`\n ${finalStyle};\n `\n}\n\n/**\n * Main responsive style block for Col. When the column is visible, applies\n * width, padding, margin, and extra CSS. When hidden (size === 0), moves\n * the element off-screen with fixed positioning.\n */\nconst styles: MakeItResponsiveStyles<StyledTypes> = ({ theme, css: cssFn, rootSize }) => {\n const { size, columns, gap, padding, extraStyles } = theme\n const renderStyles = isVisible(size)\n\n if (renderStyles) {\n return cssFn`\n left: initial;\n position: relative;\n ${widthStyles({ size, columns, gap }, { rootSize })};\n ${spacingStyles('padding', padding, rootSize)};\n ${spacingStyles('margin', gap, rootSize)};\n ${extendCss(extraStyles)};\n `\n }\n\n return cssFn`\n left: -9999px;\n position: fixed;\n margin: 0;\n padding: 0;\n `\n}\n\nexport default styled(component, { layer: 'elements' })`\n box-sizing: border-box;\n justify-content: stretch;\n\n position: relative;\n display: flex;\n flex-basis: 0;\n flex-grow: 1;\n flex-direction: column;\n\n ${makeItResponsive({\n key: '$coolgrid',\n styles,\n css,\n normalize: true,\n })};\n`\n","import { splitProps, useContext } from '@pyreon/core'\nimport { PKG_NAME } from '../constants'\nimport { RowContext } from '../context'\nimport type { ElementFn } from '../types'\nimport useGridContext from '../useContext'\nimport { omitCtxKeys } from '../utils'\nimport Styled from './styled'\n\n/**\n * Col (column) component that reads grid settings from RowContext\n * (columns, gap, gutter) and calculates its own width as a fraction\n * of the total columns. Supports responsive size, padding, and visibility.\n */\n\n/* v8 ignore next — production branch not exercised in tests */\nconst DEV_PROPS: Record<string, string> = process.env.NODE_ENV !== 'production' ? { 'data-coolgrid': 'col' } : {}\n\nconst Component: ElementFn<\n [\n 'containerWidth',\n 'width',\n 'rowComponent',\n 'rowCss',\n 'colCss',\n 'colComponent',\n 'columns',\n 'gap',\n 'gutter',\n 'contentAlignX',\n ]\n> = (props) => {\n const [own, rest] = splitProps(props, ['children', 'component', 'css'])\n const parentCtx = useContext(RowContext)\n const { colCss, colComponent, columns, gap, size, padding } = useGridContext({\n ...parentCtx,\n ...rest,\n })\n\n const finalProps = {\n $coolgrid: {\n columns,\n gap,\n size,\n padding,\n extraStyles: own.css ?? colCss,\n },\n }\n\n return (\n <Styled {...omitCtxKeys(rest)} as={own.component ?? colComponent} {...finalProps} {...DEV_PROPS}>\n {own.children}\n </Styled>\n )\n}\n\nconst name = `${PKG_NAME}/Col`\n\n\n// Branding rides the PURE export expression — a bare top-level\n// `Component.x = y` assignment is an unremovable side effect that pins every\n// component in the package into every consumer bundle (measured on\n// @pyreon/elements: importing just <Portal> paid the whole 7.5KB gz; PR ref\n// in elements/src/Portal/component.tsx).\nexport default /* @__PURE__ */ Object.assign(Component, {\n displayName: name,\n pkgName: PKG_NAME,\n PYREON__COMPONENT: name,\n})\n","import component from './component'\n\nexport default component\n","import { config } from '@pyreon/ui-core'\nimport type { MakeItResponsiveStyles } from '@pyreon/unistyle'\nimport { extendCss, makeItResponsive, value } from '@pyreon/unistyle'\nimport type { StyledTypes } from '../types'\n\nconst { styled, css, component } = config\n\n/** Responsive styles that apply the container's max-width and any extra CSS at each breakpoint. */\nconst styles: MakeItResponsiveStyles<Pick<StyledTypes, 'width' | 'extraStyles'>> = ({\n theme: t,\n css: cssFn,\n rootSize,\n}) => {\n const w = t.width != null && typeof t.width !== 'object' ? t.width : null\n\n return cssFn`\n ${w != null ? `max-width: ${value(w, rootSize)};` : ''};\n ${extendCss(t.extraStyles)};\n `\n}\n\n/** Styled Container element. Centered via auto margins with responsive max-width. */\nexport default styled(component, { layer: 'elements' })`\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 100%;\n margin-right: auto;\n margin-left: auto;\n\n ${makeItResponsive({\n key: '$coolgrid',\n styles,\n css,\n normalize: true,\n })};\n`\n","import { nativeCompat, provide, splitProps } from '@pyreon/core'\nimport { PKG_NAME } from '../constants'\nimport ContainerContext from '../context/ContainerContext'\nimport type { ElementFn } from '../types'\nimport useGridContext from '../useContext'\nimport { omitCtxKeys } from '../utils'\nimport Styled from './styled'\n\n/**\n * Container component that establishes the outermost grid boundary.\n * Resolves grid config from the theme, provides it to descendant Row/Col\n * components via ContainerContext, and renders a styled wrapper with\n * responsive max-width.\n */\n\n/* v8 ignore next — production branch not exercised in tests */\nconst DEV_PROPS: Record<string, string> = process.env.NODE_ENV !== 'production' ? { 'data-coolgrid': 'container' } : {}\n\nconst Component: ElementFn<['containerWidth']> = (props) => {\n const [own, rest] = splitProps(props, ['children', 'component', 'css', 'width'])\n const {\n containerWidth,\n columns,\n size,\n gap,\n padding,\n gutter,\n colCss,\n colComponent,\n rowCss,\n rowComponent,\n contentAlignX,\n } = useGridContext(rest)\n\n const context = {\n columns,\n size,\n gap,\n padding,\n gutter,\n colCss,\n colComponent,\n rowCss,\n rowComponent,\n contentAlignX,\n }\n\n const finalWidth = (() => {\n if (!own.width) return containerWidth\n if (typeof own.width === 'function') return own.width(containerWidth as Record<string, any>)\n return own.width\n })()\n\n const finalProps = {\n $coolgrid: {\n width: finalWidth,\n extraStyles: own.css,\n },\n }\n\n // Provide container context to descendant Row/Col components\n provide(ContainerContext, context)\n\n return (\n <Styled {...omitCtxKeys(rest)} as={own.component} {...finalProps} {...DEV_PROPS}>\n {own.children}\n </Styled>\n )\n}\n\nconst name = `${PKG_NAME}/Container`\n\n\n// Mark as native — compat-mode jsx() runtimes skip wrapCompatComponent so\n// Container's provide(ContainerContext, ...) reaches descendant Row/Col.\n\n// ASSIGNMENT + /* @__PURE__ */ form (not a bare statement): inside a built\n// lib's shared chunk a bare `nativeCompat(X)` call is an unremovable side\n// effect that RETAINS the component body in every consumer bundle that\n// never imports it (see runtime-dom's native-compat-treeshake lock). The\n// PURE call is droppable exactly when the export is unused; when used it\n// returns the SAME fn with the marker applied.\n// Branding rides the PURE export expression — a bare top-level\n// `Component.x = y` assignment is an unremovable side effect that pins every\n// component in the package into every consumer bundle (measured on\n// @pyreon/elements: importing just <Portal> paid the whole 7.5KB gz; PR ref\n// in elements/src/Portal/component.tsx).\nexport default /* @__PURE__ */ nativeCompat(\n /* @__PURE__ */ Object.assign(Component, {\n displayName: name,\n pkgName: PKG_NAME,\n PYREON__COMPONENT: name,\n }),\n)","import component from './component'\n\nexport default component\n","import { config } from '@pyreon/ui-core'\nimport type { MakeItResponsiveStyles } from '@pyreon/unistyle'\nimport { ALIGN_CONTENT_MAP_X, extendCss, makeItResponsive, value } from '@pyreon/unistyle'\nimport type { CssOutput, StyledTypes } from '../types'\nimport { isCssVarValue, isNumber } from '../utils'\n\nconst { styled, css, component } = config\n\n/**\n * Computes negative horizontal margins to compensate for column gap,\n * and vertical margins that account for gutter (inter-row spacing).\n * This creates the classic grid pattern where column gaps cancel out\n * at the row edges.\n */\ntype SpacingStyles = (\n props: Pick<StyledTypes, 'gap' | 'gutter'>,\n { rootSize }: { rootSize?: number | undefined },\n) => CssOutput\n\nconst spacingStyles: SpacingStyles = ({ gap, gutter }, { rootSize }) => {\n if (isCssVarValue(gap)) {\n // CSS-variables mode: the gap is a var()/calc() reference — express the\n // split with native CSS calc() instead of JS arithmetic (which would\n // produce NaN; pre-fix this path silently SKIPPED all spacing).\n // NOTE: multiplication, not division — `calc(x / -2)` is invalid CSS\n // (divisor must be positive in Chromium's parser) and one invalid\n // component would drop the WHOLE margin shorthand.\n const spacingX = `calc(${gap} * -0.5)`\n const spacingY = isCssVarValue(gutter)\n ? `calc(${gutter} - ${gap} * 0.5)`\n : isNumber(gutter)\n ? `calc(${value(gutter, rootSize)} - ${gap} * 0.5)`\n : `calc(${gap} * 0.5)`\n\n return css`\n margin: ${spacingY} ${spacingX};\n `\n }\n\n if (!isNumber(gap)) return ''\n\n const g = gap as number\n const getValue = (param: string | number | null | undefined) => value(param, rootSize)\n\n const spacingX = (g / 2) * -1\n const spacingY = isNumber(gutter) ? (gutter as number) - g / 2 : g / 2\n\n return css`\n margin: ${getValue(spacingY)} ${getValue(spacingX)};\n `\n}\n\n/** Maps the contentAlignX prop to a CSS justify-content value. */\nconst contentAlign = (align?: StyledTypes['contentAlignX']) => {\n if (!align) return ''\n\n return css`\n justify-content: ${ALIGN_CONTENT_MAP_X[align]};\n `\n}\n\n/** Composes spacing, alignment, and extra CSS into a single responsive style block for the Row. */\nconst styles: MakeItResponsiveStyles<\n Pick<StyledTypes, 'gap' | 'gutter' | 'contentAlignX' | 'extraStyles'>\n> = ({ theme, css: cssFn, rootSize }) => {\n const { gap, gutter, contentAlignX, extraStyles } = theme\n\n return cssFn`\n ${spacingStyles({ gap, gutter }, { rootSize })};\n ${contentAlign(contentAlignX)};\n ${extendCss(extraStyles)};\n `\n}\n\nexport default styled(component, { layer: 'elements' })`\n box-sizing: border-box;\n\n display: flex;\n flex-wrap: wrap;\n align-self: stretch;\n flex-direction: row;\n\n ${makeItResponsive({\n key: '$coolgrid',\n styles,\n css,\n normalize: true,\n })};\n`\n","import { nativeCompat, provide, splitProps, useContext } from '@pyreon/core'\nimport { PKG_NAME } from '../constants'\nimport { ContainerContext, RowContext } from '../context'\nimport type { ElementFn } from '../types'\nimport useGridContext from '../useContext'\nimport { omitCtxKeys } from '../utils'\nimport Styled from './styled'\n\n/**\n * Row component that reads inherited config from ContainerContext, merges\n * it with its own props, and provides the resolved grid settings (columns,\n * gap, gutter) to Col children via RowContext. Renders a flex-wrap container\n * with negative margins to offset column gutters.\n */\n\n/* v8 ignore next — production branch not exercised in tests */\nconst DEV_PROPS: Record<string, string> = process.env.NODE_ENV !== 'production' ? { 'data-coolgrid': 'row' } : {}\n\nconst Component: ElementFn<['containerWidth', 'width', 'rowComponent', 'rowCss']> = (props) => {\n const [own, rest] = splitProps(props, ['children', 'component', 'css', 'contentAlignX'])\n const parentCtx = useContext(ContainerContext)\n\n const {\n columns,\n gap,\n gutter,\n rowComponent,\n rowCss,\n contentAlignX,\n containerWidth,\n size,\n padding,\n colCss,\n colComponent,\n } = useGridContext({ ...parentCtx, ...rest })\n\n const context = {\n containerWidth,\n size,\n padding,\n colCss,\n colComponent,\n columns,\n gap,\n gutter,\n }\n\n const finalProps = {\n $coolgrid: {\n contentAlignX: own.contentAlignX || contentAlignX,\n columns,\n gap,\n gutter,\n extraStyles: own.css || rowCss,\n },\n }\n\n // Provide row context to Col children\n provide(RowContext, context)\n\n return (\n <Styled {...omitCtxKeys(rest)} as={own.component || rowComponent} {...finalProps} {...DEV_PROPS}>\n {own.children}\n </Styled>\n )\n}\n\nconst name = `${PKG_NAME}/Row`\n\n\n// Mark as native — compat-mode jsx() runtimes skip wrapCompatComponent so\n// Row's useContext(ContainerContext) read + provide(RowContext, ...) reach\n// Pyreon's setup frame.\n\n// ASSIGNMENT + /* @__PURE__ */ form (not a bare statement): inside a built\n// lib's shared chunk a bare `nativeCompat(X)` call is an unremovable side\n// effect that RETAINS the component body in every consumer bundle that\n// never imports it (see runtime-dom's native-compat-treeshake lock). The\n// PURE call is droppable exactly when the export is unused; when used it\n// returns the SAME fn with the marker applied.\n// Branding rides the PURE export expression — a bare top-level\n// `Component.x = y` assignment is an unremovable side effect that pins every\n// component in the package into every consumer bundle (measured on\n// @pyreon/elements: importing just <Portal> paid the whole 7.5KB gz; PR ref\n// in elements/src/Portal/component.tsx).\nexport default /* @__PURE__ */ nativeCompat(\n /* @__PURE__ */ Object.assign(Component, {\n displayName: name,\n pkgName: PKG_NAME,\n PYREON__COMPONENT: name,\n }),\n)","import component from './component'\n\nexport default component\n","/**\n * Default Bootstrap-like grid configuration. Provides 5 breakpoints (xs-xl),\n * a 12-column grid, and responsive container max-widths matching Bootstrap 4.\n */\nexport default {\n rootSize: 16,\n breakpoints: {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n },\n grid: {\n columns: 12,\n container: {\n xs: '100%',\n sm: 540,\n md: 720,\n lg: 960,\n xl: 1140,\n },\n },\n} as const\n\nexport const defaultBreakpoints: Record<string, number> = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n}\n\nexport const defaultContainerWidths: Record<string, string | number> = {\n xs: '100%',\n sm: 540,\n md: 720,\n lg: 960,\n xl: 1140,\n}\n"],"mappings":";;;;;;AAAA,MAAa,WAAW;;;;;AAMxB,MAAa,eAAe;CAG1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;;;;;;;;ACXA,+BAAe,cAA2B,CAAC,CAAC;;;;;;;;;ACA5C,yBAAe,cAA2B,CAAC,CAAC;;;;ACY5C,MAAa,kBAAkC,QAAQ,CAAC,GAAG,QAAQ,CAAC,OAAO;CAMzE,SAAW,MAAc,WACvB,IAAI,OAAO,cAAc,KACzB,IAAI,OAAO,kBAAkB;CAC/B,gBAAkB,MAAc,SAC9B,IAAI,OAAO,gBAAgB,KAC3B,IAAI,OAAO,oBAAoB;AACnC;AAQA,MAAM,kBAAkC,UAAU;CAEhD,MAAM,EAAE,UADO,WAAW,OACH,CAAC,CAAC;CAGzB,MAAM,WAAW,KAAK,OAAO,YAAyC;CAGtE,OAAO;EAAE,GAFW,eAAe,UAAU,KAEvB;EAAG,GAAG;CAAS;AACvC;;;;;AC7CA,MAAa,YAAY,UAAoC,OAAO,SAAS,KAAK;;AAGlF,MAAa,YAAY,UAA4B,SAAS,KAAK,KAAK,QAAQ;;;;;;;AAQhF,MAAa,iBAAiB,UAC5B,OAAO,UAAU,aAAa,MAAM,WAAW,MAAM,KAAK,MAAM,WAAW,OAAO;;;;;AAMpF,MAAa,aAAa,UACvB,SAAS,KAAK,KAAK,UAAU,KAAM,UAAU;AAQhD,MAAa,eAA4B,UAAU,KAAK,OAAO,YAAY;;;;ACzB3E,MAAM,EAAE,kBAAQ,YAAK,2BAAc;;AAKnC,MAAM,YAAsB,MAAM,YAAY,S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M,OAAO,GAAG,SAAS;AAkBzB,wBAA+B,6BACb,uBAAO,OAAO,WAAW;CACvC,aAAa;CACb,SAAS;CACT,mBAAmB;AACrB,CAAC,CACH;;;;ACzFA,kBAAeC;;;;;;;;ACEf,oBAAe;CACb,UAAU;CACV,aAAa;EACX,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;CACN;CACA,MAAM;EACJ,SAAS;EACT,WAAW;GACT,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyreon/coolgrid",
3
- "version": "0.50.0",
3
+ "version": "0.52.0",
4
4
  "description": "Responsive grid system for Pyreon",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/pyreon/pyreon/tree/main/packages/ui-system/coolgrid#readme",
@@ -40,22 +40,22 @@
40
40
  "typecheck": "tsc --noEmit"
41
41
  },
42
42
  "peerDependencies": {
43
- "@pyreon/core": "^0.50.0",
44
- "@pyreon/reactivity": "^0.50.0"
43
+ "@pyreon/core": "^0.52.0",
44
+ "@pyreon/reactivity": "^0.52.0"
45
45
  },
46
46
  "dependencies": {
47
- "@pyreon/ui-core": "^0.50.0",
48
- "@pyreon/unistyle": "^0.50.0"
47
+ "@pyreon/ui-core": "^0.52.0",
48
+ "@pyreon/unistyle": "^0.52.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@pyreon/manifest": "0.13.2",
52
- "@pyreon/styler": "^0.50.0",
53
- "@pyreon/test-utils": "^0.13.38",
54
- "@pyreon/tsconfig": "0.0.2",
55
- "@pyreon/typescript": "^0.50.0",
56
- "@pyreon/vitest-config": "0.13.3",
57
- "@vitest/browser-playwright": "^4.1.10",
58
- "@vitus-labs/tools-rolldown": "^2.5.0"
51
+ "@pyreon/manifest": "0.50.0",
52
+ "@pyreon/styler": "^0.52.0",
53
+ "@pyreon/test-utils": "^0.50.2",
54
+ "@pyreon/tsconfig": "0.50.2",
55
+ "@pyreon/typescript": "^0.52.0",
56
+ "@pyreon/vitest-config": "0.50.0",
57
+ "@vitest/browser-playwright": "^5.0.2",
58
+ "@vitus-labs/tools-rolldown": "^2.6.3"
59
59
  },
60
60
  "engines": {
61
61
  "node": ">= 22"