@pingux/astro 2.64.0 → 2.65.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 (32) 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/ComboBox/ComboBoxInput.js +1 -1
  12. package/lib/cjs/components/ListView/ListView.stories.d.ts +18 -18
  13. package/lib/cjs/components/ListView/listViewAttributes.d.ts +18 -18
  14. package/lib/cjs/types/arrayField.d.ts +46 -0
  15. package/lib/cjs/types/arrayField.js +6 -0
  16. package/lib/cjs/types/callout.d.ts +2 -1
  17. package/lib/cjs/types/fieldHelperText.d.ts +2 -1
  18. package/lib/cjs/types/index.d.ts +1 -0
  19. package/lib/cjs/types/index.js +54 -43
  20. package/lib/cjs/types/item.d.ts +1 -3
  21. package/lib/cjs/types/requirementsList.d.ts +2 -1
  22. package/lib/cjs/utils/docUtils/ariaAttributes.d.ts +21 -21
  23. package/lib/cjs/utils/docUtils/ariaAttributes.js +3 -3
  24. package/lib/components/ArrayField/ArrayField.js +10 -43
  25. package/lib/components/ArrayField/ArrayField.stories.js +4 -2
  26. package/lib/components/ArrayField/ArrayField.test.js +1 -3
  27. package/lib/components/ArrayField/ArrayFieldDeleteButton.js +1 -7
  28. package/lib/components/ComboBox/ComboBoxInput.js +1 -1
  29. package/lib/types/arrayField.js +1 -0
  30. package/lib/types/index.js +1 -0
  31. package/lib/utils/docUtils/ariaAttributes.js +3 -3
  32. package/package.json +1 -1
@@ -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;
@@ -119,7 +119,7 @@ var ComboBoxInput = /*#__PURE__*/forwardRef(function (props, ref) {
119
119
  transform: 'rotate(180deg)'
120
120
  } : null,
121
121
  title: {
122
- name: 'Menu Down Icon'
122
+ name: 'Menu Down'
123
123
  }
124
124
  }))));
125
125
  return ___EmotionJSX(FocusRing, {
@@ -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.0",
3
+ "version": "2.65.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",