pds-dev-kit-web 0.7.0 → 0.7.3

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.
Files changed (28) hide show
  1. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +10 -1
  2. package/dist/src/common/styles/colorSet/PaletteColor_light.json +10 -1
  3. package/dist/src/common/styles/colorSet/SemanticColor.json +2 -1
  4. package/dist/src/common/styles/colorSet/UIColor.json +10 -2
  5. package/dist/src/common/styles/colorSet/index.d.ts +546 -519
  6. package/dist/src/common/styles/colorSet/index.js +5 -5
  7. package/dist/src/common/styles/colorSet/ui-type.d.ts +8 -0
  8. package/dist/src/desktop/components/ImageSlide/ImageSlide.d.ts +3 -1
  9. package/dist/src/desktop/components/ImageSlide/ImageSlide.js +5 -5
  10. package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +7 -3
  11. package/dist/src/desktop/components/TextLabel/TextLabel.js +20 -9
  12. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
  13. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +2 -1
  14. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTN.js +2 -2
  15. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTQ.d.ts +10 -0
  16. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTQ.js +48 -0
  17. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/index.d.ts +1 -0
  18. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/index.js +3 -1
  19. package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.d.ts +1 -1
  20. package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +10 -6
  21. package/dist/src/mobile/components/ImageSlide/ImageSlide.d.ts +3 -1
  22. package/dist/src/mobile/components/ImageSlide/ImageSlide.js +5 -5
  23. package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.d.ts +2 -2
  24. package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.js +2 -2
  25. package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +7 -3
  26. package/dist/src/mobile/components/TextLabel/TextLabel.js +20 -9
  27. package/package.json +2 -2
  28. package/release-note.md +7 -20
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /* eslint-disable import/order */
7
- var UIColor_json_1 = __importDefault(require("./UIColor.json"));
8
- var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
9
7
  var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
10
8
  var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
9
+ var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
10
+ var UIColor_json_1 = __importDefault(require("./UIColor.json"));
11
11
  var colorSet = {
12
- UIColor: UIColor_json_1.default,
13
- SemanticColor: SemanticColor_json_1.default,
14
12
  PaletteColor_Dark: PaletteColor_Dark_json_1.default,
15
- PaletteColor_light: PaletteColor_light_json_1.default
13
+ PaletteColor_light: PaletteColor_light_json_1.default,
14
+ SemanticColor: SemanticColor_json_1.default,
15
+ UIColor: UIColor_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -460,4 +460,12 @@ export interface UITheme {
460
460
  ui_cpnt_userdesktopsidetab_base_area: string;
461
461
  ui_cpnt_pg_gradient_01: string;
462
462
  ui_cpnt_pg_gradient_02: string;
463
+ ui_channeldesc_background: string;
464
+ ui_channeldesc_bottomsheet_base: string;
465
+ ui_channeldesc_bottomsheet_border: string;
466
+ ui_channeldesc_contents_base: string;
467
+ ui_channeldesc_dimmed: string;
468
+ ui_cpnt_pg_gradient_03: string;
469
+ ui_cpnt_pg_gradient_04: string;
470
+ ui_cpnt_pg_gradient_05: string;
463
471
  }
@@ -5,9 +5,11 @@ export declare type ImageSlideProps = {
5
5
  imageShapeType?: 'round' | 'circular' | 'rectangle';
6
6
  imageWidth?: number | 'responsive';
7
7
  imageRatio?: '16_9' | '9_16' | '16_10' | '10_16' | '4_3' | '3_4' | '1_1';
8
+ radius?: 8 | 16 | 24;
9
+ borderMode?: 'use' | 'none';
8
10
  };
9
11
  export declare type ImageSlideItemProps = {
10
12
  imageSrc?: string;
11
13
  };
12
- declare const ImageSlide: ({ status, src, imageShapeType, imageWidth, imageRatio }: ImageSlideProps) => JSX.Element;
14
+ declare const ImageSlide: ({ status, src, imageShapeType, imageWidth, imageRatio, radius, borderMode }: ImageSlideProps) => JSX.Element;
13
15
  export default ImageSlide;
@@ -40,7 +40,7 @@ var react_1 = __importStar(require("react"));
40
40
  var styled_components_1 = __importStar(require("styled-components"));
41
41
  var hybrid_1 = require("../../../hybrid");
42
42
  var ImageSlide = function (_a) {
43
- var _b = _a.status, status = _b === void 0 ? 'active' : _b, src = _a.src, _c = _a.imageShapeType, imageShapeType = _c === void 0 ? 'round' : _c, _d = _a.imageWidth, imageWidth = _d === void 0 ? 'responsive' : _d, _e = _a.imageRatio, imageRatio = _e === void 0 ? '1_1' : _e;
43
+ var _b = _a.status, status = _b === void 0 ? 'active' : _b, src = _a.src, _c = _a.imageShapeType, imageShapeType = _c === void 0 ? 'round' : _c, _d = _a.imageWidth, imageWidth = _d === void 0 ? 'responsive' : _d, _e = _a.imageRatio, imageRatio = _e === void 0 ? '1_1' : _e, _f = _a.radius, radius = _f === void 0 ? 24 : _f, _g = _a.borderMode, borderMode = _g === void 0 ? 'none' : _g;
44
44
  var renderDotControls = function (_a) {
45
45
  var currentSlide = _a.currentSlide, slideCount = _a.slideCount;
46
46
  var dotList = __spreadArray([], Array(slideCount), true).map(function (x, i) { return ({ id: i }); });
@@ -51,8 +51,8 @@ var ImageSlide = function (_a) {
51
51
  src.length > 0 &&
52
52
  src.map(function (imageSrc, i) { return (react_1.default.createElement(react_1.Fragment, { key: i.toString() },
53
53
  react_1.default.createElement("div", null,
54
- react_1.default.createElement(S_BottomGradient, { imageShapeType: imageShapeType, imageWidth: imageWidth }),
55
- react_1.default.createElement(hybrid_1.ImageView, { src: status === 'active' ? imageSrc : '', shapeType: imageShapeType, width: imageWidth, ratio: imageRatio, scaleType: "cover", radius: 24 })))); }))));
54
+ react_1.default.createElement(S_BottomGradient, { imageShapeType: imageShapeType, imageWidth: imageWidth, radius: radius }),
55
+ react_1.default.createElement(hybrid_1.ImageView, { src: status === 'active' ? imageSrc : '', shapeType: imageShapeType, width: imageWidth, ratio: imageRatio, scaleType: "cover", radius: radius, borderMode: borderMode })))); }))));
56
56
  };
57
57
  var S_Dot = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 8px;\n display: inline-block;\n height: 8px;\n margin: ", ";\n width: 8px;\n\n ", "\n"], ["\n border-radius: 8px;\n display: inline-block;\n height: 8px;\n margin: ", ";\n width: 8px;\n\n ", "\n"])), function (_a) {
58
58
  var theme = _a.theme;
@@ -85,10 +85,10 @@ var S_BottomGradient = styled_components_1.default.div(templateObject_5 || (temp
85
85
  var imageWidth = _a.imageWidth;
86
86
  return (imageWidth === 'responsive' ? '100%' : imageWidth + "px");
87
87
  }, function (_a) {
88
- var imageShapeType = _a.imageShapeType;
88
+ var imageShapeType = _a.imageShapeType, radius = _a.radius;
89
89
  return imageShapeType &&
90
90
  {
91
- round: 'border-radius: 24px;',
91
+ round: "border-radius: " + radius + "px;",
92
92
  circular: 'border-radius: 50%;',
93
93
  rectangle: 'border-radius: 0;'
94
94
  }[imageShapeType];
@@ -6,20 +6,24 @@ export declare type TextLabelProps = {
6
6
  styleTheme?: 'displayBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
7
7
  colorOverride?: UiColors;
8
8
  colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
9
- underline?: 'none' | 'use';
10
9
  singleLineMode?: 'none' | 'use';
11
10
  ellipsisMode?: 'none' | 'use';
12
11
  lineLimit?: number;
12
+ userSelectMode?: 'none' | 'use';
13
+ customFontSize?: string;
14
+ customFontWeight?: 'bold' | 'regular';
13
15
  };
14
16
  export declare type TextStyleProps = {
15
17
  textAlign?: 'left' | 'center' | 'right';
16
18
  styleTheme?: 'displayBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
17
19
  colorOverride?: UiColors;
18
20
  colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
19
- underline?: 'none' | 'use';
20
21
  singleLineMode?: 'none' | 'use';
21
22
  ellipsisMode?: 'none' | 'use';
22
23
  lineLimit?: number;
24
+ userSelectMode?: 'none' | 'use';
25
+ customFontSize?: string;
26
+ customFontWeight?: 'bold' | 'regular';
23
27
  };
24
- declare function TextLabel({ text, textAlign, styleTheme, colorOverride, colorTheme, underline, singleLineMode, ellipsisMode, lineLimit }: TextLabelProps): JSX.Element;
28
+ declare function TextLabel({ text, textAlign, styleTheme, colorOverride, colorTheme, singleLineMode, ellipsisMode, lineLimit, userSelectMode, customFontSize, customFontWeight }: TextLabelProps): JSX.Element;
25
29
  export default TextLabel;
@@ -30,8 +30,8 @@ var react_1 = __importDefault(require("react"));
30
30
  var styled_components_1 = __importStar(require("styled-components"));
31
31
  var common_1 = require("../../../common");
32
32
  function TextLabel(_a) {
33
- var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, colorOverride = _a.colorOverride, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.underline, underline = _e === void 0 ? 'none' : _e, _f = _a.singleLineMode, singleLineMode = _f === void 0 ? 'none' : _f, _g = _a.ellipsisMode, ellipsisMode = _g === void 0 ? 'none' : _g, lineLimit = _a.lineLimit;
34
- return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, underline: underline, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit }, text));
33
+ var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, colorOverride = _a.colorOverride, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.singleLineMode, singleLineMode = _e === void 0 ? 'none' : _e, _f = _a.ellipsisMode, ellipsisMode = _f === void 0 ? 'none' : _f, lineLimit = _a.lineLimit, _g = _a.userSelectMode, userSelectMode = _g === void 0 ? 'none' : _g, customFontSize = _a.customFontSize, customFontWeight = _a.customFontWeight;
34
+ return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit, userSelectMode: userSelectMode, customFontSize: customFontSize, customFontWeight: customFontWeight }, text));
35
35
  }
36
36
  var displayBold = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"], ["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"])), function (_a) {
37
37
  var theme = _a.theme;
@@ -243,20 +243,25 @@ var usrTextBrandOnPrimary = (0, styled_components_1.css)(templateObject_27 || (t
243
243
  var theme = _a.theme;
244
244
  return theme.ui_cpnt_textlabel_usr_brandonprimary;
245
245
  });
246
- var colorOverrideStyle = (0, styled_components_1.css)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
246
+ var customFontStyle = (0, styled_components_1.css)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n font-size: ", ";\n line-height: 1.5;\n font-weight: ", ";\n"], ["\n font-size: ", ";\n line-height: 1.5;\n font-weight: ", ";\n"])), function (_a) {
247
+ var customFontSize = _a.customFontSize;
248
+ return customFontSize;
249
+ }, function (_a) {
250
+ var theme = _a.theme, customFontWeight = _a.customFontWeight;
251
+ return customFontWeight === 'bold' ? theme.fontWeight.bold : theme.fontWeight.normal;
252
+ });
253
+ var colorOverrideStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
247
254
  var colorOverride = _a.colorOverride;
248
255
  return colorOverride && (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[colorOverride];
249
256
  });
250
- var ellipsisStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
257
+ var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
251
258
  var lineLimit = _a.lineLimit;
252
259
  return lineLimit;
253
260
  });
254
- var S_TextLabel = styled_components_1.default.div(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: break-all;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: break-all;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
261
+ var userSelectModeStyle = (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"], ["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"])));
262
+ var S_TextLabel = styled_components_1.default.div(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: break-word;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: break-word;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
255
263
  var textAlign = _a.textAlign;
256
264
  return textAlign;
257
- }, function (_a) {
258
- var underline = _a.underline;
259
- return underline === 'use' && 'underline';
260
265
  }, function (_a) {
261
266
  var styleTheme = _a.styleTheme;
262
267
  return styleTheme &&
@@ -294,6 +299,9 @@ var S_TextLabel = styled_components_1.default.div(templateObject_30 || (template
294
299
  usrTextBrandSeconVariant: usrTextBrandSeconVariant,
295
300
  usrTextBrandOnPrimary: usrTextBrandOnPrimary
296
301
  }[colorTheme];
302
+ }, function (_a) {
303
+ var customFontSize = _a.customFontSize;
304
+ return customFontSize && customFontStyle;
297
305
  }, function (_a) {
298
306
  var singleLineMode = _a.singleLineMode, ellipsisMode = _a.ellipsisMode, theme = _a.theme;
299
307
  return singleLineMode === 'use' &&
@@ -305,6 +313,9 @@ var S_TextLabel = styled_components_1.default.div(templateObject_30 || (template
305
313
  }, function (_a) {
306
314
  var colorOverride = _a.colorOverride;
307
315
  return colorOverride && colorOverrideStyle;
316
+ }, function (_a) {
317
+ var userSelectMode = _a.userSelectMode;
318
+ return userSelectMode === 'none' && userSelectModeStyle;
308
319
  });
309
320
  exports.default = TextLabel;
310
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30;
321
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32;
@@ -2,7 +2,7 @@
2
2
  export declare type ContentsContainerProps = {
3
3
  content1?: JSX.Element;
4
4
  content2?: JSX.Element;
5
- layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTN_1' | 'WTN_2' | 'WTO_1' | 'WTP_1';
5
+ layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTN_1' | 'WTN_2' | 'WTO_1' | 'WTP_1' | 'WTQ_1';
6
6
  containerColor?: string;
7
7
  areaColor?: string;
8
8
  };
@@ -42,7 +42,8 @@ var ContentsContainer = function (_a) {
42
42
  WTN_1: (react_1.default.createElement(variation_1.WTN, { layoutType: "WTN_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
43
43
  WTN_2: (react_1.default.createElement(variation_1.WTN, { layoutType: "WTN_2", content1: content1, containerColor: containerColor, areaColor: areaColor })),
44
44
  WTO_1: (react_1.default.createElement(variation_1.WTO, { layoutType: "WTO_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
45
- WTP_1: (react_1.default.createElement(variation_1.WTP, { layoutType: "WTP_1", content1: content1, containerColor: containerColor, areaColor: areaColor }))
45
+ WTP_1: (react_1.default.createElement(variation_1.WTP, { layoutType: "WTP_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
46
+ WTQ_1: (react_1.default.createElement(variation_1.WTQ, { layoutType: "WTQ_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor }))
46
47
  }[layoutType]));
47
48
  };
48
49
  exports.default = ContentsContainer;
@@ -31,8 +31,8 @@ var S_ContentsContainer = styled_components_1.default.div(templateObject_1 || (t
31
31
  var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-bottom: 88px;\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n padding-bottom: 88px;\n ", ";\n ", ";\n"])), function (_a) {
32
32
  var layoutType = _a.layoutType;
33
33
  return ({
34
- WTN_1: 'min-width: 1200px;',
35
- WTN_2: 'min-width: 960px;'
34
+ WTN_1: 'width: 1200px;',
35
+ WTN_2: 'width: 960px;'
36
36
  }[layoutType]);
37
37
  }, function (_a) {
38
38
  var areaColor = _a.areaColor;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export declare type WTQProps = {
3
+ content1?: JSX.Element;
4
+ content2?: JSX.Element;
5
+ layoutType?: 'WTQ_1';
6
+ containerColor?: string;
7
+ areaColor?: string;
8
+ };
9
+ declare const WTQ: ({ content1, content2, layoutType, containerColor, areaColor }: WTQProps) => JSX.Element;
10
+ export default WTQ;
@@ -0,0 +1,48 @@
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 react_1 = __importDefault(require("react"));
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ var WTQ = function (_a) {
13
+ var content1 = _a.content1, content2 = _a.content2, _b = _a.layoutType, layoutType = _b === void 0 ? 'WTQ_1' : _b, containerColor = _a.containerColor, areaColor = _a.areaColor;
14
+ return (react_1.default.createElement(S_Box, null,
15
+ react_1.default.createElement(S_ContentsContainer1, { layoutType: layoutType, containerColor: containerColor },
16
+ react_1.default.createElement(S_ContentsArea1, { layoutType: layoutType, areaColor: areaColor },
17
+ react_1.default.createElement(S_Content1, { layoutType: layoutType }, content1))),
18
+ react_1.default.createElement(S_ContentsContainer2, { layoutType: layoutType, containerColor: containerColor },
19
+ react_1.default.createElement(S_ContentsArea2, { layoutType: layoutType, areaColor: areaColor },
20
+ react_1.default.createElement(S_Content2, { layoutType: layoutType }, content2)))));
21
+ };
22
+ var S_Box = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n justify-content: center;\n"], ["\n display: flex;\n height: 100%;\n justify-content: center;\n"])));
23
+ var S_ContentsContainer1 = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n max-width: 760px;\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n height: 100%;\n width: 760px;\n ", ";\n"], ["\n background-color: ", ";\n max-width: 760px;\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n height: 100%;\n width: 760px;\n ", ";\n"])), function (_a) {
24
+ var theme = _a.theme;
25
+ return theme.ui_contentscontainer01_background;
26
+ }, function (_a) {
27
+ var containerColor = _a.containerColor;
28
+ return "background-color: " + containerColor;
29
+ });
30
+ var S_ContentsContainer2 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n min-width: 320px;\n overflow-x: hidden;\n overflow-y: auto;\n height: 100%;\n width: 320px;\n ", ";\n"], ["\n background-color: ", ";\n min-width: 320px;\n overflow-x: hidden;\n overflow-y: auto;\n height: 100%;\n width: 320px;\n ", ";\n"])), function (_a) {
31
+ var theme = _a.theme;
32
+ return theme.ui_contentscontainer02_background;
33
+ }, function (_a) {
34
+ var containerColor = _a.containerColor;
35
+ return "background-color: " + containerColor;
36
+ });
37
+ var S_ContentsArea1 = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding-bottom: 88px;\n ", ";\n"], ["\n padding-bottom: 88px;\n ", ";\n"])), function (_a) {
38
+ var areaColor = _a.areaColor;
39
+ return "background-color: " + areaColor;
40
+ });
41
+ var S_ContentsArea2 = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding-bottom: 88px;\n ", ";\n"], ["\n padding-bottom: 88px;\n ", ";\n"])), function (_a) {
42
+ var areaColor = _a.areaColor;
43
+ return "background-color: " + areaColor;
44
+ });
45
+ var S_Content1 = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
46
+ var S_Content2 = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
47
+ exports.default = WTQ;
48
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
@@ -14,3 +14,4 @@ export { default as WTM } from './WTM';
14
14
  export { default as WTN } from './WTN';
15
15
  export { default as WTO } from './WTO';
16
16
  export { default as WTP } from './WTP';
17
+ export { default as WTQ } from './WTQ';
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WTP = exports.WTO = exports.WTN = exports.WTM = exports.WTL = exports.WTK = exports.WTJ = exports.WTI = exports.WTH = exports.WTG = exports.WTF = exports.WTE = exports.WTD = exports.WTC = exports.WTB = exports.WTA = void 0;
6
+ exports.WTQ = exports.WTP = exports.WTO = exports.WTN = exports.WTM = exports.WTL = exports.WTK = exports.WTJ = exports.WTI = exports.WTH = exports.WTG = exports.WTF = exports.WTE = exports.WTD = exports.WTC = exports.WTB = exports.WTA = void 0;
7
7
  var WTA_1 = require("./WTA");
8
8
  Object.defineProperty(exports, "WTA", { enumerable: true, get: function () { return __importDefault(WTA_1).default; } });
9
9
  var WTB_1 = require("./WTB");
@@ -36,3 +36,5 @@ var WTO_1 = require("./WTO");
36
36
  Object.defineProperty(exports, "WTO", { enumerable: true, get: function () { return __importDefault(WTO_1).default; } });
37
37
  var WTP_1 = require("./WTP");
38
38
  Object.defineProperty(exports, "WTP", { enumerable: true, get: function () { return __importDefault(WTP_1).default; } });
39
+ var WTQ_1 = require("./WTQ");
40
+ Object.defineProperty(exports, "WTQ", { enumerable: true, get: function () { return __importDefault(WTQ_1).default; } });
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare type ContainersBoxProps = {
3
- layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTN_1' | 'WTN_2' | 'WTO_1' | 'WTP_1';
3
+ layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTN_1' | 'WTN_2' | 'WTO_1' | 'WTP_1' | 'WTQ_1';
4
4
  pageMenuContent?: JSX.Element;
5
5
  tabMenuContent?: JSX.Element;
6
6
  subMenuContent?: JSX.Element;
@@ -67,7 +67,8 @@ var ContainersBox = function (_a) {
67
67
  WTN_1: react_1.default.createElement(react_1.default.Fragment, null),
68
68
  WTN_2: react_1.default.createElement(react_1.default.Fragment, null),
69
69
  WTO_1: react_1.default.createElement(react_1.default.Fragment, null),
70
- WTP_1: react_1.default.createElement(react_1.default.Fragment, null)
70
+ WTP_1: react_1.default.createElement(react_1.default.Fragment, null),
71
+ WTQ_1: react_1.default.createElement(react_1.default.Fragment, null)
71
72
  }[layoutType],
72
73
  react_1.default.createElement(S_RightBox, null,
73
74
  {
@@ -105,7 +106,8 @@ var ContainersBox = function (_a) {
105
106
  WTN_1: react_1.default.createElement(react_1.default.Fragment, null),
106
107
  WTN_2: react_1.default.createElement(react_1.default.Fragment, null),
107
108
  WTO_1: (react_1.default.createElement(Containers_1.PageMenuContainer, { pageMenuType: "top_page_menu", pageMenuContent: pageMenuContent, containerColor: containerColor, areaColor: areaColor })),
108
- WTP_1: react_1.default.createElement(react_1.default.Fragment, null)
109
+ WTP_1: react_1.default.createElement(react_1.default.Fragment, null),
110
+ WTQ_1: react_1.default.createElement(react_1.default.Fragment, null)
109
111
  }[layoutType],
110
112
  {
111
113
  WTA_1: react_1.default.createElement(react_1.default.Fragment, null),
@@ -142,7 +144,8 @@ var ContainersBox = function (_a) {
142
144
  WTN_1: react_1.default.createElement(react_1.default.Fragment, null),
143
145
  WTN_2: react_1.default.createElement(react_1.default.Fragment, null),
144
146
  WTO_1: react_1.default.createElement(react_1.default.Fragment, null),
145
- WTP_1: react_1.default.createElement(react_1.default.Fragment, null)
147
+ WTP_1: react_1.default.createElement(react_1.default.Fragment, null),
148
+ WTQ_1: react_1.default.createElement(react_1.default.Fragment, null)
146
149
  }[layoutType],
147
150
  react_1.default.createElement(S_BottomWrapper, { layoutType: layoutType },
148
151
  {
@@ -180,19 +183,20 @@ var ContainersBox = function (_a) {
180
183
  WTN_1: '',
181
184
  WTN_2: '',
182
185
  WTO_1: (react_1.default.createElement(Containers_1.SubMenuContainer, { subMenuType: "left_sub_menu", subMenuContent: subMenuContent })),
183
- WTP_1: (react_1.default.createElement(Containers_1.SubMenuContainer, { subMenuType: "left_sub_menu", subMenuContent: subMenuContent }))
186
+ WTP_1: (react_1.default.createElement(Containers_1.SubMenuContainer, { subMenuType: "left_sub_menu", subMenuContent: subMenuContent })),
187
+ WTQ_1: ''
184
188
  }[layoutType],
185
189
  react_1.default.createElement(Containers_1.ContentsContainer, { layoutType: layoutType, content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor })))));
186
190
  };
187
191
  var S_ContainersBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n height: 100%;\n"], ["\n align-items: flex-start;\n display: flex;\n height: 100%;\n"])));
188
192
  var S_RightBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n"], ["\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n"])));
189
- var centerStyle = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n // TODO: WTO_1\uC640 WTP_1\uC720\uD615\uC744 \uC704\uD574 \uC784\uC2DC\uB85C backgroundColor\uB97C \uBD80\uC5EC\uD55C \uC0C1\uD0DC. \uD574\uB2F9 \uBD80\uBD84 \uAE30\uD68D \uCCA0\uD559 \uAC1C\uC120\uC774 \uB418\uBA74 \uBCC0\uACBD\uB418\uC5B4\uC57C \uD568.\n background-color: ", ";\n"], ["\n display: flex;\n justify-content: center;\n // TODO: WTO_1\uC640 WTP_1\uC720\uD615\uC744 \uC704\uD574 \uC784\uC2DC\uB85C backgroundColor\uB97C \uBD80\uC5EC\uD55C \uC0C1\uD0DC. \uD574\uB2F9 \uBD80\uBD84 \uAE30\uD68D \uCCA0\uD559 \uAC1C\uC120\uC774 \uB418\uBA74 \uBCC0\uACBD\uB418\uC5B4\uC57C \uD568.\n background-color: ", ";\n"])), function (_a) {
193
+ var centerStyle = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n // TODO: WTO_1, WTP_1, WTQ_1 \uC720\uD615\uC744 \uC704\uD574 \uC784\uC2DC\uB85C backgroundColor\uB97C \uBD80\uC5EC\uD55C \uC0C1\uD0DC. \uD574\uB2F9 \uBD80\uBD84 \uAE30\uD68D \uCCA0\uD559 \uAC1C\uC120\uC774 \uB418\uBA74 \uBCC0\uACBD\uB418\uC5B4\uC57C \uD568.\n background-color: ", ";\n"], ["\n display: flex;\n justify-content: center;\n // TODO: WTO_1, WTP_1, WTQ_1 \uC720\uD615\uC744 \uC704\uD574 \uC784\uC2DC\uB85C backgroundColor\uB97C \uBD80\uC5EC\uD55C \uC0C1\uD0DC. \uD574\uB2F9 \uBD80\uBD84 \uAE30\uD68D \uCCA0\uD559 \uAC1C\uC120\uC774 \uB418\uBA74 \uBCC0\uACBD\uB418\uC5B4\uC57C \uD568.\n background-color: ", ";\n"])), function (_a) {
190
194
  var theme = _a.theme;
191
195
  return theme.ui_contentscontainer01_background;
192
196
  });
193
197
  var S_BottomWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex: 1;\n height: 100%;\n overflow: hidden;\n ", ";\n"], ["\n flex: 1;\n height: 100%;\n overflow: hidden;\n ", ";\n"])), function (_a) {
194
198
  var layoutType = _a.layoutType;
195
- return (layoutType === 'WTO_1' || layoutType === 'WTP_1' ? centerStyle : '');
199
+ return layoutType === 'WTO_1' || layoutType === 'WTP_1' || layoutType === 'WTQ_1' ? centerStyle : '';
196
200
  });
197
201
  exports.default = ContainersBox;
198
202
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -5,9 +5,11 @@ export declare type ImageSlideProps = {
5
5
  imageShapeType?: 'round' | 'circular' | 'rectangle';
6
6
  imageWidth?: number | 'responsive';
7
7
  imageRatio?: '16_9' | '9_16' | '16_10' | '10_16' | '4_3' | '3_4' | '1_1';
8
+ radius?: 8 | 16 | 24;
9
+ borderMode?: 'use' | 'none';
8
10
  };
9
11
  export declare type ImageSlideItemProps = {
10
12
  imageSrc?: string;
11
13
  };
12
- declare const ImageSlide: ({ status, src, imageShapeType, imageWidth, imageRatio }: ImageSlideProps) => JSX.Element;
14
+ declare const ImageSlide: ({ status, src, imageShapeType, imageWidth, imageRatio, radius, borderMode }: ImageSlideProps) => JSX.Element;
13
15
  export default ImageSlide;
@@ -40,7 +40,7 @@ var react_1 = __importStar(require("react"));
40
40
  var styled_components_1 = __importStar(require("styled-components"));
41
41
  var hybrid_1 = require("../../../hybrid");
42
42
  var ImageSlide = function (_a) {
43
- var _b = _a.status, status = _b === void 0 ? 'active' : _b, src = _a.src, _c = _a.imageShapeType, imageShapeType = _c === void 0 ? 'round' : _c, _d = _a.imageWidth, imageWidth = _d === void 0 ? 'responsive' : _d, _e = _a.imageRatio, imageRatio = _e === void 0 ? '1_1' : _e;
43
+ var _b = _a.status, status = _b === void 0 ? 'active' : _b, src = _a.src, _c = _a.imageShapeType, imageShapeType = _c === void 0 ? 'round' : _c, _d = _a.imageWidth, imageWidth = _d === void 0 ? 'responsive' : _d, _e = _a.imageRatio, imageRatio = _e === void 0 ? '1_1' : _e, _f = _a.radius, radius = _f === void 0 ? 24 : _f, _g = _a.borderMode, borderMode = _g === void 0 ? 'none' : _g;
44
44
  var renderDotControls = function (_a) {
45
45
  var currentSlide = _a.currentSlide, slideCount = _a.slideCount;
46
46
  var dotList = __spreadArray([], Array(slideCount), true).map(function (x, i) { return ({ id: i }); });
@@ -51,8 +51,8 @@ var ImageSlide = function (_a) {
51
51
  src.length > 0 &&
52
52
  src.map(function (imageSrc, i) { return (react_1.default.createElement(react_1.Fragment, { key: i.toString() },
53
53
  react_1.default.createElement("div", null,
54
- react_1.default.createElement(S_BottomGradient, { imageShapeType: imageShapeType, imageWidth: imageWidth }),
55
- react_1.default.createElement(hybrid_1.ImageView, { src: status === 'active' ? imageSrc : '', shapeType: imageShapeType, width: imageWidth, ratio: imageRatio, scaleType: "cover", radius: 24 })))); }))));
54
+ react_1.default.createElement(S_BottomGradient, { imageShapeType: imageShapeType, imageWidth: imageWidth, radius: radius }),
55
+ react_1.default.createElement(hybrid_1.ImageView, { src: status === 'active' ? imageSrc : '', shapeType: imageShapeType, width: imageWidth, ratio: imageRatio, scaleType: "cover", radius: radius, borderMode: borderMode })))); }))));
56
56
  };
57
57
  var S_Dot = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 8px;\n display: inline-block;\n height: 8px;\n margin: ", ";\n width: 8px;\n\n ", "\n"], ["\n border-radius: 8px;\n display: inline-block;\n height: 8px;\n margin: ", ";\n width: 8px;\n\n ", "\n"])), function (_a) {
58
58
  var theme = _a.theme;
@@ -85,10 +85,10 @@ var S_BottomGradient = styled_components_1.default.div(templateObject_5 || (temp
85
85
  var imageWidth = _a.imageWidth;
86
86
  return (imageWidth === 'responsive' ? '100%' : imageWidth + "px");
87
87
  }, function (_a) {
88
- var imageShapeType = _a.imageShapeType;
88
+ var imageShapeType = _a.imageShapeType, radius = _a.radius;
89
89
  return imageShapeType &&
90
90
  {
91
- round: 'border-radius: 24px;',
91
+ round: "border-radius: " + radius + "px;",
92
92
  circular: 'border-radius: 50%;',
93
93
  rectangle: 'border-radius: 0;'
94
94
  }[imageShapeType];
@@ -11,7 +11,7 @@ declare type Props = {
11
11
  iBtn2IconName?: FillIconNameKeys | LineIconNameKeys;
12
12
  iBtn2IconFillType?: 'fill' | 'line';
13
13
  iBtn2IconColorKey?: UiColors;
14
- dividerType?: 'none' | 'solid';
14
+ dividerMode?: 'none' | 'solid';
15
15
  imageSrc?: string;
16
16
  iBtn1State?: 'normal' | 'disabled';
17
17
  iBtn1Type?: 'submit' | 'reset' | 'button';
@@ -21,5 +21,5 @@ declare type Props = {
21
21
  onClickIBtn1?: () => void;
22
22
  onClickIBtn2?: () => void;
23
23
  };
24
- declare function MobileHeaderBar({ titleType, titleText, leftBtnMode, displayType, iBtn1IconName, iBtn1IconFillType, iBtn1IconColorKey, iBtn2IconName, iBtn2IconFillType, iBtn2IconColorKey, dividerType, imageSrc, iBtn1State, iBtn1Type, iBtn2State, iBtn2Type, onClickLeftBtn, onClickIBtn1, onClickIBtn2 }: Props): JSX.Element;
24
+ declare function MobileHeaderBar({ titleType, titleText, leftBtnMode, displayType, iBtn1IconName, iBtn1IconFillType, iBtn1IconColorKey, iBtn2IconName, iBtn2IconFillType, iBtn2IconColorKey, dividerMode, imageSrc, iBtn1State, iBtn1Type, iBtn2State, iBtn2Type, onClickLeftBtn, onClickIBtn1, onClickIBtn2 }: Props): JSX.Element;
25
25
  export default MobileHeaderBar;
@@ -13,7 +13,7 @@ var hybrid_1 = require("../../../hybrid");
13
13
  var IconButton_1 = require("../IconButton");
14
14
  var TextLabel_1 = require("../TextLabel");
15
15
  function MobileHeaderBar(_a) {
16
- var _b = _a.titleType, titleType = _b === void 0 ? 'text' : _b, titleText = _a.titleText, _c = _a.leftBtnMode, leftBtnMode = _c === void 0 ? 'back' : _c, _d = _a.displayType, displayType = _d === void 0 ? 'none' : _d, iBtn1IconName = _a.iBtn1IconName, _e = _a.iBtn1IconFillType, iBtn1IconFillType = _e === void 0 ? 'line' : _e, _f = _a.iBtn1IconColorKey, iBtn1IconColorKey = _f === void 0 ? 'ui_cpnt_button_icon_enabled' : _f, iBtn2IconName = _a.iBtn2IconName, _g = _a.iBtn2IconFillType, iBtn2IconFillType = _g === void 0 ? 'line' : _g, _h = _a.iBtn2IconColorKey, iBtn2IconColorKey = _h === void 0 ? 'ui_cpnt_button_icon_enabled' : _h, _j = _a.dividerType, dividerType = _j === void 0 ? 'none' : _j, imageSrc = _a.imageSrc, _k = _a.iBtn1State, iBtn1State = _k === void 0 ? 'normal' : _k, _l = _a.iBtn1Type, iBtn1Type = _l === void 0 ? 'button' : _l, _m = _a.iBtn2State, iBtn2State = _m === void 0 ? 'normal' : _m, _o = _a.iBtn2Type, iBtn2Type = _o === void 0 ? 'button' : _o, onClickLeftBtn = _a.onClickLeftBtn, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2;
16
+ var _b = _a.titleType, titleType = _b === void 0 ? 'text' : _b, titleText = _a.titleText, _c = _a.leftBtnMode, leftBtnMode = _c === void 0 ? 'back' : _c, _d = _a.displayType, displayType = _d === void 0 ? 'none' : _d, iBtn1IconName = _a.iBtn1IconName, _e = _a.iBtn1IconFillType, iBtn1IconFillType = _e === void 0 ? 'line' : _e, _f = _a.iBtn1IconColorKey, iBtn1IconColorKey = _f === void 0 ? 'ui_cpnt_button_icon_enabled' : _f, iBtn2IconName = _a.iBtn2IconName, _g = _a.iBtn2IconFillType, iBtn2IconFillType = _g === void 0 ? 'line' : _g, _h = _a.iBtn2IconColorKey, iBtn2IconColorKey = _h === void 0 ? 'ui_cpnt_button_icon_enabled' : _h, _j = _a.dividerMode, dividerMode = _j === void 0 ? 'none' : _j, imageSrc = _a.imageSrc, _k = _a.iBtn1State, iBtn1State = _k === void 0 ? 'normal' : _k, _l = _a.iBtn1Type, iBtn1Type = _l === void 0 ? 'button' : _l, _m = _a.iBtn2State, iBtn2State = _m === void 0 ? 'normal' : _m, _o = _a.iBtn2Type, iBtn2Type = _o === void 0 ? 'button' : _o, onClickLeftBtn = _a.onClickLeftBtn, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2;
17
17
  var handleClickLeftBtn = function () {
18
18
  if (onClickLeftBtn) {
19
19
  onClickLeftBtn();
@@ -75,7 +75,7 @@ function MobileHeaderBar(_a) {
75
75
  displayType === 'ibtn_amount2' && iBtn2IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconSize: 24, baseSize: "large", iconName: iBtn2IconName, fillType: "fill", onClick: handleClickIBtn2, iconFillType: iBtn2IconFillType, iconColorKey: iBtn2IconColorKey, baseColorKey: "ui_cpnt_button_fill_base_transparent", type: iBtn2Type, state: iBtn2State })),
76
76
  (displayType === 'ibtn_amount1' || displayType === 'ibtn_amount2') && iBtn1IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconSize: 24, baseSize: "large", iconName: iBtn1IconName, fillType: "fill", onClick: handleClickIBtn1, iconFillType: iBtn1IconFillType, iconColorKey: iBtn1IconColorKey, baseColorKey: "ui_cpnt_button_fill_base_transparent", type: iBtn1Type, state: iBtn1State }))));
77
77
  };
78
- return (react_1.default.createElement(S_MobileHeaderBar, { hasBorder: dividerType === 'solid', expand: titleType === 'profile' },
78
+ return (react_1.default.createElement(S_MobileHeaderBar, { hasBorder: dividerMode === 'solid', expand: titleType === 'profile' },
79
79
  react_1.default.createElement(S_ButtonWrapper, null,
80
80
  titleType === 'profile' && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
81
81
  leftIcon()),
@@ -6,20 +6,24 @@ export declare type TextLabelProps = {
6
6
  styleTheme?: 'displayBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
7
7
  colorOverride?: UiColors;
8
8
  colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
9
- underline?: 'none' | 'use';
10
9
  singleLineMode?: 'none' | 'use';
11
10
  ellipsisMode?: 'none' | 'use';
12
11
  lineLimit?: number;
12
+ userSelectMode?: 'none' | 'use';
13
+ customFontSize?: string;
14
+ customFontWeight?: 'bold' | 'regular';
13
15
  };
14
16
  export declare type TextStyleProps = {
15
17
  textAlign?: 'left' | 'center' | 'right';
16
18
  styleTheme?: 'displayBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
17
19
  colorOverride?: UiColors;
18
20
  colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
19
- underline?: 'none' | 'use';
20
21
  singleLineMode?: 'none' | 'use';
21
22
  ellipsisMode?: 'none' | 'use';
22
23
  lineLimit?: number;
24
+ userSelectMode?: 'none' | 'use';
25
+ customFontSize?: string;
26
+ customFontWeight?: 'bold' | 'regular';
23
27
  };
24
- declare function TextLabel({ text, textAlign, styleTheme, colorOverride, colorTheme, underline, singleLineMode, ellipsisMode, lineLimit }: TextLabelProps): JSX.Element;
28
+ declare function TextLabel({ text, textAlign, styleTheme, colorOverride, colorTheme, singleLineMode, ellipsisMode, lineLimit, userSelectMode, customFontSize, customFontWeight }: TextLabelProps): JSX.Element;
25
29
  export default TextLabel;
@@ -30,8 +30,8 @@ var react_1 = __importDefault(require("react"));
30
30
  var styled_components_1 = __importStar(require("styled-components"));
31
31
  var common_1 = require("../../../common");
32
32
  function TextLabel(_a) {
33
- var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, colorOverride = _a.colorOverride, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.underline, underline = _e === void 0 ? 'none' : _e, _f = _a.singleLineMode, singleLineMode = _f === void 0 ? 'none' : _f, _g = _a.ellipsisMode, ellipsisMode = _g === void 0 ? 'none' : _g, lineLimit = _a.lineLimit;
34
- return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, underline: underline, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit }, text));
33
+ var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, colorOverride = _a.colorOverride, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.singleLineMode, singleLineMode = _e === void 0 ? 'none' : _e, _f = _a.ellipsisMode, ellipsisMode = _f === void 0 ? 'none' : _f, lineLimit = _a.lineLimit, _g = _a.userSelectMode, userSelectMode = _g === void 0 ? 'none' : _g, customFontSize = _a.customFontSize, customFontWeight = _a.customFontWeight;
34
+ return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit, userSelectMode: userSelectMode, customFontSize: customFontSize, customFontWeight: customFontWeight }, text));
35
35
  }
36
36
  var displayBold = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"], ["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"])), function (_a) {
37
37
  var theme = _a.theme;
@@ -243,20 +243,25 @@ var usrTextBrandOnPrimary = (0, styled_components_1.css)(templateObject_27 || (t
243
243
  var theme = _a.theme;
244
244
  return theme.ui_cpnt_textlabel_usr_brandonprimary;
245
245
  });
246
- var colorOverrideStyle = (0, styled_components_1.css)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
246
+ var customFontStyle = (0, styled_components_1.css)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n font-size: ", ";\n line-height: 1.5;\n font-weight: ", ";\n"], ["\n font-size: ", ";\n line-height: 1.5;\n font-weight: ", ";\n"])), function (_a) {
247
+ var customFontSize = _a.customFontSize;
248
+ return customFontSize;
249
+ }, function (_a) {
250
+ var theme = _a.theme, customFontWeight = _a.customFontWeight;
251
+ return customFontWeight === 'bold' ? theme.fontWeight.bold : theme.fontWeight.normal;
252
+ });
253
+ var colorOverrideStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
247
254
  var colorOverride = _a.colorOverride;
248
255
  return colorOverride && (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[colorOverride];
249
256
  });
250
- var ellipsisStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
257
+ var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
251
258
  var lineLimit = _a.lineLimit;
252
259
  return lineLimit;
253
260
  });
254
- var S_TextLabel = styled_components_1.default.div(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: break-all;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: break-all;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
261
+ var userSelectModeStyle = (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"], ["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"])));
262
+ var S_TextLabel = styled_components_1.default.div(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: break-word;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: break-word;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
255
263
  var textAlign = _a.textAlign;
256
264
  return textAlign;
257
- }, function (_a) {
258
- var underline = _a.underline;
259
- return underline === 'use' && 'underline';
260
265
  }, function (_a) {
261
266
  var styleTheme = _a.styleTheme;
262
267
  return styleTheme &&
@@ -294,6 +299,9 @@ var S_TextLabel = styled_components_1.default.div(templateObject_30 || (template
294
299
  usrTextBrandSeconVariant: usrTextBrandSeconVariant,
295
300
  usrTextBrandOnPrimary: usrTextBrandOnPrimary
296
301
  }[colorTheme];
302
+ }, function (_a) {
303
+ var customFontSize = _a.customFontSize;
304
+ return customFontSize && customFontStyle;
297
305
  }, function (_a) {
298
306
  var singleLineMode = _a.singleLineMode, ellipsisMode = _a.ellipsisMode, theme = _a.theme;
299
307
  return singleLineMode === 'use' &&
@@ -305,6 +313,9 @@ var S_TextLabel = styled_components_1.default.div(templateObject_30 || (template
305
313
  }, function (_a) {
306
314
  var colorOverride = _a.colorOverride;
307
315
  return colorOverride && colorOverrideStyle;
316
+ }, function (_a) {
317
+ var userSelectMode = _a.userSelectMode;
318
+ return userSelectMode === 'none' && userSelectModeStyle;
308
319
  });
309
320
  exports.default = TextLabel;
310
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30;
321
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "0.7.0",
3
+ "version": "0.7.3",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "i18next-browser-languagedetector": "^6.1.2",
22
22
  "i18next-intervalplural-postprocessor": "^3.0.0",
23
23
  "nuka-carousel": "^4.8.4",
24
- "react-hook-form": "^7.7.1",
24
+ "react-hook-form": "^7.28.1",
25
25
  "react-i18next": "^11.12.0",
26
26
  "react-router-dom": "^5.2.0",
27
27
  "react-scripts": "4.0.3",