@pingux/astro 2.211.0-alpha.0 → 2.212.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.
Files changed (60) hide show
  1. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.d.ts +14 -0
  2. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.js +70 -0
  3. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.mdx +69 -0
  4. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.stories.js +109 -0
  5. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.styles.d.ts +18 -0
  6. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.styles.js +28 -0
  7. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.test.js +315 -0
  8. package/lib/cjs/components/LabelValuePairs/LabelValuePairsLabel.d.ts +4 -0
  9. package/lib/cjs/components/LabelValuePairs/LabelValuePairsLabel.js +47 -0
  10. package/lib/cjs/components/LabelValuePairs/LabelValuePairsRow.d.ts +3 -0
  11. package/lib/cjs/components/LabelValuePairs/LabelValuePairsRow.js +40 -0
  12. package/lib/cjs/components/LabelValuePairs/LabelValuePairsSubvalue.d.ts +4 -0
  13. package/lib/cjs/components/LabelValuePairs/LabelValuePairsSubvalue.js +29 -0
  14. package/lib/cjs/components/LabelValuePairs/LabelValuePairsValue.d.ts +4 -0
  15. package/lib/cjs/components/LabelValuePairs/LabelValuePairsValue.js +120 -0
  16. package/lib/cjs/components/LabelValuePairs/constants.d.ts +5 -0
  17. package/lib/cjs/components/LabelValuePairs/constants.js +12 -0
  18. package/lib/cjs/components/LabelValuePairs/index.d.ts +2 -0
  19. package/lib/cjs/components/LabelValuePairs/index.js +62 -0
  20. package/lib/cjs/components/LabelValuePairs/labelValuePairsAttributes.d.ts +74 -0
  21. package/lib/cjs/components/LabelValuePairs/labelValuePairsAttributes.js +20 -0
  22. package/lib/cjs/index.d.ts +2 -0
  23. package/lib/cjs/index.js +71 -52
  24. package/lib/cjs/recipes/ListAndPanel.stories.js +1 -16
  25. package/lib/cjs/recipes/PanelContent.stories.js +11 -47
  26. package/lib/cjs/recipes/items.js +38 -30
  27. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
  28. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +17 -0
  29. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +17 -0
  30. package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -0
  31. package/lib/cjs/styles/variants/variants.js +2 -0
  32. package/lib/cjs/types/index.d.ts +1 -0
  33. package/lib/cjs/types/index.js +46 -35
  34. package/lib/cjs/types/labelValuePairs.d.ts +35 -0
  35. package/lib/cjs/types/labelValuePairs.js +6 -0
  36. package/lib/cjs/utils/designUtils/figmaLinks.d.ts +3 -0
  37. package/lib/cjs/utils/designUtils/figmaLinks.js +3 -0
  38. package/lib/components/LabelValuePairs/LabelValuePairs.js +35 -0
  39. package/lib/components/LabelValuePairs/LabelValuePairs.mdx +69 -0
  40. package/lib/components/LabelValuePairs/LabelValuePairs.stories.js +102 -0
  41. package/lib/components/LabelValuePairs/LabelValuePairs.styles.js +21 -0
  42. package/lib/components/LabelValuePairs/LabelValuePairs.test.js +309 -0
  43. package/lib/components/LabelValuePairs/LabelValuePairsLabel.js +35 -0
  44. package/lib/components/LabelValuePairs/LabelValuePairsRow.js +28 -0
  45. package/lib/components/LabelValuePairs/LabelValuePairsSubvalue.js +17 -0
  46. package/lib/components/LabelValuePairs/LabelValuePairsValue.js +108 -0
  47. package/lib/components/LabelValuePairs/constants.js +5 -0
  48. package/lib/components/LabelValuePairs/index.js +2 -0
  49. package/lib/components/LabelValuePairs/labelValuePairsAttributes.js +13 -0
  50. package/lib/index.js +2 -0
  51. package/lib/recipes/ListAndPanel.stories.js +3 -18
  52. package/lib/recipes/PanelContent.stories.js +11 -47
  53. package/lib/recipes/items.js +39 -31
  54. package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
  55. package/lib/styles/themes/next-gen/variants/variants.js +2 -0
  56. package/lib/styles/variants/variants.js +2 -0
  57. package/lib/types/index.js +1 -0
  58. package/lib/types/labelValuePairs.js +1 -0
  59. package/lib/utils/designUtils/figmaLinks.js +3 -0
  60. package/package.json +1 -1
@@ -11,7 +11,26 @@ var _AccountIcon = _interopRequireDefault(require("@pingux/mdi-react/AccountIcon
11
11
  var _FormSelectIcon = _interopRequireDefault(require("@pingux/mdi-react/FormSelectIcon"));
12
12
  var _index = require("../index");
13
13
  var _UserImage = _interopRequireDefault(require("../utils/devUtils/assets/UserImage.png"));
14
+ var _statuses = _interopRequireDefault(require("../utils/devUtils/constants/statuses"));
14
15
  var _react2 = require("@emotion/react");
16
+ var VerifiedValue = function VerifiedValue(_ref) {
17
+ var value = _ref.value;
18
+ return (0, _react2.jsx)(_index.Box, {
19
+ isRow: true,
20
+ gap: "md"
21
+ }, (0, _react2.jsx)(_index.Text, null, value), (0, _react2.jsx)(_index.Box, {
22
+ isRow: true,
23
+ gap: "xs"
24
+ }, (0, _react2.jsx)(_index.NoticeIcon, {
25
+ color: "success.dark",
26
+ status: _statuses["default"].SUCCESS,
27
+ "aria-label": "".concat(_statuses["default"].SUCCESS, "-icon"),
28
+ size: "xs"
29
+ }), (0, _react2.jsx)(_index.Text, {
30
+ variant: "listSubtitle",
31
+ color: "success.dark"
32
+ }, "Verified")));
33
+ };
15
34
  var items = exports.items = [{
16
35
  email: 'dburkitt5@columbia.edu',
17
36
  firstName: 'Nicola',
@@ -78,58 +97,47 @@ var items = exports.items = [{
78
97
  lastName: 'Idel',
79
98
  icon: _AccountIcon["default"]
80
99
  }];
100
+ var H4Label = function H4Label(_ref2) {
101
+ var children = _ref2.children;
102
+ return (0, _react2.jsx)(_index.PairLabel, {
103
+ textProps: {
104
+ as: 'h3'
105
+ }
106
+ }, children);
107
+ };
81
108
  var personalData = exports.personalData = {
82
109
  contactInfo: {
83
110
  label: 'Contact Info',
84
111
  key: 'contactInfoKey',
85
- fields: [{
86
- label: 'Email',
87
- value: 'ednepomuceno@pingidentity.com',
88
- isVerified: true
89
- }, {
90
- label: 'Primary',
91
- value: '+1 767-777-3333'
92
- }, {
93
- label: 'Address',
94
- value: '1234 W California St, Denver CO 80101'
95
- }]
112
+ rows: (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.Pair, null, (0, _react2.jsx)(H4Label, null, "Email"), (0, _react2.jsx)(_index.PairValue, {
113
+ valueType: _index.ValueTypes.ELEMENT
114
+ }, (0, _react2.jsx)(VerifiedValue, {
115
+ value: "ednepomuceno@pingidentity.com"
116
+ }))), (0, _react2.jsx)(_index.Pair, null, (0, _react2.jsx)(H4Label, null, "Primary"), (0, _react2.jsx)(_index.PairValue, null, "+1 767-777-3333")), (0, _react2.jsx)(_index.Pair, null, (0, _react2.jsx)(H4Label, null, "Address"), (0, _react2.jsx)(_index.PairValue, null, "1234 W California St, Denver CO 80101")))
96
117
  },
97
118
  personalInfo: {
98
119
  label: 'Personal Info',
99
120
  key: 'personalInfoKey',
100
121
  image: _UserImage["default"],
101
- fields: [{
102
- label: 'Given Name',
103
- value: 'Ed'
104
- }, {
105
- label: 'Famile Name',
106
- value: 'Nepomuceno'
107
- }]
122
+ givenName: 'Ed',
123
+ familyName: 'Nepomuceno',
124
+ rows: (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.Pair, null, (0, _react2.jsx)(H4Label, null, "Given Name"), (0, _react2.jsx)(_index.PairValue, null, "Ed")), (0, _react2.jsx)(_index.Pair, null, (0, _react2.jsx)(H4Label, null, "Famile Name"), (0, _react2.jsx)(_index.PairValue, null, "Nepomuceno")))
108
125
  },
109
126
  companyInfo: {
110
127
  label: 'Company Info',
111
128
  key: 'companyInfoKey',
112
- fields: [{
113
- label: 'Tile',
114
- value: 'Interaction Designer'
115
- }]
129
+ rows: (0, _react2.jsx)(_index.Pair, null, (0, _react2.jsx)(H4Label, null, "Tile"), (0, _react2.jsx)(_index.PairValue, null, "Interaction Designer"))
116
130
  },
117
131
  customAttributes: {
118
132
  label: 'Custom Attributes',
119
133
  key: 'customAttributesKey',
120
- fields: [{
121
- label: 'T-Shirt Size',
122
- value: 'Large'
123
- }, {
124
- label: 'Example Multi-Value Attribute',
125
- value: 'value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,'
126
- }]
134
+ rows: (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.Pair, null, (0, _react2.jsx)(H4Label, null, "T-Shirt Size"), (0, _react2.jsx)(_index.PairValue, null, "Large")), (0, _react2.jsx)(_index.Pair, null, (0, _react2.jsx)(H4Label, null, "Example Multi-Value Attribute"), (0, _react2.jsx)(_index.PairValue, null, "value,value,value,value,value,value,value,value,value,value, value,value,value,value,value,value,value,value,value,")))
127
135
  },
128
136
  jsonAttributes: {
129
137
  label: 'JSON Attributes',
130
138
  key: 'jsonAttributesKey',
131
139
  badges: ['Address', 'Contact', 'Another Json'],
132
- fields: []
140
+ rows: null
133
141
  }
134
142
  };
135
143
  var colorBlockButtons = exports.colorBlockButtons = [{
@@ -5,7 +5,7 @@ _Object$defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.onyxOnlyRecipes = exports.nextGenOnlyComponents = exports["default"] = exports.componentSpecificNextGenBlacklist = exports.astroBlacklistStory = void 0;
8
- var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'MaterialSymbolIcon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavList', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PhoneNumberField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RangeCalendar', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box', 'TimeField'];
8
+ var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'MaterialSymbolIcon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavList', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PhoneNumberField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RangeCalendar', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box', 'TimeField', 'LabelValuePairs'];
9
9
  var componentSpecificNextGenBlacklist = exports.componentSpecificNextGenBlacklist = {
10
10
  AstroProvider: ['Default', 'With Custom Theme Override'],
11
11
  Messages: ['Customization'],
@@ -5761,6 +5761,23 @@ declare const _default: {
5761
5761
  fontSize: any;
5762
5762
  };
5763
5763
  };
5764
+ labelValuePairs: {
5765
+ container: {
5766
+ gap: string;
5767
+ };
5768
+ fieldItem: {
5769
+ gap: string;
5770
+ };
5771
+ value: {
5772
+ fontWeight: number;
5773
+ color: string;
5774
+ };
5775
+ subLabel: {
5776
+ fontSize: string;
5777
+ fontWeight: number;
5778
+ color: string;
5779
+ };
5780
+ };
5764
5781
  listBox: {
5765
5782
  container: {
5766
5783
  p: any;
@@ -832,6 +832,23 @@ declare const _default: {
832
832
  fontSize: any;
833
833
  };
834
834
  };
835
+ labelValuePairs: {
836
+ container: {
837
+ gap: string;
838
+ };
839
+ fieldItem: {
840
+ gap: string;
841
+ };
842
+ value: {
843
+ fontWeight: number;
844
+ color: string;
845
+ };
846
+ subLabel: {
847
+ fontSize: string;
848
+ fontWeight: number;
849
+ color: string;
850
+ };
851
+ };
835
852
  listBox: {
836
853
  container: {
837
854
  p: any;
@@ -18,6 +18,7 @@ exports["default"] = exports.badgeDeleteButton = void 0;
18
18
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
19
19
  var _onyxTokens = require("@pingux/onyx-tokens");
20
20
  var _Attachment = _interopRequireDefault(require("../../../../components/AIComponents/Attachment/Attachment.styles"));
21
+ var _LabelValuePairs = _interopRequireDefault(require("../../../../components/LabelValuePairs/LabelValuePairs.styles"));
21
22
  var _Skeleton = _interopRequireDefault(require("../../../../components/Skeleton/Skeleton.styles"));
22
23
  var _codeView = _interopRequireDefault(require("../codeView/codeView"));
23
24
  var _sizes = _interopRequireDefault(require("../sizes"));
@@ -479,6 +480,7 @@ var _default = exports["default"] = {
479
480
  footer: _footer.footer,
480
481
  helpHint: helpHint,
481
482
  iconWrapper: _iconWrapper["default"],
483
+ labelValuePairs: _LabelValuePairs["default"],
482
484
  listBox: listBox,
483
485
  listView: _listview.listView,
484
486
  listViewItem: _listview.listViewItem,
@@ -36,6 +36,7 @@ var _Footer = _interopRequireDefault(require("../../components/Footer/Footer.sty
36
36
  var _GridList = _interopRequireDefault(require("../../components/GridList/GridList.styles"));
37
37
  var _HelpHint = _interopRequireDefault(require("../../components/HelpHint/HelpHint.styles"));
38
38
  var _imageUpload = _interopRequireDefault(require("../../components/ImageUploadField/imageUpload"));
39
+ var _LabelValuePairs = _interopRequireDefault(require("../../components/LabelValuePairs/LabelValuePairs.styles"));
39
40
  var _ListBox = _interopRequireDefault(require("../../components/ListBox/ListBox.styles"));
40
41
  var _ListItem = _interopRequireDefault(require("../../components/ListItem/ListItem.styles"));
41
42
  var _ListView = _interopRequireDefault(require("../../components/ListView/ListView.styles"));
@@ -95,6 +96,7 @@ var _default = exports["default"] = _objectSpread(_objectSpread({
95
96
  gridList: _GridList["default"],
96
97
  helpHint: _HelpHint["default"],
97
98
  imageUpload: _imageUpload["default"],
99
+ labelValuePairs: _LabelValuePairs["default"],
98
100
  listBox: _ListBox["default"],
99
101
  listItem: _ListItem["default"],
100
102
  listView: _ListView["default"],
@@ -29,6 +29,7 @@ export * from './iconWrapper';
29
29
  export * from './input';
30
30
  export * from './item';
31
31
  export * from './label';
32
+ export * from './labelValuePairs';
32
33
  export * from './link';
33
34
  export * from './listBox';
34
35
  export * from './listItem';
@@ -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(_context30 = _Object$keys(_link)).call(_context30, function (key) {
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(_context31 = _Object$keys(_listBox)).call(_context31, function (key) {
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(_context32 = _Object$keys(_listItem)).call(_context32, function (key) {
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(_context33 = _Object$keys(_loader)).call(_context33, function (key) {
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(_context34 = _Object$keys(_menu)).call(_context34, function (key) {
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(_context35 = _Object$keys(_menuItem)).call(_context35, function (key) {
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(_context36 = _Object$keys(_menuSection)).call(_context36, function (key) {
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(_context37 = _Object$keys(_messages)).call(_context37, function (key) {
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(_context38 = _Object$keys(_Modal)).call(_context38, function (key) {
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(_context39 = _Object$keys(_navBar)).call(_context39, function (key) {
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(_context40 = _Object$keys(_navSideBar)).call(_context40, function (key) {
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(_context41 = _Object$keys(_overlayPanel)).call(_context41, function (key) {
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(_context42 = _Object$keys(_passwordField)).call(_context42, function (key) {
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(_context43 = _Object$keys(_phoneNumberField)).call(_context43, function (key) {
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(_context44 = _Object$keys(_popoverContainer)).call(_context44, function (key) {
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(_context45 = _Object$keys(_popoverMenu)).call(_context45, function (key) {
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(_context46 = _Object$keys(_progressBar)).call(_context46, function (key) {
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(_context47 = _Object$keys(_requirementsList)).call(_context47, function (key) {
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(_context48 = _Object$keys(_rockerButtonGroup)).call(_context48, function (key) {
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(_context49 = _Object$keys(_scrollBox)).call(_context49, function (key) {
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(_context50 = _Object$keys(_searchField)).call(_context50, function (key) {
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(_context51 = _Object$keys(_separator)).call(_context51, function (key) {
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(_context52 = _Object$keys(_ServerErrorBoundary)).call(_context52, function (key) {
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(_context53 = _Object$keys(_shared)).call(_context53, function (key) {
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(_context54 = _Object$keys(_skeleton)).call(_context54, function (key) {
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(_context55 = _Object$keys(_Stepper)).call(_context55, function (key) {
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(_context56 = _Object$keys(_switchField)).call(_context56, function (key) {
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(_context57 = _Object$keys(_tab)).call(_context57, function (key) {
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(_context58 = _Object$keys(_table)).call(_context58, function (key) {
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(_context59 = _Object$keys(_tabs)).call(_context59, function (key) {
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(_context60 = _Object$keys(_text)).call(_context60, function (key) {
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(_context61 = _Object$keys(_textField)).call(_context61, function (key) {
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(_context62 = _Object$keys(_timefield)).call(_context62, function (key) {
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(_context63 = _Object$keys(_tooltipTrigger)).call(_context63, function (key) {
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 {};
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
@@ -116,6 +116,9 @@ export declare const FIGMA_LINKS: {
116
116
  inlineEditing: {
117
117
  default: string;
118
118
  };
119
+ labelValuePairs: {
120
+ default: string;
121
+ };
119
122
  link: {
120
123
  default: string;
121
124
  };
@@ -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 };