@zohodesk/components 1.0.0-alpha-260 → 1.0.0-alpha-261

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 (72) hide show
  1. package/README.md +6 -0
  2. package/es/DateTime/DateTimePopupHeader.js +1 -1
  3. package/es/DateTime/DateWidget.js +1 -1
  4. package/es/DateTime/YearView.js +1 -1
  5. package/es/DateTime/index.js +1 -1
  6. package/es/DropDown/index.js +7 -0
  7. package/es/Layout/index.js +9 -9
  8. package/es/ListItem/ListItem.js +1 -1
  9. package/es/ListItem/ListItemWithAvatar.js +1 -1
  10. package/es/ListItem/ListItemWithIcon.js +1 -1
  11. package/es/ListItem/index.js +6 -0
  12. package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  13. package/es/MultiSelect/AdvancedMultiSelect.js +1 -1
  14. package/es/MultiSelect/MultiSelect.js +1 -1
  15. package/es/MultiSelect/MultiSelectWithAvatar.js +1 -1
  16. package/es/MultiSelect/index.js +4 -0
  17. package/es/PopOver/index.js +3 -0
  18. package/es/Provider/IdProvider.js +8 -7
  19. package/es/Provider/index.js +4 -0
  20. package/es/Responsive/index.js +11 -8
  21. package/es/Select/GroupSelect.js +1 -1
  22. package/es/Select/Select.js +1 -1
  23. package/es/Select/SelectWithIcon.js +1 -1
  24. package/es/Select/index.js +4 -0
  25. package/es/Tab/Tab.module.css +0 -1
  26. package/es/Tab/Tabs.js +1 -1
  27. package/es/Tab/Tabs.module.css +0 -1
  28. package/es/Tag/Tag.js +1 -1
  29. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  30. package/es/VelocityAnimation/index.js +2 -0
  31. package/es/index.js +30 -146
  32. package/es/semantic/index.js +1 -0
  33. package/es/utils/css/compileClassNames.js +23 -0
  34. package/es/utils/css/mergeStyle.js +42 -0
  35. package/es/utils/css/utils.js +23 -0
  36. package/es/utils/index.js +3 -0
  37. package/lib/DateTime/DateTimePopupHeader.js +4 -4
  38. package/lib/DateTime/DateWidget.js +2 -2
  39. package/lib/DateTime/YearView.js +2 -2
  40. package/lib/DateTime/index.js +1 -1
  41. package/lib/DropDown/index.js +56 -0
  42. package/lib/Layout/index.js +1 -11
  43. package/lib/ListItem/ListItem.js +2 -2
  44. package/lib/ListItem/ListItemWithAvatar.js +2 -2
  45. package/lib/ListItem/ListItemWithIcon.js +3 -3
  46. package/lib/ListItem/index.js +48 -0
  47. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +2 -2
  48. package/lib/MultiSelect/AdvancedMultiSelect.js +2 -2
  49. package/lib/MultiSelect/MultiSelect.js +2 -2
  50. package/lib/MultiSelect/MultiSelectWithAvatar.js +2 -2
  51. package/lib/MultiSelect/index.js +34 -0
  52. package/lib/PopOver/index.js +27 -0
  53. package/lib/Provider/IdProvider.js +8 -8
  54. package/lib/Provider/index.js +76 -0
  55. package/lib/Responsive/index.js +45 -22
  56. package/lib/Select/GroupSelect.js +2 -2
  57. package/lib/Select/Select.js +2 -2
  58. package/lib/Select/SelectWithIcon.js +3 -3
  59. package/lib/Select/index.js +34 -0
  60. package/lib/Tab/Tab.module.css +0 -1
  61. package/lib/Tab/Tabs.js +2 -2
  62. package/lib/Tab/Tabs.module.css +0 -1
  63. package/lib/Tag/Tag.js +3 -3
  64. package/lib/TextBoxIcon/TextBoxIcon.js +2 -2
  65. package/lib/VelocityAnimation/index.js +20 -0
  66. package/lib/index.js +157 -210
  67. package/lib/semantic/index.js +13 -0
  68. package/lib/utils/css/compileClassNames.js +31 -0
  69. package/lib/utils/css/mergeStyle.js +52 -0
  70. package/lib/utils/css/utils.js +33 -0
  71. package/lib/utils/index.js +117 -0
  72. package/package.json +3 -3
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-261
36
+
37
+ - **Tab,Tabs** - Removed offsection property from css.
38
+ - compileClassNames , mergeStyle utils added
39
+ - index export object fixed
40
+
35
41
  # 1.0.0-alpha-260
36
42
 
37
43
  - **TextBoxIcon** - OnClear Focus in TextBox issue Resolved.
@@ -5,7 +5,7 @@ import React, { PureComponent } from 'react';
5
5
 
6
6
  /** ** Components *** */
7
7
  import { Container, Box } from '../Layout';
8
- import Icon from '@zohodesk/icons/lib/Icon';
8
+ import { Icon } from '@zohodesk/icons';
9
9
  import Heading from '../Heading/Heading';
10
10
 
11
11
  /** ** CSS *** */
@@ -7,7 +7,7 @@ import datetime from '@zohodesk/datetimejs';
7
7
  /**** Components ****/
8
8
  import DateTime from './DateTime';
9
9
  import Popup from '../Popup/Popup';
10
- import Icon from '@zohodesk/icons/lib/Icon';
10
+ import { Icon } from '@zohodesk/icons';
11
11
  import { Container } from '../Layout';
12
12
  import TextBoxIcon from '../TextBoxIcon/TextBoxIcon';
13
13
 
@@ -6,7 +6,7 @@ import { YearView_defaultProps } from './props/defaultProps';
6
6
  /**** Components ****/
7
7
  import { Virtualizer } from '@zohodesk/virtualizer';
8
8
  import { Container, Box } from '../Layout';
9
- import Icon from '@zohodesk/icons/lib/Icon';
9
+ import { Icon } from '@zohodesk/icons';
10
10
  import Heading from '../Heading/Heading';
11
11
  /**** CSS ****/
12
12
  import style from './YearView.module.css';
@@ -1 +1 @@
1
- export { default as DateWidget } from './DateWidget.js';
1
+ export { default as DateWidget } from './DateWidget';
@@ -0,0 +1,7 @@
1
+ export { default as DropDown } from './DropDown';
2
+ export { DropDownTarget } from './DropDown';
3
+ export { DropDownItemContainer } from './DropDown';
4
+ export { default as DropDownHeading } from './DropDownHeading';
5
+ export { default as DropDownItem } from './DropDownItem';
6
+ export { default as DropDownSearch } from './DropDownSearch';
7
+ export { default as DropDownSeparator } from './DropDownSeparator';
@@ -1,11 +1,11 @@
1
1
  export { default as Container } from './Container';
2
2
  export { default as Box } from './Box';
3
- let Layout = {
4
- docs: {
5
- componentGroup: 'Layout',
6
- folderName: 'Style Guide',
7
- external: true,
8
- description: ' '
9
- }
10
- };
11
- export { Layout };
3
+ // let Layout = {
4
+ // docs: {
5
+ // componentGroup: 'Layout',
6
+ // folderName: 'Style Guide',
7
+ // external: true,
8
+ // description: ' '
9
+ // }
10
+ // };
11
+ // export { Layout };
@@ -6,7 +6,7 @@ import ListContainer from './ListContainer';
6
6
  import { ListItemDefaultProps } from './props/defaultProps';
7
7
  import { ListItem_Props } from './props/propTypes';
8
8
  /**** Components ****/
9
- import Icon from '@zohodesk/icons/lib/Icon';
9
+ import { Icon } from '@zohodesk/icons';
10
10
  /**** CSS ****/
11
11
  import style from './ListItem.module.css';
12
12
  export default class ListItem extends React.Component {
@@ -9,7 +9,7 @@ import { ListItemWithAvatar_Props } from './props/propTypes';
9
9
  /**** Components ****/
10
10
  import Avatar from '../Avatar/Avatar';
11
11
  import AvatarTeam from '../AvatarTeam/AvatarTeam';
12
- import Icon from '@zohodesk/icons/lib/Icon';
12
+ import { Icon } from '@zohodesk/icons';
13
13
  /**** CSS ****/
14
14
  import style from './ListItem.module.css';
15
15
  export default class ListItemWithAvatar extends React.PureComponent {
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  /**** Libraries ****/
3
3
  import React from 'react';
4
4
  import { Box } from '../Layout';
5
- import Icon from '@zohodesk/icons/lib/Icon';
5
+ import { Icon } from '@zohodesk/icons';
6
6
  import ListContainer from './ListContainer';
7
7
  import { ListItemWithIconDefaultProps } from './props/defaultProps';
8
8
  import { ListItemWithIcon_Props } from './props/propTypes';
@@ -0,0 +1,6 @@
1
+ export { default as ListContainer } from './ListContainer';
2
+ export { default as ListItem } from './ListItem';
3
+ export { default as ListItemWithAvatar } from './ListItemWithAvatar';
4
+ export { default as ListItemWithCheckBox } from './ListItemWithCheckBox';
5
+ export { default as ListItemWithIcon } from './ListItemWithIcon';
6
+ export { default as ListItemWithRadio } from './ListItemWithRadio';
@@ -17,7 +17,7 @@ import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
17
17
  import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
18
18
 
19
19
  /**** Icons ****/
20
- import Icon from '@zohodesk/icons/lib/Icon';
20
+ import { Icon } from '@zohodesk/icons';
21
21
  /**** CSS ****/
22
22
  import style from './MultiSelect.module.css';
23
23
 
@@ -14,7 +14,7 @@ import Popup from '../Popup/Popup';
14
14
  import TextBoxIcon from '../TextBoxIcon/TextBoxIcon';
15
15
  import { Container, Box } from '../Layout';
16
16
  import Card, { CardContent, CardHeader, CardFooter } from '../Card/Card';
17
- import Icon from '@zohodesk/icons/lib/Icon';
17
+ import { Icon } from '@zohodesk/icons';
18
18
  import { getUniqueId } from '../Provider/IdProvider';
19
19
  import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
20
20
  import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
@@ -18,7 +18,7 @@ import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
18
18
  import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
19
19
  import Loader from '@zohodesk/svg/lib/Loader/Loader';
20
20
  /**** Icons ****/
21
- import Icon from '@zohodesk/icons/lib/Icon';
21
+ import { Icon } from '@zohodesk/icons';
22
22
  /**** CSS ****/
23
23
  import style from './MultiSelect.module.css';
24
24
 
@@ -20,7 +20,7 @@ import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
20
20
  import Loader from '@zohodesk/svg/lib/Loader/Loader';
21
21
 
22
22
  /**** Icons ****/
23
- import Icon from '@zohodesk/icons/lib/Icon';
23
+ import { Icon } from '@zohodesk/icons';
24
24
  /**** CSS ****/
25
25
  import style from './MultiSelect.module.css';
26
26
 
@@ -0,0 +1,4 @@
1
+ export { default as MultiSelect } from './MultiSelect';
2
+ export { default as MultiSelectWithAvatar } from './MultiSelectWithAvatar';
3
+ export { default as AdvancedMultiSelect } from './AdvancedMultiSelect';
4
+ export { default as AdvancedGroupMultiSelect } from './AdvancedGroupMultiSelect';
@@ -0,0 +1,3 @@
1
+ export { default as PopOver } from './PopOver';
2
+ export { PopOverTarget } from './PopOver';
3
+ export { PopOverContainer } from './PopOver';
@@ -51,10 +51,11 @@ export function getUniqueId(Component, prefix) {
51
51
  callback
52
52
  });
53
53
  }
54
- let Provider = {
55
- docs: {
56
- componentGroup: 'Provider',
57
- folderName: 'Functions'
58
- }
59
- };
60
- export { Provider };
54
+
55
+ // let Provider = {
56
+ // docs: {
57
+ // componentGroup: 'Provider',
58
+ // folderName: 'Functions'
59
+ // }
60
+ // };
61
+ // export { Provider };
@@ -0,0 +1,4 @@
1
+ export { getLibraryConfig, setLibraryConfig } from './Config';
2
+ export { default as LibraryContextProvider } from './LibraryContext';
3
+ export { removeGlobalZIndexPrefix, setInitialZIndex, useZIndex, getZIndex } from './ZindexProvider';
4
+ export { setGlobalIdPrefix, removeGlobalIdPrefix, useUniqueId, getUniqueId } from './IdProvider';
@@ -1,8 +1,11 @@
1
- export * from './Responsive';
2
- let Responsive = {
3
- docs: {
4
- componentGroup: 'Layout',
5
- folderName: 'Style Guide'
6
- }
7
- };
8
- export { Responsive };
1
+ export { ResponsiveSender as CustomResponsiveSender, ResponsiveReceiver as CustomResponsiveReceiver, useResponsiveReceiver as useCustomResponsiveReceiver } from './CustomResponsive';
2
+ export { ResponsiveSender, ResponsiveReceiver, useResponsiveReceiver } from './Responsive';
3
+ export { default as ResizeComponent } from './ResizeComponent';
4
+
5
+ // let Responsive = {
6
+ // docs: {
7
+ // componentGroup: 'Layout',
8
+ // folderName: 'Style Guide'
9
+ // }
10
+ // };
11
+ // export { Responsive };
@@ -10,7 +10,7 @@ import Textbox from '../TextBox/TextBox';
10
10
  import Card, { CardHeader, CardContent, CardFooter } from '../Card/Card';
11
11
  import Suggestions from '../MultiSelect/Suggestions';
12
12
  import EmptyState from '../MultiSelect/EmptyState';
13
- import Icon from '@zohodesk/icons/lib/Icon';
13
+ import { Icon } from '@zohodesk/icons';
14
14
  import Loader from '@zohodesk/svg/lib/Loader/Loader';
15
15
  import DropDownHeading from '../DropDown/DropDownHeading';
16
16
  import { Container, Box } from '../Layout';
@@ -12,7 +12,7 @@ import Card, { CardHeader, CardContent, CardFooter } from '../Card/Card';
12
12
  import Suggestions from '../MultiSelect/Suggestions';
13
13
  import EmptyState from '../MultiSelect/EmptyState';
14
14
  import { getUniqueId } from '../Provider/IdProvider';
15
- import Icon from '@zohodesk/icons/lib/Icon';
15
+ import { Icon } from '@zohodesk/icons';
16
16
  import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
17
17
  import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
18
18
  import Loader from '@zohodesk/svg/lib/Loader/Loader';
@@ -4,7 +4,7 @@ import { SelectWithIcon_propTypes } from './props/propTypes';
4
4
  /**** Components ****/
5
5
  import Popup from '../Popup/Popup';
6
6
  import TextBoxIcon from '../TextBoxIcon/TextBoxIcon';
7
- import Icon from '@zohodesk/icons/lib/Icon';
7
+ import { Icon } from '@zohodesk/icons';
8
8
  import ListItemWithIcon from '../ListItem/ListItemWithIcon';
9
9
  import Card, { CardHeader, CardContent } from '../Card/Card';
10
10
  import EmptyState from '../MultiSelect/EmptyState';
@@ -0,0 +1,4 @@
1
+ export { default as Select } from './Select';
2
+ export { default as GroupSelect } from './GroupSelect';
3
+ export { default as SelectWithAvatar } from './SelectWithAvatar';
4
+ export { default as SelectWithIcon } from './SelectWithIcon';
@@ -1,6 +1,5 @@
1
1
  .tab {
2
2
  text-transform: uppercase;
3
- composes: offSelection from '../common/common.module.css';
4
3
  letter-spacing: 0.6px;
5
4
  text-decoration: none;
6
5
  cursor: pointer;
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/lib/Icon';
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';
@@ -1,6 +1,5 @@
1
1
  .tab {
2
2
  position: relative;
3
- composes: offSelection from '../common/common.module.css';
4
3
  z-index: 1;
5
4
  --tab_position_gap: var(--zd_size22);
6
5
  }
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/lib/Icon';
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/lib/Icon';
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 */
@@ -0,0 +1,2 @@
1
+ export { default as VelocityAnimation } from './VelocityAnimation/VelocityAnimation';
2
+ export { default as VelocityAnimationGroup } from './VelocityAnimationGroup/VelocityAnimationGroup';
package/es/index.js CHANGED
@@ -1,157 +1,41 @@
1
- // export { default as React } from 'react';
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
- // export { default as Animation__default } from './Animation/docs/Animation__default.docs';
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
- // export { default as Buttongroup__footer } from './Buttongroup/docs/Buttongroup__footer.docs';
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
- // export { default as CheckBox__default } from './CheckBox/docs/CheckBox__default.docs';
65
- // export { default as CheckBox__custom } from './CheckBox/docs/CheckBox__custom.docs';
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
- // export { default as Ribbon__default } from './Ribbon/docs/Ribbon__default.docs';
68
- // export { default as Ribbon__custom } from './Ribbon/docs/Ribbon__custom.docs';
69
- export { default as Tag } from './Tag/Tag';
70
- // export { default as Tag__default } from './Tag/docs/Tag__default.docs';
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
- // export { default as Tab__default } from './Tab/docs/Tab__default.docs';
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
- // export { default as Tooltip__default } from './Tooltip/docs/Tooltip__default.docs';
84
- export { default as Select } from './Select/Select';
85
- // export { default as Select__Select } from './Select/docs/Select__default.docs';
86
- export { default as SelectWithIcon } from './Select/SelectWithIcon';
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';
@@ -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
+ };
@@ -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';