@pingux/astro 1.4.1 → 1.5.0-alpha.1
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 +12 -13
- package/lib/cjs/components/ListView/ListView.test.js +8 -8
- package/lib/cjs/components/ListViewItem/ListViewItem.js +0 -2
- package/lib/cjs/components/MultiselectFilter/MultiselectFilter.js +143 -0
- package/lib/cjs/components/MultiselectFilter/MultiselectFilter.stories.js +283 -0
- package/lib/cjs/components/MultiselectFilter/MultiselectFilter.test.js +83 -0
- package/lib/cjs/components/MultiselectFilter/index.js +18 -0
- package/lib/cjs/components/MultiselectFilterItem/MultiselectFilterItem.js +55 -0
- package/lib/cjs/components/MultiselectFilterItem/MultiselectFilterItem.test.js +53 -0
- package/lib/cjs/components/MultiselectFilterItem/index.js +18 -0
- package/lib/cjs/components/MultiselectListContainer/MultiselectBadge.js +47 -0
- package/lib/cjs/components/MultiselectListContainer/MultiselectBadge.test.js +48 -0
- package/lib/cjs/components/MultiselectListContainer/MultiselectListContainer.js +157 -0
- package/lib/cjs/components/MultiselectListContainer/MultiselectListContainer.test.js +112 -0
- package/lib/cjs/components/MultiselectListContainer/index.js +18 -0
- package/lib/cjs/components/PopoverMenu/PopoverMenu.js +7 -2
- package/lib/cjs/components/Tab/Tab.js +22 -15
- package/lib/cjs/components/TabPicker/TabPicker.js +239 -0
- package/lib/cjs/components/TabPicker/index.js +18 -0
- package/lib/cjs/components/Tabs/Tabs.js +46 -13
- package/lib/cjs/components/Tabs/Tabs.stories.js +32 -2
- package/lib/cjs/components/Tabs/Tabs.test.js +183 -32
- package/lib/cjs/index.js +98 -32
- package/lib/cjs/styles/variants/buttons.js +38 -1
- package/lib/cjs/styles/variants/multiselectListContainer.js +73 -0
- package/lib/cjs/styles/variants/tabs.js +5 -1
- package/lib/cjs/styles/variants/text.js +29 -2
- package/lib/cjs/styles/variants/variants.js +3 -0
- package/lib/components/ListView/ListView.js +12 -13
- package/lib/components/ListView/ListView.test.js +8 -8
- package/lib/components/ListViewItem/ListViewItem.js +0 -2
- package/lib/components/MultiselectFilter/MultiselectFilter.js +118 -0
- package/lib/components/MultiselectFilter/MultiselectFilter.stories.js +251 -0
- package/lib/components/MultiselectFilter/MultiselectFilter.test.js +69 -0
- package/lib/components/MultiselectFilter/index.js +1 -0
- package/lib/components/MultiselectFilterItem/MultiselectFilterItem.js +36 -0
- package/lib/components/MultiselectFilterItem/MultiselectFilterItem.test.js +37 -0
- package/lib/components/MultiselectFilterItem/index.js +1 -0
- package/lib/components/MultiselectListContainer/MultiselectBadge.js +31 -0
- package/lib/components/MultiselectListContainer/MultiselectBadge.test.js +34 -0
- package/lib/components/MultiselectListContainer/MultiselectListContainer.js +123 -0
- package/lib/components/MultiselectListContainer/MultiselectListContainer.test.js +81 -0
- package/lib/components/MultiselectListContainer/index.js +1 -0
- package/lib/components/PopoverMenu/PopoverMenu.js +7 -2
- package/lib/components/Tab/Tab.js +14 -8
- package/lib/components/TabPicker/TabPicker.js +210 -0
- package/lib/components/TabPicker/index.js +1 -0
- package/lib/components/Tabs/Tabs.js +44 -11
- package/lib/components/Tabs/Tabs.stories.js +27 -0
- package/lib/components/Tabs/Tabs.test.js +165 -32
- package/lib/index.js +6 -0
- package/lib/styles/variants/buttons.js +38 -1
- package/lib/styles/variants/multiselectListContainer.js +63 -0
- package/lib/styles/variants/tabs.js +5 -1
- package/lib/styles/variants/text.js +29 -2
- package/lib/styles/variants/variants.js +2 -0
- package/package.json +1 -1
package/lib/cjs/index.js
CHANGED
@@ -4,7 +4,7 @@ var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
4
4
|
|
5
5
|
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
6
6
|
|
7
|
-
var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _context16, _context17, _context18, _context19, _context20, _context21, _context22, _context23, _context24, _context25, _context26, _context27, _context28, _context29, _context30, _context31, _context32, _context33, _context34, _context35, _context36, _context37, _context38, _context39, _context40, _context41, _context42, _context43, _context44, _context45, _context46, _context47, _context48, _context49, _context50, _context51, _context52, _context53, _context54, _context55, _context56, _context57, _context58, _context59, _context60, _context61, _context62, _context63;
|
7
|
+
var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _context16, _context17, _context18, _context19, _context20, _context21, _context22, _context23, _context24, _context25, _context26, _context27, _context28, _context29, _context30, _context31, _context32, _context33, _context34, _context35, _context36, _context37, _context38, _context39, _context40, _context41, _context42, _context43, _context44, _context45, _context46, _context47, _context48, _context49, _context50, _context51, _context52, _context53, _context54, _context55, _context56, _context57, _context58, _context59, _context60, _context61, _context62, _context63, _context64, _context65, _context66;
|
8
8
|
|
9
9
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
10
10
|
|
@@ -56,6 +56,9 @@ var _exportNames = {
|
|
56
56
|
Menu: true,
|
57
57
|
Messages: true,
|
58
58
|
Modal: true,
|
59
|
+
MultiselectFilter: true,
|
60
|
+
MultiselectFilterItem: true,
|
61
|
+
MultiselectListContainer: true,
|
59
62
|
NavBar: true,
|
60
63
|
NavBarSection: true,
|
61
64
|
MultivaluesField: true,
|
@@ -370,6 +373,27 @@ _Object$defineProperty(exports, "Modal", {
|
|
370
373
|
}
|
371
374
|
});
|
372
375
|
|
376
|
+
_Object$defineProperty(exports, "MultiselectFilter", {
|
377
|
+
enumerable: true,
|
378
|
+
get: function get() {
|
379
|
+
return _MultiselectFilter["default"];
|
380
|
+
}
|
381
|
+
});
|
382
|
+
|
383
|
+
_Object$defineProperty(exports, "MultiselectFilterItem", {
|
384
|
+
enumerable: true,
|
385
|
+
get: function get() {
|
386
|
+
return _MultiselectFilterItem["default"];
|
387
|
+
}
|
388
|
+
});
|
389
|
+
|
390
|
+
_Object$defineProperty(exports, "MultiselectListContainer", {
|
391
|
+
enumerable: true,
|
392
|
+
get: function get() {
|
393
|
+
return _MultiselectListContainer["default"];
|
394
|
+
}
|
395
|
+
});
|
396
|
+
|
373
397
|
_Object$defineProperty(exports, "NavBar", {
|
374
398
|
enumerable: true,
|
375
399
|
get: function get() {
|
@@ -1105,9 +1129,51 @@ _forEachInstanceProperty(_context32 = _Object$keys(_Modal)).call(_context32, fun
|
|
1105
1129
|
});
|
1106
1130
|
});
|
1107
1131
|
|
1132
|
+
var _MultiselectFilter = _interopRequireWildcard(require("./components/MultiselectFilter"));
|
1133
|
+
|
1134
|
+
_forEachInstanceProperty(_context33 = _Object$keys(_MultiselectFilter)).call(_context33, function (key) {
|
1135
|
+
if (key === "default" || key === "__esModule") return;
|
1136
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1137
|
+
|
1138
|
+
_Object$defineProperty(exports, key, {
|
1139
|
+
enumerable: true,
|
1140
|
+
get: function get() {
|
1141
|
+
return _MultiselectFilter[key];
|
1142
|
+
}
|
1143
|
+
});
|
1144
|
+
});
|
1145
|
+
|
1146
|
+
var _MultiselectFilterItem = _interopRequireWildcard(require("./components/MultiselectFilterItem"));
|
1147
|
+
|
1148
|
+
_forEachInstanceProperty(_context34 = _Object$keys(_MultiselectFilterItem)).call(_context34, function (key) {
|
1149
|
+
if (key === "default" || key === "__esModule") return;
|
1150
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1151
|
+
|
1152
|
+
_Object$defineProperty(exports, key, {
|
1153
|
+
enumerable: true,
|
1154
|
+
get: function get() {
|
1155
|
+
return _MultiselectFilterItem[key];
|
1156
|
+
}
|
1157
|
+
});
|
1158
|
+
});
|
1159
|
+
|
1160
|
+
var _MultiselectListContainer = _interopRequireWildcard(require("./components/MultiselectListContainer"));
|
1161
|
+
|
1162
|
+
_forEachInstanceProperty(_context35 = _Object$keys(_MultiselectListContainer)).call(_context35, function (key) {
|
1163
|
+
if (key === "default" || key === "__esModule") return;
|
1164
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1165
|
+
|
1166
|
+
_Object$defineProperty(exports, key, {
|
1167
|
+
enumerable: true,
|
1168
|
+
get: function get() {
|
1169
|
+
return _MultiselectListContainer[key];
|
1170
|
+
}
|
1171
|
+
});
|
1172
|
+
});
|
1173
|
+
|
1108
1174
|
var _NavBar = _interopRequireWildcard(require("./components/NavBar"));
|
1109
1175
|
|
1110
|
-
_forEachInstanceProperty(
|
1176
|
+
_forEachInstanceProperty(_context36 = _Object$keys(_NavBar)).call(_context36, function (key) {
|
1111
1177
|
if (key === "default" || key === "__esModule") return;
|
1112
1178
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1113
1179
|
|
@@ -1121,7 +1187,7 @@ _forEachInstanceProperty(_context33 = _Object$keys(_NavBar)).call(_context33, fu
|
|
1121
1187
|
|
1122
1188
|
var _NavBarSection = _interopRequireWildcard(require("./components/NavBarSection"));
|
1123
1189
|
|
1124
|
-
_forEachInstanceProperty(
|
1190
|
+
_forEachInstanceProperty(_context37 = _Object$keys(_NavBarSection)).call(_context37, function (key) {
|
1125
1191
|
if (key === "default" || key === "__esModule") return;
|
1126
1192
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1127
1193
|
|
@@ -1137,7 +1203,7 @@ var _MultivaluesField = _interopRequireDefault(require("./components/Multivalues
|
|
1137
1203
|
|
1138
1204
|
var _OverlayPanel = _interopRequireWildcard(require("./components/OverlayPanel"));
|
1139
1205
|
|
1140
|
-
_forEachInstanceProperty(
|
1206
|
+
_forEachInstanceProperty(_context38 = _Object$keys(_OverlayPanel)).call(_context38, function (key) {
|
1141
1207
|
if (key === "default" || key === "__esModule") return;
|
1142
1208
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1143
1209
|
|
@@ -1151,7 +1217,7 @@ _forEachInstanceProperty(_context35 = _Object$keys(_OverlayPanel)).call(_context
|
|
1151
1217
|
|
1152
1218
|
var _PageHeader = _interopRequireWildcard(require("./components/PageHeader"));
|
1153
1219
|
|
1154
|
-
_forEachInstanceProperty(
|
1220
|
+
_forEachInstanceProperty(_context39 = _Object$keys(_PageHeader)).call(_context39, function (key) {
|
1155
1221
|
if (key === "default" || key === "__esModule") return;
|
1156
1222
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1157
1223
|
|
@@ -1165,7 +1231,7 @@ _forEachInstanceProperty(_context36 = _Object$keys(_PageHeader)).call(_context36
|
|
1165
1231
|
|
1166
1232
|
var _PasswordField = _interopRequireWildcard(require("./components/PasswordField"));
|
1167
1233
|
|
1168
|
-
_forEachInstanceProperty(
|
1234
|
+
_forEachInstanceProperty(_context40 = _Object$keys(_PasswordField)).call(_context40, function (key) {
|
1169
1235
|
if (key === "default" || key === "__esModule") return;
|
1170
1236
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1171
1237
|
|
@@ -1179,7 +1245,7 @@ _forEachInstanceProperty(_context37 = _Object$keys(_PasswordField)).call(_contex
|
|
1179
1245
|
|
1180
1246
|
var _PopoverContainer = _interopRequireWildcard(require("./components/PopoverContainer"));
|
1181
1247
|
|
1182
|
-
_forEachInstanceProperty(
|
1248
|
+
_forEachInstanceProperty(_context41 = _Object$keys(_PopoverContainer)).call(_context41, function (key) {
|
1183
1249
|
if (key === "default" || key === "__esModule") return;
|
1184
1250
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1185
1251
|
|
@@ -1195,7 +1261,7 @@ var _PopoverMenu = _interopRequireDefault(require("./components/PopoverMenu"));
|
|
1195
1261
|
|
1196
1262
|
var _Radio = _interopRequireWildcard(require("./components/Radio"));
|
1197
1263
|
|
1198
|
-
_forEachInstanceProperty(
|
1264
|
+
_forEachInstanceProperty(_context42 = _Object$keys(_Radio)).call(_context42, function (key) {
|
1199
1265
|
if (key === "default" || key === "__esModule") return;
|
1200
1266
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1201
1267
|
|
@@ -1209,7 +1275,7 @@ _forEachInstanceProperty(_context39 = _Object$keys(_Radio)).call(_context39, fun
|
|
1209
1275
|
|
1210
1276
|
var _RadioField = _interopRequireWildcard(require("./components/RadioField"));
|
1211
1277
|
|
1212
|
-
_forEachInstanceProperty(
|
1278
|
+
_forEachInstanceProperty(_context43 = _Object$keys(_RadioField)).call(_context43, function (key) {
|
1213
1279
|
if (key === "default" || key === "__esModule") return;
|
1214
1280
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1215
1281
|
|
@@ -1223,7 +1289,7 @@ _forEachInstanceProperty(_context40 = _Object$keys(_RadioField)).call(_context40
|
|
1223
1289
|
|
1224
1290
|
var _RadioGroupField = _interopRequireWildcard(require("./components/RadioGroupField"));
|
1225
1291
|
|
1226
|
-
_forEachInstanceProperty(
|
1292
|
+
_forEachInstanceProperty(_context44 = _Object$keys(_RadioGroupField)).call(_context44, function (key) {
|
1227
1293
|
if (key === "default" || key === "__esModule") return;
|
1228
1294
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1229
1295
|
|
@@ -1237,7 +1303,7 @@ _forEachInstanceProperty(_context41 = _Object$keys(_RadioGroupField)).call(_cont
|
|
1237
1303
|
|
1238
1304
|
var _RequirementsList = _interopRequireWildcard(require("./components/RequirementsList"));
|
1239
1305
|
|
1240
|
-
_forEachInstanceProperty(
|
1306
|
+
_forEachInstanceProperty(_context45 = _Object$keys(_RequirementsList)).call(_context45, function (key) {
|
1241
1307
|
if (key === "default" || key === "__esModule") return;
|
1242
1308
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1243
1309
|
|
@@ -1251,7 +1317,7 @@ _forEachInstanceProperty(_context42 = _Object$keys(_RequirementsList)).call(_con
|
|
1251
1317
|
|
1252
1318
|
var _RockerButton = _interopRequireWildcard(require("./components/RockerButton"));
|
1253
1319
|
|
1254
|
-
_forEachInstanceProperty(
|
1320
|
+
_forEachInstanceProperty(_context46 = _Object$keys(_RockerButton)).call(_context46, function (key) {
|
1255
1321
|
if (key === "default" || key === "__esModule") return;
|
1256
1322
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1257
1323
|
|
@@ -1265,7 +1331,7 @@ _forEachInstanceProperty(_context43 = _Object$keys(_RockerButton)).call(_context
|
|
1265
1331
|
|
1266
1332
|
var _RockerButtonGroup = _interopRequireWildcard(require("./components/RockerButtonGroup"));
|
1267
1333
|
|
1268
|
-
_forEachInstanceProperty(
|
1334
|
+
_forEachInstanceProperty(_context47 = _Object$keys(_RockerButtonGroup)).call(_context47, function (key) {
|
1269
1335
|
if (key === "default" || key === "__esModule") return;
|
1270
1336
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1271
1337
|
|
@@ -1279,7 +1345,7 @@ _forEachInstanceProperty(_context44 = _Object$keys(_RockerButtonGroup)).call(_co
|
|
1279
1345
|
|
1280
1346
|
var _ScrollBox = _interopRequireWildcard(require("./components/ScrollBox"));
|
1281
1347
|
|
1282
|
-
_forEachInstanceProperty(
|
1348
|
+
_forEachInstanceProperty(_context48 = _Object$keys(_ScrollBox)).call(_context48, function (key) {
|
1283
1349
|
if (key === "default" || key === "__esModule") return;
|
1284
1350
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1285
1351
|
|
@@ -1293,7 +1359,7 @@ _forEachInstanceProperty(_context45 = _Object$keys(_ScrollBox)).call(_context45,
|
|
1293
1359
|
|
1294
1360
|
var _SearchField = _interopRequireWildcard(require("./components/SearchField"));
|
1295
1361
|
|
1296
|
-
_forEachInstanceProperty(
|
1362
|
+
_forEachInstanceProperty(_context49 = _Object$keys(_SearchField)).call(_context49, function (key) {
|
1297
1363
|
if (key === "default" || key === "__esModule") return;
|
1298
1364
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1299
1365
|
|
@@ -1307,7 +1373,7 @@ _forEachInstanceProperty(_context46 = _Object$keys(_SearchField)).call(_context4
|
|
1307
1373
|
|
1308
1374
|
var _SelectField = _interopRequireWildcard(require("./components/SelectField"));
|
1309
1375
|
|
1310
|
-
_forEachInstanceProperty(
|
1376
|
+
_forEachInstanceProperty(_context50 = _Object$keys(_SelectField)).call(_context50, function (key) {
|
1311
1377
|
if (key === "default" || key === "__esModule") return;
|
1312
1378
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1313
1379
|
|
@@ -1321,7 +1387,7 @@ _forEachInstanceProperty(_context47 = _Object$keys(_SelectField)).call(_context4
|
|
1321
1387
|
|
1322
1388
|
var _Separator = _interopRequireWildcard(require("./components/Separator"));
|
1323
1389
|
|
1324
|
-
_forEachInstanceProperty(
|
1390
|
+
_forEachInstanceProperty(_context51 = _Object$keys(_Separator)).call(_context51, function (key) {
|
1325
1391
|
if (key === "default" || key === "__esModule") return;
|
1326
1392
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1327
1393
|
|
@@ -1335,7 +1401,7 @@ _forEachInstanceProperty(_context48 = _Object$keys(_Separator)).call(_context48,
|
|
1335
1401
|
|
1336
1402
|
var _Stepper = _interopRequireWildcard(require("./components/Stepper"));
|
1337
1403
|
|
1338
|
-
_forEachInstanceProperty(
|
1404
|
+
_forEachInstanceProperty(_context52 = _Object$keys(_Stepper)).call(_context52, function (key) {
|
1339
1405
|
if (key === "default" || key === "__esModule") return;
|
1340
1406
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1341
1407
|
|
@@ -1349,7 +1415,7 @@ _forEachInstanceProperty(_context49 = _Object$keys(_Stepper)).call(_context49, f
|
|
1349
1415
|
|
1350
1416
|
var _Switch = _interopRequireWildcard(require("./components/Switch"));
|
1351
1417
|
|
1352
|
-
_forEachInstanceProperty(
|
1418
|
+
_forEachInstanceProperty(_context53 = _Object$keys(_Switch)).call(_context53, function (key) {
|
1353
1419
|
if (key === "default" || key === "__esModule") return;
|
1354
1420
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1355
1421
|
|
@@ -1363,7 +1429,7 @@ _forEachInstanceProperty(_context50 = _Object$keys(_Switch)).call(_context50, fu
|
|
1363
1429
|
|
1364
1430
|
var _SwitchField = _interopRequireWildcard(require("./components/SwitchField"));
|
1365
1431
|
|
1366
|
-
_forEachInstanceProperty(
|
1432
|
+
_forEachInstanceProperty(_context54 = _Object$keys(_SwitchField)).call(_context54, function (key) {
|
1367
1433
|
if (key === "default" || key === "__esModule") return;
|
1368
1434
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1369
1435
|
|
@@ -1377,7 +1443,7 @@ _forEachInstanceProperty(_context51 = _Object$keys(_SwitchField)).call(_context5
|
|
1377
1443
|
|
1378
1444
|
var _Tab = _interopRequireWildcard(require("./components/Tab"));
|
1379
1445
|
|
1380
|
-
_forEachInstanceProperty(
|
1446
|
+
_forEachInstanceProperty(_context55 = _Object$keys(_Tab)).call(_context55, function (key) {
|
1381
1447
|
if (key === "default" || key === "__esModule") return;
|
1382
1448
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1383
1449
|
|
@@ -1391,7 +1457,7 @@ _forEachInstanceProperty(_context52 = _Object$keys(_Tab)).call(_context52, funct
|
|
1391
1457
|
|
1392
1458
|
var _Table = _interopRequireWildcard(require("./components/Table"));
|
1393
1459
|
|
1394
|
-
_forEachInstanceProperty(
|
1460
|
+
_forEachInstanceProperty(_context56 = _Object$keys(_Table)).call(_context56, function (key) {
|
1395
1461
|
if (key === "default" || key === "__esModule") return;
|
1396
1462
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1397
1463
|
|
@@ -1405,7 +1471,7 @@ _forEachInstanceProperty(_context53 = _Object$keys(_Table)).call(_context53, fun
|
|
1405
1471
|
|
1406
1472
|
var _TableBody = _interopRequireWildcard(require("./components/TableBody"));
|
1407
1473
|
|
1408
|
-
_forEachInstanceProperty(
|
1474
|
+
_forEachInstanceProperty(_context57 = _Object$keys(_TableBody)).call(_context57, function (key) {
|
1409
1475
|
if (key === "default" || key === "__esModule") return;
|
1410
1476
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1411
1477
|
|
@@ -1419,7 +1485,7 @@ _forEachInstanceProperty(_context54 = _Object$keys(_TableBody)).call(_context54,
|
|
1419
1485
|
|
1420
1486
|
var _TableCell = _interopRequireWildcard(require("./components/TableCell"));
|
1421
1487
|
|
1422
|
-
_forEachInstanceProperty(
|
1488
|
+
_forEachInstanceProperty(_context58 = _Object$keys(_TableCell)).call(_context58, function (key) {
|
1423
1489
|
if (key === "default" || key === "__esModule") return;
|
1424
1490
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1425
1491
|
|
@@ -1433,7 +1499,7 @@ _forEachInstanceProperty(_context55 = _Object$keys(_TableCell)).call(_context55,
|
|
1433
1499
|
|
1434
1500
|
var _TableHead = _interopRequireWildcard(require("./components/TableHead"));
|
1435
1501
|
|
1436
|
-
_forEachInstanceProperty(
|
1502
|
+
_forEachInstanceProperty(_context59 = _Object$keys(_TableHead)).call(_context59, function (key) {
|
1437
1503
|
if (key === "default" || key === "__esModule") return;
|
1438
1504
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1439
1505
|
|
@@ -1447,7 +1513,7 @@ _forEachInstanceProperty(_context56 = _Object$keys(_TableHead)).call(_context56,
|
|
1447
1513
|
|
1448
1514
|
var _TableRow = _interopRequireWildcard(require("./components/TableRow"));
|
1449
1515
|
|
1450
|
-
_forEachInstanceProperty(
|
1516
|
+
_forEachInstanceProperty(_context60 = _Object$keys(_TableRow)).call(_context60, function (key) {
|
1451
1517
|
if (key === "default" || key === "__esModule") return;
|
1452
1518
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1453
1519
|
|
@@ -1461,7 +1527,7 @@ _forEachInstanceProperty(_context57 = _Object$keys(_TableRow)).call(_context57,
|
|
1461
1527
|
|
1462
1528
|
var _Tabs = _interopRequireWildcard(require("./components/Tabs"));
|
1463
1529
|
|
1464
|
-
_forEachInstanceProperty(
|
1530
|
+
_forEachInstanceProperty(_context61 = _Object$keys(_Tabs)).call(_context61, function (key) {
|
1465
1531
|
if (key === "default" || key === "__esModule") return;
|
1466
1532
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1467
1533
|
|
@@ -1475,7 +1541,7 @@ _forEachInstanceProperty(_context58 = _Object$keys(_Tabs)).call(_context58, func
|
|
1475
1541
|
|
1476
1542
|
var _Text = _interopRequireWildcard(require("./components/Text"));
|
1477
1543
|
|
1478
|
-
_forEachInstanceProperty(
|
1544
|
+
_forEachInstanceProperty(_context62 = _Object$keys(_Text)).call(_context62, function (key) {
|
1479
1545
|
if (key === "default" || key === "__esModule") return;
|
1480
1546
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1481
1547
|
|
@@ -1489,7 +1555,7 @@ _forEachInstanceProperty(_context59 = _Object$keys(_Text)).call(_context59, func
|
|
1489
1555
|
|
1490
1556
|
var _TextField = _interopRequireWildcard(require("./components/TextField"));
|
1491
1557
|
|
1492
|
-
_forEachInstanceProperty(
|
1558
|
+
_forEachInstanceProperty(_context63 = _Object$keys(_TextField)).call(_context63, function (key) {
|
1493
1559
|
if (key === "default" || key === "__esModule") return;
|
1494
1560
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1495
1561
|
|
@@ -1503,7 +1569,7 @@ _forEachInstanceProperty(_context60 = _Object$keys(_TextField)).call(_context60,
|
|
1503
1569
|
|
1504
1570
|
var _TextArea = _interopRequireWildcard(require("./components/TextArea"));
|
1505
1571
|
|
1506
|
-
_forEachInstanceProperty(
|
1572
|
+
_forEachInstanceProperty(_context64 = _Object$keys(_TextArea)).call(_context64, function (key) {
|
1507
1573
|
if (key === "default" || key === "__esModule") return;
|
1508
1574
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1509
1575
|
|
@@ -1517,7 +1583,7 @@ _forEachInstanceProperty(_context61 = _Object$keys(_TextArea)).call(_context61,
|
|
1517
1583
|
|
1518
1584
|
var _TextAreaField = _interopRequireWildcard(require("./components/TextAreaField"));
|
1519
1585
|
|
1520
|
-
_forEachInstanceProperty(
|
1586
|
+
_forEachInstanceProperty(_context65 = _Object$keys(_TextAreaField)).call(_context65, function (key) {
|
1521
1587
|
if (key === "default" || key === "__esModule") return;
|
1522
1588
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1523
1589
|
|
@@ -1531,7 +1597,7 @@ _forEachInstanceProperty(_context62 = _Object$keys(_TextAreaField)).call(_contex
|
|
1531
1597
|
|
1532
1598
|
var _TooltipTrigger = _interopRequireWildcard(require("./components/TooltipTrigger"));
|
1533
1599
|
|
1534
|
-
_forEachInstanceProperty(
|
1600
|
+
_forEachInstanceProperty(_context66 = _Object$keys(_TooltipTrigger)).call(_context66, function (key) {
|
1535
1601
|
if (key === "default" || key === "__esModule") return;
|
1536
1602
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
1537
1603
|
|
@@ -147,6 +147,24 @@ var modalCloseButton = _objectSpread(_objectSpread({}, iconButton), {}, {
|
|
147
147
|
right: 10
|
148
148
|
});
|
149
149
|
|
150
|
+
var multiselectToggle = _objectSpread(_objectSpread({}, square), {}, {
|
151
|
+
bg: 'accent.99',
|
152
|
+
height: '40px',
|
153
|
+
minWidth: 'max-content',
|
154
|
+
pl: '0px',
|
155
|
+
ml: '10px',
|
156
|
+
path: {
|
157
|
+
fill: 'active'
|
158
|
+
},
|
159
|
+
'&.is-hovered': {
|
160
|
+
backgroundColor: 'accent.99'
|
161
|
+
},
|
162
|
+
'&.is-focused': _objectSpread({}, defaultFocus),
|
163
|
+
'&.is-pressed': {
|
164
|
+
backgroundColor: 'accent.99'
|
165
|
+
}
|
166
|
+
});
|
167
|
+
|
150
168
|
var close = _objectSpread(_objectSpread({}, iconButton), {}, {
|
151
169
|
p: 0,
|
152
170
|
ml: 'auto',
|
@@ -483,6 +501,10 @@ var link = _objectSpread(_objectSpread({}, text), {}, {
|
|
483
501
|
width: 'max-content'
|
484
502
|
});
|
485
503
|
|
504
|
+
var neutralText = _objectSpread(_objectSpread({}, link), {}, {
|
505
|
+
color: 'neutral.10'
|
506
|
+
});
|
507
|
+
|
486
508
|
var expandableRow = {
|
487
509
|
chartWrapper: {
|
488
510
|
display: 'flex',
|
@@ -638,6 +660,18 @@ var colorBlock = {
|
|
638
660
|
borderColor: 'accent.20'
|
639
661
|
}
|
640
662
|
};
|
663
|
+
|
664
|
+
var menuTab = _objectSpread(_objectSpread({}, quiet), {}, {
|
665
|
+
color: 'neutral.40',
|
666
|
+
alignItems: 'center',
|
667
|
+
'&.is-selected *, &.is-hovered *': {
|
668
|
+
color: 'active'
|
669
|
+
},
|
670
|
+
'& + *:not(div:first-of-type)': {
|
671
|
+
'ml': 'md'
|
672
|
+
}
|
673
|
+
});
|
674
|
+
|
641
675
|
var _default = {
|
642
676
|
accordionHeader: accordionHeader,
|
643
677
|
chipDeleteButton: chipDeleteButton,
|
@@ -679,6 +713,9 @@ var _default = {
|
|
679
713
|
tooltipChip: tooltipChip,
|
680
714
|
tooltipIconButton: tooltipIconButton,
|
681
715
|
tooltipInline: tooltipInline,
|
682
|
-
colorBlock: colorBlock
|
716
|
+
colorBlock: colorBlock,
|
717
|
+
menuTab: menuTab,
|
718
|
+
multiselectToggle: multiselectToggle,
|
719
|
+
neutralText: neutralText
|
683
720
|
};
|
684
721
|
exports["default"] = _default;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
+
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
|
9
|
+
exports["default"] = void 0;
|
10
|
+
var multiselectListContainer = {
|
11
|
+
height: '40px',
|
12
|
+
overflowX: 'hidden',
|
13
|
+
pr: 'sm',
|
14
|
+
transition: 'right 500ms',
|
15
|
+
'&.is-open': {
|
16
|
+
height: '100%'
|
17
|
+
}
|
18
|
+
};
|
19
|
+
var multiselectListContent = {
|
20
|
+
bg: 'accent.99',
|
21
|
+
fontSize: 'sm',
|
22
|
+
height: '100%',
|
23
|
+
width: '300px',
|
24
|
+
'&.is-focused': {
|
25
|
+
borderColor: 'accent.80',
|
26
|
+
boxShadow: 'focus',
|
27
|
+
outline: 'none'
|
28
|
+
},
|
29
|
+
'& div': {
|
30
|
+
alignItems: 'center',
|
31
|
+
display: 'flex',
|
32
|
+
minHeight: '45px',
|
33
|
+
padding: '3px',
|
34
|
+
width: '100%'
|
35
|
+
}
|
36
|
+
};
|
37
|
+
var multiselectListTitle = {
|
38
|
+
alignContent: 'center',
|
39
|
+
bg: 'accent.99',
|
40
|
+
display: 'flex',
|
41
|
+
fontWeight: '500',
|
42
|
+
minHeight: '40px',
|
43
|
+
alignItems: 'center',
|
44
|
+
padding: '0 10px !important',
|
45
|
+
flexWrap: 'wrap',
|
46
|
+
maxWidth: 'max-content !important',
|
47
|
+
margin: '0 auto'
|
48
|
+
};
|
49
|
+
var multiselectListBadge = {
|
50
|
+
borderRadius: '5px',
|
51
|
+
display: 'flex',
|
52
|
+
height: '17px',
|
53
|
+
justifyContent: 'center',
|
54
|
+
minWidth: 'max-content',
|
55
|
+
position: 'relative',
|
56
|
+
pb: '0px !important',
|
57
|
+
pr: '3px !important',
|
58
|
+
pl: '3px !important',
|
59
|
+
alignItems: 'center',
|
60
|
+
fontWeight: 500
|
61
|
+
};
|
62
|
+
var multiselectFilterItem = {
|
63
|
+
minHeight: '45px',
|
64
|
+
margin: 'auto'
|
65
|
+
};
|
66
|
+
var _default = {
|
67
|
+
multiselectListContainer: multiselectListContainer,
|
68
|
+
multiselectListContent: multiselectListContent,
|
69
|
+
multiselectListTitle: multiselectListTitle,
|
70
|
+
multiselectListBadge: multiselectListBadge,
|
71
|
+
multiselectFilterItem: multiselectFilterItem
|
72
|
+
};
|
73
|
+
exports["default"] = _default;
|
@@ -23,13 +23,17 @@ var tab = {
|
|
23
23
|
},
|
24
24
|
'&.is-selected.is-vertical': {
|
25
25
|
bg: 'accent.95'
|
26
|
+
},
|
27
|
+
'& > svg': {
|
28
|
+
flexShrink: 0
|
26
29
|
}
|
27
30
|
};
|
28
31
|
exports.tab = tab;
|
29
32
|
var tabLine = {
|
30
33
|
height: '2px',
|
31
34
|
width: '100%',
|
32
|
-
bg: 'active'
|
35
|
+
bg: 'active',
|
36
|
+
flexShrink: 0
|
33
37
|
};
|
34
38
|
exports.tabLine = tabLine;
|
35
39
|
var tabPanel = {
|
@@ -50,11 +50,16 @@ var wordWrap = {
|
|
50
50
|
var tabLabel = _objectSpread(_objectSpread(_objectSpread({}, base), wordWrap), {}, {
|
51
51
|
fontSize: 'sm',
|
52
52
|
fontWeight: 1,
|
53
|
-
mb:
|
53
|
+
mb: 'sm',
|
54
|
+
lineHeight: '16px',
|
54
55
|
color: 'neutral.40',
|
56
|
+
height: '100%',
|
55
57
|
'.is-selected &, .is-hovered &': {
|
58
|
+
color: 'active'
|
59
|
+
},
|
60
|
+
'.is-selected &': {
|
56
61
|
color: 'active',
|
57
|
-
mb:
|
62
|
+
mb: 8
|
58
63
|
},
|
59
64
|
'.is-disabled &': {
|
60
65
|
color: 'neutral.80'
|
@@ -161,6 +166,26 @@ var navBarHeaderText = _objectSpread(_objectSpread({}, wordWrap), {}, {
|
|
161
166
|
fontWeight: 1
|
162
167
|
});
|
163
168
|
|
169
|
+
var multiselectFilterItem = _objectSpread(_objectSpread({}, wordWrap), {}, {
|
170
|
+
color: 'neutral.30',
|
171
|
+
fontSize: 'sm',
|
172
|
+
fontWeight: 500,
|
173
|
+
overflow: 'hidden',
|
174
|
+
marginRight: 'xs',
|
175
|
+
textOverflow: 'ellipsis',
|
176
|
+
whiteSpace: 'nowrap'
|
177
|
+
});
|
178
|
+
|
179
|
+
var multiselectFilterTitle = _objectSpread(_objectSpread({}, wordWrap), {}, {
|
180
|
+
fontSize: 'sm',
|
181
|
+
fontWeight: 500,
|
182
|
+
color: 'text.secondary',
|
183
|
+
whiteSpace: 'nowrap',
|
184
|
+
overflow: 'hidden',
|
185
|
+
textOverflow: 'ellipsis',
|
186
|
+
mr: 'xs'
|
187
|
+
});
|
188
|
+
|
164
189
|
var maskedValue = {
|
165
190
|
width: 252,
|
166
191
|
wordBreak: 'break-all',
|
@@ -249,6 +274,8 @@ var text = {
|
|
249
274
|
}),
|
250
275
|
maskedValue: maskedValue,
|
251
276
|
expandableRow: expandableRow,
|
277
|
+
multiselectFilterItem: multiselectFilterItem,
|
278
|
+
multiselectFilterTitle: multiselectFilterTitle,
|
252
279
|
navBarHeaderText: navBarHeaderText,
|
253
280
|
navBarSubtitle: navBarSubtitle,
|
254
281
|
placeholder: {
|
@@ -74,6 +74,8 @@ var tabs = _interopRequireWildcard(require("./tabs"));
|
|
74
74
|
|
75
75
|
var _tooltip = _interopRequireDefault(require("./tooltip"));
|
76
76
|
|
77
|
+
var _multiselectListContainer = _interopRequireDefault(require("./multiselectListContainer"));
|
78
|
+
|
77
79
|
function ownKeys(object, enumerableOnly) { var keys = (0, _keys["default"])(object); if (_getOwnPropertySymbols["default"]) { var symbols = (0, _getOwnPropertySymbols["default"])(object); if (enumerableOnly) symbols = (0, _filter["default"])(symbols).call(symbols, function (sym) { return (0, _getOwnPropertyDescriptor["default"])(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
78
80
|
|
79
81
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; (0, _forEach["default"])(_context = ownKeys(Object(source), true)).call(_context, function (key) { (0, _defineProperty3["default"])(target, key, source[key]); }); } else if (_getOwnPropertyDescriptors["default"]) { (0, _defineProperties["default"])(target, (0, _getOwnPropertyDescriptors["default"])(source)); } else { var _context2; (0, _forEach["default"])(_context2 = ownKeys(Object(source))).call(_context2, function (key) { (0, _defineProperty2["default"])(target, key, (0, _getOwnPropertyDescriptor["default"])(source, key)); }); } } return target; }
|
@@ -91,6 +93,7 @@ var _default = _objectSpread(_objectSpread({
|
|
91
93
|
menuItem: _menuItem["default"],
|
92
94
|
messages: _messages["default"],
|
93
95
|
modal: _modal["default"],
|
96
|
+
multiselectListContainer: _multiselectListContainer["default"],
|
94
97
|
navBar: _navBar["default"],
|
95
98
|
numberField: _numberField["default"],
|
96
99
|
overlayPanel: _overlayPanel["default"],
|
@@ -11,6 +11,7 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
11
11
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
12
12
|
import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
|
13
13
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
14
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
14
15
|
|
15
16
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
16
17
|
|
@@ -57,9 +58,14 @@ export function useListLayout(state) {
|
|
57
58
|
return layout;
|
58
59
|
}
|
59
60
|
var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
|
60
|
-
var
|
61
|
+
var disabledKeys = props.disabledKeys,
|
62
|
+
loadingState = props.loadingState,
|
61
63
|
onLoadMore = props.onLoadMore,
|
62
|
-
|
64
|
+
onSelectionChange = props.onSelectionChange,
|
65
|
+
selectionMode = props.selectionMode,
|
66
|
+
selectionStyle = props.selectionStyle,
|
67
|
+
others = _objectWithoutProperties(props, ["disabledKeys", "loadingState", "onLoadMore", "onSelectionChange", "selectionMode", "selectionStyle"]);
|
68
|
+
|
63
69
|
var isLoading = loadingState === loadingStates.LOADING_MORE || loadingState === loadingStates.LOADING;
|
64
70
|
|
65
71
|
var renderWrapper = function renderWrapper(parent, reusableView) {
|
@@ -122,8 +128,7 @@ var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
122
128
|
disabledKeys: state.disabledKeys,
|
123
129
|
ref: listViewRef,
|
124
130
|
direction: direction,
|
125
|
-
collator: collator
|
126
|
-
focusMode: 'cell'
|
131
|
+
collator: collator
|
127
132
|
});
|
128
133
|
}, [state, listViewRef, direction, collator]);
|
129
134
|
|
@@ -136,13 +141,7 @@ var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
136
141
|
|
137
142
|
|
138
143
|
layout.isLoading = isLoading;
|
139
|
-
var
|
140
|
-
var focusedItem = gridCollection.getItem(state.selectionManager.focusedKey);
|
141
|
-
|
142
|
-
if ((focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey) != null) {
|
143
|
-
focusedKey = focusedItem.parentKey;
|
144
|
-
}
|
145
|
-
|
144
|
+
var focusedItem = gridCollection.getFirstKey();
|
146
145
|
return ___EmotionJSX(ListViewContext.Provider, {
|
147
146
|
value: {
|
148
147
|
state: state,
|
@@ -151,7 +150,7 @@ var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
151
150
|
}, ___EmotionJSX(Virtualizer, _extends({}, gridProps, {
|
152
151
|
onLoadMore: onLoadMore,
|
153
152
|
ref: listViewRef,
|
154
|
-
focusedKey:
|
153
|
+
focusedKey: focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey,
|
155
154
|
renderWrapper: renderWrapper,
|
156
155
|
sizeToFit: "height",
|
157
156
|
scrollDirection: "vertical",
|
@@ -159,7 +158,7 @@ var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
159
158
|
isLoading: isLoading,
|
160
159
|
collection: gridCollection,
|
161
160
|
transitionDuration: 0
|
162
|
-
}), function (type, item) {
|
161
|
+
}, others), function (type, item) {
|
163
162
|
if (type === 'item') {
|
164
163
|
return ___EmotionJSX(ListViewItem, {
|
165
164
|
item: item
|