@pingux/astro 2.27.1-alpha.1 → 2.28.0-alpha.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.
@@ -16,6 +16,7 @@ exports["default"] = exports.Edit = exports.DisplaySectionHeader = exports.Displ
16
16
  var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
17
17
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
18
18
  var _react = _interopRequireDefault(require("react"));
19
+ var _PlusIcon = _interopRequireDefault(require("@pingux/mdi-react/PlusIcon"));
19
20
  var _TrashIcon = _interopRequireDefault(require("@pingux/mdi-react/TrashIcon"));
20
21
  var _index = require("../index");
21
22
  var _figmaLinks = require("../utils/designUtils/figmaLinks.js");
@@ -210,7 +211,8 @@ var Edit = function Edit() {
210
211
  "aria-label": "deleteButton",
211
212
  sx: {
212
213
  alignSelf: 'center'
213
- }
214
+ },
215
+ ml: "sm"
214
216
  }, (0, _react2.jsx)(_index.Icon, {
215
217
  icon: _TrashIcon["default"],
216
218
  sx: {
@@ -230,8 +232,8 @@ var Edit = function Edit() {
230
232
  }, (0, _react2.jsx)(_index.Box, {
231
233
  isRow: true,
232
234
  alignItems: "center",
233
- mb: "sm",
234
- pr: "37px"
235
+ mb: "md",
236
+ pr: "42px"
235
237
  }, (0, _react2.jsx)(_index.RockerButtonGroup, {
236
238
  mr: "sm",
237
239
  defaultSelectedKey: "all"
@@ -260,13 +262,18 @@ var Edit = function Edit() {
260
262
  }, (0, _react2.jsx)(_index.Text, {
261
263
  sx: sx.defaultText
262
264
  }, "NONE"))), (0, _react2.jsx)(_index.Text, null, ofTheConditionsAreTrueCopy), (0, _react2.jsx)(_index.Button, {
263
- variant: "inline",
264
- width: "fit-content",
265
- role: "button",
266
- title: "Add Field Button",
267
265
  ml: "auto",
266
+ variant: "inlineWithIcon",
267
+ title: "Add Field Button",
268
268
  "aria-label": "add"
269
- }, "+ Add")), (0, _map["default"])(allConditions).call(allConditions, function (item) {
269
+ }, (0, _react2.jsx)(_index.Icon, {
270
+ icon: _PlusIcon["default"],
271
+ mr: "xs",
272
+ size: 15,
273
+ title: {
274
+ name: 'Add Icon'
275
+ }
276
+ }), "Add")), (0, _map["default"])(allConditions).call(allConditions, function (item) {
270
277
  return (0, _react2.jsx)(_index.Box, {
271
278
  isRow: true,
272
279
  alignItems: "center",
@@ -286,12 +293,18 @@ var Edit = function Edit() {
286
293
  }
287
294
  }
288
295
  },
296
+ labelProps: {
297
+ mb: 0
298
+ },
289
299
  "aria-label": "temp-label"
290
300
  }), (0, _react2.jsx)(_index.SelectField, {
291
301
  hasNoStatusIndicator: true,
292
302
  selectedKey: "Equals",
293
303
  mr: "md",
294
304
  "aria-label": "temp-label",
305
+ labelProps: {
306
+ mb: 0
307
+ },
295
308
  width: "125px"
296
309
  }, (0, _react2.jsx)(_index.Item, {
297
310
  key: "Equals",
@@ -305,8 +318,10 @@ var Edit = function Edit() {
305
318
  hasNoStatusIndicator: true,
306
319
  width: "44%",
307
320
  value: item.field3,
308
- mr: "xs",
309
- "aria-label": "temp-label"
321
+ "aria-label": "temp-label",
322
+ labelProps: {
323
+ mb: 0
324
+ }
310
325
  })), trashButton);
311
326
  }), (0, _react2.jsx)(_index.Box, {
312
327
  isRow: true
@@ -316,13 +331,14 @@ var Edit = function Edit() {
316
331
  '&::after': {
317
332
  bg: 'decorative.4',
318
333
  width: '2px'
319
- }
334
+ },
335
+ p: 'md'
320
336
  })
321
337
  }, (0, _react2.jsx)(_index.Box, {
322
338
  isRow: true,
323
339
  alignItems: "center",
324
- mb: "sm",
325
- pr: "37px"
340
+ mb: "md",
341
+ pr: "42px"
326
342
  }, (0, _react2.jsx)(_index.RockerButtonGroup, {
327
343
  mr: "sm",
328
344
  defaultSelectedKey: "any"
@@ -351,19 +367,22 @@ var Edit = function Edit() {
351
367
  }, (0, _react2.jsx)(_index.Text, {
352
368
  sx: sx.defaultText
353
369
  }, "NONE"))), (0, _react2.jsx)(_index.Text, null, ofTheConditionsAreTrueCopy), (0, _react2.jsx)(_index.Button, {
354
- variant: "inline",
355
- width: "fit-content",
356
- role: "button",
357
- title: "Add Field Button",
358
370
  ml: "auto",
371
+ variant: "inlineWithIcon",
372
+ title: "Add Field Button",
359
373
  "aria-label": "add"
360
- }, "+ Add")), (0, _react2.jsx)(_index.Box, {
361
- ml: "lg"
362
- }, (0, _map["default"])(anyConditions).call(anyConditions, function (item) {
374
+ }, (0, _react2.jsx)(_index.Icon, {
375
+ icon: _PlusIcon["default"],
376
+ mr: "xs",
377
+ size: 15,
378
+ title: {
379
+ name: 'Add Icon'
380
+ }
381
+ }), "Add")), (0, _react2.jsx)(_index.Box, null, (0, _map["default"])(anyConditions).call(anyConditions, function (item, index) {
363
382
  return (0, _react2.jsx)(_index.Box, {
364
383
  isRow: true,
365
384
  alignItems: "center",
366
- mb: "md",
385
+ mb: index + 1 === anyConditions.length ? 0 : 'md',
367
386
  key: item.key
368
387
  }, (0, _react2.jsx)(_index.Box, {
369
388
  isRow: true,
@@ -379,13 +398,19 @@ var Edit = function Edit() {
379
398
  bg: 'decorative.7'
380
399
  }
381
400
  }
401
+ },
402
+ labelProps: {
403
+ mb: 0
382
404
  }
383
405
  }), (0, _react2.jsx)(_index.SelectField, {
384
406
  "aria-label": "temp-label",
385
407
  hasNoStatusIndicator: true,
386
408
  selectedKey: "Equals",
387
409
  mr: "md",
388
- width: "125px"
410
+ width: "125px",
411
+ labelProps: {
412
+ mb: 0
413
+ }
389
414
  }, (0, _react2.jsx)(_index.Item, {
390
415
  key: "Equals",
391
416
  textValue: "Equals",
@@ -399,7 +424,9 @@ var Edit = function Edit() {
399
424
  hasNoStatusIndicator: true,
400
425
  value: item.field3,
401
426
  width: "44%",
402
- mr: "xs"
427
+ labelProps: {
428
+ mb: 0
429
+ }
403
430
  })), trashButton);
404
431
  }))), (0, _react2.jsx)(_index.Box, {
405
432
  alignSelf: "start"
@@ -412,13 +439,14 @@ var Edit = function Edit() {
412
439
  '&::after': {
413
440
  bg: 'decorative.4',
414
441
  width: '2px'
415
- }
442
+ },
443
+ p: 'md'
416
444
  })
417
445
  }, (0, _react2.jsx)(_index.Box, {
418
446
  isRow: true,
419
447
  alignItems: "center",
420
- mb: "sm",
421
- pr: "37px"
448
+ mb: "md",
449
+ pr: "42px"
422
450
  }, (0, _react2.jsx)(_index.RockerButtonGroup, {
423
451
  mr: "sm",
424
452
  defaultSelectedKey: "none"
@@ -447,19 +475,22 @@ var Edit = function Edit() {
447
475
  }, (0, _react2.jsx)(_index.Text, {
448
476
  sx: sx.defaultText
449
477
  }, "NONE"))), (0, _react2.jsx)(_index.Text, null, ofTheConditionsAreTrueCopy), (0, _react2.jsx)(_index.Button, {
450
- variant: "inline",
451
- width: "fit-content",
452
- role: "button",
453
- title: "Add Field Button",
454
478
  ml: "auto",
479
+ variant: "inlineWithIcon",
480
+ title: "Add Field Button",
455
481
  "aria-label": "add"
456
- }, "+ Add")), (0, _react2.jsx)(_index.Box, {
457
- ml: "lg"
458
- }, (0, _map["default"])(noneConditions).call(noneConditions, function (item) {
482
+ }, (0, _react2.jsx)(_index.Icon, {
483
+ icon: _PlusIcon["default"],
484
+ mr: "xs",
485
+ size: 15,
486
+ title: {
487
+ name: 'Add Icon'
488
+ }
489
+ }), "Add")), (0, _react2.jsx)(_index.Box, null, (0, _map["default"])(noneConditions).call(noneConditions, function (item, index) {
459
490
  return (0, _react2.jsx)(_index.Box, {
460
491
  isRow: true,
461
492
  alignItems: "center",
462
- mb: "md",
493
+ mb: index + 1 === anyConditions.length ? 0 : 'md',
463
494
  key: item.key
464
495
  }, (0, _react2.jsx)(_index.Box, {
465
496
  isRow: true,
@@ -475,13 +506,19 @@ var Edit = function Edit() {
475
506
  bg: 'accent.20'
476
507
  }
477
508
  }
509
+ },
510
+ labelProps: {
511
+ mb: 0
478
512
  }
479
513
  }), (0, _react2.jsx)(_index.SelectField, {
480
514
  "aria-label": "temp-label",
481
515
  hasNoStatusIndicator: true,
482
516
  selectedKey: "Equals",
483
517
  mr: "md",
484
- width: "125px"
518
+ width: "125px",
519
+ labelProps: {
520
+ mb: 0
521
+ }
485
522
  }, (0, _react2.jsx)(_index.Item, {
486
523
  key: "Equals",
487
524
  textValue: "Equals",
@@ -493,9 +530,11 @@ var Edit = function Edit() {
493
530
  }, "Not Equal")), (0, _react2.jsx)(_index.TextField, {
494
531
  "aria-label": "temp-label",
495
532
  hasNoStatusIndicator: true,
533
+ labelProps: {
534
+ mb: 0
535
+ },
496
536
  value: item.field3,
497
- width: "44%",
498
- mr: "xs"
537
+ width: "44%"
499
538
  })), trashButton);
500
539
  }))), (0, _react2.jsx)(_index.Box, {
501
540
  alignSelf: "start"
@@ -11,6 +11,7 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
11
11
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
12
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
13
13
  import React from 'react';
14
+ import PlusIcon from '@pingux/mdi-react/PlusIcon';
14
15
  import TrashIcon from '@pingux/mdi-react/TrashIcon';
15
16
  import { Badge, Box, Bracket, Button, Icon, IconButton, Item, RockerButton, RockerButtonGroup, SelectField, Text, TextField } from '../index';
16
17
  import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.js';
@@ -199,7 +200,8 @@ export var Edit = function Edit() {
199
200
  "aria-label": "deleteButton",
200
201
  sx: {
201
202
  alignSelf: 'center'
202
- }
203
+ },
204
+ ml: "sm"
203
205
  }, ___EmotionJSX(Icon, {
204
206
  icon: TrashIcon,
205
207
  sx: {
@@ -219,8 +221,8 @@ export var Edit = function Edit() {
219
221
  }, ___EmotionJSX(Box, {
220
222
  isRow: true,
221
223
  alignItems: "center",
222
- mb: "sm",
223
- pr: "37px"
224
+ mb: "md",
225
+ pr: "42px"
224
226
  }, ___EmotionJSX(RockerButtonGroup, {
225
227
  mr: "sm",
226
228
  defaultSelectedKey: "all"
@@ -249,13 +251,18 @@ export var Edit = function Edit() {
249
251
  }, ___EmotionJSX(Text, {
250
252
  sx: sx.defaultText
251
253
  }, "NONE"))), ___EmotionJSX(Text, null, ofTheConditionsAreTrueCopy), ___EmotionJSX(Button, {
252
- variant: "inline",
253
- width: "fit-content",
254
- role: "button",
255
- title: "Add Field Button",
256
254
  ml: "auto",
255
+ variant: "inlineWithIcon",
256
+ title: "Add Field Button",
257
257
  "aria-label": "add"
258
- }, "+ Add")), _mapInstanceProperty(allConditions).call(allConditions, function (item) {
258
+ }, ___EmotionJSX(Icon, {
259
+ icon: PlusIcon,
260
+ mr: "xs",
261
+ size: 15,
262
+ title: {
263
+ name: 'Add Icon'
264
+ }
265
+ }), "Add")), _mapInstanceProperty(allConditions).call(allConditions, function (item) {
259
266
  return ___EmotionJSX(Box, {
260
267
  isRow: true,
261
268
  alignItems: "center",
@@ -275,12 +282,18 @@ export var Edit = function Edit() {
275
282
  }
276
283
  }
277
284
  },
285
+ labelProps: {
286
+ mb: 0
287
+ },
278
288
  "aria-label": "temp-label"
279
289
  }), ___EmotionJSX(SelectField, {
280
290
  hasNoStatusIndicator: true,
281
291
  selectedKey: "Equals",
282
292
  mr: "md",
283
293
  "aria-label": "temp-label",
294
+ labelProps: {
295
+ mb: 0
296
+ },
284
297
  width: "125px"
285
298
  }, ___EmotionJSX(Item, {
286
299
  key: "Equals",
@@ -294,8 +307,10 @@ export var Edit = function Edit() {
294
307
  hasNoStatusIndicator: true,
295
308
  width: "44%",
296
309
  value: item.field3,
297
- mr: "xs",
298
- "aria-label": "temp-label"
310
+ "aria-label": "temp-label",
311
+ labelProps: {
312
+ mb: 0
313
+ }
299
314
  })), trashButton);
300
315
  }), ___EmotionJSX(Box, {
301
316
  isRow: true
@@ -305,13 +320,14 @@ export var Edit = function Edit() {
305
320
  '&::after': {
306
321
  bg: 'decorative.4',
307
322
  width: '2px'
308
- }
323
+ },
324
+ p: 'md'
309
325
  })
310
326
  }, ___EmotionJSX(Box, {
311
327
  isRow: true,
312
328
  alignItems: "center",
313
- mb: "sm",
314
- pr: "37px"
329
+ mb: "md",
330
+ pr: "42px"
315
331
  }, ___EmotionJSX(RockerButtonGroup, {
316
332
  mr: "sm",
317
333
  defaultSelectedKey: "any"
@@ -340,19 +356,22 @@ export var Edit = function Edit() {
340
356
  }, ___EmotionJSX(Text, {
341
357
  sx: sx.defaultText
342
358
  }, "NONE"))), ___EmotionJSX(Text, null, ofTheConditionsAreTrueCopy), ___EmotionJSX(Button, {
343
- variant: "inline",
344
- width: "fit-content",
345
- role: "button",
346
- title: "Add Field Button",
347
359
  ml: "auto",
360
+ variant: "inlineWithIcon",
361
+ title: "Add Field Button",
348
362
  "aria-label": "add"
349
- }, "+ Add")), ___EmotionJSX(Box, {
350
- ml: "lg"
351
- }, _mapInstanceProperty(anyConditions).call(anyConditions, function (item) {
363
+ }, ___EmotionJSX(Icon, {
364
+ icon: PlusIcon,
365
+ mr: "xs",
366
+ size: 15,
367
+ title: {
368
+ name: 'Add Icon'
369
+ }
370
+ }), "Add")), ___EmotionJSX(Box, null, _mapInstanceProperty(anyConditions).call(anyConditions, function (item, index) {
352
371
  return ___EmotionJSX(Box, {
353
372
  isRow: true,
354
373
  alignItems: "center",
355
- mb: "md",
374
+ mb: index + 1 === anyConditions.length ? 0 : 'md',
356
375
  key: item.key
357
376
  }, ___EmotionJSX(Box, {
358
377
  isRow: true,
@@ -368,13 +387,19 @@ export var Edit = function Edit() {
368
387
  bg: 'decorative.7'
369
388
  }
370
389
  }
390
+ },
391
+ labelProps: {
392
+ mb: 0
371
393
  }
372
394
  }), ___EmotionJSX(SelectField, {
373
395
  "aria-label": "temp-label",
374
396
  hasNoStatusIndicator: true,
375
397
  selectedKey: "Equals",
376
398
  mr: "md",
377
- width: "125px"
399
+ width: "125px",
400
+ labelProps: {
401
+ mb: 0
402
+ }
378
403
  }, ___EmotionJSX(Item, {
379
404
  key: "Equals",
380
405
  textValue: "Equals",
@@ -388,7 +413,9 @@ export var Edit = function Edit() {
388
413
  hasNoStatusIndicator: true,
389
414
  value: item.field3,
390
415
  width: "44%",
391
- mr: "xs"
416
+ labelProps: {
417
+ mb: 0
418
+ }
392
419
  })), trashButton);
393
420
  }))), ___EmotionJSX(Box, {
394
421
  alignSelf: "start"
@@ -401,13 +428,14 @@ export var Edit = function Edit() {
401
428
  '&::after': {
402
429
  bg: 'decorative.4',
403
430
  width: '2px'
404
- }
431
+ },
432
+ p: 'md'
405
433
  })
406
434
  }, ___EmotionJSX(Box, {
407
435
  isRow: true,
408
436
  alignItems: "center",
409
- mb: "sm",
410
- pr: "37px"
437
+ mb: "md",
438
+ pr: "42px"
411
439
  }, ___EmotionJSX(RockerButtonGroup, {
412
440
  mr: "sm",
413
441
  defaultSelectedKey: "none"
@@ -436,19 +464,22 @@ export var Edit = function Edit() {
436
464
  }, ___EmotionJSX(Text, {
437
465
  sx: sx.defaultText
438
466
  }, "NONE"))), ___EmotionJSX(Text, null, ofTheConditionsAreTrueCopy), ___EmotionJSX(Button, {
439
- variant: "inline",
440
- width: "fit-content",
441
- role: "button",
442
- title: "Add Field Button",
443
467
  ml: "auto",
468
+ variant: "inlineWithIcon",
469
+ title: "Add Field Button",
444
470
  "aria-label": "add"
445
- }, "+ Add")), ___EmotionJSX(Box, {
446
- ml: "lg"
447
- }, _mapInstanceProperty(noneConditions).call(noneConditions, function (item) {
471
+ }, ___EmotionJSX(Icon, {
472
+ icon: PlusIcon,
473
+ mr: "xs",
474
+ size: 15,
475
+ title: {
476
+ name: 'Add Icon'
477
+ }
478
+ }), "Add")), ___EmotionJSX(Box, null, _mapInstanceProperty(noneConditions).call(noneConditions, function (item, index) {
448
479
  return ___EmotionJSX(Box, {
449
480
  isRow: true,
450
481
  alignItems: "center",
451
- mb: "md",
482
+ mb: index + 1 === anyConditions.length ? 0 : 'md',
452
483
  key: item.key
453
484
  }, ___EmotionJSX(Box, {
454
485
  isRow: true,
@@ -464,13 +495,19 @@ export var Edit = function Edit() {
464
495
  bg: 'accent.20'
465
496
  }
466
497
  }
498
+ },
499
+ labelProps: {
500
+ mb: 0
467
501
  }
468
502
  }), ___EmotionJSX(SelectField, {
469
503
  "aria-label": "temp-label",
470
504
  hasNoStatusIndicator: true,
471
505
  selectedKey: "Equals",
472
506
  mr: "md",
473
- width: "125px"
507
+ width: "125px",
508
+ labelProps: {
509
+ mb: 0
510
+ }
474
511
  }, ___EmotionJSX(Item, {
475
512
  key: "Equals",
476
513
  textValue: "Equals",
@@ -482,9 +519,11 @@ export var Edit = function Edit() {
482
519
  }, "Not Equal")), ___EmotionJSX(TextField, {
483
520
  "aria-label": "temp-label",
484
521
  hasNoStatusIndicator: true,
522
+ labelProps: {
523
+ mb: 0
524
+ },
485
525
  value: item.field3,
486
- width: "44%",
487
- mr: "xs"
526
+ width: "44%"
488
527
  })), trashButton);
489
528
  }))), ___EmotionJSX(Box, {
490
529
  alignSelf: "start"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.27.1-alpha.1",
3
+ "version": "2.28.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",