@via-profit/ui-kit 0.1.0-rc.2 → 0.1.0-rc.21
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/Autocomplete/index.d.ts +46 -0
- package/Autocomplete/index.js +187 -0
- package/Autocomplete/popper-options.d.ts +4 -0
- package/Autocomplete/popper-options.js +33 -0
- package/Button/ButtonBase.d.ts +62 -0
- package/Button/ButtonBase.js +36 -0
- package/Button/ButtonContainer.d.ts +36 -0
- package/Button/ButtonContainer.js +56 -0
- package/Button/ButtonIconWrapper.d.ts +14 -0
- package/Button/ButtonIconWrapper.js +34 -0
- package/Button/ButtonOutlined.d.ts +5 -0
- package/Button/ButtonOutlined.js +87 -0
- package/Button/ButtonPlain.d.ts +5 -0
- package/Button/ButtonPlain.js +90 -0
- package/Button/ButtonStandard.d.ts +5 -0
- package/Button/ButtonStandard.js +110 -0
- package/Button/ButtonTextWrapper.d.ts +29 -0
- package/Button/ButtonTextWrapper.js +35 -0
- package/Button/index.d.ts +23 -0
- package/Button/index.js +31 -0
- package/CHANGELOG.md +0 -0
- package/Calendar/CalendarBottomBar.d.ts +4 -0
- package/Calendar/CalendarBottomBar.js +28 -0
- package/Calendar/CalendarCell.d.ts +8 -0
- package/Calendar/CalendarCell.js +59 -0
- package/Calendar/CalendarDateContainer.d.ts +6 -0
- package/Calendar/CalendarDateContainer.js +13 -0
- package/Calendar/CalendarEmptyCell.d.ts +4 -0
- package/Calendar/CalendarEmptyCell.js +29 -0
- package/Calendar/CalendarMonthControl.d.ts +6 -0
- package/Calendar/CalendarMonthControl.js +49 -0
- package/Calendar/CalendarPaper.d.ts +6 -0
- package/Calendar/CalendarPaper.js +19 -0
- package/Calendar/CalendarTopBar.d.ts +4 -0
- package/Calendar/CalendarTopBar.js +30 -0
- package/Calendar/CalendarWeekDayLabel.d.ts +6 -0
- package/Calendar/CalendarWeekDayLabel.js +17 -0
- package/Calendar/CalendarWeekDaysBar.d.ts +10 -0
- package/Calendar/CalendarWeekDaysBar.js +32 -0
- package/Calendar/CalendarWeekRow.d.ts +6 -0
- package/Calendar/CalendarWeekRow.js +14 -0
- package/Calendar/IconChevronLeft.d.ts +3 -0
- package/Calendar/IconChevronLeft.js +9 -0
- package/Calendar/IconChevronRight.d.ts +3 -0
- package/Calendar/IconChevronRight.js +9 -0
- package/Calendar/index.d.ts +18 -0
- package/Calendar/index.js +166 -0
- package/Calendar/use-calendar.d.ts +50 -0
- package/Calendar/use-calendar.js +197 -0
- package/Color/index.d.ts +113 -0
- package/Color/index.js +444 -0
- package/CountryFlags/AC.d.ts +3 -0
- package/CountryFlags/AC.js +53 -0
- package/CountryFlags/AD.d.ts +3 -0
- package/CountryFlags/AD.js +39 -0
- package/CountryFlags/AE.d.ts +3 -0
- package/CountryFlags/AE.js +32 -0
- package/CountryFlags/AF.d.ts +3 -0
- package/CountryFlags/AF.js +33 -0
- package/CountryFlags/AG.d.ts +3 -0
- package/CountryFlags/AG.js +35 -0
- package/CountryFlags/AI.d.ts +3 -0
- package/CountryFlags/AI.js +37 -0
- package/CountryFlags/AL.d.ts +3 -0
- package/CountryFlags/AL.js +35 -0
- package/CountryFlags/AM.d.ts +3 -0
- package/CountryFlags/AM.js +31 -0
- package/CountryFlags/AO.d.ts +3 -0
- package/CountryFlags/AO.js +35 -0
- package/CountryFlags/AQ.d.ts +3 -0
- package/CountryFlags/AQ.js +30 -0
- package/CountryFlags/AR.d.ts +3 -0
- package/CountryFlags/AR.js +31 -0
- package/CountryFlags/AS.d.ts +3 -0
- package/CountryFlags/AS.js +33 -0
- package/CountryFlags/AT.d.ts +3 -0
- package/CountryFlags/AT.js +30 -0
- package/CountryFlags/AU.d.ts +3 -0
- package/CountryFlags/AU.js +41 -0
- package/CountryFlags/AW.d.ts +3 -0
- package/CountryFlags/AW.js +33 -0
- package/CountryFlags/AX.d.ts +3 -0
- package/CountryFlags/AX.js +31 -0
- package/CountryFlags/AZ.d.ts +3 -0
- package/CountryFlags/AZ.js +34 -0
- package/CountryFlags/BA.d.ts +3 -0
- package/CountryFlags/BA.js +40 -0
- package/CountryFlags/BB.d.ts +3 -0
- package/CountryFlags/BB.js +32 -0
- package/CountryFlags/BD.d.ts +3 -0
- package/CountryFlags/BD.js +30 -0
- package/CountryFlags/BE.d.ts +3 -0
- package/CountryFlags/BE.js +31 -0
- package/CountryFlags/BF.d.ts +3 -0
- package/CountryFlags/BF.js +31 -0
- package/CountryFlags/BG.d.ts +3 -0
- package/CountryFlags/BG.js +31 -0
- package/CountryFlags/BH.d.ts +3 -0
- package/CountryFlags/BH.js +30 -0
- package/CountryFlags/BI.d.ts +3 -0
- package/CountryFlags/BI.js +36 -0
- package/CountryFlags/BJ.d.ts +3 -0
- package/CountryFlags/BJ.js +31 -0
- package/CountryFlags/BL.d.ts +3 -0
- package/CountryFlags/BL.js +39 -0
- package/CountryFlags/BM.d.ts +3 -0
- package/CountryFlags/BM.js +40 -0
- package/CountryFlags/BN.d.ts +3 -0
- package/CountryFlags/BN.js +34 -0
- package/CountryFlags/BO.d.ts +3 -0
- package/CountryFlags/BO.js +31 -0
- package/CountryFlags/BQ.d.ts +3 -0
- package/CountryFlags/BQ.js +33 -0
- package/CountryFlags/BR.d.ts +3 -0
- package/CountryFlags/BR.js +32 -0
- package/CountryFlags/BS.d.ts +3 -0
- package/CountryFlags/BS.js +32 -0
- package/CountryFlags/BT.d.ts +3 -0
- package/CountryFlags/BT.js +31 -0
- package/CountryFlags/BV.d.ts +3 -0
- package/CountryFlags/BV.js +33 -0
- package/CountryFlags/BW.d.ts +3 -0
- package/CountryFlags/BW.js +32 -0
- package/CountryFlags/BY.d.ts +3 -0
- package/CountryFlags/BY.js +35 -0
- package/CountryFlags/BZ.d.ts +3 -0
- package/CountryFlags/BZ.js +36 -0
- package/CountryFlags/CA.d.ts +3 -0
- package/CountryFlags/CA.js +31 -0
- package/CountryFlags/CC.d.ts +3 -0
- package/CountryFlags/CC.js +33 -0
- package/CountryFlags/CD.d.ts +3 -0
- package/CountryFlags/CD.js +32 -0
- package/CountryFlags/CF.d.ts +3 -0
- package/CountryFlags/CF.js +36 -0
- package/CountryFlags/CG.d.ts +3 -0
- package/CountryFlags/CG.js +31 -0
- package/CountryFlags/CH.d.ts +3 -0
- package/CountryFlags/CH.js +30 -0
- package/CountryFlags/CI.d.ts +3 -0
- package/CountryFlags/CI.js +31 -0
- package/CountryFlags/CK.d.ts +3 -0
- package/CountryFlags/CK.js +34 -0
- package/CountryFlags/CL.d.ts +3 -0
- package/CountryFlags/CL.js +32 -0
- package/CountryFlags/CM.d.ts +3 -0
- package/CountryFlags/CM.js +32 -0
- package/CountryFlags/CN.d.ts +3 -0
- package/CountryFlags/CN.js +31 -0
- package/CountryFlags/CO.d.ts +3 -0
- package/CountryFlags/CO.js +31 -0
- package/CountryFlags/CR.d.ts +3 -0
- package/CountryFlags/CR.js +31 -0
- package/CountryFlags/CU.d.ts +3 -0
- package/CountryFlags/CU.js +34 -0
- package/CountryFlags/CV.d.ts +3 -0
- package/CountryFlags/CV.js +33 -0
- package/CountryFlags/CW.d.ts +3 -0
- package/CountryFlags/CW.js +32 -0
- package/CountryFlags/CX.d.ts +3 -0
- package/CountryFlags/CX.js +35 -0
- package/CountryFlags/CY.d.ts +3 -0
- package/CountryFlags/CY.js +34 -0
- package/CountryFlags/CZ.d.ts +3 -0
- package/CountryFlags/CZ.js +31 -0
- package/CountryFlags/DE.d.ts +3 -0
- package/CountryFlags/DE.js +31 -0
- package/CountryFlags/DJ.d.ts +3 -0
- package/CountryFlags/DJ.js +32 -0
- package/CountryFlags/DK.d.ts +3 -0
- package/CountryFlags/DK.js +30 -0
- package/CountryFlags/DM.d.ts +3 -0
- package/CountryFlags/DM.js +39 -0
- package/CountryFlags/DO.d.ts +3 -0
- package/CountryFlags/DO.js +38 -0
- package/CountryFlags/DZ.d.ts +3 -0
- package/CountryFlags/DZ.js +33 -0
- package/CountryFlags/EC.d.ts +3 -0
- package/CountryFlags/EC.js +35 -0
- package/CountryFlags/EE.d.ts +3 -0
- package/CountryFlags/EE.js +31 -0
- package/CountryFlags/EG.d.ts +3 -0
- package/CountryFlags/EG.js +32 -0
- package/CountryFlags/EH.d.ts +3 -0
- package/CountryFlags/EH.js +34 -0
- package/CountryFlags/ER.d.ts +3 -0
- package/CountryFlags/ER.js +40 -0
- package/CountryFlags/ES.d.ts +3 -0
- package/CountryFlags/ES.js +34 -0
- package/CountryFlags/ET.d.ts +3 -0
- package/CountryFlags/ET.js +37 -0
- package/CountryFlags/EU.d.ts +3 -0
- package/CountryFlags/EU.js +30 -0
- package/CountryFlags/FI.d.ts +3 -0
- package/CountryFlags/FI.js +30 -0
- package/CountryFlags/FJ.d.ts +3 -0
- package/CountryFlags/FJ.js +36 -0
- package/CountryFlags/FK.d.ts +3 -0
- package/CountryFlags/FK.js +43 -0
- package/CountryFlags/FM.d.ts +3 -0
- package/CountryFlags/FM.js +31 -0
- package/CountryFlags/FO.d.ts +3 -0
- package/CountryFlags/FO.js +31 -0
- package/CountryFlags/FR.d.ts +3 -0
- package/CountryFlags/FR.js +31 -0
- package/CountryFlags/GA.d.ts +3 -0
- package/CountryFlags/GA.js +31 -0
- package/CountryFlags/GB.d.ts +3 -0
- package/CountryFlags/GB.js +36 -0
- package/CountryFlags/GD.d.ts +3 -0
- package/CountryFlags/GD.js +38 -0
- package/CountryFlags/GE.d.ts +3 -0
- package/CountryFlags/GE.js +31 -0
- package/CountryFlags/GEAB.d.ts +3 -0
- package/CountryFlags/GEAB.js +40 -0
- package/CountryFlags/GEOS.d.ts +3 -0
- package/CountryFlags/GEOS.js +31 -0
- package/CountryFlags/GF.d.ts +3 -0
- package/CountryFlags/GF.js +31 -0
- package/CountryFlags/GG.d.ts +3 -0
- package/CountryFlags/GG.js +31 -0
- package/CountryFlags/GH.d.ts +3 -0
- package/CountryFlags/GH.js +32 -0
- package/CountryFlags/GI.d.ts +3 -0
- package/CountryFlags/GI.js +34 -0
- package/CountryFlags/GL.d.ts +3 -0
- package/CountryFlags/GL.js +32 -0
- package/CountryFlags/GM.d.ts +3 -0
- package/CountryFlags/GM.js +32 -0
- package/CountryFlags/GN.d.ts +3 -0
- package/CountryFlags/GN.js +31 -0
- package/CountryFlags/GP.d.ts +3 -0
- package/CountryFlags/GP.js +31 -0
- package/CountryFlags/GQ.d.ts +3 -0
- package/CountryFlags/GQ.js +37 -0
- package/CountryFlags/GR.d.ts +3 -0
- package/CountryFlags/GR.js +35 -0
- package/CountryFlags/GS.d.ts +3 -0
- package/CountryFlags/GS.js +49 -0
- package/CountryFlags/GT.d.ts +3 -0
- package/CountryFlags/GT.js +33 -0
- package/CountryFlags/GU.d.ts +3 -0
- package/CountryFlags/GU.js +37 -0
- package/CountryFlags/GW.d.ts +3 -0
- package/CountryFlags/GW.js +32 -0
- package/CountryFlags/GY.d.ts +3 -0
- package/CountryFlags/GY.js +33 -0
- package/CountryFlags/HK.d.ts +3 -0
- package/CountryFlags/HK.js +32 -0
- package/CountryFlags/HM.d.ts +3 -0
- package/CountryFlags/HM.js +41 -0
- package/CountryFlags/HN.d.ts +3 -0
- package/CountryFlags/HN.js +31 -0
- package/CountryFlags/HR.d.ts +3 -0
- package/CountryFlags/HR.js +38 -0
- package/CountryFlags/HT.d.ts +3 -0
- package/CountryFlags/HT.js +36 -0
- package/CountryFlags/HU.d.ts +3 -0
- package/CountryFlags/HU.js +31 -0
- package/CountryFlags/IC.d.ts +3 -0
- package/CountryFlags/IC.js +31 -0
- package/CountryFlags/ID.d.ts +3 -0
- package/CountryFlags/ID.js +30 -0
- package/CountryFlags/IE.d.ts +3 -0
- package/CountryFlags/IE.js +31 -0
- package/CountryFlags/IL.d.ts +3 -0
- package/CountryFlags/IL.js +31 -0
- package/CountryFlags/IM.d.ts +3 -0
- package/CountryFlags/IM.js +31 -0
- package/CountryFlags/IN.d.ts +3 -0
- package/CountryFlags/IN.js +35 -0
- package/CountryFlags/IO.d.ts +3 -0
- package/CountryFlags/IO.js +41 -0
- package/CountryFlags/IQ.d.ts +3 -0
- package/CountryFlags/IQ.js +33 -0
- package/CountryFlags/IR.d.ts +3 -0
- package/CountryFlags/IR.js +34 -0
- package/CountryFlags/IS.d.ts +3 -0
- package/CountryFlags/IS.js +31 -0
- package/CountryFlags/IT.d.ts +3 -0
- package/CountryFlags/IT.js +31 -0
- package/CountryFlags/JE.d.ts +3 -0
- package/CountryFlags/JE.js +32 -0
- package/CountryFlags/JM.d.ts +3 -0
- package/CountryFlags/JM.js +32 -0
- package/CountryFlags/JO.d.ts +3 -0
- package/CountryFlags/JO.js +33 -0
- package/CountryFlags/JP.d.ts +3 -0
- package/CountryFlags/JP.js +30 -0
- package/CountryFlags/KE.d.ts +3 -0
- package/CountryFlags/KE.js +38 -0
- package/CountryFlags/KG.d.ts +3 -0
- package/CountryFlags/KG.js +35 -0
- package/CountryFlags/KH.d.ts +3 -0
- package/CountryFlags/KH.js +32 -0
- package/CountryFlags/KI.d.ts +3 -0
- package/CountryFlags/KI.js +35 -0
- package/CountryFlags/KM.d.ts +3 -0
- package/CountryFlags/KM.js +37 -0
- package/CountryFlags/KN.d.ts +3 -0
- package/CountryFlags/KN.js +34 -0
- package/CountryFlags/KP.d.ts +3 -0
- package/CountryFlags/KP.js +35 -0
- package/CountryFlags/KR.d.ts +3 -0
- package/CountryFlags/KR.js +38 -0
- package/CountryFlags/KW.d.ts +3 -0
- package/CountryFlags/KW.js +32 -0
- package/CountryFlags/KY.d.ts +3 -0
- package/CountryFlags/KY.js +41 -0
- package/CountryFlags/KZ.d.ts +3 -0
- package/CountryFlags/KZ.js +31 -0
- package/CountryFlags/LA.d.ts +3 -0
- package/CountryFlags/LA.js +32 -0
- package/CountryFlags/LB.d.ts +3 -0
- package/CountryFlags/LB.js +33 -0
- package/CountryFlags/LC.d.ts +3 -0
- package/CountryFlags/LC.js +32 -0
- package/CountryFlags/LI.d.ts +3 -0
- package/CountryFlags/LI.js +31 -0
- package/CountryFlags/LK.d.ts +3 -0
- package/CountryFlags/LK.js +36 -0
- package/CountryFlags/LR.d.ts +3 -0
- package/CountryFlags/LR.js +33 -0
- package/CountryFlags/LS.d.ts +3 -0
- package/CountryFlags/LS.js +33 -0
- package/CountryFlags/LT.d.ts +3 -0
- package/CountryFlags/LT.js +31 -0
- package/CountryFlags/LU.d.ts +3 -0
- package/CountryFlags/LU.js +31 -0
- package/CountryFlags/LV.d.ts +3 -0
- package/CountryFlags/LV.js +31 -0
- package/CountryFlags/LY.d.ts +3 -0
- package/CountryFlags/LY.js +34 -0
- package/CountryFlags/MA.d.ts +3 -0
- package/CountryFlags/MA.js +30 -0
- package/CountryFlags/MC.d.ts +3 -0
- package/CountryFlags/MC.js +30 -0
- package/CountryFlags/MD.d.ts +3 -0
- package/CountryFlags/MD.js +32 -0
- package/CountryFlags/ME.d.ts +3 -0
- package/CountryFlags/ME.js +32 -0
- package/CountryFlags/MF.d.ts +3 -0
- package/CountryFlags/MF.js +33 -0
- package/CountryFlags/MG.d.ts +3 -0
- package/CountryFlags/MG.js +31 -0
- package/CountryFlags/MH.d.ts +3 -0
- package/CountryFlags/MH.js +32 -0
- package/CountryFlags/MK.d.ts +3 -0
- package/CountryFlags/MK.js +33 -0
- package/CountryFlags/ML.d.ts +3 -0
- package/CountryFlags/ML.js +31 -0
- package/CountryFlags/MM.d.ts +3 -0
- package/CountryFlags/MM.js +32 -0
- package/CountryFlags/MN.d.ts +3 -0
- package/CountryFlags/MN.js +37 -0
- package/CountryFlags/MO.d.ts +3 -0
- package/CountryFlags/MO.js +34 -0
- package/CountryFlags/MP.d.ts +3 -0
- package/CountryFlags/MP.js +35 -0
- package/CountryFlags/MQ.d.ts +3 -0
- package/CountryFlags/MQ.js +32 -0
- package/CountryFlags/MR.d.ts +3 -0
- package/CountryFlags/MR.js +32 -0
- package/CountryFlags/MS.d.ts +3 -0
- package/CountryFlags/MS.js +40 -0
- package/CountryFlags/MT.d.ts +3 -0
- package/CountryFlags/MT.js +31 -0
- package/CountryFlags/MU.d.ts +3 -0
- package/CountryFlags/MU.js +32 -0
- package/CountryFlags/MV.d.ts +3 -0
- package/CountryFlags/MV.js +31 -0
- package/CountryFlags/MW.d.ts +3 -0
- package/CountryFlags/MW.js +32 -0
- package/CountryFlags/MX.d.ts +3 -0
- package/CountryFlags/MX.js +33 -0
- package/CountryFlags/MY.d.ts +3 -0
- package/CountryFlags/MY.js +33 -0
- package/CountryFlags/MZ.d.ts +3 -0
- package/CountryFlags/MZ.js +34 -0
- package/CountryFlags/NA.d.ts +3 -0
- package/CountryFlags/NA.js +33 -0
- package/CountryFlags/NC.d.ts +3 -0
- package/CountryFlags/NC.js +38 -0
- package/CountryFlags/NE.d.ts +3 -0
- package/CountryFlags/NE.js +32 -0
- package/CountryFlags/NF.d.ts +3 -0
- package/CountryFlags/NF.js +31 -0
- package/CountryFlags/NG.d.ts +3 -0
- package/CountryFlags/NG.js +31 -0
- package/CountryFlags/NI.d.ts +3 -0
- package/CountryFlags/NI.js +35 -0
- package/CountryFlags/NL.d.ts +3 -0
- package/CountryFlags/NL.js +31 -0
- package/CountryFlags/NO.d.ts +3 -0
- package/CountryFlags/NO.js +31 -0
- package/CountryFlags/NP.d.ts +3 -0
- package/CountryFlags/NP.js +34 -0
- package/CountryFlags/NR.d.ts +3 -0
- package/CountryFlags/NR.js +31 -0
- package/CountryFlags/NU.d.ts +3 -0
- package/CountryFlags/NU.js +53 -0
- package/CountryFlags/NZ.d.ts +3 -0
- package/CountryFlags/NZ.js +41 -0
- package/CountryFlags/OM.d.ts +3 -0
- package/CountryFlags/OM.js +34 -0
- package/CountryFlags/PA.d.ts +3 -0
- package/CountryFlags/PA.js +33 -0
- package/CountryFlags/PE.d.ts +3 -0
- package/CountryFlags/PE.js +31 -0
- package/CountryFlags/PF.d.ts +3 -0
- package/CountryFlags/PF.js +35 -0
- package/CountryFlags/PG.d.ts +3 -0
- package/CountryFlags/PG.js +33 -0
- package/CountryFlags/PH.d.ts +3 -0
- package/CountryFlags/PH.js +33 -0
- package/CountryFlags/PK.d.ts +3 -0
- package/CountryFlags/PK.js +34 -0
- package/CountryFlags/PL.d.ts +3 -0
- package/CountryFlags/PL.js +32 -0
- package/CountryFlags/PM.d.ts +3 -0
- package/CountryFlags/PM.js +32 -0
- package/CountryFlags/PN.d.ts +3 -0
- package/CountryFlags/PN.js +43 -0
- package/CountryFlags/PR.d.ts +3 -0
- package/CountryFlags/PR.js +33 -0
- package/CountryFlags/PS.d.ts +3 -0
- package/CountryFlags/PS.js +32 -0
- package/CountryFlags/PT.d.ts +3 -0
- package/CountryFlags/PT.js +33 -0
- package/CountryFlags/PW.d.ts +3 -0
- package/CountryFlags/PW.js +30 -0
- package/CountryFlags/PY.d.ts +3 -0
- package/CountryFlags/PY.js +33 -0
- package/CountryFlags/QA.d.ts +3 -0
- package/CountryFlags/QA.js +30 -0
- package/CountryFlags/RE.d.ts +3 -0
- package/CountryFlags/RE.js +32 -0
- package/CountryFlags/RO.d.ts +3 -0
- package/CountryFlags/RO.js +31 -0
- package/CountryFlags/RS.d.ts +3 -0
- package/CountryFlags/RS.js +35 -0
- package/CountryFlags/RU.d.ts +3 -0
- package/CountryFlags/RU.js +32 -0
- package/CountryFlags/RW.d.ts +3 -0
- package/CountryFlags/RW.js +32 -0
- package/CountryFlags/SA.d.ts +3 -0
- package/CountryFlags/SA.js +33 -0
- package/CountryFlags/SB.d.ts +3 -0
- package/CountryFlags/SB.js +33 -0
- package/CountryFlags/SC.d.ts +3 -0
- package/CountryFlags/SC.js +33 -0
- package/CountryFlags/SD.d.ts +3 -0
- package/CountryFlags/SD.js +32 -0
- package/CountryFlags/SE.d.ts +3 -0
- package/CountryFlags/SE.js +30 -0
- package/CountryFlags/SG.d.ts +3 -0
- package/CountryFlags/SG.js +33 -0
- package/CountryFlags/SH.d.ts +3 -0
- package/CountryFlags/SH.js +43 -0
- package/CountryFlags/SI.d.ts +3 -0
- package/CountryFlags/SI.js +34 -0
- package/CountryFlags/SJ.d.ts +3 -0
- package/CountryFlags/SJ.js +31 -0
- package/CountryFlags/SK.d.ts +3 -0
- package/CountryFlags/SK.js +35 -0
- package/CountryFlags/SL.d.ts +3 -0
- package/CountryFlags/SL.js +31 -0
- package/CountryFlags/SM.d.ts +3 -0
- package/CountryFlags/SM.js +35 -0
- package/CountryFlags/SN.d.ts +3 -0
- package/CountryFlags/SN.js +32 -0
- package/CountryFlags/SO.d.ts +3 -0
- package/CountryFlags/SO.js +30 -0
- package/CountryFlags/SR.d.ts +3 -0
- package/CountryFlags/SR.js +33 -0
- package/CountryFlags/SS.d.ts +3 -0
- package/CountryFlags/SS.js +34 -0
- package/CountryFlags/ST.d.ts +3 -0
- package/CountryFlags/ST.js +33 -0
- package/CountryFlags/SV.d.ts +3 -0
- package/CountryFlags/SV.js +34 -0
- package/CountryFlags/SX.d.ts +3 -0
- package/CountryFlags/SX.js +37 -0
- package/CountryFlags/SY.d.ts +3 -0
- package/CountryFlags/SY.js +33 -0
- package/CountryFlags/SZ.d.ts +3 -0
- package/CountryFlags/SZ.js +35 -0
- package/CountryFlags/TA.d.ts +3 -0
- package/CountryFlags/TA.js +47 -0
- package/CountryFlags/TC.d.ts +3 -0
- package/CountryFlags/TC.js +44 -0
- package/CountryFlags/TD.d.ts +3 -0
- package/CountryFlags/TD.js +31 -0
- package/CountryFlags/TF.d.ts +3 -0
- package/CountryFlags/TF.js +34 -0
- package/CountryFlags/TG.d.ts +3 -0
- package/CountryFlags/TG.js +33 -0
- package/CountryFlags/TH.d.ts +3 -0
- package/CountryFlags/TH.js +32 -0
- package/CountryFlags/TJ.d.ts +3 -0
- package/CountryFlags/TJ.js +33 -0
- package/CountryFlags/TK.d.ts +3 -0
- package/CountryFlags/TK.js +33 -0
- package/CountryFlags/TL.d.ts +3 -0
- package/CountryFlags/TL.js +32 -0
- package/CountryFlags/TM.d.ts +3 -0
- package/CountryFlags/TM.js +45 -0
- package/CountryFlags/TN.d.ts +3 -0
- package/CountryFlags/TN.js +33 -0
- package/CountryFlags/TO.d.ts +3 -0
- package/CountryFlags/TO.js +31 -0
- package/CountryFlags/TR.d.ts +3 -0
- package/CountryFlags/TR.js +30 -0
- package/CountryFlags/TT.d.ts +3 -0
- package/CountryFlags/TT.js +31 -0
- package/CountryFlags/TV.d.ts +3 -0
- package/CountryFlags/TV.js +36 -0
- package/CountryFlags/TW.d.ts +3 -0
- package/CountryFlags/TW.js +33 -0
- package/CountryFlags/TZ.d.ts +3 -0
- package/CountryFlags/TZ.js +32 -0
- package/CountryFlags/UA.d.ts +3 -0
- package/CountryFlags/UA.js +30 -0
- package/CountryFlags/UG.d.ts +3 -0
- package/CountryFlags/UG.js +35 -0
- package/CountryFlags/UM.d.ts +3 -0
- package/CountryFlags/UM.js +34 -0
- package/CountryFlags/US.d.ts +3 -0
- package/CountryFlags/US.js +34 -0
- package/CountryFlags/UY.d.ts +3 -0
- package/CountryFlags/UY.js +33 -0
- package/CountryFlags/UZ.d.ts +3 -0
- package/CountryFlags/UZ.js +35 -0
- package/CountryFlags/VA.d.ts +3 -0
- package/CountryFlags/VA.js +32 -0
- package/CountryFlags/VC.d.ts +3 -0
- package/CountryFlags/VC.js +32 -0
- package/CountryFlags/VE.d.ts +3 -0
- package/CountryFlags/VE.js +32 -0
- package/CountryFlags/VG.d.ts +3 -0
- package/CountryFlags/VG.js +45 -0
- package/CountryFlags/VI.d.ts +3 -0
- package/CountryFlags/VI.js +41 -0
- package/CountryFlags/VN.d.ts +3 -0
- package/CountryFlags/VN.js +30 -0
- package/CountryFlags/VU.d.ts +3 -0
- package/CountryFlags/VU.js +35 -0
- package/CountryFlags/WF.d.ts +3 -0
- package/CountryFlags/WF.js +33 -0
- package/CountryFlags/WS.d.ts +3 -0
- package/CountryFlags/WS.js +32 -0
- package/CountryFlags/XK.d.ts +3 -0
- package/CountryFlags/XK.js +32 -0
- package/CountryFlags/YE.d.ts +3 -0
- package/CountryFlags/YE.js +31 -0
- package/CountryFlags/YT.d.ts +3 -0
- package/CountryFlags/YT.js +35 -0
- package/CountryFlags/ZA.d.ts +3 -0
- package/CountryFlags/ZA.js +34 -0
- package/CountryFlags/ZM.d.ts +3 -0
- package/CountryFlags/ZM.js +33 -0
- package/CountryFlags/ZW.d.ts +3 -0
- package/CountryFlags/ZW.js +39 -0
- package/DatePicker/index.d.ts +3 -0
- package/DatePicker/index.js +8 -0
- package/ErrorBoundary/index.d.ts +19 -0
- package/ErrorBoundary/index.js +78 -0
- package/Image/index.d.ts +7 -0
- package/Image/index.js +45 -0
- package/MaskedField/index.d.ts +33 -0
- package/MaskedField/index.js +63 -0
- package/MaskedField/templates.d.ts +11 -0
- package/MaskedField/templates.js +81 -0
- package/MaskedField/useMasked.d.ts +18 -0
- package/MaskedField/useMasked.js +96 -0
- package/Menu/MenuItem.d.ts +10 -0
- package/Menu/MenuItem.js +47 -0
- package/Menu/MenuItemInner.d.ts +7 -0
- package/Menu/MenuItemInner.js +48 -0
- package/Menu/MenuWrapper.d.ts +10 -0
- package/Menu/MenuWrapper.js +76 -0
- package/Menu/index.d.ts +196 -0
- package/Menu/index.js +452 -0
- package/Menu/popper-options.d.ts +4 -0
- package/Menu/popper-options.js +33 -0
- package/Menu/reducer.d.ts +14 -0
- package/Menu/reducer.js +19 -0
- package/Modal/CloseIcon.d.ts +3 -0
- package/Modal/CloseIcon.js +37 -0
- package/Modal/ModalConfirmBox.d.ts +9 -0
- package/Modal/ModalConfirmBox.js +148 -0
- package/Modal/ModalDialog.d.ts +7 -0
- package/Modal/ModalDialog.js +99 -0
- package/Modal/ModalDrawer.d.ts +11 -0
- package/Modal/ModalDrawer.js +150 -0
- package/Modal/ModalMessageBox.d.ts +8 -0
- package/Modal/ModalMessageBox.js +147 -0
- package/Modal/index.d.ts +12 -0
- package/Modal/index.js +54 -0
- package/NoSSR/index.d.ts +7 -0
- package/NoSSR/index.js +15 -0
- package/PhoneField/CountryFlagComponent.d.ts +6 -0
- package/PhoneField/CountryFlagComponent.js +44 -0
- package/PhoneField/UnknownFlag.d.ts +3 -0
- package/PhoneField/UnknownFlag.js +34 -0
- package/PhoneField/index.d.ts +54 -0
- package/PhoneField/index.js +97 -0
- package/PhoneField/templates.d.ts +82 -0
- package/PhoneField/templates.js +45 -0
- package/PhoneField/usePhoneUtils.d.ts +69 -0
- package/PhoneField/usePhoneUtils.js +172 -0
- package/README.md +12 -10
- package/SelectBox/IconChevronDown.d.ts +3 -0
- package/SelectBox/IconChevronDown.js +9 -0
- package/SelectBox/SelectButton.d.ts +10 -0
- package/SelectBox/SelectButton.js +78 -0
- package/SelectBox/index.d.ts +40 -0
- package/SelectBox/index.js +188 -0
- package/SelectBox/popper-options.d.ts +4 -0
- package/SelectBox/popper-options.js +33 -0
- package/Surface/SurfaceContainer.d.ts +8 -0
- package/Surface/SurfaceContainer.js +39 -0
- package/Surface/SurfaceContent.d.ts +8 -0
- package/Surface/SurfaceContent.js +31 -0
- package/Surface/SurfaceHeader.d.ts +4 -0
- package/Surface/SurfaceHeader.js +30 -0
- package/Surface/SurfaceSubheader.d.ts +4 -0
- package/Surface/SurfaceSubheader.js +29 -0
- package/Surface/index.d.ts +62 -0
- package/Surface/index.js +61 -0
- package/Table/Table.d.ts +8 -0
- package/Table/Table.js +46 -0
- package/Table/TableBody.d.ts +4 -0
- package/Table/TableBody.js +30 -0
- package/Table/TableCaption.d.ts +4 -0
- package/Table/TableCaption.js +30 -0
- package/Table/TableCell.d.ts +4 -0
- package/Table/TableCell.js +31 -0
- package/Table/TableFooter.d.ts +4 -0
- package/Table/TableFooter.js +36 -0
- package/Table/TableHeader.d.ts +4 -0
- package/Table/TableHeader.js +30 -0
- package/Table/TableHeaderCell.d.ts +4 -0
- package/Table/TableHeaderCell.js +35 -0
- package/Table/TableRow.d.ts +4 -0
- package/Table/TableRow.js +30 -0
- package/Table/index.d.ts +18 -0
- package/Table/index.js +45 -0
- package/TextField/TextFieldContainer.d.ts +8 -0
- package/TextField/TextFieldContainer.js +52 -0
- package/TextField/TextFieldErrorText.d.ts +7 -0
- package/TextField/TextFieldErrorText.js +75 -0
- package/TextField/TextFieldIconWrapper.d.ts +18 -0
- package/TextField/TextFieldIconWrapper.js +73 -0
- package/TextField/TextFieldInput.d.ts +7 -0
- package/TextField/TextFieldInput.js +71 -0
- package/TextField/TextFieldInputWrapper.d.ts +14 -0
- package/TextField/TextFieldInputWrapper.js +76 -0
- package/TextField/TextFieldLabel.d.ts +7 -0
- package/TextField/TextFieldLabel.js +50 -0
- package/TextField/TextFieldLabelAsterisk.d.ts +13 -0
- package/TextField/TextFieldLabelAsterisk.js +51 -0
- package/TextField/index.d.ts +80 -0
- package/TextField/index.js +100 -0
- package/ThemeProvider/createTheme.d.ts +3 -0
- package/ThemeProvider/createTheme.js +46 -0
- package/ThemeProvider/index.d.ts +57 -0
- package/ThemeProvider/index.js +29 -0
- package/Typography/Base.d.ts +6 -0
- package/Typography/Base.js +12 -0
- package/Typography/Blockquote.d.ts +6 -0
- package/Typography/Blockquote.js +23 -0
- package/Typography/Del.d.ts +6 -0
- package/Typography/Del.js +11 -0
- package/Typography/Em.d.ts +6 -0
- package/Typography/Em.js +11 -0
- package/Typography/H1.d.ts +6 -0
- package/Typography/H1.js +12 -0
- package/Typography/H2.d.ts +6 -0
- package/Typography/H2.js +12 -0
- package/Typography/H3.d.ts +6 -0
- package/Typography/H3.js +12 -0
- package/Typography/H4.d.ts +6 -0
- package/Typography/H4.js +12 -0
- package/Typography/H5.d.ts +6 -0
- package/Typography/H5.js +12 -0
- package/Typography/List.d.ts +14 -0
- package/Typography/List.js +32 -0
- package/Typography/Paragraph.d.ts +14 -0
- package/Typography/Paragraph.js +52 -0
- package/Typography/SectionDescription.d.ts +7 -0
- package/Typography/SectionDescription.js +17 -0
- package/Typography/SectionTitle.d.ts +8 -0
- package/Typography/SectionTitle.js +31 -0
- package/Typography/Span.d.ts +6 -0
- package/Typography/Span.js +11 -0
- package/Typography/Strong.d.ts +6 -0
- package/Typography/Strong.js +11 -0
- package/Typography/U.d.ts +6 -0
- package/Typography/U.js +10 -0
- package/Typography/index.d.ts +3 -0
- package/Typography/index.js +22 -0
- package/index.d.ts +1 -0
- package/index.js +1 -7
- package/package.json +3 -9
package/Menu/reducer.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reducer = exports.defaultState = void 0;
|
|
4
|
+
exports.defaultState = {
|
|
5
|
+
selectedIndexes: [],
|
|
6
|
+
markedIndex: -1,
|
|
7
|
+
hoveredIndex: -1,
|
|
8
|
+
};
|
|
9
|
+
const reducer = (state, action) => {
|
|
10
|
+
switch (action.type) {
|
|
11
|
+
case 'setMenuState': {
|
|
12
|
+
return Object.assign(Object.assign({}, state), action.payload);
|
|
13
|
+
}
|
|
14
|
+
default:
|
|
15
|
+
return state;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.reducer = reducer;
|
|
19
|
+
exports.default = exports.reducer;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const React = __importStar(require("react"));
|
|
27
|
+
const react_1 = require("react");
|
|
28
|
+
const CloseIcon = (props, ref) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 512 512", ref: ref }, props),
|
|
29
|
+
React.createElement("path", { style: {
|
|
30
|
+
fill: 'none',
|
|
31
|
+
stroke: 'currentColor',
|
|
32
|
+
strokeLinecap: 'round',
|
|
33
|
+
strokeLinejoin: 'round',
|
|
34
|
+
strokeWidth: 32,
|
|
35
|
+
}, d: "M368 368 144 144M368 144 144 368" })));
|
|
36
|
+
const ForwardRef = (0, react_1.forwardRef)(CloseIcon);
|
|
37
|
+
exports.default = ForwardRef;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import ReactModal from 'react-modal';
|
|
3
|
+
export interface ModalConfirmBoxProps extends ReactModal.Props {
|
|
4
|
+
readonly title: string;
|
|
5
|
+
readonly message: React.ReactNode;
|
|
6
|
+
readonly onRequestYes: React.MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<ModalConfirmBoxProps & React.RefAttributes<ReactModal>>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
const React = __importStar(require("react"));
|
|
41
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
|
+
const react_1 = require("@emotion/react");
|
|
43
|
+
const react_modal_1 = __importDefault(require("react-modal"));
|
|
44
|
+
const Button_1 = __importDefault(require("../Button"));
|
|
45
|
+
const Container = styled_1.default.div `
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-flow: column;
|
|
48
|
+
min-width: 20em;
|
|
49
|
+
`;
|
|
50
|
+
const Header = styled_1.default.div `
|
|
51
|
+
padding: 1em 1em 0 1em;
|
|
52
|
+
`;
|
|
53
|
+
const HeaderTitle = styled_1.default.div `
|
|
54
|
+
font-size: 1.4rem;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
`;
|
|
57
|
+
const Content = styled_1.default.div `
|
|
58
|
+
flex: 1;
|
|
59
|
+
padding: 1em 1em;
|
|
60
|
+
`;
|
|
61
|
+
const Footer = styled_1.default.div `
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: flex-end;
|
|
64
|
+
align-items: center;
|
|
65
|
+
padding: 1em 1em 1em 1em;
|
|
66
|
+
|
|
67
|
+
& > button {
|
|
68
|
+
border-radius: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
& > button:first-of-type {
|
|
72
|
+
border-top-left-radius: 1em;
|
|
73
|
+
border-bottom-left-radius: 1em;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
& > button:last-child {
|
|
77
|
+
border-top-right-radius: 1em;
|
|
78
|
+
border-bottom-right-radius: 1em;
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
81
|
+
const ModalConfirmBox = (props, ref) => {
|
|
82
|
+
const { title, message, onRequestYes, onRequestClose, isOpen } = props, otherProps = __rest(props, ["title", "message", "onRequestYes", "onRequestClose", "isOpen"]);
|
|
83
|
+
const dialogID = React.useMemo(() => `dialog-confirm-${new Date().getTime()}`, []);
|
|
84
|
+
const buttonRef = React.useRef(null);
|
|
85
|
+
const theme = (0, react_1.useTheme)();
|
|
86
|
+
React.useEffect(() => {
|
|
87
|
+
setTimeout(() => {
|
|
88
|
+
if (isOpen && buttonRef.current) {
|
|
89
|
+
buttonRef.current.focus();
|
|
90
|
+
}
|
|
91
|
+
}, 15);
|
|
92
|
+
}, [isOpen]);
|
|
93
|
+
return (React.createElement(React.Fragment, null,
|
|
94
|
+
React.createElement(react_modal_1.default, Object.assign({ ref: ref, portalClassName: "modal-confirmbox", closeTimeoutMS: 200, shouldCloseOnEsc: true, shouldCloseOnOverlayClick: false, onRequestClose: onRequestClose, isOpen: isOpen }, otherProps),
|
|
95
|
+
React.createElement(Container, { role: "modal-confirmbox", "aria-labelledby": `${dialogID}-title`, "aria-describedby": `${dialogID}-description` },
|
|
96
|
+
React.createElement(Header, null,
|
|
97
|
+
React.createElement(HeaderTitle, { id: `${dialogID}-title` }, title)),
|
|
98
|
+
React.createElement(Content, { id: `${dialogID}-description` }, message),
|
|
99
|
+
React.createElement(Footer, null,
|
|
100
|
+
React.createElement(Button_1.default, { onClick: onRequestClose }, "Dismiss"),
|
|
101
|
+
"Confirm"))),
|
|
102
|
+
React.createElement(react_1.Global, { styles: (0, react_1.css) `
|
|
103
|
+
.modal-confirmbox .ReactModal__Overlay {
|
|
104
|
+
position: fixed;
|
|
105
|
+
top: 0;
|
|
106
|
+
left: 0;
|
|
107
|
+
right: 0;
|
|
108
|
+
bottom: 0;
|
|
109
|
+
z-index: ${theme.zIndex.modal};
|
|
110
|
+
transition: background-color 120ms ease-in-out;
|
|
111
|
+
background-color: rgba(0, 0, 0, 0);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.modal-confirmbox .ReactModal__Overlay--after-open {
|
|
115
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.modal-confirmbox .ReactModal__Overlay--before-close {
|
|
119
|
+
background-color: rgba(0, 0, 0, 0);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.modal-confirmbox .ReactModal__Content {
|
|
123
|
+
position: absolute;
|
|
124
|
+
top: 50%;
|
|
125
|
+
left: 50%;
|
|
126
|
+
opacity: 0;
|
|
127
|
+
overflow: auto;
|
|
128
|
+
-webkit-overflow-scrolling: touch;
|
|
129
|
+
outline: none;
|
|
130
|
+
background: ${theme.color.surface.toString()};
|
|
131
|
+
border-radius: 1em;
|
|
132
|
+
transform: translate(-50%, -40%);
|
|
133
|
+
transition: transform 100ms ease-in-out, opacity 100ms ease-in-out;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.modal-confirmbox .ReactModal__Content--after-open {
|
|
137
|
+
opacity: 1;
|
|
138
|
+
transform: translate(-50%, -50%);
|
|
139
|
+
transition-duration: 160ms;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.modal-confirmbox .ReactModal__Content--before-close {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
transform: translate(-50%, 300px);
|
|
145
|
+
}
|
|
146
|
+
` })));
|
|
147
|
+
};
|
|
148
|
+
exports.default = React.forwardRef(ModalConfirmBox);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import ReactModal from 'react-modal';
|
|
3
|
+
export interface ModalDialogProps extends ReactModal.Props {
|
|
4
|
+
readonly children: React.ReactNode | React.ReactNode[];
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<ModalDialogProps & React.RefAttributes<ReactModal>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
const React = __importStar(require("react"));
|
|
41
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
|
+
const react_1 = require("@emotion/react");
|
|
43
|
+
const react_modal_1 = __importDefault(require("react-modal"));
|
|
44
|
+
const Container = styled_1.default.div `
|
|
45
|
+
padding: 1em;
|
|
46
|
+
`;
|
|
47
|
+
const ModalDialog = (props, ref) => {
|
|
48
|
+
const { children } = props, otherProps = __rest(props, ["children"]);
|
|
49
|
+
const theme = (0, react_1.useTheme)();
|
|
50
|
+
return (React.createElement(React.Fragment, null,
|
|
51
|
+
React.createElement(react_modal_1.default, Object.assign({ ref: ref, closeTimeoutMS: 200, portalClassName: "modal-dialog" }, otherProps),
|
|
52
|
+
React.createElement(Container, null, children)),
|
|
53
|
+
React.createElement(react_1.Global, { styles: (0, react_1.css) `
|
|
54
|
+
.modal-dialog .ReactModal__Overlay {
|
|
55
|
+
position: fixed;
|
|
56
|
+
top: 0;
|
|
57
|
+
left: 0;
|
|
58
|
+
right: 0;
|
|
59
|
+
bottom: 0;
|
|
60
|
+
z-index: ${theme.zIndex.modal};
|
|
61
|
+
transition: background-color 120ms ease-in-out;
|
|
62
|
+
background-color: rgba(0, 0, 0, 0);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.modal-dialog .ReactModal__Overlay--after-open {
|
|
66
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.modal-dialog .ReactModal__Overlay--before-close {
|
|
70
|
+
background-color: rgba(0, 0, 0, 0);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.modal-dialog .ReactModal__Content {
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 50%;
|
|
76
|
+
left: 50%;
|
|
77
|
+
opacity: 0;
|
|
78
|
+
overflow: auto;
|
|
79
|
+
-webkit-overflow-scrolling: touch;
|
|
80
|
+
outline: none;
|
|
81
|
+
background: ${theme.color.surface.toString()};
|
|
82
|
+
border-radius: 1em;
|
|
83
|
+
transform: translate(-50%, -40%);
|
|
84
|
+
transition: transform 100ms ease-in-out, opacity 100ms ease-in-out;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.modal-dialog .ReactModal__Content--after-open {
|
|
88
|
+
opacity: 1;
|
|
89
|
+
transform: translate(-50%, -50%);
|
|
90
|
+
transition-duration: 160ms;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.modal-dialog .ReactModal__Content--before-close {
|
|
94
|
+
opacity: 0;
|
|
95
|
+
transform: translate(-50%, 300px);
|
|
96
|
+
}
|
|
97
|
+
` })));
|
|
98
|
+
};
|
|
99
|
+
exports.default = React.forwardRef(ModalDialog);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import ReactModal from 'react-modal';
|
|
3
|
+
export interface ModalDrawerProps extends ReactModal.Props {
|
|
4
|
+
readonly children: React.ReactNode | React.ReactNode[];
|
|
5
|
+
readonly title?: string;
|
|
6
|
+
readonly toolbar?: React.ReactNode | React.ReactNode[] | null;
|
|
7
|
+
readonly footer?: React.ReactNode | React.ReactNode[] | null;
|
|
8
|
+
readonly closeButton?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<ModalDrawerProps & React.RefAttributes<ReactModal>>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
const React = __importStar(require("react"));
|
|
41
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
|
+
const react_1 = require("@emotion/react");
|
|
43
|
+
const react_modal_1 = __importDefault(require("react-modal"));
|
|
44
|
+
const Button_1 = __importDefault(require("../Button"));
|
|
45
|
+
const CloseIcon_1 = __importDefault(require("./CloseIcon"));
|
|
46
|
+
const Container = styled_1.default.div `
|
|
47
|
+
min-height: 2rem;
|
|
48
|
+
max-height: calc(100vh - 3rem);
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-flow: column;
|
|
51
|
+
`;
|
|
52
|
+
const Header = styled_1.default.div `
|
|
53
|
+
padding: 1em;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: space-between;
|
|
57
|
+
`;
|
|
58
|
+
const Toolbar = styled_1.default.div `
|
|
59
|
+
flex: 1;
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: flex-end;
|
|
63
|
+
`;
|
|
64
|
+
const Title = styled_1.default.div `
|
|
65
|
+
font-size: 1.3em;
|
|
66
|
+
font-weight: 600;
|
|
67
|
+
margin-right: 1em;
|
|
68
|
+
`;
|
|
69
|
+
const Footer = styled_1.default.div `
|
|
70
|
+
padding: 1em;
|
|
71
|
+
`;
|
|
72
|
+
const Inner = styled_1.default.div `
|
|
73
|
+
padding: 1em;
|
|
74
|
+
overflow-y: auto;
|
|
75
|
+
flex: 1;
|
|
76
|
+
`;
|
|
77
|
+
const CloseButton = (0, styled_1.default)(Button_1.default) `
|
|
78
|
+
margin-left: ${props => (props.$withToolbar ? '1em' : 0)};
|
|
79
|
+
color: ${props => props.theme.color.textPrimary.toString()};
|
|
80
|
+
background: none;
|
|
81
|
+
width: auto;
|
|
82
|
+
height: auto;
|
|
83
|
+
padding: 0.6em;
|
|
84
|
+
font-size: 1em;
|
|
85
|
+
border-radius: 100%;
|
|
86
|
+
display: flex;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
align-items: center;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
`;
|
|
91
|
+
const ModalDrawer = (props, ref) => {
|
|
92
|
+
const { children, onRequestClose, title, toolbar, footer, closeButton } = props, otherProps = __rest(props, ["children", "onRequestClose", "title", "toolbar", "footer", "closeButton"]);
|
|
93
|
+
const theme = (0, react_1.useTheme)();
|
|
94
|
+
const hasFooter = typeof footer !== 'undefined' && footer !== null;
|
|
95
|
+
const hasHeader = typeof title === 'string' || typeof toolbar !== 'undefined' || closeButton;
|
|
96
|
+
return (React.createElement(React.Fragment, null,
|
|
97
|
+
React.createElement(react_modal_1.default, Object.assign({ ref: ref, closeTimeoutMS: 300, shouldCloseOnEsc: true, shouldCloseOnOverlayClick: true, portalClassName: "modal-drawer", onRequestClose: onRequestClose }, otherProps),
|
|
98
|
+
React.createElement(Container, null,
|
|
99
|
+
hasHeader && (React.createElement(Header, null,
|
|
100
|
+
typeof title === 'string' && React.createElement(Title, null, title),
|
|
101
|
+
React.createElement(Toolbar, null, toolbar),
|
|
102
|
+
closeButton && (React.createElement(CloseButton, { type: "button", "$withToolbar": Boolean(toolbar), onClick: onRequestClose },
|
|
103
|
+
React.createElement(CloseIcon_1.default, null))))),
|
|
104
|
+
React.createElement(Inner, null, children),
|
|
105
|
+
hasFooter && React.createElement(Footer, null, footer))),
|
|
106
|
+
React.createElement(react_1.Global, { styles: (0, react_1.css) `
|
|
107
|
+
.modal-drawer .ReactModal__Overlay {
|
|
108
|
+
position: fixed;
|
|
109
|
+
top: 0;
|
|
110
|
+
left: 0;
|
|
111
|
+
right: 0;
|
|
112
|
+
bottom: 0;
|
|
113
|
+
z-index: ${theme.zIndex.modal};
|
|
114
|
+
background-color: rgba(0, 0, 0, 0);
|
|
115
|
+
transition: background-color 240ms ease-out;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.modal-drawer .ReactModal__Overlay--after-open {
|
|
119
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.modal-drawer .ReactModal__Overlay--before-close {
|
|
123
|
+
background-color: rgba(0, 0, 0, 0);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.modal-drawer .ReactModal__Content {
|
|
127
|
+
position: absolute;
|
|
128
|
+
bottom: 0;
|
|
129
|
+
left: 0;
|
|
130
|
+
right: 0;
|
|
131
|
+
overflow: auto;
|
|
132
|
+
-webkit-overflow-scrolling: touch;
|
|
133
|
+
outline: none;
|
|
134
|
+
background: ${theme.color.surface.toString()};
|
|
135
|
+
border-radius: 1em 1em 0 0;
|
|
136
|
+
transform: translate(0, 100%);
|
|
137
|
+
transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.modal-drawer .ReactModal__Content--after-open {
|
|
141
|
+
transform: translate(0, 0);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.modal-drawer .ReactModal__Content--before-close {
|
|
145
|
+
transform: translate(0, 100%);
|
|
146
|
+
transition-duration: 160ms;
|
|
147
|
+
}
|
|
148
|
+
` })));
|
|
149
|
+
};
|
|
150
|
+
exports.default = React.forwardRef(ModalDrawer);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import ReactModal from 'react-modal';
|
|
3
|
+
export interface ModalMessageBoxProps extends ReactModal.Props {
|
|
4
|
+
readonly title: string;
|
|
5
|
+
readonly message: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<ModalMessageBoxProps & React.RefAttributes<ReactModal>>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
const React = __importStar(require("react"));
|
|
41
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
|
+
const react_1 = require("@emotion/react");
|
|
43
|
+
const react_modal_1 = __importDefault(require("react-modal"));
|
|
44
|
+
const Button_1 = __importDefault(require("../Button"));
|
|
45
|
+
const Container = styled_1.default.div `
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-flow: column;
|
|
48
|
+
min-width: 20em;
|
|
49
|
+
`;
|
|
50
|
+
const Header = styled_1.default.div `
|
|
51
|
+
padding: 1em 1em 0 1em;
|
|
52
|
+
`;
|
|
53
|
+
const HeaderTitle = styled_1.default.div `
|
|
54
|
+
font-size: 1.4rem;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
`;
|
|
57
|
+
const Content = styled_1.default.div `
|
|
58
|
+
flex: 1;
|
|
59
|
+
padding: 1em 1em;
|
|
60
|
+
`;
|
|
61
|
+
const Footer = styled_1.default.div `
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: flex-end;
|
|
64
|
+
align-items: center;
|
|
65
|
+
padding: 1em 1em 1em 1em;
|
|
66
|
+
|
|
67
|
+
& > button {
|
|
68
|
+
border-radius: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
& > button:first-of-type {
|
|
72
|
+
border-top-left-radius: 1em;
|
|
73
|
+
border-bottom-left-radius: 1em;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
& > button:last-child {
|
|
77
|
+
border-top-right-radius: 1em;
|
|
78
|
+
border-bottom-right-radius: 1em;
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
81
|
+
const ModalMessageBox = (props, ref) => {
|
|
82
|
+
const { title, message, onRequestClose, isOpen } = props, otherProps = __rest(props, ["title", "message", "onRequestClose", "isOpen"]);
|
|
83
|
+
const dialogID = React.useMemo(() => `dialog-Message-${new Date().getTime()}`, []);
|
|
84
|
+
const buttonRef = React.useRef(null);
|
|
85
|
+
const theme = (0, react_1.useTheme)();
|
|
86
|
+
React.useEffect(() => {
|
|
87
|
+
setTimeout(() => {
|
|
88
|
+
if (isOpen && buttonRef.current) {
|
|
89
|
+
buttonRef.current.focus();
|
|
90
|
+
}
|
|
91
|
+
}, 15);
|
|
92
|
+
}, [isOpen]);
|
|
93
|
+
return (React.createElement(React.Fragment, null,
|
|
94
|
+
React.createElement(react_modal_1.default, Object.assign({ ref: ref, portalClassName: "modal-messagebox", closeTimeoutMS: 200, shouldCloseOnEsc: true, shouldCloseOnOverlayClick: false, onRequestClose: onRequestClose, isOpen: isOpen }, otherProps),
|
|
95
|
+
React.createElement(Container, { role: "dialog", "aria-labelledby": `${dialogID}-title`, "aria-describedby": `${dialogID}-description` },
|
|
96
|
+
React.createElement(Header, null,
|
|
97
|
+
React.createElement(HeaderTitle, { id: `${dialogID}-title` }, title)),
|
|
98
|
+
React.createElement(Content, { id: `${dialogID}-description` }, message),
|
|
99
|
+
React.createElement(Footer, null,
|
|
100
|
+
React.createElement(Button_1.default, { onClick: onRequestClose, ref: buttonRef }, "OK")))),
|
|
101
|
+
React.createElement(react_1.Global, { styles: (0, react_1.css) `
|
|
102
|
+
.modal-messagebox .ReactModal__Overlay {
|
|
103
|
+
position: fixed;
|
|
104
|
+
top: 0;
|
|
105
|
+
left: 0;
|
|
106
|
+
right: 0;
|
|
107
|
+
bottom: 0;
|
|
108
|
+
z-index: ${theme.zIndex.modal};
|
|
109
|
+
transition: background-color 120ms ease-in-out;
|
|
110
|
+
background-color: rgba(0, 0, 0, 0);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.modal-messagebox .ReactModal__Overlay--after-open {
|
|
114
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.modal-messagebox .ReactModal__Overlay--before-close {
|
|
118
|
+
background-color: rgba(0, 0, 0, 0);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.modal-messagebox .ReactModal__Content {
|
|
122
|
+
position: absolute;
|
|
123
|
+
top: 50%;
|
|
124
|
+
left: 50%;
|
|
125
|
+
opacity: 0;
|
|
126
|
+
overflow: auto;
|
|
127
|
+
-webkit-overflow-scrolling: touch;
|
|
128
|
+
outline: none;
|
|
129
|
+
background: ${theme.color.surface.toString()};
|
|
130
|
+
border-radius: 1em;
|
|
131
|
+
transform: translate(-50%, -40%);
|
|
132
|
+
transition: transform 100ms ease-in-out, opacity 100ms ease-in-out;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.modal-messagebox .ReactModal__Content--after-open {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
transform: translate(-50%, -50%);
|
|
138
|
+
transition-duration: 160ms;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.modal-messagebox .ReactModal__Content--before-close {
|
|
142
|
+
opacity: 0;
|
|
143
|
+
transform: translate(-50%, 300px);
|
|
144
|
+
}
|
|
145
|
+
` })));
|
|
146
|
+
};
|
|
147
|
+
exports.default = React.forwardRef(ModalMessageBox);
|
package/Modal/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type ReactModal from 'react-modal';
|
|
3
|
+
import { ModalDialogProps } from './ModalDialog';
|
|
4
|
+
import { ModalConfirmBoxProps } from './ModalConfirmBox';
|
|
5
|
+
import { ModalMessageBoxProps } from './ModalMessageBox';
|
|
6
|
+
import { ModalDrawerProps } from './ModalDrawer';
|
|
7
|
+
interface BaseProps {
|
|
8
|
+
readonly variant?: 'dialog' | 'message-box' | 'confirm-box' | 'drawer';
|
|
9
|
+
}
|
|
10
|
+
export type ModalProps = (ModalDialogProps & BaseProps) | (ModalConfirmBoxProps & BaseProps) | (ModalMessageBoxProps & BaseProps) | (ModalDrawerProps & BaseProps);
|
|
11
|
+
declare const _default: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<ReactModal>>;
|
|
12
|
+
export default _default;
|