@longline/aqua-ui 1.0.9 → 1.0.11

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 (473) hide show
  1. package/Types.d.ts +6 -0
  2. package/Types.js +5 -0
  3. package/containers/Anchor/Anchor.d.ts +63 -0
  4. package/containers/Anchor/Anchor.js +113 -0
  5. package/containers/Anchor/index.d.ts +1 -0
  6. package/containers/Anchor/index.js +1 -0
  7. package/containers/Dock/Dock.d.ts +45 -0
  8. package/containers/Dock/Dock.js +61 -0
  9. package/containers/Dock/Dockable.d.ts +60 -0
  10. package/containers/Dock/Dockable.js +98 -0
  11. package/containers/Dock/index.d.ts +2 -0
  12. package/containers/Dock/index.js +2 -0
  13. package/containers/Form/Field.d.ts +104 -0
  14. package/containers/Form/Field.js +168 -0
  15. package/containers/Form/Form.d.ts +51 -0
  16. package/containers/Form/Form.js +89 -0
  17. package/containers/Form/Validation.d.ts +212 -0
  18. package/containers/Form/Validation.js +232 -0
  19. package/containers/Form/context/FormContext.d.ts +10 -0
  20. package/containers/Form/context/FormContext.js +3 -0
  21. package/containers/Form/context/useForm.d.ts +5 -0
  22. package/containers/Form/context/useForm.js +9 -0
  23. package/containers/Form/elements/BoxWrapper.d.ts +15 -0
  24. package/containers/Form/elements/BoxWrapper.js +35 -0
  25. package/containers/Form/elements/Hint.d.ts +21 -0
  26. package/containers/Form/elements/Hint.js +15 -0
  27. package/containers/Form/elements/Label.d.ts +22 -0
  28. package/containers/Form/elements/Label.js +15 -0
  29. package/containers/Form/elements/SimpleWrapper.d.ts +15 -0
  30. package/containers/Form/elements/SimpleWrapper.js +17 -0
  31. package/containers/Form/index.d.ts +1 -0
  32. package/containers/Form/index.js +1 -0
  33. package/containers/GlassPane/GlassPane.d.ts +36 -0
  34. package/containers/GlassPane/GlassPane.js +66 -0
  35. package/containers/GlassPane/index.d.ts +1 -0
  36. package/containers/GlassPane/index.js +1 -0
  37. package/containers/InfoBox/InfoBox.d.ts +34 -0
  38. package/containers/InfoBox/InfoBox.js +45 -0
  39. package/containers/InfoBox/elements/Content.d.ts +23 -0
  40. package/containers/InfoBox/elements/Content.js +37 -0
  41. package/containers/InfoBox/elements/Footer.d.ts +9 -0
  42. package/containers/InfoBox/elements/Footer.js +24 -0
  43. package/containers/InfoBox/elements/Header.d.ts +9 -0
  44. package/containers/InfoBox/elements/Header.js +24 -0
  45. package/containers/InfoBox/index.d.ts +1 -0
  46. package/containers/InfoBox/index.js +1 -0
  47. package/containers/List/List.d.ts +45 -0
  48. package/containers/List/List.js +47 -0
  49. package/containers/List/ListCell.d.ts +13 -0
  50. package/containers/List/ListCell.js +24 -0
  51. package/containers/List/ListRow.d.ts +15 -0
  52. package/containers/List/ListRow.js +24 -0
  53. package/containers/List/index.d.ts +3 -0
  54. package/containers/List/index.js +3 -0
  55. package/containers/Tabs/Pane.d.ts +29 -0
  56. package/containers/Tabs/Pane.js +45 -0
  57. package/containers/Tabs/Tabs.d.ts +66 -0
  58. package/containers/Tabs/Tabs.js +144 -0
  59. package/containers/Tabs/index.d.ts +1 -0
  60. package/containers/Tabs/index.js +1 -0
  61. package/controls/Chip/Chip.d.ts +35 -0
  62. package/controls/Chip/Chip.js +83 -0
  63. package/controls/Chip/index.d.ts +1 -0
  64. package/controls/Chip/index.js +1 -0
  65. package/controls/Fab/Fab.d.ts +73 -0
  66. package/controls/Fab/Fab.js +94 -0
  67. package/controls/Fab/index.d.ts +1 -0
  68. package/controls/Fab/index.js +1 -0
  69. package/controls/Icon/Icon.d.ts +98 -0
  70. package/controls/Icon/Icon.js +79 -0
  71. package/controls/Icon/index.d.ts +1 -0
  72. package/controls/Icon/index.js +1 -0
  73. package/controls/Key/Key.d.ts +22 -0
  74. package/controls/Key/Key.js +74 -0
  75. package/controls/Key/index.d.ts +1 -0
  76. package/controls/Key/index.js +1 -0
  77. package/controls/LinearChart/LinearChart.d.ts +31 -0
  78. package/controls/LinearChart/LinearChart.js +58 -0
  79. package/controls/LinearChart/index.d.ts +1 -0
  80. package/controls/LinearChart/index.js +1 -0
  81. package/controls/ListView/Body.d.ts +8 -0
  82. package/controls/ListView/Body.js +24 -0
  83. package/controls/ListView/Column.d.ts +55 -0
  84. package/controls/ListView/Column.js +8 -0
  85. package/controls/ListView/ColumnsManager/ColumnDraggable.d.ts +11 -0
  86. package/controls/ListView/ColumnsManager/ColumnDraggable.js +83 -0
  87. package/controls/ListView/ColumnsManager/ColumnsManager.d.ts +12 -0
  88. package/controls/ListView/ColumnsManager/ColumnsManager.js +63 -0
  89. package/controls/ListView/ColumnsManager/OrderColumns.d.ts +11 -0
  90. package/controls/ListView/ColumnsManager/OrderColumns.js +62 -0
  91. package/controls/ListView/ColumnsManager/SourceColumns.d.ts +10 -0
  92. package/controls/ListView/ColumnsManager/SourceColumns.js +45 -0
  93. package/controls/ListView/Ghost.d.ts +9 -0
  94. package/controls/ListView/Ghost.js +52 -0
  95. package/controls/ListView/Header.d.ts +12 -0
  96. package/controls/ListView/Header.js +35 -0
  97. package/controls/ListView/HeaderButton.d.ts +8 -0
  98. package/controls/ListView/HeaderButton.js +8 -0
  99. package/controls/ListView/HeaderCell.d.ts +20 -0
  100. package/controls/ListView/HeaderCell.js +47 -0
  101. package/controls/ListView/IListViewProps.d.ts +105 -0
  102. package/controls/ListView/IListViewProps.js +1 -0
  103. package/controls/ListView/ListView.d.ts +20 -0
  104. package/controls/ListView/ListView.js +97 -0
  105. package/controls/ListView/NoData.d.ts +19 -0
  106. package/controls/ListView/NoData.js +30 -0
  107. package/controls/ListView/SortButton.d.ts +16 -0
  108. package/controls/ListView/SortButton.js +26 -0
  109. package/controls/ListView/Table.d.ts +18 -0
  110. package/controls/ListView/Table.js +99 -0
  111. package/controls/ListView/Total.d.ts +9 -0
  112. package/controls/ListView/Total.js +28 -0
  113. package/controls/ListView/sortItems.d.ts +6 -0
  114. package/controls/ListView/sortItems.js +35 -0
  115. package/controls/Mouse/Mouse.d.ts +38 -0
  116. package/controls/Mouse/Mouse.js +51 -0
  117. package/controls/Mouse/index.d.ts +1 -0
  118. package/controls/Mouse/index.js +1 -0
  119. package/controls/PrimaryButton/PrimaryButton.d.ts +63 -0
  120. package/controls/PrimaryButton/PrimaryButton.js +83 -0
  121. package/controls/PrimaryButton/index.d.ts +1 -0
  122. package/controls/PrimaryButton/index.js +1 -0
  123. package/controls/Progress/Progress.d.ts +35 -0
  124. package/controls/Progress/Progress.js +49 -0
  125. package/controls/Progress/index.d.ts +1 -0
  126. package/controls/Progress/index.js +1 -0
  127. package/controls/SecondaryButton/SecondaryButton.d.ts +58 -0
  128. package/controls/SecondaryButton/SecondaryButton.js +73 -0
  129. package/controls/SecondaryButton/index.d.ts +1 -0
  130. package/controls/SecondaryButton/index.js +1 -0
  131. package/controls/TabBar/Tab.d.ts +21 -0
  132. package/controls/TabBar/Tab.js +25 -0
  133. package/controls/TabBar/TabBar.d.ts +34 -0
  134. package/controls/TabBar/TabBar.js +134 -0
  135. package/controls/TabBar/Underliner.d.ts +7 -0
  136. package/controls/TabBar/Underliner.js +27 -0
  137. package/controls/TabBar/index.d.ts +1 -0
  138. package/controls/TabBar/index.js +1 -0
  139. package/controls/TertiaryButton/TertiaryButton.d.ts +28 -0
  140. package/controls/TertiaryButton/TertiaryButton.js +65 -0
  141. package/controls/TertiaryButton/index.d.ts +1 -0
  142. package/controls/TertiaryButton/index.js +1 -0
  143. package/controls/View/View.d.ts +35 -0
  144. package/controls/View/View.js +58 -0
  145. package/controls/View/index.d.ts +1 -0
  146. package/controls/View/index.js +1 -0
  147. package/formatters/Date/DateTime.d.ts +45 -0
  148. package/formatters/Date/DateTime.js +64 -0
  149. package/formatters/Date/elements/Custom.d.ts +18 -0
  150. package/formatters/Date/elements/Custom.js +22 -0
  151. package/formatters/Date/elements/Distance.d.ts +24 -0
  152. package/formatters/Date/elements/Distance.js +45 -0
  153. package/formatters/Date/elements/LongDate.d.ts +17 -0
  154. package/formatters/Date/elements/LongDate.js +11 -0
  155. package/formatters/Date/elements/LongDateTime.d.ts +14 -0
  156. package/formatters/Date/elements/LongDateTime.js +10 -0
  157. package/formatters/Date/elements/LongTime.d.ts +14 -0
  158. package/formatters/Date/elements/LongTime.js +10 -0
  159. package/formatters/Date/elements/ShortDate.d.ts +14 -0
  160. package/formatters/Date/elements/ShortDate.js +10 -0
  161. package/formatters/Date/elements/ShortDateTime.d.ts +14 -0
  162. package/formatters/Date/elements/ShortDateTime.js +10 -0
  163. package/formatters/Date/elements/ShortTime.d.ts +18 -0
  164. package/formatters/Date/elements/ShortTime.js +10 -0
  165. package/formatters/Date/elements/toDate.d.ts +2 -0
  166. package/formatters/Date/elements/toDate.js +13 -0
  167. package/formatters/Date/index.d.ts +1 -0
  168. package/formatters/Date/index.js +1 -0
  169. package/formatters/Filesize/Filesize.d.ts +29 -0
  170. package/formatters/Filesize/Filesize.js +54 -0
  171. package/formatters/Filesize/index.d.ts +1 -0
  172. package/formatters/Filesize/index.js +1 -0
  173. package/formatters/GIS/Latitude.d.ts +23 -0
  174. package/formatters/GIS/Latitude.js +13 -0
  175. package/formatters/GIS/Longitude.d.ts +23 -0
  176. package/formatters/GIS/Longitude.js +13 -0
  177. package/formatters/GIS/index.d.ts +2 -0
  178. package/formatters/GIS/index.js +2 -0
  179. package/formatters/GIS/toDMS.d.ts +2 -0
  180. package/formatters/GIS/toDMS.js +16 -0
  181. package/formatters/Highlight/Highlight.d.ts +22 -0
  182. package/formatters/Highlight/Highlight.js +32 -0
  183. package/formatters/Highlight/index.d.ts +1 -0
  184. package/formatters/Highlight/index.js +1 -0
  185. package/formatters/Human/Human.d.ts +18 -0
  186. package/formatters/Human/Human.js +34 -0
  187. package/formatters/Human/index.d.ts +1 -0
  188. package/formatters/Human/index.js +1 -0
  189. package/formatters/Number/Number.d.ts +24 -0
  190. package/formatters/Number/Number.js +36 -0
  191. package/formatters/Number/index.d.ts +1 -0
  192. package/formatters/Number/index.js +1 -0
  193. package/helper/DMS.d.ts +22 -0
  194. package/helper/DMS.js +46 -0
  195. package/helper/HslColor.d.ts +11 -0
  196. package/helper/HslColor.js +47 -0
  197. package/helper/RgbColor.d.ts +43 -0
  198. package/helper/RgbColor.js +162 -0
  199. package/helper/SizeHelper.d.ts +10 -0
  200. package/helper/SizeHelper.js +56 -0
  201. package/helper/alpha.d.ts +8 -0
  202. package/helper/alpha.js +17 -0
  203. package/helper/darken.d.ts +8 -0
  204. package/helper/darken.js +18 -0
  205. package/helper/guard.d.ts +5 -0
  206. package/helper/guard.js +7 -0
  207. package/helper/lighten.d.ts +8 -0
  208. package/helper/lighten.js +11 -0
  209. package/helper/md5.d.ts +2 -0
  210. package/helper/md5.js +162 -0
  211. package/helper/nameToHex.d.ts +6 -0
  212. package/helper/nameToHex.js +163 -0
  213. package/inputs/DateInput/Body.d.ts +34 -0
  214. package/inputs/DateInput/Body.js +50 -0
  215. package/inputs/DateInput/Calendar.d.ts +15 -0
  216. package/inputs/DateInput/Calendar.js +60 -0
  217. package/inputs/DateInput/DateInput.d.ts +73 -0
  218. package/inputs/DateInput/DateInput.js +143 -0
  219. package/inputs/DateInput/Day.d.ts +32 -0
  220. package/inputs/DateInput/Day.js +33 -0
  221. package/inputs/DateInput/InfiniteList.d.ts +26 -0
  222. package/inputs/DateInput/InfiniteList.js +87 -0
  223. package/inputs/DateInput/Nav.d.ts +11 -0
  224. package/inputs/DateInput/Nav.js +24 -0
  225. package/inputs/DateInput/Navbar.d.ts +16 -0
  226. package/inputs/DateInput/Navbar.js +33 -0
  227. package/inputs/DateInput/NumericInput.d.ts +14 -0
  228. package/inputs/DateInput/NumericInput.js +48 -0
  229. package/inputs/DateInput/Selector.d.ts +47 -0
  230. package/inputs/DateInput/Selector.js +55 -0
  231. package/inputs/DateInput/SimpleList.d.ts +19 -0
  232. package/inputs/DateInput/SimpleList.js +31 -0
  233. package/inputs/Dropdown/Body.d.ts +25 -0
  234. package/inputs/Dropdown/Body.js +14 -0
  235. package/inputs/Dropdown/Column.d.ts +21 -0
  236. package/inputs/Dropdown/Column.js +6 -0
  237. package/inputs/Dropdown/Dropdown.d.ts +136 -0
  238. package/inputs/Dropdown/Dropdown.js +446 -0
  239. package/inputs/Dropdown/Selection.d.ts +11 -0
  240. package/inputs/Dropdown/Selection.js +23 -0
  241. package/inputs/Dropdown/Selector.d.ts +29 -0
  242. package/inputs/Dropdown/Selector.js +16 -0
  243. package/inputs/Dropdown/index.d.ts +1 -0
  244. package/inputs/Dropdown/index.js +1 -0
  245. package/inputs/Editor/Editor.d.ts +45 -0
  246. package/inputs/Editor/Editor.js +60 -0
  247. package/inputs/Editor/buttons/BoldButton.d.ts +7 -0
  248. package/inputs/Editor/buttons/BoldButton.js +7 -0
  249. package/inputs/Editor/buttons/BulletListButton.d.ts +7 -0
  250. package/inputs/Editor/buttons/BulletListButton.js +7 -0
  251. package/inputs/Editor/buttons/CodeBlockButton.d.ts +7 -0
  252. package/inputs/Editor/buttons/CodeBlockButton.js +7 -0
  253. package/inputs/Editor/buttons/CodeButton.d.ts +7 -0
  254. package/inputs/Editor/buttons/CodeButton.js +7 -0
  255. package/inputs/Editor/buttons/ItalicButton.d.ts +7 -0
  256. package/inputs/Editor/buttons/ItalicButton.js +7 -0
  257. package/inputs/Editor/buttons/OrderedListButton.d.ts +7 -0
  258. package/inputs/Editor/buttons/OrderedListButton.js +7 -0
  259. package/inputs/Editor/buttons/StrikethroughButton.d.ts +7 -0
  260. package/inputs/Editor/buttons/StrikethroughButton.js +7 -0
  261. package/inputs/Editor/index.d.ts +1 -0
  262. package/inputs/Editor/index.js +1 -0
  263. package/inputs/Editor/menu/MenuBar.d.ts +9 -0
  264. package/inputs/Editor/menu/MenuBar.js +44 -0
  265. package/inputs/Editor/menu/MenuButton.d.ts +35 -0
  266. package/inputs/Editor/menu/MenuButton.js +34 -0
  267. package/inputs/Editor/menu/MenuSeparator.d.ts +7 -0
  268. package/inputs/Editor/menu/MenuSeparator.js +24 -0
  269. package/inputs/Input/Clear.d.ts +7 -0
  270. package/inputs/Input/Clear.js +14 -0
  271. package/inputs/Input/Input.d.ts +133 -0
  272. package/inputs/Input/Input.js +64 -0
  273. package/inputs/Input/InputWrapper.d.ts +23 -0
  274. package/inputs/Input/InputWrapper.js +57 -0
  275. package/inputs/Input/index.d.ts +1 -0
  276. package/inputs/Input/index.js +1 -0
  277. package/inputs/Selector/ISelectorProps.d.ts +29 -0
  278. package/inputs/Selector/ISelectorProps.js +1 -0
  279. package/inputs/Selector/Selector.d.ts +29 -0
  280. package/inputs/Selector/Selector.js +77 -0
  281. package/inputs/Selector/index.d.ts +1 -0
  282. package/inputs/Selector/index.js +1 -0
  283. package/inputs/Selector/widgets/Checkbox.d.ts +6 -0
  284. package/inputs/Selector/widgets/Checkbox.js +29 -0
  285. package/inputs/Selector/widgets/Toggle.d.ts +6 -0
  286. package/inputs/Selector/widgets/Toggle.js +24 -0
  287. package/inputs/Slider/Slider.d.ts +63 -0
  288. package/inputs/Slider/Slider.js +198 -0
  289. package/inputs/Slider/index.d.ts +1 -0
  290. package/inputs/Slider/index.js +1 -0
  291. package/inputs/Textarea/Textarea.d.ts +79 -0
  292. package/inputs/Textarea/Textarea.js +65 -0
  293. package/inputs/Textarea/index.d.ts +1 -0
  294. package/inputs/Textarea/index.js +1 -0
  295. package/map/Map/Map.d.ts +47 -0
  296. package/map/Map/Map.js +221 -0
  297. package/map/Map/index.d.ts +1 -0
  298. package/map/Map/index.js +1 -0
  299. package/map/PositionsManager/PositionBox.d.ts +14 -0
  300. package/map/PositionsManager/PositionBox.js +86 -0
  301. package/map/PositionsManager/PositionsManager.d.ts +27 -0
  302. package/map/PositionsManager/PositionsManager.js +99 -0
  303. package/map/PositionsManager/index.d.ts +1 -0
  304. package/map/PositionsManager/index.js +1 -0
  305. package/map/controls/CompassButton/CompassButton.d.ts +33 -0
  306. package/map/controls/CompassButton/CompassButton.js +88 -0
  307. package/map/controls/CompassButton/index.d.ts +2 -0
  308. package/map/controls/CompassButton/index.js +2 -0
  309. package/map/controls/FullscreenButton/FullscreenButton.d.ts +21 -0
  310. package/map/controls/FullscreenButton/FullscreenButton.js +62 -0
  311. package/map/controls/FullscreenButton/index.d.ts +2 -0
  312. package/map/controls/FullscreenButton/index.js +2 -0
  313. package/map/controls/Geocoder/Geocoder.d.ts +49 -0
  314. package/map/controls/Geocoder/Geocoder.js +179 -0
  315. package/map/controls/Geocoder/GeocoderApi.d.ts +59 -0
  316. package/map/controls/Geocoder/GeocoderApi.js +68 -0
  317. package/map/controls/Geocoder/GeocoderEntry.d.ts +15 -0
  318. package/map/controls/Geocoder/GeocoderEntry.js +18 -0
  319. package/map/controls/Geocoder/GeocoderList.d.ts +10 -0
  320. package/map/controls/Geocoder/GeocoderList.js +18 -0
  321. package/map/controls/Geocoder/GeocoderSelector.d.ts +16 -0
  322. package/map/controls/Geocoder/GeocoderSelector.js +25 -0
  323. package/map/controls/Geocoder/index.d.ts +2 -0
  324. package/map/controls/Geocoder/index.js +2 -0
  325. package/map/controls/Graticule/Graticule.d.ts +35 -0
  326. package/map/controls/Graticule/Graticule.js +142 -0
  327. package/map/controls/Graticule/index.d.ts +1 -0
  328. package/map/controls/Graticule/index.js +1 -0
  329. package/map/controls/MapLoader/MapLoader.d.ts +33 -0
  330. package/map/controls/MapLoader/MapLoader.js +73 -0
  331. package/map/controls/MapLoader/index.d.ts +1 -0
  332. package/map/controls/MapLoader/index.js +1 -0
  333. package/map/controls/ScaleControl/ScaleControl.d.ts +24 -0
  334. package/map/controls/ScaleControl/ScaleControl.js +107 -0
  335. package/map/controls/ScaleControl/index.d.ts +1 -0
  336. package/map/controls/ScaleControl/index.js +1 -0
  337. package/map/controls/ZoomInButton/ZoomInButton.d.ts +19 -0
  338. package/map/controls/ZoomInButton/ZoomInButton.js +56 -0
  339. package/map/controls/ZoomInButton/index.d.ts +2 -0
  340. package/map/controls/ZoomInButton/index.js +2 -0
  341. package/map/controls/ZoomOutButton/ZoomOutButton.d.ts +19 -0
  342. package/map/controls/ZoomOutButton/ZoomOutButton.js +56 -0
  343. package/map/controls/ZoomOutButton/index.d.ts +2 -0
  344. package/map/controls/ZoomOutButton/index.js +2 -0
  345. package/map/controls/base/MapButton/Hint.d.ts +17 -0
  346. package/map/controls/base/MapButton/Hint.js +34 -0
  347. package/map/controls/base/MapButton/MapButton.d.ts +46 -0
  348. package/map/controls/base/MapButton/MapButton.js +71 -0
  349. package/map/controls/base/MapButton/index.d.ts +1 -0
  350. package/map/controls/base/MapButton/index.js +1 -0
  351. package/map/controls/base/MapButtonGroup/MapButtonGroup.d.ts +17 -0
  352. package/map/controls/base/MapButtonGroup/MapButtonGroup.js +24 -0
  353. package/map/controls/base/MapButtonGroup/index.d.ts +1 -0
  354. package/map/controls/base/MapButtonGroup/index.js +1 -0
  355. package/map/controls/base/MapControl/MapControl.d.ts +36 -0
  356. package/map/controls/base/MapControl/MapControl.js +77 -0
  357. package/map/controls/base/MapControl/index.d.ts +1 -0
  358. package/map/controls/base/MapControl/index.js +1 -0
  359. package/map/layers/ClusterLayer/ClusterLayer.d.ts +79 -0
  360. package/map/layers/ClusterLayer/ClusterLayer.js +118 -0
  361. package/map/layers/HtmlMarkerLayer/HtmlMarkerLayer.d.ts +51 -0
  362. package/map/layers/HtmlMarkerLayer/HtmlMarkerLayer.js +151 -0
  363. package/map/layers/HtmlMarkerLayer/index.d.ts +1 -0
  364. package/map/layers/HtmlMarkerLayer/index.js +1 -0
  365. package/map/layers/InterpolationLayer/ContoursFragmentShader.d.ts +2 -0
  366. package/map/layers/InterpolationLayer/ContoursFragmentShader.js +2 -0
  367. package/map/layers/InterpolationLayer/ContoursVertexShader.d.ts +2 -0
  368. package/map/layers/InterpolationLayer/ContoursVertexShader.js +2 -0
  369. package/map/layers/InterpolationLayer/IGradientStop.d.ts +5 -0
  370. package/map/layers/InterpolationLayer/IGradientStop.js +1 -0
  371. package/map/layers/InterpolationLayer/InterpolationLayer.d.ts +35 -0
  372. package/map/layers/InterpolationLayer/InterpolationLayer.js +256 -0
  373. package/map/layers/InterpolationLayer/LevelsFragmentShader.d.ts +2 -0
  374. package/map/layers/InterpolationLayer/LevelsFragmentShader.js +2 -0
  375. package/map/layers/InterpolationLayer/LevelsVertexShader.d.ts +2 -0
  376. package/map/layers/InterpolationLayer/LevelsVertexShader.js +2 -0
  377. package/map/layers/InterpolationLayer/index.d.ts +1 -0
  378. package/map/layers/InterpolationLayer/index.js +1 -0
  379. package/map/layers/ParticlesLayer/ParticlesFragmentShader.d.ts +2 -0
  380. package/map/layers/ParticlesLayer/ParticlesFragmentShader.js +2 -0
  381. package/map/layers/ParticlesLayer/ParticlesLayer.d.ts +40 -0
  382. package/map/layers/ParticlesLayer/ParticlesLayer.js +337 -0
  383. package/map/layers/ParticlesLayer/ParticlesVertexShader.d.ts +2 -0
  384. package/map/layers/ParticlesLayer/ParticlesVertexShader.js +2 -0
  385. package/map/layers/ParticlesLayer/UVFragmentShader.d.ts +2 -0
  386. package/map/layers/ParticlesLayer/UVFragmentShader.js +2 -0
  387. package/map/layers/ParticlesLayer/UVVertexShader.d.ts +2 -0
  388. package/map/layers/ParticlesLayer/UVVertexShader.js +2 -0
  389. package/map/layers/ParticlesLayer/index.d.ts +1 -0
  390. package/map/layers/ParticlesLayer/index.js +1 -0
  391. package/map/markers/ClusterMarker/ClusterMarker.d.ts +36 -0
  392. package/map/markers/ClusterMarker/ClusterMarker.js +99 -0
  393. package/map/markers/ClusterMarker/index.d.ts +1 -0
  394. package/map/markers/ClusterMarker/index.js +1 -0
  395. package/map/markers/RiskMarker/RiskMarker.d.ts +22 -0
  396. package/map/markers/RiskMarker/RiskMarker.js +61 -0
  397. package/map/markers/RiskMarker/index.d.ts +1 -0
  398. package/map/markers/RiskMarker/index.js +1 -0
  399. package/modules/MainMenu/Item.d.ts +42 -0
  400. package/modules/MainMenu/Item.js +94 -0
  401. package/modules/MainMenu/MainMenu.d.ts +20 -0
  402. package/modules/MainMenu/MainMenu.js +41 -0
  403. package/modules/MainMenu/index.d.ts +1 -0
  404. package/modules/MainMenu/index.js +1 -0
  405. package/modules/Root/Content.d.ts +16 -0
  406. package/modules/Root/Content.js +25 -0
  407. package/modules/Root/Overlay.d.ts +23 -0
  408. package/modules/Root/Overlay.js +33 -0
  409. package/modules/Root/Root.d.ts +7 -0
  410. package/modules/Root/Root.js +45 -0
  411. package/modules/Root/Shader.d.ts +15 -0
  412. package/modules/Root/Shader.js +24 -0
  413. package/modules/Root/Sidebar.d.ts +13 -0
  414. package/modules/Root/Sidebar.js +24 -0
  415. package/modules/Root/index.d.ts +1 -0
  416. package/modules/Root/index.js +1 -0
  417. package/modules/Root/stories/SampleContent.d.ts +7 -0
  418. package/modules/Root/stories/SampleContent.js +44 -0
  419. package/package.json +7 -7
  420. package/services/Dialog/AlertDialog.d.ts +31 -0
  421. package/services/Dialog/AlertDialog.js +29 -0
  422. package/services/Dialog/ConfirmDialog.d.ts +34 -0
  423. package/services/Dialog/ConfirmDialog.js +30 -0
  424. package/services/Dialog/Dialog.d.ts +91 -0
  425. package/services/Dialog/Dialog.js +92 -0
  426. package/services/Dialog/DialogBackground.d.ts +7 -0
  427. package/services/Dialog/DialogBackground.js +12 -0
  428. package/services/Dialog/DialogContent.d.ts +25 -0
  429. package/services/Dialog/DialogContent.js +38 -0
  430. package/services/Dialog/DialogFooter.d.ts +24 -0
  431. package/services/Dialog/DialogFooter.js +50 -0
  432. package/services/Dialog/DialogHeader.d.ts +18 -0
  433. package/services/Dialog/DialogHeader.js +36 -0
  434. package/services/Dialog/DialogWindow.d.ts +13 -0
  435. package/services/Dialog/DialogWindow.js +12 -0
  436. package/services/Dialog/XhrDialog.d.ts +34 -0
  437. package/services/Dialog/XhrDialog.js +321 -0
  438. package/services/Dialog/index.d.ts +1 -0
  439. package/services/Dialog/index.js +1 -0
  440. package/services/Toast/IToastMessage.d.ts +10 -0
  441. package/services/Toast/IToastMessage.js +1 -0
  442. package/services/Toast/IToastProps.d.ts +23 -0
  443. package/services/Toast/IToastProps.js +1 -0
  444. package/services/Toast/Toast.d.ts +21 -0
  445. package/services/Toast/Toast.js +79 -0
  446. package/services/Toast/ToastContainer.d.ts +40 -0
  447. package/services/Toast/ToastContainer.js +65 -0
  448. package/services/Toast/ToastContext.d.ts +22 -0
  449. package/services/Toast/ToastContext.js +7 -0
  450. package/services/Toast/ToastProvider.d.ts +19 -0
  451. package/services/Toast/ToastProvider.js +67 -0
  452. package/services/Toast/index.d.ts +2 -0
  453. package/services/Toast/index.js +2 -0
  454. package/services/Toast/useToast.d.ts +5 -0
  455. package/services/Toast/useToast.js +9 -0
  456. package/styles/NormalTheme.d.ts +3 -0
  457. package/styles/NormalTheme.js +65 -0
  458. package/styles/StyleBase.d.ts +2 -0
  459. package/styles/StyleBase.js +8 -0
  460. package/styles/StyleReset.d.ts +2 -0
  461. package/styles/StyleReset.js +8 -0
  462. package/styles/styled-theme.d.ts +0 -0
  463. package/styles/styled-theme.js +1 -0
  464. package/svg/editor/index.d.ts +10 -0
  465. package/svg/editor/index.js +11 -0
  466. package/svg/file/index.d.ts +5 -0
  467. package/svg/file/index.js +6 -0
  468. package/svg/icons/index.d.ts +36 -0
  469. package/svg/icons/index.js +37 -0
  470. package/svg/index.d.ts +11 -0
  471. package/svg/index.js +5 -0
  472. package/svg/menu/index.d.ts +8 -0
  473. package/svg/menu/index.js +9 -0
@@ -0,0 +1,51 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __rest = (this && this.__rest) || function (s, e) {
17
+ var t = {};
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
19
+ t[p] = s[p];
20
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
21
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
+ t[p[i]] = s[p[i]];
24
+ }
25
+ return t;
26
+ };
27
+ import * as React from 'react';
28
+ import styled, { css } from 'styled-components';
29
+ var MouseBase = function (props) {
30
+ return (React.createElement("svg", { className: props.className, viewBox: "3 0 22 29", xmlns: "http://www.w3.org/2000/svg" },
31
+ React.createElement("path", { d: "M14 1.75623C8.69307 1.75623 4.375 6.07429 4.375 11.3812V18.3812C4.375 23.6882 8.69307 28.0062 14 28.0062C19.3069 28.0062 23.625 23.6882 23.625 18.3812V11.3812C23.625 6.07429 19.3069 1.75623 14 1.75623ZM21.875 11.3812V12.2562H16.625V10.5062C16.625 9.36653 15.8911 8.40403 14.875 8.04199V3.55756C18.806 3.99506 21.875 7.33546 21.875 11.3812ZM14 9.63123C14.4834 9.63123 14.875 10.0239 14.875 10.5062V13.1312C14.875 13.6136 14.4834 14.0062 14 14.0062C13.5166 14.0062 13.125 13.6136 13.125 13.1312V10.5062C13.125 10.0239 13.5166 9.63123 14 9.63123ZM6.125 11.3812C6.125 7.33546 9.19403 3.99389 13.125 3.55779V8.04223C12.1089 8.40427 11.375 9.36677 11.375 10.5065V12.2565H6.125V11.3812ZM14 26.2562C9.65767 26.2562 6.125 22.7236 6.125 18.3812V14.0062H11.5358C11.8978 15.0223 12.8603 15.7562 14 15.7562C15.1397 15.7562 16.1022 15.0223 16.4642 14.0062H21.875V18.3812C21.875 22.7236 18.3423 26.2562 14 26.2562Z", fill: props.color }),
32
+ props.left && React.createElement("path", { className: "left", d: "M13.125 3.55798C9.19403 3.99408 6.125 7.33565 6.125 11.3814V12.2567H11.375V10.5067C11.375 9.36696 12.1089 8.40446 13.125 8.04242V3.55798Z" }),
33
+ props.right && React.createElement("path", { className: "right", d: "M21.875 12.2562V11.3812C21.875 7.33539 18.806 3.995 14.875 3.5575V8.04193C15.8911 8.40397 16.625 9.36647 16.625 10.5062V12.2562H21.875Z" }),
34
+ props.wheel && React.createElement("path", { className: "wheel", d: "M15.875 10.5062C15.875 9.47241 15.0365 8.63123 14 8.63123C12.9635 8.63123 12.125 9.47241 12.125 10.5062V13.1312C12.125 14.165 12.9635 15.0062 14 15.0062C15.0365 15.0062 15.875 14.165 15.875 13.1312V10.5062Z" })));
35
+ };
36
+ var MouseStyled = styled(MouseBase)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n max-height: 100px;\n fill: ", ";\n .left { fill: ", "; }\n .right { fill: ", "; }\n .wheel { fill: ", "; }\n"], ["\n ", "\n max-height: 100px;\n fill: ", ";\n .left { fill: ", "; }\n .right { fill: ", "; }\n .wheel { fill: ", "; }\n"
37
+ /**
38
+ * `Mouse` renders an SVG with a mouse image, optionally with its
39
+ * `left`, `right` or `wheel` buttons pressed.
40
+ */
41
+ ])), function (p) { return p.size && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: ", "px;\n "], ["\n height: ", "px;\n "])), p.size); }, function (p) { var _a; return (_a = p.color) !== null && _a !== void 0 ? _a : p.theme.colors.neutral[100]; }, function (p) { var _a; return (_a = p.color) !== null && _a !== void 0 ? _a : p.theme.colors.neutral[100]; }, function (p) { var _a; return (_a = p.color) !== null && _a !== void 0 ? _a : p.theme.colors.neutral[100]; }, function (p) { var _a; return (_a = p.accent) !== null && _a !== void 0 ? _a : p.theme.colors.primary[1]; });
42
+ /**
43
+ * `Mouse` renders an SVG with a mouse image, optionally with its
44
+ * `left`, `right` or `wheel` buttons pressed.
45
+ */
46
+ var Mouse = function (_a) {
47
+ var _b = _a.left, left = _b === void 0 ? false : _b, _c = _a.right, right = _c === void 0 ? false : _c, _d = _a.wheel, wheel = _d === void 0 ? false : _d, props = __rest(_a, ["left", "right", "wheel"]);
48
+ return React.createElement(MouseStyled, __assign({ left: left, right: right, wheel: wheel }, props));
49
+ };
50
+ export { Mouse };
51
+ var templateObject_1, templateObject_2;
@@ -0,0 +1 @@
1
+ export * from './Mouse';
@@ -0,0 +1 @@
1
+ export * from './Mouse';
@@ -0,0 +1,63 @@
1
+ import * as React from 'react';
2
+ interface IProps {
3
+ /** @ignore */
4
+ className?: string;
5
+ /** Button content. Can be JSX. */
6
+ children?: React.ReactNode;
7
+ /**
8
+ * A disabled button cannot be interacted with. this is implemented using
9
+ * `pointer-events: none`.
10
+ * @default false
11
+ */
12
+ disabled?: boolean;
13
+ /**
14
+ * A `positive` button will have a color that indicates a _positive
15
+ * consequence_, taken from the theme (usually a shade of green).
16
+ * @default false
17
+ */
18
+ positive?: boolean;
19
+ /**
20
+ * A `negative` button will have a color that indicates a _negative
21
+ * consequence_, taken from the theme (usually a shade of red).
22
+ * @default false
23
+ */
24
+ negative?: boolean;
25
+ /**
26
+ * `color` can be used to set a custom button color. This is only used
27
+ * if `positive` and `negative` are not present. The color is a valid
28
+ * CSS color value, e.g. `rgba(100,100,100,200)`.
29
+ */
30
+ color?: string;
31
+ /**
32
+ * Optional browser tooltip to show when the button is hovered.
33
+ */
34
+ title?: string;
35
+ /**
36
+ * Path to an SVG symbol, e.g. `/sprites.svg#close`. The `SVG` enumeration
37
+ * exists that offers preset paths.
38
+ */
39
+ icon?: string;
40
+ /**
41
+ * The icon color defaults to the lightest neutral color, but can be
42
+ * overridden. This must be a valid CSS color value.
43
+ */
44
+ iconColor?: string;
45
+ /**
46
+ * Fired when the button is clicked.
47
+ */
48
+ onClick: () => void;
49
+ }
50
+ /**
51
+ * Primary buttons denote the primary action. They may have icons or not and
52
+ * have three colors: `positive`, `negative`, and themed (the default).
53
+ * It renders as a `<button>` element.
54
+ *
55
+ * The `icon` name is passed in as a property. However, the other children of
56
+ * the button can be any React component.
57
+ *
58
+ * The color of the button defaults to a primary theme color, unless overridden
59
+ * with `positive`, `negative` or `color`. The button can be in a `disabled`
60
+ * state where it cannot be clicked.
61
+ */
62
+ declare const PrimaryButton: ({ disabled, positive, negative, ...props }: IProps) => React.JSX.Element;
63
+ export { PrimaryButton, IProps };
@@ -0,0 +1,83 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __rest = (this && this.__rest) || function (s, e) {
17
+ var t = {};
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
19
+ t[p] = s[p];
20
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
21
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
+ t[p[i]] = s[p[i]];
24
+ }
25
+ return t;
26
+ };
27
+ import * as React from 'react';
28
+ import styled, { css } from 'styled-components';
29
+ import { darken } from '../../helper/darken';
30
+ var PrimaryButtonBase = function (props) {
31
+ var handleClick = function () {
32
+ if (props.disabled)
33
+ return;
34
+ if (props.onClick)
35
+ props.onClick();
36
+ };
37
+ return (React.createElement("button", { tabIndex: props.disabled ? -1 : 0, className: props.className, onClick: handleClick, title: props.title },
38
+ props.icon && React.createElement("svg", null,
39
+ React.createElement("use", { xlinkHref: props.icon })),
40
+ props.children));
41
+ };
42
+ var PrimaryButtonStyled = styled(PrimaryButtonBase).attrs(function (p) {
43
+ return {
44
+ backgroundColor: p.disabled ? p.theme.colors.neutral[80]
45
+ : p.positive ? p.theme.colors.positive
46
+ : p.negative ? p.theme.colors.negative
47
+ : p.color ? p.color
48
+ : p.theme.colors.primary[1],
49
+ outlineColor: (p.positive || p.negative) ? p.theme.colors.primary[1]
50
+ : p.theme.colors.accent
51
+ };
52
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject([" \n // Size:\n height: 56px;\n padding-left: 16px;\n padding-right: 16px;\n min-width: 90px;\n \n // Font:\n font: ", ";\n color: ", ";\n\n // Presentation:\n background-color: ", ";\n transition: \n background-color ease-in-out ", "ms, \n box-shadow ease-in-out ", "ms;\n border-radius: ", "px;\n border: none;\n cursor: pointer;\n user-select: none;\n outline: none;\n\n // Content:\n display: flex;\n align-items: center;\n white-space: nowrap;\n flex-wrap: nowrap; \n justify-content: center; \n gap: 12px;\n\n box-shadow: ", ";\n &:hover {\n background-color: ", ";\n box-shadow: ", ";\n }\n &:active {\n background-color: ", ";\n box-shadow: none;\n }\n &:focus {\n outline: solid 2px ", ";\n }\n \n svg {\n fill: ", ";\n width: 24px;\n height: 24px; \n }\n\n ", "\n"], [" \n // Size:\n height: 56px;\n padding-left: 16px;\n padding-right: 16px;\n min-width: 90px;\n \n // Font:\n font: ", ";\n color: ", ";\n\n // Presentation:\n background-color: ", ";\n transition: \n background-color ease-in-out ", "ms, \n box-shadow ease-in-out ", "ms;\n border-radius: ", "px;\n border: none;\n cursor: pointer;\n user-select: none;\n outline: none;\n\n // Content:\n display: flex;\n align-items: center;\n white-space: nowrap;\n flex-wrap: nowrap; \n justify-content: center; \n gap: 12px;\n\n box-shadow: ", ";\n &:hover {\n background-color: ", ";\n box-shadow: ", ";\n }\n &:active {\n background-color: ", ";\n box-shadow: none;\n }\n &:focus {\n outline: solid 2px ", ";\n }\n \n svg {\n fill: ", ";\n width: 24px;\n height: 24px; \n }\n\n ", "\n"
53
+ /**
54
+ * Primary buttons denote the primary action. They may have icons or not and
55
+ * have three colors: `positive`, `negative`, and themed (the default).
56
+ * It renders as a `<button>` element.
57
+ *
58
+ * The `icon` name is passed in as a property. However, the other children of
59
+ * the button can be any React component.
60
+ *
61
+ * The color of the button defaults to a primary theme color, unless overridden
62
+ * with `positive`, `negative` or `color`. The button can be in a `disabled`
63
+ * state where it cannot be clicked.
64
+ */
65
+ ])), function (p) { return p.theme.font.labelLarge; }, function (p) { return p.theme.colors.neutral[100]; }, function (p) { return p.backgroundColor; }, function (p) { return p.theme.animation.duration; }, function (p) { return p.theme.animation.duration; }, function (p) { return p.theme.radius.strong; }, function (p) { return p.theme.shadows.medium; }, function (p) { return darken(0.025, p.backgroundColor); }, function (p) { return p.theme.shadows.large; }, function (p) { return p.backgroundColor; }, function (p) { return p.outlineColor; }, function (p) { var _a; return (_a = p.iconColor) !== null && _a !== void 0 ? _a : p.theme.colors.neutral[100]; }, function (p) { return p.disabled && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n cursor: auto;\n pointer-events: none;\n color: ", ";\n box-shadow: none;\n svg {\n fill: ", ";\n }\n "], ["\n cursor: auto;\n pointer-events: none;\n color: ", ";\n box-shadow: none;\n svg {\n fill: ", ";\n }\n "])), p.theme.colors.primary[3], p.theme.colors.primary[3]); });
66
+ /**
67
+ * Primary buttons denote the primary action. They may have icons or not and
68
+ * have three colors: `positive`, `negative`, and themed (the default).
69
+ * It renders as a `<button>` element.
70
+ *
71
+ * The `icon` name is passed in as a property. However, the other children of
72
+ * the button can be any React component.
73
+ *
74
+ * The color of the button defaults to a primary theme color, unless overridden
75
+ * with `positive`, `negative` or `color`. The button can be in a `disabled`
76
+ * state where it cannot be clicked.
77
+ */
78
+ var PrimaryButton = function (_a) {
79
+ var _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.positive, positive = _c === void 0 ? false : _c, _d = _a.negative, negative = _d === void 0 ? false : _d, props = __rest(_a, ["disabled", "positive", "negative"]);
80
+ return React.createElement(PrimaryButtonStyled, __assign({ disabled: disabled, positive: positive, negative: negative }, props));
81
+ };
82
+ export { PrimaryButton };
83
+ var templateObject_1, templateObject_2;
@@ -0,0 +1 @@
1
+ export * from './PrimaryButton';
@@ -0,0 +1 @@
1
+ export * from './PrimaryButton';
@@ -0,0 +1,35 @@
1
+ import * as React from 'react';
2
+ interface IProps {
3
+ /** @ignore */
4
+ className?: string;
5
+ /**
6
+ * Progress value (in range 0..100)
7
+ */
8
+ value: number;
9
+ /**
10
+ * If set, a percentage number is shown on the Progress bar.
11
+ * @default false
12
+ */
13
+ numbered?: boolean;
14
+ /**
15
+ * A padded `Progress` has a margin around it (of 10px).
16
+ * @default false
17
+ */
18
+ padded?: boolean;
19
+ /**
20
+ * Set progress bar thickness in pixels. Defaults to 5.
21
+ * @default 5
22
+ */
23
+ thickness?: number;
24
+ /**
25
+ * If set, sets the color of the Progress bar. By default,
26
+ * the color is the theme primary color.
27
+ */
28
+ color?: string;
29
+ }
30
+ /**
31
+ * The Progress component shows a progress bar, filled to a percentage equal to
32
+ * value. The bar always stretches to fill all horizontal space available to it.
33
+ */
34
+ declare const Progress: ({ thickness, numbered, padded, ...props }: IProps) => React.JSX.Element;
35
+ export { Progress, IProps };
@@ -0,0 +1,49 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __rest = (this && this.__rest) || function (s, e) {
17
+ var t = {};
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
19
+ t[p] = s[p];
20
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
21
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
+ t[p[i]] = s[p[i]];
24
+ }
25
+ return t;
26
+ };
27
+ import * as React from 'react';
28
+ import styled, { css } from 'styled-components';
29
+ var ProgressBase = function (props) {
30
+ return React.createElement("div", { className: props.className });
31
+ };
32
+ var ProgressStyled = styled(ProgressBase).attrs(function (p) { return ({
33
+ percentageStr: Math.round(Math.min(100, Math.max(0, p.value))).toString() + '%'
34
+ }); })(templateObject_3 || (templateObject_3 = __makeTemplateObject([" \n position: relative; \n box-sizing: border-box;\n height: ", "px;\n min-width: 100px;\n margin: 4px 0 4px 0;\n\n ", "\n background-color: ", ";\n border-radius: ", "px;\n \n &:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: ", ";\n height: 100%;\n box-sizing: border-box;\n transition: width ", "ms ease;\n background-color: ", ";\n border-radius: ", "px;\n }\n\n ", "\n"], [" \n position: relative; \n box-sizing: border-box;\n height: ", "px;\n min-width: 100px;\n margin: 4px 0 4px 0;\n\n ", "\n background-color: ", ";\n border-radius: ", "px;\n \n &:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: ", ";\n height: 100%;\n box-sizing: border-box;\n transition: width ", "ms ease;\n background-color: ", ";\n border-radius: ", "px;\n }\n\n ", "\n"
35
+ /**
36
+ * The Progress component shows a progress bar, filled to a percentage equal to
37
+ * value. The bar always stretches to fill all horizontal space available to it.
38
+ */
39
+ ])), function (p) { return p.thickness; }, function (p) { return p.padded && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["margin: 10px;"], ["margin: 10px;"]))); }, function (p) { return p.theme.colors.neutral[50]; }, function (p) { return p.thickness / 2; }, function (p) { return p.value + '%'; }, function (p) { return p.theme.animation.duration * 2; }, function (p) { var _a; return (_a = p.color) !== null && _a !== void 0 ? _a : p.theme.colors.primary[1]; }, function (p) { return p.thickness / 2; }, function (p) { return p.numbered && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &:after {\n content: '", "';\n position: absolute;\n top: 50%;\n right: 50%;\n font-size: 8px;\n line-height: 0;\n color: ", ";\n text-shadow: 0px 0px 4px #000;\n }\n "], ["\n &:after {\n content: '", "';\n position: absolute;\n top: 50%;\n right: 50%;\n font-size: 8px;\n line-height: 0;\n color: ", ";\n text-shadow: 0px 0px 4px #000;\n }\n "])), p.percentageStr, function (p) { return p.theme.colors.neutral[100]; }); });
40
+ /**
41
+ * The Progress component shows a progress bar, filled to a percentage equal to
42
+ * value. The bar always stretches to fill all horizontal space available to it.
43
+ */
44
+ var Progress = function (_a) {
45
+ var _b = _a.thickness, thickness = _b === void 0 ? 5 : _b, _c = _a.numbered, numbered = _c === void 0 ? false : _c, _d = _a.padded, padded = _d === void 0 ? false : _d, props = __rest(_a, ["thickness", "numbered", "padded"]);
46
+ return React.createElement(ProgressStyled, __assign({ thickness: thickness, numbered: numbered, padded: padded }, props));
47
+ };
48
+ export { Progress };
49
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -0,0 +1 @@
1
+ export * from './Progress';
@@ -0,0 +1 @@
1
+ export * from './Progress';
@@ -0,0 +1,58 @@
1
+ import * as React from 'react';
2
+ interface IProps {
3
+ /** @ignore */
4
+ className?: string;
5
+ /**
6
+ * A disabled button cannot be interacted with.
7
+ * @default false
8
+ */
9
+ disabled?: boolean;
10
+ /**
11
+ * Path to an SVG symbol, e.g. `/sprites.svg#close`. The `SVG` enumeration
12
+ * exists that offers preset paths.
13
+ */
14
+ icon: string;
15
+ /**
16
+ * A `positive` button will have a color that indicates a _positive
17
+ * consequence_, taken from the theme (usually a shade of green).
18
+ * @default false
19
+ */
20
+ positive?: boolean;
21
+ /**
22
+ * A `negative` button will have a color that indicates a _negative
23
+ * consequence_, taken from the theme (usually a shade of red).
24
+ * @default false
25
+ */
26
+ negative?: boolean;
27
+ /**
28
+ * `color` can be used to set a custom button color. This is only used
29
+ * if `positive` and `negative` are not present. The color is a valid
30
+ * CSS color value, e.g. `rgba(100,100,100,200)`.
31
+ */
32
+ color?: string;
33
+ /**
34
+ * Optional browser tooltip to show when the button is hovered. This may
35
+ * be relevant since this type of button has no text.
36
+ */
37
+ title?: string;
38
+ /**
39
+ * The icon color defaults to the lightest neutral color, but can be
40
+ * overridden. This must be a valid CSS color value.
41
+ */
42
+ iconColor?: string;
43
+ /**
44
+ * Fired when the button is clicked.
45
+ */
46
+ onClick: () => void;
47
+ }
48
+ /**
49
+ * The `SecondaryButton` is a small button that holds only an icon. It has no
50
+ * other content. It renders as a `<button>` element.
51
+ *
52
+ * The color of the button defaults to a neutral theme color, unless overridden
53
+ * with `positive`, `negative` or `color`.
54
+ *
55
+ * A `disabled` button cannot be clicked at all.
56
+ */
57
+ declare const SecondaryButton: ({ disabled, positive, negative, ...props }: IProps) => React.JSX.Element;
58
+ export { SecondaryButton, IProps };
@@ -0,0 +1,73 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __rest = (this && this.__rest) || function (s, e) {
17
+ var t = {};
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
19
+ t[p] = s[p];
20
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
21
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
+ t[p[i]] = s[p[i]];
24
+ }
25
+ return t;
26
+ };
27
+ import * as React from 'react';
28
+ import styled, { css } from 'styled-components';
29
+ var SecondaryButtonBase = function (props) {
30
+ var handleClick = function () {
31
+ if (props.disabled)
32
+ return;
33
+ if (props.onClick)
34
+ props.onClick();
35
+ };
36
+ return (React.createElement("button", { tabIndex: props.disabled ? -1 : 0, className: props.className, onClick: handleClick, title: props.title },
37
+ React.createElement("svg", null,
38
+ React.createElement("use", { xlinkHref: props.icon }))));
39
+ };
40
+ var SecondaryButtonStyled = styled(SecondaryButtonBase).attrs(function (p) {
41
+ return {
42
+ backgroundColor: p.disabled ? p.theme.colors.neutral[50]
43
+ : p.positive ? p.theme.colors.positive
44
+ : p.negative ? p.theme.colors.negative
45
+ : p.color ? p.color
46
+ : p.theme.colors.neutral[10]
47
+ };
48
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject([" \n // Size:\n height: 32px;\n width: 32px;\n\n // Presentation:\n background-color: ", ";\n // (Note that there is no hover state.)\n transition: \n background-color ease-in-out ", "ms, \n box-shadow ease-in-out ", "ms;\n border-radius: ", "px;\n border: none;\n cursor: pointer;\n user-select: none;\n outline: none;\n box-shadow: ", ";\n\n // Content alignment:\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n white-space: nowrap;\n\n &:hover {\n box-shadow: ", ";\n }\n\n &:focus {\n outline: solid 2px ", ";\n }\n\n // Button changes background & inset dropshadow when pressed:\n &:active {\n // Button background stays the same in case of color buttons:\n ", "\n box-shadow: none;\n }\n\n svg {\n fill: ", ";\n width: 13px;\n height: 13px;\n } \n\n ", "\n"], [" \n // Size:\n height: 32px;\n width: 32px;\n\n // Presentation:\n background-color: ", ";\n // (Note that there is no hover state.)\n transition: \n background-color ease-in-out ", "ms, \n box-shadow ease-in-out ", "ms;\n border-radius: ", "px;\n border: none;\n cursor: pointer;\n user-select: none;\n outline: none;\n box-shadow: ", ";\n\n // Content alignment:\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n white-space: nowrap;\n\n &:hover {\n box-shadow: ", ";\n }\n\n &:focus {\n outline: solid 2px ", ";\n }\n\n // Button changes background & inset dropshadow when pressed:\n &:active {\n // Button background stays the same in case of color buttons:\n ", "\n box-shadow: none;\n }\n\n svg {\n fill: ", ";\n width: 13px;\n height: 13px;\n } \n\n ", "\n"
49
+ /**
50
+ * The `SecondaryButton` is a small button that holds only an icon. It has no
51
+ * other content. It renders as a `<button>` element.
52
+ *
53
+ * The color of the button defaults to a neutral theme color, unless overridden
54
+ * with `positive`, `negative` or `color`.
55
+ *
56
+ * A `disabled` button cannot be clicked at all.
57
+ */
58
+ ])), function (p) { return p.backgroundColor; }, function (p) { return p.theme.animation.duration; }, function (p) { return p.theme.animation.duration; }, function (p) { return p.theme.radius.normal; }, function (p) { return p.theme.shadows.small; }, function (p) { return p.theme.shadows.medium; }, function (p) { return p.theme.colors.primary[1]; }, function (p) { return !p.positive && !p.negative && !p.color && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), p.theme.colors.neutral[10]); }, function (p) { var _a; return (_a = p.iconColor) !== null && _a !== void 0 ? _a : p.theme.colors.neutral[100]; }, function (p) { return p.disabled && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: auto;\n pointer-events: none;\n box-shadow: none;\n svg {\n fill: ", ";\n }\n "], ["\n cursor: auto;\n pointer-events: none;\n box-shadow: none;\n svg {\n fill: ", ";\n }\n "])), p.theme.colors.primary[3]); });
59
+ /**
60
+ * The `SecondaryButton` is a small button that holds only an icon. It has no
61
+ * other content. It renders as a `<button>` element.
62
+ *
63
+ * The color of the button defaults to a neutral theme color, unless overridden
64
+ * with `positive`, `negative` or `color`.
65
+ *
66
+ * A `disabled` button cannot be clicked at all.
67
+ */
68
+ var SecondaryButton = function (_a) {
69
+ var _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.positive, positive = _c === void 0 ? false : _c, _d = _a.negative, negative = _d === void 0 ? false : _d, props = __rest(_a, ["disabled", "positive", "negative"]);
70
+ return React.createElement(SecondaryButtonStyled, __assign({ disabled: disabled, positive: positive, negative: negative }, props));
71
+ };
72
+ export { SecondaryButton };
73
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -0,0 +1 @@
1
+ export * from './SecondaryButton';
@@ -0,0 +1 @@
1
+ export * from './SecondaryButton';
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ interface IProps {
3
+ /** @ignore */
4
+ className?: string;
5
+ /** @ignore */
6
+ children?: React.ReactNode;
7
+ /**
8
+ * Is this tab currently active?
9
+ */
10
+ active?: boolean;
11
+ /**
12
+ * Tabs use a fluid width. A fixed width (in pixels) can be provided.
13
+ */
14
+ tabWidth?: number;
15
+ /**
16
+ * Fired when tab is clicked.
17
+ */
18
+ onClick?: () => void;
19
+ }
20
+ declare const Tab: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLDivElement>>;
21
+ export { Tab, IProps };
@@ -0,0 +1,25 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ import * as React from 'react';
17
+ import styled, { css } from 'styled-components';
18
+ var TabBase = React.forwardRef(function (props, ref) {
19
+ return React.createElement("div", { className: props.className, ref: ref, onClick: props.onClick }, props.children);
20
+ });
21
+ var TabStyled = styled(TabBase)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n white-space: nowrap;\n padding: 0 20px;\n\n font: ", ";\n box-sizing: border-box;\n ", "\n height: 40px;\n z-index: 1;\n cursor: pointer;\n color: ", ";\n transition: color ", "ms ease-in-out;\n\n /* User cannot select header text.\n * This prevents accidental selection when clicking the tab.\n */\n user-select: none; \n\n ", " \n &:hover {\n color: ", ";\n }\n"], ["\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n white-space: nowrap;\n padding: 0 20px;\n\n font: ", ";\n box-sizing: border-box;\n ", "\n height: 40px;\n z-index: 1;\n cursor: pointer;\n color: ", ";\n transition: color ", "ms ease-in-out;\n\n /* User cannot select header text.\n * This prevents accidental selection when clicking the tab.\n */\n user-select: none; \n\n ", " \n &:hover {\n color: ", ";\n }\n"])), function (p) { return p.theme.font.labelLarge; }, function (p) { return p.tabWidth && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["min-width: ", "px;"], ["min-width: ", "px;"])), p.tabWidth); }, function (p) { return p.theme.colors.neutral[80]; }, function (p) { return p.theme.animation.duration; }, function (p) { return p.active && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), function (p) { return p.theme.colors.neutral[100]; }); }, function (p) { return p.theme.colors.neutral[100]; });
22
+ var Tab = React.forwardRef(function (props, ref) { return React.createElement(TabStyled, __assign({ ref: ref }, props)); });
23
+ Tab.displayName = "TabBar.Tab";
24
+ export { Tab };
25
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -0,0 +1,34 @@
1
+ import * as React from 'react';
2
+ interface IProps {
3
+ /** @ignore */
4
+ className?: string;
5
+ /**
6
+ * Children must be of type `TabBar.Tab`.
7
+ */
8
+ children?: React.ReactNode;
9
+ /**
10
+ * Index of the active tab.
11
+ * @default 0
12
+ */
13
+ active?: number;
14
+ /**
15
+ * Tabs use a fluid width. A fixed width (in pixels) can be provided.
16
+ */
17
+ tabWidth?: number;
18
+ /**
19
+ * Fired when the active tab changes. `idx` is the index of the new tab.
20
+ */
21
+ onChange?: (idx: number) => void;
22
+ }
23
+ /**
24
+ * A `TabBar` presents an array of `TabBar.Tab` children in a horizontal bar,
25
+ * with an underliner under the active child. The `onClick(idx)` event is fired
26
+ * when a tab is clicked.
27
+ *
28
+ * This is just a `TabBar`; if you need tabs and panes, use the `Tab` container.
29
+ */
30
+ declare const TabBar: {
31
+ ({ active, ...props }: IProps): React.JSX.Element;
32
+ Tab: React.ForwardRefExoticComponent<import("./Tab").IProps & React.RefAttributes<HTMLDivElement>>;
33
+ };
34
+ export { TabBar };