oolib 2.188.8 → 2.190.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 (41) hide show
  1. package/dist/components/Dropdowns/DropdownMulti/index.js +2 -0
  2. package/dist/components/Dropdowns/DropdownSingle/index.js +6 -1
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.js +1 -1
  5. package/dist/stories/v2/components/Accordion.stories.js +1 -1
  6. package/dist/stories/v2/components/BarChart.stories.js +146 -43
  7. package/dist/stories/v2/components/BarGraphCollection.stories.d.ts +18 -0
  8. package/dist/stories/v2/components/BarGraphCollection.stories.js +122 -0
  9. package/dist/stories/v2/components/HeatMapGrid.stories.d.ts +17 -0
  10. package/dist/stories/v2/components/HeatMapGrid.stories.js +107 -0
  11. package/dist/v2/components/DataVizAccordion/index.d.ts +1 -1
  12. package/dist/v2/components/DataVizAccordion/index.js +1 -1
  13. package/dist/v2/components/Dropdowns/DropdownMulti/index.js +2 -0
  14. package/dist/v2/components/Dropdowns/DropdownSingle/index.js +6 -1
  15. package/dist/v2/components/dataviz/BarChart/_base_barchart_ui_configs.d.ts +18 -0
  16. package/dist/v2/components/dataviz/BarChart/_base_barchart_ui_configs.js +24 -0
  17. package/dist/v2/components/{BarChart → dataviz/BarChart}/comps/CustomTooltip/index.d.ts +4 -4
  18. package/dist/v2/components/dataviz/BarChart/comps/CustomTooltip/index.js +161 -0
  19. package/dist/v2/components/{BarChart → dataviz/BarChart}/comps/CustomizedLabel/index.d.ts +7 -12
  20. package/dist/v2/components/{BarChart → dataviz/BarChart}/comps/CustomizedLabel/index.js +22 -12
  21. package/dist/v2/components/{BarChart → dataviz/BarChart}/index.d.ts +12 -14
  22. package/dist/v2/components/dataviz/BarChart/index.js +276 -0
  23. package/dist/v2/components/dataviz/BarGraphCollection/index.d.ts +21 -0
  24. package/dist/v2/components/dataviz/BarGraphCollection/index.js +159 -0
  25. package/dist/v2/components/dataviz/BarGraphCollection/styled.d.ts +7 -0
  26. package/dist/v2/components/dataviz/BarGraphCollection/styled.js +22 -0
  27. package/dist/v2/components/dataviz/BarGraphCollection/utils/useGetDimensions.d.ts +1 -0
  28. package/dist/v2/components/dataviz/BarGraphCollection/utils/useGetDimensions.js +41 -0
  29. package/dist/v2/components/dataviz/BarGraphCollection/utils/usePrepareData.d.ts +11 -0
  30. package/dist/v2/components/dataviz/BarGraphCollection/utils/usePrepareData.js +76 -0
  31. package/dist/v2/components/dataviz/HeatMapGrid/index.d.ts +21 -0
  32. package/dist/v2/components/dataviz/HeatMapGrid/index.js +230 -0
  33. package/dist/v2/components/dataviz/types.d.ts +12 -0
  34. package/dist/v2/components/dataviz/types.js +2 -0
  35. package/dist/v2/components/dataviz/utils/usePrepareData.d.ts +20 -0
  36. package/dist/v2/components/dataviz/utils/usePrepareData.js +116 -0
  37. package/package.json +1 -1
  38. package/dist/v2/components/BarChart/comps/CustomTooltip/index.js +0 -50
  39. package/dist/v2/components/BarChart/index.js +0 -294
  40. /package/dist/v2/components/{BarChart → dataviz/BarChart}/comps/TruncatedSVGText/index.d.ts +0 -0
  41. /package/dist/v2/components/{BarChart → dataviz/BarChart}/comps/TruncatedSVGText/index.js +0 -0
@@ -103,6 +103,8 @@ function DropdownMulti(_a) {
103
103
  }, [
104
104
  JSON.stringify(optionsProp), //we need this cuz options change from 'loading' to actual options in some cases
105
105
  // showOptions
106
+ optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.fn,
107
+ optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.args,
106
108
  value
107
109
  ]);
108
110
  options = (0, react_1.useMemo)(function () {
@@ -129,7 +129,12 @@ function DropdownSingle(_a) {
129
129
  searchFieldsConfig: searchFieldsConfig,
130
130
  setFilteredOptionsInParent: setFilteredOptionsInParent,
131
131
  });
132
- }, [optionsProp, optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.fn, searchString]);
132
+ }, [
133
+ optionsProp,
134
+ optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.fn,
135
+ optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.args,
136
+ searchString
137
+ ]);
133
138
  var genSelectTagsInput = function (ops) {
134
139
  if (ops === void 0) { ops = {}; }
135
140
  return (react_1.default.createElement(SelectTagsInput_1.SelectTagsInput, { id: id, value: value, invert: invert, handleSelect: handleSelect, searchString: searchString, setSearchString: setSearchString, single_multi: 'single', placeholder: placeholder, S: S, disabled: disabled, showOptions: showOptions, S: S, style: ops.style
package/dist/index.d.ts CHANGED
@@ -70,7 +70,7 @@ export { TabBarStyle1 as TabBarV2 } from "./v2/components/TabBar";
70
70
  export { default as MetaBlockV2 } from "./v2/components/MetaBlock";
71
71
  export { DateRangePicker as DateRangePickerV2 } from "./v2/components/DateRangePicker";
72
72
  export { HomeCover as HomeCoverV2 } from "./v2/components/HomeCover";
73
- export { BarChart } from "./v2/components/BarChart";
73
+ export { BarChart } from "./v2/components/dataviz/BarChart";
74
74
  export { DataVizAccordion } from "./v2/components/DataVizAccordion";
75
75
  export { Accordion as AccordionV2 } from "./v2/components/Accordion";
76
76
  export { CheckboxList } from "./v2/components/RadioAndCheckbox/comps/CheckboxList";
package/dist/index.js CHANGED
@@ -232,7 +232,7 @@ Object.defineProperty(exports, "DateRangePickerV2", { enumerable: true, get: fun
232
232
  var HomeCover_2 = require("./v2/components/HomeCover");
233
233
  Object.defineProperty(exports, "HomeCoverV2", { enumerable: true, get: function () { return HomeCover_2.HomeCover; } });
234
234
  //V2 data viz comps
235
- var BarChart_1 = require("./v2/components/BarChart");
235
+ var BarChart_1 = require("./v2/components/dataviz/BarChart");
236
236
  Object.defineProperty(exports, "BarChart", { enumerable: true, get: function () { return BarChart_1.BarChart; } });
237
237
  var DataVizAccordion_1 = require("./v2/components/DataVizAccordion");
238
238
  Object.defineProperty(exports, "DataVizAccordion", { enumerable: true, get: function () { return DataVizAccordion_1.DataVizAccordion; } });
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.BarChart = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
- var BarChart_1 = require("../../../v2/components/BarChart");
8
+ var BarChart_1 = require("../../../v2/components/dataviz/BarChart");
9
9
  var Accordion_1 = require("../../../v2/components/Accordion");
10
10
  // import BarChartDocs from './BarChart.mdx'
11
11
  exports.default = {
@@ -5,8 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.BarChart = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
- var BarChart_1 = require("../../../v2/components/BarChart");
8
+ var BarChart_1 = require("../../../v2/components/dataviz/BarChart");
9
9
  var BarChart_mdx_1 = __importDefault(require("./BarChart.mdx"));
10
+ var CustomTooltip_1 = __importDefault(require("../../../v2/components/dataviz/BarChart/comps/CustomTooltip"));
11
+ var BarGraphCollection_1 = require("../../../v2/components/dataviz/BarGraphCollection");
10
12
  exports.default = {
11
13
  title: "Oolib V 2.0/components/BarChart",
12
14
  argTypes: {
@@ -112,64 +114,165 @@ var BarChart = function (args) {
112
114
  stack6: 'Stack 6',
113
115
  },
114
116
  // valuePath="stack1"
117
+ labelPath: "display", title: "This is a Stacked BarChart", onClick: handleBarClick, colorIdx: 2 }),
118
+ react_1.default.createElement(BarGraphCollection_1.BarGraphCollection, { showPercent: args.showPercent, showCount: args.showCount, data: [
119
+ {
120
+ display: "Logged In Once",
121
+ // stack1: 60,
122
+ stack2: 20,
123
+ stack3: 40,
124
+ stack4: 10,
125
+ stack5: 40,
126
+ stack6: 10,
127
+ stack2Display: 'Labels Path Stack 2 Display'
128
+ },
129
+ {
130
+ display: "Registered Users",
131
+ stack1: 100,
132
+ stack2: 50,
133
+ stack3: 10,
134
+ stack4: 15,
135
+ stack5: 40,
136
+ stack6: 10,
137
+ },
138
+ {
139
+ display: "Created Profile",
140
+ stack1: 20,
141
+ stack2: 5,
142
+ stack3: 10,
143
+ stack4: 15,
144
+ stack5: 40,
145
+ stack6: 10,
146
+ },
147
+ {
148
+ display: "Wrote at least 3 story",
149
+ stack1: 8,
150
+ stack2: 2,
151
+ stack3: 1,
152
+ stack4: 1,
153
+ stack5: 40,
154
+ stack6: 10,
155
+ },
156
+ {
157
+ display: "Created Profile again",
158
+ stack1: 20,
159
+ stack2: 5,
160
+ stack3: 10,
161
+ stack4: 15,
162
+ stack5: 40,
163
+ stack6: 10,
164
+ },
165
+ {
166
+ display: "Wrote at least 1 story",
167
+ stack1: 8,
168
+ stack2: 2,
169
+ stack3: 1,
170
+ stack4: 1,
171
+ stack5: 40,
172
+ stack6: 10,
173
+ },
174
+ ], plotDataPoint: "percentage" // This can be changed to count
175
+ , valuePath: [
176
+ "stack1",
177
+ "stack2",
178
+ "stack3",
179
+ "stack4",
180
+ "stack5",
181
+ "stack6",
182
+ ],
183
+ // tooltipLabelsMapping={{
184
+ // stack1: 'Stack 1',
185
+ // stack2: 'Stack 2',
186
+ // stack3: 'Stack 3',
187
+ // stack4: 'Stack 4',
188
+ // stack5: 'Stack 5',
189
+ // stack6: 'Stack 6',
190
+ // }}
191
+ // valuePath="stack1"
115
192
  labelPath: "display", title: "This is a Stacked BarChart", onClick: handleBarClick, colorIdx: 2 })),
116
193
  react_1.default.createElement("div", null,
117
194
  react_1.default.createElement("div", { style: { display: "flex", flexDirection: "column", gap: "40px" } },
118
195
  react_1.default.createElement(BarChart_1.BarChart, { data: [
119
196
  {
120
- display: "Logged In Once",
121
- // stack1: 60,
122
- stack2: 20,
123
- stack3: 40,
124
- stack4: 10,
125
- stack5: 40,
126
- stack6: 10,
197
+ display: "Logged In Once During the First Week of Registration and Completed the Basic Profile Section Without Abandoning the Process",
198
+ stack1: 60
127
199
  },
128
200
  {
129
- display: "Registered Users",
130
- stack1: 100,
131
- stack2: 50,
132
- stack3: 10,
133
- stack4: 15,
134
- stack5: 40,
135
- stack6: 10,
201
+ display: "Registered Users Who Successfully Verified Their Email Address and Set Up Two-Factor Authentication for Enhanced Account Security",
202
+ stack1: 100
136
203
  },
137
204
  {
138
- display: "Created Profile",
139
- stack1: 20,
140
- stack2: 5,
141
- stack3: 10,
142
- stack4: 15,
143
- stack5: 40,
144
- stack6: 10,
205
+ display: "Created Profile With All Recommended Fields Including Biography, Education History, Work Experience, and Personal Interests",
206
+ stack1: 20
145
207
  },
146
208
  {
147
- display: "Wrote at least 3 story",
148
- stack1: 8,
149
- stack2: 2,
150
- stack3: 1,
151
- stack4: 1,
152
- stack5: 40,
153
- stack6: 10,
209
+ display: "Wrote at least 3 stories With Over 2,000 Words Each and Received More Than 50 Positive Engagements from Other Community Members",
210
+ stack1: 8
154
211
  },
155
212
  {
156
- display: "Created Profile again",
157
- stack1: 20,
158
- stack2: 5,
159
- stack3: 10,
160
- stack4: 15,
161
- stack5: 40,
162
- stack6: 10,
213
+ display: "Created Profile again After Deleting Their Previous One Due to Privacy Concerns or Desire to Start Fresh with New Information",
214
+ stack1: 20
163
215
  },
164
216
  {
165
- display: "Wrote at least 1 story",
166
- stack1: 8,
167
- stack2: 2,
168
- stack3: 1,
169
- stack4: 1,
170
- stack5: 40,
171
- stack6: 10,
217
+ display: "Wrote at least 1 story That Was Featured on the Homepage and Remained in the Top Trending Section for More Than 48 Hours",
218
+ stack1: 8
219
+ },
220
+ {
221
+ display: "Completed Onboarding Including All Optional Tutorials and Achieved a Perfect Score on the Platform Knowledge Assessment Test",
222
+ stack1: 78
172
223
  },
224
+ {
225
+ display: "Added Payment Method and Set Up Recurring Billing for Premium Subscription Without Encountering Any Technical Issues During Checkout",
226
+ stack1: 42
227
+ },
228
+ {
229
+ display: "Made First Purchase Within 24 Hours of Creating Their Account and Left a Five-Star Review for the Product or Service",
230
+ stack1: 35
231
+ },
232
+ {
233
+ display: "Referred a Friend Through the Official Referral Program and Both Received the Maximum Possible Bonus Credits as a Result",
234
+ stack1: 27
235
+ },
236
+ {
237
+ display: "Participated in the Annual User Satisfaction Survey and Provided Detailed Feedback on Potential Platform Improvements",
238
+ stack1: 54
239
+ },
240
+ {
241
+ display: "Downloaded the Mobile Application on Multiple Devices and Enabled Cross-Platform Synchronization for Seamless User Experience",
242
+ stack1: 89
243
+ },
244
+ {
245
+ display: "Configured Advanced Notification Preferences to Receive Real-Time Alerts for Specific Activities Relevant to Their Interests",
246
+ stack1: 31
247
+ },
248
+ {
249
+ display: "Successfully Recovered Account After Forgetting Password by Following the Secure Password Reset Protocol Without Support Assistance",
250
+ stack1: 46
251
+ },
252
+ {
253
+ display: "Achieved Gold Tier Status in the Loyalty Program by Consistently Engaging with the Platform for More Than Six Consecutive Months",
254
+ stack1: 15
255
+ },
256
+ {
257
+ display: "Converted From Free Trial to Paid Subscription Before the Trial Period Ended and Opted for the Annual Payment Plan with Auto-Renewal",
258
+ stack1: 67
259
+ },
260
+ {
261
+ display: "Customized Their Dashboard Layout to Optimize Workflow Efficiency Based on Their Unique Usage Patterns and Preferences",
262
+ stack1: 72
263
+ },
264
+ {
265
+ display: "Signed Up for Beta Testing Program and Provided Valuable Feedback on Experimental Features Before General Public Release",
266
+ stack1: 19
267
+ },
268
+ {
269
+ display: "Linked All Available Social Media Accounts to Enable Cross-Platform Sharing and Enhanced Social Networking Capabilities",
270
+ stack1: 38
271
+ },
272
+ {
273
+ display: "Reported a Critical Bug That Was Subsequently Fixed in the Next Software Update and Received Official Recognition for the Contribution",
274
+ stack1: 5
275
+ }
173
276
  ], plotDataPoint: "percentage" // This can be changed to count
174
277
  ,
175
278
  // valuePath={["stack1", "stack2", "stack3", "stack4", "stack5", "stack6"]}
@@ -0,0 +1,18 @@
1
+ declare namespace _default {
2
+ let title: string;
3
+ namespace argTypes {
4
+ namespace showPercent {
5
+ let name: string;
6
+ let control: string;
7
+ let description: string;
8
+ let defaultValue: boolean;
9
+ }
10
+ }
11
+ namespace args {
12
+ let showPercent_1: boolean;
13
+ export { showPercent_1 as showPercent };
14
+ }
15
+ }
16
+ export default _default;
17
+ export function BarGraphCollection_(args: any): React.JSX.Element;
18
+ import React from "react";
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BarGraphCollection_ = void 0;
7
+ var react_1 = __importDefault(require("react"));
8
+ var Container_1 = require("../../../components/Container");
9
+ var BarGraphCollection_1 = require("../../../v2/components/dataviz/BarGraphCollection");
10
+ exports.default = {
11
+ title: "Oolib V 2.0/components/BarGraphCollection",
12
+ argTypes: {
13
+ showPercent: {
14
+ name: "Show Percent",
15
+ control: 'boolean',
16
+ description: 'Toggle percentage display',
17
+ defaultValue: true,
18
+ }
19
+ },
20
+ args: {
21
+ showPercent: true,
22
+ // showCount: true,
23
+ }
24
+ };
25
+ var BarGraphCollection_ = function (args) {
26
+ var data = [
27
+ { display: "Tool- Ticker Tape", value: 5, category: "subject" },
28
+ { display: "CCP Session", value: 3, category: "subject" },
29
+ { display: "RES", value: 3, category: "subject" },
30
+ { display: "ASHA", value: 6, category: "stakeholder" },
31
+ { display: "Doctor", value: 3, category: "stakeholder" },
32
+ { display: "Nurse", value: 1, category: "stakeholder" },
33
+ { display: "Painpoint", value: 2, category: "type" },
34
+ { display: "Success", value: 1, category: "type" },
35
+ { display: "Service Design", value: 2, category: "lens" },
36
+ { display: "Medical", value: 2, category: "lens" }
37
+ ];
38
+ var handleBarClick = function (name) {
39
+ console.log("Bar clicked: ".concat(name));
40
+ };
41
+ return (react_1.default.createElement(Container_1.Container, null,
42
+ react_1.default.createElement(BarGraphCollection_1.BarGraphCollection, { showPercent: args.showPercent, showCount: args.showCount, data: [
43
+ {
44
+ display: "Logged In Once",
45
+ // stack1: 60,
46
+ stack2: 20,
47
+ stack3: 40,
48
+ stack4: 10,
49
+ stack5: 40,
50
+ stack6: 10,
51
+ stack2Display: 'Labels Path Stack 2 Display'
52
+ },
53
+ {
54
+ display: "Registered Users",
55
+ stack1: 100,
56
+ stack2: 50,
57
+ stack3: 10,
58
+ stack4: 15,
59
+ stack5: 40,
60
+ stack6: 10,
61
+ },
62
+ {
63
+ display: "Created Profile",
64
+ stack1: 20,
65
+ stack2: 5,
66
+ stack3: 10,
67
+ stack4: 15,
68
+ stack5: 40,
69
+ stack6: 10,
70
+ },
71
+ {
72
+ display: "Wrote at least 3 story",
73
+ stack1: 8,
74
+ stack2: 2,
75
+ stack3: 1,
76
+ stack4: 1,
77
+ stack5: 40,
78
+ stack6: 10,
79
+ },
80
+ {
81
+ display: "Created Profile again",
82
+ stack1: 20,
83
+ stack2: 5,
84
+ stack3: 10,
85
+ stack4: 15,
86
+ stack5: 40,
87
+ stack6: 10,
88
+ },
89
+ {
90
+ display: "Wrote at least 1 story",
91
+ stack1: 8,
92
+ stack2: 2,
93
+ stack3: 1,
94
+ stack4: 1,
95
+ stack5: 40,
96
+ stack6: 10,
97
+ },
98
+ ], plotDataPoint: "percentage" // This can be changed to count
99
+ , valuePath: [
100
+ "stack1",
101
+ "stack2",
102
+ "stack3",
103
+ "stack4",
104
+ "stack5",
105
+ "stack6",
106
+ ],
107
+ // tooltipLabelsMapping={{
108
+ // stack1: 'Stack 1',
109
+ // stack2: 'Stack 2',
110
+ // stack3: 'Stack 3',
111
+ // stack4: 'Stack 4',
112
+ // stack5: 'Stack 5',
113
+ // stack6: 'Stack 6',
114
+ // }}
115
+ // valuePath="stack1"
116
+ labelPath: "display", title: "This is a Stacked BarChart", onClick: handleBarClick, colorIdx: 2 }),
117
+ react_1.default.createElement(BarGraphCollection_1.BarGraphCollection, { data: data, valuePath: "value", labelPath: "display",
118
+ // groupBy="category"
119
+ showPercent: args.showPercent, showCount: args.showCount, onClick: function (name) { return console.log("Clicked on ".concat(name)); } }),
120
+ react_1.default.createElement(BarGraphCollection_1.BarGraphCollection, { data: data, valuePath: "value", labelPath: "display", groupBy: "category", showCount: args.showCount, showPercent: args.showPercent, onClick: function (name) { return console.log("Clicked on ".concat(name)); } })));
121
+ };
122
+ exports.BarGraphCollection_ = BarGraphCollection_;
@@ -0,0 +1,17 @@
1
+ declare namespace _default {
2
+ let title: string;
3
+ namespace argTypes {
4
+ namespace showPercent {
5
+ let control: string;
6
+ let description: string;
7
+ let defaultValue: boolean;
8
+ }
9
+ }
10
+ namespace args {
11
+ let showPercent_1: boolean;
12
+ export { showPercent_1 as showPercent };
13
+ }
14
+ }
15
+ export default _default;
16
+ export function HeatMapGrid(args: any): React.JSX.Element;
17
+ import React from "react";
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.HeatMapGrid = void 0;
7
+ var react_1 = __importDefault(require("react"));
8
+ var HeatMapGrid_1 = require("../../../v2/components/dataviz/HeatMapGrid");
9
+ exports.default = {
10
+ title: "Oolib V 2.0/components/HeatMapGrid",
11
+ argTypes: {
12
+ showPercent: {
13
+ control: 'boolean',
14
+ description: 'Toggle percentage display',
15
+ defaultValue: true,
16
+ }
17
+ },
18
+ args: {
19
+ showPercent: true,
20
+ },
21
+ };
22
+ var HeatMapGrid = function (args) {
23
+ var colors = ["#5C80FF", "#FFA800", "#00BC8F", "#5C51CE"];
24
+ var handleCellClick = function (name) {
25
+ console.log("cell clicked: ".concat(name));
26
+ };
27
+ return (react_1.default.createElement("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "20px" } },
28
+ react_1.default.createElement("div", null,
29
+ react_1.default.createElement(HeatMapGrid_1.HeatMapGrid, { showPercent: args.showPercent, data: [
30
+ {
31
+ display: "Logged In Once",
32
+ stack1: 60,
33
+ stack2: 20,
34
+ stack3: 40,
35
+ stack4: 10,
36
+ stack5: 40,
37
+ stack6: 10,
38
+ stack2Display: 'Labels Path Stack 2 Display'
39
+ },
40
+ {
41
+ display: "Registered Users",
42
+ stack1: 100,
43
+ stack2: 50,
44
+ stack3: 10,
45
+ stack4: 15,
46
+ stack5: 40,
47
+ stack6: 10,
48
+ },
49
+ {
50
+ display: "Created Profile",
51
+ stack1: 20,
52
+ stack2: 5,
53
+ stack3: 10,
54
+ stack4: 15,
55
+ stack5: 40,
56
+ stack6: 10,
57
+ },
58
+ {
59
+ display: "Wrote at least 3 story",
60
+ stack1: 8,
61
+ stack2: 2,
62
+ stack3: 1,
63
+ stack4: 1,
64
+ stack5: 40,
65
+ stack6: 10,
66
+ },
67
+ {
68
+ display: "Created Profile again",
69
+ stack1: 20,
70
+ stack2: 5,
71
+ stack3: 10,
72
+ stack4: 15,
73
+ stack5: 40,
74
+ stack6: 10,
75
+ },
76
+ {
77
+ display: "Wrote at least 1 story",
78
+ stack1: 8,
79
+ stack2: 2,
80
+ stack3: 1,
81
+ stack4: 1,
82
+ stack5: 40,
83
+ stack6: 10,
84
+ },
85
+ ], plotDataPoint: "percentage" // This can be changed to count
86
+ , valuePath: [
87
+ "stack1",
88
+ "stack2",
89
+ "stack3",
90
+ "stack4",
91
+ "stack5",
92
+ "stack6",
93
+ ], tooltipLabelsMapping: {
94
+ stack1: 'Stack 1',
95
+ stack2: 'Stack 2',
96
+ stack3: 'Stack 3',
97
+ stack4: 'Stack 4',
98
+ stack5: 'Stack 5',
99
+ stack6: 'Stack 6',
100
+ },
101
+ // valuePath="stack1"
102
+ labelPath: "display", title: "This is a Heat Map Grid", onClick: handleCellClick, colorIdx: 2 })),
103
+ react_1.default.createElement("div", null,
104
+ react_1.default.createElement("div", { style: { display: "flex", flexDirection: "column", gap: "40px" } },
105
+ react_1.default.createElement("div", { style: { height: '500px', background: 'aqua' } })))));
106
+ };
107
+ exports.HeatMapGrid = HeatMapGrid;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { BarChartProps } from "../BarChart";
2
+ import { BarChartProps } from "../dataviz/BarChart";
3
3
  type ChartOptionConfig = {
4
4
  display: string;
5
5
  comp: 'PieChart' | 'BarChart';
@@ -28,7 +28,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
28
28
  exports.DataVizAccordion = void 0;
29
29
  var react_1 = __importDefault(require("react"));
30
30
  var react_2 = require("react");
31
- var BarChart_1 = require("../BarChart");
31
+ var BarChart_1 = require("../dataviz/BarChart");
32
32
  var PieChart_1 = require("../PieChart");
33
33
  var Accordion_1 = require("../Accordion");
34
34
  var DataVizAccordion = function (_a) {
@@ -103,6 +103,8 @@ function DropdownMulti(_a) {
103
103
  }, [
104
104
  JSON.stringify(optionsProp), //we need this cuz options change from 'loading' to actual options in some cases
105
105
  // showOptions
106
+ optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.fn,
107
+ optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.args,
106
108
  value
107
109
  ]);
108
110
  options = (0, react_1.useMemo)(function () {
@@ -129,7 +129,12 @@ function DropdownSingle(_a) {
129
129
  searchFieldsConfig: searchFieldsConfig,
130
130
  setFilteredOptionsInParent: setFilteredOptionsInParent,
131
131
  });
132
- }, [optionsProp, optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.fn, searchString]);
132
+ }, [
133
+ optionsProp,
134
+ optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.fn,
135
+ optionsFn === null || optionsFn === void 0 ? void 0 : optionsFn.args,
136
+ searchString
137
+ ]);
133
138
  var genSelectTagsInput = function (ops) {
134
139
  if (ops === void 0) { ops = {}; }
135
140
  return (react_1.default.createElement(SelectTagsInput_1.SelectTagsInput, { id: id, value: value, invert: invert, handleSelect: handleSelect, searchString: searchString, setSearchString: setSearchString, single_multi: 'single', placeholder: placeholder, S: S, disabled: disabled, showOptions: showOptions, S: S, style: ops.style
@@ -0,0 +1,18 @@
1
+ export interface BaseBarChartUIConfigs {
2
+ barHeight: number;
3
+ labelToBarGap: number;
4
+ labelHeight: number;
5
+ labelToNextBarGap: number;
6
+ barRadius: number;
7
+ gapBetweenBarSections: number;
8
+ hoverRectStrokeWidth: number;
9
+ marginLeft: number;
10
+ marginRight: number;
11
+ gapBetweenBarsInGroup: number;
12
+ }
13
+ /**
14
+ * if any changes are being made to the spacing and such of
15
+ this comps design, all these properties need to be carefully
16
+ observed and tweaked to ensure no ui has gotten warped due to sideeffects
17
+ */
18
+ export declare const _base_barchart_ui_configs: BaseBarChartUIConfigs;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._base_barchart_ui_configs = void 0;
4
+ /**
5
+ * if any changes are being made to the spacing and such of
6
+ this comps design, all these properties need to be carefully
7
+ observed and tweaked to ensure no ui has gotten warped due to sideeffects
8
+ */
9
+ exports._base_barchart_ui_configs = {
10
+ //4 of these compose a single bar section
11
+ barHeight: 10,
12
+ labelToBarGap: 6,
13
+ labelHeight: 16.5667,
14
+ labelToNextBarGap: 14,
15
+ //other bar section related properties
16
+ barRadius: 2,
17
+ gapBetweenBarSections: 0,
18
+ hoverRectStrokeWidth: 1,
19
+ //overall chart margin
20
+ marginLeft: 6,
21
+ marginRight: 6,
22
+ //grouped bar chart related properties
23
+ gapBetweenBarsInGroup: 3,
24
+ };
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- import { TooltipProps } from 'recharts';
3
- import { LabelData } from '../CustomizedLabel';
1
+ import React from "react";
2
+ import { TooltipProps } from "recharts";
3
+ import { CountVizLabels } from "../../../types";
4
4
  interface CustomTooltipProps extends TooltipProps<number, string> {
5
- value?: LabelData[];
5
+ value?: CountVizLabels[];
6
6
  showPercent?: boolean;
7
7
  mousePosition?: {
8
8
  x: number;