@pingux/astro 2.6.1-alpha.1 → 2.7.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/IconButton/IconButton.js +2 -38
- package/lib/cjs/components/IconButton/IconButton.stories.js +2 -34
- package/lib/cjs/components/IconButton/iconButtonAttributes.js +100 -0
- package/lib/cjs/components/ImageUploadField/ImageUploadField.js +1 -0
- package/lib/cjs/components/ListView/ListView.js +0 -9
- package/lib/cjs/components/ListView/ListView.stories.js +34 -80
- package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +6 -1
- package/lib/cjs/components/Menu/Menu.js +7 -60
- package/lib/cjs/components/Menu/Menu.stories.js +2 -56
- package/lib/cjs/components/Menu/menuAttributes.js +104 -0
- package/lib/cjs/components/SwitchField/SwitchField.js +12 -54
- package/lib/cjs/components/SwitchField/SwitchField.stories.js +2 -34
- package/lib/cjs/components/SwitchField/SwitchField.test.js +4 -5
- package/lib/cjs/components/SwitchField/switchFieldAttributes.js +191 -0
- package/lib/cjs/experimental/StyledListItem/StyledListItem.js +159 -0
- package/lib/cjs/experimental/StyledListItem/StyledListItem.stories.js +155 -0
- package/lib/cjs/experimental/StyledListItem/StyledListItem.test.js +83 -0
- package/lib/cjs/experimental/StyledListItem/controls/ListItemEditButton.js +34 -0
- package/lib/cjs/experimental/StyledListItem/controls/ListItemEditButton.stories.js +31 -0
- package/lib/cjs/experimental/StyledListItem/controls/ListItemEditButton.test.js +25 -0
- package/lib/cjs/experimental/StyledListItem/controls/ListItemMenu.js +37 -0
- package/lib/cjs/experimental/StyledListItem/controls/ListItemMenu.stories.js +36 -0
- package/lib/cjs/experimental/StyledListItem/controls/ListItemMenu.test.js +59 -0
- package/lib/cjs/experimental/StyledListItem/controls/ListItemSwitchField.js +32 -0
- package/lib/cjs/experimental/StyledListItem/controls/ListItemSwitchField.stories.js +41 -0
- package/lib/cjs/experimental/StyledListItem/controls/ListItemSwitchField.test.js +25 -0
- package/lib/cjs/experimental/StyledListItem/styledListItemAttributes.js +81 -0
- package/lib/cjs/experimental/recipes/ListAndPanel.stories.js +370 -0
- package/lib/cjs/experimental/recipes/ScrollableListView.stories.js +108 -0
- package/lib/cjs/experimental/recipes/items.js +126 -0
- package/lib/cjs/index.js +33 -1
- package/lib/cjs/utils/docUtils/ariaAttributes.js +2 -1
- package/lib/cjs/utils/docUtils/docArgTypes.js +41 -0
- package/lib/cjs/utils/docUtils/hoverProps.js +7 -2
- package/lib/components/IconButton/IconButton.js +2 -38
- package/lib/components/IconButton/IconButton.stories.js +2 -34
- package/lib/components/IconButton/iconButtonAttributes.js +91 -0
- package/lib/components/ImageUploadField/ImageUploadField.js +1 -0
- package/lib/components/ListView/ListView.js +0 -9
- package/lib/components/ListView/ListView.stories.js +35 -82
- package/lib/components/ListViewItem/ListViewItem.styles.js +6 -1
- package/lib/components/Menu/Menu.js +7 -60
- package/lib/components/Menu/Menu.stories.js +2 -57
- package/lib/components/Menu/menuAttributes.js +95 -0
- package/lib/components/SwitchField/SwitchField.js +14 -55
- package/lib/components/SwitchField/SwitchField.stories.js +2 -34
- package/lib/components/SwitchField/SwitchField.test.js +4 -5
- package/lib/components/SwitchField/switchFieldAttributes.js +182 -0
- package/lib/experimental/StyledListItem/StyledListItem.js +146 -0
- package/lib/experimental/StyledListItem/StyledListItem.stories.js +140 -0
- package/lib/experimental/StyledListItem/StyledListItem.test.js +74 -0
- package/lib/experimental/StyledListItem/controls/ListItemEditButton.js +25 -0
- package/lib/experimental/StyledListItem/controls/ListItemEditButton.stories.js +21 -0
- package/lib/experimental/StyledListItem/controls/ListItemEditButton.test.js +22 -0
- package/lib/experimental/StyledListItem/controls/ListItemMenu.js +28 -0
- package/lib/experimental/StyledListItem/controls/ListItemMenu.stories.js +26 -0
- package/lib/experimental/StyledListItem/controls/ListItemMenu.test.js +56 -0
- package/lib/experimental/StyledListItem/controls/ListItemSwitchField.js +23 -0
- package/lib/experimental/StyledListItem/controls/ListItemSwitchField.stories.js +32 -0
- package/lib/experimental/StyledListItem/controls/ListItemSwitchField.test.js +22 -0
- package/lib/experimental/StyledListItem/styledListItemAttributes.js +72 -0
- package/lib/experimental/recipes/ListAndPanel.stories.js +353 -0
- package/lib/experimental/recipes/ScrollableListView.stories.js +93 -0
- package/lib/experimental/recipes/items.js +117 -0
- package/lib/index.js +7 -1
- package/lib/utils/docUtils/ariaAttributes.js +1 -1
- package/lib/utils/docUtils/docArgTypes.js +29 -0
- package/lib/utils/docUtils/hoverProps.js +7 -2
- package/package.json +1 -1
@@ -11,6 +11,7 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
11
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
12
12
|
import PropTypes from 'prop-types';
|
13
13
|
var descriptions = {
|
14
|
+
isHovered: 'If the item is hovered',
|
14
15
|
onHoverStart: 'Handler that is called when a hover interaction starts.',
|
15
16
|
onHoverEnd: 'Handler that is called when a hover interaction ends.',
|
16
17
|
onHoverChange: 'Handler that is called when the hover state changes.'
|
@@ -27,6 +28,9 @@ export var baseDocSettings = {
|
|
27
28
|
}
|
28
29
|
};
|
29
30
|
export var onHoverArgTypes = {
|
31
|
+
isHovered: _objectSpread({
|
32
|
+
description: descriptions.isHovered
|
33
|
+
}, baseDocSettings),
|
30
34
|
'onHoverStart': _objectSpread({
|
31
35
|
description: descriptions.onHoverStart
|
32
36
|
}, baseDocSettings),
|
@@ -38,7 +42,8 @@ export var onHoverArgTypes = {
|
|
38
42
|
}, baseDocSettings)
|
39
43
|
};
|
40
44
|
export var onHoverPropTypes = {
|
41
|
-
|
45
|
+
isHovered: PropTypes.bool,
|
46
|
+
onHoverChange: PropTypes.func,
|
42
47
|
onHoverEnd: PropTypes.func,
|
43
|
-
|
48
|
+
onHoverStart: PropTypes.func
|
44
49
|
};
|