@terraware/web-components 1.0.2 → 1.0.5

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 (327) hide show
  1. package/components/Autocomplete.d.ts +16 -0
  2. package/components/Autocomplete.d.ts.map +1 -0
  3. package/components/Autocomplete.js +53 -0
  4. package/components/Button/Button.d.ts +18 -0
  5. package/components/Button/Button.d.ts.map +1 -0
  6. package/components/Button/Button.js +42 -0
  7. package/components/Button/button.test.d.ts +2 -0
  8. package/components/Button/button.test.d.ts.map +1 -0
  9. package/components/Button/button.test.js +33 -0
  10. package/components/Button/styles.scss +443 -0
  11. package/components/Checkbox.d.ts +12 -0
  12. package/components/Checkbox.d.ts.map +1 -0
  13. package/components/Checkbox.js +33 -0
  14. package/components/DatePicker.d.ts +19 -0
  15. package/components/DatePicker.d.ts.map +1 -0
  16. package/components/DatePicker.js +45 -0
  17. package/components/DialogBox/DialogBox.d.ts +16 -0
  18. package/components/DialogBox/DialogBox.d.ts.map +1 -0
  19. package/components/DialogBox/DialogBox.js +85 -0
  20. package/components/DialogBox/styles.scss +138 -0
  21. package/components/Divisor.d.ts +6 -0
  22. package/components/Divisor.d.ts.map +1 -0
  23. package/components/Divisor.js +24 -0
  24. package/components/Dropdown.d.ts +15 -0
  25. package/components/Dropdown.d.ts.map +1 -0
  26. package/components/Dropdown.js +59 -0
  27. package/components/Icon/Icon.d.ts +11 -0
  28. package/components/Icon/Icon.d.ts.map +1 -0
  29. package/components/Icon/Icon.js +25 -0
  30. package/components/Icon/icons/assets/BlobbyGrayIconUploadToTheCloud.d.ts +8 -0
  31. package/components/Icon/icons/assets/BlobbyGrayIconUploadToTheCloud.d.ts.map +1 -0
  32. package/components/Icon/icons/assets/BlobbyGrayIconUploadToTheCloud.js +41 -0
  33. package/components/Icon/icons/assets/BlobbyIconHappy.d.ts +8 -0
  34. package/components/Icon/icons/assets/BlobbyIconHappy.d.ts.map +1 -0
  35. package/components/Icon/icons/assets/BlobbyIconHappy.js +165 -0
  36. package/components/Icon/icons/assets/BlobbyIconHeartMonitor.d.ts +8 -0
  37. package/components/Icon/icons/assets/BlobbyIconHeartMonitor.d.ts.map +1 -0
  38. package/components/Icon/icons/assets/BlobbyIconHeartMonitor.js +165 -0
  39. package/components/Icon/icons/assets/BlobbyIconLeaf.d.ts +8 -0
  40. package/components/Icon/icons/assets/BlobbyIconLeaf.d.ts.map +1 -0
  41. package/components/Icon/icons/assets/BlobbyIconLeaf.js +165 -0
  42. package/components/Icon/icons/assets/BlobbyIconLibrary.d.ts +8 -0
  43. package/components/Icon/icons/assets/BlobbyIconLibrary.d.ts.map +1 -0
  44. package/components/Icon/icons/assets/BlobbyIconLibrary.js +165 -0
  45. package/components/Icon/icons/assets/BlobbyIconOrganization.d.ts +8 -0
  46. package/components/Icon/icons/assets/BlobbyIconOrganization.d.ts.map +1 -0
  47. package/components/Icon/icons/assets/BlobbyIconOrganization.js +158 -0
  48. package/components/Icon/icons/assets/BlobbyIconPeople.d.ts +8 -0
  49. package/components/Icon/icons/assets/BlobbyIconPeople.d.ts.map +1 -0
  50. package/components/Icon/icons/assets/BlobbyIconPeople.js +158 -0
  51. package/components/Icon/icons/assets/BlobbyIconSeedBank.d.ts +8 -0
  52. package/components/Icon/icons/assets/BlobbyIconSeedBank.d.ts.map +1 -0
  53. package/components/Icon/icons/assets/BlobbyIconSeedBank.js +165 -0
  54. package/components/Icon/icons/assets/BlobbyIconWrench.d.ts +8 -0
  55. package/components/Icon/icons/assets/BlobbyIconWrench.d.ts.map +1 -0
  56. package/components/Icon/icons/assets/BlobbyIconWrench.js +165 -0
  57. package/components/Icon/icons/assets/Bug.d.ts +8 -0
  58. package/components/Icon/icons/assets/Bug.d.ts.map +1 -0
  59. package/components/Icon/icons/assets/Bug.js +36 -0
  60. package/components/Icon/icons/assets/Calendar.d.ts +8 -0
  61. package/components/Icon/icons/assets/Calendar.d.ts.map +1 -0
  62. package/components/Icon/icons/assets/Calendar.js +35 -0
  63. package/components/Icon/icons/assets/CaretDown.d.ts +8 -0
  64. package/components/Icon/icons/assets/CaretDown.d.ts.map +1 -0
  65. package/components/Icon/icons/assets/CaretDown.js +35 -0
  66. package/components/Icon/icons/assets/CaretLeft.d.ts +8 -0
  67. package/components/Icon/icons/assets/CaretLeft.d.ts.map +1 -0
  68. package/components/Icon/icons/assets/CaretLeft.js +35 -0
  69. package/components/Icon/icons/assets/CaretUp.d.ts +8 -0
  70. package/components/Icon/icons/assets/CaretUp.d.ts.map +1 -0
  71. package/components/Icon/icons/assets/CaretUp.js +35 -0
  72. package/components/Icon/icons/assets/ChevronDown.d.ts +8 -0
  73. package/components/Icon/icons/assets/ChevronDown.d.ts.map +1 -0
  74. package/components/Icon/icons/assets/ChevronDown.js +36 -0
  75. package/components/Icon/icons/assets/ChevronUp.d.ts +8 -0
  76. package/components/Icon/icons/assets/ChevronUp.d.ts.map +1 -0
  77. package/components/Icon/icons/assets/ChevronUp.js +35 -0
  78. package/components/Icon/icons/assets/Close.d.ts +8 -0
  79. package/components/Icon/icons/assets/Close.d.ts.map +1 -0
  80. package/components/Icon/icons/assets/Close.js +35 -0
  81. package/components/Icon/icons/assets/Critical.d.ts +8 -0
  82. package/components/Icon/icons/assets/Critical.d.ts.map +1 -0
  83. package/components/Icon/icons/assets/Critical.js +35 -0
  84. package/components/Icon/icons/assets/Edit.d.ts +8 -0
  85. package/components/Icon/icons/assets/Edit.d.ts.map +1 -0
  86. package/components/Icon/icons/assets/Edit.js +158 -0
  87. package/components/Icon/icons/assets/Error.d.ts +8 -0
  88. package/components/Icon/icons/assets/Error.d.ts.map +1 -0
  89. package/components/Icon/icons/assets/Error.js +35 -0
  90. package/components/Icon/icons/assets/Export.d.ts +8 -0
  91. package/components/Icon/icons/assets/Export.d.ts.map +1 -0
  92. package/components/Icon/icons/assets/Export.js +36 -0
  93. package/components/Icon/icons/assets/Filter.d.ts +8 -0
  94. package/components/Icon/icons/assets/Filter.d.ts.map +1 -0
  95. package/components/Icon/icons/assets/Filter.js +36 -0
  96. package/components/Icon/icons/assets/Folder.d.ts +8 -0
  97. package/components/Icon/icons/assets/Folder.d.ts.map +1 -0
  98. package/components/Icon/icons/assets/Folder.js +35 -0
  99. package/components/Icon/icons/assets/Help.d.ts +8 -0
  100. package/components/Icon/icons/assets/Help.d.ts.map +1 -0
  101. package/components/Icon/icons/assets/Help.js +35 -0
  102. package/components/Icon/icons/assets/Home.d.ts +8 -0
  103. package/components/Icon/icons/assets/Home.d.ts.map +1 -0
  104. package/components/Icon/icons/assets/Home.js +35 -0
  105. package/components/Icon/icons/assets/IconCancel.d.ts +8 -0
  106. package/components/Icon/icons/assets/IconCancel.d.ts.map +1 -0
  107. package/components/Icon/icons/assets/IconCancel.js +36 -0
  108. package/components/Icon/icons/assets/IconChargingBattery.d.ts +8 -0
  109. package/components/Icon/icons/assets/IconChargingBattery.d.ts.map +1 -0
  110. package/components/Icon/icons/assets/IconChargingBattery.js +36 -0
  111. package/components/Icon/icons/assets/IconCheckmark.d.ts +8 -0
  112. package/components/Icon/icons/assets/IconCheckmark.d.ts.map +1 -0
  113. package/components/Icon/icons/assets/IconCheckmark.js +36 -0
  114. package/components/Icon/icons/assets/IconDashboard.d.ts +8 -0
  115. package/components/Icon/icons/assets/IconDashboard.d.ts.map +1 -0
  116. package/components/Icon/icons/assets/IconDashboard.js +36 -0
  117. package/components/Icon/icons/assets/IconHeartMonitor.d.ts +8 -0
  118. package/components/Icon/icons/assets/IconHeartMonitor.d.ts.map +1 -0
  119. package/components/Icon/icons/assets/IconHeartMonitor.js +35 -0
  120. package/components/Icon/icons/assets/IconMail.d.ts +8 -0
  121. package/components/Icon/icons/assets/IconMail.d.ts.map +1 -0
  122. package/components/Icon/icons/assets/IconMail.js +36 -0
  123. package/components/Icon/icons/assets/IconManager.d.ts +8 -0
  124. package/components/Icon/icons/assets/IconManager.d.ts.map +1 -0
  125. package/components/Icon/icons/assets/IconManager.js +36 -0
  126. package/components/Icon/icons/assets/IconMenu.d.ts +8 -0
  127. package/components/Icon/icons/assets/IconMenu.d.ts.map +1 -0
  128. package/components/Icon/icons/assets/IconMenu.js +36 -0
  129. package/components/Icon/icons/assets/IconOrg.d.ts +8 -0
  130. package/components/Icon/icons/assets/IconOrg.d.ts.map +1 -0
  131. package/components/Icon/icons/assets/IconOrg.js +36 -0
  132. package/components/Icon/icons/assets/IconSeedBank.d.ts +8 -0
  133. package/components/Icon/icons/assets/IconSeedBank.d.ts.map +1 -0
  134. package/components/Icon/icons/assets/IconSeedBank.js +35 -0
  135. package/components/Icon/icons/assets/IconWifi.d.ts +8 -0
  136. package/components/Icon/icons/assets/IconWifi.d.ts.map +1 -0
  137. package/components/Icon/icons/assets/IconWifi.js +36 -0
  138. package/components/Icon/icons/assets/Info.d.ts +8 -0
  139. package/components/Icon/icons/assets/Info.d.ts.map +1 -0
  140. package/components/Icon/icons/assets/Info.js +35 -0
  141. package/components/Icon/icons/assets/Key.d.ts +8 -0
  142. package/components/Icon/icons/assets/Key.d.ts.map +1 -0
  143. package/components/Icon/icons/assets/Key.js +35 -0
  144. package/components/Icon/icons/assets/Leaf.d.ts +8 -0
  145. package/components/Icon/icons/assets/Leaf.d.ts.map +1 -0
  146. package/components/Icon/icons/assets/Leaf.js +35 -0
  147. package/components/Icon/icons/assets/Lock.d.ts +8 -0
  148. package/components/Icon/icons/assets/Lock.d.ts.map +1 -0
  149. package/components/Icon/icons/assets/Lock.js +34 -0
  150. package/components/Icon/icons/assets/MenuVertical.d.ts +8 -0
  151. package/components/Icon/icons/assets/MenuVertical.d.ts.map +1 -0
  152. package/components/Icon/icons/assets/MenuVertical.js +36 -0
  153. package/components/Icon/icons/assets/Notification.d.ts +8 -0
  154. package/components/Icon/icons/assets/Notification.d.ts.map +1 -0
  155. package/components/Icon/icons/assets/Notification.js +35 -0
  156. package/components/Icon/icons/assets/Person.d.ts +8 -0
  157. package/components/Icon/icons/assets/Person.d.ts.map +1 -0
  158. package/components/Icon/icons/assets/Person.js +35 -0
  159. package/components/Icon/icons/assets/Plus.d.ts +8 -0
  160. package/components/Icon/icons/assets/Plus.d.ts.map +1 -0
  161. package/components/Icon/icons/assets/Plus.js +35 -0
  162. package/components/Icon/icons/assets/RestorationSite.d.ts +8 -0
  163. package/components/Icon/icons/assets/RestorationSite.d.ts.map +1 -0
  164. package/components/Icon/icons/assets/RestorationSite.js +35 -0
  165. package/components/Icon/icons/assets/Search.d.ts +8 -0
  166. package/components/Icon/icons/assets/Search.d.ts.map +1 -0
  167. package/components/Icon/icons/assets/Search.js +35 -0
  168. package/components/Icon/icons/assets/Seeds.d.ts +8 -0
  169. package/components/Icon/icons/assets/Seeds.d.ts.map +1 -0
  170. package/components/Icon/icons/assets/Seeds.js +35 -0
  171. package/components/Icon/icons/assets/Site.d.ts +8 -0
  172. package/components/Icon/icons/assets/Site.d.ts.map +1 -0
  173. package/components/Icon/icons/assets/Site.js +35 -0
  174. package/components/Icon/icons/assets/Sparkles.d.ts +8 -0
  175. package/components/Icon/icons/assets/Sparkles.d.ts.map +1 -0
  176. package/components/Icon/icons/assets/Sparkles.js +36 -0
  177. package/components/Icon/icons/assets/Species.d.ts +8 -0
  178. package/components/Icon/icons/assets/Species.d.ts.map +1 -0
  179. package/components/Icon/icons/assets/Species.js +35 -0
  180. package/components/Icon/icons/assets/Species2.d.ts +8 -0
  181. package/components/Icon/icons/assets/Species2.d.ts.map +1 -0
  182. package/components/Icon/icons/assets/Species2.js +158 -0
  183. package/components/Icon/icons/assets/Spinner.d.ts +8 -0
  184. package/components/Icon/icons/assets/Spinner.d.ts.map +1 -0
  185. package/components/Icon/icons/assets/Spinner.js +61 -0
  186. package/components/Icon/icons/assets/Success.d.ts +8 -0
  187. package/components/Icon/icons/assets/Success.d.ts.map +1 -0
  188. package/components/Icon/icons/assets/Success.js +35 -0
  189. package/components/Icon/icons/assets/Touchscreen.d.ts +8 -0
  190. package/components/Icon/icons/assets/Touchscreen.d.ts.map +1 -0
  191. package/components/Icon/icons/assets/Touchscreen.js +36 -0
  192. package/components/Icon/icons/assets/UploadCloud.d.ts +8 -0
  193. package/components/Icon/icons/assets/UploadCloud.d.ts.map +1 -0
  194. package/components/Icon/icons/assets/UploadCloud.js +158 -0
  195. package/components/Icon/icons/assets/Warning.d.ts +8 -0
  196. package/components/Icon/icons/assets/Warning.d.ts.map +1 -0
  197. package/components/Icon/icons/assets/Warning.js +35 -0
  198. package/components/Icon/icons/assets/index.d.ts +57 -0
  199. package/components/Icon/icons/assets/index.d.ts.map +1 -0
  200. package/components/Icon/icons/assets/index.js +455 -0
  201. package/components/Icon/icons/index.d.ts +8 -0
  202. package/components/Icon/icons/index.d.ts.map +1 -0
  203. package/components/Icon/icons/index.js +179 -0
  204. package/components/Icon/styles.scss +43 -0
  205. package/components/Navbar/NavFooter.d.ts +7 -0
  206. package/components/Navbar/NavFooter.d.ts.map +1 -0
  207. package/components/Navbar/NavFooter.js +19 -0
  208. package/components/Navbar/NavItem.d.ts +13 -0
  209. package/components/Navbar/NavItem.d.ts.map +1 -0
  210. package/components/Navbar/NavItem.js +42 -0
  211. package/components/Navbar/NavSection.d.ts +7 -0
  212. package/components/Navbar/NavSection.d.ts.map +1 -0
  213. package/components/Navbar/NavSection.js +23 -0
  214. package/components/Navbar/Navbar.d.ts +8 -0
  215. package/components/Navbar/Navbar.d.ts.map +1 -0
  216. package/components/Navbar/Navbar.js +64 -0
  217. package/components/Navbar/logo.svg +25 -0
  218. package/components/Navbar/styles.scss +159 -0
  219. package/components/Note.d.ts +6 -0
  220. package/components/Note.d.ts.map +1 -0
  221. package/components/Note.js +35 -0
  222. package/components/ProgressCircle/ProgressCircle.d.ts +10 -0
  223. package/components/ProgressCircle/ProgressCircle.d.ts.map +1 -0
  224. package/components/ProgressCircle/ProgressCircle.js +37 -0
  225. package/components/ProgressCircle/styles.scss +84 -0
  226. package/components/RadioButton.d.ts +10 -0
  227. package/components/RadioButton.d.ts.map +1 -0
  228. package/components/RadioButton.js +31 -0
  229. package/components/Select/Select.d.ts +23 -0
  230. package/components/Select/Select.d.ts.map +1 -0
  231. package/components/Select/Select.js +248 -0
  232. package/components/Select/styles.scss +282 -0
  233. package/components/Size.d.ts +2 -0
  234. package/components/Size.d.ts.map +1 -0
  235. package/components/Size.js +5 -0
  236. package/components/SummaryBox.d.ts +11 -0
  237. package/components/SummaryBox.d.ts.map +1 -0
  238. package/components/SummaryBox.js +79 -0
  239. package/components/Textfield/Textfield.d.ts +27 -0
  240. package/components/Textfield/Textfield.d.ts.map +1 -0
  241. package/components/Textfield/Textfield.js +123 -0
  242. package/components/Textfield/styles.scss +216 -0
  243. package/components/table/EnhancedTableToolbar.d.ts +9 -0
  244. package/components/table/EnhancedTableToolbar.d.ts.map +1 -0
  245. package/components/table/EnhancedTableToolbar.js +53 -0
  246. package/components/table/TableCellRenderer.d.ts +26 -0
  247. package/components/table/TableCellRenderer.d.ts.map +1 -0
  248. package/components/table/TableCellRenderer.js +166 -0
  249. package/components/table/TableHeader.d.ts +16 -0
  250. package/components/table/TableHeader.d.ts.map +1 -0
  251. package/components/table/TableHeader.js +68 -0
  252. package/components/table/TableHeaderItem.d.ts +17 -0
  253. package/components/table/TableHeaderItem.d.ts.map +1 -0
  254. package/components/table/TableHeaderItem.js +77 -0
  255. package/components/table/index.d.ts +40 -0
  256. package/components/table/index.d.ts.map +1 -0
  257. package/components/table/index.js +322 -0
  258. package/components/table/sort.d.ts +9 -0
  259. package/components/table/sort.d.ts.map +1 -0
  260. package/components/table/sort.js +51 -0
  261. package/components/table/types.d.ts +34 -0
  262. package/components/table/types.d.ts.map +1 -0
  263. package/components/table/types.js +5 -0
  264. package/fonts/Inter.ttf +0 -0
  265. package/index.css +13 -0
  266. package/index.d.ts +26 -0
  267. package/index.d.ts.map +1 -0
  268. package/license-report.html +50 -0
  269. package/package.json +1 -77
  270. package/setupTests.d.ts +2 -0
  271. package/setupTests.d.ts.map +1 -0
  272. package/setupTests.js +5 -0
  273. package/stories/Autocomplete.stories.d.ts +9 -0
  274. package/stories/Autocomplete.stories.d.ts.map +1 -0
  275. package/stories/Button.stories.d.ts +35 -0
  276. package/stories/Button.stories.d.ts.map +1 -0
  277. package/stories/Checkbox.stories.d.ts +9 -0
  278. package/stories/Checkbox.stories.d.ts.map +1 -0
  279. package/stories/DatePicker.stories.d.ts +11 -0
  280. package/stories/DatePicker.stories.d.ts.map +1 -0
  281. package/stories/DialogBox.stories.d.ts +14 -0
  282. package/stories/DialogBox.stories.d.ts.map +1 -0
  283. package/stories/Divisor.stories.d.ts +20 -0
  284. package/stories/Divisor.stories.d.ts.map +1 -0
  285. package/stories/Dropdown.stories.d.ts +9 -0
  286. package/stories/Dropdown.stories.d.ts.map +1 -0
  287. package/stories/Icon.stories.d.ts +9 -0
  288. package/stories/Icon.stories.d.ts.map +1 -0
  289. package/stories/Navbar.stories.d.ts +10 -0
  290. package/stories/Navbar.stories.d.ts.map +1 -0
  291. package/stories/Note.stories.d.ts +9 -0
  292. package/stories/Note.stories.d.ts.map +1 -0
  293. package/stories/ProgressCircle.stories.d.ts +9 -0
  294. package/stories/ProgressCircle.stories.d.ts.map +1 -0
  295. package/stories/RadioButton.stories.d.ts +9 -0
  296. package/stories/RadioButton.stories.d.ts.map +1 -0
  297. package/stories/Select.stories.d.ts +9 -0
  298. package/stories/Select.stories.d.ts.map +1 -0
  299. package/stories/SummaryBox.stories.d.ts +11 -0
  300. package/stories/SummaryBox.stories.d.ts.map +1 -0
  301. package/stories/Table.stories.d.ts +12 -0
  302. package/stories/Table.stories.d.ts.map +1 -0
  303. package/stories/TextfieldNew.stories.d.ts +29 -0
  304. package/stories/TextfieldNew.stories.d.ts.map +1 -0
  305. package/style-dictionary-dist/button_variables.scss +299 -0
  306. package/style-dictionary-dist/dialogBox_variables.scss +251 -0
  307. package/style-dictionary-dist/navbar_variables.scss +257 -0
  308. package/style-dictionary-dist/progressCircle_variables.scss +251 -0
  309. package/style-dictionary-dist/textfield_variables.scss +297 -0
  310. package/theme.d.ts +60 -0
  311. package/theme.d.ts.map +1 -0
  312. package/theme.js +76 -0
  313. package/utils/date.d.ts +3 -0
  314. package/utils/date.d.ts.map +1 -0
  315. package/utils/date.js +13 -0
  316. package/utils/index.d.ts +6 -0
  317. package/utils/index.d.ts.map +1 -0
  318. package/utils/index.js +39 -0
  319. package/utils/preventDefaultEvent.d.ts +4 -0
  320. package/utils/preventDefaultEvent.d.ts.map +1 -0
  321. package/utils/preventDefaultEvent.js +13 -0
  322. package/utils/text.d.ts +3 -0
  323. package/utils/text.d.ts.map +1 -0
  324. package/utils/text.js +13 -0
  325. package/utils/useDeviceInfo.d.ts +42 -0
  326. package/utils/useDeviceInfo.d.ts.map +1 -0
  327. package/utils/useDeviceInfo.js +87 -0
@@ -0,0 +1,282 @@
1
+ @import '../../style-dictionary-dist/textfield_variables.scss';
2
+
3
+ @font-face {
4
+ font-family: 'Inter';
5
+ src: local('Inter'), url(../../fonts/Inter.ttf) format('truetype');
6
+ }
7
+
8
+ .select {
9
+ display: flex;
10
+ flex-flow: row wrap;
11
+
12
+ .textfield-container {
13
+ position: relative;
14
+ height: 43px;
15
+ width: 228px;
16
+
17
+ &--fullWidth {
18
+ width: 100%;
19
+ }
20
+ }
21
+ .textfield-label {
22
+ font-family: $tw-fnt-frm-fld-label-font-family;
23
+ font-size: $tw-fnt-frm-fld-label-font-size;
24
+ font-weight: $tw-fnt-frm-fld-label-font-weight;
25
+ line-height: $tw-fnt-frm-fld-label-line-height;
26
+ color: $tw-clr-frm-fld-label;
27
+ margin-bottom: $tw-spc-base-xx-small;
28
+ display: block;
29
+ width: 100%;
30
+ max-width: 100%;
31
+ }
32
+
33
+ .textfield-help-text {
34
+ font-family: $tw-fnt-frm-fld-help-text-font-family;
35
+ font-size: $tw-fnt-frm-fld-help-text-font-size;
36
+ font-weight: $tw-fnt-frm-fld-help-text-font-weight;
37
+ line-height: $tw-fnt-frm-fld-help-text-line-height;
38
+ color: $tw-clr-frm-fld-help-text;
39
+ display: block;
40
+ width: 100%;
41
+ max-width: 100%;
42
+ margin-top: $tw-spc-base-xx-small;
43
+ }
44
+
45
+ textarea {
46
+ font-family: $tw-fnt-frm-fld-text-value-font-family;
47
+ font-size: $tw-fnt-frm-fld-text-value-font-size;
48
+ font-weight: $tw-fnt-frm-fld-text-value-font-weight;
49
+ line-height: $tw-fnt-frm-fld-text-value-line-height;
50
+ color: $tw-clr-frm-fld-value;
51
+ padding-top: 0;
52
+ padding-bottom: 0;
53
+ &::placeholder {
54
+ font-family: $tw-fnt-frm-fld-text-placeholder-font-family;
55
+ font-size: $tw-fnt-frm-fld-text-placeholder-font-size;
56
+ font-weight: $tw-fnt-frm-fld-text-placeholder-font-weight;
57
+ line-height: $tw-fnt-frm-fld-text-placeholder-line-height;
58
+ color: $tw-clr-base-gray-300;
59
+ }
60
+ &:focus-visible {
61
+ outline: none;
62
+ }
63
+ }
64
+
65
+ .textfield-value {
66
+ background-color: $tw-clr-frm-fld-text-input-fill;
67
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke;
68
+ padding: $tw-spc-base-x-small;
69
+ border-radius: $tw-rds-frm-fld-text-input;
70
+ border-width: $tw-sz-frm-fld-text-input-stroke;
71
+ display: flex;
72
+
73
+ &:hover {
74
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke-hover;
75
+ }
76
+
77
+ &:active {
78
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke-hover;
79
+ outline: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke-hover;
80
+ }
81
+
82
+ input {
83
+ border: none;
84
+ width: 100%;
85
+ font-family: $tw-fnt-frm-fld-text-value-font-family;
86
+ font-size: $tw-fnt-frm-fld-text-value-font-size;
87
+ font-weight: $tw-fnt-frm-fld-text-value-font-weight;
88
+ line-height: $tw-fnt-frm-fld-text-value-line-height;
89
+ color: $tw-clr-frm-fld-value;
90
+ background: transparent;
91
+ padding-top: 0;
92
+ padding-bottom: 0;
93
+ &::placeholder {
94
+ font-family: $tw-fnt-frm-fld-text-placeholder-font-family;
95
+ font-size: $tw-fnt-frm-fld-text-placeholder-font-size;
96
+ font-weight: $tw-fnt-frm-fld-text-placeholder-font-weight;
97
+ line-height: $tw-fnt-frm-fld-text-placeholder-line-height;
98
+ color: $tw-clr-base-gray-300;
99
+ }
100
+ &:focus-visible {
101
+ outline: none;
102
+ }
103
+ }
104
+
105
+ &--display {
106
+ font-family: $tw-fnt-frm-fld-text-value-font-family;
107
+ font-size: $tw-fnt-frm-fld-text-value-font-size;
108
+ font-weight: $tw-fnt-frm-fld-text-value-font-weight;
109
+ line-height: $tw-fnt-frm-fld-text-value-line-height;
110
+ padding: 0;
111
+ margin: 0;
112
+ }
113
+
114
+ &--disabled {
115
+ opacity: $tw-opcty-semantic-off;
116
+ pointer-events: none;
117
+ &:hover {
118
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke;
119
+ }
120
+
121
+ &:active {
122
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke;
123
+ }
124
+ }
125
+
126
+ &--icon-right {
127
+ width: $tw-fnt-frm-fld-text-value-line-height;
128
+ height: $tw-fnt-frm-fld-text-value-line-height;
129
+ fill: $tw-clr-frm-fld-value;
130
+ }
131
+
132
+ &--icon-left {
133
+ width: $tw-fnt-frm-fld-text-value-line-height;
134
+ height: $tw-fnt-frm-fld-text-value-line-height;
135
+ fill: $tw-clr-frm-fld-value;
136
+ margin-right: $tw-spc-base-x-small;
137
+ }
138
+
139
+ &--error {
140
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke-error;
141
+ background-color: $tw-clr-frm-fld-text-input-fill-error;
142
+
143
+ &:hover {
144
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke-error;
145
+ }
146
+
147
+ &:active {
148
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke-error;
149
+ outline: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke-error;
150
+ }
151
+ }
152
+
153
+ &--warning {
154
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke-warning;
155
+ background-color: $tw-clr-frm-fld-text-input-fill-warning;
156
+
157
+ &:hover {
158
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke-warning;
159
+ }
160
+
161
+ &:active {
162
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke-warning;
163
+ outline: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke-warning;
164
+ }
165
+ }
166
+
167
+ &--readonly {
168
+ &:hover {
169
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke;
170
+ }
171
+
172
+ &:active {
173
+ border: $tw-sz-frm-fld-text-input-stroke solid $tw-clr-frm-fld-text-input-stroke;
174
+ }
175
+ }
176
+
177
+ &--readonly input {
178
+ cursor: auto;
179
+ }
180
+ }
181
+
182
+ .textfield-error-text {
183
+ font-family: $tw-fnt-frm-fld-error-text-font-family;
184
+ font-size: $tw-fnt-frm-fld-error-text-font-size;
185
+ font-weight: $tw-fnt-frm-fld-error-text-font-weight;
186
+ line-height: $tw-fnt-frm-fld-error-text-line-height;
187
+ color: $tw-clr-frm-fld-error-text;
188
+ display: block;
189
+ width: 100%;
190
+ max-width: 100%;
191
+
192
+ &--icon {
193
+ fill: $tw-clr-frm-fld-error-text;
194
+ width: $tw-fnt-frm-fld-error-text-line-height;
195
+ height: $tw-fnt-frm-fld-error-text-line-height;
196
+ margin-right: $tw-spc-base-x-small;
197
+ }
198
+ }
199
+
200
+ .textfield-warning-text {
201
+ font-family: $tw-fnt-frm-fld-warning-text-font-family;
202
+ font-size: $tw-fnt-frm-fld-warning-text-font-size;
203
+ font-weight: $tw-fnt-frm-fld-warning-text-font-weight;
204
+ line-height: $tw-fnt-frm-fld-warning-text-line-height;
205
+ color: $tw-clr-frm-fld-warning-text;
206
+ display: block;
207
+ width: 100%;
208
+ max-width: 100%;
209
+
210
+ &--icon {
211
+ fill: $tw-clr-frm-fld-warning-text;
212
+ width: $tw-fnt-frm-fld-error-text-line-height;
213
+ height: $tw-fnt-frm-fld-error-text-line-height;
214
+ margin-right: $tw-spc-base-x-small;
215
+ }
216
+ }
217
+
218
+ .textfield-label-container {
219
+ position: relative;
220
+ display: flex;
221
+ width: 100%;
222
+ margin-top: $tw-spc-base-xx-small;
223
+ }
224
+
225
+ .options-container {
226
+ z-index: 3;
227
+ width: 100%;
228
+ position: absolute;
229
+ top: 42px;
230
+ list-style-type: none;
231
+ padding: $tw-spc-base-x-small 0;
232
+ background: $tw-clr-frm-fld-select-menu-fill;
233
+ border: 1px solid $tw-clr-frm-fld-select-menu-stroke;
234
+ margin: 0;
235
+ margin-top: $tw-spc-base-xx-small;
236
+ border-radius: $tw-rds-frm-fld-text-input;
237
+ max-height: 140px;
238
+ overflow: scroll;
239
+
240
+ &.fixed-menu {
241
+ position: fixed;
242
+ z-index: 11;
243
+ }
244
+
245
+ .select-value {
246
+ font-family: $tw-fnt-frm-fld-select-value-font-family;
247
+ font-size: $tw-fnt-frm-fld-select-value-font-size;
248
+ font-weight: $tw-fnt-frm-fld-select-value-font-weight;
249
+ line-height: $tw-fnt-frm-fld-select-value-line-height;
250
+ padding: $tw-spc-base-x-small $tw-spc-base-small;
251
+ cursor: pointer;
252
+
253
+ &:hover {
254
+ background-color: $tw-clr-frm-fld-select-menu-item-fill-hover;
255
+ color: $tw-clr-frm-fld-value;
256
+ }
257
+
258
+ &:active {
259
+ background-color: $tw-clr-frm-fld-select-menu-item-fill-active;
260
+ color: $tw-clr-frm-fld-value;
261
+ }
262
+
263
+ &--selected {
264
+ background-color: $tw-clr-frm-fld-select-menu-item-fill-selected;
265
+ color: $tw-clr-frm-fld-select-value-selected;
266
+ }
267
+
268
+ &--disabled {
269
+ opacity: $tw-opcty-semantic-off;
270
+ }
271
+ }
272
+ }
273
+
274
+ .scroll-block {
275
+ position: fixed;
276
+ top: 0;
277
+ bottom: 0;
278
+ left: 0;
279
+ right: 0;
280
+ z-index: 10;
281
+ }
282
+ }
@@ -0,0 +1,2 @@
1
+ export declare type Size = 'small' | 'medium' | 'large' | 'xlarge';
2
+ //# sourceMappingURL=Size.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Size.d.ts","sourceRoot":"","sources":["../../src/components/Size.ts"],"names":[],"mappings":"AAAA,oBAAY,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ id?: string;
4
+ title: string;
5
+ value: number | string;
6
+ variant?: 'default' | 'available' | 'zero' | 'full';
7
+ icon?: boolean;
8
+ onIconClick?: () => void;
9
+ }
10
+ export default function SummaryBox({ title, value, variant, id, icon, onIconClick }: Props): JSX.Element;
11
+ //# sourceMappingURL=SummaryBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SummaryBox.d.ts","sourceRoot":"","sources":["../../src/components/SummaryBox.tsx"],"names":[],"mappings":";AAyCA,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;IACpD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAmB,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAyBnH"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = SummaryBox;
9
+
10
+ var _iconsMaterial = require("@mui/icons-material");
11
+
12
+ var _material = require("@mui/material");
13
+
14
+ var _styles = require("@mui/styles");
15
+
16
+ var _react = _interopRequireDefault(require("react"));
17
+
18
+ var useStyles = (0, _styles.makeStyles)(function (theme) {
19
+ return {
20
+ bold: {
21
+ fontWeight: theme.typography.fontWeightBold,
22
+ whiteSpace: 'pre-line'
23
+ },
24
+ summaryDefault: {
25
+ position: 'relative',
26
+ borderRadius: 8,
27
+ backgroundColor: theme.palette.neutral[200],
28
+ padding: theme.spacing(2)
29
+ },
30
+ summaryAvailable: {
31
+ borderRadius: 8,
32
+ backgroundColor: theme.palette.neutral[700],
33
+ padding: theme.spacing(2),
34
+ color: theme.palette.common.white
35
+ },
36
+ summaryZero: {
37
+ borderRadius: 8,
38
+ backgroundColor: theme.palette.state[5],
39
+ padding: theme.spacing(2),
40
+ color: theme.palette.common.white
41
+ },
42
+ full: {
43
+ borderRadius: 8,
44
+ backgroundColor: theme.palette.neutral[200],
45
+ padding: theme.spacing(2),
46
+ height: '100%',
47
+ boxSizing: 'border-box'
48
+ },
49
+ infoIcon: {
50
+ position: 'absolute',
51
+ right: theme.spacing(2)
52
+ }
53
+ };
54
+ });
55
+
56
+ function SummaryBox(_ref) {
57
+ var title = _ref.title,
58
+ value = _ref.value,
59
+ _ref$variant = _ref.variant,
60
+ variant = _ref$variant === void 0 ? 'default' : _ref$variant,
61
+ id = _ref.id,
62
+ icon = _ref.icon,
63
+ onIconClick = _ref.onIconClick;
64
+ var classes = useStyles();
65
+ var style = variant === 'default' ? classes.summaryDefault : variant === 'available' ? classes.summaryAvailable : variant === 'full' ? classes.full : classes.summaryZero;
66
+ return /*#__PURE__*/_react.default.createElement(_material.Box, {
67
+ className: style,
68
+ id: id
69
+ }, icon && /*#__PURE__*/_react.default.createElement(_material.IconButton, {
70
+ className: classes.infoIcon,
71
+ onClick: onIconClick
72
+ }, /*#__PURE__*/_react.default.createElement(_iconsMaterial.Info, null)), /*#__PURE__*/_react.default.createElement(_material.Typography, {
73
+ component: "p"
74
+ }, title), /*#__PURE__*/_react.default.createElement(_material.Typography, {
75
+ component: "p",
76
+ variant: "h6",
77
+ className: classes.bold
78
+ }, value));
79
+ }
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import { IconName } from '../Icon/icons';
3
+ import './styles.scss';
4
+ declare type TextfieldType = 'text' | 'textarea';
5
+ declare type Handler = (id: string, value: unknown) => void;
6
+ export interface Props {
7
+ onChange?: Handler;
8
+ label: string;
9
+ disabled?: boolean;
10
+ iconLeft?: IconName;
11
+ iconRight?: IconName;
12
+ id: string;
13
+ className?: string;
14
+ helperText?: string;
15
+ placeholder?: string;
16
+ errorText?: string;
17
+ warningText?: string;
18
+ value?: string;
19
+ readonly?: boolean;
20
+ display?: boolean;
21
+ type: TextfieldType;
22
+ onKeyDown?: (key: string) => void;
23
+ onClickRightIcon?: () => void;
24
+ }
25
+ export default function TextField(props: Props): JSX.Element;
26
+ export {};
27
+ //# sourceMappingURL=Textfield.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Textfield.d.ts","sourceRoot":"","sources":["../../../src/components/Textfield/Textfield.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,eAAe,CAAC;AAGvB,aAAK,aAAa,GAAG,MAAM,GAAG,UAAU,CAAC;AAEzC,aAAK,OAAO,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;AAEpD,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA4G3D"}
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = TextField;
9
+
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _Icon = _interopRequireDefault(require("../Icon/Icon"));
15
+
16
+ require("./styles.scss");
17
+
18
+ var _utils = require("../../utils");
19
+
20
+ function TextField(props) {
21
+ var value = props.value,
22
+ onChange = props.onChange,
23
+ label = props.label,
24
+ disabled = props.disabled,
25
+ iconLeft = props.iconLeft,
26
+ iconRight = props.iconRight,
27
+ id = props.id,
28
+ className = props.className,
29
+ helperText = props.helperText,
30
+ placeholder = props.placeholder,
31
+ errorText = props.errorText,
32
+ warningText = props.warningText,
33
+ readonly = props.readonly,
34
+ display = props.display,
35
+ type = props.type,
36
+ onKeyDown = props.onKeyDown,
37
+ onClickRightIcon = props.onClickRightIcon;
38
+ var textfieldClass = (0, _classnames.default)({
39
+ 'textfield-value': true,
40
+ 'textfield-value--disabled': disabled,
41
+ 'textfield-value--error': !!errorText,
42
+ 'textfield-value--warning': !!warningText,
43
+ 'textfield-value--readonly': readonly
44
+ });
45
+
46
+ var textfieldOnChange = function textfieldOnChange(event) {
47
+ var textValue = event.target.value;
48
+
49
+ if ((0, _utils.isWhitespaces)(textValue)) {
50
+ return;
51
+ }
52
+
53
+ if (onChange) {
54
+ onChange(id, textValue);
55
+ }
56
+ };
57
+
58
+ var onKeyDownHandler = function onKeyDownHandler(e) {
59
+ if (onKeyDown) {
60
+ onKeyDown(e.key);
61
+ }
62
+ };
63
+
64
+ var renderRightIcon = function renderRightIcon() {
65
+ if (iconRight === 'cancel' && !value) {
66
+ return null;
67
+ }
68
+
69
+ return /*#__PURE__*/_react.default.createElement("button", {
70
+ onClick: onClickRightIcon,
71
+ className: "textfield-value--icon-container"
72
+ }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
73
+ name: iconRight,
74
+ className: "textfield-value--icon-right"
75
+ }));
76
+ };
77
+
78
+ return /*#__PURE__*/_react.default.createElement("div", {
79
+ className: "textfield ".concat(className)
80
+ }, /*#__PURE__*/_react.default.createElement("label", {
81
+ htmlFor: id,
82
+ className: "textfield-label"
83
+ }, label), !display && (type === 'text' ? /*#__PURE__*/_react.default.createElement("div", {
84
+ id: id,
85
+ className: textfieldClass
86
+ }, iconLeft && /*#__PURE__*/_react.default.createElement(_Icon.default, {
87
+ name: iconLeft,
88
+ className: "textfield-value--icon-left"
89
+ }), /*#__PURE__*/_react.default.createElement("input", {
90
+ value: value || '',
91
+ disabled: readonly || disabled,
92
+ placeholder: placeholder,
93
+ onChange: textfieldOnChange,
94
+ onKeyDown: onKeyDownHandler
95
+ }), iconRight ? renderRightIcon() : null) : /*#__PURE__*/_react.default.createElement("textarea", {
96
+ className: textfieldClass,
97
+ value: value,
98
+ disabled: readonly || disabled,
99
+ placeholder: placeholder,
100
+ onChange: textfieldOnChange
101
+ })), display && /*#__PURE__*/_react.default.createElement("p", {
102
+ className: "textfield-value--display"
103
+ }, value), errorText && /*#__PURE__*/_react.default.createElement("div", {
104
+ className: "textfield-label-container"
105
+ }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
106
+ name: "error",
107
+ className: "textfield-error-text--icon"
108
+ }), /*#__PURE__*/_react.default.createElement("label", {
109
+ htmlFor: id,
110
+ className: "textfield-error-text"
111
+ }, errorText)), warningText && /*#__PURE__*/_react.default.createElement("div", {
112
+ className: "textfield-label-container"
113
+ }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
114
+ name: "warning",
115
+ className: "textfield-warning-text--icon"
116
+ }), /*#__PURE__*/_react.default.createElement("label", {
117
+ htmlFor: id,
118
+ className: "textfield-warning-text"
119
+ }, warningText)), helperText && /*#__PURE__*/_react.default.createElement("label", {
120
+ htmlFor: id,
121
+ className: "textfield-help-text"
122
+ }, helperText));
123
+ }