@synerise/ds-grid 1.1.5 → 1.1.7

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.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-grid@1.1.6...@synerise/ds-grid@1.1.7) (2025-08-28)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-grid
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.1.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-grid@1.1.5...@synerise/ds-grid@1.1.6) (2025-07-24)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-grid
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.1.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-grid@1.1.4...@synerise/ds-grid@1.1.5) (2025-07-01)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-grid
@@ -3,7 +3,7 @@ export declare const GridContainer: import("styled-components").StyledComponent<
3
3
  gutter: number;
4
4
  }, never>;
5
5
  export declare const GridItem: import("styled-components").StyledComponent<"div", any, {
6
- columns?: number | undefined;
6
+ columns?: number;
7
7
  contentWrapper: boolean;
8
8
  maxColumns: number;
9
9
  }, never>;
@@ -1,6 +1,6 @@
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
- import React from 'react';
3
+ import React, { useContext, useMemo } from 'react';
4
4
  import { DEFAULT_COLUMNS_NUMBER, GridContext } from '../Grid';
5
5
  import * as S from '../Grid.styles';
6
6
  var BREAKPOINTS = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
@@ -9,8 +9,8 @@ var Item = function Item(_ref) {
9
9
  var children = _ref.children,
10
10
  contentWrapper = _ref.contentWrapper,
11
11
  props = _objectWithoutPropertiesLoose(_ref, _excluded);
12
- var breakpointData = React.useContext(GridContext);
13
- var definedBreakpoints = React.useMemo(function () {
12
+ var breakpointData = useContext(GridContext);
13
+ var definedBreakpoints = useMemo(function () {
14
14
  return BREAKPOINTS.filter(function (breakpoint) {
15
15
  return props[breakpoint] !== undefined;
16
16
  }).map(function (breakpoint) {
@@ -20,7 +20,7 @@ var Item = function Item(_ref) {
20
20
  };
21
21
  });
22
22
  }, [props]);
23
- var breakpointColumns = React.useMemo(function () {
23
+ var breakpointColumns = useMemo(function () {
24
24
  if (breakpointData.breakpoint) {
25
25
  var name = breakpointData.breakpoint.name;
26
26
  if (props[name] !== undefined) {
@@ -34,7 +34,7 @@ var Item = function Item(_ref) {
34
34
  }
35
35
  return undefined;
36
36
  }, [breakpointData.breakpoint, definedBreakpoints, props]);
37
- var getColumns = React.useMemo(function () {
37
+ var getColumns = useMemo(function () {
38
38
  var _breakpointData$break;
39
39
  if (breakpointColumns !== undefined) {
40
40
  return breakpointColumns;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-grid",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Grid UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,12 +34,12 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-utils": "^1.3.1"
37
+ "@synerise/ds-utils": "^1.4.1"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@synerise/ds-core": "*",
41
41
  "react": ">=16.9.0 <= 18.3.1",
42
42
  "styled-components": "^5.3.3"
43
43
  },
44
- "gitHead": "4512641033ba3581a3df208143c547fcfed45895"
44
+ "gitHead": "5f5d424cf8c7fa89e231c36a45f5ab3e4cfac8e7"
45
45
  }