@fto-consult/expo-ui 1.0.4
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/assets/adaptive-icon.png +0 -0
- package/assets/add_photo.png +0 -0
- package/assets/favicon.png +0 -0
- package/assets/icon.png +0 -0
- package/assets/logo.png +0 -0
- package/assets/splash.png +0 -0
- package/babel.config.alias.js +32 -0
- package/babel.config.js +18 -0
- package/circular-dependencies.js +24 -0
- package/compiler.config.js +28 -0
- package/expo.metro.config.js +27 -0
- package/index.js +21 -0
- package/metro.config.js +1 -0
- package/package.json +60 -0
- package/src/App.js +65 -0
- package/src/Preferences.js +5 -0
- package/src/auth/Login.js +254 -0
- package/src/auth/index.js +3 -0
- package/src/components/ActivityIndicator/index.js +9 -0
- package/src/components/Animations/Animation/index.js +95 -0
- package/src/components/Animations/Animation/utils.js +78 -0
- package/src/components/Animations/OpacityAnimation/index.js +53 -0
- package/src/components/Animations/OpacityAnimation/utils.js +38 -0
- package/src/components/Animations/index.js +6 -0
- package/src/components/AppBar/Content.js +132 -0
- package/src/components/AppBar/index.js +164 -0
- package/src/components/AppBar/utils.js +204 -0
- package/src/components/AutoLink/index.js +45 -0
- package/src/components/Avatar/AutoHeightImage/AnimatableImage.js +22 -0
- package/src/components/Avatar/AutoHeightImage/ImagePolyfill.js +33 -0
- package/src/components/Avatar/AutoHeightImage/cache.js +75 -0
- package/src/components/Avatar/AutoHeightImage/helpers.js +2 -0
- package/src/components/Avatar/AutoHeightImage/index.js +97 -0
- package/src/components/Avatar/Image.js +115 -0
- package/src/components/Avatar/Text.js +74 -0
- package/src/components/Avatar/index.js +89 -0
- package/src/components/BackToTop/index.js +89 -0
- package/src/components/Badge/index.js +141 -0
- package/src/components/Badge/index1.js +34 -0
- package/src/components/BottomSheet/Content.js +19 -0
- package/src/components/BottomSheet/Menu.js +126 -0
- package/src/components/BottomSheet/Provider.js +58 -0
- package/src/components/BottomSheet/Sheet.js +434 -0
- package/src/components/BottomSheet/index.js +8 -0
- package/src/components/BottomSheet/utils.js +30 -0
- package/src/components/Br/index.js +4 -0
- package/src/components/Br/index.web.js +3 -0
- package/src/components/Browser/index.js +4 -0
- package/src/components/Button/index.js +465 -0
- package/src/components/CardView/index.android.js +55 -0
- package/src/components/CardView/index.ios.js +36 -0
- package/src/components/CardView/index.web.js +3 -0
- package/src/components/Chart/appexchart.3.5.text +14 -0
- package/src/components/Chart/index.js +22 -0
- package/src/components/Chart/index.native.js +61 -0
- package/src/components/Chart/utils.js +0 -0
- package/src/components/Checkbox/index.js +178 -0
- package/src/components/Chip/index.js +350 -0
- package/src/components/Color/ColorPicker.js +724 -0
- package/src/components/Color/assets/black-gradient-rotated.png +0 -0
- package/src/components/Color/assets/black-gradient.png +0 -0
- package/src/components/Color/assets/color-wheel.png +0 -0
- package/src/components/Color/index.js +158 -0
- package/src/components/ContentLoader/BarChar.js +19 -0
- package/src/components/ContentLoader/Circle.js +3 -0
- package/src/components/ContentLoader/Circle.web.js +3 -0
- package/src/components/ContentLoader/Datagrid.js +28 -0
- package/src/components/ContentLoader/Form.js +39 -0
- package/src/components/ContentLoader/Loader/RLoader/index.js +3 -0
- package/src/components/ContentLoader/Loader/RLoader/index.web.js +3 -0
- package/src/components/ContentLoader/Loader/index.js +20 -0
- package/src/components/ContentLoader/PieChart.js +22 -0
- package/src/components/ContentLoader/Placeholder/Placeholder.js +52 -0
- package/src/components/ContentLoader/Placeholder/PlaceholderLine.js +59 -0
- package/src/components/ContentLoader/Placeholder/PlaceholderMedia.js +47 -0
- package/src/components/ContentLoader/Placeholder/animations/Fade.js +58 -0
- package/src/components/ContentLoader/Placeholder/animations/Loader.js +24 -0
- package/src/components/ContentLoader/Placeholder/animations/Progressive.js +62 -0
- package/src/components/ContentLoader/Placeholder/animations/Raw.js +4 -0
- package/src/components/ContentLoader/Placeholder/animations/Shine.js +56 -0
- package/src/components/ContentLoader/Placeholder/animations/ShineOverlay.js +56 -0
- package/src/components/ContentLoader/Placeholder/animations/context.js +4 -0
- package/src/components/ContentLoader/Placeholder/index.js +12 -0
- package/src/components/ContentLoader/Placeholder/tokens.js +9 -0
- package/src/components/ContentLoader/Profile.js +27 -0
- package/src/components/ContentLoader/Rect.js +3 -0
- package/src/components/ContentLoader/Rect.web.js +3 -0
- package/src/components/ContentLoader/Skeleton.js +145 -0
- package/src/components/ContentLoader/Table.js +69 -0
- package/src/components/ContentLoader/TaskList.js +27 -0
- package/src/components/ContentLoader/index copy.js +148 -0
- package/src/components/ContentLoader/index.js +151 -0
- package/src/components/ContentLoader/utils.js +8 -0
- package/src/components/CountUp/index.js +67 -0
- package/src/components/Countries/SelectCountry.js +65 -0
- package/src/components/Countries/index.js +5 -0
- package/src/components/Countries/resources/countries.json +1746 -0
- package/src/components/Countries/resources/flags/images/ad.png +0 -0
- package/src/components/Countries/resources/flags/images/ae.png +0 -0
- package/src/components/Countries/resources/flags/images/af.png +0 -0
- package/src/components/Countries/resources/flags/images/ag.png +0 -0
- package/src/components/Countries/resources/flags/images/ai.png +0 -0
- package/src/components/Countries/resources/flags/images/al.png +0 -0
- package/src/components/Countries/resources/flags/images/am.png +0 -0
- package/src/components/Countries/resources/flags/images/ao.png +0 -0
- package/src/components/Countries/resources/flags/images/ar.png +0 -0
- package/src/components/Countries/resources/flags/images/as.png +0 -0
- package/src/components/Countries/resources/flags/images/at.png +0 -0
- package/src/components/Countries/resources/flags/images/au.png +0 -0
- package/src/components/Countries/resources/flags/images/aw.png +0 -0
- package/src/components/Countries/resources/flags/images/ax.png +0 -0
- package/src/components/Countries/resources/flags/images/az.png +0 -0
- package/src/components/Countries/resources/flags/images/ba.png +0 -0
- package/src/components/Countries/resources/flags/images/bb.png +0 -0
- package/src/components/Countries/resources/flags/images/bd.png +0 -0
- package/src/components/Countries/resources/flags/images/be.png +0 -0
- package/src/components/Countries/resources/flags/images/bf.png +0 -0
- package/src/components/Countries/resources/flags/images/bg.png +0 -0
- package/src/components/Countries/resources/flags/images/bh.png +0 -0
- package/src/components/Countries/resources/flags/images/bi.png +0 -0
- package/src/components/Countries/resources/flags/images/bj.png +0 -0
- package/src/components/Countries/resources/flags/images/bl.png +0 -0
- package/src/components/Countries/resources/flags/images/bm.png +0 -0
- package/src/components/Countries/resources/flags/images/bn.png +0 -0
- package/src/components/Countries/resources/flags/images/bo.png +0 -0
- package/src/components/Countries/resources/flags/images/bq.png +0 -0
- package/src/components/Countries/resources/flags/images/br.png +0 -0
- package/src/components/Countries/resources/flags/images/bs.png +0 -0
- package/src/components/Countries/resources/flags/images/bt.png +0 -0
- package/src/components/Countries/resources/flags/images/bw.png +0 -0
- package/src/components/Countries/resources/flags/images/by.png +0 -0
- package/src/components/Countries/resources/flags/images/bz.png +0 -0
- package/src/components/Countries/resources/flags/images/ca.png +0 -0
- package/src/components/Countries/resources/flags/images/cc.png +0 -0
- package/src/components/Countries/resources/flags/images/cd.png +0 -0
- package/src/components/Countries/resources/flags/images/cf.png +0 -0
- package/src/components/Countries/resources/flags/images/cg.png +0 -0
- package/src/components/Countries/resources/flags/images/ch.png +0 -0
- package/src/components/Countries/resources/flags/images/ci.png +0 -0
- package/src/components/Countries/resources/flags/images/ck.png +0 -0
- package/src/components/Countries/resources/flags/images/cl.png +0 -0
- package/src/components/Countries/resources/flags/images/cm.png +0 -0
- package/src/components/Countries/resources/flags/images/cn.png +0 -0
- package/src/components/Countries/resources/flags/images/co.png +0 -0
- package/src/components/Countries/resources/flags/images/cr.png +0 -0
- package/src/components/Countries/resources/flags/images/cu.png +0 -0
- package/src/components/Countries/resources/flags/images/cv.png +0 -0
- package/src/components/Countries/resources/flags/images/cw.png +0 -0
- package/src/components/Countries/resources/flags/images/cx.png +0 -0
- package/src/components/Countries/resources/flags/images/cy.png +0 -0
- package/src/components/Countries/resources/flags/images/cz.png +0 -0
- package/src/components/Countries/resources/flags/images/de.png +0 -0
- package/src/components/Countries/resources/flags/images/dj.png +0 -0
- package/src/components/Countries/resources/flags/images/dk.png +0 -0
- package/src/components/Countries/resources/flags/images/dm.png +0 -0
- package/src/components/Countries/resources/flags/images/do.png +0 -0
- package/src/components/Countries/resources/flags/images/dz.png +0 -0
- package/src/components/Countries/resources/flags/images/ec.png +0 -0
- package/src/components/Countries/resources/flags/images/ee.png +0 -0
- package/src/components/Countries/resources/flags/images/eg.png +0 -0
- package/src/components/Countries/resources/flags/images/eh.png +0 -0
- package/src/components/Countries/resources/flags/images/er.png +0 -0
- package/src/components/Countries/resources/flags/images/es.png +0 -0
- package/src/components/Countries/resources/flags/images/et.png +0 -0
- package/src/components/Countries/resources/flags/images/fi.png +0 -0
- package/src/components/Countries/resources/flags/images/fj.png +0 -0
- package/src/components/Countries/resources/flags/images/fk.png +0 -0
- package/src/components/Countries/resources/flags/images/fm.png +0 -0
- package/src/components/Countries/resources/flags/images/fo.png +0 -0
- package/src/components/Countries/resources/flags/images/fr.png +0 -0
- package/src/components/Countries/resources/flags/images/ga.png +0 -0
- package/src/components/Countries/resources/flags/images/gb.png +0 -0
- package/src/components/Countries/resources/flags/images/gd.png +0 -0
- package/src/components/Countries/resources/flags/images/ge.png +0 -0
- package/src/components/Countries/resources/flags/images/gf.png +0 -0
- package/src/components/Countries/resources/flags/images/gg.png +0 -0
- package/src/components/Countries/resources/flags/images/gh.png +0 -0
- package/src/components/Countries/resources/flags/images/gi.png +0 -0
- package/src/components/Countries/resources/flags/images/gm.png +0 -0
- package/src/components/Countries/resources/flags/images/gn.png +0 -0
- package/src/components/Countries/resources/flags/images/gp.png +0 -0
- package/src/components/Countries/resources/flags/images/gq.png +0 -0
- package/src/components/Countries/resources/flags/images/gr.png +0 -0
- package/src/components/Countries/resources/flags/images/gt.png +0 -0
- package/src/components/Countries/resources/flags/images/gu.png +0 -0
- package/src/components/Countries/resources/flags/images/gw.png +0 -0
- package/src/components/Countries/resources/flags/images/gy.png +0 -0
- package/src/components/Countries/resources/flags/images/hk.png +0 -0
- package/src/components/Countries/resources/flags/images/hn.png +0 -0
- package/src/components/Countries/resources/flags/images/hr.png +0 -0
- package/src/components/Countries/resources/flags/images/ht.png +0 -0
- package/src/components/Countries/resources/flags/images/hu.png +0 -0
- package/src/components/Countries/resources/flags/images/id.png +0 -0
- package/src/components/Countries/resources/flags/images/ie.png +0 -0
- package/src/components/Countries/resources/flags/images/il.png +0 -0
- package/src/components/Countries/resources/flags/images/im.png +0 -0
- package/src/components/Countries/resources/flags/images/in.png +0 -0
- package/src/components/Countries/resources/flags/images/io.png +0 -0
- package/src/components/Countries/resources/flags/images/iq.png +0 -0
- package/src/components/Countries/resources/flags/images/ir.png +0 -0
- package/src/components/Countries/resources/flags/images/is.png +0 -0
- package/src/components/Countries/resources/flags/images/it.png +0 -0
- package/src/components/Countries/resources/flags/images/je.png +0 -0
- package/src/components/Countries/resources/flags/images/jm.png +0 -0
- package/src/components/Countries/resources/flags/images/jo.png +0 -0
- package/src/components/Countries/resources/flags/images/jp.png +0 -0
- package/src/components/Countries/resources/flags/images/ke.png +0 -0
- package/src/components/Countries/resources/flags/images/kg.png +0 -0
- package/src/components/Countries/resources/flags/images/kh.png +0 -0
- package/src/components/Countries/resources/flags/images/ki.png +0 -0
- package/src/components/Countries/resources/flags/images/km.png +0 -0
- package/src/components/Countries/resources/flags/images/kn.png +0 -0
- package/src/components/Countries/resources/flags/images/kp.png +0 -0
- package/src/components/Countries/resources/flags/images/kr.png +0 -0
- package/src/components/Countries/resources/flags/images/ks.png +0 -0
- package/src/components/Countries/resources/flags/images/kw.png +0 -0
- package/src/components/Countries/resources/flags/images/ky.png +0 -0
- package/src/components/Countries/resources/flags/images/kz.png +0 -0
- package/src/components/Countries/resources/flags/images/la.png +0 -0
- package/src/components/Countries/resources/flags/images/lb.png +0 -0
- package/src/components/Countries/resources/flags/images/lc.png +0 -0
- package/src/components/Countries/resources/flags/images/li.png +0 -0
- package/src/components/Countries/resources/flags/images/lk.png +0 -0
- package/src/components/Countries/resources/flags/images/lr.png +0 -0
- package/src/components/Countries/resources/flags/images/ls.png +0 -0
- package/src/components/Countries/resources/flags/images/lt.png +0 -0
- package/src/components/Countries/resources/flags/images/lu.png +0 -0
- package/src/components/Countries/resources/flags/images/lv.png +0 -0
- package/src/components/Countries/resources/flags/images/ly.png +0 -0
- package/src/components/Countries/resources/flags/images/ma.png +0 -0
- package/src/components/Countries/resources/flags/images/mc.png +0 -0
- package/src/components/Countries/resources/flags/images/md.png +0 -0
- package/src/components/Countries/resources/flags/images/me.png +0 -0
- package/src/components/Countries/resources/flags/images/mf.png +0 -0
- package/src/components/Countries/resources/flags/images/mg.png +0 -0
- package/src/components/Countries/resources/flags/images/mh.png +0 -0
- package/src/components/Countries/resources/flags/images/mk.png +0 -0
- package/src/components/Countries/resources/flags/images/ml.png +0 -0
- package/src/components/Countries/resources/flags/images/mm.png +0 -0
- package/src/components/Countries/resources/flags/images/mn.png +0 -0
- package/src/components/Countries/resources/flags/images/mo.png +0 -0
- package/src/components/Countries/resources/flags/images/mp.png +0 -0
- package/src/components/Countries/resources/flags/images/mq.png +0 -0
- package/src/components/Countries/resources/flags/images/mr.png +0 -0
- package/src/components/Countries/resources/flags/images/ms.png +0 -0
- package/src/components/Countries/resources/flags/images/mt.png +0 -0
- package/src/components/Countries/resources/flags/images/mu.png +0 -0
- package/src/components/Countries/resources/flags/images/mv.png +0 -0
- package/src/components/Countries/resources/flags/images/mw.png +0 -0
- package/src/components/Countries/resources/flags/images/mx.png +0 -0
- package/src/components/Countries/resources/flags/images/my.png +0 -0
- package/src/components/Countries/resources/flags/images/mz.png +0 -0
- package/src/components/Countries/resources/flags/images/na.png +0 -0
- package/src/components/Countries/resources/flags/images/nc.png +0 -0
- package/src/components/Countries/resources/flags/images/ne.png +0 -0
- package/src/components/Countries/resources/flags/images/nf.png +0 -0
- package/src/components/Countries/resources/flags/images/ng.png +0 -0
- package/src/components/Countries/resources/flags/images/ni.png +0 -0
- package/src/components/Countries/resources/flags/images/nl.png +0 -0
- package/src/components/Countries/resources/flags/images/no.png +0 -0
- package/src/components/Countries/resources/flags/images/np.png +0 -0
- package/src/components/Countries/resources/flags/images/nr.png +0 -0
- package/src/components/Countries/resources/flags/images/nu.png +0 -0
- package/src/components/Countries/resources/flags/images/nz.png +0 -0
- package/src/components/Countries/resources/flags/images/om.png +0 -0
- package/src/components/Countries/resources/flags/images/pa.png +0 -0
- package/src/components/Countries/resources/flags/images/pe.png +0 -0
- package/src/components/Countries/resources/flags/images/pf.png +0 -0
- package/src/components/Countries/resources/flags/images/pg.png +0 -0
- package/src/components/Countries/resources/flags/images/ph.png +0 -0
- package/src/components/Countries/resources/flags/images/pk.png +0 -0
- package/src/components/Countries/resources/flags/images/pl.png +0 -0
- package/src/components/Countries/resources/flags/images/pm.png +0 -0
- package/src/components/Countries/resources/flags/images/pr.png +0 -0
- package/src/components/Countries/resources/flags/images/ps.png +0 -0
- package/src/components/Countries/resources/flags/images/pt.png +0 -0
- package/src/components/Countries/resources/flags/images/pw.png +0 -0
- package/src/components/Countries/resources/flags/images/py.png +0 -0
- package/src/components/Countries/resources/flags/images/qa.png +0 -0
- package/src/components/Countries/resources/flags/images/re.png +0 -0
- package/src/components/Countries/resources/flags/images/ro.png +0 -0
- package/src/components/Countries/resources/flags/images/rs.png +0 -0
- package/src/components/Countries/resources/flags/images/ru.png +0 -0
- package/src/components/Countries/resources/flags/images/rw.png +0 -0
- package/src/components/Countries/resources/flags/images/sa.png +0 -0
- package/src/components/Countries/resources/flags/images/sb.png +0 -0
- package/src/components/Countries/resources/flags/images/sc.png +0 -0
- package/src/components/Countries/resources/flags/images/sd.png +0 -0
- package/src/components/Countries/resources/flags/images/se.png +0 -0
- package/src/components/Countries/resources/flags/images/sg.png +0 -0
- package/src/components/Countries/resources/flags/images/sh.png +0 -0
- package/src/components/Countries/resources/flags/images/si.png +0 -0
- package/src/components/Countries/resources/flags/images/sj.png +0 -0
- package/src/components/Countries/resources/flags/images/sk.png +0 -0
- package/src/components/Countries/resources/flags/images/sl.png +0 -0
- package/src/components/Countries/resources/flags/images/sm.png +0 -0
- package/src/components/Countries/resources/flags/images/sn.png +0 -0
- package/src/components/Countries/resources/flags/images/so.png +0 -0
- package/src/components/Countries/resources/flags/images/sr.png +0 -0
- package/src/components/Countries/resources/flags/images/ss.png +0 -0
- package/src/components/Countries/resources/flags/images/st.png +0 -0
- package/src/components/Countries/resources/flags/images/sv.png +0 -0
- package/src/components/Countries/resources/flags/images/sx.png +0 -0
- package/src/components/Countries/resources/flags/images/sy.png +0 -0
- package/src/components/Countries/resources/flags/images/sz.png +0 -0
- package/src/components/Countries/resources/flags/images/tc.png +0 -0
- package/src/components/Countries/resources/flags/images/td.png +0 -0
- package/src/components/Countries/resources/flags/images/tg.png +0 -0
- package/src/components/Countries/resources/flags/images/th.png +0 -0
- package/src/components/Countries/resources/flags/images/tj.png +0 -0
- package/src/components/Countries/resources/flags/images/tk.png +0 -0
- package/src/components/Countries/resources/flags/images/tl.png +0 -0
- package/src/components/Countries/resources/flags/images/tm.png +0 -0
- package/src/components/Countries/resources/flags/images/tn.png +0 -0
- package/src/components/Countries/resources/flags/images/to.png +0 -0
- package/src/components/Countries/resources/flags/images/tr.png +0 -0
- package/src/components/Countries/resources/flags/images/tt.png +0 -0
- package/src/components/Countries/resources/flags/images/tv.png +0 -0
- package/src/components/Countries/resources/flags/images/tw.png +0 -0
- package/src/components/Countries/resources/flags/images/tz.png +0 -0
- package/src/components/Countries/resources/flags/images/ua.png +0 -0
- package/src/components/Countries/resources/flags/images/ug.png +0 -0
- package/src/components/Countries/resources/flags/images/us.png +0 -0
- package/src/components/Countries/resources/flags/images/uy.png +0 -0
- package/src/components/Countries/resources/flags/images/uz.png +0 -0
- package/src/components/Countries/resources/flags/images/va.png +0 -0
- package/src/components/Countries/resources/flags/images/vc.png +0 -0
- package/src/components/Countries/resources/flags/images/ve.png +0 -0
- package/src/components/Countries/resources/flags/images/vg.png +0 -0
- package/src/components/Countries/resources/flags/images/vi.png +0 -0
- package/src/components/Countries/resources/flags/images/vn.png +0 -0
- package/src/components/Countries/resources/flags/images/vu.png +0 -0
- package/src/components/Countries/resources/flags/images/wf.png +0 -0
- package/src/components/Countries/resources/flags/images/ws.png +0 -0
- package/src/components/Countries/resources/flags/images/ye.png +0 -0
- package/src/components/Countries/resources/flags/images/yt.png +0 -0
- package/src/components/Countries/resources/flags/images/za.png +0 -0
- package/src/components/Countries/resources/flags/images/zm.png +0 -0
- package/src/components/Countries/resources/flags/images/zw.png +0 -0
- package/src/components/Countries/resources/flags/index.js +255 -0
- package/src/components/Countries/utils.js +28 -0
- package/src/components/Datagrid/Accordion/AppleSwipeable.js +123 -0
- package/src/components/Datagrid/Accordion/Filters.js +186 -0
- package/src/components/Datagrid/Accordion/GmailSwipeable.js +85 -0
- package/src/components/Datagrid/Accordion/Row.js +295 -0
- package/src/components/Datagrid/Accordion/index.js +719 -0
- package/src/components/Datagrid/Accordion/utils.js +22 -0
- package/src/components/Datagrid/Actions/Header.js +58 -0
- package/src/components/Datagrid/Actions/index.js +104 -0
- package/src/components/Datagrid/Checkbox.js +40 -0
- package/src/components/Datagrid/Common/Common.js +1866 -0
- package/src/components/Datagrid/Common/TableData.js +245 -0
- package/src/components/Datagrid/Common/factory.js +9 -0
- package/src/components/Datagrid/Common/index.js +7 -0
- package/src/components/Datagrid/Common/session.js +20 -0
- package/src/components/Datagrid/Common/setQueryLimit.js +32 -0
- package/src/components/Datagrid/Footer/Footer.js +86 -0
- package/src/components/Datagrid/Footer/index.js +93 -0
- package/src/components/Datagrid/List.js +2 -0
- package/src/components/Datagrid/RenderType.js +53 -0
- package/src/components/Datagrid/RenderTypes/index.native.js +1 -0
- package/src/components/Datagrid/RenderTypes/index.web.js +10 -0
- package/src/components/Datagrid/RenderTypes/utils.js +5 -0
- package/src/components/Datagrid/Table/Cell.js +45 -0
- package/src/components/Datagrid/Table/Datatable.js +232 -0
- package/src/components/Datagrid/Table/index.js +446 -0
- package/src/components/Datagrid/Table/renderTable.js +664 -0
- package/src/components/Datagrid/factory.js +12 -0
- package/src/components/Datagrid/getComponent.js +26 -0
- package/src/components/Datagrid/index.js +43 -0
- package/src/components/Datagrid/utils.js +185 -0
- package/src/components/Date/DatePickerModal/index.js +10 -0
- package/src/components/Date/DatePickerModal/index.native.js +22 -0
- package/src/components/Date/PickerInput/TextInputMask.js +106 -0
- package/src/components/Date/PickerInput/index.js +253 -0
- package/src/components/Date/Time.js +154 -0
- package/src/components/Date/TimePickerModal/index.js +3 -0
- package/src/components/Date/TimePickerModal/index.native.js +21 -0
- package/src/components/Date/dictionary.js +26 -0
- package/src/components/Date/index.js +11 -0
- package/src/components/Date/utils.common.js +3 -0
- package/src/components/Date/utils.common.native.js +0 -0
- package/src/components/Date/utils.js +209 -0
- package/src/components/Dialog/AppBarDialog.js +41 -0
- package/src/components/Dialog/Dialog.js +377 -0
- package/src/components/Dialog/DialogActions.js +69 -0
- package/src/components/Dialog/DialogFooter.js +36 -0
- package/src/components/Dialog/DialogTitle.js +47 -0
- package/src/components/Dialog/DropdownAlert/Queue.js +28 -0
- package/src/components/Dialog/DropdownAlert/Utils.js +36 -0
- package/src/components/Dialog/DropdownAlert/assets/cancel.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/cancel@2x.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/cancel@3x.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/error.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/error@2x.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/error@3x.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/info.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/info@2x.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/info@3x.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/success.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/success@2x.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/success@3x.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/warn.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/warn@2x.png +0 -0
- package/src/components/Dialog/DropdownAlert/assets/warn@3x.png +0 -0
- package/src/components/Dialog/DropdownAlert/index.js +685 -0
- package/src/components/Dialog/Provider.js +75 -0
- package/src/components/Dialog/confirm/Alert/Alert.old/Alert.web.js +360 -0
- package/src/components/Dialog/confirm/Alert/Alert.old/index.js +2 -0
- package/src/components/Dialog/confirm/Alert/index.js +43 -0
- package/src/components/Dialog/confirm/index.js +12 -0
- package/src/components/Dialog/confirm/showConfirmOrAlertOrPrompt.js +145 -0
- package/src/components/Dialog/dialogs.js +70 -0
- package/src/components/Dialog/index.js +17 -0
- package/src/components/Dialog/showConfirmOrAlertOrPrompt.js +90 -0
- package/src/components/Dialog/style.css +103 -0
- package/src/components/Dialog/utils.js +33 -0
- package/src/components/Divider/index.js +44 -0
- package/src/components/Drawer/DrawerHeader.js +70 -0
- package/src/components/Drawer/DrawerItems/DrawerItem.js +88 -0
- package/src/components/Drawer/DrawerItems/DrawerSection.js +34 -0
- package/src/components/Drawer/DrawerItems/ExpandableItem.js +44 -0
- package/src/components/Drawer/DrawerItems/_DrawerItem.js +173 -0
- package/src/components/Drawer/DrawerItems/index.js +155 -0
- package/src/components/Drawer/DrawerItems/utils.js +107 -0
- package/src/components/Drawer/DrawerLayout/index.js +476 -0
- package/src/components/Drawer/NavigationView.js +90 -0
- package/src/components/Drawer/Provider.js +6 -0
- package/src/components/Drawer/index.js +455 -0
- package/src/components/Drawer/session.js +28 -0
- package/src/components/Drawer/utils.js +39 -0
- package/src/components/Dropdown/index.js +1317 -0
- package/src/components/Dropdown/utils.js +19 -0
- package/src/components/ErrorBoundary/ErrorMessage.js +107 -0
- package/src/components/ErrorBoundary/Provider.js +68 -0
- package/src/components/ErrorBoundary/index.js +64 -0
- package/src/components/Expandable/Item.js +159 -0
- package/src/components/Expandable/index.js +229 -0
- package/src/components/Fab/Fab.js +46 -0
- package/src/components/Fab/Group.js +143 -0
- package/src/components/Fab/GroupComponent.js +384 -0
- package/src/components/Fab/index.js +8 -0
- package/src/components/FadeInOut/index.js +70 -0
- package/src/components/Filter/filterTextTypes.js +1 -0
- package/src/components/Filter/index.js +570 -0
- package/src/components/Filter/session.js +18 -0
- package/src/components/Filter/utils.js +289 -0
- package/src/components/Form/Action.js +112 -0
- package/src/components/Form/Fields/Checkbox.js +29 -0
- package/src/components/Form/Fields/Color.js +21 -0
- package/src/components/Form/Fields/Date.js +24 -0
- package/src/components/Form/Fields/Field.js +1048 -0
- package/src/components/Form/Fields/Html.js +21 -0
- package/src/components/Form/Fields/IdField.js +131 -0
- package/src/components/Form/Fields/Image.js +65 -0
- package/src/components/Form/Fields/PieceField.js +143 -0
- package/src/components/Form/Fields/Radio.js +31 -0
- package/src/components/Form/Fields/SelectCountry.js +12 -0
- package/src/components/Form/Fields/SelectField.js +147 -0
- package/src/components/Form/Fields/SelectStructData.js +24 -0
- package/src/components/Form/Fields/SelectTableData.js +24 -0
- package/src/components/Form/Fields/SelectTheme.js +11 -0
- package/src/components/Form/Fields/Slider.js +32 -0
- package/src/components/Form/Fields/Switch.js +34 -0
- package/src/components/Form/Fields/Tel.js +21 -0
- package/src/components/Form/Fields/TextField.js +44 -0
- package/src/components/Form/Fields/Time.js +28 -0
- package/src/components/Form/Fields/index.js +52 -0
- package/src/components/Form/Fields/selectPromptField.js +59 -0
- package/src/components/Form/Fields/sprintf.js +42 -0
- package/src/components/Form/Fields/sprintfSelectors.js +117 -0
- package/src/components/Form/Fields/utils.js +8 -0
- package/src/components/Form/Form.js +221 -0
- package/src/components/Form/FormData/Dialog.js +116 -0
- package/src/components/Form/FormData/DialogProvider.js +117 -0
- package/src/components/Form/FormData/FormData.js +403 -0
- package/src/components/Form/FormData/FormDataActions.js +155 -0
- package/src/components/Form/FormData/componentsTypes.js +117 -0
- package/src/components/Form/FormData/index.js +15 -0
- package/src/components/Form/FormData/utils.js +111 -0
- package/src/components/Form/KeyboardAvoidingView.js +23 -0
- package/src/components/Form/KeyboardEventHandler/index.js +115 -0
- package/src/components/Form/KeyboardEventHandler/keyEvents.js +139 -0
- package/src/components/Form/KeyboardEventHandler/readMe.md +1 -0
- package/src/components/Form/List/List.js +794 -0
- package/src/components/Form/List/index.js +2 -0
- package/src/components/Form/index.js +14 -0
- package/src/components/Form/utils/FormsManager.js +101 -0
- package/src/components/Form/utils/index.js +8 -0
- package/src/components/Form/utils/keyboardEvents.js +8 -0
- package/src/components/Form/utils/keyboardShortcuts.js +57 -0
- package/src/components/Grid/Cell.js +108 -0
- package/src/components/Grid/Col.js +30 -0
- package/src/components/Grid/Grid.js +35 -0
- package/src/components/Grid/Row.js +30 -0
- package/src/components/Grid/index.js +11 -0
- package/src/components/Hashtag/index.js +119 -0
- package/src/components/HeavyScreen/index.js +52 -0
- package/src/components/HeavyScreen/utils.js +36 -0
- package/src/components/HelperText/index.js +36 -0
- package/src/components/Html/AutoSizedImage.js +56 -0
- package/src/components/Html/HtmlToElement.js +173 -0
- package/src/components/Html/View.js +166 -0
- package/src/components/Icon/Checkbox.js +83 -0
- package/src/components/Icon/CrossFadeIcon.js +133 -0
- package/src/components/Icon/Icon.js +52 -0
- package/src/components/Icon/IconButton.js +155 -0
- package/src/components/Icon/MaterialCommunityIcon.js +93 -0
- package/src/components/Icon/index.js +10 -0
- package/src/components/Icon/utils.js +15 -0
- package/src/components/Image/Editor/index copy.js +42 -0
- package/src/components/Image/Editor/index.js +52 -0
- package/src/components/Image/index.js +309 -0
- package/src/components/InlineIndicator/Select.js +58 -0
- package/src/components/InlineIndicator/index.js +156 -0
- package/src/components/Label/index.js +104 -0
- package/src/components/Link/Browser.js +17 -0
- package/src/components/Link/getUrlCallback.js +10 -0
- package/src/components/Link/index.js +38 -0
- package/src/components/List/BigList.js +44 -0
- package/src/components/List/Common.js +233 -0
- package/src/components/List/FlashList.js +29 -0
- package/src/components/List/FlatList.js +34 -0
- package/src/components/List/RecyclerView.js +83 -0
- package/src/components/List/index.js +12 -0
- package/src/components/List/utils.js +23 -0
- package/src/components/Logo/Logo.js +98 -0
- package/src/components/Logo/Progress.js +21 -0
- package/src/components/Logo/index.js +3 -0
- package/src/components/Menu/Item.js +203 -0
- package/src/components/Menu/Menu.js +590 -0
- package/src/components/Menu/index.js +118 -0
- package/src/components/Menu/utils.js +81 -0
- package/src/components/Modal/index.js +212 -0
- package/src/components/NewLine/index.js +4 -0
- package/src/components/NewLine/index.web.js +3 -0
- package/src/components/Paragraph/index.js +32 -0
- package/src/components/PasswordText/index.js +29 -0
- package/src/components/PhoneInput/PhoneNumber.js +121 -0
- package/src/components/PhoneInput/country.js +54 -0
- package/src/components/PhoneInput/index.js +217 -0
- package/src/components/PhoneInput/numberType.json +14 -0
- package/src/components/PhoneInput/styles.js +52 -0
- package/src/components/Portal/index.js +5 -0
- package/src/components/Preloader/index.js +227 -0
- package/src/components/Progress/LoadingDots.js +126 -0
- package/src/components/Progress/index.js +18 -0
- package/src/components/Radio/index.js +164 -0
- package/src/components/ReadMoreText/index.js +120 -0
- package/src/components/ScrollView/index.js +34 -0
- package/src/components/Signature/Panel.js +246 -0
- package/src/components/Signature/index.js +69 -0
- package/src/components/SimpleSelect/index.js +483 -0
- package/src/components/Slider/Slider.js +770 -0
- package/src/components/Slider/index.js +144 -0
- package/src/components/Slider/styles.js +39 -0
- package/src/components/SplashScreen/index.js +194 -0
- package/src/components/SplashScreen/styles.js +74 -0
- package/src/components/StatusBar/Component/index.js +5 -0
- package/src/components/StatusBar/Component/index.web.js +88 -0
- package/src/components/StatusBar/index.js +7 -0
- package/src/components/Surface/Elevations.js +218 -0
- package/src/components/Surface/index.js +22 -0
- package/src/components/Swipeable/Swipe.js +225 -0
- package/src/components/Swipeable/SwipeableGesture.js +77 -0
- package/src/components/Swipeable/index.js +5 -0
- package/src/components/Swiper/Controls.js +277 -0
- package/src/components/Swiper/index.js +463 -0
- package/src/components/Swiper/nodeType.js +8 -0
- package/src/components/Swiper/renderNode.js +21 -0
- package/src/components/Switch/index.js +172 -0
- package/src/components/Tab/TabContent.js +72 -0
- package/src/components/Tab/TabItem.js +112 -0
- package/src/components/Tab/TabItems.js +246 -0
- package/src/components/Tab/index.js +114 -0
- package/src/components/Table/index.js +383 -0
- package/src/components/TextField/Affix.js +18 -0
- package/src/components/TextField/index.js +749 -0
- package/src/components/TextField/utils.js +64 -0
- package/src/components/Tooltip/Popover/index.js +254 -0
- package/src/components/Tooltip/Popover/index.web.js +60 -0
- package/src/components/Tooltip/index.js +42 -0
- package/src/components/TouchableRipple/index.js +0 -0
- package/src/components/View/index.js +49 -0
- package/src/components/WebView/Component/index.native.js +2 -0
- package/src/components/WebView/Component/index.web.js +154 -0
- package/src/components/WebView/Component/postMock.html +21 -0
- package/src/components/WebView/index.js +79 -0
- package/src/index.js +166 -0
- package/src/layouts/AppBar/index.js +59 -0
- package/src/layouts/AppBar/utils.js +12 -0
- package/src/layouts/Fab/actions.js +5 -0
- package/src/layouts/Fab/index.js +60 -0
- package/src/layouts/Fab/utils.js +25 -0
- package/src/layouts/Footer/index.js +8 -0
- package/src/layouts/Screen/FormData/FormData.js +103 -0
- package/src/layouts/Screen/FormData/List.js +83 -0
- package/src/layouts/Screen/FormData/index.js +3 -0
- package/src/layouts/Screen/Screen.js +173 -0
- package/src/layouts/Screen/index.js +11 -0
- package/src/media/Assets/index.js +6 -0
- package/src/media/Assets/utils.js +28 -0
- package/src/media/camera.js +1 -0
- package/src/media/camera.native.js +4 -0
- package/src/media/camera.web.js +9 -0
- package/src/media/file-system/index.js +20 -0
- package/src/media/file-system/utils/index.js +32 -0
- package/src/media/file-system/utils/utils.js +0 -0
- package/src/media/file-system/utils.native/index.js +1 -0
- package/src/media/index.js +137 -0
- package/src/navigation/Drawer/ProfilAvatar/defaultAvatar.js +1 -0
- package/src/navigation/Drawer/ProfilAvatar/index.js +142 -0
- package/src/navigation/Drawer/ProfilAvatar/style.css +18 -0
- package/src/navigation/Drawer/index.js +81 -0
- package/src/navigation/Drawer/items/SidebarFeedsItems.js +0 -0
- package/src/navigation/Drawer/items/SyncDataItem.js +20 -0
- package/src/navigation/Drawer/items/index.js +23 -0
- package/src/navigation/Drawer/items/items.js +31 -0
- package/src/navigation/Drawer/utils.js +18 -0
- package/src/navigation/index.js +45 -0
- package/src/navigation/utils.js +1 -0
- package/src/screens/Auth/index.js +31 -0
- package/src/screens/Auth/routes.js +9 -0
- package/src/screens/Auth/utils.js +5 -0
- package/src/screens/index.js +201 -0
- package/src/screens/mainScreens.js +4 -0
- package/src/screens/utils.js +13 -0
- package/webpack.config.js +31 -0
- package/workflows/release-package.yml +33 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import Dialog from "./Dialog";
|
|
2
|
+
import React from "$react";
|
|
3
|
+
import {defaultObj,defaultBool} from "$utils";
|
|
4
|
+
|
|
5
|
+
let dialogRef = null;
|
|
6
|
+
|
|
7
|
+
export const createProviderRef = (cb)=>{
|
|
8
|
+
const ref = React.useRef(null);
|
|
9
|
+
React.useEffect(()=>{
|
|
10
|
+
if(typeof cb =='function'){
|
|
11
|
+
cb(ref.current);
|
|
12
|
+
} else if(cb !== false) {
|
|
13
|
+
dialogRef = ref.current;
|
|
14
|
+
}
|
|
15
|
+
},[ref.current])
|
|
16
|
+
return ref;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const getProviderRef = ()=> dialogRef;
|
|
20
|
+
|
|
21
|
+
export const open = (props,innerProviderRef)=>{
|
|
22
|
+
innerProviderRef = innerProviderRef || getProviderRef();
|
|
23
|
+
if(!innerProviderRef) return false;
|
|
24
|
+
if(innerProviderRef.current && innerProviderRef.current.open){
|
|
25
|
+
innerProviderRef = innerProviderRef.current;
|
|
26
|
+
}
|
|
27
|
+
if(innerProviderRef && typeof innerProviderRef.open =='function') {
|
|
28
|
+
return innerProviderRef.open(props);
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const close = (props,innerProviderRef)=>{
|
|
34
|
+
innerProviderRef = innerProviderRef || getProviderRef();
|
|
35
|
+
if(!innerProviderRef) return false;
|
|
36
|
+
if(innerProviderRef.current && innerProviderRef.current.open){
|
|
37
|
+
innerProviderRef = innerProviderRef.current;
|
|
38
|
+
}
|
|
39
|
+
if(innerProviderRef && typeof innerProviderRef.close =='function') return innerProviderRef.close(props);
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const Provider = React.forwardRef((props,innerRef)=>{
|
|
44
|
+
const {onDismiss,beforeOpen} = props;
|
|
45
|
+
const ref = innerRef || createProviderRef();
|
|
46
|
+
const [state,setState] = React.useState({
|
|
47
|
+
visible : defaultBool(props.visible,false),
|
|
48
|
+
});
|
|
49
|
+
const [context] = React.useState({
|
|
50
|
+
open : (props)=>{
|
|
51
|
+
let bfOpen = typeof state.beforeOpen == 'function'? state.beforeOpen : typeof beforeOpen =='function'? beforeOpen : x=>true;
|
|
52
|
+
if(bfOpen(state) === false) return;
|
|
53
|
+
return setState({onDismiss:undefined,...defaultObj(props),visible:true})
|
|
54
|
+
},
|
|
55
|
+
close : (props)=>{
|
|
56
|
+
return setState({...state,...props,visible:false});
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
React.setRef(ref,context);
|
|
60
|
+
return <Dialog {...props} {...state} controlled onDismiss = {(e)=>{
|
|
61
|
+
setState({...state,visible:false});
|
|
62
|
+
if(typeof state.onDismiss =='function'){
|
|
63
|
+
state.onDismiss({context,state});
|
|
64
|
+
} else if(onDismiss){
|
|
65
|
+
onDismiss({context,state});
|
|
66
|
+
}
|
|
67
|
+
}}/>
|
|
68
|
+
});
|
|
69
|
+
Provider.displayName = "DialogProviderComponent";
|
|
70
|
+
|
|
71
|
+
export default Provider;
|
|
72
|
+
|
|
73
|
+
Provider.open = open;
|
|
74
|
+
|
|
75
|
+
Provider.close = close;
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import {uniqid,defaultStr,defaultObj} from "$utils";
|
|
2
|
+
import {addClassName, removeClassName} from "$utils/dom";
|
|
3
|
+
import theme from "$theme";
|
|
4
|
+
import {MAX_WIDTH} from "$ecomponents/Dialog/utils";
|
|
5
|
+
import {Elevations} from "$ecomponents/Surface";
|
|
6
|
+
import { StyleSheet } from "react-native";
|
|
7
|
+
import {Dimensions} from "react-native";
|
|
8
|
+
const domId = uniqid("alter-7-dom-id");
|
|
9
|
+
(function (Alert7) {
|
|
10
|
+
|
|
11
|
+
var _TYPE_DEFAULT = 0;
|
|
12
|
+
var _TYPE_CONFIRM = 1;
|
|
13
|
+
(function () {
|
|
14
|
+
Alert7 = window.Alert7 = Alert7 || _getInitialClass();
|
|
15
|
+
}());
|
|
16
|
+
|
|
17
|
+
function _getInitialClass() {
|
|
18
|
+
|
|
19
|
+
Alert7Class.TYPE_DEFAULT = _TYPE_DEFAULT;
|
|
20
|
+
Alert7Class.TYPE_CONFIRM = _TYPE_CONFIRM;
|
|
21
|
+
Alert7Class.alert = _staticAlert;
|
|
22
|
+
Alert7Class.break = _staticBreak;
|
|
23
|
+
_appendCSS();
|
|
24
|
+
return Alert7Class;
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function _staticAlert(_title, _message) {
|
|
29
|
+
|
|
30
|
+
var _tempAlert = new Alert7Class();
|
|
31
|
+
var _args = [].splice.call(arguments, 2);
|
|
32
|
+
_tempAlert.setTitle(_title);
|
|
33
|
+
_tempAlert.setMessage(_message);
|
|
34
|
+
while ( _args.length ) _tempAlert.addAction(_args.shift(), _args.shift());
|
|
35
|
+
_tempAlert.present();
|
|
36
|
+
return _tempAlert;
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function _staticBreak() {
|
|
41
|
+
|
|
42
|
+
throw null;
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function _appendCSS() {
|
|
47
|
+
let maxWidth = MAX_WIDTH;
|
|
48
|
+
const backgroundColor = theme.colors.surface+";",color=theme.colors.text+";";
|
|
49
|
+
const {width:windowWidth} = Dimensions.get("window");
|
|
50
|
+
if(typeof windowWidth <= maxWidth){
|
|
51
|
+
maxWidth = windowWidth*90/100;
|
|
52
|
+
}
|
|
53
|
+
var _styleElement = document.getElementById(domId);
|
|
54
|
+
if(!_styleElement){
|
|
55
|
+
_styleElement = document.createElement("style");
|
|
56
|
+
document.getElementsByTagName("head")[0].appendChild(_styleElement);
|
|
57
|
+
}
|
|
58
|
+
_styleElement.id = domId;
|
|
59
|
+
_styleElement.innerHTML = "" +
|
|
60
|
+
"#Alert7," +
|
|
61
|
+
"#Alert7::after," +
|
|
62
|
+
"#Alert7 .alert7-container {" +
|
|
63
|
+
"vertical-align: middle;" +
|
|
64
|
+
"}" +
|
|
65
|
+
"" +
|
|
66
|
+
"#Alert7 {" +
|
|
67
|
+
"position: fixed;" +
|
|
68
|
+
"top: 0;" +
|
|
69
|
+
"bottom: 0;" +
|
|
70
|
+
"left: 0;" +
|
|
71
|
+
"right: 0;" +
|
|
72
|
+
"z-index: 1001;" +
|
|
73
|
+
"background-color: " +theme.colors.backdrop+";"+
|
|
74
|
+
"text-align: center;" +
|
|
75
|
+
"font-size: 16px;" +
|
|
76
|
+
"-webkit-user-select: none;" +
|
|
77
|
+
" -moz-user-select: none;" +
|
|
78
|
+
" -ms-user-select: none;" +
|
|
79
|
+
" user-select: none;" +
|
|
80
|
+
"}" +
|
|
81
|
+
"" +
|
|
82
|
+
"#Alert7.alert7-confirm {" +
|
|
83
|
+
"}" +
|
|
84
|
+
"" +
|
|
85
|
+
"#Alert7::after," +
|
|
86
|
+
"#Alert7 .alert7-container {" +
|
|
87
|
+
"display: inline-block;" +
|
|
88
|
+
"}" +
|
|
89
|
+
"" +
|
|
90
|
+
"#Alert7::after {" +
|
|
91
|
+
"height: 100%;" +
|
|
92
|
+
"content: '';" +
|
|
93
|
+
"}" +
|
|
94
|
+
"#Alert7 .alert7-container {" +
|
|
95
|
+
"min-width:240px;"+
|
|
96
|
+
"max-width: "+maxWidth+(typeof maxWidth =='number'? "px":"")+";" +
|
|
97
|
+
"width: auto;" +
|
|
98
|
+
"box-sizing: border-box;" +
|
|
99
|
+
"background-color:"+backgroundColor+
|
|
100
|
+
"border-radius: 0px;" +
|
|
101
|
+
"max-height: calc(100% - 64px);"+
|
|
102
|
+
"overflow-y: auto;"+
|
|
103
|
+
"color:"+color+
|
|
104
|
+
"box-shadow:rgb(0 0 0 / 20%) 0px 11px 15px -7px, rgb(0 0 0 / 14%) 0px 24px 38px 3px, rgb(0 0 0 / 12%) 0px 9px 46px 8px"+
|
|
105
|
+
"}" +
|
|
106
|
+
"" +
|
|
107
|
+
"#Alert7 .alert7-title," +
|
|
108
|
+
"#Alert7 .alert7-message {" +
|
|
109
|
+
"font-family: Roboto, Helvetica, Arial, sans-serif;"+
|
|
110
|
+
"line-height: 1.6;"+
|
|
111
|
+
"letter-spacing: 0.0075em;"+
|
|
112
|
+
"padding:10px;"+
|
|
113
|
+
"text-align:left;"+
|
|
114
|
+
"}" +
|
|
115
|
+
"" +
|
|
116
|
+
"#Alert7 .alert7-title {" +
|
|
117
|
+
"font-size: 1.1em;" +
|
|
118
|
+
"font-weight: bolder;" +
|
|
119
|
+
//"line-height: 2rem;" +
|
|
120
|
+
"}" +
|
|
121
|
+
"" +
|
|
122
|
+
"#Alert7 .alert7-message {" +
|
|
123
|
+
"padding-bottom: 14px;" +
|
|
124
|
+
"font-size: 0.9em;" +
|
|
125
|
+
"}" +
|
|
126
|
+
"" +
|
|
127
|
+
"#Alert7 .alert7-actions {" +
|
|
128
|
+
"width:100%;"+
|
|
129
|
+
"text-align:right;"+
|
|
130
|
+
"padding-bottom:7px"+
|
|
131
|
+
"}" +
|
|
132
|
+
"" +
|
|
133
|
+
"#Alert7 .alert7-actions button.alert7-action-item {" +
|
|
134
|
+
"display: inline-block;"+
|
|
135
|
+
"position: relative;"+
|
|
136
|
+
"box-sizing: border-box;"+
|
|
137
|
+
"-webkit-tap-highlight-color: transparent;"+
|
|
138
|
+
"background-color: transparent;"+
|
|
139
|
+
"outline: 0px;"+
|
|
140
|
+
"border: 0px;"+
|
|
141
|
+
"margin: 0px;"+
|
|
142
|
+
"cursor: pointer;"+
|
|
143
|
+
"user-select: none;"+
|
|
144
|
+
"vertical-align: middle;"+
|
|
145
|
+
"appearance: none;"+
|
|
146
|
+
"text-decoration: none;"+
|
|
147
|
+
"font-family: Roboto, Helvetica, Arial, sans-serif;"+
|
|
148
|
+
"font-weight: 500;"+
|
|
149
|
+
"font-size: 0.875rem;"+
|
|
150
|
+
"line-height: 1.75;"+
|
|
151
|
+
"letter-spacing: 0.02857em;"+
|
|
152
|
+
"text-transform: uppercase;"+
|
|
153
|
+
"min-width: 64px;"+
|
|
154
|
+
"padding: 6px 8px;"+
|
|
155
|
+
"margin-right:7px;"+
|
|
156
|
+
"margin-bottom:4px;"+
|
|
157
|
+
"border-radius: 4px;"+
|
|
158
|
+
"transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"+
|
|
159
|
+
"}" +
|
|
160
|
+
"" +
|
|
161
|
+
"#Alert7.alert7-confirm .alert7-actions button.alert7-action-item:first-of-type:last-of-type {" +
|
|
162
|
+
"width: 100%;" +
|
|
163
|
+
"}" +
|
|
164
|
+
"" +
|
|
165
|
+
"#Alert7.alert7-confirm .alert7-actions button.alert7-action-item:nth-of-type(n+3) {" +
|
|
166
|
+
"display: none;" +
|
|
167
|
+
"}" +
|
|
168
|
+
"@media only screen and (min-width: "+(MAX_WIDTH)+"px) {"+
|
|
169
|
+
"#Alert7 .alert7-container {"+
|
|
170
|
+
"max-width:"+(MAX_WIDTH-20)+"px!important;"+
|
|
171
|
+
"}"+
|
|
172
|
+
"}"+
|
|
173
|
+
"@media only screen and (max-width: "+MAX_WIDTH+"px) {"+
|
|
174
|
+
"#Alert7 .alert7-container {"+
|
|
175
|
+
"max-width:90%!important;"+
|
|
176
|
+
"}"+
|
|
177
|
+
"}"+
|
|
178
|
+
"";
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function Alert7Class() {
|
|
182
|
+
|
|
183
|
+
this.title = "";
|
|
184
|
+
this.message = "";
|
|
185
|
+
this.type = _TYPE_DEFAULT;
|
|
186
|
+
this.actions = [];
|
|
187
|
+
_createAlertElement(this);
|
|
188
|
+
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
function _createAlertElement(_self) {
|
|
192
|
+
|
|
193
|
+
_self.instanceElement = document.createElement("div");
|
|
194
|
+
_self.instanceElement.id = "Alert7";
|
|
195
|
+
_self.alertElement = document.createElement("div");
|
|
196
|
+
_self.alertElement.className = "alert7-container";
|
|
197
|
+
_self.instanceElement.appendChild(_self.alertElement);
|
|
198
|
+
_self.titleElement = document.createElement("div");
|
|
199
|
+
_self.titleElement.className = "alert7-title";
|
|
200
|
+
_self.alertElement.appendChild(_self.titleElement);
|
|
201
|
+
_self.messageElement = document.createElement("div");
|
|
202
|
+
_self.messageElement.className = "alert7-message";
|
|
203
|
+
_self.alertElement.appendChild(_self.messageElement);
|
|
204
|
+
_self.actionsElement = document.createElement("div");
|
|
205
|
+
_self.actionsElement.className = "alert7-actions";
|
|
206
|
+
_self.alertElement.appendChild(_self.actionsElement);
|
|
207
|
+
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
Alert7Class.prototype.setTitle = function (_text) {
|
|
211
|
+
|
|
212
|
+
this.title = _text || "";
|
|
213
|
+
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
Alert7Class.prototype.setMessage = function (_text) {
|
|
217
|
+
this.message = _text || "";
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
Alert7Class.prototype.setType = function (_enum) {
|
|
221
|
+
|
|
222
|
+
this.type = _enum || _TYPE_DEFAULT;
|
|
223
|
+
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
Alert7Class.prototype.addAction = function (_text, _handler) {
|
|
227
|
+
|
|
228
|
+
this.actions.push({
|
|
229
|
+
text: _text,
|
|
230
|
+
handler: _handler
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
Alert7Class.prototype.present = function () {
|
|
236
|
+
this.titleElement.innerText = this.titleElement.textContent = this.title;
|
|
237
|
+
const isDark = theme.isDark();
|
|
238
|
+
_appendCSS();
|
|
239
|
+
removeClassName(this.titleElement,"alert7-title");
|
|
240
|
+
if(typeof this.title =="string" && this.title.length){
|
|
241
|
+
addClassName(this.titleElement,"alert7-title");
|
|
242
|
+
this.titleElement.style.background = isDark?theme.colors.surface : theme.colors.primary;
|
|
243
|
+
this.titleElement.style.color = isDark?theme.colors.surfaceText : theme.colors.primaryText;
|
|
244
|
+
this.titleElement.style.borderBottom = "1px solid "+theme.colors.divider;
|
|
245
|
+
}
|
|
246
|
+
this.messageElement.innerHTML = this.messageElement.textContent = defaultStr(this.message).replaceAll("\n","</br>");
|
|
247
|
+
switch ( this.type ) {
|
|
248
|
+
case _TYPE_CONFIRM: this.instanceElement.classList.add("alert7-confirm");
|
|
249
|
+
}
|
|
250
|
+
if ( !this.actions.length ) this.actions.push({});
|
|
251
|
+
_createActions(this);
|
|
252
|
+
document.querySelector("body").appendChild(this.instanceElement);
|
|
253
|
+
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
Alert7Class.prototype.dismiss = function () {
|
|
257
|
+
|
|
258
|
+
if ( !this.instanceElement.parentNode ) return;
|
|
259
|
+
this.instanceElement.parentNode.removeChild(this.instanceElement);
|
|
260
|
+
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
function _createActions(_self) {
|
|
264
|
+
|
|
265
|
+
var _actions = _self.actions;
|
|
266
|
+
var _numOfAction = _actions.length;
|
|
267
|
+
var _tempActionElement;
|
|
268
|
+
var _datum;
|
|
269
|
+
_self.actionsElement.innerHTML = "";
|
|
270
|
+
while ( _numOfAction-- ) {
|
|
271
|
+
_datum = _actions[_numOfAction];
|
|
272
|
+
const button = _datum.text;
|
|
273
|
+
if(typeof button =="text"){
|
|
274
|
+
button = {text:button};
|
|
275
|
+
} else button = defaultObj(button);
|
|
276
|
+
const text = defaultStr(button.text,button.label);
|
|
277
|
+
if(!text) _numOfAction--;
|
|
278
|
+
_tempActionElement = document.createElement("button");
|
|
279
|
+
_tempActionElement.className = "alert7-action-item";
|
|
280
|
+
_tempActionElement.innerText = _tempActionElement.textContent = text;// _datum.text || "OK";
|
|
281
|
+
const stylesInput = StyleSheet.flatten(button.style);
|
|
282
|
+
const style = _tempActionElement.style;
|
|
283
|
+
for(let i in stylesInput){
|
|
284
|
+
if(style.hasOwnProperty(i)){
|
|
285
|
+
style[i] = stylesInput[i];
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
_tempActionElement.addEventListener("click", _onClick(_datum.handler), false);
|
|
289
|
+
_self.actionsElement.insertBefore(_tempActionElement, _self.actionsElement.firstChild);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
function _onClick(_handler) {
|
|
293
|
+
return function () {
|
|
294
|
+
try {
|
|
295
|
+
if ( _handler ) _handler();
|
|
296
|
+
_self.dismiss();
|
|
297
|
+
} catch (_error) {}
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
}(window.Alert7));
|
|
304
|
+
|
|
305
|
+
function escapeHTML(string) {
|
|
306
|
+
let pre = document.createElement('pre');
|
|
307
|
+
let text = document.createTextNode(string);
|
|
308
|
+
pre.appendChild(text);
|
|
309
|
+
return pre.innerHTML;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
const Alert = {
|
|
313
|
+
alert(title, message='', callbackOrButtons=[{text:'OK', onPress : (f) => f}]) {
|
|
314
|
+
let alert = new Alert7();
|
|
315
|
+
alert.setTitle(title);
|
|
316
|
+
alert.setMessage(escapeHTML(message));
|
|
317
|
+
if (typeof callbackOrButtons === 'function') {
|
|
318
|
+
const callback = callbackOrButtons;
|
|
319
|
+
alert.addAction('OK', callback);
|
|
320
|
+
} else {
|
|
321
|
+
const buttons = callbackOrButtons;
|
|
322
|
+
buttons.forEach((button) => {
|
|
323
|
+
alert.addAction(button, button.onPress || (f=>f));
|
|
324
|
+
});
|
|
325
|
+
if (buttons.length === 2) {
|
|
326
|
+
alert.setType(Alert7.TYPE_CONFIRM);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
alert.present();
|
|
330
|
+
},
|
|
331
|
+
|
|
332
|
+
prompt(title, message='', callbackOrButtons=(f) => f, type='plain-text', defaultValue='') {
|
|
333
|
+
const alertPromptId = uniqid('alert7-prompt-input')
|
|
334
|
+
function getInputCallback(callback) {
|
|
335
|
+
return () => {
|
|
336
|
+
const text = document.getElementById(alertPromptId).value;
|
|
337
|
+
return callback(text);
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
let alert = new Alert7();
|
|
342
|
+
alert.setTitle(title);
|
|
343
|
+
const msg = `<br/><input type="${(type==='secure-text'||type==='login-password')?'password':'text'}" value="${defaultValue}" id=${alertPromptId} style="width: 100%; height: 18px; border: 1px solid #ccc;" />`;
|
|
344
|
+
alert.setMessage(escapeHTML(message) + msg);
|
|
345
|
+
if (typeof callbackOrButtons === 'function') {
|
|
346
|
+
const callback = callbackOrButtons;
|
|
347
|
+
alert.addAction('OK', getInputCallback(callback));
|
|
348
|
+
} else {
|
|
349
|
+
const buttons = callbackOrButtons;
|
|
350
|
+
buttons.forEach((button) => {
|
|
351
|
+
alert.addAction(button, getInputCallback(button.onPress || (f=>f)));
|
|
352
|
+
});
|
|
353
|
+
if (buttons.length === 2) {
|
|
354
|
+
alert.setType(Alert7.TYPE_CONFIRM);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
alert.present();
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
export default Alert;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import DialogProvider from "../../Provider";
|
|
2
|
+
import React from "$react";
|
|
3
|
+
|
|
4
|
+
let SimpleSelect = null;
|
|
5
|
+
|
|
6
|
+
const dialogRef = React.createRef(null);
|
|
7
|
+
|
|
8
|
+
const onAlertRequestClose = (args)=>{
|
|
9
|
+
close(args);
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function open(props){
|
|
14
|
+
return DialogProvider.open({
|
|
15
|
+
...props,
|
|
16
|
+
isAlert : true,
|
|
17
|
+
onAlertRequestClose,
|
|
18
|
+
},dialogRef);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const close = (props)=>{
|
|
22
|
+
return DialogProvider.close(props,dialogRef);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const Provider = ({SimpleSelect:customSimpleSelect,...props})=>{
|
|
26
|
+
if(!SimpleSelect && customSimpleSelect){
|
|
27
|
+
SimpleSelect = customSimpleSelect;
|
|
28
|
+
}
|
|
29
|
+
return <DialogProvider {...props} isAlert onAlertRequestClose={onAlertRequestClose} ref={dialogRef}/>
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const Alert = {
|
|
33
|
+
open,
|
|
34
|
+
close,
|
|
35
|
+
get SimpleSelect (){
|
|
36
|
+
return SimpleSelect
|
|
37
|
+
},
|
|
38
|
+
alert : open,
|
|
39
|
+
prompt : (args)=>{
|
|
40
|
+
return open({...defaultObj(args),prompt:true});
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
export default Alert;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import showConfirmOrAlertOrPrompt from "./showConfirmOrAlertOrPrompt";
|
|
2
|
+
export const showAlert = (props,cb)=>{
|
|
3
|
+
return showConfirmOrAlertOrPrompt({...defaultObj(props),alert:true,confirm:false,prompt:false},cb)
|
|
4
|
+
}
|
|
5
|
+
export const showConfirm = (props,cb)=>{
|
|
6
|
+
return showConfirmOrAlertOrPrompt({...defaultObj(props),alert:false,confirm:true,prompt:false},cb)
|
|
7
|
+
}
|
|
8
|
+
export const showPrompt = (props,cb)=>{
|
|
9
|
+
return showConfirmOrAlertOrPrompt({...defaultObj(props),prompt:true,alert:false,confirm:false},cb)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default showConfirm;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import {isDecimal,defaultObj,defaultStr,defaultVal} from "$utils";
|
|
2
|
+
import Alert from "./Alert"
|
|
3
|
+
import theme from "$theme";
|
|
4
|
+
import Label from "$ecomponents/Label";
|
|
5
|
+
import React from "$react";
|
|
6
|
+
import TextField from "$ecomponents/TextField";
|
|
7
|
+
import {View} from "react-native";
|
|
8
|
+
import PropTypes from "prop-types";
|
|
9
|
+
|
|
10
|
+
export default function showConfirm (p,cb){
|
|
11
|
+
let {
|
|
12
|
+
yes,
|
|
13
|
+
title,
|
|
14
|
+
text,
|
|
15
|
+
defaultValue,
|
|
16
|
+
message,
|
|
17
|
+
msg,
|
|
18
|
+
onCancel,
|
|
19
|
+
onSuccess,
|
|
20
|
+
alert,
|
|
21
|
+
ok,
|
|
22
|
+
prompt,
|
|
23
|
+
confirm,
|
|
24
|
+
no,
|
|
25
|
+
type,
|
|
26
|
+
keyboardType,
|
|
27
|
+
alertType,
|
|
28
|
+
actions,
|
|
29
|
+
testID,
|
|
30
|
+
buttons,
|
|
31
|
+
messageProps,
|
|
32
|
+
inputProps,
|
|
33
|
+
placeholder,
|
|
34
|
+
children,
|
|
35
|
+
withInputField,
|
|
36
|
+
...options
|
|
37
|
+
} = defaultObj(p);
|
|
38
|
+
messageProps = defaultObj(messageProps);
|
|
39
|
+
inputProps = defaultObj(inputProps);
|
|
40
|
+
const inputValueRef = React.createRef(null);
|
|
41
|
+
const inputRef = React.createRef(null);
|
|
42
|
+
const setArgsValue = (args)=>{
|
|
43
|
+
args.value = inputValueRef.current;
|
|
44
|
+
args.inputRef = inputRef;
|
|
45
|
+
}
|
|
46
|
+
inputValueRef.current = defaultValue;
|
|
47
|
+
if(isDecimal(text)){
|
|
48
|
+
text = text+"";
|
|
49
|
+
}
|
|
50
|
+
title = defaultVal(title)
|
|
51
|
+
|
|
52
|
+
if(isNonNullString(no)){
|
|
53
|
+
no = {text:no}
|
|
54
|
+
}
|
|
55
|
+
if(isNonNullString(yes)){
|
|
56
|
+
yes = {text:yes}
|
|
57
|
+
}
|
|
58
|
+
buttons = defaultVal(buttons,actions);
|
|
59
|
+
if(buttons !== false && buttons !== null){
|
|
60
|
+
if(!isArray(buttons)){
|
|
61
|
+
buttons = [];
|
|
62
|
+
}
|
|
63
|
+
no = defaultObj(no)
|
|
64
|
+
onSuccess = defaultFunc(onSuccess,cb);
|
|
65
|
+
onCancel = defaultFunc(onCancel,cb);
|
|
66
|
+
if(!alert && no !== false){
|
|
67
|
+
no.text = defaultStr(no.text,'Non');
|
|
68
|
+
const {onPress} = no;
|
|
69
|
+
no.style = [{color:theme.colors.errorText,backgroundColor:theme.colors.error},no.style];
|
|
70
|
+
no.onPress = (args)=>{
|
|
71
|
+
args = React.getOnPressArgs(args);
|
|
72
|
+
setArgsValue(args);
|
|
73
|
+
if(onCancel(args) === false || (onPress && onPress(args) === false)) return true;
|
|
74
|
+
args.close = Alert.close;
|
|
75
|
+
Alert.close(args);
|
|
76
|
+
}
|
|
77
|
+
buttons.push(no);
|
|
78
|
+
} else no = null;
|
|
79
|
+
if(yes !== false){
|
|
80
|
+
yes = defaultObj(yes,ok)
|
|
81
|
+
yes.text = defaultStr(yes.text,alert?'OK':'Oui');
|
|
82
|
+
yes.style = [{color:theme.colors.primaryText,backgroundColor:theme.colors.primary},yes.style]
|
|
83
|
+
const {onPress} = yes;
|
|
84
|
+
yes.onPress = (args)=>{
|
|
85
|
+
args = React.getOnPressArgs(args);
|
|
86
|
+
setArgsValue(args);
|
|
87
|
+
if(onSuccess(args) === false || (onPress && onPress(args) === false)) return true;
|
|
88
|
+
Alert.close(args);
|
|
89
|
+
}
|
|
90
|
+
buttons.push(yes);
|
|
91
|
+
}
|
|
92
|
+
} else {
|
|
93
|
+
buttons = [];
|
|
94
|
+
}
|
|
95
|
+
message = defaultVal(message,msg)
|
|
96
|
+
options = defaultObj(options);
|
|
97
|
+
if(confirm){
|
|
98
|
+
alert = true;
|
|
99
|
+
}
|
|
100
|
+
testID = defaultStr(testID,"RN_AlertDialogComponent");
|
|
101
|
+
const messageContent = React.isValidElement(message,true)?<Label testID={testID+"_Message"} {...messageProps} style={[theme.styles.fs15,theme.styles.pb1,messageProps.style]} >{message}</Label> :null;
|
|
102
|
+
if(alert){
|
|
103
|
+
return Alert.alert({
|
|
104
|
+
content : <View testID={testID}>
|
|
105
|
+
{messageContent}
|
|
106
|
+
</View>,
|
|
107
|
+
...options,
|
|
108
|
+
title,
|
|
109
|
+
actions : buttons
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
type = defaultStr(type,"text").toLowerCase();
|
|
113
|
+
const Component = type ==="select" && React.isComponent(Alert.SimpleSelect) ? Alert.SimpleSelect : TextField;
|
|
114
|
+
return Alert.open({
|
|
115
|
+
content : <View testID={testID}>
|
|
116
|
+
{messageContent}
|
|
117
|
+
{withInputField !== false ? <Component
|
|
118
|
+
type = {type}
|
|
119
|
+
defaultValue = {defaultValue}
|
|
120
|
+
placeholder = {placeholder}
|
|
121
|
+
{...inputProps}
|
|
122
|
+
ref = {inputRef}
|
|
123
|
+
onChange = {(args)=>{
|
|
124
|
+
inputValueRef.current = args.value;
|
|
125
|
+
if(typeof inputProps.onChange ==='function'){
|
|
126
|
+
inputProps.onChange(args);
|
|
127
|
+
}
|
|
128
|
+
}}
|
|
129
|
+
/>: null}
|
|
130
|
+
</View>,
|
|
131
|
+
...options,
|
|
132
|
+
title,
|
|
133
|
+
actions : buttons
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
/**** les props de la fonction showConfirm */
|
|
139
|
+
showConfirm.propTypes = {
|
|
140
|
+
inputProps : PropTypes.object, ///les props à passer à l'input, lorsque c'est de type prompt
|
|
141
|
+
title : PropTypes.any,
|
|
142
|
+
content : PropTypes.any,
|
|
143
|
+
message : PropTypes.any,
|
|
144
|
+
withInputField : PropTypes.bool,
|
|
145
|
+
}
|