@via-profit/ui-kit 0.1.0-rc.14 → 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.
Files changed (625) hide show
  1. package/Button/ButtonBase.d.ts +22 -1
  2. package/Button/ButtonBase.js +10 -32
  3. package/Button/ButtonContainer.d.ts +14 -0
  4. package/Button/ButtonContainer.js +47 -0
  5. package/Button/ButtonIconWrapper.d.ts +14 -0
  6. package/Button/ButtonIconWrapper.js +34 -0
  7. package/Button/ButtonOutlined.js +11 -11
  8. package/Button/ButtonStandard.js +16 -16
  9. package/Button/ButtonTextWrapper.d.ts +4 -6
  10. package/Button/ButtonTextWrapper.js +19 -2
  11. package/Calendar/CalendarCell.d.ts +1 -1
  12. package/Calendar/CalendarCell.js +9 -9
  13. package/Calendar/CalendarEmptyCell.d.ts +1 -1
  14. package/Calendar/CalendarEmptyCell.js +1 -1
  15. package/Calendar/CalendarMonthControl.d.ts +1 -1
  16. package/Calendar/CalendarMonthControl.js +5 -5
  17. package/Calendar/CalendarPaper.js +2 -2
  18. package/Calendar/CalendarTopBar.d.ts +1 -1
  19. package/Calendar/CalendarTopBar.js +1 -1
  20. package/Calendar/CalendarWeekDayLabel.js +1 -1
  21. package/Calendar/CalendarWeekDaysBar.d.ts +1 -1
  22. package/Calendar/CalendarWeekDaysBar.js +1 -1
  23. package/Color/index.d.ts +78 -1
  24. package/Color/index.js +85 -2
  25. package/CountryFlags/AC.js +53 -0
  26. package/CountryFlags/AD.js +39 -0
  27. package/CountryFlags/AE.js +32 -0
  28. package/CountryFlags/AF.js +33 -0
  29. package/CountryFlags/AG.js +35 -0
  30. package/CountryFlags/AI.js +37 -0
  31. package/CountryFlags/AL.js +35 -0
  32. package/CountryFlags/AM.d.ts +3 -0
  33. package/CountryFlags/AM.js +31 -0
  34. package/CountryFlags/AO.d.ts +3 -0
  35. package/CountryFlags/AO.js +35 -0
  36. package/CountryFlags/AQ.d.ts +3 -0
  37. package/CountryFlags/AQ.js +30 -0
  38. package/CountryFlags/AR.d.ts +3 -0
  39. package/CountryFlags/AR.js +31 -0
  40. package/CountryFlags/AS.d.ts +3 -0
  41. package/CountryFlags/AS.js +33 -0
  42. package/CountryFlags/AT.d.ts +3 -0
  43. package/CountryFlags/AT.js +30 -0
  44. package/CountryFlags/AU.d.ts +3 -0
  45. package/CountryFlags/AU.js +41 -0
  46. package/CountryFlags/AW.d.ts +3 -0
  47. package/CountryFlags/AW.js +33 -0
  48. package/CountryFlags/AX.d.ts +3 -0
  49. package/CountryFlags/AX.js +31 -0
  50. package/CountryFlags/AZ.d.ts +3 -0
  51. package/CountryFlags/AZ.js +34 -0
  52. package/CountryFlags/BA.d.ts +3 -0
  53. package/CountryFlags/BA.js +40 -0
  54. package/CountryFlags/BB.d.ts +3 -0
  55. package/CountryFlags/BB.js +32 -0
  56. package/CountryFlags/BD.d.ts +3 -0
  57. package/CountryFlags/BD.js +30 -0
  58. package/CountryFlags/BE.d.ts +3 -0
  59. package/CountryFlags/BE.js +31 -0
  60. package/CountryFlags/BF.d.ts +3 -0
  61. package/CountryFlags/BF.js +31 -0
  62. package/CountryFlags/BG.d.ts +3 -0
  63. package/CountryFlags/BG.js +31 -0
  64. package/CountryFlags/BH.d.ts +3 -0
  65. package/CountryFlags/BH.js +30 -0
  66. package/CountryFlags/BI.d.ts +3 -0
  67. package/CountryFlags/BI.js +36 -0
  68. package/CountryFlags/BJ.d.ts +3 -0
  69. package/CountryFlags/BJ.js +31 -0
  70. package/CountryFlags/BL.d.ts +3 -0
  71. package/CountryFlags/BL.js +39 -0
  72. package/CountryFlags/BM.d.ts +3 -0
  73. package/CountryFlags/BM.js +40 -0
  74. package/CountryFlags/BN.d.ts +3 -0
  75. package/CountryFlags/BN.js +34 -0
  76. package/CountryFlags/BO.d.ts +3 -0
  77. package/CountryFlags/BO.js +31 -0
  78. package/CountryFlags/BQ.d.ts +3 -0
  79. package/CountryFlags/BQ.js +33 -0
  80. package/CountryFlags/BR.d.ts +3 -0
  81. package/CountryFlags/BR.js +32 -0
  82. package/CountryFlags/BS.d.ts +3 -0
  83. package/CountryFlags/BS.js +32 -0
  84. package/CountryFlags/BT.d.ts +3 -0
  85. package/CountryFlags/BT.js +31 -0
  86. package/CountryFlags/BV.d.ts +3 -0
  87. package/CountryFlags/BV.js +33 -0
  88. package/CountryFlags/BW.d.ts +3 -0
  89. package/CountryFlags/BW.js +32 -0
  90. package/CountryFlags/BY.d.ts +3 -0
  91. package/CountryFlags/BY.js +35 -0
  92. package/CountryFlags/BZ.d.ts +3 -0
  93. package/CountryFlags/BZ.js +36 -0
  94. package/CountryFlags/CA.d.ts +3 -0
  95. package/CountryFlags/CA.js +31 -0
  96. package/CountryFlags/CC.d.ts +3 -0
  97. package/CountryFlags/CC.js +33 -0
  98. package/CountryFlags/CD.d.ts +3 -0
  99. package/CountryFlags/CD.js +32 -0
  100. package/CountryFlags/CF.d.ts +3 -0
  101. package/CountryFlags/CF.js +36 -0
  102. package/CountryFlags/CG.d.ts +3 -0
  103. package/CountryFlags/CG.js +31 -0
  104. package/CountryFlags/CH.d.ts +3 -0
  105. package/CountryFlags/CH.js +30 -0
  106. package/CountryFlags/CI.d.ts +3 -0
  107. package/CountryFlags/CI.js +31 -0
  108. package/CountryFlags/CK.d.ts +3 -0
  109. package/CountryFlags/CK.js +34 -0
  110. package/CountryFlags/CL.d.ts +3 -0
  111. package/CountryFlags/CL.js +32 -0
  112. package/CountryFlags/CM.d.ts +3 -0
  113. package/CountryFlags/CM.js +32 -0
  114. package/CountryFlags/CN.d.ts +3 -0
  115. package/CountryFlags/CN.js +31 -0
  116. package/CountryFlags/CO.d.ts +3 -0
  117. package/CountryFlags/CO.js +31 -0
  118. package/CountryFlags/CR.d.ts +3 -0
  119. package/CountryFlags/CR.js +31 -0
  120. package/CountryFlags/CU.d.ts +3 -0
  121. package/CountryFlags/CU.js +34 -0
  122. package/CountryFlags/CV.d.ts +3 -0
  123. package/CountryFlags/CV.js +33 -0
  124. package/CountryFlags/CW.d.ts +3 -0
  125. package/CountryFlags/CW.js +32 -0
  126. package/CountryFlags/CX.d.ts +3 -0
  127. package/CountryFlags/CX.js +35 -0
  128. package/CountryFlags/CY.d.ts +3 -0
  129. package/CountryFlags/CY.js +34 -0
  130. package/CountryFlags/CZ.d.ts +3 -0
  131. package/CountryFlags/CZ.js +31 -0
  132. package/CountryFlags/DE.d.ts +3 -0
  133. package/CountryFlags/DE.js +31 -0
  134. package/CountryFlags/DJ.d.ts +3 -0
  135. package/CountryFlags/DJ.js +32 -0
  136. package/CountryFlags/DK.d.ts +3 -0
  137. package/CountryFlags/DK.js +30 -0
  138. package/CountryFlags/DM.d.ts +3 -0
  139. package/CountryFlags/DM.js +39 -0
  140. package/CountryFlags/DO.d.ts +3 -0
  141. package/CountryFlags/DO.js +38 -0
  142. package/CountryFlags/DZ.d.ts +3 -0
  143. package/CountryFlags/DZ.js +33 -0
  144. package/CountryFlags/EC.d.ts +3 -0
  145. package/CountryFlags/EC.js +35 -0
  146. package/CountryFlags/EE.d.ts +3 -0
  147. package/CountryFlags/EE.js +31 -0
  148. package/CountryFlags/EG.d.ts +3 -0
  149. package/CountryFlags/EG.js +32 -0
  150. package/CountryFlags/EH.d.ts +3 -0
  151. package/CountryFlags/EH.js +34 -0
  152. package/CountryFlags/ER.d.ts +3 -0
  153. package/CountryFlags/ER.js +40 -0
  154. package/CountryFlags/ES.d.ts +3 -0
  155. package/CountryFlags/ES.js +34 -0
  156. package/CountryFlags/ET.d.ts +3 -0
  157. package/CountryFlags/ET.js +37 -0
  158. package/CountryFlags/EU.d.ts +3 -0
  159. package/CountryFlags/EU.js +30 -0
  160. package/CountryFlags/FI.d.ts +3 -0
  161. package/CountryFlags/FI.js +30 -0
  162. package/CountryFlags/FJ.d.ts +3 -0
  163. package/CountryFlags/FJ.js +36 -0
  164. package/CountryFlags/FK.d.ts +3 -0
  165. package/CountryFlags/FK.js +43 -0
  166. package/CountryFlags/FM.d.ts +3 -0
  167. package/CountryFlags/FM.js +31 -0
  168. package/CountryFlags/FO.d.ts +3 -0
  169. package/CountryFlags/FO.js +31 -0
  170. package/CountryFlags/FR.d.ts +3 -0
  171. package/CountryFlags/FR.js +31 -0
  172. package/CountryFlags/GA.d.ts +3 -0
  173. package/CountryFlags/GA.js +31 -0
  174. package/CountryFlags/GB.d.ts +3 -0
  175. package/CountryFlags/GB.js +36 -0
  176. package/CountryFlags/GD.d.ts +3 -0
  177. package/CountryFlags/GD.js +38 -0
  178. package/CountryFlags/GE.d.ts +3 -0
  179. package/CountryFlags/GE.js +31 -0
  180. package/CountryFlags/GEAB.d.ts +3 -0
  181. package/CountryFlags/GEAB.js +40 -0
  182. package/CountryFlags/GEOS.d.ts +3 -0
  183. package/CountryFlags/GEOS.js +31 -0
  184. package/CountryFlags/GF.d.ts +3 -0
  185. package/CountryFlags/GF.js +31 -0
  186. package/CountryFlags/GG.d.ts +3 -0
  187. package/CountryFlags/GG.js +31 -0
  188. package/CountryFlags/GH.d.ts +3 -0
  189. package/CountryFlags/GH.js +32 -0
  190. package/CountryFlags/GI.d.ts +3 -0
  191. package/CountryFlags/GI.js +34 -0
  192. package/CountryFlags/GL.d.ts +3 -0
  193. package/CountryFlags/GL.js +32 -0
  194. package/CountryFlags/GM.d.ts +3 -0
  195. package/CountryFlags/GM.js +32 -0
  196. package/CountryFlags/GN.d.ts +3 -0
  197. package/CountryFlags/GN.js +31 -0
  198. package/CountryFlags/GP.d.ts +3 -0
  199. package/{PhoneField/flags/JPFlag.js → CountryFlags/GP.js} +5 -8
  200. package/CountryFlags/GQ.d.ts +3 -0
  201. package/CountryFlags/GQ.js +37 -0
  202. package/CountryFlags/GR.d.ts +3 -0
  203. package/CountryFlags/GR.js +35 -0
  204. package/CountryFlags/GS.d.ts +3 -0
  205. package/CountryFlags/GS.js +49 -0
  206. package/CountryFlags/GT.d.ts +3 -0
  207. package/CountryFlags/GT.js +33 -0
  208. package/CountryFlags/GU.d.ts +3 -0
  209. package/CountryFlags/GU.js +37 -0
  210. package/CountryFlags/GW.d.ts +3 -0
  211. package/CountryFlags/GW.js +32 -0
  212. package/CountryFlags/GY.d.ts +3 -0
  213. package/CountryFlags/GY.js +33 -0
  214. package/CountryFlags/HK.d.ts +3 -0
  215. package/CountryFlags/HK.js +32 -0
  216. package/CountryFlags/HM.d.ts +3 -0
  217. package/CountryFlags/HM.js +41 -0
  218. package/CountryFlags/HN.d.ts +3 -0
  219. package/CountryFlags/HN.js +31 -0
  220. package/CountryFlags/HR.d.ts +3 -0
  221. package/CountryFlags/HR.js +38 -0
  222. package/CountryFlags/HT.d.ts +3 -0
  223. package/CountryFlags/HT.js +36 -0
  224. package/CountryFlags/HU.d.ts +3 -0
  225. package/CountryFlags/HU.js +31 -0
  226. package/CountryFlags/IC.d.ts +3 -0
  227. package/CountryFlags/IC.js +31 -0
  228. package/CountryFlags/ID.d.ts +3 -0
  229. package/CountryFlags/ID.js +30 -0
  230. package/CountryFlags/IE.d.ts +3 -0
  231. package/CountryFlags/IE.js +31 -0
  232. package/CountryFlags/IL.d.ts +3 -0
  233. package/CountryFlags/IL.js +31 -0
  234. package/CountryFlags/IM.d.ts +3 -0
  235. package/CountryFlags/IM.js +31 -0
  236. package/CountryFlags/IN.d.ts +3 -0
  237. package/CountryFlags/IN.js +35 -0
  238. package/CountryFlags/IO.d.ts +3 -0
  239. package/CountryFlags/IO.js +41 -0
  240. package/CountryFlags/IQ.d.ts +3 -0
  241. package/CountryFlags/IQ.js +33 -0
  242. package/CountryFlags/IR.d.ts +3 -0
  243. package/CountryFlags/IR.js +34 -0
  244. package/CountryFlags/IS.d.ts +3 -0
  245. package/CountryFlags/IS.js +31 -0
  246. package/CountryFlags/IT.d.ts +3 -0
  247. package/CountryFlags/IT.js +31 -0
  248. package/CountryFlags/JE.d.ts +3 -0
  249. package/CountryFlags/JE.js +32 -0
  250. package/CountryFlags/JM.d.ts +3 -0
  251. package/CountryFlags/JM.js +32 -0
  252. package/CountryFlags/JO.d.ts +3 -0
  253. package/CountryFlags/JO.js +33 -0
  254. package/CountryFlags/JP.d.ts +3 -0
  255. package/CountryFlags/JP.js +30 -0
  256. package/CountryFlags/KE.d.ts +3 -0
  257. package/CountryFlags/KE.js +38 -0
  258. package/CountryFlags/KG.d.ts +3 -0
  259. package/CountryFlags/KG.js +35 -0
  260. package/CountryFlags/KH.d.ts +3 -0
  261. package/CountryFlags/KH.js +32 -0
  262. package/CountryFlags/KI.d.ts +3 -0
  263. package/CountryFlags/KI.js +35 -0
  264. package/CountryFlags/KM.d.ts +3 -0
  265. package/CountryFlags/KM.js +37 -0
  266. package/CountryFlags/KN.d.ts +3 -0
  267. package/CountryFlags/KN.js +34 -0
  268. package/CountryFlags/KP.d.ts +3 -0
  269. package/CountryFlags/KP.js +35 -0
  270. package/CountryFlags/KR.d.ts +3 -0
  271. package/CountryFlags/KR.js +38 -0
  272. package/CountryFlags/KW.d.ts +3 -0
  273. package/CountryFlags/KW.js +32 -0
  274. package/CountryFlags/KY.d.ts +3 -0
  275. package/CountryFlags/KY.js +41 -0
  276. package/CountryFlags/KZ.d.ts +3 -0
  277. package/CountryFlags/KZ.js +31 -0
  278. package/CountryFlags/LA.d.ts +3 -0
  279. package/CountryFlags/LA.js +32 -0
  280. package/CountryFlags/LB.d.ts +3 -0
  281. package/CountryFlags/LB.js +33 -0
  282. package/CountryFlags/LC.d.ts +3 -0
  283. package/CountryFlags/LC.js +32 -0
  284. package/CountryFlags/LI.d.ts +3 -0
  285. package/CountryFlags/LI.js +31 -0
  286. package/CountryFlags/LK.d.ts +3 -0
  287. package/CountryFlags/LK.js +36 -0
  288. package/CountryFlags/LR.d.ts +3 -0
  289. package/CountryFlags/LR.js +33 -0
  290. package/CountryFlags/LS.d.ts +3 -0
  291. package/CountryFlags/LS.js +33 -0
  292. package/CountryFlags/LT.d.ts +3 -0
  293. package/CountryFlags/LT.js +31 -0
  294. package/CountryFlags/LU.d.ts +3 -0
  295. package/CountryFlags/LU.js +31 -0
  296. package/CountryFlags/LV.d.ts +3 -0
  297. package/CountryFlags/LV.js +31 -0
  298. package/CountryFlags/LY.d.ts +3 -0
  299. package/CountryFlags/LY.js +34 -0
  300. package/CountryFlags/MA.d.ts +3 -0
  301. package/CountryFlags/MA.js +30 -0
  302. package/CountryFlags/MC.d.ts +3 -0
  303. package/CountryFlags/MC.js +30 -0
  304. package/CountryFlags/MD.d.ts +3 -0
  305. package/CountryFlags/MD.js +32 -0
  306. package/CountryFlags/ME.d.ts +3 -0
  307. package/CountryFlags/ME.js +32 -0
  308. package/CountryFlags/MF.d.ts +3 -0
  309. package/CountryFlags/MF.js +33 -0
  310. package/CountryFlags/MG.d.ts +3 -0
  311. package/CountryFlags/MG.js +31 -0
  312. package/CountryFlags/MH.d.ts +3 -0
  313. package/CountryFlags/MH.js +32 -0
  314. package/CountryFlags/MK.d.ts +3 -0
  315. package/CountryFlags/MK.js +33 -0
  316. package/CountryFlags/ML.d.ts +3 -0
  317. package/CountryFlags/ML.js +31 -0
  318. package/CountryFlags/MM.d.ts +3 -0
  319. package/CountryFlags/MM.js +32 -0
  320. package/CountryFlags/MN.d.ts +3 -0
  321. package/CountryFlags/MN.js +37 -0
  322. package/CountryFlags/MO.d.ts +3 -0
  323. package/CountryFlags/MO.js +34 -0
  324. package/CountryFlags/MP.d.ts +3 -0
  325. package/CountryFlags/MP.js +35 -0
  326. package/CountryFlags/MQ.d.ts +3 -0
  327. package/CountryFlags/MQ.js +32 -0
  328. package/CountryFlags/MR.d.ts +3 -0
  329. package/CountryFlags/MR.js +32 -0
  330. package/CountryFlags/MS.d.ts +3 -0
  331. package/CountryFlags/MS.js +40 -0
  332. package/CountryFlags/MT.d.ts +3 -0
  333. package/CountryFlags/MT.js +31 -0
  334. package/CountryFlags/MU.d.ts +3 -0
  335. package/CountryFlags/MU.js +32 -0
  336. package/CountryFlags/MV.d.ts +3 -0
  337. package/CountryFlags/MV.js +31 -0
  338. package/CountryFlags/MW.d.ts +3 -0
  339. package/CountryFlags/MW.js +32 -0
  340. package/CountryFlags/MX.d.ts +3 -0
  341. package/CountryFlags/MX.js +33 -0
  342. package/CountryFlags/MY.d.ts +3 -0
  343. package/CountryFlags/MY.js +33 -0
  344. package/CountryFlags/MZ.d.ts +3 -0
  345. package/CountryFlags/MZ.js +34 -0
  346. package/CountryFlags/NA.d.ts +3 -0
  347. package/CountryFlags/NA.js +33 -0
  348. package/CountryFlags/NC.d.ts +3 -0
  349. package/CountryFlags/NC.js +38 -0
  350. package/CountryFlags/NE.d.ts +3 -0
  351. package/CountryFlags/NE.js +32 -0
  352. package/CountryFlags/NF.d.ts +3 -0
  353. package/CountryFlags/NF.js +31 -0
  354. package/CountryFlags/NG.d.ts +3 -0
  355. package/CountryFlags/NG.js +31 -0
  356. package/CountryFlags/NI.d.ts +3 -0
  357. package/CountryFlags/NI.js +35 -0
  358. package/CountryFlags/NL.d.ts +3 -0
  359. package/CountryFlags/NL.js +31 -0
  360. package/CountryFlags/NO.d.ts +3 -0
  361. package/CountryFlags/NO.js +31 -0
  362. package/CountryFlags/NP.d.ts +3 -0
  363. package/CountryFlags/NP.js +34 -0
  364. package/CountryFlags/NR.d.ts +3 -0
  365. package/CountryFlags/NR.js +31 -0
  366. package/CountryFlags/NU.d.ts +3 -0
  367. package/CountryFlags/NU.js +53 -0
  368. package/CountryFlags/NZ.d.ts +3 -0
  369. package/CountryFlags/NZ.js +41 -0
  370. package/CountryFlags/OM.d.ts +3 -0
  371. package/CountryFlags/OM.js +34 -0
  372. package/CountryFlags/PA.d.ts +3 -0
  373. package/CountryFlags/PA.js +33 -0
  374. package/CountryFlags/PE.d.ts +3 -0
  375. package/CountryFlags/PE.js +31 -0
  376. package/CountryFlags/PF.d.ts +3 -0
  377. package/CountryFlags/PF.js +35 -0
  378. package/CountryFlags/PG.d.ts +3 -0
  379. package/CountryFlags/PG.js +33 -0
  380. package/CountryFlags/PH.d.ts +3 -0
  381. package/CountryFlags/PH.js +33 -0
  382. package/CountryFlags/PK.d.ts +3 -0
  383. package/CountryFlags/PK.js +34 -0
  384. package/CountryFlags/PL.d.ts +3 -0
  385. package/CountryFlags/PL.js +32 -0
  386. package/CountryFlags/PM.d.ts +3 -0
  387. package/{PhoneField/flags/RUFlag.js → CountryFlags/PM.js} +5 -5
  388. package/CountryFlags/PN.d.ts +3 -0
  389. package/CountryFlags/PN.js +43 -0
  390. package/CountryFlags/PR.d.ts +3 -0
  391. package/CountryFlags/PR.js +33 -0
  392. package/CountryFlags/PS.d.ts +3 -0
  393. package/CountryFlags/PS.js +32 -0
  394. package/CountryFlags/PT.d.ts +3 -0
  395. package/CountryFlags/PT.js +33 -0
  396. package/CountryFlags/PW.d.ts +3 -0
  397. package/CountryFlags/PW.js +30 -0
  398. package/CountryFlags/PY.d.ts +3 -0
  399. package/CountryFlags/PY.js +33 -0
  400. package/CountryFlags/QA.d.ts +3 -0
  401. package/CountryFlags/QA.js +30 -0
  402. package/CountryFlags/RE.d.ts +3 -0
  403. package/{PhoneField/flags/UAFlag.js → CountryFlags/RE.js} +5 -4
  404. package/CountryFlags/RO.d.ts +3 -0
  405. package/CountryFlags/RO.js +31 -0
  406. package/CountryFlags/RS.d.ts +3 -0
  407. package/CountryFlags/RS.js +35 -0
  408. package/CountryFlags/RU.d.ts +3 -0
  409. package/CountryFlags/RU.js +32 -0
  410. package/CountryFlags/RW.d.ts +3 -0
  411. package/CountryFlags/RW.js +32 -0
  412. package/CountryFlags/SA.d.ts +3 -0
  413. package/CountryFlags/SA.js +33 -0
  414. package/CountryFlags/SB.d.ts +3 -0
  415. package/CountryFlags/SB.js +33 -0
  416. package/CountryFlags/SC.d.ts +3 -0
  417. package/CountryFlags/SC.js +33 -0
  418. package/CountryFlags/SD.d.ts +3 -0
  419. package/CountryFlags/SD.js +32 -0
  420. package/CountryFlags/SE.d.ts +3 -0
  421. package/CountryFlags/SE.js +30 -0
  422. package/CountryFlags/SG.d.ts +3 -0
  423. package/CountryFlags/SG.js +33 -0
  424. package/CountryFlags/SH.d.ts +3 -0
  425. package/CountryFlags/SH.js +43 -0
  426. package/CountryFlags/SI.d.ts +3 -0
  427. package/CountryFlags/SI.js +34 -0
  428. package/CountryFlags/SJ.d.ts +3 -0
  429. package/CountryFlags/SJ.js +31 -0
  430. package/CountryFlags/SK.d.ts +3 -0
  431. package/CountryFlags/SK.js +35 -0
  432. package/CountryFlags/SL.d.ts +3 -0
  433. package/CountryFlags/SL.js +31 -0
  434. package/CountryFlags/SM.d.ts +3 -0
  435. package/CountryFlags/SM.js +35 -0
  436. package/CountryFlags/SN.d.ts +3 -0
  437. package/CountryFlags/SN.js +32 -0
  438. package/CountryFlags/SO.d.ts +3 -0
  439. package/CountryFlags/SO.js +30 -0
  440. package/CountryFlags/SR.d.ts +3 -0
  441. package/CountryFlags/SR.js +33 -0
  442. package/CountryFlags/SS.d.ts +3 -0
  443. package/CountryFlags/SS.js +34 -0
  444. package/CountryFlags/ST.d.ts +3 -0
  445. package/CountryFlags/ST.js +33 -0
  446. package/CountryFlags/SV.d.ts +3 -0
  447. package/CountryFlags/SV.js +34 -0
  448. package/CountryFlags/SX.d.ts +3 -0
  449. package/CountryFlags/SX.js +37 -0
  450. package/CountryFlags/SY.d.ts +3 -0
  451. package/CountryFlags/SY.js +33 -0
  452. package/CountryFlags/SZ.d.ts +3 -0
  453. package/CountryFlags/SZ.js +35 -0
  454. package/CountryFlags/TA.d.ts +3 -0
  455. package/CountryFlags/TA.js +47 -0
  456. package/CountryFlags/TC.d.ts +3 -0
  457. package/CountryFlags/TC.js +44 -0
  458. package/CountryFlags/TD.d.ts +3 -0
  459. package/CountryFlags/TD.js +31 -0
  460. package/CountryFlags/TF.d.ts +3 -0
  461. package/CountryFlags/TF.js +34 -0
  462. package/CountryFlags/TG.d.ts +3 -0
  463. package/CountryFlags/TG.js +33 -0
  464. package/CountryFlags/TH.d.ts +3 -0
  465. package/CountryFlags/TH.js +32 -0
  466. package/CountryFlags/TJ.d.ts +3 -0
  467. package/CountryFlags/TJ.js +33 -0
  468. package/CountryFlags/TK.d.ts +3 -0
  469. package/CountryFlags/TK.js +33 -0
  470. package/CountryFlags/TL.d.ts +3 -0
  471. package/CountryFlags/TL.js +32 -0
  472. package/CountryFlags/TM.d.ts +3 -0
  473. package/CountryFlags/TM.js +45 -0
  474. package/CountryFlags/TN.d.ts +3 -0
  475. package/CountryFlags/TN.js +33 -0
  476. package/CountryFlags/TO.d.ts +3 -0
  477. package/CountryFlags/TO.js +31 -0
  478. package/CountryFlags/TR.d.ts +3 -0
  479. package/CountryFlags/TR.js +30 -0
  480. package/CountryFlags/TT.d.ts +3 -0
  481. package/CountryFlags/TT.js +31 -0
  482. package/CountryFlags/TV.d.ts +3 -0
  483. package/CountryFlags/TV.js +36 -0
  484. package/CountryFlags/TW.d.ts +3 -0
  485. package/CountryFlags/TW.js +33 -0
  486. package/CountryFlags/TZ.d.ts +3 -0
  487. package/CountryFlags/TZ.js +32 -0
  488. package/CountryFlags/UA.d.ts +3 -0
  489. package/CountryFlags/UA.js +30 -0
  490. package/CountryFlags/UG.d.ts +3 -0
  491. package/CountryFlags/UG.js +35 -0
  492. package/CountryFlags/UM.d.ts +3 -0
  493. package/CountryFlags/UM.js +34 -0
  494. package/CountryFlags/US.d.ts +3 -0
  495. package/CountryFlags/US.js +34 -0
  496. package/CountryFlags/UY.d.ts +3 -0
  497. package/CountryFlags/UY.js +33 -0
  498. package/CountryFlags/UZ.d.ts +3 -0
  499. package/CountryFlags/UZ.js +35 -0
  500. package/CountryFlags/VA.d.ts +3 -0
  501. package/CountryFlags/VA.js +32 -0
  502. package/CountryFlags/VC.d.ts +3 -0
  503. package/CountryFlags/VC.js +32 -0
  504. package/CountryFlags/VE.d.ts +3 -0
  505. package/CountryFlags/VE.js +32 -0
  506. package/CountryFlags/VG.d.ts +3 -0
  507. package/CountryFlags/VG.js +45 -0
  508. package/CountryFlags/VI.d.ts +3 -0
  509. package/CountryFlags/VI.js +41 -0
  510. package/CountryFlags/VN.d.ts +3 -0
  511. package/CountryFlags/VN.js +30 -0
  512. package/CountryFlags/VU.d.ts +3 -0
  513. package/CountryFlags/VU.js +35 -0
  514. package/CountryFlags/WF.d.ts +3 -0
  515. package/CountryFlags/WF.js +33 -0
  516. package/CountryFlags/WS.d.ts +3 -0
  517. package/CountryFlags/WS.js +32 -0
  518. package/CountryFlags/XK.d.ts +3 -0
  519. package/CountryFlags/XK.js +32 -0
  520. package/CountryFlags/YE.d.ts +3 -0
  521. package/CountryFlags/YE.js +31 -0
  522. package/CountryFlags/YT.d.ts +3 -0
  523. package/CountryFlags/YT.js +35 -0
  524. package/CountryFlags/ZA.d.ts +3 -0
  525. package/CountryFlags/ZA.js +34 -0
  526. package/CountryFlags/ZM.d.ts +3 -0
  527. package/CountryFlags/ZM.js +33 -0
  528. package/CountryFlags/ZW.d.ts +3 -0
  529. package/CountryFlags/ZW.js +39 -0
  530. package/Menu/MenuItemInner.js +4 -4
  531. package/Menu/MenuWrapper.js +7 -7
  532. package/Modal/ModalConfirmBox.js +1 -1
  533. package/Modal/ModalDialog.js +1 -1
  534. package/Modal/ModalDrawer.js +2 -2
  535. package/Modal/ModalMessageBox.js +1 -1
  536. package/PhoneField/CountryFlagComponent.d.ts +6 -0
  537. package/PhoneField/CountryFlagComponent.js +44 -0
  538. package/PhoneField/UnknownFlag.d.ts +3 -0
  539. package/PhoneField/{flags/UnknownFlag.js → UnknownFlag.js} +3 -3
  540. package/PhoneField/index.d.ts +8 -3
  541. package/PhoneField/index.js +28 -13
  542. package/PhoneField/templates.d.ts +81 -2
  543. package/PhoneField/templates.js +40 -13
  544. package/PhoneField/usePhoneUtils.d.ts +6 -2
  545. package/PhoneField/usePhoneUtils.js +23 -8
  546. package/README.md +2 -37
  547. package/SelectBox/SelectButton.js +4 -4
  548. package/Surface/SurfaceContainer.d.ts +8 -6
  549. package/Surface/SurfaceContainer.js +30 -6
  550. package/Surface/SurfaceContent.d.ts +8 -6
  551. package/Surface/SurfaceContent.js +24 -3
  552. package/Surface/SurfaceHeader.d.ts +4 -6
  553. package/Surface/SurfaceHeader.js +18 -2
  554. package/Surface/SurfaceSubheader.d.ts +4 -6
  555. package/Surface/SurfaceSubheader.js +19 -3
  556. package/Surface/index.d.ts +38 -0
  557. package/Surface/index.js +9 -5
  558. package/Table/Table.d.ts +8 -0
  559. package/Table/Table.js +46 -0
  560. package/Table/TableBody.d.ts +4 -0
  561. package/Table/TableBody.js +30 -0
  562. package/Table/TableCaption.d.ts +4 -0
  563. package/Table/TableCaption.js +30 -0
  564. package/Table/TableCell.d.ts +4 -0
  565. package/Table/TableCell.js +31 -0
  566. package/Table/TableFooter.d.ts +4 -0
  567. package/Table/TableFooter.js +36 -0
  568. package/Table/TableHeader.d.ts +4 -0
  569. package/Table/TableHeader.js +30 -0
  570. package/Table/TableHeaderCell.d.ts +4 -0
  571. package/Table/TableHeaderCell.js +35 -0
  572. package/Table/TableRow.d.ts +4 -0
  573. package/Table/TableRow.js +30 -0
  574. package/Table/index.d.ts +18 -0
  575. package/Table/index.js +45 -0
  576. package/TextField/TextFieldContainer.d.ts +2 -1
  577. package/TextField/TextFieldContainer.js +2 -2
  578. package/TextField/TextFieldErrorText.d.ts +0 -1
  579. package/TextField/TextFieldErrorText.js +3 -3
  580. package/TextField/TextFieldIconWrapper.d.ts +10 -0
  581. package/TextField/TextFieldIconWrapper.js +2 -2
  582. package/TextField/TextFieldInput.js +20 -9
  583. package/TextField/{TextFieldWrapper.d.ts → TextFieldInputWrapper.d.ts} +1 -1
  584. package/TextField/{TextFieldWrapper.js → TextFieldInputWrapper.js} +13 -13
  585. package/TextField/TextFieldLabel.js +2 -2
  586. package/TextField/TextFieldLabelAsterisk.d.ts +7 -1
  587. package/TextField/TextFieldLabelAsterisk.js +3 -3
  588. package/TextField/index.d.ts +53 -1
  589. package/TextField/index.js +17 -10
  590. package/ThemeProvider/createTheme.js +10 -5
  591. package/ThemeProvider/index.d.ts +31 -24
  592. package/ThemeProvider/index.js +2 -0
  593. package/Typography/Base.js +1 -1
  594. package/Typography/Blockquote.js +2 -2
  595. package/Typography/Del.js +1 -1
  596. package/Typography/Em.js +1 -1
  597. package/Typography/H1.js +1 -1
  598. package/Typography/H2.js +1 -1
  599. package/Typography/H3.js +1 -1
  600. package/Typography/H4.js +1 -1
  601. package/Typography/H5.js +1 -1
  602. package/Typography/List.d.ts +1 -1
  603. package/Typography/List.js +16 -4
  604. package/Typography/Paragraph.js +1 -1
  605. package/Typography/Span.js +1 -1
  606. package/Typography/Strong.js +1 -1
  607. package/index.d.ts +1 -0
  608. package/index.js +17 -0
  609. package/package.json +3 -2
  610. package/Button/ButtonEndIconWrapper.d.ts +0 -6
  611. package/Button/ButtonEndIconWrapper.js +0 -10
  612. package/Button/ButtonStartIconWrapper.d.ts +0 -6
  613. package/Button/ButtonStartIconWrapper.js +0 -10
  614. package/PhoneField/CountryFlag.d.ts +0 -6
  615. package/PhoneField/CountryFlag.js +0 -52
  616. package/PhoneField/flags/BYFlag.js +0 -44
  617. package/PhoneField/flags/KZFlag.js +0 -45
  618. package/PhoneField/flags/USFlag.js +0 -34
  619. /package/{PhoneField/flags/BYFlag.d.ts → CountryFlags/AC.d.ts} +0 -0
  620. /package/{PhoneField/flags/JPFlag.d.ts → CountryFlags/AD.d.ts} +0 -0
  621. /package/{PhoneField/flags/KZFlag.d.ts → CountryFlags/AE.d.ts} +0 -0
  622. /package/{PhoneField/flags/RUFlag.d.ts → CountryFlags/AF.d.ts} +0 -0
  623. /package/{PhoneField/flags/UAFlag.d.ts → CountryFlags/AG.d.ts} +0 -0
  624. /package/{PhoneField/flags/USFlag.d.ts → CountryFlags/AI.d.ts} +0 -0
  625. /package/{PhoneField/flags/UnknownFlag.d.ts → CountryFlags/AL.d.ts} +0 -0
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
+ import { ButtonIconWrapperProps } from './ButtonIconWrapper';
3
+ import { ButtonTextWrapperProps } from './ButtonTextWrapper';
4
+ import { ButtonContainerProps } from './ButtonContainer';
2
5
  type ButtonNativeProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
3
6
  export interface ButtonBaseProps extends Omit<ButtonNativeProps, 'color'> {
4
7
  /**
@@ -24,7 +27,25 @@ export interface ButtonBaseProps extends Omit<ButtonNativeProps, 'color'> {
24
27
  /**
25
28
  * You can pass the primary, default, secondary name of the colors or your specified color value
26
29
  */
27
- readonly color?: 'default' | 'primary' | 'secondary' | string;
30
+ readonly color?: ButtonContainerProps['color'];
31
+ /**
32
+ * Overridable components map
33
+ */
34
+ readonly overrides?: ButtonBaseOverrides;
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>>;
28
49
  }
29
50
  declare const _default: React.ForwardRefExoticComponent<ButtonBaseProps & React.RefAttributes<HTMLButtonElement>>;
30
51
  export default _default;
@@ -15,39 +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 styled_1 = __importDefault(require("@emotion/styled"));
19
- const ButtonStartIconWrapper_1 = __importDefault(require("./ButtonStartIconWrapper"));
20
- const ButtonEndIconWrapper_1 = __importDefault(require("./ButtonEndIconWrapper"));
18
+ const ButtonIconWrapper_1 = __importDefault(require("./ButtonIconWrapper"));
21
19
  const ButtonTextWrapper_1 = __importDefault(require("./ButtonTextWrapper"));
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-width: 0;
29
- outline-style: solid;
30
- outline-color: transparent;
31
- outline-width: 0.14em;
32
- transition: all 180ms ease-out 0s;
33
- background: none;
34
- display: inline-flex;
35
- align-items: center;
36
- color: ${({ color, disabled, theme }) => {
37
- switch (true) {
38
- case disabled:
39
- return theme.colors.textSecondary.alpha(0.8).toString();
40
- case !disabled && typeof color === 'undefined':
41
- default:
42
- return theme.colors.textPrimary.toString();
43
- }
44
- }};
45
- `;
20
+ const ButtonContainer_1 = __importDefault(require("./ButtonContainer"));
46
21
  const ButtonBase = (props, ref) => {
47
- const { children, startIcon, endIcon, color } = props, otherProps = __rest(props, ["children", "startIcon", "endIcon", "color"]);
48
- return (react_1.default.createElement(Button, Object.assign({}, otherProps, { ref: ref }),
49
- typeof startIcon !== 'undefined' && startIcon !== null && (react_1.default.createElement(ButtonStartIconWrapper_1.default, null, startIcon)),
50
- react_1.default.createElement(ButtonTextWrapper_1.default, null, children),
51
- typeof endIcon !== 'undefined' && endIcon !== null && (react_1.default.createElement(ButtonEndIconWrapper_1.default, null, endIcon))));
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))));
52
30
  };
53
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);
@@ -23,7 +23,7 @@ const StyledOutlinedButton = (0, styled_1.default)(ButtonBase_1.default) `
23
23
  color: ${({ theme, disabled, $color }) => {
24
24
  switch (true) {
25
25
  case disabled:
26
- return theme.colors.textPrimary.alpha(0.4).toString();
26
+ return theme.color.textPrimary.alpha(0.4).toString();
27
27
  default:
28
28
  return $color.darken(30).toString();
29
29
  }
@@ -31,7 +31,7 @@ const StyledOutlinedButton = (0, styled_1.default)(ButtonBase_1.default) `
31
31
  border-color: ${({ theme, disabled, $color }) => {
32
32
  switch (true) {
33
33
  case disabled:
34
- return theme.colors.surface.darken(80).alpha(0.4).toString();
34
+ return theme.color.surface.darken(80).alpha(0.4).toString();
35
35
  default:
36
36
  return $color.toString();
37
37
  }
@@ -48,9 +48,9 @@ const StyledOutlinedButton = (0, styled_1.default)(ButtonBase_1.default) `
48
48
  background-color: ${$color.darken(50).alpha(0.3).toString()};
49
49
  }
50
50
  &:focus-visible {
51
- outline-color: ${$color.rgbString() === theme.colors.accentPrimary.rgbString()
52
- ? theme.colors.textPrimary.toString()
53
- : theme.colors.accentPrimary.toString()};
51
+ outline-color: ${$color.rgbString() === theme.color.accentPrimary.rgbString()
52
+ ? theme.color.textPrimary.toString()
53
+ : theme.color.accentPrimary.toString()};
54
54
  }
55
55
  `};
56
56
  `;
@@ -60,14 +60,14 @@ const ButtonOutlined = (props, ref) => {
60
60
  const $color = react_1.default.useMemo(() => {
61
61
  switch (true) {
62
62
  case color === 'primary':
63
- return theme.colors.accentPrimary;
63
+ return theme.color.accentPrimary;
64
64
  case color === 'secondary':
65
- return theme.colors.accentSecondary;
65
+ return theme.color.accentSecondary;
66
66
  case typeof color === 'undefined':
67
67
  case color === 'default':
68
- return theme.colors.textPrimary;
68
+ return theme.color.textPrimary;
69
69
  case typeof color === 'string': {
70
- let c = theme.colors.textPrimary;
70
+ let c = theme.color.textPrimary;
71
71
  try {
72
72
  if (color) {
73
73
  c = new Color_1.default(color);
@@ -79,9 +79,9 @@ const ButtonOutlined = (props, ref) => {
79
79
  return c;
80
80
  }
81
81
  default:
82
- return theme.colors.textPrimary;
82
+ return theme.color.textPrimary;
83
83
  }
84
- }, [color, theme.colors]);
84
+ }, [color, theme.color]);
85
85
  return (react_1.default.createElement(StyledOutlinedButton, Object.assign({ disabled: disabled, "$color": $color }, restProps, { ref: ref }), children));
86
86
  };
87
87
  exports.default = react_1.default.forwardRef(ButtonOutlined);
@@ -54,9 +54,9 @@ const StyledStandardButton = (0, styled_1.default)(ButtonBase_1.default) `
54
54
  background-color: ${$background.darken(80).toString()};
55
55
  }
56
56
  &:focus-visible {
57
- outline-color: ${$background.rgbString() === theme.colors.accentPrimary.rgbString()
58
- ? theme.colors.textPrimary.toString()
59
- : theme.colors.accentPrimary.toString()};
57
+ outline-color: ${$background.rgbString() === theme.color.accentPrimary.rgbString()
58
+ ? theme.color.textPrimary.toString()
59
+ : theme.color.accentPrimary.toString()};
60
60
  }
61
61
  `}
62
62
  `;
@@ -67,22 +67,22 @@ const ButtonStandard = (props, ref) => {
67
67
  switch (true) {
68
68
  case color === 'primary':
69
69
  return {
70
- $color: theme.colors.accentPrimaryContrast,
71
- $background: theme.colors.accentPrimary,
70
+ $color: theme.color.accentPrimaryContrast,
71
+ $background: theme.color.accentPrimary,
72
72
  };
73
73
  case color === 'secondary':
74
74
  return {
75
- $color: theme.colors.accentSecondaryContrast,
76
- $background: theme.colors.accentSecondary,
75
+ $color: theme.color.accentSecondaryContrast,
76
+ $background: theme.color.accentSecondary,
77
77
  };
78
78
  case typeof color === 'undefined':
79
79
  case color === 'default':
80
80
  return {
81
- $background: theme.colors.surface,
82
- $color: theme.colors.textPrimary,
81
+ $background: theme.color.surface,
82
+ $color: theme.color.textPrimary,
83
83
  };
84
84
  case typeof color === 'string': {
85
- let $background = theme.colors.surface;
85
+ let $background = theme.color.surface;
86
86
  try {
87
87
  if (color) {
88
88
  $background = new Color_1.default(color);
@@ -93,18 +93,18 @@ const ButtonStandard = (props, ref) => {
93
93
  }
94
94
  return {
95
95
  $background,
96
- $color: $background.contrast(theme.colors.textPrimary.rgbString()) > 5
97
- ? theme.colors.textPrimary
98
- : theme.colors.surface,
96
+ $color: $background.contrast(theme.color.textPrimary.rgbString()) > 5
97
+ ? theme.color.textPrimary
98
+ : theme.color.surface,
99
99
  };
100
100
  }
101
101
  default:
102
102
  return {
103
- $background: theme.colors.surface,
104
- $color: theme.colors.textPrimary,
103
+ $background: theme.color.surface,
104
+ $color: theme.color.textPrimary,
105
105
  };
106
106
  }
107
- }, [color, theme.colors]);
107
+ }, [color, theme.color]);
108
108
  return (react_1.default.createElement(StyledStandardButton, Object.assign({ "$color": $color, "$background": $background, disabled: disabled }, restProps, { ref: ref }), children));
109
109
  };
110
110
  exports.default = react_1.default.forwardRef(ButtonStandard);
@@ -1,6 +1,4 @@
1
- /// <reference types="react" />
2
- declare const ButtonTextWrapper: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
6
- export default ButtonTextWrapper;
1
+ import React from 'react';
2
+ export type ButtonTextWrapperProps = React.HTMLAttributes<HTMLSpanElement>;
3
+ declare const _default: React.ForwardRefExoticComponent<ButtonTextWrapperProps & React.RefAttributes<HTMLSpanElement>>;
4
+ export default _default;
@@ -1,12 +1,29 @@
1
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
+ };
2
13
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
15
  };
5
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ const react_1 = __importDefault(require("react"));
6
18
  const styled_1 = __importDefault(require("@emotion/styled"));
7
- const ButtonTextWrapper = styled_1.default.span `
19
+ const TextWrapper = styled_1.default.span `
8
20
  font-size: 0.86em;
9
21
  display: flex;
10
22
  align-items: center;
23
+ user-select: none;
11
24
  `;
12
- exports.default = ButtonTextWrapper;
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);
@@ -4,5 +4,5 @@ export interface CalendarCellProps extends React.ButtonHTMLAttributes<HTMLButton
4
4
  readonly isSelected?: boolean;
5
5
  readonly isDisabled?: boolean;
6
6
  }
7
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<CalendarCellProps & React.RefAttributes<HTMLButtonElement>>>;
7
+ declare const _default: React.ForwardRefExoticComponent<CalendarCellProps & React.RefAttributes<HTMLButtonElement>>;
8
8
  export default _default;
@@ -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.colors.accentPrimary.toString() : theme.colors.surface.toString()};
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.colors.textSecondary.toString();
35
+ return theme.color.textSecondary.toString();
36
36
  }
37
37
  if ($isSelected) {
38
- return theme.colors.accentPrimaryContrast.toString();
38
+ return theme.color.accentPrimaryContrast.toString();
39
39
  }
40
40
  if ($isToday) {
41
- return theme.colors.accentPrimary.toString();
41
+ return theme.color.accentPrimary.toString();
42
42
  }
43
- return theme.colors.textPrimary.toString();
43
+ return theme.color.textPrimary.toString();
44
44
  }};
45
45
  &:hover {
46
46
  background-color: ${({ theme, $isSelected }) => $isSelected
47
- ? theme.colors.accentPrimary.darken(10).toString()
48
- : theme.colors.surface.darken(10).toString()};
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.colors.accentPrimary.toString()};
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.memo(react_1.default.forwardRef(CalendarCell));
59
+ exports.default = react_1.default.forwardRef(CalendarCell);
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export type CalendarEmptyCellProps = React.HTMLAttributes<HTMLButtonElement>;
3
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<CalendarEmptyCellProps & React.RefAttributes<HTMLButtonElement>>>;
3
+ declare const _default: React.ForwardRefExoticComponent<CalendarEmptyCellProps & React.RefAttributes<HTMLButtonElement>>;
4
4
  export default _default;
@@ -26,4 +26,4 @@ const CalendarEmptyCell = (props, ref) => {
26
26
  const { children } = props, restProps = __rest(props, ["children"]);
27
27
  return (react_1.default.createElement(Elem, Object.assign({}, restProps, { ref: ref }), children));
28
28
  };
29
- exports.default = react_1.default.memo(react_1.default.forwardRef(CalendarEmptyCell));
29
+ exports.default = react_1.default.forwardRef(CalendarEmptyCell);
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  export interface CalendarMonthControlProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
3
  readonly displayIcon: 'prev' | 'next';
4
4
  }
5
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<CalendarMonthControlProps & React.RefAttributes<HTMLButtonElement>>>;
5
+ declare const _default: React.ForwardRefExoticComponent<CalendarMonthControlProps & React.RefAttributes<HTMLButtonElement>>;
6
6
  export default _default;
@@ -31,14 +31,14 @@ const Btn = styled_1.default.button `
31
31
  outline: none;
32
32
  cursor: pointer;
33
33
  border: 1px solid transparent;
34
- background-color: ${({ theme }) => theme.colors.surface.toString()};
34
+ background-color: ${({ theme }) => theme.color.surface.toString()};
35
35
  border-radius: ${({ theme }) => theme.shape.radiusFactor * 3}em;
36
- color: ${({ theme }) => theme.colors.textPrimary.toString()};
36
+ color: ${({ theme }) => theme.color.textPrimary.toString()};
37
37
  &:hover {
38
- background-color: ${({ theme }) => theme.colors.surface.darken(0.1).toString()};
38
+ background-color: ${({ theme }) => theme.color.surface.darken(0.1).toString()};
39
39
  }
40
40
  &:focus-visible {
41
- border-color: ${({ theme }) => theme.colors.accentPrimary.toString()};
41
+ border-color: ${({ theme }) => theme.color.accentPrimary.toString()};
42
42
  }
43
43
  opacity: ${({ disabled }) => (disabled ? 0.4 : 1)};
44
44
  `;
@@ -46,4 +46,4 @@ const CalendarMonthControl = (props, ref) => {
46
46
  const { displayIcon } = props, restProps = __rest(props, ["displayIcon"]);
47
47
  return (react_1.default.createElement(Btn, Object.assign({ type: "button" }, restProps, { ref: ref }), displayIcon === 'next' ? react_1.default.createElement(IconChevronRight_1.default, null) : react_1.default.createElement(IconChevronLeft_1.default, null)));
48
48
  };
49
- exports.default = react_1.default.memo(react_1.default.forwardRef(CalendarMonthControl));
49
+ exports.default = react_1.default.forwardRef(CalendarMonthControl);
@@ -9,11 +9,11 @@ const CalendarPaper = styled_1.default.div `
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  justify-content: stretch;
12
- background-color: ${({ theme }) => theme.colors.surface.toString()};
12
+ background-color: ${({ theme }) => theme.color.surface.toString()};
13
13
  border-radius: ${({ theme }) => theme.shape.radiusFactor * 1}em;
14
14
  padding: 0.4em;
15
15
  max-width: 17.6em;
16
16
  max-height: 20.4em;
17
- box-shadow: 0 4px 24px ${({ theme }) => theme.colors.surface.darken(50).alpha(0.6).toString()};
17
+ box-shadow: 0 4px 24px ${({ theme }) => theme.color.surface.darken(50).alpha(0.6).toString()};
18
18
  `;
19
19
  exports.default = CalendarPaper;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export type CalendarTopBarProps = React.HTMLAttributes<HTMLDivElement>;
3
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<CalendarTopBarProps & React.RefAttributes<HTMLDivElement>>>;
3
+ declare const _default: React.ForwardRefExoticComponent<CalendarTopBarProps & React.RefAttributes<HTMLDivElement>>;
4
4
  export default _default;
@@ -27,4 +27,4 @@ const CalendarTopBar = (props, ref) => {
27
27
  return (react_1.default.createElement(Container, Object.assign({}, restProps, { ref: ref }),
28
28
  react_1.default.createElement(react_1.default.Fragment, null, children)));
29
29
  };
30
- exports.default = react_1.default.memo(react_1.default.forwardRef(CalendarTopBar));
30
+ exports.default = react_1.default.forwardRef(CalendarTopBar);
@@ -12,6 +12,6 @@ const CalendarWeekDayLabel = styled_1.default.div `
12
12
  user-select: none;
13
13
  width: 3em;
14
14
  height: 3em;
15
- color: ${({ theme }) => theme.colors.textSecondary.toString()};
15
+ color: ${({ theme }) => theme.color.textSecondary.toString()};
16
16
  `;
17
17
  exports.default = react_1.default.memo(CalendarWeekDayLabel);
@@ -6,5 +6,5 @@ export interface CalendarTopBarProps extends React.HTMLAttributes<HTMLDivElement
6
6
  readonly format: WeekNameLabelFormat;
7
7
  readonly locale?: string;
8
8
  }
9
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<CalendarTopBarProps & React.RefAttributes<HTMLDivElement>>>;
9
+ declare const _default: React.ForwardRefExoticComponent<CalendarTopBarProps & React.RefAttributes<HTMLDivElement>>;
10
10
  export default _default;
@@ -29,4 +29,4 @@ const CalendarWeekDaysBar = (props, ref) => {
29
29
  }).format(day.date)), [format, locale, week]);
30
30
  return (react_1.default.createElement(Container, Object.assign({}, restProps, { ref: ref }), weekDayLabels.map(label => (react_1.default.createElement(CalendarWeekDayLabel_1.default, { key: label }, label)))));
31
31
  };
32
- exports.default = react_1.default.memo(react_1.default.forwardRef(CalendarWeekDaysBar));
32
+ exports.default = react_1.default.forwardRef(CalendarWeekDaysBar);
package/Color/index.d.ts CHANGED
@@ -7,30 +7,107 @@ export type ParsedColor = {
7
7
  declare class Color {
8
8
  #private;
9
9
  constructor(value: string | Color);
10
+ /**
11
+ * Lightens the current color by the \
12
+ * transmitted number of conventional units.\
13
+ * \
14
+ * Example:
15
+ * ```tsx
16
+ * const color = theme.colors
17
+ * .accentPrimary
18
+ * .lighten(60)
19
+ * .toString();
20
+ * ```
21
+ *
22
+ */
10
23
  lighten(decimal: number): this;
24
+ /**
25
+ * Darkens the current color by\
26
+ * the transmitted number of conventional units.
27
+ * \
28
+ * Example:
29
+ * ```tsx
30
+ * const color = theme.colors
31
+ * .accentPrimary
32
+ * .darken(60)
33
+ * .toString();
34
+ * ```
35
+ */
11
36
  darken(decimal: number): this;
37
+ /**
38
+ * Applies transparency (alpha channel) to the current color\
39
+ * Takes as an argument a number from 0 to 1
40
+ * \
41
+ * Example:
42
+ * ```tsx
43
+ * const color = theme.colors
44
+ * .accentPrimary
45
+ * .alpha(0.5)
46
+ * .toString();
47
+ * ```
48
+ */
12
49
  alpha(decimal: number): this;
13
50
  /**
14
- * Get color luminance value
51
+ * Returns color luminance value
15
52
  */
16
53
  luminance(): number;
54
+ /**
55
+ * Returns the contrast level between the\
56
+ * current and transmitted colors
57
+ * \
58
+ * Example:
59
+ * ```tsx
60
+ * const { colors } = themes;
61
+ * const contrast = colors
62
+ * .accentPrimary
63
+ * .contrast(color.textPrimary.rgbString());
64
+ *
65
+ * if (contrast > 5) {
66
+ * return color.textPrimary.toString();
67
+ * } else {
68
+ * return color.textSecondary.toString()
69
+ * }
70
+ * ```
71
+ */
17
72
  contrast(rgb2: string | Color): number;
18
73
  /**
19
74
  * Lighten or darknest color to lum steps
20
75
  * lum - 0-25
21
76
  */
22
77
  private shade;
78
+ /**
79
+ * Returns the current color as separate rgb channels
80
+ */
23
81
  rgb(): {
24
82
  r: number;
25
83
  g: number;
26
84
  b: number;
27
85
  a: number;
28
86
  };
87
+ /**
88
+ * Returns the current color as an rgba string
89
+ */
29
90
  toString(): string;
91
+ /**
92
+ * Returns the current color as an rgba string
93
+ */
30
94
  rgbString(): string;
95
+ /**
96
+ * Returns the current color as an hex string
97
+ */
31
98
  hexString(): string;
99
+ /**
100
+ * Parse the transmitted color and returns its\
101
+ * representation as separate rgba channels
102
+ */
32
103
  private parseColor;
104
+ /**
105
+ * Recodes the transmitted color value in hsl format to rgba
106
+ */
33
107
  private hslToRgb;
108
+ /**
109
+ * Returns color code by web color name
110
+ */
34
111
  private getHextByWebColor;
35
112
  }
36
113
  export default Color;