@sb1/ffe-lists-react 9.1.14 → 10.0.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/README.md +0 -5
- package/es/BulletList.js +25 -23
- package/es/BulletListItem.js +25 -17
- package/es/CheckList.js +25 -24
- package/es/CheckListItem.js +29 -35
- package/es/DescriptionList.js +25 -33
- package/es/DescriptionListDescription.js +25 -17
- package/es/DescriptionListMultiCol.js +35 -32
- package/es/DescriptionListTerm.js +25 -17
- package/es/DetailListCard.js +25 -18
- package/es/DetailListCardItem.js +31 -32
- package/es/NumberedList.js +25 -23
- package/es/NumberedListItem.js +25 -17
- package/es/StylizedNumberedList.js +25 -19
- package/es/StylizedNumberedListItem.js +26 -20
- package/es/index.js +14 -16
- package/lib/BulletList.js +32 -30
- package/lib/BulletListItem.js +32 -24
- package/lib/CheckList.js +32 -31
- package/lib/CheckListItem.js +37 -43
- package/lib/DescriptionList.js +32 -40
- package/lib/DescriptionListDescription.js +32 -24
- package/lib/DescriptionListMultiCol.js +42 -39
- package/lib/DescriptionListTerm.js +32 -24
- package/lib/DetailListCard.js +32 -25
- package/lib/DetailListCardItem.js +38 -39
- package/lib/NumberedList.js +32 -30
- package/lib/NumberedListItem.js +32 -24
- package/lib/StylizedNumberedList.js +32 -26
- package/lib/StylizedNumberedListItem.js +33 -27
- package/lib/index.js +30 -105
- package/package.json +4 -5
- package/types/BulletList.d.ts +6 -0
- package/types/BulletListItem.d.ts +4 -0
- package/types/CheckList.d.ts +5 -0
- package/types/CheckListItem.d.ts +6 -0
- package/types/DescriptionList.d.ts +7 -0
- package/types/DescriptionListDescription.d.ts +4 -0
- package/types/DescriptionListMultiCol.d.ts +4 -0
- package/types/DescriptionListTerm.d.ts +4 -0
- package/types/DetailListCard.d.ts +4 -0
- package/types/DetailListCardItem.d.ts +8 -0
- package/types/NumberedList.d.ts +6 -0
- package/types/NumberedListItem.d.ts +4 -0
- package/types/StylizedNumberedList.d.ts +4 -0
- package/types/StylizedNumberedListItem.d.ts +4 -0
- package/types/index.d.ts +14 -103
- package/es/index.d.js +0 -1
- package/lib/index.d.js +0 -6
package/lib/index.js
CHANGED
|
@@ -1,106 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _DescriptionList.default;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "DescriptionListDescription", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _DescriptionListDescription.default;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "DescriptionListMultiCol", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _DescriptionListMultiCol.default;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "DescriptionListTerm", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _DescriptionListTerm.default;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "DetailListCard", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _DetailListCard.default;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "DetailListCardItem", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _DetailListCardItem.default;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "NumberedList", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function get() {
|
|
69
|
-
return _NumberedList.default;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "NumberedListItem", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _NumberedListItem.default;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "StylizedNumberedList", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function get() {
|
|
81
|
-
return _StylizedNumberedList.default;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "StylizedNumberedListItem", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function get() {
|
|
87
|
-
return _StylizedNumberedListItem.default;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
exports.default = void 0;
|
|
91
|
-
var _BulletList = _interopRequireDefault(require("./BulletList"));
|
|
92
|
-
var _BulletListItem = _interopRequireDefault(require("./BulletListItem"));
|
|
93
|
-
var _CheckList = _interopRequireDefault(require("./CheckList"));
|
|
94
|
-
var _CheckListItem = _interopRequireDefault(require("./CheckListItem"));
|
|
95
|
-
var _NumberedList = _interopRequireDefault(require("./NumberedList"));
|
|
96
|
-
var _NumberedListItem = _interopRequireDefault(require("./NumberedListItem"));
|
|
97
|
-
var _StylizedNumberedList = _interopRequireDefault(require("./StylizedNumberedList"));
|
|
98
|
-
var _StylizedNumberedListItem = _interopRequireDefault(require("./StylizedNumberedListItem"));
|
|
99
|
-
var _DescriptionList = _interopRequireDefault(require("./DescriptionList"));
|
|
100
|
-
var _DescriptionListMultiCol = _interopRequireDefault(require("./DescriptionListMultiCol"));
|
|
101
|
-
var _DescriptionListTerm = _interopRequireDefault(require("./DescriptionListTerm"));
|
|
102
|
-
var _DescriptionListDescription = _interopRequireDefault(require("./DescriptionListDescription"));
|
|
103
|
-
var _DetailListCard = _interopRequireDefault(require("./DetailListCard"));
|
|
104
|
-
var _DetailListCardItem = _interopRequireDefault(require("./DetailListCardItem"));
|
|
105
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
106
|
-
var _default = exports.default = _BulletList.default;
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DetailListCardItem = exports.DetailListCard = exports.DescriptionListDescription = exports.DescriptionListTerm = exports.DescriptionListMultiCol = exports.DescriptionList = exports.StylizedNumberedListItem = exports.StylizedNumberedList = exports.NumberedListItem = exports.NumberedList = exports.CheckListItem = exports.CheckList = exports.BulletListItem = exports.BulletList = void 0;
|
|
4
|
+
var BulletList_1 = require("./BulletList");
|
|
5
|
+
Object.defineProperty(exports, "BulletList", { enumerable: true, get: function () { return BulletList_1.BulletList; } });
|
|
6
|
+
var BulletListItem_1 = require("./BulletListItem");
|
|
7
|
+
Object.defineProperty(exports, "BulletListItem", { enumerable: true, get: function () { return BulletListItem_1.BulletListItem; } });
|
|
8
|
+
var CheckList_1 = require("./CheckList");
|
|
9
|
+
Object.defineProperty(exports, "CheckList", { enumerable: true, get: function () { return CheckList_1.CheckList; } });
|
|
10
|
+
var CheckListItem_1 = require("./CheckListItem");
|
|
11
|
+
Object.defineProperty(exports, "CheckListItem", { enumerable: true, get: function () { return CheckListItem_1.CheckListItem; } });
|
|
12
|
+
var NumberedList_1 = require("./NumberedList");
|
|
13
|
+
Object.defineProperty(exports, "NumberedList", { enumerable: true, get: function () { return NumberedList_1.NumberedList; } });
|
|
14
|
+
var NumberedListItem_1 = require("./NumberedListItem");
|
|
15
|
+
Object.defineProperty(exports, "NumberedListItem", { enumerable: true, get: function () { return NumberedListItem_1.NumberedListItem; } });
|
|
16
|
+
var StylizedNumberedList_1 = require("./StylizedNumberedList");
|
|
17
|
+
Object.defineProperty(exports, "StylizedNumberedList", { enumerable: true, get: function () { return StylizedNumberedList_1.StylizedNumberedList; } });
|
|
18
|
+
var StylizedNumberedListItem_1 = require("./StylizedNumberedListItem");
|
|
19
|
+
Object.defineProperty(exports, "StylizedNumberedListItem", { enumerable: true, get: function () { return StylizedNumberedListItem_1.StylizedNumberedListItem; } });
|
|
20
|
+
var DescriptionList_1 = require("./DescriptionList");
|
|
21
|
+
Object.defineProperty(exports, "DescriptionList", { enumerable: true, get: function () { return DescriptionList_1.DescriptionList; } });
|
|
22
|
+
var DescriptionListMultiCol_1 = require("./DescriptionListMultiCol");
|
|
23
|
+
Object.defineProperty(exports, "DescriptionListMultiCol", { enumerable: true, get: function () { return DescriptionListMultiCol_1.DescriptionListMultiCol; } });
|
|
24
|
+
var DescriptionListTerm_1 = require("./DescriptionListTerm");
|
|
25
|
+
Object.defineProperty(exports, "DescriptionListTerm", { enumerable: true, get: function () { return DescriptionListTerm_1.DescriptionListTerm; } });
|
|
26
|
+
var DescriptionListDescription_1 = require("./DescriptionListDescription");
|
|
27
|
+
Object.defineProperty(exports, "DescriptionListDescription", { enumerable: true, get: function () { return DescriptionListDescription_1.DescriptionListDescription; } });
|
|
28
|
+
var DetailListCard_1 = require("./DetailListCard");
|
|
29
|
+
Object.defineProperty(exports, "DetailListCard", { enumerable: true, get: function () { return DetailListCard_1.DetailListCard; } });
|
|
30
|
+
var DetailListCardItem_1 = require("./DetailListCardItem");
|
|
31
|
+
Object.defineProperty(exports, "DetailListCardItem", { enumerable: true, get: function () { return DetailListCardItem_1.DetailListCardItem; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-lists-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "React implementation of ffe-lists",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"url": "ssh://git@github.com:SpareBank1/designsystem.git"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "ffe-buildtool
|
|
21
|
+
"build": "ffe-buildtool tsc",
|
|
22
22
|
"watch": "ffe-buildtool babel-watch",
|
|
23
23
|
"lint": "eslint src",
|
|
24
24
|
"lint:fix": "eslint src --fix",
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@sb1/ffe-icons-react": "^10.0.1",
|
|
30
30
|
"@sb1/ffe-lists": "^15.1.7",
|
|
31
|
-
"classnames": "^2.3.1"
|
|
32
|
-
"prop-types": "^15.7.2"
|
|
31
|
+
"classnames": "^2.3.1"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
35
34
|
"@sb1/ffe-buildtool": "^0.6.1",
|
|
@@ -42,5 +41,5 @@
|
|
|
42
41
|
"publishConfig": {
|
|
43
42
|
"access": "public"
|
|
44
43
|
},
|
|
45
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "279a4e7d3afe4b4679448a28d1cdd8557740fdd5"
|
|
46
45
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CheckListItemProps extends React.ComponentPropsWithoutRef<'li'> {
|
|
3
|
+
/** If true, render a red cross instead of a green checkmark */
|
|
4
|
+
isCross?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const CheckListItem: React.FC<CheckListItemProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DescriptionListProps extends React.ComponentPropsWithoutRef<'dl'> {
|
|
3
|
+
size?: 'md' | 'lg';
|
|
4
|
+
/** Displays dts and dds inline*/
|
|
5
|
+
horizontal?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const DescriptionList: React.FC<DescriptionListProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DetailListCardItemProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/** Content of the label / left column */
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
/** Content of the value / right column */
|
|
6
|
+
value: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const DetailListCardItem: React.FC<DetailListCardItemProps>;
|
package/types/index.d.ts
CHANGED
|
@@ -1,103 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface CheckListItemProps extends BaseListItemProps {
|
|
18
|
-
isCross?: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface CheckListProps extends BaseListProps {
|
|
22
|
-
columns?: 1 | 2 | '1' | '2';
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface NumberedListProps extends BaseListProps {
|
|
26
|
-
condensed?: boolean;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface DescriptionListProps extends BaseListProps {
|
|
30
|
-
medium?: boolean;
|
|
31
|
-
large?: boolean;
|
|
32
|
-
horizontal?: boolean;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface DetailListCardItemProps
|
|
36
|
-
extends React.ComponentPropsWithoutRef<'div'> {
|
|
37
|
-
label: NonNullable<React.ReactNode>;
|
|
38
|
-
value: NonNullable<React.ReactNode>;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface DetailListCardProps
|
|
42
|
-
extends React.ComponentPropsWithoutRef<'dl'> {
|
|
43
|
-
children:
|
|
44
|
-
| NonNullable<React.ReactNode>
|
|
45
|
-
| ((props: DetailListCardItemProps) => NonNullable<React.ReactNode>);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare class BulletList extends React.Component<
|
|
49
|
-
BulletListProps & React.ComponentProps<'ul'>,
|
|
50
|
-
any
|
|
51
|
-
> {}
|
|
52
|
-
declare class BulletListItem extends React.Component<
|
|
53
|
-
BaseListItemProps & React.ComponentProps<'li'>,
|
|
54
|
-
any
|
|
55
|
-
> {}
|
|
56
|
-
declare class CheckList extends React.Component<
|
|
57
|
-
CheckListProps & React.ComponentProps<'ul'>,
|
|
58
|
-
any
|
|
59
|
-
> {}
|
|
60
|
-
declare class CheckListItem extends React.Component<
|
|
61
|
-
CheckListItemProps & React.ComponentProps<'li'>,
|
|
62
|
-
any
|
|
63
|
-
> {}
|
|
64
|
-
declare class NumberedList extends React.Component<
|
|
65
|
-
NumberedListProps & React.ComponentProps<'ol'>,
|
|
66
|
-
any
|
|
67
|
-
> {}
|
|
68
|
-
declare class NumberedListItem extends React.Component<
|
|
69
|
-
BaseListItemProps & React.ComponentProps<'li'>,
|
|
70
|
-
any
|
|
71
|
-
> {}
|
|
72
|
-
declare class StylizedNumberedList extends React.Component<
|
|
73
|
-
BaseListProps & React.ComponentProps<'ol'>,
|
|
74
|
-
any
|
|
75
|
-
> {}
|
|
76
|
-
declare class StylizedNumberedListItem extends React.Component<
|
|
77
|
-
BaseListItemProps & React.ComponentProps<'li'>,
|
|
78
|
-
any
|
|
79
|
-
> {}
|
|
80
|
-
declare class DescriptionList extends React.Component<
|
|
81
|
-
DescriptionListProps & React.ComponentProps<'dl'>,
|
|
82
|
-
any
|
|
83
|
-
> {}
|
|
84
|
-
declare class DescriptionListMultiCol extends React.Component<
|
|
85
|
-
BaseListProps & React.ComponentProps<'div'>,
|
|
86
|
-
any
|
|
87
|
-
> {}
|
|
88
|
-
declare class DescriptionListTerm extends React.Component<
|
|
89
|
-
BaseListItemProps & React.ComponentProps<'dt'>,
|
|
90
|
-
any
|
|
91
|
-
> {}
|
|
92
|
-
declare class DescriptionListDescription extends React.Component<
|
|
93
|
-
BaseListItemProps & React.ComponentProps<'dd'>,
|
|
94
|
-
any
|
|
95
|
-
> {}
|
|
96
|
-
declare class DetailListCard extends React.Component<
|
|
97
|
-
DetailListCardProps & React.ComponentPropsWithoutRef<'dl'>,
|
|
98
|
-
any
|
|
99
|
-
> {}
|
|
100
|
-
declare class DetailListCardItem extends React.Component<
|
|
101
|
-
DetailListCardItemProps & React.ComponentPropsWithoutRef<'div'>,
|
|
102
|
-
any
|
|
103
|
-
> {}
|
|
1
|
+
export { BulletList, BulletListProps } from './BulletList';
|
|
2
|
+
export { BulletListItem, BulletListItemProps } from './BulletListItem';
|
|
3
|
+
export { CheckList, CheckListProps } from './CheckList';
|
|
4
|
+
export { CheckListItem, CheckListItemProps } from './CheckListItem';
|
|
5
|
+
export { NumberedList, NumberedListProps } from './NumberedList';
|
|
6
|
+
export { NumberedListItem, NumberedListItemProps } from './NumberedListItem';
|
|
7
|
+
export { StylizedNumberedList, StylizedNumberedListProps, } from './StylizedNumberedList';
|
|
8
|
+
export { StylizedNumberedListItem, StylizedNumberedListItemProps, } from './StylizedNumberedListItem';
|
|
9
|
+
export { DescriptionList, DescriptionListProps } from './DescriptionList';
|
|
10
|
+
export { DescriptionListMultiCol, DescriptionListMultiColProps, } from './DescriptionListMultiCol';
|
|
11
|
+
export { DescriptionListTerm, DescriptionListTermProps, } from './DescriptionListTerm';
|
|
12
|
+
export { DescriptionListDescription, DescriptionListDescriptionProps, } from './DescriptionListDescription';
|
|
13
|
+
export { DetailListCard, DetailListCardProps } from './DetailListCard';
|
|
14
|
+
export { DetailListCardItem, DetailListCardItemProps, } from './DetailListCardItem';
|
package/es/index.d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
package/lib/index.d.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
var React = _interopRequireWildcard(require("react"));
|
|
5
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
6
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|