pds-dev-kit-web 1.9.22 → 1.9.24

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 (75) hide show
  1. package/dist/src/common/styles/colorSet/UIColor.json +2 -1
  2. package/dist/src/common/styles/colorSet/index.d.ts +749 -748
  3. package/dist/src/common/styles/colorSet/index.js +3 -3
  4. package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
  5. package/dist/src/common/styles/movement/animationStyle.js +8 -8
  6. package/dist/src/desktop/components/AdminList/AdminList.js +1 -1
  7. package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +1 -0
  8. package/dist/src/desktop/components/BasicListItem/BasicListItem.js +10 -99
  9. package/dist/src/desktop/components/BasicListItem/Contents.d.ts +16 -0
  10. package/dist/src/desktop/components/BasicListItem/Contents.js +31 -0
  11. package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.d.ts +7 -0
  12. package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.js +27 -0
  13. package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.d.ts +6 -0
  14. package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.js +19 -0
  15. package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.d.ts +8 -0
  16. package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.js +19 -0
  17. package/dist/src/desktop/components/BasicListItem/LeftBox/Image.d.ts +8 -0
  18. package/dist/src/desktop/components/BasicListItem/LeftBox/Image.js +9 -0
  19. package/dist/src/desktop/components/BasicListItem/LeftBox/LeftBox.d.ts +17 -0
  20. package/dist/src/desktop/components/BasicListItem/LeftBox/LeftBox.js +42 -0
  21. package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.d.ts +9 -0
  22. package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.js +13 -0
  23. package/dist/src/desktop/components/BasicListItem/LeftBox/index.d.ts +2 -0
  24. package/dist/src/desktop/components/BasicListItem/LeftBox/index.js +8 -0
  25. package/dist/src/desktop/components/BasicListItem/RightBox/Description.d.ts +8 -0
  26. package/dist/src/desktop/components/BasicListItem/RightBox/Description.js +10 -0
  27. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +9 -0
  28. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +19 -0
  29. package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.d.ts +9 -0
  30. package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.js +10 -0
  31. package/dist/src/desktop/components/BasicListItem/RightBox/RightBox.d.ts +15 -0
  32. package/dist/src/desktop/components/BasicListItem/RightBox/RightBox.js +40 -0
  33. package/dist/src/desktop/components/BasicListItem/RightBox/Switch.d.ts +10 -0
  34. package/dist/src/desktop/components/BasicListItem/RightBox/Switch.js +19 -0
  35. package/dist/src/desktop/components/BasicListItem/RightBox/index.d.ts +2 -0
  36. package/dist/src/desktop/components/BasicListItem/RightBox/index.js +8 -0
  37. package/dist/src/desktop/components/Radio/Radio.js +2 -2
  38. package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
  39. package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.js +2 -0
  40. package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFA.d.ts +1 -1
  41. package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFA.js +60 -9
  42. package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.d.ts +1 -1
  43. package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.js +4 -0
  44. package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +1 -0
  45. package/dist/src/mobile/components/BasicListItem/BasicListItem.js +10 -99
  46. package/dist/src/mobile/components/BasicListItem/Contents.d.ts +16 -0
  47. package/dist/src/mobile/components/BasicListItem/Contents.js +31 -0
  48. package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.d.ts +7 -0
  49. package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.js +27 -0
  50. package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.d.ts +6 -0
  51. package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.js +19 -0
  52. package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.d.ts +8 -0
  53. package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.js +19 -0
  54. package/dist/src/mobile/components/BasicListItem/LeftBox/Image.d.ts +8 -0
  55. package/dist/src/mobile/components/BasicListItem/LeftBox/Image.js +9 -0
  56. package/dist/src/mobile/components/BasicListItem/LeftBox/LeftBox.d.ts +17 -0
  57. package/dist/src/mobile/components/BasicListItem/LeftBox/LeftBox.js +42 -0
  58. package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.d.ts +9 -0
  59. package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.js +13 -0
  60. package/dist/src/mobile/components/BasicListItem/LeftBox/index.d.ts +2 -0
  61. package/dist/src/mobile/components/BasicListItem/LeftBox/index.js +8 -0
  62. package/dist/src/mobile/components/BasicListItem/RightBox/Description.d.ts +8 -0
  63. package/dist/src/mobile/components/BasicListItem/RightBox/Description.js +10 -0
  64. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +9 -0
  65. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +19 -0
  66. package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.d.ts +9 -0
  67. package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.js +10 -0
  68. package/dist/src/mobile/components/BasicListItem/RightBox/RightBox.d.ts +15 -0
  69. package/dist/src/mobile/components/BasicListItem/RightBox/RightBox.js +40 -0
  70. package/dist/src/mobile/components/BasicListItem/RightBox/Switch.d.ts +10 -0
  71. package/dist/src/mobile/components/BasicListItem/RightBox/Switch.js +19 -0
  72. package/dist/src/mobile/components/BasicListItem/RightBox/index.d.ts +2 -0
  73. package/dist/src/mobile/components/BasicListItem/RightBox/index.js +8 -0
  74. package/package.json +1 -1
  75. package/release-note.md +8 -5
@@ -0,0 +1,40 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var jsx_runtime_1 = require("react/jsx-runtime");
22
+ var styled_components_1 = __importDefault(require("styled-components"));
23
+ var Description_1 = __importDefault(require("./Description"));
24
+ var IconButton_1 = __importDefault(require("./IconButton"));
25
+ var MainButton_1 = __importDefault(require("./MainButton"));
26
+ var Switch_1 = __importDefault(require("./Switch"));
27
+ var RightBox = function (_a) {
28
+ var children = _a.children, hasFixedHeight = _a.hasFixedHeight;
29
+ return ((0, jsx_runtime_1.jsx)(S_RightBox, __assign({ hasFixedHeight: hasFixedHeight }, { children: children }), void 0));
30
+ };
31
+ var S_RightBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex: 3;\n height: ", ";\n justify-content: flex-end;\n"], ["\n align-items: center;\n display: flex;\n flex: 3;\n height: ", ";\n justify-content: flex-end;\n"])), function (_a) {
32
+ var hasFixedHeight = _a.hasFixedHeight;
33
+ return (hasFixedHeight ? '40px' : 'auto');
34
+ });
35
+ RightBox.Description = Description_1.default;
36
+ RightBox.IconButton = IconButton_1.default;
37
+ RightBox.MainButton = MainButton_1.default;
38
+ RightBox.Switch = Switch_1.default;
39
+ exports.default = RightBox;
40
+ var templateObject_1;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { BasicListItemProps } from '../BasicListItem';
3
+ export declare type SwitchPropTypes = {
4
+ name: string;
5
+ state: BasicListItemProps['switchState'];
6
+ status: BasicListItemProps['switchStatus'];
7
+ onClick: BasicListItemProps['onClickSwitch'];
8
+ };
9
+ declare const Switch: React.FC<SwitchPropTypes>;
10
+ export default Switch;
@@ -0,0 +1,19 @@
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 components_1 = require("@hybrid/components");
12
+ var styled_components_1 = __importDefault(require("styled-components"));
13
+ var Switch = function (_a) {
14
+ var name = _a.name, state = _a.state, status = _a.status, onClick = _a.onClick;
15
+ return ((0, jsx_runtime_1.jsxs)(S_SwitchWrapper, { children: [(0, jsx_runtime_1.jsx)(components_1.Switch, { name: name, state: state, status: status, onClick: onClick }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
16
+ };
17
+ var S_SwitchWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n min-height: 32px;\n min-width: 68px;\n position: relative;\n right: 0;\n"], ["\n display: flex;\n justify-content: flex-end;\n min-height: 32px;\n min-width: 68px;\n position: relative;\n right: 0;\n"])));
18
+ exports.default = Switch;
19
+ var templateObject_1;
@@ -0,0 +1,2 @@
1
+ import RightBox from './RightBox';
2
+ export { RightBox };
@@ -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.RightBox = void 0;
7
+ var RightBox_1 = __importDefault(require("./RightBox"));
8
+ exports.RightBox = RightBox_1.default;
@@ -39,9 +39,9 @@ function Radio(_a) {
39
39
  }
40
40
  }
41
41
  };
42
- return ((0, jsx_runtime_1.jsxs)(S_Label, __assign({ "x-pds-name": "Radio", "x-pds-element-type": "component", "x-pds-device-type": "desktop", htmlFor: value }, { children: [icon(), (0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: fontWeight === 'regular' ? 'body2Regular' : 'body2Bold', colorOverride: state === 'normal'
42
+ return ((0, jsx_runtime_1.jsxs)(S_Label, __assign({ "x-pds-name": "Radio", "x-pds-element-type": "component", "x-pds-device-type": "desktop", htmlFor: value }, { children: [icon(), text && ((0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: fontWeight === 'regular' ? 'body2Regular' : 'body2Bold', colorOverride: state === 'normal'
43
43
  ? 'ui_cpnt_selcontrols_text_default'
44
- : 'ui_cpnt_selcontrols_text_disabled' }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("input", { hidden: true, id: value, type: "radio", name: name, value: value, checked: checked, color: value, onChange: handleChange, disabled: state === 'disabled' }, void 0)] }), void 0));
44
+ : 'ui_cpnt_selcontrols_text_disabled' }, void 0) }, void 0)), (0, jsx_runtime_1.jsx)("input", { hidden: true, id: value, type: "radio", name: name, value: value, checked: checked, color: value, onChange: handleChange, disabled: state === 'disabled' }, void 0)] }), void 0));
45
45
  }
46
46
  var S_Label = styled_components_1.default.label(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n cursor: pointer;\n display: flex;\n height: 24px;\n"], ["\n align-items: center;\n cursor: pointer;\n display: flex;\n height: 24px;\n"])));
47
47
  var S_OverrideIconWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n position: relative;\n"], ["\n align-items: center;\n display: flex;\n position: relative;\n"])));
@@ -3,7 +3,7 @@ import type { UiColors } from '../../../../../common';
3
3
  export declare type ContentsContainerProps = {
4
4
  content1?: JSX.Element;
5
5
  content2?: JSX.Element;
6
- layoutType: 'WFA_1' | 'WFA_2' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFE_2' | 'WFE_3' | 'WFE_4' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1' | 'WFL_1' | 'WFL_2' | 'WFL_3' | 'WFL_4';
6
+ layoutType: 'WFA_1' | 'WFA_2' | 'WFA_3' | 'WFA_4' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFE_2' | 'WFE_3' | 'WFE_4' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1' | 'WFL_1' | 'WFL_2' | 'WFL_3' | 'WFL_4';
7
7
  containerColor?: string;
8
8
  areaColor?: string;
9
9
  isLoadingContainer1?: boolean;
@@ -7,6 +7,8 @@ var ContentsContainer = function (_a) {
7
7
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: {
8
8
  WFA_1: ((0, jsx_runtime_1.jsx)(variation_1.WFA, { layoutType: "WFA_1", content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
9
9
  WFA_2: ((0, jsx_runtime_1.jsx)(variation_1.WFA, { layoutType: "WFA_2", content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
10
+ WFA_3: ((0, jsx_runtime_1.jsx)(variation_1.WFA, { layoutType: "WFA_3", content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
11
+ WFA_4: ((0, jsx_runtime_1.jsx)(variation_1.WFA, { layoutType: "WFA_4", content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
10
12
  WFB_1: ((0, jsx_runtime_1.jsx)(variation_1.WFB, { content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
11
13
  WFC_1: ((0, jsx_runtime_1.jsx)(variation_1.WFC, { content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
12
14
  WFD_1: ((0, jsx_runtime_1.jsx)(variation_1.WFD, { layoutType: "WFD_1", content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { UiColors } from '../../../../../../common';
3
3
  export declare type WFAProps = {
4
- layoutType: 'WFA_1' | 'WFA_2';
4
+ layoutType: 'WFA_1' | 'WFA_2' | 'WFA_3' | 'WFA_4';
5
5
  content1?: JSX.Element;
6
6
  containerColor?: string;
7
7
  areaColor?: string;
@@ -35,36 +35,87 @@ var __importStar = (this && this.__importStar) || function (mod) {
35
35
  };
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  var jsx_runtime_1 = require("react/jsx-runtime");
38
+ var react_1 = require("react");
38
39
  var styled_components_1 = __importStar(require("styled-components"));
39
40
  var components_1 = require("../../../../../../common/components");
40
41
  var scrollbarStyle_1 = require("../../../../../../common/styles/scroll/scrollbarStyle");
41
42
  var WFA = function (_a) {
42
43
  var content1 = _a.content1, layoutType = _a.layoutType, containerColor = _a.containerColor, areaColor = _a.areaColor, isLoadingContainer1 = _a.isLoadingContainer1, overrideContainer1ColorKey = _a.overrideContainer1ColorKey;
43
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(S_ContentsContainer, __assign({ "x-pds-name": "ContentsContainer", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WFA", layoutType: layoutType, containerColor: containerColor, overrideContainer1ColorKey: overrideContainer1ColorKey }, { children: isLoadingContainer1 ? ((0, jsx_runtime_1.jsx)(components_1.ThreeBarProgress, {}, void 0)) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(S_ContentsArea, __assign({ "x-pds-name": "ContentsArea", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WFA", layoutType: layoutType, areaColor: areaColor }, { children: (0, jsx_runtime_1.jsx)(S_Content1, __assign({ "x-pds-name": "Content1", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WFA" }, { children: content1 }), void 0) }), void 0) }, void 0)) }), void 0) }, void 0));
44
+ var _b = (0, react_1.useState)(false), hasScroll = _b[0], setHasScroll = _b[1];
45
+ var contentRef = (0, react_1.useRef)(null);
46
+ var handleResize = function () {
47
+ if (!contentRef || !contentRef.current)
48
+ return;
49
+ var _a = contentRef.current, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
50
+ var isTextClamped = scrollHeight > clientHeight;
51
+ setHasScroll(isTextClamped);
52
+ };
53
+ /**
54
+ @when : 헤딩 레이아웃이 적용된 화면에 진입했을때
55
+ @expected : clientHeight와 scrollHeight를 감지하여 hasScroll의 상태를 업데이트 합니다.
56
+ @clear : -
57
+ */
58
+ (0, react_1.useEffect)(function () {
59
+ handleResize();
60
+ }, []);
61
+ /**
62
+ @when : 브라우저 화면 사이즈가 변경될 때
63
+ @expected : clientHeight와 scrollHeight를 감지하여 hasScroll의 상태를 업데이트 합니다.
64
+ @clear : 이벤트 등록을 해제합니다.
65
+ */
66
+ (0, react_1.useEffect)(function () {
67
+ window.addEventListener('resize', handleResize);
68
+ return function () {
69
+ window.removeEventListener('resize', handleResize);
70
+ };
71
+ }, []);
72
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(S_ContentsContainer, __assign({ "x-pds-name": "ContentsContainer", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WFA", layoutType: layoutType, containerColor: containerColor, overrideContainer1ColorKey: overrideContainer1ColorKey, hasScroll: hasScroll, ref: contentRef }, { children: isLoadingContainer1 ? ((0, jsx_runtime_1.jsx)(components_1.ThreeBarProgress, {}, void 0)) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(S_ContentsArea, __assign({ "x-pds-name": "ContentsArea", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WFA", layoutType: layoutType, areaColor: areaColor }, { children: (0, jsx_runtime_1.jsx)(S_Content1, __assign({ "x-pds-name": "Content1", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WFA" }, { children: content1 }), void 0) }), void 0) }, void 0)) }), void 0) }, void 0));
44
73
  };
45
- var WFA_1AreaStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 432px;\n"], ["\n width: 432px;\n"])));
46
- var WFA_2AreaStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 608px;\n"], ["\n width: 608px;\n"])));
47
- var overrideStyleContainer1 = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
74
+ var WFA_1ContainerStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n"], ["\n align-items: flex-start;\n"])));
75
+ var WFA_2ContainerStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: flex-start;\n"], ["\n align-items: flex-start;\n"])));
76
+ var WFA_3ContainerStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: flex-start;\n ", "\n"], ["\n align-items: flex-start;\n ", "\n"])), function (_a) {
77
+ var hasScroll = _a.hasScroll;
78
+ return !hasScroll && (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n "], ["\n align-items: center;\n "])));
79
+ });
80
+ var WFA_4ContainerStyle = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-start;\n ", "\n"], ["\n align-items: flex-start;\n ", "\n"])), function (_a) {
81
+ var hasScroll = _a.hasScroll;
82
+ return !hasScroll && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n "], ["\n align-items: center;\n "])));
83
+ });
84
+ var WFA_1AreaStyle = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: 432px;\n"], ["\n width: 432px;\n"])));
85
+ var WFA_2AreaStyle = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: 608px;\n"], ["\n width: 608px;\n"])));
86
+ var WFA_3AreaStyle = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n width: 432px;\n"], ["\n width: 432px;\n"])));
87
+ var WFA_4AreaStyle = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n width: 608px;\n"], ["\n width: 608px;\n"])));
88
+ var overrideStyleContainer1 = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
48
89
  var theme = _a.theme, overrideContainer1ColorKey = _a.overrideContainer1ColorKey;
49
90
  return overrideContainer1ColorKey && theme[overrideContainer1ColorKey];
50
91
  });
51
- var S_ContentsContainer = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: flex-start;\n background-color: ", ";\n border-radius: 24px;\n display: flex;\n height: 60vh;\n justify-content: center;\n max-height: 640px;\n overflow-x: hidden;\n overflow-y: overlay;\n width: 864px;\n ", ";\n\n ", "\n ", "\n"], ["\n align-items: flex-start;\n background-color: ", ";\n border-radius: 24px;\n display: flex;\n height: 60vh;\n justify-content: center;\n max-height: 640px;\n overflow-x: hidden;\n overflow-y: overlay;\n width: 864px;\n ", ";\n\n ", "\n ", "\n"])), function (_a) {
92
+ var S_ContentsContainer = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 24px;\n display: flex;\n height: 60vh;\n justify-content: center;\n max-height: 640px;\n overflow-x: hidden;\n overflow-y: overlay;\n width: 864px;\n ", ";\n ", ";\n\n ", "\n ", "\n"], ["\n background-color: ", ";\n border-radius: 24px;\n display: flex;\n height: 60vh;\n justify-content: center;\n max-height: 640px;\n overflow-x: hidden;\n overflow-y: overlay;\n width: 864px;\n ", ";\n ", ";\n\n ", "\n ", "\n"])), function (_a) {
52
93
  var theme = _a.theme;
53
94
  return theme.ui_wizard_contentscontainer01_background;
95
+ }, function (_a) {
96
+ var layoutType = _a.layoutType;
97
+ return ({
98
+ WFA_1: WFA_1ContainerStyle,
99
+ WFA_2: WFA_2ContainerStyle,
100
+ WFA_3: WFA_3ContainerStyle,
101
+ WFA_4: WFA_4ContainerStyle
102
+ }[layoutType]);
54
103
  }, function (_a) {
55
104
  var containerColor = _a.containerColor;
56
105
  return "background-color: " + containerColor;
57
106
  }, scrollbarStyle_1.scrollbarWithPaddingStyle, overrideStyleContainer1);
58
- var S_ContentsArea = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-bottom: 64px;\n padding-top: 64px;\n\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n padding-bottom: 64px;\n padding-top: 64px;\n\n ", ";\n ", ";\n"])), function (_a) {
107
+ var S_ContentsArea = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-bottom: 64px;\n padding-top: 64px;\n\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n padding-bottom: 64px;\n padding-top: 64px;\n\n ", ";\n ", ";\n"])), function (_a) {
59
108
  var layoutType = _a.layoutType;
60
109
  return ({
61
110
  WFA_1: WFA_1AreaStyle,
62
- WFA_2: WFA_2AreaStyle
111
+ WFA_2: WFA_2AreaStyle,
112
+ WFA_3: WFA_3AreaStyle,
113
+ WFA_4: WFA_4AreaStyle
63
114
  }[layoutType]);
64
115
  }, function (_a) {
65
116
  var areaColor = _a.areaColor;
66
117
  return "background-color: " + areaColor;
67
118
  });
68
- var S_Content1 = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
119
+ var S_Content1 = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
69
120
  exports.default = WFA;
70
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
121
+ 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;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { UiColors } from '../../../../common';
3
3
  export declare type ContainersBoxProps = {
4
- layoutType: 'WFA_1' | 'WFA_2' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFE_2' | 'WFE_3' | 'WFE_4' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1' | 'WFL_1' | 'WFL_2' | 'WFL_3' | 'WFL_4';
4
+ layoutType: 'WFA_1' | 'WFA_2' | 'WFA_3' | 'WFA_4' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFE_2' | 'WFE_3' | 'WFE_4' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1' | 'WFL_1' | 'WFL_2' | 'WFL_3' | 'WFL_4';
5
5
  pageMenuContent?: JSX.Element;
6
6
  subMenuContent?: JSX.Element;
7
7
  tabMenuContent?: JSX.Element;
@@ -57,6 +57,8 @@ var ContainersBox = function (_a) {
57
57
  }[wizardContainerWidthType]) : ((0, jsx_runtime_1.jsx)(Containers_1.PageMenuContainer, { pageMenuContent: pageMenuContent }, void 0)) }, void 0)), (0, jsx_runtime_1.jsxs)(S_CenterBox, __assign({ isWizardLayout: isWizardLayout }, { children: [{
58
58
  WFA_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
59
59
  WFA_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
60
+ WFA_3: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
61
+ WFA_4: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
60
62
  WFB_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
61
63
  WFC_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
62
64
  WFD_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
@@ -88,6 +90,8 @@ var ContainersBox = function (_a) {
88
90
  }[layoutType], (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [{
89
91
  WFA_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
90
92
  WFA_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
93
+ WFA_3: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
94
+ WFA_4: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
91
95
  WFB_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
92
96
  WFC_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
93
97
  WFD_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
@@ -38,6 +38,7 @@ export declare type BasicListItemProps = {
38
38
  };
39
39
  export declare type StyleProps = {
40
40
  isSelected?: boolean;
41
+ dividerType?: BasicListItemProps['dividerType'];
41
42
  selectionMode?: 'none' | 'check' | 'radio';
42
43
  captionText?: PDSTextType;
43
44
  badgeStatus?: 'cancel' | 'active' | 'inactive';
@@ -21,51 +21,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
21
21
  var jsx_runtime_1 = require("react/jsx-runtime");
22
22
  var react_hook_form_1 = require("react-hook-form");
23
23
  var styled_components_1 = __importDefault(require("styled-components"));
24
- var hybrid_1 = require("../../../hybrid");
25
- var Checkbox_1 = require("../Checkbox");
26
- var IconButton_1 = require("../IconButton");
27
- var MainButton_1 = require("../MainButton");
28
- var Radio_1 = require("../Radio");
29
- var TextLabel_1 = require("../TextLabel");
24
+ var Contents_1 = __importDefault(require("./Contents"));
25
+ var LeftBox_1 = require("./LeftBox");
26
+ var RightBox_1 = require("./RightBox");
30
27
  function BasicListItem(_a) {
31
28
  var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, titleText = _a.titleText, _c = _a.titleTextColorTheme, titleTextColorTheme = _c === void 0 ? 'none' : _c, descText = _a.descText, _d = _a.badgeMode, badgeMode = _d === void 0 ? 'none' : _d, _e = _a.badgeStatus, badgeStatus = _e === void 0 ? 'inactive' : _e, _f = _a.imageIconMode, imageIconMode = _f === void 0 ? 'none' : _f, _g = _a.imageShapeType, imageShapeType = _g === void 0 ? 'round' : _g, imageSrc = _a.imageSrc, iconName = _a.iconName, _h = _a.iconFillType, iconFillType = _h === void 0 ? 'line' : _h, _j = _a.displayType, displayType = _j === void 0 ? 'none' : _j, captionText = _a.captionText, iBtn1IconName = _a.iBtn1IconName, _k = _a.iBtn1IconFillType, iBtn1IconFillType = _k === void 0 ? 'line' : _k, iBtn2IconName = _a.iBtn2IconName, _l = _a.iBtn2IconFillType, iBtn2IconFillType = _l === void 0 ? 'line' : _l, _m = _a.mBtnFillType, mBtnFillType = _m === void 0 ? 'fill' : _m, mBtnText = _a.mBtnText, _o = _a.dividerType, dividerType = _o === void 0 ? 'none' : _o, _p = _a.titleFontWeight, titleFontWeight = _p === void 0 ? 'regular' : _p, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _q = _a.switchState, switchState = _q === void 0 ? 'normal' : _q, _r = _a.switchStatus, switchStatus = _r === void 0 ? 'off' : _r, _s = _a.spacingMode, spacingMode = _s === void 0 ? 'use' : _s, onClick = _a.onClick, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn;
32
29
  var methods = (0, react_hook_form_1.useFormContext)();
33
30
  var isSelected = methods === null || methods === void 0 ? void 0 : methods.watch((checkboxId === null || checkboxId === void 0 ? void 0 : checkboxId.toString()) || '');
34
- var onlyLeftArea = displayType === 'none';
35
- var handleCheckBoxClick = function (e) {
36
- e.preventDefault();
37
- if (!checkboxId) {
38
- return;
39
- }
40
- var checkedStatus = methods.getValues(checkboxId.toString());
41
- methods.setValue(checkboxId.toString(), !checkedStatus);
42
- };
43
- var handleMBtnClick = function () {
44
- if (onClickMBtn) {
45
- onClickMBtn();
46
- }
47
- };
48
31
  var handleIBtn1Click = function (e) {
49
32
  e.stopPropagation();
50
33
  if (onClickIBtn1) {
51
34
  onClickIBtn1();
52
35
  }
53
36
  };
54
- var handleIBtn2Click = function () {
55
- if (onClickIBtn2) {
56
- onClickIBtn2();
57
- }
58
- };
59
- var handleSwitchClick = function () {
60
- if (onClickSwitch) {
61
- onClickSwitch();
62
- }
63
- };
64
- var handleRadioClick = function (e) {
65
- if (onClickRadio) {
66
- onClickRadio(e.target.value);
67
- }
68
- };
69
37
  var handleClick = function (e) {
70
38
  switch (selectionMode) {
71
39
  case 'radio': {
@@ -96,78 +64,21 @@ function BasicListItem(_a) {
96
64
  }
97
65
  }
98
66
  };
99
- var isBadgeLeftSpacingChecker = function (value) {
100
- if (spacingMode !== value || selectionMode !== value) {
101
- return true;
102
- }
103
- return false;
104
- };
105
- var isImageIconLeftSpacingChecker = function (value) {
106
- if (selectionMode !== value ||
107
- badgeMode !== value ||
108
- (selectionMode === value && badgeMode === value && spacingMode !== value)) {
109
- return true;
110
- }
111
- return false;
112
- };
113
- var isTextLabelLeftSpacingChecker = function (value) {
114
- if (selectionMode !== value ||
115
- badgeMode !== value ||
116
- imageIconMode !== value ||
117
- (selectionMode && badgeMode && imageIconMode && spacingMode) !== value) {
118
- return true;
119
- }
120
- return false;
121
- };
122
- var isRightSpacingChecker = function (value) {
123
- if (spacingMode === value) {
124
- return false;
125
- }
126
- return true;
127
- };
128
- return ((0, jsx_runtime_1.jsxs)(S_BasicListItem, __assign({ "x-pds-name": "BasicListItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", isSelected: isSelected, onClick: handleClick, spacingMode: spacingMode }, { children: [(0, jsx_runtime_1.jsxs)(S_BasicListItemBox, __assign({ imageIconMode: imageIconMode, captionText: captionText, spacingMode: spacingMode }, { children: [(0, jsx_runtime_1.jsxs)(S_LeftBox, __assign({ onlyLeftArea: onlyLeftArea }, { children: [selectionMode !== 'none' && ((0, jsx_runtime_1.jsxs)(S_SelectionBoxWrapper, __assign({ selectionMode: selectionMode }, { children: [selectionMode === 'check' && checkboxId && ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { name: checkboxId.toString(), state: "normal", onChange: handleCheckBoxClick }, void 0)), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(Radio_1.Radio, { name: radioId, value: radioValue, onChange: handleRadioClick, checked: radioId === radioValue }, void 0))] }), void 0)), badgeMode === 'left' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isBadgeLeftSpacingChecker('none') && ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)), (0, jsx_runtime_1.jsx)(S_Badge, { badgeStatus: badgeStatus }, void 0)] }, void 0)), imageIconMode === 'image' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isImageIconLeftSpacingChecker('none') && ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)), (0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { width: 40, height: 40, src: imageSrc, scaleType: "cover", shapeType: imageShapeType }, void 0)] }, void 0)), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isImageIconLeftSpacingChecker('none') && ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)), (0, jsx_runtime_1.jsx)(S_IconWrapper, { children: (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: iconName, fillType: iconFillType, size: 24, colorKey: "ui_cpnt_list_icon_02" }, void 0) }, void 0)] }, void 0)), isTextLabelLeftSpacingChecker('none') && ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)), (0, jsx_runtime_1.jsxs)(S_TextBox, { children: [(0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, colorTheme: titleTextColorTheme === 'none' ? 'sysTextPrimary' : 'sysTextError', styleTheme: titleFontWeight === 'bold' ? 'body2Bold' : 'body2Regular', singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }, void 0) }, void 0), captionText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a" }, void 0), (0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: captionText, colorTheme: "sysTextTertiary", styleTheme: "caption1Regular", textAlign: "left", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }, void 0) }, void 0)] }, void 0))] }, void 0)] }), void 0), (0, jsx_runtime_1.jsxs)(S_RightBox, __assign({ displayType: displayType }, { children: [(displayType === 'text' || displayType === 'ibtn_text') && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: descText, colorTheme: "sysTextSecondary", styleTheme: "caption1Regular", textAlign: "right", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }, void 0), isRightSpacingChecker('none') && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0)), (displayType === 'ibtn_amount1' ||
129
- displayType === 'ibtn_amount2' ||
130
- displayType === 'ibtn_text') && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [displayType === 'ibtn_amount2' && ((0, jsx_runtime_1.jsx)(S_IconWrapper, { children: iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, iconFillType: iBtn2IconFillType, baseSize: "medium", iconSize: 20, shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleIBtn2Click, iconColorKey: "ui_cpnt_button_icon_default" }, void 0)) }, void 0)), (0, jsx_runtime_1.jsx)(S_IconWrapper, { children: iBtn1IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn1IconName, iconFillType: iBtn1IconFillType, baseSize: "medium", iconSize: 20, shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleIBtn1Click, iconColorKey: "ui_cpnt_button_icon_default" }, void 0)) }, void 0)] }, void 0)), displayType === 'mbtn' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(MainButton_1.MainButton, { text: mBtnText, fillType: mBtnFillType, size: "small", onMouseDown: handleMBtnClick }, void 0), isRightSpacingChecker('none') && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0)), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsxs)(S_SwitchWrapper, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Switch, { name: switchName, onClick: handleSwitchClick, state: switchState, status: switchStatus }, void 0), isRightSpacingChecker('none') && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0))] }), void 0)] }), void 0), (0, jsx_runtime_1.jsx)(S_DividerWrapper, __assign({ spacingMode: spacingMode }, { children: dividerType === 'solid' && (0, jsx_runtime_1.jsx)(hybrid_1.Divider, { direction: "horizontal", displayType: "line" }, void 0) }), void 0)] }), void 0));
67
+ return ((0, jsx_runtime_1.jsx)(S_BasicListItem, __assign({ "x-pds-name": "BasicListItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", isSelected: isSelected, onClick: handleClick, spacingMode: spacingMode }, { children: (0, jsx_runtime_1.jsxs)(S_BasicListItemBox, __assign({ imageIconMode: imageIconMode, captionText: captionText, spacingMode: spacingMode, dividerType: dividerType }, { children: [(0, jsx_runtime_1.jsxs)(LeftBox_1.LeftBox, __assign({ hasRightBox: displayType !== 'none' }, { children: [selectionMode === 'check' && checkboxId && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Checkbox, { id: checkboxId }, void 0), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Radio, { id: radioId, value: radioValue, onChange: onClickRadio }, void 0)), badgeMode === 'left' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Badge, { status: badgeStatus }, void 0), imageIconMode === 'image' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { src: imageSrc, shape: imageShapeType }, void 0), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Icon, { name: iconName, fill: iconFillType === 'fill' }, void 0)), (0, jsx_runtime_1.jsxs)(Contents_1.default, { children: [(0, jsx_runtime_1.jsx)(Contents_1.default.Title, { text: titleText, colorTheme: titleTextColorTheme === 'none' ? 'sysTextPrimary' : 'sysTextError', font: titleFontWeight === 'bold' ? 'body2Bold' : 'body2Regular' }, void 0), (0, jsx_runtime_1.jsx)(Contents_1.default.Caption, { text: captionText }, void 0)] }, void 0)] }), void 0), (0, jsx_runtime_1.jsxs)(RightBox_1.RightBox, __assign({ hasFixedHeight: displayType === 'text' }, { children: [(displayType === 'text' || displayType === 'ibtn_text') && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Description, { text: descText, icon: displayType === 'ibtn_text' ? ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click }, void 0)) : undefined }, void 0)), displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click }, void 0)), displayType === 'ibtn_amount2' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn2IconName, fill: iBtn2IconFillType === 'fill', onClick: onClickIBtn2 }, void 0), (0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click }, void 0)] }, void 0)), displayType === 'mbtn' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.MainButton, { text: mBtnText, fill: mBtnFillType === 'fill', onClick: onClickMBtn }, void 0)), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Switch, { name: switchName, state: switchState, status: switchStatus, onClick: onClickSwitch }, void 0))] }), void 0)] }), void 0) }), void 0));
131
68
  }
132
69
  var S_BasicListItem = styled_components_1.default.li(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ", ";\n"])), function (_a) {
133
70
  var theme = _a.theme, isSelected = _a.isSelected;
134
71
  return isSelected ? theme.ui_cpnt_list_base_area_select : theme.ui_cpnt_list_base_area;
135
72
  }, function (_a) {
136
73
  var spacingMode = _a.spacingMode, theme = _a.theme;
137
- return spacingMode === 'use' && "0 " + theme.spacing.spacingC;
74
+ return spacingMode === 'use' && "0 " + theme.spacing.spacingE;
138
75
  });
139
- var S_BasicListItemBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: ", ";\n padding: ", ";\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n height: ", ";\n padding: ", ";\n width: 100%;\n"])), function (_a) {
76
+ var S_BasicListItemBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n border-bottom: ", ";\n display: flex;\n height: ", ";\n width: 100%;\n"], ["\n align-items: center;\n border-bottom: ", ";\n display: flex;\n height: ", ";\n width: 100%;\n"])), function (_a) {
77
+ var dividerType = _a.dividerType, theme = _a.theme;
78
+ return dividerType === 'solid' && "1px solid " + theme.ui_cpnt_divider;
79
+ }, function (_a) {
140
80
  var imageIconMode = _a.imageIconMode, captionText = _a.captionText;
141
81
  return imageIconMode === 'image' || captionText ? '80px' : '56px';
142
- }, function (_a) {
143
- var spacingMode = _a.spacingMode, theme = _a.theme;
144
- return spacingMode === 'use' && "0 " + theme.spacing.spacingC;
145
- });
146
- var S_LeftBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"])), function (_a) {
147
- var onlyLeftArea = _a.onlyLeftArea;
148
- return (onlyLeftArea ? 'auto' : 7);
149
- });
150
- var S_SelectionBoxWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: center;\n width: 40px;\n"], ["\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: center;\n width: 40px;\n"])));
151
- var S_IconWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n"])));
152
- var S_TextBox = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"], ["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"])));
153
- var S_TextWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
154
- var S_Badge = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 8px;\n height: 8px;\n min-width: 8px;\n"], ["\n background-color: ", ";\n border-radius: 8px;\n height: 8px;\n min-width: 8px;\n"])), function (_a) {
155
- var badgeStatus = _a.badgeStatus, theme = _a.theme;
156
- return badgeStatus &&
157
- {
158
- cancel: "" + theme.ui_cpnt_list_badge_cancel,
159
- active: "" + theme.ui_cpnt_list_badge_active_primary,
160
- inactive: "" + theme.ui_cpnt_list_badge_disabled
161
- }[badgeStatus];
162
- });
163
- var S_RightBox = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex: 3;\n height: ", ";\n justify-content: flex-end;\n"], ["\n align-items: center;\n display: flex;\n flex: 3;\n height: ", ";\n justify-content: flex-end;\n"])), function (_a) {
164
- var displayType = _a.displayType;
165
- return (displayType === 'text' ? '40px' : 'auto');
166
- });
167
- var S_SwitchWrapper = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n min-height: 32px;\n min-width: 68px;\n position: relative;\n right: 0;\n"], ["\n display: flex;\n justify-content: flex-end;\n min-height: 32px;\n min-width: 68px;\n position: relative;\n right: 0;\n"])));
168
- var S_DividerWrapper = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
169
- var spacingMode = _a.spacingMode;
170
- return (spacingMode !== 'none' ? 'calc(100% - 24px)' : '100%');
171
82
  });
172
83
  exports.default = BasicListItem;
173
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
84
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { PDSTextType } from '@common/types';
3
+ declare type ContentsPropTypes = React.FunctionComponent & {
4
+ Title: React.FC<TitlePropTypes>;
5
+ Caption: React.FC<CaptionPropTypes>;
6
+ };
7
+ declare type TitlePropTypes = {
8
+ text: PDSTextType;
9
+ colorTheme: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextBlack' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
10
+ font: 'body2Bold' | 'body2Regular';
11
+ };
12
+ declare type CaptionPropTypes = {
13
+ text: PDSTextType;
14
+ };
15
+ declare const Contents: ContentsPropTypes;
16
+ export default Contents;
@@ -0,0 +1,31 @@
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 components_1 = require("@hybrid/components");
12
+ var styled_components_1 = __importDefault(require("styled-components"));
13
+ var TextLabel_1 = require("../TextLabel");
14
+ var Contents = function (_a) {
15
+ var children = _a.children;
16
+ return ((0, jsx_runtime_1.jsx)(S_TextBox, { children: children }, void 0));
17
+ };
18
+ var Title = function (_a) {
19
+ var text = _a.text, colorTheme = _a.colorTheme, font = _a.font;
20
+ return ((0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, colorTheme: colorTheme, styleTheme: font, singleLineMode: "use", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }, void 0) }, void 0));
21
+ };
22
+ var Caption = function (_a) {
23
+ var text = _a.text;
24
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_a" }, void 0), (0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, colorTheme: "sysTextTertiary", styleTheme: "caption1Regular", textAlign: "left", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }, void 0) }, void 0)] }, void 0));
25
+ };
26
+ var S_TextBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"], ["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"])));
27
+ var S_TextWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n justify-content: center;\n width: 100%;\n"], ["\n justify-content: center;\n width: 100%;\n"])));
28
+ Contents.Title = Title;
29
+ Contents.Caption = Caption;
30
+ exports.default = Contents;
31
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { BasicListItemProps } from '../BasicListItem';
3
+ export declare type BadgePropTypes = {
4
+ status: BasicListItemProps['badgeStatus'];
5
+ };
6
+ declare const Badge: React.FC<BadgePropTypes>;
7
+ export default Badge;
@@ -0,0 +1,27 @@
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 components_1 = require("@hybrid/components");
12
+ var styled_components_1 = __importDefault(require("styled-components"));
13
+ var Badge = function (_a) {
14
+ var status = _a.status;
15
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_Badge, { status: status }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
16
+ };
17
+ var S_Badge = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 8px;\n height: 8px;\n min-width: 8px;\n"], ["\n background-color: ", ";\n border-radius: 8px;\n height: 8px;\n min-width: 8px;\n"])), function (_a) {
18
+ var status = _a.status, theme = _a.theme;
19
+ return status &&
20
+ {
21
+ cancel: theme.ui_cpnt_list_badge_cancel,
22
+ active: theme.ui_cpnt_list_badge_active_primary,
23
+ inactive: theme.ui_cpnt_list_badge_disabled
24
+ }[status];
25
+ });
26
+ exports.default = Badge;
27
+ var templateObject_1;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare type CheckboxPropTypes = {
3
+ id: string | number;
4
+ };
5
+ declare const Checkbox: React.FC<CheckboxPropTypes>;
6
+ export default Checkbox;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var jsx_runtime_1 = require("react/jsx-runtime");
4
+ var react_hook_form_1 = require("react-hook-form");
5
+ var components_1 = require("@hybrid/components");
6
+ var Checkbox_1 = require("../../Checkbox");
7
+ var Checkbox = function (_a) {
8
+ var id = _a.id;
9
+ var methods = (0, react_hook_form_1.useFormContext)();
10
+ var handleCheckboxClick = function (e) {
11
+ e.preventDefault();
12
+ if (!id)
13
+ return;
14
+ var checkedStatus = methods.getValues(id.toString());
15
+ methods.setValue(id.toString(), !checkedStatus);
16
+ };
17
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { name: id.toString(), state: "normal", onChange: handleCheckboxClick }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_e", spacingType: "width" }, void 0)] }, void 0));
18
+ };
19
+ exports.default = Checkbox;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { BasicListItemProps } from '../BasicListItem';
3
+ export declare type IconPropTypes = {
4
+ name: BasicListItemProps['iconName'];
5
+ fill: boolean;
6
+ };
7
+ declare const Icon: React.FC<IconPropTypes>;
8
+ export default Icon;
@@ -0,0 +1,19 @@
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 components_1 = require("@hybrid/components");
12
+ var styled_components_1 = __importDefault(require("styled-components"));
13
+ var Icon = function (_a) {
14
+ var name = _a.name, fill = _a.fill;
15
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_IconWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: name, fillType: fill ? 'fill' : 'line', size: 24, colorKey: "ui_cpnt_list_icon_02" }, void 0) }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
16
+ };
17
+ var S_IconWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n"])));
18
+ exports.default = Icon;
19
+ var templateObject_1;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { BasicListItemProps } from '../BasicListItem';
3
+ export declare type ImagePropTypes = {
4
+ src: BasicListItemProps['imageSrc'];
5
+ shape: BasicListItemProps['imageShapeType'];
6
+ };
7
+ declare const Image: React.FC<ImagePropTypes>;
8
+ export default Image;