oolib 2.190.4 → 2.192.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 (65) hide show
  1. package/dist/components/Divider/index.d.ts +2 -1
  2. package/dist/components/Divider/index.js +2 -2
  3. package/dist/components/Dropdowns/comps/OptionsMulti/index.js +1 -0
  4. package/dist/components/ImageInput/comps/ImageEditor/index.js +1 -1
  5. package/dist/stories/v2/components/{Dropdowns.stories.d.ts → Dropdown/Dropdowns.stories.d.ts} +46 -18
  6. package/dist/stories/v2/components/Dropdown/Dropdowns.stories.js +204 -0
  7. package/dist/stories/v2/components/Dropdown/dropdownOptions.d.ts +15 -0
  8. package/dist/stories/v2/components/Dropdown/dropdownOptions.js +156 -0
  9. package/dist/stories/v2/components/List.stories.d.ts +96 -0
  10. package/dist/stories/v2/components/List.stories.js +219 -0
  11. package/dist/utils/useStyleUpdateAfterToggleTransition.js +6 -2
  12. package/dist/v2/components/Dropdowns/DropdownMulti/index.d.ts +3 -2
  13. package/dist/v2/components/Dropdowns/DropdownMulti/index.js +36 -19
  14. package/dist/v2/components/Dropdowns/DropdownSingle/index.d.ts +3 -2
  15. package/dist/v2/components/Dropdowns/DropdownSingle/index.js +12 -13
  16. package/dist/v2/components/Dropdowns/comps/Caret/index.d.ts +1 -2
  17. package/dist/v2/components/Dropdowns/comps/Caret/index.js +15 -5
  18. package/dist/v2/components/Dropdowns/comps/DisplayCompSingle/index.d.ts +1 -2
  19. package/dist/v2/components/Dropdowns/comps/DisplayCompSingle/index.js +8 -8
  20. package/dist/v2/components/Dropdowns/comps/NoOptionResultsComp/index.js +4 -4
  21. package/dist/v2/components/Dropdowns/comps/OptionsMulti/index.d.ts +2 -2
  22. package/dist/v2/components/Dropdowns/comps/OptionsMulti/index.js +12 -70
  23. package/dist/v2/components/Dropdowns/comps/OptionsShell/comps/OptionsAnimateWrapper/index.d.ts +1 -2
  24. package/dist/v2/components/Dropdowns/comps/OptionsShell/comps/OptionsAnimateWrapper/index.js +3 -3
  25. package/dist/v2/components/Dropdowns/comps/OptionsShell/comps/OptionsAnimateWrapper/styled.js +5 -2
  26. package/dist/v2/components/Dropdowns/comps/OptionsShell/index.js +12 -26
  27. package/dist/v2/components/Dropdowns/comps/OptionsShell/styled.js +8 -8
  28. package/dist/v2/components/Dropdowns/comps/OptionsSingle/index.d.ts +3 -3
  29. package/dist/v2/components/Dropdowns/comps/OptionsSingle/index.js +9 -33
  30. package/dist/v2/components/Dropdowns/comps/OptionsSingle/styled.js +13 -12
  31. package/dist/v2/components/Dropdowns/comps/SearchBar/index.d.ts +8 -0
  32. package/dist/v2/components/Dropdowns/comps/SearchBar/index.js +21 -0
  33. package/dist/v2/components/Dropdowns/comps/SelectDropdown/index.d.ts +2 -2
  34. package/dist/v2/components/Dropdowns/comps/SelectDropdown/index.js +13 -15
  35. package/dist/v2/components/Dropdowns/comps/SelectDropdown/styled.js +10 -9
  36. package/dist/v2/components/Dropdowns/comps/SelectTagsInput/index.d.ts +1 -2
  37. package/dist/v2/components/Dropdowns/comps/SelectTagsInput/index.js +6 -9
  38. package/dist/v2/components/Dropdowns/comps/SelectTagsInput/styled.js +3 -6
  39. package/dist/v2/components/Dropdowns/styled.js +1 -1
  40. package/dist/v2/components/Dropdowns/utils/genColor.js +2 -2
  41. package/dist/v2/components/Dropdowns/utils/genIcon.d.ts +3 -3
  42. package/dist/v2/components/Dropdowns/utils/genIcon.js +4 -2
  43. package/dist/v2/components/Dropdowns/utils/genProfileImg.d.ts +1 -2
  44. package/dist/v2/components/Dropdowns/utils/genProfileImg.js +2 -2
  45. package/dist/v2/components/Dropdowns/utils/genTagComp.js +3 -3
  46. package/dist/v2/components/Dropdowns/utils/getValue.d.ts +1 -0
  47. package/dist/v2/components/Dropdowns/utils/getValue.js +64 -10
  48. package/dist/v2/components/Dropdowns/utils/keywordSearchOptions.js +53 -9
  49. package/dist/v2/components/List/comps/ListGroup.d.ts +20 -0
  50. package/dist/v2/components/List/comps/ListGroup.js +39 -0
  51. package/dist/v2/components/List/comps/ListItem.d.ts +15 -0
  52. package/dist/v2/components/List/comps/ListItem.js +59 -0
  53. package/dist/v2/components/List/comps/styled.d.ts +1 -0
  54. package/dist/v2/components/List/comps/styled.js +71 -0
  55. package/dist/v2/components/List/index.d.ts +27 -0
  56. package/dist/v2/components/List/index.js +87 -0
  57. package/dist/v2/components/dataviz/BarGraphCollection/index.d.ts +2 -1
  58. package/dist/v2/components/dataviz/BarGraphCollection/index.js +17 -2
  59. package/dist/v2/components/dataviz/BarGraphCollection/utils/useGetDimensions.d.ts +1 -1
  60. package/dist/v2/components/dataviz/BarGraphCollection/utils/useGetDimensions.js +27 -3
  61. package/dist/v2/themes/globalStyles.js +2 -2
  62. package/package.json +1 -1
  63. package/dist/stories/v2/components/Dropdowns.stories.js +0 -289
  64. package/dist/v2/components/Dropdowns/comps/OptionContent/index.d.ts +0 -8
  65. package/dist/v2/components/Dropdowns/comps/OptionContent/index.js +0 -35
@@ -1,6 +1,7 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FunctionComponent, CSSProperties } from 'react';
2
2
  interface DividerProps {
3
3
  invert?: boolean;
4
+ style?: CSSProperties;
4
5
  }
5
6
  export declare const Divider: FunctionComponent<DividerProps>;
6
7
  export {};
@@ -16,8 +16,8 @@ var StyledHr = styled_components_1.default.hr(templateObject_1 || (templateObjec
16
16
  return (invert ? themes_1.colors.greyColor80 : themes_1.colors.greyColor15);
17
17
  });
18
18
  var Divider = function (_a) {
19
- var invert = _a.invert;
20
- return react_1.default.createElement(StyledHr, { invert: invert });
19
+ var invert = _a.invert, style = _a.style;
20
+ return react_1.default.createElement(StyledHr, { invert: invert, style: style });
21
21
  };
22
22
  exports.Divider = Divider;
23
23
  var templateObject_1;
@@ -138,6 +138,7 @@ var OptionsMulti = function (_a) {
138
138
  react_1.default.createElement("div", { style: { padding: "1rem" }, onBlur: function () { return setSearchBarFocus(false); }, tabIndex: 0 },
139
139
  react_1.default.createElement(TextInputs_1.TextInput, { placeholder: searchbarPlaceholder, forceFocus: searchBarFocus, invert: invert, type: "text", icon: "MagnifyingGlass", value: searchString, onChange: function (k, v) { return setSearchString(v); }, S: S })),
140
140
  react_1.default.createElement(Divider_1.Divider, { invert: invert }))); };
141
+ console.log({ options: options });
141
142
  return (react_1.default.createElement(OptionsShell_1.OptionsShell, { ref: optionsRef, yOrientation: yOrientation, lightboxHeight: lightboxHeight, lightboxStyle: lightboxStyle, options: options, optionsAnchor: optionsAnchor, showOptions: showOptions, handleHideOptions: handleHideOptions, SelectComp: SelectComp, label: label, optionsModalLabel: optionsModalLabel, invert: invert, showDoneButton: true, popOutOfOverflowHiddenParent: popOutOfOverflowHiddenParent, relativeToRef: relativeToRef, S: S, alignDropdown: alignDropdown },
142
143
  isSearchable && genSearchBar(),
143
144
  !isTagsStyle && createSelectedOptions(),
@@ -77,7 +77,7 @@ function ImageEditor(_a) {
77
77
  //sent by parent ImageEditor to child (modal) ImageEditor
78
78
  _underEditImageData = _a.underEditImageData, //ImageEditor passes this to its recursive self when opening in popup
79
79
  _setUnderEditImageData = _a.setUnderEditImageData, isInPopUp = _a.isInPopUp, isInRTE = _a.isInRTE, handleDragStart = _a.handleDragStart;
80
- console.log({ imageTags: imageTags });
80
+ // console.log({imageTags})
81
81
  var theme = (0, styled_components_1.useTheme)();
82
82
  var _c = theme || {}, LexicalTextEditor = _c.LexicalTextEditor, _d = _c.lexicalTextEditorHasValue, lexicalTextEditorHasValue = _d === void 0 ? function () { return false; } : _d, //we are just defaulting to false for oolib preview. Meaning, when previewing in oolib, since this function doesnt exist (as it has to be provided by okf-fe), we will always return false from it.
83
83
  TagsInputSingle = _c.TagsInputSingle, TagsInputMulti = _c.TagsInputMulti,
@@ -43,37 +43,29 @@ declare namespace _default {
43
43
  let name_4: string;
44
44
  export { name_4 as name };
45
45
  }
46
- namespace optionImage {
46
+ namespace optionDescription {
47
47
  let name_5: string;
48
48
  export { name_5 as name };
49
49
  }
50
- namespace optionDescription {
50
+ namespace colors {
51
51
  let name_6: string;
52
52
  export { name_6 as name };
53
53
  }
54
- namespace colors {
54
+ namespace disabled {
55
55
  let name_7: string;
56
56
  export { name_7 as name };
57
57
  }
58
- namespace disabled {
58
+ namespace readOnly {
59
59
  let name_8: string;
60
60
  export { name_8 as name };
61
61
  }
62
- namespace readOnly {
62
+ namespace showColorInSelectArea {
63
63
  let name_9: string;
64
64
  export { name_9 as name };
65
65
  }
66
- namespace invert {
66
+ namespace alignDropdown {
67
67
  let name_10: string;
68
68
  export { name_10 as name };
69
- }
70
- namespace showColorInSelectArea {
71
- let name_11: string;
72
- export { name_11 as name };
73
- }
74
- namespace alignDropdown {
75
- let name_12: string;
76
- export { name_12 as name };
77
69
  let options_2: string[];
78
70
  export { options_2 as options };
79
71
  export namespace control_3 {
@@ -82,20 +74,55 @@ declare namespace _default {
82
74
  }
83
75
  export { control_3 as control };
84
76
  }
77
+ namespace lightboxHeight {
78
+ let name_11: string;
79
+ export { name_11 as name };
80
+ let options_3: string[];
81
+ export { options_3 as options };
82
+ export namespace control_4 {
83
+ let type_4: string;
84
+ export { type_4 as type };
85
+ }
86
+ export { control_4 as control };
87
+ }
88
+ namespace variant {
89
+ let name_12: string;
90
+ export { name_12 as name };
91
+ let options_4: string[];
92
+ export { options_4 as options };
93
+ export namespace control_5 {
94
+ let type_5: string;
95
+ export { type_5 as type };
96
+ }
97
+ export { control_5 as control };
98
+ }
99
+ namespace dataOptions {
100
+ let name_13: string;
101
+ export { name_13 as name };
102
+ let options_5: string[];
103
+ export { options_5 as options };
104
+ export namespace control_6 {
105
+ let type_6: string;
106
+ export { type_6 as type };
107
+ }
108
+ export { control_6 as control };
109
+ }
85
110
  }
86
111
  namespace args {
87
112
  let placeholder_1: string;
88
113
  export { placeholder_1 as placeholder };
89
114
  let size_1: string;
90
115
  export { size_1 as size };
116
+ let variant_1: string;
117
+ export { variant_1 as variant };
91
118
  let selection_1: string;
92
119
  export { selection_1 as selection };
120
+ let dataOptions_1: string;
121
+ export { dataOptions_1 as dataOptions };
93
122
  let isSearchable_1: boolean;
94
123
  export { isSearchable_1 as isSearchable };
95
124
  let optionDescription_1: string;
96
125
  export { optionDescription_1 as optionDescription };
97
- let optionImage_1: string;
98
- export { optionImage_1 as optionImage };
99
126
  let optionIcon_1: any;
100
127
  export { optionIcon_1 as optionIcon };
101
128
  let showIconInSelectArea_1: boolean;
@@ -108,11 +135,12 @@ declare namespace _default {
108
135
  export { disabled_1 as disabled };
109
136
  let readOnly_1: boolean;
110
137
  export { readOnly_1 as readOnly };
111
- let invert_1: boolean;
112
- export { invert_1 as invert };
113
138
  export let popOutOfOverflowHiddenParent: boolean;
114
139
  let alignDropdown_1: string;
115
140
  export { alignDropdown_1 as alignDropdown };
141
+ export let isTagsStyle: boolean;
142
+ export let matchSelectInputWidth: boolean;
143
+ export let loading: boolean;
116
144
  }
117
145
  }
118
146
  export default _default;
@@ -0,0 +1,204 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
46
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
47
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
48
+ if (ar || !(i in from)) {
49
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
50
+ ar[i] = from[i];
51
+ }
52
+ }
53
+ return to.concat(ar || Array.prototype.slice.call(from));
54
+ };
55
+ Object.defineProperty(exports, "__esModule", { value: true });
56
+ exports.Dropdowns = void 0;
57
+ var react_1 = __importStar(require("react"));
58
+ var Container_1 = require("../../../../components/Container");
59
+ var Paddings_1 = require("../../../../components/Paddings");
60
+ var icons_1 = require("../../../../icons");
61
+ var DropdownSingle_1 = require("../../../../v2/components/Dropdowns/DropdownSingle");
62
+ var DropdownMulti_1 = require("../../../../v2/components/Dropdowns/DropdownMulti");
63
+ var dropdownOptions_1 = require("./dropdownOptions");
64
+ var availableIcons = __spreadArray([undefined], Object.keys(icons_1.icons).sort(), true);
65
+ exports.default = {
66
+ title: "Oolib V 2.0/Components/Dropdowns",
67
+ argTypes: {
68
+ // label: {
69
+ // name: "Label",
70
+ // },
71
+ // sublabel: {
72
+ // name: "Sub Label",
73
+ // },
74
+ placeholder: {
75
+ name: "Placeholder Text",
76
+ },
77
+ optionIcon: {
78
+ options: availableIcons,
79
+ control: { type: "select" },
80
+ },
81
+ selection: {
82
+ options: ["single", "multi"],
83
+ control: { type: "inline-radio" },
84
+ },
85
+ size: {
86
+ name: "Size",
87
+ control: { type: "inline-radio" },
88
+ options: ["Small", "Medium"],
89
+ mapping: {
90
+ Small: "S",
91
+ Medium: "M",
92
+ },
93
+ },
94
+ selection: {
95
+ name: "Selection Type",
96
+ options: ["single", "multi"],
97
+ control: { type: "select" },
98
+ },
99
+ isSearchable: {
100
+ name: "Searchable",
101
+ },
102
+ showIconInSelectArea: {
103
+ name: "Show Icon in Select Area",
104
+ },
105
+ // optionImage: {
106
+ // name: "Option Image",
107
+ // },
108
+ optionDescription: {
109
+ name: "Option Description",
110
+ },
111
+ colors: {
112
+ name: 'Show Colors'
113
+ },
114
+ disabled: {
115
+ name: "Disabled",
116
+ },
117
+ readOnly: {
118
+ name: "Read Only",
119
+ },
120
+ showColorInSelectArea: {
121
+ name: "Show Color in Select Area"
122
+ },
123
+ alignDropdown: {
124
+ name: "Align Dropdown",
125
+ options: ["left", "right"],
126
+ control: { type: "select" }
127
+ },
128
+ lightboxHeight: {
129
+ name: "light box Height",
130
+ options: ["large", "medium", "small"],
131
+ control: { type: "select" }
132
+ },
133
+ variant: {
134
+ name: "variant",
135
+ options: ["default", "ghost"],
136
+ control: { type: "select" }
137
+ },
138
+ dataOptions: {
139
+ name: "Data Options",
140
+ options: ["simple", "nested"],
141
+ control: { type: "select" }
142
+ }
143
+ },
144
+ args: {
145
+ // label: "This is a label",
146
+ // sublabel: "This is a sub label",
147
+ placeholder: "",
148
+ size: "Medium",
149
+ variant: "default",
150
+ selection: "single",
151
+ dataOptions: "simple",
152
+ isSearchable: false,
153
+ optionDescription: "India is the seventh-largest country by area and the second-most populous country in the world.",
154
+ // optionImage: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSrVSkmNOQ6abMCc5e6R2r7VwRZDkBHFTyzAg&usqp=CAU",
155
+ optionIcon: undefined,
156
+ showIconInSelectArea: false,
157
+ colors: false,
158
+ showColorInSelectArea: false,
159
+ disabled: false,
160
+ readOnly: false,
161
+ popOutOfOverflowHiddenParent: false,
162
+ alignDropdown: "left",
163
+ isTagsStyle: false,
164
+ matchSelectInputWidth: false,
165
+ loading: false
166
+ }
167
+ };
168
+ var Dropdowns = function (args) {
169
+ var _a = (0, react_1.useState)({
170
+ single: undefined,
171
+ multi: undefined,
172
+ }), val = _a[0], setVal = _a[1];
173
+ var _b = (0, react_1.useState)([]), options = _b[0], setOptions = _b[1];
174
+ (0, react_1.useEffect)(function () {
175
+ var delayOptions = setTimeout(function () {
176
+ var newOptions = dropdownOptions_1.dropdownOptions.map(function (op) { return (__assign(__assign({}, op), { desc: args.optionDescription, icon: !args.optionImage && args.optionIcon, image: args.optionImage && [{ publicUrl: args.optionImage }], color: args.colors && op.color })); });
177
+ setOptions(newOptions);
178
+ }, 2000);
179
+ // Cleanup the timeout on component unmount
180
+ return function () { return clearTimeout(delayOptions); };
181
+ }, [args.optionDescription, args.optionImage, args.optionIcon, args.colors]);
182
+ var Comp = args.selection === "single" ? DropdownSingle_1.DropdownSingle : DropdownMulti_1.DropdownMulti;
183
+ return (react_1.default.createElement("div", null,
184
+ react_1.default.createElement(Container_1.Container, null,
185
+ react_1.default.createElement(Paddings_1.PaddingTopBottom40, null,
186
+ react_1.default.createElement("div", null,
187
+ react_1.default.createElement(Comp, __assign({ key: args.selection }, args, { S: args.size == "S",
188
+ // options={dropdownOptionsGroup}
189
+ options: args.dataOptions === "simple"
190
+ ?
191
+ dropdownOptions_1.dropdownOptions.map(function (op) { return (__assign(__assign({}, op), { desc: args.optionDescription, icon: !args.optionImage && args.optionIcon,
192
+ // image: args.optionImage && [{ publicUrl: args.optionImage }],
193
+ color: args.colors && op.color, loading: args.loading })); })
194
+ : dropdownOptions_1.dropdownOptionsGroup.map(function (op) { return (__assign(__assign({}, op), { options: op.options.map(function (option) { return (__assign(__assign({}, option), { desc: args.optionDescription, icon: !args.optionImage && args.optionIcon,
195
+ // image: args.optionImage && [{ publicUrl: args.optionImage }],
196
+ color: args.colors && option.color, loading: args.loading })); }) })); }), value: val[args.selection], onChange: function (k, v) {
197
+ return setVal(function (prev) {
198
+ var _a;
199
+ return (__assign(__assign({}, prev), (_a = {}, _a[args.selection] = v, _a)));
200
+ });
201
+ }, selectConfig: args.showIconInSelectArea ? ["display", "icon"] : args.showColorInSelectArea ? ["display", "color"] : ["display"], label: "Dropdown Component", sublabel: "Select single or multiple options in dropdown based on Selection Type", popOutOfOverflowHiddenParent: args.popOutOfOverflowHiddenParent, lightboxHeight: args.lightboxHeight, variant: args.variant, matchSelectInputWidth: args.matchSelectInputWidth })))),
202
+ react_1.default.createElement("div", { style: { height: '1000px', background: '#eee' } }))));
203
+ };
204
+ exports.Dropdowns = Dropdowns;
@@ -0,0 +1,15 @@
1
+ export const dropdownOptions: {
2
+ display: string;
3
+ value: string;
4
+ color: string;
5
+ }[];
6
+ export const dropdownOptionsGroup: {
7
+ display: string;
8
+ value: string;
9
+ options: {
10
+ display: string;
11
+ value: string;
12
+ color: string;
13
+ desc: string;
14
+ }[];
15
+ }[];
@@ -0,0 +1,156 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dropdownOptionsGroup = exports.dropdownOptions = void 0;
4
+ var themes_1 = require("../../../../themes");
5
+ exports.dropdownOptions = [
6
+ {
7
+ display: "Option with a slightly longer name",
8
+ value: "india",
9
+ color: themes_1.colors.lightRed,
10
+ // image: "xyz",
11
+ // icon: "Trash",
12
+ // desc: "This is a story about schnil-tu, a.k.a tubito senpai. Tubito senpai loves to say bhai-god. Lol.",
13
+ },
14
+ {
15
+ display: "Sri Lanka",
16
+ value: "sriLanka",
17
+ color: themes_1.colors.invertRed,
18
+ // image: "xyz",
19
+ // icon: "Trash",
20
+ // desc: "This is a story about schnil-tu, a.k.a tubito senpai. Tubito senpai loves to say bhai-god. Lol.",
21
+ },
22
+ {
23
+ display: "Japan",
24
+ value: "japan",
25
+ color: themes_1.colors.lightBlue
26
+ // image: "xyz",
27
+ // icon: "Trash",
28
+ // desc: "This is a story about schnil-tu, a.k.a tubito senpai. Tubito senpai loves to say bhai-god. Lol.",
29
+ },
30
+ {
31
+ display: "Germany",
32
+ value: "germany",
33
+ color: themes_1.colors.primaryColor100
34
+ // image: "xyz",
35
+ // icon: "Trash",
36
+ // desc: "This is a story about schnil-tu, a.k.a tubito senpai. Tubito senpai loves to say bhai-god. Lol.",
37
+ },
38
+ {
39
+ display: "USA",
40
+ value: "usa",
41
+ color: themes_1.colors.greyColor100
42
+ // image: "xyz",
43
+ // icon: "Trash",
44
+ // desc: "This is a story about schnil-tu, a.k.a tubito senpai. Tubito senpai loves to say bhai-god. Lol.",
45
+ },
46
+ {
47
+ display: "Columbia",
48
+ value: "columbia",
49
+ color: themes_1.colors.lightRed,
50
+ // image: "xyz",
51
+ // icon: "Trash",
52
+ // desc: "This is a story about schnil-tu, a.k.a tubito senpai. Tubito senpai loves to say bhai-god. Lol.",
53
+ },
54
+ {
55
+ display: "Brazil",
56
+ value: "brazil",
57
+ color: themes_1.colors.invertRed,
58
+ // image: "xyz",
59
+ // icon: "Trash",
60
+ // desc: "This is a story about schnil-tu, a.k.a tubito senpai. Tubito senpai loves to say bhai-god. Lol.",
61
+ },
62
+ {
63
+ display: "Australia",
64
+ value: "australia",
65
+ color: themes_1.colors.lightBlue
66
+ // image: "xyz",
67
+ // icon: "Trash",
68
+ // desc: "This is a story about schnil-tu, a.k.a tubito senpai. Tubito senpai loves to say bhai-god. Lol.",
69
+ },
70
+ ];
71
+ exports.dropdownOptionsGroup = [
72
+ {
73
+ display: "Asia",
74
+ value: "asia",
75
+ options: [
76
+ {
77
+ display: "India",
78
+ value: "india",
79
+ color: themes_1.colors.lightRed,
80
+ desc: "India is the seventh-largest country by area and the second-most populous country in the world.",
81
+ },
82
+ {
83
+ display: "Mumbai",
84
+ value: "mumbai",
85
+ desc: "Mumbai is India's financial center and largest city with a population of over 20 million people.",
86
+ color: themes_1.colors.lightBlue
87
+ }
88
+ ],
89
+ },
90
+ {
91
+ display: "East Asia",
92
+ value: "east_asia",
93
+ options: [
94
+ {
95
+ display: "Japan",
96
+ color: themes_1.colors.lightBlue,
97
+ value: "japan",
98
+ desc: "Japan is an island country in East Asia known for its traditional culture, advanced technology, and beautiful landscapes.",
99
+ },
100
+ {
101
+ display: "Tokyo",
102
+ value: "tokyo",
103
+ desc: "Tokyo is Japan's capital and the world's largest metropolitan economy with over 37 million residents.",
104
+ color: themes_1.colors.lightRed,
105
+ },
106
+ {
107
+ display: "Osaka",
108
+ value: "osaka",
109
+ desc: "Osaka is Japan's third-largest city, known for its modern architecture, nightlife, and hearty street food.",
110
+ color: themes_1.colors.invertRed,
111
+ }
112
+ ],
113
+ },
114
+ {
115
+ display: "South America",
116
+ value: "south_america",
117
+ options: [
118
+ {
119
+ display: "Brazil",
120
+ value: "brazil",
121
+ color: themes_1.colors.lightGreen,
122
+ desc: "Brazil is the largest country in South America and famous for its Amazon rainforest, vibrant culture, and football tradition.",
123
+ },
124
+ {
125
+ display: "Rio de Janeiro",
126
+ value: "rio",
127
+ desc: "Rio de Janeiro is a coastal Brazilian city famous for its Copacabana beach, Christ the Redeemer statue, and annual carnival.",
128
+ color: themes_1.colors.lightBlue
129
+ }
130
+ ],
131
+ },
132
+ {
133
+ display: "Oceania",
134
+ value: "oceania",
135
+ options: [
136
+ {
137
+ display: "Australia",
138
+ value: "australia",
139
+ color: themes_1.colors.lightYellow,
140
+ desc: "Australia is a country and continent surrounded by the Indian and Pacific oceans, known for its unique wildlife and diverse landscapes.",
141
+ },
142
+ {
143
+ display: "Sydney",
144
+ value: "sydney",
145
+ desc: "Sydney is Australia's largest city featuring the iconic Opera House, Harbour Bridge, and beautiful beaches like Bondi.",
146
+ color: themes_1.colors.greyColor100
147
+ },
148
+ {
149
+ display: "Melbourne",
150
+ value: "melbourne",
151
+ desc: "Melbourne is Australia's cultural capital known for its coffee culture, street art, and being consistently ranked among the world's most livable cities.",
152
+ color: themes_1.colors.lightBlue
153
+ }
154
+ ],
155
+ }
156
+ ];
@@ -0,0 +1,96 @@
1
+ declare namespace _default {
2
+ let title: string;
3
+ namespace parameters {
4
+ namespace docs {
5
+ namespace description {
6
+ let component: string;
7
+ }
8
+ }
9
+ }
10
+ namespace argTypes {
11
+ namespace isSearchable {
12
+ export let control: string;
13
+ let description_1: string;
14
+ export { description_1 as description };
15
+ export let defaultValue: boolean;
16
+ }
17
+ namespace grouped {
18
+ let control_1: string;
19
+ export { control_1 as control };
20
+ let description_2: string;
21
+ export { description_2 as description };
22
+ let defaultValue_1: boolean;
23
+ export { defaultValue_1 as defaultValue };
24
+ }
25
+ namespace isMulti {
26
+ let control_2: string;
27
+ export { control_2 as control };
28
+ let description_3: string;
29
+ export { description_3 as description };
30
+ let defaultValue_2: boolean;
31
+ export { defaultValue_2 as defaultValue };
32
+ }
33
+ namespace isTagsStyle {
34
+ let control_3: string;
35
+ export { control_3 as control };
36
+ let description_4: string;
37
+ export { description_4 as description };
38
+ let defaultValue_3: boolean;
39
+ export { defaultValue_3 as defaultValue };
40
+ }
41
+ namespace searchbarPlaceholder {
42
+ let control_4: string;
43
+ export { control_4 as control };
44
+ let description_5: string;
45
+ export { description_5 as description };
46
+ let defaultValue_4: string;
47
+ export { defaultValue_4 as defaultValue };
48
+ }
49
+ namespace disableShadow {
50
+ let control_5: string;
51
+ export { control_5 as control };
52
+ let description_6: string;
53
+ export { description_6 as description };
54
+ let defaultValue_5: boolean;
55
+ export { defaultValue_5 as defaultValue };
56
+ }
57
+ namespace enableBorder {
58
+ let control_6: string;
59
+ export { control_6 as control };
60
+ let description_7: string;
61
+ export { description_7 as description };
62
+ let defaultValue_6: boolean;
63
+ export { defaultValue_6 as defaultValue };
64
+ }
65
+ }
66
+ }
67
+ export default _default;
68
+ export function List_(args: any): import("react").JSX.Element;
69
+ export function ListItem_(args: any): import("react").JSX.Element;
70
+ export namespace ListItem_ {
71
+ export namespace argTypes_1 {
72
+ namespace desc {
73
+ let name: string;
74
+ }
75
+ namespace icon {
76
+ let name_1: string;
77
+ export { name_1 as name };
78
+ export { availableIcons as options };
79
+ export namespace control_7 {
80
+ let type: string;
81
+ }
82
+ export { control_7 as control };
83
+ }
84
+ }
85
+ export { argTypes_1 as argTypes };
86
+ export namespace args {
87
+ export let display: string;
88
+ let desc_1: string;
89
+ export { desc_1 as desc };
90
+ let icon_1: string;
91
+ export { icon_1 as icon };
92
+ export let loading: boolean;
93
+ export let disabled: boolean;
94
+ }
95
+ }
96
+ declare const availableIcons: string[];