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
@@ -0,0 +1,50 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Playground = exports.ListContent = void 0;
18
+ var react_1 = __importDefault(require("react"));
19
+ var Container_1 = require("../../components/Container");
20
+ var Paddings_1 = require("../../components/Paddings");
21
+ var ListContent_1 = require("../../components/cards/ListContent");
22
+ var ListContent_mdx_1 = __importDefault(require("./ListContent.mdx"));
23
+ var cardArgTypes_1 = require("./utils/cardArgTypes");
24
+ var parseCardArgs_1 = require("./utils/parseCardArgs");
25
+ var Wrappers_1 = require("../../components/Wrappers");
26
+ var makeArrayFromLength_1 = require("../../utils/makeArrayFromLength");
27
+ exports.default = {
28
+ title: "Components/ListContent",
29
+ argTypes: __assign(__assign({}, cardArgTypes_1.commonCardArgTypes), cardArgTypes_1.listContentArgTypes),
30
+ args: __assign(__assign({}, cardArgTypes_1.commonCardArgs), cardArgTypes_1.listContentArgs),
31
+ parameters: {
32
+ docs: {
33
+ page: ListContent_mdx_1.default,
34
+ },
35
+ },
36
+ };
37
+ var ListContent = function (args) {
38
+ var props = (0, parseCardArgs_1.parseCardArgs)(args);
39
+ return (react_1.default.createElement(Container_1.Container, null,
40
+ react_1.default.createElement(Paddings_1.PaddingTopBottom30, null,
41
+ react_1.default.createElement(ListContent_1.ListContent, __assign({}, props, { config: props.config })))));
42
+ };
43
+ exports.ListContent = ListContent;
44
+ var Playground = function (args) {
45
+ var props = (0, parseCardArgs_1.parseCardArgs)(args);
46
+ return (react_1.default.createElement(Container_1.Container, null,
47
+ react_1.default.createElement(Paddings_1.PaddingTopBottom30, null,
48
+ react_1.default.createElement(Wrappers_1.Wrapper700, { left: true }, (0, makeArrayFromLength_1.makeArrayFromLength)(50).map(function (d) { return (react_1.default.createElement(ListContent_1.ListContent, __assign({}, props, { config: props.config }))); })))));
49
+ };
50
+ exports.Playground = Playground;
@@ -0,0 +1,41 @@
1
+ declare namespace _default {
2
+ let title: string;
3
+ let argTypes: {
4
+ image: {
5
+ name: string;
6
+ control: string;
7
+ };
8
+ title: {
9
+ name: string;
10
+ control: string;
11
+ };
12
+ cardLabel: {
13
+ name: string;
14
+ control: string;
15
+ };
16
+ metaText: {
17
+ name: string;
18
+ control: string;
19
+ };
20
+ metaName: {
21
+ name: string;
22
+ control: string;
23
+ };
24
+ metaDate: {
25
+ name: string;
26
+ control: string;
27
+ };
28
+ };
29
+ let args: {
30
+ image: string;
31
+ title: string;
32
+ cardLabel: string;
33
+ metaText: string;
34
+ metaName: string;
35
+ metaDate: number;
36
+ };
37
+ }
38
+ export default _default;
39
+ export function ListProfile(args: any): React.JSX.Element;
40
+ export function Playground(args: any): React.JSX.Element;
41
+ import React from "react";
@@ -0,0 +1,46 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Playground = exports.ListProfile = void 0;
18
+ var react_1 = __importDefault(require("react"));
19
+ var Container_1 = require("../../components/Container");
20
+ var Paddings_1 = require("../../components/Paddings");
21
+ var WrapperCardGrid_1 = require("../../components/Wrappers/WrapperCardGrid");
22
+ var Wrappers_1 = require("../../components/Wrappers");
23
+ var ListProfile_1 = require("../../components/cards/ListProfile");
24
+ var cardArgTypes_1 = require("./utils/cardArgTypes");
25
+ var parseCardArgs_1 = require("./utils/parseCardArgs");
26
+ var makeArrayFromLength_1 = require("../../utils/makeArrayFromLength");
27
+ var excludeKeys_1 = require("../../utilsOolib/excludeKeys");
28
+ exports.default = {
29
+ title: "Components/ListProfile",
30
+ argTypes: __assign(__assign({}, (0, excludeKeys_1.excludeKeys)(cardArgTypes_1.commonCardArgTypes, ['mediaType', 'image', 'video'])), cardArgTypes_1.listProfileArgTypes),
31
+ args: __assign(__assign({}, (0, excludeKeys_1.excludeKeys)(cardArgTypes_1.commonCardArgs, ['mediaType', 'image', 'video'])), cardArgTypes_1.listProfileArgs),
32
+ };
33
+ var ListProfile = function (args) {
34
+ var props = (0, parseCardArgs_1.parseCardArgs)(args);
35
+ return (react_1.default.createElement(Container_1.Container, null,
36
+ react_1.default.createElement(Paddings_1.PaddingTopBottom30, null,
37
+ react_1.default.createElement(ListProfile_1.ListProfile, __assign({}, props, { config: __assign(__assign({}, props.config), { image: 'image' }) })))));
38
+ };
39
+ exports.ListProfile = ListProfile;
40
+ var Playground = function (args) {
41
+ var props = (0, parseCardArgs_1.parseCardArgs)(args);
42
+ return (react_1.default.createElement(Container_1.Container, null,
43
+ react_1.default.createElement(Paddings_1.PaddingTopBottom30, null,
44
+ react_1.default.createElement(Wrappers_1.Wrapper700, { left: true }, (0, makeArrayFromLength_1.makeArrayFromLength)(50).map(function (d) { return (react_1.default.createElement(ListProfile_1.ListProfile, __assign({}, props, { config: __assign(__assign({}, props.config), { image: 'image' }) }))); })))));
45
+ };
46
+ exports.Playground = Playground;
@@ -0,0 +1,182 @@
1
+ export namespace commonCardArgs {
2
+ let cardLabel: string;
3
+ let title: string;
4
+ let metaText: string;
5
+ let metaName: string;
6
+ let metaDate: number;
7
+ let mediaType: string;
8
+ let image: string;
9
+ let video: string;
10
+ }
11
+ export namespace commonCardArgTypes {
12
+ export namespace cardLabel_1 {
13
+ let name: string;
14
+ let control: string;
15
+ }
16
+ export { cardLabel_1 as cardLabel };
17
+ export namespace title_1 {
18
+ let name_1: string;
19
+ export { name_1 as name };
20
+ let control_1: string;
21
+ export { control_1 as control };
22
+ }
23
+ export { title_1 as title };
24
+ export namespace mediaType_1 {
25
+ let name_2: string;
26
+ export { name_2 as name };
27
+ let control_2: string;
28
+ export { control_2 as control };
29
+ export let options: string[];
30
+ }
31
+ export { mediaType_1 as mediaType };
32
+ export namespace image_1 {
33
+ let name_3: string;
34
+ export { name_3 as name };
35
+ let control_3: string;
36
+ export { control_3 as control };
37
+ export namespace _if {
38
+ let arg: string;
39
+ let eq: string;
40
+ }
41
+ export { _if as if };
42
+ }
43
+ export { image_1 as image };
44
+ export namespace video_1 {
45
+ let name_4: string;
46
+ export { name_4 as name };
47
+ let control_4: string;
48
+ export { control_4 as control };
49
+ export namespace _if_1 {
50
+ let arg_1: string;
51
+ export { arg_1 as arg };
52
+ let eq_1: string;
53
+ export { eq_1 as eq };
54
+ }
55
+ export { _if_1 as if };
56
+ }
57
+ export { video_1 as video };
58
+ export namespace metaText_1 {
59
+ let name_5: string;
60
+ export { name_5 as name };
61
+ let control_5: string;
62
+ export { control_5 as control };
63
+ }
64
+ export { metaText_1 as metaText };
65
+ export namespace metaName_1 {
66
+ let name_6: string;
67
+ export { name_6 as name };
68
+ let control_6: string;
69
+ export { control_6 as control };
70
+ }
71
+ export { metaName_1 as metaName };
72
+ export namespace metaDate_1 {
73
+ let name_7: string;
74
+ export { name_7 as name };
75
+ let control_7: string;
76
+ export { control_7 as control };
77
+ }
78
+ export { metaDate_1 as metaDate };
79
+ }
80
+ export namespace cardContentArgs {
81
+ let actions: boolean;
82
+ }
83
+ export namespace cardContentArgTypes {
84
+ export namespace actions_1 {
85
+ let name_8: string;
86
+ export { name_8 as name };
87
+ export namespace control_8 {
88
+ let type: string;
89
+ }
90
+ export { control_8 as control };
91
+ }
92
+ export { actions_1 as actions };
93
+ }
94
+ export namespace listContentArgs {
95
+ export let statusTag: any;
96
+ let actions_2: boolean;
97
+ export { actions_2 as actions };
98
+ }
99
+ export namespace listContentArgTypes {
100
+ export namespace statusTag_1 {
101
+ let name_9: string;
102
+ export { name_9 as name };
103
+ export namespace control_9 {
104
+ let type_1: string;
105
+ export { type_1 as type };
106
+ }
107
+ export { control_9 as control };
108
+ }
109
+ export { statusTag_1 as statusTag };
110
+ export namespace actions_3 {
111
+ let name_10: string;
112
+ export { name_10 as name };
113
+ export namespace control_10 {
114
+ let type_2: string;
115
+ export { type_2 as type };
116
+ }
117
+ export { control_10 as control };
118
+ }
119
+ export { actions_3 as actions };
120
+ }
121
+ export namespace cardEmbedArgs {
122
+ let disabled: boolean;
123
+ }
124
+ export namespace cardEmbedArgTypes {
125
+ export namespace disabled_1 {
126
+ let name_11: string;
127
+ export { name_11 as name };
128
+ let control_11: string;
129
+ export { control_11 as control };
130
+ }
131
+ export { disabled_1 as disabled };
132
+ }
133
+ export namespace cardProfileArgs {
134
+ export let tagDisplay: any;
135
+ let image_2: string;
136
+ export { image_2 as image };
137
+ let title_2: string;
138
+ export { title_2 as title };
139
+ let cardLabel_2: string;
140
+ export { cardLabel_2 as cardLabel };
141
+ let metaText_2: string;
142
+ export { metaText_2 as metaText };
143
+ let metaName_2: string;
144
+ export { metaName_2 as metaName };
145
+ }
146
+ export namespace cardProfileArgTypes {
147
+ export namespace tagDisplay_1 {
148
+ let name_12: string;
149
+ export { name_12 as name };
150
+ let control_12: string;
151
+ export { control_12 as control };
152
+ }
153
+ export { tagDisplay_1 as tagDisplay };
154
+ export namespace image_3 {
155
+ let name_13: string;
156
+ export { name_13 as name };
157
+ let control_13: string;
158
+ export { control_13 as control };
159
+ }
160
+ export { image_3 as image };
161
+ }
162
+ export namespace listProfileArgs {
163
+ let image_4: string;
164
+ export { image_4 as image };
165
+ let title_3: string;
166
+ export { title_3 as title };
167
+ let cardLabel_3: string;
168
+ export { cardLabel_3 as cardLabel };
169
+ let metaText_3: string;
170
+ export { metaText_3 as metaText };
171
+ let metaName_3: string;
172
+ export { metaName_3 as metaName };
173
+ }
174
+ export namespace listProfileArgTypes {
175
+ export namespace image_5 {
176
+ let name_14: string;
177
+ export { name_14 as name };
178
+ let control_14: string;
179
+ export { control_14 as control };
180
+ }
181
+ export { image_5 as image };
182
+ }
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listProfileArgTypes = exports.listProfileArgs = exports.cardProfileArgTypes = exports.cardProfileArgs = exports.cardEmbedArgTypes = exports.cardEmbedArgs = exports.listContentArgTypes = exports.listContentArgs = exports.cardContentArgTypes = exports.cardContentArgs = exports.commonCardArgTypes = exports.commonCardArgs = void 0;
4
+ //this order decides the order of the controls
5
+ exports.commonCardArgs = {
6
+ cardLabel: "Stories",
7
+ title: "North East India Sand Mining 2018: Emerging threat to Rivers",
8
+ metaText: "Status of Menstrual Health And Hygiene",
9
+ metaName: "John Doe",
10
+ metaDate: 1689618600000,
11
+ mediaType: 'noMedia',
12
+ image: "https://img-getpocket.cdn.mozilla.net/592x296/filters:format(jpeg):quality(60):no_upscale():strip_exif()/https%3A%2F%2Fs3.us-east-1.amazonaws.com%2Fpocket-curatedcorpusapi-prod-images%2Fea9abf6e-f4d2-472a-9438-1d49be1249e6.jpeg",
13
+ video: "https://www.youtube.com/watch?v=4iQmPv_dTI0"
14
+ };
15
+ exports.commonCardArgTypes = {
16
+ cardLabel: {
17
+ name: "Label",
18
+ control: "text",
19
+ },
20
+ title: {
21
+ name: "Title",
22
+ control: "text",
23
+ },
24
+ mediaType: {
25
+ name: 'Media Type',
26
+ control: 'select',
27
+ options: ["no media", "image", "video"],
28
+ },
29
+ image: {
30
+ name: "Image",
31
+ control: "text",
32
+ if: { arg: 'mediaType', eq: 'image' }
33
+ },
34
+ video: {
35
+ name: "Video",
36
+ control: "text",
37
+ if: { arg: 'mediaType', eq: 'video' }
38
+ },
39
+ metaText: {
40
+ name: "Meta (Text)",
41
+ control: "text",
42
+ },
43
+ metaName: {
44
+ name: "Meta (Name)",
45
+ control: "text",
46
+ },
47
+ metaDate: {
48
+ name: "Meta (Date)",
49
+ control: "date",
50
+ }
51
+ };
52
+ exports.cardContentArgs = {
53
+ actions: false
54
+ };
55
+ exports.cardContentArgTypes = {
56
+ actions: {
57
+ name: "Actions",
58
+ control: { type: "boolean" },
59
+ },
60
+ };
61
+ exports.listContentArgs = {
62
+ statusTag: undefined,
63
+ actions: false
64
+ };
65
+ exports.listContentArgTypes = {
66
+ statusTag: {
67
+ name: "Status Tag",
68
+ control: { type: "text" },
69
+ },
70
+ actions: {
71
+ name: "Actions",
72
+ control: { type: "boolean" },
73
+ },
74
+ };
75
+ exports.cardEmbedArgs = {
76
+ disabled: false
77
+ };
78
+ exports.cardEmbedArgTypes = {
79
+ disabled: {
80
+ name: 'Disabled',
81
+ control: 'boolean'
82
+ }
83
+ };
84
+ exports.cardProfileArgs = {
85
+ tagDisplay: undefined,
86
+ image: 'https://storage.googleapis.com/wqn_prod__media/images/9cc8eec3-a8af-4fb7-98a1-22370e57fab3.jpeg',
87
+ title: 'Somebody Subramaniam',
88
+ cardLabel: 'Strategy & partnerships',
89
+ metaText: 'Inrem Foundation',
90
+ metaName: 'Balasore'
91
+ };
92
+ exports.cardProfileArgTypes = {
93
+ tagDisplay: {
94
+ name: 'Tag Display',
95
+ control: 'text'
96
+ },
97
+ image: {
98
+ name: "Image",
99
+ control: "text"
100
+ }
101
+ };
102
+ exports.listProfileArgs = {
103
+ image: 'https://storage.googleapis.com/wqn_prod__media/images/9cc8eec3-a8af-4fb7-98a1-22370e57fab3.jpeg',
104
+ title: 'Somebody Subramaniam',
105
+ cardLabel: 'Strategy & partnerships',
106
+ metaText: 'Inrem Foundation',
107
+ metaName: 'Balasore'
108
+ };
109
+ exports.listProfileArgTypes = {
110
+ image: {
111
+ name: "Image",
112
+ control: "text"
113
+ }
114
+ };
@@ -0,0 +1,46 @@
1
+ export function parseCardArgs({ cardLabel, title, mediaType, image, video, metaText, metaName, metaDate, actions: _actions, statusTag, disabled, tagDisplay }: {
2
+ cardLabel: any;
3
+ title: any;
4
+ mediaType: any;
5
+ image: any;
6
+ video: any;
7
+ metaText: any;
8
+ metaName: any;
9
+ metaDate: any;
10
+ actions: any;
11
+ statusTag: any;
12
+ disabled: any;
13
+ tagDisplay: any;
14
+ }): {
15
+ data: {
16
+ title: any;
17
+ cardLabel: any;
18
+ image: {
19
+ publicUrl: any;
20
+ }[];
21
+ video: {
22
+ publicUrl: any;
23
+ }[];
24
+ text: any;
25
+ name: any;
26
+ date: any;
27
+ tagDisplay: any;
28
+ };
29
+ actions: {
30
+ display: string;
31
+ onClick: () => void;
32
+ }[];
33
+ statusTag: any;
34
+ config: {
35
+ metaBlock: {
36
+ key: string;
37
+ valuePath: string;
38
+ }[];
39
+ video?: string;
40
+ image?: string;
41
+ title: string;
42
+ cardLabel: string;
43
+ tagDisplay: string;
44
+ };
45
+ disabled: any;
46
+ };
@@ -0,0 +1,57 @@
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
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
+ if (ar || !(i in from)) {
16
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
+ ar[i] = from[i];
18
+ }
19
+ }
20
+ return to.concat(ar || Array.prototype.slice.call(from));
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.parseCardArgs = void 0;
24
+ var parseCardArgs = function (_a) {
25
+ var cardLabel = _a.cardLabel, title = _a.title, mediaType = _a.mediaType, image = _a.image, video = _a.video, metaText = _a.metaText, metaName = _a.metaName, metaDate = _a.metaDate, _actions = _a.actions, statusTag = _a.statusTag, disabled = _a.disabled, tagDisplay = _a.tagDisplay;
26
+ var data = {
27
+ title: title,
28
+ cardLabel: cardLabel,
29
+ image: image && [{ publicUrl: image }],
30
+ video: video && [{ publicUrl: video }],
31
+ text: metaText || undefined,
32
+ name: metaName || undefined,
33
+ date: metaDate || undefined,
34
+ tagDisplay: tagDisplay,
35
+ };
36
+ var config = __assign(__assign(__assign({ title: "title", cardLabel: "cardLabel", tagDisplay: "tagDisplay" }, (mediaType === "image" ? { image: "image" } : {})), (mediaType === "video" ? { video: "video" } : {})), { metaBlock: __spreadArray(__spreadArray(__spreadArray([], (metaText ? [{ key: "text", valuePath: "text" }] : []), true), (metaName ? [{ key: "name", valuePath: "name" }] : []), true), (metaDate ? [{ key: "date", valuePath: "date" }] : []), true) });
37
+ var actions = !_actions
38
+ ? undefined
39
+ : [
40
+ {
41
+ display: "Option 1",
42
+ onClick: function () { return console.log("option 1"); },
43
+ },
44
+ {
45
+ display: "Option 2",
46
+ onClick: function () { return console.log("option 2"); },
47
+ },
48
+ ];
49
+ return {
50
+ data: data,
51
+ actions: actions,
52
+ statusTag: statusTag,
53
+ config: config,
54
+ disabled: disabled
55
+ };
56
+ };
57
+ exports.parseCardArgs = parseCardArgs;
@@ -49,3 +49,54 @@ export declare const colors: {
49
49
  annoPink: string;
50
50
  annoBlue: string;
51
51
  };
52
+ export interface ColorsType {
53
+ none: string;
54
+ white: string;
55
+ white_opacity50: string;
56
+ white_opacity80: string;
57
+ white_opacity60: string;
58
+ red: string;
59
+ lightRed: string;
60
+ invertRed: string;
61
+ hoverRed: string;
62
+ hoverInvertRed: string;
63
+ yellow: string;
64
+ lightYellow: string;
65
+ green: string;
66
+ lightGreen: string;
67
+ invertGreen: string;
68
+ hoverGreen: string;
69
+ invertHoverGreen: string;
70
+ cyan: string;
71
+ lightPink: string;
72
+ blue: string;
73
+ lightBlue: string;
74
+ black: string;
75
+ black_opacity80: string;
76
+ black_opacity30: string;
77
+ black_opacity05: string;
78
+ black_opacity50: string;
79
+ greyColor100: string;
80
+ greyColor90: string;
81
+ greyColor80: string;
82
+ greyColor70: string;
83
+ greyColor50: string;
84
+ greyColor40: string;
85
+ greyColor15: string;
86
+ greyColor10: string;
87
+ greyColor5: string;
88
+ greyColor3: string;
89
+ greyColor100_opacity70: string;
90
+ lightShadowColor: string;
91
+ darkShadowColor: string;
92
+ disabledShadowColor: string;
93
+ primaryColor10: string;
94
+ primaryColor100: string;
95
+ primaryColor40: string;
96
+ primaryColorText: string;
97
+ pinkHighlight: string;
98
+ blueHighlight: string;
99
+ yellowHighlight: string;
100
+ annoPink: string;
101
+ annoBlue: string;
102
+ }
@@ -4,4 +4,4 @@ export function DisplayIcon({ icon, size, color, weight }: {
4
4
  color: any;
5
5
  weight?: string;
6
6
  }): React.JSX.Element;
7
- import React from "react";
7
+ import React from 'react';
@@ -13,7 +13,7 @@ var getBlockLabelProps = function (props) {
13
13
  'error',
14
14
  'isRequired',
15
15
  'invert',
16
- 'hints',
16
+ 'hints', // dummy commit for this
17
17
  "hintsBtnLabel",
18
18
  "hintsTitle",
19
19
  "hintsSubtitle",
@@ -0,0 +1,60 @@
1
+ declare namespace sampleObj {
2
+ namespace key1 {
3
+ let key2: string[][];
4
+ let key4: string;
5
+ }
6
+ }
7
+ declare namespace returned {
8
+ let getVal: string[][];
9
+ }
10
+ declare namespace sampleObj2 {
11
+ export namespace key1_1 {
12
+ let key2_1: {
13
+ aryKey1: {
14
+ aryKey2: string;
15
+ }[];
16
+ }[];
17
+ export { key2_1 as key2 };
18
+ let key4_1: string;
19
+ export { key4_1 as key4 };
20
+ }
21
+ export { key1_1 as key1 };
22
+ }
23
+ declare namespace returned2 {
24
+ let getVal_1: string[];
25
+ export { getVal_1 as getVal };
26
+ }
27
+ declare namespace sampleObj4 {
28
+ export namespace key1_2 {
29
+ let key2_2: {
30
+ aryKey1: {
31
+ aryKey2: {
32
+ aryKey3: string[];
33
+ }[];
34
+ }[];
35
+ }[];
36
+ export { key2_2 as key2 };
37
+ let key4_2: string;
38
+ export { key4_2 as key4 };
39
+ }
40
+ export { key1_2 as key1 };
41
+ }
42
+ declare namespace returned4 {
43
+ let getVal_2: string[];
44
+ export { getVal_2 as getVal };
45
+ }
46
+ declare namespace sampleObj3 {
47
+ export namespace key1_3 {
48
+ let key2_3: {
49
+ aryInside: string[];
50
+ }[];
51
+ export { key2_3 as key2 };
52
+ let key4_3: string;
53
+ export { key4_3 as key4 };
54
+ }
55
+ export { key1_3 as key1 };
56
+ }
57
+ declare namespace returned3 {
58
+ let getVal_3: string[][];
59
+ export { getVal_3 as getVal };
60
+ }