@via-profit/ui-kit 0.1.0-rc.2 → 0.1.0-rc.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (705) hide show
  1. package/Autocomplete/index.d.ts +46 -0
  2. package/Autocomplete/index.js +187 -0
  3. package/Autocomplete/popper-options.d.ts +4 -0
  4. package/Autocomplete/popper-options.js +33 -0
  5. package/Button/ButtonBase.d.ts +62 -0
  6. package/Button/ButtonBase.js +36 -0
  7. package/Button/ButtonContainer.d.ts +36 -0
  8. package/Button/ButtonContainer.js +56 -0
  9. package/Button/ButtonIconWrapper.d.ts +14 -0
  10. package/Button/ButtonIconWrapper.js +34 -0
  11. package/Button/ButtonOutlined.d.ts +5 -0
  12. package/Button/ButtonOutlined.js +87 -0
  13. package/Button/ButtonPlain.d.ts +5 -0
  14. package/Button/ButtonPlain.js +90 -0
  15. package/Button/ButtonStandard.d.ts +5 -0
  16. package/Button/ButtonStandard.js +110 -0
  17. package/Button/ButtonTextWrapper.d.ts +29 -0
  18. package/Button/ButtonTextWrapper.js +35 -0
  19. package/Button/index.d.ts +23 -0
  20. package/Button/index.js +31 -0
  21. package/CHANGELOG.md +0 -0
  22. package/Calendar/CalendarBottomBar.d.ts +4 -0
  23. package/Calendar/CalendarBottomBar.js +28 -0
  24. package/Calendar/CalendarCell.d.ts +8 -0
  25. package/Calendar/CalendarCell.js +59 -0
  26. package/Calendar/CalendarDateContainer.d.ts +6 -0
  27. package/Calendar/CalendarDateContainer.js +13 -0
  28. package/Calendar/CalendarEmptyCell.d.ts +4 -0
  29. package/Calendar/CalendarEmptyCell.js +29 -0
  30. package/Calendar/CalendarMonthControl.d.ts +6 -0
  31. package/Calendar/CalendarMonthControl.js +49 -0
  32. package/Calendar/CalendarPaper.d.ts +6 -0
  33. package/Calendar/CalendarPaper.js +19 -0
  34. package/Calendar/CalendarTopBar.d.ts +4 -0
  35. package/Calendar/CalendarTopBar.js +30 -0
  36. package/Calendar/CalendarWeekDayLabel.d.ts +6 -0
  37. package/Calendar/CalendarWeekDayLabel.js +17 -0
  38. package/Calendar/CalendarWeekDaysBar.d.ts +10 -0
  39. package/Calendar/CalendarWeekDaysBar.js +32 -0
  40. package/Calendar/CalendarWeekRow.d.ts +6 -0
  41. package/Calendar/CalendarWeekRow.js +14 -0
  42. package/Calendar/IconChevronLeft.d.ts +3 -0
  43. package/Calendar/IconChevronLeft.js +9 -0
  44. package/Calendar/IconChevronRight.d.ts +3 -0
  45. package/Calendar/IconChevronRight.js +9 -0
  46. package/Calendar/index.d.ts +18 -0
  47. package/Calendar/index.js +166 -0
  48. package/Calendar/use-calendar.d.ts +50 -0
  49. package/Calendar/use-calendar.js +197 -0
  50. package/Color/index.d.ts +113 -0
  51. package/Color/index.js +444 -0
  52. package/CountryFlags/AC.d.ts +3 -0
  53. package/CountryFlags/AC.js +53 -0
  54. package/CountryFlags/AD.d.ts +3 -0
  55. package/CountryFlags/AD.js +39 -0
  56. package/CountryFlags/AE.d.ts +3 -0
  57. package/CountryFlags/AE.js +32 -0
  58. package/CountryFlags/AF.d.ts +3 -0
  59. package/CountryFlags/AF.js +33 -0
  60. package/CountryFlags/AG.d.ts +3 -0
  61. package/CountryFlags/AG.js +35 -0
  62. package/CountryFlags/AI.d.ts +3 -0
  63. package/CountryFlags/AI.js +37 -0
  64. package/CountryFlags/AL.d.ts +3 -0
  65. package/CountryFlags/AL.js +35 -0
  66. package/CountryFlags/AM.d.ts +3 -0
  67. package/CountryFlags/AM.js +31 -0
  68. package/CountryFlags/AO.d.ts +3 -0
  69. package/CountryFlags/AO.js +35 -0
  70. package/CountryFlags/AQ.d.ts +3 -0
  71. package/CountryFlags/AQ.js +30 -0
  72. package/CountryFlags/AR.d.ts +3 -0
  73. package/CountryFlags/AR.js +31 -0
  74. package/CountryFlags/AS.d.ts +3 -0
  75. package/CountryFlags/AS.js +33 -0
  76. package/CountryFlags/AT.d.ts +3 -0
  77. package/CountryFlags/AT.js +30 -0
  78. package/CountryFlags/AU.d.ts +3 -0
  79. package/CountryFlags/AU.js +41 -0
  80. package/CountryFlags/AW.d.ts +3 -0
  81. package/CountryFlags/AW.js +33 -0
  82. package/CountryFlags/AX.d.ts +3 -0
  83. package/CountryFlags/AX.js +31 -0
  84. package/CountryFlags/AZ.d.ts +3 -0
  85. package/CountryFlags/AZ.js +34 -0
  86. package/CountryFlags/BA.d.ts +3 -0
  87. package/CountryFlags/BA.js +40 -0
  88. package/CountryFlags/BB.d.ts +3 -0
  89. package/CountryFlags/BB.js +32 -0
  90. package/CountryFlags/BD.d.ts +3 -0
  91. package/CountryFlags/BD.js +30 -0
  92. package/CountryFlags/BE.d.ts +3 -0
  93. package/CountryFlags/BE.js +31 -0
  94. package/CountryFlags/BF.d.ts +3 -0
  95. package/CountryFlags/BF.js +31 -0
  96. package/CountryFlags/BG.d.ts +3 -0
  97. package/CountryFlags/BG.js +31 -0
  98. package/CountryFlags/BH.d.ts +3 -0
  99. package/CountryFlags/BH.js +30 -0
  100. package/CountryFlags/BI.d.ts +3 -0
  101. package/CountryFlags/BI.js +36 -0
  102. package/CountryFlags/BJ.d.ts +3 -0
  103. package/CountryFlags/BJ.js +31 -0
  104. package/CountryFlags/BL.d.ts +3 -0
  105. package/CountryFlags/BL.js +39 -0
  106. package/CountryFlags/BM.d.ts +3 -0
  107. package/CountryFlags/BM.js +40 -0
  108. package/CountryFlags/BN.d.ts +3 -0
  109. package/CountryFlags/BN.js +34 -0
  110. package/CountryFlags/BO.d.ts +3 -0
  111. package/CountryFlags/BO.js +31 -0
  112. package/CountryFlags/BQ.d.ts +3 -0
  113. package/CountryFlags/BQ.js +33 -0
  114. package/CountryFlags/BR.d.ts +3 -0
  115. package/CountryFlags/BR.js +32 -0
  116. package/CountryFlags/BS.d.ts +3 -0
  117. package/CountryFlags/BS.js +32 -0
  118. package/CountryFlags/BT.d.ts +3 -0
  119. package/CountryFlags/BT.js +31 -0
  120. package/CountryFlags/BV.d.ts +3 -0
  121. package/CountryFlags/BV.js +33 -0
  122. package/CountryFlags/BW.d.ts +3 -0
  123. package/CountryFlags/BW.js +32 -0
  124. package/CountryFlags/BY.d.ts +3 -0
  125. package/CountryFlags/BY.js +35 -0
  126. package/CountryFlags/BZ.d.ts +3 -0
  127. package/CountryFlags/BZ.js +36 -0
  128. package/CountryFlags/CA.d.ts +3 -0
  129. package/CountryFlags/CA.js +31 -0
  130. package/CountryFlags/CC.d.ts +3 -0
  131. package/CountryFlags/CC.js +33 -0
  132. package/CountryFlags/CD.d.ts +3 -0
  133. package/CountryFlags/CD.js +32 -0
  134. package/CountryFlags/CF.d.ts +3 -0
  135. package/CountryFlags/CF.js +36 -0
  136. package/CountryFlags/CG.d.ts +3 -0
  137. package/CountryFlags/CG.js +31 -0
  138. package/CountryFlags/CH.d.ts +3 -0
  139. package/CountryFlags/CH.js +30 -0
  140. package/CountryFlags/CI.d.ts +3 -0
  141. package/CountryFlags/CI.js +31 -0
  142. package/CountryFlags/CK.d.ts +3 -0
  143. package/CountryFlags/CK.js +34 -0
  144. package/CountryFlags/CL.d.ts +3 -0
  145. package/CountryFlags/CL.js +32 -0
  146. package/CountryFlags/CM.d.ts +3 -0
  147. package/CountryFlags/CM.js +32 -0
  148. package/CountryFlags/CN.d.ts +3 -0
  149. package/CountryFlags/CN.js +31 -0
  150. package/CountryFlags/CO.d.ts +3 -0
  151. package/CountryFlags/CO.js +31 -0
  152. package/CountryFlags/CR.d.ts +3 -0
  153. package/CountryFlags/CR.js +31 -0
  154. package/CountryFlags/CU.d.ts +3 -0
  155. package/CountryFlags/CU.js +34 -0
  156. package/CountryFlags/CV.d.ts +3 -0
  157. package/CountryFlags/CV.js +33 -0
  158. package/CountryFlags/CW.d.ts +3 -0
  159. package/CountryFlags/CW.js +32 -0
  160. package/CountryFlags/CX.d.ts +3 -0
  161. package/CountryFlags/CX.js +35 -0
  162. package/CountryFlags/CY.d.ts +3 -0
  163. package/CountryFlags/CY.js +34 -0
  164. package/CountryFlags/CZ.d.ts +3 -0
  165. package/CountryFlags/CZ.js +31 -0
  166. package/CountryFlags/DE.d.ts +3 -0
  167. package/CountryFlags/DE.js +31 -0
  168. package/CountryFlags/DJ.d.ts +3 -0
  169. package/CountryFlags/DJ.js +32 -0
  170. package/CountryFlags/DK.d.ts +3 -0
  171. package/CountryFlags/DK.js +30 -0
  172. package/CountryFlags/DM.d.ts +3 -0
  173. package/CountryFlags/DM.js +39 -0
  174. package/CountryFlags/DO.d.ts +3 -0
  175. package/CountryFlags/DO.js +38 -0
  176. package/CountryFlags/DZ.d.ts +3 -0
  177. package/CountryFlags/DZ.js +33 -0
  178. package/CountryFlags/EC.d.ts +3 -0
  179. package/CountryFlags/EC.js +35 -0
  180. package/CountryFlags/EE.d.ts +3 -0
  181. package/CountryFlags/EE.js +31 -0
  182. package/CountryFlags/EG.d.ts +3 -0
  183. package/CountryFlags/EG.js +32 -0
  184. package/CountryFlags/EH.d.ts +3 -0
  185. package/CountryFlags/EH.js +34 -0
  186. package/CountryFlags/ER.d.ts +3 -0
  187. package/CountryFlags/ER.js +40 -0
  188. package/CountryFlags/ES.d.ts +3 -0
  189. package/CountryFlags/ES.js +34 -0
  190. package/CountryFlags/ET.d.ts +3 -0
  191. package/CountryFlags/ET.js +37 -0
  192. package/CountryFlags/EU.d.ts +3 -0
  193. package/CountryFlags/EU.js +30 -0
  194. package/CountryFlags/FI.d.ts +3 -0
  195. package/CountryFlags/FI.js +30 -0
  196. package/CountryFlags/FJ.d.ts +3 -0
  197. package/CountryFlags/FJ.js +36 -0
  198. package/CountryFlags/FK.d.ts +3 -0
  199. package/CountryFlags/FK.js +43 -0
  200. package/CountryFlags/FM.d.ts +3 -0
  201. package/CountryFlags/FM.js +31 -0
  202. package/CountryFlags/FO.d.ts +3 -0
  203. package/CountryFlags/FO.js +31 -0
  204. package/CountryFlags/FR.d.ts +3 -0
  205. package/CountryFlags/FR.js +31 -0
  206. package/CountryFlags/GA.d.ts +3 -0
  207. package/CountryFlags/GA.js +31 -0
  208. package/CountryFlags/GB.d.ts +3 -0
  209. package/CountryFlags/GB.js +36 -0
  210. package/CountryFlags/GD.d.ts +3 -0
  211. package/CountryFlags/GD.js +38 -0
  212. package/CountryFlags/GE.d.ts +3 -0
  213. package/CountryFlags/GE.js +31 -0
  214. package/CountryFlags/GEAB.d.ts +3 -0
  215. package/CountryFlags/GEAB.js +40 -0
  216. package/CountryFlags/GEOS.d.ts +3 -0
  217. package/CountryFlags/GEOS.js +31 -0
  218. package/CountryFlags/GF.d.ts +3 -0
  219. package/CountryFlags/GF.js +31 -0
  220. package/CountryFlags/GG.d.ts +3 -0
  221. package/CountryFlags/GG.js +31 -0
  222. package/CountryFlags/GH.d.ts +3 -0
  223. package/CountryFlags/GH.js +32 -0
  224. package/CountryFlags/GI.d.ts +3 -0
  225. package/CountryFlags/GI.js +34 -0
  226. package/CountryFlags/GL.d.ts +3 -0
  227. package/CountryFlags/GL.js +32 -0
  228. package/CountryFlags/GM.d.ts +3 -0
  229. package/CountryFlags/GM.js +32 -0
  230. package/CountryFlags/GN.d.ts +3 -0
  231. package/CountryFlags/GN.js +31 -0
  232. package/CountryFlags/GP.d.ts +3 -0
  233. package/CountryFlags/GP.js +31 -0
  234. package/CountryFlags/GQ.d.ts +3 -0
  235. package/CountryFlags/GQ.js +37 -0
  236. package/CountryFlags/GR.d.ts +3 -0
  237. package/CountryFlags/GR.js +35 -0
  238. package/CountryFlags/GS.d.ts +3 -0
  239. package/CountryFlags/GS.js +49 -0
  240. package/CountryFlags/GT.d.ts +3 -0
  241. package/CountryFlags/GT.js +33 -0
  242. package/CountryFlags/GU.d.ts +3 -0
  243. package/CountryFlags/GU.js +37 -0
  244. package/CountryFlags/GW.d.ts +3 -0
  245. package/CountryFlags/GW.js +32 -0
  246. package/CountryFlags/GY.d.ts +3 -0
  247. package/CountryFlags/GY.js +33 -0
  248. package/CountryFlags/HK.d.ts +3 -0
  249. package/CountryFlags/HK.js +32 -0
  250. package/CountryFlags/HM.d.ts +3 -0
  251. package/CountryFlags/HM.js +41 -0
  252. package/CountryFlags/HN.d.ts +3 -0
  253. package/CountryFlags/HN.js +31 -0
  254. package/CountryFlags/HR.d.ts +3 -0
  255. package/CountryFlags/HR.js +38 -0
  256. package/CountryFlags/HT.d.ts +3 -0
  257. package/CountryFlags/HT.js +36 -0
  258. package/CountryFlags/HU.d.ts +3 -0
  259. package/CountryFlags/HU.js +31 -0
  260. package/CountryFlags/IC.d.ts +3 -0
  261. package/CountryFlags/IC.js +31 -0
  262. package/CountryFlags/ID.d.ts +3 -0
  263. package/CountryFlags/ID.js +30 -0
  264. package/CountryFlags/IE.d.ts +3 -0
  265. package/CountryFlags/IE.js +31 -0
  266. package/CountryFlags/IL.d.ts +3 -0
  267. package/CountryFlags/IL.js +31 -0
  268. package/CountryFlags/IM.d.ts +3 -0
  269. package/CountryFlags/IM.js +31 -0
  270. package/CountryFlags/IN.d.ts +3 -0
  271. package/CountryFlags/IN.js +35 -0
  272. package/CountryFlags/IO.d.ts +3 -0
  273. package/CountryFlags/IO.js +41 -0
  274. package/CountryFlags/IQ.d.ts +3 -0
  275. package/CountryFlags/IQ.js +33 -0
  276. package/CountryFlags/IR.d.ts +3 -0
  277. package/CountryFlags/IR.js +34 -0
  278. package/CountryFlags/IS.d.ts +3 -0
  279. package/CountryFlags/IS.js +31 -0
  280. package/CountryFlags/IT.d.ts +3 -0
  281. package/CountryFlags/IT.js +31 -0
  282. package/CountryFlags/JE.d.ts +3 -0
  283. package/CountryFlags/JE.js +32 -0
  284. package/CountryFlags/JM.d.ts +3 -0
  285. package/CountryFlags/JM.js +32 -0
  286. package/CountryFlags/JO.d.ts +3 -0
  287. package/CountryFlags/JO.js +33 -0
  288. package/CountryFlags/JP.d.ts +3 -0
  289. package/CountryFlags/JP.js +30 -0
  290. package/CountryFlags/KE.d.ts +3 -0
  291. package/CountryFlags/KE.js +38 -0
  292. package/CountryFlags/KG.d.ts +3 -0
  293. package/CountryFlags/KG.js +35 -0
  294. package/CountryFlags/KH.d.ts +3 -0
  295. package/CountryFlags/KH.js +32 -0
  296. package/CountryFlags/KI.d.ts +3 -0
  297. package/CountryFlags/KI.js +35 -0
  298. package/CountryFlags/KM.d.ts +3 -0
  299. package/CountryFlags/KM.js +37 -0
  300. package/CountryFlags/KN.d.ts +3 -0
  301. package/CountryFlags/KN.js +34 -0
  302. package/CountryFlags/KP.d.ts +3 -0
  303. package/CountryFlags/KP.js +35 -0
  304. package/CountryFlags/KR.d.ts +3 -0
  305. package/CountryFlags/KR.js +38 -0
  306. package/CountryFlags/KW.d.ts +3 -0
  307. package/CountryFlags/KW.js +32 -0
  308. package/CountryFlags/KY.d.ts +3 -0
  309. package/CountryFlags/KY.js +41 -0
  310. package/CountryFlags/KZ.d.ts +3 -0
  311. package/CountryFlags/KZ.js +31 -0
  312. package/CountryFlags/LA.d.ts +3 -0
  313. package/CountryFlags/LA.js +32 -0
  314. package/CountryFlags/LB.d.ts +3 -0
  315. package/CountryFlags/LB.js +33 -0
  316. package/CountryFlags/LC.d.ts +3 -0
  317. package/CountryFlags/LC.js +32 -0
  318. package/CountryFlags/LI.d.ts +3 -0
  319. package/CountryFlags/LI.js +31 -0
  320. package/CountryFlags/LK.d.ts +3 -0
  321. package/CountryFlags/LK.js +36 -0
  322. package/CountryFlags/LR.d.ts +3 -0
  323. package/CountryFlags/LR.js +33 -0
  324. package/CountryFlags/LS.d.ts +3 -0
  325. package/CountryFlags/LS.js +33 -0
  326. package/CountryFlags/LT.d.ts +3 -0
  327. package/CountryFlags/LT.js +31 -0
  328. package/CountryFlags/LU.d.ts +3 -0
  329. package/CountryFlags/LU.js +31 -0
  330. package/CountryFlags/LV.d.ts +3 -0
  331. package/CountryFlags/LV.js +31 -0
  332. package/CountryFlags/LY.d.ts +3 -0
  333. package/CountryFlags/LY.js +34 -0
  334. package/CountryFlags/MA.d.ts +3 -0
  335. package/CountryFlags/MA.js +30 -0
  336. package/CountryFlags/MC.d.ts +3 -0
  337. package/CountryFlags/MC.js +30 -0
  338. package/CountryFlags/MD.d.ts +3 -0
  339. package/CountryFlags/MD.js +32 -0
  340. package/CountryFlags/ME.d.ts +3 -0
  341. package/CountryFlags/ME.js +32 -0
  342. package/CountryFlags/MF.d.ts +3 -0
  343. package/CountryFlags/MF.js +33 -0
  344. package/CountryFlags/MG.d.ts +3 -0
  345. package/CountryFlags/MG.js +31 -0
  346. package/CountryFlags/MH.d.ts +3 -0
  347. package/CountryFlags/MH.js +32 -0
  348. package/CountryFlags/MK.d.ts +3 -0
  349. package/CountryFlags/MK.js +33 -0
  350. package/CountryFlags/ML.d.ts +3 -0
  351. package/CountryFlags/ML.js +31 -0
  352. package/CountryFlags/MM.d.ts +3 -0
  353. package/CountryFlags/MM.js +32 -0
  354. package/CountryFlags/MN.d.ts +3 -0
  355. package/CountryFlags/MN.js +37 -0
  356. package/CountryFlags/MO.d.ts +3 -0
  357. package/CountryFlags/MO.js +34 -0
  358. package/CountryFlags/MP.d.ts +3 -0
  359. package/CountryFlags/MP.js +35 -0
  360. package/CountryFlags/MQ.d.ts +3 -0
  361. package/CountryFlags/MQ.js +32 -0
  362. package/CountryFlags/MR.d.ts +3 -0
  363. package/CountryFlags/MR.js +32 -0
  364. package/CountryFlags/MS.d.ts +3 -0
  365. package/CountryFlags/MS.js +40 -0
  366. package/CountryFlags/MT.d.ts +3 -0
  367. package/CountryFlags/MT.js +31 -0
  368. package/CountryFlags/MU.d.ts +3 -0
  369. package/CountryFlags/MU.js +32 -0
  370. package/CountryFlags/MV.d.ts +3 -0
  371. package/CountryFlags/MV.js +31 -0
  372. package/CountryFlags/MW.d.ts +3 -0
  373. package/CountryFlags/MW.js +32 -0
  374. package/CountryFlags/MX.d.ts +3 -0
  375. package/CountryFlags/MX.js +33 -0
  376. package/CountryFlags/MY.d.ts +3 -0
  377. package/CountryFlags/MY.js +33 -0
  378. package/CountryFlags/MZ.d.ts +3 -0
  379. package/CountryFlags/MZ.js +34 -0
  380. package/CountryFlags/NA.d.ts +3 -0
  381. package/CountryFlags/NA.js +33 -0
  382. package/CountryFlags/NC.d.ts +3 -0
  383. package/CountryFlags/NC.js +38 -0
  384. package/CountryFlags/NE.d.ts +3 -0
  385. package/CountryFlags/NE.js +32 -0
  386. package/CountryFlags/NF.d.ts +3 -0
  387. package/CountryFlags/NF.js +31 -0
  388. package/CountryFlags/NG.d.ts +3 -0
  389. package/CountryFlags/NG.js +31 -0
  390. package/CountryFlags/NI.d.ts +3 -0
  391. package/CountryFlags/NI.js +35 -0
  392. package/CountryFlags/NL.d.ts +3 -0
  393. package/CountryFlags/NL.js +31 -0
  394. package/CountryFlags/NO.d.ts +3 -0
  395. package/CountryFlags/NO.js +31 -0
  396. package/CountryFlags/NP.d.ts +3 -0
  397. package/CountryFlags/NP.js +34 -0
  398. package/CountryFlags/NR.d.ts +3 -0
  399. package/CountryFlags/NR.js +31 -0
  400. package/CountryFlags/NU.d.ts +3 -0
  401. package/CountryFlags/NU.js +53 -0
  402. package/CountryFlags/NZ.d.ts +3 -0
  403. package/CountryFlags/NZ.js +41 -0
  404. package/CountryFlags/OM.d.ts +3 -0
  405. package/CountryFlags/OM.js +34 -0
  406. package/CountryFlags/PA.d.ts +3 -0
  407. package/CountryFlags/PA.js +33 -0
  408. package/CountryFlags/PE.d.ts +3 -0
  409. package/CountryFlags/PE.js +31 -0
  410. package/CountryFlags/PF.d.ts +3 -0
  411. package/CountryFlags/PF.js +35 -0
  412. package/CountryFlags/PG.d.ts +3 -0
  413. package/CountryFlags/PG.js +33 -0
  414. package/CountryFlags/PH.d.ts +3 -0
  415. package/CountryFlags/PH.js +33 -0
  416. package/CountryFlags/PK.d.ts +3 -0
  417. package/CountryFlags/PK.js +34 -0
  418. package/CountryFlags/PL.d.ts +3 -0
  419. package/CountryFlags/PL.js +32 -0
  420. package/CountryFlags/PM.d.ts +3 -0
  421. package/CountryFlags/PM.js +32 -0
  422. package/CountryFlags/PN.d.ts +3 -0
  423. package/CountryFlags/PN.js +43 -0
  424. package/CountryFlags/PR.d.ts +3 -0
  425. package/CountryFlags/PR.js +33 -0
  426. package/CountryFlags/PS.d.ts +3 -0
  427. package/CountryFlags/PS.js +32 -0
  428. package/CountryFlags/PT.d.ts +3 -0
  429. package/CountryFlags/PT.js +33 -0
  430. package/CountryFlags/PW.d.ts +3 -0
  431. package/CountryFlags/PW.js +30 -0
  432. package/CountryFlags/PY.d.ts +3 -0
  433. package/CountryFlags/PY.js +33 -0
  434. package/CountryFlags/QA.d.ts +3 -0
  435. package/CountryFlags/QA.js +30 -0
  436. package/CountryFlags/RE.d.ts +3 -0
  437. package/CountryFlags/RE.js +32 -0
  438. package/CountryFlags/RO.d.ts +3 -0
  439. package/CountryFlags/RO.js +31 -0
  440. package/CountryFlags/RS.d.ts +3 -0
  441. package/CountryFlags/RS.js +35 -0
  442. package/CountryFlags/RU.d.ts +3 -0
  443. package/CountryFlags/RU.js +32 -0
  444. package/CountryFlags/RW.d.ts +3 -0
  445. package/CountryFlags/RW.js +32 -0
  446. package/CountryFlags/SA.d.ts +3 -0
  447. package/CountryFlags/SA.js +33 -0
  448. package/CountryFlags/SB.d.ts +3 -0
  449. package/CountryFlags/SB.js +33 -0
  450. package/CountryFlags/SC.d.ts +3 -0
  451. package/CountryFlags/SC.js +33 -0
  452. package/CountryFlags/SD.d.ts +3 -0
  453. package/CountryFlags/SD.js +32 -0
  454. package/CountryFlags/SE.d.ts +3 -0
  455. package/CountryFlags/SE.js +30 -0
  456. package/CountryFlags/SG.d.ts +3 -0
  457. package/CountryFlags/SG.js +33 -0
  458. package/CountryFlags/SH.d.ts +3 -0
  459. package/CountryFlags/SH.js +43 -0
  460. package/CountryFlags/SI.d.ts +3 -0
  461. package/CountryFlags/SI.js +34 -0
  462. package/CountryFlags/SJ.d.ts +3 -0
  463. package/CountryFlags/SJ.js +31 -0
  464. package/CountryFlags/SK.d.ts +3 -0
  465. package/CountryFlags/SK.js +35 -0
  466. package/CountryFlags/SL.d.ts +3 -0
  467. package/CountryFlags/SL.js +31 -0
  468. package/CountryFlags/SM.d.ts +3 -0
  469. package/CountryFlags/SM.js +35 -0
  470. package/CountryFlags/SN.d.ts +3 -0
  471. package/CountryFlags/SN.js +32 -0
  472. package/CountryFlags/SO.d.ts +3 -0
  473. package/CountryFlags/SO.js +30 -0
  474. package/CountryFlags/SR.d.ts +3 -0
  475. package/CountryFlags/SR.js +33 -0
  476. package/CountryFlags/SS.d.ts +3 -0
  477. package/CountryFlags/SS.js +34 -0
  478. package/CountryFlags/ST.d.ts +3 -0
  479. package/CountryFlags/ST.js +33 -0
  480. package/CountryFlags/SV.d.ts +3 -0
  481. package/CountryFlags/SV.js +34 -0
  482. package/CountryFlags/SX.d.ts +3 -0
  483. package/CountryFlags/SX.js +37 -0
  484. package/CountryFlags/SY.d.ts +3 -0
  485. package/CountryFlags/SY.js +33 -0
  486. package/CountryFlags/SZ.d.ts +3 -0
  487. package/CountryFlags/SZ.js +35 -0
  488. package/CountryFlags/TA.d.ts +3 -0
  489. package/CountryFlags/TA.js +47 -0
  490. package/CountryFlags/TC.d.ts +3 -0
  491. package/CountryFlags/TC.js +44 -0
  492. package/CountryFlags/TD.d.ts +3 -0
  493. package/CountryFlags/TD.js +31 -0
  494. package/CountryFlags/TF.d.ts +3 -0
  495. package/CountryFlags/TF.js +34 -0
  496. package/CountryFlags/TG.d.ts +3 -0
  497. package/CountryFlags/TG.js +33 -0
  498. package/CountryFlags/TH.d.ts +3 -0
  499. package/CountryFlags/TH.js +32 -0
  500. package/CountryFlags/TJ.d.ts +3 -0
  501. package/CountryFlags/TJ.js +33 -0
  502. package/CountryFlags/TK.d.ts +3 -0
  503. package/CountryFlags/TK.js +33 -0
  504. package/CountryFlags/TL.d.ts +3 -0
  505. package/CountryFlags/TL.js +32 -0
  506. package/CountryFlags/TM.d.ts +3 -0
  507. package/CountryFlags/TM.js +45 -0
  508. package/CountryFlags/TN.d.ts +3 -0
  509. package/CountryFlags/TN.js +33 -0
  510. package/CountryFlags/TO.d.ts +3 -0
  511. package/CountryFlags/TO.js +31 -0
  512. package/CountryFlags/TR.d.ts +3 -0
  513. package/CountryFlags/TR.js +30 -0
  514. package/CountryFlags/TT.d.ts +3 -0
  515. package/CountryFlags/TT.js +31 -0
  516. package/CountryFlags/TV.d.ts +3 -0
  517. package/CountryFlags/TV.js +36 -0
  518. package/CountryFlags/TW.d.ts +3 -0
  519. package/CountryFlags/TW.js +33 -0
  520. package/CountryFlags/TZ.d.ts +3 -0
  521. package/CountryFlags/TZ.js +32 -0
  522. package/CountryFlags/UA.d.ts +3 -0
  523. package/CountryFlags/UA.js +30 -0
  524. package/CountryFlags/UG.d.ts +3 -0
  525. package/CountryFlags/UG.js +35 -0
  526. package/CountryFlags/UM.d.ts +3 -0
  527. package/CountryFlags/UM.js +34 -0
  528. package/CountryFlags/US.d.ts +3 -0
  529. package/CountryFlags/US.js +34 -0
  530. package/CountryFlags/UY.d.ts +3 -0
  531. package/CountryFlags/UY.js +33 -0
  532. package/CountryFlags/UZ.d.ts +3 -0
  533. package/CountryFlags/UZ.js +35 -0
  534. package/CountryFlags/VA.d.ts +3 -0
  535. package/CountryFlags/VA.js +32 -0
  536. package/CountryFlags/VC.d.ts +3 -0
  537. package/CountryFlags/VC.js +32 -0
  538. package/CountryFlags/VE.d.ts +3 -0
  539. package/CountryFlags/VE.js +32 -0
  540. package/CountryFlags/VG.d.ts +3 -0
  541. package/CountryFlags/VG.js +45 -0
  542. package/CountryFlags/VI.d.ts +3 -0
  543. package/CountryFlags/VI.js +41 -0
  544. package/CountryFlags/VN.d.ts +3 -0
  545. package/CountryFlags/VN.js +30 -0
  546. package/CountryFlags/VU.d.ts +3 -0
  547. package/CountryFlags/VU.js +35 -0
  548. package/CountryFlags/WF.d.ts +3 -0
  549. package/CountryFlags/WF.js +33 -0
  550. package/CountryFlags/WS.d.ts +3 -0
  551. package/CountryFlags/WS.js +32 -0
  552. package/CountryFlags/XK.d.ts +3 -0
  553. package/CountryFlags/XK.js +32 -0
  554. package/CountryFlags/YE.d.ts +3 -0
  555. package/CountryFlags/YE.js +31 -0
  556. package/CountryFlags/YT.d.ts +3 -0
  557. package/CountryFlags/YT.js +35 -0
  558. package/CountryFlags/ZA.d.ts +3 -0
  559. package/CountryFlags/ZA.js +34 -0
  560. package/CountryFlags/ZM.d.ts +3 -0
  561. package/CountryFlags/ZM.js +33 -0
  562. package/CountryFlags/ZW.d.ts +3 -0
  563. package/CountryFlags/ZW.js +39 -0
  564. package/DatePicker/index.d.ts +3 -0
  565. package/DatePicker/index.js +8 -0
  566. package/ErrorBoundary/index.d.ts +19 -0
  567. package/ErrorBoundary/index.js +78 -0
  568. package/Image/index.d.ts +7 -0
  569. package/Image/index.js +45 -0
  570. package/MaskedField/index.d.ts +33 -0
  571. package/MaskedField/index.js +63 -0
  572. package/MaskedField/templates.d.ts +11 -0
  573. package/MaskedField/templates.js +81 -0
  574. package/MaskedField/useMasked.d.ts +18 -0
  575. package/MaskedField/useMasked.js +96 -0
  576. package/Menu/MenuItem.d.ts +10 -0
  577. package/Menu/MenuItem.js +47 -0
  578. package/Menu/MenuItemInner.d.ts +7 -0
  579. package/Menu/MenuItemInner.js +48 -0
  580. package/Menu/MenuWrapper.d.ts +10 -0
  581. package/Menu/MenuWrapper.js +76 -0
  582. package/Menu/index.d.ts +196 -0
  583. package/Menu/index.js +452 -0
  584. package/Menu/popper-options.d.ts +4 -0
  585. package/Menu/popper-options.js +33 -0
  586. package/Menu/reducer.d.ts +14 -0
  587. package/Menu/reducer.js +19 -0
  588. package/Modal/CloseIcon.d.ts +3 -0
  589. package/Modal/CloseIcon.js +37 -0
  590. package/Modal/ModalConfirmBox.d.ts +9 -0
  591. package/Modal/ModalConfirmBox.js +148 -0
  592. package/Modal/ModalDialog.d.ts +7 -0
  593. package/Modal/ModalDialog.js +99 -0
  594. package/Modal/ModalDrawer.d.ts +11 -0
  595. package/Modal/ModalDrawer.js +150 -0
  596. package/Modal/ModalMessageBox.d.ts +8 -0
  597. package/Modal/ModalMessageBox.js +147 -0
  598. package/Modal/index.d.ts +12 -0
  599. package/Modal/index.js +54 -0
  600. package/NoSSR/index.d.ts +7 -0
  601. package/NoSSR/index.js +15 -0
  602. package/PhoneField/CountryFlagComponent.d.ts +6 -0
  603. package/PhoneField/CountryFlagComponent.js +44 -0
  604. package/PhoneField/UnknownFlag.d.ts +3 -0
  605. package/PhoneField/UnknownFlag.js +34 -0
  606. package/PhoneField/index.d.ts +54 -0
  607. package/PhoneField/index.js +97 -0
  608. package/PhoneField/templates.d.ts +82 -0
  609. package/PhoneField/templates.js +45 -0
  610. package/PhoneField/usePhoneUtils.d.ts +69 -0
  611. package/PhoneField/usePhoneUtils.js +172 -0
  612. package/README.md +12 -10
  613. package/SelectBox/IconChevronDown.d.ts +3 -0
  614. package/SelectBox/IconChevronDown.js +9 -0
  615. package/SelectBox/SelectButton.d.ts +10 -0
  616. package/SelectBox/SelectButton.js +78 -0
  617. package/SelectBox/index.d.ts +40 -0
  618. package/SelectBox/index.js +188 -0
  619. package/SelectBox/popper-options.d.ts +4 -0
  620. package/SelectBox/popper-options.js +33 -0
  621. package/Surface/SurfaceContainer.d.ts +8 -0
  622. package/Surface/SurfaceContainer.js +39 -0
  623. package/Surface/SurfaceContent.d.ts +8 -0
  624. package/Surface/SurfaceContent.js +31 -0
  625. package/Surface/SurfaceHeader.d.ts +4 -0
  626. package/Surface/SurfaceHeader.js +30 -0
  627. package/Surface/SurfaceSubheader.d.ts +4 -0
  628. package/Surface/SurfaceSubheader.js +29 -0
  629. package/Surface/index.d.ts +62 -0
  630. package/Surface/index.js +61 -0
  631. package/Table/Table.d.ts +8 -0
  632. package/Table/Table.js +46 -0
  633. package/Table/TableBody.d.ts +4 -0
  634. package/Table/TableBody.js +30 -0
  635. package/Table/TableCaption.d.ts +4 -0
  636. package/Table/TableCaption.js +30 -0
  637. package/Table/TableCell.d.ts +4 -0
  638. package/Table/TableCell.js +31 -0
  639. package/Table/TableFooter.d.ts +4 -0
  640. package/Table/TableFooter.js +36 -0
  641. package/Table/TableHeader.d.ts +4 -0
  642. package/Table/TableHeader.js +30 -0
  643. package/Table/TableHeaderCell.d.ts +4 -0
  644. package/Table/TableHeaderCell.js +35 -0
  645. package/Table/TableRow.d.ts +4 -0
  646. package/Table/TableRow.js +30 -0
  647. package/Table/index.d.ts +18 -0
  648. package/Table/index.js +45 -0
  649. package/TextField/TextFieldContainer.d.ts +8 -0
  650. package/TextField/TextFieldContainer.js +52 -0
  651. package/TextField/TextFieldErrorText.d.ts +7 -0
  652. package/TextField/TextFieldErrorText.js +75 -0
  653. package/TextField/TextFieldIconWrapper.d.ts +18 -0
  654. package/TextField/TextFieldIconWrapper.js +73 -0
  655. package/TextField/TextFieldInput.d.ts +7 -0
  656. package/TextField/TextFieldInput.js +71 -0
  657. package/TextField/TextFieldInputWrapper.d.ts +14 -0
  658. package/TextField/TextFieldInputWrapper.js +76 -0
  659. package/TextField/TextFieldLabel.d.ts +7 -0
  660. package/TextField/TextFieldLabel.js +50 -0
  661. package/TextField/TextFieldLabelAsterisk.d.ts +13 -0
  662. package/TextField/TextFieldLabelAsterisk.js +51 -0
  663. package/TextField/index.d.ts +80 -0
  664. package/TextField/index.js +100 -0
  665. package/ThemeProvider/createTheme.d.ts +3 -0
  666. package/ThemeProvider/createTheme.js +46 -0
  667. package/ThemeProvider/index.d.ts +57 -0
  668. package/ThemeProvider/index.js +29 -0
  669. package/Typography/Base.d.ts +6 -0
  670. package/Typography/Base.js +12 -0
  671. package/Typography/Blockquote.d.ts +6 -0
  672. package/Typography/Blockquote.js +23 -0
  673. package/Typography/Del.d.ts +6 -0
  674. package/Typography/Del.js +11 -0
  675. package/Typography/Em.d.ts +6 -0
  676. package/Typography/Em.js +11 -0
  677. package/Typography/H1.d.ts +6 -0
  678. package/Typography/H1.js +12 -0
  679. package/Typography/H2.d.ts +6 -0
  680. package/Typography/H2.js +12 -0
  681. package/Typography/H3.d.ts +6 -0
  682. package/Typography/H3.js +12 -0
  683. package/Typography/H4.d.ts +6 -0
  684. package/Typography/H4.js +12 -0
  685. package/Typography/H5.d.ts +6 -0
  686. package/Typography/H5.js +12 -0
  687. package/Typography/List.d.ts +14 -0
  688. package/Typography/List.js +32 -0
  689. package/Typography/Paragraph.d.ts +14 -0
  690. package/Typography/Paragraph.js +52 -0
  691. package/Typography/SectionDescription.d.ts +7 -0
  692. package/Typography/SectionDescription.js +17 -0
  693. package/Typography/SectionTitle.d.ts +8 -0
  694. package/Typography/SectionTitle.js +31 -0
  695. package/Typography/Span.d.ts +6 -0
  696. package/Typography/Span.js +11 -0
  697. package/Typography/Strong.d.ts +6 -0
  698. package/Typography/Strong.js +11 -0
  699. package/Typography/U.d.ts +6 -0
  700. package/Typography/U.js +10 -0
  701. package/Typography/index.d.ts +3 -0
  702. package/Typography/index.js +22 -0
  703. package/index.d.ts +1 -0
  704. package/index.js +1 -7
  705. package/package.json +3 -9
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface TextFieldErrorTextProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ readonly error?: boolean;
4
+ readonly focused?: boolean;
5
+ }
6
+ declare const _default: React.ForwardRefExoticComponent<TextFieldErrorTextProps & React.RefAttributes<HTMLDivElement>>;
7
+ export default _default;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ const React = __importStar(require("react"));
41
+ const styled_1 = __importDefault(require("@emotion/styled"));
42
+ const NoSSR_1 = __importDefault(require("../NoSSR"));
43
+ const ErrorTextContainer = styled_1.default.div `
44
+ margin-left: 0.5em;
45
+ max-height: ${({ $maxHeight }) => typeof $maxHeight === 'number' ? `${$maxHeight}px` : $maxHeight};
46
+ transition: max-height 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
47
+ overflow: hidden;
48
+ `;
49
+ const ErrorTextInner = styled_1.default.div `
50
+ color: ${({ theme }) => theme.color.error.toString()};
51
+ font-size: 0.8em;
52
+ transform: translateY(${({ $error }) => ($error ? 0 : '0.2em')});
53
+ opacity: ${({ $error }) => ($error ? 1 : 0)};
54
+ transition: all 240ms 240ms ease-out;
55
+ `;
56
+ const TextFieldErrorText = (props, ref) => {
57
+ const { children, error, focused } = props, nativeProps = __rest(props, ["children", "error", "focused"]);
58
+ const innerRef = React.useRef(null);
59
+ const [maxHeight, setMaxHeight] = React.useState('auto');
60
+ React.useEffect(() => {
61
+ const updateMaxHeight = () => {
62
+ if (innerRef.current && innerRef.current.getBoundingClientRect().height > 0) {
63
+ setMaxHeight(innerRef.current.getBoundingClientRect().height);
64
+ }
65
+ };
66
+ updateMaxHeight();
67
+ window.addEventListener('resize', updateMaxHeight);
68
+ return () => {
69
+ window.removeEventListener('resize', updateMaxHeight);
70
+ };
71
+ }, [children]);
72
+ return (React.createElement(ErrorTextContainer, Object.assign({}, nativeProps, { "$maxHeight": error ? maxHeight : 0, "$focused": focused, ref: ref }),
73
+ React.createElement(ErrorTextInner, { ref: innerRef, "$error": Boolean(error) }, children ? React.createElement(NoSSR_1.default, null, children) : React.createElement(React.Fragment, null, "\u00A0"))));
74
+ };
75
+ exports.default = React.forwardRef(TextFieldErrorText);
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ export type TextFieldIconWrapperProps = React.InputHTMLAttributes<HTMLDivElement> & {
3
+ /**
4
+ * Icon position
5
+ */
6
+ readonly position: 'start' | 'end';
7
+ readonly error?: boolean;
8
+ readonly focused?: boolean;
9
+ };
10
+ declare const _default: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLDivElement> & {
11
+ /**
12
+ * Icon position
13
+ */
14
+ readonly position: "end" | "start";
15
+ readonly error?: boolean | undefined;
16
+ readonly focused?: boolean | undefined;
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ export default _default;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ const React = __importStar(require("react"));
41
+ const styled_1 = __importDefault(require("@emotion/styled"));
42
+ const react_1 = require("@emotion/react");
43
+ const IconWrapper = styled_1.default.div `
44
+ height: auto;
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ ${({ $position }) => $position === 'start' &&
49
+ (0, react_1.css) `
50
+ border-top-left-radius: inherit;
51
+ border-bottom-left-radius: inherit;
52
+ `};
53
+ ${({ $position }) => $position === 'end' &&
54
+ (0, react_1.css) `
55
+ border-top-right-radius: inherit;
56
+ border-bottom-right-radius: inherit;
57
+ `};
58
+ & > svg {
59
+ margin: 0 1em;
60
+ border-radius: inherit;
61
+ }
62
+ & > button {
63
+ height: 100%;
64
+ padding: 0 1em;
65
+ border-radius: inherit;
66
+ box-shadow: none;
67
+ }
68
+ `;
69
+ const TextFieldIconWrapper = (props, ref) => {
70
+ const { children, position, focused, error } = props, nativeProps = __rest(props, ["children", "position", "focused", "error"]);
71
+ return (React.createElement(IconWrapper, Object.assign({}, nativeProps, { "$position": position, "$error": error, "$focused": focused, ref: ref }), children));
72
+ };
73
+ exports.default = React.forwardRef(TextFieldIconWrapper);
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface TextFieldInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ readonly hasStartIcon: boolean;
4
+ readonly hasEndIcon: boolean;
5
+ }
6
+ declare const _default: React.ForwardRefExoticComponent<TextFieldInputProps & React.RefAttributes<HTMLInputElement>>;
7
+ export default _default;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ const React = __importStar(require("react"));
41
+ const styled_1 = __importDefault(require("@emotion/styled"));
42
+ const react_1 = require("@emotion/react");
43
+ const Input = styled_1.default.input `
44
+ padding: 1em 1.2em;
45
+ font-size: 1em;
46
+ background: none;
47
+ border-radius: inherit;
48
+ margin: 0;
49
+ border: 0;
50
+ width: 100%;
51
+ color: currentColor;
52
+ ${({ $hasStartIcon }) => $hasStartIcon &&
53
+ (0, react_1.css) `
54
+ padding-left: 0;
55
+ `};
56
+ ${({ $hasEndIcon }) => $hasEndIcon &&
57
+ (0, react_1.css) `
58
+ padding-right: 0;
59
+ `};
60
+ &:focus {
61
+ outline: none;
62
+ }
63
+ &::placeholder {
64
+ font-style: italic;
65
+ }
66
+ `;
67
+ const TextFieldInput = (props, ref) => {
68
+ const { hasEndIcon, hasStartIcon } = props, nativeProps = __rest(props, ["hasEndIcon", "hasStartIcon"]);
69
+ return React.createElement(Input, Object.assign({}, nativeProps, { "$hasEndIcon": hasEndIcon, "$hasStartIcon": hasStartIcon, ref: ref }));
70
+ };
71
+ exports.default = React.forwardRef(TextFieldInput);
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export type TextFieldInputWrapperProps = React.HTMLAttributes<HTMLDivElement> & {
3
+ readonly error?: boolean;
4
+ readonly fullWidth?: boolean;
5
+ readonly readOnly?: boolean;
6
+ readonly focused?: boolean;
7
+ };
8
+ declare const _default: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
9
+ readonly error?: boolean | undefined;
10
+ readonly fullWidth?: boolean | undefined;
11
+ readonly readOnly?: boolean | undefined;
12
+ readonly focused?: boolean | undefined;
13
+ } & React.RefAttributes<HTMLDivElement>>;
14
+ export default _default;
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ const React = __importStar(require("react"));
41
+ const styled_1 = __importDefault(require("@emotion/styled"));
42
+ const react_1 = require("@emotion/react");
43
+ const Wrapper = styled_1.default.div `
44
+ display: flex;
45
+ align-items: stretch;
46
+ border-radius: ${({ theme }) => theme.shape.radiusFactor * 2}em;
47
+ border: 1px solid;
48
+ outline: 1px solid transparent;
49
+ border-color: ${({ theme }) => theme.isDark
50
+ ? theme.color.textPrimary.darken(100).toString()
51
+ : theme.color.textPrimary.lighten(150).toString()};
52
+ width: ${({ $fullWidth }) => ($fullWidth ? '100%' : 'auto')};
53
+ font-size: 0.9em;
54
+ background-color: ${({ theme }) => theme.color.surface.toString()};
55
+ color: ${({ theme }) => theme.color.textPrimary.toString()};
56
+ transition: all 180ms ease-out 0s;
57
+
58
+ ${props => props.$focused &&
59
+ (0, react_1.css) `
60
+ border-color: ${props.theme.color.accentPrimary.lighten(10).toString()};
61
+ outline-color: ${props.theme.color.accentPrimary.lighten(10).toString()};
62
+ `};
63
+ ${props => props.$error &&
64
+ (0, react_1.css) `
65
+ border-color: ${props.theme.color.error.toString()};
66
+ color: ${props.theme.color.error.toString()};
67
+ &:focus {
68
+ border-color: ${props.theme.color.error.lighten(0.6).toString()};
69
+ }
70
+ `}
71
+ `;
72
+ const TextFieldInputWrapper = (props, ref) => {
73
+ const { focused, error, readOnly, fullWidth, children } = props, nativeProps = __rest(props, ["focused", "error", "readOnly", "fullWidth", "children"]);
74
+ return (React.createElement(Wrapper, Object.assign({}, nativeProps, { "$error": error, "$focused": focused, "$readOnly": readOnly, "$fullWidth": Boolean(fullWidth), ref: ref }), children));
75
+ };
76
+ exports.default = React.forwardRef(TextFieldInputWrapper);
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface TextFieldLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
3
+ readonly error?: boolean;
4
+ readonly focused?: boolean;
5
+ }
6
+ declare const _default: React.ForwardRefExoticComponent<TextFieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
7
+ export default _default;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ const React = __importStar(require("react"));
41
+ const styled_1 = __importDefault(require("@emotion/styled"));
42
+ const Label = styled_1.default.label `
43
+ font-size: 0.8em;
44
+ margin-bottom: 0.2em;
45
+ `;
46
+ const TextFieldLabel = (props, ref) => {
47
+ const { children, error, focused } = props, nativeProps = __rest(props, ["children", "error", "focused"]);
48
+ return (React.createElement(Label, Object.assign({}, nativeProps, { "$error": error, "$focused": focused, ref: ref }), children));
49
+ };
50
+ exports.default = React.forwardRef(TextFieldLabel);
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ export interface TextFieldLabelAsteriskProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ /**
4
+ * If true, the asterisk will be set the error color
5
+ */
6
+ readonly error?: boolean;
7
+ /**
8
+ * Not used
9
+ */
10
+ readonly focused?: boolean;
11
+ }
12
+ declare const _default: React.ForwardRefExoticComponent<TextFieldLabelAsteriskProps & React.RefAttributes<HTMLSpanElement>>;
13
+ export default _default;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ const React = __importStar(require("react"));
41
+ const styled_1 = __importDefault(require("@emotion/styled"));
42
+ const Asterisk = styled_1.default.span `
43
+ font-size: 0.8em;
44
+ margin-left: 0.2em;
45
+ color: ${({ theme }) => theme.color.error.toString()};
46
+ `;
47
+ const TextFieldLabelAsterisk = (props, ref) => {
48
+ const { children, error, focused } = props, nativeProps = __rest(props, ["children", "error", "focused"]);
49
+ return (React.createElement(Asterisk, Object.assign({}, nativeProps, { "$error": error, "$focused": focused, ref: ref }), children));
50
+ };
51
+ exports.default = React.forwardRef(TextFieldLabelAsterisk);
@@ -0,0 +1,80 @@
1
+ import * as React from 'react';
2
+ import { TextFieldContainerProps } from './TextFieldContainer';
3
+ import { TextFieldLabelProps } from './TextFieldLabel';
4
+ import { TextFieldLabelAsteriskProps } from './TextFieldLabelAsterisk';
5
+ import { TextFieldInputWrapperProps } from './TextFieldInputWrapper';
6
+ import { TextFieldInputProps } from './TextFieldInput';
7
+ import { TextFieldErrorTextProps } from './TextFieldErrorText';
8
+ import { TextFieldIconWrapperProps } from './TextFieldIconWrapper';
9
+ export interface TextFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
10
+ /**
11
+ * If true then `errorText` value will be displayed under the TextField element
12
+ */
13
+ readonly error?: boolean;
14
+ /**
15
+ * If is true then the asterisk will be displayed in label\
16
+ * If is ReactNode then ReactNode will be displayed in label
17
+ */
18
+ readonly requiredAsterisk?: boolean | React.ReactNode;
19
+ /**
20
+ * Text or ReactNode to show in error element\
21
+ * Will be displaed only if `error` property is tru
22
+ */
23
+ readonly errorText?: React.ReactNode;
24
+ /**
25
+ * If true then TextField will be filled in full width on horizontal
26
+ */
27
+ readonly fullWidth?: boolean;
28
+ /**
29
+ * Native <input> element reference
30
+ */
31
+ readonly inputRef?: React.Ref<HTMLInputElement>;
32
+ /**
33
+ * Field label text or element
34
+ */
35
+ readonly label?: React.ReactNode;
36
+ /**
37
+ * End icon component
38
+ */
39
+ readonly endIcon?: React.ReactElement;
40
+ /**
41
+ * Start icon component
42
+ */
43
+ readonly startIcon?: React.ReactElement;
44
+ /**
45
+ * Overridable components map
46
+ */
47
+ readonly overrides?: TextFieldOverrides;
48
+ }
49
+ export interface TextFieldOverrides {
50
+ /**
51
+ * Native `input` component
52
+ */
53
+ readonly Input?: React.ForwardRefExoticComponent<TextFieldInputProps & React.RefAttributes<HTMLInputElement>>;
54
+ /**
55
+ * Component for display error text
56
+ */
57
+ readonly ErrorText?: React.ForwardRefExoticComponent<TextFieldErrorTextProps & React.RefAttributes<HTMLDivElement>>;
58
+ /**
59
+ * Icons wrapper component
60
+ */
61
+ readonly IconWrapper?: React.ForwardRefExoticComponent<TextFieldIconWrapperProps & React.RefAttributes<HTMLDivElement>>;
62
+ /**
63
+ * input field wrapper component
64
+ */
65
+ readonly InputWrapper?: React.ForwardRefExoticComponent<TextFieldInputWrapperProps & React.RefAttributes<HTMLDivElement>>;
66
+ /**
67
+ * label component
68
+ */
69
+ readonly Label?: React.ForwardRefExoticComponent<TextFieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
70
+ /**
71
+ * label asterisk component
72
+ */
73
+ readonly Asterisk?: React.ForwardRefExoticComponent<TextFieldLabelAsteriskProps & React.RefAttributes<HTMLSpanElement>>;
74
+ /**
75
+ * label component
76
+ */
77
+ readonly Container?: React.ForwardRefExoticComponent<TextFieldContainerProps & React.RefAttributes<HTMLDivElement>>;
78
+ }
79
+ declare const _default: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLDivElement>>;
80
+ export default _default;
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ const React = __importStar(require("react"));
41
+ const TextFieldContainer_1 = __importDefault(require("./TextFieldContainer"));
42
+ const TextFieldLabel_1 = __importDefault(require("./TextFieldLabel"));
43
+ const TextFieldLabelAsterisk_1 = __importDefault(require("./TextFieldLabelAsterisk"));
44
+ const TextFieldInputWrapper_1 = __importDefault(require("./TextFieldInputWrapper"));
45
+ const TextFieldInput_1 = __importDefault(require("./TextFieldInput"));
46
+ const TextFieldErrorText_1 = __importDefault(require("./TextFieldErrorText"));
47
+ const TextFieldIconWrapper_1 = __importDefault(require("./TextFieldIconWrapper"));
48
+ const TextField = (props, ref) => {
49
+ const { error, fullWidth, inputRef, label, id, errorText, className, style, endIcon, startIcon, requiredAsterisk, overrides, onChange, onFocus, onBlur } = props, nativeInputProps = __rest(props, ["error", "fullWidth", "inputRef", "label", "id", "errorText", "className", "style", "endIcon", "startIcon", "requiredAsterisk", "overrides", "onChange", "onFocus", "onBlur"]);
50
+ const [focused, setFocused] = React.useState(false);
51
+ const inputID = React.useMemo(() => {
52
+ if (typeof id === 'string') {
53
+ return id;
54
+ }
55
+ const u = Date.now().toString(16) + Math.random().toString(16) + '0'.repeat(16);
56
+ const guid = [
57
+ u.substring(0, 8),
58
+ u.substring(8, 12),
59
+ '4000-8' + u.substring(13, 16),
60
+ u.substring(16, 28),
61
+ ].join('-');
62
+ return guid;
63
+ }, [id]);
64
+ const inputChange = React.useCallback(event => {
65
+ if (onChange) {
66
+ onChange(event);
67
+ }
68
+ }, [onChange]);
69
+ const inputFocus = React.useCallback(event => {
70
+ setFocused(true);
71
+ if (typeof onFocus === 'function') {
72
+ onFocus(event);
73
+ }
74
+ }, [onFocus]);
75
+ const inputBlur = React.useCallback(event => {
76
+ setFocused(false);
77
+ if (typeof onBlur === 'function') {
78
+ onBlur(event);
79
+ }
80
+ }, [onBlur]);
81
+ const hasStartIcon = React.useMemo(() => typeof startIcon !== 'undefined' && startIcon !== null, [startIcon]);
82
+ const hasEndIcon = React.useMemo(() => typeof endIcon !== 'undefined' && endIcon !== null, [endIcon]);
83
+ const overridesMap = React.useMemo(() => (Object.assign({ Label: TextFieldLabel_1.default,
84
+ Input: TextFieldInput_1.default,
85
+ Asterisk: TextFieldLabelAsterisk_1.default,
86
+ Container: TextFieldContainer_1.default,
87
+ ErrorText: TextFieldErrorText_1.default,
88
+ IconWrapper: TextFieldIconWrapper_1.default,
89
+ InputWrapper: TextFieldInputWrapper_1.default }, overrides)), [overrides]);
90
+ return (React.createElement(overridesMap.Container, { ref: ref, fullWidth: fullWidth, className: className, style: style, focused: focused },
91
+ typeof label !== 'undefined' && label !== null && (React.createElement(overridesMap.Label, { htmlFor: inputID, error: error },
92
+ label,
93
+ typeof requiredAsterisk !== 'undefined' && requiredAsterisk !== null && (React.createElement(overridesMap.Asterisk, null, typeof requiredAsterisk === 'boolean' ? '*' : requiredAsterisk)))),
94
+ React.createElement(overridesMap.InputWrapper, { error: error, focused: focused, fullWidth: fullWidth },
95
+ hasStartIcon && (React.createElement(overridesMap.IconWrapper, { position: "start" }, startIcon)),
96
+ React.createElement(overridesMap.Input, Object.assign({}, nativeInputProps, { hasStartIcon: hasStartIcon, hasEndIcon: hasEndIcon, ref: inputRef, id: inputID, onChange: inputChange, onFocus: inputFocus, onBlur: inputBlur })),
97
+ hasEndIcon && (React.createElement(overridesMap.IconWrapper, { position: "end" }, endIcon))),
98
+ React.createElement(overridesMap.ErrorText, { error: error, focused: focused }, errorText)));
99
+ };
100
+ exports.default = React.forwardRef(TextField);
@@ -0,0 +1,3 @@
1
+ import { CreateTheme } from './index';
2
+ export declare const createTheme: CreateTheme;
3
+ export default createTheme;