@synerise/ds-grid 1.1.7 → 1.1.9

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.1.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-grid@1.1.8...@synerise/ds-grid@1.1.9) (2025-10-10)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-grid
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.1.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-grid@1.1.7...@synerise/ds-grid@1.1.8) (2025-09-16)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-grid
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.1.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-grid@1.1.6...@synerise/ds-grid@1.1.7) (2025-08-28)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-grid
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_GUTTER = 24;
2
+ export declare const DEFAULT_COLUMNS_NUMBER = 24;
@@ -0,0 +1,2 @@
1
+ export var DEFAULT_GUTTER = 24;
2
+ export var DEFAULT_COLUMNS_NUMBER = 24;
@@ -0,0 +1,6 @@
1
+ export declare const GridContext: import("react").Context<{
2
+ dimensions: {
3
+ width: number;
4
+ height: number;
5
+ };
6
+ }>;
@@ -0,0 +1,7 @@
1
+ import { createContext } from 'react';
2
+ export var GridContext = /*#__PURE__*/createContext({
3
+ dimensions: {
4
+ width: window.innerWidth,
5
+ height: window.innerHeight
6
+ }
7
+ });
package/dist/Grid.d.ts CHANGED
@@ -1,12 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type GridProps } from './Grid.types';
3
- export declare const GridContext: React.Context<{
4
- dimensions: {
5
- width: number;
6
- height: number;
7
- };
8
- }>;
9
- export declare const DEFAULT_COLUMNS_NUMBER = 24;
10
3
  declare const Grid: {
11
4
  ({ children, gutter, style }: GridProps): React.JSX.Element;
12
5
  Item: ({ children, contentWrapper, ...props }: import("./Grid.types").GridItemProps) => React.JSX.Element;
package/dist/Grid.js CHANGED
@@ -1,15 +1,9 @@
1
1
  import React from 'react';
2
2
  import { useBreakpoint } from '@synerise/ds-utils';
3
+ import { DEFAULT_COLUMNS_NUMBER, DEFAULT_GUTTER } from './Grid.const';
4
+ import { GridContext } from './Grid.context';
3
5
  import * as S from './Grid.styles';
4
6
  import Item from './GridItem/GridItem';
5
- export var GridContext = /*#__PURE__*/React.createContext({
6
- dimensions: {
7
- width: window.innerWidth,
8
- height: window.innerHeight
9
- }
10
- });
11
- var DEFAULT_GUTTER = 24;
12
- export var DEFAULT_COLUMNS_NUMBER = 24;
13
7
  var Grid = function Grid(_ref) {
14
8
  var _breakpointData$break;
15
9
  var children = _ref.children,
@@ -1,7 +1,8 @@
1
1
  var _excluded = ["children", "contentWrapper"];
2
2
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3
3
  import React, { useContext, useMemo } from 'react';
4
- import { DEFAULT_COLUMNS_NUMBER, GridContext } from '../Grid';
4
+ import { DEFAULT_COLUMNS_NUMBER } from '../Grid.const';
5
+ import { GridContext } from '../Grid.context';
5
6
  import * as S from '../Grid.styles';
6
7
  var BREAKPOINTS = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
7
8
  var Item = function Item(_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-grid",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Grid UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -26,6 +26,7 @@
26
26
  "test": "jest",
27
27
  "test:watch": "npm run test -- --watchAll",
28
28
  "types": "tsc --noEmit",
29
+ "check:circular-dependencies": "madge --circular --extensions ts,tsx,js,jsx --ts-config tsconfig.json src/ --exclude '/dist/'",
29
30
  "upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
30
31
  },
31
32
  "sideEffects": [
@@ -34,12 +35,12 @@
34
35
  ],
35
36
  "types": "dist/index.d.ts",
36
37
  "dependencies": {
37
- "@synerise/ds-utils": "^1.4.1"
38
+ "@synerise/ds-utils": "^1.5.0"
38
39
  },
39
40
  "peerDependencies": {
40
41
  "@synerise/ds-core": "*",
41
42
  "react": ">=16.9.0 <= 18.3.1",
42
43
  "styled-components": "^5.3.3"
43
44
  },
44
- "gitHead": "5f5d424cf8c7fa89e231c36a45f5ab3e4cfac8e7"
45
+ "gitHead": "4e09fc37fa21ff2e27655e7bb305b136db0ca199"
45
46
  }