@naptics/vue-collection 0.2.13 → 0.2.14
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/components/NList.d.ts +15 -3
- package/components/NList.js +7 -3
- package/package.json +1 -1
package/components/NList.d.ts
CHANGED
|
@@ -22,9 +22,13 @@ export declare const nListProps: {
|
|
|
22
22
|
*/
|
|
23
23
|
readonly titleClass: StringConstructor;
|
|
24
24
|
/**
|
|
25
|
-
* Adds the
|
|
25
|
+
* Adds the classes to all text elements (on the right side).
|
|
26
26
|
*/
|
|
27
27
|
readonly textClass: StringConstructor;
|
|
28
|
+
/**
|
|
29
|
+
* Adds the classes to each row.
|
|
30
|
+
*/
|
|
31
|
+
readonly rowClass: StringConstructor;
|
|
28
32
|
};
|
|
29
33
|
/**
|
|
30
34
|
* The `NList` displays key-value data in an appealing way.
|
|
@@ -42,9 +46,13 @@ declare const Component: import("vue").DefineComponent<{
|
|
|
42
46
|
*/
|
|
43
47
|
readonly titleClass: StringConstructor;
|
|
44
48
|
/**
|
|
45
|
-
* Adds the
|
|
49
|
+
* Adds the classes to all text elements (on the right side).
|
|
46
50
|
*/
|
|
47
51
|
readonly textClass: StringConstructor;
|
|
52
|
+
/**
|
|
53
|
+
* Adds the classes to each row.
|
|
54
|
+
*/
|
|
55
|
+
readonly rowClass: StringConstructor;
|
|
48
56
|
}, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
57
|
/**
|
|
50
58
|
* The items which are displayed in the list.
|
|
@@ -58,9 +66,13 @@ declare const Component: import("vue").DefineComponent<{
|
|
|
58
66
|
*/
|
|
59
67
|
readonly titleClass: StringConstructor;
|
|
60
68
|
/**
|
|
61
|
-
* Adds the
|
|
69
|
+
* Adds the classes to all text elements (on the right side).
|
|
62
70
|
*/
|
|
63
71
|
readonly textClass: StringConstructor;
|
|
72
|
+
/**
|
|
73
|
+
* Adds the classes to each row.
|
|
74
|
+
*/
|
|
75
|
+
readonly rowClass: StringConstructor;
|
|
64
76
|
}>> & {}, {
|
|
65
77
|
readonly items: ListItem[];
|
|
66
78
|
}>;
|
package/components/NList.js
CHANGED
|
@@ -13,9 +13,13 @@ export const nListProps = {
|
|
|
13
13
|
*/
|
|
14
14
|
titleClass: String,
|
|
15
15
|
/**
|
|
16
|
-
* Adds the
|
|
16
|
+
* Adds the classes to all text elements (on the right side).
|
|
17
17
|
*/
|
|
18
|
-
textClass: String
|
|
18
|
+
textClass: String,
|
|
19
|
+
/**
|
|
20
|
+
* Adds the classes to each row.
|
|
21
|
+
*/
|
|
22
|
+
rowClass: String
|
|
19
23
|
};
|
|
20
24
|
/**
|
|
21
25
|
* The `NList` displays key-value data in an appealing way.
|
|
@@ -23,7 +27,7 @@ export const nListProps = {
|
|
|
23
27
|
const Component = createComponent('NList', nListProps, props => {
|
|
24
28
|
return () => _createVNode("dl", null, [props.items.map((item, index) => _createVNode("div", {
|
|
25
29
|
"key": index,
|
|
26
|
-
"class": ['py-5 px-4 sm:grid sm:grid-cols-3 sm:gap-4', index % 2 === 1 ? 'bg-white' : 'bg-default-50']
|
|
30
|
+
"class": ['py-5 px-4 sm:grid sm:grid-cols-3 sm:gap-4', index % 2 === 1 ? 'bg-white' : 'bg-default-50', props.rowClass]
|
|
27
31
|
}, [_createVNode("dt", {
|
|
28
32
|
"class": `text-sm font-medium text-default-500 ${props.titleClass}`
|
|
29
33
|
}, [buildElement(item.title)]), _createVNode("dd", {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@naptics/vue-collection",
|
|
3
3
|
"author": "Timo Siegenthaler",
|
|
4
4
|
"description": "Vue Collection is a collection of styled and fully functional Vue components which can easily be integrated into our projects.",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.14",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|