pds-dev-kit-web 2.1.14 → 2.1.16
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/src/common/styles/colorSet/PaletteColor_Dark.json +1 -1
- package/dist/src/common/styles/colorSet/index.d.ts +2 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.d.ts +2 -1
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +38 -10
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.d.ts +1 -1
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +58 -26
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.js +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +1 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.js +46 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.js +24 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.d.ts +13 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.js +63 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.d.ts +70 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.js +52 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.js +41 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.d.ts +35 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.js +141 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.js +33 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.js +9 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +3 -0
- package/dist/src/sub/DynamicLayout/components/Section/CustomSection.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/components/Section/CustomSection.js +46 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.js +62 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/Section/Section.d.ts +6 -3
- package/dist/src/sub/DynamicLayout/components/Section/Section.js +4 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.js +72 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +119 -0
- package/dist/src/sub/DynamicLayout/components/Section/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/index.js +3 -1
- package/dist/src/sub/DynamicLayout/components/Section/util/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +38 -0
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +4 -1
- package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.d.ts +6 -1
- package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.js +36 -8
- package/dist/src/sub/DynamicLayout/components/index.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/components/index.js +2 -1
- package/dist/src/sub/DynamicLayout/mock_customSection.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/mock_customSection.js +837 -0
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +2082 -9
- package/dist/src/sub/DynamicLayout/nakedMocks.json +847 -0
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +379 -0
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +386 -0
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +29 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +193 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.js +55 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +50 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +80 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +76 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.js +71 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +127 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +66 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.d.ts +44 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +65 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.d.ts +38 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.js +50 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +73 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.js +33 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.d.ts +48 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_AnimationObserverBox.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_AnimationObserverBox.js +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.js +102 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.js +13 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +35 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +21 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.d.ts +0 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.js +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.js +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useRefDimensions.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useRefDimensions.js +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +31 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.js +71 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.js +10 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +40 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +200 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +50 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +13 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.js +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.js +51 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.js +22 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined.js +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.js +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.d.ts +24 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.js +80 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.js +32 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseSectionPadding.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseSectionPadding.js +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCustomSectionPlacement.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCustomSectionPlacement.js +24 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.js +67 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.js +54 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.js +41 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.js +92 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.js +94 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.js +95 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.js +85 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.d.ts +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.js +77 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.js +94 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.js +47 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.js +58 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.js +91 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.d.ts +22 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +134 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/index.js +3 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +77 -5
- package/package.json +2 -1
- package/release-note.md +6 -19
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"sys_background_dimmed_02": "black/opacity65",
|
|
161
161
|
"sys_border_line_08": "darkgrey500",
|
|
162
162
|
"sys_component_base_06": "darkgrey50",
|
|
163
|
-
"sys_component_base_07": "
|
|
163
|
+
"sys_component_base_07": "darkgrey80",
|
|
164
164
|
"sys_border_line_09": "darkgrey50",
|
|
165
165
|
"sys_component_base_darktheme_04": "black/opacity00",
|
|
166
166
|
"sys_border_line_10": "darkgrey50",
|
|
@@ -119,7 +119,7 @@ declare const colorSet: {
|
|
|
119
119
|
grey300: string;
|
|
120
120
|
darkgrey300: string;
|
|
121
121
|
};
|
|
122
|
-
readonly
|
|
122
|
+
readonly PaletteColor_light: {
|
|
123
123
|
sys_container_background_01: string;
|
|
124
124
|
sys_container_background_02: string;
|
|
125
125
|
sys_container_background_03: string;
|
|
@@ -464,7 +464,7 @@ declare const colorSet: {
|
|
|
464
464
|
sys_sw_sidebar_item_text_disabled: string;
|
|
465
465
|
sys_text_grey_05: string;
|
|
466
466
|
};
|
|
467
|
-
readonly
|
|
467
|
+
readonly PaletteColor_Dark: {
|
|
468
468
|
sys_container_background_01: string;
|
|
469
469
|
sys_container_background_02: string;
|
|
470
470
|
sys_container_background_03: string;
|
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
7
|
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
8
|
-
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
8
|
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
9
|
+
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
10
10
|
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
12
|
SemanticColor: SemanticColor_json_1.default,
|
|
13
|
-
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
13
|
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
14
|
+
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
15
15
|
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -15,11 +15,12 @@ declare type DesktopHeaderBarProps = {
|
|
|
15
15
|
mBtnState?: 'normal' | 'disabled';
|
|
16
16
|
mBtn2State?: 'normal' | 'disabled';
|
|
17
17
|
dividerType?: 'none' | 'solid';
|
|
18
|
+
styleTheme?: 'type_a' | 'type_b';
|
|
18
19
|
onClickLeftBtn?: () => void;
|
|
19
20
|
onClickLeft2Btn?: () => void;
|
|
20
21
|
onClickRightBtn?: () => void;
|
|
21
22
|
onClickRightBtn2?: () => void;
|
|
22
23
|
onClickRightBtn3?: () => void;
|
|
23
24
|
};
|
|
24
|
-
declare function DesktopHeaderBar({ text, size, leftDisplayType, iconName, leftBtn2Mode, leftBtn2Text, rightBtnMode, rightBtn2Mode, rightBtn3Mode, mBtnText, mBtn2Text, mBtnState, mBtn2State, dividerType, onClickLeftBtn, onClickLeft2Btn, onClickRightBtn, onClickRightBtn2, onClickRightBtn3 }: DesktopHeaderBarProps): JSX.Element;
|
|
25
|
+
declare function DesktopHeaderBar({ text, size, leftDisplayType, iconName, leftBtn2Mode, leftBtn2Text, rightBtnMode, rightBtn2Mode, rightBtn3Mode, mBtnText, mBtn2Text, mBtnState, mBtn2State, dividerType, styleTheme, onClickLeftBtn, onClickLeft2Btn, onClickRightBtn, onClickRightBtn2, onClickRightBtn3 }: DesktopHeaderBarProps): JSX.Element;
|
|
25
26
|
export default DesktopHeaderBar;
|
|
@@ -26,7 +26,7 @@ var MainButton_1 = require("../MainButton");
|
|
|
26
26
|
var TextButton_1 = require("../TextButton");
|
|
27
27
|
var TextLabel_1 = require("../TextLabel");
|
|
28
28
|
function DesktopHeaderBar(_a) {
|
|
29
|
-
var text = _a.text, _b = _a.size, size = _b === void 0 ? 'xlarge' : _b, _c = _a.leftDisplayType, leftDisplayType = _c === void 0 ? 'text' : _c, iconName = _a.iconName, leftBtn2Mode = _a.leftBtn2Mode, leftBtn2Text = _a.leftBtn2Text, _d = _a.rightBtnMode, rightBtnMode = _d === void 0 ? 'none' : _d, _e = _a.rightBtn2Mode, rightBtn2Mode = _e === void 0 ? 'none' : _e, _f = _a.rightBtn3Mode, rightBtn3Mode = _f === void 0 ? 'none' : _f, mBtnText = _a.mBtnText, mBtn2Text = _a.mBtn2Text, _g = _a.mBtnState, mBtnState = _g === void 0 ? 'normal' : _g, _h = _a.mBtn2State, mBtn2State = _h === void 0 ? 'normal' : _h, _j = _a.dividerType, dividerType = _j === void 0 ? 'none' : _j, onClickLeftBtn = _a.onClickLeftBtn, onClickLeft2Btn = _a.onClickLeft2Btn, onClickRightBtn = _a.onClickRightBtn, onClickRightBtn2 = _a.onClickRightBtn2, onClickRightBtn3 = _a.onClickRightBtn3;
|
|
29
|
+
var text = _a.text, _b = _a.size, size = _b === void 0 ? 'xlarge' : _b, _c = _a.leftDisplayType, leftDisplayType = _c === void 0 ? 'text' : _c, iconName = _a.iconName, leftBtn2Mode = _a.leftBtn2Mode, leftBtn2Text = _a.leftBtn2Text, _d = _a.rightBtnMode, rightBtnMode = _d === void 0 ? 'none' : _d, _e = _a.rightBtn2Mode, rightBtn2Mode = _e === void 0 ? 'none' : _e, _f = _a.rightBtn3Mode, rightBtn3Mode = _f === void 0 ? 'none' : _f, mBtnText = _a.mBtnText, mBtn2Text = _a.mBtn2Text, _g = _a.mBtnState, mBtnState = _g === void 0 ? 'normal' : _g, _h = _a.mBtn2State, mBtn2State = _h === void 0 ? 'normal' : _h, _j = _a.dividerType, dividerType = _j === void 0 ? 'none' : _j, _k = _a.styleTheme, styleTheme = _k === void 0 ? 'type_a' : _k, onClickLeftBtn = _a.onClickLeftBtn, onClickLeft2Btn = _a.onClickLeft2Btn, onClickRightBtn = _a.onClickRightBtn, onClickRightBtn2 = _a.onClickRightBtn2, onClickRightBtn3 = _a.onClickRightBtn3;
|
|
30
30
|
var isLastButtonIcon = rightBtnMode === 'close' ||
|
|
31
31
|
rightBtnMode === 'help_window' ||
|
|
32
32
|
(rightBtnMode === 'none' && rightBtn2Mode === 'help_window') ||
|
|
@@ -81,7 +81,7 @@ function DesktopHeaderBar(_a) {
|
|
|
81
81
|
var leftButton2Mode = function () {
|
|
82
82
|
switch (leftBtn2Mode) {
|
|
83
83
|
case 'mbtn': {
|
|
84
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(MainButton_1.MainButton, { styleTheme: "secondary", size: "xsmall", text: leftBtn2Text, onClick: handleClickLeft2Btn }, void 0)] }, void 0));
|
|
84
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: styleTheme === 'type_a' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(MainButton_1.MainButton, { styleTheme: "secondary", size: "xsmall", text: leftBtn2Text, onClick: handleClickLeft2Btn }, void 0)] }, void 0)) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { shapeType: "round", baseSize: "xsmall", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconFillType: "fill", iconSize: 16, iconName: "ic_light_bulb", iconColorKey: "ui_cpnt_button_icon_primary", fillType: "fill", onClick: handleClickLeft2Btn }, void 0)] }, void 0)) }, void 0));
|
|
85
85
|
}
|
|
86
86
|
case 'tbtn': {
|
|
87
87
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextButton_1.TextButton, { size: "xsmall", text: leftBtn2Text, onClick: handleClickLeft2Btn }, void 0)] }, void 0));
|
|
@@ -136,26 +136,54 @@ function DesktopHeaderBar(_a) {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
|
-
return ((0, jsx_runtime_1.jsxs)(S_DesktopHeaderBar, __assign({ "x-pds-name": "DesktopHeaderBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, hasDivider: dividerType === 'solid', hasBackIcon: leftDisplayType === 'back' }, { children: [(0, jsx_runtime_1.jsxs)(S_LeftDisplayBox, { children: [leftDisplayMode(), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text,
|
|
139
|
+
return ((0, jsx_runtime_1.jsxs)(S_DesktopHeaderBar, __assign({ "x-pds-name": "DesktopHeaderBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, hasDivider: dividerType === 'solid', hasBackIcon: leftDisplayType === 'back', styleTheme: styleTheme }, { children: [(0, jsx_runtime_1.jsxs)(S_LeftDisplayBox, __assign({ styleTheme: styleTheme }, { children: [styleTheme === 'type_a' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [leftDisplayMode(), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, singleLineMode: "use", customFontWeight: "bold", colorTheme: "sysTextPrimary" }, void 0)] }, void 0)) : ((0, jsx_runtime_1.jsxs)(S_TypeBText, __assign({ hasBackIcon: leftDisplayType === 'back', onClick: function () {
|
|
140
|
+
if (leftDisplayType === 'back') {
|
|
141
|
+
handleClickLeftBtn();
|
|
142
|
+
}
|
|
143
|
+
return;
|
|
144
|
+
} }, { children: [leftDisplayType === 'back' && ((0, jsx_runtime_1.jsx)(S_Icon, { children: (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_arrow_left", fillType: "line", colorKey: "ui_cpnt_button_icon_enabled" }, void 0) }, void 0)), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: String(text).toUpperCase(), singleLineMode: "use", customFontWeight: "bold", customFontSize: "14px", colorTheme: "sysTextPrimary", letterSpacing: "0.15em" }, void 0)] }), void 0)), leftButton2Mode()] }), void 0), (0, jsx_runtime_1.jsxs)(S_ButtonBox, __assign({ isLastButtonIcon: isLastButtonIcon }, { children: [rightButton3Mode(), rightButton2Mode(), rightButtonMode()] }), void 0)] }), void 0));
|
|
140
145
|
}
|
|
141
|
-
var
|
|
146
|
+
var S_TypeBText = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n ", ";\n"], ["\n align-items: center;\n display: flex;\n ", ";\n"])), function (_a) {
|
|
147
|
+
var hasBackIcon = _a.hasBackIcon;
|
|
148
|
+
return hasBackIcon && "cursor: pointer";
|
|
149
|
+
});
|
|
150
|
+
var S_Icon = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n display: flex;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
151
|
+
var theme = _a.theme;
|
|
152
|
+
return theme.spacing.spacingC;
|
|
153
|
+
}, function (_a) {
|
|
154
|
+
var theme = _a.theme;
|
|
155
|
+
return theme.spacing.spacingB;
|
|
156
|
+
});
|
|
157
|
+
var S_DesktopHeaderBar = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: ", ";\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n height: 48px;\n justify-content: space-between;\n padding-left: ", ";\n ", ";\n ", ";\n"], ["\n align-items: ", ";\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n height: 48px;\n justify-content: space-between;\n padding-left: ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
158
|
+
var styleTheme = _a.styleTheme;
|
|
159
|
+
return (styleTheme === 'type_a' ? 'center' : 'end');
|
|
160
|
+
}, function (_a) {
|
|
142
161
|
var theme = _a.theme;
|
|
143
162
|
return theme.ui_cpnt_headerbar_base_area;
|
|
144
163
|
}, function (_a) {
|
|
145
164
|
var theme = _a.theme, hasDivider = _a.hasDivider;
|
|
146
165
|
return hasDivider && "1px solid " + theme.ui_cpnt_divider;
|
|
147
|
-
}, function (_a) {
|
|
148
|
-
var size = _a.size;
|
|
149
|
-
return (size === 'xlarge' ? '64px' : '48px');
|
|
150
166
|
}, function (_a) {
|
|
151
167
|
var hasBackIcon = _a.hasBackIcon, theme = _a.theme;
|
|
152
168
|
return hasBackIcon ? theme.spacing.spacingC : theme.spacing.spacingE;
|
|
169
|
+
}, function (_a) {
|
|
170
|
+
var styleTheme = _a.styleTheme;
|
|
171
|
+
return styleTheme === 'type_b' && "border-width: 0px;";
|
|
172
|
+
}, function (_a) {
|
|
173
|
+
var styleTheme = _a.styleTheme;
|
|
174
|
+
return styleTheme === 'type_b' && "-webkit-box-align: end;";
|
|
153
175
|
});
|
|
154
|
-
var S_LeftDisplayBox = styled_components_1.default.div(
|
|
176
|
+
var S_LeftDisplayBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n margin-right: ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n display: flex;\n margin-right: ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
155
177
|
var theme = _a.theme;
|
|
156
178
|
return theme.spacing.spacingD;
|
|
179
|
+
}, function (_a) {
|
|
180
|
+
var styleTheme = _a.styleTheme;
|
|
181
|
+
return styleTheme === 'type_b' && "min-height: 24px;";
|
|
182
|
+
}, function (_a) {
|
|
183
|
+
var styleTheme = _a.styleTheme;
|
|
184
|
+
return styleTheme === 'type_b' && "margin-bottom: 4px;";
|
|
157
185
|
});
|
|
158
|
-
var S_ButtonBox = styled_components_1.default.div(
|
|
186
|
+
var S_ButtonBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n margin-right: ", ";\n\n & > :not(:last-child) {\n margin-right: ", ";\n }\n"], ["\n align-items: center;\n display: flex;\n margin-right: ", ";\n\n & > :not(:last-child) {\n margin-right: ", ";\n }\n"])), function (_a) {
|
|
159
187
|
var isLastButtonIcon = _a.isLastButtonIcon, theme = _a.theme;
|
|
160
188
|
return isLastButtonIcon ? theme.spacing.spacingB : theme.spacing.spacingE;
|
|
161
189
|
}, function (_a) {
|
|
@@ -163,4 +191,4 @@ var S_ButtonBox = styled_components_1.default.div(templateObject_3 || (templateO
|
|
|
163
191
|
return theme.spacing.spacingB;
|
|
164
192
|
});
|
|
165
193
|
exports.default = DesktopHeaderBar;
|
|
166
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
194
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -13,7 +13,7 @@ declare type TextObj = {
|
|
|
13
13
|
};
|
|
14
14
|
declare type DesktopTabBarProps = {
|
|
15
15
|
itemArray?: ItemArray[];
|
|
16
|
-
styleTheme?: 'main' | 'content';
|
|
16
|
+
styleTheme?: 'main' | 'content' | 'content_black';
|
|
17
17
|
/** @deprecated v1.5 해당 필드 대신 itemArray를 사용하세요. */
|
|
18
18
|
textArray?: TextObj[];
|
|
19
19
|
};
|
|
@@ -51,16 +51,19 @@ function DesktopTabBar(_a) {
|
|
|
51
51
|
};
|
|
52
52
|
var textLabel_1 = function (item, isSubText) {
|
|
53
53
|
if (isSubText) {
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: "caption1Bold", colorTheme: item.isActive ? 'sysTextPrimary' : 'sysTextTertiary', singleLineMode: "use" }, void 0));
|
|
55
|
+
}
|
|
56
|
+
if (styleTheme === 'content_black') {
|
|
54
57
|
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: item.isActive ? 'caption1Bold' : 'caption1Regular', colorTheme: item.isActive ? 'sysTextPrimary' : 'sysTextSecondary', singleLineMode: "use" }, void 0));
|
|
55
58
|
}
|
|
56
59
|
if (styleTheme === 'content') {
|
|
57
|
-
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: item.isActive ? 'caption1Bold' : 'caption1Regular', colorTheme: item.isActive ? '
|
|
60
|
+
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: item.isActive ? 'caption1Bold' : 'caption1Regular', colorTheme: item.isActive ? 'usrTextBrandPrimary' : 'sysTextSecondary', singleLineMode: "use" }, void 0));
|
|
58
61
|
}
|
|
59
62
|
if (styleTheme === 'main') {
|
|
60
|
-
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme:
|
|
63
|
+
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: "leadParaBold", colorTheme: item.isActive ? 'sysTextPrimary' : 'sysTextTertiary', singleLineMode: "use", letterSpacing: "-0.04em" }, void 0));
|
|
61
64
|
}
|
|
62
65
|
};
|
|
63
|
-
return ((0, jsx_runtime_1.jsxs)(S_TabBarBox, __assign({ "x-pds-name": "DesktopTabBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: [(0, jsx_runtime_1.jsx)(S_MainTabBarSpace, { children: itemArray.map(function (item) { return ((0, jsx_runtime_1.jsxs)(S_MainTabItemBox, { children: [(0, jsx_runtime_1.jsx)(S_MainTabItemWrapper, __assign({ text: item.title, styleTheme: styleTheme, isActive: item.isActive, onClick: function (e) { return handelClickTabItem_1(item, e); } }, { children: textLabel_1(item, false) }), void 0), item.isActive && item.subArray && ((0, jsx_runtime_1.jsx)(S_SubTabBarWrapper, { children: item.subArray.map(function (subItem) { return ((0, jsx_runtime_1.jsx)(S_SubTabItemWrapper, __assign({ text: subItem.title, onClick: function (e) { return handelClickTabItem_1(subItem, e); } }, { children: textLabel_1(subItem, true) }), subItem.title)); }) }, void 0))] }, item.title)); }) }, void 0), isSubTabBarActivated && (0, jsx_runtime_1.jsx)(S_SubTabBarSpace, {}, void 0)] }), void 0));
|
|
66
|
+
return ((0, jsx_runtime_1.jsxs)(S_TabBarBox, __assign({ "x-pds-name": "DesktopTabBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: [(0, jsx_runtime_1.jsx)(S_MainTabBarSpace, __assign({ styleTheme: styleTheme, isSubTabBarActivated: isSubTabBarActivated }, { children: itemArray.map(function (item) { return ((0, jsx_runtime_1.jsxs)(S_MainTabItemBox, __assign({ styleTheme: styleTheme }, { children: [(0, jsx_runtime_1.jsx)(S_MainTabItemWrapper, __assign({ text: item.title, styleTheme: styleTheme, isActive: item.isActive, onClick: function (e) { return handelClickTabItem_1(item, e); } }, { children: textLabel_1(item, false) }), void 0), item.isActive && item.subArray && ((0, jsx_runtime_1.jsx)(S_SubTabBarWrapper, { children: item.subArray.map(function (subItem) { return ((0, jsx_runtime_1.jsx)(S_SubTabItemWrapper, __assign({ text: subItem.title, styleTheme: styleTheme, onClick: function (e) { return handelClickTabItem_1(subItem, e); } }, { children: textLabel_1(subItem, true) }), subItem.title)); }) }, void 0))] }), item.title)); }) }), void 0), isSubTabBarActivated && (0, jsx_runtime_1.jsx)(S_SubTabBarSpace, { styleTheme: styleTheme }, void 0)] }), void 0));
|
|
64
67
|
}
|
|
65
68
|
if (textArray) {
|
|
66
69
|
var isSubTabBarActivated = textArray.some(function (item) { return pathname.includes(item.path) && item.subArray; });
|
|
@@ -71,13 +74,16 @@ function DesktopTabBar(_a) {
|
|
|
71
74
|
};
|
|
72
75
|
var textLabel_2 = function (item, isSubText) {
|
|
73
76
|
if (isSubText) {
|
|
77
|
+
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: "caption1Bold", colorTheme: pathname.includes(item.path) ? 'usrTextBrandPrimary' : 'sysTextTertiary', singleLineMode: "use" }, void 0));
|
|
78
|
+
}
|
|
79
|
+
if (styleTheme === 'content_black') {
|
|
74
80
|
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: pathname.includes(item.path) ? 'caption1Bold' : 'caption1Regular', colorTheme: pathname.includes(item.path) ? 'sysTextPrimary' : 'sysTextSecondary', singleLineMode: "use" }, void 0));
|
|
75
81
|
}
|
|
76
82
|
if (styleTheme === 'content') {
|
|
77
|
-
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: pathname.includes(item.path) ? 'caption1Bold' : 'caption1Regular', colorTheme: pathname.includes(item.path) ? '
|
|
83
|
+
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: pathname.includes(item.path) ? 'caption1Bold' : 'caption1Regular', colorTheme: pathname.includes(item.path) ? 'usrTextBrandPrimary' : 'sysTextSecondary', singleLineMode: "use" }, void 0));
|
|
78
84
|
}
|
|
79
85
|
if (styleTheme === 'main') {
|
|
80
|
-
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme:
|
|
86
|
+
return ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: "caption1Bold", colorTheme: pathname.includes(item.path) ? 'usrTextBrandPrimary' : 'sysTextTertiary', singleLineMode: "use" }, void 0));
|
|
81
87
|
}
|
|
82
88
|
};
|
|
83
89
|
return ((0, jsx_runtime_1.jsxs)(S_TabBarBox, __assign({ "x-pds-name": "DesktopTabBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: [(0, jsx_runtime_1.jsx)(S_MainTabBarSpace, { children: textArray.map(function (item) { return ((0, jsx_runtime_1.jsxs)(S_MainTabItemBox, { children: [(0, jsx_runtime_1.jsx)(S_MainTabItemWrapper, __assign({ isActive: pathname.includes(item.path), styleTheme: styleTheme, text: item.title, onClick: function () { return handleClick_1(item); } }, { children: textLabel_2(item, false) }), void 0), pathname.includes(item.path) && item.subArray && ((0, jsx_runtime_1.jsx)(S_SubTabBarWrapper, { children: item.subArray.map(function (subItem) { return ((0, jsx_runtime_1.jsx)(S_SubTabItemWrapper, __assign({ text: subItem.title, onClick: function () { return handleClick_1(subItem); } }, { children: textLabel_2(subItem, true) }), subItem.title)); }) }, void 0))] }, item.path)); }) }, void 0), isSubTabBarActivated && (0, jsx_runtime_1.jsx)(S_SubTabBarSpace, {}, void 0)] }), void 0));
|
|
@@ -85,21 +91,38 @@ function DesktopTabBar(_a) {
|
|
|
85
91
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
|
|
86
92
|
}
|
|
87
93
|
var S_TabBarBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
88
|
-
var S_MainTabBarSpace = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n
|
|
94
|
+
var S_MainTabBarSpace = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: ", ";\n padding-left: ", ";\n ", ";\n ", ";\n"], ["\n background-color: ", ";\n ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: ", ";\n padding-left: ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
89
95
|
var theme = _a.theme;
|
|
90
96
|
return theme.ui_cpnt_tabbar_base_area;
|
|
91
97
|
}, function (_a) {
|
|
92
|
-
var
|
|
93
|
-
return
|
|
98
|
+
var styleTheme = _a.styleTheme, isSubTabBarActivated = _a.isSubTabBarActivated;
|
|
99
|
+
return !isSubTabBarActivated && styleTheme === 'main' && "border-bottom: 1px solid #EFF0F3;";
|
|
100
|
+
}, function (_a) {
|
|
101
|
+
var styleTheme = _a.styleTheme, theme = _a.theme;
|
|
102
|
+
return styleTheme !== 'main' && "border-bottom: 1px solid " + theme.ui_cpnt_divider + ";";
|
|
103
|
+
}, function (_a) {
|
|
104
|
+
var styleTheme = _a.styleTheme;
|
|
105
|
+
return (styleTheme === 'main' ? '52px' : '40px');
|
|
94
106
|
}, function (_a) {
|
|
95
107
|
var theme = _a.theme;
|
|
96
108
|
return theme.spacing.spacingE;
|
|
109
|
+
}, function (_a) {
|
|
110
|
+
var styleTheme = _a.styleTheme;
|
|
111
|
+
return styleTheme === 'main' && "align-items: flex-start";
|
|
112
|
+
}, function (_a) {
|
|
113
|
+
var styleTheme = _a.styleTheme;
|
|
114
|
+
return styleTheme === 'main' && "padding-top: 4px";
|
|
97
115
|
});
|
|
98
|
-
var tabIndicator = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height:
|
|
116
|
+
var tabIndicator = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: ", ";\n left: 0px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"], ["\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: ", ";\n left: 0px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"])), function (_a) {
|
|
99
117
|
var theme = _a.theme, styleTheme = _a.styleTheme;
|
|
100
|
-
return styleTheme === '
|
|
118
|
+
return styleTheme === 'content_black'
|
|
101
119
|
? theme.ui_cpnt_tabbar_border_active_indicator
|
|
102
|
-
:
|
|
120
|
+
: styleTheme === 'content'
|
|
121
|
+
? theme.ui_cpnt_tabbar_border_active_indicator_primary
|
|
122
|
+
: theme.ui_cpnt_tabbar_border_active_indicator;
|
|
123
|
+
}, function (_a) {
|
|
124
|
+
var styleTheme = _a.styleTheme;
|
|
125
|
+
return (styleTheme === 'main' ? '3px' : '2px');
|
|
103
126
|
}, function (_a) {
|
|
104
127
|
var isActive = _a.isActive;
|
|
105
128
|
return !isActive && "display: none;";
|
|
@@ -119,27 +142,36 @@ var textOffset = (0, styled_components_1.css)(templateObject_4 || (templateObjec
|
|
|
119
142
|
return theme.fontWeight.bold;
|
|
120
143
|
});
|
|
121
144
|
var S_MainTabItemBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-right: ", ";\n position: relative;\n\n &:last-child {\n margin-right: 0;\n }\n"], ["\n margin-right: ", ";\n position: relative;\n\n &:last-child {\n margin-right: 0;\n }\n"])), function (_a) {
|
|
122
|
-
var theme = _a.theme;
|
|
123
|
-
return theme.spacing.spacingD;
|
|
145
|
+
var theme = _a.theme, styleTheme = _a.styleTheme;
|
|
146
|
+
return styleTheme === 'main' ? '20px' : theme.spacing.spacingD;
|
|
124
147
|
});
|
|
125
|
-
var S_MainTabItemWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-end;\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 100%;\n padding: 0 ", ";\n padding-bottom: ", ";\n
|
|
126
|
-
var theme = _a.theme;
|
|
127
|
-
return theme.spacing.spacingA;
|
|
148
|
+
var S_MainTabItemWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-end;\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 100%;\n padding: 0 ", ";\n padding-bottom: ", ";\n ", "\n ", "\n"], ["\n align-items: flex-end;\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 100%;\n padding: 0 ", ";\n padding-bottom: ", ";\n ", "\n ", "\n"])), function (_a) {
|
|
149
|
+
var theme = _a.theme, styleTheme = _a.styleTheme;
|
|
150
|
+
return (styleTheme === 'main' ? 0 : theme.spacing.spacingA);
|
|
128
151
|
}, function (_a) {
|
|
129
|
-
var theme = _a.theme;
|
|
130
|
-
return theme.spacing.spacingB;
|
|
152
|
+
var theme = _a.theme, styleTheme = _a.styleTheme;
|
|
153
|
+
return styleTheme === 'main' ? theme.spacing.spacingA : theme.spacing.spacingB;
|
|
131
154
|
}, tabIndicator, textOffset);
|
|
132
155
|
var S_SubTabBarWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n bottom: -33px;\n display: flex;\n height: 32px;\n left: 0px;\n position: absolute;\n width: max-content;\n"], ["\n bottom: -33px;\n display: flex;\n height: 32px;\n left: 0px;\n position: absolute;\n width: max-content;\n"])));
|
|
133
|
-
var S_SubTabBarSpace = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n height:
|
|
134
|
-
var theme = _a.theme;
|
|
135
|
-
return theme.ui_cpnt_tabbar_base_area_sub;
|
|
156
|
+
var S_SubTabBarSpace = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n ", ";\n height: ", ";\n"], ["\n background-color: ", ";\n ", ";\n height: ", ";\n"])), function (_a) {
|
|
157
|
+
var theme = _a.theme, styleTheme = _a.styleTheme;
|
|
158
|
+
return styleTheme !== 'main' && theme.ui_cpnt_tabbar_base_area_sub;
|
|
159
|
+
}, function (_a) {
|
|
160
|
+
var styleTheme = _a.styleTheme;
|
|
161
|
+
return styleTheme === 'main' && "border-bottom: 1px solid #EFF0F3;";
|
|
162
|
+
}, function (_a) {
|
|
163
|
+
var styleTheme = _a.styleTheme;
|
|
164
|
+
return (styleTheme === 'main' ? '26px' : '32px');
|
|
136
165
|
});
|
|
137
|
-
var S_SubTabItemWrapper = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n align-items: center;\n cursor: pointer;\n display: flex;\n justify-content: center;\n margin-right: ", ";\n
|
|
138
|
-
var theme = _a.theme;
|
|
139
|
-
return theme.spacing.spacingE;
|
|
166
|
+
var S_SubTabItemWrapper = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n align-items: center;\n cursor: pointer;\n display: flex;\n justify-content: center;\n margin-right: ", ";\n ", ";\n ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n ", "\n"], ["\n align-items: center;\n cursor: pointer;\n display: flex;\n justify-content: center;\n margin-right: ", ";\n ", ";\n ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n ", "\n"])), function (_a) {
|
|
167
|
+
var theme = _a.theme, styleTheme = _a.styleTheme;
|
|
168
|
+
return styleTheme === 'main' ? theme.spacing.spacingD : theme.spacing.spacingE;
|
|
140
169
|
}, function (_a) {
|
|
141
|
-
var theme = _a.theme;
|
|
142
|
-
return theme.spacing.spacingA;
|
|
170
|
+
var theme = _a.theme, styleTheme = _a.styleTheme;
|
|
171
|
+
return styleTheme !== 'main' && "padding: 0 " + theme.spacing.spacingA + ";";
|
|
172
|
+
}, function (_a) {
|
|
173
|
+
var theme = _a.theme, styleTheme = _a.styleTheme;
|
|
174
|
+
return styleTheme === 'main' && "padding-top: " + theme.spacing.spacingA + ";";
|
|
143
175
|
}, textOffset);
|
|
144
176
|
exports.default = DesktopTabBar;
|
|
145
177
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
@@ -125,7 +125,7 @@ var ContainersBox = function (_a) {
|
|
|
125
125
|
large: (0, jsx_runtime_1.jsx)(Containers_1.StepContainer, { stepType: "step_1152", stepContent: stepContent }, void 0)
|
|
126
126
|
}[wizardContainerWidthType] }, void 0))] }), void 0) }), void 0));
|
|
127
127
|
};
|
|
128
|
-
var wizardBackgroundStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-image:
|
|
128
|
+
var wizardBackgroundStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: hsla(242, 100%, 74%, 1);\n background-image: radial-gradient(at 42% 41%, hsla(202, 100%, 61%, 0.62) 0, transparent 50%),\n radial-gradient(at 97% 5%, hsla(261, 100%, 40%, 0.49) 0, transparent 50%),\n radial-gradient(at 88% 41%, hsla(319, 65%, 78%, 0.44) 0, transparent 50%),\n radial-gradient(at 19% 83%, hsla(157, 100%, 63%, 0.5) 0, transparent 50%),\n radial-gradient(at 5% 3%, hsla(231, 100%, 61%, 1) 0, transparent 50%),\n radial-gradient(at 98% 68%, hsla(189, 92%, 78%, 0.58) 0, transparent 50%),\n radial-gradient(at 40% 90%, hsla(240, 100%, 61%, 0.65) 0, transparent 50%),\n radial-gradient(at 64% 67%, hsla(166, 100%, 42%, 0.77) 0, transparent 50%),\n radial-gradient(at 100% 100%, hsla(164, 100%, 52%, 1) 0, transparent 50%);\n background-repeat: no-repeat;\n background-size: cover;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n background-color: hsla(242, 100%, 74%, 1);\n background-image: radial-gradient(at 42% 41%, hsla(202, 100%, 61%, 0.62) 0, transparent 50%),\n radial-gradient(at 97% 5%, hsla(261, 100%, 40%, 0.49) 0, transparent 50%),\n radial-gradient(at 88% 41%, hsla(319, 65%, 78%, 0.44) 0, transparent 50%),\n radial-gradient(at 19% 83%, hsla(157, 100%, 63%, 0.5) 0, transparent 50%),\n radial-gradient(at 5% 3%, hsla(231, 100%, 61%, 1) 0, transparent 50%),\n radial-gradient(at 98% 68%, hsla(189, 92%, 78%, 0.58) 0, transparent 50%),\n radial-gradient(at 40% 90%, hsla(240, 100%, 61%, 0.65) 0, transparent 50%),\n radial-gradient(at 64% 67%, hsla(166, 100%, 42%, 0.77) 0, transparent 50%),\n radial-gradient(at 100% 100%, hsla(164, 100%, 52%, 1) 0, transparent 50%);\n background-repeat: no-repeat;\n background-size: cover;\n display: flex;\n justify-content: center;\n"])));
|
|
129
129
|
var wizardContainersBoxStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
|
|
130
130
|
var wizardCenterBoxStyle = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex: none;\n"], ["\n flex: none;\n"])));
|
|
131
131
|
var S_Wrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n height: 100%;\n\n ", "\n"])), function (_a) {
|
|
@@ -35,6 +35,7 @@ function DynamicLayout(_a) {
|
|
|
35
35
|
isPreview: isPreview,
|
|
36
36
|
navigationHandler: navigationHandler,
|
|
37
37
|
sectionActionHandler: sectionActionHandler,
|
|
38
|
+
editingSectionId: editingSectionId,
|
|
38
39
|
programmedSectionComponents: programmedSectionComponents
|
|
39
40
|
} }, { children: [mode === 'EDIT' && onClickEditSection && ((0, jsx_runtime_1.jsx)(EditModeSectionMatcher_1.EditModeSectionMatcher, { editingSectionId: editingSectionId, scrollDownTargetSectionId: scrollDownTargetSectionId, filteredSortedSection: filteredSortedSection, onClickEditSection: onClickEditSection }, void 0)), mode !== 'EDIT' &&
|
|
40
41
|
(iframeSection ? ((0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, iframeSection), iframeSection.id)) : (filteredSortedSection.map(function (section) { return (0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, section), section.id); })))] }), void 0));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ImagePropTypes = {
|
|
3
|
+
imageSrc: string;
|
|
4
|
+
viewType?: 'fit' | 'fill';
|
|
5
|
+
imagePosition?: 'left-top' | 'left-center' | 'left-bottom' | 'center-top' | 'center-center' | 'center-bottom' | 'right-top' | 'right-center' | 'right-bottom';
|
|
6
|
+
};
|
|
7
|
+
declare const Image: import("react").ForwardRefExoticComponent<ImagePropTypes & import("react").RefAttributes<HTMLImageElement>>;
|
|
8
|
+
export default Image;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var react_1 = require("react");
|
|
12
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
|
+
var Image = (0, react_1.forwardRef)(function (_a, ref) {
|
|
14
|
+
var imageSrc = _a.imageSrc, _b = _a.viewType, viewType = _b === void 0 ? 'fit' : _b, _c = _a.imagePosition, imagePosition = _c === void 0 ? 'center-center' : _c;
|
|
15
|
+
return (0, jsx_runtime_1.jsx)(S_Image, { ref: ref, src: imageSrc, viewType: viewType, imagePosition: imagePosition }, void 0);
|
|
16
|
+
});
|
|
17
|
+
var S_Image = styled_components_1.default.img(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: ", ";\n object-fit: ", ";\n object-fit: ", ";\n width: ", ";\n"], ["\n height: ", ";\n object-fit: ", ";\n object-fit: ", ";\n width: ", ";\n"])), function (_a) {
|
|
18
|
+
var viewType = _a.viewType;
|
|
19
|
+
return (viewType === 'fit' ? 'auto' : '100%');
|
|
20
|
+
}, function (_a) {
|
|
21
|
+
var viewType = _a.viewType;
|
|
22
|
+
switch (viewType) {
|
|
23
|
+
case 'fit':
|
|
24
|
+
return 'contain';
|
|
25
|
+
case 'fill':
|
|
26
|
+
return 'cover';
|
|
27
|
+
default:
|
|
28
|
+
return 'contain';
|
|
29
|
+
}
|
|
30
|
+
}, function (_a) {
|
|
31
|
+
var viewType = _a.viewType;
|
|
32
|
+
switch (viewType) {
|
|
33
|
+
case 'fit':
|
|
34
|
+
return 'contain';
|
|
35
|
+
case 'fill':
|
|
36
|
+
return 'cover';
|
|
37
|
+
default:
|
|
38
|
+
return 'contain';
|
|
39
|
+
}
|
|
40
|
+
}, function (_a) {
|
|
41
|
+
var viewType = _a.viewType;
|
|
42
|
+
return (viewType === 'fit' ? 'auto' : '100%');
|
|
43
|
+
});
|
|
44
|
+
exports.default = Image;
|
|
45
|
+
Image.displayName = 'Image';
|
|
46
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Image = void 0;
|
|
7
|
+
var Image_1 = __importDefault(require("./Image"));
|
|
8
|
+
exports.Image = Image_1.default;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
function RichText(_a) {
|
|
13
|
+
var text = _a.text;
|
|
14
|
+
return (0, jsx_runtime_1.jsx)(S_RichText, { dangerouslySetInnerHTML: { __html: text } }, void 0);
|
|
15
|
+
}
|
|
16
|
+
var S_RichText = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n line-height: 1.5;\n text-align: left;\n white-space: pre-wrap;\n width: 100%;\n word-break: break-word;\n\n a {\n color: ", ";\n }\n\n img {\n width: 100%;\n }\n\n figure {\n margin: 0;\n max-width: 100%;\n\n img {\n width: 100%;\n }\n }\n\n blockquote {\n border-left: 4px solid ", ";\n margin: 4px;\n padding: 4px;\n\n p {\n font-style: oblique;\n margin: 0;\n }\n }\n\n iframe {\n border: none;\n }\n"], ["\n line-height: 1.5;\n text-align: left;\n white-space: pre-wrap;\n width: 100%;\n word-break: break-word;\n\n a {\n color: ", ";\n }\n\n img {\n width: 100%;\n }\n\n figure {\n margin: 0;\n max-width: 100%;\n\n img {\n width: 100%;\n }\n }\n\n blockquote {\n border-left: 4px solid ", ";\n margin: 4px;\n padding: 4px;\n\n p {\n font-style: oblique;\n margin: 0;\n }\n }\n\n iframe {\n border: none;\n }\n"])), function (_a) {
|
|
17
|
+
var theme = _a.theme;
|
|
18
|
+
return theme.ui_papp_post_notice_link;
|
|
19
|
+
}, function (_a) {
|
|
20
|
+
var theme = _a.theme;
|
|
21
|
+
return theme.ui_98;
|
|
22
|
+
});
|
|
23
|
+
exports.default = RichText;
|
|
24
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RichText = void 0;
|
|
7
|
+
var RichText_1 = __importDefault(require("./RichText"));
|
|
8
|
+
exports.RichText = RichText_1.default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type TextPropTypes = {
|
|
3
|
+
text: string;
|
|
4
|
+
fontFamilyName?: 'Pretendard' | 'sans-serif' | 'serif';
|
|
5
|
+
fontWeight?: number;
|
|
6
|
+
fontSize?: number;
|
|
7
|
+
lineHeight?: number;
|
|
8
|
+
letterSpacing?: number;
|
|
9
|
+
textColor?: string;
|
|
10
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
11
|
+
};
|
|
12
|
+
declare const Text: import("react").ForwardRefExoticComponent<TextPropTypes & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
13
|
+
export default Text;
|
|
@@ -0,0 +1,63 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var react_1 = require("react");
|
|
34
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
35
|
+
var Text = (0, react_1.forwardRef)(function (_a, ref) {
|
|
36
|
+
var text = _a.text, _b = _a.letterSpacing, letterSpacing = _b === void 0 ? 0 : _b, _c = _a.lineHeight, lineHeight = _c === void 0 ? 1.3 : _c, _d = _a.textAlign, textAlign = _d === void 0 ? 'left' : _d, args = __rest(_a, ["text", "letterSpacing", "lineHeight", "textAlign"]);
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(S_Text, __assign({ ref: ref, letterSpacing: letterSpacing, lineHeight: lineHeight, textAlign: textAlign }, args, { children: text }), void 0));
|
|
38
|
+
});
|
|
39
|
+
var S_Text = styled_components_1.default.p(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: auto;\n letter-spacing: ", "em;\n line-height: ", ";\n margin: 0;\n text-align: ", ";\n width: auto;\n\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n height: auto;\n letter-spacing: ", "em;\n line-height: ", ";\n margin: 0;\n text-align: ", ";\n width: auto;\n\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
40
|
+
var letterSpacing = _a.letterSpacing;
|
|
41
|
+
return letterSpacing;
|
|
42
|
+
}, function (_a) {
|
|
43
|
+
var lineHeight = _a.lineHeight;
|
|
44
|
+
return lineHeight;
|
|
45
|
+
}, function (_a) {
|
|
46
|
+
var textAlign = _a.textAlign;
|
|
47
|
+
return textAlign;
|
|
48
|
+
}, function (_a) {
|
|
49
|
+
var fontFamilyName = _a.fontFamilyName;
|
|
50
|
+
return fontFamilyName && "font-family: " + fontFamilyName;
|
|
51
|
+
}, function (_a) {
|
|
52
|
+
var fontWeight = _a.fontWeight;
|
|
53
|
+
return fontWeight && "font-weight: " + fontWeight;
|
|
54
|
+
}, function (_a) {
|
|
55
|
+
var fontSize = _a.fontSize;
|
|
56
|
+
return fontSize && "font-size: " + fontSize + "px";
|
|
57
|
+
}, function (_a) {
|
|
58
|
+
var textColor = _a.textColor;
|
|
59
|
+
return textColor && "color: " + textColor;
|
|
60
|
+
});
|
|
61
|
+
exports.default = Text;
|
|
62
|
+
Text.displayName = 'Text';
|
|
63
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Text = void 0;
|
|
7
|
+
var Text_1 = __importDefault(require("./Text"));
|
|
8
|
+
exports.Text = Text_1.default;
|