@agilemotion/oui-react-js 1.2.6 → 1.2.8

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 (133) hide show
  1. package/dist/ApplicationContext.js +244 -250
  2. package/dist/BasicApp.js +53 -97
  3. package/dist/BasicAppHome.js +86 -122
  4. package/dist/DynamicJS.js +65 -88
  5. package/dist/RestUtils.js +284 -315
  6. package/dist/TypedValue.js +15 -18
  7. package/dist/Utils.js +224 -262
  8. package/dist/assets/jss/components/authNavbarStyle.js +162 -164
  9. package/dist/assets/jss/components/buttonStyle.js +1 -1
  10. package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
  11. package/dist/assets/jss/components/cardBodyStyle.js +1 -1
  12. package/dist/assets/jss/components/cardFooterStyle.js +1 -1
  13. package/dist/assets/jss/components/cardHeaderStyle.js +1 -1
  14. package/dist/assets/jss/components/cardIconStyle.js +1 -1
  15. package/dist/assets/jss/components/cardStyle.js +1 -1
  16. package/dist/assets/jss/components/cardTextStyle.js +1 -1
  17. package/dist/assets/jss/components/customDropdownStyle.js +192 -194
  18. package/dist/assets/jss/components/customInputStyle.js +1 -1
  19. package/dist/assets/jss/components/dropdownStyle.js +107 -109
  20. package/dist/assets/jss/components/footerStyle.js +1 -1
  21. package/dist/assets/jss/components/headerLinksStyle.js +95 -97
  22. package/dist/assets/jss/components/headerStyle.js +60 -62
  23. package/dist/assets/jss/components/navbarLinksStyle.js +137 -139
  24. package/dist/assets/jss/components/navbarStyle.js +71 -73
  25. package/dist/assets/jss/components/sidebarStyle.js +453 -455
  26. package/dist/assets/jss/components/typographyStyle.js +1 -1
  27. package/dist/assets/jss/rootStyle.js +57 -57
  28. package/dist/assets/jss/views/layoutStyle.js +42 -44
  29. package/dist/assets/jss/views/loginBasicStyle.js +1 -1
  30. package/dist/assets/jss/views/loginStyle.js +87 -89
  31. package/dist/components/AlertBar.js +21 -23
  32. package/dist/components/AlertItem.js +23 -25
  33. package/dist/components/AlertTemplate.js +29 -30
  34. package/dist/components/Button.js +35 -37
  35. package/dist/components/ConfirmationDialog.js +3 -3
  36. package/dist/components/DataGrid.js +250 -276
  37. package/dist/components/DataGridColumn.js +34 -36
  38. package/dist/components/DataGridFilter.js +92 -94
  39. package/dist/components/DataGridHeading.js +32 -38
  40. package/dist/components/DocumentViewer.js +12 -11
  41. package/dist/components/Graph.js +34 -50
  42. package/dist/components/GraphNode.js +53 -56
  43. package/dist/components/HtmlPanel.js +6 -8
  44. package/dist/components/Icon.js +28 -58
  45. package/dist/components/LoadingIndicator.js +2 -2
  46. package/dist/components/PopupView.js +15 -17
  47. package/dist/components/RegularButton.js +20 -20
  48. package/dist/components/TabPage.js +23 -25
  49. package/dist/components/TabPanel.js +34 -34
  50. package/dist/components/TableCellContent.js +34 -34
  51. package/dist/components/TitleBar.js +16 -16
  52. package/dist/components/Toolbar.js +112 -118
  53. package/dist/components/Tooltip.js +35 -43
  54. package/dist/components/Tree.js +54 -60
  55. package/dist/components/card/Card.js +17 -17
  56. package/dist/components/card/CardAvatar.js +10 -10
  57. package/dist/components/card/CardBody.js +14 -14
  58. package/dist/components/card/CardFooter.js +13 -13
  59. package/dist/components/card/CardHeader.js +14 -14
  60. package/dist/components/card/CardIcon.js +7 -7
  61. package/dist/components/card/CardText.js +7 -7
  62. package/dist/components/customInput/CustomInput.js +17 -17
  63. package/dist/components/dashboard/BasicApp.js +25 -25
  64. package/dist/components/dashboard/BasicBusinessApp.js +116 -119
  65. package/dist/components/dashboard/components/Header.js +11 -11
  66. package/dist/components/dashboard/components/LeftDrawer.js +3 -3
  67. package/dist/components/dashboard/components/UserIdentity.js +2 -2
  68. package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +85 -127
  69. package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +151 -191
  70. package/dist/components/footer/Footer.js +8 -8
  71. package/dist/components/footer/HomeFooter.js +34 -66
  72. package/dist/components/form/BaseField.js +78 -78
  73. package/dist/components/form/Checkbox.js +8 -10
  74. package/dist/components/form/DatePicker.js +15 -19
  75. package/dist/components/form/FieldSet.js +62 -88
  76. package/dist/components/form/Form.js +317 -318
  77. package/dist/components/form/GridField.js +81 -86
  78. package/dist/components/form/LabelField.js +10 -12
  79. package/dist/components/form/LookupField.js +40 -42
  80. package/dist/components/form/Section.js +37 -39
  81. package/dist/components/form/SelectItem.js +35 -39
  82. package/dist/components/form/TextField.js +18 -22
  83. package/dist/components/form/TimePicker.js +15 -19
  84. package/dist/components/form/TransferList.js +83 -91
  85. package/dist/components/form/UploadField.js +135 -145
  86. package/dist/components/grid/GridContainer.js +6 -6
  87. package/dist/components/grid/GridItem.js +6 -6
  88. package/dist/components/layout/CollapsiblePanel.js +18 -20
  89. package/dist/components/layout/Layout.js +70 -72
  90. package/dist/components/layout/View.js +134 -136
  91. package/dist/components/layout/ViewPort.js +56 -98
  92. package/dist/components/menu/CollapsibleMenu.js +26 -28
  93. package/dist/components/menu/MenuBars.js +53 -59
  94. package/dist/components/menu/MenuButton.js +70 -77
  95. package/dist/components/menu/MenuItem.js +15 -17
  96. package/dist/components/menu/MenuLink.js +9 -11
  97. package/dist/components/menu/PopupMenu.js +12 -16
  98. package/dist/components/navbars/AuthNavbar.js +12 -12
  99. package/dist/components/navbars/HomeNavbar.js +175 -222
  100. package/dist/components/navbars/NavbarLinks.js +45 -46
  101. package/dist/components/typography/Danger.js +3 -3
  102. package/dist/components/typography/Info.js +3 -3
  103. package/dist/components/typography/Link.js +3 -3
  104. package/dist/event/ActionHandlers.js +43 -57
  105. package/dist/event/Event.js +13 -16
  106. package/dist/event/EventListener.js +36 -39
  107. package/dist/event/EventType.js +1 -5
  108. package/dist/event/LoadDataActionHandler.js +8 -20
  109. package/dist/event/Observable.js +162 -198
  110. package/dist/event/RouteActionHandler.js +76 -88
  111. package/dist/event/ScriptActionHandler.js +8 -20
  112. package/dist/event/ServiceCallActionHandler.js +28 -40
  113. package/dist/event/SignalGraphActionHandler.js +7 -19
  114. package/dist/js/Addresses.js +15 -27
  115. package/dist/js/DynamicLib.js +11 -14
  116. package/dist/js/Validators.js +5 -6
  117. package/dist/redux/store/ConfigureStore.js +6 -6
  118. package/dist/redux/store/DashboardStore.js +83 -95
  119. package/dist/redux/store/History.js +1 -1
  120. package/dist/redux/store/SecurityStore.js +41 -45
  121. package/dist/security/TokenManager.js +30 -44
  122. package/dist/theme-default.js +1 -1
  123. package/dist/view/Dashboard.js +108 -114
  124. package/dist/view/Settings.js +2 -4
  125. package/dist/view/security/ChangePasswordBasic.js +96 -100
  126. package/dist/view/security/ForgotPassword.js +52 -56
  127. package/dist/view/security/ForgotPasswordBasic.js +48 -54
  128. package/dist/view/security/Login.js +58 -62
  129. package/dist/view/security/LoginBasic.js +50 -54
  130. package/dist/view/security/ResetPassword.js +58 -62
  131. package/dist/view/security/ResetPasswordBasic.js +89 -93
  132. package/dist/view/security/Security.js +12 -12
  133. package/package.json +1 -1
@@ -13,207 +13,205 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
13
13
 
14
14
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
15
 
16
- var customDropdownStyle = function customDropdownStyle(theme) {
17
- return {
18
- popperClose: {
19
- pointerEvents: "none",
20
- display: "none !important"
21
- },
22
- popperNav: {
23
- [theme.breakpoints.down("sm")]: {
24
- position: "static !important",
25
- left: "unset !important",
26
- top: "unset !important",
27
- transform: "none !important",
28
- willChange: "unset !important",
29
- "& > div": {
30
- boxShadow: "none !important",
31
- marginLeft: "0rem",
32
- marginRight: "0rem",
33
- transition: "none !important",
34
- marginTop: "0px !important",
35
- marginBottom: "0px !important",
36
- padding: "0px !important",
37
- backgroundColor: "transparent !important",
38
- "& ul li": {
39
- color: _rootStyle.whiteColor + " !important",
40
- margin: "10px 15px 0!important",
41
- padding: "10px 15px !important",
42
- "&:hover": {
43
- backgroundColor: "hsla(0,0%,78%,.2)",
44
- boxShadow: "none"
45
- }
16
+ const customDropdownStyle = theme => ({
17
+ popperClose: {
18
+ pointerEvents: "none",
19
+ display: "none !important"
20
+ },
21
+ popperNav: {
22
+ [theme.breakpoints.down("sm")]: {
23
+ position: "static !important",
24
+ left: "unset !important",
25
+ top: "unset !important",
26
+ transform: "none !important",
27
+ willChange: "unset !important",
28
+ "& > div": {
29
+ boxShadow: "none !important",
30
+ marginLeft: "0rem",
31
+ marginRight: "0rem",
32
+ transition: "none !important",
33
+ marginTop: "0px !important",
34
+ marginBottom: "0px !important",
35
+ padding: "0px !important",
36
+ backgroundColor: "transparent !important",
37
+ "& ul li": {
38
+ color: _rootStyle.whiteColor + " !important",
39
+ margin: "10px 15px 0!important",
40
+ padding: "10px 15px !important",
41
+ "&:hover": {
42
+ backgroundColor: "hsla(0,0%,78%,.2)",
43
+ boxShadow: "none"
46
44
  }
47
45
  }
48
46
  }
49
- },
50
- manager: {
51
- "& > div > button:first-child > span:first-child, & > div > a:first-child > span:first-child": {
52
- width: "100%"
53
- }
54
- },
55
- innerManager: {
56
- "& > div > button,& > div > a": {
57
- margin: "0px !important",
58
- color: "inherit !important",
59
- padding: "10px 20px !important",
60
- "& > span:first-child": {
61
- width: "100%",
62
- justifyContent: "flex-start"
63
- }
64
- }
65
- },
66
- target: {
67
- "& > button:first-child > span:first-child, & > a:first-child > span:first-child": {
68
- display: "inline-block"
69
- },
70
- "& $caret": {
71
- marginLeft: "0px"
47
+ }
48
+ },
49
+ manager: {
50
+ "& > div > button:first-child > span:first-child, & > div > a:first-child > span:first-child": {
51
+ width: "100%"
52
+ }
53
+ },
54
+ innerManager: {
55
+ "& > div > button,& > div > a": {
56
+ margin: "0px !important",
57
+ color: "inherit !important",
58
+ padding: "10px 20px !important",
59
+ "& > span:first-child": {
60
+ width: "100%",
61
+ justifyContent: "flex-start"
72
62
  }
63
+ }
64
+ },
65
+ target: {
66
+ "& > button:first-child > span:first-child, & > a:first-child > span:first-child": {
67
+ display: "inline-block"
73
68
  },
74
- dropdown: {
75
- borderRadius: "3px",
69
+ "& $caret": {
70
+ marginLeft: "0px"
71
+ }
72
+ },
73
+ dropdown: {
74
+ borderRadius: "3px",
75
+ border: "0",
76
+ boxShadow: "0 2px 5px 0 rgba(" + (0, _rootStyle.hexToRgb)(_rootStyle.blackColor) + ", 0.26)",
77
+ top: "100%",
78
+ zIndex: "1000",
79
+ minWidth: "160px",
80
+ padding: "5px 0",
81
+ margin: "2px 0 0",
82
+ fontSize: "14px",
83
+ textAlign: "left",
84
+ listStyle: "none",
85
+ backgroundColor: _rootStyle.whiteColor,
86
+ backgroundClip: "padding-box"
87
+ },
88
+ menuList: {
89
+ padding: "0"
90
+ },
91
+ popperResponsive: {
92
+ zIndex: "1200",
93
+ [theme.breakpoints.down("sm")]: {
94
+ zIndex: "1640",
95
+ position: "static",
96
+ float: "none",
97
+ width: "auto",
98
+ marginTop: "0",
99
+ backgroundColor: "transparent",
76
100
  border: "0",
77
- boxShadow: "0 2px 5px 0 rgba(" + (0, _rootStyle.hexToRgb)(_rootStyle.blackColor) + ", 0.26)",
78
- top: "100%",
79
- zIndex: "1000",
80
- minWidth: "160px",
81
- padding: "5px 0",
82
- margin: "2px 0 0",
83
- fontSize: "14px",
84
- textAlign: "left",
85
- listStyle: "none",
86
- backgroundColor: _rootStyle.whiteColor,
87
- backgroundClip: "padding-box"
88
- },
89
- menuList: {
90
- padding: "0"
91
- },
92
- popperResponsive: {
93
- zIndex: "1200",
94
- [theme.breakpoints.down("sm")]: {
95
- zIndex: "1640",
96
- position: "static",
97
- float: "none",
98
- width: "auto",
99
- marginTop: "0",
100
- backgroundColor: "transparent",
101
- border: "0",
102
- boxShadow: "none",
103
- color: "black"
104
- }
105
- },
106
- dropdownItem: _objectSpread(_objectSpread({}, _rootStyle.defaultFont), {}, {
107
- fontSize: "13px",
108
- padding: "10px 20px",
109
- margin: "0 5px",
110
- borderRadius: "2px",
111
- position: "relative",
112
- transition: "all 150ms linear",
113
- display: "block",
114
- clear: "both",
115
- fontWeight: "400",
116
- height: "100%",
117
- color: _rootStyle.grayColor[7],
118
- whiteSpace: "nowrap",
119
- minHeight: "unset"
120
- }),
121
- darkHover: {
122
- "&:hover": {
123
- boxShadow: "0 4px 20px 0px rgba(" + (0, _rootStyle.hexToRgb)(_rootStyle.blackColor) + ", 0.14), 0 7px 10px -5px rgba(" + (0, _rootStyle.hexToRgb)(_rootStyle.grayColor[16]) + ", 0.4)",
124
- backgroundColor: _rootStyle.grayColor[16],
125
- color: _rootStyle.whiteColor
126
- }
127
- },
128
- primaryHover: {
129
- "&:hover": _objectSpread({
130
- backgroundColor: _rootStyle.primaryColor[0],
131
- color: _rootStyle.whiteColor
132
- }, _rootStyle.primaryBoxShadow)
133
- },
134
- infoHover: {
135
- "&:hover": _objectSpread({
136
- backgroundColor: _rootStyle.infoColor[0],
137
- color: _rootStyle.whiteColor
138
- }, _rootStyle.infoBoxShadow)
139
- },
140
- successHover: {
141
- "&:hover": _objectSpread({
142
- backgroundColor: _rootStyle.successColor[0],
143
- color: _rootStyle.whiteColor
144
- }, _rootStyle.successBoxShadow)
145
- },
146
- warningHover: {
147
- "&:hover": _objectSpread({
148
- backgroundColor: _rootStyle.warningColor[0],
149
- color: _rootStyle.whiteColor
150
- }, _rootStyle.warningBoxShadow)
151
- },
152
- dangerHover: {
153
- "&:hover": _objectSpread({
154
- backgroundColor: _rootStyle.dangerColor[0],
155
- color: _rootStyle.whiteColor
156
- }, _rootStyle.dangerBoxShadow)
157
- },
158
- roseHover: {
159
- "&:hover": _objectSpread({
160
- backgroundColor: _rootStyle.roseColor[0],
161
- color: _rootStyle.whiteColor
162
- }, _rootStyle.roseBoxShadow)
163
- },
164
- dropdownItemRTL: {
165
- textAlign: "right"
166
- },
167
- dropdownDividerItem: {
168
- margin: "5px 0",
169
- backgroundColor: "rgba(" + (0, _rootStyle.hexToRgb)(_rootStyle.blackColor) + ", 0.12)",
170
- height: "1px",
171
- overflow: "hidden"
172
- },
173
- buttonIcon: {
174
- width: "20px",
175
- height: "20px"
176
- },
177
- caret: {
178
- transition: "all 150ms ease-in",
179
- display: "inline-block",
180
- width: "0",
181
- height: "0",
182
- marginLeft: "4px",
183
- verticalAlign: "middle",
184
- borderTop: "4px solid",
185
- borderRight: "4px solid transparent",
186
- borderLeft: "4px solid transparent"
187
- },
188
- caretActive: {
189
- transform: "rotate(-360deg)"
190
- },
191
- caretDropup: {
192
- transform: "rotate(-360deg)"
193
- },
194
- caretRTL: {
195
- marginRight: "4px"
196
- },
197
- dropdownHeader: {
198
- display: "block",
199
- padding: "0.1875rem 1.25rem",
200
- fontSize: "0.75rem",
201
- lineHeight: "1.428571",
202
- color: _rootStyle.grayColor[1],
203
- whiteSpace: "nowrap",
204
- fontWeight: "inherit",
205
- marginTop: "10px",
206
- minHeight: "unset",
207
- "&:hover,&:focus": {
208
- backgroundColor: "transparent",
209
- cursor: "auto"
210
- }
211
- },
212
- noLiPadding: {
213
- padding: "0"
101
+ boxShadow: "none",
102
+ color: "black"
103
+ }
104
+ },
105
+ dropdownItem: _objectSpread(_objectSpread({}, _rootStyle.defaultFont), {}, {
106
+ fontSize: "13px",
107
+ padding: "10px 20px",
108
+ margin: "0 5px",
109
+ borderRadius: "2px",
110
+ position: "relative",
111
+ transition: "all 150ms linear",
112
+ display: "block",
113
+ clear: "both",
114
+ fontWeight: "400",
115
+ height: "100%",
116
+ color: _rootStyle.grayColor[7],
117
+ whiteSpace: "nowrap",
118
+ minHeight: "unset"
119
+ }),
120
+ darkHover: {
121
+ "&:hover": {
122
+ boxShadow: "0 4px 20px 0px rgba(" + (0, _rootStyle.hexToRgb)(_rootStyle.blackColor) + ", 0.14), 0 7px 10px -5px rgba(" + (0, _rootStyle.hexToRgb)(_rootStyle.grayColor[16]) + ", 0.4)",
123
+ backgroundColor: _rootStyle.grayColor[16],
124
+ color: _rootStyle.whiteColor
214
125
  }
215
- };
216
- };
126
+ },
127
+ primaryHover: {
128
+ "&:hover": _objectSpread({
129
+ backgroundColor: _rootStyle.primaryColor[0],
130
+ color: _rootStyle.whiteColor
131
+ }, _rootStyle.primaryBoxShadow)
132
+ },
133
+ infoHover: {
134
+ "&:hover": _objectSpread({
135
+ backgroundColor: _rootStyle.infoColor[0],
136
+ color: _rootStyle.whiteColor
137
+ }, _rootStyle.infoBoxShadow)
138
+ },
139
+ successHover: {
140
+ "&:hover": _objectSpread({
141
+ backgroundColor: _rootStyle.successColor[0],
142
+ color: _rootStyle.whiteColor
143
+ }, _rootStyle.successBoxShadow)
144
+ },
145
+ warningHover: {
146
+ "&:hover": _objectSpread({
147
+ backgroundColor: _rootStyle.warningColor[0],
148
+ color: _rootStyle.whiteColor
149
+ }, _rootStyle.warningBoxShadow)
150
+ },
151
+ dangerHover: {
152
+ "&:hover": _objectSpread({
153
+ backgroundColor: _rootStyle.dangerColor[0],
154
+ color: _rootStyle.whiteColor
155
+ }, _rootStyle.dangerBoxShadow)
156
+ },
157
+ roseHover: {
158
+ "&:hover": _objectSpread({
159
+ backgroundColor: _rootStyle.roseColor[0],
160
+ color: _rootStyle.whiteColor
161
+ }, _rootStyle.roseBoxShadow)
162
+ },
163
+ dropdownItemRTL: {
164
+ textAlign: "right"
165
+ },
166
+ dropdownDividerItem: {
167
+ margin: "5px 0",
168
+ backgroundColor: "rgba(" + (0, _rootStyle.hexToRgb)(_rootStyle.blackColor) + ", 0.12)",
169
+ height: "1px",
170
+ overflow: "hidden"
171
+ },
172
+ buttonIcon: {
173
+ width: "20px",
174
+ height: "20px"
175
+ },
176
+ caret: {
177
+ transition: "all 150ms ease-in",
178
+ display: "inline-block",
179
+ width: "0",
180
+ height: "0",
181
+ marginLeft: "4px",
182
+ verticalAlign: "middle",
183
+ borderTop: "4px solid",
184
+ borderRight: "4px solid transparent",
185
+ borderLeft: "4px solid transparent"
186
+ },
187
+ caretActive: {
188
+ transform: "rotate(-360deg)"
189
+ },
190
+ caretDropup: {
191
+ transform: "rotate(-360deg)"
192
+ },
193
+ caretRTL: {
194
+ marginRight: "4px"
195
+ },
196
+ dropdownHeader: {
197
+ display: "block",
198
+ padding: "0.1875rem 1.25rem",
199
+ fontSize: "0.75rem",
200
+ lineHeight: "1.428571",
201
+ color: _rootStyle.grayColor[1],
202
+ whiteSpace: "nowrap",
203
+ fontWeight: "inherit",
204
+ marginTop: "10px",
205
+ minHeight: "unset",
206
+ "&:hover,&:focus": {
207
+ backgroundColor: "transparent",
208
+ cursor: "auto"
209
+ }
210
+ },
211
+ noLiPadding: {
212
+ padding: "0"
213
+ }
214
+ });
217
215
 
218
216
  var _default = customDropdownStyle;
219
217
  exports.default = _default;
@@ -13,7 +13,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
13
13
 
14
14
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
15
 
16
- var customInputStyle = {
16
+ const customInputStyle = {
17
17
  disabled: {
18
18
  "&:before": {
19
19
  borderColor: "transparent !important"
@@ -13,118 +13,116 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
13
13
 
14
14
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
15
 
16
- var dropdownStyle = function dropdownStyle(theme) {
17
- return {
18
- buttonLink: {
19
- [theme.breakpoints.down("md")]: {
20
- display: "flex",
21
- marginLeft: "30px",
22
- width: "auto"
23
- }
24
- },
25
- links: {
26
- width: "20px",
27
- height: "20px",
28
- zIndex: "4",
29
- [theme.breakpoints.down("md")]: {
30
- display: "block",
31
- width: "30px",
32
- height: "30px",
33
- color: _rootStyle.grayColor[9],
34
- marginRight: "15px"
35
- }
36
- },
37
- linkText: _objectSpread(_objectSpread({
38
- zIndex: "4"
39
- }, _rootStyle.defaultFont), {}, {
40
- fontSize: "14px"
41
- }),
42
- popperClose: {
43
- pointerEvents: "none"
44
- },
45
- popperResponsive: {
46
- [theme.breakpoints.down("md")]: {
47
- zIndex: "1640",
48
- position: "static",
49
- float: "none",
50
- width: "auto",
51
- marginTop: "0",
52
- backgroundColor: "transparent",
53
- border: "0",
54
- WebkitBoxShadow: "none",
55
- boxShadow: "none",
56
- color: "black"
57
- }
58
- },
59
- popperNav: {
60
- [theme.breakpoints.down("sm")]: {
61
- position: "static !important",
62
- left: "unset !important",
63
- top: "unset !important",
64
- transform: "none !important",
65
- willChange: "unset !important",
66
- "& > div": {
67
- boxShadow: "none !important",
68
- marginLeft: "0rem",
69
- marginRight: "0rem",
70
- transition: "none !important",
71
- marginTop: "0px !important",
72
- marginBottom: "0px !important",
73
- padding: "0px !important",
74
- backgroundColor: "transparent !important",
75
- "& ul li": {
76
- color: _rootStyle.whiteColor + " !important",
77
- margin: "10px 15px 0!important",
78
- padding: "10px 15px !important",
79
- "&:hover": {
80
- backgroundColor: "hsla(0,0%,78%,.2)",
81
- boxShadow: "none"
82
- }
16
+ const dropdownStyle = theme => ({
17
+ buttonLink: {
18
+ [theme.breakpoints.down("md")]: {
19
+ display: "flex",
20
+ marginLeft: "30px",
21
+ width: "auto"
22
+ }
23
+ },
24
+ links: {
25
+ width: "20px",
26
+ height: "20px",
27
+ zIndex: "4",
28
+ [theme.breakpoints.down("md")]: {
29
+ display: "block",
30
+ width: "30px",
31
+ height: "30px",
32
+ color: _rootStyle.grayColor[9],
33
+ marginRight: "15px"
34
+ }
35
+ },
36
+ linkText: _objectSpread(_objectSpread({
37
+ zIndex: "4"
38
+ }, _rootStyle.defaultFont), {}, {
39
+ fontSize: "14px"
40
+ }),
41
+ popperClose: {
42
+ pointerEvents: "none"
43
+ },
44
+ popperResponsive: {
45
+ [theme.breakpoints.down("md")]: {
46
+ zIndex: "1640",
47
+ position: "static",
48
+ float: "none",
49
+ width: "auto",
50
+ marginTop: "0",
51
+ backgroundColor: "transparent",
52
+ border: "0",
53
+ WebkitBoxShadow: "none",
54
+ boxShadow: "none",
55
+ color: "black"
56
+ }
57
+ },
58
+ popperNav: {
59
+ [theme.breakpoints.down("sm")]: {
60
+ position: "static !important",
61
+ left: "unset !important",
62
+ top: "unset !important",
63
+ transform: "none !important",
64
+ willChange: "unset !important",
65
+ "& > div": {
66
+ boxShadow: "none !important",
67
+ marginLeft: "0rem",
68
+ marginRight: "0rem",
69
+ transition: "none !important",
70
+ marginTop: "0px !important",
71
+ marginBottom: "0px !important",
72
+ padding: "0px !important",
73
+ backgroundColor: "transparent !important",
74
+ "& ul li": {
75
+ color: _rootStyle.whiteColor + " !important",
76
+ margin: "10px 15px 0!important",
77
+ padding: "10px 15px !important",
78
+ "&:hover": {
79
+ backgroundColor: "hsla(0,0%,78%,.2)",
80
+ boxShadow: "none"
83
81
  }
84
82
  }
85
83
  }
86
- },
87
- dropdown: {
88
- borderRadius: "3px",
89
- border: "0",
90
- boxShadow: "0 2px 5px 0 rgba(" + (0, _rootStyle.hexToRgb)(_rootStyle.blackColor) + ", 0.26)",
91
- top: "100%",
92
- zIndex: "1000",
93
- minWidth: "160px",
94
- padding: "5px 0",
95
- margin: "2px 0 0",
96
- fontSize: "14px",
97
- textAlign: "left",
98
- listStyle: "none",
99
- backgroundColor: _rootStyle.whiteColor,
100
- WebkitBackgroundClip: "padding-box",
101
- backgroundClip: "padding-box"
102
- },
103
- dropdownItem: _objectSpread(_objectSpread({}, _rootStyle.defaultFont), {}, {
104
- fontSize: "13px",
105
- padding: "10px 20px",
106
- margin: "0 5px",
107
- borderRadius: "2px",
108
- WebkitTransition: "all 150ms linear",
109
- MozTransition: "all 150ms linear",
110
- OTransition: "all 150ms linear",
111
- MsTransition: "all 150ms linear",
112
- transition: "all 150ms linear",
113
- display: "block",
114
- clear: "both",
115
- fontWeight: "400",
116
- lineHeight: "1.42857143",
117
- color: _rootStyle.grayColor[8],
118
- whiteSpace: "nowrap",
119
- height: "unset",
120
- minHeight: "unset",
121
- "&:hover": _objectSpread({
122
- backgroundColor: _rootStyle.primaryColor[0],
123
- color: _rootStyle.whiteColor
124
- }, _rootStyle.primaryBoxShadow)
125
- })
126
- };
127
- };
84
+ }
85
+ },
86
+ dropdown: {
87
+ borderRadius: "3px",
88
+ border: "0",
89
+ boxShadow: "0 2px 5px 0 rgba(" + (0, _rootStyle.hexToRgb)(_rootStyle.blackColor) + ", 0.26)",
90
+ top: "100%",
91
+ zIndex: "1000",
92
+ minWidth: "160px",
93
+ padding: "5px 0",
94
+ margin: "2px 0 0",
95
+ fontSize: "14px",
96
+ textAlign: "left",
97
+ listStyle: "none",
98
+ backgroundColor: _rootStyle.whiteColor,
99
+ WebkitBackgroundClip: "padding-box",
100
+ backgroundClip: "padding-box"
101
+ },
102
+ dropdownItem: _objectSpread(_objectSpread({}, _rootStyle.defaultFont), {}, {
103
+ fontSize: "13px",
104
+ padding: "10px 20px",
105
+ margin: "0 5px",
106
+ borderRadius: "2px",
107
+ WebkitTransition: "all 150ms linear",
108
+ MozTransition: "all 150ms linear",
109
+ OTransition: "all 150ms linear",
110
+ MsTransition: "all 150ms linear",
111
+ transition: "all 150ms linear",
112
+ display: "block",
113
+ clear: "both",
114
+ fontWeight: "400",
115
+ lineHeight: "1.42857143",
116
+ color: _rootStyle.grayColor[8],
117
+ whiteSpace: "nowrap",
118
+ height: "unset",
119
+ minHeight: "unset",
120
+ "&:hover": _objectSpread({
121
+ backgroundColor: _rootStyle.primaryColor[0],
122
+ color: _rootStyle.whiteColor
123
+ }, _rootStyle.primaryBoxShadow)
124
+ })
125
+ });
128
126
 
129
127
  var _default = dropdownStyle;
130
128
  exports.default = _default;
@@ -13,7 +13,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
13
13
 
14
14
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
15
 
16
- var footerStyle = {
16
+ const footerStyle = {
17
17
  block: {},
18
18
  left: {
19
19
  float: "left!important",