pds-dev-kit-web 2.0.0-beta.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +3 -1
  2. package/dist/src/common/styles/colorSet/PaletteColor_light.json +3 -1
  3. package/dist/src/common/styles/colorSet/UIColor.json +4 -1
  4. package/dist/src/common/styles/colorSet/index.d.ts +9 -2
  5. package/dist/src/common/styles/colorSet/index.js +2 -2
  6. package/dist/src/common/styles/colorSet/ui-type.d.ts +3 -0
  7. package/dist/src/desktop/components/AdminList/AdminList.js +22 -8
  8. package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +1 -0
  9. package/dist/src/desktop/components/BasicListItem/BasicListItem.js +10 -99
  10. package/dist/src/desktop/components/BasicListItem/Contents.d.ts +16 -0
  11. package/dist/src/desktop/components/BasicListItem/Contents.js +31 -0
  12. package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.d.ts +7 -0
  13. package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.js +27 -0
  14. package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.d.ts +6 -0
  15. package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.js +19 -0
  16. package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.d.ts +8 -0
  17. package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.js +19 -0
  18. package/dist/src/desktop/components/BasicListItem/LeftBox/Image.d.ts +8 -0
  19. package/dist/src/desktop/components/BasicListItem/LeftBox/Image.js +9 -0
  20. package/dist/src/desktop/components/BasicListItem/LeftBox/LeftBox.d.ts +17 -0
  21. package/dist/src/desktop/components/BasicListItem/LeftBox/LeftBox.js +42 -0
  22. package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.d.ts +9 -0
  23. package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.js +13 -0
  24. package/dist/src/desktop/components/BasicListItem/LeftBox/index.d.ts +2 -0
  25. package/dist/src/desktop/components/BasicListItem/LeftBox/index.js +8 -0
  26. package/dist/src/desktop/components/BasicListItem/RightBox/Description.d.ts +8 -0
  27. package/dist/src/desktop/components/BasicListItem/RightBox/Description.js +10 -0
  28. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +9 -0
  29. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +19 -0
  30. package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.d.ts +9 -0
  31. package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.js +10 -0
  32. package/dist/src/desktop/components/BasicListItem/RightBox/RightBox.d.ts +15 -0
  33. package/dist/src/desktop/components/BasicListItem/RightBox/RightBox.js +40 -0
  34. package/dist/src/desktop/components/BasicListItem/RightBox/Switch.d.ts +10 -0
  35. package/dist/src/desktop/components/BasicListItem/RightBox/Switch.js +19 -0
  36. package/dist/src/desktop/components/BasicListItem/RightBox/index.d.ts +2 -0
  37. package/dist/src/desktop/components/BasicListItem/RightBox/index.js +8 -0
  38. package/dist/src/desktop/components/Radio/Radio.js +2 -2
  39. package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +1 -0
  40. package/dist/src/mobile/components/BasicListItem/BasicListItem.js +10 -99
  41. package/dist/src/mobile/components/BasicListItem/Contents.d.ts +16 -0
  42. package/dist/src/mobile/components/BasicListItem/Contents.js +31 -0
  43. package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.d.ts +7 -0
  44. package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.js +27 -0
  45. package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.d.ts +6 -0
  46. package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.js +19 -0
  47. package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.d.ts +8 -0
  48. package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.js +19 -0
  49. package/dist/src/mobile/components/BasicListItem/LeftBox/Image.d.ts +8 -0
  50. package/dist/src/mobile/components/BasicListItem/LeftBox/Image.js +9 -0
  51. package/dist/src/mobile/components/BasicListItem/LeftBox/LeftBox.d.ts +17 -0
  52. package/dist/src/mobile/components/BasicListItem/LeftBox/LeftBox.js +42 -0
  53. package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.d.ts +9 -0
  54. package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.js +13 -0
  55. package/dist/src/mobile/components/BasicListItem/LeftBox/index.d.ts +2 -0
  56. package/dist/src/mobile/components/BasicListItem/LeftBox/index.js +8 -0
  57. package/dist/src/mobile/components/BasicListItem/RightBox/Description.d.ts +8 -0
  58. package/dist/src/mobile/components/BasicListItem/RightBox/Description.js +10 -0
  59. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +9 -0
  60. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +19 -0
  61. package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.d.ts +9 -0
  62. package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.js +10 -0
  63. package/dist/src/mobile/components/BasicListItem/RightBox/RightBox.d.ts +15 -0
  64. package/dist/src/mobile/components/BasicListItem/RightBox/RightBox.js +40 -0
  65. package/dist/src/mobile/components/BasicListItem/RightBox/Switch.d.ts +10 -0
  66. package/dist/src/mobile/components/BasicListItem/RightBox/Switch.js +19 -0
  67. package/dist/src/mobile/components/BasicListItem/RightBox/index.d.ts +2 -0
  68. package/dist/src/mobile/components/BasicListItem/RightBox/index.js +8 -0
  69. package/dist/src/sub/AdminList/AdminList/AdminList.d.ts +14 -14
  70. package/dist/src/sub/AdminList/AdminList/AdminList.js +24 -10
  71. package/dist/src/sub/AdminList/AdminList/HeaderRow.d.ts +10 -10
  72. package/dist/src/sub/AdminList/AdminList/HeaderRow.js +2 -2
  73. package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.d.ts +1 -1
  74. package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.js +2 -2
  75. package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.d.ts +1 -1
  76. package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.js +2 -2
  77. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.d.ts +4 -5
  78. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +6 -6
  79. package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.d.ts +1 -1
  80. package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.js +2 -2
  81. package/dist/src/sub/AdminList/ToolBar/ChipList.d.ts +1 -1
  82. package/dist/src/sub/AdminList/ToolBar/ChipList.js +1 -1
  83. package/dist/src/sub/AdminList/ToolBar/SearchField.js +4 -4
  84. package/dist/src/sub/AdminList/ToolBar/ToolBar.d.ts +1 -1
  85. package/dist/src/sub/AdminList/ToolBar/ToolBar.js +3 -3
  86. package/package.json +4 -2
  87. package/release-note.md +4 -10
@@ -278,5 +278,7 @@
278
278
  "sys_storyboard_card_base_blue01": "blue30",
279
279
  "sys_storyboard_card_base_red01": "red30",
280
280
  "sys_storyboard_card_base_green01": "green50",
281
- "sys_brand_secondary_variant": "darkgreen700"
281
+ "sys_brand_secondary_variant": "darkgreen700",
282
+ "sys_button_tooltip_base": "white/opacity50",
283
+ "sys_text_button_tooltip": "grey900"
282
284
  }
@@ -278,5 +278,7 @@
278
278
  "sys_storyboard_card_base_blue01": "blue30",
279
279
  "sys_storyboard_card_base_red01": "red30",
280
280
  "sys_storyboard_card_base_green01": "green50",
281
- "sys_brand_secondary_variant": "green700"
281
+ "sys_brand_secondary_variant": "green700",
282
+ "sys_button_tooltip_base": "black/opacity70",
283
+ "sys_text_button_tooltip": "white"
282
284
  }
@@ -743,5 +743,8 @@
743
743
  "ui_94": "sys_storyboard_card_base_red01",
744
744
  "ui_95": "sys_storyboard_card_base_green01",
745
745
  "ui_cpnt_icon_sys_brandsecondary_variant": "sys_brand_secondary_variant",
746
- "ui_96": "sys_component_base_10"
746
+ "ui_96": "sys_component_base_10",
747
+ "ui_97": "sys_component_base_black",
748
+ "ui_cpnt_button_tooltip_base": "sys_button_tooltip_base",
749
+ "ui_cpnt_textlabel_button_tooltip": "sys_text_button_tooltip"
747
750
  }
@@ -102,7 +102,7 @@ declare const colorSet: {
102
102
  blue30: string;
103
103
  red30: string;
104
104
  };
105
- readonly PaletteColor_light: {
105
+ readonly PaletteColor_Dark: {
106
106
  sys_container_background_01: string;
107
107
  sys_container_background_02: string;
108
108
  sys_container_background_03: string;
@@ -383,8 +383,10 @@ declare const colorSet: {
383
383
  sys_storyboard_card_base_red01: string;
384
384
  sys_storyboard_card_base_green01: string;
385
385
  sys_brand_secondary_variant: string;
386
+ sys_button_tooltip_base: string;
387
+ sys_text_button_tooltip: string;
386
388
  };
387
- readonly PaletteColor_Dark: {
389
+ readonly PaletteColor_light: {
388
390
  sys_container_background_01: string;
389
391
  sys_container_background_02: string;
390
392
  sys_container_background_03: string;
@@ -665,6 +667,8 @@ declare const colorSet: {
665
667
  sys_storyboard_card_base_red01: string;
666
668
  sys_storyboard_card_base_green01: string;
667
669
  sys_brand_secondary_variant: string;
670
+ sys_button_tooltip_base: string;
671
+ sys_text_button_tooltip: string;
668
672
  };
669
673
  readonly UIColor: {
670
674
  ui_cpnt_button_fill_base_primary: string;
@@ -1412,6 +1416,9 @@ declare const colorSet: {
1412
1416
  ui_95: string;
1413
1417
  ui_cpnt_icon_sys_brandsecondary_variant: string;
1414
1418
  ui_96: string;
1419
+ ui_97: string;
1420
+ ui_cpnt_button_tooltip_base: string;
1421
+ ui_cpnt_textlabel_button_tooltip: string;
1415
1422
  };
1416
1423
  };
1417
1424
  export default colorSet;
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /* eslint-disable import/order */
7
7
  var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
8
- var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
9
8
  var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
9
+ var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
10
10
  var UIColor_json_1 = __importDefault(require("./UIColor.json"));
11
11
  var colorSet = {
12
12
  SemanticColor: SemanticColor_json_1.default,
13
- PaletteColor_light: PaletteColor_light_json_1.default,
14
13
  PaletteColor_Dark: PaletteColor_Dark_json_1.default,
14
+ PaletteColor_light: PaletteColor_light_json_1.default,
15
15
  UIColor: UIColor_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -744,4 +744,7 @@ export interface UITheme {
744
744
  ui_95: string;
745
745
  ui_cpnt_icon_sys_brandsecondary_variant: string;
746
746
  ui_96: string;
747
+ ui_97: string;
748
+ ui_cpnt_button_tooltip_base: string;
749
+ ui_cpnt_textlabel_button_tooltip: string;
747
750
  }
@@ -54,14 +54,24 @@ var TextLabel_1 = require("../TextLabel");
54
54
  var BulkActionBar_1 = __importDefault(require("./BulkActionBar"));
55
55
  var HeaderRow_1 = __importDefault(require("./HeaderRow"));
56
56
  function AdminList(_a) {
57
- var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'multi' : _b, _c = _a.headerRowMode, headerRowMode = _c === void 0 ? 'use' : _c, column2HeaderText = _a.column2HeaderText, column3HeaderText = _a.column3HeaderText, _d = _a.column3Width, column3Width = _d === void 0 ? 'small' : _d, column4HeaderText = _a.column4HeaderText, _e = _a.column4Width, column4Width = _e === void 0 ? 'small' : _e, column5HeaderText = _a.column5HeaderText, _f = _a.column5Width, column5Width = _f === void 0 ? 'small' : _f, column6HeaderText = _a.column6HeaderText, _g = _a.column6Width, column6Width = _g === void 0 ? 'small' : _g, column7HeaderText = _a.column7HeaderText, _h = _a.column7Width, column7Width = _h === void 0 ? 'small' : _h, column8HeaderText = _a.column8HeaderText, _j = _a.column8Width, column8Width = _j === void 0 ? 'small' : _j, column9HeaderText = _a.column9HeaderText, _k = _a.column9Width, column9Width = _k === void 0 ? 'small' : _k, column10HeaderText = _a.column10HeaderText, _l = _a.column10Width, column10Width = _l === void 0 ? 'small' : _l, _m = _a.dropdownMode, dropdownMode = _m === void 0 ? 'dropdown_amount1' : _m, dropdown1Value = _a.dropdown1Value, dropdown2Value = _a.dropdown2Value, dropdown3Value = _a.dropdown3Value, dropdown1DefaultText = _a.dropdown1DefaultText, dropdown2DefaultText = _a.dropdown2DefaultText, dropdown3DefaultText = _a.dropdown3DefaultText, dropdown1HintText = _a.dropdown1HintText, dropdown2HintText = _a.dropdown2HintText, dropdown3HintText = _a.dropdown3HintText, dropdown1ValueArray = _a.dropdown1ValueArray, dropdown2ValueArray = _a.dropdown2ValueArray, dropdown3ValueArray = _a.dropdown3ValueArray, _o = _a.quickActionBtnMode, quickActionBtnMode = _o === void 0 ? 'btn_amount2' : _o, quickActionBtn1Text = _a.quickActionBtn1Text, quickActionBtn2Text = _a.quickActionBtn2Text, quickActionBtn3Text = _a.quickActionBtn3Text, _p = _a.quickActionBtnType, quickActionBtnType = _p === void 0 ? 'fix' : _p, tBtnMode = _a.tBtnMode, tBtn1Text = _a.tBtn1Text, tBtn2Text = _a.tBtn2Text, tBtn3Text = _a.tBtn3Text, emptyText = _a.emptyText, _q = _a.scrollMode, scrollMode = _q === void 0 ? 'infinite' : _q, _r = _a.scrollVisibleType, scrollVisibleType = _r === void 0 ? 'moving' : _r, selectedIds = _a.selectedIds, maintainIds = _a.maintainIds, children = _a.children, _s = _a.headerRowCheckboxName, headerRowCheckboxName = _s === void 0 ? 'all' : _s, _t = _a.flexibleHideInfoMode, flexibleHideInfoMode = _t === void 0 ? 'use' : _t, onChangeDropdown1 = _a.onChangeDropdown1, onChangeDropdown2 = _a.onChangeDropdown2, onChangeDropdown3 = _a.onChangeDropdown3, onClickTBtn1 = _a.onClickTBtn1, onClickTBtn2 = _a.onClickTBtn2, onClickTBtn3 = _a.onClickTBtn3, onClickQuickActionBtn1 = _a.onClickQuickActionBtn1, onClickQuickActionBtn2 = _a.onClickQuickActionBtn2, onClickQuickActionBtn3 = _a.onClickQuickActionBtn3, onSelect = _a.onSelect, quickActionBtn1State = _a.quickActionBtn1State, quickActionBtn2State = _a.quickActionBtn2State, quickActionBtn3State = _a.quickActionBtn3State, _u = _a.mBtnMode, mBtnMode = _u === void 0 ? 'mbtn_amount1' : _u, mBtn1Text = _a.mBtn1Text, mBtn2Text = _a.mBtn2Text, mBtn3Text = _a.mBtn3Text, onClickMBtn1 = _a.onClickMBtn1, onClickMBtn2 = _a.onClickMBtn2, onClickMBtn3 = _a.onClickMBtn3;
57
+ var _b;
58
+ var _c = _a.selectionMode, selectionMode = _c === void 0 ? 'multi' : _c, _d = _a.headerRowMode, headerRowMode = _d === void 0 ? 'use' : _d, column2HeaderText = _a.column2HeaderText, column3HeaderText = _a.column3HeaderText, _e = _a.column3Width, column3Width = _e === void 0 ? 'small' : _e, column4HeaderText = _a.column4HeaderText, _f = _a.column4Width, column4Width = _f === void 0 ? 'small' : _f, column5HeaderText = _a.column5HeaderText, _g = _a.column5Width, column5Width = _g === void 0 ? 'small' : _g, column6HeaderText = _a.column6HeaderText, _h = _a.column6Width, column6Width = _h === void 0 ? 'small' : _h, column7HeaderText = _a.column7HeaderText, _j = _a.column7Width, column7Width = _j === void 0 ? 'small' : _j, column8HeaderText = _a.column8HeaderText, _k = _a.column8Width, column8Width = _k === void 0 ? 'small' : _k, column9HeaderText = _a.column9HeaderText, _l = _a.column9Width, column9Width = _l === void 0 ? 'small' : _l, column10HeaderText = _a.column10HeaderText, _m = _a.column10Width, column10Width = _m === void 0 ? 'small' : _m, _o = _a.dropdownMode, dropdownMode = _o === void 0 ? 'dropdown_amount1' : _o, dropdown1Value = _a.dropdown1Value, dropdown2Value = _a.dropdown2Value, dropdown3Value = _a.dropdown3Value, dropdown1DefaultText = _a.dropdown1DefaultText, dropdown2DefaultText = _a.dropdown2DefaultText, dropdown3DefaultText = _a.dropdown3DefaultText, dropdown1HintText = _a.dropdown1HintText, dropdown2HintText = _a.dropdown2HintText, dropdown3HintText = _a.dropdown3HintText, dropdown1ValueArray = _a.dropdown1ValueArray, dropdown2ValueArray = _a.dropdown2ValueArray, dropdown3ValueArray = _a.dropdown3ValueArray, _p = _a.quickActionBtnMode, quickActionBtnMode = _p === void 0 ? 'btn_amount2' : _p, quickActionBtn1Text = _a.quickActionBtn1Text, quickActionBtn2Text = _a.quickActionBtn2Text, quickActionBtn3Text = _a.quickActionBtn3Text, _q = _a.quickActionBtnType, quickActionBtnType = _q === void 0 ? 'fix' : _q, tBtnMode = _a.tBtnMode, tBtn1Text = _a.tBtn1Text, tBtn2Text = _a.tBtn2Text, tBtn3Text = _a.tBtn3Text, emptyText = _a.emptyText, _r = _a.scrollMode, scrollMode = _r === void 0 ? 'infinite' : _r, _s = _a.scrollVisibleType, scrollVisibleType = _s === void 0 ? 'moving' : _s, selectedIds = _a.selectedIds, maintainIds = _a.maintainIds, children = _a.children, _t = _a.headerRowCheckboxName, headerRowCheckboxName = _t === void 0 ? 'all' : _t, _u = _a.flexibleHideInfoMode, flexibleHideInfoMode = _u === void 0 ? 'use' : _u, onChangeDropdown1 = _a.onChangeDropdown1, onChangeDropdown2 = _a.onChangeDropdown2, onChangeDropdown3 = _a.onChangeDropdown3, onClickTBtn1 = _a.onClickTBtn1, onClickTBtn2 = _a.onClickTBtn2, onClickTBtn3 = _a.onClickTBtn3, onClickQuickActionBtn1 = _a.onClickQuickActionBtn1, onClickQuickActionBtn2 = _a.onClickQuickActionBtn2, onClickQuickActionBtn3 = _a.onClickQuickActionBtn3, onSelect = _a.onSelect, quickActionBtn1State = _a.quickActionBtn1State, quickActionBtn2State = _a.quickActionBtn2State, quickActionBtn3State = _a.quickActionBtn3State, _v = _a.mBtnMode, mBtnMode = _v === void 0 ? 'mbtn_amount1' : _v, mBtn1Text = _a.mBtn1Text, mBtn2Text = _a.mBtn2Text, mBtn3Text = _a.mBtn3Text, onClickMBtn1 = _a.onClickMBtn1, onClickMBtn2 = _a.onClickMBtn2, onClickMBtn3 = _a.onClickMBtn3;
58
59
  var selectAllMethods = (0, react_hook_form_1.useForm)();
59
60
  var checkboxMethods = (0, react_hook_form_1.useForm)();
60
61
  var isAllCheckboxSelected = (0, react_hook_form_1.useWatch)({
61
62
  name: headerRowCheckboxName,
62
63
  control: selectAllMethods.control
63
64
  });
64
- var _v = (0, react_1.useState)(false), isBulkActionBarOpen = _v[0], setIsBulkActionBarOpen = _v[1];
65
+ var _w = (0, react_1.useState)(false), isBulkActionBarOpen = _w[0], setIsBulkActionBarOpen = _w[1];
66
+ var childrenPropIds = [];
67
+ if (children && Array.isArray(children)) {
68
+ childrenPropIds = (_b = react_1.default.Children.map(children, function (child) {
69
+ if (react_1.default.isValidElement(child)) {
70
+ return child.props.id;
71
+ }
72
+ return null;
73
+ })) === null || _b === void 0 ? void 0 : _b.filter(Boolean);
74
+ }
65
75
  /**
66
76
  * @when AdminListItem이 선택되었을 때
67
77
  * @expected 벌크액션바 활성화 여부와 체크박스 선택 여부를 결정합니다.
@@ -72,7 +82,7 @@ function AdminList(_a) {
72
82
  }
73
83
  if (!selectedIds.length) {
74
84
  checkboxMethods.reset();
75
- selectAllMethods.reset();
85
+ selectAllMethods.setValue(headerRowCheckboxName, false);
76
86
  if (maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.length) {
77
87
  setIsBulkActionBarOpen(true);
78
88
  maintainIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), true); });
@@ -89,19 +99,23 @@ function AdminList(_a) {
89
99
  }
90
100
  setIsBulkActionBarOpen(true);
91
101
  selectedIds.forEach(function (val) { return checkboxMethods.setValue(val.toString(), true); });
102
+ // NOTE Children에 포함된 요소의 id와 선택되어 있는 id를 비교해 전체 체크박스의 상태를 변경합니다.
103
+ var hasAllIds = childrenPropIds === null || childrenPropIds === void 0 ? void 0 : childrenPropIds.every(function (id) {
104
+ return selectedIds.some(function (selectedId) { return selectedId === id; });
105
+ });
106
+ selectAllMethods.setValue(headerRowCheckboxName, hasAllIds ? true : false);
92
107
  }, [selectedIds, maintainIds]);
93
108
  var handleSelectAllCheckbox = function () {
94
- var allIds = Object.keys(checkboxMethods.getValues()).map(function (id) { return Number(id); });
95
- var basicIds = allIds.filter(function (id) { return !(maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.includes(id)); });
109
+ var basicIds = childrenPropIds === null || childrenPropIds === void 0 ? void 0 : childrenPropIds.filter(function (id) { return !(maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.includes(id)); });
96
110
  if (!isAllCheckboxSelected) {
97
- allIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), true); });
98
- if (onSelect) {
111
+ childrenPropIds === null || childrenPropIds === void 0 ? void 0 : childrenPropIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), true); });
112
+ if (onSelect && basicIds) {
99
113
  onSelect(basicIds);
100
114
  }
101
115
  return;
102
116
  }
103
117
  if (maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.length) {
104
- basicIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), false); });
118
+ basicIds === null || basicIds === void 0 ? void 0 : basicIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), false); });
105
119
  if (onSelect) {
106
120
  onSelect([]);
107
121
  }
@@ -46,6 +46,7 @@ export declare type StyleProps = {
46
46
  hasOnClick?: boolean;
47
47
  spacingMode?: 'none' | 'use';
48
48
  onlyLeftArea?: boolean;
49
+ dividerType?: 'none' | 'solid';
49
50
  };
50
51
  declare function BasicListItem({ selectionMode, titleText, titleTextColorTheme, descText, badgeMode, badgeStatus, imageIconMode, imageShapeType, imageSrc, iconName, iconFillType, displayType, captionText, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, mBtnFillType, mBtnText, dividerType, titleFontWeight, checkboxId, radioId, radioValue, switchName, switchState, switchStatus, spacingMode, onClick, onClickIBtn1, onClickIBtn2, onClickMBtn, onClickRadio, onClickSwitch }: BasicListItemProps): JSX.Element;
51
52
  export default BasicListItem;
@@ -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, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch;
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,38 +64,7 @@ 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": "desktop", displayType: displayType, selectionMode: selectionMode, isSelected: isSelected, onClick: handleClick, hasOnClick: !!onClick, 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", onClick: 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": "desktop", displayType: displayType, selectionMode: selectionMode, isSelected: isSelected, onClick: handleClick, hasOnClick: !!onClick, 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 cursor: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n cursor: ", ";\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;
@@ -145,40 +82,14 @@ var S_BasicListItem = styled_components_1.default.li(templateObject_1 || (templa
145
82
  return 'default';
146
83
  }, function (_a) {
147
84
  var spacingMode = _a.spacingMode, theme = _a.theme;
148
- return spacingMode === 'use' && "0 " + theme.spacing.spacingC;
85
+ return spacingMode === 'use' && "0 " + theme.spacing.spacingE;
149
86
  });
150
- 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) {
87
+ 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) {
88
+ var dividerType = _a.dividerType, theme = _a.theme;
89
+ return dividerType === 'solid' && "1px solid " + theme.ui_cpnt_divider;
90
+ }, function (_a) {
151
91
  var imageIconMode = _a.imageIconMode, captionText = _a.captionText;
152
92
  return imageIconMode === 'image' || captionText ? '80px' : '56px';
153
- }, function (_a) {
154
- var spacingMode = _a.spacingMode, theme = _a.theme;
155
- return spacingMode === 'use' && "0 " + theme.spacing.spacingC;
156
- });
157
- 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) {
158
- var onlyLeftArea = _a.onlyLeftArea;
159
- return (onlyLeftArea ? 'auto' : 7);
160
- });
161
- 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"])));
162
- 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"])));
163
- 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"])));
164
- var S_TextWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
165
- 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) {
166
- var badgeStatus = _a.badgeStatus, theme = _a.theme;
167
- return badgeStatus &&
168
- {
169
- cancel: "" + theme.ui_cpnt_list_badge_cancel,
170
- active: "" + theme.ui_cpnt_list_badge_active_primary,
171
- inactive: "" + theme.ui_cpnt_list_badge_disabled
172
- }[badgeStatus];
173
- });
174
- 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) {
175
- var displayType = _a.displayType;
176
- return (displayType === 'text' ? '40px' : 'auto');
177
- });
178
- 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"])));
179
- var S_DividerWrapper = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
180
- var spacingMode = _a.spacingMode;
181
- return (spacingMode !== 'none' ? 'calc(100% - 24px)' : '100%');
182
93
  });
183
94
  exports.default = BasicListItem;
184
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
95
+ 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;