@dfds-ui/grid 2.2.0-alpha.8b995955 → 2.2.0-alpha.b8d61c36

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.
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- export type GridProps = {
1
+ import React, { ReactNode } from 'react';
2
+ export declare type GridProps = {
3
3
  children: ReactNode;
4
4
  gap?: 's' | 'l';
5
5
  surface?: 'inverted' | 'dark' | 'transparent';
@@ -7,5 +7,5 @@ export type GridProps = {
7
7
  bottom?: 's' | 'l';
8
8
  className?: string;
9
9
  };
10
- export declare const Grid: ({ gap, surface, top, bottom, children, className }: GridProps) => JSX.Element;
10
+ export declare const Grid: ({ gap, surface, top, bottom, children, className }: GridProps) => React.JSX.Element;
11
11
  export default Grid;
package/cjs/grid/Grid.js CHANGED
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _theme = require("@dfds-ui/theme");
9
9
  var _react2 = require("@emotion/react");
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  const Grid = ({
13
13
  gap,
14
14
  surface,
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- export type GridItemProps = {
1
+ import React, { ReactNode } from 'react';
2
+ export declare type GridItemProps = {
3
3
  children: ReactNode;
4
4
  small?: 6 | 12;
5
5
  medium?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
@@ -10,5 +10,5 @@ export type GridItemProps = {
10
10
  */
11
11
  className?: string;
12
12
  };
13
- export declare const GridItem: (props: GridItemProps) => JSX.Element;
13
+ export declare const GridItem: (props: GridItemProps) => React.JSX.Element;
14
14
  export default GridItem;
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _react2 = require("@emotion/react");
9
9
  var _theme = require("@dfds-ui/theme");
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  const GridItem = props => {
13
13
  const smallWidth = props.small || 12;
14
14
  const mediumWidth = props.medium || smallWidth;
package/grid/Grid.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- export type GridProps = {
1
+ import React, { ReactNode } from 'react';
2
+ export declare type GridProps = {
3
3
  children: ReactNode;
4
4
  gap?: 's' | 'l';
5
5
  surface?: 'inverted' | 'dark' | 'transparent';
@@ -7,5 +7,5 @@ export type GridProps = {
7
7
  bottom?: 's' | 'l';
8
8
  className?: string;
9
9
  };
10
- export declare const Grid: ({ gap, surface, top, bottom, children, className }: GridProps) => JSX.Element;
10
+ export declare const Grid: ({ gap, surface, top, bottom, children, className }: GridProps) => React.JSX.Element;
11
11
  export default Grid;
package/grid/Grid.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var _templateObject, _templateObject2;
2
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
2
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
3
  import React from 'react';
4
4
  import { media, theme } from '@dfds-ui/theme';
5
5
  import { css } from '@emotion/react';
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- export type GridItemProps = {
1
+ import React, { ReactNode } from 'react';
2
+ export declare type GridItemProps = {
3
3
  children: ReactNode;
4
4
  small?: 6 | 12;
5
5
  medium?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
@@ -10,5 +10,5 @@ export type GridItemProps = {
10
10
  */
11
11
  className?: string;
12
12
  };
13
- export declare const GridItem: (props: GridItemProps) => JSX.Element;
13
+ export declare const GridItem: (props: GridItemProps) => React.JSX.Element;
14
14
  export default GridItem;
package/grid/GridItem.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var _templateObject, _templateObject2, _templateObject3;
2
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
2
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
3
  import React from 'react';
4
4
  import { css } from '@emotion/react';
5
5
  import { media } from '@dfds-ui/theme';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Grid components",
4
4
  "license": "MIT",
5
5
  "private": false,
6
- "version": "2.2.0-alpha.8b995955",
6
+ "version": "2.2.0-alpha.b8d61c36",
7
7
  "sideEffects": false,
8
8
  "main": "./cjs/index.js",
9
9
  "module": "./index.js",
@@ -12,17 +12,17 @@
12
12
  "peerDependencies": {
13
13
  "@emotion/react": "11.11.4",
14
14
  "@emotion/styled": "11.11.5",
15
- "react": ">= 17.0.2",
16
- "react-dom": ">= 17.0.2"
15
+ "react": ">= 18.3.1",
16
+ "react-dom": ">= 18.3.1"
17
17
  },
18
18
  "dependencies": {
19
- "@dfds-ui/colors": "2.2.0-alpha.8b995955",
20
- "@dfds-ui/icons": "2.2.0-alpha.8b995955",
21
- "@dfds-ui/react-components": "2.2.0-alpha.8b995955",
22
- "@dfds-ui/theme": "2.2.0-alpha.8b995955",
19
+ "@dfds-ui/colors": "2.2.0-alpha.b8d61c36",
20
+ "@dfds-ui/icons": "2.2.0-alpha.b8d61c36",
21
+ "@dfds-ui/react-components": "2.2.0-alpha.b8d61c36",
22
+ "@dfds-ui/theme": "2.2.0-alpha.b8d61c36",
23
23
  "classnames": "^2.3.2"
24
24
  },
25
- "gitHead": "8b995955f3d03a596dd93635edb37bc761d1e8f0",
25
+ "gitHead": "b8d61c36b2e7e5af74e686ca5de6cfc856118701",
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  }