oolib 2.110.1 → 2.111.1
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/UIContent/index.d.ts +17 -17
- package/dist/components/Accordion/index.d.ts +56 -13
- package/dist/components/Accordion/index.js +23 -31
- package/dist/components/Accordion/styled.d.ts +7 -7
- package/dist/components/Accordion/styled.js +7 -8
- package/dist/components/ActionMenu/index.js +2 -9
- package/dist/components/AudioInput/comps/AudioAction.d.ts +1 -1
- package/dist/components/AudioInput/comps/AudioPlayer.d.ts +1 -1
- package/dist/components/AudioInput/index.js +1 -1
- package/dist/components/Breadcrumbs/index.styled.d.ts +1 -1
- package/dist/components/Buttons/index.d.ts +32 -42
- package/dist/components/Buttons/index.js +3 -3
- package/dist/components/Coachmark/comps/MovingCoachmark/index.d.ts +3 -0
- package/dist/components/Coachmark/comps/MovingCoachmark/index.js +68 -0
- package/dist/components/Coachmark/comps/MovingCoachmark/styled.d.ts +2 -0
- package/dist/components/Coachmark/comps/MovingCoachmark/styled.js +45 -0
- package/dist/components/Coachmark/comps/MovingCoachmark/utils/index.d.ts +1 -0
- package/dist/components/Coachmark/comps/MovingCoachmark/utils/index.js +57 -0
- package/dist/components/Coachmark/config.d.ts +31 -0
- package/dist/components/Coachmark/config.js +61 -0
- package/dist/components/Coachmark/index.d.ts +4 -0
- package/dist/components/Coachmark/index.js +74 -0
- package/dist/components/Coachmark/styled.d.ts +1 -0
- package/dist/components/Coachmark/styled.js +37 -0
- package/dist/components/Coachmark/utils/index.d.ts +13 -0
- package/dist/components/Coachmark/utils/index.js +70 -0
- package/dist/components/DateRangePicker/index.d.ts +1 -1
- package/dist/components/DateTimePicker/index.styled.d.ts +0 -0
- package/dist/components/DateTimePicker/index.styled.js +0 -0
- package/dist/components/Dropdowns/DropdownMulti/index.js +4 -28
- package/dist/components/Dropdowns/DropdownSingle/index.js +4 -28
- package/dist/components/Dropdowns/comps/OptionsMulti/index.js +3 -30
- package/dist/components/Dropdowns/comps/OptionsShell/index.js +1 -11
- package/dist/components/Dropdowns/comps/OptionsSingle/index.js +2 -34
- package/dist/components/Dropdowns/comps/SelectDropdown/index.js +1 -12
- package/dist/components/Dropdowns/comps/VirtualizedWrapper/index.d.ts +1 -1
- package/dist/components/Dropdowns/utils/isDynamicOtherOption.d.ts +0 -0
- package/dist/components/Dropdowns/utils/isDynamicOtherOption.js +0 -0
- package/dist/components/EmptyStates/index.js +1 -12
- package/dist/components/FileUploadWrapper/comps/FileUploadShell.d.ts +1 -1
- package/dist/components/FileUploadWrapper/index.d.ts +1 -1
- package/dist/components/FileUploadWrapper/index.js +1 -12
- package/dist/components/IFrameInput/comps/Embed.d.ts +1 -1
- package/dist/components/IFrameInput/index.js +2 -2
- package/dist/components/IFrameInput/utils/DisplayCoachmark.d.ts +7 -0
- package/dist/components/IFrameInput/utils/DisplayCoachmark.js +83 -0
- package/dist/components/ImageInput/comps/GallerySlider/index.js +1 -16
- package/dist/components/ImageInput/comps/ImageEditor/comps/ConfirmDeleteModal/index.d.ts +1 -1
- package/dist/components/ImageInput/comps/ImageEditor/index.js +9 -65
- package/dist/components/ImageInput/comps/Placeholder/index.js +1 -17
- package/dist/components/ImageInput/comps/Placeholder/styled.d.ts +3 -0
- package/dist/components/ImageInput/comps/Placeholder/styled.js +39 -0
- package/dist/components/ImageInput/comps/SingleImageInput/index.js +1 -32
- package/dist/components/ImageInput/derivedComps/ImageDisplayInMask/index.js +1 -1
- package/dist/components/ImageInput/index.js +3 -25
- package/dist/components/InlineAlert/index.d.ts +25 -8
- package/dist/components/InlineAlert/index.js +16 -1
- package/dist/components/LegendRadioCheckList/LegendButton/index.d.ts +10 -0
- package/dist/components/LegendRadioCheckList/LegendButton/index.js +18 -0
- package/dist/components/LegendRadioCheckList/LegendButton/styled.d.ts +3 -0
- package/dist/components/LegendRadioCheckList/LegendButton/styled.js +22 -0
- package/dist/components/LegendRadioCheckList/LegendCheckboxList/index.d.ts +8 -0
- package/dist/components/LegendRadioCheckList/LegendCheckboxList/index.js +49 -0
- package/dist/components/LegendRadioCheckList/LegendCheckboxList/styled.d.ts +0 -0
- package/dist/components/LegendRadioCheckList/LegendCheckboxList/styled.js +0 -0
- package/dist/components/LegendRadioCheckList/LegendRadioList/index.d.ts +8 -0
- package/dist/components/LegendRadioCheckList/LegendRadioList/index.js +34 -0
- package/dist/components/LegendRadioCheckList/LegendRadioList/styled.d.ts +1 -0
- package/dist/components/LegendRadioCheckList/LegendRadioList/styled.js +13 -0
- package/dist/components/Lexical/Plugins/TableCellResizer/index.js +1 -26
- package/dist/components/LoadersAndProgress/LoaderCircle/index.js +2 -2
- package/dist/components/LoadersAndProgress/SkeletonLoader/index.d.ts +1 -1
- package/dist/components/Margins/index.d.ts +1 -1
- package/dist/components/Modals/Modal/styled.d.ts +2 -2
- package/dist/components/Modals/ModalConfirm/styled.d.ts +2 -2
- package/dist/components/OKELink/comps/AvatarDisplay/index.d.ts +8 -0
- package/dist/components/OKELink/comps/AvatarDisplay/index.js +19 -0
- package/dist/components/OKELink/comps/AvatarDisplay/styled.d.ts +2 -0
- package/dist/components/OKELink/comps/AvatarDisplay/styled.js +48 -0
- package/dist/components/OKELink/index.d.ts +1 -1
- package/dist/components/OKELink/index.js +2 -5
- package/dist/components/OKELink/utils/index.d.ts +6 -0
- package/dist/components/OKELink/utils/index.js +20 -0
- package/dist/components/PDFInput/comps/PDFActions.d.ts +1 -1
- package/dist/components/PDFInput/index.js +1 -1
- package/dist/components/Paddings/index.d.ts +1 -1
- package/dist/components/PercentCompletedPie/index.d.ts +19 -5
- package/dist/components/PercentCompletedPie/index.js +15 -5
- package/dist/components/PercentCompletedPie/styled.d.ts +17 -5
- package/dist/components/PercentCompletedPie/styled.js +26 -6
- package/dist/components/Playground/index.d.ts +4 -0
- package/dist/components/Playground/index.js +17 -0
- package/dist/components/Playground/styled.d.ts +1 -0
- package/dist/components/Playground/styled.js +14 -0
- package/dist/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxButton/index.d.ts +1 -1
- package/dist/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxButton/index.js +1 -12
- package/dist/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxInput/index.d.ts +1 -1
- package/dist/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxInput/index.js +3 -20
- package/dist/components/RadioAndCheckbox/comps/CheckboxList/index.js +11 -7
- package/dist/components/RadioAndCheckbox/comps/RadioList/comps/RadioInput/index.js +4 -25
- package/dist/components/RadioAndCheckbox/comps/RadioList/index.js +6 -6
- package/dist/components/ResourceInput/comp/ResourceDisplayBlock.d.ts +1 -1
- package/dist/components/ResourceInput/index.d.ts +1 -1
- package/dist/components/SimpleTable/index.js +5 -22
- package/dist/components/SimpleTable/utils/convertColHeaderConfigToRowData.js +1 -1
- package/dist/components/SimpleTable/utils/convertRowHeaderConfigToCellData.js +1 -1
- package/dist/components/SimpleTable/utils/prepInitValueFromConfigIfNoValue.js +2 -2
- package/dist/components/Switches/index.js +5 -11
- package/dist/components/Tags/index.d.ts +1 -1
- package/dist/components/Tags/index.styled.d.ts +1 -1
- package/dist/components/TimePicker/styled.d.ts +1 -1
- package/dist/components/TimeRangePicker/index.styled.d.ts +0 -0
- package/dist/components/TimeRangePicker/index.styled.js +0 -0
- package/dist/components/Tooltip/index.d.ts +2 -3
- package/dist/components/Typo/index.d.ts +11 -0
- package/dist/components/Typo/index.js +3 -1
- package/dist/components/VideoInput/comps/VideoActionMenu.d.ts +1 -1
- package/dist/components/VideoInput/index.d.ts +1 -1
- package/dist/components/VideoInput/index.js +2 -21
- package/dist/components/Wrappers/WrapperCardGrid.d.ts +2 -0
- package/dist/components/Wrappers/WrapperCardGrid.js +19 -0
- package/dist/components/Wrappers/index.d.ts +1 -1
- package/dist/components/Wrappers/index.js +1 -1
- package/dist/components/cards/ListProfile/styled.d.ts +7 -0
- package/dist/components/cards/ListProfile/styled.js +23 -0
- package/dist/components/cards/utils/parseCardConfig.js +1 -1
- package/dist/d3Modules/index.d.ts +1 -0
- package/dist/d3Modules/index.js +1 -1
- package/dist/icons/custom/index.d.ts +1 -0
- package/dist/icons/custom/index.js +6 -1
- package/dist/icons/index.d.ts +112 -110
- package/dist/icons/index.js +2 -1
- package/dist/stories/Accordion.stories.d.ts +78 -0
- package/dist/stories/Accordion.stories.js +93 -0
- package/dist/stories/ActionMenu.stories.d.ts +166 -0
- package/dist/stories/ActionMenu.stories.js +140 -0
- package/dist/stories/AudioInput.stories.d.ts +20 -0
- package/dist/stories/AudioInput.stories.js +67 -0
- package/dist/stories/Banner.stories.d.ts +97 -0
- package/dist/stories/Banner.stories.js +126 -0
- package/dist/stories/BarChart.stories.d.ts +13 -0
- package/dist/stories/BarChart.stories.js +61 -0
- package/dist/stories/BlockLabel.stories.d.ts +71 -0
- package/dist/stories/BlockLabel.stories.js +106 -0
- package/dist/stories/Breadcrumbs.stories.d.ts +13 -0
- package/dist/stories/Breadcrumbs.stories.js +34 -0
- package/dist/stories/Button.stories.d.ts +209 -0
- package/dist/stories/Button.stories.js +164 -0
- package/dist/stories/Checkbox.stories.d.ts +248 -0
- package/dist/stories/Checkbox.stories.js +249 -0
- package/dist/stories/Colors.stories.d.ts +6 -0
- package/dist/stories/Colors.stories.js +66 -0
- package/dist/stories/DatePicker.stories.d.ts +239 -0
- package/dist/stories/DatePicker.stories.js +267 -0
- package/dist/stories/Divider.stories.d.ts +8 -0
- package/dist/stories/Divider.stories.js +28 -0
- package/dist/stories/Dropdowns.stories.d.ts +114 -0
- package/dist/stories/Dropdowns.stories.js +280 -0
- package/dist/stories/EmptyStates.stories.d.ts +63 -0
- package/dist/stories/EmptyStates.stories.js +69 -0
- package/dist/stories/HomeCover.stories.d.ts +55 -0
- package/dist/stories/HomeCover.stories.js +68 -0
- package/dist/stories/IFrameInput.stories.d.ts +32 -0
- package/dist/stories/IFrameInput.stories.js +51 -0
- package/dist/stories/ImageInput/ImageInput.stories.d.ts +263 -0
- package/dist/stories/ImageInput/ImageInput.stories.js +167 -0
- package/dist/stories/ImageInput/imageInputArgTypes.d.ts +121 -0
- package/dist/stories/ImageInput/imageInputArgTypes.js +78 -0
- package/dist/stories/ImageInput/imageInputParseArgTypes.d.ts +17 -0
- package/dist/stories/ImageInput/imageInputParseArgTypes.js +31 -0
- package/dist/stories/InlineAlert.stories.d.ts +62 -0
- package/dist/stories/InlineAlert.stories.js +62 -0
- package/dist/stories/Layout.stories.d.ts +161 -0
- package/dist/stories/Layout.stories.js +183 -0
- package/dist/stories/LegendRadioList.stories.d.ts +15 -0
- package/dist/stories/LegendRadioList.stories.js +73 -0
- package/dist/stories/Loaders.stories.d.ts +77 -0
- package/dist/stories/Loaders.stories.js +74 -0
- package/dist/stories/Modal.stories.d.ts +135 -0
- package/dist/stories/Modal.stories.js +146 -0
- package/dist/stories/ModalConfirmAction.stories.d.ts +13 -0
- package/dist/stories/ModalConfirmAction.stories.js +47 -0
- package/dist/stories/OKELink.stories.d.ts +72 -0
- package/dist/stories/OKELink.stories.js +110 -0
- package/dist/stories/PDFInput.stories.d.ts +20 -0
- package/dist/stories/PDFInput.stories.js +45 -0
- package/dist/stories/PageScrollIndicator.stories.d.ts +15 -0
- package/dist/stories/PageScrollIndicator.stories.js +26 -0
- package/dist/stories/PercentCompletedPi.stories.d.ts +55 -0
- package/dist/stories/PercentCompletedPi.stories.js +49 -0
- package/dist/stories/Playground.stories.d.ts +22 -0
- package/dist/stories/Playground.stories.js +26 -0
- package/dist/stories/Progress.stories.d.ts +45 -0
- package/dist/stories/Progress.stories.js +50 -0
- package/dist/stories/RadioButton.stories.d.ts +260 -0
- package/dist/stories/RadioButton.stories.js +264 -0
- package/dist/stories/ResourceInput.stories.d.ts +9 -0
- package/dist/stories/ResourceInput.stories.js +53 -0
- package/dist/stories/SimpleTable.stories.d.ts +65 -0
- package/dist/stories/SimpleTable.stories.js +111 -0
- package/dist/stories/SkeletonLoader.stories.d.ts +81 -0
- package/dist/stories/SkeletonLoader.stories.js +82 -0
- package/dist/stories/Switches.stories.d.ts +106 -0
- package/dist/stories/Switches.stories.js +136 -0
- package/dist/stories/TabBar.stories.d.ts +73 -0
- package/dist/stories/TabBar.stories.js +103 -0
- package/dist/stories/TagClear.stories.d.ts +57 -0
- package/dist/stories/TagClear.stories.js +76 -0
- package/dist/stories/TagDisplay.stories.d.ts +73 -0
- package/dist/stories/TagDisplay.stories.js +154 -0
- package/dist/stories/TagLink.stories.d.ts +59 -0
- package/dist/stories/TagLink.stories.js +65 -0
- package/dist/stories/TagSelect.stories.d.ts +41 -0
- package/dist/stories/TagSelect.stories.js +54 -0
- package/dist/stories/TagsInput.stories.d.ts +90 -0
- package/dist/stories/TagsInput.stories.js +168 -0
- package/dist/stories/TextInputs.stories.d.ts +124 -0
- package/dist/stories/TextInputs.stories.js +178 -0
- package/dist/stories/Tooltip.stories.d.ts +41 -0
- package/dist/stories/Tooltip.stories.js +78 -0
- package/dist/stories/Typo.stories.d.ts +304 -0
- package/dist/stories/Typo.stories.js +357 -0
- package/dist/stories/UserRoleBadge.stories.d.ts +19 -0
- package/dist/stories/UserRoleBadge.stories.js +46 -0
- package/dist/stories/Utilities.stories.d.ts +5 -0
- package/dist/stories/Utilities.stories.js +110 -0
- package/dist/stories/VideoInput.stories.d.ts +46 -0
- package/dist/stories/VideoInput.stories.js +49 -0
- package/dist/stories/cards/CardContent.stories.d.ts +67 -0
- package/dist/stories/cards/CardContent.stories.js +47 -0
- package/dist/stories/cards/CardEmbed.stories.d.ts +65 -0
- package/dist/stories/cards/CardEmbed.stories.js +46 -0
- package/dist/stories/cards/CardProfile.stories.d.ts +46 -0
- package/dist/stories/cards/CardProfile.stories.js +48 -0
- package/dist/stories/cards/ListContent.stories.d.ts +81 -0
- package/dist/stories/cards/ListContent.stories.js +50 -0
- package/dist/stories/cards/ListProfile.stories.d.ts +41 -0
- package/dist/stories/cards/ListProfile.stories.js +46 -0
- package/dist/stories/cards/utils/cardArgTypes.d.ts +182 -0
- package/dist/stories/cards/utils/cardArgTypes.js +114 -0
- package/dist/stories/cards/utils/parseCardArgs.d.ts +46 -0
- package/dist/stories/cards/utils/parseCardArgs.js +57 -0
- package/dist/themes/colors.d.ts +51 -0
- package/dist/utils/comps/DisplayIcon/index.d.ts +1 -1
- package/dist/utils/getBlockLabelProps.js +1 -1
- package/dist/utils/getterSetterDeleter/getVal_caseExamples.d.ts +60 -0
- package/dist/utils/getterSetterDeleter/getVal_caseExamples.js +91 -0
- package/dist/utilsOolib/StorybookBannersWrapper.d.ts +2 -0
- package/dist/utilsOolib/StorybookBannersWrapper.js +16 -0
- package/dist/utilsOolib/excludeKeys.d.ts +8 -0
- package/dist/utilsOolib/excludeKeys.js +31 -0
- package/dist/utilsOolib/genRandomHash.d.ts +7 -0
- package/dist/utilsOolib/genRandomHash.js +19 -0
- package/dist/utilsOolib/index.d.ts +13 -5
- package/dist/utilsOolib/index.js +16 -4
- package/dist/utilsOolib/renderRTEPlaceholderForOolibPreview.d.ts +8 -1
- package/dist/utilsOolib/renderRTEPlaceholderForOolibPreview.js +1 -2
- package/package.json +4 -3
- /package/dist/components/Buttons/{index.styled.d.ts → styled.d.ts} +0 -0
- /package/dist/components/Buttons/{index.styled.js → styled.js} +0 -0
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.UserRoleBadge = void 0;
|
|
15
|
+
var UserRoleBadge_1 = require("../components/UserRoleBadge");
|
|
16
|
+
exports.default = {
|
|
17
|
+
title: "Components/UserRoleBadge",
|
|
18
|
+
argTypes: {
|
|
19
|
+
role: {
|
|
20
|
+
name: 'Label',
|
|
21
|
+
options: [
|
|
22
|
+
'superAdmin',
|
|
23
|
+
'admin',
|
|
24
|
+
'moderator',
|
|
25
|
+
'vetted'
|
|
26
|
+
],
|
|
27
|
+
control: { type: 'select' },
|
|
28
|
+
defaultValue: 'superAdmin',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
args: {
|
|
32
|
+
role: 'superAdmin',
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var UserRoleBadge = function (args_) {
|
|
36
|
+
var args = __assign(__assign({}, args_), { dummyThemeFromStoryBook: {
|
|
37
|
+
_Roles: {
|
|
38
|
+
superAdmin: { badgeIcon: 'BadgeSuperAdmin' },
|
|
39
|
+
admin: { badgeIcon: 'BadgeAdmin' },
|
|
40
|
+
moderator: { badgeIcon: 'BadgeMod' },
|
|
41
|
+
vetted: { badgeIcon: 'BadgeVetted' }
|
|
42
|
+
}
|
|
43
|
+
} });
|
|
44
|
+
return React.createElement(UserRoleBadge_1.UserRoleBadge, __assign({}, args));
|
|
45
|
+
};
|
|
46
|
+
exports.UserRoleBadge = UserRoleBadge;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Utilities = void 0;
|
|
4
|
+
var Typo_1 = require("../components/Typo");
|
|
5
|
+
var getVal_1 = require("../utils/getterSetterDeleter/getVal");
|
|
6
|
+
var sortData_1 = require("../utils/sortData");
|
|
7
|
+
var deleteVal_1 = require("../utils/getterSetterDeleter/deleteVal");
|
|
8
|
+
exports.default = {
|
|
9
|
+
title: "Components/Utilities",
|
|
10
|
+
// argTypes: {
|
|
11
|
+
// size: {
|
|
12
|
+
// options: ['Small', 'Medium', 'Large'],
|
|
13
|
+
// mapping: {
|
|
14
|
+
// Small: 'S',
|
|
15
|
+
// Medium: 'M',
|
|
16
|
+
// Large: 'L'
|
|
17
|
+
// },
|
|
18
|
+
// control: { type: 'inline-radio' },
|
|
19
|
+
// defaultValue: 'Small',
|
|
20
|
+
// }
|
|
21
|
+
// },
|
|
22
|
+
// args: {
|
|
23
|
+
// text: 'Hello World',
|
|
24
|
+
// invert: false,
|
|
25
|
+
// isBlock: true,
|
|
26
|
+
// blockHeight: '',
|
|
27
|
+
// }
|
|
28
|
+
};
|
|
29
|
+
var Utilities = function (args) {
|
|
30
|
+
// args[args['size']] = true;
|
|
31
|
+
var sampleObj4 = {
|
|
32
|
+
key1: {
|
|
33
|
+
key2: [
|
|
34
|
+
{
|
|
35
|
+
aryKey1: [{ aryKey2: [{ aryKey3: ["hello1"] }] }],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
aryKey1: [{ aryKey2: [{ aryKey3: ["hello2"] }] }],
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
key4: "removeMe",
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
var sampleObj3 = {
|
|
45
|
+
key1: {
|
|
46
|
+
key2: [
|
|
47
|
+
{
|
|
48
|
+
aryInside: ['hello', 'world']
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
aryInside: ['hello2', 'world2']
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
key4: 'removeMe'
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
var simpleObj = {
|
|
58
|
+
key1: {
|
|
59
|
+
key2: ['item1']
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
console.log({ deleteVal: (0, deleteVal_1.deleteVal)(simpleObj, 'key1.key2.0') });
|
|
63
|
+
console.log({ getVal: (0, getVal_1.getVal)(sampleObj4, 'key1.key2.aryKey1.aryKey2.aryKey3', { flattenIfValueIsArray: false }) });
|
|
64
|
+
// console.log({getVal: getVal(sampleObj3, 'key1.key2.aryInside', {flattenIfValueIsArray: false})})
|
|
65
|
+
// console.log({setVal: setVal(sampleObj, 'key1.key3', 'world')})
|
|
66
|
+
// console.log({deleteVal: deleteVal(sampleObj2, 'key1.key4')})
|
|
67
|
+
/** test code for sortData function */
|
|
68
|
+
var data = [
|
|
69
|
+
{ name: 'Shen', count: 50, date: '2021/12/30', bool: false },
|
|
70
|
+
{ name: 'Abrar', count: 155, date: '2021/11/20', bool: true },
|
|
71
|
+
{ name: 'Harsh', count: 2, date: '2021/12/02', bool: false },
|
|
72
|
+
{ name: 'Joshua', count: 33, date: '2021/11/25', bool: true }
|
|
73
|
+
];
|
|
74
|
+
var numSort = (0, sortData_1.sortData)({
|
|
75
|
+
data: data,
|
|
76
|
+
path: 'count',
|
|
77
|
+
sortBy: 'a',
|
|
78
|
+
fn: 'numerical'
|
|
79
|
+
});
|
|
80
|
+
var alpSort = (0, sortData_1.sortData)({
|
|
81
|
+
data: data,
|
|
82
|
+
path: 'name',
|
|
83
|
+
sortBy: 'a',
|
|
84
|
+
fn: 'alphabetical'
|
|
85
|
+
});
|
|
86
|
+
var boolSort = (0, sortData_1.sortData)({
|
|
87
|
+
data: data,
|
|
88
|
+
path: 'bool',
|
|
89
|
+
sortBy: 'a',
|
|
90
|
+
fn: 'boolean'
|
|
91
|
+
});
|
|
92
|
+
var dateSort = (0, sortData_1.sortData)({
|
|
93
|
+
data: data,
|
|
94
|
+
path: 'date',
|
|
95
|
+
sortBy: 'a',
|
|
96
|
+
fn: 'date'
|
|
97
|
+
});
|
|
98
|
+
console.log('------ TEST OUTPUT OF SORT DATA FN. -------');
|
|
99
|
+
console.log({
|
|
100
|
+
numSort: numSort,
|
|
101
|
+
alpSort: alpSort,
|
|
102
|
+
boolSort: boolSort,
|
|
103
|
+
dateSort: dateSort
|
|
104
|
+
});
|
|
105
|
+
console.log('--------------------------------------------');
|
|
106
|
+
return (React.createElement("div", null,
|
|
107
|
+
React.createElement(Typo_1.SANS_3, null, "This simply console logs the output of some utilities."),
|
|
108
|
+
React.createElement(Typo_1.SANS_2, null, "Lots of scope to make this richer")));
|
|
109
|
+
};
|
|
110
|
+
exports.Utilities = Utilities;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
}
|
|
4
|
+
export default _default;
|
|
5
|
+
export function VideoInput_(args: any): import("react").JSX.Element;
|
|
6
|
+
export namespace VideoInput_ {
|
|
7
|
+
namespace argTypes {
|
|
8
|
+
namespace enableVideoUpload {
|
|
9
|
+
let name: string;
|
|
10
|
+
}
|
|
11
|
+
namespace label {
|
|
12
|
+
let name_1: string;
|
|
13
|
+
export { name_1 as name };
|
|
14
|
+
}
|
|
15
|
+
namespace sublabel {
|
|
16
|
+
let name_2: string;
|
|
17
|
+
export { name_2 as name };
|
|
18
|
+
}
|
|
19
|
+
namespace readOnly {
|
|
20
|
+
let name_3: string;
|
|
21
|
+
export { name_3 as name };
|
|
22
|
+
}
|
|
23
|
+
namespace isRequired {
|
|
24
|
+
let name_4: string;
|
|
25
|
+
export { name_4 as name };
|
|
26
|
+
}
|
|
27
|
+
namespace invert {
|
|
28
|
+
let name_5: string;
|
|
29
|
+
export { name_5 as name };
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
namespace args {
|
|
33
|
+
let label_1: string;
|
|
34
|
+
export { label_1 as label };
|
|
35
|
+
let sublabel_1: string;
|
|
36
|
+
export { sublabel_1 as sublabel };
|
|
37
|
+
let isRequired_1: boolean;
|
|
38
|
+
export { isRequired_1 as isRequired };
|
|
39
|
+
let enableVideoUpload_1: boolean;
|
|
40
|
+
export { enableVideoUpload_1 as enableVideoUpload };
|
|
41
|
+
let readOnly_1: boolean;
|
|
42
|
+
export { readOnly_1 as readOnly };
|
|
43
|
+
let invert_1: boolean;
|
|
44
|
+
export { invert_1 as invert };
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.VideoInput_ = void 0;
|
|
18
|
+
var react_1 = require("react");
|
|
19
|
+
var VideoInput_1 = __importDefault(require("../components/VideoInput"));
|
|
20
|
+
var Wrappers_1 = require("../components/Wrappers");
|
|
21
|
+
var themes_1 = require("../themes");
|
|
22
|
+
exports.default = {
|
|
23
|
+
title: "Components/Video Input",
|
|
24
|
+
};
|
|
25
|
+
var VideoInput_ = function (args) {
|
|
26
|
+
var _a = (0, react_1.useState)(undefined), url = _a[0], setUrl = _a[1];
|
|
27
|
+
console.log({ url: url });
|
|
28
|
+
var invertProp = args.invert;
|
|
29
|
+
return (React.createElement("div", { style: { background: invertProp ? themes_1.colors.greyColor100_opacity70 : themes_1.colors.white, height: '90svh' } },
|
|
30
|
+
React.createElement(Wrappers_1.Wrapper700, null,
|
|
31
|
+
React.createElement(VideoInput_1.default, __assign({ value: url, onChange: function (k, v) { return setUrl(v); }, isRequired: true }, args)))));
|
|
32
|
+
};
|
|
33
|
+
exports.VideoInput_ = VideoInput_;
|
|
34
|
+
exports.VideoInput_.argTypes = {
|
|
35
|
+
enableVideoUpload: { name: "Enable Video Upload" },
|
|
36
|
+
label: { name: "Label" },
|
|
37
|
+
sublabel: { name: "Sublabel" },
|
|
38
|
+
readOnly: { name: "Read Only" },
|
|
39
|
+
isRequired: { name: "Is Required" },
|
|
40
|
+
invert: { name: "Invert" },
|
|
41
|
+
};
|
|
42
|
+
exports.VideoInput_.args = {
|
|
43
|
+
label: 'Video Component',
|
|
44
|
+
sublabel: "Paste your video link or upload video",
|
|
45
|
+
isRequired: false,
|
|
46
|
+
enableVideoUpload: true,
|
|
47
|
+
readOnly: false,
|
|
48
|
+
invert: false,
|
|
49
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
let argTypes: {
|
|
4
|
+
actions: {
|
|
5
|
+
name: string;
|
|
6
|
+
control: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
cardLabel: {
|
|
11
|
+
name: string;
|
|
12
|
+
control: string;
|
|
13
|
+
};
|
|
14
|
+
title: {
|
|
15
|
+
name: string;
|
|
16
|
+
control: string;
|
|
17
|
+
};
|
|
18
|
+
mediaType: {
|
|
19
|
+
name: string;
|
|
20
|
+
control: string;
|
|
21
|
+
options: string[];
|
|
22
|
+
};
|
|
23
|
+
image: {
|
|
24
|
+
name: string;
|
|
25
|
+
control: string;
|
|
26
|
+
if: {
|
|
27
|
+
arg: string;
|
|
28
|
+
eq: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
video: {
|
|
32
|
+
name: string;
|
|
33
|
+
control: string;
|
|
34
|
+
if: {
|
|
35
|
+
arg: string;
|
|
36
|
+
eq: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
metaText: {
|
|
40
|
+
name: string;
|
|
41
|
+
control: string;
|
|
42
|
+
};
|
|
43
|
+
metaName: {
|
|
44
|
+
name: string;
|
|
45
|
+
control: string;
|
|
46
|
+
};
|
|
47
|
+
metaDate: {
|
|
48
|
+
name: string;
|
|
49
|
+
control: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
let args: {
|
|
53
|
+
actions: boolean;
|
|
54
|
+
cardLabel: string;
|
|
55
|
+
title: string;
|
|
56
|
+
metaText: string;
|
|
57
|
+
metaName: string;
|
|
58
|
+
metaDate: number;
|
|
59
|
+
mediaType: string;
|
|
60
|
+
image: string;
|
|
61
|
+
video: string;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export default _default;
|
|
65
|
+
export function CardContent(args: any): React.JSX.Element;
|
|
66
|
+
export function Playground(args: any): React.JSX.Element;
|
|
67
|
+
import React from "react";
|
|
@@ -0,0 +1,47 @@
|
|
|
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.CardContent = 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 CardContent_1 = require("../../components/cards/CardContent");
|
|
24
|
+
var cardArgTypes_1 = require("./utils/cardArgTypes");
|
|
25
|
+
var parseCardArgs_1 = require("./utils/parseCardArgs");
|
|
26
|
+
var makeArrayFromLength_1 = require("../../utils/makeArrayFromLength");
|
|
27
|
+
exports.default = {
|
|
28
|
+
title: "Components/CardContent",
|
|
29
|
+
argTypes: __assign(__assign({}, cardArgTypes_1.commonCardArgTypes), cardArgTypes_1.cardContentArgTypes),
|
|
30
|
+
args: __assign(__assign({}, cardArgTypes_1.commonCardArgs), cardArgTypes_1.cardContentArgs),
|
|
31
|
+
};
|
|
32
|
+
var CardContent = function (args) {
|
|
33
|
+
var props = (0, parseCardArgs_1.parseCardArgs)(args);
|
|
34
|
+
return (react_1.default.createElement(Container_1.Container, null,
|
|
35
|
+
react_1.default.createElement(Paddings_1.PaddingTopBottom30, null,
|
|
36
|
+
react_1.default.createElement(WrapperCardGrid_1.WrapperCardGrid, null,
|
|
37
|
+
react_1.default.createElement(CardContent_1.CardContent, __assign({}, props, { config: props.config }))))));
|
|
38
|
+
};
|
|
39
|
+
exports.CardContent = CardContent;
|
|
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.Wrapper1500, { left: true },
|
|
45
|
+
react_1.default.createElement(WrapperCardGrid_1.WrapperCardGrid, null, (0, makeArrayFromLength_1.makeArrayFromLength)(50).map(function (d) { return (react_1.default.createElement(CardContent_1.CardContent, __assign({}, props, { config: props.config }))); }))))));
|
|
46
|
+
};
|
|
47
|
+
exports.Playground = Playground;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
let argTypes: {
|
|
4
|
+
disabled: {
|
|
5
|
+
name: string;
|
|
6
|
+
control: string;
|
|
7
|
+
};
|
|
8
|
+
cardLabel: {
|
|
9
|
+
name: string;
|
|
10
|
+
control: string;
|
|
11
|
+
};
|
|
12
|
+
title: {
|
|
13
|
+
name: string;
|
|
14
|
+
control: string;
|
|
15
|
+
};
|
|
16
|
+
mediaType: {
|
|
17
|
+
name: string;
|
|
18
|
+
control: string;
|
|
19
|
+
options: string[];
|
|
20
|
+
};
|
|
21
|
+
image: {
|
|
22
|
+
name: string;
|
|
23
|
+
control: string;
|
|
24
|
+
if: {
|
|
25
|
+
arg: string;
|
|
26
|
+
eq: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
video: {
|
|
30
|
+
name: string;
|
|
31
|
+
control: string;
|
|
32
|
+
if: {
|
|
33
|
+
arg: string;
|
|
34
|
+
eq: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
metaText: {
|
|
38
|
+
name: string;
|
|
39
|
+
control: string;
|
|
40
|
+
};
|
|
41
|
+
metaName: {
|
|
42
|
+
name: string;
|
|
43
|
+
control: string;
|
|
44
|
+
};
|
|
45
|
+
metaDate: {
|
|
46
|
+
name: string;
|
|
47
|
+
control: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
let args: {
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
cardLabel: string;
|
|
53
|
+
title: string;
|
|
54
|
+
metaText: string;
|
|
55
|
+
metaName: string;
|
|
56
|
+
metaDate: number;
|
|
57
|
+
mediaType: string;
|
|
58
|
+
image: string;
|
|
59
|
+
video: string;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export default _default;
|
|
63
|
+
export function CardEmbed(args: any): React.JSX.Element;
|
|
64
|
+
export function Playground(args: any): React.JSX.Element;
|
|
65
|
+
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.CardEmbed = 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 CardEmbed_1 = require("../../components/cards/CardEmbed");
|
|
22
|
+
var cardArgTypes_1 = require("./utils/cardArgTypes");
|
|
23
|
+
var parseCardArgs_1 = require("./utils/parseCardArgs");
|
|
24
|
+
var Wrappers_1 = require("../../components/Wrappers");
|
|
25
|
+
var makeArrayFromLength_1 = require("../../utils/makeArrayFromLength");
|
|
26
|
+
exports.default = {
|
|
27
|
+
title: "Components/CardEmbed",
|
|
28
|
+
argTypes: __assign(__assign({}, cardArgTypes_1.commonCardArgTypes), cardArgTypes_1.cardEmbedArgTypes),
|
|
29
|
+
args: __assign(__assign({}, cardArgTypes_1.commonCardArgs), cardArgTypes_1.cardEmbedArgs),
|
|
30
|
+
};
|
|
31
|
+
var CardEmbed = function (args) {
|
|
32
|
+
var props = (0, parseCardArgs_1.parseCardArgs)(args);
|
|
33
|
+
return (react_1.default.createElement(Container_1.Container, null,
|
|
34
|
+
react_1.default.createElement(Paddings_1.PaddingTopBottom30, null,
|
|
35
|
+
react_1.default.createElement(CardEmbed_1.CardEmbed, __assign({}, props, { config: props.config })))));
|
|
36
|
+
};
|
|
37
|
+
exports.CardEmbed = CardEmbed;
|
|
38
|
+
var Playground = function (args) {
|
|
39
|
+
var props = (0, parseCardArgs_1.parseCardArgs)(args);
|
|
40
|
+
return (react_1.default.createElement(Container_1.Container, null,
|
|
41
|
+
react_1.default.createElement(Paddings_1.PaddingTopBottom30, null,
|
|
42
|
+
react_1.default.createElement(Wrappers_1.Wrapper700, { left: true }, (0, makeArrayFromLength_1.makeArrayFromLength)(5).map(function (d) { return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
43
|
+
react_1.default.createElement(CardEmbed_1.CardEmbed, __assign({}, props, { config: props.config })),
|
|
44
|
+
react_1.default.createElement(Paddings_1.PaddingBottom20, null))); })))));
|
|
45
|
+
};
|
|
46
|
+
exports.Playground = Playground;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
let argTypes: {
|
|
4
|
+
tagDisplay: {
|
|
5
|
+
name: string;
|
|
6
|
+
control: string;
|
|
7
|
+
};
|
|
8
|
+
image: {
|
|
9
|
+
name: string;
|
|
10
|
+
control: string;
|
|
11
|
+
};
|
|
12
|
+
title: {
|
|
13
|
+
name: string;
|
|
14
|
+
control: string;
|
|
15
|
+
};
|
|
16
|
+
cardLabel: {
|
|
17
|
+
name: string;
|
|
18
|
+
control: string;
|
|
19
|
+
};
|
|
20
|
+
metaText: {
|
|
21
|
+
name: string;
|
|
22
|
+
control: string;
|
|
23
|
+
};
|
|
24
|
+
metaName: {
|
|
25
|
+
name: string;
|
|
26
|
+
control: string;
|
|
27
|
+
};
|
|
28
|
+
metaDate: {
|
|
29
|
+
name: string;
|
|
30
|
+
control: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
let args: {
|
|
34
|
+
tagDisplay: any;
|
|
35
|
+
image: string;
|
|
36
|
+
title: string;
|
|
37
|
+
cardLabel: string;
|
|
38
|
+
metaText: string;
|
|
39
|
+
metaName: string;
|
|
40
|
+
metaDate: number;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export default _default;
|
|
44
|
+
export function CardProfile(args: any): React.JSX.Element;
|
|
45
|
+
export function Playground(args: any): React.JSX.Element;
|
|
46
|
+
import React from "react";
|
|
@@ -0,0 +1,48 @@
|
|
|
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.CardProfile = 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 CardProfile_1 = require("../../components/cards/CardProfile");
|
|
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/CardProfile",
|
|
30
|
+
argTypes: __assign(__assign({}, (0, excludeKeys_1.excludeKeys)(cardArgTypes_1.commonCardArgTypes, ['mediaType', 'image', 'video'])), cardArgTypes_1.cardProfileArgTypes),
|
|
31
|
+
args: __assign(__assign({}, (0, excludeKeys_1.excludeKeys)(cardArgTypes_1.commonCardArgs, ['mediaType', 'image', 'video'])), cardArgTypes_1.cardProfileArgs),
|
|
32
|
+
};
|
|
33
|
+
var CardProfile = 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(WrapperCardGrid_1.WrapperCardGrid, null,
|
|
38
|
+
react_1.default.createElement(CardProfile_1.CardProfile, __assign({}, props, { config: __assign(__assign({}, props.config), { image: 'image' }) }))))));
|
|
39
|
+
};
|
|
40
|
+
exports.CardProfile = CardProfile;
|
|
41
|
+
var Playground = function (args) {
|
|
42
|
+
var props = (0, parseCardArgs_1.parseCardArgs)(args);
|
|
43
|
+
return (react_1.default.createElement(Container_1.Container, null,
|
|
44
|
+
react_1.default.createElement(Paddings_1.PaddingTopBottom30, null,
|
|
45
|
+
react_1.default.createElement(Wrappers_1.Wrapper1500, { left: true },
|
|
46
|
+
react_1.default.createElement(WrapperCardGrid_1.WrapperCardGrid, null, (0, makeArrayFromLength_1.makeArrayFromLength)(50).map(function (d) { return (react_1.default.createElement(CardProfile_1.CardProfile, __assign({}, props, { config: __assign(__assign({}, props.config), { image: 'image' }) }))); }))))));
|
|
47
|
+
};
|
|
48
|
+
exports.Playground = Playground;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/// <reference types="mdx" />
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
let title: string;
|
|
4
|
+
let argTypes: {
|
|
5
|
+
statusTag: {
|
|
6
|
+
name: string;
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
actions: {
|
|
12
|
+
name: string;
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
cardLabel: {
|
|
18
|
+
name: string;
|
|
19
|
+
control: string;
|
|
20
|
+
};
|
|
21
|
+
title: {
|
|
22
|
+
name: string;
|
|
23
|
+
control: string;
|
|
24
|
+
};
|
|
25
|
+
mediaType: {
|
|
26
|
+
name: string;
|
|
27
|
+
control: string;
|
|
28
|
+
options: string[];
|
|
29
|
+
};
|
|
30
|
+
image: {
|
|
31
|
+
name: string;
|
|
32
|
+
control: string;
|
|
33
|
+
if: {
|
|
34
|
+
arg: string;
|
|
35
|
+
eq: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
video: {
|
|
39
|
+
name: string;
|
|
40
|
+
control: string;
|
|
41
|
+
if: {
|
|
42
|
+
arg: string;
|
|
43
|
+
eq: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
metaText: {
|
|
47
|
+
name: string;
|
|
48
|
+
control: string;
|
|
49
|
+
};
|
|
50
|
+
metaName: {
|
|
51
|
+
name: string;
|
|
52
|
+
control: string;
|
|
53
|
+
};
|
|
54
|
+
metaDate: {
|
|
55
|
+
name: string;
|
|
56
|
+
control: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
let args: {
|
|
60
|
+
statusTag: any;
|
|
61
|
+
actions: boolean;
|
|
62
|
+
cardLabel: string;
|
|
63
|
+
title: string;
|
|
64
|
+
metaText: string;
|
|
65
|
+
metaName: string;
|
|
66
|
+
metaDate: number;
|
|
67
|
+
mediaType: string;
|
|
68
|
+
image: string;
|
|
69
|
+
video: string;
|
|
70
|
+
};
|
|
71
|
+
namespace parameters {
|
|
72
|
+
namespace docs {
|
|
73
|
+
export { docs as page };
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export default _default;
|
|
78
|
+
export function ListContent(args: any): React.JSX.Element;
|
|
79
|
+
export function Playground(args: any): React.JSX.Element;
|
|
80
|
+
import docs_1 from "./ListContent.mdx";
|
|
81
|
+
import React from "react";
|