@pingux/astro 2.54.0-alpha.4 → 2.55.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 (101) hide show
  1. package/lib/cjs/components/ArrayField/ArrayField.js +2 -1
  2. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +1 -1
  3. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.test.js +2 -3
  4. package/lib/cjs/components/Button/Button.js +4 -2
  5. package/lib/cjs/components/CheckboxField/CheckboxField.js +4 -2
  6. package/lib/cjs/components/ColorField/ColorField.js +4 -2
  7. package/lib/cjs/components/ComboBoxField/ComboBoxField.js +4 -2
  8. package/lib/cjs/components/DatePicker/DatePicker.js +4 -2
  9. package/lib/cjs/components/FileInputField/FileInputField.js +4 -2
  10. package/lib/cjs/components/HelpHint/HelpHint.stories.js +7 -7
  11. package/lib/cjs/components/IconButton/IconButton.js +4 -2
  12. package/lib/cjs/components/IconButton/IconButton.styles.d.ts +72 -1
  13. package/lib/cjs/components/ImageUploadField/ImageUploadField.js +4 -2
  14. package/lib/cjs/components/Input/Input.js +7 -6
  15. package/lib/cjs/components/LinkSelectField/LinkSelectField.js +4 -2
  16. package/lib/cjs/components/ListViewItem/ListViewItem.js +4 -2
  17. package/lib/cjs/components/Messages/Message.d.ts +9 -0
  18. package/lib/cjs/components/Messages/Message.js +16 -46
  19. package/lib/cjs/components/Messages/Message.styles.d.ts +151 -0
  20. package/lib/cjs/components/Messages/Messages.d.ts +4 -0
  21. package/lib/cjs/components/Messages/Messages.js +2 -15
  22. package/lib/cjs/components/Messages/Messages.stories.d.ts +128 -0
  23. package/lib/cjs/components/Messages/Messages.stories.js +96 -16
  24. package/lib/cjs/components/Messages/Messages.test.d.ts +1 -0
  25. package/lib/cjs/components/Messages/Messages.test.js +9 -9
  26. package/lib/cjs/components/Messages/index.d.ts +3 -0
  27. package/lib/cjs/components/Messages/index.js +2 -3
  28. package/lib/cjs/components/Messages/utils/index.d.ts +2 -0
  29. package/lib/cjs/components/Messages/utils/messagesReducer.d.ts +107 -0
  30. package/lib/cjs/components/Messages/utils/messagesReducer.js +29 -15
  31. package/lib/cjs/components/Messages/utils/multiMessagesReducer.d.ts +83 -0
  32. package/lib/cjs/components/Messages/utils/multiMessagesReducer.js +20 -14
  33. package/lib/cjs/components/Messages/utils/tests/messagesReducer.test.d.ts +1 -0
  34. package/lib/cjs/components/Messages/utils/tests/messagesReducer.test.js +4 -3
  35. package/lib/cjs/components/Messages/utils/tests/multiMessagesReducer.test.d.ts +1 -0
  36. package/lib/cjs/components/Messages/utils/tests/multiMessagesReducer.test.js +3 -2
  37. package/lib/cjs/components/MultivaluesField/MultivaluesField.js +2 -3
  38. package/lib/cjs/components/NumberField/NumberField.js +2 -1
  39. package/lib/cjs/components/PasswordField/PasswordField.js +4 -2
  40. package/lib/cjs/components/RadioGroupField/RadioGroupField.js +4 -2
  41. package/lib/cjs/components/SearchField/SearchField.js +4 -2
  42. package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +2 -1
  43. package/lib/cjs/components/SwitchField/SwitchField.js +5 -3
  44. package/lib/cjs/components/Tab/Tab.js +2 -1
  45. package/lib/cjs/components/TextAreaField/TextAreaField.js +4 -2
  46. package/lib/cjs/components/TextField/TextField.js +4 -2
  47. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.js +2 -1
  48. package/lib/cjs/recipes/ListAndPanel.stories.js +315 -115
  49. package/lib/cjs/recipes/PanelContent.stories.js +26 -168
  50. package/lib/cjs/recipes/items.js +152 -2
  51. package/lib/cjs/types/index.d.ts +1 -0
  52. package/lib/cjs/types/index.js +25 -14
  53. package/lib/cjs/types/item.d.ts +2 -0
  54. package/lib/cjs/types/messages.d.ts +43 -0
  55. package/lib/cjs/types/messages.js +6 -0
  56. package/lib/cjs/utils/devUtils/constants/pendoID.d.ts +3 -0
  57. package/lib/cjs/utils/devUtils/constants/pendoID.js +13 -0
  58. package/lib/components/ArrayField/ArrayField.js +2 -1
  59. package/lib/components/Breadcrumbs/Breadcrumbs.js +1 -1
  60. package/lib/components/Breadcrumbs/Breadcrumbs.test.js +2 -3
  61. package/lib/components/Button/Button.js +4 -2
  62. package/lib/components/CheckboxField/CheckboxField.js +4 -2
  63. package/lib/components/ColorField/ColorField.js +4 -2
  64. package/lib/components/ComboBoxField/ComboBoxField.js +4 -2
  65. package/lib/components/DatePicker/DatePicker.js +4 -2
  66. package/lib/components/FileInputField/FileInputField.js +4 -2
  67. package/lib/components/HelpHint/HelpHint.stories.js +7 -7
  68. package/lib/components/IconButton/IconButton.js +4 -2
  69. package/lib/components/ImageUploadField/ImageUploadField.js +4 -2
  70. package/lib/components/Input/Input.js +6 -5
  71. package/lib/components/LinkSelectField/LinkSelectField.js +4 -2
  72. package/lib/components/ListViewItem/ListViewItem.js +4 -2
  73. package/lib/components/Messages/Message.js +14 -46
  74. package/lib/components/Messages/Messages.js +2 -15
  75. package/lib/components/Messages/Messages.stories.js +95 -15
  76. package/lib/components/Messages/Messages.test.js +9 -9
  77. package/lib/components/Messages/index.js +1 -1
  78. package/lib/components/Messages/utils/messagesReducer.js +27 -13
  79. package/lib/components/Messages/utils/multiMessagesReducer.js +20 -10
  80. package/lib/components/Messages/utils/tests/messagesReducer.test.js +4 -3
  81. package/lib/components/Messages/utils/tests/multiMessagesReducer.test.js +9 -8
  82. package/lib/components/MultivaluesField/MultivaluesField.js +3 -4
  83. package/lib/components/NumberField/NumberField.js +2 -1
  84. package/lib/components/PasswordField/PasswordField.js +4 -2
  85. package/lib/components/RadioGroupField/RadioGroupField.js +4 -2
  86. package/lib/components/SearchField/SearchField.js +4 -2
  87. package/lib/components/SelectFieldBase/SelectFieldBase.js +2 -1
  88. package/lib/components/SwitchField/SwitchField.js +5 -3
  89. package/lib/components/Tab/Tab.js +2 -1
  90. package/lib/components/TextAreaField/TextAreaField.js +4 -2
  91. package/lib/components/TextField/TextField.js +4 -2
  92. package/lib/components/TimeZonePicker/TimeZonePicker.js +2 -1
  93. package/lib/recipes/ListAndPanel.stories.js +315 -115
  94. package/lib/recipes/PanelContent.stories.js +16 -158
  95. package/lib/recipes/items.js +148 -1
  96. package/lib/types/index.js +1 -0
  97. package/lib/types/messages.js +1 -0
  98. package/lib/utils/devUtils/constants/pendoID.js +5 -0
  99. package/package.json +1 -1
  100. package/lib/cjs/components/Messages/Messages.reducer.js +0 -51
  101. package/lib/components/Messages/Messages.reducer.js +0 -41
@@ -22,6 +22,7 @@ var _index = require("../index");
22
22
  var _figmaLinks = require("../utils/designUtils/figmaLinks.ts");
23
23
  var _UserImage = _interopRequireDefault(require("../utils/devUtils/assets/UserImage.png"));
24
24
  var _statuses = _interopRequireDefault(require("../utils/devUtils/constants/statuses"));
25
+ var _items = require("./items");
25
26
  var _react2 = require("@emotion/react");
26
27
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
28
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -36,76 +37,6 @@ var _default = {
36
37
  }
37
38
  };
38
39
  exports["default"] = _default;
39
- var colorBlockButtons = [{
40
- text: 'Groups',
41
- subtext: '21',
42
- isConfigured: true
43
- }, {
44
- text: 'Population',
45
- subtext: 'Denver',
46
- isConfigured: true
47
- }, {
48
- text: 'MFA',
49
- subtext: 'Enabled',
50
- isConfigured: true
51
- }, {
52
- text: 'Roles',
53
- subtext: '0'
54
- }];
55
- var data = {
56
- contactInfo: {
57
- label: 'Contact Info',
58
- key: 'contactInfoKey',
59
- fields: [{
60
- label: 'Email',
61
- value: 'ednepomuceno@pingidentity.com',
62
- isVerified: true
63
- }, {
64
- label: 'Primary',
65
- value: '+1 767-777-3333'
66
- }, {
67
- label: 'Address',
68
- value: '1234 W California St, Denver CO 80101'
69
- }]
70
- },
71
- personalInfo: {
72
- label: 'Personal Info',
73
- key: 'personalInfoKey',
74
- image: _UserImage["default"],
75
- fields: [{
76
- label: 'Given Name',
77
- value: 'Ed'
78
- }, {
79
- label: 'Famile Name',
80
- value: 'Nepomuceno'
81
- }]
82
- },
83
- companyInfo: {
84
- label: 'Company Info',
85
- key: 'companyInfoKey',
86
- fields: [{
87
- label: 'Tile',
88
- value: 'Interaction Designer'
89
- }]
90
- },
91
- customAttributes: {
92
- label: 'Custom Attributes',
93
- key: 'customAttributesKey',
94
- fields: [{
95
- label: 'T-Shirt Size',
96
- value: 'Large'
97
- }, {
98
- label: 'Example Multi-Value Attribute',
99
- value: 'value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,'
100
- }]
101
- },
102
- jsonAttributes: {
103
- label: 'JSON Attributes',
104
- key: 'jsonAttributesKey',
105
- badges: ['Address', 'Contact', 'Another Json'],
106
- fields: []
107
- }
108
- };
109
40
  var OverlayWrapper = function OverlayWrapper(_ref) {
110
41
  var _context, _context2, _context3;
111
42
  var children = _ref.children,
@@ -115,7 +46,7 @@ var OverlayWrapper = function OverlayWrapper(_ref) {
115
46
  }),
116
47
  state = _useOverlayPanelState.state;
117
48
  var triggerRef = (0, _react.useRef)();
118
- var personalInfo = data.personalInfo;
49
+ var personalInfo = _items.personalData.personalInfo;
119
50
  var fields = personalInfo.fields;
120
51
  var renderBreadcrumbs = (0, _react2.jsx)(_index.Breadcrumbs, {
121
52
  icon: _ChevronRightIcon["default"]
@@ -171,7 +102,7 @@ var DisplayPanel = function DisplayPanel() {
171
102
  isRow: true,
172
103
  gap: "md",
173
104
  mb: "20px"
174
- }, (0, _map["default"])(colorBlockButtons).call(colorBlockButtons, function (tileData) {
105
+ }, (0, _map["default"])(_items.colorBlockButtons).call(_items.colorBlockButtons, function (tileData) {
175
106
  return (0, _react2.jsx)(ColorBlockButton, {
176
107
  buttonData: tileData,
177
108
  key: "".concat(tileData.text, "-key")
@@ -180,31 +111,31 @@ var DisplayPanel = function DisplayPanel() {
180
111
  isRow: true,
181
112
  justifyContent: "space-between"
182
113
  }, (0, _react2.jsx)(_index.AccordionGroup, {
183
- defaultExpandedKeys: (0, _map["default"])(_context4 = (0, _keys["default"])(data)).call(_context4, function (item) {
184
- return data[item].key;
114
+ defaultExpandedKeys: (0, _map["default"])(_context4 = (0, _keys["default"])(_items.personalData)).call(_context4, function (item) {
115
+ return _items.personalData[item].key;
185
116
  }),
186
117
  labelHeadingTag: "h2"
187
- }, (0, _map["default"])(_context5 = (0, _keys["default"])(data)).call(_context5, function (item) {
118
+ }, (0, _map["default"])(_context5 = (0, _keys["default"])(_items.personalData)).call(_context5, function (item) {
188
119
  var _context6;
189
120
  return (0, _react2.jsx)(_index.Item, {
190
- "data-id": data[item].label,
191
- key: data[item].key,
192
- label: data[item].label,
193
- textValue: data[item].label
194
- }, data[item].image ? (0, _react2.jsx)(_index.Box, {
121
+ "data-id": _items.personalData[item].label,
122
+ key: _items.personalData[item].key,
123
+ label: _items.personalData[item].label,
124
+ textValue: _items.personalData[item].label
125
+ }, _items.personalData[item].image ? (0, _react2.jsx)(_index.Box, {
195
126
  isRow: true,
196
127
  gap: "md"
197
128
  }, (0, _react2.jsx)(_index.Image, {
198
129
  src: _UserImage["default"],
199
130
  alt: "user"
200
131
  }), (0, _react2.jsx)(LabelValuePairs, {
201
- fields: data[item].fields
132
+ fields: _items.personalData[item].fields
202
133
  })) : (0, _react2.jsx)(LabelValuePairs, {
203
- fields: data[item].fields
204
- }), data[item].badges && (0, _react2.jsx)(_index.Box, {
134
+ fields: _items.personalData[item].fields
135
+ }), _items.personalData[item].badges && (0, _react2.jsx)(_index.Box, {
205
136
  isRow: true,
206
137
  gap: "sm"
207
- }, (0, _map["default"])(_context6 = data[item].badges).call(_context6, function (badge) {
138
+ }, (0, _map["default"])(_context6 = _items.personalData[item].badges).call(_context6, function (badge) {
208
139
  return (0, _react2.jsx)(_index.Badge, {
209
140
  label: badge,
210
141
  variant: "defaultBadge",
@@ -274,7 +205,7 @@ DisplayPanel.parameters = {
274
205
  };
275
206
  var ColorBlockButton = function ColorBlockButton(_ref2) {
276
207
  var _ref2$buttonData = _ref2.buttonData,
277
- buttonData = _ref2$buttonData === void 0 ? colorBlockButtons[0] : _ref2$buttonData;
208
+ buttonData = _ref2$buttonData === void 0 ? _items.colorBlockButtons[0] : _ref2$buttonData;
278
209
  return (0, _react2.jsx)(_index.Button, {
279
210
  variant: "colorBlock",
280
211
  className: buttonData.isConfigured ? 'is-configured' : ''
@@ -292,7 +223,7 @@ var ColorBlockButton = function ColorBlockButton(_ref2) {
292
223
  exports.ColorBlockButton = ColorBlockButton;
293
224
  var LabelValuePairs = function LabelValuePairs(_ref3) {
294
225
  var _ref3$fields = _ref3.fields,
295
- fields = _ref3$fields === void 0 ? data.contactInfo.fields : _ref3$fields;
226
+ fields = _ref3$fields === void 0 ? _items.personalData.contactInfo.fields : _ref3$fields;
296
227
  return (0, _react2.jsx)(_index.Box, {
297
228
  gap: "md",
298
229
  maxWidth: "675px"
@@ -323,79 +254,6 @@ var LabelValuePairs = function LabelValuePairs(_ref3) {
323
254
  }));
324
255
  };
325
256
  exports.LabelValuePairs = LabelValuePairs;
326
- var editData = {
327
- personalInfo: {
328
- label: 'Personal Info',
329
- key: 'personalInfoKey',
330
- image: _UserImage["default"],
331
- fields: [{
332
- label: 'Prefix',
333
- value: ''
334
- }, {
335
- label: 'Given Name',
336
- value: 'Ed'
337
- }, {
338
- label: 'Middle Name',
339
- value: ''
340
- }, {
341
- label: 'Family Name',
342
- value: 'Nepomuceno'
343
- }, {
344
- label: 'Suffix',
345
- value: ''
346
- }, {
347
- label: 'Formatted',
348
- value: ''
349
- }, {
350
- label: 'Nickname',
351
- value: ''
352
- }]
353
- },
354
- contactInfo: {
355
- label: 'Contact Info',
356
- key: 'contactInfoKey',
357
- fields: [{
358
- label: 'Email',
359
- value: 'ednepomuceno@pingidentity.com',
360
- slot: (0, _react2.jsx)(_index.CheckboxField, {
361
- mt: "xs",
362
- label: "Require Email to be Verified"
363
- })
364
- }, {
365
- label: 'Phone Number',
366
- value: '123-456-7890'
367
- }, {
368
- label: 'Street Address',
369
- value: '123 Example St'
370
- }, {
371
- label: 'Country Code',
372
- value: ''
373
- }, {
374
- label: 'Loality',
375
- value: ''
376
- }, {
377
- label: 'Region',
378
- value: ''
379
- }, {
380
- label: 'Zip Code',
381
- value: '12345'
382
- }]
383
- },
384
- companyInfo: {
385
- label: 'Company Info',
386
- key: 'companyInfoKey',
387
- fields: [{
388
- label: 'Account ID',
389
- value: ''
390
- }, {
391
- label: 'Type',
392
- value: ''
393
- }, {
394
- label: 'Title',
395
- value: ''
396
- }]
397
- }
398
- };
399
257
  var EditPanel = function EditPanel() {
400
258
  var _context7, _context8, _context9;
401
259
  return (0, _react2.jsx)(OverlayWrapper, {
@@ -418,26 +276,26 @@ var EditPanel = function EditPanel() {
418
276
  }, (0, _react2.jsx)(_index.Item, {
419
277
  key: "population"
420
278
  }, "Denver"))), (0, _react2.jsx)(_index.AccordionGroup, {
421
- defaultExpandedKeys: (0, _concat["default"])(_context7 = []).call(_context7, (0, _map["default"])(_context8 = (0, _keys["default"])(editData)).call(_context8, function (item) {
422
- return editData[item].key;
279
+ defaultExpandedKeys: (0, _concat["default"])(_context7 = []).call(_context7, (0, _map["default"])(_context8 = (0, _keys["default"])(_items.editData)).call(_context8, function (item) {
280
+ return _items.editData[item].key;
423
281
  }), ['preferencesKey', 'customAttributesKey', 'jsonAttributesKey']),
424
282
  labelHeadingTag: "h2"
425
- }, (0, _map["default"])(_context9 = (0, _keys["default"])(editData)).call(_context9, function (item) {
283
+ }, (0, _map["default"])(_context9 = (0, _keys["default"])(_items.editData)).call(_context9, function (item) {
426
284
  var _context10;
427
285
  return (0, _react2.jsx)(_index.Item, {
428
- "data-id": editData[item].label,
429
- key: editData[item].key,
430
- label: editData[item].label,
431
- textValue: editData[item].label
286
+ "data-id": _items.editData[item].label,
287
+ key: _items.editData[item].key,
288
+ label: _items.editData[item].label,
289
+ textValue: _items.editData[item].label
432
290
  }, (0, _react2.jsx)(_index.Box, {
433
291
  gap: "md",
434
292
  width: "500px"
435
- }, editData[item].image && (0, _react2.jsx)(_index.ImageUploadField, {
293
+ }, _items.editData[item].image && (0, _react2.jsx)(_index.ImageUploadField, {
436
294
  label: "Photo",
437
295
  previewHeight: 40,
438
296
  previewWidth: 40,
439
297
  previewImage: _UserImage["default"]
440
- }), (0, _map["default"])(_context10 = editData[item].fields).call(_context10, function (_ref5) {
298
+ }), (0, _map["default"])(_context10 = _items.editData[item].fields).call(_context10, function (_ref5) {
441
299
  var label = _ref5.label,
442
300
  value = _ref5.value,
443
301
  slot = _ref5.slot;
@@ -5,9 +5,13 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
5
5
  _Object$defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.items = void 0;
8
+ exports.personalData = exports.items = exports.editData = exports.colorBlockButtons = void 0;
9
+ var _react = _interopRequireDefault(require("react"));
9
10
  var _AccountIcon = _interopRequireDefault(require("@pingux/mdi-react/AccountIcon"));
10
11
  var _FormSelectIcon = _interopRequireDefault(require("@pingux/mdi-react/FormSelectIcon"));
12
+ var _index = require("../index");
13
+ var _UserImage = _interopRequireDefault(require("../utils/devUtils/assets/UserImage.png"));
14
+ var _react2 = require("@emotion/react");
11
15
  var items = [{
12
16
  email: 'dburkitt5@columbia.edu',
13
17
  firstName: 'Nicola',
@@ -74,4 +78,150 @@ var items = [{
74
78
  lastName: 'Idel',
75
79
  icon: _AccountIcon["default"]
76
80
  }];
77
- exports.items = items;
81
+ exports.items = items;
82
+ var personalData = {
83
+ contactInfo: {
84
+ label: 'Contact Info',
85
+ key: 'contactInfoKey',
86
+ fields: [{
87
+ label: 'Email',
88
+ value: 'ednepomuceno@pingidentity.com',
89
+ isVerified: true
90
+ }, {
91
+ label: 'Primary',
92
+ value: '+1 767-777-3333'
93
+ }, {
94
+ label: 'Address',
95
+ value: '1234 W California St, Denver CO 80101'
96
+ }]
97
+ },
98
+ personalInfo: {
99
+ label: 'Personal Info',
100
+ key: 'personalInfoKey',
101
+ image: _UserImage["default"],
102
+ fields: [{
103
+ label: 'Given Name',
104
+ value: 'Ed'
105
+ }, {
106
+ label: 'Famile Name',
107
+ value: 'Nepomuceno'
108
+ }]
109
+ },
110
+ companyInfo: {
111
+ label: 'Company Info',
112
+ key: 'companyInfoKey',
113
+ fields: [{
114
+ label: 'Tile',
115
+ value: 'Interaction Designer'
116
+ }]
117
+ },
118
+ customAttributes: {
119
+ label: 'Custom Attributes',
120
+ key: 'customAttributesKey',
121
+ fields: [{
122
+ label: 'T-Shirt Size',
123
+ value: 'Large'
124
+ }, {
125
+ label: 'Example Multi-Value Attribute',
126
+ value: 'value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,value,'
127
+ }]
128
+ },
129
+ jsonAttributes: {
130
+ label: 'JSON Attributes',
131
+ key: 'jsonAttributesKey',
132
+ badges: ['Address', 'Contact', 'Another Json'],
133
+ fields: []
134
+ }
135
+ };
136
+ exports.personalData = personalData;
137
+ var colorBlockButtons = [{
138
+ text: 'Groups',
139
+ subtext: '21',
140
+ isConfigured: true
141
+ }, {
142
+ text: 'Population',
143
+ subtext: 'Denver',
144
+ isConfigured: true
145
+ }, {
146
+ text: 'MFA',
147
+ subtext: 'Enabled',
148
+ isConfigured: true
149
+ }, {
150
+ text: 'Roles',
151
+ subtext: '0'
152
+ }];
153
+ exports.colorBlockButtons = colorBlockButtons;
154
+ var editData = {
155
+ personalInfo: {
156
+ label: 'Personal Info',
157
+ key: 'personalInfoKey',
158
+ image: _UserImage["default"],
159
+ fields: [{
160
+ label: 'Prefix',
161
+ value: ''
162
+ }, {
163
+ label: 'Given Name',
164
+ value: 'Ed'
165
+ }, {
166
+ label: 'Middle Name',
167
+ value: ''
168
+ }, {
169
+ label: 'Family Name',
170
+ value: 'Nepomuceno'
171
+ }, {
172
+ label: 'Suffix',
173
+ value: ''
174
+ }, {
175
+ label: 'Formatted',
176
+ value: ''
177
+ }, {
178
+ label: 'Nickname',
179
+ value: ''
180
+ }]
181
+ },
182
+ contactInfo: {
183
+ label: 'Contact Info',
184
+ key: 'contactInfoKey',
185
+ fields: [{
186
+ label: 'Email',
187
+ value: 'ednepomuceno@pingidentity.com',
188
+ slot: (0, _react2.jsx)(_index.CheckboxField, {
189
+ mt: "xs",
190
+ label: "Require Email to be Verified"
191
+ })
192
+ }, {
193
+ label: 'Phone Number',
194
+ value: '123-456-7890'
195
+ }, {
196
+ label: 'Street Address',
197
+ value: '123 Example St'
198
+ }, {
199
+ label: 'Country Code',
200
+ value: ''
201
+ }, {
202
+ label: 'Loality',
203
+ value: ''
204
+ }, {
205
+ label: 'Region',
206
+ value: ''
207
+ }, {
208
+ label: 'Zip Code',
209
+ value: '12345'
210
+ }]
211
+ },
212
+ companyInfo: {
213
+ label: 'Company Info',
214
+ key: 'companyInfoKey',
215
+ fields: [{
216
+ label: 'Account ID',
217
+ value: ''
218
+ }, {
219
+ label: 'Type',
220
+ value: ''
221
+ }, {
222
+ label: 'Title',
223
+ value: ''
224
+ }]
225
+ }
226
+ };
227
+ exports.editData = editData;
@@ -22,6 +22,7 @@ export * from './listItem';
22
22
  export * from './loader';
23
23
  export * from './menu';
24
24
  export * from './menuItem';
25
+ export * from './messages';
25
26
  export * from './Modal';
26
27
  export * from './navBar';
27
28
  export * from './overlayPanel';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _context16, _context17, _context18, _context19, _context20, _context21, _context22, _context23, _context24, _context25, _context26, _context27, _context28, _context29, _context30, _context31, _context32, _context33, _context34, _context35, _context36, _context37;
3
+ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _context16, _context17, _context18, _context19, _context20, _context21, _context22, _context23, _context24, _context25, _context26, _context27, _context28, _context29, _context30, _context31, _context32, _context33, _context34, _context35, _context36, _context37, _context38;
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");
@@ -271,8 +271,19 @@ _forEachInstanceProperty(_context24 = _Object$keys(_menuItem)).call(_context24,
271
271
  }
272
272
  });
273
273
  });
274
+ var _messages = require("./messages");
275
+ _forEachInstanceProperty(_context25 = _Object$keys(_messages)).call(_context25, function (key) {
276
+ if (key === "default" || key === "__esModule") return;
277
+ if (key in exports && exports[key] === _messages[key]) return;
278
+ _Object$defineProperty(exports, key, {
279
+ enumerable: true,
280
+ get: function get() {
281
+ return _messages[key];
282
+ }
283
+ });
284
+ });
274
285
  var _Modal = require("./Modal");
275
- _forEachInstanceProperty(_context25 = _Object$keys(_Modal)).call(_context25, function (key) {
286
+ _forEachInstanceProperty(_context26 = _Object$keys(_Modal)).call(_context26, function (key) {
276
287
  if (key === "default" || key === "__esModule") return;
277
288
  if (key in exports && exports[key] === _Modal[key]) return;
278
289
  _Object$defineProperty(exports, key, {
@@ -283,7 +294,7 @@ _forEachInstanceProperty(_context25 = _Object$keys(_Modal)).call(_context25, fun
283
294
  });
284
295
  });
285
296
  var _navBar = require("./navBar");
286
- _forEachInstanceProperty(_context26 = _Object$keys(_navBar)).call(_context26, function (key) {
297
+ _forEachInstanceProperty(_context27 = _Object$keys(_navBar)).call(_context27, function (key) {
287
298
  if (key === "default" || key === "__esModule") return;
288
299
  if (key in exports && exports[key] === _navBar[key]) return;
289
300
  _Object$defineProperty(exports, key, {
@@ -294,7 +305,7 @@ _forEachInstanceProperty(_context26 = _Object$keys(_navBar)).call(_context26, fu
294
305
  });
295
306
  });
296
307
  var _overlayPanel = require("./overlayPanel");
297
- _forEachInstanceProperty(_context27 = _Object$keys(_overlayPanel)).call(_context27, function (key) {
308
+ _forEachInstanceProperty(_context28 = _Object$keys(_overlayPanel)).call(_context28, function (key) {
298
309
  if (key === "default" || key === "__esModule") return;
299
310
  if (key in exports && exports[key] === _overlayPanel[key]) return;
300
311
  _Object$defineProperty(exports, key, {
@@ -305,7 +316,7 @@ _forEachInstanceProperty(_context27 = _Object$keys(_overlayPanel)).call(_context
305
316
  });
306
317
  });
307
318
  var _popoverContainer = require("./popoverContainer");
308
- _forEachInstanceProperty(_context28 = _Object$keys(_popoverContainer)).call(_context28, function (key) {
319
+ _forEachInstanceProperty(_context29 = _Object$keys(_popoverContainer)).call(_context29, function (key) {
309
320
  if (key === "default" || key === "__esModule") return;
310
321
  if (key in exports && exports[key] === _popoverContainer[key]) return;
311
322
  _Object$defineProperty(exports, key, {
@@ -316,7 +327,7 @@ _forEachInstanceProperty(_context28 = _Object$keys(_popoverContainer)).call(_con
316
327
  });
317
328
  });
318
329
  var _popoverMenu = require("./popoverMenu");
319
- _forEachInstanceProperty(_context29 = _Object$keys(_popoverMenu)).call(_context29, function (key) {
330
+ _forEachInstanceProperty(_context30 = _Object$keys(_popoverMenu)).call(_context30, function (key) {
320
331
  if (key === "default" || key === "__esModule") return;
321
332
  if (key in exports && exports[key] === _popoverMenu[key]) return;
322
333
  _Object$defineProperty(exports, key, {
@@ -327,7 +338,7 @@ _forEachInstanceProperty(_context29 = _Object$keys(_popoverMenu)).call(_context2
327
338
  });
328
339
  });
329
340
  var _requirementsList = require("./requirementsList");
330
- _forEachInstanceProperty(_context30 = _Object$keys(_requirementsList)).call(_context30, function (key) {
341
+ _forEachInstanceProperty(_context31 = _Object$keys(_requirementsList)).call(_context31, function (key) {
331
342
  if (key === "default" || key === "__esModule") return;
332
343
  if (key in exports && exports[key] === _requirementsList[key]) return;
333
344
  _Object$defineProperty(exports, key, {
@@ -338,7 +349,7 @@ _forEachInstanceProperty(_context30 = _Object$keys(_requirementsList)).call(_con
338
349
  });
339
350
  });
340
351
  var _rockerButtonGroup = require("./rockerButtonGroup");
341
- _forEachInstanceProperty(_context31 = _Object$keys(_rockerButtonGroup)).call(_context31, function (key) {
352
+ _forEachInstanceProperty(_context32 = _Object$keys(_rockerButtonGroup)).call(_context32, function (key) {
342
353
  if (key === "default" || key === "__esModule") return;
343
354
  if (key in exports && exports[key] === _rockerButtonGroup[key]) return;
344
355
  _Object$defineProperty(exports, key, {
@@ -349,7 +360,7 @@ _forEachInstanceProperty(_context31 = _Object$keys(_rockerButtonGroup)).call(_co
349
360
  });
350
361
  });
351
362
  var _scrollBox = require("./scrollBox");
352
- _forEachInstanceProperty(_context32 = _Object$keys(_scrollBox)).call(_context32, function (key) {
363
+ _forEachInstanceProperty(_context33 = _Object$keys(_scrollBox)).call(_context33, function (key) {
353
364
  if (key === "default" || key === "__esModule") return;
354
365
  if (key in exports && exports[key] === _scrollBox[key]) return;
355
366
  _Object$defineProperty(exports, key, {
@@ -360,7 +371,7 @@ _forEachInstanceProperty(_context32 = _Object$keys(_scrollBox)).call(_context32,
360
371
  });
361
372
  });
362
373
  var _separator = require("./separator");
363
- _forEachInstanceProperty(_context33 = _Object$keys(_separator)).call(_context33, function (key) {
374
+ _forEachInstanceProperty(_context34 = _Object$keys(_separator)).call(_context34, function (key) {
364
375
  if (key === "default" || key === "__esModule") return;
365
376
  if (key in exports && exports[key] === _separator[key]) return;
366
377
  _Object$defineProperty(exports, key, {
@@ -371,7 +382,7 @@ _forEachInstanceProperty(_context33 = _Object$keys(_separator)).call(_context33,
371
382
  });
372
383
  });
373
384
  var _shared = require("./shared");
374
- _forEachInstanceProperty(_context34 = _Object$keys(_shared)).call(_context34, function (key) {
385
+ _forEachInstanceProperty(_context35 = _Object$keys(_shared)).call(_context35, function (key) {
375
386
  if (key === "default" || key === "__esModule") return;
376
387
  if (key in exports && exports[key] === _shared[key]) return;
377
388
  _Object$defineProperty(exports, key, {
@@ -382,7 +393,7 @@ _forEachInstanceProperty(_context34 = _Object$keys(_shared)).call(_context34, fu
382
393
  });
383
394
  });
384
395
  var _table = require("./table");
385
- _forEachInstanceProperty(_context35 = _Object$keys(_table)).call(_context35, function (key) {
396
+ _forEachInstanceProperty(_context36 = _Object$keys(_table)).call(_context36, function (key) {
386
397
  if (key === "default" || key === "__esModule") return;
387
398
  if (key in exports && exports[key] === _table[key]) return;
388
399
  _Object$defineProperty(exports, key, {
@@ -393,7 +404,7 @@ _forEachInstanceProperty(_context35 = _Object$keys(_table)).call(_context35, fun
393
404
  });
394
405
  });
395
406
  var _text = require("./text");
396
- _forEachInstanceProperty(_context36 = _Object$keys(_text)).call(_context36, function (key) {
407
+ _forEachInstanceProperty(_context37 = _Object$keys(_text)).call(_context37, function (key) {
397
408
  if (key === "default" || key === "__esModule") return;
398
409
  if (key in exports && exports[key] === _text[key]) return;
399
410
  _Object$defineProperty(exports, key, {
@@ -404,7 +415,7 @@ _forEachInstanceProperty(_context36 = _Object$keys(_text)).call(_context36, func
404
415
  });
405
416
  });
406
417
  var _tooltipTrigger = require("./tooltipTrigger");
407
- _forEachInstanceProperty(_context37 = _Object$keys(_tooltipTrigger)).call(_context37, function (key) {
418
+ _forEachInstanceProperty(_context38 = _Object$keys(_tooltipTrigger)).call(_context38, function (key) {
408
419
  if (key === "default" || key === "__esModule") return;
409
420
  if (key in exports && exports[key] === _tooltipTrigger[key]) return;
410
421
  _Object$defineProperty(exports, key, {
@@ -1,5 +1,6 @@
1
1
  import { ElementType, Key } from 'react';
2
2
  import type { ItemProps } from '@react-types/shared';
3
+ import { IconTypeExtended } from './icon';
3
4
  import { DOMAttributes, StyleProps } from './shared';
4
5
  export interface Status {
5
6
  status?: 'default' | 'error' | 'success' | 'warning';
@@ -31,6 +32,7 @@ declare module '@react-types/shared' {
31
32
  slots?: {
32
33
  postHeading: React.ReactNode;
33
34
  };
35
+ icon?: IconTypeExtended;
34
36
  /** isCurrent for the Breadcrumbs item. */
35
37
  isCurrent?: boolean;
36
38
  }
@@ -0,0 +1,43 @@
1
+ import { Key, ReactElement } from 'react';
2
+ import type { Collection, CollectionChildren, CollectionStateBase, Node } from '@react-types/shared';
3
+ import { ThemeUICSSObject } from 'theme-ui';
4
+ import { Status } from './item';
5
+ export interface MessageItemProps {
6
+ children?: React.ReactNode | string;
7
+ bg?: string;
8
+ color?: string;
9
+ icon?: React.ElementType;
10
+ isHidden?: boolean;
11
+ 'data-id'?: string;
12
+ status?: Status;
13
+ }
14
+ export interface MessageItem {
15
+ text?: string;
16
+ node?: React.ReactNode;
17
+ key?: Key;
18
+ props?: MessageItemProps;
19
+ status?: Status;
20
+ }
21
+ export interface CollectionOptions<T, C extends Collection<Node<T>>> extends Omit<CollectionStateBase<T, C>, 'children'> {
22
+ children?: ReactElement | ReactElement[] | ((item: T) => ReactElement);
23
+ }
24
+ export interface MessagesProps<T> {
25
+ children: CollectionChildren<T>;
26
+ items?: MessageItem[];
27
+ onClose?: (key: Key) => void;
28
+ sx?: ThemeUICSSObject;
29
+ }
30
+ export interface CloseButtonProps {
31
+ color?: string;
32
+ onPress?: () => void;
33
+ variant?: string;
34
+ className?: string;
35
+ }
36
+ export interface MessageProps {
37
+ className?: string;
38
+ item: {
39
+ key?: Key;
40
+ props?: MessageItemProps;
41
+ };
42
+ onClose?: (key: Key) => void;
43
+ }
@@ -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
+ });
@@ -0,0 +1,3 @@
1
+ export declare const getPendoID: (componentName: any) => {
2
+ 'data-pendo-id': any;
3
+ };
@@ -0,0 +1,13 @@
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
+ });
7
+ exports.getPendoID = void 0;
8
+ var getPendoID = function getPendoID(componentName) {
9
+ return {
10
+ 'data-pendo-id': componentName
11
+ };
12
+ };
13
+ exports.getPendoID = getPendoID;