@nice-digital/nds-column-list 4.0.15 → 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/ColumnList.d.ts +11 -11
- package/es/ColumnList.js +28 -28
- package/package.json +5 -5
package/es/ColumnList.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "../scss/column-list.scss";
|
|
3
|
-
export interface ColumnListProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
plain?: boolean;
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Number of columns on desktop-width screens */
|
|
8
|
-
columns?: 2 | 3;
|
|
9
|
-
[prop: string]: unknown;
|
|
10
|
-
}
|
|
11
|
-
export declare const ColumnList: React.FC<ColumnListProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "../scss/column-list.scss";
|
|
3
|
+
export interface ColumnListProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
plain?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Number of columns on desktop-width screens */
|
|
8
|
+
columns?: 2 | 3;
|
|
9
|
+
[prop: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export declare const ColumnList: React.FC<ColumnListProps>;
|
package/es/ColumnList.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ColumnList = void 0;
|
|
15
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
require("../scss/column-list.scss");
|
|
17
|
-
const ColumnList = (props) => {
|
|
18
|
-
const { children, plain, className, columns } = props, attrs = __rest(props, ["children", "plain", "className", "columns"]);
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)("ol", Object.assign({ className: [
|
|
20
|
-
"column-list",
|
|
21
|
-
plain ? "column-list--plain" : "column-list--boxed",
|
|
22
|
-
columns === 2 ? "column-list--two-columns" : "",
|
|
23
|
-
className
|
|
24
|
-
]
|
|
25
|
-
.filter(Boolean)
|
|
26
|
-
.join(" "), "data-component": `column-list${plain ? "--plain" : "--boxed"}` }, attrs, { children: children })));
|
|
27
|
-
};
|
|
28
|
-
exports.ColumnList = ColumnList;
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ColumnList = void 0;
|
|
15
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
require("../scss/column-list.scss");
|
|
17
|
+
const ColumnList = (props) => {
|
|
18
|
+
const { children, plain, className, columns } = props, attrs = __rest(props, ["children", "plain", "className", "columns"]);
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)("ol", Object.assign({ className: [
|
|
20
|
+
"column-list",
|
|
21
|
+
plain ? "column-list--plain" : "column-list--boxed",
|
|
22
|
+
columns === 2 ? "column-list--two-columns" : "",
|
|
23
|
+
className
|
|
24
|
+
]
|
|
25
|
+
.filter(Boolean)
|
|
26
|
+
.join(" "), "data-component": `column-list${plain ? "--plain" : "--boxed"}` }, attrs, { children: children })));
|
|
27
|
+
};
|
|
28
|
+
exports.ColumnList = ColumnList;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-digital/nds-column-list",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.17-alpha-node-update.0",
|
|
4
4
|
"description": "Column List component for the NICE Design System",
|
|
5
5
|
"main": "es/ColumnList.js",
|
|
6
6
|
"types": "es/ColumnList.d.ts",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"homepage": "https://design-system.nice.org.uk/",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nice-digital/nds-core": "^4.0.
|
|
35
|
+
"@nice-digital/nds-core": "^4.0.17-alpha-node-update.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "1b7a4a13183120071b022adecd2fcf4eebefbb6c",
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@testing-library/jest-dom": "^5.16.5",
|
|
40
40
|
"@testing-library/react": "^13.4.0",
|
|
41
41
|
"@testing-library/user-event": "^14.4.3",
|
|
42
42
|
"@types/jest": "^29.2.2",
|
|
43
|
-
"@types/node": "
|
|
44
|
-
"typescript": "^
|
|
43
|
+
"@types/node": "22.19.0",
|
|
44
|
+
"typescript": "^5.9.3"
|
|
45
45
|
}
|
|
46
46
|
}
|