@via-profit/ui-kit 0.1.0-rc.12 → 0.1.0-rc.15
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/popper-options.d.ts +4 -0
- package/Button/ButtonBase.d.ts +48 -9
- package/Button/ButtonBase.js +11 -23
- package/Button/ButtonContainer.d.ts +14 -0
- package/Button/ButtonContainer.js +47 -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/ButtonStandard.d.ts +5 -11
- package/Button/ButtonStandard.js +78 -20
- package/Button/ButtonTextWrapper.d.ts +4 -0
- package/Button/ButtonTextWrapper.js +29 -0
- package/Button/index.d.ts +22 -14
- package/Button/index.js +3 -3
- package/Calendar/CalendarBottomBar.d.ts +4 -0
- package/Calendar/CalendarCell.d.ts +8 -0
- package/Calendar/CalendarCell.js +9 -9
- package/Calendar/CalendarDateContainer.d.ts +6 -0
- package/Calendar/CalendarEmptyCell.d.ts +4 -0
- package/Calendar/CalendarEmptyCell.js +1 -1
- package/Calendar/CalendarMonthControl.d.ts +6 -0
- package/Calendar/CalendarMonthControl.js +5 -5
- package/Calendar/CalendarPaper.d.ts +6 -0
- package/Calendar/CalendarPaper.js +2 -2
- package/Calendar/CalendarTopBar.d.ts +4 -0
- package/Calendar/CalendarTopBar.js +1 -1
- package/Calendar/CalendarWeekDayLabel.d.ts +6 -0
- package/Calendar/CalendarWeekDayLabel.js +1 -1
- package/Calendar/CalendarWeekDaysBar.d.ts +10 -0
- package/Calendar/CalendarWeekDaysBar.js +1 -1
- package/Calendar/CalendarWeekRow.d.ts +6 -0
- package/Calendar/IconChevronLeft.d.ts +3 -0
- package/Calendar/IconChevronRight.d.ts +3 -0
- package/Calendar/index.d.ts +18 -0
- package/Calendar/use-calendar.d.ts +50 -0
- package/Color/index.d.ts +104 -18
- package/Color/index.js +440 -18
- 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/{PhoneField/flags/JPFlag.js → CountryFlags/GP.js} +5 -8
- 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/{PhoneField/flags/UAFlag.js → CountryFlags/PM.js} +5 -4
- 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/{PhoneField/flags/RUFlag.js → CountryFlags/RE.js} +5 -5
- 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/ErrorBoundary/index.d.ts +19 -0
- package/Image/index.d.ts +7 -0
- package/MaskedField/index.d.ts +33 -0
- package/MaskedField/templates.d.ts +11 -0
- package/MaskedField/useMasked.d.ts +18 -0
- package/Menu/MenuItem.d.ts +10 -0
- package/Menu/MenuItemInner.d.ts +7 -0
- package/Menu/MenuItemInner.js +4 -4
- package/Menu/MenuWrapper.d.ts +10 -0
- package/Menu/MenuWrapper.js +7 -7
- package/Menu/index.d.ts +196 -0
- package/Menu/popper-options.d.ts +4 -0
- package/Menu/reducer.d.ts +14 -0
- package/Modal/CloseIcon.d.ts +3 -0
- package/Modal/ModalConfirmBox.d.ts +9 -0
- package/Modal/ModalConfirmBox.js +1 -1
- package/Modal/ModalDialog.d.ts +7 -0
- package/Modal/ModalDialog.js +1 -1
- package/Modal/ModalDrawer.d.ts +11 -0
- package/Modal/ModalDrawer.js +2 -2
- package/Modal/ModalMessageBox.d.ts +8 -0
- package/Modal/ModalMessageBox.js +1 -1
- package/Modal/index.d.ts +12 -0
- package/NoSSR/index.d.ts +7 -0
- package/PhoneField/CountryFlagComponent.d.ts +6 -0
- package/PhoneField/CountryFlagComponent.js +44 -0
- package/PhoneField/UnknownFlag.d.ts +3 -0
- package/PhoneField/{flags/UnknownFlag.js → UnknownFlag.js} +3 -3
- package/PhoneField/index.d.ts +54 -0
- package/PhoneField/index.js +28 -13
- package/PhoneField/templates.d.ts +82 -0
- package/PhoneField/templates.js +40 -13
- package/PhoneField/usePhoneUtils.d.ts +69 -0
- package/PhoneField/usePhoneUtils.js +23 -8
- package/README.md +2 -37
- package/SelectBox/IconChevronDown.d.ts +3 -0
- package/SelectBox/SelectButton.d.ts +10 -0
- package/SelectBox/SelectButton.js +4 -4
- package/SelectBox/index.d.ts +40 -0
- package/SelectBox/popper-options.d.ts +4 -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 +2 -2
- package/TextField/TextFieldErrorText.d.ts +7 -0
- package/TextField/TextFieldErrorText.js +3 -3
- package/TextField/TextFieldIconWrapper.d.ts +18 -0
- package/TextField/TextFieldIconWrapper.js +2 -2
- package/TextField/TextFieldInput.d.ts +7 -0
- package/TextField/TextFieldInput.js +20 -9
- package/TextField/TextFieldInputWrapper.d.ts +14 -0
- package/TextField/{TextFieldWrapper.js → TextFieldInputWrapper.js} +13 -13
- package/TextField/TextFieldLabel.d.ts +7 -0
- package/TextField/TextFieldLabel.js +2 -2
- package/TextField/TextFieldLabelAsterisk.d.ts +13 -0
- package/TextField/TextFieldLabelAsterisk.js +3 -3
- package/TextField/index.d.ts +80 -0
- package/TextField/index.js +17 -10
- package/ThemeProvider/createTheme.d.ts +3 -0
- package/ThemeProvider/createTheme.js +13 -6
- package/ThemeProvider/index.d.ts +54 -13
- package/ThemeProvider/index.js +17 -0
- package/Typography/Base.d.ts +6 -0
- package/Typography/Base.js +1 -1
- package/Typography/Blockquote.d.ts +6 -0
- package/Typography/Blockquote.js +2 -2
- package/Typography/Del.d.ts +6 -0
- package/Typography/Del.js +1 -1
- package/Typography/Em.d.ts +6 -0
- package/Typography/Em.js +1 -1
- package/Typography/H1.d.ts +6 -0
- package/Typography/H1.js +1 -1
- package/Typography/H2.d.ts +6 -0
- package/Typography/H2.js +1 -1
- package/Typography/H3.d.ts +6 -0
- package/Typography/H3.js +1 -1
- package/Typography/H4.d.ts +6 -0
- package/Typography/H4.js +1 -1
- package/Typography/H5.d.ts +6 -0
- package/Typography/H5.js +1 -1
- package/Typography/List.d.ts +14 -0
- package/Typography/List.js +16 -4
- package/Typography/Paragraph.d.ts +13 -8
- package/Typography/Paragraph.js +27 -4
- package/Typography/SectionDescription.d.ts +7 -0
- package/Typography/SectionTitle.d.ts +8 -0
- package/Typography/Span.d.ts +6 -0
- package/Typography/Span.js +1 -1
- package/Typography/Strong.d.ts +6 -0
- package/Typography/Strong.js +1 -1
- package/Typography/U.d.ts +6 -0
- package/Typography/index.d.ts +3 -7
- package/index.d.ts +1 -49
- package/index.js +17 -0
- package/package.json +3 -2
- package/Button/ButtonAccent.d.ts +0 -11
- package/Button/ButtonAccent.js +0 -45
- package/Button/components/EndIconWrapper.js +0 -10
- package/Button/components/StartIconWrapper.js +0 -10
- package/Button/components/TextWrapper.js +0 -12
- package/Color/Color.js +0 -361
- package/PhoneField/CountryFlag.js +0 -52
- package/PhoneField/flags/BYFlag.js +0 -44
- package/PhoneField/flags/KZFlag.js +0 -45
- package/PhoneField/flags/USFlag.js +0 -34
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuRef, MenuProps, Value } from '../Menu';
|
|
3
|
+
export type AutocompleteProps<T, Multiple extends boolean | undefined = undefined> = AutocompleteMenuProps<T, Multiple>;
|
|
4
|
+
export type AutocompleteContainerRef = HTMLDivElement;
|
|
5
|
+
type AutocompleteMenuProps<T, Multiple extends boolean | undefined = undefined> = Pick<MenuProps<T, Multiple>, 'items' | 'value' | 'estimatedItemSize' | 'endThreshold' | 'overscanCount' | 'getOptionSelected' | 'onEndReached' | 'onSelectItem' | 'renderItem' | 'multiple' | 'zIndex' | 'onRequestClose' | 'isOpen'> & {
|
|
6
|
+
readonly containerRef?: React.Ref<AutocompleteContainerRef>;
|
|
7
|
+
readonly itemToString: ItemToString<T, Multiple>;
|
|
8
|
+
readonly renderInput: (params: RenderInputProps<T, Multiple>) => React.ReactNode;
|
|
9
|
+
readonly onRequestOpen: (event?: FocusEvent | KeyboardEvent | MouseEvent | React.FocusEvent | React.KeyboardEvent | React.MouseEvent) => void;
|
|
10
|
+
readonly onInputChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
11
|
+
readonly filterItems?: (items: readonly T[], data: {
|
|
12
|
+
readonly query: string;
|
|
13
|
+
readonly inputValue: string;
|
|
14
|
+
}) => readonly T[];
|
|
15
|
+
};
|
|
16
|
+
export type ItemToString<T, Multiple> = Multiple extends undefined | false ? (item: T) => string : undefined;
|
|
17
|
+
export type RenderInputProps<T, Multiple extends boolean | undefined = undefined> = {
|
|
18
|
+
readonly selected: Value<T, Multiple> | null;
|
|
19
|
+
readonly value: string;
|
|
20
|
+
readonly inputRef: React.Ref<HTMLInputElement>;
|
|
21
|
+
readonly onClick: React.MouseEventHandler<HTMLInputElement>;
|
|
22
|
+
readonly onFocus: React.FocusEventHandler<HTMLInputElement>;
|
|
23
|
+
readonly onBlur: React.FocusEventHandler<HTMLInputElement>;
|
|
24
|
+
readonly onKeyDown: React.KeyboardEventHandler<HTMLInputElement>;
|
|
25
|
+
readonly onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
26
|
+
};
|
|
27
|
+
export type AutocompleteRef<T> = Pick<MenuRef<T>, 'scrollToItem' | 'scrollTo' | 'scrollToFirstSelected' | 'selectItem' | 'highlightIndex' | 'hightlightPrevItem' | 'hightlightNextItem' | 'hightlightFirstItem' | 'hightlightLastItem' | 'selectHightlightedItem' | 'updatePopper'> & {
|
|
28
|
+
readonly clear: () => void;
|
|
29
|
+
readonly focus: () => void;
|
|
30
|
+
readonly blur: () => void;
|
|
31
|
+
readonly clearInput: () => void;
|
|
32
|
+
};
|
|
33
|
+
declare const _default: <T, Multiple extends boolean | undefined = undefined>(props: Pick<MenuProps<T, Multiple>, "zIndex" | "isOpen" | "estimatedItemSize" | "overscanCount" | "items" | "value" | "endThreshold" | "multiple" | "getOptionSelected" | "onEndReached" | "onSelectItem" | "renderItem" | "onRequestClose"> & {
|
|
34
|
+
readonly containerRef?: React.Ref<HTMLDivElement> | undefined;
|
|
35
|
+
readonly itemToString: ItemToString<T, Multiple>;
|
|
36
|
+
readonly renderInput: (params: RenderInputProps<T, Multiple>) => React.ReactNode;
|
|
37
|
+
readonly onRequestOpen: (event?: MouseEvent | KeyboardEvent | FocusEvent | React.FocusEvent<Element, Element> | React.KeyboardEvent<Element> | React.MouseEvent<Element, MouseEvent> | undefined) => void;
|
|
38
|
+
readonly onInputChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
39
|
+
readonly filterItems?: ((items: readonly T[], data: {
|
|
40
|
+
readonly query: string;
|
|
41
|
+
readonly inputValue: string;
|
|
42
|
+
}) => readonly T[]) | undefined;
|
|
43
|
+
} & {
|
|
44
|
+
ref?: React.Ref<AutocompleteRef<T>> | undefined;
|
|
45
|
+
}) => JSX.Element;
|
|
46
|
+
export default _default;
|
package/Button/ButtonBase.d.ts
CHANGED
|
@@ -1,12 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonIconWrapperProps } from './ButtonIconWrapper';
|
|
3
|
+
import { ButtonTextWrapperProps } from './ButtonTextWrapper';
|
|
4
|
+
import { ButtonContainerProps } from './ButtonContainer';
|
|
5
|
+
type ButtonNativeProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
6
|
+
export interface ButtonBaseProps extends Omit<ButtonNativeProps, 'color'> {
|
|
7
|
+
/**
|
|
8
|
+
* Icon or another JSX element placed before button label\
|
|
9
|
+
* Example:
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Button startIcon={<MyIconElement />}>
|
|
12
|
+
* Label
|
|
13
|
+
* </Button>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
5
16
|
readonly startIcon?: JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* Icon or another JSX element placed after button label
|
|
19
|
+
* Example:
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <Button endIcon={<MyIconElement />}>
|
|
22
|
+
* Label
|
|
23
|
+
* </Button>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
6
26
|
readonly endIcon?: JSX.Element;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
27
|
+
/**
|
|
28
|
+
* You can pass the primary, default, secondary name of the colors or your specified color value
|
|
29
|
+
*/
|
|
30
|
+
readonly color?: ButtonContainerProps['color'];
|
|
31
|
+
/**
|
|
32
|
+
* Overridable components map
|
|
33
|
+
*/
|
|
34
|
+
readonly overrides?: ButtonBaseOverrides;
|
|
12
35
|
}
|
|
36
|
+
export interface ButtonBaseOverrides {
|
|
37
|
+
/**
|
|
38
|
+
* Start icon wrapper
|
|
39
|
+
*/
|
|
40
|
+
readonly Container?: React.ForwardRefExoticComponent<ButtonContainerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
41
|
+
/**
|
|
42
|
+
* Start icon wrapper
|
|
43
|
+
*/
|
|
44
|
+
readonly IconWrapper?: React.ForwardRefExoticComponent<ButtonIconWrapperProps & React.RefAttributes<HTMLSpanElement>>;
|
|
45
|
+
/**
|
|
46
|
+
* text wrapper
|
|
47
|
+
*/
|
|
48
|
+
readonly TextWrapper?: React.ForwardRefExoticComponent<ButtonTextWrapperProps & React.RefAttributes<HTMLSpanElement>>;
|
|
49
|
+
}
|
|
50
|
+
declare const _default: React.ForwardRefExoticComponent<ButtonBaseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
51
|
+
export default _default;
|
package/Button/ButtonBase.js
CHANGED
|
@@ -15,29 +15,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
const react_1 = __importDefault(require("react"));
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const TextWrapper_1 = __importDefault(require("./components/TextWrapper"));
|
|
22
|
-
const Button = styled_1.default.button `
|
|
23
|
-
border-radius: ${({ theme }) => theme.shape.radiusFactor * 2}em;
|
|
24
|
-
padding: 0.8em 1em;
|
|
25
|
-
font-size: 0.8rem;
|
|
26
|
-
cursor: ${({ disabled }) => (disabled ? 'default' : 'pointer')};
|
|
27
|
-
font-size: 1em;
|
|
28
|
-
border: 0;
|
|
29
|
-
outline: transparent;
|
|
30
|
-
transition: all 180ms ease-out 0s;
|
|
31
|
-
background: none;
|
|
32
|
-
color: currentColor;
|
|
33
|
-
display: inline-flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
`;
|
|
18
|
+
const ButtonIconWrapper_1 = __importDefault(require("./ButtonIconWrapper"));
|
|
19
|
+
const ButtonTextWrapper_1 = __importDefault(require("./ButtonTextWrapper"));
|
|
20
|
+
const ButtonContainer_1 = __importDefault(require("./ButtonContainer"));
|
|
36
21
|
const ButtonBase = (props, ref) => {
|
|
37
|
-
const { children, startIcon, endIcon } = props,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
22
|
+
const { children, startIcon, endIcon, color, overrides } = props, nativeProps = __rest(props, ["children", "startIcon", "endIcon", "color", "overrides"]);
|
|
23
|
+
const overridesMap = react_1.default.useMemo(() => (Object.assign({ TextWrapper: ButtonTextWrapper_1.default,
|
|
24
|
+
IconWrapper: ButtonIconWrapper_1.default,
|
|
25
|
+
Container: ButtonContainer_1.default }, overrides)), [overrides]);
|
|
26
|
+
return (react_1.default.createElement(overridesMap.Container, Object.assign({}, nativeProps, { ref: ref }),
|
|
27
|
+
typeof startIcon !== 'undefined' && startIcon !== null && (react_1.default.createElement(overridesMap.IconWrapper, { position: "start" }, startIcon)),
|
|
28
|
+
react_1.default.createElement(overridesMap.TextWrapper, null, children),
|
|
29
|
+
typeof endIcon !== 'undefined' && endIcon !== null && (react_1.default.createElement(overridesMap.IconWrapper, { position: "end" }, endIcon))));
|
|
42
30
|
};
|
|
43
31
|
exports.default = react_1.default.forwardRef(ButtonBase);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ButtonContainerProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3
|
+
/**
|
|
4
|
+
* You can pass the primary, default, secondary name of the colors or your specified color value
|
|
5
|
+
*/
|
|
6
|
+
readonly color?: 'default' | 'primary' | 'secondary' | string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
9
|
+
/**
|
|
10
|
+
* You can pass the primary, default, secondary name of the colors or your specified color value
|
|
11
|
+
*/
|
|
12
|
+
readonly color?: string | undefined;
|
|
13
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
const react_1 = __importDefault(require("react"));
|
|
18
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
19
|
+
const StyledButton = styled_1.default.button `
|
|
20
|
+
border-radius: ${({ theme }) => theme.shape.radiusFactor * 2}em;
|
|
21
|
+
padding: 0.8em 1em;
|
|
22
|
+
font-size: 0.8rem;
|
|
23
|
+
cursor: ${({ disabled }) => (disabled ? 'default' : 'pointer')};
|
|
24
|
+
font-size: 1em;
|
|
25
|
+
border-width: 0;
|
|
26
|
+
outline-style: solid;
|
|
27
|
+
outline-color: transparent;
|
|
28
|
+
outline-width: 0.14em;
|
|
29
|
+
transition: all 180ms ease-out 0s;
|
|
30
|
+
background: none;
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
color: ${({ color, disabled, theme }) => {
|
|
34
|
+
switch (true) {
|
|
35
|
+
case disabled:
|
|
36
|
+
return theme.color.textSecondary.alpha(0.8).toString();
|
|
37
|
+
case !disabled && typeof color === 'undefined':
|
|
38
|
+
default:
|
|
39
|
+
return theme.color.textPrimary.toString();
|
|
40
|
+
}
|
|
41
|
+
}};
|
|
42
|
+
`;
|
|
43
|
+
const ButtonContainer = (props, ref) => {
|
|
44
|
+
const { children } = props, nativeProps = __rest(props, ["children"]);
|
|
45
|
+
return (react_1.default.createElement(StyledButton, Object.assign({}, nativeProps, { ref: ref }), children));
|
|
46
|
+
};
|
|
47
|
+
exports.default = react_1.default.forwardRef(ButtonContainer);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ButtonIconWrapperProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
3
|
+
/**
|
|
4
|
+
* Icon position
|
|
5
|
+
*/
|
|
6
|
+
readonly position: 'start' | 'end';
|
|
7
|
+
};
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
|
|
9
|
+
/**
|
|
10
|
+
* Icon position
|
|
11
|
+
*/
|
|
12
|
+
readonly position: "end" | "start";
|
|
13
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
const react_1 = __importDefault(require("react"));
|
|
18
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
19
|
+
const react_2 = require("@emotion/react");
|
|
20
|
+
const Wrapper = styled_1.default.span `
|
|
21
|
+
${({ $position }) => $position === 'start' &&
|
|
22
|
+
(0, react_2.css) `
|
|
23
|
+
margin-right: 0.8em;
|
|
24
|
+
`};
|
|
25
|
+
${({ $position }) => $position === 'end' &&
|
|
26
|
+
(0, react_2.css) `
|
|
27
|
+
margin-left: 0.8em;
|
|
28
|
+
`};
|
|
29
|
+
`;
|
|
30
|
+
const ButtonIconWrapper = (props, ref) => {
|
|
31
|
+
const { children, position } = props, nativeProps = __rest(props, ["children", "position"]);
|
|
32
|
+
return (react_1.default.createElement(Wrapper, Object.assign({ "$position": position }, nativeProps, { ref: ref }), children));
|
|
33
|
+
};
|
|
34
|
+
exports.default = react_1.default.forwardRef(ButtonIconWrapper);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonBaseProps } from './ButtonBase';
|
|
3
|
+
export type ButtonOutlinedProps = ButtonBaseProps;
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<ButtonBaseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
const react_1 = __importDefault(require("react"));
|
|
18
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
19
|
+
const react_2 = require("@emotion/react");
|
|
20
|
+
const Color_1 = __importDefault(require("../Color"));
|
|
21
|
+
const ButtonBase_1 = __importDefault(require("./ButtonBase"));
|
|
22
|
+
const StyledOutlinedButton = (0, styled_1.default)(ButtonBase_1.default) `
|
|
23
|
+
color: ${({ theme, disabled, $color }) => {
|
|
24
|
+
switch (true) {
|
|
25
|
+
case disabled:
|
|
26
|
+
return theme.color.textPrimary.alpha(0.4).toString();
|
|
27
|
+
default:
|
|
28
|
+
return $color.darken(30).toString();
|
|
29
|
+
}
|
|
30
|
+
}};
|
|
31
|
+
border-color: ${({ theme, disabled, $color }) => {
|
|
32
|
+
switch (true) {
|
|
33
|
+
case disabled:
|
|
34
|
+
return theme.color.surface.darken(80).alpha(0.4).toString();
|
|
35
|
+
default:
|
|
36
|
+
return $color.toString();
|
|
37
|
+
}
|
|
38
|
+
}};
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
border-style: solid;
|
|
41
|
+
border-width: 0.14em;
|
|
42
|
+
${({ disabled, $color, theme }) => !disabled &&
|
|
43
|
+
(0, react_2.css) `
|
|
44
|
+
&:hover {
|
|
45
|
+
background-color: ${$color.darken(20).alpha(0.1).toString()};
|
|
46
|
+
}
|
|
47
|
+
&:active {
|
|
48
|
+
background-color: ${$color.darken(50).alpha(0.3).toString()};
|
|
49
|
+
}
|
|
50
|
+
&:focus-visible {
|
|
51
|
+
outline-color: ${$color.rgbString() === theme.color.accentPrimary.rgbString()
|
|
52
|
+
? theme.color.textPrimary.toString()
|
|
53
|
+
: theme.color.accentPrimary.toString()};
|
|
54
|
+
}
|
|
55
|
+
`};
|
|
56
|
+
`;
|
|
57
|
+
const ButtonOutlined = (props, ref) => {
|
|
58
|
+
const { children, disabled, color } = props, restProps = __rest(props, ["children", "disabled", "color"]);
|
|
59
|
+
const theme = (0, react_2.useTheme)();
|
|
60
|
+
const $color = react_1.default.useMemo(() => {
|
|
61
|
+
switch (true) {
|
|
62
|
+
case color === 'primary':
|
|
63
|
+
return theme.color.accentPrimary;
|
|
64
|
+
case color === 'secondary':
|
|
65
|
+
return theme.color.accentSecondary;
|
|
66
|
+
case typeof color === 'undefined':
|
|
67
|
+
case color === 'default':
|
|
68
|
+
return theme.color.textPrimary;
|
|
69
|
+
case typeof color === 'string': {
|
|
70
|
+
let c = theme.color.textPrimary;
|
|
71
|
+
try {
|
|
72
|
+
if (color) {
|
|
73
|
+
c = new Color_1.default(color);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
catch (err) {
|
|
77
|
+
console.error(`invalid color value «${color}»`);
|
|
78
|
+
}
|
|
79
|
+
return c;
|
|
80
|
+
}
|
|
81
|
+
default:
|
|
82
|
+
return theme.color.textPrimary;
|
|
83
|
+
}
|
|
84
|
+
}, [color, theme.color]);
|
|
85
|
+
return (react_1.default.createElement(StyledOutlinedButton, Object.assign({ disabled: disabled, "$color": $color }, restProps, { ref: ref }), children));
|
|
86
|
+
};
|
|
87
|
+
exports.default = react_1.default.forwardRef(ButtonOutlined);
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export type ButtonStandardProps = ButtonBaseProps;
|
|
7
|
-
|
|
8
|
-
const ButtonStandard: React.FC<ButtonStandardProps>;
|
|
9
|
-
|
|
10
|
-
export default ButtonStandard;
|
|
11
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonBaseProps } from './ButtonBase';
|
|
3
|
+
export type ButtonStandardProps = ButtonBaseProps;
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<ButtonBaseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export default _default;
|
package/Button/ButtonStandard.js
CHANGED
|
@@ -17,36 +17,94 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
const react_1 = __importDefault(require("react"));
|
|
18
18
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
19
19
|
const react_2 = require("@emotion/react");
|
|
20
|
+
const Color_1 = __importDefault(require("../Color"));
|
|
20
21
|
const ButtonBase_1 = __importDefault(require("./ButtonBase"));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
:
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
const StyledStandardButton = (0, styled_1.default)(ButtonBase_1.default) `
|
|
23
|
+
color: ${({ $color, disabled }) => {
|
|
24
|
+
switch (true) {
|
|
25
|
+
case disabled:
|
|
26
|
+
return $color.alpha(0.4).toString();
|
|
27
|
+
default:
|
|
28
|
+
return $color.toString();
|
|
29
|
+
}
|
|
30
|
+
}};
|
|
31
|
+
background-color: ${({ $background, disabled }) => {
|
|
32
|
+
switch (true) {
|
|
33
|
+
case disabled:
|
|
34
|
+
return $background.darken(10).toString();
|
|
35
|
+
default:
|
|
36
|
+
return $background.toString();
|
|
37
|
+
}
|
|
38
|
+
}};
|
|
39
|
+
box-shadow: 0 0.125em 0.75em
|
|
40
|
+
${({ $background }) => {
|
|
41
|
+
switch (true) {
|
|
42
|
+
case $background.luminance() > 0.49:
|
|
43
|
+
return $background.darken(40).alpha(0.8).toString();
|
|
44
|
+
default:
|
|
45
|
+
return $background.darken(20).alpha(0.5).toString();
|
|
46
|
+
}
|
|
47
|
+
}};
|
|
48
|
+
${({ disabled, $background, theme }) => !disabled &&
|
|
35
49
|
(0, react_2.css) `
|
|
36
|
-
box-shadow: 0 2px 12px ${theme.colors.surface.darken(40).alpha(0.6).toString()};
|
|
37
50
|
&:hover {
|
|
38
|
-
background-color: ${
|
|
51
|
+
background-color: ${$background.darken(30).toString()};
|
|
39
52
|
}
|
|
40
53
|
&:active {
|
|
41
|
-
background-color: ${
|
|
54
|
+
background-color: ${$background.darken(80).toString()};
|
|
42
55
|
}
|
|
43
56
|
&:focus-visible {
|
|
44
|
-
outline:
|
|
57
|
+
outline-color: ${$background.rgbString() === theme.color.accentPrimary.rgbString()
|
|
58
|
+
? theme.color.textPrimary.toString()
|
|
59
|
+
: theme.color.accentPrimary.toString()};
|
|
45
60
|
}
|
|
46
61
|
`}
|
|
47
62
|
`;
|
|
48
63
|
const ButtonStandard = (props, ref) => {
|
|
49
|
-
const { children, disabled } = props, restProps = __rest(props, ["children", "disabled"]);
|
|
50
|
-
|
|
64
|
+
const { children, disabled, color } = props, restProps = __rest(props, ["children", "disabled", "color"]);
|
|
65
|
+
const theme = (0, react_2.useTheme)();
|
|
66
|
+
const { $background, $color } = react_1.default.useMemo(() => {
|
|
67
|
+
switch (true) {
|
|
68
|
+
case color === 'primary':
|
|
69
|
+
return {
|
|
70
|
+
$color: theme.color.accentPrimaryContrast,
|
|
71
|
+
$background: theme.color.accentPrimary,
|
|
72
|
+
};
|
|
73
|
+
case color === 'secondary':
|
|
74
|
+
return {
|
|
75
|
+
$color: theme.color.accentSecondaryContrast,
|
|
76
|
+
$background: theme.color.accentSecondary,
|
|
77
|
+
};
|
|
78
|
+
case typeof color === 'undefined':
|
|
79
|
+
case color === 'default':
|
|
80
|
+
return {
|
|
81
|
+
$background: theme.color.surface,
|
|
82
|
+
$color: theme.color.textPrimary,
|
|
83
|
+
};
|
|
84
|
+
case typeof color === 'string': {
|
|
85
|
+
let $background = theme.color.surface;
|
|
86
|
+
try {
|
|
87
|
+
if (color) {
|
|
88
|
+
$background = new Color_1.default(color);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
catch (err) {
|
|
92
|
+
console.error(`invalid color value «${color}»`);
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
$background,
|
|
96
|
+
$color: $background.contrast(theme.color.textPrimary.rgbString()) > 5
|
|
97
|
+
? theme.color.textPrimary
|
|
98
|
+
: theme.color.surface,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
default:
|
|
102
|
+
return {
|
|
103
|
+
$background: theme.color.surface,
|
|
104
|
+
$color: theme.color.textPrimary,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}, [color, theme.color]);
|
|
108
|
+
return (react_1.default.createElement(StyledStandardButton, Object.assign({ "$color": $color, "$background": $background, disabled: disabled }, restProps, { ref: ref }), children));
|
|
51
109
|
};
|
|
52
110
|
exports.default = react_1.default.forwardRef(ButtonStandard);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
const react_1 = __importDefault(require("react"));
|
|
18
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
19
|
+
const TextWrapper = styled_1.default.span `
|
|
20
|
+
font-size: 0.86em;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
user-select: none;
|
|
24
|
+
`;
|
|
25
|
+
const ButtonTextWrapper = (props, ref) => {
|
|
26
|
+
const { children } = props, nativeProps = __rest(props, ["children"]);
|
|
27
|
+
return (react_1.default.createElement(TextWrapper, Object.assign({}, nativeProps, { ref: ref }), children));
|
|
28
|
+
};
|
|
29
|
+
exports.default = react_1.default.forwardRef(ButtonTextWrapper);
|
package/Button/index.d.ts
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonStandardProps } from './ButtonStandard';
|
|
3
|
+
import { ButtonOutlinedProps } from './ButtonOutlined';
|
|
4
|
+
export type ButtonProps = (ButtonStandardProps | ButtonOutlinedProps) & {
|
|
5
|
+
/**
|
|
6
|
+
* Button style variant\
|
|
7
|
+
* Allowed variants: `standard` or `outlined`\
|
|
8
|
+
* \
|
|
9
|
+
* **Default**: `standard`
|
|
10
|
+
*/
|
|
11
|
+
readonly variant?: 'standard' | 'outlined';
|
|
12
|
+
};
|
|
13
|
+
declare const _default: React.ForwardRefExoticComponent<import("./ButtonBase").ButtonBaseProps & {
|
|
14
|
+
/**
|
|
15
|
+
* Button style variant\
|
|
16
|
+
* Allowed variants: `standard` or `outlined`\
|
|
17
|
+
* \
|
|
18
|
+
* **Default**: `standard`
|
|
19
|
+
*/
|
|
20
|
+
readonly variant?: "standard" | "outlined" | undefined;
|
|
21
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
export default _default;
|
package/Button/index.js
CHANGED
|
@@ -16,11 +16,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
const react_1 = __importDefault(require("react"));
|
|
18
18
|
const ButtonStandard_1 = __importDefault(require("./ButtonStandard"));
|
|
19
|
-
const
|
|
19
|
+
const ButtonOutlined_1 = __importDefault(require("./ButtonOutlined"));
|
|
20
20
|
const Button = (props, ref) => {
|
|
21
21
|
const { variant } = props, buttonProps = __rest(props, ["variant"]);
|
|
22
|
-
if (variant === '
|
|
23
|
-
return react_1.default.createElement(
|
|
22
|
+
if (variant === 'outlined') {
|
|
23
|
+
return react_1.default.createElement(ButtonOutlined_1.default, Object.assign({}, buttonProps, { ref: ref }));
|
|
24
24
|
}
|
|
25
25
|
return react_1.default.createElement(ButtonStandard_1.default, Object.assign({}, buttonProps, { ref: ref }));
|
|
26
26
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CalendarCellProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
readonly isToday?: boolean;
|
|
4
|
+
readonly isSelected?: boolean;
|
|
5
|
+
readonly isDisabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<CalendarCellProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export default _default;
|
package/Calendar/CalendarCell.js
CHANGED
|
@@ -28,27 +28,27 @@ const Btn = styled_1.default.button `
|
|
|
28
28
|
outline: none;
|
|
29
29
|
cursor: ${({ $isDisabled }) => ($isDisabled ? 'default' : 'pointer')};
|
|
30
30
|
border: 1px solid transparent;
|
|
31
|
-
background-color: ${({ theme, $isSelected }) => $isSelected ? theme.
|
|
31
|
+
background-color: ${({ theme, $isSelected }) => $isSelected ? theme.color.accentPrimary.toString() : theme.color.surface.toString()};
|
|
32
32
|
border-radius: ${({ theme }) => theme.shape.radiusFactor * 3}em;
|
|
33
33
|
color: ${({ $isToday, theme, $isSelected, $isDisabled }) => {
|
|
34
34
|
if ($isDisabled) {
|
|
35
|
-
return theme.
|
|
35
|
+
return theme.color.textSecondary.toString();
|
|
36
36
|
}
|
|
37
37
|
if ($isSelected) {
|
|
38
|
-
return theme.
|
|
38
|
+
return theme.color.accentPrimaryContrast.toString();
|
|
39
39
|
}
|
|
40
40
|
if ($isToday) {
|
|
41
|
-
return theme.
|
|
41
|
+
return theme.color.accentPrimary.toString();
|
|
42
42
|
}
|
|
43
|
-
return theme.
|
|
43
|
+
return theme.color.textPrimary.toString();
|
|
44
44
|
}};
|
|
45
45
|
&:hover {
|
|
46
46
|
background-color: ${({ theme, $isSelected }) => $isSelected
|
|
47
|
-
? theme.
|
|
48
|
-
: theme.
|
|
47
|
+
? theme.color.accentPrimary.darken(10).toString()
|
|
48
|
+
: theme.color.surface.darken(10).toString()};
|
|
49
49
|
}
|
|
50
50
|
&:focus-visible {
|
|
51
|
-
border-color: ${({ theme, $isDisabled }) => $isDisabled ? 'transparent' : theme.
|
|
51
|
+
border-color: ${({ theme, $isDisabled }) => $isDisabled ? 'transparent' : theme.color.accentPrimary.toString()};
|
|
52
52
|
}
|
|
53
53
|
opacity: ${({ $isDisabled }) => ($isDisabled ? 0.4 : 1)};
|
|
54
54
|
`;
|
|
@@ -56,4 +56,4 @@ const CalendarCell = (props, ref) => {
|
|
|
56
56
|
const { isToday, children, isSelected, isDisabled } = props, restProps = __rest(props, ["isToday", "children", "isSelected", "isDisabled"]);
|
|
57
57
|
return (react_1.default.createElement(Btn, Object.assign({ type: "button" }, restProps, { ref: ref, tabIndex: isDisabled ? -1 : restProps.tabIndex, "$isToday": Boolean(isToday), "$isSelected": Boolean(isSelected), "$isDisabled": Boolean(isDisabled) }), children));
|
|
58
58
|
};
|
|
59
|
-
exports.default = react_1.default.
|
|
59
|
+
exports.default = react_1.default.forwardRef(CalendarCell);
|