@pingux/astro 2.211.0-alpha.0 → 2.212.1-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.
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.d.ts +14 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.js +70 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.mdx +69 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.stories.js +109 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.styles.d.ts +18 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.styles.js +28 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.test.js +315 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsLabel.d.ts +4 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsLabel.js +47 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsRow.d.ts +3 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsRow.js +40 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsSubvalue.d.ts +4 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsSubvalue.js +29 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsValue.d.ts +4 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsValue.js +120 -0
- package/lib/cjs/components/LabelValuePairs/constants.d.ts +5 -0
- package/lib/cjs/components/LabelValuePairs/constants.js +12 -0
- package/lib/cjs/components/LabelValuePairs/index.d.ts +2 -0
- package/lib/cjs/components/LabelValuePairs/index.js +62 -0
- package/lib/cjs/components/LabelValuePairs/labelValuePairsAttributes.d.ts +74 -0
- package/lib/cjs/components/LabelValuePairs/labelValuePairsAttributes.js +20 -0
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +71 -52
- package/lib/cjs/recipes/ListAndPanel.stories.js +1 -16
- package/lib/cjs/recipes/PanelContent.stories.js +11 -47
- package/lib/cjs/recipes/items.js +38 -30
- package/lib/cjs/styles/themeOverrides/onyxDarkUiLibraryOverride.js +41 -0
- package/lib/cjs/styles/themeOverrides/onyxUiLibraryOverride.d.ts +37 -0
- package/lib/cjs/styles/themeOverrides/onyxUiLibraryOverride.js +47 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +17 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +17 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -0
- package/lib/cjs/styles/variants/variants.js +2 -0
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +46 -35
- package/lib/cjs/types/labelValuePairs.d.ts +35 -0
- package/lib/cjs/types/labelValuePairs.js +6 -0
- package/lib/cjs/utils/designUtils/figmaLinks.d.ts +3 -0
- package/lib/cjs/utils/designUtils/figmaLinks.js +3 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.js +35 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.mdx +69 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.stories.js +102 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.styles.js +21 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.test.js +309 -0
- package/lib/components/LabelValuePairs/LabelValuePairsLabel.js +35 -0
- package/lib/components/LabelValuePairs/LabelValuePairsRow.js +28 -0
- package/lib/components/LabelValuePairs/LabelValuePairsSubvalue.js +17 -0
- package/lib/components/LabelValuePairs/LabelValuePairsValue.js +108 -0
- package/lib/components/LabelValuePairs/constants.js +5 -0
- package/lib/components/LabelValuePairs/index.js +2 -0
- package/lib/components/LabelValuePairs/labelValuePairsAttributes.js +13 -0
- package/lib/index.js +2 -0
- package/lib/recipes/ListAndPanel.stories.js +3 -18
- package/lib/recipes/PanelContent.stories.js +11 -47
- package/lib/recipes/items.js +39 -31
- package/lib/styles/themeOverrides/onyxDarkUiLibraryOverride.js +41 -0
- package/lib/styles/themeOverrides/onyxUiLibraryOverride.js +47 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/styles/themes/next-gen/variants/variants.js +2 -0
- package/lib/styles/variants/variants.js +2 -0
- package/lib/types/index.js +1 -0
- package/lib/types/labelValuePairs.js +1 -0
- package/lib/utils/designUtils/figmaLinks.js +3 -0
- package/package.json +1 -1
package/lib/cjs/types/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context0, _context1, _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;
|
|
3
|
+
var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context0, _context1, _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;
|
|
4
4
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
5
5
|
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
|
6
6
|
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
@@ -348,8 +348,19 @@ _forEachInstanceProperty(_context29 = _Object$keys(_label)).call(_context29, fun
|
|
|
348
348
|
}
|
|
349
349
|
});
|
|
350
350
|
});
|
|
351
|
+
var _labelValuePairs = require("./labelValuePairs");
|
|
352
|
+
_forEachInstanceProperty(_context30 = _Object$keys(_labelValuePairs)).call(_context30, function (key) {
|
|
353
|
+
if (key === "default" || key === "__esModule") return;
|
|
354
|
+
if (key in exports && exports[key] === _labelValuePairs[key]) return;
|
|
355
|
+
_Object$defineProperty(exports, key, {
|
|
356
|
+
enumerable: true,
|
|
357
|
+
get: function get() {
|
|
358
|
+
return _labelValuePairs[key];
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
});
|
|
351
362
|
var _link = require("./link");
|
|
352
|
-
_forEachInstanceProperty(
|
|
363
|
+
_forEachInstanceProperty(_context31 = _Object$keys(_link)).call(_context31, function (key) {
|
|
353
364
|
if (key === "default" || key === "__esModule") return;
|
|
354
365
|
if (key in exports && exports[key] === _link[key]) return;
|
|
355
366
|
_Object$defineProperty(exports, key, {
|
|
@@ -360,7 +371,7 @@ _forEachInstanceProperty(_context30 = _Object$keys(_link)).call(_context30, func
|
|
|
360
371
|
});
|
|
361
372
|
});
|
|
362
373
|
var _listBox = require("./listBox");
|
|
363
|
-
_forEachInstanceProperty(
|
|
374
|
+
_forEachInstanceProperty(_context32 = _Object$keys(_listBox)).call(_context32, function (key) {
|
|
364
375
|
if (key === "default" || key === "__esModule") return;
|
|
365
376
|
if (key in exports && exports[key] === _listBox[key]) return;
|
|
366
377
|
_Object$defineProperty(exports, key, {
|
|
@@ -371,7 +382,7 @@ _forEachInstanceProperty(_context31 = _Object$keys(_listBox)).call(_context31, f
|
|
|
371
382
|
});
|
|
372
383
|
});
|
|
373
384
|
var _listItem = require("./listItem");
|
|
374
|
-
_forEachInstanceProperty(
|
|
385
|
+
_forEachInstanceProperty(_context33 = _Object$keys(_listItem)).call(_context33, function (key) {
|
|
375
386
|
if (key === "default" || key === "__esModule") return;
|
|
376
387
|
if (key in exports && exports[key] === _listItem[key]) return;
|
|
377
388
|
_Object$defineProperty(exports, key, {
|
|
@@ -382,7 +393,7 @@ _forEachInstanceProperty(_context32 = _Object$keys(_listItem)).call(_context32,
|
|
|
382
393
|
});
|
|
383
394
|
});
|
|
384
395
|
var _loader = require("./loader");
|
|
385
|
-
_forEachInstanceProperty(
|
|
396
|
+
_forEachInstanceProperty(_context34 = _Object$keys(_loader)).call(_context34, function (key) {
|
|
386
397
|
if (key === "default" || key === "__esModule") return;
|
|
387
398
|
if (key in exports && exports[key] === _loader[key]) return;
|
|
388
399
|
_Object$defineProperty(exports, key, {
|
|
@@ -393,7 +404,7 @@ _forEachInstanceProperty(_context33 = _Object$keys(_loader)).call(_context33, fu
|
|
|
393
404
|
});
|
|
394
405
|
});
|
|
395
406
|
var _menu = require("./menu");
|
|
396
|
-
_forEachInstanceProperty(
|
|
407
|
+
_forEachInstanceProperty(_context35 = _Object$keys(_menu)).call(_context35, function (key) {
|
|
397
408
|
if (key === "default" || key === "__esModule") return;
|
|
398
409
|
if (key in exports && exports[key] === _menu[key]) return;
|
|
399
410
|
_Object$defineProperty(exports, key, {
|
|
@@ -404,7 +415,7 @@ _forEachInstanceProperty(_context34 = _Object$keys(_menu)).call(_context34, func
|
|
|
404
415
|
});
|
|
405
416
|
});
|
|
406
417
|
var _menuItem = require("./menuItem");
|
|
407
|
-
_forEachInstanceProperty(
|
|
418
|
+
_forEachInstanceProperty(_context36 = _Object$keys(_menuItem)).call(_context36, function (key) {
|
|
408
419
|
if (key === "default" || key === "__esModule") return;
|
|
409
420
|
if (key in exports && exports[key] === _menuItem[key]) return;
|
|
410
421
|
_Object$defineProperty(exports, key, {
|
|
@@ -415,7 +426,7 @@ _forEachInstanceProperty(_context35 = _Object$keys(_menuItem)).call(_context35,
|
|
|
415
426
|
});
|
|
416
427
|
});
|
|
417
428
|
var _menuSection = require("./menuSection");
|
|
418
|
-
_forEachInstanceProperty(
|
|
429
|
+
_forEachInstanceProperty(_context37 = _Object$keys(_menuSection)).call(_context37, function (key) {
|
|
419
430
|
if (key === "default" || key === "__esModule") return;
|
|
420
431
|
if (key in exports && exports[key] === _menuSection[key]) return;
|
|
421
432
|
_Object$defineProperty(exports, key, {
|
|
@@ -426,7 +437,7 @@ _forEachInstanceProperty(_context36 = _Object$keys(_menuSection)).call(_context3
|
|
|
426
437
|
});
|
|
427
438
|
});
|
|
428
439
|
var _messages = require("./messages");
|
|
429
|
-
_forEachInstanceProperty(
|
|
440
|
+
_forEachInstanceProperty(_context38 = _Object$keys(_messages)).call(_context38, function (key) {
|
|
430
441
|
if (key === "default" || key === "__esModule") return;
|
|
431
442
|
if (key in exports && exports[key] === _messages[key]) return;
|
|
432
443
|
_Object$defineProperty(exports, key, {
|
|
@@ -437,7 +448,7 @@ _forEachInstanceProperty(_context37 = _Object$keys(_messages)).call(_context37,
|
|
|
437
448
|
});
|
|
438
449
|
});
|
|
439
450
|
var _Modal = require("./Modal");
|
|
440
|
-
_forEachInstanceProperty(
|
|
451
|
+
_forEachInstanceProperty(_context39 = _Object$keys(_Modal)).call(_context39, function (key) {
|
|
441
452
|
if (key === "default" || key === "__esModule") return;
|
|
442
453
|
if (key in exports && exports[key] === _Modal[key]) return;
|
|
443
454
|
_Object$defineProperty(exports, key, {
|
|
@@ -448,7 +459,7 @@ _forEachInstanceProperty(_context38 = _Object$keys(_Modal)).call(_context38, fun
|
|
|
448
459
|
});
|
|
449
460
|
});
|
|
450
461
|
var _navBar = require("./navBar");
|
|
451
|
-
_forEachInstanceProperty(
|
|
462
|
+
_forEachInstanceProperty(_context40 = _Object$keys(_navBar)).call(_context40, function (key) {
|
|
452
463
|
if (key === "default" || key === "__esModule") return;
|
|
453
464
|
if (key in exports && exports[key] === _navBar[key]) return;
|
|
454
465
|
_Object$defineProperty(exports, key, {
|
|
@@ -459,7 +470,7 @@ _forEachInstanceProperty(_context39 = _Object$keys(_navBar)).call(_context39, fu
|
|
|
459
470
|
});
|
|
460
471
|
});
|
|
461
472
|
var _navSideBar = require("./navSideBar");
|
|
462
|
-
_forEachInstanceProperty(
|
|
473
|
+
_forEachInstanceProperty(_context41 = _Object$keys(_navSideBar)).call(_context41, function (key) {
|
|
463
474
|
if (key === "default" || key === "__esModule") return;
|
|
464
475
|
if (key in exports && exports[key] === _navSideBar[key]) return;
|
|
465
476
|
_Object$defineProperty(exports, key, {
|
|
@@ -470,7 +481,7 @@ _forEachInstanceProperty(_context40 = _Object$keys(_navSideBar)).call(_context40
|
|
|
470
481
|
});
|
|
471
482
|
});
|
|
472
483
|
var _overlayPanel = require("./overlayPanel");
|
|
473
|
-
_forEachInstanceProperty(
|
|
484
|
+
_forEachInstanceProperty(_context42 = _Object$keys(_overlayPanel)).call(_context42, function (key) {
|
|
474
485
|
if (key === "default" || key === "__esModule") return;
|
|
475
486
|
if (key in exports && exports[key] === _overlayPanel[key]) return;
|
|
476
487
|
_Object$defineProperty(exports, key, {
|
|
@@ -481,7 +492,7 @@ _forEachInstanceProperty(_context41 = _Object$keys(_overlayPanel)).call(_context
|
|
|
481
492
|
});
|
|
482
493
|
});
|
|
483
494
|
var _passwordField = require("./passwordField");
|
|
484
|
-
_forEachInstanceProperty(
|
|
495
|
+
_forEachInstanceProperty(_context43 = _Object$keys(_passwordField)).call(_context43, function (key) {
|
|
485
496
|
if (key === "default" || key === "__esModule") return;
|
|
486
497
|
if (key in exports && exports[key] === _passwordField[key]) return;
|
|
487
498
|
_Object$defineProperty(exports, key, {
|
|
@@ -492,7 +503,7 @@ _forEachInstanceProperty(_context42 = _Object$keys(_passwordField)).call(_contex
|
|
|
492
503
|
});
|
|
493
504
|
});
|
|
494
505
|
var _phoneNumberField = require("./phoneNumberField");
|
|
495
|
-
_forEachInstanceProperty(
|
|
506
|
+
_forEachInstanceProperty(_context44 = _Object$keys(_phoneNumberField)).call(_context44, function (key) {
|
|
496
507
|
if (key === "default" || key === "__esModule") return;
|
|
497
508
|
if (key in exports && exports[key] === _phoneNumberField[key]) return;
|
|
498
509
|
_Object$defineProperty(exports, key, {
|
|
@@ -503,7 +514,7 @@ _forEachInstanceProperty(_context43 = _Object$keys(_phoneNumberField)).call(_con
|
|
|
503
514
|
});
|
|
504
515
|
});
|
|
505
516
|
var _popoverContainer = require("./popoverContainer");
|
|
506
|
-
_forEachInstanceProperty(
|
|
517
|
+
_forEachInstanceProperty(_context45 = _Object$keys(_popoverContainer)).call(_context45, function (key) {
|
|
507
518
|
if (key === "default" || key === "__esModule") return;
|
|
508
519
|
if (key in exports && exports[key] === _popoverContainer[key]) return;
|
|
509
520
|
_Object$defineProperty(exports, key, {
|
|
@@ -514,7 +525,7 @@ _forEachInstanceProperty(_context44 = _Object$keys(_popoverContainer)).call(_con
|
|
|
514
525
|
});
|
|
515
526
|
});
|
|
516
527
|
var _popoverMenu = require("./popoverMenu");
|
|
517
|
-
_forEachInstanceProperty(
|
|
528
|
+
_forEachInstanceProperty(_context46 = _Object$keys(_popoverMenu)).call(_context46, function (key) {
|
|
518
529
|
if (key === "default" || key === "__esModule") return;
|
|
519
530
|
if (key in exports && exports[key] === _popoverMenu[key]) return;
|
|
520
531
|
_Object$defineProperty(exports, key, {
|
|
@@ -525,7 +536,7 @@ _forEachInstanceProperty(_context45 = _Object$keys(_popoverMenu)).call(_context4
|
|
|
525
536
|
});
|
|
526
537
|
});
|
|
527
538
|
var _progressBar = require("./progressBar");
|
|
528
|
-
_forEachInstanceProperty(
|
|
539
|
+
_forEachInstanceProperty(_context47 = _Object$keys(_progressBar)).call(_context47, function (key) {
|
|
529
540
|
if (key === "default" || key === "__esModule") return;
|
|
530
541
|
if (key in exports && exports[key] === _progressBar[key]) return;
|
|
531
542
|
_Object$defineProperty(exports, key, {
|
|
@@ -536,7 +547,7 @@ _forEachInstanceProperty(_context46 = _Object$keys(_progressBar)).call(_context4
|
|
|
536
547
|
});
|
|
537
548
|
});
|
|
538
549
|
var _requirementsList = require("./requirementsList");
|
|
539
|
-
_forEachInstanceProperty(
|
|
550
|
+
_forEachInstanceProperty(_context48 = _Object$keys(_requirementsList)).call(_context48, function (key) {
|
|
540
551
|
if (key === "default" || key === "__esModule") return;
|
|
541
552
|
if (key in exports && exports[key] === _requirementsList[key]) return;
|
|
542
553
|
_Object$defineProperty(exports, key, {
|
|
@@ -547,7 +558,7 @@ _forEachInstanceProperty(_context47 = _Object$keys(_requirementsList)).call(_con
|
|
|
547
558
|
});
|
|
548
559
|
});
|
|
549
560
|
var _rockerButtonGroup = require("./rockerButtonGroup");
|
|
550
|
-
_forEachInstanceProperty(
|
|
561
|
+
_forEachInstanceProperty(_context49 = _Object$keys(_rockerButtonGroup)).call(_context49, function (key) {
|
|
551
562
|
if (key === "default" || key === "__esModule") return;
|
|
552
563
|
if (key in exports && exports[key] === _rockerButtonGroup[key]) return;
|
|
553
564
|
_Object$defineProperty(exports, key, {
|
|
@@ -558,7 +569,7 @@ _forEachInstanceProperty(_context48 = _Object$keys(_rockerButtonGroup)).call(_co
|
|
|
558
569
|
});
|
|
559
570
|
});
|
|
560
571
|
var _scrollBox = require("./scrollBox");
|
|
561
|
-
_forEachInstanceProperty(
|
|
572
|
+
_forEachInstanceProperty(_context50 = _Object$keys(_scrollBox)).call(_context50, function (key) {
|
|
562
573
|
if (key === "default" || key === "__esModule") return;
|
|
563
574
|
if (key in exports && exports[key] === _scrollBox[key]) return;
|
|
564
575
|
_Object$defineProperty(exports, key, {
|
|
@@ -569,7 +580,7 @@ _forEachInstanceProperty(_context49 = _Object$keys(_scrollBox)).call(_context49,
|
|
|
569
580
|
});
|
|
570
581
|
});
|
|
571
582
|
var _searchField = require("./searchField");
|
|
572
|
-
_forEachInstanceProperty(
|
|
583
|
+
_forEachInstanceProperty(_context51 = _Object$keys(_searchField)).call(_context51, function (key) {
|
|
573
584
|
if (key === "default" || key === "__esModule") return;
|
|
574
585
|
if (key in exports && exports[key] === _searchField[key]) return;
|
|
575
586
|
_Object$defineProperty(exports, key, {
|
|
@@ -580,7 +591,7 @@ _forEachInstanceProperty(_context50 = _Object$keys(_searchField)).call(_context5
|
|
|
580
591
|
});
|
|
581
592
|
});
|
|
582
593
|
var _separator = require("./separator");
|
|
583
|
-
_forEachInstanceProperty(
|
|
594
|
+
_forEachInstanceProperty(_context52 = _Object$keys(_separator)).call(_context52, function (key) {
|
|
584
595
|
if (key === "default" || key === "__esModule") return;
|
|
585
596
|
if (key in exports && exports[key] === _separator[key]) return;
|
|
586
597
|
_Object$defineProperty(exports, key, {
|
|
@@ -591,7 +602,7 @@ _forEachInstanceProperty(_context51 = _Object$keys(_separator)).call(_context51,
|
|
|
591
602
|
});
|
|
592
603
|
});
|
|
593
604
|
var _ServerErrorBoundary = require("./ServerErrorBoundary");
|
|
594
|
-
_forEachInstanceProperty(
|
|
605
|
+
_forEachInstanceProperty(_context53 = _Object$keys(_ServerErrorBoundary)).call(_context53, function (key) {
|
|
595
606
|
if (key === "default" || key === "__esModule") return;
|
|
596
607
|
if (key in exports && exports[key] === _ServerErrorBoundary[key]) return;
|
|
597
608
|
_Object$defineProperty(exports, key, {
|
|
@@ -602,7 +613,7 @@ _forEachInstanceProperty(_context52 = _Object$keys(_ServerErrorBoundary)).call(_
|
|
|
602
613
|
});
|
|
603
614
|
});
|
|
604
615
|
var _shared = require("./shared");
|
|
605
|
-
_forEachInstanceProperty(
|
|
616
|
+
_forEachInstanceProperty(_context54 = _Object$keys(_shared)).call(_context54, function (key) {
|
|
606
617
|
if (key === "default" || key === "__esModule") return;
|
|
607
618
|
if (key in exports && exports[key] === _shared[key]) return;
|
|
608
619
|
_Object$defineProperty(exports, key, {
|
|
@@ -613,7 +624,7 @@ _forEachInstanceProperty(_context53 = _Object$keys(_shared)).call(_context53, fu
|
|
|
613
624
|
});
|
|
614
625
|
});
|
|
615
626
|
var _skeleton = require("./skeleton");
|
|
616
|
-
_forEachInstanceProperty(
|
|
627
|
+
_forEachInstanceProperty(_context55 = _Object$keys(_skeleton)).call(_context55, function (key) {
|
|
617
628
|
if (key === "default" || key === "__esModule") return;
|
|
618
629
|
if (key in exports && exports[key] === _skeleton[key]) return;
|
|
619
630
|
_Object$defineProperty(exports, key, {
|
|
@@ -624,7 +635,7 @@ _forEachInstanceProperty(_context54 = _Object$keys(_skeleton)).call(_context54,
|
|
|
624
635
|
});
|
|
625
636
|
});
|
|
626
637
|
var _Stepper = require("./Stepper");
|
|
627
|
-
_forEachInstanceProperty(
|
|
638
|
+
_forEachInstanceProperty(_context56 = _Object$keys(_Stepper)).call(_context56, function (key) {
|
|
628
639
|
if (key === "default" || key === "__esModule") return;
|
|
629
640
|
if (key in exports && exports[key] === _Stepper[key]) return;
|
|
630
641
|
_Object$defineProperty(exports, key, {
|
|
@@ -635,7 +646,7 @@ _forEachInstanceProperty(_context55 = _Object$keys(_Stepper)).call(_context55, f
|
|
|
635
646
|
});
|
|
636
647
|
});
|
|
637
648
|
var _switchField = require("./switchField");
|
|
638
|
-
_forEachInstanceProperty(
|
|
649
|
+
_forEachInstanceProperty(_context57 = _Object$keys(_switchField)).call(_context57, function (key) {
|
|
639
650
|
if (key === "default" || key === "__esModule") return;
|
|
640
651
|
if (key in exports && exports[key] === _switchField[key]) return;
|
|
641
652
|
_Object$defineProperty(exports, key, {
|
|
@@ -646,7 +657,7 @@ _forEachInstanceProperty(_context56 = _Object$keys(_switchField)).call(_context5
|
|
|
646
657
|
});
|
|
647
658
|
});
|
|
648
659
|
var _tab = require("./tab");
|
|
649
|
-
_forEachInstanceProperty(
|
|
660
|
+
_forEachInstanceProperty(_context58 = _Object$keys(_tab)).call(_context58, function (key) {
|
|
650
661
|
if (key === "default" || key === "__esModule") return;
|
|
651
662
|
if (key in exports && exports[key] === _tab[key]) return;
|
|
652
663
|
_Object$defineProperty(exports, key, {
|
|
@@ -657,7 +668,7 @@ _forEachInstanceProperty(_context57 = _Object$keys(_tab)).call(_context57, funct
|
|
|
657
668
|
});
|
|
658
669
|
});
|
|
659
670
|
var _table = require("./table");
|
|
660
|
-
_forEachInstanceProperty(
|
|
671
|
+
_forEachInstanceProperty(_context59 = _Object$keys(_table)).call(_context59, function (key) {
|
|
661
672
|
if (key === "default" || key === "__esModule") return;
|
|
662
673
|
if (key in exports && exports[key] === _table[key]) return;
|
|
663
674
|
_Object$defineProperty(exports, key, {
|
|
@@ -668,7 +679,7 @@ _forEachInstanceProperty(_context58 = _Object$keys(_table)).call(_context58, fun
|
|
|
668
679
|
});
|
|
669
680
|
});
|
|
670
681
|
var _tabs = require("./tabs");
|
|
671
|
-
_forEachInstanceProperty(
|
|
682
|
+
_forEachInstanceProperty(_context60 = _Object$keys(_tabs)).call(_context60, function (key) {
|
|
672
683
|
if (key === "default" || key === "__esModule") return;
|
|
673
684
|
if (key in exports && exports[key] === _tabs[key]) return;
|
|
674
685
|
_Object$defineProperty(exports, key, {
|
|
@@ -679,7 +690,7 @@ _forEachInstanceProperty(_context59 = _Object$keys(_tabs)).call(_context59, func
|
|
|
679
690
|
});
|
|
680
691
|
});
|
|
681
692
|
var _text = require("./text");
|
|
682
|
-
_forEachInstanceProperty(
|
|
693
|
+
_forEachInstanceProperty(_context61 = _Object$keys(_text)).call(_context61, function (key) {
|
|
683
694
|
if (key === "default" || key === "__esModule") return;
|
|
684
695
|
if (key in exports && exports[key] === _text[key]) return;
|
|
685
696
|
_Object$defineProperty(exports, key, {
|
|
@@ -690,7 +701,7 @@ _forEachInstanceProperty(_context60 = _Object$keys(_text)).call(_context60, func
|
|
|
690
701
|
});
|
|
691
702
|
});
|
|
692
703
|
var _textField = require("./textField");
|
|
693
|
-
_forEachInstanceProperty(
|
|
704
|
+
_forEachInstanceProperty(_context62 = _Object$keys(_textField)).call(_context62, function (key) {
|
|
694
705
|
if (key === "default" || key === "__esModule") return;
|
|
695
706
|
if (key in exports && exports[key] === _textField[key]) return;
|
|
696
707
|
_Object$defineProperty(exports, key, {
|
|
@@ -701,7 +712,7 @@ _forEachInstanceProperty(_context61 = _Object$keys(_textField)).call(_context61,
|
|
|
701
712
|
});
|
|
702
713
|
});
|
|
703
714
|
var _timefield = require("./timefield");
|
|
704
|
-
_forEachInstanceProperty(
|
|
715
|
+
_forEachInstanceProperty(_context63 = _Object$keys(_timefield)).call(_context63, function (key) {
|
|
705
716
|
if (key === "default" || key === "__esModule") return;
|
|
706
717
|
if (key in exports && exports[key] === _timefield[key]) return;
|
|
707
718
|
_Object$defineProperty(exports, key, {
|
|
@@ -712,7 +723,7 @@ _forEachInstanceProperty(_context62 = _Object$keys(_timefield)).call(_context62,
|
|
|
712
723
|
});
|
|
713
724
|
});
|
|
714
725
|
var _tooltipTrigger = require("./tooltipTrigger");
|
|
715
|
-
_forEachInstanceProperty(
|
|
726
|
+
_forEachInstanceProperty(_context64 = _Object$keys(_tooltipTrigger)).call(_context64, function (key) {
|
|
716
727
|
if (key === "default" || key === "__esModule") return;
|
|
717
728
|
if (key in exports && exports[key] === _tooltipTrigger[key]) return;
|
|
718
729
|
_Object$defineProperty(exports, key, {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TestingAttributes } from './shared/test';
|
|
3
|
+
import { BoxProps } from './box';
|
|
4
|
+
import { HelpHintProps } from './helpHint';
|
|
5
|
+
import { IconProps } from './icon';
|
|
6
|
+
import { IconButtonProps } from './iconButton';
|
|
7
|
+
import { SkeletonProps } from './skeleton';
|
|
8
|
+
import { TextProps } from './text';
|
|
9
|
+
export type ValueType = 'COPYABLE' | 'MASKED' | 'ELEMENT';
|
|
10
|
+
interface LabelValuePairsSubComponentProps {
|
|
11
|
+
containerProps?: BoxProps & TestingAttributes;
|
|
12
|
+
textProps?: TextProps & TestingAttributes;
|
|
13
|
+
iconProps?: IconProps;
|
|
14
|
+
}
|
|
15
|
+
export interface LabelValuePairsContainerProps extends BoxProps, TestingAttributes {
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export type LabelValuePairsProps = LabelValuePairsContainerProps;
|
|
19
|
+
export type LabelValuePairsRowProps = LabelValuePairsContainerProps;
|
|
20
|
+
export interface LabelValuePairsLabelProps extends TestingAttributes, Omit<LabelValuePairsSubComponentProps, 'iconProps'> {
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
helpHint?: ReactNode;
|
|
23
|
+
helpHintProps?: HelpHintProps;
|
|
24
|
+
}
|
|
25
|
+
export interface LabelValuePairsValueProps extends TestingAttributes, LabelValuePairsSubComponentProps {
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
valueType?: ValueType;
|
|
28
|
+
isLoading?: boolean;
|
|
29
|
+
iconButtonProps?: IconButtonProps;
|
|
30
|
+
skeletonProps?: SkeletonProps;
|
|
31
|
+
}
|
|
32
|
+
export interface LabelValuePairsSubvalueProps extends TestingAttributes, TextProps {
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -123,6 +123,9 @@ var FIGMA_LINKS = exports.FIGMA_LINKS = {
|
|
|
123
123
|
inlineEditing: {
|
|
124
124
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=5244-14864&mode=design&t=1pPbrQvGkdMYBNqk-0'
|
|
125
125
|
},
|
|
126
|
+
labelValuePairs: {
|
|
127
|
+
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=43431%3A4249&mode=dev'
|
|
128
|
+
},
|
|
126
129
|
link: {
|
|
127
130
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=8708-29543&t=8Wwd3tIBh3GEjCJB-0'
|
|
128
131
|
},
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["children"];
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
5
|
+
import { Box } from '../../index';
|
|
6
|
+
import PairLabel from './LabelValuePairsLabel';
|
|
7
|
+
import Pair from './LabelValuePairsRow';
|
|
8
|
+
import PairSubvalue from './LabelValuePairsSubvalue';
|
|
9
|
+
import PairValue from './LabelValuePairsValue';
|
|
10
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
11
|
+
var displayName = 'LabelValuePairs';
|
|
12
|
+
var LabelValuePairs = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13
|
+
var children = props.children,
|
|
14
|
+
others = _objectWithoutProperties(props, _excluded);
|
|
15
|
+
return ___EmotionJSX(Box, _extends({
|
|
16
|
+
ref: ref,
|
|
17
|
+
variant: "labelValuePairs.container"
|
|
18
|
+
}, others), children);
|
|
19
|
+
});
|
|
20
|
+
LabelValuePairs.displayName = displayName;
|
|
21
|
+
|
|
22
|
+
// The subcomponents are exported bare under a `Pair*` naming family (`Pair`, `PairLabel`,
|
|
23
|
+
// `PairValue`, `PairSubvalue`) as the primary, terser usage — the short `Row`/`Label` names
|
|
24
|
+
// can't be exported bare from the top-level barrel (`libs/astro/src/index.ts`) because they
|
|
25
|
+
// already resolve to unrelated exports there: `Label` (a form-label component) and `Row`
|
|
26
|
+
// (from react-stately). Prefixing sidesteps that collision. Static properties are also
|
|
27
|
+
// attached so the namespaced `<LabelValuePairs.Row>` / `.Label` / `.Value` / `.Subvalue`
|
|
28
|
+
// access keeps working; inside the namespace the short names are unambiguous.
|
|
29
|
+
var LabelValuePairsWithSubcomponents = LabelValuePairs;
|
|
30
|
+
LabelValuePairsWithSubcomponents.Row = Pair;
|
|
31
|
+
LabelValuePairsWithSubcomponents.Label = PairLabel;
|
|
32
|
+
LabelValuePairsWithSubcomponents.Value = PairValue;
|
|
33
|
+
LabelValuePairsWithSubcomponents.Subvalue = PairSubvalue;
|
|
34
|
+
export default LabelValuePairsWithSubcomponents;
|
|
35
|
+
export { Pair, PairLabel, PairSubvalue, PairValue };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs/blocks';
|
|
2
|
+
import * as LabelValuePairsStories from './LabelValuePairs.stories';
|
|
3
|
+
|
|
4
|
+
<Meta of={LabelValuePairsStories} isTemplate />
|
|
5
|
+
|
|
6
|
+
# LabelValuePairs
|
|
7
|
+
|
|
8
|
+
LabelValuePairs renders a vertical list of labelled key/value rows. It is intended for read-only detail views such as slide-over panels, summary tabs, and profile pages.
|
|
9
|
+
|
|
10
|
+
Pairs are composed from child components. Each pair supports four value display modes, an optional help hint tooltip, a secondary sub-label, and an optional inline label icon or action element. Pairs with a falsy value are suppressed unless the pair is in a loading state.
|
|
11
|
+
|
|
12
|
+
```jsx
|
|
13
|
+
import { Icon, LabelValuePairs, Pair, PairLabel, PairValue, PairSubvalue } from '@pingux/astro';
|
|
14
|
+
|
|
15
|
+
<LabelValuePairs>
|
|
16
|
+
<Pair>
|
|
17
|
+
<PairLabel helpHint="...">
|
|
18
|
+
Username
|
|
19
|
+
<Icon aria-hidden="true" title={{ name: '' }} icon={InformationIcon} />
|
|
20
|
+
</PairLabel>
|
|
21
|
+
<PairSubvalue>Optional secondary text</PairSubvalue>
|
|
22
|
+
<PairValue valueType={ValueTypes.COPYABLE}>jsmith</PairValue>
|
|
23
|
+
</Pair>
|
|
24
|
+
</LabelValuePairs>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Required Components
|
|
28
|
+
|
|
29
|
+
`LabelValuePairs` is a public composition API, not a standalone data-driven component. Each pair must be composed from these building blocks, available both as named exports (`Pair`, `PairLabel`, `PairValue`, `PairSubvalue`) and, equivalently, as static properties on the parent (`LabelValuePairs.Row`, `.Label`, `.Value`, `.Subvalue`):
|
|
30
|
+
|
|
31
|
+
- **`Pair`** — wraps one labelled entry. Expects a `PairLabel`, optionally a `PairSubvalue`, and a `PairValue` as children. Suppresses itself (renders nothing) when its `PairValue` child's content is falsy and not loading.
|
|
32
|
+
- **`PairLabel`** — the pair's heading text, rendered as an `<h5>`. Accepts an optional `helpHint` prop. Its first child is the label text; an optional second child renders alongside it as an icon or action element (e.g. an `Icon` or `IconButton`).
|
|
33
|
+
- **`PairValue`** — the pair's value content. Accepts `valueType` (see Value Types below) and `isLoading`.
|
|
34
|
+
- **`PairSubvalue`** — optional secondary text rendered beneath the label.
|
|
35
|
+
|
|
36
|
+
### Value Types
|
|
37
|
+
|
|
38
|
+
Use the exported `ValueTypes` constant to select the display mode for a `PairValue`'s content.
|
|
39
|
+
|
|
40
|
+
| `valueType` | Behavior |
|
|
41
|
+
| ---- | --------- |
|
|
42
|
+
| _(omitted)_ | Renders the value as plain `Text`. |
|
|
43
|
+
| `ValueTypes.COPYABLE` | Wraps the value in `CopyText`, adding a copy-to-clipboard button. |
|
|
44
|
+
| `ValueTypes.MASKED` | Displays bullet characters by default. An eye toggle reveals or hides the real value. |
|
|
45
|
+
| `ValueTypes.ELEMENT` | Renders `Value`'s children directly as a React node — use for custom content. |
|
|
46
|
+
|
|
47
|
+
### Loading State
|
|
48
|
+
|
|
49
|
+
Set `isLoading` on `PairValue` to replace the value area with a skeleton placeholder. The pair still renders its label normally, and it renders even when `PairValue` has no children — useful when data is being fetched.
|
|
50
|
+
|
|
51
|
+
### Accessibility
|
|
52
|
+
|
|
53
|
+
This component adheres to standard heading and landmark semantics.
|
|
54
|
+
|
|
55
|
+
#### Keyboard Navigation
|
|
56
|
+
|
|
57
|
+
| Keys | Functions |
|
|
58
|
+
| ---- | --------- |
|
|
59
|
+
| Tab | Moves focus through interactive elements: copy buttons, masked value toggles, and help hint triggers. |
|
|
60
|
+
| Space or Enter | Activates the focused button (copy, show/hide, or help hint). |
|
|
61
|
+
| Escape | Closes an open help hint popover. |
|
|
62
|
+
|
|
63
|
+
#### Screen Readers
|
|
64
|
+
|
|
65
|
+
This component uses the following attributes to assist screen readers:
|
|
66
|
+
- Each label heading is rendered as an **`<h5>`** element, preserving document outline semantics.
|
|
67
|
+
- The `helpHint` trigger button uses **`aria-label`** derived from the row label (e.g. `"Client ID help hint"`).
|
|
68
|
+
- The masked value toggle uses **`aria-label="Show content"`** or **`"Hide content"`** to reflect the current state.
|
|
69
|
+
- Loading rows use **`role="alert"`** and **`aria-live="assertive"`** on the skeleton container so screen readers announce when content becomes available.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import CheckIcon from '@pingux/mdi-react/CheckIcon';
|
|
14
|
+
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
15
|
+
import { Box, IconWrapper, LabelValuePairs, NoticeIcon, Pair, PairLabel, PairSubvalue, PairValue, Text, ValueTypes } from '../..';
|
|
16
|
+
import { useGetTheme } from '../../hooks';
|
|
17
|
+
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
18
|
+
import statuses from '../../utils/devUtils/constants/statuses';
|
|
19
|
+
import LabelValuePairsReadme from './LabelValuePairs.mdx';
|
|
20
|
+
import { labelValuePairsArgTypes } from './labelValuePairsAttributes';
|
|
21
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
22
|
+
export default {
|
|
23
|
+
title: 'Components/LabelValuePairs',
|
|
24
|
+
component: LabelValuePairs,
|
|
25
|
+
parameters: {
|
|
26
|
+
docs: {
|
|
27
|
+
page: function page() {
|
|
28
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(LabelValuePairsReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
argTypes: _objectSpread({}, labelValuePairsArgTypes)
|
|
33
|
+
};
|
|
34
|
+
export var Default = function Default(args) {
|
|
35
|
+
return ___EmotionJSX(LabelValuePairs, args, ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, null, "Username"), ___EmotionJSX(PairValue, null, "jsmith")), ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, null, "Email"), ___EmotionJSX(PairValue, null, "jsmith@example.com")), ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, null, "Role"), ___EmotionJSX(PairValue, null, "Administrator")));
|
|
36
|
+
};
|
|
37
|
+
Default.parameters = {
|
|
38
|
+
design: {
|
|
39
|
+
type: 'figma',
|
|
40
|
+
url: FIGMA_LINKS.labelValuePairs["default"]
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export var WithCopyableValues = function WithCopyableValues(args) {
|
|
44
|
+
return ___EmotionJSX(LabelValuePairs, args, ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, null, "API Key"), ___EmotionJSX(PairValue, {
|
|
45
|
+
valueType: ValueTypes.COPYABLE
|
|
46
|
+
}, "abc123def456ghi789")), ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, null, "Client Secret"), ___EmotionJSX(PairValue, {
|
|
47
|
+
valueType: ValueTypes.COPYABLE
|
|
48
|
+
}, "supersecretvalue")));
|
|
49
|
+
};
|
|
50
|
+
export var WithMaskedValue = function WithMaskedValue(args) {
|
|
51
|
+
return ___EmotionJSX(LabelValuePairs, args, ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, null, "Password"), ___EmotionJSX(PairValue, {
|
|
52
|
+
valueType: ValueTypes.MASKED
|
|
53
|
+
}, "mypassword123")));
|
|
54
|
+
};
|
|
55
|
+
export var WithHelpHint = function WithHelpHint(args) {
|
|
56
|
+
return ___EmotionJSX(LabelValuePairs, args, ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, {
|
|
57
|
+
helpHint: "This is the unique identifier for your OAuth application."
|
|
58
|
+
}, "Client ID"), ___EmotionJSX(PairValue, null, "client-abc-123")));
|
|
59
|
+
};
|
|
60
|
+
export var WithSubLabel = function WithSubLabel(args) {
|
|
61
|
+
return ___EmotionJSX(LabelValuePairs, args, ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, null, "Domain"), ___EmotionJSX(PairSubvalue, null, "The primary domain for your environment."), ___EmotionJSX(PairValue, null, "example.com")));
|
|
62
|
+
};
|
|
63
|
+
export var WithLabelIcon = function WithLabelIcon(args) {
|
|
64
|
+
var _useGetTheme = useGetTheme(),
|
|
65
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
66
|
+
var icon = isOnyx ? ___EmotionJSX(IconWrapper, {
|
|
67
|
+
icon: CheckIcon,
|
|
68
|
+
color: "green",
|
|
69
|
+
size: "xs",
|
|
70
|
+
isCircle: true,
|
|
71
|
+
title: {
|
|
72
|
+
name: 'Verified'
|
|
73
|
+
},
|
|
74
|
+
iconProps: {
|
|
75
|
+
size: 'sm'
|
|
76
|
+
}
|
|
77
|
+
}) : ___EmotionJSX(NoticeIcon, {
|
|
78
|
+
color: "green",
|
|
79
|
+
status: statuses.SUCCESS,
|
|
80
|
+
"aria-label": "".concat(statuses.SUCCESS, "-icon"),
|
|
81
|
+
size: "xs"
|
|
82
|
+
});
|
|
83
|
+
return ___EmotionJSX(LabelValuePairs, args, ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, null, "Status", ___EmotionJSX(Box, {
|
|
84
|
+
isRow: true,
|
|
85
|
+
gap: "xs",
|
|
86
|
+
alignItems: "center"
|
|
87
|
+
}, icon, ___EmotionJSX(Text, {
|
|
88
|
+
variant: "listSubtitle",
|
|
89
|
+
color: isOnyx ? 'darkgreen' : 'green'
|
|
90
|
+
}, "Verified"))), ___EmotionJSX(PairValue, null, "Active")));
|
|
91
|
+
};
|
|
92
|
+
export var WithLoadingState = function WithLoadingState(args) {
|
|
93
|
+
return ___EmotionJSX(Box, {
|
|
94
|
+
width: "200px"
|
|
95
|
+
}, ___EmotionJSX(LabelValuePairs, args, ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, null, "Username"), ___EmotionJSX(PairValue, {
|
|
96
|
+
isLoading: true
|
|
97
|
+
})), ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, null, "Email"), ___EmotionJSX(PairValue, {
|
|
98
|
+
isLoading: true
|
|
99
|
+
})), ___EmotionJSX(Pair, null, ___EmotionJSX(PairLabel, null, "Role"), ___EmotionJSX(PairValue, {
|
|
100
|
+
isLoading: true
|
|
101
|
+
}))));
|
|
102
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var container = {
|
|
2
|
+
gap: 'md'
|
|
3
|
+
};
|
|
4
|
+
var fieldItem = {
|
|
5
|
+
gap: 'xs'
|
|
6
|
+
};
|
|
7
|
+
var value = {
|
|
8
|
+
fontWeight: 0,
|
|
9
|
+
color: 'secondary'
|
|
10
|
+
};
|
|
11
|
+
var subLabel = {
|
|
12
|
+
fontSize: 'sm',
|
|
13
|
+
fontWeight: 0,
|
|
14
|
+
color: 'secondary'
|
|
15
|
+
};
|
|
16
|
+
export default {
|
|
17
|
+
container: container,
|
|
18
|
+
fieldItem: fieldItem,
|
|
19
|
+
value: value,
|
|
20
|
+
subLabel: subLabel
|
|
21
|
+
};
|