@pingux/astro 2.154.0-alpha.2 → 2.154.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/lib/cjs/components/ListView/ListView.js +10 -2
- package/lib/cjs/components/ListView/ListView.stories.js +6 -6
- package/lib/cjs/components/Loader/Loader.styles.d.ts +1 -0
- package/lib/cjs/components/Loader/Loader.styles.js +1 -0
- package/lib/cjs/components/Text/Text.styles.d.ts +6 -0
- package/lib/cjs/components/Text/Text.styles.js +7 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/listview.d.ts +6 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/listview.js +10 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +26 -2
- package/lib/cjs/styles/themes/next-gen/text.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/text.js +1 -0
- package/lib/cjs/styles/themes/next-gen/variants/listview.d.ts +20 -1
- package/lib/cjs/styles/themes/next-gen/variants/listview.js +26 -7
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +5 -1
- package/lib/cjs/styles/themes/next-gen/variants/text.js +6 -2
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +20 -1
- package/lib/components/ListView/ListView.js +10 -2
- package/lib/components/ListView/ListView.stories.js +6 -6
- package/lib/components/Loader/Loader.styles.js +1 -0
- package/lib/components/Text/Text.styles.js +7 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/listview.js +10 -3
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +3 -0
- package/lib/styles/themes/next-gen/text.js +1 -0
- package/lib/styles/themes/next-gen/variants/listview.js +26 -7
- package/lib/styles/themes/next-gen/variants/text.js +6 -2
- package/package.json +1 -1
|
@@ -154,7 +154,11 @@ var ListView = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
154
154
|
variant: "listView.container"
|
|
155
155
|
}, containerProps), loadingState === _loadingStates["default"].LOADING_MORE_PREPEND && (0, _react2.jsx)(_Loader["default"], {
|
|
156
156
|
variant: "loader.withinListView",
|
|
157
|
-
"aria-label": "Loading more..."
|
|
157
|
+
"aria-label": "Loading more...",
|
|
158
|
+
sx: {
|
|
159
|
+
paddingTop: 'md',
|
|
160
|
+
paddingBottom: 'md'
|
|
161
|
+
}
|
|
158
162
|
}), (0, _react2.jsx)(_virtualizer.Virtualizer, (0, _extends2["default"])({}, items ? gridProps : {
|
|
159
163
|
role: 'presentation'
|
|
160
164
|
}, {
|
|
@@ -196,7 +200,11 @@ var ListView = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
196
200
|
if (type === collectionTypes.LOADER) {
|
|
197
201
|
return (0, _react2.jsx)(_Loader["default"], {
|
|
198
202
|
variant: "loader.withinListView",
|
|
199
|
-
"aria-label": "Loading more..."
|
|
203
|
+
"aria-label": "Loading more...",
|
|
204
|
+
sx: {
|
|
205
|
+
paddingTop: 'md',
|
|
206
|
+
paddingBottom: 'md'
|
|
207
|
+
}
|
|
200
208
|
});
|
|
201
209
|
}
|
|
202
210
|
return null;
|
|
@@ -121,10 +121,7 @@ var ExpandableChildren = function ExpandableChildren() {
|
|
|
121
121
|
"aria-label": "Search",
|
|
122
122
|
placeholder: "Search"
|
|
123
123
|
}), (0, _react2.jsx)(_2.Text, {
|
|
124
|
-
|
|
125
|
-
mt: 'md',
|
|
126
|
-
fontWeight: '1'
|
|
127
|
-
}
|
|
124
|
+
variant: "listViewItemExpandedText"
|
|
128
125
|
}, "Lorem ipsum dolor sit amet consectetur. Viverra nulla nec velit sollicitudin sed nisi mi gravida. Maecenas vestibulum pretium dictum dictum tempus. Sit et rutrum hendrerit facilisi turpis tellus elementum. Egestas consectetur in ac id. Sit aliquam et ut pellentesque in at blandit sed. Sapien morbi cras eleifend lectus."));
|
|
129
126
|
};
|
|
130
127
|
var ExampleContent = function ExampleContent(contentProps) {
|
|
@@ -135,7 +132,7 @@ var ExampleContent = function ExampleContent(contentProps) {
|
|
|
135
132
|
sx: {
|
|
136
133
|
alignItems: 'center'
|
|
137
134
|
},
|
|
138
|
-
gap: "
|
|
135
|
+
gap: "lg"
|
|
139
136
|
}, (0, _react2.jsx)(_2.IconWrapper, {
|
|
140
137
|
icon: icon,
|
|
141
138
|
size: "sm",
|
|
@@ -145,7 +142,10 @@ var ExampleContent = function ExampleContent(contentProps) {
|
|
|
145
142
|
isCircle: true,
|
|
146
143
|
color: "cyan"
|
|
147
144
|
}), (0, _react2.jsx)(_2.Text, {
|
|
148
|
-
variant: "
|
|
145
|
+
variant: "listViewItemText",
|
|
146
|
+
sx: {
|
|
147
|
+
my: 'auto'
|
|
148
|
+
}
|
|
149
149
|
}, text));
|
|
150
150
|
};
|
|
151
151
|
var Controls = function Controls() {
|
|
@@ -73,6 +73,12 @@ export declare const text: {
|
|
|
73
73
|
wordWrap: wordWrapText;
|
|
74
74
|
wordBreak: wordBreak;
|
|
75
75
|
};
|
|
76
|
+
listViewItemExpandedText: {
|
|
77
|
+
mt: string;
|
|
78
|
+
fontWeight: number;
|
|
79
|
+
fontSize: string;
|
|
80
|
+
color: string;
|
|
81
|
+
};
|
|
76
82
|
listViewItemSubtext: {
|
|
77
83
|
textOverflow: string;
|
|
78
84
|
overflow: string;
|
|
@@ -147,6 +147,12 @@ var copyRightText = {
|
|
|
147
147
|
var attachmentTitle = _objectSpread(_objectSpread(_objectSpread({}, base), textEllipsis), {}, {
|
|
148
148
|
fontWeight: 2
|
|
149
149
|
});
|
|
150
|
+
var listViewItemExpandedText = {
|
|
151
|
+
mt: 'md',
|
|
152
|
+
fontWeight: 1,
|
|
153
|
+
fontSize: 'md',
|
|
154
|
+
color: 'text.primary'
|
|
155
|
+
};
|
|
150
156
|
var text = _objectSpread(_objectSpread(_objectSpread({
|
|
151
157
|
base: base,
|
|
152
158
|
bodyStrong: bodyStrong,
|
|
@@ -222,6 +228,7 @@ var text = _objectSpread(_objectSpread(_objectSpread({
|
|
|
222
228
|
fontWeight: 0,
|
|
223
229
|
color: 'text.secondary'
|
|
224
230
|
}, textEllipsis),
|
|
231
|
+
listViewItemExpandedText: listViewItemExpandedText,
|
|
225
232
|
listViewItemSubtext: _objectSpread(_objectSpread({}, listViewItemSubtext), textEllipsis),
|
|
226
233
|
listViewItemText: _objectSpread(_objectSpread({}, listViewItemText), textEllipsis),
|
|
227
234
|
modalTitle: _objectSpread(_objectSpread({}, wordWrap), {}, {
|
|
@@ -5,11 +5,12 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.listViewItem = exports.listView = exports.lisViewItemChart = void 0;
|
|
8
|
+
var _colors = require("../colors");
|
|
8
9
|
var listViewItem = {
|
|
9
10
|
styledListItem: {
|
|
10
11
|
'&.has-separator': {
|
|
11
12
|
borderBottom: '1px solid',
|
|
12
|
-
borderBottomColor: 'border.
|
|
13
|
+
borderBottomColor: 'border.attachment'
|
|
13
14
|
},
|
|
14
15
|
bg: 'backgroundBase',
|
|
15
16
|
'&.is-selected': {
|
|
@@ -35,13 +36,19 @@ var listViewItem = {
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
expandIcon: {
|
|
38
|
-
color: 'gray-
|
|
39
|
+
color: 'gray-100',
|
|
40
|
+
fill: "".concat(_colors.colors.secondary, " !important")
|
|
41
|
+
},
|
|
42
|
+
expandableRow: {
|
|
43
|
+
'&.has-separator': {
|
|
44
|
+
borderBottomColor: 'border.attachment'
|
|
45
|
+
}
|
|
39
46
|
}
|
|
40
47
|
};
|
|
41
48
|
exports.listViewItem = listViewItem;
|
|
42
49
|
var listView = {
|
|
43
50
|
container: {
|
|
44
|
-
borderColor: 'border.
|
|
51
|
+
borderColor: 'border.attachment'
|
|
45
52
|
}
|
|
46
53
|
};
|
|
47
54
|
exports.listView = listView;
|
|
@@ -1912,6 +1912,7 @@ declare const _default: {
|
|
|
1912
1912
|
xl: string;
|
|
1913
1913
|
};
|
|
1914
1914
|
xs: string;
|
|
1915
|
+
tiny: string;
|
|
1915
1916
|
sm: string;
|
|
1916
1917
|
md: string;
|
|
1917
1918
|
lg: string;
|
|
@@ -2085,7 +2086,11 @@ declare const _default: {
|
|
|
2085
2086
|
color: string;
|
|
2086
2087
|
fontWeight: number;
|
|
2087
2088
|
lineHeight: string;
|
|
2088
|
-
|
|
2089
|
+
};
|
|
2090
|
+
listViewItemExpandedText: {
|
|
2091
|
+
mt: string;
|
|
2092
|
+
fontWeight: number;
|
|
2093
|
+
lineHeight: string;
|
|
2089
2094
|
};
|
|
2090
2095
|
listViewItemSubtext: {
|
|
2091
2096
|
fontSize: string;
|
|
@@ -4382,6 +4387,9 @@ declare const _default: {
|
|
|
4382
4387
|
iconContainer: {
|
|
4383
4388
|
ml: string;
|
|
4384
4389
|
};
|
|
4390
|
+
iconWrapper: {
|
|
4391
|
+
ml: string;
|
|
4392
|
+
};
|
|
4385
4393
|
imageWrapper: {
|
|
4386
4394
|
ml: string;
|
|
4387
4395
|
};
|
|
@@ -4423,6 +4431,7 @@ declare const _default: {
|
|
|
4423
4431
|
};
|
|
4424
4432
|
expandableStyledListItem: {
|
|
4425
4433
|
px: string;
|
|
4434
|
+
py: number;
|
|
4426
4435
|
bg: string;
|
|
4427
4436
|
'&.is-first-item': {
|
|
4428
4437
|
borderTopLeftRadius: string;
|
|
@@ -4460,26 +4469,41 @@ declare const _default: {
|
|
|
4460
4469
|
};
|
|
4461
4470
|
expandableRow: {
|
|
4462
4471
|
'&.has-separator': {
|
|
4463
|
-
borderBottom: string;
|
|
4464
4472
|
borderBottomColor: string;
|
|
4465
4473
|
};
|
|
4466
4474
|
'&.has-separator.is-last-row': {
|
|
4467
4475
|
border: string;
|
|
4468
4476
|
};
|
|
4469
4477
|
};
|
|
4478
|
+
editIcon: {
|
|
4479
|
+
width: string;
|
|
4480
|
+
height: string;
|
|
4481
|
+
};
|
|
4482
|
+
menuIcon: {
|
|
4483
|
+
width: string;
|
|
4484
|
+
height: string;
|
|
4485
|
+
};
|
|
4486
|
+
loaderContainer: {
|
|
4487
|
+
pt: string;
|
|
4488
|
+
pb: string;
|
|
4489
|
+
};
|
|
4470
4490
|
};
|
|
4471
4491
|
lisViewItemChart: {
|
|
4472
4492
|
title: {
|
|
4473
4493
|
color: string;
|
|
4494
|
+
fontSize: string;
|
|
4474
4495
|
};
|
|
4475
4496
|
count: {
|
|
4476
4497
|
color: string;
|
|
4498
|
+
fontSize: string;
|
|
4477
4499
|
};
|
|
4478
4500
|
countLabel: {
|
|
4479
4501
|
color: string;
|
|
4502
|
+
fontSize: string;
|
|
4480
4503
|
};
|
|
4481
4504
|
chartLabel: {
|
|
4482
4505
|
color: string;
|
|
4506
|
+
fontSize: string;
|
|
4483
4507
|
};
|
|
4484
4508
|
trend: {
|
|
4485
4509
|
color: string;
|
|
@@ -7,6 +7,9 @@ export declare const listViewItem: {
|
|
|
7
7
|
iconContainer: {
|
|
8
8
|
ml: string;
|
|
9
9
|
};
|
|
10
|
+
iconWrapper: {
|
|
11
|
+
ml: string;
|
|
12
|
+
};
|
|
10
13
|
imageWrapper: {
|
|
11
14
|
ml: string;
|
|
12
15
|
};
|
|
@@ -48,6 +51,7 @@ export declare const listViewItem: {
|
|
|
48
51
|
};
|
|
49
52
|
expandableStyledListItem: {
|
|
50
53
|
px: string;
|
|
54
|
+
py: number;
|
|
51
55
|
bg: string;
|
|
52
56
|
'&.is-first-item': {
|
|
53
57
|
borderTopLeftRadius: string;
|
|
@@ -85,13 +89,24 @@ export declare const listViewItem: {
|
|
|
85
89
|
};
|
|
86
90
|
expandableRow: {
|
|
87
91
|
'&.has-separator': {
|
|
88
|
-
borderBottom: string;
|
|
89
92
|
borderBottomColor: string;
|
|
90
93
|
};
|
|
91
94
|
'&.has-separator.is-last-row': {
|
|
92
95
|
border: string;
|
|
93
96
|
};
|
|
94
97
|
};
|
|
98
|
+
editIcon: {
|
|
99
|
+
width: string;
|
|
100
|
+
height: string;
|
|
101
|
+
};
|
|
102
|
+
menuIcon: {
|
|
103
|
+
width: string;
|
|
104
|
+
height: string;
|
|
105
|
+
};
|
|
106
|
+
loaderContainer: {
|
|
107
|
+
pt: string;
|
|
108
|
+
pb: string;
|
|
109
|
+
};
|
|
95
110
|
};
|
|
96
111
|
export declare const listView: {
|
|
97
112
|
container: {
|
|
@@ -103,15 +118,19 @@ export declare const listView: {
|
|
|
103
118
|
export declare const lisViewItemChart: {
|
|
104
119
|
title: {
|
|
105
120
|
color: string;
|
|
121
|
+
fontSize: string;
|
|
106
122
|
};
|
|
107
123
|
count: {
|
|
108
124
|
color: string;
|
|
125
|
+
fontSize: string;
|
|
109
126
|
};
|
|
110
127
|
countLabel: {
|
|
111
128
|
color: string;
|
|
129
|
+
fontSize: string;
|
|
112
130
|
};
|
|
113
131
|
chartLabel: {
|
|
114
132
|
color: string;
|
|
133
|
+
fontSize: string;
|
|
115
134
|
};
|
|
116
135
|
trend: {
|
|
117
136
|
color: string;
|
|
@@ -16,6 +16,9 @@ var listViewItem = {
|
|
|
16
16
|
iconContainer: {
|
|
17
17
|
ml: '0'
|
|
18
18
|
},
|
|
19
|
+
iconWrapper: {
|
|
20
|
+
ml: 'lg'
|
|
21
|
+
},
|
|
19
22
|
imageWrapper: {
|
|
20
23
|
ml: 'md'
|
|
21
24
|
},
|
|
@@ -57,6 +60,7 @@ var listViewItem = {
|
|
|
57
60
|
},
|
|
58
61
|
expandableStyledListItem: {
|
|
59
62
|
px: 'lg',
|
|
63
|
+
py: 0,
|
|
60
64
|
bg: 'backgroundBase',
|
|
61
65
|
'&.is-first-item': {
|
|
62
66
|
borderTopLeftRadius: borderRadius,
|
|
@@ -94,12 +98,23 @@ var listViewItem = {
|
|
|
94
98
|
},
|
|
95
99
|
expandableRow: {
|
|
96
100
|
'&.has-separator': {
|
|
97
|
-
|
|
98
|
-
borderBottomColor: 'border.base'
|
|
101
|
+
borderBottomColor: 'gray-200'
|
|
99
102
|
},
|
|
100
103
|
'&.has-separator.is-last-row': {
|
|
101
104
|
border: 'none'
|
|
102
105
|
}
|
|
106
|
+
},
|
|
107
|
+
editIcon: {
|
|
108
|
+
width: '1.5rem !important',
|
|
109
|
+
height: '1.5rem !important'
|
|
110
|
+
},
|
|
111
|
+
menuIcon: {
|
|
112
|
+
width: '1.5rem !important',
|
|
113
|
+
height: '1.5rem !important'
|
|
114
|
+
},
|
|
115
|
+
loaderContainer: {
|
|
116
|
+
pt: 'md',
|
|
117
|
+
pb: 'md'
|
|
103
118
|
}
|
|
104
119
|
};
|
|
105
120
|
exports.listViewItem = listViewItem;
|
|
@@ -113,19 +128,23 @@ var listView = {
|
|
|
113
128
|
exports.listView = listView;
|
|
114
129
|
var lisViewItemChart = {
|
|
115
130
|
title: {
|
|
116
|
-
color: 'gray-
|
|
131
|
+
color: 'gray-600',
|
|
132
|
+
fontSize: 'tiny'
|
|
117
133
|
},
|
|
118
134
|
count: {
|
|
119
|
-
color: 'gray-
|
|
135
|
+
color: 'gray-600',
|
|
136
|
+
fontSize: 'xl'
|
|
120
137
|
},
|
|
121
138
|
countLabel: {
|
|
122
|
-
color: 'gray-
|
|
139
|
+
color: 'gray-600',
|
|
140
|
+
fontSize: 'tiny'
|
|
123
141
|
},
|
|
124
142
|
chartLabel: {
|
|
125
|
-
color: 'gray-
|
|
143
|
+
color: 'gray-600',
|
|
144
|
+
fontSize: 'tiny'
|
|
126
145
|
},
|
|
127
146
|
trend: {
|
|
128
|
-
color: 'gray-
|
|
147
|
+
color: 'gray-600'
|
|
129
148
|
},
|
|
130
149
|
chartButton: {
|
|
131
150
|
color: 'gray-900'
|
|
@@ -151,7 +151,11 @@ export declare const text: {
|
|
|
151
151
|
color: string;
|
|
152
152
|
fontWeight: number;
|
|
153
153
|
lineHeight: string;
|
|
154
|
-
|
|
154
|
+
};
|
|
155
|
+
listViewItemExpandedText: {
|
|
156
|
+
mt: string;
|
|
157
|
+
fontWeight: number;
|
|
158
|
+
lineHeight: string;
|
|
155
159
|
};
|
|
156
160
|
listViewItemSubtext: {
|
|
157
161
|
fontSize: string;
|
|
@@ -141,8 +141,12 @@ var text = _objectSpread(_objectSpread({
|
|
|
141
141
|
fontFamily: 'standard',
|
|
142
142
|
color: 'text.primary',
|
|
143
143
|
fontWeight: 2,
|
|
144
|
-
lineHeight: '
|
|
145
|
-
|
|
144
|
+
lineHeight: 'sm'
|
|
145
|
+
},
|
|
146
|
+
listViewItemExpandedText: {
|
|
147
|
+
mt: 'md',
|
|
148
|
+
fontWeight: 0,
|
|
149
|
+
lineHeight: 'body'
|
|
146
150
|
},
|
|
147
151
|
listViewItemSubtext: {
|
|
148
152
|
fontSize: 'md',
|
|
@@ -810,6 +810,9 @@ declare const _default: {
|
|
|
810
810
|
iconContainer: {
|
|
811
811
|
ml: string;
|
|
812
812
|
};
|
|
813
|
+
iconWrapper: {
|
|
814
|
+
ml: string;
|
|
815
|
+
};
|
|
813
816
|
imageWrapper: {
|
|
814
817
|
ml: string;
|
|
815
818
|
};
|
|
@@ -851,6 +854,7 @@ declare const _default: {
|
|
|
851
854
|
};
|
|
852
855
|
expandableStyledListItem: {
|
|
853
856
|
px: string;
|
|
857
|
+
py: number;
|
|
854
858
|
bg: string;
|
|
855
859
|
'&.is-first-item': {
|
|
856
860
|
borderTopLeftRadius: string;
|
|
@@ -888,26 +892,41 @@ declare const _default: {
|
|
|
888
892
|
};
|
|
889
893
|
expandableRow: {
|
|
890
894
|
'&.has-separator': {
|
|
891
|
-
borderBottom: string;
|
|
892
895
|
borderBottomColor: string;
|
|
893
896
|
};
|
|
894
897
|
'&.has-separator.is-last-row': {
|
|
895
898
|
border: string;
|
|
896
899
|
};
|
|
897
900
|
};
|
|
901
|
+
editIcon: {
|
|
902
|
+
width: string;
|
|
903
|
+
height: string;
|
|
904
|
+
};
|
|
905
|
+
menuIcon: {
|
|
906
|
+
width: string;
|
|
907
|
+
height: string;
|
|
908
|
+
};
|
|
909
|
+
loaderContainer: {
|
|
910
|
+
pt: string;
|
|
911
|
+
pb: string;
|
|
912
|
+
};
|
|
898
913
|
};
|
|
899
914
|
lisViewItemChart: {
|
|
900
915
|
title: {
|
|
901
916
|
color: string;
|
|
917
|
+
fontSize: string;
|
|
902
918
|
};
|
|
903
919
|
count: {
|
|
904
920
|
color: string;
|
|
921
|
+
fontSize: string;
|
|
905
922
|
};
|
|
906
923
|
countLabel: {
|
|
907
924
|
color: string;
|
|
925
|
+
fontSize: string;
|
|
908
926
|
};
|
|
909
927
|
chartLabel: {
|
|
910
928
|
color: string;
|
|
929
|
+
fontSize: string;
|
|
911
930
|
};
|
|
912
931
|
trend: {
|
|
913
932
|
color: string;
|
|
@@ -141,7 +141,11 @@ var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
141
141
|
variant: "listView.container"
|
|
142
142
|
}, containerProps), loadingState === loadingStates.LOADING_MORE_PREPEND && ___EmotionJSX(Loader, {
|
|
143
143
|
variant: "loader.withinListView",
|
|
144
|
-
"aria-label": "Loading more..."
|
|
144
|
+
"aria-label": "Loading more...",
|
|
145
|
+
sx: {
|
|
146
|
+
paddingTop: 'md',
|
|
147
|
+
paddingBottom: 'md'
|
|
148
|
+
}
|
|
145
149
|
}), ___EmotionJSX(Virtualizer, _extends({}, items ? gridProps : {
|
|
146
150
|
role: 'presentation'
|
|
147
151
|
}, {
|
|
@@ -183,7 +187,11 @@ var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
183
187
|
if (type === collectionTypes.LOADER) {
|
|
184
188
|
return ___EmotionJSX(Loader, {
|
|
185
189
|
variant: "loader.withinListView",
|
|
186
|
-
"aria-label": "Loading more..."
|
|
190
|
+
"aria-label": "Loading more...",
|
|
191
|
+
sx: {
|
|
192
|
+
paddingTop: 'md',
|
|
193
|
+
paddingBottom: 'md'
|
|
194
|
+
}
|
|
187
195
|
});
|
|
188
196
|
}
|
|
189
197
|
return null;
|
|
@@ -108,10 +108,7 @@ var ExpandableChildren = function ExpandableChildren() {
|
|
|
108
108
|
"aria-label": "Search",
|
|
109
109
|
placeholder: "Search"
|
|
110
110
|
}), ___EmotionJSX(Text, {
|
|
111
|
-
|
|
112
|
-
mt: 'md',
|
|
113
|
-
fontWeight: '1'
|
|
114
|
-
}
|
|
111
|
+
variant: "listViewItemExpandedText"
|
|
115
112
|
}, "Lorem ipsum dolor sit amet consectetur. Viverra nulla nec velit sollicitudin sed nisi mi gravida. Maecenas vestibulum pretium dictum dictum tempus. Sit et rutrum hendrerit facilisi turpis tellus elementum. Egestas consectetur in ac id. Sit aliquam et ut pellentesque in at blandit sed. Sapien morbi cras eleifend lectus."));
|
|
116
113
|
};
|
|
117
114
|
var ExampleContent = function ExampleContent(contentProps) {
|
|
@@ -122,7 +119,7 @@ var ExampleContent = function ExampleContent(contentProps) {
|
|
|
122
119
|
sx: {
|
|
123
120
|
alignItems: 'center'
|
|
124
121
|
},
|
|
125
|
-
gap: "
|
|
122
|
+
gap: "lg"
|
|
126
123
|
}, ___EmotionJSX(IconWrapper, {
|
|
127
124
|
icon: icon,
|
|
128
125
|
size: "sm",
|
|
@@ -132,7 +129,10 @@ var ExampleContent = function ExampleContent(contentProps) {
|
|
|
132
129
|
isCircle: true,
|
|
133
130
|
color: "cyan"
|
|
134
131
|
}), ___EmotionJSX(Text, {
|
|
135
|
-
variant: "
|
|
132
|
+
variant: "listViewItemText",
|
|
133
|
+
sx: {
|
|
134
|
+
my: 'auto'
|
|
135
|
+
}
|
|
136
136
|
}, text));
|
|
137
137
|
};
|
|
138
138
|
var Controls = function Controls() {
|
|
@@ -138,6 +138,12 @@ var copyRightText = {
|
|
|
138
138
|
var attachmentTitle = _objectSpread(_objectSpread(_objectSpread({}, base), textEllipsis), {}, {
|
|
139
139
|
fontWeight: 2
|
|
140
140
|
});
|
|
141
|
+
var listViewItemExpandedText = {
|
|
142
|
+
mt: 'md',
|
|
143
|
+
fontWeight: 1,
|
|
144
|
+
fontSize: 'md',
|
|
145
|
+
color: 'text.primary'
|
|
146
|
+
};
|
|
141
147
|
export var text = _objectSpread(_objectSpread(_objectSpread({
|
|
142
148
|
base: base,
|
|
143
149
|
bodyStrong: bodyStrong,
|
|
@@ -213,6 +219,7 @@ export var text = _objectSpread(_objectSpread(_objectSpread({
|
|
|
213
219
|
fontWeight: 0,
|
|
214
220
|
color: 'text.secondary'
|
|
215
221
|
}, textEllipsis),
|
|
222
|
+
listViewItemExpandedText: listViewItemExpandedText,
|
|
216
223
|
listViewItemSubtext: _objectSpread(_objectSpread({}, listViewItemSubtext), textEllipsis),
|
|
217
224
|
listViewItemText: _objectSpread(_objectSpread({}, listViewItemText), textEllipsis),
|
|
218
225
|
modalTitle: _objectSpread(_objectSpread({}, wordWrap), {}, {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { colors } from '../colors';
|
|
1
2
|
export var listViewItem = {
|
|
2
3
|
styledListItem: {
|
|
3
4
|
'&.has-separator': {
|
|
4
5
|
borderBottom: '1px solid',
|
|
5
|
-
borderBottomColor: 'border.
|
|
6
|
+
borderBottomColor: 'border.attachment'
|
|
6
7
|
},
|
|
7
8
|
bg: 'backgroundBase',
|
|
8
9
|
'&.is-selected': {
|
|
@@ -28,12 +29,18 @@ export var listViewItem = {
|
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
expandIcon: {
|
|
31
|
-
color: 'gray-
|
|
32
|
+
color: 'gray-100',
|
|
33
|
+
fill: "".concat(colors.secondary, " !important")
|
|
34
|
+
},
|
|
35
|
+
expandableRow: {
|
|
36
|
+
'&.has-separator': {
|
|
37
|
+
borderBottomColor: 'border.attachment'
|
|
38
|
+
}
|
|
32
39
|
}
|
|
33
40
|
};
|
|
34
41
|
export var listView = {
|
|
35
42
|
container: {
|
|
36
|
-
borderColor: 'border.
|
|
43
|
+
borderColor: 'border.attachment'
|
|
37
44
|
}
|
|
38
45
|
};
|
|
39
46
|
export var lisViewItemChart = {
|
|
@@ -7,6 +7,9 @@ export var listViewItem = {
|
|
|
7
7
|
iconContainer: {
|
|
8
8
|
ml: '0'
|
|
9
9
|
},
|
|
10
|
+
iconWrapper: {
|
|
11
|
+
ml: 'lg'
|
|
12
|
+
},
|
|
10
13
|
imageWrapper: {
|
|
11
14
|
ml: 'md'
|
|
12
15
|
},
|
|
@@ -48,6 +51,7 @@ export var listViewItem = {
|
|
|
48
51
|
},
|
|
49
52
|
expandableStyledListItem: {
|
|
50
53
|
px: 'lg',
|
|
54
|
+
py: 0,
|
|
51
55
|
bg: 'backgroundBase',
|
|
52
56
|
'&.is-first-item': {
|
|
53
57
|
borderTopLeftRadius: borderRadius,
|
|
@@ -85,12 +89,23 @@ export var listViewItem = {
|
|
|
85
89
|
},
|
|
86
90
|
expandableRow: {
|
|
87
91
|
'&.has-separator': {
|
|
88
|
-
|
|
89
|
-
borderBottomColor: 'border.base'
|
|
92
|
+
borderBottomColor: 'gray-200'
|
|
90
93
|
},
|
|
91
94
|
'&.has-separator.is-last-row': {
|
|
92
95
|
border: 'none'
|
|
93
96
|
}
|
|
97
|
+
},
|
|
98
|
+
editIcon: {
|
|
99
|
+
width: '1.5rem !important',
|
|
100
|
+
height: '1.5rem !important'
|
|
101
|
+
},
|
|
102
|
+
menuIcon: {
|
|
103
|
+
width: '1.5rem !important',
|
|
104
|
+
height: '1.5rem !important'
|
|
105
|
+
},
|
|
106
|
+
loaderContainer: {
|
|
107
|
+
pt: 'md',
|
|
108
|
+
pb: 'md'
|
|
94
109
|
}
|
|
95
110
|
};
|
|
96
111
|
export var listView = {
|
|
@@ -102,19 +117,23 @@ export var listView = {
|
|
|
102
117
|
};
|
|
103
118
|
export var lisViewItemChart = {
|
|
104
119
|
title: {
|
|
105
|
-
color: 'gray-
|
|
120
|
+
color: 'gray-600',
|
|
121
|
+
fontSize: 'tiny'
|
|
106
122
|
},
|
|
107
123
|
count: {
|
|
108
|
-
color: 'gray-
|
|
124
|
+
color: 'gray-600',
|
|
125
|
+
fontSize: 'xl'
|
|
109
126
|
},
|
|
110
127
|
countLabel: {
|
|
111
|
-
color: 'gray-
|
|
128
|
+
color: 'gray-600',
|
|
129
|
+
fontSize: 'tiny'
|
|
112
130
|
},
|
|
113
131
|
chartLabel: {
|
|
114
|
-
color: 'gray-
|
|
132
|
+
color: 'gray-600',
|
|
133
|
+
fontSize: 'tiny'
|
|
115
134
|
},
|
|
116
135
|
trend: {
|
|
117
|
-
color: 'gray-
|
|
136
|
+
color: 'gray-600'
|
|
118
137
|
},
|
|
119
138
|
chartButton: {
|
|
120
139
|
color: 'gray-900'
|
|
@@ -134,8 +134,12 @@ export var text = _objectSpread(_objectSpread({
|
|
|
134
134
|
fontFamily: 'standard',
|
|
135
135
|
color: 'text.primary',
|
|
136
136
|
fontWeight: 2,
|
|
137
|
-
lineHeight: '
|
|
138
|
-
|
|
137
|
+
lineHeight: 'sm'
|
|
138
|
+
},
|
|
139
|
+
listViewItemExpandedText: {
|
|
140
|
+
mt: 'md',
|
|
141
|
+
fontWeight: 0,
|
|
142
|
+
lineHeight: 'body'
|
|
139
143
|
},
|
|
140
144
|
listViewItemSubtext: {
|
|
141
145
|
fontSize: 'md',
|