oolib 2.29.5 → 2.30.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.
- package/dist/components/Accordion/index.d.ts +11 -0
- package/dist/components/Accordion/index.js +111 -0
- package/dist/components/ActionMenu/utils/usePopOutOfOverflowHiddenParent.js +1 -0
- package/dist/components/Tags/index.d.ts +2 -1
- package/dist/components/Tags/index.js +2 -2
- package/dist/components/Tags/index.styled.js +2 -2
- package/dist/components/TextInputs/index.js +28 -12
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function Accordion({ id, HeaderStyle, CustomHeader, noHeader, children, expand: expandProp, setExpand: setExpandProp, title, label }: {
|
|
2
|
+
id: any;
|
|
3
|
+
HeaderStyle?: string;
|
|
4
|
+
CustomHeader: any;
|
|
5
|
+
noHeader?: boolean;
|
|
6
|
+
children: any;
|
|
7
|
+
expand?: boolean;
|
|
8
|
+
setExpand: any;
|
|
9
|
+
title: any;
|
|
10
|
+
label: any;
|
|
11
|
+
}): any;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.Accordion = void 0;
|
|
42
|
+
var framer_motion_1 = require("framer-motion");
|
|
43
|
+
var phosphor_react_1 = require("phosphor-react");
|
|
44
|
+
var react_1 = __importStar(require("react"));
|
|
45
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
46
|
+
var Buttons_1 = require("../Buttons");
|
|
47
|
+
var Typo_1 = require("../Typo");
|
|
48
|
+
var mixins_1 = require("../../themes/mixins");
|
|
49
|
+
var colors_1 = require("../../themes/colors");
|
|
50
|
+
var utilsOolib_1 = require("../../utilsOolib");
|
|
51
|
+
var StyledAccordionContentsWrapper = (0, styled_components_1.default)(framer_motion_1.motion.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n overflow: hidden;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n overflow: hidden;\n"])));
|
|
52
|
+
var StyledHeaderStyle1Wrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex; \n align-items: center; \n justify-content: space-between; \n padding: 1rem 2rem; \n background-color: ", ";\n border-bottom: 2px solid ", ";\n cursor: pointer;\n ", ";\n &:hover{\n background-color: ", ";\n }\n"], ["\n display: flex; \n align-items: center; \n justify-content: space-between; \n padding: 1rem 2rem; \n background-color: ", ";\n border-bottom: 2px solid ", ";\n cursor: pointer;\n ", ";\n &:hover{\n background-color: ", ";\n }\n"])), colors_1.colors.greyColor5, colors_1.colors.greyColor10, (0, mixins_1.transition)('background-color'), colors_1.colors.greyColor10);
|
|
53
|
+
var NormalizedButton = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border: none;\n background-color: ", ";\n"], ["\n border: none;\n background-color: ", ";\n"])), colors_1.colors.none);
|
|
54
|
+
//this is the new grey background, slim one. with the Caret icon on the right
|
|
55
|
+
//used in access control builder and several other places.
|
|
56
|
+
var HeaderStyle1 = function (_a) {
|
|
57
|
+
var title = _a.title, expand = _a.expand, handleToggle = _a.handleToggle;
|
|
58
|
+
return (react_1.default.createElement(StyledHeaderStyle1Wrapper, { onClick: function () { return handleToggle(!expand); } },
|
|
59
|
+
react_1.default.createElement(Typo_1.SANS_3, { semibold: true }, title),
|
|
60
|
+
react_1.default.createElement(NormalizedButton, null,
|
|
61
|
+
react_1.default.createElement(framer_motion_1.motion.div, { animate: { rotate: expand ? -180 : 0 }, transition: { type: "tween", ease: "easeOut" } },
|
|
62
|
+
react_1.default.createElement(phosphor_react_1.CaretDown, { size: 16 })))));
|
|
63
|
+
};
|
|
64
|
+
var StyledHeaderStyle2Wrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex; \n align-items: center; \n justify-content: space-between; \n padding: 1rem 0; \n background-color: ", ";\n border-bottom: 2px solid ", ";\n cursor: pointer;\n ", ";\n /* &:hover{\n background-color: ", ";\n } */\n"], ["\n display: flex; \n align-items: center; \n justify-content: space-between; \n padding: 1rem 0; \n background-color: ", ";\n border-bottom: 2px solid ", ";\n cursor: pointer;\n ", ";\n /* &:hover{\n background-color: ", ";\n } */\n"
|
|
65
|
+
//analysis dashboard wordcloud - this is the old accordion header style designed at the time of updates module
|
|
66
|
+
])), colors_1.colors.white, colors_1.colors.greyColor10, (0, mixins_1.transition)('background-color'), colors_1.colors.greyColor5);
|
|
67
|
+
//analysis dashboard wordcloud - this is the old accordion header style designed at the time of updates module
|
|
68
|
+
var HeaderStyle2 = function (_a) {
|
|
69
|
+
var title = _a.title, label = _a.label, expand = _a.expand, handleToggle = _a.handleToggle;
|
|
70
|
+
var theme = (0, styled_components_1.useTheme)();
|
|
71
|
+
return (react_1.default.createElement(StyledHeaderStyle2Wrapper, { onClick: function () { return handleToggle(!expand); } },
|
|
72
|
+
react_1.default.createElement("div", null,
|
|
73
|
+
label &&
|
|
74
|
+
react_1.default.createElement(Typo_1.LABEL, { style: { color: (0, utilsOolib_1.getPrimaryColor100)(colors_1.colors) } }, label),
|
|
75
|
+
react_1.default.createElement(Typo_1.SANS_5_6, { semibold: true }, title)),
|
|
76
|
+
react_1.default.createElement(Buttons_1.ButtonGhost, { icon: expand ? 'Minus' : 'Plus' })));
|
|
77
|
+
};
|
|
78
|
+
var Accordion = function (_a) {
|
|
79
|
+
var id = _a.id, _b = _a.HeaderStyle, HeaderStyle = _b === void 0 ? "HeaderStyle1" : _b, CustomHeader = _a.CustomHeader, _c = _a.noHeader, noHeader = _c === void 0 ? false : _c, children = _a.children, _d = _a.expand, expandProp = _d === void 0 ? false : _d, setExpandProp = _a.setExpand, title = _a.title, label = _a.label;
|
|
80
|
+
var _e = (0, react_1.useState)(expandProp), expand = _e[0], setExpand = _e[1];
|
|
81
|
+
var handleToggle = function (bool) {
|
|
82
|
+
setExpand(bool);
|
|
83
|
+
setExpandProp && setExpandProp(bool);
|
|
84
|
+
};
|
|
85
|
+
(0, react_1.useEffect)(function () {
|
|
86
|
+
if (expandProp !== expand) {
|
|
87
|
+
setExpand(expandProp);
|
|
88
|
+
}
|
|
89
|
+
}, [expandProp]);
|
|
90
|
+
var HeaderStyles = {
|
|
91
|
+
HeaderStyle1: HeaderStyle1,
|
|
92
|
+
HeaderStyle2: HeaderStyle2
|
|
93
|
+
};
|
|
94
|
+
var genHeader = function () {
|
|
95
|
+
if (CustomHeader)
|
|
96
|
+
return CustomHeader;
|
|
97
|
+
//else
|
|
98
|
+
var HeaderStyleComp = HeaderStyles[HeaderStyle];
|
|
99
|
+
if (!HeaderStyleComp)
|
|
100
|
+
return react_1.default.createElement("div", { style: { padding: '1rem 2rem', background: colors_1.colors.red } },
|
|
101
|
+
react_1.default.createElement(Typo_1.SANS_2, null, 'Incorrect accordion HeaderStyle'));
|
|
102
|
+
return react_1.default.createElement(HeaderStyleComp, __assign({}, { handleToggle: handleToggle, expand: expand, title: title, label: label }));
|
|
103
|
+
};
|
|
104
|
+
return (react_1.default.createElement("div", { id: id },
|
|
105
|
+
//unless header is explicitly disabled, generate it
|
|
106
|
+
!noHeader && genHeader(),
|
|
107
|
+
react_1.default.createElement(StyledAccordionContentsWrapper, { initial: { height: expand ? "auto" : 0 }, animate: { height: expand ? "auto" : 0 }, transition: { type: "tween", ease: "easeOut" } },
|
|
108
|
+
react_1.default.createElement("div", null, children))));
|
|
109
|
+
};
|
|
110
|
+
exports.Accordion = Accordion;
|
|
111
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -55,6 +55,7 @@ var usePopOutOfOverflowHiddenParent = function (popOutOfOverflowHiddenParent) {
|
|
|
55
55
|
* if an initial fixedPos has been applied,
|
|
56
56
|
* then update it
|
|
57
57
|
*/
|
|
58
|
+
console.log({ 'BC': getBoundingClientRect() });
|
|
58
59
|
if (popOutOfOverflowHiddenParent)
|
|
59
60
|
setFixPos(function (prev) { return prev && getBoundingClientRect(); });
|
|
60
61
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export function TagDisplay({ display, style, invert, M, XS, variant }: {
|
|
1
|
+
export function TagDisplay({ display, style, invert, M, XS, color, variant }: {
|
|
2
2
|
display: any;
|
|
3
3
|
style: any;
|
|
4
4
|
invert: any;
|
|
5
5
|
M: any;
|
|
6
6
|
XS: any;
|
|
7
|
+
color: any;
|
|
7
8
|
variant?: string;
|
|
8
9
|
}): any;
|
|
9
10
|
export function TagClear({ id, display, value, M, XS, invert, onClick, variant, grey, }: {
|
|
@@ -42,10 +42,10 @@ var getTypoComp = function (size) { return size === 'XS' ?
|
|
|
42
42
|
function (props) { return react_1.default.createElement(index_styled_1.STYLED_ELLIPSIS_SANS_2, __assign({}, props)); }
|
|
43
43
|
: function (props) { return react_1.default.createElement(index_styled_1.STYLED_ELLIPSIS_SANS_3, __assign({}, props)); }; };
|
|
44
44
|
function TagDisplay(_a) {
|
|
45
|
-
var display = _a.display, style = _a.style, invert = _a.invert, M = _a.M, XS = _a.XS, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b;
|
|
45
|
+
var display = _a.display, style = _a.style, invert = _a.invert, M = _a.M, XS = _a.XS, color = _a.color, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b;
|
|
46
46
|
var size = M ? 'M' : XS ? 'XS' : 'S';
|
|
47
47
|
var TYPO_COMP = getTypoComp(size);
|
|
48
|
-
return (react_1.default.createElement(index_styled_1.StyledTagDisplay, { variant: variant, invert: invert, size: size, style: style },
|
|
48
|
+
return (react_1.default.createElement(index_styled_1.StyledTagDisplay, { variant: variant, invert: invert, size: size, color: color, style: style },
|
|
49
49
|
react_1.default.createElement(TYPO_COMP, null, display)));
|
|
50
50
|
}
|
|
51
51
|
exports.TagDisplay = TagDisplay;
|
|
@@ -64,10 +64,10 @@ var StyledTagDisplay = styled_components_1.default.div(templateObject_7 || (temp
|
|
|
64
64
|
var size = _a.size;
|
|
65
65
|
return commonStyle({ size: size });
|
|
66
66
|
}, function (_a) {
|
|
67
|
-
var variant = _a.variant, invert = _a.invert, size = _a.size;
|
|
67
|
+
var variant = _a.variant, invert = _a.invert, size = _a.size, color = _a.color;
|
|
68
68
|
return variant === "primary"
|
|
69
69
|
? (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n "], ["\n background-color: ", ";\n color: ", ";\n "])), !invert ? greyColor15 : greyColor80, !invert ? greyColor80 : greyColor40) : //secondary
|
|
70
|
-
(0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background: none;\n border: ", " solid\n ", ";\n color: ", ";\n "], ["\n background: none;\n border: ", " solid\n ", ";\n color: ", ";\n "])), size === "XS" ? "1px" : "2px", !invert ? greyColor15 : greyColor80, !invert ? greyColor80 : greyColor15);
|
|
70
|
+
(0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background: none;\n border: ", " solid\n ", ";\n color: ", ";\n "], ["\n background: none;\n border: ", " solid\n ", ";\n color: ", ";\n "])), size === "XS" ? "1px" : "2px", !invert ? (color ? color : greyColor15) : greyColor80, !invert ? (color ? color : greyColor80) : greyColor15);
|
|
71
71
|
});
|
|
72
72
|
exports.StyledTagDisplay = StyledTagDisplay;
|
|
73
73
|
var StyledTagClear = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n\n \t", "\n\t//overrides of commonStyle\n\tpadding-right: 0;\n\tgap: 0.5rem;\n\t//--\n\n\t", "\n \n\t\n\t", "\n"], ["\n\n \t", "\n\t//overrides of commonStyle\n\tpadding-right: 0;\n\tgap: 0.5rem;\n\t//--\n\n\t", "\n \n\t\n\t", "\n"])), function (_a) {
|
|
@@ -204,8 +204,9 @@ var EmailInput = function (_a) {
|
|
|
204
204
|
var errorObj = regEx.test(value)
|
|
205
205
|
? ''
|
|
206
206
|
: { type: 'error', msg: 'Enter a valid email address' };
|
|
207
|
-
if (
|
|
208
|
-
passValidationErrorToFormValidation(errorObj);
|
|
207
|
+
if (passValidationErrorToFormValidation) {
|
|
208
|
+
passValidationErrorToFormValidation((errorObj === null || errorObj === void 0 ? void 0 : errorObj.type) || 'success');
|
|
209
|
+
}
|
|
209
210
|
return errorObj;
|
|
210
211
|
};
|
|
211
212
|
return (react_1.default.createElement(exports.TextInput, __assign({ type: "email", placeholder: 'Enter email...', validateOnBlur: handleValidation }, props)));
|
|
@@ -218,15 +219,18 @@ var PhoneInput = function (_a) {
|
|
|
218
219
|
if (isNaN(value)) {
|
|
219
220
|
errorObj = { type: 'error', msg: 'Enter a valid phone number' };
|
|
220
221
|
if (passValidationErrorToFormValidation)
|
|
221
|
-
passValidationErrorToFormValidation(errorObj);
|
|
222
|
+
passValidationErrorToFormValidation(errorObj.type);
|
|
222
223
|
return errorObj;
|
|
223
224
|
}
|
|
224
225
|
if (value.length < 10) {
|
|
225
226
|
errorObj = { type: 'error', msg: 'Enter a valid phone number' };
|
|
226
227
|
if (passValidationErrorToFormValidation)
|
|
227
|
-
passValidationErrorToFormValidation(errorObj);
|
|
228
|
+
passValidationErrorToFormValidation(errorObj.type);
|
|
228
229
|
return errorObj;
|
|
229
230
|
}
|
|
231
|
+
//else
|
|
232
|
+
if (passValidationErrorToFormValidation)
|
|
233
|
+
passValidationErrorToFormValidation('success');
|
|
230
234
|
};
|
|
231
235
|
return (react_1.default.createElement(exports.TextInput, __assign({ type: "tel", placeholder: 'Enter Phone...', validateOnBlur: handleValidation, maxLength: 10 }, props)));
|
|
232
236
|
};
|
|
@@ -235,7 +239,7 @@ var URLInput = function (_a) {
|
|
|
235
239
|
var _b = _a.routesAreValidInputs, routesAreValidInputs = _b === void 0 ? false : _b, //if we want react route declarations to be considered as 'valid' then set this to true
|
|
236
240
|
validationPlugin = _a.validationPlugin, passValidationErrorToFormValidation = _a.passValidationErrorToFormValidation, content = _a.content, props = __rest(_a, ["routesAreValidInputs", "validationPlugin", "passValidationErrorToFormValidation", "content"]);
|
|
237
241
|
var handleValidation = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
238
|
-
var pluginResponse, response, err_1, errorObj;
|
|
242
|
+
var pluginResponse, successObj, response, successObj, err_1, successObj, errorObj;
|
|
239
243
|
return __generator(this, function (_a) {
|
|
240
244
|
switch (_a.label) {
|
|
241
245
|
case 0:
|
|
@@ -250,7 +254,10 @@ var URLInput = function (_a) {
|
|
|
250
254
|
//else
|
|
251
255
|
//if routesAreValidInputs, then first validate for a route
|
|
252
256
|
if (routesAreValidInputs && value.substring(0, 1) === '/') {
|
|
253
|
-
|
|
257
|
+
successObj = { type: 'success', msg: 'valid route' };
|
|
258
|
+
if (passValidationErrorToFormValidation)
|
|
259
|
+
passValidationErrorToFormValidation(successObj.type);
|
|
260
|
+
return [2 /*return*/, successObj];
|
|
254
261
|
}
|
|
255
262
|
//else validate for a url
|
|
256
263
|
if (!/^https?:\/\//i.test(value)) {
|
|
@@ -264,15 +271,21 @@ var URLInput = function (_a) {
|
|
|
264
271
|
response = _a.sent();
|
|
265
272
|
if (response.status !== 200)
|
|
266
273
|
throw new Error('');
|
|
267
|
-
|
|
274
|
+
successObj = { type: 'success', msg: 'valid url' };
|
|
275
|
+
if (passValidationErrorToFormValidation)
|
|
276
|
+
passValidationErrorToFormValidation(successObj.type);
|
|
277
|
+
return [2 /*return*/, successObj];
|
|
268
278
|
case 5:
|
|
269
279
|
err_1 = _a.sent();
|
|
270
280
|
if (/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/ig.test(value)) {
|
|
271
|
-
|
|
281
|
+
successObj = { type: 'success', msg: 'valid url' };
|
|
282
|
+
if (passValidationErrorToFormValidation)
|
|
283
|
+
passValidationErrorToFormValidation(successObj.type);
|
|
284
|
+
return [2 /*return*/, successObj];
|
|
272
285
|
}
|
|
273
286
|
errorObj = { type: 'error', msg: 'Enter a valid url...' };
|
|
274
287
|
if (passValidationErrorToFormValidation)
|
|
275
|
-
passValidationErrorToFormValidation(errorObj);
|
|
288
|
+
passValidationErrorToFormValidation(errorObj.type);
|
|
276
289
|
return [2 /*return*/, errorObj];
|
|
277
290
|
case 6: return [2 /*return*/];
|
|
278
291
|
}
|
|
@@ -289,21 +302,24 @@ var NumberInput = function (_a) {
|
|
|
289
302
|
if (isNaN(value)) {
|
|
290
303
|
errorObj = { type: 'error', msg: 'Enter a number' };
|
|
291
304
|
if (passValidationErrorToFormValidation)
|
|
292
|
-
passValidationErrorToFormValidation(errorObj);
|
|
305
|
+
passValidationErrorToFormValidation(errorObj.type);
|
|
293
306
|
return errorObj;
|
|
294
307
|
}
|
|
295
308
|
if (min && value < min) {
|
|
296
309
|
errorObj = { type: 'error', msg: "Enter value greater than ".concat(min) };
|
|
297
310
|
if (passValidationErrorToFormValidation)
|
|
298
|
-
passValidationErrorToFormValidation(errorObj);
|
|
311
|
+
passValidationErrorToFormValidation(errorObj.type);
|
|
299
312
|
return errorObj;
|
|
300
313
|
}
|
|
301
314
|
if (max && value > max) {
|
|
302
315
|
errorObj = { type: 'error', msg: "Enter value less than ".concat(max) };
|
|
303
316
|
if (passValidationErrorToFormValidation)
|
|
304
|
-
passValidationErrorToFormValidation(errorObj);
|
|
317
|
+
passValidationErrorToFormValidation(errorObj.type);
|
|
305
318
|
return errorObj;
|
|
306
319
|
}
|
|
320
|
+
//else
|
|
321
|
+
if (passValidationErrorToFormValidation)
|
|
322
|
+
passValidationErrorToFormValidation('success');
|
|
307
323
|
};
|
|
308
324
|
return (react_1.default.createElement(exports.TextInput
|
|
309
325
|
// type="number"
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { UserRoleBadge } from "./components/UserRoleBadge";
|
|
|
23
23
|
export { OKELink } from "./components/OKELink";
|
|
24
24
|
export { Tooltip } from "./components/Tooltip";
|
|
25
25
|
export { ActionMenu } from "./components/ActionMenu";
|
|
26
|
+
export { Accordion } from "./components/Accordion";
|
|
26
27
|
export { PercentCompletedPie } from "./components/PercentCompletedPie";
|
|
27
28
|
export { Divider } from "./components/Divider";
|
|
28
29
|
export { SkeletonLoader } from "./components/LoadersAndProgress/SkeletonLoader";
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.HintsProvider = exports.ModalSmall = exports.ModalLarge = exports.ModalConfirm = exports.SkeletonLoader = exports.Divider = exports.PercentCompletedPie = exports.ActionMenu = exports.Tooltip = exports.OKELink = exports.UserRoleBadge = exports.Section = exports.Loader = exports.ProgressBar = exports.LoaderCircle = exports.icons = exports.colors = exports.GlobalStyles = void 0;
|
|
17
|
+
exports.HintsProvider = exports.ModalSmall = exports.ModalLarge = exports.ModalConfirm = exports.SkeletonLoader = exports.Divider = exports.PercentCompletedPie = exports.Accordion = exports.ActionMenu = exports.Tooltip = exports.OKELink = exports.UserRoleBadge = exports.Section = exports.Loader = exports.ProgressBar = exports.LoaderCircle = exports.icons = exports.colors = exports.GlobalStyles = void 0;
|
|
18
18
|
//css and styling related ( styled-components )
|
|
19
19
|
var globalStyles_1 = require("./globalStyles");
|
|
20
20
|
Object.defineProperty(exports, "GlobalStyles", { enumerable: true, get: function () { return globalStyles_1.GlobalStyles; } });
|
|
@@ -55,6 +55,8 @@ var Tooltip_1 = require("./components/Tooltip");
|
|
|
55
55
|
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return Tooltip_1.Tooltip; } });
|
|
56
56
|
var ActionMenu_1 = require("./components/ActionMenu");
|
|
57
57
|
Object.defineProperty(exports, "ActionMenu", { enumerable: true, get: function () { return ActionMenu_1.ActionMenu; } });
|
|
58
|
+
var Accordion_1 = require("./components/Accordion");
|
|
59
|
+
Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return Accordion_1.Accordion; } });
|
|
58
60
|
var PercentCompletedPie_1 = require("./components/PercentCompletedPie");
|
|
59
61
|
Object.defineProperty(exports, "PercentCompletedPie", { enumerable: true, get: function () { return PercentCompletedPie_1.PercentCompletedPie; } });
|
|
60
62
|
var Divider_1 = require("./components/Divider");
|