oolib 2.110.1 → 2.111.0

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 (259) hide show
  1. package/dist/UIContent/index.d.ts +17 -17
  2. package/dist/components/Accordion/index.d.ts +56 -13
  3. package/dist/components/Accordion/index.js +23 -31
  4. package/dist/components/Accordion/styled.d.ts +7 -7
  5. package/dist/components/Accordion/styled.js +7 -8
  6. package/dist/components/ActionMenu/index.js +2 -9
  7. package/dist/components/AudioInput/comps/AudioAction.d.ts +1 -1
  8. package/dist/components/AudioInput/comps/AudioPlayer.d.ts +1 -1
  9. package/dist/components/AudioInput/index.js +1 -1
  10. package/dist/components/Breadcrumbs/index.styled.d.ts +1 -1
  11. package/dist/components/Buttons/index.d.ts +32 -42
  12. package/dist/components/Buttons/index.js +3 -3
  13. package/dist/components/Coachmark/comps/MovingCoachmark/index.d.ts +3 -0
  14. package/dist/components/Coachmark/comps/MovingCoachmark/index.js +68 -0
  15. package/dist/components/Coachmark/comps/MovingCoachmark/styled.d.ts +2 -0
  16. package/dist/components/Coachmark/comps/MovingCoachmark/styled.js +45 -0
  17. package/dist/components/Coachmark/comps/MovingCoachmark/utils/index.d.ts +1 -0
  18. package/dist/components/Coachmark/comps/MovingCoachmark/utils/index.js +57 -0
  19. package/dist/components/Coachmark/config.d.ts +31 -0
  20. package/dist/components/Coachmark/config.js +61 -0
  21. package/dist/components/Coachmark/index.d.ts +4 -0
  22. package/dist/components/Coachmark/index.js +74 -0
  23. package/dist/components/Coachmark/styled.d.ts +1 -0
  24. package/dist/components/Coachmark/styled.js +37 -0
  25. package/dist/components/Coachmark/utils/index.d.ts +13 -0
  26. package/dist/components/Coachmark/utils/index.js +70 -0
  27. package/dist/components/DateRangePicker/index.d.ts +1 -1
  28. package/dist/components/DateTimePicker/index.styled.d.ts +0 -0
  29. package/dist/components/DateTimePicker/index.styled.js +0 -0
  30. package/dist/components/Dropdowns/DropdownMulti/index.js +4 -28
  31. package/dist/components/Dropdowns/DropdownSingle/index.js +4 -28
  32. package/dist/components/Dropdowns/comps/OptionsMulti/index.js +3 -30
  33. package/dist/components/Dropdowns/comps/OptionsShell/index.js +1 -11
  34. package/dist/components/Dropdowns/comps/OptionsSingle/index.js +2 -34
  35. package/dist/components/Dropdowns/comps/SelectDropdown/index.js +1 -12
  36. package/dist/components/Dropdowns/comps/VirtualizedWrapper/index.d.ts +1 -1
  37. package/dist/components/Dropdowns/utils/isDynamicOtherOption.d.ts +0 -0
  38. package/dist/components/Dropdowns/utils/isDynamicOtherOption.js +0 -0
  39. package/dist/components/EmptyStates/index.js +1 -12
  40. package/dist/components/FileUploadWrapper/comps/FileUploadShell.d.ts +1 -1
  41. package/dist/components/FileUploadWrapper/index.d.ts +1 -1
  42. package/dist/components/FileUploadWrapper/index.js +1 -12
  43. package/dist/components/IFrameInput/comps/Embed.d.ts +1 -1
  44. package/dist/components/IFrameInput/index.js +2 -2
  45. package/dist/components/IFrameInput/utils/DisplayCoachmark.d.ts +7 -0
  46. package/dist/components/IFrameInput/utils/DisplayCoachmark.js +83 -0
  47. package/dist/components/ImageInput/comps/GallerySlider/index.js +1 -16
  48. package/dist/components/ImageInput/comps/ImageEditor/comps/ConfirmDeleteModal/index.d.ts +1 -1
  49. package/dist/components/ImageInput/comps/ImageEditor/index.js +9 -65
  50. package/dist/components/ImageInput/comps/Placeholder/index.js +1 -17
  51. package/dist/components/ImageInput/comps/Placeholder/styled.d.ts +3 -0
  52. package/dist/components/ImageInput/comps/Placeholder/styled.js +39 -0
  53. package/dist/components/ImageInput/comps/SingleImageInput/index.js +1 -32
  54. package/dist/components/ImageInput/derivedComps/ImageDisplayInMask/index.js +1 -1
  55. package/dist/components/ImageInput/index.js +3 -25
  56. package/dist/components/InlineAlert/index.d.ts +25 -8
  57. package/dist/components/InlineAlert/index.js +16 -1
  58. package/dist/components/LegendRadioCheckList/LegendButton/index.d.ts +10 -0
  59. package/dist/components/LegendRadioCheckList/LegendButton/index.js +18 -0
  60. package/dist/components/LegendRadioCheckList/LegendButton/styled.d.ts +3 -0
  61. package/dist/components/LegendRadioCheckList/LegendButton/styled.js +22 -0
  62. package/dist/components/LegendRadioCheckList/LegendCheckboxList/index.d.ts +8 -0
  63. package/dist/components/LegendRadioCheckList/LegendCheckboxList/index.js +49 -0
  64. package/dist/components/LegendRadioCheckList/LegendCheckboxList/styled.d.ts +0 -0
  65. package/dist/components/LegendRadioCheckList/LegendCheckboxList/styled.js +0 -0
  66. package/dist/components/LegendRadioCheckList/LegendRadioList/index.d.ts +8 -0
  67. package/dist/components/LegendRadioCheckList/LegendRadioList/index.js +34 -0
  68. package/dist/components/LegendRadioCheckList/LegendRadioList/styled.d.ts +1 -0
  69. package/dist/components/LegendRadioCheckList/LegendRadioList/styled.js +13 -0
  70. package/dist/components/Lexical/Plugins/TableCellResizer/index.js +1 -26
  71. package/dist/components/LoadersAndProgress/LoaderCircle/index.js +2 -2
  72. package/dist/components/LoadersAndProgress/SkeletonLoader/index.d.ts +1 -1
  73. package/dist/components/Margins/index.d.ts +1 -1
  74. package/dist/components/Modals/Modal/styled.d.ts +2 -2
  75. package/dist/components/Modals/ModalConfirm/styled.d.ts +2 -2
  76. package/dist/components/OKELink/comps/AvatarDisplay/index.d.ts +8 -0
  77. package/dist/components/OKELink/comps/AvatarDisplay/index.js +19 -0
  78. package/dist/components/OKELink/comps/AvatarDisplay/styled.d.ts +2 -0
  79. package/dist/components/OKELink/comps/AvatarDisplay/styled.js +48 -0
  80. package/dist/components/OKELink/index.d.ts +1 -1
  81. package/dist/components/OKELink/index.js +2 -5
  82. package/dist/components/OKELink/utils/index.d.ts +6 -0
  83. package/dist/components/OKELink/utils/index.js +20 -0
  84. package/dist/components/PDFInput/comps/PDFActions.d.ts +1 -1
  85. package/dist/components/PDFInput/index.js +1 -1
  86. package/dist/components/Paddings/index.d.ts +1 -1
  87. package/dist/components/PercentCompletedPie/index.d.ts +19 -5
  88. package/dist/components/PercentCompletedPie/index.js +15 -5
  89. package/dist/components/PercentCompletedPie/styled.d.ts +17 -5
  90. package/dist/components/PercentCompletedPie/styled.js +26 -6
  91. package/dist/components/Playground/index.d.ts +4 -0
  92. package/dist/components/Playground/index.js +17 -0
  93. package/dist/components/Playground/styled.d.ts +1 -0
  94. package/dist/components/Playground/styled.js +14 -0
  95. package/dist/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxButton/index.d.ts +1 -1
  96. package/dist/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxButton/index.js +1 -12
  97. package/dist/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxInput/index.d.ts +1 -1
  98. package/dist/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxInput/index.js +3 -20
  99. package/dist/components/RadioAndCheckbox/comps/CheckboxList/index.js +11 -7
  100. package/dist/components/RadioAndCheckbox/comps/RadioList/comps/RadioInput/index.js +4 -25
  101. package/dist/components/RadioAndCheckbox/comps/RadioList/index.js +6 -6
  102. package/dist/components/ResourceInput/comp/ResourceDisplayBlock.d.ts +1 -1
  103. package/dist/components/ResourceInput/index.d.ts +1 -1
  104. package/dist/components/SimpleTable/index.js +5 -22
  105. package/dist/components/SimpleTable/utils/convertColHeaderConfigToRowData.js +1 -1
  106. package/dist/components/SimpleTable/utils/convertRowHeaderConfigToCellData.js +1 -1
  107. package/dist/components/SimpleTable/utils/prepInitValueFromConfigIfNoValue.js +2 -2
  108. package/dist/components/Switches/index.js +5 -11
  109. package/dist/components/Tags/index.d.ts +1 -1
  110. package/dist/components/Tags/index.styled.d.ts +1 -1
  111. package/dist/components/TimePicker/styled.d.ts +1 -1
  112. package/dist/components/TimeRangePicker/index.styled.d.ts +0 -0
  113. package/dist/components/TimeRangePicker/index.styled.js +0 -0
  114. package/dist/components/Tooltip/index.d.ts +2 -3
  115. package/dist/components/Typo/index.js +1 -1
  116. package/dist/components/VideoInput/comps/VideoActionMenu.d.ts +1 -1
  117. package/dist/components/VideoInput/index.d.ts +1 -1
  118. package/dist/components/VideoInput/index.js +2 -21
  119. package/dist/components/Wrappers/WrapperCardGrid.d.ts +2 -0
  120. package/dist/components/Wrappers/WrapperCardGrid.js +19 -0
  121. package/dist/components/Wrappers/index.d.ts +1 -1
  122. package/dist/components/Wrappers/index.js +1 -1
  123. package/dist/components/cards/ListProfile/styled.d.ts +7 -0
  124. package/dist/components/cards/ListProfile/styled.js +23 -0
  125. package/dist/components/cards/utils/parseCardConfig.js +1 -1
  126. package/dist/d3Modules/index.d.ts +1 -0
  127. package/dist/d3Modules/index.js +1 -1
  128. package/dist/icons/custom/index.d.ts +1 -0
  129. package/dist/icons/custom/index.js +6 -1
  130. package/dist/icons/index.d.ts +112 -110
  131. package/dist/icons/index.js +2 -1
  132. package/dist/stories/Accordion.stories.d.ts +78 -0
  133. package/dist/stories/Accordion.stories.js +93 -0
  134. package/dist/stories/ActionMenu.stories.d.ts +166 -0
  135. package/dist/stories/ActionMenu.stories.js +140 -0
  136. package/dist/stories/AudioInput.stories.d.ts +20 -0
  137. package/dist/stories/AudioInput.stories.js +67 -0
  138. package/dist/stories/Banner.stories.d.ts +97 -0
  139. package/dist/stories/Banner.stories.js +126 -0
  140. package/dist/stories/BarChart.stories.d.ts +13 -0
  141. package/dist/stories/BarChart.stories.js +61 -0
  142. package/dist/stories/BlockLabel.stories.d.ts +71 -0
  143. package/dist/stories/BlockLabel.stories.js +106 -0
  144. package/dist/stories/Breadcrumbs.stories.d.ts +13 -0
  145. package/dist/stories/Breadcrumbs.stories.js +34 -0
  146. package/dist/stories/Button.stories.d.ts +209 -0
  147. package/dist/stories/Button.stories.js +164 -0
  148. package/dist/stories/Checkbox.stories.d.ts +248 -0
  149. package/dist/stories/Checkbox.stories.js +249 -0
  150. package/dist/stories/Colors.stories.d.ts +6 -0
  151. package/dist/stories/Colors.stories.js +66 -0
  152. package/dist/stories/DatePicker.stories.d.ts +239 -0
  153. package/dist/stories/DatePicker.stories.js +267 -0
  154. package/dist/stories/Divider.stories.d.ts +8 -0
  155. package/dist/stories/Divider.stories.js +28 -0
  156. package/dist/stories/Dropdowns.stories.d.ts +114 -0
  157. package/dist/stories/Dropdowns.stories.js +280 -0
  158. package/dist/stories/EmptyStates.stories.d.ts +63 -0
  159. package/dist/stories/EmptyStates.stories.js +69 -0
  160. package/dist/stories/HomeCover.stories.d.ts +55 -0
  161. package/dist/stories/HomeCover.stories.js +68 -0
  162. package/dist/stories/IFrameInput.stories.d.ts +32 -0
  163. package/dist/stories/IFrameInput.stories.js +51 -0
  164. package/dist/stories/ImageInput/ImageInput.stories.d.ts +263 -0
  165. package/dist/stories/ImageInput/ImageInput.stories.js +167 -0
  166. package/dist/stories/ImageInput/imageInputArgTypes.d.ts +121 -0
  167. package/dist/stories/ImageInput/imageInputArgTypes.js +78 -0
  168. package/dist/stories/ImageInput/imageInputParseArgTypes.d.ts +17 -0
  169. package/dist/stories/ImageInput/imageInputParseArgTypes.js +31 -0
  170. package/dist/stories/InlineAlert.stories.d.ts +62 -0
  171. package/dist/stories/InlineAlert.stories.js +62 -0
  172. package/dist/stories/Layout.stories.d.ts +161 -0
  173. package/dist/stories/Layout.stories.js +183 -0
  174. package/dist/stories/LegendRadioList.stories.d.ts +15 -0
  175. package/dist/stories/LegendRadioList.stories.js +73 -0
  176. package/dist/stories/Loaders.stories.d.ts +77 -0
  177. package/dist/stories/Loaders.stories.js +74 -0
  178. package/dist/stories/Modal.stories.d.ts +135 -0
  179. package/dist/stories/Modal.stories.js +146 -0
  180. package/dist/stories/ModalConfirmAction.stories.d.ts +13 -0
  181. package/dist/stories/ModalConfirmAction.stories.js +47 -0
  182. package/dist/stories/OKELink.stories.d.ts +72 -0
  183. package/dist/stories/OKELink.stories.js +110 -0
  184. package/dist/stories/PDFInput.stories.d.ts +20 -0
  185. package/dist/stories/PDFInput.stories.js +45 -0
  186. package/dist/stories/PageScrollIndicator.stories.d.ts +15 -0
  187. package/dist/stories/PageScrollIndicator.stories.js +26 -0
  188. package/dist/stories/PercentCompletedPi.stories.d.ts +55 -0
  189. package/dist/stories/PercentCompletedPi.stories.js +49 -0
  190. package/dist/stories/Playground.stories.d.ts +22 -0
  191. package/dist/stories/Playground.stories.js +26 -0
  192. package/dist/stories/Progress.stories.d.ts +45 -0
  193. package/dist/stories/Progress.stories.js +50 -0
  194. package/dist/stories/RadioButton.stories.d.ts +260 -0
  195. package/dist/stories/RadioButton.stories.js +264 -0
  196. package/dist/stories/ResourceInput.stories.d.ts +9 -0
  197. package/dist/stories/ResourceInput.stories.js +53 -0
  198. package/dist/stories/SimpleTable.stories.d.ts +65 -0
  199. package/dist/stories/SimpleTable.stories.js +111 -0
  200. package/dist/stories/SkeletonLoader.stories.d.ts +81 -0
  201. package/dist/stories/SkeletonLoader.stories.js +82 -0
  202. package/dist/stories/Switches.stories.d.ts +106 -0
  203. package/dist/stories/Switches.stories.js +136 -0
  204. package/dist/stories/TabBar.stories.d.ts +73 -0
  205. package/dist/stories/TabBar.stories.js +103 -0
  206. package/dist/stories/TagClear.stories.d.ts +57 -0
  207. package/dist/stories/TagClear.stories.js +76 -0
  208. package/dist/stories/TagDisplay.stories.d.ts +73 -0
  209. package/dist/stories/TagDisplay.stories.js +154 -0
  210. package/dist/stories/TagLink.stories.d.ts +59 -0
  211. package/dist/stories/TagLink.stories.js +65 -0
  212. package/dist/stories/TagSelect.stories.d.ts +41 -0
  213. package/dist/stories/TagSelect.stories.js +54 -0
  214. package/dist/stories/TagsInput.stories.d.ts +90 -0
  215. package/dist/stories/TagsInput.stories.js +168 -0
  216. package/dist/stories/TextInputs.stories.d.ts +124 -0
  217. package/dist/stories/TextInputs.stories.js +178 -0
  218. package/dist/stories/Tooltip.stories.d.ts +41 -0
  219. package/dist/stories/Tooltip.stories.js +78 -0
  220. package/dist/stories/Typo.stories.d.ts +304 -0
  221. package/dist/stories/Typo.stories.js +357 -0
  222. package/dist/stories/UserRoleBadge.stories.d.ts +19 -0
  223. package/dist/stories/UserRoleBadge.stories.js +46 -0
  224. package/dist/stories/Utilities.stories.d.ts +5 -0
  225. package/dist/stories/Utilities.stories.js +110 -0
  226. package/dist/stories/VideoInput.stories.d.ts +46 -0
  227. package/dist/stories/VideoInput.stories.js +49 -0
  228. package/dist/stories/cards/CardContent.stories.d.ts +67 -0
  229. package/dist/stories/cards/CardContent.stories.js +47 -0
  230. package/dist/stories/cards/CardEmbed.stories.d.ts +65 -0
  231. package/dist/stories/cards/CardEmbed.stories.js +46 -0
  232. package/dist/stories/cards/CardProfile.stories.d.ts +46 -0
  233. package/dist/stories/cards/CardProfile.stories.js +48 -0
  234. package/dist/stories/cards/ListContent.stories.d.ts +81 -0
  235. package/dist/stories/cards/ListContent.stories.js +50 -0
  236. package/dist/stories/cards/ListProfile.stories.d.ts +41 -0
  237. package/dist/stories/cards/ListProfile.stories.js +46 -0
  238. package/dist/stories/cards/utils/cardArgTypes.d.ts +182 -0
  239. package/dist/stories/cards/utils/cardArgTypes.js +114 -0
  240. package/dist/stories/cards/utils/parseCardArgs.d.ts +46 -0
  241. package/dist/stories/cards/utils/parseCardArgs.js +57 -0
  242. package/dist/themes/colors.d.ts +51 -0
  243. package/dist/utils/comps/DisplayIcon/index.d.ts +1 -1
  244. package/dist/utils/getBlockLabelProps.js +1 -1
  245. package/dist/utils/getterSetterDeleter/getVal_caseExamples.d.ts +60 -0
  246. package/dist/utils/getterSetterDeleter/getVal_caseExamples.js +91 -0
  247. package/dist/utilsOolib/StorybookBannersWrapper.d.ts +2 -0
  248. package/dist/utilsOolib/StorybookBannersWrapper.js +16 -0
  249. package/dist/utilsOolib/excludeKeys.d.ts +8 -0
  250. package/dist/utilsOolib/excludeKeys.js +31 -0
  251. package/dist/utilsOolib/genRandomHash.d.ts +7 -0
  252. package/dist/utilsOolib/genRandomHash.js +19 -0
  253. package/dist/utilsOolib/index.d.ts +12 -5
  254. package/dist/utilsOolib/index.js +11 -3
  255. package/dist/utilsOolib/renderRTEPlaceholderForOolibPreview.d.ts +8 -1
  256. package/dist/utilsOolib/renderRTEPlaceholderForOolibPreview.js +1 -2
  257. package/package.json +4 -3
  258. /package/dist/components/Buttons/{index.styled.d.ts → styled.d.ts} +0 -0
  259. /package/dist/components/Buttons/{index.styled.js → styled.js} +0 -0
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
4
  };
@@ -33,14 +22,8 @@ var CheckboxInput = function (_a) {
33
22
  var SuitableTypo = S ? Typo_1.SANS_2 : Typo_1.SANS_3;
34
23
  var genCheckboxButton = function (options) {
35
24
  if (options === void 0) { options = {}; }
36
- return (react_1.default.createElement(CheckboxButton_1.CheckboxButton, __assign({}, {
37
- isSelected: isSelected,
38
- disabled: disabled,
39
- invert: invert,
40
- S: S,
41
- className: 'btn',
42
- disabled: options.disabled || disabled
43
- })));
25
+ return (react_1.default.createElement(CheckboxButton_1.CheckboxButton, { isSelected: isSelected, disabled: disabled, invert: invert, S: S, className: 'btn',
26
+ disabled: options.disabled || disabled }));
44
27
  };
45
28
  var genCheckSquare = function () { return (react_1.default.createElement(CheckSquare, { size: S ? 22.5 : 26, color: invert ? invertGreen : green, style: {
46
29
  margin: '-7px -2.8px -7px -3.2px',
@@ -52,7 +35,7 @@ var CheckboxInput = function (_a) {
52
35
  } })); };
53
36
  return option.loading
54
37
  ? react_1.default.createElement(TextLoader_1.TextLoader, { style: { width: "8rem", height: "1.5rem" } })
55
- : inputStyle === 'tagSelect' ? (react_1.default.createElement(Tags_1.TagSelect, __assign({}, { isSelected: isSelected, invert: invert, disabled: disabled }, { onClick: function () { return !disabled && onClick(isSelected, option); }, display: option.display, value: option.value, style: { alignSelf: 'flex-start' } }))) : (react_1.default.createElement(styled_1.StyledOption, __assign({}, { rightWrongResult: rightWrongResult, isSelected: isSelected, disabled: disabled, invert: invert, S: S }, { onClick: function () { return !rightWrongResult && !disabled && onClick && onClick(isSelected, option); } }),
38
+ : inputStyle === 'tagSelect' ? (react_1.default.createElement(Tags_1.TagSelect, { isSelected: isSelected, invert: invert, disabled: disabled, onClick: function () { return !disabled && onClick(isSelected, option); }, display: option.display, value: option.value, style: { alignSelf: 'flex-start' } })) : (react_1.default.createElement(styled_1.StyledOption, { rightWrongResult: rightWrongResult, isSelected: isSelected, disabled: disabled, invert: invert, S: S, onClick: function () { return !rightWrongResult && !disabled && onClick && onClick(isSelected, option); } },
56
39
  rightWrongResult
57
40
  ? ["markCorrect", "revealCorrect"].includes(markingCommand)
58
41
  ? genCheckSquare()
@@ -91,20 +91,24 @@ function CheckboxList(_a) {
91
91
  return (react_1.default.createElement("div", { className: className, id: id },
92
92
  react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, _EXPORTS_1.getBlockLabelProps)(props))),
93
93
  readOnly ? (react_1.default.createElement(styled_2.StyledDisplayTagsContainer, null, value === null || value === void 0 ? void 0 : value.map(function (selOp) { return react_1.default.createElement(Tags_1.TagDisplay, { key: selOp.value, invert: invert, display: selOp.display_desc || selOp.display }); }))) : (react_1.default.createElement(react_1.default.Fragment, null,
94
- react_1.default.createElement(OptionsContainer, __assign({}, { style: style, listType: listType, S: S }), typicalOptions === null || typicalOptions === void 0 ? void 0 :
95
- typicalOptions.map(function (option, idx) { return idx < optionsLimit && (react_1.default.createElement(CheckboxInput_1.CheckboxInput, __assign({}, __assign(__assign({}, InputCommonProps), { option: option, key: option.value })))); }),
94
+ react_1.default.createElement(OptionsContainer, { style: style, listType: listType, S: S }, typicalOptions === null || typicalOptions === void 0 ? void 0 :
95
+ typicalOptions.map(function (option, idx) { return idx < optionsLimit && (react_1.default.createElement(CheckboxInput_1.CheckboxInput, __assign({}, InputCommonProps, { option: option, key: option.value }))); }),
96
96
  shouldHideSomeOptions && // if we have the case of off limit options
97
97
  (seeMore || rightWrongResult) && //and decided to show them
98
98
  typicalOptions.slice(optionsLimit).map(function (option) {
99
- return react_1.default.createElement(CheckboxInput_1.CheckboxInput, __assign({}, __assign(__assign({}, InputCommonProps), { option: option, key: option.value })));
99
+ return react_1.default.createElement(CheckboxInput_1.CheckboxInput, __assign({}, InputCommonProps, { option: option, key: option.value }));
100
100
  }),
101
101
  injectOtherOption && injectedOtherOption && ( //so other box and its textInput act as one entity in the flexbox
102
102
  react_1.default.createElement(styled_1.StyledOtherOptionContainer, { listType: listType },
103
- react_1.default.createElement(CheckboxInput_1.CheckboxInput, __assign({}, __assign(__assign({}, InputCommonProps), { option: injectedOtherOption }))),
104
- otherOpInSelectees && (react_1.default.createElement(styled_1.StyledOtherTextInputWrapper, __assign({}, { listType: listType, rightWrongResult: rightWrongResult }),
105
- react_1.default.createElement(TextInputs_1.TextInput, __assign({ placeholder: "Please Specify Here", value: otherOpInSelectees.display_desc, onChange: function (k, v) { return handleTextInputChange(v); } }, { disabled: disabled, invert: invert, S: S }))))))),
103
+ react_1.default.createElement(CheckboxInput_1.CheckboxInput, __assign({}, InputCommonProps, { option: injectedOtherOption })),
104
+ otherOpInSelectees && (react_1.default.createElement(styled_1.StyledOtherTextInputWrapper, { listType: listType, rightWrongResult: rightWrongResult },
105
+ react_1.default.createElement(TextInputs_1.TextInput, { placeholder: "Please Specify Here", value: otherOpInSelectees.display_desc, onChange: function (k, v) { return handleTextInputChange(v); }, disabled: disabled, invert: invert, S: S })))))),
106
106
  shouldHideSomeOptions && !rightWrongResult && (react_1.default.createElement(Typo_1.SANS_3, { style: { marginTop: '1rem' } },
107
- react_1.default.createElement(OKELink_1.OKELink, { onClick: function () { return setSeeMore(!seeMore); }, children: !seeMore ? 'See More' : 'See Less' }))),
107
+ react_1.default.createElement(OKELink_1.OKELink, { onClick: function () { return setSeeMore(!seeMore); }, children: !seeMore ? 'See More' : 'See Less' }))), /*
108
+ the minute the results have come in, irrespective of user's answers
109
+ being right or wrong, we show an explanation
110
+ below the options. provided that an explanation is provided.
111
+ */
108
112
  rightWrongResult && commonIsCorrectDesc &&
109
113
  react_1.default.createElement(styled_1.StyledCorrectMessage, { invert: invert }, commonIsCorrectDesc)))));
110
114
  }
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
4
  };
@@ -26,7 +15,7 @@ var invertGreen = themes_1.colors.invertGreen, red = themes_1.colors.red, greyCo
26
15
  var XCircle = icons_1.icons.XCircle, CheckCircle = icons_1.icons.CheckCircle;
27
16
  var RadioButton = function (_a) {
28
17
  var isSelected = _a.isSelected, onClick = _a.onClick, disabled = _a.disabled, invert = _a.invert, S = _a.S;
29
- return (react_1.default.createElement(styled_2.StyledRadioInput, __assign({ onClick: function (ev) { return onClick && onClick(ev); } }, { isSelected: isSelected, disabled: disabled, invert: invert, S: S }), isSelected && react_1.default.createElement(styled_2.StyledRadioInputFill, { invert: invert, S: S })));
18
+ return (react_1.default.createElement(styled_2.StyledRadioInput, { onClick: function (ev) { return onClick && onClick(ev); }, isSelected: isSelected, disabled: disabled, invert: invert, S: S }, isSelected && react_1.default.createElement(styled_2.StyledRadioInputFill, { invert: invert, S: S })));
30
19
  };
31
20
  exports.RadioButton = RadioButton;
32
21
  var RadioInput = function (_a) {
@@ -38,13 +27,9 @@ var RadioInput = function (_a) {
38
27
  : Typo_1.SANS_3;
39
28
  var genRadioButton = function (options) {
40
29
  if (options === void 0) { options = {}; }
41
- return (react_1.default.createElement(exports.RadioButton, __assign({}, {
42
- isSelected: isSelected,
43
- invert: invert,
44
- S: S,
45
- className: 'btn',
30
+ return (react_1.default.createElement(exports.RadioButton, { isSelected: isSelected, invert: invert, S: S, className: 'btn',
46
31
  disabled: options.disabled || disabled //because we force disabled if rightWrongResult exists & no markingCommand exists against this option i.e, it neither has to be marked right nor wrong
47
- })));
32
+ }));
48
33
  };
49
34
  var genCheckCircle = function () { return (react_1.default.createElement(CheckCircle, { size: S ? 21 : 24.5, color: invert ? invertGreen : green, style: {
50
35
  margin: '-5px -1.5px -5px -3px',
@@ -54,13 +39,7 @@ var RadioInput = function (_a) {
54
39
  margin: '-5px -1.5px -5px -3px',
55
40
  flexShrink: 0
56
41
  } })); };
57
- return (react_1.default.createElement(styled_1.StyledOption, __assign({}, {
58
- disabled: disabled,
59
- rightWrongResult: rightWrongResult,
60
- isSelected: isSelected,
61
- invert: invert,
62
- S: S
63
- }, { onClick: function () { return !rightWrongResult && !disabled && onClick(option); } }),
42
+ return (react_1.default.createElement(styled_1.StyledOption, { disabled: disabled, rightWrongResult: rightWrongResult, isSelected: isSelected, invert: invert, S: S, onClick: function () { return !rightWrongResult && !disabled && onClick(option); } },
64
43
  rightWrongResult
65
44
  ? ["markCorrect", "revealCorrect"].includes(markingCommand)
66
45
  ? genCheckCircle()
@@ -76,18 +76,18 @@ function RadioList(_a) {
76
76
  react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, _EXPORTS_1.getBlockLabelProps)(props))),
77
77
  readOnly ? ((value === null || value === void 0 ? void 0 : value.display) && react_1.default.createElement(Tags_1.TagDisplay, { display: value.display_desc || value.display, invert: invert }) //prioritzing display_desc since display of 'other' option is === other
78
78
  ) : (react_1.default.createElement(react_1.default.Fragment, null,
79
- react_1.default.createElement(styled_1.StyledOptionsContainer, __assign({}, { listType: listType, S: S }), typicalOptions === null || typicalOptions === void 0 ? void 0 :
80
- typicalOptions.map(function (option, idx) { return idx < optionsLimit && (react_1.default.createElement(comps_1.RadioInput, __assign({}, __assign(__assign({}, InputCommonProps), { option: option, key: option.value })))); }),
79
+ react_1.default.createElement(styled_1.StyledOptionsContainer, { listType: listType, S: S }, typicalOptions === null || typicalOptions === void 0 ? void 0 :
80
+ typicalOptions.map(function (option, idx) { return idx < optionsLimit && (react_1.default.createElement(comps_1.RadioInput, __assign({}, InputCommonProps, { option: option, key: option.value }))); }),
81
81
  shouldHideSomeOptions && // if we have the case of off limit options
82
82
  (seeMore || rightWrongResult) && //and decided to show them
83
83
  typicalOptions.slice(optionsLimit).map(function (option) {
84
- return react_1.default.createElement(comps_1.RadioInput, __assign({}, __assign(__assign({}, InputCommonProps), { option: option, key: option.value })));
84
+ return react_1.default.createElement(comps_1.RadioInput, __assign({}, InputCommonProps, { option: option, key: option.value }));
85
85
  }),
86
86
  injectOtherOption && injectedOtherOption && ( //so other box and its textInput act as one entity in the flexbox
87
87
  react_1.default.createElement(styled_1.StyledOtherOptionContainer, { listType: listType },
88
- react_1.default.createElement(comps_1.RadioInput, __assign({}, __assign(__assign({}, InputCommonProps), { option: injectedOtherOption }))),
89
- (value === null || value === void 0 ? void 0 : value.value) === "other" && (react_1.default.createElement(styled_1.StyledOtherTextInputWrapper, __assign({}, { listType: listType, rightWrongResult: rightWrongResult }),
90
- react_1.default.createElement(TextInputs_1.TextInput, __assign({ placeholder: "Please Specify Here", value: value.display_desc, onChange: function (k, v) { return handleTextInputChange(v); } }, { disabled: disabled, invert: invert, S: S }))))))),
88
+ react_1.default.createElement(comps_1.RadioInput, __assign({}, InputCommonProps, { option: injectedOtherOption })),
89
+ (value === null || value === void 0 ? void 0 : value.value) === "other" && (react_1.default.createElement(styled_1.StyledOtherTextInputWrapper, { listType: listType, rightWrongResult: rightWrongResult },
90
+ react_1.default.createElement(TextInputs_1.TextInput, { placeholder: "Please Specify Here", value: value.display_desc, onChange: function (k, v) { return handleTextInputChange(v); }, disabled: disabled, invert: invert, S: S })))))),
91
91
  shouldHideSomeOptions && !rightWrongResult && (react_1.default.createElement(Buttons_1.ButtonGhost, { onClick: function () { return setSeeMore(!seeMore); }, value: !seeMore ? 'See More' : 'See Less', style: { marginTop: 10 } })),
92
92
  /*
93
93
  the minute the results have come in, irrespective of user's answer
@@ -5,4 +5,4 @@ export function ResourceDisplayBlock({ resources: _resources, filesLength, uploa
5
5
  removeResource: any;
6
6
  invert: any;
7
7
  }): React.JSX.Element;
8
- import React from "react";
8
+ import React from 'react';
@@ -1,2 +1,2 @@
1
1
  export function ResourceInput(props: any): React.JSX.Element;
2
- import React from "react";
2
+ import React from 'react';
@@ -111,7 +111,7 @@ function SimpleTable(_a) {
111
111
  setColWidthConfig: function (setterFn) {
112
112
  var newColWidthConfig = setterFn(value.colWidthConfig);
113
113
  onChange(id, __assign(__assign({}, value), { colWidthConfig: newColWidthConfig }));
114
- },
114
+ }, // here we are replicating the setState(prev => do something) behaviour
115
115
  colWidthConfig: value.colWidthConfig,
116
116
  theme: theme,
117
117
  }), resetColResizeState = _f.resetColResizeState, hideShowDragZoneIndicator = _f.hideShowDragZoneIndicator, initColResizeState = _f.initColResizeState, resetDragZoneIndicator = _f.resetDragZoneIndicator, handleResizeColumn = _f.handleResizeColumn, colResizeState = _f.colResizeState, dragZoneWidth = _f.dragZoneWidth;
@@ -212,32 +212,15 @@ function SimpleTable(_a) {
212
212
  borderStyleActive: "2px solid ".concat((0, utilsOolib_1.getPrimaryColor100)(theme === null || theme === void 0 ? void 0 : theme.colors))
213
213
  } : {}))); }
214
214
  } : {}), { tabIndex: 0 }),
215
- react_1.default.createElement(ColActionsMenu_1.ColActionsMenu, __assign({}, {
216
- value: value,
217
- colIdx: cellIdx,
218
- onChange: onChange,
219
- id: id,
220
- defaultColWidth: defaultColWidth,
221
- setActionsActiveOnCol: setActionsActiveOnCol,
222
- colActionsButtonHeight: colActionsButtonHeight,
223
- conditionsToRender: !readOnly &&
215
+ react_1.default.createElement(ColActionsMenu_1.ColActionsMenu, { value: value, colIdx: cellIdx, onChange: onChange, id: id, defaultColWidth: defaultColWidth, setActionsActiveOnCol: setActionsActiveOnCol, colActionsButtonHeight: colActionsButtonHeight, conditionsToRender: !readOnly &&
224
216
  enableColActions &&
225
217
  rowIdx === 0 &&
226
- hoveredRowAndCol.colIdx === cellIdx,
227
- })),
228
- react_1.default.createElement(RowActionsMenu_1.RowActionsMenu, __assign({}, {
229
- value: value,
230
- rowIdx: rowIdx,
231
- onChange: onChange,
232
- id: id,
233
- setActionsActiveOnRow: setActionsActiveOnRow,
234
- rowActionsButtonWidth: rowActionsButtonWidth,
235
- conditionsToRender: !readOnly &&
218
+ hoveredRowAndCol.colIdx === cellIdx }),
219
+ react_1.default.createElement(RowActionsMenu_1.RowActionsMenu, { value: value, rowIdx: rowIdx, onChange: onChange, id: id, setActionsActiveOnRow: setActionsActiveOnRow, rowActionsButtonWidth: rowActionsButtonWidth, conditionsToRender: !readOnly &&
236
220
  enableRowActions &&
237
221
  cellIdx === 0 &&
238
222
  rowIdx !== undefined && //cuz for fixed col headers, rowIdx is undefined
239
- hoveredRowAndCol.rowIdx === rowIdx,
240
- })),
223
+ hoveredRowAndCol.rowIdx === rowIdx }),
241
224
  react_1.default.createElement("div", { style: { marginRight: dragZoneWidth + "px" } },
242
225
  react_1.default.createElement(CellComp, __assign({}, cellProps, { id: "kp_table_cell__".concat(cell.id, "__rich_input") /*dont mess with this id nomenclature. it needs to stay this way. check out the handleCellInputChange fn to understand */, value: cellValue, readOnly: readOnly || cell.readOnly, onChange: function (k, v) {
243
226
  return handleCellInputChange({ v: v, rowIdx: rowIdx, cellIdx: cellIdx });
@@ -7,7 +7,7 @@ var convertColHeaderConfigToRowData = function (_a) {
7
7
  id: "colHeader",
8
8
  isColHeader: true,
9
9
  cellData: colHeaderData.map(function (d, i) { return ({
10
- value: convertToRichText ? convertToRichText(d) : d,
10
+ value: convertToRichText ? convertToRichText(d) : d, //draftjs data shape
11
11
  readOnly: true,
12
12
  id: "colHeaderCell_".concat(i),
13
13
  }); }),
@@ -4,7 +4,7 @@ exports.convertRowHeaderConfigToCellData = void 0;
4
4
  var convertRowHeaderConfigToCellData = function (_a) {
5
5
  var rowHeaderData = _a.rowHeaderData, rowIdx = _a.rowIdx, convertToRichText = _a.convertToRichText;
6
6
  return ({
7
- value: convertToRichText ? convertToRichText(rowHeaderData[rowIdx]) : rowHeaderData[rowIdx],
7
+ value: convertToRichText ? convertToRichText(rowHeaderData[rowIdx]) : rowHeaderData[rowIdx], //draftjs data shape
8
8
  readOnly: true,
9
9
  id: "rowHeaderCell_".concat(rowIdx),
10
10
  isRowHeader: true
@@ -48,8 +48,8 @@ var prepInitValueFromConfigIfNoValue = function (_a) {
48
48
  };
49
49
  return {
50
50
  value: value,
51
- enableColActions: config.colHeaderData ? false : true,
52
- enableRowActions: config.rowHeaderData ? false : true,
51
+ enableColActions: config.colHeaderData ? false : true, // meaning if config.colHeaderData is defined, then no actions are possible on col
52
+ enableRowActions: config.rowHeaderData ? false : true, // meaning if config.rowHeaderData is defined, then no actions are possible on row
53
53
  canToggleColHeaderStyle: !!!config.colHeaderData, // meaning its true if no config.colHeaderData is defined. else false
54
54
  };
55
55
  };
@@ -41,19 +41,13 @@ function SwitchDouble(_a) {
41
41
  return (react_1.default.createElement("div", null,
42
42
  react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, _EXPORTS_1.getBlockLabelProps)(props))),
43
43
  react_1.default.createElement(styled_1.StyledSwitchWrapperStyle1, null,
44
- react_1.default.createElement(styled_1.STYLED_SANS_3, __assign({}, {
45
- lineHeight: 1,
46
- semibold: isLeftOptionActive ? true : false,
47
- invert: invert,
48
- }), options[0].display),
44
+ react_1.default.createElement(styled_1.STYLED_SANS_3, { lineHeight: 1,
45
+ semibold: isLeftOptionActive ? true : false, invert: invert }, options[0].display),
49
46
  react_1.default.createElement(styled_1.StyledButtonSlider, { invert: invert, disabled: disabled, onClick: handleClick },
50
47
  react_1.default.createElement(styled_1.StyledSwitch, { className: "StyledSwitch" //read in styled.js why we are using an okf-anti-pattern
51
48
  , invert: invert, disabled: disabled, direction: isLeftOptionActive ? "left" : "right" })),
52
- react_1.default.createElement(styled_1.STYLED_SANS_3, __assign({}, {
53
- invert: invert,
54
- semibold: isLeftOptionActive ? false : true,
55
- lineHeight: 1,
56
- }), options[1].display))));
49
+ react_1.default.createElement(styled_1.STYLED_SANS_3, { invert: invert, semibold: isLeftOptionActive ? false : true,
50
+ lineHeight: 1 }, options[1].display))));
57
51
  }
58
52
  exports.SwitchDouble = SwitchDouble;
59
53
  function SwitchSingle(_a) {
@@ -88,7 +82,7 @@ function SwitchSingle(_a) {
88
82
  //else
89
83
  return display; //cuz ofcourse its not optional, so no need to show optional label
90
84
  };
91
- var genDisplayText = function () { return (react_1.default.createElement(styled_1.STYLED_SANS_3, __assign({}, { invert: invert, lineHeight: 1, semibold: isInactive ? false : true }), injectOptionalLabelIntoDisplayText({
85
+ var genDisplayText = function () { return (react_1.default.createElement(styled_1.STYLED_SANS_3, { invert: invert, lineHeight: 1, semibold: isInactive ? false : true }, injectOptionalLabelIntoDisplayText({
92
86
  display: option.display,
93
87
  label: props.label,
94
88
  isRequired: props.isRequired
@@ -39,4 +39,4 @@ export function TagLink({ display, to, invert, M, XS, variant, color }: {
39
39
  variant?: string;
40
40
  color: any;
41
41
  }): React.JSX.Element;
42
- import React from "react";
42
+ import React from 'react';
@@ -1,7 +1,7 @@
1
1
  export const STYLED_ELLIPSIS_SANS_2: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Typo").TypoCompProps>, any, {}, never>;
2
2
  export const STYLED_ELLIPSIS_SANS_3: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Typo").TypoCompProps>, any, {}, never>;
3
3
  export const StyledTagClearIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export const StyledLink: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
4
+ export const StyledLink: import("styled-components").StyledComponent<any, any, any, any>;
5
5
  export const StyledTagDisplay: import("styled-components").StyledComponent<"div", any, {}, never>;
6
6
  export const StyledTagClear: import("styled-components").StyledComponent<"div", any, {}, never>;
7
7
  export const StyledTagSelect: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,6 +1,6 @@
1
1
  export const StyledTimeInputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export const StyledTimeInput: import("styled-components").StyledComponent<"input", any, {}, never>;
3
3
  export const StyledDropDown: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export const StyledMotionDiv: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
4
+ export const StyledMotionDiv: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
5
5
  export const StyledDropDownList: import("styled-components").StyledComponent<"ul", any, {}, never>;
6
6
  export const StyledListItem: import("styled-components").StyledComponent<"li", any, {}, never>;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
- interface TooltipProps {
2
+ export interface TooltipProps {
3
3
  text: string;
4
4
  position?: 'top' | 'bottom' | 'left' | 'right';
5
5
  style?: React.CSSProperties;
6
- children: React.ReactNode;
6
+ children?: React.ReactNode;
7
7
  popOutOfOverflowHiddenParent?: boolean;
8
8
  invert?: boolean;
9
9
  debug?: boolean;
@@ -24,4 +24,3 @@ interface TooltipProps {
24
24
  * @return {ReactElement} The rendered tooltip component.
25
25
  */
26
26
  export declare const Tooltip: React.FunctionComponent<TooltipProps>;
27
- export {};
@@ -61,7 +61,7 @@ var GenComp = function (_a) {
61
61
  var localize = (0, utilsOolib_1.useLocale)();
62
62
  var invert = props.invert, value = props.value, suffix = props.suffix, color = props.color, children = props.children, theme = props.theme, style = props.style, className = props.className, restProps = __rest(props, ["invert", "value", "suffix", "color", "children", "theme", "style", "className"]);
63
63
  var displayText = children || value;
64
- var localText = localize(displayText);
64
+ var localText = localize(displayText === null || displayText === void 0 ? void 0 : displayText.toString());
65
65
  return (react_1.default.createElement(Comp, __assign({}, genFontStylingProps(restProps), { color: color, className: className, style: style, invert: invert }),
66
66
  localText,
67
67
  " ",
@@ -8,4 +8,4 @@ export function VideoActionMenu({ id, isInRTE, value, inputRef, setShowEmbedLink
8
8
  isUploadedVideo: any;
9
9
  invert: any;
10
10
  }): React.JSX.Element;
11
- import React from "react";
11
+ import React from 'react';
@@ -15,4 +15,4 @@ declare function VideoInput({ id, label, sublabel, isRequired, value: _value, on
15
15
  width: any;
16
16
  height: any;
17
17
  }): React.JSX.Element;
18
- import React from "react";
18
+ import React from 'react';
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -116,7 +105,7 @@ function VideoInput(_a) {
116
105
  url.split("&list=")[0].match(regex)[1];
117
106
  }
118
107
  return (react_1.default.createElement(styled_1.StyledVideoEmbedPreviewSection, { style: { height: height } },
119
- actionMenuButton && react_1.default.createElement(VideoActionMenu_1.VideoActionMenu, __assign({}, { isInRTE: isInRTE, value: value, inputRef: inputRef, setShowEmbedLinkModal: setShowEmbedLinkModal, onChange: onChange, isUploadedVideo: isUploadedVideo, invert: invert, id: id })),
108
+ actionMenuButton && react_1.default.createElement(VideoActionMenu_1.VideoActionMenu, { isInRTE: isInRTE, value: value, inputRef: inputRef, setShowEmbedLinkModal: setShowEmbedLinkModal, onChange: onChange, isUploadedVideo: isUploadedVideo, invert: invert, id: id }),
120
109
  react_1.default.createElement(react_player_1.default, { id: "outVideo", url: url, controls: true, width: width || "100%", height: height, light: lightPlayer, style: { overflow: "hidden" } })));
121
110
  }
122
111
  };
@@ -130,15 +119,7 @@ function VideoInput(_a) {
130
119
  enableVideoUpload && (react_1.default.createElement(react_1.default.Fragment, null,
131
120
  react_1.default.createElement(Typo_1.SANS_2, { semibold: true, color: invert ? themes_1.colors.white_opacity60 : themes_1.colors.greyColor80 }, "OR"),
132
121
  react_1.default.createElement(Buttons_1.ButtonSecondary, { onClick: function () { return inputRef.current.click(); }, value: "Upload A Video", icon: "UploadSimple", invert: invert, id: "videoField" }))))),
133
- showEmbedLinkModal && (react_1.default.createElement(EmbedLinkModal_1.EmbedLinkModal, __assign({}, {
134
- setShowEmbedLinkModal: setShowEmbedLinkModal,
135
- value: value,
136
- createVideoPreview: createVideoPreview,
137
- canPlay: canPlay,
138
- onChange: onChange,
139
- id: id,
140
- invert: invert
141
- }))),
122
+ showEmbedLinkModal && (react_1.default.createElement(EmbedLinkModal_1.EmbedLinkModal, { setShowEmbedLinkModal: setShowEmbedLinkModal, value: value, createVideoPreview: createVideoPreview, canPlay: canPlay, onChange: onChange, id: id, invert: invert })),
142
123
  react_1.default.createElement("input", { type: "file" // When user clicks on upload new video from action menu inputRef.current.click() this does not work for upload button. this approch deals with that issue.
143
124
  , accept: "video/*", ref: inputRef, style: { display: "none" }, id: "videoField", onChange: function (v) { return handleUpload(v.target.files); } })));
144
125
  }
@@ -0,0 +1,2 @@
1
+ export function WrapperCardGrid(props: any): React.JSX.Element;
2
+ import React from "react";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.WrapperCardGrid = void 0;
11
+ var react_1 = __importDefault(require("react"));
12
+ var styled_components_1 = __importDefault(require("styled-components"));
13
+ var StyledWrapperCardGrid = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n position: relative;\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));\n grid-template-rows: auto;\n grid-row-gap: 2rem;\n grid-column-gap: 2rem;\n"], ["\n width: 100%;\n position: relative;\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));\n grid-template-rows: auto;\n grid-row-gap: 2rem;\n grid-column-gap: 2rem;\n"])));
14
+ var WrapperCardGrid = function (props) {
15
+ var style = props.style, className = props.className, children = props.children, id = props.id;
16
+ return (react_1.default.createElement(StyledWrapperCardGrid, { id: id, style: style, className: className }, children));
17
+ };
18
+ exports.WrapperCardGrid = WrapperCardGrid;
19
+ var templateObject_1;
@@ -6,4 +6,4 @@ export function Wrapper800(props: any): React.JSX.Element;
6
6
  export function Wrapper820(props: any): React.JSX.Element;
7
7
  export function Wrapper700(props: any): React.JSX.Element;
8
8
  export function Wrapper650(props: any): React.JSX.Element;
9
- import React from "react";
9
+ import React from 'react';
@@ -20,7 +20,7 @@ var index_styled_1 = require("./index.styled");
20
20
  var Wrapper = function (_a) {
21
21
  var style = _a.style, children = _a.children, className = _a.className, maxWidth = _a.maxWidth, left = _a.left, align = _a.align;
22
22
  align = align || (left ? 'left' : 'center');
23
- return (react_1.default.createElement(index_styled_1.StyledWrapper, __assign({}, { maxWidth: maxWidth, align: align }, { className: className || "", style: style }), children));
23
+ return (react_1.default.createElement(index_styled_1.StyledWrapper, { maxWidth: maxWidth, align: align, className: className || "", style: style }, children));
24
24
  };
25
25
  var Wrapper1500 = function (props) { return react_1.default.createElement(Wrapper, __assign({}, props, { maxWidth: 1500 })); };
26
26
  exports.Wrapper1500 = Wrapper1500;
@@ -0,0 +1,7 @@
1
+ export const StyledListProfileWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export const StyledProfile: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export const StyledContentModule1: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export const StyledListTitle: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../Typo").TypoCompProps>, any, {}, never>;
5
+ export const StyledLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export const StyledMeta: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export const StyledContentModule2: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.StyledContentModule2 = exports.StyledMeta = exports.StyledLabel = exports.StyledListTitle = exports.StyledContentModule1 = exports.StyledProfile = exports.StyledListProfileWrapper = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ var styled_1 = require("../styled");
13
+ var themes_1 = require("../../../themes");
14
+ var Typo_1 = require("../../Typo");
15
+ var greyColor15 = themes_1.colors.greyColor15;
16
+ exports.StyledListProfileWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n padding-bottom: 2rem;\n :hover {\n ", ";\n }\n"], ["\n width: 100%;\n padding-bottom: 2rem;\n :hover {\n ", ";\n }\n"])), styled_1.CSSTitleAnimationOnHover);
17
+ exports.StyledProfile = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n cursor: pointer;\n align-items: center;\n border-top: 1px solid ", ";\n padding-top: 2rem;\n"], ["\n display: flex;\n justify-content: space-between;\n cursor: pointer;\n align-items: center;\n border-top: 1px solid ", ";\n padding-top: 2rem;\n"])), greyColor15);
18
+ exports.StyledContentModule1 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 75%;\n height: 100%; \n"], ["\n width: 75%;\n height: 100%; \n"])));
19
+ exports.StyledListTitle = (0, styled_components_1.default)(Typo_1.SERIF_5_6)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n\n"], ["\n\n"])));
20
+ exports.StyledLabel = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-top: .5rem;\n"], ["\n margin-top: .5rem;\n"])));
21
+ exports.StyledMeta = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n /* margin-top: .5rem; */\n"], ["\n /* margin-top: .5rem; */\n"])));
22
+ exports.StyledContentModule2 = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1rem;\n"], ["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1rem;\n"])));
23
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
@@ -26,7 +26,7 @@ var parseCardConfig = function (_a) {
26
26
  video: video,
27
27
  image: image,
28
28
  imageAspectRatio: imageAspectRatio,
29
- metaBlock: (_d = config.metaBlock) === null || _d === void 0 ? void 0 : _d.slice(0, 2),
29
+ metaBlock: (_d = config.metaBlock) === null || _d === void 0 ? void 0 : _d.slice(0, 2), //metablock in cards doesnt accept more than 2 configs
30
30
  tagDisplay: tagDisplay,
31
31
  };
32
32
  };
@@ -16,6 +16,7 @@ declare namespace _default {
16
16
  export { max };
17
17
  export { bisector };
18
18
  export { mouse };
19
+ export const event: any;
19
20
  export { axisBottom };
20
21
  export { axisLeft };
21
22
  export { axisRight };
@@ -32,7 +32,7 @@ exports.default = {
32
32
  max: d3_array_1.max,
33
33
  bisector: d3_array_1.bisector,
34
34
  mouse: d3_selection_1.mouse,
35
- get event() { return d3_selection_1.event; },
35
+ get event() { return d3_selection_1.event; }, //read here for explanation of this wierdness: https://stackoverflow.com/questions/40012016/importing-d3-event-into-a-custom-build-using-rollup/40048292#40048292
36
36
  axisBottom: d3_axis_1.axisBottom,
37
37
  axisLeft: d3_axis_1.axisLeft,
38
38
  axisRight: d3_axis_1.axisRight,
@@ -62,3 +62,4 @@ export declare const IndonesiaFlag: (props: any) => React.JSX.Element;
62
62
  export declare const ChileFlag: (props: any) => React.JSX.Element;
63
63
  export declare const PakistanFlag: (props: any) => React.JSX.Element;
64
64
  export declare const SpainFlag: (props: any) => React.JSX.Element;
65
+ export declare const Stars: (props: any) => React.JSX.Element;
@@ -15,7 +15,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.USAFlag = exports.UKFlag = exports.MalaysiaFlag = exports.ColombiaFlag = exports.BrazilFlag = exports.AudioEmbedIcon = exports.VideoEmbedIcon = exports.Attachment2 = exports.PDFIcon = exports.RichFormatToolOrderedList = exports.RichFormatToolUnorderedList = exports.RichFormatToolH2 = exports.RichFormatToolBlockquote = exports.LinkIcon = exports.UnderlineBtn = exports.ItalicBtn = exports.BoldBtn = exports.SettingsSM = exports.Close_S = exports.UploadImage = exports.KebabMenu = exports.Website_solid_SM = exports.Phone_solid_SM = exports.Mail_solid_SM = exports.Youtube_solid_SM = exports.Instagram_solid_SM = exports.Twitter_solid_SM = exports.Linkedin_solid_SM = exports.Facebook_solid_SM = exports.EditSM = exports.AddXS = exports.UploadSM = exports.Download = exports.Download__nofill = exports.Index = exports.Person14 = exports.Location14 = exports.ModalBulbIcon = exports.KenyaFlag = exports.NigeriaFlag = exports.IndiaFlag = exports.BadgeVetted = exports.BadgeMod = exports.BadgeSuperAdmin = exports.BadgeAdmin = exports.OkeGoogleIcon = exports.LetterH = exports.LanguageIcon = exports.MultipleImages = exports.IndexIcon = void 0;
18
- exports.SpainFlag = exports.PakistanFlag = exports.ChileFlag = exports.IndonesiaFlag = void 0;
18
+ exports.Stars = exports.SpainFlag = exports.PakistanFlag = exports.ChileFlag = exports.IndonesiaFlag = void 0;
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var themes_1 = require("../../themes");
21
21
  var DisplayIcon_1 = require("../../utils/comps/DisplayIcon");
@@ -424,3 +424,8 @@ var SpainFlag = function (props) {
424
424
  react_1.default.createElement("path", { fill: "#66757F", d: "M6 22h3v1H6zm9 0h3v1h-3zm-8-7h1v1H7zm9 0h1v1h-1z" })));
425
425
  };
426
426
  exports.SpainFlag = SpainFlag;
427
+ var Stars = function (props) {
428
+ return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22 22", width: props.size || 30, height: props.size || 30, fill: "none" },
429
+ react_1.default.createElement("path", { fill: "#000", d: "M17.027 11.35 12.19 9.562l-1.78-4.84a1.493 1.493 0 0 0-2.802 0l-1.793 4.84-4.84 1.78a1.492 1.492 0 0 0 0 2.802l4.84 1.793 1.782 4.839a1.493 1.493 0 0 0 2.8 0l1.793-4.84 4.84-1.78a1.492 1.492 0 0 0 0-2.802l-.004-.006Zm-5.68 3.296a.75.75 0 0 0-.444.444l-1.9 5.146-1.895-5.142a.75.75 0 0 0-.448-.448L1.518 12.75l5.142-1.896a.75.75 0 0 0 .448-.448l1.896-5.142 1.895 5.142a.75.75 0 0 0 .445.445l5.146 1.899-5.142 1.896ZM12.005 3a.75.75 0 0 1 .75-.75h1.5V.75a.75.75 0 1 1 1.5 0v1.5h1.5a.75.75 0 1 1 0 1.5h-1.5v1.5a.75.75 0 1 1-1.5 0v-1.5h-1.5a.75.75 0 0 1-.75-.75Zm9.75 4.5a.75.75 0 0 1-.75.75h-.75V9a.75.75 0 1 1-1.5 0v-.75h-.75a.75.75 0 1 1 0-1.5h.75V6a.75.75 0 1 1 1.5 0v.75h.75a.75.75 0 0 1 .75.75Z" })));
430
+ };
431
+ exports.Stars = Stars;