@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.
- package/lib/cjs/components/ArrayField/ArrayField.d.ts +4 -0
- package/lib/cjs/components/ArrayField/ArrayField.js +9 -42
- package/lib/cjs/components/ArrayField/ArrayField.stories.d.ts +11 -0
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +4 -2
- package/lib/cjs/components/ArrayField/ArrayField.test.d.ts +1 -0
- package/lib/cjs/components/ArrayField/ArrayField.test.js +1 -3
- package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.d.ts +4 -0
- package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.js +1 -7
- package/lib/cjs/components/ArrayField/index.d.ts +2 -0
- package/lib/cjs/components/Calendar/Calendar.stories.d.ts +18 -18
- package/lib/cjs/components/ComboBox/ComboBoxInput.js +1 -1
- package/lib/cjs/components/ListView/ListView.stories.d.ts +18 -18
- package/lib/cjs/components/ListView/listViewAttributes.d.ts +18 -18
- package/lib/cjs/types/arrayField.d.ts +46 -0
- package/lib/cjs/types/arrayField.js +6 -0
- package/lib/cjs/types/callout.d.ts +2 -1
- package/lib/cjs/types/fieldHelperText.d.ts +2 -1
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +54 -43
- package/lib/cjs/types/item.d.ts +1 -3
- package/lib/cjs/types/requirementsList.d.ts +2 -1
- package/lib/cjs/utils/docUtils/ariaAttributes.d.ts +21 -21
- package/lib/cjs/utils/docUtils/ariaAttributes.js +3 -3
- package/lib/components/ArrayField/ArrayField.js +10 -43
- package/lib/components/ArrayField/ArrayField.stories.js +4 -2
- package/lib/components/ArrayField/ArrayField.test.js +1 -3
- package/lib/components/ArrayField/ArrayFieldDeleteButton.js +1 -7
- package/lib/components/ComboBox/ComboBoxInput.js +1 -1
- package/lib/types/arrayField.js +1 -0
- package/lib/types/index.js +1 -0
- package/lib/utils/docUtils/ariaAttributes.js +3 -3
- 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;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/lib/types/index.js
CHANGED
@@ -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
|
};
|