@zohodesk/components 1.0.0-alpha-252 → 1.0.0-alpha-254
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/README.md +6 -0
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/dark/themes/red/redDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +3 -0
- package/assets/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +3 -0
- package/assets/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +3 -0
- package/assets/Appearance/default/themes/red/redDefaultComponentTheme.module.css +3 -0
- package/assets/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +3 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +3 -0
- package/css_error.log +0 -0
- package/es/AppContainer/AppContainer.js +1 -0
- package/es/Avatar/Avatar.js +2 -1
- package/es/Button/Button.js +5 -3
- package/es/Card/props/defaultProps.js +0 -1
- package/es/Card/props/propTypes.js +2 -2
- package/es/DateTime/CalendarView.js +4 -2
- package/es/DateTime/DateTime.module.css +1 -0
- package/es/DateTime/DateTimePopupHeader.js +21 -8
- package/es/DateTime/DateWidget.js +4 -2
- package/es/DateTime/DaysRow.js +2 -1
- package/es/DateTime/YearView.js +12 -4
- package/es/DateTime/YearView.module.css +19 -1
- package/es/DropBox/DropBox.js +24 -4
- package/es/DropBox/props/defaultProps.js +2 -1
- package/es/DropBox/props/propTypes.js +1 -0
- package/es/DropDown/DropDownHeading.js +3 -1
- package/es/DropDown/props/propTypes.js +2 -1
- package/es/Label/Label.js +4 -2
- package/es/Layout/props/propTypes.js +3 -3
- package/es/ListItem/ListContainer.js +5 -2
- package/es/MultiSelect/MultiSelect.js +4 -2
- package/es/MultiSelect/Suggestions.js +2 -1
- package/es/Responsive/CustomResponsive.js +7 -3
- package/es/Select/Select.js +7 -4
- package/es/Select/SelectWithIcon.js +2 -1
- package/es/Switch/Switch.js +7 -5
- package/es/Tab/TabContent.js +1 -1
- package/es/Tab/Tabs.js +13 -7
- package/es/Tab/Tabs.module.css +1 -1
- package/es/Tooltip/Tooltip.js +4 -1
- package/es/common/a11y.module.css +4 -0
- package/es/index.js +107 -106
- package/lib/AppContainer/AppContainer.js +1 -0
- package/lib/Avatar/Avatar.js +2 -1
- package/lib/Button/Button.js +5 -3
- package/lib/Card/props/defaultProps.js +0 -1
- package/lib/Card/props/propTypes.js +2 -2
- package/lib/DateTime/CalendarView.js +4 -2
- package/lib/DateTime/DateTime.module.css +1 -0
- package/lib/DateTime/DateTimePopupHeader.js +21 -8
- package/lib/DateTime/DateWidget.js +4 -2
- package/lib/DateTime/DaysRow.js +2 -1
- package/lib/DateTime/YearView.js +12 -4
- package/lib/DateTime/YearView.module.css +19 -1
- package/lib/DropBox/DropBox.js +24 -4
- package/lib/DropBox/props/defaultProps.js +2 -1
- package/lib/DropBox/props/propTypes.js +1 -0
- package/lib/DropDown/DropDownHeading.js +3 -1
- package/lib/DropDown/props/propTypes.js +2 -1
- package/lib/Label/Label.js +4 -2
- package/lib/Layout/props/propTypes.js +3 -3
- package/lib/ListItem/ListContainer.js +5 -2
- package/lib/MultiSelect/MultiSelect.js +4 -2
- package/lib/MultiSelect/Suggestions.js +2 -1
- package/lib/Responsive/CustomResponsive.js +7 -3
- package/lib/Select/Select.js +7 -4
- package/lib/Select/SelectWithIcon.js +2 -1
- package/lib/Switch/Switch.js +7 -5
- package/lib/Tab/TabContent.js +1 -1
- package/lib/Tab/Tabs.js +13 -7
- package/lib/Tab/Tabs.module.css +1 -1
- package/lib/Tooltip/Tooltip.js +4 -1
- package/lib/common/a11y.module.css +4 -0
- package/lib/index.js +1 -842
- package/package.json +14 -7
- package/es/Accordion/docs/Accordion__Demo.docs.js +0 -78
- package/es/Animation/docs/Animation__default.docs.js +0 -32
- package/es/Animation/docs/Animation__fadeIn.docs.js +0 -32
- package/es/Animation/docs/Animation__scaleIn.docs.js +0 -32
- package/es/Animation/docs/Animation__skewIn.docs.js +0 -32
- package/es/Animation/docs/Animation__slideDown.docs.js +0 -32
- package/es/Animation/docs/Animation__slideLeft.docs.js +0 -32
- package/es/Animation/docs/Animation__zoomIn.docs.js +0 -32
- package/es/AppContainer/docs/AppContainer__default.docs.js +0 -18
- package/es/Avatar/docs/Avatar__custom.docs.js +0 -27
- package/es/Avatar/docs/Avatar__default.docs.js +0 -27
- package/es/Avatar/docs/Avatar__palette.docs.js +0 -47
- package/es/Avatar/docs/Avatar__text.docs.js +0 -26
- package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -71
- package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -29
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -48
- package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -47
- package/es/Button/docs/Button__custom.docs.js +0 -769
- package/es/Button/docs/Button__default.docs.js +0 -534
- package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -35
- package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -31
- package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -40
- package/es/Card/docs/Card__Custom.docs.js +0 -32
- package/es/Card/docs/Card__Default.docs.js +0 -35
- package/es/Card/docs/Card__Scroll.docs.js +0 -56
- package/es/CheckBox/docs/CheckBox__custom.docs.js +0 -289
- package/es/CheckBox/docs/CheckBox__default.docs.js +0 -215
- package/es/DateTime/docs/DateTime__default.docs.js +0 -88
- package/es/DateTime/docs/DateWidget__default.docs.js +0 -178
- package/es/DateTime/docs/timezonedata.json +0 -1
- package/es/DropBox/docs/DropBox__custom.docs.js +0 -64
- package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -85
- package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -84
- package/es/DropBox/docs/DropBox__position.docs.js +0 -85
- package/es/DropBox/docs/DropBox__size.docs.js +0 -59
- package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -21
- package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -19
- package/es/Heading/docs/Heading__default.docs.js +0 -19
- package/es/Label/docs/Label__clipped.docs.js +0 -25
- package/es/Label/docs/Label__custom.docs.js +0 -28
- package/es/Label/docs/Label__palette.docs.js +0 -40
- package/es/Label/docs/Label__size.docs.js +0 -27
- package/es/Label/docs/Label__type.docs.js +0 -35
- package/es/Layout/docs/Layout__Hidden.docs.js +0 -76
- package/es/Layout/docs/Layout__default.docs.js +0 -48
- package/es/Layout/docs/Layout__four_Column.docs.js +0 -78
- package/es/Layout/docs/Layout__three_Column.docs.js +0 -75
- package/es/Layout/docs/Layout__two_Column.docs.js +0 -68
- package/es/LightNightMode/Colors.json +0 -497
- package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -92
- package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -153
- package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -110
- package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -89
- package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -63
- package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -66
- package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -60
- package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -89
- package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -63
- package/es/ListItem/docs/ListItem__custom.docs.js +0 -112
- package/es/ListItem/docs/ListItem__default.docs.js +0 -80
- package/es/Modal/__docs__/Modal__default.docs.js +0 -42
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -118
- package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -108
- package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -137
- package/es/MultiSelect/docs/MultiSelect__default.docs.js +0 -156
- package/es/PopOver/docs/PopOver__default.docs.js +0 -30
- package/es/Provider/docs/Provider_Id__Class.docs.js +0 -28
- package/es/Provider/docs/Provider_Id__Function.docs.js +0 -17
- package/es/Provider/docs/Provider_Zindex__Class.docs.js +0 -31
- package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -22
- package/es/Provider.js +0 -91
- package/es/Radio/docs/Radio__custom.docs.js +0 -241
- package/es/Radio/docs/Radio__default.docs.js +0 -165
- package/es/Responsive/docs/Responsive__Custom.docs.js +0 -214
- package/es/Responsive/docs/Responsive__default.docs.js +0 -95
- package/es/Responsive/docs/style.module.css +0 -56
- package/es/Ribbon/docs/Ribbon__custom.docs.js +0 -385
- package/es/Ribbon/docs/Ribbon__default.docs.js +0 -341
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +0 -433
- package/es/Select/docs/GroupSelect__default.docs.js +0 -144
- package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -93
- package/es/Select/docs/SelectWithIcon__default.docs.js +0 -134
- package/es/Select/docs/Select__default.docs.js +0 -283
- package/es/Stencils/docs/Stencils__custom.docs.js +0 -43
- package/es/Stencils/docs/Stencils__default.docs.js +0 -48
- package/es/Switch/docs/Switch__custom.docs.js +0 -151
- package/es/Switch/docs/Switch__default.docs.js +0 -105
- package/es/Tab/docs/Tab__default.docs.js +0 -253
- package/es/Tab/docs/tabdocs.module.css +0 -29
- package/es/Tag/docs/Tag__custom.docs.js +0 -366
- package/es/Tag/docs/Tag__default.docs.js +0 -321
- package/es/TextBox/docs/TextBox__custom.docs.js +0 -41
- package/es/TextBox/docs/TextBox__default.docs.js +0 -38
- package/es/TextBox/docs/TextBox__size.docs.js +0 -36
- package/es/TextBox/docs/TextBox__variant.docs.js +0 -36
- package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -87
- package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -59
- package/es/Textarea/docs/Textarea__animated.docs.js +0 -39
- package/es/Textarea/docs/Textarea__custom.docs.js +0 -80
- package/es/Textarea/docs/Textarea__default.docs.js +0 -74
- package/es/Textarea/docs/Textarea__disabled.docs.js +0 -27
- package/es/Tooltip/docs/Tooltip__default.docs.js +0 -367
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -92
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -139
- package/es/common/docStyle.module.css +0 -766
- package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -65
- package/es/semantic/Button/docs/Button__default.docs.js +0 -17
- package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -104
- package/lib/Animation/docs/Animation__default.docs.js +0 -61
- package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -61
- package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -61
- package/lib/Animation/docs/Animation__skewIn.docs.js +0 -61
- package/lib/Animation/docs/Animation__slideDown.docs.js +0 -61
- package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -61
- package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -61
- package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -47
- package/lib/Avatar/docs/Avatar__custom.docs.js +0 -62
- package/lib/Avatar/docs/Avatar__default.docs.js +0 -60
- package/lib/Avatar/docs/Avatar__palette.docs.js +0 -82
- package/lib/Avatar/docs/Avatar__text.docs.js +0 -61
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -100
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -58
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -77
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -76
- package/lib/Button/docs/Button__custom.docs.js +0 -800
- package/lib/Button/docs/Button__default.docs.js +0 -565
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -64
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -60
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -71
- package/lib/Card/docs/Card__Custom.docs.js +0 -63
- package/lib/Card/docs/Card__Default.docs.js +0 -66
- package/lib/Card/docs/Card__Scroll.docs.js +0 -87
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -323
- package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -249
- package/lib/DateTime/docs/DateTime__default.docs.js +0 -119
- package/lib/DateTime/docs/DateWidget__default.docs.js +0 -212
- package/lib/DateTime/docs/timezonedata.json +0 -1
- package/lib/DropBox/docs/DropBox__custom.docs.js +0 -97
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -114
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -113
- package/lib/DropBox/docs/DropBox__position.docs.js +0 -118
- package/lib/DropBox/docs/DropBox__size.docs.js +0 -92
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -50
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -48
- package/lib/Heading/docs/Heading__default.docs.js +0 -50
- package/lib/Label/docs/Label__clipped.docs.js +0 -56
- package/lib/Label/docs/Label__custom.docs.js +0 -59
- package/lib/Label/docs/Label__palette.docs.js +0 -71
- package/lib/Label/docs/Label__size.docs.js +0 -58
- package/lib/Label/docs/Label__type.docs.js +0 -66
- package/lib/Layout/docs/Layout__Hidden.docs.js +0 -105
- package/lib/Layout/docs/Layout__default.docs.js +0 -77
- package/lib/Layout/docs/Layout__four_Column.docs.js +0 -107
- package/lib/Layout/docs/Layout__three_Column.docs.js +0 -104
- package/lib/Layout/docs/Layout__two_Column.docs.js +0 -97
- package/lib/LightNightMode/Colors.json +0 -497
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +0 -128
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -182
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -139
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -118
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -92
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -95
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -89
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -118
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -92
- package/lib/ListItem/docs/ListItem__custom.docs.js +0 -141
- package/lib/ListItem/docs/ListItem__default.docs.js +0 -109
- package/lib/Modal/__docs__/Modal__default.docs.js +0 -65
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -154
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -140
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -165
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -186
- package/lib/PopOver/docs/PopOver__default.docs.js +0 -61
- package/lib/Provider/docs/Provider_Id__Class.docs.js +0 -56
- package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -24
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -59
- package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -29
- package/lib/Provider.js +0 -116
- package/lib/Radio/docs/Radio__custom.docs.js +0 -273
- package/lib/Radio/docs/Radio__default.docs.js +0 -197
- package/lib/Responsive/docs/Responsive__Custom.docs.js +0 -247
- package/lib/Responsive/docs/Responsive__default.docs.js +0 -118
- package/lib/Responsive/docs/style.module.css +0 -56
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +0 -414
- package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -370
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -462
- package/lib/Select/docs/GroupSelect__default.docs.js +0 -173
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -124
- package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -165
- package/lib/Select/docs/Select__default.docs.js +0 -313
- package/lib/Stencils/docs/Stencils__custom.docs.js +0 -72
- package/lib/Stencils/docs/Stencils__default.docs.js +0 -77
- package/lib/Switch/docs/Switch__custom.docs.js +0 -180
- package/lib/Switch/docs/Switch__default.docs.js +0 -134
- package/lib/Tab/docs/Tab__default.docs.js +0 -283
- package/lib/Tab/docs/tabdocs.module.css +0 -29
- package/lib/Tag/docs/Tag__custom.docs.js +0 -397
- package/lib/Tag/docs/Tag__default.docs.js +0 -352
- package/lib/TextBox/docs/TextBox__custom.docs.js +0 -72
- package/lib/TextBox/docs/TextBox__default.docs.js +0 -69
- package/lib/TextBox/docs/TextBox__size.docs.js +0 -67
- package/lib/TextBox/docs/TextBox__variant.docs.js +0 -67
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -118
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -90
- package/lib/Textarea/docs/Textarea__animated.docs.js +0 -70
- package/lib/Textarea/docs/Textarea__custom.docs.js +0 -111
- package/lib/Textarea/docs/Textarea__default.docs.js +0 -105
- package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -58
- package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -402
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -123
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -174
- package/lib/common/docStyle.module.css +0 -766
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -111
- package/lib/semantic/Button/docs/Button__default.docs.js +0 -43
package/README.md
CHANGED
|
@@ -32,6 +32,12 @@ In this Package, we Provide Some Basic Components to Build Web App
|
|
|
32
32
|
- TextBoxIcon
|
|
33
33
|
- Tooltip
|
|
34
34
|
|
|
35
|
+
# 1.0.0-alpha-253
|
|
36
|
+
|
|
37
|
+
- **Tabs, Tooltip** - If condition check added to reduce murphy error logs.
|
|
38
|
+
|
|
39
|
+
- `Accesssility`- Screen Reader support for some components.
|
|
40
|
+
|
|
35
41
|
# 1.0.0-alpha-252
|
|
36
42
|
|
|
37
43
|
- **Select,GroupSelect,SelectWithAvatar,SelectWithIcon,MultiSelect,MultiSelectWithAvatar** - Initial Loader and Scroll End Loader added.
|
package/css_error.log
ADDED
|
File without changes
|
|
@@ -12,6 +12,7 @@ import '@zohodesk/variables/assets/fontsizeVariables.module.css';
|
|
|
12
12
|
import '@zohodesk/variables/lib/fontFamilyVariables.module.css';
|
|
13
13
|
import '@zohodesk/variables/assets/transitionVariables.module.css';
|
|
14
14
|
import '@zohodesk/variables/assets/no_transitionVariables.module.css';
|
|
15
|
+
import '../common/a11y.module.css';
|
|
15
16
|
import style from './AppContainer.module.css';
|
|
16
17
|
import { getLibraryConfig, setLibraryConfig } from '../Provider/Config';
|
|
17
18
|
export default class AppContainer extends React.Component {
|
package/es/Avatar/Avatar.js
CHANGED
|
@@ -154,7 +154,8 @@ export default class Avatar extends React.Component {
|
|
|
154
154
|
name: name,
|
|
155
155
|
onError: this.putInvalidImageURLJSON,
|
|
156
156
|
onLoad: this.putValidImageURLJSON,
|
|
157
|
-
src: showAlternateAvatar ? alternateSrc : src
|
|
157
|
+
src: showAlternateAvatar ? alternateSrc : src,
|
|
158
|
+
alt: name
|
|
158
159
|
}), !isValidImageList && !showAlternateAvatar ? null : /*#__PURE__*/React.createElement("span", {
|
|
159
160
|
className: `${style.shadow} ${textStyle} `
|
|
160
161
|
})));
|
package/es/Button/Button.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { defaultProps } from './props/defaultProps';
|
|
3
4
|
import { propTypes } from './props/propTypes';
|
|
@@ -24,7 +25,8 @@ export default class Button extends React.Component {
|
|
|
24
25
|
needAppearance,
|
|
25
26
|
getRef,
|
|
26
27
|
title,
|
|
27
|
-
customClass
|
|
28
|
+
customClass,
|
|
29
|
+
customProps
|
|
28
30
|
} = this.props;
|
|
29
31
|
let {
|
|
30
32
|
customButton = '',
|
|
@@ -35,7 +37,7 @@ export default class Button extends React.Component {
|
|
|
35
37
|
let statusLower = status.toLowerCase();
|
|
36
38
|
let classList = needAppearance ? `${style[paletteLower]} ${rounded ? style.rounded : ''} ${!children ? style[size.toLowerCase()] : `${style[`${size}Btn`]}
|
|
37
39
|
${rounded ? style[`${size}Btn${paletteLower}`] : ''}`} ${statusLower !== 'none' ? style.loader : ''}` : `${style.default}`;
|
|
38
|
-
return /*#__PURE__*/React.createElement("button", {
|
|
40
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
39
41
|
className: `${customButton} ${classList} ${isBold ? style.bold : ''} `,
|
|
40
42
|
"data-id": disabled ? `${dataId}_disabled` : dataId,
|
|
41
43
|
disabled: disabled || statusLower === 'loading',
|
|
@@ -43,7 +45,7 @@ export default class Button extends React.Component {
|
|
|
43
45
|
"data-title": title,
|
|
44
46
|
type: "button",
|
|
45
47
|
ref: getRef
|
|
46
|
-
}, children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
}, customProps), children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
|
|
47
49
|
className: style.overlay
|
|
48
50
|
}, /*#__PURE__*/React.createElement("div", {
|
|
49
51
|
className: `${customStatusSize} ${statusLower === 'loading' ? `${style.loading} ${style[`${size}loading`] ? style[`${size}loading`] : ''}` : style.success}`
|
|
@@ -11,10 +11,10 @@ export const CardContent_propTypes = {
|
|
|
11
11
|
eleRef: PropTypes.func,
|
|
12
12
|
isScrollAttribute: PropTypes.bool,
|
|
13
13
|
onScroll: PropTypes.func,
|
|
14
|
-
scroll: PropTypes.
|
|
14
|
+
scroll: PropTypes.oneOf(['vertical', 'horizontal', 'both', 'none']),
|
|
15
15
|
shrink: PropTypes.bool,
|
|
16
16
|
customClass: PropTypes.string,
|
|
17
|
-
preventParentScroll: PropTypes.
|
|
17
|
+
preventParentScroll: PropTypes.oneOf(['vertical', 'horizontal', 'both'])
|
|
18
18
|
};
|
|
19
19
|
export const Card_propTypes = {
|
|
20
20
|
childTypes: PropTypes.object,
|
|
@@ -147,7 +147,8 @@ export default class CalendarView extends React.PureComponent {
|
|
|
147
147
|
})();
|
|
148
148
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DaysRow, {
|
|
149
149
|
dayNames: dayNames,
|
|
150
|
-
dayNamesShort: dayNamesShort
|
|
150
|
+
dayNamesShort: dayNamesShort,
|
|
151
|
+
ariaLabel: dayNamesShort
|
|
151
152
|
}), /*#__PURE__*/React.createElement("div", {
|
|
152
153
|
"data-id": `${dataId}_dateContainer`,
|
|
153
154
|
className: `${style.dateContainer} ${needBorder ? style.separator : ''}`
|
|
@@ -183,7 +184,8 @@ export class Span extends React.PureComponent {
|
|
|
183
184
|
dataId: dataId,
|
|
184
185
|
className: `${tdclass} ${isActive ? style.active : ''} ${isToday ? style.today : ''}`,
|
|
185
186
|
key: i,
|
|
186
|
-
onClick: this.handleSelectChild
|
|
187
|
+
onClick: this.handleSelectChild,
|
|
188
|
+
"aria-label": incremday
|
|
187
189
|
}, incremday);
|
|
188
190
|
}
|
|
189
191
|
}
|
|
@@ -6,6 +6,7 @@ import React, { PureComponent } from 'react';
|
|
|
6
6
|
/** ** Components *** */
|
|
7
7
|
import { Container, Box } from '../Layout';
|
|
8
8
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
9
|
+
import Heading from '../Heading/Heading';
|
|
9
10
|
|
|
10
11
|
/** ** CSS *** */
|
|
11
12
|
import style from './DateTime.module.css';
|
|
@@ -26,13 +27,16 @@ class Span extends React.PureComponent {
|
|
|
26
27
|
dataTitle,
|
|
27
28
|
children,
|
|
28
29
|
dataId,
|
|
29
|
-
className = ''
|
|
30
|
+
className = '',
|
|
31
|
+
ariaLabel
|
|
30
32
|
} = this.props;
|
|
31
33
|
return /*#__PURE__*/React.createElement(Box, {
|
|
32
34
|
"data-title": dataTitle,
|
|
33
35
|
dataId: dataId,
|
|
34
36
|
className: `${style.thArrow} ${style.grid} ${className}`,
|
|
35
|
-
onClick: this.modifyCalendarChild
|
|
37
|
+
onClick: this.modifyCalendarChild,
|
|
38
|
+
"aria-label": ariaLabel,
|
|
39
|
+
tabindex: "0"
|
|
36
40
|
}, children);
|
|
37
41
|
}
|
|
38
42
|
}
|
|
@@ -54,19 +58,26 @@ export default class DateTimePopupHeader extends PureComponent {
|
|
|
54
58
|
className: style.dateText,
|
|
55
59
|
dataId: "selectYear",
|
|
56
60
|
onClick: onOpenYearView
|
|
57
|
-
}, /*#__PURE__*/React.createElement(
|
|
58
|
-
className: style.thMonYear
|
|
59
|
-
|
|
61
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
62
|
+
className: style.thMonYear,
|
|
63
|
+
title: showMonthTxt,
|
|
64
|
+
tagName: "h2",
|
|
65
|
+
a11y: {
|
|
66
|
+
tabindex: '0'
|
|
67
|
+
}
|
|
68
|
+
}), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Icon, {
|
|
60
69
|
name: "ZD-GN-dropdown",
|
|
61
70
|
size: "12",
|
|
62
71
|
iconClass: style.downArrow
|
|
63
|
-
})), /*#__PURE__*/React.createElement(Box, {
|
|
72
|
+
}))), /*#__PURE__*/React.createElement(Box, {
|
|
64
73
|
flexible: true
|
|
65
74
|
}), !isYearView ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Span, {
|
|
66
75
|
dataTitle: prevMonthTitleText,
|
|
67
76
|
dataId: "prevMonth",
|
|
68
77
|
modifyCalendar: onModifyCalendar,
|
|
69
|
-
type: "previousMonth"
|
|
78
|
+
type: "previousMonth",
|
|
79
|
+
ariaLabel: "prevMonth",
|
|
80
|
+
tabindex: "0"
|
|
70
81
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
71
82
|
name: "ZD-arrowLeft3",
|
|
72
83
|
isBold: true
|
|
@@ -75,7 +86,9 @@ export default class DateTimePopupHeader extends PureComponent {
|
|
|
75
86
|
dataId: "nextMonth",
|
|
76
87
|
modifyCalendar: onModifyCalendar,
|
|
77
88
|
type: "nextMonth",
|
|
78
|
-
className: style.navigation
|
|
89
|
+
className: style.navigation,
|
|
90
|
+
ariaLabel: "nextMonth",
|
|
91
|
+
tabindex: "0"
|
|
79
92
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
80
93
|
name: "ZD-arrowRight3",
|
|
81
94
|
isBold: true
|
|
@@ -919,7 +919,8 @@ class DateWidgetComponent extends React.Component {
|
|
|
919
919
|
positionsOffset,
|
|
920
920
|
targetOffset,
|
|
921
921
|
isRestrictScroll,
|
|
922
|
-
dropBoxPortalId
|
|
922
|
+
dropBoxPortalId,
|
|
923
|
+
a11y
|
|
923
924
|
} = this.props;
|
|
924
925
|
const {
|
|
925
926
|
selected: value = '',
|
|
@@ -969,7 +970,8 @@ class DateWidgetComponent extends React.Component {
|
|
|
969
970
|
},
|
|
970
971
|
iconOnHover: iconOnHover,
|
|
971
972
|
isFocus: isPopupReady,
|
|
972
|
-
autoComplete: false
|
|
973
|
+
autoComplete: false,
|
|
974
|
+
a11y: a11y
|
|
973
975
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
974
976
|
align: "both",
|
|
975
977
|
onClick: isDisabled || isReadOnly ? null : this.handleDateIconClick
|
package/es/DateTime/DaysRow.js
CHANGED
|
@@ -20,7 +20,8 @@ export default class DaysRow extends PureComponent {
|
|
|
20
20
|
}, dayNames.map((dayName, index) => /*#__PURE__*/React.createElement(Box, {
|
|
21
21
|
key: dayName,
|
|
22
22
|
className: `${style.daysStr} ${style.grid} ${index === 0 ? style.sunday : ''}`,
|
|
23
|
-
"data-title": dayName
|
|
23
|
+
"data-title": dayName,
|
|
24
|
+
"aria-label": dayName
|
|
24
25
|
}, dayNamesShort[index])));
|
|
25
26
|
}
|
|
26
27
|
}
|
package/es/DateTime/YearView.js
CHANGED
|
@@ -7,6 +7,7 @@ import { YearView_defaultProps } from './props/defaultProps';
|
|
|
7
7
|
import { Virtualizer } from '@zohodesk/virtualizer';
|
|
8
8
|
import { Container, Box } from '../Layout';
|
|
9
9
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
10
|
+
import Heading from '../Heading/Heading';
|
|
10
11
|
/**** CSS ****/
|
|
11
12
|
import style from './YearView.module.css';
|
|
12
13
|
|
|
@@ -50,9 +51,15 @@ class Year extends React.PureComponent {
|
|
|
50
51
|
alignBox: "row",
|
|
51
52
|
align: "vertical"
|
|
52
53
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
53
|
-
flexible: true
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
flexible: true
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
56
|
+
className: style.yearText,
|
|
57
|
+
title: year,
|
|
58
|
+
a11y: {
|
|
59
|
+
tabindex: '0'
|
|
60
|
+
},
|
|
61
|
+
tagName: "h4"
|
|
62
|
+
})), /*#__PURE__*/React.createElement(Icon, {
|
|
56
63
|
name: "ZD-arrowDownSingle",
|
|
57
64
|
size: "7",
|
|
58
65
|
isBold: true,
|
|
@@ -85,7 +92,8 @@ class Month extends React.PureComponent {
|
|
|
85
92
|
dataId: `month_${month}`,
|
|
86
93
|
className: `${style.month} ${isActive ? style.currentMonth : ''}`,
|
|
87
94
|
onClick: this.handleClick,
|
|
88
|
-
"data-title": hoverText
|
|
95
|
+
"data-title": hoverText,
|
|
96
|
+
"aria-label": month
|
|
89
97
|
}, displayText);
|
|
90
98
|
}
|
|
91
99
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
padding-left: var(--zd_size19);
|
|
6
6
|
padding-right: var(--zd_size19);
|
|
7
7
|
}
|
|
8
|
+
|
|
8
9
|
.month {
|
|
9
10
|
width: 30.333%;
|
|
10
11
|
font-size: var(--zd_font_size12);
|
|
@@ -17,51 +18,66 @@
|
|
|
17
18
|
background-color: var(--zdt_yearview_month_bg);
|
|
18
19
|
border-radius: 20px;
|
|
19
20
|
}
|
|
21
|
+
|
|
20
22
|
.month:hover {
|
|
21
23
|
background-color: var(--zdt_yearview_month_hover_bg);
|
|
22
24
|
}
|
|
25
|
+
|
|
23
26
|
.currentMonth,
|
|
24
27
|
.currentMonth:hover {
|
|
25
28
|
color: var(--zdt_yearview_currentmonth_text);
|
|
26
29
|
}
|
|
30
|
+
|
|
27
31
|
.currentMonth, .currentMonth:hover {
|
|
28
32
|
background-color: var(--zdt_yearview_currentmonth_bg);
|
|
29
33
|
}
|
|
34
|
+
|
|
30
35
|
.yearBox {
|
|
31
36
|
border-bottom: 1px dotted var(--zdt_yearview_yearbox_border);
|
|
32
37
|
}
|
|
38
|
+
|
|
33
39
|
.year {
|
|
34
40
|
padding: var(--zd_size7) 0;
|
|
35
41
|
cursor: pointer;
|
|
36
42
|
}
|
|
43
|
+
|
|
37
44
|
.year:hover .yearText,
|
|
38
45
|
.year:hover .arrow {
|
|
39
46
|
color: var(--zdt_yearview_year_hover_text);
|
|
40
47
|
}
|
|
48
|
+
|
|
41
49
|
.yearText {
|
|
42
50
|
color: var(--zdt_yearview_yeartext_text);
|
|
43
51
|
font-size: var(--zd_font_size11);
|
|
44
52
|
}
|
|
53
|
+
|
|
45
54
|
.arrow {
|
|
46
55
|
color: var(--zdt_yearview_yeartext_text);
|
|
47
56
|
transition: transform var(--zd_transition1);
|
|
48
57
|
}
|
|
58
|
+
|
|
49
59
|
.isActive {
|
|
50
60
|
cursor: default;
|
|
51
61
|
}
|
|
62
|
+
|
|
52
63
|
.isActive .yearText {
|
|
53
64
|
font-family: var(--zd_semibold);
|
|
54
65
|
color: var(--zdt_yearview_year_hover_text);
|
|
66
|
+
font-size: var(--zd_font_size11);
|
|
55
67
|
}
|
|
68
|
+
|
|
56
69
|
.arrowActive {
|
|
57
70
|
color: var(--zdt_yearview_year_hover_text);
|
|
58
71
|
}
|
|
72
|
+
|
|
59
73
|
[dir=ltr] .arrowActive {
|
|
60
74
|
transform: rotate(180deg);
|
|
61
75
|
}
|
|
76
|
+
|
|
62
77
|
[dir=rtl] .arrowActive {
|
|
63
78
|
transform: rotate(-180deg);
|
|
64
79
|
}
|
|
80
|
+
|
|
65
81
|
.container {
|
|
66
82
|
height: 100%;
|
|
67
83
|
overflow-y: auto;
|
|
@@ -69,13 +85,15 @@
|
|
|
69
85
|
composes: boxPadding;
|
|
70
86
|
background-color: var(--zdt_yearview_default_bg);
|
|
71
87
|
}
|
|
88
|
+
|
|
72
89
|
.yearContainer {
|
|
73
90
|
height: var(--zd_size135);
|
|
74
91
|
overflow: hidden;
|
|
75
92
|
transition: height var(--zd_transition1);
|
|
76
93
|
padding-bottom: var(--zd_size5);
|
|
77
94
|
}
|
|
95
|
+
|
|
78
96
|
.toggleYear {
|
|
79
97
|
height: 0;
|
|
80
98
|
padding: 0;
|
|
81
|
-
}
|
|
99
|
+
}
|
package/es/DropBox/DropBox.js
CHANGED
|
@@ -9,6 +9,7 @@ import { positionMapping } from './DropBoxPositionMapping.json';
|
|
|
9
9
|
import { getZIndex } from '../Provider/ZindexProvider';
|
|
10
10
|
import { getLibraryConfig } from '../Provider/Config';
|
|
11
11
|
import LibraryContext from '../Provider/LibraryContextInit';
|
|
12
|
+
import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
|
|
12
13
|
export class DropBoxElement extends React.Component {
|
|
13
14
|
constructor(props) {
|
|
14
15
|
super(props);
|
|
@@ -59,7 +60,8 @@ export class DropBoxElement extends React.Component {
|
|
|
59
60
|
positionsOffset,
|
|
60
61
|
targetOffset,
|
|
61
62
|
zIndexStyle,
|
|
62
|
-
customStyle
|
|
63
|
+
customStyle,
|
|
64
|
+
subContainerRef
|
|
63
65
|
} = this.props;
|
|
64
66
|
let {
|
|
65
67
|
isReducedMotion
|
|
@@ -146,9 +148,11 @@ export class DropBoxElement extends React.Component {
|
|
|
146
148
|
"aria-labelledby": ariaLabelledby,
|
|
147
149
|
tabIndex: tabIndex
|
|
148
150
|
}, /*#__PURE__*/React.createElement("div", {
|
|
151
|
+
tabIndex: "-1",
|
|
149
152
|
className: `${subContainerClass} ${style[`${palette}Palette`]}`,
|
|
150
153
|
onClick: onClick,
|
|
151
|
-
"data-id": `${dataId}_subcontainer
|
|
154
|
+
"data-id": `${dataId}_subcontainer`,
|
|
155
|
+
ref: subContainerRef
|
|
152
156
|
}, isModel ? /*#__PURE__*/React.createElement("div", {
|
|
153
157
|
className: style.closeBar
|
|
154
158
|
}) : null, isArrow && !isModel && /*#__PURE__*/React.createElement("div", {
|
|
@@ -165,6 +169,7 @@ export default class DropBox extends React.Component {
|
|
|
165
169
|
super(props);
|
|
166
170
|
this.getNextIndex = getZIndex(this);
|
|
167
171
|
this.onFreezeClick = this.onFreezeClick.bind(this);
|
|
172
|
+
this.createRef = /*#__PURE__*/React.createRef();
|
|
168
173
|
}
|
|
169
174
|
onFreezeClick(e) {
|
|
170
175
|
e && e.stopPropagation();
|
|
@@ -176,7 +181,9 @@ export default class DropBox extends React.Component {
|
|
|
176
181
|
isActive,
|
|
177
182
|
isAbsolutePositioningNeeded,
|
|
178
183
|
needAutoZindex,
|
|
179
|
-
isRestrictScroll
|
|
184
|
+
isRestrictScroll,
|
|
185
|
+
needFocusScope,
|
|
186
|
+
onClose
|
|
180
187
|
} = this.props;
|
|
181
188
|
let windowWidth,
|
|
182
189
|
mobileWidth = getLibraryConfig('mobileWidth'),
|
|
@@ -193,7 +200,20 @@ export default class DropBox extends React.Component {
|
|
|
193
200
|
const {
|
|
194
201
|
direction
|
|
195
202
|
} = this.context || {};
|
|
196
|
-
const dropBoxEle = /*#__PURE__*/React.createElement(
|
|
203
|
+
const dropBoxEle = needFocusScope ? /*#__PURE__*/React.createElement(FocusScope, {
|
|
204
|
+
focusClose: onClose,
|
|
205
|
+
elementRef: this.createRef,
|
|
206
|
+
autoFocus: true,
|
|
207
|
+
restoreFocus: true,
|
|
208
|
+
focusArrowLoop: true,
|
|
209
|
+
enableEnterAction: true
|
|
210
|
+
}, /*#__PURE__*/React.createElement(DropBoxElement, _extends({
|
|
211
|
+
isModel: isModel,
|
|
212
|
+
direction: direction
|
|
213
|
+
}, this.props, {
|
|
214
|
+
zIndexStyle: zIndexStyle,
|
|
215
|
+
subContainerRef: this.createRef
|
|
216
|
+
}))) : /*#__PURE__*/React.createElement(DropBoxElement, _extends({
|
|
197
217
|
isModel: isModel,
|
|
198
218
|
direction: direction
|
|
199
219
|
}, this.props, {
|
|
@@ -22,6 +22,7 @@ export const propTypes = {
|
|
|
22
22
|
left: PropTypes.number,
|
|
23
23
|
needResponsive: PropTypes.bool,
|
|
24
24
|
onClick: PropTypes.func,
|
|
25
|
+
needFocusScope: PropTypes.bool,
|
|
25
26
|
right: PropTypes.number,
|
|
26
27
|
size: PropTypes.oneOf(['mini', 'xmini', 'xsmall', 'small', 'medium', 'large', 'mlarge', 'xlarge', 'xxlarge', 'default']),
|
|
27
28
|
top: PropTypes.number,
|
|
@@ -15,13 +15,15 @@ export default class DropDownHeading extends React.Component {
|
|
|
15
15
|
} = this.props;
|
|
16
16
|
let {
|
|
17
17
|
role,
|
|
18
|
-
ariaLabelledby
|
|
18
|
+
ariaLabelledby,
|
|
19
|
+
ariaLabel
|
|
19
20
|
} = a11y;
|
|
20
21
|
return /*#__PURE__*/React.createElement("div", {
|
|
21
22
|
className: `${style[palette]} ${customClass}`,
|
|
22
23
|
"data-title": title,
|
|
23
24
|
role: role,
|
|
24
25
|
"aria-labelledby": ariaLabelledby,
|
|
26
|
+
"aria-label": ariaLabel,
|
|
25
27
|
id: htmlId
|
|
26
28
|
// tabindex='0'
|
|
27
29
|
}, text, children);
|
|
@@ -38,7 +38,8 @@ export const DropDownHeading_propTypes = {
|
|
|
38
38
|
htmlId: PropTypes.string,
|
|
39
39
|
a11y: PropTypes.shape({
|
|
40
40
|
role: PropTypes.string,
|
|
41
|
-
ariaLabelledby: PropTypes.string
|
|
41
|
+
ariaLabelledby: PropTypes.string,
|
|
42
|
+
ariaLabel: PropTypes.string
|
|
42
43
|
})
|
|
43
44
|
};
|
|
44
45
|
export const DropDownItem_propTypes = {
|
package/es/Label/Label.js
CHANGED
|
@@ -19,7 +19,8 @@ export default class Label extends React.Component {
|
|
|
19
19
|
onClick,
|
|
20
20
|
dataId,
|
|
21
21
|
variant,
|
|
22
|
-
customClass
|
|
22
|
+
customClass,
|
|
23
|
+
id
|
|
23
24
|
} = this.props;
|
|
24
25
|
return /*#__PURE__*/React.createElement("label", {
|
|
25
26
|
className: `${style.label} ${style[type]} ${style[size]} ${colors[palette]} ${style[`font_${variant}`]}
|
|
@@ -27,7 +28,8 @@ export default class Label extends React.Component {
|
|
|
27
28
|
htmlFor: htmlFor,
|
|
28
29
|
"data-title": title,
|
|
29
30
|
"data-id": dataId,
|
|
30
|
-
onClick: onClick
|
|
31
|
+
onClick: onClick,
|
|
32
|
+
id: id
|
|
31
33
|
}, text);
|
|
32
34
|
}
|
|
33
35
|
}
|
|
@@ -16,11 +16,11 @@ export const BoxProps = {
|
|
|
16
16
|
isFirst: PropTypes.bool,
|
|
17
17
|
isLast: PropTypes.bool,
|
|
18
18
|
isScrollAttribute: PropTypes.bool,
|
|
19
|
-
scroll: PropTypes.
|
|
19
|
+
scroll: PropTypes.oneOf(['vertical', 'horizontal', 'both', 'none']),
|
|
20
20
|
shrink: PropTypes.bool,
|
|
21
21
|
tagName: PropTypes.string,
|
|
22
22
|
tourId: PropTypes.string,
|
|
23
|
-
preventParentScroll: PropTypes.
|
|
23
|
+
preventParentScroll: PropTypes.oneOf(['vertical', 'horizontal', 'both'])
|
|
24
24
|
};
|
|
25
25
|
export const ContainerProps = {
|
|
26
26
|
align: PropTypes.oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around', 'baseline']),
|
|
@@ -38,5 +38,5 @@ export const ContainerProps = {
|
|
|
38
38
|
tagName: PropTypes.string,
|
|
39
39
|
tourId: PropTypes.string,
|
|
40
40
|
wrap: PropTypes.oneOf(['wrap', 'wrap-reverse', 'nowrap']),
|
|
41
|
-
preventParentScroll: PropTypes.
|
|
41
|
+
preventParentScroll: PropTypes.oneOf(['vertical', 'horizontal', 'both'])
|
|
42
42
|
};
|