@pingux/astro 2.64.1-alpha.0 → 2.65.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 (30) hide show
  1. package/lib/cjs/components/ArrayField/ArrayField.d.ts +4 -0
  2. package/lib/cjs/components/ArrayField/ArrayField.js +9 -42
  3. package/lib/cjs/components/ArrayField/ArrayField.stories.d.ts +11 -0
  4. package/lib/cjs/components/ArrayField/ArrayField.stories.js +4 -2
  5. package/lib/cjs/components/ArrayField/ArrayField.test.d.ts +1 -0
  6. package/lib/cjs/components/ArrayField/ArrayField.test.js +1 -3
  7. package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.d.ts +4 -0
  8. package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.js +1 -7
  9. package/lib/cjs/components/ArrayField/index.d.ts +2 -0
  10. package/lib/cjs/components/Calendar/Calendar.stories.d.ts +18 -18
  11. package/lib/cjs/components/ListView/ListView.stories.d.ts +18 -18
  12. package/lib/cjs/components/ListView/listViewAttributes.d.ts +18 -18
  13. package/lib/cjs/types/arrayField.d.ts +46 -0
  14. package/lib/cjs/types/arrayField.js +6 -0
  15. package/lib/cjs/types/callout.d.ts +2 -1
  16. package/lib/cjs/types/fieldHelperText.d.ts +2 -1
  17. package/lib/cjs/types/index.d.ts +1 -0
  18. package/lib/cjs/types/index.js +54 -43
  19. package/lib/cjs/types/item.d.ts +1 -3
  20. package/lib/cjs/types/requirementsList.d.ts +2 -1
  21. package/lib/cjs/utils/docUtils/ariaAttributes.d.ts +21 -21
  22. package/lib/cjs/utils/docUtils/ariaAttributes.js +3 -3
  23. package/lib/components/ArrayField/ArrayField.js +10 -43
  24. package/lib/components/ArrayField/ArrayField.stories.js +4 -2
  25. package/lib/components/ArrayField/ArrayField.test.js +1 -3
  26. package/lib/components/ArrayField/ArrayFieldDeleteButton.js +1 -7
  27. package/lib/types/arrayField.js +1 -0
  28. package/lib/types/index.js +1 -0
  29. package/lib/utils/docUtils/ariaAttributes.js +3 -3
  30. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ArrayFieldProps } from '../../types';
3
+ declare const ArrayField: React.ForwardRefExoticComponent<ArrayFieldProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default ArrayField;
@@ -24,14 +24,11 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/hel
24
24
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
25
25
  var _react = _interopRequireWildcard(require("react"));
26
26
  var _reactAria = require("react-aria");
27
- var _propTypes = _interopRequireDefault(require("prop-types"));
28
27
  var _uuid = require("uuid");
29
28
  var _ = require("../..");
30
29
  var _pendoID = require("../../utils/devUtils/constants/pendoID");
31
30
  var _statuses = _interopRequireDefault(require("../../utils/devUtils/constants/statuses"));
32
- var _isValidPositiveInt = _interopRequireDefault(require("../../utils/devUtils/props/isValidPositiveInt"));
33
31
  var _ariaAttributes = require("../../utils/docUtils/ariaAttributes");
34
- var _statusProp = require("../../utils/docUtils/statusProp");
35
32
  var _react2 = require("@emotion/react");
36
33
  var _excluded = ["addButtonLabel", "defaultValue", "fieldControlWrapperProps", "value", "label", "helperText", "status", "onAdd", "onChange", "onDelete", "renderField", "labelProps", "maxSize", "maxSizeText"],
37
34
  _excluded2 = ["id", "onComponentRender", "fieldValue"];
@@ -91,7 +88,7 @@ var ArrayField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
91
88
  if (typeof event !== 'string') {
92
89
  tempValue = event.target.value;
93
90
  }
94
- if (isControlled) {
91
+ if (isControlled && onChangeRef.current) {
95
92
  onChangeRef.current(mapArrayFieldWithNewValue(valueRef.current, tempValue, fieldId));
96
93
  } else {
97
94
  setFieldValues(function (oldValues) {
@@ -100,7 +97,7 @@ var ArrayField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
100
97
  }
101
98
  }, [isControlled, mapArrayFieldWithNewValue]);
102
99
  var onFieldDelete = (0, _react.useCallback)(function (fieldId) {
103
- if (isControlled) {
100
+ if (isControlled && onDeleteRef.current) {
104
101
  onDeleteRef.current(fieldId);
105
102
  } else {
106
103
  setFieldValues(function (oldValues) {
@@ -113,7 +110,7 @@ var ArrayField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
113
110
  }, [isControlled]);
114
111
  var onFieldAdd = (0, _react.useCallback)(function () {
115
112
  if (isControlled) {
116
- return onAddRef.current();
113
+ return onAddRef.current && onAddRef.current();
117
114
  }
118
115
  return setFieldValues(function (oldValues) {
119
116
  var _context;
@@ -128,7 +125,10 @@ var ArrayField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
128
125
  if (onComponentRender) {
129
126
  return onComponentRender(id, fieldValue, onFieldValueChange, onFieldDelete, isDisabled, labelId, otherFieldProps);
130
127
  }
131
- return renderField(id, fieldValue, onFieldValueChange, onFieldDelete, isDisabled, otherFieldProps);
128
+ if (renderField) {
129
+ return renderField(id, fieldValue, onFieldValueChange, onFieldDelete, isDisabled, otherFieldProps);
130
+ }
131
+ return null;
132
132
  }, [onFieldValueChange, onFieldDelete, renderField, isDisabled]);
133
133
  var _getAriaAttributeProp = (0, _ariaAttributes.getAriaAttributeProps)(others),
134
134
  ariaProps = _getAriaAttributeProp.ariaProps,
@@ -167,42 +167,9 @@ var ArrayField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
167
167
  color: "active"
168
168
  }, addButtonLabel)));
169
169
  });
170
- ArrayField.propTypes = _objectSpread(_objectSpread({
171
- /** Label for add button */
172
- addButtonLabel: _propTypes["default"].string,
173
- /** The default value for the array input field (uncontrolled). */
174
- defaultValue: _propTypes["default"].arrayOf(_propTypes["default"].shape({
175
- id: _propTypes["default"].string,
176
- value: _propTypes["default"].string
177
- })),
178
- /** The default value of the array input field (controlled). */
179
- value: _propTypes["default"].arrayOf(_propTypes["default"].shape({
180
- id: _propTypes["default"].string,
181
- value: _propTypes["default"].string
182
- })),
183
- /** The rendered label for the field. */
184
- label: _propTypes["default"].node,
185
- /** Props object that is spread directly into the label element. */
186
- labelProps: _propTypes["default"].shape({}),
187
- /** Props object that is spread directly into the wrapper rendering the fields. */
188
- fieldControlWrapperProps: _propTypes["default"].shape({}),
189
- /** Text to display before add button. Useful for errors or other info. */
190
- helperText: _propTypes["default"].node,
191
- /** Callback for changing array field data */
192
- onChange: _propTypes["default"].func,
193
- /** Callback for adding new empty field */
194
- onAdd: _propTypes["default"].func,
195
- /** Callback for deleting a field */
196
- onDelete: _propTypes["default"].func,
197
- /** Render prop to display an input field */
198
- renderField: _propTypes["default"].func,
199
- /** Determines the maximum number of items */
200
- maxSize: _isValidPositiveInt["default"],
201
- /** Text to display when the maximum number of items is reached */
202
- maxSizeText: _propTypes["default"].node
203
- }, _statusProp.statusPropTypes), _ariaAttributes.ariaAttributesBasePropTypes);
204
170
  ArrayField.defaultProps = {
205
- addButtonLabel: '+ Add'
171
+ addButtonLabel: '+ Add',
172
+ status: _statuses["default"].DEFAULT
206
173
  };
207
174
  var _default = ArrayField;
208
175
  exports["default"] = _default;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { StoryFn } from '@storybook/react';
3
+ import { ArrayFieldProps } from '../../types';
4
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
5
+ export default _default;
6
+ export declare const Uncontrolled: StoryFn<ArrayFieldProps>;
7
+ export declare const Controlled: StoryFn<ArrayFieldProps>;
8
+ export declare const WithLimitedItemsNumber: StoryFn<ArrayFieldProps>;
9
+ export declare const Customizations: ({ ...args }: {
10
+ [x: string]: any;
11
+ }) => React.JSX.Element;
@@ -63,7 +63,7 @@ var _default = {
63
63
  },
64
64
  maxSize: {
65
65
  control: {
66
- type: 'number'
66
+ type: 'text'
67
67
  }
68
68
  },
69
69
  maxSizeText: {
@@ -286,7 +286,9 @@ var Customizations = function Customizations(_ref5) {
286
286
  maxHeight: '150px'
287
287
  },
288
288
  defaultValue: defaultData,
289
- width: "450px",
289
+ sx: {
290
+ width: '450px'
291
+ },
290
292
  labelProps: {
291
293
  hintText: 'Example Hint',
292
294
  isRequired: true,
@@ -0,0 +1 @@
1
+ export {};
@@ -201,9 +201,7 @@ test('creates empty field when no data passed', function () {
201
201
  expect(_testWrapper.screen.getByLabelText('Text field')).toBeInTheDocument();
202
202
  });
203
203
  test('check if tooltip on delete button renders on hover', function () {
204
- (0, _testWrapper.render)((0, _react2.jsx)(_ArrayFieldDeleteButton["default"], {
205
- renderField: renderField
206
- }));
204
+ (0, _testWrapper.render)((0, _react2.jsx)(_ArrayFieldDeleteButton["default"], null));
207
205
  var button = _testWrapper.screen.getByRole('button');
208
206
  _testWrapper.fireEvent.mouseMove(button);
209
207
  _testWrapper.fireEvent.mouseEnter(button);
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ArrayFieldDeleteButtonProps } from '../../types';
3
+ declare const ArrayFieldDeleteButton: FC<ArrayFieldDeleteButtonProps>;
4
+ export default ArrayFieldDeleteButton;
@@ -8,7 +8,6 @@ _Object$defineProperty(exports, "__esModule", {
8
8
  exports["default"] = void 0;
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _TrashIcon = _interopRequireDefault(require("@pingux/mdi-react/TrashIcon"));
11
- var _propTypes = _interopRequireDefault(require("prop-types"));
12
11
  var _Icon = _interopRequireDefault(require("../Icon"));
13
12
  var _IconButton = _interopRequireDefault(require("../IconButton"));
14
13
  var _react2 = require("@emotion/react");
@@ -18,7 +17,7 @@ var ArrayFieldDeleteButton = function ArrayFieldDeleteButton(_ref) {
18
17
  onDelete = _ref.onDelete;
19
18
  return (0, _react2.jsx)(_IconButton["default"], {
20
19
  onPress: function onPress() {
21
- return onDelete(id);
20
+ return onDelete && onDelete(id);
22
21
  },
23
22
  isDisabled: isDisabled,
24
23
  "aria-label": "delete-button",
@@ -39,10 +38,5 @@ var ArrayFieldDeleteButton = function ArrayFieldDeleteButton(_ref) {
39
38
  }
40
39
  }));
41
40
  };
42
- ArrayFieldDeleteButton.propTypes = {
43
- id: _propTypes["default"].number,
44
- isDisabled: _propTypes["default"].bool,
45
- onDelete: _propTypes["default"].func
46
- };
47
41
  var _default = ArrayFieldDeleteButton;
48
42
  exports["default"] = _default;
@@ -0,0 +1,2 @@
1
+ export { default } from './ArrayField';
2
+ export { default as ArrayFieldDeleteButton } from './ArrayFieldDeleteButton';
@@ -18,73 +18,73 @@ declare const _default: {
18
18
  };
19
19
  argTypes: {
20
20
  'aria-controls': {
21
- type: {
22
- summary: string;
23
- };
24
21
  control: {
25
22
  type: string;
26
23
  };
27
24
  table: {
25
+ type: {
26
+ summary: string;
27
+ };
28
28
  category: string;
29
29
  };
30
30
  description: string;
31
31
  };
32
32
  'aria-describedby': {
33
- type: {
34
- summary: string;
35
- };
36
33
  control: {
37
34
  type: string;
38
35
  };
39
36
  table: {
37
+ type: {
38
+ summary: string;
39
+ };
40
40
  category: string;
41
41
  };
42
42
  description: string;
43
43
  };
44
44
  'aria-details': {
45
- type: {
46
- summary: string;
47
- };
48
45
  control: {
49
46
  type: string;
50
47
  };
51
48
  table: {
49
+ type: {
50
+ summary: string;
51
+ };
52
52
  category: string;
53
53
  };
54
54
  description: string;
55
55
  };
56
56
  'aria-errormessage': {
57
- type: {
58
- summary: string;
59
- };
60
57
  control: {
61
58
  type: string;
62
59
  };
63
60
  table: {
61
+ type: {
62
+ summary: string;
63
+ };
64
64
  category: string;
65
65
  };
66
66
  description: string;
67
67
  };
68
68
  'aria-label': {
69
- type: {
70
- summary: string;
71
- };
72
69
  control: {
73
70
  type: string;
74
71
  };
75
72
  table: {
73
+ type: {
74
+ summary: string;
75
+ };
76
76
  category: string;
77
77
  };
78
78
  description: string;
79
79
  };
80
80
  'aria-labelledby': {
81
- type: {
82
- summary: string;
83
- };
84
81
  control: {
85
82
  type: string;
86
83
  };
87
84
  table: {
85
+ type: {
86
+ summary: string;
87
+ };
88
88
  category: string;
89
89
  };
90
90
  description: string;
@@ -38,49 +38,49 @@ declare const _default: {
38
38
  description: string;
39
39
  };
40
40
  'aria-label': {
41
- type: {
42
- summary: string;
43
- };
44
41
  control: {
45
42
  type: string;
46
43
  };
47
44
  table: {
45
+ type: {
46
+ summary: string;
47
+ };
48
48
  category: string;
49
49
  };
50
50
  description: string;
51
51
  };
52
52
  'aria-labelledby': {
53
- type: {
54
- summary: string;
55
- };
56
53
  control: {
57
54
  type: string;
58
55
  };
59
56
  table: {
57
+ type: {
58
+ summary: string;
59
+ };
60
60
  category: string;
61
61
  };
62
62
  description: string;
63
63
  };
64
64
  'aria-describedby': {
65
- type: {
66
- summary: string;
67
- };
68
65
  control: {
69
66
  type: string;
70
67
  };
71
68
  table: {
69
+ type: {
70
+ summary: string;
71
+ };
72
72
  category: string;
73
73
  };
74
74
  description: string;
75
75
  };
76
76
  'aria-details': {
77
- type: {
78
- summary: string;
79
- };
80
77
  control: {
81
78
  type: string;
82
79
  };
83
80
  table: {
81
+ type: {
82
+ summary: string;
83
+ };
84
84
  category: string;
85
85
  };
86
86
  description: string;
@@ -99,25 +99,25 @@ declare const _default: {
99
99
  description: string;
100
100
  };
101
101
  'aria-controls': {
102
- type: {
103
- summary: string;
104
- };
105
102
  control: {
106
103
  type: string;
107
104
  };
108
105
  table: {
106
+ type: {
107
+ summary: string;
108
+ };
109
109
  category: string;
110
110
  };
111
111
  description: string;
112
112
  };
113
113
  'aria-errormessage': {
114
- type: {
115
- summary: string;
116
- };
117
114
  control: {
118
115
  type: string;
119
116
  };
120
117
  table: {
118
+ type: {
119
+ summary: string;
120
+ };
121
121
  category: string;
122
122
  };
123
123
  description: string;
@@ -26,49 +26,49 @@ export declare const listViewArgTypes: {
26
26
  description: string;
27
27
  };
28
28
  'aria-label': {
29
- type: {
30
- summary: string;
31
- };
32
29
  control: {
33
30
  type: string;
34
31
  };
35
32
  table: {
33
+ type: {
34
+ summary: string;
35
+ };
36
36
  category: string;
37
37
  };
38
38
  description: string;
39
39
  };
40
40
  'aria-labelledby': {
41
- type: {
42
- summary: string;
43
- };
44
41
  control: {
45
42
  type: string;
46
43
  };
47
44
  table: {
45
+ type: {
46
+ summary: string;
47
+ };
48
48
  category: string;
49
49
  };
50
50
  description: string;
51
51
  };
52
52
  'aria-describedby': {
53
- type: {
54
- summary: string;
55
- };
56
53
  control: {
57
54
  type: string;
58
55
  };
59
56
  table: {
57
+ type: {
58
+ summary: string;
59
+ };
60
60
  category: string;
61
61
  };
62
62
  description: string;
63
63
  };
64
64
  'aria-details': {
65
- type: {
66
- summary: string;
67
- };
68
65
  control: {
69
66
  type: string;
70
67
  };
71
68
  table: {
69
+ type: {
70
+ summary: string;
71
+ };
72
72
  category: string;
73
73
  };
74
74
  description: string;
@@ -87,25 +87,25 @@ export declare const listViewArgTypes: {
87
87
  description: string;
88
88
  };
89
89
  'aria-controls': {
90
- type: {
91
- summary: string;
92
- };
93
90
  control: {
94
91
  type: string;
95
92
  };
96
93
  table: {
94
+ type: {
95
+ summary: string;
96
+ };
97
97
  category: string;
98
98
  };
99
99
  description: string;
100
100
  };
101
101
  'aria-errormessage': {
102
- type: {
103
- summary: string;
104
- };
105
102
  control: {
106
103
  type: string;
107
104
  };
108
105
  table: {
106
+ type: {
107
+ summary: string;
108
+ };
109
109
  category: string;
110
110
  };
111
111
  description: string;
@@ -0,0 +1,46 @@
1
+ /// <reference types="react" />
2
+ import { ThemeUICSSObject } from 'theme-ui';
3
+ import { LabelProps, Status, ValidPositiveInteger } from '.';
4
+ type RenderFieldFunction = (id: string, fieldValue: string, onFieldValueChange: (e: React.ChangeEvent<HTMLInputElement> | string, fieldId: string) => void, onFieldDelete: (fieldId: string) => void, isDisabled: boolean, otherFieldProps?: Record<string, string>) => React.ReactNode;
5
+ export interface FieldValue {
6
+ id: string;
7
+ value?: string;
8
+ onComponentRender?: RenderFieldFunction;
9
+ fieldValue?: string;
10
+ }
11
+ export interface ArrayFieldProps {
12
+ /** Label for add button */
13
+ addButtonLabel?: string;
14
+ /** The default value for the array input field (uncontrolled). */
15
+ defaultValue?: FieldValue[];
16
+ /** The default value of the array input field (controlled). */
17
+ value?: FieldValue[];
18
+ /** The rendered label for the field. */
19
+ label?: React.ReactNode;
20
+ /** Props object that is spread directly into the label element. */
21
+ labelProps?: LabelProps;
22
+ /** Text to display before add button. Useful for errors or other info. */
23
+ helperText?: React.ReactNode;
24
+ /** Callback for changing array field data */
25
+ onChange?: (value: FieldValue[]) => void;
26
+ /** Callback for adding new empty field */
27
+ onAdd?: () => void;
28
+ /** Callback for deleting a field */
29
+ onDelete?: (fieldId: string) => void;
30
+ /** Render prop to display an input field */
31
+ renderField?: RenderFieldFunction;
32
+ /** Determines the maximum number of items */
33
+ maxSize?: ValidPositiveInteger;
34
+ /** Text to display when the maximum number of items is reached */
35
+ maxSizeText?: React.ReactNode;
36
+ sx?: ThemeUICSSObject;
37
+ status?: Status;
38
+ /** Props object that is spread directly into the wrapper rendering the fields. */
39
+ fieldControlWrapperProps?: Record<string, string>;
40
+ }
41
+ export interface ArrayFieldDeleteButtonProps {
42
+ id?: number;
43
+ isDisabled?: boolean;
44
+ onDelete?: (id?: number) => void;
45
+ }
46
+ 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
+ });
@@ -1,4 +1,5 @@
1
1
  import { Status } from './item';
2
2
  import { DOMAttributes, StyleProps } from './shared';
3
- export interface CalloutProps extends StyleProps, DOMAttributes, Status {
3
+ export interface CalloutProps extends StyleProps, DOMAttributes {
4
+ status?: Status;
4
5
  }
@@ -2,7 +2,8 @@ import React from 'react';
2
2
  import { TestingAttributes } from './shared/test';
3
3
  import { Status } from './item';
4
4
  import { TextProps } from './text';
5
- export interface FieldHelperTextProps extends TestingAttributes, TextProps, Status {
5
+ export interface FieldHelperTextProps extends TestingAttributes, TextProps {
6
6
  className?: string;
7
+ status?: Status;
7
8
  children?: React.ReactNode;
8
9
  }
@@ -1,3 +1,4 @@
1
+ export * from './arrayField';
1
2
  export * from './badge';
2
3
  export * from './box';
3
4
  export * from './bracket';
@@ -1,14 +1,25 @@
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, _context38, _context39, _context40, _context41, _context42;
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, _context39, _context40, _context41, _context42, _context43;
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");
7
7
  _Object$defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
+ var _arrayField = require("./arrayField");
11
+ _forEachInstanceProperty(_context = _Object$keys(_arrayField)).call(_context, function (key) {
12
+ if (key === "default" || key === "__esModule") return;
13
+ if (key in exports && exports[key] === _arrayField[key]) return;
14
+ _Object$defineProperty(exports, key, {
15
+ enumerable: true,
16
+ get: function get() {
17
+ return _arrayField[key];
18
+ }
19
+ });
20
+ });
10
21
  var _badge = require("./badge");
11
- _forEachInstanceProperty(_context = _Object$keys(_badge)).call(_context, function (key) {
22
+ _forEachInstanceProperty(_context2 = _Object$keys(_badge)).call(_context2, function (key) {
12
23
  if (key === "default" || key === "__esModule") return;
13
24
  if (key in exports && exports[key] === _badge[key]) return;
14
25
  _Object$defineProperty(exports, key, {
@@ -19,7 +30,7 @@ _forEachInstanceProperty(_context = _Object$keys(_badge)).call(_context, functio
19
30
  });
20
31
  });
21
32
  var _box = require("./box");
22
- _forEachInstanceProperty(_context2 = _Object$keys(_box)).call(_context2, function (key) {
33
+ _forEachInstanceProperty(_context3 = _Object$keys(_box)).call(_context3, function (key) {
23
34
  if (key === "default" || key === "__esModule") return;
24
35
  if (key in exports && exports[key] === _box[key]) return;
25
36
  _Object$defineProperty(exports, key, {
@@ -30,7 +41,7 @@ _forEachInstanceProperty(_context2 = _Object$keys(_box)).call(_context2, functio
30
41
  });
31
42
  });
32
43
  var _bracket = require("./bracket");
33
- _forEachInstanceProperty(_context3 = _Object$keys(_bracket)).call(_context3, function (key) {
44
+ _forEachInstanceProperty(_context4 = _Object$keys(_bracket)).call(_context4, function (key) {
34
45
  if (key === "default" || key === "__esModule") return;
35
46
  if (key in exports && exports[key] === _bracket[key]) return;
36
47
  _Object$defineProperty(exports, key, {
@@ -41,7 +52,7 @@ _forEachInstanceProperty(_context3 = _Object$keys(_bracket)).call(_context3, fun
41
52
  });
42
53
  });
43
54
  var _breadCrumbs = require("./breadCrumbs");
44
- _forEachInstanceProperty(_context4 = _Object$keys(_breadCrumbs)).call(_context4, function (key) {
55
+ _forEachInstanceProperty(_context5 = _Object$keys(_breadCrumbs)).call(_context5, function (key) {
45
56
  if (key === "default" || key === "__esModule") return;
46
57
  if (key in exports && exports[key] === _breadCrumbs[key]) return;
47
58
  _Object$defineProperty(exports, key, {
@@ -52,7 +63,7 @@ _forEachInstanceProperty(_context4 = _Object$keys(_breadCrumbs)).call(_context4,
52
63
  });
53
64
  });
54
65
  var _button = require("./button");
55
- _forEachInstanceProperty(_context5 = _Object$keys(_button)).call(_context5, function (key) {
66
+ _forEachInstanceProperty(_context6 = _Object$keys(_button)).call(_context6, function (key) {
56
67
  if (key === "default" || key === "__esModule") return;
57
68
  if (key in exports && exports[key] === _button[key]) return;
58
69
  _Object$defineProperty(exports, key, {
@@ -63,7 +74,7 @@ _forEachInstanceProperty(_context5 = _Object$keys(_button)).call(_context5, func
63
74
  });
64
75
  });
65
76
  var _buttonBar = require("./buttonBar");
66
- _forEachInstanceProperty(_context6 = _Object$keys(_buttonBar)).call(_context6, function (key) {
77
+ _forEachInstanceProperty(_context7 = _Object$keys(_buttonBar)).call(_context7, function (key) {
67
78
  if (key === "default" || key === "__esModule") return;
68
79
  if (key in exports && exports[key] === _buttonBar[key]) return;
69
80
  _Object$defineProperty(exports, key, {
@@ -74,7 +85,7 @@ _forEachInstanceProperty(_context6 = _Object$keys(_buttonBar)).call(_context6, f
74
85
  });
75
86
  });
76
87
  var _calendar = require("./calendar");
77
- _forEachInstanceProperty(_context7 = _Object$keys(_calendar)).call(_context7, function (key) {
88
+ _forEachInstanceProperty(_context8 = _Object$keys(_calendar)).call(_context8, function (key) {
78
89
  if (key === "default" || key === "__esModule") return;
79
90
  if (key in exports && exports[key] === _calendar[key]) return;
80
91
  _Object$defineProperty(exports, key, {
@@ -85,7 +96,7 @@ _forEachInstanceProperty(_context7 = _Object$keys(_calendar)).call(_context7, fu
85
96
  });
86
97
  });
87
98
  var _card = require("./card");
88
- _forEachInstanceProperty(_context8 = _Object$keys(_card)).call(_context8, function (key) {
99
+ _forEachInstanceProperty(_context9 = _Object$keys(_card)).call(_context9, function (key) {
89
100
  if (key === "default" || key === "__esModule") return;
90
101
  if (key in exports && exports[key] === _card[key]) return;
91
102
  _Object$defineProperty(exports, key, {
@@ -96,7 +107,7 @@ _forEachInstanceProperty(_context8 = _Object$keys(_card)).call(_context8, functi
96
107
  });
97
108
  });
98
109
  var _copyText = require("./copyText");
99
- _forEachInstanceProperty(_context9 = _Object$keys(_copyText)).call(_context9, function (key) {
110
+ _forEachInstanceProperty(_context10 = _Object$keys(_copyText)).call(_context10, function (key) {
100
111
  if (key === "default" || key === "__esModule") return;
101
112
  if (key in exports && exports[key] === _copyText[key]) return;
102
113
  _Object$defineProperty(exports, key, {
@@ -107,7 +118,7 @@ _forEachInstanceProperty(_context9 = _Object$keys(_copyText)).call(_context9, fu
107
118
  });
108
119
  });
109
120
  var _environmentBreadcrumb = require("./environmentBreadcrumb");
110
- _forEachInstanceProperty(_context10 = _Object$keys(_environmentBreadcrumb)).call(_context10, function (key) {
121
+ _forEachInstanceProperty(_context11 = _Object$keys(_environmentBreadcrumb)).call(_context11, function (key) {
111
122
  if (key === "default" || key === "__esModule") return;
112
123
  if (key in exports && exports[key] === _environmentBreadcrumb[key]) return;
113
124
  _Object$defineProperty(exports, key, {
@@ -118,7 +129,7 @@ _forEachInstanceProperty(_context10 = _Object$keys(_environmentBreadcrumb)).call
118
129
  });
119
130
  });
120
131
  var _fieldHelperText = require("./fieldHelperText");
121
- _forEachInstanceProperty(_context11 = _Object$keys(_fieldHelperText)).call(_context11, function (key) {
132
+ _forEachInstanceProperty(_context12 = _Object$keys(_fieldHelperText)).call(_context12, function (key) {
122
133
  if (key === "default" || key === "__esModule") return;
123
134
  if (key in exports && exports[key] === _fieldHelperText[key]) return;
124
135
  _Object$defineProperty(exports, key, {
@@ -129,7 +140,7 @@ _forEachInstanceProperty(_context11 = _Object$keys(_fieldHelperText)).call(_cont
129
140
  });
130
141
  });
131
142
  var _helpHint = require("./helpHint");
132
- _forEachInstanceProperty(_context12 = _Object$keys(_helpHint)).call(_context12, function (key) {
143
+ _forEachInstanceProperty(_context13 = _Object$keys(_helpHint)).call(_context13, function (key) {
133
144
  if (key === "default" || key === "__esModule") return;
134
145
  if (key in exports && exports[key] === _helpHint[key]) return;
135
146
  _Object$defineProperty(exports, key, {
@@ -140,7 +151,7 @@ _forEachInstanceProperty(_context12 = _Object$keys(_helpHint)).call(_context12,
140
151
  });
141
152
  });
142
153
  var _icon = require("./icon");
143
- _forEachInstanceProperty(_context13 = _Object$keys(_icon)).call(_context13, function (key) {
154
+ _forEachInstanceProperty(_context14 = _Object$keys(_icon)).call(_context14, function (key) {
144
155
  if (key === "default" || key === "__esModule") return;
145
156
  if (key in exports && exports[key] === _icon[key]) return;
146
157
  _Object$defineProperty(exports, key, {
@@ -151,7 +162,7 @@ _forEachInstanceProperty(_context13 = _Object$keys(_icon)).call(_context13, func
151
162
  });
152
163
  });
153
164
  var _iconBadge = require("./iconBadge");
154
- _forEachInstanceProperty(_context14 = _Object$keys(_iconBadge)).call(_context14, function (key) {
165
+ _forEachInstanceProperty(_context15 = _Object$keys(_iconBadge)).call(_context15, function (key) {
155
166
  if (key === "default" || key === "__esModule") return;
156
167
  if (key in exports && exports[key] === _iconBadge[key]) return;
157
168
  _Object$defineProperty(exports, key, {
@@ -162,7 +173,7 @@ _forEachInstanceProperty(_context14 = _Object$keys(_iconBadge)).call(_context14,
162
173
  });
163
174
  });
164
175
  var _iconButton = require("./iconButton");
165
- _forEachInstanceProperty(_context15 = _Object$keys(_iconButton)).call(_context15, function (key) {
176
+ _forEachInstanceProperty(_context16 = _Object$keys(_iconButton)).call(_context16, function (key) {
166
177
  if (key === "default" || key === "__esModule") return;
167
178
  if (key in exports && exports[key] === _iconButton[key]) return;
168
179
  _Object$defineProperty(exports, key, {
@@ -173,7 +184,7 @@ _forEachInstanceProperty(_context15 = _Object$keys(_iconButton)).call(_context15
173
184
  });
174
185
  });
175
186
  var _iconButtonToggle = require("./iconButtonToggle");
176
- _forEachInstanceProperty(_context16 = _Object$keys(_iconButtonToggle)).call(_context16, function (key) {
187
+ _forEachInstanceProperty(_context17 = _Object$keys(_iconButtonToggle)).call(_context17, function (key) {
177
188
  if (key === "default" || key === "__esModule") return;
178
189
  if (key in exports && exports[key] === _iconButtonToggle[key]) return;
179
190
  _Object$defineProperty(exports, key, {
@@ -184,7 +195,7 @@ _forEachInstanceProperty(_context16 = _Object$keys(_iconButtonToggle)).call(_con
184
195
  });
185
196
  });
186
197
  var _input = require("./input");
187
- _forEachInstanceProperty(_context17 = _Object$keys(_input)).call(_context17, function (key) {
198
+ _forEachInstanceProperty(_context18 = _Object$keys(_input)).call(_context18, function (key) {
188
199
  if (key === "default" || key === "__esModule") return;
189
200
  if (key in exports && exports[key] === _input[key]) return;
190
201
  _Object$defineProperty(exports, key, {
@@ -195,7 +206,7 @@ _forEachInstanceProperty(_context17 = _Object$keys(_input)).call(_context17, fun
195
206
  });
196
207
  });
197
208
  var _item = require("./item");
198
- _forEachInstanceProperty(_context18 = _Object$keys(_item)).call(_context18, function (key) {
209
+ _forEachInstanceProperty(_context19 = _Object$keys(_item)).call(_context19, function (key) {
199
210
  if (key === "default" || key === "__esModule") return;
200
211
  if (key in exports && exports[key] === _item[key]) return;
201
212
  _Object$defineProperty(exports, key, {
@@ -206,7 +217,7 @@ _forEachInstanceProperty(_context18 = _Object$keys(_item)).call(_context18, func
206
217
  });
207
218
  });
208
219
  var _label = require("./label");
209
- _forEachInstanceProperty(_context19 = _Object$keys(_label)).call(_context19, function (key) {
220
+ _forEachInstanceProperty(_context20 = _Object$keys(_label)).call(_context20, function (key) {
210
221
  if (key === "default" || key === "__esModule") return;
211
222
  if (key in exports && exports[key] === _label[key]) return;
212
223
  _Object$defineProperty(exports, key, {
@@ -217,7 +228,7 @@ _forEachInstanceProperty(_context19 = _Object$keys(_label)).call(_context19, fun
217
228
  });
218
229
  });
219
230
  var _link = require("./link");
220
- _forEachInstanceProperty(_context20 = _Object$keys(_link)).call(_context20, function (key) {
231
+ _forEachInstanceProperty(_context21 = _Object$keys(_link)).call(_context21, function (key) {
221
232
  if (key === "default" || key === "__esModule") return;
222
233
  if (key in exports && exports[key] === _link[key]) return;
223
234
  _Object$defineProperty(exports, key, {
@@ -228,7 +239,7 @@ _forEachInstanceProperty(_context20 = _Object$keys(_link)).call(_context20, func
228
239
  });
229
240
  });
230
241
  var _listBox = require("./listBox");
231
- _forEachInstanceProperty(_context21 = _Object$keys(_listBox)).call(_context21, function (key) {
242
+ _forEachInstanceProperty(_context22 = _Object$keys(_listBox)).call(_context22, function (key) {
232
243
  if (key === "default" || key === "__esModule") return;
233
244
  if (key in exports && exports[key] === _listBox[key]) return;
234
245
  _Object$defineProperty(exports, key, {
@@ -239,7 +250,7 @@ _forEachInstanceProperty(_context21 = _Object$keys(_listBox)).call(_context21, f
239
250
  });
240
251
  });
241
252
  var _listItem = require("./listItem");
242
- _forEachInstanceProperty(_context22 = _Object$keys(_listItem)).call(_context22, function (key) {
253
+ _forEachInstanceProperty(_context23 = _Object$keys(_listItem)).call(_context23, function (key) {
243
254
  if (key === "default" || key === "__esModule") return;
244
255
  if (key in exports && exports[key] === _listItem[key]) return;
245
256
  _Object$defineProperty(exports, key, {
@@ -250,7 +261,7 @@ _forEachInstanceProperty(_context22 = _Object$keys(_listItem)).call(_context22,
250
261
  });
251
262
  });
252
263
  var _loader = require("./loader");
253
- _forEachInstanceProperty(_context23 = _Object$keys(_loader)).call(_context23, function (key) {
264
+ _forEachInstanceProperty(_context24 = _Object$keys(_loader)).call(_context24, function (key) {
254
265
  if (key === "default" || key === "__esModule") return;
255
266
  if (key in exports && exports[key] === _loader[key]) return;
256
267
  _Object$defineProperty(exports, key, {
@@ -261,7 +272,7 @@ _forEachInstanceProperty(_context23 = _Object$keys(_loader)).call(_context23, fu
261
272
  });
262
273
  });
263
274
  var _menu = require("./menu");
264
- _forEachInstanceProperty(_context24 = _Object$keys(_menu)).call(_context24, function (key) {
275
+ _forEachInstanceProperty(_context25 = _Object$keys(_menu)).call(_context25, function (key) {
265
276
  if (key === "default" || key === "__esModule") return;
266
277
  if (key in exports && exports[key] === _menu[key]) return;
267
278
  _Object$defineProperty(exports, key, {
@@ -272,7 +283,7 @@ _forEachInstanceProperty(_context24 = _Object$keys(_menu)).call(_context24, func
272
283
  });
273
284
  });
274
285
  var _menuItem = require("./menuItem");
275
- _forEachInstanceProperty(_context25 = _Object$keys(_menuItem)).call(_context25, function (key) {
286
+ _forEachInstanceProperty(_context26 = _Object$keys(_menuItem)).call(_context26, function (key) {
276
287
  if (key === "default" || key === "__esModule") return;
277
288
  if (key in exports && exports[key] === _menuItem[key]) return;
278
289
  _Object$defineProperty(exports, key, {
@@ -283,7 +294,7 @@ _forEachInstanceProperty(_context25 = _Object$keys(_menuItem)).call(_context25,
283
294
  });
284
295
  });
285
296
  var _messages = require("./messages");
286
- _forEachInstanceProperty(_context26 = _Object$keys(_messages)).call(_context26, function (key) {
297
+ _forEachInstanceProperty(_context27 = _Object$keys(_messages)).call(_context27, function (key) {
287
298
  if (key === "default" || key === "__esModule") return;
288
299
  if (key in exports && exports[key] === _messages[key]) return;
289
300
  _Object$defineProperty(exports, key, {
@@ -294,7 +305,7 @@ _forEachInstanceProperty(_context26 = _Object$keys(_messages)).call(_context26,
294
305
  });
295
306
  });
296
307
  var _Modal = require("./Modal");
297
- _forEachInstanceProperty(_context27 = _Object$keys(_Modal)).call(_context27, function (key) {
308
+ _forEachInstanceProperty(_context28 = _Object$keys(_Modal)).call(_context28, function (key) {
298
309
  if (key === "default" || key === "__esModule") return;
299
310
  if (key in exports && exports[key] === _Modal[key]) return;
300
311
  _Object$defineProperty(exports, key, {
@@ -305,7 +316,7 @@ _forEachInstanceProperty(_context27 = _Object$keys(_Modal)).call(_context27, fun
305
316
  });
306
317
  });
307
318
  var _navBar = require("./navBar");
308
- _forEachInstanceProperty(_context28 = _Object$keys(_navBar)).call(_context28, function (key) {
319
+ _forEachInstanceProperty(_context29 = _Object$keys(_navBar)).call(_context29, function (key) {
309
320
  if (key === "default" || key === "__esModule") return;
310
321
  if (key in exports && exports[key] === _navBar[key]) return;
311
322
  _Object$defineProperty(exports, key, {
@@ -316,7 +327,7 @@ _forEachInstanceProperty(_context28 = _Object$keys(_navBar)).call(_context28, fu
316
327
  });
317
328
  });
318
329
  var _overlayPanel = require("./overlayPanel");
319
- _forEachInstanceProperty(_context29 = _Object$keys(_overlayPanel)).call(_context29, function (key) {
330
+ _forEachInstanceProperty(_context30 = _Object$keys(_overlayPanel)).call(_context30, function (key) {
320
331
  if (key === "default" || key === "__esModule") return;
321
332
  if (key in exports && exports[key] === _overlayPanel[key]) return;
322
333
  _Object$defineProperty(exports, key, {
@@ -327,7 +338,7 @@ _forEachInstanceProperty(_context29 = _Object$keys(_overlayPanel)).call(_context
327
338
  });
328
339
  });
329
340
  var _popoverContainer = require("./popoverContainer");
330
- _forEachInstanceProperty(_context30 = _Object$keys(_popoverContainer)).call(_context30, function (key) {
341
+ _forEachInstanceProperty(_context31 = _Object$keys(_popoverContainer)).call(_context31, function (key) {
331
342
  if (key === "default" || key === "__esModule") return;
332
343
  if (key in exports && exports[key] === _popoverContainer[key]) return;
333
344
  _Object$defineProperty(exports, key, {
@@ -338,7 +349,7 @@ _forEachInstanceProperty(_context30 = _Object$keys(_popoverContainer)).call(_con
338
349
  });
339
350
  });
340
351
  var _popoverMenu = require("./popoverMenu");
341
- _forEachInstanceProperty(_context31 = _Object$keys(_popoverMenu)).call(_context31, function (key) {
352
+ _forEachInstanceProperty(_context32 = _Object$keys(_popoverMenu)).call(_context32, function (key) {
342
353
  if (key === "default" || key === "__esModule") return;
343
354
  if (key in exports && exports[key] === _popoverMenu[key]) return;
344
355
  _Object$defineProperty(exports, key, {
@@ -349,7 +360,7 @@ _forEachInstanceProperty(_context31 = _Object$keys(_popoverMenu)).call(_context3
349
360
  });
350
361
  });
351
362
  var _progressBar = require("./progressBar");
352
- _forEachInstanceProperty(_context32 = _Object$keys(_progressBar)).call(_context32, function (key) {
363
+ _forEachInstanceProperty(_context33 = _Object$keys(_progressBar)).call(_context33, function (key) {
353
364
  if (key === "default" || key === "__esModule") return;
354
365
  if (key in exports && exports[key] === _progressBar[key]) return;
355
366
  _Object$defineProperty(exports, key, {
@@ -360,7 +371,7 @@ _forEachInstanceProperty(_context32 = _Object$keys(_progressBar)).call(_context3
360
371
  });
361
372
  });
362
373
  var _requirementsList = require("./requirementsList");
363
- _forEachInstanceProperty(_context33 = _Object$keys(_requirementsList)).call(_context33, function (key) {
374
+ _forEachInstanceProperty(_context34 = _Object$keys(_requirementsList)).call(_context34, function (key) {
364
375
  if (key === "default" || key === "__esModule") return;
365
376
  if (key in exports && exports[key] === _requirementsList[key]) return;
366
377
  _Object$defineProperty(exports, key, {
@@ -371,7 +382,7 @@ _forEachInstanceProperty(_context33 = _Object$keys(_requirementsList)).call(_con
371
382
  });
372
383
  });
373
384
  var _rockerButtonGroup = require("./rockerButtonGroup");
374
- _forEachInstanceProperty(_context34 = _Object$keys(_rockerButtonGroup)).call(_context34, function (key) {
385
+ _forEachInstanceProperty(_context35 = _Object$keys(_rockerButtonGroup)).call(_context35, function (key) {
375
386
  if (key === "default" || key === "__esModule") return;
376
387
  if (key in exports && exports[key] === _rockerButtonGroup[key]) return;
377
388
  _Object$defineProperty(exports, key, {
@@ -382,7 +393,7 @@ _forEachInstanceProperty(_context34 = _Object$keys(_rockerButtonGroup)).call(_co
382
393
  });
383
394
  });
384
395
  var _scrollBox = require("./scrollBox");
385
- _forEachInstanceProperty(_context35 = _Object$keys(_scrollBox)).call(_context35, function (key) {
396
+ _forEachInstanceProperty(_context36 = _Object$keys(_scrollBox)).call(_context36, function (key) {
386
397
  if (key === "default" || key === "__esModule") return;
387
398
  if (key in exports && exports[key] === _scrollBox[key]) return;
388
399
  _Object$defineProperty(exports, key, {
@@ -393,7 +404,7 @@ _forEachInstanceProperty(_context35 = _Object$keys(_scrollBox)).call(_context35,
393
404
  });
394
405
  });
395
406
  var _separator = require("./separator");
396
- _forEachInstanceProperty(_context36 = _Object$keys(_separator)).call(_context36, function (key) {
407
+ _forEachInstanceProperty(_context37 = _Object$keys(_separator)).call(_context37, function (key) {
397
408
  if (key === "default" || key === "__esModule") return;
398
409
  if (key in exports && exports[key] === _separator[key]) return;
399
410
  _Object$defineProperty(exports, key, {
@@ -404,7 +415,7 @@ _forEachInstanceProperty(_context36 = _Object$keys(_separator)).call(_context36,
404
415
  });
405
416
  });
406
417
  var _shared = require("./shared");
407
- _forEachInstanceProperty(_context37 = _Object$keys(_shared)).call(_context37, function (key) {
418
+ _forEachInstanceProperty(_context38 = _Object$keys(_shared)).call(_context38, function (key) {
408
419
  if (key === "default" || key === "__esModule") return;
409
420
  if (key in exports && exports[key] === _shared[key]) return;
410
421
  _Object$defineProperty(exports, key, {
@@ -415,7 +426,7 @@ _forEachInstanceProperty(_context37 = _Object$keys(_shared)).call(_context37, fu
415
426
  });
416
427
  });
417
428
  var _tab = require("./tab");
418
- _forEachInstanceProperty(_context38 = _Object$keys(_tab)).call(_context38, function (key) {
429
+ _forEachInstanceProperty(_context39 = _Object$keys(_tab)).call(_context39, function (key) {
419
430
  if (key === "default" || key === "__esModule") return;
420
431
  if (key in exports && exports[key] === _tab[key]) return;
421
432
  _Object$defineProperty(exports, key, {
@@ -426,7 +437,7 @@ _forEachInstanceProperty(_context38 = _Object$keys(_tab)).call(_context38, funct
426
437
  });
427
438
  });
428
439
  var _table = require("./table");
429
- _forEachInstanceProperty(_context39 = _Object$keys(_table)).call(_context39, function (key) {
440
+ _forEachInstanceProperty(_context40 = _Object$keys(_table)).call(_context40, function (key) {
430
441
  if (key === "default" || key === "__esModule") return;
431
442
  if (key in exports && exports[key] === _table[key]) return;
432
443
  _Object$defineProperty(exports, key, {
@@ -437,7 +448,7 @@ _forEachInstanceProperty(_context39 = _Object$keys(_table)).call(_context39, fun
437
448
  });
438
449
  });
439
450
  var _tabs = require("./tabs");
440
- _forEachInstanceProperty(_context40 = _Object$keys(_tabs)).call(_context40, function (key) {
451
+ _forEachInstanceProperty(_context41 = _Object$keys(_tabs)).call(_context41, function (key) {
441
452
  if (key === "default" || key === "__esModule") return;
442
453
  if (key in exports && exports[key] === _tabs[key]) return;
443
454
  _Object$defineProperty(exports, key, {
@@ -448,7 +459,7 @@ _forEachInstanceProperty(_context40 = _Object$keys(_tabs)).call(_context40, func
448
459
  });
449
460
  });
450
461
  var _text = require("./text");
451
- _forEachInstanceProperty(_context41 = _Object$keys(_text)).call(_context41, function (key) {
462
+ _forEachInstanceProperty(_context42 = _Object$keys(_text)).call(_context42, function (key) {
452
463
  if (key === "default" || key === "__esModule") return;
453
464
  if (key in exports && exports[key] === _text[key]) return;
454
465
  _Object$defineProperty(exports, key, {
@@ -459,7 +470,7 @@ _forEachInstanceProperty(_context41 = _Object$keys(_text)).call(_context41, func
459
470
  });
460
471
  });
461
472
  var _tooltipTrigger = require("./tooltipTrigger");
462
- _forEachInstanceProperty(_context42 = _Object$keys(_tooltipTrigger)).call(_context42, function (key) {
473
+ _forEachInstanceProperty(_context43 = _Object$keys(_tooltipTrigger)).call(_context43, function (key) {
463
474
  if (key === "default" || key === "__esModule") return;
464
475
  if (key in exports && exports[key] === _tooltipTrigger[key]) return;
465
476
  _Object$defineProperty(exports, key, {
@@ -2,9 +2,7 @@ import { ElementType, Key, ReactNode } from 'react';
2
2
  import type { ItemProps } from '@react-types/shared';
3
3
  import { IconTypeExtended } from './icon';
4
4
  import { DOMAttributes, StyleProps } from './shared';
5
- export interface Status {
6
- status?: 'default' | 'error' | 'success' | 'warning';
7
- }
5
+ export type Status = 'default' | 'error' | 'success' | 'warning';
8
6
  declare module '@react-types/shared' {
9
7
  interface ItemProps<T> extends StyleProps, DOMAttributes {
10
8
  /** The rendered label for the item. */
@@ -1,7 +1,8 @@
1
1
  import { BoxProps } from './box';
2
2
  import { Status } from './item';
3
- export interface Requirement extends Status {
3
+ export interface Requirement {
4
4
  name: string;
5
+ status?: Status;
5
6
  }
6
7
  export type Requirements = Array<Requirement>;
7
8
  export interface RequirementsListProps extends BoxProps {
@@ -7,85 +7,85 @@ export declare const descriptions: {
7
7
  ariaLabelledby: string;
8
8
  };
9
9
  export declare const ariaAttributeBaseDocSettings: {
10
- type: {
11
- summary: string;
12
- };
13
10
  control: {
14
11
  type: string;
15
12
  };
16
13
  table: {
14
+ type: {
15
+ summary: string;
16
+ };
17
17
  category: string;
18
18
  };
19
19
  };
20
20
  export declare const ariaAttributeBaseArgTypes: {
21
21
  'aria-controls': {
22
- type: {
23
- summary: string;
24
- };
25
22
  control: {
26
23
  type: string;
27
24
  };
28
25
  table: {
26
+ type: {
27
+ summary: string;
28
+ };
29
29
  category: string;
30
30
  };
31
31
  description: string;
32
32
  };
33
33
  'aria-describedby': {
34
- type: {
35
- summary: string;
36
- };
37
34
  control: {
38
35
  type: string;
39
36
  };
40
37
  table: {
38
+ type: {
39
+ summary: string;
40
+ };
41
41
  category: string;
42
42
  };
43
43
  description: string;
44
44
  };
45
45
  'aria-details': {
46
- type: {
47
- summary: string;
48
- };
49
46
  control: {
50
47
  type: string;
51
48
  };
52
49
  table: {
50
+ type: {
51
+ summary: string;
52
+ };
53
53
  category: string;
54
54
  };
55
55
  description: string;
56
56
  };
57
57
  'aria-errormessage': {
58
- type: {
59
- summary: string;
60
- };
61
58
  control: {
62
59
  type: string;
63
60
  };
64
61
  table: {
62
+ type: {
63
+ summary: string;
64
+ };
65
65
  category: string;
66
66
  };
67
67
  description: string;
68
68
  };
69
69
  'aria-label': {
70
- type: {
71
- summary: string;
72
- };
73
70
  control: {
74
71
  type: string;
75
72
  };
76
73
  table: {
74
+ type: {
75
+ summary: string;
76
+ };
77
77
  category: string;
78
78
  };
79
79
  description: string;
80
80
  };
81
81
  'aria-labelledby': {
82
- type: {
83
- summary: string;
84
- };
85
82
  control: {
86
83
  type: string;
87
84
  };
88
85
  table: {
86
+ type: {
87
+ summary: string;
88
+ };
89
89
  category: string;
90
90
  };
91
91
  description: string;
@@ -32,13 +32,13 @@ var descriptions = {
32
32
  };
33
33
  exports.descriptions = descriptions;
34
34
  var ariaAttributeBaseDocSettings = {
35
- type: {
36
- summary: 'string'
37
- },
38
35
  control: {
39
36
  type: 'text'
40
37
  },
41
38
  table: {
39
+ type: {
40
+ summary: 'string'
41
+ },
42
42
  category: 'Aria Attributes'
43
43
  }
44
44
  };
@@ -18,14 +18,11 @@ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
18
18
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
19
19
  import React, { forwardRef, useCallback, useState } from 'react';
20
20
  import { mergeProps, useLabel } from 'react-aria';
21
- import PropTypes from 'prop-types';
22
21
  import { v4 as uuid } from 'uuid';
23
22
  import { Box, Button, FieldHelperText, Label, Text } from '../..';
24
23
  import { getPendoID } from '../../utils/devUtils/constants/pendoID';
25
24
  import statuses from '../../utils/devUtils/constants/statuses';
26
- import isValidPositiveInt from '../../utils/devUtils/props/isValidPositiveInt';
27
- import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/docUtils/ariaAttributes';
28
- import { statusPropTypes } from '../../utils/docUtils/statusProp';
25
+ import { getAriaAttributeProps } from '../../utils/docUtils/ariaAttributes';
29
26
  import { jsx as ___EmotionJSX } from "@emotion/react";
30
27
  var ArrayField = /*#__PURE__*/forwardRef(function (props, ref) {
31
28
  var _context2;
@@ -79,7 +76,7 @@ var ArrayField = /*#__PURE__*/forwardRef(function (props, ref) {
79
76
  if (typeof event !== 'string') {
80
77
  tempValue = event.target.value;
81
78
  }
82
- if (isControlled) {
79
+ if (isControlled && onChangeRef.current) {
83
80
  onChangeRef.current(mapArrayFieldWithNewValue(valueRef.current, tempValue, fieldId));
84
81
  } else {
85
82
  setFieldValues(function (oldValues) {
@@ -88,7 +85,7 @@ var ArrayField = /*#__PURE__*/forwardRef(function (props, ref) {
88
85
  }
89
86
  }, [isControlled, mapArrayFieldWithNewValue]);
90
87
  var onFieldDelete = useCallback(function (fieldId) {
91
- if (isControlled) {
88
+ if (isControlled && onDeleteRef.current) {
92
89
  onDeleteRef.current(fieldId);
93
90
  } else {
94
91
  setFieldValues(function (oldValues) {
@@ -101,7 +98,7 @@ var ArrayField = /*#__PURE__*/forwardRef(function (props, ref) {
101
98
  }, [isControlled]);
102
99
  var onFieldAdd = useCallback(function () {
103
100
  if (isControlled) {
104
- return onAddRef.current();
101
+ return onAddRef.current && onAddRef.current();
105
102
  }
106
103
  return setFieldValues(function (oldValues) {
107
104
  var _context;
@@ -116,7 +113,10 @@ var ArrayField = /*#__PURE__*/forwardRef(function (props, ref) {
116
113
  if (onComponentRender) {
117
114
  return onComponentRender(id, fieldValue, onFieldValueChange, onFieldDelete, isDisabled, labelId, otherFieldProps);
118
115
  }
119
- return renderField(id, fieldValue, onFieldValueChange, onFieldDelete, isDisabled, otherFieldProps);
116
+ if (renderField) {
117
+ return renderField(id, fieldValue, onFieldValueChange, onFieldDelete, isDisabled, otherFieldProps);
118
+ }
119
+ return null;
120
120
  }, [onFieldValueChange, onFieldDelete, renderField, isDisabled]);
121
121
  var _getAriaAttributeProp = getAriaAttributeProps(others),
122
122
  ariaProps = _getAriaAttributeProp.ariaProps,
@@ -155,41 +155,8 @@ var ArrayField = /*#__PURE__*/forwardRef(function (props, ref) {
155
155
  color: "active"
156
156
  }, addButtonLabel)));
157
157
  });
158
- ArrayField.propTypes = _objectSpread(_objectSpread({
159
- /** Label for add button */
160
- addButtonLabel: PropTypes.string,
161
- /** The default value for the array input field (uncontrolled). */
162
- defaultValue: PropTypes.arrayOf(PropTypes.shape({
163
- id: PropTypes.string,
164
- value: PropTypes.string
165
- })),
166
- /** The default value of the array input field (controlled). */
167
- value: PropTypes.arrayOf(PropTypes.shape({
168
- id: PropTypes.string,
169
- value: PropTypes.string
170
- })),
171
- /** The rendered label for the field. */
172
- label: PropTypes.node,
173
- /** Props object that is spread directly into the label element. */
174
- labelProps: PropTypes.shape({}),
175
- /** Props object that is spread directly into the wrapper rendering the fields. */
176
- fieldControlWrapperProps: PropTypes.shape({}),
177
- /** Text to display before add button. Useful for errors or other info. */
178
- helperText: PropTypes.node,
179
- /** Callback for changing array field data */
180
- onChange: PropTypes.func,
181
- /** Callback for adding new empty field */
182
- onAdd: PropTypes.func,
183
- /** Callback for deleting a field */
184
- onDelete: PropTypes.func,
185
- /** Render prop to display an input field */
186
- renderField: PropTypes.func,
187
- /** Determines the maximum number of items */
188
- maxSize: isValidPositiveInt,
189
- /** Text to display when the maximum number of items is reached */
190
- maxSizeText: PropTypes.node
191
- }, statusPropTypes), ariaAttributesBasePropTypes);
192
158
  ArrayField.defaultProps = {
193
- addButtonLabel: '+ Add'
159
+ addButtonLabel: '+ Add',
160
+ status: statuses.DEFAULT
194
161
  };
195
162
  export default ArrayField;
@@ -55,7 +55,7 @@ export default {
55
55
  },
56
56
  maxSize: {
57
57
  control: {
58
- type: 'number'
58
+ type: 'text'
59
59
  }
60
60
  },
61
61
  maxSizeText: {
@@ -274,7 +274,9 @@ export var Customizations = function Customizations(_ref5) {
274
274
  maxHeight: '150px'
275
275
  },
276
276
  defaultValue: defaultData,
277
- width: "450px",
277
+ sx: {
278
+ width: '450px'
279
+ },
278
280
  labelProps: {
279
281
  hintText: 'Example Hint',
280
282
  isRequired: true,
@@ -198,9 +198,7 @@ test('creates empty field when no data passed', function () {
198
198
  expect(screen.getByLabelText('Text field')).toBeInTheDocument();
199
199
  });
200
200
  test('check if tooltip on delete button renders on hover', function () {
201
- render(___EmotionJSX(ArrayFieldDeleteButton, {
202
- renderField: renderField
203
- }));
201
+ render(___EmotionJSX(ArrayFieldDeleteButton, null));
204
202
  var button = screen.getByRole('button');
205
203
  fireEvent.mouseMove(button);
206
204
  fireEvent.mouseEnter(button);
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import TrashIcon from '@pingux/mdi-react/TrashIcon';
3
- import PropTypes from 'prop-types';
4
3
  import Icon from '../Icon';
5
4
  import IconButton from '../IconButton';
6
5
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -10,7 +9,7 @@ var ArrayFieldDeleteButton = function ArrayFieldDeleteButton(_ref) {
10
9
  onDelete = _ref.onDelete;
11
10
  return ___EmotionJSX(IconButton, {
12
11
  onPress: function onPress() {
13
- return onDelete(id);
12
+ return onDelete && onDelete(id);
14
13
  },
15
14
  isDisabled: isDisabled,
16
15
  "aria-label": "delete-button",
@@ -31,9 +30,4 @@ var ArrayFieldDeleteButton = function ArrayFieldDeleteButton(_ref) {
31
30
  }
32
31
  }));
33
32
  };
34
- ArrayFieldDeleteButton.propTypes = {
35
- id: PropTypes.number,
36
- isDisabled: PropTypes.bool,
37
- onDelete: PropTypes.func
38
- };
39
33
  export default ArrayFieldDeleteButton;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ export * from './arrayField';
1
2
  export * from './badge';
2
3
  export * from './box';
3
4
  export * from './bracket';
@@ -23,13 +23,13 @@ export var descriptions = {
23
23
  ariaLabelledby: 'Identifies the element (or elements) that labels the current element.'
24
24
  };
25
25
  export var ariaAttributeBaseDocSettings = {
26
- type: {
27
- summary: 'string'
28
- },
29
26
  control: {
30
27
  type: 'text'
31
28
  },
32
29
  table: {
30
+ type: {
31
+ summary: 'string'
32
+ },
33
33
  category: 'Aria Attributes'
34
34
  }
35
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.64.1-alpha.0",
3
+ "version": "2.65.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",