@nice-digital/nds-container 4.0.16 → 4.0.17-alpha-node-update.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/es/Container.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- import "../scss/container.scss";
3
- export interface ContainerProps {
4
- /** Allow any additional props to be passed and applied to the container */
5
- [prop: string]: unknown;
6
- /** Contents for the container element */
7
- children: React.ReactNode;
8
- /** Additional classes to add to the container */
9
- className?: string;
10
- /** Allow the container to defy the max-width and extend to the edges of the viewport */
11
- fullWidth?: boolean;
12
- /** The type of DOM node to render for the container item. Leave blank to default to div. */
13
- elementType?: React.ElementType;
14
- }
15
- export declare const Container: React.FC<ContainerProps>;
1
+ import React from "react";
2
+ import "../scss/container.scss";
3
+ export interface ContainerProps {
4
+ /** Allow any additional props to be passed and applied to the container */
5
+ [prop: string]: unknown;
6
+ /** Contents for the container element */
7
+ children: React.ReactNode;
8
+ /** Additional classes to add to the container */
9
+ className?: string;
10
+ /** Allow the container to defy the max-width and extend to the edges of the viewport */
11
+ fullWidth?: boolean;
12
+ /** The type of DOM node to render for the container item. Leave blank to default to div. */
13
+ elementType?: React.ElementType;
14
+ }
15
+ export declare const Container: React.FC<ContainerProps>;
package/es/Container.js CHANGED
@@ -1,30 +1,30 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Container = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const classnames_1 = __importDefault(require("classnames"));
20
- require("../scss/container.scss");
21
- const Container = (props) => {
22
- const { children, className, elementType: ElementType = "div", fullWidth } = props, rest = __rest(props, ["children", "className", "elementType", "fullWidth"]);
23
- const classes = (0, classnames_1.default)([
24
- "container",
25
- fullWidth && "container--full",
26
- className
27
- ]);
28
- return ((0, jsx_runtime_1.jsx)(ElementType, Object.assign({ className: classes, "data-component": "container" }, rest, { children: children })));
29
- };
30
- exports.Container = Container;
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Container = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ const classnames_1 = __importDefault(require("classnames"));
20
+ require("../scss/container.scss");
21
+ const Container = (props) => {
22
+ const { children, className, elementType: ElementType = "div", fullWidth } = props, rest = __rest(props, ["children", "className", "elementType", "fullWidth"]);
23
+ const classes = (0, classnames_1.default)([
24
+ "container",
25
+ fullWidth && "container--full",
26
+ className
27
+ ]);
28
+ return ((0, jsx_runtime_1.jsx)(ElementType, Object.assign({ className: classes, "data-component": "container" }, rest, { children: children })));
29
+ };
30
+ exports.Container = Container;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-digital/nds-container",
3
- "version": "4.0.16",
3
+ "version": "4.0.17-alpha-node-update.0",
4
4
  "description": "Container component for the NICE Design System",
5
5
  "keywords": [
6
6
  "container"
@@ -34,19 +34,19 @@
34
34
  "url": "https://github.com/nice-digital/nice-design-system/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@nice-digital/nds-core": "^4.0.16",
37
+ "@nice-digital/nds-core": "^4.0.17-alpha-node-update.0",
38
38
  "classnames": "^2.2.6"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": "^16 || ^17 || ^18"
42
42
  },
43
- "gitHead": "7f069b2855600345c7366e8dc965a5d839a20c17",
43
+ "gitHead": "1b7a4a13183120071b022adecd2fcf4eebefbb6c",
44
44
  "devDependencies": {
45
45
  "@testing-library/jest-dom": "^5.16.5",
46
46
  "@testing-library/react": "^13.4.0",
47
47
  "@testing-library/user-event": "^14.4.3",
48
48
  "@types/jest": "^29.2.2",
49
- "@types/node": "^18.11.9",
50
- "typescript": "^4.8.4"
49
+ "@types/node": "22.19.0",
50
+ "typescript": "^5.9.3"
51
51
  }
52
52
  }