pds-dev-kit-web-test 2.5.366 → 2.5.367

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 (205) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.js +3 -2
  3. package/dist/src/common/assets/icons/fill/VideoStop.d.ts +4 -0
  4. package/dist/src/common/assets/icons/fill/VideoStop.js +30 -0
  5. package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
  6. package/dist/src/common/assets/icons/fill/index.js +3 -1
  7. package/dist/src/common/assets/icons/line/CheckBox.d.ts +4 -0
  8. package/dist/src/common/assets/icons/line/CheckBox.js +30 -0
  9. package/dist/src/common/assets/icons/line/Dropdown.d.ts +4 -0
  10. package/dist/src/common/assets/icons/line/Dropdown.js +30 -0
  11. package/dist/src/common/assets/icons/line/Radio.d.ts +4 -0
  12. package/dist/src/common/assets/icons/line/Radio.js +30 -0
  13. package/dist/src/common/assets/icons/line/SectionQuestion32.d.ts +4 -0
  14. package/dist/src/common/assets/icons/line/SectionQuestion32.js +30 -0
  15. package/dist/src/common/assets/icons/line/SectionQuestion40.d.ts +4 -0
  16. package/dist/src/common/assets/icons/line/SectionQuestion40.js +30 -0
  17. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.d.ts +4 -0
  18. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.js +30 -0
  19. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.d.ts +4 -0
  20. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.js +30 -0
  21. package/dist/src/common/assets/icons/line/TextLong.d.ts +4 -0
  22. package/dist/src/common/assets/icons/line/TextLong.js +30 -0
  23. package/dist/src/common/assets/icons/line/TextShort.d.ts +4 -0
  24. package/dist/src/common/assets/icons/line/TextShort.js +30 -0
  25. package/dist/src/common/assets/icons/line/VideoStop.d.ts +4 -0
  26. package/dist/src/common/assets/icons/line/VideoStop.js +30 -0
  27. package/dist/src/common/assets/icons/line/index.d.ts +10 -0
  28. package/dist/src/common/assets/icons/line/index.js +21 -1
  29. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +2 -1
  30. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +48 -4
  31. package/dist/src/common/hooks/useTooltip.js +1 -1
  32. package/dist/src/common/services/i18n/resources/en.json +9 -1
  33. package/dist/src/common/services/i18n/resources/es.json +9 -1
  34. package/dist/src/common/services/i18n/resources/fil.json +9 -1
  35. package/dist/src/common/services/i18n/resources/index.d.ts +56 -0
  36. package/dist/src/common/services/i18n/resources/ja.json +9 -1
  37. package/dist/src/common/services/i18n/resources/ko.json +9 -1
  38. package/dist/src/common/services/i18n/resources/zh-cn.json +9 -1
  39. package/dist/src/common/services/i18n/resources/zh-tw.json +9 -1
  40. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +8 -1
  41. package/dist/src/common/styles/colorSet/PaletteColor_light.json +8 -1
  42. package/dist/src/common/styles/colorSet/UIColor.json +13 -1
  43. package/dist/src/common/styles/colorSet/index.d.ts +152 -126
  44. package/dist/src/common/styles/colorSet/index.js +2 -2
  45. package/dist/src/common/styles/colorSet/ui-type.d.ts +12 -0
  46. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  47. package/dist/src/common/utils/dateHelper.d.ts +13 -0
  48. package/dist/src/common/utils/dateHelper.js +87 -0
  49. package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +1 -0
  50. package/dist/src/desktop/components/AdminListItem/AdminListItem.js +27 -13
  51. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  52. package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +3 -1
  53. package/dist/src/desktop/components/BasicListItem/BasicListItem.js +17 -4
  54. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
  55. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +2 -2
  56. package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +3 -1
  57. package/dist/src/desktop/components/Checkbox/Checkbox.js +17 -3
  58. package/dist/src/desktop/components/Radio/Radio.js +2 -2
  59. package/dist/src/desktop/components/TextField/TextField.js +41 -15
  60. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +2 -2
  61. package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +3 -1
  62. package/dist/src/mobile/components/BasicListItem/BasicListItem.js +17 -4
  63. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
  64. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +2 -2
  65. package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +3 -1
  66. package/dist/src/mobile/components/Checkbox/Checkbox.js +17 -3
  67. package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +16 -0
  68. package/dist/src/mobile/components/DatePicker/DatePicker.js +156 -0
  69. package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +14 -0
  70. package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +27 -0
  71. package/dist/src/mobile/components/DatePicker/Day.d.ts +13 -0
  72. package/dist/src/mobile/components/DatePicker/Day.js +94 -0
  73. package/dist/src/mobile/components/DatePicker/index.d.ts +1 -0
  74. package/dist/src/{sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner → mobile/components/DatePicker}/index.js +3 -3
  75. package/dist/src/mobile/components/DatePicker/utils.d.ts +16 -0
  76. package/dist/src/mobile/components/DatePicker/utils.js +68 -0
  77. package/dist/src/mobile/components/Radio/Radio.js +2 -2
  78. package/dist/src/mobile/components/TextField/TextField.js +41 -15
  79. package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +6 -1
  80. package/dist/src/mobile/components/TextLabel/TextLabel.js +83 -3
  81. package/dist/src/mobile/components/index.d.ts +2 -1
  82. package/dist/src/mobile/components/index.js +3 -1
  83. package/dist/src/mobile/index.d.ts +1 -1
  84. package/dist/src/mobile/index.js +3 -2
  85. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +1 -1
  86. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +1 -1
  87. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +1 -1
  88. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +1 -1
  89. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +1 -1
  90. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +1 -1
  91. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +1 -1
  92. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +1 -1
  93. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +1 -1
  94. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +1 -1
  95. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +1 -1
  96. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +1 -1
  97. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +1 -1
  98. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +1 -1
  99. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +1 -1
  100. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +1 -1
  101. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +1 -1
  102. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +1 -1
  103. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +1 -1
  104. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +1 -1
  105. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +1 -1
  106. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
  107. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +1 -4
  108. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +2 -4
  109. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
  110. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +6 -0
  111. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +27 -0
  112. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  113. package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
  114. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +4 -1
  115. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +5 -1
  116. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +26 -25
  117. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  118. package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +1 -0
  119. package/dist/src/sub/DynamicLayout/mocks.d.ts +778 -9
  120. package/dist/src/sub/DynamicLayout/mocks.js +4239 -4293
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +11 -15
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -13
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +23 -19
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +2 -154
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +3 -33
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +6 -28
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +11 -48
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.js +0 -1
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +11 -56
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +10 -27
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -3
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -52
  139. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +0 -1
  140. package/dist/src/sub/DynamicLayout/types.d.ts +15 -48
  141. package/package.json +3 -3
  142. package/release-note.md +3 -3
  143. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +0 -20
  144. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +0 -1132
  145. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +0 -11
  146. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +0 -45
  147. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +0 -9
  148. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +0 -53
  149. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +0 -139
  150. package/dist/src/sub/DynamicLayout/compositionActionTypes.js +0 -2
  151. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +0 -8
  152. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +0 -14
  153. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +0 -3
  154. package/dist/src/sub/DynamicLayout/mock_composition.js +0 -801
  155. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +0 -1
  156. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +0 -1099
  157. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +0 -2
  158. package/dist/src/sub/DynamicLayout/mock_contentsList.js +0 -298
  159. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +0 -2
  160. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +0 -320
  161. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +0 -17
  162. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +0 -39
  163. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +0 -31
  164. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +0 -169
  165. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +0 -26
  166. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +0 -185
  167. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +0 -21
  168. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +0 -94
  169. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +0 -50
  170. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +0 -919
  171. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +0 -1
  172. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +0 -8
  173. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +0 -90
  174. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +0 -2
  175. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +0 -8
  176. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +0 -100
  177. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +0 -17
  178. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +0 -39
  179. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +0 -27
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +0 -188
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +0 -30
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +0 -357
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +0 -1
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +0 -8
  185. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +0 -46
  186. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +0 -2
  187. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +0 -8
  188. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +0 -150
  189. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +0 -15
  190. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +0 -39
  191. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +0 -31
  192. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +0 -169
  193. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +0 -26
  194. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +0 -185
  195. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +0 -21
  196. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +0 -94
  197. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +0 -1
  198. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +0 -48
  199. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +0 -855
  200. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +0 -80
  201. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +0 -2
  202. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +0 -14
  203. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +0 -26
  204. /package/dist/src/sub/DynamicLayout/{mock_video.d.ts → mock_video_cb.d.ts} +0 -0
  205. /package/dist/src/sub/DynamicLayout/{mock_video.js → mock_video_cb.js} +0 -0
@@ -25,7 +25,7 @@ var Contents_1 = __importDefault(require("./Contents"));
25
25
  var LeftBox_1 = require("./LeftBox");
26
26
  var RightBox_1 = require("./RightBox");
27
27
  function BasicListItem(_a) {
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.mBtnState, mBtnState = _o === void 0 ? 'normal' : _o, _p = _a.dividerType, dividerType = _p === void 0 ? 'none' : _p, _q = _a.titleFontWeight, titleFontWeight = _q === void 0 ? 'regular' : _q, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _r = _a.switchState, switchState = _r === void 0 ? 'normal' : _r, _s = _a.switchStatus, switchStatus = _s === void 0 ? 'off' : _s, _t = _a.spacingMode, spacingMode = _t === void 0 ? 'use' : _t, onClick = _a.onClick, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch;
28
+ var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, titleText = _a.titleText, _d = _a.titleTextColorTheme, titleTextColorTheme = _d === void 0 ? 'none' : _d, descText = _a.descText, _e = _a.badgeMode, badgeMode = _e === void 0 ? 'none' : _e, _f = _a.badgeStatus, badgeStatus = _f === void 0 ? 'inactive' : _f, _g = _a.imageIconMode, imageIconMode = _g === void 0 ? 'none' : _g, _h = _a.imageShapeType, imageShapeType = _h === void 0 ? 'round' : _h, imageSrc = _a.imageSrc, iconName = _a.iconName, _j = _a.iconFillType, iconFillType = _j === void 0 ? 'line' : _j, _k = _a.displayType, displayType = _k === void 0 ? 'none' : _k, captionText = _a.captionText, iBtn1IconName = _a.iBtn1IconName, _l = _a.iBtn1IconFillType, iBtn1IconFillType = _l === void 0 ? 'line' : _l, iBtn2IconName = _a.iBtn2IconName, _m = _a.iBtn2IconFillType, iBtn2IconFillType = _m === void 0 ? 'line' : _m, _o = _a.mBtnFillType, mBtnFillType = _o === void 0 ? 'fill' : _o, mBtnText = _a.mBtnText, _p = _a.mBtnState, mBtnState = _p === void 0 ? 'normal' : _p, _q = _a.dividerType, dividerType = _q === void 0 ? 'none' : _q, _r = _a.titleFontWeight, titleFontWeight = _r === void 0 ? 'regular' : _r, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _s = _a.switchState, switchState = _s === void 0 ? 'normal' : _s, _t = _a.switchStatus, switchStatus = _t === void 0 ? 'off' : _t, _u = _a.spacingMode, spacingMode = _u === void 0 ? 'use' : _u, onClick = _a.onClick, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch;
29
29
  var methods = (0, react_hook_form_1.useFormContext)();
30
30
  var isSelected = methods === null || methods === void 0 ? void 0 : methods.watch((checkboxId === null || checkboxId === void 0 ? void 0 : checkboxId.toString()) || '');
31
31
  var handleIBtn1Click = function (e) {
@@ -35,6 +35,8 @@ function BasicListItem(_a) {
35
35
  }
36
36
  };
37
37
  var handleClick = function (e) {
38
+ if (state === 'disabled')
39
+ return;
38
40
  switch (selectionMode) {
39
41
  case 'radio': {
40
42
  if (onClickRadio && radioId) {
@@ -64,11 +66,22 @@ function BasicListItem(_a) {
64
66
  }
65
67
  }
66
68
  };
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 }), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Radio, { id: radioId, value: radioValue, onChange: onClickRadio })), badgeMode === 'left' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Badge, { status: badgeStatus }), imageIconMode === 'image' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { src: imageSrc, shape: imageShapeType }), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Icon, { name: iconName, fill: iconFillType === 'fill' })), (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' }), captionText && (0, jsx_runtime_1.jsx)(Contents_1.default.Caption, { text: captionText })] })] })), (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 })) : undefined })), displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })), 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 }), (0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })] })), displayType === 'mbtn' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.MainButton, { text: mBtnText, fill: mBtnFillType === 'fill', state: mBtnState, onClick: onClickMBtn })), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Switch, { name: switchName, state: switchState, status: switchStatus, onClick: onClickSwitch }))] }))] })) })));
69
+ function titleTextColor() {
70
+ if (state === 'disabled') {
71
+ return 'sysTextTertiary';
72
+ }
73
+ if (titleTextColorTheme === 'none') {
74
+ return 'sysTextPrimary';
75
+ }
76
+ return 'sysTextError';
77
+ }
78
+ return ((0, jsx_runtime_1.jsx)(S_BasicListItem, __assign({ "x-pds-name": "BasicListItem", "x-pds-element-type": "component", "x-pds-device-type": "desktop", state: state, 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 }), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Radio, { id: radioId, value: radioValue, onChange: onClickRadio })), badgeMode === 'left' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Badge, { status: badgeStatus }), imageIconMode === 'image' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { src: imageSrc, shape: imageShapeType }), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Icon, { name: iconName, fill: iconFillType === 'fill' })), (0, jsx_runtime_1.jsxs)(Contents_1.default, { children: [(0, jsx_runtime_1.jsx)(Contents_1.default.Title, { text: titleText, colorTheme: titleTextColor(), font: titleFontWeight === 'bold' ? 'body2Bold' : 'body2Regular' }), captionText && (0, jsx_runtime_1.jsx)(Contents_1.default.Caption, { text: captionText })] })] })), (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, state: state })) : undefined })), displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click, state: state })), 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, state: state }), (0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click, state: state })] })), displayType === 'mbtn' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.MainButton, { text: mBtnText, fill: mBtnFillType === 'fill', state: state === 'disabled' ? 'disabled' : mBtnState, onClick: onClickMBtn })), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Switch, { name: switchName, state: state === 'disabled' ? 'disabled' : switchState, status: switchStatus, onClick: onClickSwitch }))] }))] })) })));
68
79
  }
69
80
  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) {
70
- var theme = _a.theme, isSelected = _a.isSelected;
71
- return isSelected ? theme.ui_cpnt_list_base_area_select : theme.ui_cpnt_list_base_area;
81
+ var theme = _a.theme, isSelected = _a.isSelected, state = _a.state;
82
+ return isSelected || state === 'disabled'
83
+ ? theme.ui_cpnt_list_base_area_select
84
+ : theme.ui_cpnt_list_base_area;
72
85
  }, function (_a) {
73
86
  var displayType = _a.displayType, selectionMode = _a.selectionMode, hasOnClick = _a.hasOnClick;
74
87
  if (displayType === 'ibtn_amount1' || displayType === 'ibtn_text' || displayType === 'none') {
@@ -4,6 +4,7 @@ export type IconButtonPropTypes = {
4
4
  iconName: BasicListItemProps['iBtn2IconName'];
5
5
  fill: boolean;
6
6
  onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
7
+ state?: BasicListItemProps['state'];
7
8
  };
8
9
  declare const IconButton: React.FC<IconButtonPropTypes>;
9
10
  export default IconButton;
@@ -11,8 +11,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
12
  var IconButton_1 = require("../../IconButton");
13
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" })) }));
14
+ var iconName = _a.iconName, fill = _a.fill, onClick = _a.onClick, state = _a.state;
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: state === 'disabled' ? 'ui_cpnt_button_icon_disabled' : 'ui_cpnt_button_icon_default' })) }));
16
16
  };
17
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
18
  exports.default = IconButton;
@@ -1,12 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import { Path } from 'react-hook-form';
3
3
  import type { IFormValues, PDSTextType } from '../../../common';
4
+ type ColorTheme = 'none' | 'white' | 'grey1';
4
5
  type CheckboxProps = {
5
6
  text?: PDSTextType;
6
7
  fontWeight?: 'bold' | 'regular';
7
8
  state?: 'normal' | 'disabled';
8
9
  name: Path<IFormValues>;
10
+ colorTheme?: ColorTheme;
9
11
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
10
12
  };
11
- declare function Checkbox({ text, fontWeight, state, name, onChange }: CheckboxProps): JSX.Element;
13
+ declare function Checkbox({ text, fontWeight, state, name, colorTheme, onChange }: CheckboxProps): JSX.Element;
12
14
  export default Checkbox;
@@ -24,7 +24,7 @@ var styled_components_1 = __importDefault(require("styled-components"));
24
24
  var hybrid_1 = require("../../../hybrid");
25
25
  var TextLabel_1 = require("../TextLabel");
26
26
  function Checkbox(_a) {
27
- var text = _a.text, _b = _a.fontWeight, fontWeight = _b === void 0 ? 'regular' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, name = _a.name, onChange = _a.onChange;
27
+ var text = _a.text, _b = _a.fontWeight, fontWeight = _b === void 0 ? 'regular' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, name = _a.name, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'none' : _d, onChange = _a.onChange;
28
28
  var register = (0, react_hook_form_1.useFormContext)().register;
29
29
  var checkboxFormRegister = register(name);
30
30
  var isChecked = (0, react_hook_form_1.useWatch)({ name: name });
@@ -34,10 +34,24 @@ function Checkbox(_a) {
34
34
  onChange(e);
35
35
  }
36
36
  };
37
+ var colorThemeSet = {
38
+ none: {
39
+ iconColorkey: 'ui_cpnt_selcontrols_icon_default',
40
+ textColorKey: 'ui_cpnt_selcontrols_text_default'
41
+ },
42
+ white: {
43
+ iconColorkey: 'ui_cpnt_selcontrols_icon_white',
44
+ textColorKey: 'ui_cpnt_selcontrols_text_white'
45
+ },
46
+ grey1: {
47
+ iconColorkey: 'ui_cpnt_selcontrols_icon_grey_01',
48
+ textColorKey: 'ui_cpnt_selcontrols_text_grey_01'
49
+ }
50
+ };
37
51
  var icon = function () {
38
52
  switch (state) {
39
53
  case 'normal': {
40
- return isChecked ? ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_on", fillType: "fill", colorKey: "ui_cpnt_selcontrols_icon_primary" })) : ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_off", fillType: "line", colorKey: "ui_cpnt_selcontrols_icon_default" }));
54
+ return isChecked ? ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_on", fillType: "fill", colorKey: "ui_cpnt_selcontrols_icon_primary" })) : ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_off", fillType: "line", colorKey: colorThemeSet[colorTheme].iconColorkey }));
41
55
  }
42
56
  case 'disabled': {
43
57
  return isChecked ? ((0, jsx_runtime_1.jsxs)(S_OverrideIconWrapper, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_on", fillType: "fill", colorKey: "ui_cpnt_selcontrols_icon_primary" }) }), (0, jsx_runtime_1.jsx)(S_OverrideIcon, { children: (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_on", fillType: "fill", colorKey: "ui_cpnt_selcontrols_icon_on_base_hover" }) })] })) : ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_off", fillType: "line", colorKey: "ui_cpnt_selcontrols_icon_disabled" }));
@@ -45,7 +59,7 @@ function Checkbox(_a) {
45
59
  }
46
60
  };
47
61
  return ((0, jsx_runtime_1.jsx)(S_Checkbox, __assign({ "x-pds-name": "Checkbox", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: (0, jsx_runtime_1.jsxs)(S_Label, __assign({ htmlFor: name, isDisabled: state === 'disabled' }, { 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'
48
- ? 'ui_cpnt_selcontrols_text_default'
62
+ ? colorThemeSet[colorTheme].textColorKey
49
63
  : 'ui_cpnt_selcontrols_text_disabled' }) })), (0, jsx_runtime_1.jsx)("input", __assign({ hidden: true, type: "checkbox" }, checkboxFormRegister, { id: name, disabled: state === 'disabled', onChange: handleChange }))] })) })));
50
64
  }
51
65
  var S_Checkbox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 24px;\n"], ["\n align-items: center;\n display: flex;\n height: 24px;\n"])));
@@ -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(), 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'
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: "".concat(name, "-").concat(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' }) })), (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' })] })));
44
+ : 'ui_cpnt_selcontrols_text_disabled' }) })), (0, jsx_runtime_1.jsx)("input", { hidden: true, id: "".concat(name, "-").concat(value), type: "radio", name: name, value: value, checked: checked, color: value, onChange: handleChange, disabled: state === 'disabled' })] })));
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"])));
@@ -123,24 +123,48 @@ function TextField(_a) {
123
123
  trigger(name);
124
124
  }
125
125
  var S_TextField = function () {
126
+ var deleteIconColor = 'ui_cpnt_button_icon_disabled';
127
+ switch (colorTheme) {
128
+ case 'dark': {
129
+ deleteIconColor = 'ui_cpnt_textfield_icon_darktheme_disabled';
130
+ break;
131
+ }
132
+ case 'transparent': {
133
+ deleteIconColor = 'ui_cpnt_textfield_icon_colortheme_transparent_disabled';
134
+ break;
135
+ }
136
+ }
126
137
  if (textLineType === 'multi') {
127
- return ((0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: textAlign, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: fontWeight === 'bold' ? 'bold' : 'normal', autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }));
138
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: textAlign, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: fontWeight === 'bold' ? 'bold' : 'normal', autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }), (0, jsx_runtime_1.jsxs)(S_RightBox_Multi, { children: [iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: overrideIBtn2IconColorKey ||
139
+ (colorTheme &&
140
+ {
141
+ none: basicThemeIconColors[state],
142
+ dark: darkThemeIconColors[state],
143
+ transparent: transparentThemeIconColors[state]
144
+ }[colorTheme]), iconFillType: iBtn2IconFillType === 'fill' ? 'fill' : 'line', state: state === 'disabled' ? 'disabled' : 'normal', onClick: handleClickIBtn2 })), iBtn1IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn1IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: overrideIBtn1IconColorKey ||
145
+ (colorTheme &&
146
+ {
147
+ none: basicThemeIconColors[state],
148
+ dark: darkThemeIconColors[state],
149
+ transparent: transparentThemeIconColors[state]
150
+ }[colorTheme]), iconFillType: iBtn1IconFillType === 'fill' ? 'fill' : 'line', state: state === 'disabled' ? 'disabled' : 'normal', onClick: handleClickIBtn1 }))] })] }));
128
151
  }
129
152
  if (textLineType === 'auto') {
130
- return ((0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: textAlign, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: fontWeight === 'bold' ? 'bold' : 'normal', autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }));
153
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: textAlign, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: fontWeight === 'bold' ? 'bold' : 'normal', autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }), (0, jsx_runtime_1.jsxs)(S_RightBox_Auto, { children: [iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: overrideIBtn2IconColorKey ||
154
+ (colorTheme &&
155
+ {
156
+ none: basicThemeIconColors[state],
157
+ dark: darkThemeIconColors[state],
158
+ transparent: transparentThemeIconColors[state]
159
+ }[colorTheme]), iconFillType: iBtn2IconFillType === 'fill' ? 'fill' : 'line', state: state === 'disabled' ? 'disabled' : 'normal', onClick: handleClickIBtn2 })), iBtn1IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn1IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: overrideIBtn1IconColorKey ||
160
+ (colorTheme &&
161
+ {
162
+ none: basicThemeIconColors[state],
163
+ dark: darkThemeIconColors[state],
164
+ transparent: transparentThemeIconColors[state]
165
+ }[colorTheme]), iconFillType: iBtn1IconFillType === 'fill' ? 'fill' : 'line', state: state === 'disabled' ? 'disabled' : 'normal', onClick: handleClickIBtn1 }))] })] }));
131
166
  }
132
167
  if (textLineType === 'single') {
133
- var deleteIconColor = 'ui_cpnt_button_icon_disabled';
134
- switch (colorTheme) {
135
- case 'dark': {
136
- deleteIconColor = 'ui_cpnt_textfield_icon_darktheme_disabled';
137
- break;
138
- }
139
- case 'transparent': {
140
- deleteIconColor = 'ui_cpnt_textfield_icon_colortheme_transparent_disabled';
141
- break;
142
- }
143
- }
144
168
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [prefixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: prefixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", singleLineMode: "use" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: textAlign, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, inputMode: inputMode, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: fontWeight === 'bold' ? 'bold' : 'normal', fieldPaddingRight: size === 'large' || size === 'rlarge' ? 8 : undefined, deleteIconMode: deleteBtnMode, deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, stepperMode: inputType === 'number' && numberStepperMode === 'use' ? 'use' : 'none', stepperRightSpacing: size === 'large' || size === 'rlarge' ? 1 : -4, innerSpinButtonSize: size === 'small' ? 12 : 16, step: numberStep, suffixText: suffixText, suffixTextRightSpacingMode: size === 'large' || size === 'rlarge' ? 'use' : 'none', onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: overrideIBtn2IconColorKey ||
145
169
  (colorTheme &&
146
170
  {
@@ -360,7 +384,9 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_19 || (t
360
384
  return customWidth && "width: ".concat(customWidth, ";");
361
385
  });
362
386
  var S_RightBox = styled_components_1.default.div(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n"], ["\n align-items: center;\n display: flex;\n"])));
363
- var S_Error = styled_components_1.default.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"])), function (_a) {
387
+ var S_RightBox_Auto = styled_components_1.default.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n align-items: center;\n align-self: end;\n display: flex;\n"], ["\n align-items: center;\n align-self: end;\n display: flex;\n"])));
388
+ var S_RightBox_Multi = styled_components_1.default.div(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n align-items: center;\n align-self: end;\n display: flex;\n"], ["\n align-items: center;\n align-self: end;\n display: flex;\n"])));
389
+ var S_Error = styled_components_1.default.div(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"])), function (_a) {
364
390
  var theme = _a.theme, colorTheme = _a.colorTheme;
365
391
  switch (colorTheme) {
366
392
  case 'none': {
@@ -385,4 +411,4 @@ var S_Error = styled_components_1.default.div(templateObject_21 || (templateObje
385
411
  return theme.spacing.spacingA;
386
412
  });
387
413
  exports.default = TextField;
388
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21;
414
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
@@ -98,7 +98,7 @@ var S_ContentsContainer2 = styled_components_1.default.div(templateObject_5 || (
98
98
  var containerColor = _a.containerColor;
99
99
  return "background-color: ".concat(containerColor);
100
100
  }, overrideStyleContainer2);
101
- var S_ContentsArea1 = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n box-sizing: border-box;\n max-width: 480px;\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n width: 480px;\n ", ";\n"], ["\n box-sizing: border-box;\n max-width: 480px;\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n width: 480px;\n ", ";\n"])), function (_a) {
101
+ var S_ContentsArea1 = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n box-sizing: border-box;\n height: 100%;\n max-width: 480px;\n width: 480px;\n ", ";\n"], ["\n box-sizing: border-box;\n height: 100%;\n max-width: 480px;\n width: 480px;\n ", ";\n"])), function (_a) {
102
102
  var areaColor = _a.areaColor;
103
103
  return "background-color: ".concat(areaColor);
104
104
  });
@@ -106,7 +106,7 @@ var S_ContentsArea2 = styled_components_1.default.div(templateObject_7 || (templ
106
106
  var areaColor = _a.areaColor;
107
107
  return "background-color: ".concat(areaColor);
108
108
  });
109
- var S_Content1 = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
109
+ var S_Content1 = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n"], ["\n height: 100%;\n overflow: hidden;\n"])));
110
110
  var S_Content2 = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n"], ["\n height: 100%;\n overflow: hidden;\n"])));
111
111
  exports.default = WTU;
112
112
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
@@ -2,6 +2,7 @@
2
2
  import type { PDSIconType, PDSTextType } from '../../../common';
3
3
  export type BasicListItemProps = {
4
4
  selectionMode?: 'none' | 'check' | 'radio';
5
+ state?: 'normal' | 'disabled';
5
6
  titleText: PDSTextType;
6
7
  titleTextColorTheme?: 'none' | 'logout';
7
8
  descText?: PDSTextType;
@@ -39,6 +40,7 @@ export type BasicListItemProps = {
39
40
  };
40
41
  export type StyleProps = {
41
42
  isSelected?: boolean;
43
+ state?: 'normal' | 'disabled';
42
44
  dividerType?: BasicListItemProps['dividerType'];
43
45
  selectionMode?: 'none' | 'check' | 'radio';
44
46
  captionText?: PDSTextType;
@@ -48,5 +50,5 @@ export type StyleProps = {
48
50
  spacingMode?: 'none' | 'use';
49
51
  onlyLeftArea?: boolean;
50
52
  };
51
- declare function BasicListItem({ selectionMode, titleText, titleTextColorTheme, descText, badgeMode, badgeStatus, imageIconMode, imageShapeType, imageSrc, iconName, iconFillType, displayType, captionText, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, mBtnFillType, mBtnText, mBtnState, dividerType, titleFontWeight, checkboxId, radioId, radioValue, switchName, switchState, switchStatus, spacingMode, onClick, onClickRadio, onClickSwitch, onClickIBtn1, onClickIBtn2, onClickMBtn }: BasicListItemProps): JSX.Element;
53
+ declare function BasicListItem({ selectionMode, state, titleText, titleTextColorTheme, descText, badgeMode, badgeStatus, imageIconMode, imageShapeType, imageSrc, iconName, iconFillType, displayType, captionText, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, mBtnFillType, mBtnText, mBtnState, dividerType, titleFontWeight, checkboxId, radioId, radioValue, switchName, switchState, switchStatus, spacingMode, onClick, onClickRadio, onClickSwitch, onClickIBtn1, onClickIBtn2, onClickMBtn }: BasicListItemProps): JSX.Element;
52
54
  export default BasicListItem;
@@ -25,7 +25,7 @@ var Contents_1 = __importDefault(require("./Contents"));
25
25
  var LeftBox_1 = require("./LeftBox");
26
26
  var RightBox_1 = require("./RightBox");
27
27
  function BasicListItem(_a) {
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.mBtnState, mBtnState = _o === void 0 ? 'normal' : _o, _p = _a.dividerType, dividerType = _p === void 0 ? 'none' : _p, _q = _a.titleFontWeight, titleFontWeight = _q === void 0 ? 'regular' : _q, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _r = _a.switchState, switchState = _r === void 0 ? 'normal' : _r, _s = _a.switchStatus, switchStatus = _s === void 0 ? 'off' : _s, _t = _a.spacingMode, spacingMode = _t === void 0 ? 'use' : _t, onClick = _a.onClick, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn;
28
+ var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, titleText = _a.titleText, _d = _a.titleTextColorTheme, titleTextColorTheme = _d === void 0 ? 'none' : _d, descText = _a.descText, _e = _a.badgeMode, badgeMode = _e === void 0 ? 'none' : _e, _f = _a.badgeStatus, badgeStatus = _f === void 0 ? 'inactive' : _f, _g = _a.imageIconMode, imageIconMode = _g === void 0 ? 'none' : _g, _h = _a.imageShapeType, imageShapeType = _h === void 0 ? 'round' : _h, imageSrc = _a.imageSrc, iconName = _a.iconName, _j = _a.iconFillType, iconFillType = _j === void 0 ? 'line' : _j, _k = _a.displayType, displayType = _k === void 0 ? 'none' : _k, captionText = _a.captionText, iBtn1IconName = _a.iBtn1IconName, _l = _a.iBtn1IconFillType, iBtn1IconFillType = _l === void 0 ? 'line' : _l, iBtn2IconName = _a.iBtn2IconName, _m = _a.iBtn2IconFillType, iBtn2IconFillType = _m === void 0 ? 'line' : _m, _o = _a.mBtnFillType, mBtnFillType = _o === void 0 ? 'fill' : _o, mBtnText = _a.mBtnText, _p = _a.mBtnState, mBtnState = _p === void 0 ? 'normal' : _p, _q = _a.dividerType, dividerType = _q === void 0 ? 'none' : _q, _r = _a.titleFontWeight, titleFontWeight = _r === void 0 ? 'regular' : _r, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _s = _a.switchState, switchState = _s === void 0 ? 'normal' : _s, _t = _a.switchStatus, switchStatus = _t === void 0 ? 'off' : _t, _u = _a.spacingMode, spacingMode = _u === void 0 ? 'use' : _u, onClick = _a.onClick, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn;
29
29
  var methods = (0, react_hook_form_1.useFormContext)();
30
30
  var isSelected = methods === null || methods === void 0 ? void 0 : methods.watch((checkboxId === null || checkboxId === void 0 ? void 0 : checkboxId.toString()) || '');
31
31
  var handleIBtn1Click = function (e) {
@@ -35,6 +35,8 @@ function BasicListItem(_a) {
35
35
  }
36
36
  };
37
37
  var handleClick = function (e) {
38
+ if (state === 'disabled')
39
+ return;
38
40
  switch (selectionMode) {
39
41
  case 'radio': {
40
42
  if (onClickRadio && radioId) {
@@ -64,11 +66,22 @@ function BasicListItem(_a) {
64
66
  }
65
67
  }
66
68
  };
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 }), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Radio, { id: radioId, value: radioValue, onChange: onClickRadio })), badgeMode === 'left' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Badge, { status: badgeStatus }), imageIconMode === 'image' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { src: imageSrc, shape: imageShapeType }), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Icon, { name: iconName, fill: iconFillType === 'fill' })), (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' }), captionText && (0, jsx_runtime_1.jsx)(Contents_1.default.Caption, { text: captionText })] })] })), (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 })) : undefined })), displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })), 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 }), (0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })] })), displayType === 'mbtn' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.MainButton, { text: mBtnText, fill: mBtnFillType === 'fill', state: mBtnState, onClick: onClickMBtn })), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Switch, { name: switchName, state: switchState, status: switchStatus, onClick: onClickSwitch }))] }))] })) })));
69
+ function titleTextColor() {
70
+ if (state === 'disabled') {
71
+ return 'sysTextTertiary';
72
+ }
73
+ if (titleTextColorTheme === 'none') {
74
+ return 'sysTextPrimary';
75
+ }
76
+ return 'sysTextError';
77
+ }
78
+ return ((0, jsx_runtime_1.jsx)(S_BasicListItem, __assign({ "x-pds-name": "BasicListItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", state: state, 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 }), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Radio, { id: radioId, value: radioValue, onChange: onClickRadio })), badgeMode === 'left' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Badge, { status: badgeStatus }), imageIconMode === 'image' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { src: imageSrc, shape: imageShapeType }), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Icon, { name: iconName, fill: iconFillType === 'fill' })), (0, jsx_runtime_1.jsxs)(Contents_1.default, { children: [(0, jsx_runtime_1.jsx)(Contents_1.default.Title, { text: titleText, colorTheme: titleTextColor(), font: titleFontWeight === 'bold' ? 'body2Bold' : 'body2Regular' }), captionText && (0, jsx_runtime_1.jsx)(Contents_1.default.Caption, { text: captionText })] })] })), (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 })) : undefined })), displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })), 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, state: state }), (0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click, state: state })] })), displayType === 'mbtn' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.MainButton, { text: mBtnText, fill: mBtnFillType === 'fill', state: state === 'disabled' ? 'disabled' : mBtnState, onClick: onClickMBtn })), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Switch, { name: switchName, state: state === 'disabled' ? 'disabled' : switchState, status: switchStatus, onClick: onClickSwitch }))] }))] })) })));
68
79
  }
69
80
  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) {
70
- var theme = _a.theme, isSelected = _a.isSelected;
71
- return isSelected ? theme.ui_cpnt_list_base_area_select : theme.ui_cpnt_list_base_area;
81
+ var theme = _a.theme, isSelected = _a.isSelected, state = _a.state;
82
+ return isSelected || state === 'disabled'
83
+ ? theme.ui_cpnt_list_base_area_select
84
+ : theme.ui_cpnt_list_base_area;
72
85
  }, function (_a) {
73
86
  var spacingMode = _a.spacingMode, theme = _a.theme;
74
87
  return spacingMode === 'use' && "0 ".concat(theme.spacing.spacingE);
@@ -2,6 +2,7 @@
2
2
  import type { BasicListItemProps } from '../BasicListItem';
3
3
  export type IconButtonPropTypes = {
4
4
  iconName: BasicListItemProps['iBtn2IconName'];
5
+ state?: 'normal' | 'disabled';
5
6
  fill: boolean;
6
7
  onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
7
8
  };
@@ -11,8 +11,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
12
  var IconButton_1 = require("../../IconButton");
13
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" })) }));
14
+ var iconName = _a.iconName, fill = _a.fill, onClick = _a.onClick, state = _a.state;
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: state === 'disabled' ? 'ui_cpnt_button_icon_disabled' : 'ui_cpnt_button_icon_default' })) }));
16
16
  };
17
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
18
  exports.default = IconButton;
@@ -1,12 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import { Path } from 'react-hook-form';
3
3
  import type { IFormValues, PDSTextType } from '../../../common';
4
+ type ColorTheme = 'none' | 'white' | 'grey1';
4
5
  type CheckboxProps = {
5
6
  text?: PDSTextType;
6
7
  fontWeight?: 'bold' | 'regular';
7
8
  state?: 'normal' | 'disabled';
8
9
  name: Path<IFormValues>;
10
+ colorTheme?: ColorTheme;
9
11
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
10
12
  };
11
- declare function Checkbox({ text, fontWeight, state, name, onChange }: CheckboxProps): JSX.Element;
13
+ declare function Checkbox({ text, fontWeight, state, name, colorTheme, onChange }: CheckboxProps): JSX.Element;
12
14
  export default Checkbox;
@@ -24,7 +24,7 @@ var styled_components_1 = __importDefault(require("styled-components"));
24
24
  var hybrid_1 = require("../../../hybrid");
25
25
  var TextLabel_1 = require("../TextLabel");
26
26
  function Checkbox(_a) {
27
- var text = _a.text, _b = _a.fontWeight, fontWeight = _b === void 0 ? 'regular' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, name = _a.name, onChange = _a.onChange;
27
+ var text = _a.text, _b = _a.fontWeight, fontWeight = _b === void 0 ? 'regular' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, name = _a.name, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'none' : _d, onChange = _a.onChange;
28
28
  var register = (0, react_hook_form_1.useFormContext)().register;
29
29
  var checkboxFormRegister = register(name);
30
30
  var isChecked = (0, react_hook_form_1.useWatch)({ name: name });
@@ -34,10 +34,24 @@ function Checkbox(_a) {
34
34
  onChange(e);
35
35
  }
36
36
  };
37
+ var colorThemeSet = {
38
+ none: {
39
+ iconColorkey: 'ui_cpnt_selcontrols_icon_default',
40
+ textColorKey: 'ui_cpnt_selcontrols_text_default'
41
+ },
42
+ white: {
43
+ iconColorkey: 'ui_cpnt_selcontrols_icon_white',
44
+ textColorKey: 'ui_cpnt_selcontrols_text_white'
45
+ },
46
+ grey1: {
47
+ iconColorkey: 'ui_cpnt_selcontrols_icon_grey_01',
48
+ textColorKey: 'ui_cpnt_selcontrols_text_grey_01'
49
+ }
50
+ };
37
51
  var icon = function () {
38
52
  switch (state) {
39
53
  case 'normal': {
40
- return isChecked ? ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_on", fillType: "fill", colorKey: "ui_cpnt_selcontrols_icon_primary" })) : ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_off", fillType: "line", colorKey: "ui_cpnt_selcontrols_icon_default" }));
54
+ return isChecked ? ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_on", fillType: "fill", colorKey: "ui_cpnt_selcontrols_icon_primary" })) : ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_off", fillType: "line", colorKey: colorThemeSet[colorTheme].iconColorkey }));
41
55
  }
42
56
  case 'disabled': {
43
57
  return isChecked ? ((0, jsx_runtime_1.jsxs)(S_OverrideIconWrapper, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_on", fillType: "fill", colorKey: "ui_cpnt_selcontrols_icon_primary" }), (0, jsx_runtime_1.jsx)(S_OverrideIcon, { children: (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_on", fillType: "fill", colorKey: "ui_cpnt_selcontrols_icon_on_base_hover" }) })] })) : ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, iconName: "ic_checkbox_off", fillType: "line", colorKey: "ui_cpnt_selcontrols_icon_disabled" }));
@@ -45,7 +59,7 @@ function Checkbox(_a) {
45
59
  }
46
60
  };
47
61
  return ((0, jsx_runtime_1.jsx)(S_Checkbox, __assign({ "x-pds-name": "Checkbox", "x-pds-element-type": "component", "x-pds-device-type": "mobile" }, { children: (0, jsx_runtime_1.jsxs)(S_Label, __assign({ htmlFor: name }, { 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'
48
- ? 'ui_cpnt_selcontrols_text_default'
62
+ ? colorThemeSet[colorTheme].textColorKey
49
63
  : 'ui_cpnt_selcontrols_text_disabled' }) })), (0, jsx_runtime_1.jsx)("input", __assign({ hidden: true, type: "checkbox" }, checkboxFormRegister, { id: name, disabled: state === 'disabled', onChange: handleChange }))] })) })));
50
64
  }
51
65
  var S_Checkbox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 24px;\n"], ["\n align-items: center;\n display: flex;\n height: 24px;\n"])));
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { PDSTextType } from '../../../common/types';
3
+ type Props = {
4
+ id?: string;
5
+ type: 'single' | 'range';
6
+ date: string;
7
+ endDate?: string;
8
+ minDate?: string;
9
+ maxDate?: string;
10
+ startOfWeek?: 'sunday' | 'monday';
11
+ quickActionMode?: 'use' | 'none';
12
+ quickActionBtnText?: PDSTextType;
13
+ onChange?: (val1: string, val2?: string) => void;
14
+ };
15
+ declare const DatePicker: ({ id, type, date, endDate, minDate, maxDate, startOfWeek, quickActionMode, quickActionBtnText, onChange }: Props) => JSX.Element;
16
+ export default DatePicker;