@moosend/mooskin 1.0.0 → 1.0.4

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 (305) hide show
  1. package/lib/Checkbox/Checkbox.d.ts +1 -1
  2. package/lib/Checkbox/styles.d.ts +1 -1
  3. package/lib/Drawer/styles.d.ts +1 -1
  4. package/lib/Input/styles.d.ts +1 -1
  5. package/lib/NumberLabel/model.d.ts +1 -1
  6. package/lib/Radio/Radio.d.ts +1 -1
  7. package/lib/Radio/styles.d.ts +1 -1
  8. package/lib/Styled/model.d.ts +15 -0
  9. package/lib/index/index.d.ts +9 -9
  10. package/lib/index/index.js +2 -2
  11. package/package.json +2 -5
  12. package/lib/Button/index.d.ts +0 -2
  13. package/lib/Button/index.js +0 -1
  14. package/lib/Button/style.css +0 -1
  15. package/lib/Carousel/index.d.ts +0 -2
  16. package/lib/Carousel/index.js +0 -12
  17. package/lib/Carousel/style.css +0 -326
  18. package/lib/CheckListItem/CheckListItem.d.ts +0 -24
  19. package/lib/CheckListItem/index.d.ts +0 -2
  20. package/lib/CheckListItem/index.js +0 -1
  21. package/lib/CheckListItem/style.css +0 -5
  22. package/lib/Checkbox/index.d.ts +0 -3
  23. package/lib/Checkbox/index.js +0 -1
  24. package/lib/Checkbox/style.css +0 -14
  25. package/lib/ClipboardButton/ClipboardButton.d.ts +0 -19
  26. package/lib/ClipboardButton/index.d.ts +0 -2
  27. package/lib/ClipboardButton/index.js +0 -1
  28. package/lib/ClipboardButton/style.css +0 -1
  29. package/lib/DatePicker/index.d.ts +0 -3
  30. package/lib/DatePicker/index.js +0 -12
  31. package/lib/DatePicker/style.css +0 -7
  32. package/lib/DateRange/index.d.ts +0 -2
  33. package/lib/DateRange/index.js +0 -12
  34. package/lib/DateRange/style.css +0 -19
  35. package/lib/Fieldset/Fieldset.d.ts +0 -16
  36. package/lib/Fieldset/index.d.ts +0 -2
  37. package/lib/Fieldset/index.js +0 -1
  38. package/lib/Fieldset/style.css +0 -2
  39. package/lib/File/FileUpload.d.ts +0 -43
  40. package/lib/File/index.d.ts +0 -2
  41. package/lib/File/index.js +0 -1
  42. package/lib/File/style.css +0 -1
  43. package/lib/Form/Form.d.ts +0 -36
  44. package/lib/Form/index.d.ts +0 -3
  45. package/lib/Form/index.js +0 -1
  46. package/lib/Form/style.css +0 -1
  47. package/lib/Grid/index.d.ts +0 -4
  48. package/lib/Grid/index.js +0 -1
  49. package/lib/Grid/style.css +0 -1
  50. package/lib/Headings/H1/H1.d.ts +0 -11
  51. package/lib/Headings/H2/H2.d.ts +0 -11
  52. package/lib/Headings/H3/H3.d.ts +0 -11
  53. package/lib/Headings/H4/H4.d.ts +0 -11
  54. package/lib/Headings/H5/H5.d.ts +0 -11
  55. package/lib/Headings/H6/H6.d.ts +0 -11
  56. package/lib/Headings/index.d.ts +0 -6
  57. package/lib/Headings/index.js +0 -1
  58. package/lib/Headings/props.d.ts +0 -7
  59. package/lib/Headings/style.css +0 -12
  60. package/lib/HorizontalRangeBar/HorizontalRangeBar.d.ts +0 -25
  61. package/lib/HorizontalRangeBar/index.d.ts +0 -2
  62. package/lib/HorizontalRangeBar/index.js +0 -1
  63. package/lib/HorizontalRangeBar/style.css +0 -1
  64. package/lib/Input/index.d.ts +0 -2
  65. package/lib/Input/index.js +0 -1
  66. package/lib/Input/style.css +0 -465
  67. package/lib/Label/index.d.ts +0 -2
  68. package/lib/Label/index.js +0 -1
  69. package/lib/Label/style.css +0 -2
  70. package/lib/List/index.d.ts +0 -3
  71. package/lib/List/index.js +0 -1
  72. package/lib/List/style.css +0 -2
  73. package/lib/Loader/index.d.ts +0 -2
  74. package/lib/Loader/index.js +0 -1
  75. package/lib/Loader/style.css +0 -1
  76. package/lib/LoadingBar/index.d.ts +0 -2
  77. package/lib/LoadingBar/index.js +0 -1
  78. package/lib/LoadingBar/style.css +0 -1
  79. package/lib/Modal/index.d.ts +0 -2
  80. package/lib/Modal/index.js +0 -1
  81. package/lib/Modal/style.css +0 -15
  82. package/lib/Pagination/index.d.ts +0 -2
  83. package/lib/Pagination/index.js +0 -1
  84. package/lib/Pagination/style.css +0 -1
  85. package/lib/Radio/index.d.ts +0 -3
  86. package/lib/Radio/index.js +0 -1
  87. package/lib/Radio/style.css +0 -13
  88. package/lib/RadioAccordion/RadioAccordion.d.ts +0 -49
  89. package/lib/RadioAccordion/index.d.ts +0 -3
  90. package/lib/RadioAccordion/index.js +0 -1
  91. package/lib/RadioAccordion/style.css +0 -1
  92. package/lib/Select/index.d.ts +0 -3
  93. package/lib/Select/index.js +0 -1
  94. package/lib/Select/style.css +0 -2
  95. package/lib/SideBar/SideBar.d.ts +0 -79
  96. package/lib/SideBar/index.d.ts +0 -3
  97. package/lib/SideBar/index.js +0 -1
  98. package/lib/SideBar/style.css +0 -3
  99. package/lib/Slider/index.d.ts +0 -3
  100. package/lib/Slider/index.js +0 -1
  101. package/lib/Slider/style.css +0 -2
  102. package/lib/SmallIconButton/SmallIconButton.d.ts +0 -23
  103. package/lib/SmallIconButton/index.d.ts +0 -2
  104. package/lib/SmallIconButton/index.js +0 -1
  105. package/lib/SmallIconButton/style.css +0 -2
  106. package/lib/StatsBox/StatsBox.d.ts +0 -16
  107. package/lib/StatsBox/index.d.ts +0 -2
  108. package/lib/StatsBox/index.js +0 -1
  109. package/lib/StatsBox/style.css +0 -2
  110. package/lib/Steps/index.d.ts +0 -3
  111. package/lib/Steps/index.js +0 -1
  112. package/lib/Steps/style.css +0 -1
  113. package/lib/Switch/index.d.ts +0 -2
  114. package/lib/Switch/index.js +0 -1
  115. package/lib/Switch/style.css +0 -1
  116. package/lib/TabbedContent/TabbedContent.d.ts +0 -72
  117. package/lib/TabbedContent/index.d.ts +0 -3
  118. package/lib/TabbedContent/index.js +0 -1
  119. package/lib/TabbedContent/style.css +0 -4
  120. package/lib/Table/index.d.ts +0 -3
  121. package/lib/Table/index.js +0 -1
  122. package/lib/Table/style.css +0 -6
  123. package/lib/Tags/index.d.ts +0 -2
  124. package/lib/Tags/index.js +0 -1
  125. package/lib/Tags/style.css +0 -3
  126. package/lib/TextArea/index.d.ts +0 -2
  127. package/lib/TextArea/index.js +0 -1
  128. package/lib/TextArea/style.css +0 -1
  129. package/lib/TextEditor/index.d.ts +0 -2
  130. package/lib/TextEditor/index.js +0 -28
  131. package/lib/TextEditor/style.css +0 -852
  132. package/lib/TopNotification/TopNotification.d.ts +0 -27
  133. package/lib/TopNotification/index.d.ts +0 -2
  134. package/lib/TopNotification/index.js +0 -1
  135. package/lib/TopNotification/style.css +0 -2
  136. package/lib/Topbar/Topbar.d.ts +0 -23
  137. package/lib/Topbar/index.d.ts +0 -2
  138. package/lib/Topbar/index.js +0 -1
  139. package/lib/Topbar/style.css +0 -1
  140. package/lib/_utils/index.js +0 -1
  141. package/lib/components/ActionsDropdown/ActionsDropdown.d.ts +0 -6
  142. package/lib/components/ActionsDropdown/model.d.ts +0 -10
  143. package/lib/components/ActionsDropdown/styles.d.ts +0 -6
  144. package/lib/components/Alert/Alert.d.ts +0 -7
  145. package/lib/components/Alert/model.d.ts +0 -5
  146. package/lib/components/Alert/styles.d.ts +0 -7
  147. package/lib/components/Anchor/Anchor.d.ts +0 -3
  148. package/lib/components/Anchor/model.d.ts +0 -4
  149. package/lib/components/Anchor/styles.d.ts +0 -3
  150. package/lib/components/Box/Box.d.ts +0 -3
  151. package/lib/components/Box/model.d.ts +0 -113
  152. package/lib/components/Box/styles.d.ts +0 -7
  153. package/lib/components/Button/Button.d.ts +0 -5
  154. package/lib/components/Button/model.d.ts +0 -6
  155. package/lib/components/Button/styles.d.ts +0 -6
  156. package/lib/components/Carousel/Carousel.d.ts +0 -7
  157. package/lib/components/Carousel/model.d.ts +0 -33
  158. package/lib/components/Carousel/styles.d.ts +0 -4
  159. package/lib/components/Checkbox/Checkbox.d.ts +0 -8
  160. package/lib/components/Checkbox/model.d.ts +0 -12
  161. package/lib/components/Checkbox/styles.d.ts +0 -6
  162. package/lib/components/DatePicker/DatePicker.d.ts +0 -3
  163. package/lib/components/DatePicker/model.d.ts +0 -11
  164. package/lib/components/DateRange/DateRange.d.ts +0 -5
  165. package/lib/components/DateRange/model.d.ts +0 -13
  166. package/lib/components/DateSelect/DateSelect.d.ts +0 -3
  167. package/lib/components/DateSelect/model.d.ts +0 -7
  168. package/lib/components/DateTimePicker/DateTimePicker.d.ts +0 -3
  169. package/lib/components/DateTimePicker/model.d.ts +0 -11
  170. package/lib/components/Description/Description.d.ts +0 -3
  171. package/lib/components/Description/styles.d.ts +0 -3
  172. package/lib/components/Drawer/Drawer.d.ts +0 -10
  173. package/lib/components/Drawer/model.d.ts +0 -21
  174. package/lib/components/Drawer/styles.d.ts +0 -25
  175. package/lib/components/Expandable/Expandable.d.ts +0 -9
  176. package/lib/components/Expandable/model.d.ts +0 -13
  177. package/lib/components/Expandable/styles.d.ts +0 -9
  178. package/lib/components/Footer/Footer.d.ts +0 -6
  179. package/lib/components/Footer/styles.d.ts +0 -7
  180. package/lib/components/Grid/Grid.d.ts +0 -5
  181. package/lib/components/Grid/model.d.ts +0 -18
  182. package/lib/components/Grid/styles.d.ts +0 -5
  183. package/lib/components/IconButton/IconButton.d.ts +0 -3
  184. package/lib/components/IconButton/model.d.ts +0 -4
  185. package/lib/components/IconButton/styles.d.ts +0 -3
  186. package/lib/components/Image/Image.d.ts +0 -3
  187. package/lib/components/Image/styles.d.ts +0 -3
  188. package/lib/components/Input/Input.d.ts +0 -12
  189. package/lib/components/Input/model.d.ts +0 -27
  190. package/lib/components/Input/styles.d.ts +0 -12
  191. package/lib/components/Label/Label.d.ts +0 -3
  192. package/lib/components/Label/model.d.ts +0 -5
  193. package/lib/components/Label/styles.d.ts +0 -3
  194. package/lib/components/Layout/Layout.d.ts +0 -3
  195. package/lib/components/Layout/model.d.ts +0 -5
  196. package/lib/components/Layout/styles.d.ts +0 -3
  197. package/lib/components/List/List.d.ts +0 -8
  198. package/lib/components/List/styles.d.ts +0 -7
  199. package/lib/components/Loader/Loader.d.ts +0 -3
  200. package/lib/components/Loader/model.d.ts +0 -5
  201. package/lib/components/Loader/styles.d.ts +0 -3
  202. package/lib/components/LoadingBar/LoadingBar.d.ts +0 -3
  203. package/lib/components/LoadingBar/model.d.ts +0 -7
  204. package/lib/components/LoadingBar/styles.d.ts +0 -3
  205. package/lib/components/Modal/Modal.d.ts +0 -10
  206. package/lib/components/Modal/model.d.ts +0 -15
  207. package/lib/components/Modal/styles.d.ts +0 -14
  208. package/lib/components/NumberLabel/NumberLabel.d.ts +0 -3
  209. package/lib/components/NumberLabel/model.d.ts +0 -7
  210. package/lib/components/Pagination/Pagination.d.ts +0 -4
  211. package/lib/components/Pagination/model.d.ts +0 -10
  212. package/lib/components/Pagination/styles.d.ts +0 -6
  213. package/lib/components/Radio/Radio.d.ts +0 -8
  214. package/lib/components/Radio/model.d.ts +0 -13
  215. package/lib/components/Radio/styles.d.ts +0 -6
  216. package/lib/components/Select/Select.d.ts +0 -13
  217. package/lib/components/Select/model.d.ts +0 -22
  218. package/lib/components/Select/styles.d.ts +0 -13
  219. package/lib/components/Selector/Selector.d.ts +0 -4
  220. package/lib/components/Selector/model.d.ts +0 -10
  221. package/lib/components/Selector/styles.d.ts +0 -4
  222. package/lib/components/Sidemenu/Sidemenu.d.ts +0 -4
  223. package/lib/components/Sidemenu/model.d.ts +0 -10
  224. package/lib/components/Sidemenu/styles.d.ts +0 -4
  225. package/lib/components/Skeleton/Skeleton.d.ts +0 -5
  226. package/lib/components/Skeleton/model.d.ts +0 -14
  227. package/lib/components/Skeleton/styles.d.ts +0 -6
  228. package/lib/components/Slider/Model.d.ts +0 -7
  229. package/lib/components/Slider/Slider.d.ts +0 -3
  230. package/lib/components/Slider/styles.d.ts +0 -3
  231. package/lib/components/Stack/Stack.d.ts +0 -5
  232. package/lib/components/Stack/model.d.ts +0 -6
  233. package/lib/components/Stack/styles.d.ts +0 -3
  234. package/lib/components/Steps/Steps.d.ts +0 -6
  235. package/lib/components/Steps/model.d.ts +0 -16
  236. package/lib/components/Steps/styles.d.ts +0 -7
  237. package/lib/components/Styled/GlobalStyles.d.ts +0 -2
  238. package/lib/components/Styled/MooskinContextProvider.d.ts +0 -6
  239. package/lib/components/Styled/model.d.ts +0 -74
  240. package/lib/components/Switch/Switch.d.ts +0 -4
  241. package/lib/components/Switch/model.d.ts +0 -16
  242. package/lib/components/Switch/styles.d.ts +0 -7
  243. package/lib/components/Table/Table.d.ts +0 -7
  244. package/lib/components/Table/styles.d.ts +0 -7
  245. package/lib/components/Tabs/Tabs.d.ts +0 -6
  246. package/lib/components/Tabs/model.d.ts +0 -13
  247. package/lib/components/Tabs/styles.d.ts +0 -6
  248. package/lib/components/Tags/Tags.d.ts +0 -7
  249. package/lib/components/Tags/model.d.ts +0 -18
  250. package/lib/components/Tags/styles.d.ts +0 -8
  251. package/lib/components/Text/Text.d.ts +0 -3
  252. package/lib/components/Text/model.d.ts +0 -4
  253. package/lib/components/Text/styles.d.ts +0 -3
  254. package/lib/components/TextArea/TextArea.d.ts +0 -3
  255. package/lib/components/TextArea/model.d.ts +0 -4
  256. package/lib/components/TextArea/styles.d.ts +0 -3
  257. package/lib/components/TextEditor/TextEditor.d.ts +0 -3
  258. package/lib/components/TextEditor/model.d.ts +0 -14
  259. package/lib/components/_utils/adapter.d.ts +0 -1
  260. package/lib/components/_utils/globals/screens.d.ts +0 -11
  261. package/lib/components/_utils/globals/variables.d.ts +0 -3
  262. package/lib/components/_utils/helper.d.ts +0 -3
  263. package/lib/components/_utils/index.d.ts +0 -3
  264. package/lib/components/_utils/test-setup.d.ts +0 -0
  265. package/lib/components/_utils/types/commonTypes.d.ts +0 -4
  266. package/lib/components/index/index.d.ts +0 -85
  267. package/lib/stories/ActionsDropdown.stories.d.ts +0 -6
  268. package/lib/stories/Alert.stories.d.ts +0 -5
  269. package/lib/stories/Anchor.stories.d.ts +0 -5
  270. package/lib/stories/Box.stories.d.ts +0 -4
  271. package/lib/stories/Button.stories.d.ts +0 -8
  272. package/lib/stories/Carousel.stories.d.ts +0 -4
  273. package/lib/stories/Checkbox.stories.d.ts +0 -8
  274. package/lib/stories/DatePicker.stories.d.ts +0 -4
  275. package/lib/stories/DateRange.stories.d.ts +0 -4
  276. package/lib/stories/DateSelect.stories.d.ts +0 -9
  277. package/lib/stories/DateTimePicker.stories.d.ts +0 -4
  278. package/lib/stories/Drawer.stories.d.ts +0 -6
  279. package/lib/stories/Expandable.stories.d.ts +0 -4
  280. package/lib/stories/Footer.stories.d.ts +0 -4
  281. package/lib/stories/Grid.stories.d.ts +0 -4
  282. package/lib/stories/IconButton.stories.d.ts +0 -5
  283. package/lib/stories/Input.stories.d.ts +0 -6
  284. package/lib/stories/Layout.stories.d.ts +0 -4
  285. package/lib/stories/List.stories.d.ts +0 -5
  286. package/lib/stories/Loader.stories.d.ts +0 -4
  287. package/lib/stories/LoadingBar.stories.d.ts +0 -4
  288. package/lib/stories/Modal.stories.d.ts +0 -4
  289. package/lib/stories/NumberLabel.stories.d.ts +0 -10
  290. package/lib/stories/Pagination.stories.d.ts +0 -4
  291. package/lib/stories/Radio.stories.d.ts +0 -8
  292. package/lib/stories/Select.stories.d.ts +0 -7
  293. package/lib/stories/Selector.stories.d.ts +0 -4
  294. package/lib/stories/Sidemenu.stories.d.ts +0 -4
  295. package/lib/stories/Skeleton.stories.d.ts +0 -6
  296. package/lib/stories/Slider.stories.d.ts +0 -4
  297. package/lib/stories/Stack.stories.d.ts +0 -9
  298. package/lib/stories/StackedTags.stories.d.ts +0 -4
  299. package/lib/stories/Steps.stories.d.ts +0 -4
  300. package/lib/stories/Switch.stories.d.ts +0 -6
  301. package/lib/stories/Table.stories.d.ts +0 -4
  302. package/lib/stories/Tabs.stories.d.ts +0 -4
  303. package/lib/stories/Tags.stories.d.ts +0 -6
  304. package/lib/stories/TextEditor.stories.d.ts +0 -8
  305. package/lib/stories/Textarea.stories.d.ts +0 -5
@@ -1,3 +0,0 @@
1
- import Slider, { ABSlider } from './Slider';
2
- export default Slider;
3
- export { ABSlider };
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("mooskin",["react"],t):"object"==typeof exports?exports.mooskin=t(require("react")):e.mooskin=t(e.react)}(this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="../",n(n.s=312)}({0:function(t,n){t.exports=e},15:function(e,t,n){e.exports={sliderContainer:"sliderContainer___2fBDi",slider:"slider___3H7Mv",disabled:"disabled___22IMi",sliderLabel:"sliderLabel___EfRGU",trackLabels:"trackLabels___1NLEg",trackLabel:"trackLabel___2IKgy",tooltip:"tooltip___jtgeV",classesIE:"classesIE___Ctk_B",fill:"fill___2UKLa",disabledFill:"disabledFill___BJQEC",edgeClasses:"edgeClasses___1mXEc",abContainer:"abContainer___1n1TB",section:"section___2uysd",font:"font___6b4f5",sectionA:"sectionA___1eMQW",sectionB:"sectionB___1I9FG",sectionW:"sectionW___1fZXc",abSlider:"abSlider___2HOnl",percentText:"percentText___2_jC1"}},312:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(15),o=n.n(a);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=l(this,c(t).call(this,e))).sliderRef=r.createRef(),n.renderSlider=function(){if(n.props.range){var e=n.props.range?n.props.range[0]:1,t=n.props.range?n.props.range[1]:100;return n.getSliderWithType(e,t,n.props.value,n.onSliderChange)}if(n.props.values){var r=n.props.values?n.props.values.length-1:100,a=n.props.values&&n.props.values.indexOf(n.props.value);return n.getSliderWithType(0,r,a,n.onValuesSliderChange)}},n.getSliderWithType=function(e,t,a,s){var i=n.props.disabled?o.a.disabled:"",l=n.isEdge()?o.a.edgeClasses:"",c=n.isIE()?o.a.classesIE:"";return r.createElement("input",{ref:n.sliderRef,id:n.props.id,style:n.props.style,className:"".concat(o.a.slider," ").concat(i," ").concat(l," ").concat(c," ").concat(n.props.className),value:a,min:e,max:t,type:"range",onChange:s,disabled:n.props.disabled,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onMouseMove:n.onMouseMove})},n.renderTrackLabels=function(){var e=n.props,t=e.range,a=e.values,s=[];if(t)s=t;else{if(!a)return"";s=a}var i=s.map(function(e,t){return r.createElement("span",{key:t,className:o.a.trackLabel},e)});return r.createElement("div",{className:o.a.trackLabels},i)},n.renderTooltip=function(){var e=n.state.dragging?{}:{display:"none"},t=n.props.label?{}:{top:-40};return r.createElement("div",{style:Object.assign({},e,{left:n.state.left},t),className:o.a.tooltip},n.props.value)},n.onSliderChange=function(e){n.props.onChange&&n.props.onChange(e,{value:e.target.value,dataLabel:n.props.dataLabel})},n.onValuesSliderChange=function(e){var t=n.props.values&&n.props.values[e.target.value];n.props.onChange&&n.props.onChange(e,{value:t,dataLabel:n.props.dataLabel})},n.onMouseMove=function(e){if(n.state.dragging){var t=n.getPosition(e);n.setState({left:t})}},n.getPosition=function(e){var t=n.sliderRef.current.offsetWidth-25;return e.nativeEvent.offsetX<0?0:e.nativeEvent.offsetX>t?t:e.nativeEvent.offsetX},n.getStepsCount=function(){for(var e=n.props.range&&n.props.range[0]||0,t=n.props.range&&n.props.range[1]||0,r=[],a=e;a<=t;a++)r.push(a);return r.indexOf(parseInt(n.props.value.toString(),10))},n.getThumbPosition=function(e){var t=n.props.values?e.max:n.props.range?n.props.range[1]-n.props.range[0]:0,r=100*((n.props.range?n.getStepsCount():e.value)/t);return r>98?98:r},n.renderFill=function(){var e=n.props,t=e.fillClassName,a=e.fillStyle,s=n.sliderRef.current?n.getThumbPosition(n.sliderRef.current)+"%":"0%",i=n.props.label?{top:"23px"}:{},l=n.props.disabled?o.a.disabledFill:"";return r.createElement("div",{className:"".concat(o.a.fill," ").concat(l," ").concat(t),style:Object.assign({width:s},i,a)})},n.onMouseDown=function(e){var t=n.getPosition(e);n.setState({dragging:!0,left:t})},n.onMouseUp=function(e){n.setState({dragging:!1})},n.isEdge=function(){var e=window;return!n.isIE()&&!!e.StyleMedia},n.isIE=function(){return!!document.documentMode},n.state={dragging:!1,left:0},n}var n,a,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,r["Component"]),n=t,(a=[{key:"componentDidMount",value:function(){this.forceUpdate()}},{key:"render",value:function(){var e=this.props,t=e.label,n=e.tooltip,a=e.trackLabels,s=this.renderSlider();return r.createElement("div",{className:"".concat(o.a.sliderContainer)},t&&r.createElement("label",{className:o.a.sliderLabel},t),s,!this.isEdge()&&this.renderFill(),a&&this.renderTrackLabels(),n&&this.renderTooltip())}}])&&i(n.prototype,a),s&&i(n,s),t}();p.displayName="Slider";var f=function(e){var t,n,a,s=e.min?e.min:5,i=e.max?e.max:40,l=e.percentage>i?i:e.percentage<s?s:e.percentage,c=(t=e.count,n=l,(a=Math.floor(t/100*n))<1?1:a),u=e.count<=1e3?e.count-2*c:function(e,t){return Math.ceil(e/100*t)}(e.count,100-2*l);return r.createElement("div",{className:"".concat(o.a.abContainer," ").concat(e.className),style:e.style},r.createElement("div",{className:"".concat(o.a.section," ").concat(o.a.sectionA),style:{left:0,right:"".concat(100-l,"%")}},r.createElement("span",{className:o.a.font},"A"),r.createElement("span",{className:o.a.percentText},l,"% (",0===e.count?0:c,")")),r.createElement("div",{className:"".concat(o.a.section," ").concat(o.a.sectionB),style:{left:"".concat(l,"%"),right:"".concat(100-2*l,"%")}},r.createElement("span",{className:o.a.font},"B"),r.createElement("span",{className:o.a.percentText},l,"% (",1===e.count||0===e.count?0:c,")")),r.createElement("div",{className:"".concat(o.a.section," ").concat(o.a.sectionW),style:{left:"".concat(2*l,"%"),right:0}},r.createElement("span",{className:o.a.font},"Winner"),r.createElement("span",{className:o.a.percentText},100-2*l,"% (",u<0?0:u,")")),r.createElement("input",{id:e.id,value:2*e.percentage,type:"range",style:{margin:0},step:2,min:0,max:100,onChange:function(t){var n=parseInt(t.target.value,10)/2<s?s:parseInt(t.target.value,10)/2>i?i:parseInt(t.target.value,10)/2;e.onChange&&e.onChange(t,{value:n,dataLabel:e.dataLabel})}}))};f.displayName="ABSlider",n.d(t,"ABSlider",function(){return f});t.default=p}})});
@@ -1,2 +0,0 @@
1
- @import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:500|Convergence);
2
- .sliderContainer___2fBDi{z-index:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.sliderContainer___2fBDi input[type=range],.sliderContainer___2fBDi input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:transparent}.slider___3H7Mv{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;cursor:pointer;opacity:1;-webkit-transition:all .2s;transition:all .2s}.slider___3H7Mv:disabled{opacity:1}.slider___3H7Mv:hover{opacity:1}.disabled___22IMi{cursor:not-allowed}.sliderLabel___EfRGU{color:#6b6b6b;font-size:14.857px;font-size:.92857142857rem;margin-bottom:5px}.trackLabels___1NLEg{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:5px}.trackLabel___2IKgy{color:#6b6b6b;font-size:12px;font-size:.75rem}.tooltip___jtgeV{position:absolute;border-radius:4px;padding:5px;border:1px solid #eaeaea;top:-20px;left:0;z-index:1;background:#fff;font-size:14px;font-size:.875rem;font-family:Convergence,Alegreya Sans,sans-serif}.sliderContainer___2fBDi input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;border:1px solid #d3d3d3;height:20px;width:20px;border-radius:4px;background:#efefef;cursor:pointer;margin-top:-4px;-webkit-box-shadow:1px 1px 1px #aaa,0 0 1px #aaa;box-shadow:1px 1px 1px #aaa,0 0 1px #aaa}.sliderContainer___2fBDi input[type=range]::-ms-thumb{appearance:none;border:1px solid #d3d3d3;height:20px;width:20px;border-radius:4px;background:#efefef;cursor:pointer;margin-top:-4px;box-shadow:1px 1px 1px #aaa,0 0 1px #aaa}.sliderContainer___2fBDi input[type=range]::-ms-tooltip{display:none}.sliderContainer___2fBDi input[type=range]:active::-webkit-slider-thumb{background:#fff}.sliderContainer___2fBDi input[type=range]:disabled::-webkit-slider-thumb{background:#dbdbdb;opacity:1;cursor:not-allowed}.sliderContainer___2fBDi input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none;height:13px;cursor:pointer;-webkit-box-shadow:1px 1px 1px #aaa,0 0 1px #aaa;box-shadow:1px 1px 1px #aaa,0 0 1px #aaa;border-radius:1.3px;border:.2px solid #aaa}.sliderContainer___2fBDi input[type=range]:disabled::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none;background:#e9e9e9;cursor:not-allowed;opacity:1}.sliderContainer___2fBDi input[type=range]::-moz-range-track{-moz-appearance:none;appearance:none;height:13px;cursor:pointer;box-shadow:1px 1px 1px #aaa,0 0 1px #aaa;border-radius:1.3px;border:1px solid #aaa}.sliderContainer___2fBDi input[type=range]::-ms-track{appearance:none;height:13px;cursor:pointer;border-color:transparent;border-width:16px 0;color:transparent}.classesIE___Ctk_B{width:100%;top:0;left:0;bottom:0;right:0}.classesIE___Ctk_B,.fill___2UKLa{position:absolute}.fill___2UKLa{height:13px;width:0;cursor:pointer;background:#eee;-webkit-box-shadow:1px 1px 1px #aaa,0 0 1px #aaa;box-shadow:1px 1px 1px #aaa,0 0 1px #aaa;border-radius:3px;border:.2px solid #aaa;top:2px;left:2px;z-index:-1}.disabledFill___BJQEC{background:#ccc}.edgeClasses___1mXEc{width:100%}input.edgeClasses___1mXEc[type=range]::-ms-fill-lower{background:#eee;border:.2px solid #aaa;border-radius:2.6px;box-shadow:1px 1px 1px #aaa,0 0 1px #aaa}input.edgeClasses___1mXEc[type=range]::-ms-fill-upper{background:#fff;box-shadow:1px 1px 1px #aaa,0 0 1px #aaa;border-radius:1.3px;border:.2px solid #aaa}.abContainer___1n1TB{z-index:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;height:100px}.abContainer___1n1TB input[type=range]::-webkit-slider-thumb{width:20px;margin-top:-4px;background:green}.abContainer___1n1TB input[type=range],.abContainer___1n1TB input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:transparent}.abContainer___1n1TB input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;border:1px solid #d3d3d3;height:110px;width:10px;border-radius:4px;background:#efefef;cursor:pointer;margin-top:0;-webkit-box-shadow:1px 1px 1px #aaa,0 0 1px #aaa;box-shadow:1px 1px 1px #aaa,0 0 1px #aaa}.abContainer___1n1TB input[type=range]::-webkit-slider-thumb:hover{cursor:col-resize}.abContainer___1n1TB input[type=range]:active::-webkit-slider-thumb{background:#fff}.abContainer___1n1TB input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none}.abContainer___1n1TB input[type=range]:disabled::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none}.abContainer___1n1TB input[type=range]::-moz-range-track{-moz-appearance:none;appearance:none}.abContainer___1n1TB input[type=range]::-ms-track{appearance:none;visibility:hidden}.abContainer___1n1TB input[type=range]{position:absolute;width:100%;top:0;left:0;bottom:0;right:0;background-color:transparent;color:transparent}.abContainer___1n1TB input[type=range]::-ms-fill-lower{background-color:transparent;color:transparent}.abContainer___1n1TB input[type=range]::-ms-thumb{appearance:none;visibility:hidden}.section___2uysd{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;-webkit-box-align:center;-ms-flex-align:center;align-items:center;z-index:-1;top:0;bottom:0;text-align:center}.font___6b4f5{font-size:32px;font-weight:400;color:#6b6b6b;font-family:Convergence,Alegreya Sans,sans-serif}.abContainer___1n1TB input:hover{cursor:col-resize}.sectionA___1eMQW{border-top-left-radius:10px;border-bottom-left-radius:10px;background:#5ccddf}.sectionB___1I9FG{background:#f48770}.sectionW___1fZXc{background:#f2c14a;border-top-right-radius:10px;border-bottom-right-radius:10px}.abSlider___2HOnl{position:absolute;top:0;right:0;left:0;bottom:0;width:100%;margin:0}.percentText___2_jC1{color:#6b6b6b;font-size:14px}
@@ -1,23 +0,0 @@
1
- import * as React from 'react';
2
- export interface ISmallIconButtonProps {
3
- disabled?: boolean;
4
- transparent?: boolean;
5
- icon?: string;
6
- id?: string;
7
- className?: string;
8
- style?: React.CSSProperties;
9
- type?: 'outlined' | 'twotone' | 'round' | 'sharp';
10
- title?: string;
11
- onClick?: (e?: React.MouseEvent<HTMLElement>) => void;
12
- }
13
- export default class SmallIconButton extends React.Component<ISmallIconButtonProps, {}> {
14
- static defaultProps: {
15
- className: string;
16
- style: {};
17
- type: string;
18
- };
19
- static displayName: string;
20
- render(): JSX.Element;
21
- onClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
22
- getIcon: () => string;
23
- }
@@ -1,2 +0,0 @@
1
- import SmallIconButton from './SmallIconButton';
2
- export default SmallIconButton;
@@ -1 +0,0 @@
1
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define("mooskin",["react"],n):"object"==typeof exports?exports.mooskin=n(require("react")):t.mooskin=n(t.react)}(this,function(t){return function(t){var n={};function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(o,r,function(n){return t[n]}.bind(null,r));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="../",e(e.s=49)}({0:function(n,e){n.exports=t},49:function(t,n,e){"use strict";e.r(n);var o=e(50);n.default=o.a},50:function(t,n,e){"use strict";e.d(n,"a",function(){return y});var o=e(0),r=e(7),i=e.n(r),u=e(9),c=e.n(u);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,n){return(p=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}var d={outlined:c.a.outlined,round:c.a.round,sharp:c.a.sharp,twotone:c.a.twoTone},y=function(t){function n(){var t;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(t=l(this,f(n).apply(this,arguments))).onClick=function(n){!t.props.disabled&&t.props.onClick&&t.props.onClick(n)},t.getIcon=function(){return t.props.icon?t.props.icon.replace(/\s/g,"_"):""},t}var e,r,u;return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&p(t,n)}(n,o["Component"]),e=n,(r=[{key:"render",value:function(){var t=this.props,n=t.style,e=t.transparent,r=t.disabled,u=t.className,a=t.id,s=t.type,l=e?c.a.transparent:c.a.normalButton,f=r?c.a.disabledButton:"",p=this.getIcon(),y=s&&d[s]?d[s]:"",b="button-icon-component\n ".concat(c.a.button,"\n ").concat(l,"\n ").concat(f,"\n ").concat(u);return o.createElement("button",{id:a,onClick:this.onClick,disabled:r,className:b,title:this.props.title,style:n},o.createElement("i",{className:"".concat(i.a.mooskinIcons," ").concat(c.a.icon," ").concat(y)},p))}}])&&s(e.prototype,r),u&&s(e,u),n}();y.defaultProps={className:"",style:{},type:""},y.displayName="SmallIconButton"},7:function(t,n,e){t.exports={mooskinIcons:"mooskinIcons___2i54i"}},9:function(t,n,e){t.exports={button:"button___2-L3K",disabledButton:"disabledButton___1e1jx",normalButton:"normalButton___2dyrQ",transparent:"transparent___10ND3",icon:"icon___oOv43",outlined:"outlined___1X5wR",round:"round___2udth",sharp:"sharp___156K3",twotone:"twotone___1FFZr"}}})});