@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,4 @@
1
+ import React from 'react';
2
+ export type SurfaceHeaderProps = React.HTMLAttributes<HTMLDivElement>;
3
+ declare const _default: React.ForwardRefExoticComponent<SurfaceHeaderProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default _default;
@@ -0,0 +1,30 @@
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 StyledHeader = styled_1.default.div `
20
+ padding: 1rem 1rem 0 1rem;
21
+ font-size: 1.3rem;
22
+ font-weight: 600;
23
+ border-top-left-radius: inherit;
24
+ border-top-right-radius: inherit;
25
+ `;
26
+ const SurfaceHeader = (props, ref) => {
27
+ const { children } = props, nativeProps = __rest(props, ["children"]);
28
+ return (react_1.default.createElement(StyledHeader, Object.assign({}, nativeProps, { ref: ref }), children));
29
+ };
30
+ exports.default = react_1.default.forwardRef(SurfaceHeader);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export type SurfaceSubheaderProps = React.HTMLAttributes<HTMLDivElement>;
3
+ declare const _default: React.ForwardRefExoticComponent<SurfaceSubheaderProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default _default;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ const react_1 = __importDefault(require("react"));
18
+ const styled_1 = __importDefault(require("@emotion/styled"));
19
+ const StyledHeader = styled_1.default.div `
20
+ padding: 1rem 1rem 0 1rem;
21
+ font-size: 0.9rem;
22
+ font-weight: 200;
23
+ color: ${({ theme }) => theme.color.textSecondary.toString()};
24
+ `;
25
+ const SurfaceSubheader = (props, ref) => {
26
+ const { children } = props, nativeProps = __rest(props, ["children"]);
27
+ return (react_1.default.createElement(StyledHeader, Object.assign({}, nativeProps, { ref: ref }), children));
28
+ };
29
+ exports.default = react_1.default.forwardRef(SurfaceSubheader);
@@ -0,0 +1,62 @@
1
+ import * as React from 'react';
2
+ import { SurfaceContainerProps } from './SurfaceContainer';
3
+ import { SurfaceHeaderProps } from './SurfaceHeader';
4
+ import { SurfaceSubheaderProps } from './SurfaceSubheader';
5
+ import { SurfaceContentProps } from './SurfaceContent';
6
+ export type SurfaceProps = React.HTMLAttributes<HTMLDivElement> & {
7
+ readonly children: React.ReactNode | React.ReactNode[];
8
+ /**
9
+ * Header content
10
+ */
11
+ readonly header?: React.ReactNode;
12
+ /**
13
+ * Subheader content
14
+ */
15
+ readonly subheader?: React.ReactNode;
16
+ /**
17
+ * Disable bottom margin
18
+ */
19
+ readonly noMargin?: boolean;
20
+ /**
21
+ * Overridable components map
22
+ */
23
+ readonly overrides?: SurfaceOverrides;
24
+ };
25
+ export interface SurfaceOverrides {
26
+ /**
27
+ * Surface container component
28
+ */
29
+ readonly Container?: React.ForwardRefExoticComponent<SurfaceContainerProps & React.RefAttributes<HTMLDivElement>>;
30
+ /**
31
+ * Surface header component
32
+ */
33
+ readonly Header?: React.ForwardRefExoticComponent<SurfaceHeaderProps & React.RefAttributes<HTMLDivElement>>;
34
+ /**
35
+ * Surface subheader component
36
+ */
37
+ readonly Subheader?: React.ForwardRefExoticComponent<SurfaceSubheaderProps & React.RefAttributes<HTMLDivElement>>;
38
+ /**
39
+ * Surface content component
40
+ */
41
+ readonly Content?: React.ForwardRefExoticComponent<SurfaceContentProps & React.RefAttributes<HTMLDivElement>>;
42
+ }
43
+ declare const _default: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
44
+ readonly children: React.ReactNode | React.ReactNode[];
45
+ /**
46
+ * Header content
47
+ */
48
+ readonly header?: React.ReactNode;
49
+ /**
50
+ * Subheader content
51
+ */
52
+ readonly subheader?: React.ReactNode;
53
+ /**
54
+ * Disable bottom margin
55
+ */
56
+ readonly noMargin?: boolean | undefined;
57
+ /**
58
+ * Overridable components map
59
+ */
60
+ readonly overrides?: SurfaceOverrides | undefined;
61
+ } & React.RefAttributes<HTMLDivElement>>;
62
+ export default _default;
@@ -0,0 +1,61 @@
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 SurfaceContainer_1 = __importDefault(require("./SurfaceContainer"));
42
+ const SurfaceHeader_1 = __importDefault(require("./SurfaceHeader"));
43
+ const SurfaceSubheader_1 = __importDefault(require("./SurfaceSubheader"));
44
+ const SurfaceContent_1 = __importDefault(require("./SurfaceContent"));
45
+ const Surface = (props, ref) => {
46
+ const { children, header, subheader, noMargin, overrides } = props, nativeProps = __rest(props, ["children", "header", "subheader", "noMargin", "overrides"]);
47
+ const hasHeader = typeof header !== 'undefined' && header !== null;
48
+ const hasSubheader = typeof subheader !== 'undefined' && subheader !== null;
49
+ const overridesMap = React.useMemo(() => (Object.assign({ Container: SurfaceContainer_1.default,
50
+ Header: SurfaceHeader_1.default,
51
+ Subheader: SurfaceSubheader_1.default,
52
+ Content: SurfaceContent_1.default }, overrides)), [overrides]);
53
+ if (!hasHeader && hasSubheader) {
54
+ console.warn(`[@via-profit/ui-kit] Surface component. If you use a subheader, then you should add a header`);
55
+ }
56
+ return (React.createElement(overridesMap.Container, Object.assign({}, nativeProps, { noMargin: noMargin, ref: ref }),
57
+ hasHeader && React.createElement(overridesMap.Header, null, header),
58
+ hasSubheader && React.createElement(overridesMap.Subheader, null, subheader),
59
+ React.createElement(overridesMap.Content, null, children)));
60
+ };
61
+ exports.default = React.forwardRef(Surface);
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export type TableProps = React.TableHTMLAttributes<HTMLTableElement> & {
3
+ readonly fullWidth?: boolean;
4
+ };
5
+ declare const _default: React.ForwardRefExoticComponent<React.TableHTMLAttributes<HTMLTableElement> & {
6
+ readonly fullWidth?: boolean | undefined;
7
+ } & React.RefAttributes<HTMLTableElement>>;
8
+ export default _default;
package/Table/Table.js ADDED
@@ -0,0 +1,46 @@
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 StyledTable = styled_1.default.table `
21
+ display: table;
22
+ width: 100%;
23
+ box-sizing: border-box;
24
+ text-indent: initial;
25
+ border-spacing: 0;
26
+ border-collapse: collapse;
27
+ table-layout: fixed;
28
+ margin-bottom: 1.5em;
29
+ border: none;
30
+ text-align: left;
31
+ overflow: hidden;
32
+ background: ${({ theme }) => theme.color.surface.toString()};
33
+ color: ${({ theme }) => theme.color.textPrimary.toString()};
34
+ box-shadow: ${({ theme }) => `0 0.5em 2em -0.8em ${theme.color.surface.darken(100).alpha(0.4).toString()}`};
35
+ border-radius: ${({ theme }) => theme.shape.radiusFactor}em;
36
+ font-size: 1em;
37
+ ${({ $fullWidth }) => $fullWidth &&
38
+ (0, react_2.css) `
39
+ width: 100%;
40
+ `};
41
+ `;
42
+ const Table = (props, ref) => {
43
+ const { children, fullWidth } = props, nativeProps = __rest(props, ["children", "fullWidth"]);
44
+ return (react_1.default.createElement(StyledTable, Object.assign({ role: "table", "$fullWidth": fullWidth }, nativeProps, { ref: ref }), children));
45
+ };
46
+ exports.default = react_1.default.forwardRef(Table);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export type TableBodyProps = React.TableHTMLAttributes<HTMLTableSectionElement>;
3
+ declare const _default: React.ForwardRefExoticComponent<TableBodyProps & React.RefAttributes<HTMLTableSectionElement>>;
4
+ export default _default;
@@ -0,0 +1,30 @@
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 StyledTableBody = styled_1.default.tbody `
20
+ display: table-row-group;
21
+ vertical-align: middle;
22
+ & > [role='row']:last-of-type {
23
+ border-bottom: none;
24
+ }
25
+ `;
26
+ const TableBody = (props, ref) => {
27
+ const { children } = props, nativeProps = __rest(props, ["children"]);
28
+ return (react_1.default.createElement(StyledTableBody, Object.assign({}, nativeProps, { ref: ref }), children));
29
+ };
30
+ exports.default = react_1.default.forwardRef(TableBody);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export type TableCaptionProps = React.HTMLAttributes<HTMLElement>;
3
+ declare const _default: React.ForwardRefExoticComponent<TableCaptionProps & React.RefAttributes<HTMLElement>>;
4
+ export default _default;
@@ -0,0 +1,30 @@
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 StyledTableCaption = styled_1.default.caption `
20
+ display: table-caption;
21
+ text-align: center;
22
+ padding: 0.26em;
23
+ font-size: 1.2em;
24
+ font-weight: 700;
25
+ `;
26
+ const TableCaption = (props, ref) => {
27
+ const { children } = props, nativeProps = __rest(props, ["children"]);
28
+ return (react_1.default.createElement(StyledTableCaption, Object.assign({}, nativeProps, { ref: ref }), children));
29
+ };
30
+ exports.default = react_1.default.forwardRef(TableCaption);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export type TableCellProps = React.TdHTMLAttributes<HTMLTableCellElement>;
3
+ declare const _default: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
4
+ export default _default;
@@ -0,0 +1,31 @@
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 StyledTableCell = styled_1.default.td `
20
+ display: table-cell;
21
+ vertical-align: inherit;
22
+ padding: 0.8em;
23
+ @media all and (max-width: 1200px) {
24
+ padding: 0.4em;
25
+ }
26
+ `;
27
+ const TableCell = (props, ref) => {
28
+ const { children } = props, nativeProps = __rest(props, ["children"]);
29
+ return (react_1.default.createElement(StyledTableCell, Object.assign({ role: "cell" }, nativeProps, { ref: ref }), children));
30
+ };
31
+ exports.default = react_1.default.forwardRef(TableCell);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export type TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;
3
+ declare const _default: React.ForwardRefExoticComponent<TableFooterProps & React.RefAttributes<HTMLTableSectionElement>>;
4
+ export default _default;
@@ -0,0 +1,36 @@
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 StyledTableFooter = styled_1.default.tfoot `
20
+ display: table-footer-group;
21
+ vertical-align: middle;
22
+ border-top-width: 0.1em;
23
+ border-top-style: solid;
24
+ border-top-color: ${({ theme }) => theme.color.surface.darken(30).toString()};
25
+ & [role='cell'] {
26
+ font-weight: 600;
27
+ }
28
+ & [role='row'] {
29
+ border-bottom: none;
30
+ }
31
+ `;
32
+ const TableFooter = (props, ref) => {
33
+ const { children } = props, nativeProps = __rest(props, ["children"]);
34
+ return (react_1.default.createElement(StyledTableFooter, Object.assign({}, nativeProps, { ref: ref }), children));
35
+ };
36
+ exports.default = react_1.default.forwardRef(TableFooter);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export type TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;
3
+ declare const _default: React.ForwardRefExoticComponent<TableHeaderProps & React.RefAttributes<HTMLTableSectionElement>>;
4
+ export default _default;
@@ -0,0 +1,30 @@
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 StyledTableHeader = styled_1.default.thead `
20
+ display: table-header-group;
21
+ vertical-align: middle;
22
+ & [role='row'] {
23
+ border-bottom: none;
24
+ }
25
+ `;
26
+ const TableHeader = (props, ref) => {
27
+ const { children } = props, nativeProps = __rest(props, ["children"]);
28
+ return (react_1.default.createElement(StyledTableHeader, Object.assign({}, nativeProps, { ref: ref }), children));
29
+ };
30
+ exports.default = react_1.default.forwardRef(TableHeader);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export type TableHeaderCellProps = React.ThHTMLAttributes<HTMLTableCellElement>;
3
+ declare const _default: React.ForwardRefExoticComponent<TableHeaderCellProps & React.RefAttributes<HTMLTableCellElement>>;
4
+ export default _default;
@@ -0,0 +1,35 @@
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 StyledTableHeaderCell = styled_1.default.th `
20
+ display: table-cell;
21
+ vertical-align: inherit;
22
+ padding: 0.8em;
23
+ background-color: ${({ theme }) => theme.color.accentPrimary.darken(10).toString()};
24
+ color: ${({ theme }) => theme.color.accentPrimaryContrast.toString()};
25
+ word-break: break-all;
26
+ font-weight: 500;
27
+ @media all and (max-width: 1200px) {
28
+ padding: 0.4em;
29
+ }
30
+ `;
31
+ const TableHeaderCell = (props, ref) => {
32
+ const { children } = props, nativeProps = __rest(props, ["children"]);
33
+ return (react_1.default.createElement(StyledTableHeaderCell, Object.assign({ role: "rowheader" }, nativeProps, { ref: ref }), children));
34
+ };
35
+ exports.default = react_1.default.forwardRef(TableHeaderCell);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export type TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;
3
+ declare const _default: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
4
+ export default _default;
@@ -0,0 +1,30 @@
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 StyledTableRow = styled_1.default.tr `
20
+ display: table-row;
21
+ vertical-align: inherit;
22
+ border-bottom-width: 0.1em;
23
+ border-bottom-style: solid;
24
+ border-bottom-color: ${({ theme }) => theme.color.surface.darken(20).toString()};
25
+ `;
26
+ const TableRow = (props, ref) => {
27
+ const { children } = props, nativeProps = __rest(props, ["children"]);
28
+ return (react_1.default.createElement(StyledTableRow, Object.assign({ role: "row" }, nativeProps, { ref: ref }), children));
29
+ };
30
+ exports.default = react_1.default.forwardRef(TableRow);
@@ -0,0 +1,18 @@
1
+ import Table from './Table';
2
+ import TableHeaderCell from './TableHeaderCell';
3
+ import TableRow from './TableRow';
4
+ import TableHeader from './TableHeader';
5
+ import TableCell from './TableCell';
6
+ import TableBody from './TableBody';
7
+ import TableFooter from './TableFooter';
8
+ import TableCaption from './TableCaption';
9
+ export * from './Table';
10
+ export * from './TableHeaderCell';
11
+ export * from './TableRow';
12
+ export * from './TableHeader';
13
+ export * from './TableCell';
14
+ export * from './TableBody';
15
+ export * from './TableFooter';
16
+ export * from './TableCaption';
17
+ export { Table, TableHeaderCell, TableRow, TableHeader, TableCell, TableBody, TableFooter, TableCaption, };
18
+ export default Table;
package/Table/index.js ADDED
@@ -0,0 +1,45 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ var __importDefault = (this && this.__importDefault) || function (mod) {
17
+ return (mod && mod.__esModule) ? mod : { "default": mod };
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.TableCaption = exports.TableFooter = exports.TableBody = exports.TableCell = exports.TableHeader = exports.TableRow = exports.TableHeaderCell = exports.Table = void 0;
21
+ const Table_1 = __importDefault(require("./Table"));
22
+ exports.Table = Table_1.default;
23
+ const TableHeaderCell_1 = __importDefault(require("./TableHeaderCell"));
24
+ exports.TableHeaderCell = TableHeaderCell_1.default;
25
+ const TableRow_1 = __importDefault(require("./TableRow"));
26
+ exports.TableRow = TableRow_1.default;
27
+ const TableHeader_1 = __importDefault(require("./TableHeader"));
28
+ exports.TableHeader = TableHeader_1.default;
29
+ const TableCell_1 = __importDefault(require("./TableCell"));
30
+ exports.TableCell = TableCell_1.default;
31
+ const TableBody_1 = __importDefault(require("./TableBody"));
32
+ exports.TableBody = TableBody_1.default;
33
+ const TableFooter_1 = __importDefault(require("./TableFooter"));
34
+ exports.TableFooter = TableFooter_1.default;
35
+ const TableCaption_1 = __importDefault(require("./TableCaption"));
36
+ exports.TableCaption = TableCaption_1.default;
37
+ __exportStar(require("./Table"), exports);
38
+ __exportStar(require("./TableHeaderCell"), exports);
39
+ __exportStar(require("./TableRow"), exports);
40
+ __exportStar(require("./TableHeader"), exports);
41
+ __exportStar(require("./TableCell"), exports);
42
+ __exportStar(require("./TableBody"), exports);
43
+ __exportStar(require("./TableFooter"), exports);
44
+ __exportStar(require("./TableCaption"), exports);
45
+ exports.default = Table_1.default;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export interface TextFieldContainerProps extends React.InputHTMLAttributes<HTMLDivElement> {
3
+ readonly fullWidth?: boolean;
4
+ readonly focused?: boolean;
5
+ readonly error?: boolean;
6
+ }
7
+ declare const _default: React.ForwardRefExoticComponent<TextFieldContainerProps & React.RefAttributes<HTMLDivElement>>;
8
+ export default _default;
@@ -0,0 +1,52 @@
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 StyledTextFieldContainer = styled_1.default.div `
43
+ display: inline-flex;
44
+ flex-flow: column;
45
+ width: 100%;
46
+ max-width: ${({ $fullWidth }) => ($fullWidth ? '100%' : '16em')};
47
+ `;
48
+ const TextFieldContainer = (props, ref) => {
49
+ const { children, fullWidth, focused, error } = props, nativeProps = __rest(props, ["children", "fullWidth", "focused", "error"]);
50
+ return (React.createElement(StyledTextFieldContainer, Object.assign({}, nativeProps, { "$fullWidth": fullWidth, "$focused": focused, "$error": error, ref: ref }), children));
51
+ };
52
+ exports.default = React.forwardRef(TextFieldContainer);