oolib 2.110.1 → 2.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.js +1 -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 +12 -5
- package/dist/utilsOolib/index.js +11 -3
- 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,62 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
namespace args {
|
|
4
|
+
let type: string;
|
|
5
|
+
let text: string;
|
|
6
|
+
let linkBtn: boolean;
|
|
7
|
+
let link_text: string;
|
|
8
|
+
let link_URL: string;
|
|
9
|
+
let invert: boolean;
|
|
10
|
+
}
|
|
11
|
+
namespace argTypes {
|
|
12
|
+
export namespace type_1 {
|
|
13
|
+
let name: string;
|
|
14
|
+
let options: string[];
|
|
15
|
+
namespace control {
|
|
16
|
+
let type_2: string;
|
|
17
|
+
export { type_2 as type };
|
|
18
|
+
}
|
|
19
|
+
let defaultValue: string;
|
|
20
|
+
}
|
|
21
|
+
export { type_1 as type };
|
|
22
|
+
export namespace text_1 {
|
|
23
|
+
let name_1: string;
|
|
24
|
+
export { name_1 as name };
|
|
25
|
+
}
|
|
26
|
+
export { text_1 as text };
|
|
27
|
+
export namespace link_text_1 {
|
|
28
|
+
let name_2: string;
|
|
29
|
+
export { name_2 as name };
|
|
30
|
+
export namespace _if {
|
|
31
|
+
let arg: string;
|
|
32
|
+
let truthy: boolean;
|
|
33
|
+
}
|
|
34
|
+
export { _if as if };
|
|
35
|
+
}
|
|
36
|
+
export { link_text_1 as link_text };
|
|
37
|
+
export namespace link_URL_1 {
|
|
38
|
+
let name_3: string;
|
|
39
|
+
export { name_3 as name };
|
|
40
|
+
export namespace _if_1 {
|
|
41
|
+
let arg_1: string;
|
|
42
|
+
export { arg_1 as arg };
|
|
43
|
+
let truthy_1: boolean;
|
|
44
|
+
export { truthy_1 as truthy };
|
|
45
|
+
}
|
|
46
|
+
export { _if_1 as if };
|
|
47
|
+
}
|
|
48
|
+
export { link_URL_1 as link_URL };
|
|
49
|
+
export namespace linkBtn_1 {
|
|
50
|
+
let name_4: string;
|
|
51
|
+
export { name_4 as name };
|
|
52
|
+
}
|
|
53
|
+
export { linkBtn_1 as linkBtn };
|
|
54
|
+
export namespace invert_1 {
|
|
55
|
+
let name_5: string;
|
|
56
|
+
export { name_5 as name };
|
|
57
|
+
}
|
|
58
|
+
export { invert_1 as invert };
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export default _default;
|
|
62
|
+
export function InlineAlert(args: any): import("react").JSX.Element;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.InlineAlert = void 0;
|
|
15
|
+
var InlineAlert_1 = require("../components/InlineAlert");
|
|
16
|
+
var themes_1 = require("../themes");
|
|
17
|
+
var greyColor100 = themes_1.colors.greyColor100;
|
|
18
|
+
exports.default = {
|
|
19
|
+
title: "Components/InlineAlert",
|
|
20
|
+
args: {
|
|
21
|
+
type: "danger",
|
|
22
|
+
text: 'warning, something is wrong',
|
|
23
|
+
linkBtn: false,
|
|
24
|
+
link_text: '',
|
|
25
|
+
link_URL: '',
|
|
26
|
+
invert: false,
|
|
27
|
+
},
|
|
28
|
+
argTypes: {
|
|
29
|
+
type: {
|
|
30
|
+
name: "Alert Type",
|
|
31
|
+
options: ['danger', 'neutral', 'neutralInactive', 'success'],
|
|
32
|
+
control: { type: 'select' },
|
|
33
|
+
defaultValue: 'danger',
|
|
34
|
+
},
|
|
35
|
+
text: {
|
|
36
|
+
name: "Text Type"
|
|
37
|
+
},
|
|
38
|
+
link_text: {
|
|
39
|
+
name: "Link Button Text",
|
|
40
|
+
if: { arg: 'linkBtn', truthy: true },
|
|
41
|
+
},
|
|
42
|
+
link_URL: {
|
|
43
|
+
name: "Link Button URL",
|
|
44
|
+
if: { arg: 'linkBtn', truthy: true },
|
|
45
|
+
},
|
|
46
|
+
linkBtn: {
|
|
47
|
+
name: "Link Button"
|
|
48
|
+
},
|
|
49
|
+
invert: {
|
|
50
|
+
name: "Invert"
|
|
51
|
+
},
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var InlineAlert = function (args) {
|
|
55
|
+
args.link = {
|
|
56
|
+
text: args.link_text,
|
|
57
|
+
url: args.link_URL
|
|
58
|
+
};
|
|
59
|
+
return (React.createElement("div", { style: { padding: 50, backgroundColor: args.invert ? greyColor100 : 'initial' } },
|
|
60
|
+
React.createElement(InlineAlert_1.InlineAlert, __assign({}, args))));
|
|
61
|
+
};
|
|
62
|
+
exports.InlineAlert = InlineAlert;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/// <reference types="mdx" />
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
let title: string;
|
|
4
|
+
namespace parameters {
|
|
5
|
+
namespace docs {
|
|
6
|
+
export { LayoutDocs as page };
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export default _default;
|
|
11
|
+
export function Container({ fill, padding, enableContainerQuery }: {
|
|
12
|
+
fill: any;
|
|
13
|
+
padding: any;
|
|
14
|
+
enableContainerQuery: any;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
export namespace Container {
|
|
17
|
+
export { ContainerArgTypes as argTypes };
|
|
18
|
+
export { ContainerArgs as args };
|
|
19
|
+
}
|
|
20
|
+
export function Section(args: any): import("react").JSX.Element;
|
|
21
|
+
export namespace Section {
|
|
22
|
+
export { SectionArgTypes as argTypes };
|
|
23
|
+
export { SectionArgs as args };
|
|
24
|
+
}
|
|
25
|
+
export function Wrappers(args: any): import("react").JSX.Element;
|
|
26
|
+
export namespace Wrappers {
|
|
27
|
+
export { WrapperArgTypes as argTypes };
|
|
28
|
+
export { WrapperArgs as args };
|
|
29
|
+
}
|
|
30
|
+
export function Playground(args: any): import("react").JSX.Element;
|
|
31
|
+
export namespace Playground {
|
|
32
|
+
export { WrapperArgTypes as argTypes };
|
|
33
|
+
export { WrapperArgs as args };
|
|
34
|
+
}
|
|
35
|
+
export function Padding({ fill, padding, margin }: {
|
|
36
|
+
fill: any;
|
|
37
|
+
padding: any;
|
|
38
|
+
margin: any;
|
|
39
|
+
}): import("react").JSX.Element;
|
|
40
|
+
export namespace Padding {
|
|
41
|
+
export { PaddingArgTypes as argTypes };
|
|
42
|
+
export { PaddingArgs as args };
|
|
43
|
+
}
|
|
44
|
+
import LayoutDocs from './Layout.mdx';
|
|
45
|
+
declare namespace ContainerArgTypes {
|
|
46
|
+
namespace fill {
|
|
47
|
+
namespace control {
|
|
48
|
+
let type: string;
|
|
49
|
+
let options: string[];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
namespace padding {
|
|
53
|
+
export namespace control_1 {
|
|
54
|
+
let type_1: string;
|
|
55
|
+
export { type_1 as type };
|
|
56
|
+
}
|
|
57
|
+
export { control_1 as control };
|
|
58
|
+
let options_1: number[];
|
|
59
|
+
export { options_1 as options };
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
declare namespace ContainerArgs {
|
|
63
|
+
let fill_1: any;
|
|
64
|
+
export { fill_1 as fill };
|
|
65
|
+
let padding_1: string;
|
|
66
|
+
export { padding_1 as padding };
|
|
67
|
+
export let enableContainerQuery: boolean;
|
|
68
|
+
}
|
|
69
|
+
declare namespace SectionArgTypes {
|
|
70
|
+
export namespace border {
|
|
71
|
+
export namespace control_2 {
|
|
72
|
+
let type_2: string;
|
|
73
|
+
export { type_2 as type };
|
|
74
|
+
let options_2: string[];
|
|
75
|
+
export { options_2 as options };
|
|
76
|
+
}
|
|
77
|
+
export { control_2 as control };
|
|
78
|
+
}
|
|
79
|
+
export namespace fill_2 {
|
|
80
|
+
export namespace control_3 {
|
|
81
|
+
let type_3: string;
|
|
82
|
+
export { type_3 as type };
|
|
83
|
+
let options_3: string[];
|
|
84
|
+
export { options_3 as options };
|
|
85
|
+
}
|
|
86
|
+
export { control_3 as control };
|
|
87
|
+
}
|
|
88
|
+
export { fill_2 as fill };
|
|
89
|
+
}
|
|
90
|
+
declare namespace SectionArgs {
|
|
91
|
+
let border_1: any;
|
|
92
|
+
export { border_1 as border };
|
|
93
|
+
let fill_3: string;
|
|
94
|
+
export { fill_3 as fill };
|
|
95
|
+
}
|
|
96
|
+
declare namespace WrapperArgTypes {
|
|
97
|
+
namespace alignment {
|
|
98
|
+
let options_4: string[];
|
|
99
|
+
export { options_4 as options };
|
|
100
|
+
export namespace control_4 {
|
|
101
|
+
let type_4: string;
|
|
102
|
+
export { type_4 as type };
|
|
103
|
+
}
|
|
104
|
+
export { control_4 as control };
|
|
105
|
+
}
|
|
106
|
+
namespace maxWidth {
|
|
107
|
+
export namespace control_5 {
|
|
108
|
+
let type_5: string;
|
|
109
|
+
export { type_5 as type };
|
|
110
|
+
}
|
|
111
|
+
export { control_5 as control };
|
|
112
|
+
let options_5: string[];
|
|
113
|
+
export { options_5 as options };
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
declare namespace WrapperArgs {
|
|
117
|
+
let alignment_1: string;
|
|
118
|
+
export { alignment_1 as alignment };
|
|
119
|
+
let maxWidth_1: string;
|
|
120
|
+
export { maxWidth_1 as maxWidth };
|
|
121
|
+
}
|
|
122
|
+
declare namespace PaddingArgTypes {
|
|
123
|
+
export namespace fill_4 {
|
|
124
|
+
export namespace control_6 {
|
|
125
|
+
let type_6: string;
|
|
126
|
+
export { type_6 as type };
|
|
127
|
+
let options_6: string[];
|
|
128
|
+
export { options_6 as options };
|
|
129
|
+
}
|
|
130
|
+
export { control_6 as control };
|
|
131
|
+
}
|
|
132
|
+
export { fill_4 as fill };
|
|
133
|
+
export namespace padding_2 {
|
|
134
|
+
export namespace control_7 {
|
|
135
|
+
let type_7: string;
|
|
136
|
+
export { type_7 as type };
|
|
137
|
+
let options_7: number[];
|
|
138
|
+
export { options_7 as options };
|
|
139
|
+
}
|
|
140
|
+
export { control_7 as control };
|
|
141
|
+
}
|
|
142
|
+
export { padding_2 as padding };
|
|
143
|
+
export namespace margin {
|
|
144
|
+
export namespace control_8 {
|
|
145
|
+
let type_8: string;
|
|
146
|
+
export { type_8 as type };
|
|
147
|
+
let options_8: string[];
|
|
148
|
+
export { options_8 as options };
|
|
149
|
+
}
|
|
150
|
+
export { control_8 as control };
|
|
151
|
+
export let disabled: boolean;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
declare namespace PaddingArgs {
|
|
155
|
+
let fill_5: string[];
|
|
156
|
+
export { fill_5 as fill };
|
|
157
|
+
let padding_3: number[];
|
|
158
|
+
export { padding_3 as padding };
|
|
159
|
+
let margin_1: string[];
|
|
160
|
+
export { margin_1 as margin };
|
|
161
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
41
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42
|
+
};
|
|
43
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
+
exports.Padding = exports.Playground = exports.Wrappers = exports.Section = exports.Container = void 0;
|
|
45
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
46
|
+
var Container_1 = require("../components/Container");
|
|
47
|
+
var Section_1 = require("../components/Section");
|
|
48
|
+
var WrapperComps = __importStar(require("../components/Wrappers"));
|
|
49
|
+
var themes_1 = require("../themes");
|
|
50
|
+
var mixins_1 = require("../themes/mixins");
|
|
51
|
+
var Layout_mdx_1 = __importDefault(require("./Layout.mdx"));
|
|
52
|
+
var Paddings_1 = require("../components/Paddings");
|
|
53
|
+
var Margins_1 = require("../components/Margins");
|
|
54
|
+
var Typo_1 = require("../components/Typo");
|
|
55
|
+
exports.default = {
|
|
56
|
+
title: "Components/Layout",
|
|
57
|
+
parameters: {
|
|
58
|
+
docs: {
|
|
59
|
+
page: Layout_mdx_1.default,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
var WrapperStyle = { backgroundColor: themes_1.colors.lightBlue, height: '400px' };
|
|
64
|
+
var WrapperArgTypes = {
|
|
65
|
+
alignment: {
|
|
66
|
+
options: ['center', 'left'],
|
|
67
|
+
control: { type: 'inline-radio' },
|
|
68
|
+
},
|
|
69
|
+
maxWidth: {
|
|
70
|
+
control: { type: 'select' },
|
|
71
|
+
options: ['650', '700', '820', '800', '900', '1000', '1120', '1500'],
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
var WrapperArgs = {
|
|
75
|
+
alignment: 'center',
|
|
76
|
+
maxWidth: '700'
|
|
77
|
+
};
|
|
78
|
+
var StyledContainerComp = (0, styled_components_1.default)(Container_1.Container)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n border: 1px solid ", "; \n \n height: max-content;\n\n"], ["\n position: relative;\n border: 1px solid ", "; \n \n height: max-content;\n\n"])), themes_1.colors.lightRed);
|
|
79
|
+
var ContainerArgTypes = {
|
|
80
|
+
fill: {
|
|
81
|
+
control: { type: 'inline-check', options: ['PaddingTopBottom', 'PaddingTop', 'PaddingBottom'] },
|
|
82
|
+
},
|
|
83
|
+
padding: {
|
|
84
|
+
control: { type: 'select' },
|
|
85
|
+
options: Array.from({ length: 11 }, function (v, i) { return i * 5; }),
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
var ContainerArgs = {
|
|
89
|
+
fill: undefined,
|
|
90
|
+
padding: '10',
|
|
91
|
+
enableContainerQuery: false
|
|
92
|
+
};
|
|
93
|
+
var Container = function (_a) {
|
|
94
|
+
var fill = _a.fill, padding = _a.padding, enableContainerQuery = _a.enableContainerQuery;
|
|
95
|
+
return (React.createElement(StyledContainerComp, { style: { background: themes_1.colors.lightRed }, enableContainerQuery: enableContainerQuery },
|
|
96
|
+
React.createElement(Paddings_1.PaddingTopBottom, { paddingTop: (fill === null || fill === void 0 ? void 0 : fill.includes('PaddingTop')) ? padding : 0, paddingBottom: (fill === null || fill === void 0 ? void 0 : fill.includes('PaddingBottom')) ? padding : 0, padding: (fill === null || fill === void 0 ? void 0 : fill.includes('PaddingTopBottom')) ? padding : 0 },
|
|
97
|
+
React.createElement("h2", { style: { background: themes_1.colors.white } }, "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur voluptatibus inventore minima officia debitis accusamus sapiente sed natus soluta eos maxime, cum voluptatem sequi vero, quaerat nesciunt eveniet hic, delectus vel deserunt amet doloremque laudantium quam harum. Nemo vel, voluptatem consectetur ipsa iusto perspiciatis maxime at rem amet aliquid odio error dolor cupiditate hic vero adipisci, nam eligendi quas. Doloribus impedit totam minima magni assumenda inventore tenetur veniam fugit numquam maiores id eius culpa ut consectetur, aliquid repudiandae! Magnam earum accusamus quo recusandae tempore labore eius reiciendis quos illo ullam provident saepe quibusdam dolores, optio voluptas deserunt minus dolore harum nihil eum voluptatem fugiat similique porro. Modi possimus distinctio assumenda natus asperiores, laborum deleniti commodi impedit nesciunt quo ex rem consequatur sunt quasi vitae dicta? Reiciendis sed soluta reprehenderit, placeat culpa quam iste aliquid repellendus! Corrupti, placeat quasi nam ad ea dicta doloribus harum sunt quaerat debitis deleniti totam, culpa dolores dolor distinctio pariatur, hic accusantium itaque maxime architecto assumenda. Tempore enim sequi, quas similique labore earum, non pariatur quisquam obcaecati magnam nostrum. Doloribus iusto beatae totam error enim aliquid blanditiis, nostrum quos architecto officiis commodi tenetur distinctio facere quaerat, quis suscipit nemo. Incidunt itaque ea quod adipisci perferendis maxime sapiente iusto consectetur sit eius! Nostrum sint incidunt voluptas sunt quo, animi quia voluptatem molestias laborum tempora soluta iste, impedit accusamus repudiandae ut quod assumenda minus. Facere ratione voluptas, dolorem consectetur fuga vel maiores laborum explicabo. Voluptatum explicabo dolore, illo cupiditate dolorum nisi laborum laboriosam, praesentium sunt quaerat maiores eos natus sequi tenetur adipisci ex odit reprehenderit doloribus ipsa fugiat hic sapiente quae iure. Beatae dignissimos qui exercitationem odit ullam, molestias recusandae culpa iusto illum. Placeat ex quo magni atque illo amet accusantium vitae necessitatibus earum officia in corporis alias nihil, expedita blanditiis adipisci veritatis id a maiores aperiam? Nesciunt, a totam velit at et quos voluptatibus quia ea aliquid quis perferendis vel neque eum obcaecati deleniti. Sit, cum consequuntur molestias odit voluptates minima unde itaque non rem amet nemo, quasi facilis, repudiandae iure commodi corporis atque nostrum. Tempora aspernatur minus et, harum ut accusantium aperiam expedita dignissimos cum dolorem."))));
|
|
98
|
+
};
|
|
99
|
+
exports.Container = Container;
|
|
100
|
+
exports.Container.argTypes = ContainerArgTypes;
|
|
101
|
+
exports.Container.args = ContainerArgs;
|
|
102
|
+
var SectionArgTypes = {
|
|
103
|
+
border: {
|
|
104
|
+
control: { type: 'inline-check', options: ['borderBottom', 'borderLeft', 'borderRight', 'borderTop'] },
|
|
105
|
+
},
|
|
106
|
+
fill: {
|
|
107
|
+
control: { type: 'select', options: Object.keys(themes_1.colors) },
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
var SectionArgs = {
|
|
111
|
+
border: undefined,
|
|
112
|
+
fill: 'lightYellow'
|
|
113
|
+
};
|
|
114
|
+
var Section = function (args) {
|
|
115
|
+
var props = {};
|
|
116
|
+
if (args.border) {
|
|
117
|
+
args.border.forEach(function (b) {
|
|
118
|
+
props[b] = true;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
if (args.fill) {
|
|
122
|
+
props[args.fill] = true;
|
|
123
|
+
}
|
|
124
|
+
return (React.createElement(Section_1.Section, __assign({ style: { height: '400px' } }, props)));
|
|
125
|
+
};
|
|
126
|
+
exports.Section = Section;
|
|
127
|
+
exports.Section.argTypes = SectionArgTypes;
|
|
128
|
+
exports.Section.args = SectionArgs;
|
|
129
|
+
var getWrapperComp = function (maxWidth) { return WrapperComps['Wrapper' + maxWidth]; };
|
|
130
|
+
var getWrapperProps = function (alignment) { return alignment === 'left' ? { left: true } : {}; };
|
|
131
|
+
var Wrappers = function (args) {
|
|
132
|
+
var Comp = getWrapperComp(args.maxWidth);
|
|
133
|
+
var props = getWrapperProps(args.alignment);
|
|
134
|
+
return (React.createElement(Comp, __assign({}, props, { style: WrapperStyle })));
|
|
135
|
+
};
|
|
136
|
+
exports.Wrappers = Wrappers;
|
|
137
|
+
exports.Wrappers.argTypes = WrapperArgTypes;
|
|
138
|
+
exports.Wrappers.args = WrapperArgs;
|
|
139
|
+
var Playground = function (args) {
|
|
140
|
+
var WrapperComp = getWrapperComp(args.maxWidth);
|
|
141
|
+
var WrapperProps = getWrapperProps(args.alignment);
|
|
142
|
+
return (React.createElement(StyledContainerComp, { style: { background: themes_1.colors.lightRed } },
|
|
143
|
+
React.createElement("div", { style: { background: themes_1.colors.white } },
|
|
144
|
+
React.createElement(WrapperComp, __assign({}, WrapperProps, { style: WrapperStyle })))));
|
|
145
|
+
};
|
|
146
|
+
exports.Playground = Playground;
|
|
147
|
+
exports.Playground.argTypes = WrapperArgTypes;
|
|
148
|
+
exports.Playground.args = WrapperArgs;
|
|
149
|
+
var StyledOuterDiv = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border: 1px dashed #000;\n background: ", ";\n"], ["\n border: 1px dashed #000;\n background: ", ";\n"])), themes_1.colors.black_opacity80);
|
|
150
|
+
var StyledSection = styled_components_1.default.section(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n height: calc(80vh - ", "px);\n"], ["\n background-color: ", ";\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n height: calc(80vh - ", "px);\n"])), themes_1.colors.lightBlue, function (props) { return props.padding; });
|
|
151
|
+
var PaddingArgTypes = {
|
|
152
|
+
fill: {
|
|
153
|
+
control: { type: 'inline-check', options: ['PaddingTopBottom', 'PaddingTop', 'PaddingBottom'] },
|
|
154
|
+
},
|
|
155
|
+
padding: {
|
|
156
|
+
control: { type: 'select', options: Array.from({ length: 11 }, function (v, i) { return i * 5; }), },
|
|
157
|
+
},
|
|
158
|
+
margin: {
|
|
159
|
+
control: { type: 'inline-check', options: ['margin'] },
|
|
160
|
+
disabled: true,
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
var PaddingArgs = {
|
|
164
|
+
fill: ['PaddingTopBottom'],
|
|
165
|
+
padding: [20],
|
|
166
|
+
margin: ['margin']
|
|
167
|
+
};
|
|
168
|
+
var Padding = function (_a) {
|
|
169
|
+
var fill = _a.fill, padding = _a.padding, margin = _a.margin;
|
|
170
|
+
return (React.createElement(StyledOuterDiv, { style: { height: "calc(80vh - ".concat(function (props) { return props.padding; }, "px)") } },
|
|
171
|
+
React.createElement(Paddings_1.PaddingTopBottom, { paddingTop: fill.includes('PaddingTop') ? padding : 0, paddingBottom: fill.includes('PaddingBottom') ? padding : 0, padding: fill.includes('PaddingTopBottom') ? padding : 0 },
|
|
172
|
+
React.createElement(StyledSection, { padding: padding }, (margin === null || margin === void 0 ? void 0 : margin.includes('margin')) && React.createElement(Margins_1.MarginLeftRightMinus20, null, fill.includes('PaddingTop') && fill.includes('PaddingBottom') || fill.includes('PaddingTopBottom') ? (React.createElement(Typo_1.SANS_4, null,
|
|
173
|
+
"Padding Top Bottom ",
|
|
174
|
+
padding)) : fill.includes('PaddingTop') ? (React.createElement(Typo_1.SANS_4, null,
|
|
175
|
+
"Padding Top ",
|
|
176
|
+
padding)) : fill.includes('PaddingBottom') ? (React.createElement(Typo_1.SANS_4, null,
|
|
177
|
+
"Padding Bottom ",
|
|
178
|
+
padding)) : (React.createElement(Typo_1.SANS_4, null, "No Padding applied")))))));
|
|
179
|
+
};
|
|
180
|
+
exports.Padding = Padding;
|
|
181
|
+
exports.Padding.argTypes = PaddingArgTypes;
|
|
182
|
+
exports.Padding.args = PaddingArgs;
|
|
183
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
namespace argTypes {
|
|
4
|
+
namespace handleChangeOn {
|
|
5
|
+
let name: string;
|
|
6
|
+
namespace control {
|
|
7
|
+
let type: string;
|
|
8
|
+
}
|
|
9
|
+
let options: string[];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export default _default;
|
|
14
|
+
export function LegendRadioList_(args: any): import("react").JSX.Element;
|
|
15
|
+
export function LegendCheckBoxList_(args: any): import("react").JSX.Element;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.LegendCheckBoxList_ = exports.LegendRadioList_ = void 0;
|
|
15
|
+
var react_1 = require("react");
|
|
16
|
+
var LegendRadioList_1 = require("../components/LegendRadioCheckList/LegendRadioList");
|
|
17
|
+
var LegendCheckboxList_1 = require("../components/LegendRadioCheckList/LegendCheckboxList");
|
|
18
|
+
var themes_1 = require("../themes");
|
|
19
|
+
var primaryColor100 = themes_1.colors.primaryColor100, greyColor100 = themes_1.colors.greyColor100, lightBlue = themes_1.colors.lightBlue, lightRed = themes_1.colors.lightRed, invertRed = themes_1.colors.invertRed;
|
|
20
|
+
exports.default = {
|
|
21
|
+
title: "Components/LegendRadioList",
|
|
22
|
+
argTypes: {
|
|
23
|
+
handleChangeOn: {
|
|
24
|
+
name: "Handle Change On",
|
|
25
|
+
control: { type: 'inline-radio' },
|
|
26
|
+
options: ['hover', 'click'],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
var legendOptions = [
|
|
31
|
+
{
|
|
32
|
+
"value": "option1",
|
|
33
|
+
"display": "Option 1",
|
|
34
|
+
"color": "".concat(lightRed),
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"value": "option2",
|
|
38
|
+
"display": "Option 2",
|
|
39
|
+
"color": "".concat(invertRed),
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"value": "option3",
|
|
43
|
+
"display": "Option 3",
|
|
44
|
+
"color": "".concat(lightBlue),
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"value": "option4",
|
|
48
|
+
"display": "Option 4",
|
|
49
|
+
"color": "".concat(primaryColor100),
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"value": "option5",
|
|
53
|
+
"display": "Option 5",
|
|
54
|
+
"color": "".concat(greyColor100),
|
|
55
|
+
}
|
|
56
|
+
];
|
|
57
|
+
var LegendRadioList_ = function (args) {
|
|
58
|
+
var _a = (0, react_1.useState)(legendOptions[0]), selectedValue = _a[0], setSelectedValue = _a[1];
|
|
59
|
+
console.log({ selectedValue: args });
|
|
60
|
+
return (React.createElement("div", { style: { width: "50svh", height: "50svh", display: "flex", alignItems: 'center', justifyContent: "center" } },
|
|
61
|
+
React.createElement(LegendRadioList_1.LegendRadioList, __assign({ options: legendOptions, onChange: function (k, v) { return setSelectedValue(v); }, value: selectedValue }, args))));
|
|
62
|
+
};
|
|
63
|
+
exports.LegendRadioList_ = LegendRadioList_;
|
|
64
|
+
var LegendCheckBoxList_ = function (args) {
|
|
65
|
+
var _a = (0, react_1.useState)([]), selectedValue = _a[0], setSelectedValue = _a[1];
|
|
66
|
+
var handleCheckboxChange = function (id, updatedValue) {
|
|
67
|
+
setSelectedValue(updatedValue);
|
|
68
|
+
};
|
|
69
|
+
console.log({ selectedValue: selectedValue });
|
|
70
|
+
return (React.createElement("div", { style: { width: "50svh", height: "50svh", display: "flex", alignItems: 'center', justifyContent: "center" } },
|
|
71
|
+
React.createElement(LegendCheckboxList_1.LegendCheckboxList, __assign({ id: "Id", options: legendOptions, onChange: handleCheckboxChange, value: selectedValue }, args))));
|
|
72
|
+
};
|
|
73
|
+
exports.LegendCheckBoxList_ = LegendCheckBoxList_;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
}
|
|
4
|
+
export default _default;
|
|
5
|
+
export function _LoaderCircle(args: any): import("react").JSX.Element;
|
|
6
|
+
export namespace _LoaderCircle {
|
|
7
|
+
namespace argTypes {
|
|
8
|
+
namespace size {
|
|
9
|
+
let name: string;
|
|
10
|
+
let options: string[];
|
|
11
|
+
namespace mapping {
|
|
12
|
+
let Small: string;
|
|
13
|
+
let Medium: string;
|
|
14
|
+
let Large: string;
|
|
15
|
+
}
|
|
16
|
+
namespace control {
|
|
17
|
+
let type: string;
|
|
18
|
+
}
|
|
19
|
+
let defaultValue: string;
|
|
20
|
+
}
|
|
21
|
+
namespace text {
|
|
22
|
+
let name_1: string;
|
|
23
|
+
export { name_1 as name };
|
|
24
|
+
}
|
|
25
|
+
namespace isBlock {
|
|
26
|
+
let name_2: string;
|
|
27
|
+
export { name_2 as name };
|
|
28
|
+
}
|
|
29
|
+
namespace blockHeight {
|
|
30
|
+
let name_3: string;
|
|
31
|
+
export { name_3 as name };
|
|
32
|
+
export namespace control_1 {
|
|
33
|
+
let type_1: string;
|
|
34
|
+
export { type_1 as type };
|
|
35
|
+
}
|
|
36
|
+
export { control_1 as control };
|
|
37
|
+
export { sizeArray as options };
|
|
38
|
+
}
|
|
39
|
+
namespace invert {
|
|
40
|
+
let name_4: string;
|
|
41
|
+
export { name_4 as name };
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
namespace args {
|
|
45
|
+
let text_1: string;
|
|
46
|
+
export { text_1 as text };
|
|
47
|
+
let size_1: string;
|
|
48
|
+
export { size_1 as size };
|
|
49
|
+
let isBlock_1: boolean;
|
|
50
|
+
export { isBlock_1 as isBlock };
|
|
51
|
+
let blockHeight_1: string;
|
|
52
|
+
export { blockHeight_1 as blockHeight };
|
|
53
|
+
let invert_1: boolean;
|
|
54
|
+
export { invert_1 as invert };
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export function _LoaderOverlay(args: any): import("react").JSX.Element;
|
|
58
|
+
export namespace _LoaderOverlay {
|
|
59
|
+
export namespace args_1 {
|
|
60
|
+
let loaderText: string;
|
|
61
|
+
}
|
|
62
|
+
export { args_1 as args };
|
|
63
|
+
export namespace argTypes_1 {
|
|
64
|
+
export namespace loaderText_1 {
|
|
65
|
+
let name_5: string;
|
|
66
|
+
export { name_5 as name };
|
|
67
|
+
export namespace control_2 {
|
|
68
|
+
let type_2: string;
|
|
69
|
+
export { type_2 as type };
|
|
70
|
+
}
|
|
71
|
+
export { control_2 as control };
|
|
72
|
+
}
|
|
73
|
+
export { loaderText_1 as loaderText };
|
|
74
|
+
}
|
|
75
|
+
export { argTypes_1 as argTypes };
|
|
76
|
+
}
|
|
77
|
+
declare const sizeArray: string[];
|