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,304 @@
|
|
|
1
|
+
/// <reference types="mdx" />
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
let title: string;
|
|
4
|
+
let argTypes: {
|
|
5
|
+
language: {
|
|
6
|
+
name: string;
|
|
7
|
+
options: string[];
|
|
8
|
+
mapping: {
|
|
9
|
+
English: string;
|
|
10
|
+
Hindi: string;
|
|
11
|
+
};
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
defaultValue: string;
|
|
16
|
+
};
|
|
17
|
+
children: {
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
20
|
+
'font-style': {
|
|
21
|
+
name: string;
|
|
22
|
+
options: string[];
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
defaultValue: string;
|
|
27
|
+
};
|
|
28
|
+
'font-weight': {
|
|
29
|
+
name: string;
|
|
30
|
+
options: string[];
|
|
31
|
+
control: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
defaultValue: string;
|
|
35
|
+
};
|
|
36
|
+
'text-transform': {
|
|
37
|
+
name: string;
|
|
38
|
+
options: string[];
|
|
39
|
+
control: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
defaultValue: string;
|
|
43
|
+
};
|
|
44
|
+
'text-decoration': {
|
|
45
|
+
name: string;
|
|
46
|
+
options: string[];
|
|
47
|
+
control: {
|
|
48
|
+
type: string;
|
|
49
|
+
};
|
|
50
|
+
defaultValue: string;
|
|
51
|
+
};
|
|
52
|
+
invert: {
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
let args: {
|
|
57
|
+
language: string;
|
|
58
|
+
children: string;
|
|
59
|
+
'font-style': string;
|
|
60
|
+
'font-weight': string;
|
|
61
|
+
'text-transform': string;
|
|
62
|
+
'text-decoration': string;
|
|
63
|
+
invert: boolean;
|
|
64
|
+
};
|
|
65
|
+
namespace parameters {
|
|
66
|
+
namespace docs {
|
|
67
|
+
export { TypoDocs as page };
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export default _default;
|
|
72
|
+
export function List(args: any): React.JSX.Element;
|
|
73
|
+
export function Playground(args: any): React.JSX.Element;
|
|
74
|
+
export namespace Playground {
|
|
75
|
+
export { PlaygroundArgTypes as argTypes };
|
|
76
|
+
export { PlaygroundArgs as args };
|
|
77
|
+
}
|
|
78
|
+
export function SANS0(args: any): React.JSX.Element;
|
|
79
|
+
export function SANS2(args: any): React.JSX.Element;
|
|
80
|
+
export function SANS3(args: any): React.JSX.Element;
|
|
81
|
+
export function SANS3_4(args: any): React.JSX.Element;
|
|
82
|
+
export function SANS4(args: any): React.JSX.Element;
|
|
83
|
+
export function SANS4_5(args: any): React.JSX.Element;
|
|
84
|
+
export function SANS5_6(args: any): React.JSX.Element;
|
|
85
|
+
export function SANS7_8(args: any): React.JSX.Element;
|
|
86
|
+
export function SERIF3(args: any): React.JSX.Element;
|
|
87
|
+
export function SERIF3_4(args: any): React.JSX.Element;
|
|
88
|
+
export function SERIF4_5(args: any): React.JSX.Element;
|
|
89
|
+
export function SERIF5_6(args: any): React.JSX.Element;
|
|
90
|
+
export function SERIF6_7(args: any): React.JSX.Element;
|
|
91
|
+
export function SERIF7_8(args: any): React.JSX.Element;
|
|
92
|
+
export function SERIF8_9(args: any): React.JSX.Element;
|
|
93
|
+
export function SERIF9_10(args: any): React.JSX.Element;
|
|
94
|
+
export function LABEL_(args: any): React.JSX.Element;
|
|
95
|
+
export namespace LABEL_ {
|
|
96
|
+
export namespace parameters_1 {
|
|
97
|
+
namespace controls {
|
|
98
|
+
let include: string[];
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export { parameters_1 as parameters };
|
|
102
|
+
}
|
|
103
|
+
export function BLOCKQUOTE_(args: any): React.JSX.Element;
|
|
104
|
+
export namespace BLOCKQUOTE_ {
|
|
105
|
+
export namespace parameters_2 {
|
|
106
|
+
export namespace controls_1 {
|
|
107
|
+
let exclude: string[];
|
|
108
|
+
}
|
|
109
|
+
export { controls_1 as controls };
|
|
110
|
+
}
|
|
111
|
+
export { parameters_2 as parameters };
|
|
112
|
+
}
|
|
113
|
+
import TypoDocs from './Typo.mdx';
|
|
114
|
+
import React from 'react';
|
|
115
|
+
declare namespace PlaygroundArgTypes {
|
|
116
|
+
namespace paragraph1 {
|
|
117
|
+
let name: string;
|
|
118
|
+
namespace control {
|
|
119
|
+
let type: string;
|
|
120
|
+
}
|
|
121
|
+
let defaultValue: string;
|
|
122
|
+
}
|
|
123
|
+
namespace paragraph2 {
|
|
124
|
+
let name_1: string;
|
|
125
|
+
export { name_1 as name };
|
|
126
|
+
export namespace control_1 {
|
|
127
|
+
let type_1: string;
|
|
128
|
+
export { type_1 as type };
|
|
129
|
+
}
|
|
130
|
+
export { control_1 as control };
|
|
131
|
+
let defaultValue_1: string;
|
|
132
|
+
export { defaultValue_1 as defaultValue };
|
|
133
|
+
}
|
|
134
|
+
namespace Fonts {
|
|
135
|
+
let name_2: string;
|
|
136
|
+
export { name_2 as name };
|
|
137
|
+
export namespace control_2 {
|
|
138
|
+
let type_2: string;
|
|
139
|
+
export { type_2 as type };
|
|
140
|
+
}
|
|
141
|
+
export { control_2 as control };
|
|
142
|
+
export { options };
|
|
143
|
+
let defaultValue_2: string;
|
|
144
|
+
export { defaultValue_2 as defaultValue };
|
|
145
|
+
}
|
|
146
|
+
namespace Fonts2 {
|
|
147
|
+
let name_3: string;
|
|
148
|
+
export { name_3 as name };
|
|
149
|
+
export namespace control_3 {
|
|
150
|
+
let type_3: string;
|
|
151
|
+
export { type_3 as type };
|
|
152
|
+
}
|
|
153
|
+
export { control_3 as control };
|
|
154
|
+
export { options };
|
|
155
|
+
let defaultValue_3: string;
|
|
156
|
+
export { defaultValue_3 as defaultValue };
|
|
157
|
+
}
|
|
158
|
+
namespace fontStyle1 {
|
|
159
|
+
let name_4: string;
|
|
160
|
+
export { name_4 as name };
|
|
161
|
+
let options_1: string[];
|
|
162
|
+
export { options_1 as options };
|
|
163
|
+
export namespace control_4 {
|
|
164
|
+
let type_4: string;
|
|
165
|
+
export { type_4 as type };
|
|
166
|
+
}
|
|
167
|
+
export { control_4 as control };
|
|
168
|
+
let defaultValue_4: string;
|
|
169
|
+
export { defaultValue_4 as defaultValue };
|
|
170
|
+
}
|
|
171
|
+
namespace fontStyle2 {
|
|
172
|
+
let name_5: string;
|
|
173
|
+
export { name_5 as name };
|
|
174
|
+
let options_2: string[];
|
|
175
|
+
export { options_2 as options };
|
|
176
|
+
export namespace control_5 {
|
|
177
|
+
let type_5: string;
|
|
178
|
+
export { type_5 as type };
|
|
179
|
+
}
|
|
180
|
+
export { control_5 as control };
|
|
181
|
+
let defaultValue_5: string;
|
|
182
|
+
export { defaultValue_5 as defaultValue };
|
|
183
|
+
}
|
|
184
|
+
namespace fontWeight1 {
|
|
185
|
+
let name_6: string;
|
|
186
|
+
export { name_6 as name };
|
|
187
|
+
let options_3: string[];
|
|
188
|
+
export { options_3 as options };
|
|
189
|
+
export namespace control_6 {
|
|
190
|
+
let type_6: string;
|
|
191
|
+
export { type_6 as type };
|
|
192
|
+
}
|
|
193
|
+
export { control_6 as control };
|
|
194
|
+
let defaultValue_6: string;
|
|
195
|
+
export { defaultValue_6 as defaultValue };
|
|
196
|
+
}
|
|
197
|
+
namespace fontWeight2 {
|
|
198
|
+
let name_7: string;
|
|
199
|
+
export { name_7 as name };
|
|
200
|
+
let options_4: string[];
|
|
201
|
+
export { options_4 as options };
|
|
202
|
+
export namespace control_7 {
|
|
203
|
+
let type_7: string;
|
|
204
|
+
export { type_7 as type };
|
|
205
|
+
}
|
|
206
|
+
export { control_7 as control };
|
|
207
|
+
let defaultValue_7: string;
|
|
208
|
+
export { defaultValue_7 as defaultValue };
|
|
209
|
+
}
|
|
210
|
+
namespace textTransform1 {
|
|
211
|
+
let name_8: string;
|
|
212
|
+
export { name_8 as name };
|
|
213
|
+
let options_5: string[];
|
|
214
|
+
export { options_5 as options };
|
|
215
|
+
export namespace control_8 {
|
|
216
|
+
let type_8: string;
|
|
217
|
+
export { type_8 as type };
|
|
218
|
+
}
|
|
219
|
+
export { control_8 as control };
|
|
220
|
+
let defaultValue_8: string;
|
|
221
|
+
export { defaultValue_8 as defaultValue };
|
|
222
|
+
}
|
|
223
|
+
namespace textTransform2 {
|
|
224
|
+
let name_9: string;
|
|
225
|
+
export { name_9 as name };
|
|
226
|
+
let options_6: string[];
|
|
227
|
+
export { options_6 as options };
|
|
228
|
+
export namespace control_9 {
|
|
229
|
+
let type_9: string;
|
|
230
|
+
export { type_9 as type };
|
|
231
|
+
}
|
|
232
|
+
export { control_9 as control };
|
|
233
|
+
let defaultValue_9: string;
|
|
234
|
+
export { defaultValue_9 as defaultValue };
|
|
235
|
+
}
|
|
236
|
+
namespace textDecoration1 {
|
|
237
|
+
let name_10: string;
|
|
238
|
+
export { name_10 as name };
|
|
239
|
+
let options_7: string[];
|
|
240
|
+
export { options_7 as options };
|
|
241
|
+
export namespace control_10 {
|
|
242
|
+
let type_10: string;
|
|
243
|
+
export { type_10 as type };
|
|
244
|
+
}
|
|
245
|
+
export { control_10 as control };
|
|
246
|
+
let defaultValue_10: string;
|
|
247
|
+
export { defaultValue_10 as defaultValue };
|
|
248
|
+
}
|
|
249
|
+
namespace textDecoration2 {
|
|
250
|
+
let name_11: string;
|
|
251
|
+
export { name_11 as name };
|
|
252
|
+
let options_8: string[];
|
|
253
|
+
export { options_8 as options };
|
|
254
|
+
export namespace control_11 {
|
|
255
|
+
let type_11: string;
|
|
256
|
+
export { type_11 as type };
|
|
257
|
+
}
|
|
258
|
+
export { control_11 as control };
|
|
259
|
+
let defaultValue_11: string;
|
|
260
|
+
export { defaultValue_11 as defaultValue };
|
|
261
|
+
}
|
|
262
|
+
namespace direction {
|
|
263
|
+
let name_12: string;
|
|
264
|
+
export { name_12 as name };
|
|
265
|
+
let options_9: string[];
|
|
266
|
+
export { options_9 as options };
|
|
267
|
+
export namespace control_12 {
|
|
268
|
+
let type_12: string;
|
|
269
|
+
export { type_12 as type };
|
|
270
|
+
}
|
|
271
|
+
export { control_12 as control };
|
|
272
|
+
let defaultValue_12: string;
|
|
273
|
+
export { defaultValue_12 as defaultValue };
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
declare namespace PlaygroundArgs {
|
|
277
|
+
let paragraph1_1: string;
|
|
278
|
+
export { paragraph1_1 as paragraph1 };
|
|
279
|
+
let paragraph2_1: string;
|
|
280
|
+
export { paragraph2_1 as paragraph2 };
|
|
281
|
+
let Fonts_1: string;
|
|
282
|
+
export { Fonts_1 as Fonts };
|
|
283
|
+
let Fonts2_1: string;
|
|
284
|
+
export { Fonts2_1 as Fonts2 };
|
|
285
|
+
let fontStyle1_1: string;
|
|
286
|
+
export { fontStyle1_1 as fontStyle1 };
|
|
287
|
+
let fontStyle2_1: string;
|
|
288
|
+
export { fontStyle2_1 as fontStyle2 };
|
|
289
|
+
let fontWeight1_1: string;
|
|
290
|
+
export { fontWeight1_1 as fontWeight1 };
|
|
291
|
+
let fontWeight2_1: string;
|
|
292
|
+
export { fontWeight2_1 as fontWeight2 };
|
|
293
|
+
let textTransform1_1: string;
|
|
294
|
+
export { textTransform1_1 as textTransform1 };
|
|
295
|
+
let textTransform2_1: string;
|
|
296
|
+
export { textTransform2_1 as textTransform2 };
|
|
297
|
+
let textDecoration1_1: string;
|
|
298
|
+
export { textDecoration1_1 as textDecoration1 };
|
|
299
|
+
let textDecoration2_1: string;
|
|
300
|
+
export { textDecoration2_1 as textDecoration2 };
|
|
301
|
+
let direction_1: string;
|
|
302
|
+
export { direction_1 as direction };
|
|
303
|
+
}
|
|
304
|
+
declare const options: string[];
|
|
@@ -0,0 +1,357 @@
|
|
|
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.BLOCKQUOTE_ = exports.LABEL_ = exports.SERIF9_10 = exports.SERIF8_9 = exports.SERIF7_8 = exports.SERIF6_7 = exports.SERIF5_6 = exports.SERIF4_5 = exports.SERIF3_4 = exports.SERIF3 = exports.SANS7_8 = exports.SANS5_6 = exports.SANS4_5 = exports.SANS4 = exports.SANS3_4 = exports.SANS3 = exports.SANS2 = exports.SANS0 = exports.Playground = exports.List = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var Typo_1 = require("../components/Typo");
|
|
20
|
+
var Typo_mdx_1 = __importDefault(require("./Typo.mdx"));
|
|
21
|
+
var themes_1 = require("../themes");
|
|
22
|
+
var greyColor100 = themes_1.colors.greyColor100;
|
|
23
|
+
exports.default = {
|
|
24
|
+
title: 'Components/Typography',
|
|
25
|
+
argTypes: {
|
|
26
|
+
language: {
|
|
27
|
+
name: "Language",
|
|
28
|
+
options: ['English', 'Hindi'],
|
|
29
|
+
mapping: {
|
|
30
|
+
English: '',
|
|
31
|
+
Hindi: 'hi',
|
|
32
|
+
},
|
|
33
|
+
control: { type: 'select' },
|
|
34
|
+
defaultValue: 'English',
|
|
35
|
+
},
|
|
36
|
+
children: {
|
|
37
|
+
name: "Text"
|
|
38
|
+
},
|
|
39
|
+
'font-style': {
|
|
40
|
+
name: "Font Style",
|
|
41
|
+
options: ['normal', 'italic'],
|
|
42
|
+
control: { type: 'select' },
|
|
43
|
+
defaultValue: 'normal',
|
|
44
|
+
},
|
|
45
|
+
'font-weight': {
|
|
46
|
+
name: "Font weight",
|
|
47
|
+
options: ['normal', 'semibold', 'bold'],
|
|
48
|
+
control: { type: 'select' },
|
|
49
|
+
defaultValue: 'normal',
|
|
50
|
+
},
|
|
51
|
+
'text-transform': {
|
|
52
|
+
name: "Font Transform",
|
|
53
|
+
options: ['none', 'uppercase', 'capitalize', 'lowercase'],
|
|
54
|
+
control: { type: 'select' },
|
|
55
|
+
defaultValue: 'none',
|
|
56
|
+
},
|
|
57
|
+
'text-decoration': {
|
|
58
|
+
name: "Font decoration",
|
|
59
|
+
options: ['none', 'underline'],
|
|
60
|
+
control: { type: 'select' },
|
|
61
|
+
defaultValue: 'none',
|
|
62
|
+
},
|
|
63
|
+
invert: {
|
|
64
|
+
name: "Invert"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
args: {
|
|
68
|
+
language: "English",
|
|
69
|
+
children: '',
|
|
70
|
+
'font-style': "normal",
|
|
71
|
+
'font-weight': "normal",
|
|
72
|
+
'text-transform': "none",
|
|
73
|
+
'text-decoration': "none",
|
|
74
|
+
invert: false,
|
|
75
|
+
},
|
|
76
|
+
parameters: {
|
|
77
|
+
docs: {
|
|
78
|
+
page: Typo_mdx_1.default,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
var languageContent = {
|
|
83
|
+
hi: 'यह कुछ हिंदी पाठ है',
|
|
84
|
+
};
|
|
85
|
+
var theme = {
|
|
86
|
+
language: 'hi',
|
|
87
|
+
colors: {
|
|
88
|
+
primaryColor100: greyColor100,
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
var GenComp = function (_a) {
|
|
92
|
+
var args = _a.args, Comp = _a.Comp;
|
|
93
|
+
args[args['font-style']] = true;
|
|
94
|
+
args[args['font-weight']] = true;
|
|
95
|
+
args[args['text-decoration']] = true;
|
|
96
|
+
args[args['text-transform']] = true;
|
|
97
|
+
if (!args.children)
|
|
98
|
+
args['children'] = languageContent[args.language] || 'This is default Text';
|
|
99
|
+
args['theme'] = { colors: { primaryColor100: greyColor100 } };
|
|
100
|
+
return (react_1.default.createElement("div", { style: {
|
|
101
|
+
backgroundColor: args.invert ? greyColor100 : '',
|
|
102
|
+
padding: '10px',
|
|
103
|
+
width: 'fit-content',
|
|
104
|
+
fontFamily: args.Fonts
|
|
105
|
+
} },
|
|
106
|
+
react_1.default.createElement(Comp, __assign({}, args))));
|
|
107
|
+
};
|
|
108
|
+
var List = function (args) { return (react_1.default.createElement("div", { style: { width: '95vw', backgroundColor: args.invert ? greyColor100 : '' } },
|
|
109
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_0 }),
|
|
110
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_2 }),
|
|
111
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_3 }),
|
|
112
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_3_4 }),
|
|
113
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_4 }),
|
|
114
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_4_5 }),
|
|
115
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_5_6 }),
|
|
116
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_7_8 }),
|
|
117
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_3 }),
|
|
118
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_3_4 }),
|
|
119
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_4_5 }),
|
|
120
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_5_6 }),
|
|
121
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_6_7 }),
|
|
122
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_7_8 }),
|
|
123
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_8_9 }),
|
|
124
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_9_10 }),
|
|
125
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.LABEL }),
|
|
126
|
+
react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.BLOCKQUOTE }))); };
|
|
127
|
+
exports.List = List;
|
|
128
|
+
var languageContentPlayground = {
|
|
129
|
+
hi: 'आप बदलाव की परियोजनाओं, अपने संकुल के स्कूलों में की गई पहल अथवा एक सरकारी कार्यक्रम के कार्यान्वयन के बारे में लिख सकते/सकती हैं जहाँ आपने कुछ सीखा हो या आपको लगता है कि कोई गतिविधि सीखने लायक हो सकती है। जिन स्कूलों में आप काम करते हैं, वहां परिस्थितियों को सुधारने के लिए आप शायद नई पहलों का प्रयोग कर रहे/रहीं हों। यह एक बहुत ही महत्वपूर्ण बात है जो सहकर्मियों और अन्य लोगों को बताया जा सकता है कि इस पहल के प्रयोग में लाने का कारण क्या था। यह विचार कैसे आया? आपने अब तक जो कदम उठाए हैं वो दूसरों के लिए बहुत दिलचस्प और आकर्षक हो सकते हैं।',
|
|
130
|
+
En: 'Once upon a time, in a magical kingdom far, far away, there lived a beautiful princess named Aurora. She had long golden hair that flowed like a river and eyes as blue as the sky. She was loved by all who knew her, but she was cursed by an evil witch on the day of her birth. The curse stated that on her sixteenth birthday, she would prick her finger on the spindle of a spinning wheel and die. The king and queen, her loving parents, did everything in their power to keep her safe, but they were not able to prevent her from fulfilling the curse.'
|
|
131
|
+
};
|
|
132
|
+
var options = [
|
|
133
|
+
"SANS_0",
|
|
134
|
+
"SANS_2",
|
|
135
|
+
"SANS_3",
|
|
136
|
+
"SANS_3_4",
|
|
137
|
+
"SANS_4",
|
|
138
|
+
"SANS_4_5",
|
|
139
|
+
"SANS_5_6",
|
|
140
|
+
"SANS_7_8",
|
|
141
|
+
"SERIF_3",
|
|
142
|
+
"SERIF_3_4",
|
|
143
|
+
"SERIF_4_5",
|
|
144
|
+
"SERIF_5_6",
|
|
145
|
+
"SERIF_6_7",
|
|
146
|
+
"SERIF_7_8",
|
|
147
|
+
"SERIF_8_9",
|
|
148
|
+
"SERIF_9_10",
|
|
149
|
+
"LABEL",
|
|
150
|
+
"BLOCKQUOTE"
|
|
151
|
+
];
|
|
152
|
+
var PlaygroundArgTypes = {
|
|
153
|
+
paragraph1: {
|
|
154
|
+
name: 'Paragraph 1',
|
|
155
|
+
control: { type: 'text' },
|
|
156
|
+
defaultValue: ""
|
|
157
|
+
},
|
|
158
|
+
paragraph2: {
|
|
159
|
+
name: 'Paragraph 2',
|
|
160
|
+
control: { type: 'text' },
|
|
161
|
+
defaultValue: ""
|
|
162
|
+
},
|
|
163
|
+
Fonts: {
|
|
164
|
+
name: "Font 1",
|
|
165
|
+
control: { type: 'select' },
|
|
166
|
+
options: options,
|
|
167
|
+
defaultValue: 'SANS_2'
|
|
168
|
+
},
|
|
169
|
+
Fonts2: {
|
|
170
|
+
name: "Font 2",
|
|
171
|
+
control: { type: 'select' },
|
|
172
|
+
options: options,
|
|
173
|
+
defaultValue: 'SANS_2'
|
|
174
|
+
},
|
|
175
|
+
fontStyle1: {
|
|
176
|
+
name: 'Font Style 1',
|
|
177
|
+
options: ['normal', 'italic'],
|
|
178
|
+
control: { type: 'inline-radio' },
|
|
179
|
+
defaultValue: 'normal',
|
|
180
|
+
},
|
|
181
|
+
fontStyle2: {
|
|
182
|
+
name: 'Font Style 2',
|
|
183
|
+
options: ['normal', 'italic'],
|
|
184
|
+
control: { type: 'inline-radio' },
|
|
185
|
+
defaultValue: 'normal',
|
|
186
|
+
},
|
|
187
|
+
fontWeight1: {
|
|
188
|
+
name: 'Font Weight 1',
|
|
189
|
+
options: ['normal', 'semibold', 'bold'],
|
|
190
|
+
control: { type: 'inline-radio' },
|
|
191
|
+
defaultValue: 'normal',
|
|
192
|
+
},
|
|
193
|
+
fontWeight2: {
|
|
194
|
+
name: 'Font Weight 2',
|
|
195
|
+
options: ['normal', 'semibold', 'bold'],
|
|
196
|
+
control: { type: 'inline-radio' },
|
|
197
|
+
defaultValue: 'normal',
|
|
198
|
+
},
|
|
199
|
+
textTransform1: {
|
|
200
|
+
name: 'Text Transform 1',
|
|
201
|
+
options: ['none', 'uppercase', 'capitalize', 'lowercase'],
|
|
202
|
+
control: { type: 'inline-radio' },
|
|
203
|
+
defaultValue: 'none',
|
|
204
|
+
},
|
|
205
|
+
textTransform2: {
|
|
206
|
+
name: 'Text Transform 2',
|
|
207
|
+
options: ['none', 'uppercase', 'capitalize', 'lowercase'],
|
|
208
|
+
control: { type: 'inline-radio' },
|
|
209
|
+
defaultValue: 'none',
|
|
210
|
+
},
|
|
211
|
+
textDecoration1: {
|
|
212
|
+
name: 'Text Decoration 1',
|
|
213
|
+
options: ['none', 'underline'],
|
|
214
|
+
control: { type: 'inline-radio' },
|
|
215
|
+
defaultValue: 'none',
|
|
216
|
+
},
|
|
217
|
+
textDecoration2: {
|
|
218
|
+
name: 'Text Decoration 2',
|
|
219
|
+
options: ['none', 'underline'],
|
|
220
|
+
control: { type: 'inline-radio' },
|
|
221
|
+
defaultValue: 'none',
|
|
222
|
+
},
|
|
223
|
+
direction: {
|
|
224
|
+
name: 'Layout',
|
|
225
|
+
options: ['Veritcal', 'Horizontal'],
|
|
226
|
+
control: { type: 'inline-radio' },
|
|
227
|
+
defaultValue: "Veritcal"
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
var PlaygroundArgs = {
|
|
231
|
+
paragraph1: "",
|
|
232
|
+
paragraph2: "",
|
|
233
|
+
Fonts: "SANS_2",
|
|
234
|
+
Fonts2: "SANS_2",
|
|
235
|
+
fontStyle1: "normal",
|
|
236
|
+
fontStyle2: "normal",
|
|
237
|
+
fontWeight1: "normal",
|
|
238
|
+
fontWeight2: "normal",
|
|
239
|
+
textTransform1: "none",
|
|
240
|
+
textTransform2: "none",
|
|
241
|
+
textDecoration1: "none",
|
|
242
|
+
textDecoration2: "none",
|
|
243
|
+
direction: "Veritcal",
|
|
244
|
+
};
|
|
245
|
+
var PlaygroundComp1 = function (_a) {
|
|
246
|
+
var args = _a.args, Comp = _a.Comp;
|
|
247
|
+
args[args['fontStyle1']] = true;
|
|
248
|
+
args[args['fontWeight1']] = true;
|
|
249
|
+
args[args['textDecoration1']] = true;
|
|
250
|
+
args[args['textTransform1']] = true;
|
|
251
|
+
if (!args.paragraph1)
|
|
252
|
+
args['paragraph1'] = languageContentPlayground[args.language] || languageContentPlayground.En;
|
|
253
|
+
args['theme'] = { colors: { primaryColor100: '#383838' } };
|
|
254
|
+
console.log(args);
|
|
255
|
+
return (react_1.default.createElement("div", { style: {
|
|
256
|
+
backgroundColor: args.invert ? greyColor100 : '',
|
|
257
|
+
padding: '10px',
|
|
258
|
+
width: 'fit-content',
|
|
259
|
+
} },
|
|
260
|
+
react_1.default.createElement(Comp, __assign({}, args), args.paragraph1)));
|
|
261
|
+
};
|
|
262
|
+
var PlaygroundComp2 = function (_a) {
|
|
263
|
+
var args = _a.args, Comp = _a.Comp;
|
|
264
|
+
args[args['fontStyle2']] = true;
|
|
265
|
+
args[args['fontWeight2']] = true;
|
|
266
|
+
args[args['textDecoration2']] = true;
|
|
267
|
+
args[args['textTransform2']] = true;
|
|
268
|
+
if (!args.paragraph2)
|
|
269
|
+
args['paragraph2'] = languageContentPlayground[args.language] || languageContentPlayground.En;
|
|
270
|
+
args['theme'] = { colors: { primaryColor100: '#383838' } };
|
|
271
|
+
return (react_1.default.createElement("div", { style: {
|
|
272
|
+
backgroundColor: args.invert ? greyColor100 : '',
|
|
273
|
+
padding: '10px',
|
|
274
|
+
width: 'fit-content',
|
|
275
|
+
} },
|
|
276
|
+
react_1.default.createElement(Comp, __assign({}, args), args.paragraph2)));
|
|
277
|
+
};
|
|
278
|
+
var styleMap = {
|
|
279
|
+
"SANS_0": Typo_1.SANS_0,
|
|
280
|
+
"SANS_2": Typo_1.SANS_2,
|
|
281
|
+
"SANS_3": Typo_1.SANS_3,
|
|
282
|
+
"SANS_3_4": Typo_1.SANS_3_4,
|
|
283
|
+
"SANS_4": Typo_1.SANS_4,
|
|
284
|
+
"SANS_4_5": Typo_1.SANS_4_5,
|
|
285
|
+
"SANS_5_6": Typo_1.SANS_5_6,
|
|
286
|
+
"SANS_7_8": Typo_1.SANS_7_8,
|
|
287
|
+
"SERIF_3": Typo_1.SERIF_3,
|
|
288
|
+
"SERIF_3_4": Typo_1.SERIF_3_4,
|
|
289
|
+
"SERIF_4_5": Typo_1.SERIF_4_5,
|
|
290
|
+
"SERIF_5_6": Typo_1.SERIF_5_6,
|
|
291
|
+
"SERIF_6_7": Typo_1.SERIF_6_7,
|
|
292
|
+
"SERIF_7_8": Typo_1.SERIF_7_8,
|
|
293
|
+
"SERIF_8_9": Typo_1.SERIF_8_9,
|
|
294
|
+
"SERIF_9_10": Typo_1.SERIF_9_10,
|
|
295
|
+
"LABEL": Typo_1.LABEL,
|
|
296
|
+
"BLOCKQUOTE": Typo_1.BLOCKQUOTE
|
|
297
|
+
};
|
|
298
|
+
var createPropsMap = function (args, properties, invert, language, children) {
|
|
299
|
+
return __assign(__assign({}, Object.entries(args).filter(function (_a) {
|
|
300
|
+
var key = _a[0];
|
|
301
|
+
return properties.includes(key);
|
|
302
|
+
}).reduce(function (obj, _a) {
|
|
303
|
+
var _b;
|
|
304
|
+
var key = _a[0], value = _a[1];
|
|
305
|
+
return (__assign(__assign({}, obj), (_b = {}, _b[key] = value, _b)));
|
|
306
|
+
}, {})), { invert: invert, language: language, children: children });
|
|
307
|
+
};
|
|
308
|
+
var Playground = function (args) {
|
|
309
|
+
var playgroundComp1Props = createPropsMap(args, ["fontStyle1", "fontWeight1", "textTransform1", "textDecoration1", "paragraph1"], args.invert, args.language);
|
|
310
|
+
var playgroundComp2Props = createPropsMap(args, ["fontStyle2", "fontWeight2", "textTransform2", "textDecoration2", "paragraph2"], args.invert, args.language);
|
|
311
|
+
return (react_1.default.createElement("div", { style: { display: 'flex', flexDirection: args.direction === "Horizontal" ? "row" : 'column', gap: '.5rem', padding: '1rem', height: '100vh', backgroundColor: args.invert ? greyColor100 : '' } },
|
|
312
|
+
react_1.default.createElement(PlaygroundComp1, { args: playgroundComp1Props, Comp: styleMap[args.Fonts] }),
|
|
313
|
+
react_1.default.createElement(PlaygroundComp2, { args: playgroundComp2Props, Comp: styleMap[args.Fonts2] })));
|
|
314
|
+
};
|
|
315
|
+
exports.Playground = Playground;
|
|
316
|
+
exports.Playground.argTypes = PlaygroundArgTypes;
|
|
317
|
+
exports.Playground.args = PlaygroundArgs;
|
|
318
|
+
var SANS0 = function (args) {
|
|
319
|
+
return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_0 });
|
|
320
|
+
};
|
|
321
|
+
exports.SANS0 = SANS0;
|
|
322
|
+
var SANS2 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_2 }); };
|
|
323
|
+
exports.SANS2 = SANS2;
|
|
324
|
+
var SANS3 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_3 }); };
|
|
325
|
+
exports.SANS3 = SANS3;
|
|
326
|
+
var SANS3_4 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_3_4 }); };
|
|
327
|
+
exports.SANS3_4 = SANS3_4;
|
|
328
|
+
var SANS4 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_4 }); };
|
|
329
|
+
exports.SANS4 = SANS4;
|
|
330
|
+
var SANS4_5 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_4_5 }); };
|
|
331
|
+
exports.SANS4_5 = SANS4_5;
|
|
332
|
+
var SANS5_6 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_5_6 }); };
|
|
333
|
+
exports.SANS5_6 = SANS5_6;
|
|
334
|
+
var SANS7_8 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SANS_7_8 }); };
|
|
335
|
+
exports.SANS7_8 = SANS7_8;
|
|
336
|
+
var SERIF3 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_3 }); };
|
|
337
|
+
exports.SERIF3 = SERIF3;
|
|
338
|
+
var SERIF3_4 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_3_4 }); };
|
|
339
|
+
exports.SERIF3_4 = SERIF3_4;
|
|
340
|
+
var SERIF4_5 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_4_5 }); };
|
|
341
|
+
exports.SERIF4_5 = SERIF4_5;
|
|
342
|
+
var SERIF5_6 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_5_6 }); };
|
|
343
|
+
exports.SERIF5_6 = SERIF5_6;
|
|
344
|
+
var SERIF6_7 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_6_7 }); };
|
|
345
|
+
exports.SERIF6_7 = SERIF6_7;
|
|
346
|
+
var SERIF7_8 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_7_8 }); };
|
|
347
|
+
exports.SERIF7_8 = SERIF7_8;
|
|
348
|
+
var SERIF8_9 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_8_9 }); };
|
|
349
|
+
exports.SERIF8_9 = SERIF8_9;
|
|
350
|
+
var SERIF9_10 = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.SERIF_9_10 }); };
|
|
351
|
+
exports.SERIF9_10 = SERIF9_10;
|
|
352
|
+
var LABEL_ = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.LABEL }); };
|
|
353
|
+
exports.LABEL_ = LABEL_;
|
|
354
|
+
exports.LABEL_.parameters = { controls: { include: ['children', 'invert', 'language'] } };
|
|
355
|
+
var BLOCKQUOTE_ = function (args) { return react_1.default.createElement(GenComp, { args: args, Comp: Typo_1.BLOCKQUOTE }); };
|
|
356
|
+
exports.BLOCKQUOTE_ = BLOCKQUOTE_;
|
|
357
|
+
exports.BLOCKQUOTE_.parameters = { controls: { exclude: ['font-style', 'color'] } };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
namespace argTypes {
|
|
4
|
+
namespace role {
|
|
5
|
+
let name: string;
|
|
6
|
+
let options: string[];
|
|
7
|
+
namespace control {
|
|
8
|
+
let type: string;
|
|
9
|
+
}
|
|
10
|
+
let defaultValue: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
namespace args {
|
|
14
|
+
let role_1: string;
|
|
15
|
+
export { role_1 as role };
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export default _default;
|
|
19
|
+
export function UserRoleBadge(args_: any): import("react").JSX.Element;
|