@zohodesk/components 1.0.0-alpha-260 → 1.0.0-alpha-262
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 +16 -0
- package/es/DateTime/DateTimePopupHeader.js +1 -1
- package/es/DateTime/DateWidget.js +1 -1
- package/es/DateTime/YearView.js +1 -1
- package/es/DateTime/index.js +1 -1
- package/es/DropBox/DropBox.module.css +0 -1
- package/es/DropDown/index.js +7 -0
- package/es/Layout/index.js +9 -9
- package/es/ListItem/ListItem.js +4 -3
- package/es/ListItem/ListItem.module.css +5 -0
- package/es/ListItem/ListItemWithAvatar.js +4 -3
- package/es/ListItem/ListItemWithCheckBox.js +3 -2
- package/es/ListItem/ListItemWithIcon.js +4 -3
- package/es/ListItem/ListItemWithRadio.js +3 -2
- package/es/ListItem/index.js +6 -0
- package/es/ListItem/props/defaultProps.js +12 -6
- package/es/ListItem/props/propTypes.js +7 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/es/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/es/MultiSelect/MultiSelect.js +19 -6
- package/es/MultiSelect/MultiSelectWithAvatar.js +19 -6
- package/es/MultiSelect/index.js +4 -0
- package/es/MultiSelect/props/defaultProps.js +5 -2
- package/es/MultiSelect/props/propTypes.js +7 -1
- package/es/PopOver/index.js +3 -0
- package/es/Provider/IdProvider.js +8 -7
- package/es/Provider/index.js +4 -0
- package/es/Responsive/index.js +11 -8
- package/es/Select/GroupSelect.js +1 -1
- package/es/Select/Select.js +1 -1
- package/es/Select/SelectWithIcon.js +1 -1
- package/es/Select/index.js +4 -0
- package/es/Tab/Tab.module.css +0 -1
- package/es/Tab/Tabs.js +1 -1
- package/es/Tab/Tabs.module.css +0 -1
- package/es/Tag/Tag.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/VelocityAnimation/index.js +2 -0
- package/es/index.js +30 -146
- package/es/semantic/index.js +1 -0
- package/es/utils/Common.js +0 -1
- package/es/utils/css/compileClassNames.js +23 -0
- package/es/utils/css/mergeStyle.js +42 -0
- package/es/utils/css/utils.js +23 -0
- package/es/utils/dropDownUtils.js +3 -2
- package/es/utils/index.js +3 -0
- package/lib/DateTime/DateTimePopupHeader.js +4 -4
- package/lib/DateTime/DateWidget.js +2 -2
- package/lib/DateTime/YearView.js +2 -2
- package/lib/DateTime/index.js +1 -1
- package/lib/DropBox/DropBox.module.css +0 -1
- package/lib/DropDown/index.js +56 -0
- package/lib/Layout/index.js +1 -11
- package/lib/ListItem/ListItem.js +5 -4
- package/lib/ListItem/ListItem.module.css +5 -0
- package/lib/ListItem/ListItemWithAvatar.js +5 -4
- package/lib/ListItem/ListItemWithCheckBox.js +3 -2
- package/lib/ListItem/ListItemWithIcon.js +6 -5
- package/lib/ListItem/ListItemWithRadio.js +3 -2
- package/lib/ListItem/index.js +48 -0
- package/lib/ListItem/props/defaultProps.js +12 -6
- package/lib/ListItem/props/propTypes.js +7 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +2 -2
- package/lib/MultiSelect/AdvancedMultiSelect.js +2 -2
- package/lib/MultiSelect/MultiSelect.js +20 -7
- package/lib/MultiSelect/MultiSelectWithAvatar.js +20 -7
- package/lib/MultiSelect/index.js +34 -0
- package/lib/MultiSelect/props/defaultProps.js +5 -2
- package/lib/MultiSelect/props/propTypes.js +7 -1
- package/lib/PopOver/index.js +27 -0
- package/lib/Provider/IdProvider.js +8 -8
- package/lib/Provider/index.js +76 -0
- package/lib/Responsive/index.js +45 -22
- package/lib/Select/GroupSelect.js +2 -2
- package/lib/Select/Select.js +2 -2
- package/lib/Select/SelectWithIcon.js +3 -3
- package/lib/Select/index.js +34 -0
- package/lib/Tab/Tab.module.css +0 -1
- package/lib/Tab/Tabs.js +2 -2
- package/lib/Tab/Tabs.module.css +0 -1
- package/lib/Tag/Tag.js +3 -3
- package/lib/TextBoxIcon/TextBoxIcon.js +2 -2
- package/lib/VelocityAnimation/index.js +20 -0
- package/lib/index.js +157 -210
- package/lib/semantic/index.js +13 -0
- package/lib/utils/Common.js +0 -1
- package/lib/utils/css/compileClassNames.js +31 -0
- package/lib/utils/css/mergeStyle.js +52 -0
- package/lib/utils/css/utils.js +33 -0
- package/lib/utils/dropDownUtils.js +5 -2
- package/lib/utils/index.js +117 -0
- package/package.json +7 -7
package/es/Tab/Tab.module.css
CHANGED
package/es/Tab/Tabs.js
CHANGED
|
@@ -15,7 +15,7 @@ import { remConvert, getTotalDimension, cs, bind, throttle } from '../utils/Comm
|
|
|
15
15
|
import { Box, Container } from '../Layout';
|
|
16
16
|
import ResizeObserver from '../Responsive/ResizeObserver';
|
|
17
17
|
import ListItem from '../ListItem/ListItem';
|
|
18
|
-
import Icon from '@zohodesk/icons
|
|
18
|
+
import { Icon } from '@zohodesk/icons';
|
|
19
19
|
import tabsStyle from './Tabs.module.css';
|
|
20
20
|
import Popup from '../Popup/Popup';
|
|
21
21
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
package/es/Tab/Tabs.module.css
CHANGED
package/es/Tag/Tag.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { PureComponent } from 'react';
|
|
2
2
|
import { defaultProps } from './props/defaultProps';
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
|
-
import Icon from '@zohodesk/icons
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import Avatar from '../Avatar/Avatar';
|
|
6
6
|
import { Container } from '../Layout';
|
|
7
7
|
import Button from '../semantic/Button/Button';
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from './props/defaultProps';
|
|
|
4
4
|
import { propTypes } from './props/propTypes';
|
|
5
5
|
import TextBox from '../TextBox/TextBox';
|
|
6
6
|
import { Container, Box } from '../Layout';
|
|
7
|
-
import Icon from '@zohodesk/icons
|
|
7
|
+
import { Icon } from '@zohodesk/icons';
|
|
8
8
|
import btnStyle from '../semantic/Button/semanticButton.module.css';
|
|
9
9
|
import style from './TextBoxIcon.module.css';
|
|
10
10
|
/* eslint-disable react/forbid-component-props */
|
package/es/index.js
CHANGED
|
@@ -1,157 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
// export { default as ReactDOM } from 'react-dom';
|
|
3
|
-
// export { renderToStaticMarkup } from 'react-dom/server';
|
|
4
|
-
export * from './Layout';
|
|
5
|
-
// export { default as Layout__default } from './Layout/docs/Layout__default.docs';
|
|
6
|
-
// export { default as Layout__two_Column } from './Layout/docs/Layout__two_Column.docs';
|
|
7
|
-
// export { default as Layout__three_Column } from './Layout/docs/Layout__three_Column.docs';
|
|
8
|
-
// export { default as Layout__four_Column } from './Layout/docs/Layout__four_Column.docs';
|
|
9
|
-
// export { default as Layout__Hidden } from './Layout/docs/Layout__Hidden.docs';
|
|
10
|
-
export { default as AppContainer } from './AppContainer/AppContainer';
|
|
11
|
-
// export { default as AppContainer__default } from './AppContainer/docs/AppContainer__default.docs';
|
|
12
|
-
export { default as Accordion } from './Accordion/Accordion';
|
|
13
|
-
// export { default as Accordion__Demo } from './Accordion/docs/Accordion__Demo.docs';
|
|
1
|
+
export * from './Accordion';
|
|
14
2
|
export { default as Animation } from './Animation/Animation';
|
|
15
|
-
|
|
16
|
-
// export { default as Animation__fadeIn } from './Animation/docs/Animation__fadeIn.docs';
|
|
17
|
-
// export { default as Animation__scaleIn } from './Animation/docs/Animation__scaleIn.docs';
|
|
18
|
-
// export { default as Animation__slideDown } from './Animation/docs/Animation__slideDown.docs';
|
|
19
|
-
// export { default as Animation__slideLeft } from './Animation/docs/Animation__slideLeft.docs';
|
|
20
|
-
// export { default as Animation__zoomIn } from './Animation/docs/Animation__zoomIn.docs';
|
|
21
|
-
// export { default as Animation__skewIn } from './Animation/docs/Animation__skewIn.docs';
|
|
22
|
-
export { default as Card } from './Card/Card';
|
|
23
|
-
// export { default as Card__Default } from './Card/docs/Card__Default.docs';
|
|
24
|
-
// export { default as Card__Scroll } from './Card/docs/Card__Scroll.docs';
|
|
25
|
-
// export { default as Card__Custom } from './Card/docs/Card__Custom.docs';
|
|
3
|
+
export { default as AppContainer } from './AppContainer/AppContainer';
|
|
26
4
|
export { default as Avatar } from './Avatar/Avatar';
|
|
27
|
-
// export { default as Avatar__default } from './Avatar/docs/Avatar__default.docs';
|
|
28
|
-
// export { default as Avatar__palette } from './Avatar/docs/Avatar__palette.docs';
|
|
29
|
-
// export { default as Avatar__text } from './Avatar/docs/Avatar__text.docs';
|
|
30
|
-
// export { default as Avatar__custom } from './Avatar/docs/Avatar__custom.docs';
|
|
31
5
|
export { default as AvatarTeam } from './AvatarTeam/AvatarTeam';
|
|
32
|
-
// export { default as AvatarTeam__default } from './AvatarTeam/docs/AvatarTeam__default.docs';
|
|
33
|
-
// export { default as AvatarTeam__size } from './AvatarTeam/docs/AvatarTeam__size.docs';
|
|
34
|
-
// export { default as AvatarTeam__palette } from './AvatarTeam/docs/AvatarTeam__palette.docs';
|
|
35
|
-
// export { default as AvatarTeam__custom } from './AvatarTeam/docs/AvatarTeam__custom.docs';
|
|
36
6
|
export { default as Button } from './Button/Button';
|
|
37
|
-
// export { default as Button__default } from './Button/docs/Button__default.docs';
|
|
38
|
-
// export { default as Button__custom } from './Button/docs/Button__custom.docs';
|
|
39
7
|
export { default as Buttongroup } from './Buttongroup/Buttongroup';
|
|
40
|
-
|
|
41
|
-
// export { default as Buttongroup__header } from './Buttongroup/docs/Buttongroup__header.docs';
|
|
42
|
-
// export { default as Buttongroup__custom } from './Buttongroup/docs/Buttongroup__custom.docs';
|
|
43
|
-
export { default as Switch } from './Switch/Switch';
|
|
44
|
-
// export { default as Switch__default } from './Switch/docs/Switch__default.docs';
|
|
45
|
-
// export { default as Switch__custom } from './Switch/docs/Switch__custom.docs';
|
|
46
|
-
export { default as Radio } from './Radio/Radio';
|
|
47
|
-
// export { default as Radio__default } from './Radio/docs/Radio__default.docs';
|
|
48
|
-
// export { default as Radio__custom } from './Radio/docs/Radio__custom.docs';
|
|
49
|
-
export { default as Textarea } from './Textarea/Textarea';
|
|
50
|
-
// export { default as Textarea__default } from './Textarea/docs/Textarea__default.docs';
|
|
51
|
-
// export { default as Textarea__animated } from './Textarea/docs/Textarea__animated.docs';
|
|
52
|
-
// export { default as Textarea__disabled } from './Textarea/docs/Textarea__disabled.docs';
|
|
53
|
-
// export { default as Textarea__custom } from './Textarea/docs/Textarea__custom.docs';
|
|
54
|
-
export { default as Label } from './Label/Label';
|
|
55
|
-
// export { default as Label__palette } from './Label/docs/Label__palette.docs';
|
|
56
|
-
// export { default as Label__size } from './Label/docs/Label__size.docs';
|
|
57
|
-
// export { default as Label__clipped } from './Label/docs/Label__clipped.docs';
|
|
58
|
-
// export { default as Label__type } from './Label/docs/Label__type.docs';
|
|
59
|
-
// export { default as Label__custom } from './Label/docs/Label__custom.docs';
|
|
60
|
-
export { default as DropDownHeading } from './DropDown/DropDownHeading';
|
|
61
|
-
// export { default as DropDownHeading__Heading } from './DropDown/docs/DropDownHeading__default.docs';
|
|
62
|
-
// export { default as DropDownHeading__Custom } from './DropDown/docs/DropDownHeading__custom.docs';
|
|
8
|
+
export * from './Card';
|
|
63
9
|
export { default as CheckBox } from './CheckBox/CheckBox';
|
|
64
|
-
|
|
65
|
-
|
|
10
|
+
export * from './DateTime';
|
|
11
|
+
export { default as DropBox } from './DropBox/DropBox';
|
|
12
|
+
export * from './DropDown';
|
|
13
|
+
export { default as Heading } from './Heading/Heading';
|
|
14
|
+
export { default as Label } from './Label/Label';
|
|
15
|
+
export * from './Layout';
|
|
16
|
+
export * from './ListItem';
|
|
17
|
+
export { default as Modal } from './Modal/Modal';
|
|
18
|
+
export * from './MultiSelect';
|
|
19
|
+
import * as _PopOver from './PopOver';
|
|
20
|
+
export { _PopOver as PopOver };
|
|
21
|
+
export { default as Popup } from './Popup/Popup';
|
|
22
|
+
import * as _Providers from './Provider';
|
|
23
|
+
export { _Providers as Providers };
|
|
24
|
+
export { default as Radio } from './Radio/Radio';
|
|
25
|
+
export * from './Responsive';
|
|
26
|
+
export { default as ResponsiveDropBox } from './ResponsiveDropBox/ResponsiveDropBox';
|
|
66
27
|
export { default as Ribbon } from './Ribbon/Ribbon';
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
export { default as
|
|
70
|
-
|
|
71
|
-
// export { default as Tag__custom } from './Tag/docs/Tag__custom.docs';
|
|
28
|
+
export { default as RippleEffect } from './RippleEffect/RippleEffect';
|
|
29
|
+
export * from './Select';
|
|
30
|
+
export { default as Stencils } from './Stencils/Stencils';
|
|
31
|
+
export { default as Switch } from './Switch/Switch';
|
|
72
32
|
export * from './Tab';
|
|
73
|
-
|
|
33
|
+
export { default as Tag } from './Tag/Tag';
|
|
34
|
+
export { default as Textarea } from './Textarea/Textarea';
|
|
74
35
|
export { default as TextBox } from './TextBox/TextBox';
|
|
75
|
-
// export { default as TextBox__default } from './TextBox/docs/TextBox__default.docs';
|
|
76
|
-
// export { default as TextBox__size } from './TextBox/docs/TextBox__size.docs';
|
|
77
|
-
// export { default as TextBox__variant } from './TextBox/docs/TextBox__variant.docs';
|
|
78
|
-
// export { default as TextBox__custom } from './TextBox/docs/TextBox__custom.docs';
|
|
79
36
|
export { default as TextBoxIcon } from './TextBoxIcon/TextBoxIcon';
|
|
80
|
-
// export { default as TextBoxIcon__default } from './TextBoxIcon/docs/TextBoxIcon__default.docs';
|
|
81
|
-
// export { default as TextBoxIcon__custom } from './TextBoxIcon/docs/TextBoxIcon__custom.docs';
|
|
82
37
|
export { default as Tooltip } from './Tooltip/Tooltip';
|
|
83
|
-
|
|
84
|
-
export {
|
|
85
|
-
|
|
86
|
-
export
|
|
87
|
-
// export { default as SelectWithIcon__SelectWithIcon } from './Select/docs/SelectWithIcon__default.docs';
|
|
88
|
-
export { default as GroupSelect } from './Select/GroupSelect';
|
|
89
|
-
// export { default as GroupSelect__GroupSelect } from './Select/docs/GroupSelect__default.docs';
|
|
90
|
-
export { default as SelectWithAvatar } from './Select/SelectWithAvatar';
|
|
91
|
-
// export { default as SelectWithAvatar__SelectWithAvatar } from './Select/docs/SelectWithAvatar__default.docs';
|
|
92
|
-
export { default as MultiSelect } from './MultiSelect/MultiSelect';
|
|
93
|
-
// export { default as MultiSelect__MultiSelect } from './MultiSelect/docs/MultiSelect__default.docs';
|
|
94
|
-
export { default as AdvancedMultiSelect } from './MultiSelect/AdvancedMultiSelect';
|
|
95
|
-
// export { default as AdvancedMultiSelect__AdvancedMultiSelect } from './MultiSelect/docs/AdvancedMultiSelect__default.docs';
|
|
96
|
-
export { default as AdvancedGroupMultiSelect } from './MultiSelect/AdvancedGroupMultiSelect';
|
|
97
|
-
// export { default as AdvancedGroupMultiSelect__AdvancedGroupMultiSelect } from './MultiSelect/docs/AdvancedGroupMultiSelect__default.docs';
|
|
98
|
-
export { default as MultiSelectWithAvatar } from './MultiSelect/MultiSelectWithAvatar';
|
|
99
|
-
// export { default as MultiSelectWithAvatar__MultiSelectWithAvatar } from './MultiSelect/docs/MultiSelectWithAvatar__default.docs';
|
|
100
|
-
export { default as DateWidget } from './DateTime/DateWidget';
|
|
101
|
-
// export { default as DateWidget__dateWidget } from './DateTime/docs/DateWidget__default.docs';
|
|
102
|
-
// export { default as DateWidget__datetime } from './DateTime/docs/DateTime__default.docs';
|
|
103
|
-
export { default as ListItem } from './ListItem/ListItem';
|
|
104
|
-
// export { default as ListItem__default } from './ListItem/docs/ListItem__default.docs';
|
|
105
|
-
// export { default as ListItem__custom } from './ListItem/docs/ListItem__custom.docs';
|
|
106
|
-
export { default as ListItemWithIcon } from './ListItem/ListItemWithIcon';
|
|
107
|
-
// export { default as ListItemWithIcon__default } from './ListItem/docs/ListItemWithIcon__default.docs';
|
|
108
|
-
// export { default as ListItemWithIcon__custom } from './ListItem/docs/ListItemWithIcon__custom.docs';
|
|
109
|
-
export { default as ListItemWithCheckBox } from './ListItem/ListItemWithCheckBox';
|
|
110
|
-
// export { default as ListItemWithCheckBox__default } from './ListItem/docs/ListItemWithCheckBox__default.docs';
|
|
111
|
-
// export { default as ListItemWithCheckBox__custom } from './ListItem/docs/ListItemWithCheckBox__custom.docs';
|
|
112
|
-
export { default as ListItemWithRadio } from './ListItem/ListItemWithRadio';
|
|
113
|
-
// export { default as ListItemWithRadio__default } from './ListItem/docs/ListItemWithRadio__default.docs';
|
|
114
|
-
// export { default as ListItemWithRadio__custom } from './ListItem/docs/ListItemWithRadio__custom.docs';
|
|
115
|
-
export { default as ListItemWithAvatar } from './ListItem/ListItemWithAvatar';
|
|
116
|
-
// export { default as ListItemWithAvatar__default } from './ListItem/docs/ListItemWithAvatar__default.docs';
|
|
117
|
-
// export { default as ListItemWithAvatar__custom } from './ListItem/docs/ListItemWithAvatar__custom.docs';
|
|
118
|
-
export { default as DropBox } from './DropBox/DropBox';
|
|
119
|
-
// export { default as DropBox__position } from './DropBox/docs/DropBox__position.docs';
|
|
120
|
-
// export { default as DropBox__size } from './DropBox/docs/DropBox__size.docs';
|
|
121
|
-
// export { default as DropBox__custom } from './DropBox/docs/DropBox__custom.docs';
|
|
122
|
-
// export { default as DropBox__customOrder } from './DropBox/docs/DropBox__customOrder.docs.js';
|
|
123
|
-
// export { default as DropBox__fixedPosition } from './DropBox/docs/DropBox__fixedPosition.docs.js';
|
|
124
|
-
export { default as PopOver } from './PopOver/PopOver';
|
|
125
|
-
// export { default as PopOver__default } from './PopOver/docs/PopOver__default.docs.js';
|
|
126
|
-
export { default as Stencils } from './Stencils/Stencils';
|
|
127
|
-
// export { default as Stencils__default } from './Stencils/docs/Stencils__default.docs';
|
|
128
|
-
// export { default as Stencils__custom } from './Stencils/docs/Stencils__custom.docs';
|
|
129
|
-
export { default as Modal } from './Modal/Modal';
|
|
130
|
-
// export { default as Modal__default } from './Modal/__docs__/Modal__default.docs';
|
|
131
|
-
export * from './Responsive';
|
|
132
|
-
// export { default as Responsive__Custom } from './Responsive/docs/Responsive__Custom.docs';
|
|
133
|
-
// export { default as Responsive__default } from './Responsive/docs/Responsive__default.docs';
|
|
134
|
-
export { default as RippleEffect } from './RippleEffect/RippleEffect';
|
|
135
|
-
// export { default as RippleEffect__default } from './RippleEffect/docs/RippleEffect__default.docs';
|
|
136
|
-
export { default as PortalLayer } from './deprecated/PortalLayer/PortalLayer';
|
|
137
|
-
// export { default as PortalLayer__default } from './deprecated/PortalLayer/docs/PortalLayer__default.docs';
|
|
138
|
-
|
|
139
|
-
export { default as VelocityAnimation } from './VelocityAnimation/VelocityAnimation/VelocityAnimation';
|
|
140
|
-
// export { default as VelocityAnimation__VelocityAnimation } from './VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs';
|
|
141
|
-
export { default as VelocityAnimationGroup } from './VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
|
|
142
|
-
// export { default as VelocityAnimationGroup__VelocityAnimationGroup } from './VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs';
|
|
143
|
-
|
|
144
|
-
export { Provider } from './Provider/IdProvider';
|
|
145
|
-
// export { default as Provider__Id_For_ClassComponent } from './Provider/docs/Provider_Id__Class.docs';
|
|
146
|
-
// export { default as Provider__Id_For_FunctionComponent } from './Provider/docs/Provider_Id__Function.docs';
|
|
147
|
-
// export { default as Provider__Zindex_For_ClassComponent } from './Provider/docs/Provider_Zindex__Class.docs';
|
|
148
|
-
// export { default as Provider__Zindex_For_FunctionComponent } from './Provider/docs/Provider_Zindex__Function.docs';
|
|
149
|
-
|
|
150
|
-
//semantic//
|
|
151
|
-
export { default as SemanticButton } from './semantic/Button/Button';
|
|
152
|
-
// export { default as SemanticButton__default } from './semantic/Button/docs/Button__default.docs.js';
|
|
153
|
-
|
|
154
|
-
// export { default as LightNightMode__AlternativeColors } from './LightNightMode/docs/AlternativeColors.docs';
|
|
155
|
-
export { default as ResponsiveDropBox } from './ResponsiveDropBox/ResponsiveDropBox';
|
|
156
|
-
export { default as Heading } from './Heading/Heading';
|
|
157
|
-
// export { default as Heading__default } from './Heading/docs/Heading__default.docs.js';
|
|
38
|
+
import * as _utils from './utils';
|
|
39
|
+
export { _utils as utils };
|
|
40
|
+
export * from './VelocityAnimation';
|
|
41
|
+
export * from './semantic';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SemanticButton } from './Button/Button';
|
package/es/utils/Common.js
CHANGED
|
@@ -349,7 +349,6 @@ export function isTextSelected() {
|
|
|
349
349
|
let selectedText = '';
|
|
350
350
|
if (window.getSelection) {
|
|
351
351
|
selectedText = window.getSelection().toString();
|
|
352
|
-
console.log(selectedText, 'selectedText');
|
|
353
352
|
} else if (document.getSelection) {
|
|
354
353
|
selectedText = document.getSelection().toString();
|
|
355
354
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { dataTypes, isDataTypeOf } from './utils';
|
|
2
|
+
const collectClassNames = function (processedClassNameList) {
|
|
3
|
+
for (let index = 0; index < (arguments.length <= 1 ? 0 : arguments.length - 1); index++) {
|
|
4
|
+
let classInfo = index + 1 < 1 || arguments.length <= index + 1 ? undefined : arguments[index + 1];
|
|
5
|
+
if (!classInfo) {
|
|
6
|
+
continue;
|
|
7
|
+
} else if (isDataTypeOf(classInfo, dataTypes.object)) {
|
|
8
|
+
for (let property in classInfo) {
|
|
9
|
+
if (Object.hasOwnProperty.call(classInfo, property) && property !== 'undefined' && property !== 'null' && classInfo[property] && !processedClassNameList.includes(property)) {
|
|
10
|
+
processedClassNameList.push(property);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export default function compileClassNames() {
|
|
17
|
+
let resultClassNameList = [];
|
|
18
|
+
for (var _len = arguments.length, classinfoList = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
19
|
+
classinfoList[_key] = arguments[_key];
|
|
20
|
+
}
|
|
21
|
+
collectClassNames(resultClassNameList, ...classinfoList);
|
|
22
|
+
return resultClassNameList.filter(a => a !== '').join(' ');
|
|
23
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const REPLACER_SYMBOL = '$';
|
|
2
|
+
|
|
3
|
+
// $ startWith is used for replace the existing style.
|
|
4
|
+
// all other will be append
|
|
5
|
+
|
|
6
|
+
export default function mergeStyle(defaultStyle, customStyle) {
|
|
7
|
+
let additionalStyle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
8
|
+
// if(!Object.keys(defaultStyle).includes('base')) {
|
|
9
|
+
// throw new Error(`STYLE CUSTOMIZATION RULE - Your style sheet should have "base" class name for customization`);
|
|
10
|
+
// }
|
|
11
|
+
|
|
12
|
+
return Object.keys(customStyle).reduce((res, next) => {
|
|
13
|
+
if (next.startsWith(REPLACER_SYMBOL)) {
|
|
14
|
+
let styleValue = customStyle[next];
|
|
15
|
+
let styleName = next.replace(REPLACER_SYMBOL, '');
|
|
16
|
+
if (!defaultStyle[styleName] && !additionalStyle.includes(styleName)) {
|
|
17
|
+
// return res;
|
|
18
|
+
throw new Error(`UNKNOWN CLASSNAME DETECTED - Given customStyle's key "${styleName}" is not available in that component style`);
|
|
19
|
+
}
|
|
20
|
+
let val = defaultStyle[styleName];
|
|
21
|
+
Object.keys(res).map(keyName => {
|
|
22
|
+
let styleKey = res[keyName];
|
|
23
|
+
if (styleKey.includes(val)) {
|
|
24
|
+
res[keyName] = styleKey.replace(val, styleValue);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
} else if (defaultStyle[next] || additionalStyle.includes(next)) {
|
|
28
|
+
let val = defaultStyle[next];
|
|
29
|
+
Object.keys(res).map(keyName => {
|
|
30
|
+
if (res[keyName].includes(val)) {
|
|
31
|
+
res[keyName] = res[keyName] + ' ' + customStyle[next];
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
} else if (!defaultStyle[next] && !additionalStyle.includes(next)) {
|
|
35
|
+
// res[next] = customStyle[next];
|
|
36
|
+
`UNKNOWN CLASSNAME DETECTED - Given customStyle's key "${next}" is not available in that component style`;
|
|
37
|
+
}
|
|
38
|
+
return res;
|
|
39
|
+
}, {
|
|
40
|
+
...defaultStyle
|
|
41
|
+
});
|
|
42
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const dataTypes = {
|
|
2
|
+
number: 'number',
|
|
3
|
+
array: 'array',
|
|
4
|
+
string: 'string',
|
|
5
|
+
object: 'object',
|
|
6
|
+
bigint: 'bigint',
|
|
7
|
+
symbol: 'symbol',
|
|
8
|
+
undefined: 'undefined',
|
|
9
|
+
function: 'function',
|
|
10
|
+
boolean: 'boolean'
|
|
11
|
+
};
|
|
12
|
+
export const getDataType = data => {
|
|
13
|
+
let typeofData = typeof data;
|
|
14
|
+
let isArrayDataType = Array.isArray(data);
|
|
15
|
+
if (isArrayDataType) {
|
|
16
|
+
return dataTypes.array;
|
|
17
|
+
} else {
|
|
18
|
+
return dataTypes[typeofData];
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export const isDataTypeOf = (data, type) => {
|
|
22
|
+
return getDataType(data) === type;
|
|
23
|
+
};
|
|
@@ -21,9 +21,10 @@ const getSelectedValue = props => getIsEmptyValue(props.selectedValue) ? '' : pr
|
|
|
21
21
|
const getSelectedFormatOptions = props => props.selectedFormatOptions || dummyObj;
|
|
22
22
|
export const getPrefixText = props => props.prefixText || '';
|
|
23
23
|
const getIsStartWithSearch = props => props.isStartsWithSearch;
|
|
24
|
+
const getKeepSelectedOptions = props => props.keepSelectedOptions;
|
|
24
25
|
const getDisabledOptions = props => props.disabledOptions || dummyArray;
|
|
25
26
|
const getListItemProps = props => props.listItemProps || '';
|
|
26
|
-
export const makeGetMultiSelectFilterSuggestions = () => createSelector([getOptions, getSelectedOptionsSel, getSearchStr, getNeedSearch, getIsStartWithSearch], (options, selectedOptions, searchStr, needSearch, isStartsWithSearch) => {
|
|
27
|
+
export const makeGetMultiSelectFilterSuggestions = () => createSelector([getOptions, getSelectedOptionsSel, getSearchStr, getNeedSearch, getIsStartWithSearch, getKeepSelectedOptions], (options, selectedOptions, searchStr, needSearch, isStartsWithSearch, keepSelectedOptions) => {
|
|
27
28
|
const suggestions = [];
|
|
28
29
|
const suggestionIds = [];
|
|
29
30
|
options.forEach(option => {
|
|
@@ -34,7 +35,7 @@ export const makeGetMultiSelectFilterSuggestions = () => createSelector([getOpti
|
|
|
34
35
|
const valueString = getSearchString(value);
|
|
35
36
|
const searchString = getSearchString(searchStr);
|
|
36
37
|
const isMatch = needSearch ? isStartsWithSearch ? valueString.startsWith(searchString) : valueString.indexOf(searchString) !== -1 : true;
|
|
37
|
-
if (selectedOptions.indexOf(id) === -1 && isMatch) {
|
|
38
|
+
if (selectedOptions.indexOf(id) === -1 && isMatch || keepSelectedOptions) {
|
|
38
39
|
suggestions.push(option);
|
|
39
40
|
suggestionIds.push(id);
|
|
40
41
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as compileClassNames } from './css/compileClassNames';
|
|
2
|
+
export { default as mergeStyle } from './css/mergeStyle';
|
|
3
|
+
export { stopAllEventPropagation, capitalize, getFullName, bytesToSize, getMemSize, checkIsImageFile, getFullDateString, format12Hour, getDateOnly, doAfterScrollEnd, debounce, throttle, getElementSpace, getSearchString, findScrollEnd, isTextSelected } from './Common';
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _Layout = require("../Layout");
|
|
10
|
-
var
|
|
10
|
+
var _icons = require("@zohodesk/icons");
|
|
11
11
|
var _Heading = _interopRequireDefault(require("../Heading/Heading"));
|
|
12
12
|
var _DateTimeModule = _interopRequireDefault(require("./DateTime.module.css"));
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -97,7 +97,7 @@ var DateTimePopupHeader = /*#__PURE__*/function (_PureComponent) {
|
|
|
97
97
|
a11y: {
|
|
98
98
|
tabindex: '0'
|
|
99
99
|
}
|
|
100
|
-
}), /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(
|
|
100
|
+
}), /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
101
101
|
name: "ZD-GN-dropdown",
|
|
102
102
|
size: "12",
|
|
103
103
|
iconClass: _DateTimeModule["default"].downArrow
|
|
@@ -110,7 +110,7 @@ var DateTimePopupHeader = /*#__PURE__*/function (_PureComponent) {
|
|
|
110
110
|
type: "previousMonth",
|
|
111
111
|
ariaLabel: "prevMonth",
|
|
112
112
|
tabindex: "0"
|
|
113
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
114
114
|
name: "ZD-arrowLeft3",
|
|
115
115
|
isBold: true
|
|
116
116
|
})), /*#__PURE__*/_react["default"].createElement(Span, {
|
|
@@ -121,7 +121,7 @@ var DateTimePopupHeader = /*#__PURE__*/function (_PureComponent) {
|
|
|
121
121
|
className: _DateTimeModule["default"].navigation,
|
|
122
122
|
ariaLabel: "nextMonth",
|
|
123
123
|
tabindex: "0"
|
|
124
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
124
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
125
125
|
name: "ZD-arrowRight3",
|
|
126
126
|
isBold: true
|
|
127
127
|
}))) : null);
|
|
@@ -11,7 +11,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
11
11
|
var _datetimejs = _interopRequireDefault(require("@zohodesk/datetimejs"));
|
|
12
12
|
var _DateTime = _interopRequireDefault(require("./DateTime"));
|
|
13
13
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
14
|
-
var
|
|
14
|
+
var _icons = require("@zohodesk/icons");
|
|
15
15
|
var _Layout = require("../Layout");
|
|
16
16
|
var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon/TextBoxIcon"));
|
|
17
17
|
var _DateWidgetModule = _interopRequireDefault(require("./DateWidget.module.css"));
|
|
@@ -962,7 +962,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
962
962
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
963
963
|
align: "both",
|
|
964
964
|
onClick: isDisabled || isReadOnly ? null : this.handleDateIconClick
|
|
965
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
965
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
966
966
|
name: "ZD-datepicker",
|
|
967
967
|
size: "12"
|
|
968
968
|
})))), isReadOnly || isDisabled ? null : /*#__PURE__*/_react["default"].createElement(_DateTime["default"], {
|
package/lib/DateTime/YearView.js
CHANGED
|
@@ -10,7 +10,7 @@ var _propTypes = require("./props/propTypes");
|
|
|
10
10
|
var _defaultProps = require("./props/defaultProps");
|
|
11
11
|
var _virtualizer = require("@zohodesk/virtualizer");
|
|
12
12
|
var _Layout = require("../Layout");
|
|
13
|
-
var
|
|
13
|
+
var _icons = require("@zohodesk/icons");
|
|
14
14
|
var _Heading = _interopRequireDefault(require("../Heading/Heading"));
|
|
15
15
|
var _YearViewModule = _interopRequireDefault(require("./YearView.module.css"));
|
|
16
16
|
var _dateFormatUtils = require("./dateFormatUtils");
|
|
@@ -79,7 +79,7 @@ var Year = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
79
79
|
tabindex: '0'
|
|
80
80
|
},
|
|
81
81
|
tagName: "h4"
|
|
82
|
-
})), /*#__PURE__*/_react["default"].createElement(
|
|
82
|
+
})), /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
83
83
|
name: "ZD-arrowDownSingle",
|
|
84
84
|
size: "7",
|
|
85
85
|
isBold: true,
|
package/lib/DateTime/index.js
CHANGED
|
@@ -9,5 +9,5 @@ Object.defineProperty(exports, "DateWidget", {
|
|
|
9
9
|
return _DateWidget["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var _DateWidget = _interopRequireDefault(require("./DateWidget
|
|
12
|
+
var _DateWidget = _interopRequireDefault(require("./DateWidget"));
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "DropDown", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _DropDown["default"];
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "DropDownHeading", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _DropDownHeading["default"];
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "DropDownItem", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _DropDownItem["default"];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "DropDownItemContainer", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function get() {
|
|
28
|
+
return _DropDown.DropDownItemContainer;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "DropDownSearch", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function get() {
|
|
34
|
+
return _DropDownSearch["default"];
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "DropDownSeparator", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function get() {
|
|
40
|
+
return _DropDownSeparator["default"];
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "DropDownTarget", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _DropDown.DropDownTarget;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
var _DropDown = _interopRequireWildcard(require("./DropDown"));
|
|
50
|
+
var _DropDownHeading = _interopRequireDefault(require("./DropDownHeading"));
|
|
51
|
+
var _DropDownItem = _interopRequireDefault(require("./DropDownItem"));
|
|
52
|
+
var _DropDownSearch = _interopRequireDefault(require("./DropDownSearch"));
|
|
53
|
+
var _DropDownSeparator = _interopRequireDefault(require("./DropDownSeparator"));
|
|
54
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
55
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
56
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/lib/Layout/index.js
CHANGED
|
@@ -15,16 +15,6 @@ Object.defineProperty(exports, "Container", {
|
|
|
15
15
|
return _Container["default"];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
exports.Layout = void 0;
|
|
19
18
|
var _Container = _interopRequireDefault(require("./Container"));
|
|
20
19
|
var _Box = _interopRequireDefault(require("./Box"));
|
|
21
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
22
|
-
var Layout = {
|
|
23
|
-
docs: {
|
|
24
|
-
componentGroup: 'Layout',
|
|
25
|
-
folderName: 'Style Guide',
|
|
26
|
-
external: true,
|
|
27
|
-
description: ' '
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.Layout = Layout;
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/lib/ListItem/ListItem.js
CHANGED
|
@@ -10,7 +10,7 @@ var _Layout = require("../Layout");
|
|
|
10
10
|
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
11
11
|
var _defaultProps = require("./props/defaultProps");
|
|
12
12
|
var _propTypes = require("./props/propTypes");
|
|
13
|
-
var
|
|
13
|
+
var _icons = require("@zohodesk/icons");
|
|
14
14
|
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
16
|
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); }
|
|
@@ -91,7 +91,8 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
91
91
|
dataSelectorId = _this$props4.dataSelectorId,
|
|
92
92
|
a11y = _this$props4.a11y,
|
|
93
93
|
customClass = _this$props4.customClass,
|
|
94
|
-
customProps = _this$props4.customProps
|
|
94
|
+
customProps = _this$props4.customProps,
|
|
95
|
+
needMultiLineText = _this$props4.needMultiLineText;
|
|
95
96
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
96
97
|
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
97
98
|
_customProps$Containe = customProps.ContainerProps,
|
|
@@ -129,7 +130,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
129
130
|
}, ContainerProps), value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
130
131
|
shrink: true,
|
|
131
132
|
adjust: true,
|
|
132
|
-
className: _ListItemModule["default"].value
|
|
133
|
+
className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
|
|
133
134
|
}, value) : null, children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
134
135
|
shrink: true,
|
|
135
136
|
adjust: true,
|
|
@@ -139,7 +140,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
139
140
|
"aria-hidden": ariaHidden,
|
|
140
141
|
dataId: "".concat(dataIdString, "_tickIcon"),
|
|
141
142
|
dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
|
|
142
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
143
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
143
144
|
name: "ZD-ticknew",
|
|
144
145
|
size: "8"
|
|
145
146
|
})) : null);
|
|
@@ -74,6 +74,11 @@
|
|
|
74
74
|
.children {
|
|
75
75
|
composes: dotted from '../common/common.module.css';
|
|
76
76
|
}
|
|
77
|
+
.multiLineValue{
|
|
78
|
+
word-break: break-word;
|
|
79
|
+
line-height: var(--zd_size18);
|
|
80
|
+
composes: clamp from '../common/common.module.css'
|
|
81
|
+
}
|
|
77
82
|
.iconBox {
|
|
78
83
|
width: var(--zd_size20);
|
|
79
84
|
text-align: center;
|