@spaziodati/atoka-design-system 2.0.72-beta

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 (294) hide show
  1. package/AddableItems/AddableItems.d.ts +72 -0
  2. package/AddableItems/ClickableExcludableItem.d.ts +23 -0
  3. package/AddableItems/ClickableItemList.d.ts +32 -0
  4. package/AddableItems/index.d.ts +1 -0
  5. package/AddableItems/index.js +1046 -0
  6. package/AddableItems/index.js.map +1 -0
  7. package/Alert/Alert.d.ts +37 -0
  8. package/Alert/index.d.ts +1 -0
  9. package/Alert/index.js +319 -0
  10. package/Alert/index.js.map +1 -0
  11. package/Badge/Badge.d.ts +38 -0
  12. package/Badge/index.d.ts +1 -0
  13. package/Badge/index.js +285 -0
  14. package/Badge/index.js.map +1 -0
  15. package/Bs4V3Wrapper/Bs4V3Wrapper.d.ts +7 -0
  16. package/Bs4V3Wrapper/StoryWrapper.d.ts +8 -0
  17. package/Bs4V3Wrapper/index.d.ts +1 -0
  18. package/Bs4V3Wrapper/index.js +251 -0
  19. package/Bs4V3Wrapper/index.js.map +1 -0
  20. package/BubbleChart/BubbleChart.d.ts +33 -0
  21. package/BubbleChart/BubbleChartUI.d.ts +31 -0
  22. package/BubbleChart/index.d.ts +1 -0
  23. package/BubbleChart/index.js +3793 -0
  24. package/BubbleChart/index.js.map +1 -0
  25. package/Button/Button.d.ts +29 -0
  26. package/Button/Button.storiesConfig.d.ts +68 -0
  27. package/Button/index.d.ts +1 -0
  28. package/Button/index.js +323 -0
  29. package/Button/index.js.map +1 -0
  30. package/ButtonDropdown/ButtonDropdown.d.ts +23 -0
  31. package/ButtonDropdown/index.d.ts +2 -0
  32. package/ButtonDropdown/index.js +603 -0
  33. package/ButtonDropdown/index.js.map +1 -0
  34. package/CardsPage/CardsPage.d.ts +12 -0
  35. package/CardsPage/CardsPageActions.d.ts +2 -0
  36. package/CardsPage/CardsPageCards.d.ts +5 -0
  37. package/CardsPage/CardsPageCardsCounter.d.ts +7 -0
  38. package/CardsPage/CardsPageFilters.d.ts +3 -0
  39. package/CardsPage/CardsPageHeader.d.ts +11 -0
  40. package/CardsPage/CardsPageLayoutMode.d.ts +13 -0
  41. package/CardsPage/CardsPageSelectionActions.d.ts +17 -0
  42. package/CardsPage/CardsPageSelectionToggler.d.ts +8 -0
  43. package/CardsPage/CardsPageSorting.d.ts +15 -0
  44. package/CardsPage/CardsPageSubtitle.d.ts +2 -0
  45. package/CardsPage/CardsPageTabContent.d.ts +19 -0
  46. package/CardsPage/CardsPageTabSwitcher.d.ts +3 -0
  47. package/CardsPage/CardsPageTitle.d.ts +2 -0
  48. package/CardsPage/index.d.ts +2 -0
  49. package/CardsPage/index.js +2511 -0
  50. package/CardsPage/index.js.map +1 -0
  51. package/CursorPagination/CursorPagination.d.ts +21 -0
  52. package/CursorPagination/index.d.ts +1 -0
  53. package/CursorPagination/index.js +952 -0
  54. package/CursorPagination/index.js.map +1 -0
  55. package/DatePicker/DatePicker.d.ts +27 -0
  56. package/DatePicker/index.d.ts +1 -0
  57. package/DatePicker/index.js +452 -0
  58. package/DatePicker/index.js.map +1 -0
  59. package/DetailPage/DetailPage.d.ts +18 -0
  60. package/DetailPage/DetailPageBodyContainer.d.ts +2 -0
  61. package/DetailPage/DetailPageBodySection.d.ts +3 -0
  62. package/DetailPage/DetailPageHeaderContainer.d.ts +7 -0
  63. package/DetailPage/DetailPageHeaderUI.d.ts +12 -0
  64. package/DetailPage/DetailPageMenuContainer.d.ts +2 -0
  65. package/DetailPage/DetailPageMenuUI.d.ts +4 -0
  66. package/DetailPage/index.d.ts +1 -0
  67. package/DetailPage/index.js +2066 -0
  68. package/DetailPage/index.js.map +1 -0
  69. package/Dropdown/AtokaDropdownToggles.d.ts +11 -0
  70. package/Dropdown/Dropdown.d.ts +12 -0
  71. package/Dropdown/DropdownMenu.d.ts +7 -0
  72. package/Dropdown/index.d.ts +3 -0
  73. package/Dropdown/index.js +723 -0
  74. package/Dropdown/index.js.map +1 -0
  75. package/EditableString/EditableString.d.ts +42 -0
  76. package/EditableString/index.d.ts +1 -0
  77. package/EditableString/index.js +3321 -0
  78. package/EditableString/index.js.map +1 -0
  79. package/EllipsableContent/EllipsableContent.d.ts +18 -0
  80. package/EllipsableContent/index.d.ts +1 -0
  81. package/EllipsableContent/index.js +784 -0
  82. package/EllipsableContent/index.js.map +1 -0
  83. package/EmptyState/EmptyState.d.ts +12 -0
  84. package/EmptyState/index.d.ts +1 -0
  85. package/EmptyState/index.js +278 -0
  86. package/EmptyState/index.js.map +1 -0
  87. package/Facet/Facet.d.ts +21 -0
  88. package/Facet/FacetHelp.d.ts +28 -0
  89. package/Facet/FacetItemCount.d.ts +7 -0
  90. package/Facet/FacetSubtitle.d.ts +2 -0
  91. package/Facet/index.d.ts +1 -0
  92. package/Facet/index.js +914 -0
  93. package/Facet/index.js.map +1 -0
  94. package/FacetSection/FacetSection.d.ts +21 -0
  95. package/FacetSection/index.d.ts +1 -0
  96. package/FacetSection/index.js +443 -0
  97. package/FacetSection/index.js.map +1 -0
  98. package/FadeAnimation/FadeAnimation.d.ts +14 -0
  99. package/FadeAnimation/index.d.ts +1 -0
  100. package/FadeAnimation/index.js +1228 -0
  101. package/FadeAnimation/index.js.map +1 -0
  102. package/FeedbackButton/FeedbackButton.d.ts +19 -0
  103. package/FeedbackButton/index.d.ts +1 -0
  104. package/FeedbackButton/index.js +398 -0
  105. package/FeedbackButton/index.js.map +1 -0
  106. package/Form/Form.d.ts +23 -0
  107. package/Form/FormCheckbox.d.ts +10 -0
  108. package/Form/FormControl.d.ts +23 -0
  109. package/Form/FormControlFeedBack.d.ts +6 -0
  110. package/Form/FormHelp.d.ts +7 -0
  111. package/Form/FormLabel.d.ts +4 -0
  112. package/Form/FormRadio.d.ts +10 -0
  113. package/Form/index.d.ts +1 -0
  114. package/Form/index.js +450 -0
  115. package/Form/index.js.map +1 -0
  116. package/Funnel/Funnel.d.ts +54 -0
  117. package/Funnel/SVGDataLabel.d.ts +11 -0
  118. package/Funnel/index.d.ts +1 -0
  119. package/Funnel/index.js +3997 -0
  120. package/Funnel/index.js.map +1 -0
  121. package/GridCard/Fixtures.d.ts +3 -0
  122. package/GridCard/GridCard.d.ts +20 -0
  123. package/GridCard/GridCardContent.d.ts +2 -0
  124. package/GridCard/GridCardFooter.d.ts +2 -0
  125. package/GridCard/GridCardHeader.d.ts +14 -0
  126. package/GridCard/GridCardMenu.d.ts +2 -0
  127. package/GridCard/GridCardTags.d.ts +2 -0
  128. package/GridCard/GridCardTitle.d.ts +6 -0
  129. package/GridCard/index.d.ts +1 -0
  130. package/GridCard/index.js +1618 -0
  131. package/GridCard/index.js.map +1 -0
  132. package/HighlightableText/HighlightableText.d.ts +21 -0
  133. package/HighlightableText/index.d.ts +1 -0
  134. package/HighlightableText/index.js +624 -0
  135. package/HighlightableText/index.js.map +1 -0
  136. package/Histogram/Histogram.d.ts +126 -0
  137. package/Histogram/Types.d.ts +19 -0
  138. package/Histogram/index.d.ts +1 -0
  139. package/Histogram/index.js +2359 -0
  140. package/Histogram/index.js.map +1 -0
  141. package/InlineStringEditor/InlineStringEditor.d.ts +49 -0
  142. package/InlineStringEditor/index.d.ts +1 -0
  143. package/InlineStringEditor/index.js +1882 -0
  144. package/InlineStringEditor/index.js.map +1 -0
  145. package/InputGroup/InputGroup.d.ts +16 -0
  146. package/InputGroup/InputGroupText.d.ts +2 -0
  147. package/InputGroup/index.d.ts +1 -0
  148. package/InputGroup/index.js +279 -0
  149. package/InputGroup/index.js.map +1 -0
  150. package/Jumbotron/Jumbotron.d.ts +16 -0
  151. package/Jumbotron/index.d.ts +1 -0
  152. package/Jumbotron/index.js +270 -0
  153. package/Jumbotron/index.js.map +1 -0
  154. package/Map/Map.d.ts +27 -0
  155. package/Map/MapChoropleth.d.ts +31 -0
  156. package/Map/MapControl.d.ts +13 -0
  157. package/Map/MapLegendContent.d.ts +27 -0
  158. package/Map/MapPopup.d.ts +5 -0
  159. package/Map/MapUtils.d.ts +2 -0
  160. package/Map/Types.d.ts +38 -0
  161. package/Map/index.d.ts +2 -0
  162. package/Map/index.js +4810 -0
  163. package/Map/index.js.map +1 -0
  164. package/Modal/Modal.d.ts +32 -0
  165. package/Modal/index.d.ts +1 -0
  166. package/Modal/index.js +743 -0
  167. package/Modal/index.js.map +1 -0
  168. package/Navbar/Navbar.d.ts +42 -0
  169. package/Navbar/NavbarMobileMenuCollapse.d.ts +3 -0
  170. package/Navbar/NavbarMobileMenuToggle.d.ts +3 -0
  171. package/Navbar/NavbarNavigationMenu.d.ts +9 -0
  172. package/Navbar/NavbarNavigationMenuItem.d.ts +9 -0
  173. package/Navbar/NavbarNinjaMenu.d.ts +6 -0
  174. package/Navbar/NavbarNinjaMenuItem.d.ts +6 -0
  175. package/Navbar/NavbarNotificationMenu.d.ts +12 -0
  176. package/Navbar/NavbarNotificationMenuItem.d.ts +8 -0
  177. package/Navbar/NavbarOverlaySearch.d.ts +28 -0
  178. package/Navbar/NavbarOverlaySearchCard.d.ts +9 -0
  179. package/Navbar/NavbarOverlaySearchResults.d.ts +12 -0
  180. package/Navbar/NavbarUserMenu.d.ts +9 -0
  181. package/Navbar/NavbarUserMenuItem.d.ts +6 -0
  182. package/Navbar/index.d.ts +1 -0
  183. package/Navbar/index.js +3521 -0
  184. package/Navbar/index.js.map +1 -0
  185. package/Pagination/Pagination.d.ts +27 -0
  186. package/Pagination/PaginationNext.d.ts +7 -0
  187. package/Pagination/PaginationPrev.d.ts +7 -0
  188. package/Pagination/index.d.ts +1 -0
  189. package/Pagination/index.js +994 -0
  190. package/Pagination/index.js.map +1 -0
  191. package/PieChart/PieChart.d.ts +71 -0
  192. package/PieChart/index.d.ts +1 -0
  193. package/PieChart/index.js +1986 -0
  194. package/PieChart/index.js.map +1 -0
  195. package/PublicFooter/PublicFooter.d.ts +6 -0
  196. package/PublicFooter/index.d.ts +1 -0
  197. package/PublicFooter/index.js +454 -0
  198. package/PublicFooter/index.js.map +1 -0
  199. package/PublicNavbar/PublicNavbar.d.ts +6 -0
  200. package/PublicNavbar/index.d.ts +1 -0
  201. package/PublicNavbar/index.js +255 -0
  202. package/PublicNavbar/index.js.map +1 -0
  203. package/RecordBit/RecordBit.d.ts +14 -0
  204. package/RecordBit/index.d.ts +1 -0
  205. package/RecordBit/index.js +482 -0
  206. package/RecordBit/index.js.map +1 -0
  207. package/ResultItemCard/ResultItemCard.d.ts +19 -0
  208. package/ResultItemCard/ResultItemCardActions.d.ts +3 -0
  209. package/ResultItemCard/ResultItemCardFooter.d.ts +6 -0
  210. package/ResultItemCard/ResultItemCardImage.d.ts +6 -0
  211. package/ResultItemCard/ResultItemCardSubtitle.d.ts +6 -0
  212. package/ResultItemCard/ResultItemCardText.d.ts +7 -0
  213. package/ResultItemCard/ResultItemCardTitle.d.ts +7 -0
  214. package/ResultItemCard/index.d.ts +1 -0
  215. package/ResultItemCard/index.js +1067 -0
  216. package/ResultItemCard/index.js.map +1 -0
  217. package/SelectDropdown/SelectDropdown.d.ts +29 -0
  218. package/SelectDropdown/index.d.ts +1 -0
  219. package/SelectDropdown/index.js +1520 -0
  220. package/SelectDropdown/index.js.map +1 -0
  221. package/Spinner/Spinner.d.ts +32 -0
  222. package/Spinner/index.d.ts +1 -0
  223. package/Spinner/index.js +325 -0
  224. package/Spinner/index.js.map +1 -0
  225. package/StatisticsItemCard/StatisticsItemCard.d.ts +35 -0
  226. package/StatisticsItemCard/index.d.ts +1 -0
  227. package/StatisticsItemCard/index.js +1786 -0
  228. package/StatisticsItemCard/index.js.map +1 -0
  229. package/StatisticsItemNumeric/StatisticsItemNumeric.d.ts +18 -0
  230. package/StatisticsItemNumeric/index.d.ts +1 -0
  231. package/StatisticsItemNumeric/index.js +283 -0
  232. package/StatisticsItemNumeric/index.js.map +1 -0
  233. package/StatisticsLegend/StatisticsLegend.d.ts +35 -0
  234. package/StatisticsLegend/StatisticsLegendItem.d.ts +50 -0
  235. package/StatisticsLegend/StatisticsSVGLegend.d.ts +26 -0
  236. package/StatisticsLegend/helpers.d.ts +19 -0
  237. package/StatisticsLegend/index.d.ts +3 -0
  238. package/StatisticsLegend/index.js +1571 -0
  239. package/StatisticsLegend/index.js.map +1 -0
  240. package/StatisticsTooltip/StatisticsTooltip.d.ts +20 -0
  241. package/StatisticsTooltip/helpers.d.ts +19 -0
  242. package/StatisticsTooltip/index.d.ts +2 -0
  243. package/StatisticsTooltip/index.js +796 -0
  244. package/StatisticsTooltip/index.js.map +1 -0
  245. package/Suggester/CustomOption.d.ts +29 -0
  246. package/Suggester/InputValueContainer.d.ts +11 -0
  247. package/Suggester/Suggester.d.ts +80 -0
  248. package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +6 -0
  249. package/Suggester/index.d.ts +3 -0
  250. package/Suggester/index.js +1126 -0
  251. package/Suggester/index.js.map +1 -0
  252. package/SunBurst/SunBurst.d.ts +61 -0
  253. package/SunBurst/index.d.ts +2 -0
  254. package/SunBurst/index.js +1170 -0
  255. package/SunBurst/index.js.map +1 -0
  256. package/TabSwitcher/TabSwitcher.d.ts +35 -0
  257. package/TabSwitcher/TabSwitcherChoice.d.ts +21 -0
  258. package/TabSwitcher/index.d.ts +1 -0
  259. package/TabSwitcher/index.js +1135 -0
  260. package/TabSwitcher/index.js.map +1 -0
  261. package/Title/Title.d.ts +16 -0
  262. package/Title/index.d.ts +1 -0
  263. package/Title/index.js +302 -0
  264. package/Title/index.js.map +1 -0
  265. package/ToggleButtonGroup/ToggleButton.d.ts +15 -0
  266. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +24 -0
  267. package/ToggleButtonGroup/index.d.ts +1 -0
  268. package/ToggleButtonGroup/index.js +609 -0
  269. package/ToggleButtonGroup/index.js.map +1 -0
  270. package/Tooltip/Tooltip.d.ts +20 -0
  271. package/Tooltip/index.d.ts +1 -0
  272. package/Tooltip/index.js +291 -0
  273. package/Tooltip/index.js.map +1 -0
  274. package/Utils/CommonTypes.d.ts +29 -0
  275. package/Utils/Statistics.d.ts +3 -0
  276. package/Utils/Style.d.ts +5 -0
  277. package/Utils/Text.d.ts +12 -0
  278. package/Utils/Utils.d.ts +12 -0
  279. package/Utils/index.d.ts +5 -0
  280. package/Utils/index.js +3379 -0
  281. package/Utils/index.js.map +1 -0
  282. package/atoka-design-system-2.0.72-beta.min.css +1 -0
  283. package/commonFixtures.d.ts +1 -0
  284. package/index.d.ts +51 -0
  285. package/index.js +15343 -0
  286. package/index.js.map +1 -0
  287. package/package.json +157 -0
  288. package/styles/animations-mixin.less +28 -0
  289. package/styles/atoka-bootstrap-fixed-mixins.less +81 -0
  290. package/styles/atoka-bootstrap-variables.less +70 -0
  291. package/styles/atoka-bs.less +99 -0
  292. package/styles/atoka-namespaced-bs.less +28 -0
  293. package/styles/variables.less +106 -0
  294. package/styles/variant-mixins.less +96 -0
@@ -0,0 +1,609 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/ButtonGroup"), require("react-bootstrap/OverlayTrigger"), require("react-bootstrap/ToggleButton"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("atoka-design-system", ["@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/ButtonGroup", "react-bootstrap/OverlayTrigger", "react-bootstrap/ToggleButton"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["atoka-design-system"] = factory(require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/ButtonGroup"), require("react-bootstrap/OverlayTrigger"), require("react-bootstrap/ToggleButton"));
8
+ else
9
+ root["atoka-design-system"] = factory(root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/ButtonGroup"], root["react-bootstrap/OverlayTrigger"], root["react-bootstrap/ToggleButton"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__5901__, __WEBPACK_EXTERNAL_MODULE__6043__, __WEBPACK_EXTERNAL_MODULE__3778__) {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 6237:
16
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
+
18
+ // ESM COMPAT FLAG
19
+ __webpack_require__.r(__webpack_exports__);
20
+
21
+ // EXPORTS
22
+ __webpack_require__.d(__webpack_exports__, {
23
+ "ToggleButtonGroup": () => (/* reexport */ ToggleButtonGroup)
24
+ });
25
+
26
+ // EXTERNAL MODULE: external "react"
27
+ var external_react_ = __webpack_require__(8156);
28
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
29
+ // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
30
+ var esm = __webpack_require__(6627);
31
+ // EXTERNAL MODULE: external "classnames"
32
+ var external_classnames_ = __webpack_require__(8310);
33
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
34
+ // EXTERNAL MODULE: external "react-bootstrap/ButtonGroup"
35
+ var ButtonGroup_ = __webpack_require__(5901);
36
+ var ButtonGroup_default = /*#__PURE__*/__webpack_require__.n(ButtonGroup_);
37
+ // EXTERNAL MODULE: external "react-bootstrap/ToggleButton"
38
+ var ToggleButton_ = __webpack_require__(3778);
39
+ var ToggleButton_default = /*#__PURE__*/__webpack_require__.n(ToggleButton_);
40
+ // EXTERNAL MODULE: external "@fortawesome/react-fontawesome"
41
+ var react_fontawesome_ = __webpack_require__(5692);
42
+ // EXTERNAL MODULE: ./src/components/Tooltip/index.ts + 1 modules
43
+ var Tooltip = __webpack_require__(1512);
44
+ ;// CONCATENATED MODULE: ./src/components/ToggleButtonGroup/ToggleButton.tsx
45
+ var __extends = (undefined && undefined.__extends) || (function () {
46
+ var extendStatics = function (d, b) {
47
+ extendStatics = Object.setPrototypeOf ||
48
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
49
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
50
+ return extendStatics(d, b);
51
+ };
52
+ return function (d, b) {
53
+ extendStatics(d, b);
54
+ function __() { this.constructor = d; }
55
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
56
+ };
57
+ })();
58
+
59
+
60
+
61
+
62
+ var ToggleButton = /** @class */ (function (_super) {
63
+ __extends(ToggleButton, _super);
64
+ function ToggleButton() {
65
+ return _super !== null && _super.apply(this, arguments) || this;
66
+ }
67
+ ToggleButton.prototype.renderIcon = function () {
68
+ if (this.props.icon == null) {
69
+ return null;
70
+ }
71
+ return external_react_default().createElement(react_fontawesome_.FontAwesomeIcon, { icon: this.props.icon });
72
+ };
73
+ ToggleButton.prototype.renderLabelAndIcon = function () {
74
+ return (external_react_default().createElement("div", null,
75
+ external_react_default().createElement("div", { className: 'btn-children d-inline' }, this.props.children),
76
+ this.renderIcon()));
77
+ };
78
+ ToggleButton.prototype.renderButton = function () {
79
+ return (external_react_default().createElement((ToggleButton_default()), { className: 'atoka-toggle-btn text-center', type: this.props.type, value: this.props.value, checked: this.props.checked, onChange: this.props.onChange, disabled: this.props.disabled, block: this.props.sameSize }, this.renderLabelAndIcon()));
80
+ };
81
+ ToggleButton.prototype.render = function () {
82
+ if (this.props.tooltipMessage == null) {
83
+ return this.renderButton();
84
+ }
85
+ return (external_react_default().createElement(Tooltip.Tooltip, { placement: 'top', content: this.props.tooltipMessage }, this.renderButton()));
86
+ };
87
+ ToggleButton.displayName = 'ToggleButton';
88
+ return ToggleButton;
89
+ }((external_react_default()).PureComponent));
90
+
91
+
92
+ ;// CONCATENATED MODULE: ./src/components/ToggleButtonGroup/ToggleButtonGroup.tsx
93
+ var ToggleButtonGroup_extends = (undefined && undefined.__extends) || (function () {
94
+ var extendStatics = function (d, b) {
95
+ extendStatics = Object.setPrototypeOf ||
96
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
97
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
98
+ return extendStatics(d, b);
99
+ };
100
+ return function (d, b) {
101
+ extendStatics(d, b);
102
+ function __() { this.constructor = d; }
103
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
104
+ };
105
+ })();
106
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
107
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
108
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
109
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
110
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
111
+ };
112
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
113
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
114
+ };
115
+
116
+
117
+
118
+
119
+
120
+
121
+ var ToggleButtonGroup = /** @class */ (function (_super) {
122
+ ToggleButtonGroup_extends(ToggleButtonGroup, _super);
123
+ function ToggleButtonGroup() {
124
+ return _super !== null && _super.apply(this, arguments) || this;
125
+ }
126
+ ToggleButtonGroup.prototype.onChange = function (value) {
127
+ if (this.props.onChange && value !== this.props.value) {
128
+ this.props.onChange(value);
129
+ }
130
+ };
131
+ ToggleButtonGroup.prototype.renderItem = function (option, index) {
132
+ var _this = this;
133
+ return (external_react_default().createElement(ToggleButton, { key: index, type: 'radio', value: option.value, icon: option.icon, onChange: function () { return _this.onChange(option.value); }, checked: this.props.value === option.value, disabled: option.disabled, tooltipMessage: option.tooltipMessage, sameSize: this.props.sameSize }, option.label));
134
+ };
135
+ ToggleButtonGroup.prototype.renderButtons = function () {
136
+ return this.props.options.map(this.renderItem);
137
+ };
138
+ ToggleButtonGroup.prototype.render = function () {
139
+ var className = external_classnames_default()(this.props.className, 'atoka-toggle-btn-group', 'btn-group-primary', "btn-group-" + this.props.size, {
140
+ 'd-flex': this.props.sameSize === true,
141
+ });
142
+ return external_react_default().createElement((ButtonGroup_default()), { className: className }, this.renderButtons());
143
+ };
144
+ var _a, _b;
145
+ ToggleButtonGroup.displayName = 'ToggleButtonGroup';
146
+ ToggleButtonGroup.defaultProps = {
147
+ size: 'md',
148
+ options: [],
149
+ };
150
+ __decorate([
151
+ esm/* default */.ZP,
152
+ __metadata("design:type", Function),
153
+ __metadata("design:paramtypes", [Object]),
154
+ __metadata("design:returntype", void 0)
155
+ ], ToggleButtonGroup.prototype, "onChange", null);
156
+ __decorate([
157
+ esm/* default */.ZP,
158
+ __metadata("design:type", Function),
159
+ __metadata("design:paramtypes", [Object, Number]),
160
+ __metadata("design:returntype", typeof (_a = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _a : Object)
161
+ ], ToggleButtonGroup.prototype, "renderItem", null);
162
+ __decorate([
163
+ esm/* default */.ZP,
164
+ __metadata("design:type", Function),
165
+ __metadata("design:paramtypes", []),
166
+ __metadata("design:returntype", typeof (_b = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _b : Object)
167
+ ], ToggleButtonGroup.prototype, "renderButtons", null);
168
+ return ToggleButtonGroup;
169
+ }((external_react_default()).PureComponent));
170
+
171
+
172
+ ;// CONCATENATED MODULE: ./src/components/ToggleButtonGroup/index.ts
173
+
174
+
175
+
176
+ /***/ }),
177
+
178
+ /***/ 1512:
179
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
180
+
181
+
182
+ // EXPORTS
183
+ __webpack_require__.d(__webpack_exports__, {
184
+ "Tooltip": () => (/* reexport */ Tooltip)
185
+ });
186
+
187
+ // EXTERNAL MODULE: external "react"
188
+ var external_react_ = __webpack_require__(8156);
189
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
190
+ // EXTERNAL MODULE: external "classnames"
191
+ var external_classnames_ = __webpack_require__(8310);
192
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
193
+ // EXTERNAL MODULE: external "react-bootstrap/OverlayTrigger"
194
+ var OverlayTrigger_ = __webpack_require__(6043);
195
+ var OverlayTrigger_default = /*#__PURE__*/__webpack_require__.n(OverlayTrigger_);
196
+ ;// CONCATENATED MODULE: ./src/components/Tooltip/Tooltip.tsx
197
+ var __assign = (undefined && undefined.__assign) || function () {
198
+ __assign = Object.assign || function(t) {
199
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
200
+ s = arguments[i];
201
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
202
+ t[p] = s[p];
203
+ }
204
+ return t;
205
+ };
206
+ return __assign.apply(this, arguments);
207
+ };
208
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
209
+ var t = {};
210
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
211
+ t[p] = s[p];
212
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
213
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
214
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
215
+ t[p[i]] = s[p[i]];
216
+ }
217
+ return t;
218
+ };
219
+
220
+
221
+
222
+
223
+ /**
224
+ * ### Overview
225
+ *
226
+ * A tooltip is a short message which is triggered when the users hovers or clicks on a specific element inside the interface.
227
+ *
228
+ * ### Best practices
229
+ * - Don’t use a tooltip when the information you want to place inside it is vital for the user to complete the task
230
+ * - The text inside the tooltip should be brief but helpful
231
+ * - Use tooltips to describe the action of icon-only buttons
232
+ * - Make sure that the tooltip’s placement doesn’t hide its related content behind it
233
+ */
234
+ var Tooltip = external_react_default().memo(function (props) {
235
+ var _a;
236
+ var bs4v3Wrapper = document.querySelector('.bs4-v3-external-container'), placement = (_a = props.placement) !== null && _a !== void 0 ? _a : 'top', classNames = external_classnames_default()('tooltip atoka-tooltip', props.className, {
237
+ 'top bs-tooltip-top': placement.indexOf('top') === 0,
238
+ 'right bs-tooltip-right': placement.indexOf('right') === 0,
239
+ 'bottom bs-tooltip-bottom': placement.indexOf('bottom') === 0,
240
+ 'left bs-tooltip-left': placement.indexOf('left') === 0,
241
+ });
242
+ var content = props.content, overlayProps = __rest(props, ["content"]), renderTooltip = function (_a) {
243
+ var arrowProps = _a.arrowProps, tooltipProps = __rest(_a, ["arrowProps"]);
244
+ // {vrut} do not pass show to the component, this will raise an error, see PANDA-439
245
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
246
+ var show = tooltipProps.show, rest = __rest(tooltipProps, ["show"]), component = (external_react_default().createElement("div", __assign({}, rest, { className: classNames, role: 'tooltip' }),
247
+ external_react_default().createElement("div", { className: 'tooltip-inner' },
248
+ external_react_default().createElement("div", __assign({ className: 'arrow arrow-back' }, arrowProps)),
249
+ content,
250
+ external_react_default().createElement("div", __assign({ className: 'arrow arrow-front' }, arrowProps)))));
251
+ return component;
252
+ };
253
+ return (external_react_default().createElement((OverlayTrigger_default()), __assign({}, overlayProps, { container: bs4v3Wrapper, overlay: renderTooltip }), props.children));
254
+ });
255
+ Tooltip.displayName = 'Tooltip';
256
+
257
+ ;// CONCATENATED MODULE: ./src/components/Tooltip/index.ts
258
+
259
+
260
+
261
+ /***/ }),
262
+
263
+ /***/ 6627:
264
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
265
+
266
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
267
+ /* harmony export */ "ZP": () => (/* binding */ autobind)
268
+ /* harmony export */ });
269
+ /* unused harmony exports boundMethod, boundClass */
270
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
271
+
272
+
273
+ function _typeof(obj) {
274
+ if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
275
+ _typeof = function _typeof(obj) {
276
+ return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
277
+ };
278
+ } else {
279
+ _typeof = function _typeof(obj) {
280
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
281
+ };
282
+ }
283
+
284
+ return _typeof(obj);
285
+ }
286
+ /**
287
+ * Return a descriptor removing the value and returning a getter
288
+ * The getter will return a .bind version of the function
289
+ * and memoize the result against a symbol on the instance
290
+ */
291
+
292
+
293
+ function boundMethod(target, key, descriptor) {
294
+ var fn = descriptor.value;
295
+
296
+ if (typeof fn !== 'function') {
297
+ throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
298
+ } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
299
+ // getter for the property which is being replaced. This causes infinite
300
+ // recursion and an "Out of stack space" error.
301
+
302
+
303
+ var definingProperty = false;
304
+ return {
305
+ configurable: true,
306
+ get: function get() {
307
+ // eslint-disable-next-line no-prototype-builtins
308
+ if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
309
+ return fn;
310
+ }
311
+
312
+ var boundFn = fn.bind(this);
313
+ definingProperty = true;
314
+ Object.defineProperty(this, key, {
315
+ configurable: true,
316
+ get: function get() {
317
+ return boundFn;
318
+ },
319
+ set: function set(value) {
320
+ fn = value;
321
+ delete this[key];
322
+ }
323
+ });
324
+ definingProperty = false;
325
+ return boundFn;
326
+ },
327
+ set: function set(value) {
328
+ fn = value;
329
+ }
330
+ };
331
+ }
332
+ /**
333
+ * Use boundMethod to bind all methods on the target.prototype
334
+ */
335
+
336
+ function boundClass(target) {
337
+ // (Using reflect to get all keys including symbols)
338
+ var keys; // Use Reflect if exists
339
+
340
+ if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
341
+ keys = Reflect.ownKeys(target.prototype);
342
+ } else {
343
+ keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
344
+
345
+ if (typeof Object.getOwnPropertySymbols === 'function') {
346
+ keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
347
+ }
348
+ }
349
+
350
+ keys.forEach(function (key) {
351
+ // Ignore special case target method
352
+ if (key === 'constructor') {
353
+ return;
354
+ }
355
+
356
+ var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
357
+
358
+ if (typeof descriptor.value === 'function') {
359
+ Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
360
+ }
361
+ });
362
+ return target;
363
+ }
364
+ function autobind() {
365
+ if (arguments.length === 1) {
366
+ return boundClass.apply(void 0, arguments);
367
+ }
368
+
369
+ return boundMethod.apply(void 0, arguments);
370
+ }
371
+
372
+ /***/ }),
373
+
374
+ /***/ 5692:
375
+ /***/ ((module) => {
376
+
377
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
378
+
379
+ /***/ }),
380
+
381
+ /***/ 8310:
382
+ /***/ ((module) => {
383
+
384
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
385
+
386
+ /***/ }),
387
+
388
+ /***/ 8156:
389
+ /***/ ((module) => {
390
+
391
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
392
+
393
+ /***/ }),
394
+
395
+ /***/ 5901:
396
+ /***/ ((module) => {
397
+
398
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5901__;
399
+
400
+ /***/ }),
401
+
402
+ /***/ 6043:
403
+ /***/ ((module) => {
404
+
405
+ module.exports = __WEBPACK_EXTERNAL_MODULE__6043__;
406
+
407
+ /***/ }),
408
+
409
+ /***/ 3778:
410
+ /***/ ((module) => {
411
+
412
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3778__;
413
+
414
+ /***/ }),
415
+
416
+ /***/ 4329:
417
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
418
+
419
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
420
+ /* harmony export */ "Z": () => (/* binding */ _typeof)
421
+ /* harmony export */ });
422
+ function _typeof(obj) {
423
+ "@babel/helpers - typeof";
424
+
425
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
426
+ _typeof = function _typeof(obj) {
427
+ return typeof obj;
428
+ };
429
+ } else {
430
+ _typeof = function _typeof(obj) {
431
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
432
+ };
433
+ }
434
+
435
+ return _typeof(obj);
436
+ }
437
+
438
+ /***/ })
439
+
440
+ /******/ });
441
+ /************************************************************************/
442
+ /******/ // The module cache
443
+ /******/ var __webpack_module_cache__ = {};
444
+ /******/
445
+ /******/ // The require function
446
+ /******/ function __webpack_require__(moduleId) {
447
+ /******/ // Check if module is in cache
448
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
449
+ /******/ if (cachedModule !== undefined) {
450
+ /******/ return cachedModule.exports;
451
+ /******/ }
452
+ /******/ // Create a new module (and put it into the cache)
453
+ /******/ var module = __webpack_module_cache__[moduleId] = {
454
+ /******/ // no module.id needed
455
+ /******/ // no module.loaded needed
456
+ /******/ exports: {}
457
+ /******/ };
458
+ /******/
459
+ /******/ // Execute the module function
460
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
461
+ /******/
462
+ /******/ // Return the exports of the module
463
+ /******/ return module.exports;
464
+ /******/ }
465
+ /******/
466
+ /******/ // expose the modules object (__webpack_modules__)
467
+ /******/ __webpack_require__.m = __webpack_modules__;
468
+ /******/
469
+ /************************************************************************/
470
+ /******/ /* webpack/runtime/chunk loaded */
471
+ /******/ (() => {
472
+ /******/ var deferred = [];
473
+ /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
474
+ /******/ if(chunkIds) {
475
+ /******/ priority = priority || 0;
476
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
477
+ /******/ deferred[i] = [chunkIds, fn, priority];
478
+ /******/ return;
479
+ /******/ }
480
+ /******/ var notFulfilled = Infinity;
481
+ /******/ for (var i = 0; i < deferred.length; i++) {
482
+ /******/ var [chunkIds, fn, priority] = deferred[i];
483
+ /******/ var fulfilled = true;
484
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
485
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
486
+ /******/ chunkIds.splice(j--, 1);
487
+ /******/ } else {
488
+ /******/ fulfilled = false;
489
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
490
+ /******/ }
491
+ /******/ }
492
+ /******/ if(fulfilled) {
493
+ /******/ deferred.splice(i--, 1)
494
+ /******/ var r = fn();
495
+ /******/ if (r !== undefined) result = r;
496
+ /******/ }
497
+ /******/ }
498
+ /******/ return result;
499
+ /******/ };
500
+ /******/ })();
501
+ /******/
502
+ /******/ /* webpack/runtime/compat get default export */
503
+ /******/ (() => {
504
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
505
+ /******/ __webpack_require__.n = (module) => {
506
+ /******/ var getter = module && module.__esModule ?
507
+ /******/ () => (module['default']) :
508
+ /******/ () => (module);
509
+ /******/ __webpack_require__.d(getter, { a: getter });
510
+ /******/ return getter;
511
+ /******/ };
512
+ /******/ })();
513
+ /******/
514
+ /******/ /* webpack/runtime/define property getters */
515
+ /******/ (() => {
516
+ /******/ // define getter functions for harmony exports
517
+ /******/ __webpack_require__.d = (exports, definition) => {
518
+ /******/ for(var key in definition) {
519
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
520
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
521
+ /******/ }
522
+ /******/ }
523
+ /******/ };
524
+ /******/ })();
525
+ /******/
526
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
527
+ /******/ (() => {
528
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
529
+ /******/ })();
530
+ /******/
531
+ /******/ /* webpack/runtime/make namespace object */
532
+ /******/ (() => {
533
+ /******/ // define __esModule on exports
534
+ /******/ __webpack_require__.r = (exports) => {
535
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
536
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
537
+ /******/ }
538
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
539
+ /******/ };
540
+ /******/ })();
541
+ /******/
542
+ /******/ /* webpack/runtime/jsonp chunk loading */
543
+ /******/ (() => {
544
+ /******/ // no baseURI
545
+ /******/
546
+ /******/ // object to store loaded and loading chunks
547
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
548
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
549
+ /******/ var installedChunks = {
550
+ /******/ 1030: 0,
551
+ /******/ 2823: 0,
552
+ /******/ 1981: 0
553
+ /******/ };
554
+ /******/
555
+ /******/ // no chunk on demand loading
556
+ /******/
557
+ /******/ // no prefetching
558
+ /******/
559
+ /******/ // no preloaded
560
+ /******/
561
+ /******/ // no HMR
562
+ /******/
563
+ /******/ // no HMR manifest
564
+ /******/
565
+ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
566
+ /******/
567
+ /******/ // install a JSONP callback for chunk loading
568
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
569
+ /******/ var [chunkIds, moreModules, runtime] = data;
570
+ /******/ // add "moreModules" to the modules object,
571
+ /******/ // then flag all "chunkIds" as loaded and fire callback
572
+ /******/ var moduleId, chunkId, i = 0;
573
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
574
+ /******/ for(moduleId in moreModules) {
575
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
576
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
577
+ /******/ }
578
+ /******/ }
579
+ /******/ if(runtime) var result = runtime(__webpack_require__);
580
+ /******/ }
581
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
582
+ /******/ for(;i < chunkIds.length; i++) {
583
+ /******/ chunkId = chunkIds[i];
584
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
585
+ /******/ installedChunks[chunkId][0]();
586
+ /******/ }
587
+ /******/ installedChunks[chunkIds[i]] = 0;
588
+ /******/ }
589
+ /******/ return __webpack_require__.O(result);
590
+ /******/ }
591
+ /******/
592
+ /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
593
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
594
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
595
+ /******/ })();
596
+ /******/
597
+ /************************************************************************/
598
+ /******/
599
+ /******/ // startup
600
+ /******/ // Load entry module and return exports
601
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
602
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(6237)))
603
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
604
+ /******/
605
+ /******/ return __webpack_exports__;
606
+ /******/ })()
607
+ ;
608
+ });
609
+ //# sourceMappingURL=index.js.map