@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,10 @@
1
+ /// <reference types="react" />
2
+ import './styles.scss';
3
+ export interface Props {
4
+ size?: 'small' | 'medium' | 'large';
5
+ determinate: true | false;
6
+ value?: number;
7
+ hideValue?: boolean;
8
+ }
9
+ export default function ProgressCircle(props: Props): JSX.Element;
10
+ //# sourceMappingURL=ProgressCircle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressCircle.d.ts","sourceRoot":"","sources":["../../../src/components/ProgressCircle/ProgressCircle.tsx"],"names":[],"mappings":";AAEA,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,KAAK;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,WAAW,EAAE,IAAI,GAAG,KAAK,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAgBhE"}
@@ -0,0 +1,37 @@
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 = ProgressCircle;
9
+
10
+ var _material = require("@mui/material");
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ require("./styles.scss");
15
+
16
+ function ProgressCircle(props) {
17
+ var _props$size = props.size,
18
+ size = _props$size === void 0 ? 'small' : _props$size,
19
+ determinate = props.determinate,
20
+ value = props.value,
21
+ hideValue = props.hideValue;
22
+ return /*#__PURE__*/_react.default.createElement(_material.Box, {
23
+ className: "circle-container"
24
+ }, /*#__PURE__*/_react.default.createElement(_material.CircularProgress, {
25
+ variant: "determinate",
26
+ value: 100,
27
+ className: "circle-track circle-track--".concat(size)
28
+ }), /*#__PURE__*/_react.default.createElement(_material.Box, {
29
+ className: "label-container"
30
+ }, value && !hideValue && /*#__PURE__*/_react.default.createElement("p", {
31
+ className: "progress-circle-label--{size}"
32
+ }, "".concat(Math.round(value), "%"))), /*#__PURE__*/_react.default.createElement(_material.CircularProgress, {
33
+ value: value,
34
+ variant: determinate ? 'determinate' : 'indeterminate',
35
+ className: "circle-fill circle-track--".concat(size)
36
+ }));
37
+ }
@@ -0,0 +1,84 @@
1
+ @import '../../style-dictionary-dist/progressCircle_variables.scss';
2
+
3
+ .circle-container {
4
+ position: relative;
5
+ display: inline-flex;
6
+ }
7
+
8
+ .circle-fill {
9
+ position: absolute;
10
+ left: 0;
11
+ color: $tw-clr-base-semantic-productive;
12
+ }
13
+
14
+ .circle-track {
15
+ color: $tw-clr-base-semantic-productive-bg !important;
16
+ &--small {
17
+ width: $tw-spc-base-x-large !important;
18
+ height: $tw-spc-base-x-large !important;
19
+
20
+ & svg {
21
+ & circle {
22
+ stroke-width: 3.67;
23
+ r: 20;
24
+ }
25
+ }
26
+ }
27
+
28
+ &--medium {
29
+ width: calc(#{$tw-spc-base-x-large} * 2) !important;
30
+ height: calc(#{$tw-spc-base-x-large} * 2) !important;
31
+ & svg {
32
+ & circle {
33
+ stroke-width: 3.67;
34
+ r: 18;
35
+ }
36
+ }
37
+ }
38
+
39
+ &--large {
40
+ width: calc(#{$tw-spc-base-x-large} * 4) !important;
41
+ height: calc(#{$tw-spc-base-x-large} * 4) !important;
42
+ & svg {
43
+ & circle {
44
+ stroke-width: 3.67;
45
+ r: 14;
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ .label-container {
52
+ position: absolute;
53
+ top: 0;
54
+ left: 0;
55
+ bottom: 0;
56
+ right: 0;
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ }
61
+
62
+ .progress-circle-label {
63
+ &--small {
64
+ font-family: $tw-fnt-prgrss-circle-value-small-font-family;
65
+ font-size: $tw-fnt-prgrss-circle-value-small-font-size;
66
+ font-weight: $tw-fnt-prgrss-circle-value-small-font-weight;
67
+ line-height: $tw-fnt-prgrss-circle-value-small-line-height;
68
+ color: $tw-clr-text-fill;
69
+ }
70
+ &--medium {
71
+ font-family: $tw-fnt-prgrss-circle-value-medium-font-family;
72
+ font-size: $tw-fnt-prgrss-circle-value-medium-font-size;
73
+ font-weight: $tw-fnt-prgrss-circle-value-medium-font-weight;
74
+ line-height: $tw-fnt-prgrss-circle-value-medium-line-height;
75
+ color: $tw-clr-text-fill;
76
+ }
77
+ &--large {
78
+ font-family: $tw-fnt-prgrss-circle-value-large-font-family;
79
+ font-size: $tw-fnt-prgrss-circle-value-large-font-size;
80
+ font-weight: $tw-fnt-prgrss-circle-value-large-font-weight;
81
+ line-height: $tw-fnt-prgrss-circle-value-large-line-height;
82
+ color: $tw-clr-text-fill;
83
+ }
84
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface Props {
3
+ id: string;
4
+ name: string;
5
+ label: React.ReactNode;
6
+ value?: boolean | null;
7
+ onChange: (id: string, value: boolean) => void;
8
+ }
9
+ export default function RadioButton(props: Props): JSX.Element;
10
+ //# sourceMappingURL=RadioButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../src/components/RadioButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAE9C,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAa7D"}
@@ -0,0 +1,31 @@
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 = RadioButton;
9
+
10
+ var _material = require("@mui/material");
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ function RadioButton(props) {
15
+ var _props$value;
16
+
17
+ var onChange = function onChange(event, checked) {
18
+ props.onChange(props.id, checked);
19
+ };
20
+
21
+ return /*#__PURE__*/_react.default.createElement(_material.FormControlLabel, {
22
+ id: props.id,
23
+ onChange: onChange,
24
+ label: props.label,
25
+ control: /*#__PURE__*/_react.default.createElement(_material.Radio, {
26
+ id: 'radio-' + props.id,
27
+ color: "primary",
28
+ checked: (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : false
29
+ })
30
+ });
31
+ }
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import './styles.scss';
3
+ export interface SelectProps {
4
+ onChange: (newValue: string) => void;
5
+ label?: string;
6
+ disabled?: boolean;
7
+ id?: string;
8
+ className?: string;
9
+ helperText?: string | string[];
10
+ placeholder?: string;
11
+ errorText?: string | string[];
12
+ warningText?: string | string[];
13
+ selectedValue?: string;
14
+ readonly?: boolean;
15
+ options?: string[];
16
+ fullWidth?: boolean;
17
+ hideArrow?: boolean;
18
+ onBlur?: () => void;
19
+ onFocus?: () => void;
20
+ fixedMenu?: boolean;
21
+ }
22
+ export default function Select(props: SelectProps): JSX.Element;
23
+ //# sourceMappingURL=Select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":";AAGA,OAAO,eAAe,CAAC;AAGvB,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAsN9D"}
@@ -0,0 +1,248 @@
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 = Select;
9
+
10
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _Icon = _interopRequireDefault(require("../Icon/Icon"));
17
+
18
+ require("./styles.scss");
19
+
20
+ var _utils = require("../../utils");
21
+
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+
24
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
+
26
+ function Select(props) {
27
+ var selectedValue = props.selectedValue,
28
+ onChange = props.onChange,
29
+ label = props.label,
30
+ disabled = props.disabled,
31
+ id = props.id,
32
+ className = props.className,
33
+ helperText = props.helperText,
34
+ placeholder = props.placeholder,
35
+ errorText = props.errorText,
36
+ warningText = props.warningText,
37
+ _props$readonly = props.readonly,
38
+ readonly = _props$readonly === void 0 ? true : _props$readonly,
39
+ options = props.options,
40
+ fullWidth = props.fullWidth,
41
+ hideArrow = props.hideArrow,
42
+ onBlur = props.onBlur,
43
+ onFocus = props.onFocus,
44
+ fixedMenu = props.fixedMenu;
45
+ var selectClass = (0, _classnames.default)({
46
+ 'textfield-value': true,
47
+ 'textfield-value--disabled': disabled,
48
+ 'textfield-value--error': !!errorText,
49
+ 'textfield-value--warning': !!warningText,
50
+ 'textfield-value--readonly': readonly
51
+ });
52
+ var itemClass = (0, _classnames.default)({
53
+ 'select-value': true,
54
+ 'select-value--disabled': disabled
55
+ });
56
+
57
+ var _useState = (0, _react.useState)(false),
58
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
59
+ openedOptions = _useState2[0],
60
+ setOpenedOptions = _useState2[1];
61
+
62
+ var _useState3 = (0, _react.useState)(-1),
63
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
64
+ selectedIndex = _useState4[0],
65
+ setSelectedIndex = _useState4[1];
66
+
67
+ var inputRef = (0, _react.useRef)(null);
68
+ var dropdownRef = (0, _react.useRef)(null);
69
+ (0, _react.useEffect)(function () {
70
+ if (options && selectedValue && selectedIndex === -1) {
71
+ var newIndex = options.indexOf(selectedValue);
72
+
73
+ if (newIndex !== -1) {
74
+ setSelectedIndex(newIndex);
75
+ }
76
+ } else if (!options) {
77
+ setSelectedIndex(-1);
78
+ }
79
+ }, [options, selectedValue, selectedIndex]);
80
+ (0, _react.useEffect)(function () {
81
+ window.addEventListener('click', handleClick);
82
+ window.addEventListener('resize', handleResize);
83
+ return function () {
84
+ window.removeEventListener('click', handleClick);
85
+ window.removeEventListener('resize', handleResize);
86
+ };
87
+ }, []);
88
+
89
+ var handleClick = function handleClick(event) {
90
+ // Don't respond to user clicks inside the input box because those are
91
+ // already handled by toggleOptions()
92
+ if (dropdownRef.current && !dropdownRef.current.contains(event.target) && inputRef.current && !inputRef.current.contains(event.target)) {
93
+ setOpenedOptions(false);
94
+ }
95
+ };
96
+
97
+ var handleResize = function handleResize() {
98
+ setOpenedOptions(false);
99
+ };
100
+
101
+ (0, _react.useEffect)(function () {
102
+ if (openedOptions) {
103
+ scrollToSelectedElement();
104
+
105
+ if (fixedMenu && inputRef.current && dropdownRef.current) {
106
+ dropdownRef.current.style.width = "".concat(inputRef.current.offsetWidth, "px");
107
+ var bbox = inputRef.current.getBoundingClientRect();
108
+ dropdownRef.current.style.top = "".concat(bbox.top + bbox.height, "px");
109
+ var dropdownBottom = dropdownRef.current.clientHeight + bbox.top + bbox.height;
110
+ var windowHeightThreshold = window.innerHeight - bbox.height;
111
+
112
+ if (dropdownBottom > windowHeightThreshold) {
113
+ dropdownRef.current.style.maxHeight = "".concat(dropdownRef.current.clientHeight - (dropdownBottom - windowHeightThreshold), "px");
114
+ }
115
+ }
116
+ }
117
+ }, [fixedMenu, openedOptions]);
118
+
119
+ var toggleOptions = function toggleOptions() {
120
+ setOpenedOptions(function (isOpen) {
121
+ return !isOpen;
122
+ });
123
+ };
124
+
125
+ var onOptionSelected = function onOptionSelected(option, index) {
126
+ if (onChange) {
127
+ onChange(option);
128
+ }
129
+
130
+ setOpenedOptions(false);
131
+ setSelectedIndex(index);
132
+ };
133
+
134
+ var onChangeHandler = function onChangeHandler(e) {
135
+ var textValue = e.target.value;
136
+
137
+ if ((0, _utils.isWhitespaces)(textValue)) {
138
+ return;
139
+ }
140
+
141
+ if (onChange) {
142
+ onChange(textValue);
143
+ }
144
+
145
+ setOpenedOptions(true);
146
+ };
147
+
148
+ var onKeyDownHandler = function onKeyDownHandler(e) {
149
+ var _dropdownRef$current;
150
+
151
+ var pressedLetter = e.key.toUpperCase();
152
+ var items = (_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.getElementsByTagName('li');
153
+
154
+ if (items) {
155
+ var arrayOfItems = Array.from(items);
156
+
157
+ for (var _i = 0, _arrayOfItems = arrayOfItems; _i < _arrayOfItems.length; _i++) {
158
+ var item = _arrayOfItems[_i];
159
+
160
+ if (item.dataset.key === pressedLetter) {
161
+ item.scrollIntoView();
162
+ return;
163
+ }
164
+ }
165
+ }
166
+ };
167
+
168
+ var scrollToSelectedElement = function scrollToSelectedElement() {
169
+ var _dropdownRef$current2;
170
+
171
+ var items = (_dropdownRef$current2 = dropdownRef.current) === null || _dropdownRef$current2 === void 0 ? void 0 : _dropdownRef$current2.getElementsByTagName('li');
172
+
173
+ if (items) {
174
+ var arrayOfItems = Array.from(items);
175
+
176
+ for (var _i2 = 0, _arrayOfItems2 = arrayOfItems; _i2 < _arrayOfItems2.length; _i2++) {
177
+ var item = _arrayOfItems2[_i2];
178
+
179
+ if (item.dataset.selected === 'true') {
180
+ if (dropdownRef.current) {
181
+ var topPos = item.offsetTop;
182
+ dropdownRef.current.scrollTop = topPos;
183
+ return;
184
+ }
185
+ }
186
+ }
187
+ }
188
+ };
189
+
190
+ return /*#__PURE__*/_react.default.createElement("div", {
191
+ className: "select ".concat(className)
192
+ }, label && /*#__PURE__*/_react.default.createElement("label", {
193
+ htmlFor: id,
194
+ className: "textfield-label"
195
+ }, label), /*#__PURE__*/_react.default.createElement("div", {
196
+ className: "textfield-container ".concat(fullWidth ? 'textfield-container--fullWidth' : '')
197
+ }, /*#__PURE__*/_react.default.createElement("div", {
198
+ id: id,
199
+ className: selectClass,
200
+ onClick: toggleOptions,
201
+ ref: inputRef
202
+ }, /*#__PURE__*/_react.default.createElement("input", {
203
+ value: selectedValue || '',
204
+ readOnly: readonly,
205
+ placeholder: placeholder,
206
+ onChange: onChangeHandler,
207
+ onKeyDown: onKeyDownHandler,
208
+ onBlur: onBlur,
209
+ onFocus: onFocus
210
+ }), !hideArrow && /*#__PURE__*/_react.default.createElement(_Icon.default, {
211
+ name: 'chevronDown',
212
+ className: "textfield-value--icon-right"
213
+ })), options && options.length > 0 && openedOptions && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, fixedMenu && /*#__PURE__*/_react.default.createElement("div", {
214
+ className: "scroll-block"
215
+ }), /*#__PURE__*/_react.default.createElement("ul", {
216
+ className: 'options-container' + (fixedMenu ? ' fixed-menu' : ''),
217
+ ref: dropdownRef
218
+ }, options.map(function (option, index) {
219
+ return /*#__PURE__*/_react.default.createElement("li", {
220
+ "data-key": option.charAt(0).toUpperCase(),
221
+ "data-selected": selectedIndex === index,
222
+ key: index,
223
+ onClick: function onClick() {
224
+ return onOptionSelected(option, index);
225
+ },
226
+ className: "".concat(itemClass, " ").concat(selectedIndex === index ? 'select-value--selected' : '', " ")
227
+ }, option);
228
+ })))), errorText && /*#__PURE__*/_react.default.createElement("div", {
229
+ className: "textfield-label-container"
230
+ }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
231
+ name: "error",
232
+ className: "textfield-error-text--icon"
233
+ }), /*#__PURE__*/_react.default.createElement("label", {
234
+ htmlFor: id,
235
+ className: "textfield-error-text"
236
+ }, errorText)), warningText && /*#__PURE__*/_react.default.createElement("div", {
237
+ className: "textfield-label-container"
238
+ }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
239
+ name: "warning",
240
+ className: "textfield-warning-text--icon"
241
+ }), /*#__PURE__*/_react.default.createElement("label", {
242
+ htmlFor: id,
243
+ className: "textfield-warning-text"
244
+ }, warningText)), helperText && /*#__PURE__*/_react.default.createElement("label", {
245
+ htmlFor: id,
246
+ className: "textfield-help-text"
247
+ }, helperText));
248
+ }