empower-container 0.1.7 → 0.1.10

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 (69) hide show
  1. package/README.md +66 -0
  2. package/package.json +2 -2
  3. package/src/main/Information.js +2 -1
  4. package/src/main/Information.tsx +3 -1
  5. package/src/main/MenuBar.js +12 -11
  6. package/src/main/MenuBar.tsx +22 -20
  7. package/src/main/assets/Asset.d.ts +1 -0
  8. package/src/main/assets/Asset.js +5 -3
  9. package/src/main/assets/Asset.tsx +8 -2
  10. package/src/sample/TestMenuBar.d.ts +1 -0
  11. package/src/sample/TestMenuBar.js +35 -16
  12. package/src/sample/TestMenuBar.tsx +63 -48
  13. package/src/scss/elements/_button.scss +5 -5
  14. package/src/scss/library/_menubar.scss +41 -11
  15. package/src/scss/library/_select.scss +6 -5
  16. package/dist/cjs/DatetimeFormatter.d.ts +0 -3
  17. package/dist/cjs/DatetimeFormatter.js +0 -389
  18. package/dist/cjs/Information.d.ts +0 -10
  19. package/dist/cjs/Information.js +0 -62
  20. package/dist/cjs/MenuBar.d.ts +0 -24
  21. package/dist/cjs/MenuBar.js +0 -537
  22. package/dist/cjs/Modal.d.ts +0 -33
  23. package/dist/cjs/Modal.js +0 -32
  24. package/dist/cjs/assets/Asset.d.ts +0 -15
  25. package/dist/cjs/assets/Asset.js +0 -29
  26. package/dist/cjs/constants/Constant.d.ts +0 -15
  27. package/dist/cjs/constants/Constant.js +0 -35
  28. package/dist/cjs/index.d.ts +0 -3
  29. package/dist/cjs/index.js +0 -10
  30. package/dist/cjs/inputs/Input.d.ts +0 -25
  31. package/dist/cjs/inputs/Input.js +0 -106
  32. package/dist/cjs/inputs/InputSelectionHandler.d.ts +0 -3
  33. package/dist/cjs/inputs/InputSelectionHandler.js +0 -36
  34. package/dist/cjs/inputs/Select.d.ts +0 -28
  35. package/dist/cjs/inputs/Select.js +0 -403
  36. package/dist/esm/DatetimeFormatter.d.ts +0 -3
  37. package/dist/esm/DatetimeFormatter.js +0 -385
  38. package/dist/esm/Information.d.ts +0 -10
  39. package/dist/esm/Information.js +0 -37
  40. package/dist/esm/MenuBar.d.ts +0 -24
  41. package/dist/esm/MenuBar.js +0 -532
  42. package/dist/esm/Modal.d.ts +0 -33
  43. package/dist/esm/Modal.js +0 -27
  44. package/dist/esm/assets/Asset.d.ts +0 -15
  45. package/dist/esm/assets/Asset.js +0 -26
  46. package/dist/esm/constants/Constant.d.ts +0 -15
  47. package/dist/esm/constants/Constant.js +0 -32
  48. package/dist/esm/index.d.ts +0 -3
  49. package/dist/esm/index.js +0 -3
  50. package/dist/esm/inputs/Input.d.ts +0 -25
  51. package/dist/esm/inputs/Input.js +0 -104
  52. package/dist/esm/inputs/InputSelectionHandler.d.ts +0 -3
  53. package/dist/esm/inputs/InputSelectionHandler.js +0 -31
  54. package/dist/esm/inputs/Select.d.ts +0 -28
  55. package/dist/esm/inputs/Select.js +0 -399
  56. package/dist/scss/components/_modal.scss +0 -66
  57. package/dist/scss/elements/_button.scss +0 -107
  58. package/dist/scss/elements/_index.scss +0 -2
  59. package/dist/scss/elements/_popover.scss +0 -8
  60. package/dist/scss/foundation/_colors.scss +0 -60
  61. package/dist/scss/foundation/_mixins.scss +0 -41
  62. package/dist/scss/foundation/_normalize.scss +0 -204
  63. package/dist/scss/foundation/_settings.scss +0 -36
  64. package/dist/scss/foundation/_typography.scss +0 -95
  65. package/dist/scss/library/_information.scss +0 -68
  66. package/dist/scss/library/_input.scss +0 -37
  67. package/dist/scss/library/_menubar.scss +0 -225
  68. package/dist/scss/library/_select.scss +0 -258
  69. package/dist/scss/style.scss +0 -24
@@ -55,14 +55,13 @@ const TestMenuBar = () => {
55
55
  show: true,
56
56
  actions: [
57
57
  {
58
- class: 'button',
58
+ class: 'em-button',
59
59
  label: "Submit",
60
60
  action: "readytosubmit", // string optional
61
61
  icon: SVG_SUBMIT
62
62
  }
63
63
  ]
64
64
  },
65
- info: null
66
65
  },
67
66
  menubar: {
68
67
  config: {
@@ -71,11 +70,44 @@ const TestMenuBar = () => {
71
70
  showInfo: true,
72
71
  iconType: ['check', "back", 'standard']
73
72
  },
73
+
74
+ mainButton: {
75
+ show: true,
76
+ label: 'File a Request',
77
+ icon: SVG_ADD,
78
+ actions: [
79
+ {
80
+
81
+ label: "File Leave",
82
+ action: "leave", // string optional
83
+ icon: SVG_SUBMIT
84
+ },
85
+ {
86
+ label: "File Overtime",
87
+ action: "overtime", // string optional
88
+ icon: SVG_SUBMIT
89
+ },
90
+
91
+ {
92
+ label: "File Toil",
93
+ action: "toil", // string optional
94
+ icon: SVG_SUBMIT
95
+ },
96
+
97
+ {
98
+ label: "File Amendment",
99
+ action: "amendment", // string optional
100
+ icon: SVG_SUBMIT
101
+ }
102
+ ]
103
+ },
104
+
105
+
74
106
  button: {
75
107
  show: true,
76
108
  actions: [
77
109
  {
78
- class: 'button',
110
+ class: 'em-button',
79
111
  label: "Submit",
80
112
  action: "readytosubmit", // string optional
81
113
  icon: SVG_SUBMIT
@@ -86,7 +118,7 @@ const TestMenuBar = () => {
86
118
  show: true,
87
119
  actions: [
88
120
  {
89
- class: 'button',
121
+ class: 'em-button',
90
122
  label: "Submit",
91
123
  action: "footer-submit", // string optional
92
124
  icon: SVG_SUBMIT,
@@ -146,7 +178,7 @@ const TestMenuBar = () => {
146
178
  isFooter: true,
147
179
  actions: [
148
180
  {
149
- class: 'button disabled',
181
+ class: 'em-button disabled',
150
182
  show: true,
151
183
  label: "Submit",
152
184
  action: "submit", // string optional
@@ -170,7 +202,7 @@ const TestMenuBar = () => {
170
202
  info: null
171
203
  }
172
204
 
173
-
205
+
174
206
 
175
207
  })
176
208
 
@@ -211,31 +243,25 @@ const TestMenuBar = () => {
211
243
  break;
212
244
 
213
245
  case 'icon':
214
- switch (data) {
215
- case 'info':
216
- // menubar.info = '<p>In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before the final copy is</p>';
217
- const infoMenuBar = {
218
- infoDetails: {
219
- "companyPolicy": "<p><strong>Certifying Daily Time Records (DTR) </strong></p>\n<p>All Employees are expected to certify all DTRs covering a pay period as true, correct, accurate and final that will serve as basis to compute their pay.</p>\n<p><strong>Failure</strong> to certify DTRs shall result to an Auto-Certification at the end of the pay cutoff. Uncertified DTRs will be deemed true, correct, accurate and final, except for Absences incurred on the day of the cutoff itself, either on the 10th or 26th of the month.</p>\n<p>For these absences, either of the following will apply:</p>\n<p>1. The employee is given until the 12th or the 27th to amend the DTR and seek approval;</p>\n<p>2. The Timekeeping &amp; Benefits department will verify the details of the absence incurred and amend the DTR appropriately.</p>\n<p>The Company has two (2) pay cutoff periods:</p>\n<p>1. Payroll for the 15th -- 26th of the previous month to the 10th of the current month 2. Payroll for the 30th -- 11th to the 25th of the current month.</p>\n<p><strong>Clock In</strong></p>\n<p>When an employee clocks into work, the Company&rsquo;s online system shall provide the applicable status:</p>\n<p><strong> ON TIME</strong> - Clock In before the start of shift and/ or before the grace period (if any) ends</p>\n<p>TARDY - Clock In within the first four (4) hours after the shift has started</p>\n<p>ABSENT (1ST HALF and TARDY) - Clock In beyond the first four (4) hours after the shift has started will be tagged as Tardy. The first four (4) hours after the shift has started will be tagged as Absent - 1st Half.</p>\n<p><strong> Tardiness</strong></p>\n<p>1. Failure to come ON TIME six (6) times or accumulation of at least 60 minutes of TARDINESS (whichever comes first) within the 11th of the current month to the 10th of the following month, shall constitute an offense of TARDINESS.</p>\n<p>Employees are expected to time in upon arriving at their respective office. However, due to unforeseen circumstances preventing the employee to timely Clock In within the Company&rsquo;s online system, employees are allowed to amend their Clock In time, subject to the approval of their respective Department Head / Immediate Superior. Amendments to Clock In within the Company&rsquo;s online system can be done on or before the payroll cutoff.</p>\n<p>2. Employee reporting to work after the official start of the assigned work shift and, if any, after the grace period. Applicable only to Time-bounded Work Shifts.</p>\n<p>Tardiness computed in payroll is equivalent to length of time computed as the difference between the clock in time and the grace period. If no Grace Period allowed, it will be the difference between the clock in time and the start of the shift.</p>\n<p>Example:</p>\n<p>Start Time - 6:00 AM</p>\n<p>Grace Period - 6:10 AM (10 minutes from the start of the shift)</p>\n<p>Clock In - 6:15 AM</p>\n<p>Tardiness = 5 minutes (time in excess of the end of the Grace Period)</p>\n<p>Computed Tardiness will be the basis of payroll deductions.</p>\n<p><strong>Clock Out</strong></p>\n<p>When an employee clocks out of work, the Company&rsquo;s online system shall provide the applicable status:</p>\n<p><strong> SHIFT ENDED</strong> - Clock out on or beyond the end of shift will be tagged as Shift Ended</p>\n<p><strong>UNDERTIME</strong> - Clock out before the expected end of shift will tag the talent as Undertime</p>\n<p><strong>ABSENT (2ND HALF and Undertime)</strong> - Clock out within the first four (4) hours after the shift has started will be tagged as Undertime. The last four (4) hours before the shift ends will be tagged as Absent - 2nd Half.</p>\n<p><strong> Undertime </strong></p>\n<p>An employee leaving work earlier than the required end of a Work Shift. Undertime computed in payroll is equivalent to length of time computed as the difference between the end of shift and the clock out time.</p>\n<p>Example:</p>\n<p>End Time - 3:00 PM</p>\n<p>Clock In - 2:55 PM</p>\n<p>Undertime = 5 minutes (time out short of the end of the Grace Period)</p>\n<p>Computed Undertime will be the basis of payroll deductions.</p>",
220
- "systemPolicy": "<p><strong>Certify </strong></p>\n<p>1. Certification of DTR can only be done<strong> within the cutoff. </strong></p>\n<p>2. You cannot certify an <strong>incomplete DTR, current day</strong> and <strong>an ongoing shift. </strong></p>\n<p>3. Failure to certify DTRs shall result to an Auto-Certification at the end of the pay cutoff.</p>\n<p><strong>What you can do:</strong></p>\n<p>1. If with time logged (whether complete or incomplete), allows <strong>DTR amendment</strong> or <strong>Certify</strong>.</p>\n<p>2. If registered Absent, allows DTR amendment, File a Leave or Certify.</p>\n<p><strong>Amendment can be done in the following ways: </strong></p>\n<p>1. Time Recorder - Previous Shift</p>\n<p>2. Requests - File Request / DTR amendment</p>\n<p>3. Express Button - Amendment</p>\n<p><strong>Filing of leave can be done in the following ways:</strong></p>\n<p>1. Time Recorder - Previous Shift</p>\n<p>2. Requests - File Request / File Leave</p>\n<p>3. Express Button - File Leave</p>\n<p><strong>Amend DTR</strong></p>\n<p>1. You cannot amend an<strong> Ongoing / Current Shift.</strong> Filing of DTR amendment is allowed the next day after you have Clocked In.</p>\n<p>2. Amendments are disallowed by the end of the cutoff (10th or 25th).</p>\n<p>3. You are expected to amend your DTR within <strong>twenty-four (24) hours upon return to work</strong> in the succeeding Work Shift.</p>\n<p>4. You can only adjust your CLOCK IN DATE one (1) day prior your Chosen Work Date.</p>\n<p><strong>E.g</strong></p>\n<p>Work Date: November 08, 2019 - 12:00am to 09:00am</p>\n<p>Clock in Date: November 07, 2019 Clock In Time:11:00pm</p>\n<p>Clock out Date: November 08, 2019 Clock out Time:09:00am</p>\n<p>5. You can only adjust your CLOCK OUT DATE one (1) day after your Chosen Work Date.</p>\n<p><strong>E.g</strong></p>\n<p>Work Date: November 08, 2019 - 8:00am to 05:00pm</p>\n<p>Clock in Date: November 08, 2019 Clock In Time:08:00am</p>\n<p>Clock out Date: November 09, 2019 Clock out Time:02:00am</p>\n<p>6. DTR amendment request can be canceled / edited provided the request is still pending.</p>\n<p>7. DTR amendment requests that have already passed or requests that have already been denied cannot be canceled.</p>\n<p>8. DTRs that have been previously certified <strong>CANNOT</strong> be amended.</p>\n<p><strong> File Leave </strong></p>\n<p>1. Filing of Sick / Emergency Leave is allowed the next day after you have Clocked In.</p>\n<p>2. You cannot file a backdated Vacation Leave.</p>\n<p>3. You cannot file a future - dated Sick / Emergency Leave.</p>\n<p>4. The employee is expected to file a Sick or Emergency Leave within the Company online system within <strong>twenty-four (24) hours upon return to work</strong> in the succeeding Work Shift.</p>\n<p>5. Leave request can be edited provided the request is still pending.</p>\n<p>6. Approved leave request can be canceled before the effectivity date.</p>\n<p>7. Reporting to work on a day with a pre-approved SIL.</p>\n<p>- Will cancel the leave</p>\n<p>- Credit back the approved SIL to the Leave balance</p>\n<p>- Record the DTR for the day</p>",
221
- "instruction": "<p><strong>What you can do:</strong></p>\n<p>1. If with time logged (whether complete or incomplete), allows DTR amendment or Certify.</p>\n<p>2. If without time logged, allows DTR Amemdment.</p>\n<p>3. If registered Absent, allows DTR amendment, File a Leave or Certify.</p>\n<p><strong>Amendment can be done in the following ways:</strong></p>\n<p>1. Time Recorder - Previous Shift</p>\n<p>2. Requests - File Request / DTR amendment</p>\n<p>3. Express Button - Amendment</p>\n<p><strong>Filing of leave can be done in the following ways:</strong></p>\n<p>1. Time Recorder - Previous Shift</p>\n<p>2. Requests - File Request / File Leave</p>\n<p>3. Express Button - File Leave</p>"
222
- },
223
- listRow: [
224
- "COMPANY POLICY",
225
- "SYSTEM POLICY",
226
- "INSTRUCTION"
227
- ],
228
- "loaded": false,
229
- "cardIconDesc": false
230
- }
231
-
232
- menubar.info = infoMenuBar
233
- break;
234
- }
235
-
236
-
237
-
238
-
246
+ // menubar.info = '<p>In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before the final copy is</p>';
247
+ const infoMenuBar = {
248
+ infoDetails: {
249
+ "companyPolicy": "<p><strong>Certifying Daily Time Records (DTR) </strong></p>\n<p>All Employees are expected to certify all DTRs covering a pay period as true, correct, accurate and final that will serve as basis to compute their pay.</p>\n<p><strong>Failure</strong> to certify DTRs shall result to an Auto-Certification at the end of the pay cutoff. Uncertified DTRs will be deemed true, correct, accurate and final, except for Absences incurred on the day of the cutoff itself, either on the 10th or 26th of the month.</p>\n<p>For these absences, either of the following will apply:</p>\n<p>1. The employee is given until the 12th or the 27th to amend the DTR and seek approval;</p>\n<p>2. The Timekeeping &amp; Benefits department will verify the details of the absence incurred and amend the DTR appropriately.</p>\n<p>The Company has two (2) pay cutoff periods:</p>\n<p>1. Payroll for the 15th -- 26th of the previous month to the 10th of the current month 2. Payroll for the 30th -- 11th to the 25th of the current month.</p>\n<p><strong>Clock In</strong></p>\n<p>When an employee clocks into work, the Company&rsquo;s online system shall provide the applicable status:</p>\n<p><strong> ON TIME</strong> - Clock In before the start of shift and/ or before the grace period (if any) ends</p>\n<p>TARDY - Clock In within the first four (4) hours after the shift has started</p>\n<p>ABSENT (1ST HALF and TARDY) - Clock In beyond the first four (4) hours after the shift has started will be tagged as Tardy. The first four (4) hours after the shift has started will be tagged as Absent - 1st Half.</p>\n<p><strong> Tardiness</strong></p>\n<p>1. Failure to come ON TIME six (6) times or accumulation of at least 60 minutes of TARDINESS (whichever comes first) within the 11th of the current month to the 10th of the following month, shall constitute an offense of TARDINESS.</p>\n<p>Employees are expected to time in upon arriving at their respective office. However, due to unforeseen circumstances preventing the employee to timely Clock In within the Company&rsquo;s online system, employees are allowed to amend their Clock In time, subject to the approval of their respective Department Head / Immediate Superior. Amendments to Clock In within the Company&rsquo;s online system can be done on or before the payroll cutoff.</p>\n<p>2. Employee reporting to work after the official start of the assigned work shift and, if any, after the grace period. Applicable only to Time-bounded Work Shifts.</p>\n<p>Tardiness computed in payroll is equivalent to length of time computed as the difference between the clock in time and the grace period. If no Grace Period allowed, it will be the difference between the clock in time and the start of the shift.</p>\n<p>Example:</p>\n<p>Start Time - 6:00 AM</p>\n<p>Grace Period - 6:10 AM (10 minutes from the start of the shift)</p>\n<p>Clock In - 6:15 AM</p>\n<p>Tardiness = 5 minutes (time in excess of the end of the Grace Period)</p>\n<p>Computed Tardiness will be the basis of payroll deductions.</p>\n<p><strong>Clock Out</strong></p>\n<p>When an employee clocks out of work, the Company&rsquo;s online system shall provide the applicable status:</p>\n<p><strong> SHIFT ENDED</strong> - Clock out on or beyond the end of shift will be tagged as Shift Ended</p>\n<p><strong>UNDERTIME</strong> - Clock out before the expected end of shift will tag the talent as Undertime</p>\n<p><strong>ABSENT (2ND HALF and Undertime)</strong> - Clock out within the first four (4) hours after the shift has started will be tagged as Undertime. The last four (4) hours before the shift ends will be tagged as Absent - 2nd Half.</p>\n<p><strong> Undertime </strong></p>\n<p>An employee leaving work earlier than the required end of a Work Shift. Undertime computed in payroll is equivalent to length of time computed as the difference between the end of shift and the clock out time.</p>\n<p>Example:</p>\n<p>End Time - 3:00 PM</p>\n<p>Clock In - 2:55 PM</p>\n<p>Undertime = 5 minutes (time out short of the end of the Grace Period)</p>\n<p>Computed Undertime will be the basis of payroll deductions.</p>",
250
+ "systemPolicy": "<p><strong>Certify </strong></p>\n<p>1. Certification of DTR can only be done<strong> within the cutoff. </strong></p>\n<p>2. You cannot certify an <strong>incomplete DTR, current day</strong> and <strong>an ongoing shift. </strong></p>\n<p>3. Failure to certify DTRs shall result to an Auto-Certification at the end of the pay cutoff.</p>\n<p><strong>What you can do:</strong></p>\n<p>1. If with time logged (whether complete or incomplete), allows <strong>DTR amendment</strong> or <strong>Certify</strong>.</p>\n<p>2. If registered Absent, allows DTR amendment, File a Leave or Certify.</p>\n<p><strong>Amendment can be done in the following ways: </strong></p>\n<p>1. Time Recorder - Previous Shift</p>\n<p>2. Requests - File Request / DTR amendment</p>\n<p>3. Express Button - Amendment</p>\n<p><strong>Filing of leave can be done in the following ways:</strong></p>\n<p>1. Time Recorder - Previous Shift</p>\n<p>2. Requests - File Request / File Leave</p>\n<p>3. Express Button - File Leave</p>\n<p><strong>Amend DTR</strong></p>\n<p>1. You cannot amend an<strong> Ongoing / Current Shift.</strong> Filing of DTR amendment is allowed the next day after you have Clocked In.</p>\n<p>2. Amendments are disallowed by the end of the cutoff (10th or 25th).</p>\n<p>3. You are expected to amend your DTR within <strong>twenty-four (24) hours upon return to work</strong> in the succeeding Work Shift.</p>\n<p>4. You can only adjust your CLOCK IN DATE one (1) day prior your Chosen Work Date.</p>\n<p><strong>E.g</strong></p>\n<p>Work Date: November 08, 2019 - 12:00am to 09:00am</p>\n<p>Clock in Date: November 07, 2019 Clock In Time:11:00pm</p>\n<p>Clock out Date: November 08, 2019 Clock out Time:09:00am</p>\n<p>5. You can only adjust your CLOCK OUT DATE one (1) day after your Chosen Work Date.</p>\n<p><strong>E.g</strong></p>\n<p>Work Date: November 08, 2019 - 8:00am to 05:00pm</p>\n<p>Clock in Date: November 08, 2019 Clock In Time:08:00am</p>\n<p>Clock out Date: November 09, 2019 Clock out Time:02:00am</p>\n<p>6. DTR amendment request can be canceled / edited provided the request is still pending.</p>\n<p>7. DTR amendment requests that have already passed or requests that have already been denied cannot be canceled.</p>\n<p>8. DTRs that have been previously certified <strong>CANNOT</strong> be amended.</p>\n<p><strong> File Leave </strong></p>\n<p>1. Filing of Sick / Emergency Leave is allowed the next day after you have Clocked In.</p>\n<p>2. You cannot file a backdated Vacation Leave.</p>\n<p>3. You cannot file a future - dated Sick / Emergency Leave.</p>\n<p>4. The employee is expected to file a Sick or Emergency Leave within the Company online system within <strong>twenty-four (24) hours upon return to work</strong> in the succeeding Work Shift.</p>\n<p>5. Leave request can be edited provided the request is still pending.</p>\n<p>6. Approved leave request can be canceled before the effectivity date.</p>\n<p>7. Reporting to work on a day with a pre-approved SIL.</p>\n<p>- Will cancel the leave</p>\n<p>- Credit back the approved SIL to the Leave balance</p>\n<p>- Record the DTR for the day</p>",
251
+ "instruction": "<p><strong>What you can do:</strong></p>\n<p>1. If with time logged (whether complete or incomplete), allows DTR amendment or Certify.</p>\n<p>2. If without time logged, allows DTR Amemdment.</p>\n<p>3. If registered Absent, allows DTR amendment, File a Leave or Certify.</p>\n<p><strong>Amendment can be done in the following ways:</strong></p>\n<p>1. Time Recorder - Previous Shift</p>\n<p>2. Requests - File Request / DTR amendment</p>\n<p>3. Express Button - Amendment</p>\n<p><strong>Filing of leave can be done in the following ways:</strong></p>\n<p>1. Time Recorder - Previous Shift</p>\n<p>2. Requests - File Request / File Leave</p>\n<p>3. Express Button - File Leave</p>"
252
+ },
253
+ listRow: [
254
+ "COMPANY POLICY",
255
+ "SYSTEM POLICY",
256
+ "INSTRUCTION"
257
+ ],
258
+ "loaded": false,
259
+ "cardIconDesc": false
260
+ }
261
+
262
+ menubar.info = infoMenuBar
263
+
264
+
239
265
  break;
240
266
 
241
267
  default: break;
@@ -243,14 +269,14 @@ const TestMenuBar = () => {
243
269
  statedata.menubar = menubar;
244
270
  statedata.modal = modal;
245
271
 
246
- setStateData({ ...statedata });
272
+ setStateData({...statedata});
247
273
  }
248
274
 
249
275
  const displayModal = (event) => {
250
276
  event.preventDefault();
251
277
  modal.show = true;
252
278
  statedata.modal = modal
253
- setStateData({ ...statedata });
279
+ setStateData({...statedata});
254
280
  }
255
281
 
256
282
  const getModalActions = (action, data) => {
@@ -258,24 +284,13 @@ const TestMenuBar = () => {
258
284
  console.log(action, data, 'action modal');
259
285
  switch (action) {
260
286
  case 'icon':
261
-
262
- switch (data) {
263
- case 'close':
264
- modal.show = false;
265
- break;
266
-
267
- case 'info':
268
- modal.info = 'Hello menubar info';
269
- break;
270
- }
271
-
272
-
287
+ modal.show = false;
273
288
  break;
274
289
  default: break;
275
290
  }
276
291
 
277
292
  statedata.modal = modal
278
- setStateData({ ...statedata });
293
+ setStateData({...statedata});
279
294
  }
280
295
 
281
296
  const View = () => {
@@ -284,6 +299,7 @@ const TestMenuBar = () => {
284
299
  <MenuBar
285
300
  config={menubar.config}
286
301
  button={menubar.button}
302
+ mainButton={menubar.mainButton }
287
303
  pagination={menubar.pagination}
288
304
  pivot={menubar.pivot}
289
305
  dropdown={menubar.dropdown}
@@ -327,13 +343,12 @@ const TestMenuBar = () => {
327
343
  },
328
344
  ]
329
345
  }}
330
- info={menubar.info}
331
346
  getActions={(action, data) => getActions(action, data)}
332
347
  >
333
348
  <h2>CHILDREN AGAIN</h2>
334
349
  </MenuBar>
335
350
  <div>
336
- <button className="button" onClick={event => displayModal(event)}>
351
+ <button className="em-button" onClick={event => displayModal(event)}>
337
352
  <span>
338
353
  DISPLAY MODAL
339
354
  </span>
@@ -1,4 +1,4 @@
1
- .button{
1
+ .em-button{
2
2
  display: inline-flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -11,7 +11,7 @@
11
11
  padding: 15px 30px;
12
12
  height: 50px;
13
13
  cursor: pointer;
14
- transition: all .5s cubic-bezier(.19,1,.22,1);
14
+ transition: $transition;
15
15
  border-radius: 10px;
16
16
  text-transform: none;
17
17
  text-decoration: none;
@@ -19,11 +19,11 @@
19
19
 
20
20
  span{
21
21
  color: $white;
22
- transition: all .5s cubic-bezier(.19,1,.22,1);
22
+ transition: $transition;
23
23
  }
24
24
 
25
25
  svg{
26
- transition: all .5s cubic-bezier(.19,1,.22,1);
26
+ transition: $transition;
27
27
  margin-right: 10px;
28
28
 
29
29
  path{
@@ -86,7 +86,7 @@
86
86
  margin-right: 10px;
87
87
 
88
88
  path, rect, circle {
89
- transition: all .5s cubic-bezier(.19,1,.22,1);
89
+ transition: $transition;
90
90
  fill: $green;;
91
91
  }
92
92
  }
@@ -4,6 +4,10 @@
4
4
  width: 100%;
5
5
  min-height: 40px;
6
6
  padding: 20px 15px;
7
+
8
+ .em-dropdown {
9
+ position: relative;
10
+ }
7
11
 
8
12
  .em-belt-left {
9
13
  display: flex;
@@ -43,12 +47,12 @@
43
47
  display: flex;
44
48
  align-items: center;
45
49
  justify-content: center;
46
- transition: all .5s cubic-bezier(.19,1,.22,1);
50
+ transition: $transition;
47
51
  box-shadow: none;
48
52
 
49
53
  &:hover {
50
54
  svg {
51
- transition: all .5s cubic-bezier(.19,1,.22,1);
55
+ transition: $transition;
52
56
  transform: translateX(-2px);
53
57
  }
54
58
  }
@@ -89,6 +93,36 @@
89
93
  max-height: 40px;
90
94
  padding: 10px 20px;
91
95
  }
96
+
97
+ .em-button{
98
+ &:not(:first-child){
99
+ background-color: transparent;
100
+ color: $green-dark;
101
+ box-shadow: inset 0 0 0 1px $green;
102
+
103
+ svg{
104
+ margin-right: 10px;
105
+
106
+ path, rect, circle {
107
+ transition: $transition;
108
+ fill: $green;;
109
+ }
110
+ }
111
+
112
+ span{
113
+ color: $gray-light4;
114
+ }
115
+
116
+ &:hover{
117
+ background-color: $blue-light1;
118
+ box-shadow: none;
119
+
120
+ span{
121
+ color: $gray;
122
+ }
123
+ }
124
+ }
125
+ }
92
126
  }
93
127
 
94
128
  .em-belt-right {
@@ -101,10 +135,6 @@
101
135
  margin-left: 10px;
102
136
  }
103
137
 
104
- .em-dropdown {
105
- position: relative;
106
- }
107
-
108
138
  .pagination-summary, .belt-dropdown {
109
139
  display: flex;
110
140
  align-items: center;
@@ -117,7 +147,7 @@
117
147
  color: $gray-dark;
118
148
  text-decoration: none;
119
149
  font-size: .875rem;
120
- transition: all .5s cubic-bezier(.19,1,.22,1);
150
+ transition: $transition;
121
151
 
122
152
  &:hover {
123
153
  box-shadow: inset 0 0 0 1px $blue-light4;
@@ -139,7 +169,7 @@
139
169
  height: 20px;
140
170
  width: 20px;
141
171
  margin-left: 15px;
142
- transition: all .5s cubic-bezier(.19,1,.22,1);
172
+ transition: $transition;
143
173
  }
144
174
 
145
175
  .icon-add {
@@ -174,13 +204,13 @@
174
204
  min-width: 40px;
175
205
  box-shadow: inset 0 0 0 1px $blue-light2;
176
206
  border-radius: 10px;
177
- transition: all .5s cubic-bezier(.19,1,.22,1);
207
+ transition: $transition;
178
208
 
179
209
  .belt-icon {
180
210
  height: 20px;
181
211
  width: 20px;
182
212
  background: 50% no-repeat;
183
- transition: all .5s cubic-bezier(.19,1,.22,1);
213
+ transition: $transition;
184
214
  }
185
215
 
186
216
  &:hover {
@@ -213,7 +243,7 @@
213
243
  padding: 10px;
214
244
  box-shadow: none;
215
245
  border-radius: 10px;
216
- transition: all .5s cubic-bezier(.19,1,.22,1);
246
+ transition: $transition;
217
247
 
218
248
  &:hover {
219
249
  background-color: $blue-light1;
@@ -75,7 +75,7 @@
75
75
  font-size: 0.875rem;
76
76
  color: $gray-dark;
77
77
  padding: 20px;
78
- transition: all .5s cubic-bezier(.19,1,.22,1);
78
+ transition: $transition;
79
79
  cursor: pointer;
80
80
 
81
81
  &:hover{
@@ -128,7 +128,7 @@
128
128
  align-items: center;
129
129
  justify-content: center;
130
130
  cursor: pointer;
131
- transition: all .5s cubic-bezier(.19,1,.22,1);
131
+ transition: $transition;
132
132
  }
133
133
  }
134
134
 
@@ -148,7 +148,8 @@
148
148
  text-align: left;
149
149
  border: none;
150
150
  box-shadow: none;
151
- transition: all .5s cubic-bezier(.19,1,.22,1);
151
+ transition: $transition;
152
+ margin-right: 0;
152
153
  cursor: pointer;
153
154
  }
154
155
  }
@@ -169,14 +170,14 @@
169
170
  background-color: transparent;
170
171
  border: none;
171
172
  cursor: pointer;
172
- transition: all .5s cubic-bezier(.19,1,.22,1);
173
+ transition: $transition;
173
174
 
174
175
  svg path {
175
176
  fill: $white;
176
177
  }
177
178
 
178
179
  img {
179
- transition: all .5s cubic-bezier(.19,1,.22,1);
180
+ transition: $transition;
180
181
 
181
182
  &:hover {
182
183
  background-color: transparentize($blue-dark1, 0.5);
@@ -1,3 +0,0 @@
1
- export declare const getUTCFullTime: (d: any) => string;
2
- declare const datetimeFormatter: (timestamp: string | Date | any, format?: string, todayServer?: any, type?: any, getServerTime?: boolean, dateOnly?: boolean) => any;
3
- export default datetimeFormatter;