@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,624 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("classnames"), require("react"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("atoka-design-system", ["classnames", "react"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["atoka-design-system"] = factory(require("classnames"), require("react"));
8
+ else
9
+ root["atoka-design-system"] = factory(root["classnames"], root["react"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__) {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 8811:
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
+ "HighlightableText": () => (/* reexport */ HighlightableText)
24
+ });
25
+
26
+ // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
27
+ var esm = __webpack_require__(6627);
28
+ // EXTERNAL MODULE: external "classnames"
29
+ var external_classnames_ = __webpack_require__(8310);
30
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
31
+ // EXTERNAL MODULE: external "react"
32
+ var external_react_ = __webpack_require__(8156);
33
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
34
+ // EXTERNAL MODULE: ./src/components/Utils/Text.ts
35
+ var Text = __webpack_require__(6347);
36
+ ;// CONCATENATED MODULE: ./src/components/HighlightableText/HighlightableText.tsx
37
+ var __extends = (undefined && undefined.__extends) || (function () {
38
+ var extendStatics = function (d, b) {
39
+ extendStatics = Object.setPrototypeOf ||
40
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
41
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
42
+ return extendStatics(d, b);
43
+ };
44
+ return function (d, b) {
45
+ extendStatics(d, b);
46
+ function __() { this.constructor = d; }
47
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
48
+ };
49
+ })();
50
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
51
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
52
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
53
+ 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;
54
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
55
+ };
56
+ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
57
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
58
+ };
59
+
60
+
61
+
62
+
63
+
64
+ var HighlightableText = /** @class */ (function (_super) {
65
+ __extends(HighlightableText, _super);
66
+ function HighlightableText() {
67
+ return _super !== null && _super.apply(this, arguments) || this;
68
+ }
69
+ HighlightableText.prototype.needToHighlight = function () {
70
+ return !(0,Text/* isStringEmpty */.Wq)(this.props.highlighted);
71
+ };
72
+ HighlightableText.prototype.getParts = function () {
73
+ if (typeof this.props.children != 'string') {
74
+ throw Error('In this component, children have to be a string');
75
+ }
76
+ return (0,Text/* splitTextInParts */.ho)(this.props.highlighted, this.props.children);
77
+ };
78
+ HighlightableText.prototype.renderPart = function (text, index) {
79
+ var _a;
80
+ var isSelected = (0,Text/* isMatching */.OH)(text, this.props.highlighted), classname = external_classnames_default()('atoka-highlightable-text', this.props.size, (_a = {
81
+ 'text-muted': this.props.isDisabled === true,
82
+ 'bold': this.props.isBold,
83
+ 'selected-text': isSelected
84
+ },
85
+ _a[this.props.highlightColor] = isSelected,
86
+ _a)), output = text;
87
+ if (isSelected) {
88
+ output = external_react_default().createElement("strong", null, text);
89
+ }
90
+ return (external_react_default().createElement("span", { key: text + "-" + index, className: classname }, output));
91
+ };
92
+ HighlightableText.prototype.highlightedText = function () {
93
+ var parts = this.getParts();
94
+ if (parts == null) {
95
+ return null;
96
+ }
97
+ return external_react_default().createElement("span", { className: this.props.className }, parts.map(this.renderPart));
98
+ };
99
+ HighlightableText.prototype.render = function () {
100
+ var children = this.props.children, classname = external_classnames_default()('atoka-highlightable-text', this.props.highlightColor, this.props.size, this.props.className, {
101
+ 'text-muted': this.props.isDisabled === true,
102
+ 'bold': this.props.isBold,
103
+ });
104
+ // We just need the style, which will apply on the <strong> or <b> elements
105
+ if (typeof children !== 'string') {
106
+ return external_react_default().createElement("span", { className: classname }, children);
107
+ }
108
+ if (!this.needToHighlight()) {
109
+ return external_react_default().createElement("span", { className: classname }, children);
110
+ }
111
+ return this.highlightedText();
112
+ };
113
+ var _a;
114
+ HighlightableText.displayName = 'HighlightableText';
115
+ HighlightableText.defaultProps = {
116
+ size: 'md',
117
+ highlightColor: 'orange',
118
+ };
119
+ __decorate([
120
+ esm/* boundMethod */.MR,
121
+ __metadata("design:type", Function),
122
+ __metadata("design:paramtypes", [String, Number]),
123
+ __metadata("design:returntype", typeof (_a = typeof (external_react_default()) !== "undefined" && (external_react_default()).ReactNode) === "function" ? _a : Object)
124
+ ], HighlightableText.prototype, "renderPart", null);
125
+ return HighlightableText;
126
+ }((external_react_default()).PureComponent));
127
+
128
+
129
+ ;// CONCATENATED MODULE: ./src/components/HighlightableText/index.ts
130
+
131
+
132
+
133
+ /***/ }),
134
+
135
+ /***/ 6347:
136
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
137
+
138
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
139
+ /* harmony export */ "Wq": () => (/* binding */ isStringEmpty),
140
+ /* harmony export */ "OH": () => (/* binding */ isMatching),
141
+ /* harmony export */ "ho": () => (/* binding */ splitTextInParts)
142
+ /* harmony export */ });
143
+ /* unused harmony exports slugify, estimateWordSize, ellipse, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp */
144
+ var __values = (undefined && undefined.__values) || function(o) {
145
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
146
+ if (m) return m.call(o);
147
+ if (o && typeof o.length === "number") return {
148
+ next: function () {
149
+ if (o && i >= o.length) o = void 0;
150
+ return { value: o && o[i++], done: !o };
151
+ }
152
+ };
153
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
154
+ };
155
+ var __read = (undefined && undefined.__read) || function (o, n) {
156
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
157
+ if (!m) return o;
158
+ var i = m.call(o), r, ar = [], e;
159
+ try {
160
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
161
+ }
162
+ catch (error) { e = { error: error }; }
163
+ finally {
164
+ try {
165
+ if (r && !r.done && (m = i["return"])) m.call(i);
166
+ }
167
+ finally { if (e) throw e.error; }
168
+ }
169
+ return ar;
170
+ };
171
+ var __spread = (undefined && undefined.__spread) || function () {
172
+ for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
173
+ return ar;
174
+ };
175
+ function isStringEmpty(s) {
176
+ if (s == null) {
177
+ return true;
178
+ }
179
+ return s.match(/^\s*$/) !== null;
180
+ }
181
+ function slugify(text) {
182
+ var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
183
+ return text
184
+ .toString()
185
+ .toLowerCase()
186
+ .replace(/\s+/g, '-') // Replace spaces with -
187
+ .replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
188
+ .replace(/&/g, '-and-') // Replace & with 'and'
189
+ .replace(/[^\w-]+/g, '') // Remove all non-word characters
190
+ .replace(/--+/g, '-') // Replace multiple - with single -
191
+ .replace(/^-+/, '') // Trim - from start of text
192
+ .replace(/-+$/, ''); // Trim - from end of text
193
+ }
194
+ function estimateWordSize(wordLength, letterPixels, constant) {
195
+ return wordLength * letterPixels + constant;
196
+ }
197
+ function ellipse(input, length) {
198
+ if (input == null) {
199
+ return '';
200
+ }
201
+ return input.length > length ? input.substr(0, length - 1) + "\u2026" : input;
202
+ }
203
+ function matchAndFormatRangeLabel(formatter) {
204
+ return function (label) {
205
+ var match = /^([\d*]+)-([\d*]+)$/.exec(label);
206
+ if (match == null) {
207
+ return label;
208
+ }
209
+ return formatRange({
210
+ from: match[1],
211
+ to: match[2],
212
+ }, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
213
+ };
214
+ }
215
+ function formatRange(item, formatter) {
216
+ var _a, _b;
217
+ var to = item.to === '*' ? '*' : formatter(parseInt((_a = item.to) !== null && _a !== void 0 ? _a : '0', 10)), from = formatter(parseInt((_b = item.from) !== null && _b !== void 0 ? _b : '0', 10));
218
+ if (from === to) {
219
+ return "" + from;
220
+ }
221
+ return from + " - " + to;
222
+ }
223
+ function ellipseAndFormat(formatter, maxLabelLength) {
224
+ return function (value) {
225
+ var strValue = value.toString();
226
+ if (formatter == null) {
227
+ return ellipse(strValue, maxLabelLength);
228
+ }
229
+ return ellipse("" + formatter(strValue), maxLabelLength);
230
+ };
231
+ }
232
+ function escapeRegExp(input) {
233
+ // eslint-disable-next-line
234
+ return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
235
+ }
236
+ function isMatching(text0, text1) {
237
+ var e_1, _a;
238
+ if (text0 == null || text1 == null) {
239
+ return false;
240
+ }
241
+ text0 = text0.toLowerCase();
242
+ text1 = text1.toLowerCase();
243
+ if (text1.match(' ') === null) {
244
+ return text0.match(escapeRegExp(text1)) !== null;
245
+ }
246
+ var splitNeedles = text1
247
+ .split(' ')
248
+ .filter(function (s) { return !isStringEmpty(s); })
249
+ .sort(function (a, b) { return b.length - a.length; });
250
+ try {
251
+ for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
252
+ var needle = splitNeedles_1_1.value;
253
+ if (text0 === needle) {
254
+ return true;
255
+ }
256
+ }
257
+ }
258
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
259
+ finally {
260
+ try {
261
+ if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
262
+ }
263
+ finally { if (e_1) throw e_1.error; }
264
+ }
265
+ return false;
266
+ }
267
+ function splitTextInParts(needles, text) {
268
+ var e_2, _a;
269
+ if (text == null) {
270
+ return [];
271
+ }
272
+ if (needles.match(' ') === null) {
273
+ var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
274
+ return text.split(re);
275
+ }
276
+ var splitNeedles = needles
277
+ .split(' ')
278
+ .filter(function (s) { return !isStringEmpty(s); })
279
+ .sort(function (a, b) { return b.length - a.length; }), ret = [text];
280
+ try {
281
+ for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
282
+ var needle = splitNeedles_2_1.value;
283
+ var re = new RegExp('(' + needle + ')', 'gi');
284
+ for (var index = 0; index < ret.length; index++) {
285
+ var currentText = ret[index];
286
+ if (isMatching(currentText, escapeRegExp(needles))) {
287
+ continue;
288
+ }
289
+ var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
290
+ ret.splice.apply(ret, __spread([index, 1], newParts));
291
+ }
292
+ }
293
+ }
294
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
295
+ finally {
296
+ try {
297
+ if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
298
+ }
299
+ finally { if (e_2) throw e_2.error; }
300
+ }
301
+ return ret;
302
+ }
303
+
304
+
305
+ /***/ }),
306
+
307
+ /***/ 6627:
308
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
309
+
310
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
311
+ /* harmony export */ "MR": () => (/* binding */ boundMethod)
312
+ /* harmony export */ });
313
+ /* unused harmony exports boundClass, default */
314
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
315
+
316
+
317
+ function _typeof(obj) {
318
+ if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
319
+ _typeof = function _typeof(obj) {
320
+ return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
321
+ };
322
+ } else {
323
+ _typeof = function _typeof(obj) {
324
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
325
+ };
326
+ }
327
+
328
+ return _typeof(obj);
329
+ }
330
+ /**
331
+ * Return a descriptor removing the value and returning a getter
332
+ * The getter will return a .bind version of the function
333
+ * and memoize the result against a symbol on the instance
334
+ */
335
+
336
+
337
+ function boundMethod(target, key, descriptor) {
338
+ var fn = descriptor.value;
339
+
340
+ if (typeof fn !== 'function') {
341
+ throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
342
+ } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
343
+ // getter for the property which is being replaced. This causes infinite
344
+ // recursion and an "Out of stack space" error.
345
+
346
+
347
+ var definingProperty = false;
348
+ return {
349
+ configurable: true,
350
+ get: function get() {
351
+ // eslint-disable-next-line no-prototype-builtins
352
+ if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
353
+ return fn;
354
+ }
355
+
356
+ var boundFn = fn.bind(this);
357
+ definingProperty = true;
358
+ Object.defineProperty(this, key, {
359
+ configurable: true,
360
+ get: function get() {
361
+ return boundFn;
362
+ },
363
+ set: function set(value) {
364
+ fn = value;
365
+ delete this[key];
366
+ }
367
+ });
368
+ definingProperty = false;
369
+ return boundFn;
370
+ },
371
+ set: function set(value) {
372
+ fn = value;
373
+ }
374
+ };
375
+ }
376
+ /**
377
+ * Use boundMethod to bind all methods on the target.prototype
378
+ */
379
+
380
+ function boundClass(target) {
381
+ // (Using reflect to get all keys including symbols)
382
+ var keys; // Use Reflect if exists
383
+
384
+ if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
385
+ keys = Reflect.ownKeys(target.prototype);
386
+ } else {
387
+ keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
388
+
389
+ if (typeof Object.getOwnPropertySymbols === 'function') {
390
+ keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
391
+ }
392
+ }
393
+
394
+ keys.forEach(function (key) {
395
+ // Ignore special case target method
396
+ if (key === 'constructor') {
397
+ return;
398
+ }
399
+
400
+ var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
401
+
402
+ if (typeof descriptor.value === 'function') {
403
+ Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
404
+ }
405
+ });
406
+ return target;
407
+ }
408
+ function autobind() {
409
+ if (arguments.length === 1) {
410
+ return boundClass.apply(void 0, arguments);
411
+ }
412
+
413
+ return boundMethod.apply(void 0, arguments);
414
+ }
415
+
416
+ /***/ }),
417
+
418
+ /***/ 8310:
419
+ /***/ ((module) => {
420
+
421
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
422
+
423
+ /***/ }),
424
+
425
+ /***/ 8156:
426
+ /***/ ((module) => {
427
+
428
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
429
+
430
+ /***/ }),
431
+
432
+ /***/ 4329:
433
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
434
+
435
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
436
+ /* harmony export */ "Z": () => (/* binding */ _typeof)
437
+ /* harmony export */ });
438
+ function _typeof(obj) {
439
+ "@babel/helpers - typeof";
440
+
441
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
442
+ _typeof = function _typeof(obj) {
443
+ return typeof obj;
444
+ };
445
+ } else {
446
+ _typeof = function _typeof(obj) {
447
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
448
+ };
449
+ }
450
+
451
+ return _typeof(obj);
452
+ }
453
+
454
+ /***/ })
455
+
456
+ /******/ });
457
+ /************************************************************************/
458
+ /******/ // The module cache
459
+ /******/ var __webpack_module_cache__ = {};
460
+ /******/
461
+ /******/ // The require function
462
+ /******/ function __webpack_require__(moduleId) {
463
+ /******/ // Check if module is in cache
464
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
465
+ /******/ if (cachedModule !== undefined) {
466
+ /******/ return cachedModule.exports;
467
+ /******/ }
468
+ /******/ // Create a new module (and put it into the cache)
469
+ /******/ var module = __webpack_module_cache__[moduleId] = {
470
+ /******/ // no module.id needed
471
+ /******/ // no module.loaded needed
472
+ /******/ exports: {}
473
+ /******/ };
474
+ /******/
475
+ /******/ // Execute the module function
476
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
477
+ /******/
478
+ /******/ // Return the exports of the module
479
+ /******/ return module.exports;
480
+ /******/ }
481
+ /******/
482
+ /******/ // expose the modules object (__webpack_modules__)
483
+ /******/ __webpack_require__.m = __webpack_modules__;
484
+ /******/
485
+ /************************************************************************/
486
+ /******/ /* webpack/runtime/chunk loaded */
487
+ /******/ (() => {
488
+ /******/ var deferred = [];
489
+ /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
490
+ /******/ if(chunkIds) {
491
+ /******/ priority = priority || 0;
492
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
493
+ /******/ deferred[i] = [chunkIds, fn, priority];
494
+ /******/ return;
495
+ /******/ }
496
+ /******/ var notFulfilled = Infinity;
497
+ /******/ for (var i = 0; i < deferred.length; i++) {
498
+ /******/ var [chunkIds, fn, priority] = deferred[i];
499
+ /******/ var fulfilled = true;
500
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
501
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
502
+ /******/ chunkIds.splice(j--, 1);
503
+ /******/ } else {
504
+ /******/ fulfilled = false;
505
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
506
+ /******/ }
507
+ /******/ }
508
+ /******/ if(fulfilled) {
509
+ /******/ deferred.splice(i--, 1)
510
+ /******/ var r = fn();
511
+ /******/ if (r !== undefined) result = r;
512
+ /******/ }
513
+ /******/ }
514
+ /******/ return result;
515
+ /******/ };
516
+ /******/ })();
517
+ /******/
518
+ /******/ /* webpack/runtime/compat get default export */
519
+ /******/ (() => {
520
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
521
+ /******/ __webpack_require__.n = (module) => {
522
+ /******/ var getter = module && module.__esModule ?
523
+ /******/ () => (module['default']) :
524
+ /******/ () => (module);
525
+ /******/ __webpack_require__.d(getter, { a: getter });
526
+ /******/ return getter;
527
+ /******/ };
528
+ /******/ })();
529
+ /******/
530
+ /******/ /* webpack/runtime/define property getters */
531
+ /******/ (() => {
532
+ /******/ // define getter functions for harmony exports
533
+ /******/ __webpack_require__.d = (exports, definition) => {
534
+ /******/ for(var key in definition) {
535
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
536
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
537
+ /******/ }
538
+ /******/ }
539
+ /******/ };
540
+ /******/ })();
541
+ /******/
542
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
543
+ /******/ (() => {
544
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
545
+ /******/ })();
546
+ /******/
547
+ /******/ /* webpack/runtime/make namespace object */
548
+ /******/ (() => {
549
+ /******/ // define __esModule on exports
550
+ /******/ __webpack_require__.r = (exports) => {
551
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
552
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
553
+ /******/ }
554
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
555
+ /******/ };
556
+ /******/ })();
557
+ /******/
558
+ /******/ /* webpack/runtime/jsonp chunk loading */
559
+ /******/ (() => {
560
+ /******/ // no baseURI
561
+ /******/
562
+ /******/ // object to store loaded and loading chunks
563
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
564
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
565
+ /******/ var installedChunks = {
566
+ /******/ 4953: 0,
567
+ /******/ 1981: 0
568
+ /******/ };
569
+ /******/
570
+ /******/ // no chunk on demand loading
571
+ /******/
572
+ /******/ // no prefetching
573
+ /******/
574
+ /******/ // no preloaded
575
+ /******/
576
+ /******/ // no HMR
577
+ /******/
578
+ /******/ // no HMR manifest
579
+ /******/
580
+ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
581
+ /******/
582
+ /******/ // install a JSONP callback for chunk loading
583
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
584
+ /******/ var [chunkIds, moreModules, runtime] = data;
585
+ /******/ // add "moreModules" to the modules object,
586
+ /******/ // then flag all "chunkIds" as loaded and fire callback
587
+ /******/ var moduleId, chunkId, i = 0;
588
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
589
+ /******/ for(moduleId in moreModules) {
590
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
591
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
592
+ /******/ }
593
+ /******/ }
594
+ /******/ if(runtime) var result = runtime(__webpack_require__);
595
+ /******/ }
596
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
597
+ /******/ for(;i < chunkIds.length; i++) {
598
+ /******/ chunkId = chunkIds[i];
599
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
600
+ /******/ installedChunks[chunkId][0]();
601
+ /******/ }
602
+ /******/ installedChunks[chunkIds[i]] = 0;
603
+ /******/ }
604
+ /******/ return __webpack_require__.O(result);
605
+ /******/ }
606
+ /******/
607
+ /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
608
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
609
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
610
+ /******/ })();
611
+ /******/
612
+ /************************************************************************/
613
+ /******/
614
+ /******/ // startup
615
+ /******/ // Load entry module and return exports
616
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
617
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(8811)))
618
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
619
+ /******/
620
+ /******/ return __webpack_exports__;
621
+ /******/ })()
622
+ ;
623
+ });
624
+ //# sourceMappingURL=index.js.map