@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terraware/web-components",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "author": "Terraformation Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,9 +12,6 @@
12
12
  },
13
13
  "homepage": "https://github.com/terraware/web-components#readme",
14
14
  "private": false,
15
- "files": [
16
- "dist"
17
- ],
18
15
  "main": "index.js",
19
16
  "dependencies": {
20
17
  "@date-io/date-fns": "^2.14.0",
@@ -26,88 +23,15 @@
26
23
  "@mui/material": "^5.8.7",
27
24
  "@mui/styles": "^5.8.7",
28
25
  "@mui/x-date-pickers": "^5.0.0-alpha.7",
29
- "@testing-library/jest-dom": "^5.11.4",
30
- "@testing-library/react": "^11.1.0",
31
- "@testing-library/user-event": "^12.1.10",
32
26
  "classnames": "^2.3.1",
33
27
  "date-fns": "^2.28.0",
34
- "license-report": "^6.0.0",
35
28
  "moment": "^2.29.1",
36
29
  "react": "^17.0.2",
37
30
  "react-dom": "^17.0.2",
38
31
  "react-responsive": "^9.0.0-beta.6",
39
- "react-scripts": "^4.0.3",
40
32
  "react-sortable-hoc": "^2.0.0",
41
33
  "sass": "^1.35.1",
42
34
  "tinycolor2": "^1.4.2",
43
35
  "web-vitals": "^1.0.1"
44
- },
45
- "scripts": {
46
- "start": "start-storybook",
47
- "build": "build-storybook -c .storybook -o public",
48
- "test": "react-scripts test",
49
- "eject": "react-scripts eject",
50
- "storybook": "start-storybook",
51
- "build-storybook": "build-storybook -s public",
52
- "build-dictionary": "./style-dictionary/generate.sh",
53
- "transpile": "rm -rf dist && NODE_ENV=production babel src/ --extensions '.tsx,.ts' --out-dir dist --copy-files --no-copy-ignored && cp package.json dist/",
54
- "generate-assets": "yarn svgr --icon --title-prop --no-dimensions --typescript -d src/components/Icon/icons/assets assets",
55
- "generate-types": "yarn -p typescript tsc",
56
- "build-dist": "yarn transpile && yarn generate-types",
57
- "lint": "tslint --project tsconfig.json",
58
- "license-report": "license-report --only=prod --department.value=terraware --related.value=terraware --output=html > dist/license-report.html",
59
- "check-updates": "yarn build-dictionary && yarn storybook"
60
- },
61
- "eslintConfig": {
62
- "extends": [
63
- "react-app",
64
- "react-app/jest"
65
- ],
66
- "overrides": [
67
- {
68
- "files": [
69
- "**/*.stories.*"
70
- ],
71
- "rules": {
72
- "import/no-anonymous-default-export": "off"
73
- }
74
- }
75
- ]
76
- },
77
- "browserslist": {
78
- "production": [
79
- ">0.2%",
80
- "not dead",
81
- "not op_mini all"
82
- ],
83
- "development": [
84
- "last 1 chrome version",
85
- "last 1 firefox version",
86
- "last 1 safari version"
87
- ]
88
- },
89
- "devDependencies": {
90
- "@babel/cli": "^7.18.10",
91
- "@babel/core": "^7.18.10",
92
- "@babel/polyfill": "^7.12.1",
93
- "@babel/preset-react": "^7.18.6",
94
- "@babel/preset-typescript": "^7.18.6",
95
- "@storybook/addon-actions": "^6.3.7",
96
- "@storybook/addon-essentials": "^6.3.7",
97
- "@storybook/addon-links": "^6.3.7",
98
- "@storybook/node-logger": "^6.3.7",
99
- "@storybook/preset-create-react-app": "^3.2.0",
100
- "@storybook/react": "^6.3.7",
101
- "@svgr/cli": "^6.3.1",
102
- "style-dictionary": "^3.0.1",
103
- "tslint": "^6.1.3",
104
- "tslint-config-prettier": "^1.18.0",
105
- "tslint-eslint-rules": "^5.4.0",
106
- "tslint-react": "^5.0.0",
107
- "tslint-react-hooks": "^2.2.2",
108
- "typescript": "^4.3.2"
109
- },
110
- "resolutions": {
111
- "babel-loader": "8.1.0"
112
36
  }
113
37
  }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=setupTests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupTests.d.ts","sourceRoot":"","sources":["../src/setupTests.js"],"names":[],"mappings":""}
package/setupTests.js ADDED
@@ -0,0 +1,5 @@
1
+ // jest-dom adds custom jest matchers for asserting on DOM nodes.
2
+ // allows you to do things like:
3
+ // expect(element).toHaveTextContent(/react/i)
4
+ // learn more: https://github.com/testing-library/jest-dom
5
+ import '@testing-library/jest-dom';
@@ -0,0 +1,9 @@
1
+ import { Story } from '@storybook/react';
2
+ import Autocomplete, { Props as AutocompleteProps } from '../components/Autocomplete';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Autocomplete;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story<AutocompleteProps>;
9
+ //# sourceMappingURL=Autocomplete.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Autocomplete.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Autocomplete.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,YAAY,EAAE,EACnB,KAAK,IAAI,iBAAiB,EAC3B,MAAM,4BAA4B,CAAC;;;;;AAEpC,wBAGE;AAYF,eAAO,MAAM,OAAO,0BAAoB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { Story } from '@storybook/react';
2
+ import Button, { Props as ButtonProps } from '../components/Button/Button';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Button;
6
+ argTypes: {
7
+ type: {
8
+ options: string[];
9
+ control: {
10
+ type: string;
11
+ };
12
+ };
13
+ priority: {
14
+ options: string[];
15
+ control: {
16
+ type: string;
17
+ };
18
+ };
19
+ size: {
20
+ options: string[];
21
+ control: {
22
+ type: string;
23
+ };
24
+ };
25
+ icon: {
26
+ options: (string | null)[];
27
+ control: {
28
+ type: string;
29
+ };
30
+ };
31
+ };
32
+ };
33
+ export default _default;
34
+ export declare const Default: Story<ButtonProps>;
35
+ //# sourceMappingURL=Button.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Button.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,MAAM,EAAE,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,6BAA6B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE3E,wBAqBE;AAMF,eAAO,MAAM,OAAO,oBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Story } from '@storybook/react';
2
+ import Checkbox, { Props as CheckboxProps } from '../components/Checkbox';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Checkbox;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story<CheckboxProps>;
9
+ //# sourceMappingURL=Checkbox.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Checkbox.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,QAAQ,EAAE,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;;;;;AAE1E,wBAGE;AAYF,eAAO,MAAM,OAAO,sBAAoB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { Story as StoryBook } from '@storybook/react';
2
+ import React, { ReactElement } from 'react';
3
+ import DatePicker, { Props as DatePickerProps } from '../components/DatePicker';
4
+ declare const _default: {
5
+ title: string;
6
+ component: typeof DatePicker;
7
+ decorators: ((Story: typeof React.Component) => ReactElement)[];
8
+ };
9
+ export default _default;
10
+ export declare const Default: StoryBook<DatePickerProps>;
11
+ //# sourceMappingURL=DatePicker.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker.stories.d.ts","sourceRoot":"","sources":["../../src/stories/DatePicker.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AACtD,OAAO,UAAU,EAAE,EAAE,KAAK,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;;;;yBAOnE,OAAO,MAAM,SAAS,KAC5B,YAAY;;AANnB,wBAYE;AAcF,eAAO,MAAM,OAAO,4BAAoB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Story } from '@storybook/react';
2
+ import DialogBox, { Props as DialogBoxProps } from '../components/DialogBox/DialogBox';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof DialogBox;
6
+ };
7
+ export default _default;
8
+ export declare const Small: Story<DialogBoxProps>;
9
+ export declare const Medium: Story<DialogBoxProps>;
10
+ export declare const Large: Story<DialogBoxProps>;
11
+ export declare const XLarge: Story<DialogBoxProps>;
12
+ export declare const threeButtons: Story<DialogBoxProps>;
13
+ export declare const noFooter: Story<DialogBoxProps>;
14
+ //# sourceMappingURL=DialogBox.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogBox.stories.d.ts","sourceRoot":"","sources":["../../src/stories/DialogBox.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAGzC,OAAO,SAAS,EAAE,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;;;;;AAEvF,wBAGE;AAMF,eAAO,MAAM,KAAK,uBAAoB,CAAC;AAYvC,eAAO,MAAM,MAAM,uBAAoB,CAAC;AAWxC,eAAO,MAAM,KAAK,uBAAoB,CAAC;AAWvC,eAAO,MAAM,MAAM,uBAAoB,CAAC;AAWxC,eAAO,MAAM,YAAY,uBAAoB,CAAC;AAY9C,eAAO,MAAM,QAAQ,uBAAoB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { Story } from '@storybook/react';
2
+ import Divisor, { Props as DivisorProps } from '../components/Divisor';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Divisor;
6
+ argTypes: {
7
+ mt: {
8
+ description: string;
9
+ control: {
10
+ type: string;
11
+ min: number;
12
+ max: number;
13
+ step: number;
14
+ };
15
+ };
16
+ };
17
+ };
18
+ export default _default;
19
+ export declare const Default: Story<DivisorProps>;
20
+ //# sourceMappingURL=Divisor.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divisor.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Divisor.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,OAAO,EAAE,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;;;;;;;;;;;;;;;;AAEvE,wBAcE;AAIF,eAAO,MAAM,OAAO,qBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Story } from '@storybook/react';
2
+ import Dropdown, { Props as DropdownProps } from '../components/Dropdown';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Dropdown;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story<DropdownProps>;
9
+ //# sourceMappingURL=Dropdown.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Dropdown.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,QAAQ,EAAE,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;;;;;AAE1E,wBAGE;AAYF,eAAO,MAAM,OAAO,sBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Story } from '@storybook/react';
2
+ import Icon, { Props as IconProps } from '../components/Icon/Icon';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Icon;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story<IconProps>;
9
+ //# sourceMappingURL=Icon.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Icon.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,IAAI,EAAE,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAC;;;;;AAEnE,wBAGE;AAMF,eAAO,MAAM,OAAO,kBAAoB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Story } from '@storybook/react';
2
+ import Navbar, { Props as NavbarProps } from '../components/Navbar/Navbar';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Navbar;
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Default: Story<NavbarProps>;
10
+ //# sourceMappingURL=Navbar.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Navbar.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Navbar.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,MAAM,EAAE,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,6BAA6B,CAAC;;;;;;AAI3E,wBAIE;AAkCF,eAAO,MAAM,OAAO,oBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Story } from '@storybook/react';
2
+ import Note, { Props as NoteProps } from '../components/Note';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Note;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story<NoteProps>;
9
+ //# sourceMappingURL=Note.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Note.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Note.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,IAAI,EAAE,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;;;;;AAE9D,wBAGE;AAIF,eAAO,MAAM,OAAO,kBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Story } from '@storybook/react';
2
+ import ProgressCircle, { Props as ProgressCircleProps } from '../components/ProgressCircle/ProgressCircle';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof ProgressCircle;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story<ProgressCircleProps>;
9
+ //# sourceMappingURL=ProgressCircle.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressCircle.stories.d.ts","sourceRoot":"","sources":["../../src/stories/ProgressCircle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,cAAc,EAAE,EAAE,KAAK,IAAI,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;;;;;AAE3G,wBAGE;AAIF,eAAO,MAAM,OAAO,4BAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Story } from '@storybook/react';
2
+ import RadioButton, { Props as RadioButtonProps } from '../components/RadioButton';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof RadioButton;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story<RadioButtonProps>;
9
+ //# sourceMappingURL=RadioButton.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioButton.stories.d.ts","sourceRoot":"","sources":["../../src/stories/RadioButton.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,WAAW,EAAE,EAClB,KAAK,IAAI,gBAAgB,EAC1B,MAAM,2BAA2B,CAAC;;;;;AAEnC,wBAGE;AAMF,eAAO,MAAM,OAAO,yBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Story } from '@storybook/react';
2
+ import Select, { SelectProps } from '../components/Select/Select';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Select;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story<SelectProps>;
9
+ //# sourceMappingURL=Select.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Select.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;;;;;AAElE,wBAGE;AAYF,eAAO,MAAM,OAAO,oBAAoB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { Story } from '@storybook/react';
2
+ import SummaryBox, { Props as SummaryBoxProps } from '../components/SummaryBox';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof SummaryBox;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story<SummaryBoxProps>;
9
+ export declare const Available: Story<SummaryBoxProps>;
10
+ export declare const Zero: Story<SummaryBoxProps>;
11
+ //# sourceMappingURL=SummaryBox.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SummaryBox.stories.d.ts","sourceRoot":"","sources":["../../src/stories/SummaryBox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,UAAU,EAAE,EAAE,KAAK,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;;;;;AAEhF,wBAGE;AAIF,eAAO,MAAM,OAAO,wBAAoB,CAAC;AAQzC,eAAO,MAAM,SAAS,wBAAoB,CAAC;AAQ3C,eAAO,MAAM,IAAI,wBAAoB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Story } from '@storybook/react';
2
+ import Table, { Props as TableProps } from '../components/table/index';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Table;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story<TableProps<{
9
+ name: string;
10
+ lastname: string;
11
+ }>>;
12
+ //# sourceMappingURL=Table.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Table.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,KAAK,EAAE,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,2BAA2B,CAAC;;;;;AAEvE,wBAGE;AAQF,eAAO,MAAM,OAAO;UANqB,MAAM;cAAY,MAAM;GAMzB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { Story } from '@storybook/react';
2
+ import TextField, { Props as TextFieldProps } from '../components/Textfield/Textfield';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof TextField;
6
+ argTypes: {
7
+ iconLeft: {
8
+ options: (string | null)[];
9
+ control: {
10
+ type: string;
11
+ };
12
+ };
13
+ iconRight: {
14
+ options: (string | null)[];
15
+ control: {
16
+ type: string;
17
+ };
18
+ };
19
+ type: {
20
+ options: string[];
21
+ control: {
22
+ type: string;
23
+ };
24
+ };
25
+ };
26
+ };
27
+ export default _default;
28
+ export declare const Default: Story<TextFieldProps>;
29
+ //# sourceMappingURL=TextfieldNew.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextfieldNew.stories.d.ts","sourceRoot":"","sources":["../../src/stories/TextfieldNew.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,SAAS,EAAE,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;AAEvF,wBAiBE;AAWF,eAAO,MAAM,OAAO,uBAAoB,CAAC"}