pds-dev-kit-web 1.9.23 → 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 (64) hide show
  1. package/dist/src/desktop/components/AdminList/AdminList.js +1 -1
  2. package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +1 -0
  3. package/dist/src/desktop/components/BasicListItem/BasicListItem.js +10 -99
  4. package/dist/src/desktop/components/BasicListItem/Contents.d.ts +16 -0
  5. package/dist/src/desktop/components/BasicListItem/Contents.js +31 -0
  6. package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.d.ts +7 -0
  7. package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.js +27 -0
  8. package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.d.ts +6 -0
  9. package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.js +19 -0
  10. package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.d.ts +8 -0
  11. package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.js +19 -0
  12. package/dist/src/desktop/components/BasicListItem/LeftBox/Image.d.ts +8 -0
  13. package/dist/src/desktop/components/BasicListItem/LeftBox/Image.js +9 -0
  14. package/dist/src/desktop/components/BasicListItem/LeftBox/LeftBox.d.ts +17 -0
  15. package/dist/src/desktop/components/BasicListItem/LeftBox/LeftBox.js +42 -0
  16. package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.d.ts +9 -0
  17. package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.js +13 -0
  18. package/dist/src/desktop/components/BasicListItem/LeftBox/index.d.ts +2 -0
  19. package/dist/src/desktop/components/BasicListItem/LeftBox/index.js +8 -0
  20. package/dist/src/desktop/components/BasicListItem/RightBox/Description.d.ts +8 -0
  21. package/dist/src/desktop/components/BasicListItem/RightBox/Description.js +10 -0
  22. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +9 -0
  23. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +19 -0
  24. package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.d.ts +9 -0
  25. package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.js +10 -0
  26. package/dist/src/desktop/components/BasicListItem/RightBox/RightBox.d.ts +15 -0
  27. package/dist/src/desktop/components/BasicListItem/RightBox/RightBox.js +40 -0
  28. package/dist/src/desktop/components/BasicListItem/RightBox/Switch.d.ts +10 -0
  29. package/dist/src/desktop/components/BasicListItem/RightBox/Switch.js +19 -0
  30. package/dist/src/desktop/components/BasicListItem/RightBox/index.d.ts +2 -0
  31. package/dist/src/desktop/components/BasicListItem/RightBox/index.js +8 -0
  32. package/dist/src/desktop/components/Radio/Radio.js +2 -2
  33. package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +1 -0
  34. package/dist/src/mobile/components/BasicListItem/BasicListItem.js +10 -99
  35. package/dist/src/mobile/components/BasicListItem/Contents.d.ts +16 -0
  36. package/dist/src/mobile/components/BasicListItem/Contents.js +31 -0
  37. package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.d.ts +7 -0
  38. package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.js +27 -0
  39. package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.d.ts +6 -0
  40. package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.js +19 -0
  41. package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.d.ts +8 -0
  42. package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.js +19 -0
  43. package/dist/src/mobile/components/BasicListItem/LeftBox/Image.d.ts +8 -0
  44. package/dist/src/mobile/components/BasicListItem/LeftBox/Image.js +9 -0
  45. package/dist/src/mobile/components/BasicListItem/LeftBox/LeftBox.d.ts +17 -0
  46. package/dist/src/mobile/components/BasicListItem/LeftBox/LeftBox.js +42 -0
  47. package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.d.ts +9 -0
  48. package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.js +13 -0
  49. package/dist/src/mobile/components/BasicListItem/LeftBox/index.d.ts +2 -0
  50. package/dist/src/mobile/components/BasicListItem/LeftBox/index.js +8 -0
  51. package/dist/src/mobile/components/BasicListItem/RightBox/Description.d.ts +8 -0
  52. package/dist/src/mobile/components/BasicListItem/RightBox/Description.js +10 -0
  53. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +9 -0
  54. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +19 -0
  55. package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.d.ts +9 -0
  56. package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.js +10 -0
  57. package/dist/src/mobile/components/BasicListItem/RightBox/RightBox.d.ts +15 -0
  58. package/dist/src/mobile/components/BasicListItem/RightBox/RightBox.js +40 -0
  59. package/dist/src/mobile/components/BasicListItem/RightBox/Switch.d.ts +10 -0
  60. package/dist/src/mobile/components/BasicListItem/RightBox/Switch.js +19 -0
  61. package/dist/src/mobile/components/BasicListItem/RightBox/index.d.ts +2 -0
  62. package/dist/src/mobile/components/BasicListItem/RightBox/index.js +8 -0
  63. package/package.json +1 -1
  64. package/release-note.md +8 -9
@@ -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"])));
@@ -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;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var jsx_runtime_1 = require("react/jsx-runtime");
4
+ var components_1 = require("@hybrid/components");
5
+ var Image = function (_a) {
6
+ var src = _a.src, shape = _a.shape;
7
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.ImageView, { width: 40, height: 40, src: src, scaleType: "cover", shapeType: shape }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
8
+ };
9
+ exports.default = Image;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import type { BadgePropTypes } from './Badge';
3
+ import type { CheckboxPropTypes } from './Checkbox';
4
+ import type { IconPropTypes } from './Icon';
5
+ import type { ImagePropTypes } from './Image';
6
+ import type { RadioPropTypes } from './Radio';
7
+ declare type LeftBoxPropTypes = React.FunctionComponent<{
8
+ hasRightBox: boolean;
9
+ }> & {
10
+ Checkbox: React.FC<CheckboxPropTypes>;
11
+ Radio: React.FC<RadioPropTypes>;
12
+ Badge: React.FC<BadgePropTypes>;
13
+ Image: React.FC<ImagePropTypes>;
14
+ Icon: React.FC<IconPropTypes>;
15
+ };
16
+ declare const LeftBox: LeftBoxPropTypes;
17
+ export default LeftBox;
@@ -0,0 +1,42 @@
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 Badge_1 = __importDefault(require("./Badge"));
24
+ var Checkbox_1 = __importDefault(require("./Checkbox"));
25
+ var Icon_1 = __importDefault(require("./Icon"));
26
+ var Image_1 = __importDefault(require("./Image"));
27
+ var Radio_1 = __importDefault(require("./Radio"));
28
+ var LeftBox = function (_a) {
29
+ var children = _a.children, hasRightBox = _a.hasRightBox;
30
+ return ((0, jsx_runtime_1.jsx)(S_LeftBox, __assign({ hasRightBox: hasRightBox }, { children: children }), void 0));
31
+ };
32
+ var S_LeftBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __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) {
33
+ var hasRightBox = _a.hasRightBox;
34
+ return (hasRightBox ? 7 : 'auto');
35
+ });
36
+ LeftBox.Checkbox = Checkbox_1.default;
37
+ LeftBox.Radio = Radio_1.default;
38
+ LeftBox.Badge = Badge_1.default;
39
+ LeftBox.Image = Image_1.default;
40
+ LeftBox.Icon = Icon_1.default;
41
+ exports.default = LeftBox;
42
+ var templateObject_1;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { BasicListItemProps } from '../BasicListItem';
3
+ export declare type RadioPropTypes = {
4
+ id: string;
5
+ value: string;
6
+ onChange: BasicListItemProps['onClickRadio'];
7
+ };
8
+ declare const Radio: React.FC<RadioPropTypes>;
9
+ export default Radio;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var jsx_runtime_1 = require("react/jsx-runtime");
4
+ var components_1 = require("@hybrid/components");
5
+ var Radio_1 = require("../../Radio");
6
+ var Radio = function (_a) {
7
+ var id = _a.id, value = _a.value, onChange = _a.onChange;
8
+ var handleRadioClick = function (e) {
9
+ onChange && onChange(e.target.value);
10
+ };
11
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Radio_1.Radio, { name: id, value: value, onChange: handleRadioClick, checked: id === value }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
12
+ };
13
+ exports.default = Radio;
@@ -0,0 +1,2 @@
1
+ import LeftBox from './LeftBox';
2
+ export { LeftBox };
@@ -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.LeftBox = void 0;
7
+ var LeftBox_1 = __importDefault(require("./LeftBox"));
8
+ exports.LeftBox = LeftBox_1.default;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { PDSTextType } from '@common/types';
3
+ export declare type DescriptionPropTypes = {
4
+ text: PDSTextType;
5
+ icon?: React.ReactNode;
6
+ };
7
+ declare const Description: React.FC<DescriptionPropTypes>;
8
+ export default Description;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var jsx_runtime_1 = require("react/jsx-runtime");
4
+ var components_1 = require("@hybrid/components");
5
+ var TextLabel_1 = require("../../TextLabel");
6
+ var Description = function (_a) {
7
+ var text = _a.text, icon = _a.icon;
8
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, colorTheme: "sysTextSecondary", styleTheme: "caption1Regular", textAlign: "right", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0), icon && icon] }, void 0));
9
+ };
10
+ exports.default = Description;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { BasicListItemProps } from '../BasicListItem';
3
+ export declare type IconButtonPropTypes = {
4
+ iconName: BasicListItemProps['iBtn2IconName'];
5
+ fill: boolean;
6
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
7
+ };
8
+ declare const IconButton: React.FC<IconButtonPropTypes>;
9
+ export default IconButton;
@@ -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 styled_components_1 = __importDefault(require("styled-components"));
12
+ var IconButton_1 = require("../../IconButton");
13
+ var IconButton = function (_a) {
14
+ var iconName = _a.iconName, fill = _a.fill, onClick = _a.onClick;
15
+ return ((0, jsx_runtime_1.jsx)(S_IconWrapper, { children: iconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iconName, iconFillType: fill ? 'fill' : 'line', baseSize: "medium", iconSize: 20, shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: onClick, iconColorKey: "ui_cpnt_button_icon_default" }, 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 = IconButton;
19
+ var templateObject_1;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { BasicListItemProps } from '../BasicListItem';
3
+ export declare type MainButtonPropTypes = {
4
+ text: BasicListItemProps['mBtnText'];
5
+ fill: boolean;
6
+ onClick: BasicListItemProps['onClickMBtn'];
7
+ };
8
+ declare const MainButton: React.FC<MainButtonPropTypes>;
9
+ export default MainButton;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var jsx_runtime_1 = require("react/jsx-runtime");
4
+ var components_1 = require("@hybrid/components");
5
+ var MainButton_1 = require("../../MainButton");
6
+ var MainButton = function (_a) {
7
+ var text = _a.text, fill = _a.fill, onClick = _a.onClick;
8
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(MainButton_1.MainButton, { text: text, fillType: fill ? 'fill' : 'line', size: "small", onClick: onClick }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
9
+ };
10
+ exports.default = MainButton;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import type { DescriptionPropTypes } from './Description';
3
+ import type { IconButtonPropTypes } from './IconButton';
4
+ import type { MainButtonPropTypes } from './MainButton';
5
+ import type { SwitchPropTypes } from './Switch';
6
+ declare type RightBoxPropTypes = React.FunctionComponent<{
7
+ hasFixedHeight: boolean;
8
+ }> & {
9
+ Description: React.FC<DescriptionPropTypes>;
10
+ IconButton: React.FC<IconButtonPropTypes>;
11
+ MainButton: React.FC<MainButtonPropTypes>;
12
+ Switch: React.FC<SwitchPropTypes>;
13
+ };
14
+ declare const RightBox: RightBoxPropTypes;
15
+ export default RightBox;
@@ -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;