@hipay/hipay-material-ui 1.0.0-beta.18 → 1.0.0-beta.2
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/HiCheckbox/HiCheckbox.js +1 -4
- package/HiChip/HiChip.js +4 -4
- package/HiChip/HiChipSwitch.js +4 -11
- package/HiColoredLabel/HiColoredLabel.js +3 -9
- package/HiDatePicker/HiDatePicker.js +30 -34
- package/HiDatePicker/HiDateRangePicker.js +33 -76
- package/HiDatePicker/HiDateRangeSelector.js +13 -33
- package/HiDatePicker/ListPicker.js +7 -32
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +1 -5
- package/HiDatePicker/Overlays/Overlay.js +4 -22
- package/HiDatePicker/Overlays/YearPickerOverlay.js +1 -2
- package/HiDatePicker/stylesheet.js +0 -7
- package/HiForm/HiFormControl.js +31 -39
- package/HiForm/HiInput.js +18 -39
- package/HiForm/HiSearchField.js +2 -2
- package/HiForm/index.js +0 -18
- package/HiPins/HiPins.js +1 -0
- package/HiSelect/HiSelect.js +353 -400
- package/HiSelect/HiSelectField.js +6 -8
- package/HiSelect/HiSuggestSelect.js +47 -27
- package/HiSelect/HiSuggestSelectField.js +80 -88
- package/HiSelect/SelectInput.js +23 -34
- package/HiSelectableList/HiSelectableList.js +3 -9
- package/HiSelectableList/HiSelectableListItem.js +55 -96
- package/HiSwitch/HiSwitchState.js +1 -1
- package/HiSwitch/index.js +0 -6
- package/HiTable/BodyCellBuilder.js +97 -97
- package/HiTable/BodyCells/CellCountry.js +36 -11
- package/HiTable/BodyCells/CellIcon.js +20 -29
- package/HiTable/BodyCells/CellImage.js +22 -43
- package/HiTable/BodyCells/CellLayout.js +19 -25
- package/HiTable/BodyCells/CellNumeric.js +2 -7
- package/HiTable/BodyCells/CellSentinel.js +17 -26
- package/HiTable/BodyCells/CellStatus.js +2 -6
- package/HiTable/BodyCells/CellText.js +1 -2
- package/HiTable/BodyCells/CellThirdPartySecurity.js +22 -45
- package/HiTable/BodyRow.js +57 -78
- package/HiTable/ColumnFilter.js +15 -28
- package/HiTable/HeaderCell.js +16 -20
- package/HiTable/HiTable.js +11 -61
- package/HiTable/HiTableBody.js +14 -46
- package/HiTable/HiTableContextMenu.js +3 -7
- package/HiTable/HiTableFooterScroll.js +1 -1
- package/HiTable/HiTableHead.js +7 -24
- package/HiTable/OrderColumns.js +2 -6
- package/HiTopBar/HiTopBar.js +117 -37
- package/es/HiCheckbox/HiCheckbox.js +1 -4
- package/es/HiChip/HiChip.js +4 -4
- package/es/HiChip/HiChipSwitch.js +4 -11
- package/es/HiColoredLabel/HiColoredLabel.js +4 -9
- package/es/HiDatePicker/HiDatePicker.js +25 -30
- package/es/HiDatePicker/HiDateRangePicker.js +32 -72
- package/es/HiDatePicker/HiDateRangeSelector.js +14 -34
- package/es/HiDatePicker/ListPicker.js +20 -39
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +1 -5
- package/es/HiDatePicker/Overlays/Overlay.js +4 -18
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +1 -2
- package/es/HiDatePicker/stylesheet.js +0 -7
- package/es/HiForm/HiFormControl.js +18 -32
- package/es/HiForm/HiInput.js +17 -34
- package/es/HiForm/HiSearchField.js +2 -2
- package/es/HiForm/index.js +1 -3
- package/es/HiPins/HiPins.js +1 -0
- package/es/HiSelect/HiSelect.js +324 -375
- package/es/HiSelect/HiSelectField.js +7 -9
- package/es/HiSelect/HiSuggestSelect.js +39 -26
- package/es/HiSelect/HiSuggestSelectField.js +69 -77
- package/es/HiSelect/SelectInput.js +23 -44
- package/es/HiSelectableList/HiSelectableList.js +4 -10
- package/es/HiSelectableList/HiSelectableListItem.js +55 -91
- package/es/HiSwitch/HiSwitchState.js +1 -1
- package/es/HiSwitch/index.js +0 -1
- package/es/HiTable/BodyCellBuilder.js +98 -96
- package/es/HiTable/BodyCells/CellCountry.js +35 -10
- package/es/HiTable/BodyCells/CellIcon.js +9 -18
- package/es/HiTable/BodyCells/CellImage.js +23 -42
- package/es/HiTable/BodyCells/CellLayout.js +21 -27
- package/es/HiTable/BodyCells/CellNumeric.js +2 -6
- package/es/HiTable/BodyCells/CellSentinel.js +9 -20
- package/es/HiTable/BodyCells/CellStatus.js +2 -6
- package/es/HiTable/BodyCells/CellText.js +1 -2
- package/es/HiTable/BodyCells/CellThirdPartySecurity.js +18 -42
- package/es/HiTable/BodyRow.js +56 -79
- package/es/HiTable/ColumnFilter.js +9 -15
- package/es/HiTable/HeaderCell.js +16 -20
- package/es/HiTable/HiTable.js +12 -59
- package/es/HiTable/HiTableBody.js +11 -42
- package/es/HiTable/HiTableContextMenu.js +3 -7
- package/es/HiTable/HiTableFooterScroll.js +1 -1
- package/es/HiTable/HiTableHead.js +7 -19
- package/es/HiTable/OrderColumns.js +2 -6
- package/es/HiTopBar/HiTopBar.js +108 -40
- package/es/styles/createHiMuiTheme.js +0 -11
- package/es/utils/hiHelpers.js +5 -6
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/package.json +44 -45
- package/styles/createHiMuiTheme.js +0 -11
- package/umd/hipay-material-ui.development.js +43603 -87235
- package/umd/hipay-material-ui.production.min.js +5 -5
- package/utils/hiHelpers.js +4 -6
- package/HI-CHANGELOG.md +0 -58
- package/HiAlertModal/HiAlertModal.js +0 -247
- package/HiAlertModal/index.js +0 -16
- package/HiBreadcrumb/HiBreadcrumb.js +0 -149
- package/HiBreadcrumb/HiStep.js +0 -159
- package/HiBreadcrumb/HiStepConnector.js +0 -207
- package/HiBreadcrumb/HiStepContent.js +0 -122
- package/HiBreadcrumb/HiStepIcon.js +0 -191
- package/HiBreadcrumb/HiStepLabel.js +0 -248
- package/HiBreadcrumb/HiStepper.js +0 -106
- package/HiBreadcrumb/index.js +0 -16
- package/HiDotsStepper/HiDot.js +0 -151
- package/HiDotsStepper/HiDotsStepper.js +0 -146
- package/HiDotsStepper/index.js +0 -16
- package/HiExpansionPanel/HiExpansionPanel.js +0 -231
- package/HiExpansionPanel/index.js +0 -16
- package/HiForm/HiAddressField.js +0 -204
- package/HiForm/HiSlider.js +0 -399
- package/HiPdfReader/HiPdfReader.js +0 -282
- package/HiPdfReader/index.js +0 -16
- package/HiTable/HiTableFooter.js +0 -131
- package/es/HiAlertModal/HiAlertModal.js +0 -189
- package/es/HiAlertModal/index.js +0 -1
- package/es/HiBreadcrumb/HiBreadcrumb.js +0 -81
- package/es/HiBreadcrumb/HiStep.js +0 -94
- package/es/HiBreadcrumb/HiStepConnector.js +0 -143
- package/es/HiBreadcrumb/HiStepContent.js +0 -63
- package/es/HiBreadcrumb/HiStepIcon.js +0 -149
- package/es/HiBreadcrumb/HiStepLabel.js +0 -197
- package/es/HiBreadcrumb/HiStepper.js +0 -46
- package/es/HiBreadcrumb/index.js +0 -1
- package/es/HiDotsStepper/HiDot.js +0 -92
- package/es/HiDotsStepper/HiDotsStepper.js +0 -83
- package/es/HiDotsStepper/index.js +0 -1
- package/es/HiExpansionPanel/HiExpansionPanel.js +0 -170
- package/es/HiExpansionPanel/index.js +0 -1
- package/es/HiForm/HiAddressField.js +0 -142
- package/es/HiForm/HiSlider.js +0 -309
- package/es/HiPdfReader/HiPdfReader.js +0 -198
- package/es/HiPdfReader/index.js +0 -1
- package/es/HiTable/HiTableFooter.js +0 -74
- package/hmu/images/countries/ad.svg +0 -151
- package/hmu/images/countries/ae.svg +0 -6
- package/hmu/images/countries/af.svg +0 -83
- package/hmu/images/countries/ag.svg +0 -15
- package/hmu/images/countries/ai.svg +0 -767
- package/hmu/images/countries/al.svg +0 -5
- package/hmu/images/countries/am.svg +0 -5
- package/hmu/images/countries/ao.svg +0 -13
- package/hmu/images/countries/aq.svg +0 -6
- package/hmu/images/countries/ar.svg +0 -32
- package/hmu/images/countries/as.svg +0 -33
- package/hmu/images/countries/at.svg +0 -6
- package/hmu/images/countries/au.svg +0 -9
- package/hmu/images/countries/aw.svg +0 -186
- package/hmu/images/countries/ax.svg +0 -18
- package/hmu/images/countries/az.svg +0 -8
- package/hmu/images/countries/ba.svg +0 -12
- package/hmu/images/countries/bb.svg +0 -6
- package/hmu/images/countries/bd.svg +0 -4
- package/hmu/images/countries/be.svg +0 -7
- package/hmu/images/countries/bf.svg +0 -7
- package/hmu/images/countries/bg.svg +0 -7
- package/hmu/images/countries/bh.svg +0 -11
- package/hmu/images/countries/bi.svg +0 -15
- package/hmu/images/countries/bj.svg +0 -14
- package/hmu/images/countries/bl.svg +0 -7
- package/hmu/images/countries/bm.svg +0 -99
- package/hmu/images/countries/bn.svg +0 -36
- package/hmu/images/countries/bo.svg +0 -686
- package/hmu/images/countries/bq.svg +0 -5
- package/hmu/images/countries/br.svg +0 -45
- package/hmu/images/countries/bs.svg +0 -13
- package/hmu/images/countries/bt.svg +0 -89
- package/hmu/images/countries/bv.svg +0 -13
- package/hmu/images/countries/bw.svg +0 -7
- package/hmu/images/countries/by.svg +0 -61
- package/hmu/images/countries/bz.svg +0 -146
- package/hmu/images/countries/ca.svg +0 -4
- package/hmu/images/countries/cc.svg +0 -19
- package/hmu/images/countries/cd.svg +0 -5
- package/hmu/images/countries/cf.svg +0 -15
- package/hmu/images/countries/cg.svg +0 -12
- package/hmu/images/countries/ch.svg +0 -9
- package/hmu/images/countries/ci.svg +0 -7
- package/hmu/images/countries/ck.svg +0 -9
- package/hmu/images/countries/cl.svg +0 -13
- package/hmu/images/countries/cm.svg +0 -15
- package/hmu/images/countries/cn.svg +0 -11
- package/hmu/images/countries/co.svg +0 -7
- package/hmu/images/countries/cr.svg +0 -7
- package/hmu/images/countries/cu.svg +0 -13
- package/hmu/images/countries/cv.svg +0 -13
- package/hmu/images/countries/cw.svg +0 -14
- package/hmu/images/countries/cx.svg +0 -15
- package/hmu/images/countries/cy.svg +0 -6
- package/hmu/images/countries/cz.svg +0 -12
- package/hmu/images/countries/de.svg +0 -5
- package/hmu/images/countries/dj.svg +0 -13
- package/hmu/images/countries/dk.svg +0 -5
- package/hmu/images/countries/dm.svg +0 -152
- package/hmu/images/countries/do.svg +0 -6745
- package/hmu/images/countries/dz.svg +0 -5
- package/hmu/images/countries/ec.svg +0 -141
- package/hmu/images/countries/ee.svg +0 -7
- package/hmu/images/countries/eg.svg +0 -38
- package/hmu/images/countries/eh.svg +0 -15
- package/hmu/images/countries/er.svg +0 -8
- package/hmu/images/countries/es-ct.svg +0 -4
- package/hmu/images/countries/es.svg +0 -581
- package/hmu/images/countries/et.svg +0 -14
- package/hmu/images/countries/eu.svg +0 -28
- package/hmu/images/countries/fi.svg +0 -5
- package/hmu/images/countries/fj.svg +0 -124
- package/hmu/images/countries/fk.svg +0 -90
- package/hmu/images/countries/fm.svg +0 -11
- package/hmu/images/countries/fo.svg +0 -12
- package/hmu/images/countries/fr.svg +0 -7
- package/hmu/images/countries/ga.svg +0 -7
- package/hmu/images/countries/gb-eng.svg +0 -5
- package/hmu/images/countries/gb-nir.svg +0 -137
- package/hmu/images/countries/gb-sct.svg +0 -4
- package/hmu/images/countries/gb-wls.svg +0 -9
- package/hmu/images/countries/gb.svg +0 -15
- package/hmu/images/countries/gd.svg +0 -27
- package/hmu/images/countries/ge.svg +0 -6
- package/hmu/images/countries/gf.svg +0 -5
- package/hmu/images/countries/gg.svg +0 -9
- package/hmu/images/countries/gh.svg +0 -6
- package/hmu/images/countries/gi.svg +0 -33
- package/hmu/images/countries/gl.svg +0 -4
- package/hmu/images/countries/gm.svg +0 -14
- package/hmu/images/countries/gn.svg +0 -7
- package/hmu/images/countries/gp.svg +0 -7
- package/hmu/images/countries/gq.svg +0 -23
- package/hmu/images/countries/gr.svg +0 -22
- package/hmu/images/countries/gs.svg +0 -205
- package/hmu/images/countries/gt.svg +0 -204
- package/hmu/images/countries/gu.svg +0 -39
- package/hmu/images/countries/gw.svg +0 -13
- package/hmu/images/countries/gy.svg +0 -9
- package/hmu/images/countries/hk.svg +0 -32
- package/hmu/images/countries/hm.svg +0 -9
- package/hmu/images/countries/hn.svg +0 -18
- package/hmu/images/countries/hr.svg +0 -59
- package/hmu/images/countries/ht.svg +0 -122
- package/hmu/images/countries/hu.svg +0 -7
- package/hmu/images/countries/id.svg +0 -6
- package/hmu/images/countries/ie.svg +0 -7
- package/hmu/images/countries/il.svg +0 -14
- package/hmu/images/countries/im.svg +0 -36
- package/hmu/images/countries/in.svg +0 -25
- package/hmu/images/countries/io.svg +0 -148
- package/hmu/images/countries/iq.svg +0 -10
- package/hmu/images/countries/ir.svg +0 -219
- package/hmu/images/countries/is.svg +0 -12
- package/hmu/images/countries/it.svg +0 -7
- package/hmu/images/countries/je.svg +0 -32
- package/hmu/images/countries/jm.svg +0 -8
- package/hmu/images/countries/jo.svg +0 -16
- package/hmu/images/countries/jp.svg +0 -11
- package/hmu/images/countries/ke.svg +0 -23
- package/hmu/images/countries/kg.svg +0 -15
- package/hmu/images/countries/kh.svg +0 -69
- package/hmu/images/countries/ki.svg +0 -36
- package/hmu/images/countries/km.svg +0 -16
- package/hmu/images/countries/kn.svg +0 -14
- package/hmu/images/countries/kp.svg +0 -15
- package/hmu/images/countries/kr.svg +0 -24
- package/hmu/images/countries/kw.svg +0 -13
- package/hmu/images/countries/ky.svg +0 -63
- package/hmu/images/countries/kz.svg +0 -23
- package/hmu/images/countries/la.svg +0 -12
- package/hmu/images/countries/lb.svg +0 -15
- package/hmu/images/countries/lc.svg +0 -8
- package/hmu/images/countries/li.svg +0 -43
- package/hmu/images/countries/lk.svg +0 -22
- package/hmu/images/countries/lr.svg +0 -14
- package/hmu/images/countries/ls.svg +0 -8
- package/hmu/images/countries/lt.svg +0 -7
- package/hmu/images/countries/lu.svg +0 -5
- package/hmu/images/countries/lv.svg +0 -6
- package/hmu/images/countries/ly.svg +0 -13
- package/hmu/images/countries/ma.svg +0 -4
- package/hmu/images/countries/mc.svg +0 -6
- package/hmu/images/countries/md.svg +0 -72
- package/hmu/images/countries/me.svg +0 -118
- package/hmu/images/countries/mf.svg +0 -7
- package/hmu/images/countries/mg.svg +0 -7
- package/hmu/images/countries/mh.svg +0 -7
- package/hmu/images/countries/mk.svg +0 -5
- package/hmu/images/countries/ml.svg +0 -7
- package/hmu/images/countries/mm.svg +0 -16
- package/hmu/images/countries/mn.svg +0 -13
- package/hmu/images/countries/mo.svg +0 -9
- package/hmu/images/countries/mp.svg +0 -86
- package/hmu/images/countries/mq.svg +0 -7
- package/hmu/images/countries/mr.svg +0 -6
- package/hmu/images/countries/ms.svg +0 -39
- package/hmu/images/countries/mt.svg +0 -49
- package/hmu/images/countries/mu.svg +0 -8
- package/hmu/images/countries/mv.svg +0 -6
- package/hmu/images/countries/mw.svg +0 -10
- package/hmu/images/countries/mx.svg +0 -385
- package/hmu/images/countries/my.svg +0 -15
- package/hmu/images/countries/mz.svg +0 -21
- package/hmu/images/countries/na.svg +0 -16
- package/hmu/images/countries/nc.svg +0 -7
- package/hmu/images/countries/ne.svg +0 -6
- package/hmu/images/countries/nf.svg +0 -9
- package/hmu/images/countries/ng.svg +0 -6
- package/hmu/images/countries/ni.svg +0 -131
- package/hmu/images/countries/nl.svg +0 -7
- package/hmu/images/countries/no.svg +0 -7
- package/hmu/images/countries/np.svg +0 -14
- package/hmu/images/countries/nr.svg +0 -12
- package/hmu/images/countries/nu.svg +0 -26
- package/hmu/images/countries/nz.svg +0 -41
- package/hmu/images/countries/om.svg +0 -116
- package/hmu/images/countries/pa.svg +0 -14
- package/hmu/images/countries/pe.svg +0 -279
- package/hmu/images/countries/pf.svg +0 -19
- package/hmu/images/countries/pg.svg +0 -9
- package/hmu/images/countries/ph.svg +0 -28
- package/hmu/images/countries/pk.svg +0 -15
- package/hmu/images/countries/pl.svg +0 -6
- package/hmu/images/countries/pm.svg +0 -7
- package/hmu/images/countries/pn.svg +0 -62
- package/hmu/images/countries/pr.svg +0 -13
- package/hmu/images/countries/ps.svg +0 -15
- package/hmu/images/countries/pt.svg +0 -57
- package/hmu/images/countries/pw.svg +0 -11
- package/hmu/images/countries/py.svg +0 -157
- package/hmu/images/countries/qa.svg +0 -4
- package/hmu/images/countries/re.svg +0 -7
- package/hmu/images/countries/ro.svg +0 -7
- package/hmu/images/countries/rs.svg +0 -292
- package/hmu/images/countries/ru.svg +0 -7
- package/hmu/images/countries/rw.svg +0 -13
- package/hmu/images/countries/sa.svg +0 -26
- package/hmu/images/countries/sb.svg +0 -13
- package/hmu/images/countries/sc.svg +0 -14
- package/hmu/images/countries/sd.svg +0 -13
- package/hmu/images/countries/se.svg +0 -16
- package/hmu/images/countries/sg.svg +0 -13
- package/hmu/images/countries/sh.svg +0 -74
- package/hmu/images/countries/si.svg +0 -18
- package/hmu/images/countries/sj.svg +0 -7
- package/hmu/images/countries/sk.svg +0 -9
- package/hmu/images/countries/sl.svg +0 -7
- package/hmu/images/countries/sm.svg +0 -91
- package/hmu/images/countries/sn.svg +0 -8
- package/hmu/images/countries/so.svg +0 -11
- package/hmu/images/countries/sr.svg +0 -6
- package/hmu/images/countries/ss.svg +0 -8
- package/hmu/images/countries/st.svg +0 -16
- package/hmu/images/countries/sv.svg +0 -618
- package/hmu/images/countries/sx.svg +0 -56
- package/hmu/images/countries/sy.svg +0 -6
- package/hmu/images/countries/sz.svg +0 -45
- package/hmu/images/countries/tc.svg +0 -67
- package/hmu/images/countries/td.svg +0 -7
- package/hmu/images/countries/tf.svg +0 -15
- package/hmu/images/countries/tg.svg +0 -14
- package/hmu/images/countries/th.svg +0 -7
- package/hmu/images/countries/tj.svg +0 -22
- package/hmu/images/countries/tk.svg +0 -5
- package/hmu/images/countries/tl.svg +0 -13
- package/hmu/images/countries/tm.svg +0 -213
- package/hmu/images/countries/tn.svg +0 -13
- package/hmu/images/countries/to.svg +0 -10
- package/hmu/images/countries/tr.svg +0 -8
- package/hmu/images/countries/tt.svg +0 -5
- package/hmu/images/countries/tv.svg +0 -27
- package/hmu/images/countries/tw.svg +0 -14
- package/hmu/images/countries/tz.svg +0 -13
- package/hmu/images/countries/ua.svg +0 -6
- package/hmu/images/countries/ug.svg +0 -30
- package/hmu/images/countries/um.svg +0 -23
- package/hmu/images/countries/un.svg +0 -16
- package/hmu/images/countries/us.svg +0 -12
- package/hmu/images/countries/uy.svg +0 -28
- package/hmu/images/countries/uz.svg +0 -30
- package/hmu/images/countries/va.svg +0 -483
- package/hmu/images/countries/vc.svg +0 -8
- package/hmu/images/countries/ve.svg +0 -26
- package/hmu/images/countries/vg.svg +0 -133
- package/hmu/images/countries/vi.svg +0 -31
- package/hmu/images/countries/vn.svg +0 -11
- package/hmu/images/countries/vu.svg +0 -18
- package/hmu/images/countries/wf.svg +0 -7
- package/hmu/images/countries/ws.svg +0 -7
- package/hmu/images/countries/ye.svg +0 -7
- package/hmu/images/countries/yt.svg +0 -7
- package/hmu/images/countries/za.svg +0 -17
- package/hmu/images/countries/zm.svg +0 -27
- package/hmu/images/countries/zw.svg +0 -21
- package/hmu/images/hipay-white-logo.svg +0 -42
- package/hmu/images/logo_visa_75wx45h.gif +0 -0
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { findDOMNode } from 'react-dom';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import isRequiredIf from 'react-proptype-conditional-require';
|
|
6
|
-
import classNames from 'classnames';
|
|
7
6
|
|
|
8
7
|
import { TableHead, TableRow, TableCell } from 'material-ui/Table';
|
|
9
8
|
import PlusCircleIcon from 'mdi-material-ui/PlusCircle';
|
|
@@ -19,13 +18,11 @@ import { MANDATORY_COLUMN_ERROR_MESSAGE } from './HiTable';
|
|
|
19
18
|
export const styles = theme => ({
|
|
20
19
|
thead: {
|
|
21
20
|
position: 'relative',
|
|
22
|
-
|
|
21
|
+
display: 'block' /*seperates the header from the body allowing it to be positioned*/
|
|
22
|
+
, width: '100%',
|
|
23
23
|
overflow: 'visible',
|
|
24
24
|
zIndex: 12
|
|
25
25
|
},
|
|
26
|
-
theadFixedWidth: {
|
|
27
|
-
display: 'block' /*seperates the header from the body allowing it to be positioned*/
|
|
28
|
-
},
|
|
29
26
|
theadRow: {
|
|
30
27
|
backgroundColor: theme.palette.background3,
|
|
31
28
|
zIndex: 12
|
|
@@ -151,16 +148,13 @@ class HiTableHead extends React.Component {
|
|
|
151
148
|
sticky,
|
|
152
149
|
translations,
|
|
153
150
|
view,
|
|
154
|
-
lookupColumns
|
|
155
|
-
fixedColumnWidth
|
|
151
|
+
lookupColumns
|
|
156
152
|
} = this.props;
|
|
157
153
|
|
|
158
154
|
const { hovered, openedOrderColumns, orderColumnsAnchorEl } = this.state;
|
|
159
155
|
|
|
160
156
|
let headerProps = _extends({
|
|
161
|
-
className:
|
|
162
|
-
[classes.theadFixedWidth]: fixedColumnWidth
|
|
163
|
-
})
|
|
157
|
+
className: classes.thead
|
|
164
158
|
}, orderable && { onMouseEnter: this.handleEvent, onMouseLeave: this.handleEvent });
|
|
165
159
|
|
|
166
160
|
let unfixedColumnIsSet = false,
|
|
@@ -207,8 +201,8 @@ class HiTableHead extends React.Component {
|
|
|
207
201
|
return React.createElement(HeaderCell, {
|
|
208
202
|
key: 'header-' + column.colId,
|
|
209
203
|
colId: column.colId,
|
|
210
|
-
type: column['
|
|
211
|
-
|
|
204
|
+
type: column['type'],
|
|
205
|
+
title: column['label'],
|
|
212
206
|
smallTitle: column['reducedLabel'],
|
|
213
207
|
selectable: firstColumn && selectable,
|
|
214
208
|
selected: selectedIdList.length > 0 ? selectedIdList.length === dataSource.length ? true : 'mixed' : false,
|
|
@@ -227,8 +221,7 @@ class HiTableHead extends React.Component {
|
|
|
227
221
|
fixedWidth: fixed,
|
|
228
222
|
align: column['align'],
|
|
229
223
|
sticky: firstColumn && sticky,
|
|
230
|
-
lookedUp: lookupColumns.includes(column.colId)
|
|
231
|
-
fixedColumnWidth: fixedColumnWidth
|
|
224
|
+
lookedUp: lookupColumns.includes(column.colId)
|
|
232
225
|
});
|
|
233
226
|
}
|
|
234
227
|
}),
|
|
@@ -336,11 +329,6 @@ HiTableHead.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
336
329
|
* Active le filtre sur les colonnes filtrables
|
|
337
330
|
*/
|
|
338
331
|
filterable: PropTypes.bool,
|
|
339
|
-
/**
|
|
340
|
-
* Fixe la taille des colonnes selon le type de vue
|
|
341
|
-
* Sinon les colonnes s'adaptent à l'espace disponible
|
|
342
|
-
*/
|
|
343
|
-
fixedColumnWidth: PropTypes.bool,
|
|
344
332
|
/**
|
|
345
333
|
* Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
|
|
346
334
|
*/
|
|
@@ -63,8 +63,7 @@ export const styles = theme => ({
|
|
|
63
63
|
controlLabelRoot: {
|
|
64
64
|
marginLeft: 6,
|
|
65
65
|
marginBottom: 8,
|
|
66
|
-
fontSize: 15
|
|
67
|
-
width: 160
|
|
66
|
+
fontSize: 15
|
|
68
67
|
},
|
|
69
68
|
switchLabelRoot: {
|
|
70
69
|
marginLeft: 15,
|
|
@@ -73,10 +72,7 @@ export const styles = theme => ({
|
|
|
73
72
|
columnLabel: {
|
|
74
73
|
position: 'relative',
|
|
75
74
|
top: 5,
|
|
76
|
-
left: 5
|
|
77
|
-
overflow: 'hidden',
|
|
78
|
-
textOverflow: 'ellipsis',
|
|
79
|
-
whiteSpace: 'nowrap'
|
|
75
|
+
left: 5
|
|
80
76
|
},
|
|
81
77
|
label: {
|
|
82
78
|
fontWeight: 'inherit'
|
package/es/HiTopBar/HiTopBar.js
CHANGED
|
@@ -5,13 +5,14 @@ import AppBar from 'material-ui/AppBar';
|
|
|
5
5
|
import Toolbar from 'material-ui/Toolbar';
|
|
6
6
|
import IconButton from 'material-ui/IconButton';
|
|
7
7
|
import Collapse from 'material-ui/transitions/Collapse';
|
|
8
|
-
import { ChevronDoubleUp, ChevronDoubleDown, Menu as MenuIcon, ArrowLeft, DotsVertical } from 'mdi-material-ui';
|
|
8
|
+
import { ChevronDoubleUp, ChevronDoubleDown, Menu as MenuIcon, ArrowLeft, DotsVertical, MenuDown } from 'mdi-material-ui';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import Menu, { MenuItem } from 'material-ui/Menu';
|
|
11
11
|
import withStyles from '../styles/withStyles';
|
|
12
12
|
import HiIconBuilder from '../utils/HiIconBuilder';
|
|
13
13
|
import HiBadge from '../HiBadge';
|
|
14
14
|
import HiButton from '../HiButton';
|
|
15
|
+
import HiInput from '../HiForm/HiInput';
|
|
15
16
|
import HiColoredLabel from '../HiColoredLabel';
|
|
16
17
|
import { getContrastedTextColor, fade } from '../styles/colorManipulator';
|
|
17
18
|
|
|
@@ -56,9 +57,7 @@ export const styles = theme => ({
|
|
|
56
57
|
marginRight: 1.5 * theme.spacing.unit,
|
|
57
58
|
borderLeft: 'solid 1px',
|
|
58
59
|
borderColor: fade('#000', 0.12),
|
|
59
|
-
display: 'inline-block'
|
|
60
|
-
minWidth: 144,
|
|
61
|
-
maxWidth: 288
|
|
60
|
+
display: 'inline-block'
|
|
62
61
|
},
|
|
63
62
|
accountSelectorButtonLabel: {
|
|
64
63
|
textOverflow: 'ellipsis',
|
|
@@ -77,9 +76,6 @@ export const styles = theme => ({
|
|
|
77
76
|
color: theme.palette.text.secondary,
|
|
78
77
|
minWidth: 32
|
|
79
78
|
},
|
|
80
|
-
betaWithoutAccountSelector: {
|
|
81
|
-
marginLeft: 1.5 * theme.spacing.unit
|
|
82
|
-
},
|
|
83
79
|
searchInput: {
|
|
84
80
|
backgroundColor: `${theme.palette.background1} !important`
|
|
85
81
|
},
|
|
@@ -99,9 +95,6 @@ export const styles = theme => ({
|
|
|
99
95
|
textTransform: 'capitalize',
|
|
100
96
|
fontWeight: theme.typography.fontWeightRegular,
|
|
101
97
|
minWidth: 50
|
|
102
|
-
},
|
|
103
|
-
collapseOverflow: {
|
|
104
|
-
overflow: 'inherit'
|
|
105
98
|
}
|
|
106
99
|
});
|
|
107
100
|
|
|
@@ -124,14 +117,18 @@ class HiTopBar extends React.Component {
|
|
|
124
117
|
|
|
125
118
|
this.state = {
|
|
126
119
|
collapsed: false,
|
|
120
|
+
searchFocus: false,
|
|
127
121
|
menuAnchor: null
|
|
128
122
|
};
|
|
129
123
|
|
|
130
|
-
this.
|
|
124
|
+
this.toggleCollapse = this.toggleCollapse.bind(this);
|
|
125
|
+
this.handleFocus = this.handleFocus.bind(this);
|
|
126
|
+
this.handleBlur = this.handleBlur.bind(this);
|
|
131
127
|
this.handleClickMenu = this.handleClickMenu.bind(this);
|
|
132
128
|
this.handleOpenMenu = this.handleOpenMenu.bind(this);
|
|
133
129
|
this.handleCloseMenu = this.handleCloseMenu.bind(this);
|
|
134
130
|
this.handleMenuItemClick = this.handleMenuItemClick.bind(this);
|
|
131
|
+
this.handleClickInputButton = this.handleClickInputButton.bind(this);
|
|
135
132
|
}
|
|
136
133
|
|
|
137
134
|
handleOpenMenu(event) {
|
|
@@ -147,12 +144,41 @@ class HiTopBar extends React.Component {
|
|
|
147
144
|
callback();
|
|
148
145
|
}
|
|
149
146
|
|
|
150
|
-
|
|
147
|
+
toggleCollapse() {
|
|
151
148
|
this.setState({ collapsed: !this.state.collapsed });
|
|
152
149
|
}
|
|
153
150
|
|
|
151
|
+
handleFocus() {
|
|
152
|
+
this.setState({ searchFocus: true });
|
|
153
|
+
|
|
154
|
+
if (this.props.onSearchFocus) {
|
|
155
|
+
this.props.onSearchFocus();
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
handleClickInputButton(event) {
|
|
160
|
+
this.setState({ searchFocus: true });
|
|
161
|
+
|
|
162
|
+
if (this.props.onClickInputButton) {
|
|
163
|
+
this.props.onClickInputButton();
|
|
164
|
+
}
|
|
165
|
+
// Stop propagation to cancel input focus
|
|
166
|
+
event.stopPropagation();
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
handleBlur(event) {
|
|
170
|
+
if (!this.overlay.contains(event.relatedTarget)) {
|
|
171
|
+
this.setState({ searchFocus: false });
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (this.props.onSearchBlur) {
|
|
175
|
+
this.props.onSearchBlur();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
154
179
|
handleClickMenu() {
|
|
155
180
|
this.props.onClickReturn();
|
|
181
|
+
this.setState({ searchFocus: false });
|
|
156
182
|
}
|
|
157
183
|
|
|
158
184
|
render() {
|
|
@@ -167,12 +193,47 @@ class HiTopBar extends React.Component {
|
|
|
167
193
|
translations,
|
|
168
194
|
onClickMenu,
|
|
169
195
|
accountSelectorContent,
|
|
170
|
-
refButtons,
|
|
171
196
|
searchInput,
|
|
172
|
-
|
|
197
|
+
searchValue
|
|
173
198
|
} = this.props;
|
|
174
199
|
|
|
175
|
-
const colorPrimaryClass = searchFocus ? classes.colorPrimaryFocus : classes.colorPrimary;
|
|
200
|
+
const colorPrimaryClass = this.state.searchFocus ? classes.colorPrimaryFocus : classes.colorPrimary;
|
|
201
|
+
|
|
202
|
+
const inputClass = classNames({
|
|
203
|
+
[classes.searchInput]: !this.state.searchFocus,
|
|
204
|
+
[classes.searchInputFocused]: this.state.searchFocus
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
const endAdornment = React.createElement(
|
|
208
|
+
HiButton,
|
|
209
|
+
{
|
|
210
|
+
className: classes.endAdornmentButton,
|
|
211
|
+
onClick: this.handleClickInputButton
|
|
212
|
+
},
|
|
213
|
+
React.createElement(
|
|
214
|
+
Hidden,
|
|
215
|
+
{ smDown: true },
|
|
216
|
+
React.createElement(
|
|
217
|
+
'span',
|
|
218
|
+
null,
|
|
219
|
+
translations.all_types
|
|
220
|
+
)
|
|
221
|
+
),
|
|
222
|
+
React.createElement(MenuDown, { style: { color: fade('#000', 0.54) } })
|
|
223
|
+
);
|
|
224
|
+
|
|
225
|
+
const input = searchInput || React.createElement(HiInput, {
|
|
226
|
+
name: 'top-bar-search',
|
|
227
|
+
placeholder: translations.search,
|
|
228
|
+
value: searchValue,
|
|
229
|
+
onChange: this.props.onSearchChange,
|
|
230
|
+
startAdornment: 'magnify',
|
|
231
|
+
endAdornment: endAdornment,
|
|
232
|
+
classes: { root: inputClass },
|
|
233
|
+
onFocus: this.handleFocus,
|
|
234
|
+
onBlur: this.handleBlur,
|
|
235
|
+
onReset: this.props.onSearchReset
|
|
236
|
+
});
|
|
176
237
|
|
|
177
238
|
const notificationButton = notificationValue > 0 ? React.createElement(
|
|
178
239
|
HiButton,
|
|
@@ -204,19 +265,14 @@ class HiTopBar extends React.Component {
|
|
|
204
265
|
null,
|
|
205
266
|
React.createElement(
|
|
206
267
|
Collapse,
|
|
207
|
-
{
|
|
208
|
-
'in': !this.state.collapsed,
|
|
209
|
-
className: classNames({
|
|
210
|
-
[classes.collapseOverflow]: !hideable
|
|
211
|
-
})
|
|
212
|
-
},
|
|
268
|
+
{ 'in': !this.state.collapsed },
|
|
213
269
|
React.createElement(
|
|
214
270
|
Toolbar,
|
|
215
271
|
{ className: classes.toolbar },
|
|
216
272
|
React.createElement(
|
|
217
273
|
'div',
|
|
218
|
-
{ ref:
|
|
219
|
-
searchFocus ? React.createElement(
|
|
274
|
+
{ ref: div => this.overlay = div },
|
|
275
|
+
this.state.searchFocus ? React.createElement(
|
|
220
276
|
HiButton,
|
|
221
277
|
{
|
|
222
278
|
className: classes.leftButton,
|
|
@@ -247,7 +303,7 @@ class HiTopBar extends React.Component {
|
|
|
247
303
|
React.createElement(
|
|
248
304
|
'div',
|
|
249
305
|
{ className: classes.flex },
|
|
250
|
-
|
|
306
|
+
input
|
|
251
307
|
),
|
|
252
308
|
notificationButton,
|
|
253
309
|
hasAccountSelector && React.createElement(
|
|
@@ -263,9 +319,6 @@ class HiTopBar extends React.Component {
|
|
|
263
319
|
accountSelectorContent
|
|
264
320
|
),
|
|
265
321
|
beta && React.createElement(HiColoredLabel, {
|
|
266
|
-
className: classNames({
|
|
267
|
-
[classes.betaWithoutAccountSelector]: !hasAccountSelector
|
|
268
|
-
}),
|
|
269
322
|
label: 'BETA',
|
|
270
323
|
beta: true,
|
|
271
324
|
color: theme.palette.neutral.dark
|
|
@@ -273,7 +326,7 @@ class HiTopBar extends React.Component {
|
|
|
273
326
|
(hideable || hasSettings) && React.createElement(
|
|
274
327
|
IconButton,
|
|
275
328
|
{ color: 'inherit', className: classes.iconButton },
|
|
276
|
-
hideable && React.createElement(ChevronDoubleUp, { onClick: this.
|
|
329
|
+
hideable && React.createElement(ChevronDoubleUp, { onClick: this.toggleCollapse }),
|
|
277
330
|
hasSettings && React.createElement(HiIconBuilder, {
|
|
278
331
|
onClick: this.props.onClickSettings,
|
|
279
332
|
icon: 'fa-gear',
|
|
@@ -285,7 +338,7 @@ class HiTopBar extends React.Component {
|
|
|
285
338
|
hideable && this.state.collapsed && React.createElement(
|
|
286
339
|
IconButton,
|
|
287
340
|
{
|
|
288
|
-
onClick: this.
|
|
341
|
+
onClick: this.toggleCollapse,
|
|
289
342
|
color: 'inherit',
|
|
290
343
|
className: classes.showTopBarButton
|
|
291
344
|
},
|
|
@@ -301,8 +354,8 @@ class HiTopBar extends React.Component {
|
|
|
301
354
|
{ className: classes.toolbar },
|
|
302
355
|
React.createElement(
|
|
303
356
|
'div',
|
|
304
|
-
{ ref:
|
|
305
|
-
searchFocus ? React.createElement(
|
|
357
|
+
{ ref: div => this.overlay = div },
|
|
358
|
+
this.state.searchFocus ? React.createElement(
|
|
306
359
|
IconButton,
|
|
307
360
|
{ className: classes.leftButtonMobile, color: 'inherit' },
|
|
308
361
|
_ref4
|
|
@@ -373,7 +426,6 @@ HiTopBar.defaultProps = {
|
|
|
373
426
|
hideable: false,
|
|
374
427
|
hasSettings: false,
|
|
375
428
|
hasAccountSelector: false,
|
|
376
|
-
searchFocus: false,
|
|
377
429
|
translations: {
|
|
378
430
|
back: 'Back',
|
|
379
431
|
menu: 'Menu',
|
|
@@ -414,6 +466,10 @@ HiTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
414
466
|
* Fonction de callback au click sur l'accountSelector'
|
|
415
467
|
*/
|
|
416
468
|
onClickAccountSelector: PropTypes.func,
|
|
469
|
+
/**
|
|
470
|
+
* Fonction de callback au click sur le menu
|
|
471
|
+
*/
|
|
472
|
+
onClickInputButton: PropTypes.func.isRequired,
|
|
417
473
|
/**
|
|
418
474
|
* Fonction de callback au click sur le menu
|
|
419
475
|
*/
|
|
@@ -431,22 +487,34 @@ HiTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
431
487
|
*/
|
|
432
488
|
onClickSettings: PropTypes.func,
|
|
433
489
|
/**
|
|
434
|
-
*
|
|
435
|
-
* [here](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
|
490
|
+
* Fonction de callback au blur du champs de recharge (si searchInput vide)
|
|
436
491
|
*/
|
|
437
|
-
|
|
492
|
+
onSearchBlur: PropTypes.func,
|
|
493
|
+
/**
|
|
494
|
+
* Fonction de callback au changement du champs input (si searchInput vide)
|
|
495
|
+
*/
|
|
496
|
+
onSearchChange: PropTypes.func,
|
|
497
|
+
/**
|
|
498
|
+
* Fonction de callback au focus sur le champs de recherche (si searchInput vide)
|
|
499
|
+
*/
|
|
500
|
+
onSearchFocus: PropTypes.func,
|
|
438
501
|
/**
|
|
439
|
-
*
|
|
502
|
+
* Fonction de callback au reset du champs de recherche (si searchInput vide)
|
|
440
503
|
*/
|
|
441
|
-
|
|
504
|
+
onSearchReset: PropTypes.func,
|
|
442
505
|
/**
|
|
443
|
-
*
|
|
506
|
+
* Positionement de la topBar. The behavior of the different options is described
|
|
507
|
+
* [here](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
|
444
508
|
*/
|
|
445
|
-
|
|
509
|
+
position: PropTypes.oneOf(['fixed', 'absolute', 'sticky', 'static']),
|
|
446
510
|
/**
|
|
447
511
|
* Input de recherche
|
|
448
512
|
*/
|
|
449
|
-
searchInput: PropTypes.node
|
|
513
|
+
searchInput: PropTypes.node,
|
|
514
|
+
/**
|
|
515
|
+
* Valeur du champs de recherche (si searchInput vide)
|
|
516
|
+
*/
|
|
517
|
+
searchValue: PropTypes.node,
|
|
450
518
|
/**
|
|
451
519
|
* @ignore
|
|
452
520
|
*/
|
|
@@ -89,9 +89,6 @@ const light = {
|
|
|
89
89
|
appBar: '#fff',
|
|
90
90
|
paper: '#fff',
|
|
91
91
|
default: grey[50]
|
|
92
|
-
},
|
|
93
|
-
dot: {
|
|
94
|
-
neutral: '#707070'
|
|
95
92
|
}
|
|
96
93
|
};
|
|
97
94
|
|
|
@@ -159,9 +156,6 @@ const dark = {
|
|
|
159
156
|
appBar: '#fff',
|
|
160
157
|
paper: '#fff',
|
|
161
158
|
default: grey[50]
|
|
162
|
-
},
|
|
163
|
-
dot: {
|
|
164
|
-
neutral: '#707070'
|
|
165
159
|
}
|
|
166
160
|
};
|
|
167
161
|
|
|
@@ -244,10 +238,6 @@ const typography = {
|
|
|
244
238
|
body4: {
|
|
245
239
|
fontSize: 12,
|
|
246
240
|
fontFamily
|
|
247
|
-
},
|
|
248
|
-
body5: {
|
|
249
|
-
fontSize: 11,
|
|
250
|
-
fontFamily
|
|
251
241
|
}
|
|
252
242
|
};
|
|
253
243
|
|
|
@@ -281,7 +271,6 @@ function createHiMuiTheme(options = {}) {
|
|
|
281
271
|
inputDisabled: shades[type].inputDisabled,
|
|
282
272
|
tableLine: shades[type].tableLine,
|
|
283
273
|
background: shades[type].background,
|
|
284
|
-
dot: shades[type].dot,
|
|
285
274
|
status: statusPalette,
|
|
286
275
|
primary: blue,
|
|
287
276
|
secondary: yellow
|
package/es/utils/hiHelpers.js
CHANGED
|
@@ -16,9 +16,8 @@ export function camelize(string) {
|
|
|
16
16
|
* @param number
|
|
17
17
|
* @param size
|
|
18
18
|
* @param locale
|
|
19
|
-
* @param precision
|
|
20
19
|
*/
|
|
21
|
-
export function formatNumber(number, size = 'l', locale = 'en-EN'
|
|
20
|
+
export function formatNumber(number, size = 'l', locale = 'en-EN') {
|
|
22
21
|
// Round number
|
|
23
22
|
switch (size) {
|
|
24
23
|
case 'l':
|
|
@@ -34,8 +33,8 @@ export function formatNumber(number, size = 'l', locale = 'en-EN', precision) {
|
|
|
34
33
|
|
|
35
34
|
// To locale
|
|
36
35
|
const options = {
|
|
37
|
-
minimumFractionDigits:
|
|
38
|
-
maximumFractionDigits:
|
|
36
|
+
minimumFractionDigits: size === 'l' ? 2 : 0,
|
|
37
|
+
maximumFractionDigits: size === 'l' ? 2 : 0,
|
|
39
38
|
useGrouping: true
|
|
40
39
|
};
|
|
41
40
|
|
|
@@ -148,7 +147,7 @@ export function arrayUnique(array) {
|
|
|
148
147
|
* @param array
|
|
149
148
|
*/
|
|
150
149
|
export function escapeHTML(unsafeStr) {
|
|
151
|
-
return unsafeStr.replace(
|
|
150
|
+
return unsafeStr.replace('<strong>', '[[').replace('</strong>', ']]').replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/\"/g, '"').replace(/\'/g, ''').replace('[[', '<strong>').replace(']]', '</strong>');
|
|
152
151
|
}
|
|
153
152
|
|
|
154
153
|
/**
|
|
@@ -168,7 +167,7 @@ export function getNextItemSelectable(node, direction) {
|
|
|
168
167
|
} else if (node.previousSibling === null) {
|
|
169
168
|
return null;
|
|
170
169
|
} else if (node.previousSibling.tabIndex === -1) {
|
|
171
|
-
return getNextItemSelectable(node.previousSibling, direction);
|
|
170
|
+
return this.getNextItemSelectable(node.previousSibling, direction);
|
|
172
171
|
}
|
|
173
172
|
return node.previousSibling;
|
|
174
173
|
}
|
package/index.es.js
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@hipay/hipay-material-ui",
|
|
3
3
|
"private": false,
|
|
4
4
|
"author": "HiPay PSYCHE Team",
|
|
5
|
-
"version": "1.0.0-beta.
|
|
5
|
+
"version": "1.0.0-beta.2",
|
|
6
6
|
"description": "HiPay Material-UI Style Guide - React components that implement Google's Material Design from Material-UI.",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"repository": {
|
|
@@ -14,52 +14,51 @@
|
|
|
14
14
|
},
|
|
15
15
|
"homepage": "http://material-ui.com/",
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"react": "16.
|
|
18
|
-
"react-dom": "15.3.0 || 16.0.0"
|
|
17
|
+
"react": "^15.3.0 || ^16.0.0",
|
|
18
|
+
"react-dom": "^15.3.0 || ^16.0.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@types/jss": "9.3.0",
|
|
22
|
-
"@types/react-transition-group": "2.0.6",
|
|
23
|
-
"babel-runtime": "6.26.0",
|
|
24
|
-
"brcast": "3.0.1",
|
|
25
|
-
"classnames": "2.2.5",
|
|
26
|
-
"deepmerge": "2.0.1",
|
|
27
|
-
"dom-helpers": "3.2.1",
|
|
28
|
-
"hoist-non-react-statics": "2.5.0",
|
|
29
|
-
"jss": "9.3.3",
|
|
30
|
-
"jss-camel-case": "6.0.0",
|
|
31
|
-
"jss-default-unit": "8.0.2",
|
|
32
|
-
"jss-global": "3.0.0",
|
|
33
|
-
"jss-nested": "6.0.1",
|
|
34
|
-
"jss-props-sort": "6.0.0",
|
|
35
|
-
"jss-vendor-prefixer": "7.0.0",
|
|
36
|
-
"keycode": "2.1.9",
|
|
37
|
-
"lodash": "4.
|
|
38
|
-
"lz-string": "1.4.4",
|
|
21
|
+
"@types/jss": "^9.3.0",
|
|
22
|
+
"@types/react-transition-group": "^2.0.6",
|
|
23
|
+
"babel-runtime": "^6.26.0",
|
|
24
|
+
"brcast": "^3.0.1",
|
|
25
|
+
"classnames": "^2.2.5",
|
|
26
|
+
"deepmerge": "^2.0.1",
|
|
27
|
+
"dom-helpers": "^3.2.1",
|
|
28
|
+
"hoist-non-react-statics": "^2.5.0",
|
|
29
|
+
"jss": "^9.3.3",
|
|
30
|
+
"jss-camel-case": "^6.0.0",
|
|
31
|
+
"jss-default-unit": "^8.0.2",
|
|
32
|
+
"jss-global": "^3.0.0",
|
|
33
|
+
"jss-nested": "^6.0.1",
|
|
34
|
+
"jss-props-sort": "^6.0.0",
|
|
35
|
+
"jss-vendor-prefixer": "^7.0.0",
|
|
36
|
+
"keycode": "^2.1.9",
|
|
37
|
+
"lodash": "^4.2.0",
|
|
38
|
+
"lz-string": "^1.4.4",
|
|
39
39
|
"material-ui": "1.0.0-beta.36",
|
|
40
|
-
"mdi-material-ui": "2.0.0",
|
|
41
|
-
"moment": "2.
|
|
42
|
-
"moment-timezone": "0.5.14",
|
|
43
|
-
"normalize-scroll-left": "0.1.2",
|
|
44
|
-
"prop-types": "15.6.0",
|
|
45
|
-
"react-addons-update": "15.6.2",
|
|
46
|
-
"react-contextmenu": "2.9.2",
|
|
47
|
-
"react-custom-scrollbars": "4.2.1",
|
|
48
|
-
"react-day-picker": "7.
|
|
49
|
-
"react-event-listener": "0.5.
|
|
50
|
-
"react-jss": "8.
|
|
51
|
-
"react-lifecycles-compat": "1.0.2",
|
|
52
|
-
"react-
|
|
53
|
-
"react-
|
|
54
|
-
"react-
|
|
55
|
-
"react-
|
|
56
|
-
"react-
|
|
57
|
-
"react-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"warning": "3.0.0"
|
|
40
|
+
"mdi-material-ui": "^2.0.0",
|
|
41
|
+
"moment": "^2.19.1",
|
|
42
|
+
"moment-timezone": "^0.5.14",
|
|
43
|
+
"normalize-scroll-left": "^0.1.2",
|
|
44
|
+
"prop-types": "^15.6.0",
|
|
45
|
+
"react-addons-update": "^15.6.2",
|
|
46
|
+
"react-contextmenu": "^2.9.2",
|
|
47
|
+
"react-custom-scrollbars": "^4.2.1",
|
|
48
|
+
"react-day-picker": "^7.0.7",
|
|
49
|
+
"react-event-listener": "^0.5.1",
|
|
50
|
+
"react-jss": "^8.1.0",
|
|
51
|
+
"react-lifecycles-compat": "^1.0.2",
|
|
52
|
+
"react-popper": "^0.8.0",
|
|
53
|
+
"react-proptype-conditional-require": "^1.0.4",
|
|
54
|
+
"react-scrollbar-size": "^2.0.2",
|
|
55
|
+
"react-sortable-hoc": "^0.6.8",
|
|
56
|
+
"react-spinners": "^0.2.5",
|
|
57
|
+
"react-transition-group": "^2.2.1",
|
|
58
|
+
"recompose": "^0.26.0",
|
|
59
|
+
"scroll": "^2.0.3",
|
|
60
|
+
"validator": "^9.4.0",
|
|
61
|
+
"warning": "^3.0.0"
|
|
63
62
|
},
|
|
64
63
|
"resolutions": {
|
|
65
64
|
"@types/react": "16.0.38"
|
|
@@ -75,4 +74,4 @@
|
|
|
75
74
|
},
|
|
76
75
|
"license": "ISC",
|
|
77
76
|
"module": "./index.es.js"
|
|
78
|
-
}
|
|
77
|
+
}
|
|
@@ -117,9 +117,6 @@ var light = {
|
|
|
117
117
|
appBar: '#fff',
|
|
118
118
|
paper: '#fff',
|
|
119
119
|
default: _colors.grey[50]
|
|
120
|
-
},
|
|
121
|
-
dot: {
|
|
122
|
-
neutral: '#707070'
|
|
123
120
|
}
|
|
124
121
|
};
|
|
125
122
|
|
|
@@ -187,9 +184,6 @@ var dark = {
|
|
|
187
184
|
appBar: '#fff',
|
|
188
185
|
paper: '#fff',
|
|
189
186
|
default: _colors.grey[50]
|
|
190
|
-
},
|
|
191
|
-
dot: {
|
|
192
|
-
neutral: '#707070'
|
|
193
187
|
}
|
|
194
188
|
};
|
|
195
189
|
|
|
@@ -272,10 +266,6 @@ var typography = {
|
|
|
272
266
|
body4: {
|
|
273
267
|
fontSize: 12,
|
|
274
268
|
fontFamily: fontFamily
|
|
275
|
-
},
|
|
276
|
-
body5: {
|
|
277
|
-
fontSize: 11,
|
|
278
|
-
fontFamily: fontFamily
|
|
279
269
|
}
|
|
280
270
|
};
|
|
281
271
|
|
|
@@ -313,7 +303,6 @@ function createHiMuiTheme() {
|
|
|
313
303
|
inputDisabled: shades[type].inputDisabled,
|
|
314
304
|
tableLine: shades[type].tableLine,
|
|
315
305
|
background: shades[type].background,
|
|
316
|
-
dot: shades[type].dot,
|
|
317
306
|
status: statusPalette,
|
|
318
307
|
primary: _colors.blue,
|
|
319
308
|
secondary: _colors.yellow
|