pds-dev-kit-web 0.4.1 → 0.5.2

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 (274) hide show
  1. package/.vscode/settings.json +49 -0
  2. package/README.md +1 -1
  3. package/dist/index.d.ts +9 -8
  4. package/dist/index.js +46 -1
  5. package/dist/src/common/assets/icons/line/PostWelcome.d.ts +4 -0
  6. package/dist/src/common/assets/icons/line/PostWelcome.js +37 -0
  7. package/dist/src/common/assets/icons/line/TenSecBack.d.ts +4 -0
  8. package/dist/src/common/assets/icons/line/TenSecBack.js +34 -0
  9. package/dist/src/common/assets/icons/line/TenSecBackArrow.d.ts +4 -0
  10. package/dist/src/common/assets/icons/line/TenSecBackArrow.js +34 -0
  11. package/dist/src/common/assets/icons/line/TenSecForward.d.ts +4 -0
  12. package/dist/src/common/assets/icons/line/TenSecForward.js +34 -0
  13. package/dist/src/common/assets/icons/line/TenSecForwardArrow.d.ts +4 -0
  14. package/dist/src/common/assets/icons/line/TenSecForwardArrow.js +34 -0
  15. package/dist/src/common/assets/icons/line/index.d.ts +5 -0
  16. package/dist/src/common/assets/icons/line/index.js +10 -0
  17. package/dist/src/common/components/Form/Form.d.ts +16 -0
  18. package/dist/src/common/components/Form/Form.js +40 -0
  19. package/dist/src/common/components/Form/index.d.ts +1 -0
  20. package/dist/src/common/components/Form/index.js +8 -0
  21. package/dist/src/common/components/index.d.ts +2 -0
  22. package/dist/src/common/components/index.js +5 -0
  23. package/dist/src/common/decorators/withFormProvider.d.ts +4 -0
  24. package/dist/src/common/decorators/withFormProvider.js +28 -0
  25. package/dist/src/common/index.d.ts +6 -1
  26. package/dist/src/common/index.js +4 -1
  27. package/dist/src/common/services/i18n/resources/en.json +2794 -2569
  28. package/dist/src/common/services/i18n/resources/es.json +280 -55
  29. package/dist/src/common/services/i18n/resources/index.d.ts +936 -36
  30. package/dist/src/common/services/i18n/resources/jp.json +280 -55
  31. package/dist/src/common/services/i18n/resources/ko.json +277 -52
  32. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +10 -7
  33. package/dist/src/common/styles/colorSet/PaletteColor_light.json +4 -1
  34. package/dist/src/common/styles/colorSet/UIColor.json +11 -3
  35. package/dist/src/common/styles/colorSet/index.d.ts +70 -56
  36. package/dist/src/common/styles/colorSet/index.js +2 -2
  37. package/dist/src/common/styles/colorSet/ui-type.d.ts +9 -1
  38. package/dist/src/common/styles/index.d.ts +2 -0
  39. package/dist/src/common/styles/theme.d.ts +2 -0
  40. package/dist/src/common/styles/theme.js +4 -2
  41. package/dist/src/common/styles/ui-colors.js +1 -1
  42. package/dist/src/common/types/form.d.ts +3 -0
  43. package/dist/src/common/types/form.js +2 -0
  44. package/dist/src/common/types/icon.d.ts +4 -0
  45. package/dist/src/common/types/icon.js +2 -0
  46. package/dist/src/common/types/styled-components.d.ts +2 -0
  47. package/dist/src/common/types/uiColors.d.ts +2 -0
  48. package/dist/src/common/types/uiColors.js +2 -0
  49. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +45 -0
  50. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +265 -0
  51. package/dist/src/desktop/common/components/TextFieldBase/index.d.ts +1 -0
  52. package/dist/src/desktop/common/components/TextFieldBase/index.js +8 -0
  53. package/dist/src/desktop/common/components/index.d.ts +2 -0
  54. package/dist/src/desktop/common/components/index.js +5 -0
  55. package/dist/src/desktop/components/Card/Card.d.ts +11 -0
  56. package/dist/src/desktop/components/Card/Card.js +50 -0
  57. package/dist/src/desktop/components/Card/index.d.ts +1 -0
  58. package/dist/src/desktop/components/Card/index.js +8 -0
  59. package/dist/src/desktop/components/CardList/CardList.d.ts +10 -0
  60. package/dist/src/desktop/components/CardList/CardList.js +30 -0
  61. package/dist/src/desktop/components/CardList/index.d.ts +1 -0
  62. package/dist/src/desktop/components/CardList/index.js +8 -0
  63. package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +11 -0
  64. package/dist/src/desktop/components/Checkbox/Checkbox.js +65 -0
  65. package/dist/src/desktop/components/Checkbox/index.d.ts +1 -0
  66. package/dist/src/desktop/components/Checkbox/index.js +8 -0
  67. package/dist/src/desktop/components/Chip/Chip.d.ts +19 -0
  68. package/dist/src/desktop/components/Chip/Chip.js +131 -0
  69. package/dist/src/desktop/components/Chip/index.d.ts +1 -0
  70. package/dist/src/desktop/components/Chip/index.js +8 -0
  71. package/dist/src/desktop/components/ContextMenu/ContextMenu.d.ts +7 -0
  72. package/dist/src/desktop/components/ContextMenu/ContextMenu.js +33 -0
  73. package/dist/src/desktop/components/ContextMenu/index.d.ts +1 -0
  74. package/dist/src/desktop/components/ContextMenu/index.js +8 -0
  75. package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.d.ts +10 -0
  76. package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.js +65 -0
  77. package/dist/src/desktop/components/ContextMenuItem/index.d.ts +1 -0
  78. package/dist/src/desktop/components/ContextMenuItem/index.js +8 -0
  79. package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.d.ts +39 -0
  80. package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +81 -0
  81. package/dist/src/desktop/components/DesktopHeaderBar/index.d.ts +1 -0
  82. package/dist/src/desktop/components/DesktopHeaderBar/index.js +8 -0
  83. package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.d.ts +15 -0
  84. package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +125 -0
  85. package/dist/src/desktop/components/DesktopTabBar/index.d.ts +1 -0
  86. package/dist/src/desktop/components/DesktopTabBar/index.js +8 -0
  87. package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.d.ts +32 -0
  88. package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +238 -0
  89. package/dist/src/desktop/components/EditApplyTextField/index.d.ts +1 -0
  90. package/dist/src/desktop/components/EditApplyTextField/index.js +8 -0
  91. package/dist/src/desktop/components/FilterBar/FilterBar.d.ts +19 -0
  92. package/dist/src/desktop/components/FilterBar/FilterBar.js +53 -0
  93. package/dist/src/desktop/components/FilterBar/index.d.ts +1 -0
  94. package/dist/src/desktop/components/FilterBar/index.js +8 -0
  95. package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.d.ts +19 -0
  96. package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.js +96 -0
  97. package/dist/src/desktop/components/FloatingActionButton/index.d.ts +1 -0
  98. package/dist/src/desktop/components/FloatingActionButton/index.js +8 -0
  99. package/dist/src/desktop/components/IconButton/IconButton.js +3 -3
  100. package/dist/src/desktop/components/ImageSlide/ImageSlide.d.ts +13 -0
  101. package/dist/src/desktop/components/ImageSlide/ImageSlide.js +97 -0
  102. package/dist/src/desktop/components/ImageSlide/index.d.ts +1 -0
  103. package/dist/src/desktop/components/ImageSlide/index.js +8 -0
  104. package/dist/src/desktop/components/MainButton/MainButton.d.ts +21 -0
  105. package/dist/src/desktop/components/MainButton/MainButton.js +190 -0
  106. package/dist/src/desktop/components/MainButton/index.d.ts +1 -0
  107. package/dist/src/desktop/components/MainButton/index.js +8 -0
  108. package/dist/src/desktop/components/Radio/Radio.d.ts +12 -0
  109. package/dist/src/desktop/components/Radio/Radio.js +45 -0
  110. package/dist/src/desktop/components/Radio/index.d.ts +1 -0
  111. package/dist/src/desktop/components/Radio/index.js +8 -0
  112. package/dist/src/desktop/components/ReactionButton/ReactionButton.d.ts +11 -0
  113. package/dist/src/desktop/components/ReactionButton/ReactionButton.js +108 -0
  114. package/dist/src/desktop/components/ReactionButton/index.d.ts +1 -0
  115. package/dist/src/desktop/components/ReactionButton/index.js +8 -0
  116. package/dist/src/desktop/components/Select/Select.d.ts +16 -0
  117. package/dist/src/desktop/components/Select/Select.js +136 -0
  118. package/dist/src/desktop/components/Select/index.d.ts +1 -0
  119. package/dist/src/desktop/components/Select/index.js +8 -0
  120. package/dist/src/desktop/components/StatusBlock/StatusBlock.js +1 -1
  121. package/dist/src/desktop/components/TextButton/TextButton.d.ts +11 -0
  122. package/dist/src/desktop/components/TextButton/TextButton.js +103 -0
  123. package/dist/src/desktop/components/TextButton/index.d.ts +1 -0
  124. package/dist/src/desktop/components/TextButton/index.js +8 -0
  125. package/dist/src/desktop/components/TextField/TextField.d.ts +42 -0
  126. package/dist/src/desktop/components/TextField/TextField.js +252 -0
  127. package/dist/src/desktop/components/TextField/index.d.ts +1 -0
  128. package/dist/src/desktop/components/TextField/index.js +8 -0
  129. package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +3 -1
  130. package/dist/src/desktop/components/TextLabel/TextLabel.js +7 -4
  131. package/dist/src/desktop/components/UploadIconButton/UploadIconButton.d.ts +21 -0
  132. package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +149 -0
  133. package/dist/src/desktop/components/UploadIconButton/index.d.ts +1 -0
  134. package/dist/src/desktop/components/UploadIconButton/index.js +8 -0
  135. package/dist/src/desktop/components/UploadIconButton/types.d.ts +8 -0
  136. package/dist/src/desktop/components/UploadIconButton/types.js +11 -0
  137. package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +18 -0
  138. package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +173 -0
  139. package/dist/src/desktop/components/UploadMainButton/index.d.ts +1 -0
  140. package/dist/src/desktop/components/UploadMainButton/index.js +8 -0
  141. package/dist/src/desktop/components/UploadMainButton/types.d.ts +25 -0
  142. package/dist/src/desktop/components/UploadMainButton/types.js +28 -0
  143. package/dist/src/desktop/components/UploadTextButton/UploadTextButton.d.ts +12 -0
  144. package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +83 -0
  145. package/dist/src/desktop/components/UploadTextButton/index.d.ts +1 -0
  146. package/dist/src/desktop/components/UploadTextButton/index.js +8 -0
  147. package/dist/src/desktop/components/UserDesktopNavBar/UserDesktopNavBar.d.ts +20 -0
  148. package/dist/src/desktop/components/UserDesktopNavBar/UserDesktopNavBar.js +104 -0
  149. package/dist/src/desktop/components/UserDesktopNavBar/index.d.ts +1 -0
  150. package/dist/src/desktop/components/UserDesktopNavBar/index.js +8 -0
  151. package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.d.ts +11 -0
  152. package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.js +74 -0
  153. package/dist/src/desktop/components/UserDesktopTabBar/index.d.ts +1 -0
  154. package/dist/src/desktop/components/UserDesktopTabBar/index.js +8 -0
  155. package/dist/src/desktop/components/index.d.ts +24 -1
  156. package/dist/src/desktop/components/index.js +47 -1
  157. package/dist/src/desktop/index.d.ts +2 -2
  158. package/dist/src/desktop/index.js +24 -1
  159. package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSF.js +1 -1
  160. package/dist/src/hybrid/components/Icon/Icon.d.ts +2 -2
  161. package/dist/src/hybrid/components/Icon/Icon.js +1 -1
  162. package/dist/src/hybrid/components/ImageView/ImageView.d.ts +4 -2
  163. package/dist/src/hybrid/components/ImageView/ImageView.js +110 -28
  164. package/dist/src/hybrid/components/Switch/Switch.d.ts +9 -0
  165. package/dist/src/hybrid/components/Switch/Switch.js +75 -0
  166. package/dist/src/hybrid/components/Switch/index.d.ts +1 -0
  167. package/dist/src/hybrid/components/Switch/index.js +8 -0
  168. package/dist/src/hybrid/components/index.d.ts +2 -1
  169. package/dist/src/hybrid/components/index.js +3 -1
  170. package/dist/src/hybrid/index.d.ts +2 -2
  171. package/dist/src/hybrid/index.js +2 -1
  172. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +45 -0
  173. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +265 -0
  174. package/dist/src/mobile/common/components/TextFieldBase/index.d.ts +1 -0
  175. package/dist/src/mobile/common/components/TextFieldBase/index.js +8 -0
  176. package/dist/src/mobile/common/components/index.d.ts +2 -0
  177. package/dist/src/mobile/common/components/index.js +5 -0
  178. package/dist/src/mobile/components/BlogTextField/BlogTextField.d.ts +29 -0
  179. package/dist/src/mobile/components/BlogTextField/BlogTextField.js +105 -0
  180. package/dist/src/mobile/components/BlogTextField/index.d.ts +1 -0
  181. package/dist/src/mobile/components/BlogTextField/index.js +8 -0
  182. package/dist/src/mobile/components/Card/Card.d.ts +11 -0
  183. package/dist/src/mobile/components/Card/Card.js +50 -0
  184. package/dist/src/mobile/components/Card/index.d.ts +1 -0
  185. package/dist/src/mobile/components/Card/index.js +8 -0
  186. package/dist/src/mobile/components/CardList/CardList.d.ts +10 -0
  187. package/dist/src/mobile/components/CardList/CardList.js +30 -0
  188. package/dist/src/mobile/components/CardList/index.d.ts +1 -0
  189. package/dist/src/mobile/components/CardList/index.js +8 -0
  190. package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +11 -0
  191. package/dist/src/mobile/components/Checkbox/Checkbox.js +62 -0
  192. package/dist/src/mobile/components/Checkbox/index.d.ts +1 -0
  193. package/dist/src/mobile/components/Checkbox/index.js +8 -0
  194. package/dist/src/mobile/components/Chip/Chip.d.ts +19 -0
  195. package/dist/src/mobile/components/Chip/Chip.js +131 -0
  196. package/dist/src/mobile/components/Chip/index.d.ts +1 -0
  197. package/dist/src/mobile/components/Chip/index.js +8 -0
  198. package/dist/src/mobile/components/ContextMenu/ContextMenu.d.ts +7 -0
  199. package/dist/src/mobile/components/ContextMenu/ContextMenu.js +33 -0
  200. package/dist/src/mobile/components/ContextMenu/index.d.ts +1 -0
  201. package/dist/src/mobile/components/ContextMenu/index.js +8 -0
  202. package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.d.ts +10 -0
  203. package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +62 -0
  204. package/dist/src/mobile/components/ContextMenuItem/index.d.ts +1 -0
  205. package/dist/src/mobile/components/ContextMenuItem/index.js +8 -0
  206. package/dist/src/mobile/components/IconButton/IconButton.d.ts +1 -6
  207. package/dist/src/mobile/components/IconButton/IconButton.js +3 -3
  208. package/dist/src/mobile/components/ImageSlide/ImageSlide.d.ts +13 -0
  209. package/dist/src/mobile/components/ImageSlide/ImageSlide.js +97 -0
  210. package/dist/src/mobile/components/ImageSlide/index.d.ts +1 -0
  211. package/dist/src/mobile/components/ImageSlide/index.js +8 -0
  212. package/dist/src/mobile/components/MainButton/MainButton.d.ts +21 -0
  213. package/dist/src/mobile/components/MainButton/MainButton.js +181 -0
  214. package/dist/src/mobile/components/MainButton/index.d.ts +1 -0
  215. package/dist/src/mobile/components/MainButton/index.js +8 -0
  216. package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.d.ts +19 -0
  217. package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.js +97 -0
  218. package/dist/src/mobile/components/MobileHeaderBar/index.d.ts +1 -0
  219. package/dist/src/mobile/components/MobileHeaderBar/index.js +8 -0
  220. package/dist/src/mobile/components/MobileTabBar/MobileTabBar.d.ts +10 -0
  221. package/dist/src/mobile/components/MobileTabBar/MobileTabBar.js +46 -0
  222. package/dist/src/mobile/components/MobileTabBar/index.d.ts +1 -0
  223. package/dist/src/mobile/components/MobileTabBar/index.js +8 -0
  224. package/dist/src/mobile/components/Radio/Radio.d.ts +12 -0
  225. package/dist/src/mobile/components/Radio/Radio.js +45 -0
  226. package/dist/src/mobile/components/Radio/index.d.ts +1 -0
  227. package/dist/src/mobile/components/Radio/index.js +8 -0
  228. package/dist/src/mobile/components/ReactionButton/ReactionButton.d.ts +11 -0
  229. package/dist/src/mobile/components/ReactionButton/ReactionButton.js +108 -0
  230. package/dist/src/mobile/components/ReactionButton/index.d.ts +1 -0
  231. package/dist/src/mobile/components/ReactionButton/index.js +8 -0
  232. package/dist/src/mobile/components/Select/Select.d.ts +16 -0
  233. package/dist/src/mobile/components/Select/Select.js +132 -0
  234. package/dist/src/mobile/components/Select/index.d.ts +1 -0
  235. package/dist/src/mobile/components/Select/index.js +8 -0
  236. package/dist/src/mobile/components/StatusBlock/StatusBlock.js +1 -1
  237. package/dist/src/mobile/components/TextButton/TextButton.d.ts +11 -0
  238. package/dist/src/mobile/components/TextButton/TextButton.js +100 -0
  239. package/dist/src/mobile/components/TextButton/index.d.ts +1 -0
  240. package/dist/src/mobile/components/TextButton/index.js +8 -0
  241. package/dist/src/mobile/components/TextField/TextField.d.ts +42 -0
  242. package/dist/src/mobile/components/TextField/TextField.js +252 -0
  243. package/dist/src/mobile/components/TextField/index.d.ts +1 -0
  244. package/dist/src/mobile/components/TextField/index.js +8 -0
  245. package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +3 -1
  246. package/dist/src/mobile/components/TextLabel/TextLabel.js +7 -4
  247. package/dist/src/mobile/components/UploadIconButton/UploadIconButton.d.ts +21 -0
  248. package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +138 -0
  249. package/dist/src/mobile/components/UploadIconButton/index.d.ts +1 -0
  250. package/dist/src/mobile/components/UploadIconButton/index.js +8 -0
  251. package/dist/src/mobile/components/UploadIconButton/types.d.ts +8 -0
  252. package/dist/src/mobile/components/UploadIconButton/types.js +11 -0
  253. package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +18 -0
  254. package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +161 -0
  255. package/dist/src/mobile/components/UploadMainButton/index.d.ts +1 -0
  256. package/dist/src/mobile/components/UploadMainButton/index.js +8 -0
  257. package/dist/src/mobile/components/UploadMainButton/types.d.ts +25 -0
  258. package/dist/src/mobile/components/UploadMainButton/types.js +28 -0
  259. package/dist/src/mobile/components/UploadTextButton/UploadTextButton.d.ts +12 -0
  260. package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +77 -0
  261. package/dist/src/mobile/components/UploadTextButton/index.d.ts +1 -0
  262. package/dist/src/mobile/components/UploadTextButton/index.js +8 -0
  263. package/dist/src/mobile/components/index.d.ts +20 -1
  264. package/dist/src/mobile/components/index.js +39 -1
  265. package/dist/src/mobile/index.d.ts +2 -2
  266. package/dist/src/mobile/index.js +20 -1
  267. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +3 -3
  268. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +3 -3
  269. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +2 -2
  270. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +2 -2
  271. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +2 -2
  272. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +3 -3
  273. package/dist/src/mobile/layout/LayoutMP/Containers/NavigationContainer/variation/Navigation.js +1 -1
  274. package/package.json +5 -1
@@ -118,5 +118,8 @@
118
118
  "sys_border_line_darktheme_04": "darkblue500",
119
119
  "usr_widget_brand_primary_darktheme_01": "darkblue500",
120
120
  "usr_text_brand_primary_darktheme_01": "darkblue500",
121
- "sys_component_base_black_opacity50": "black/opacity50"
121
+ "sys_component_base_black_opacity50": "black/opacity50",
122
+ "sys_component_base_card": "white",
123
+ "sys_cpnt_textlabel_sys_brand_primary_opacity50": "blue500/opacity50",
124
+ "sys_widget_green_01": "green500"
122
125
  }
@@ -160,7 +160,7 @@
160
160
  "ui_cpnt_list_badge_active": "sys_widget_status_active_01",
161
161
  "ui_cpnt_list_badge_active_primary": "usr_brand_primary",
162
162
  "ui_cpnt_list_badge_disabled": "sys_widget_grey_03",
163
- "ui_cpnt_list_badge_cancle": "sys_widget_error_01",
163
+ "ui_cpnt_list_badge_cancel": "sys_widget_error_01",
164
164
  "ui_cpnt_list_text_quantity_plus": "sys_text_brand_secondary_variant",
165
165
  "ui_cpnt_content_card_base": "sys_component_base_03",
166
166
  "ui_cpnt_content_icon_03": "sys_widget_grey_03",
@@ -275,7 +275,7 @@
275
275
  "ui_cpnt_chip_line_icon_02": "sys_widget_grey_02",
276
276
  "ui_cpnt_overlay_base": "sys_component_base_02",
277
277
  "ui_cpnt_profile_base": "sys_component_base_white_opacity00",
278
- "ui_cpnt_card_base": "sys_component_base_white",
278
+ "ui_cpnt_card_base": "sys_component_base_card",
279
279
  "ui_cpnt_card_selected_border": "sys_border_line_06",
280
280
  "ui_cpnt_card_icon_basic": "sys_widget_primary_01",
281
281
  "ui_cpnt_card_icon_custom": "sys_widget_grey_01",
@@ -436,5 +436,13 @@
436
436
  "ui_cpnt_sheet_base_white": "sys_component_base_white",
437
437
  "ui_cpnt_sheet_base_black": "sys_component_base_black",
438
438
  "ui_cpnt_sheet_base_01": "sys_component_base_02",
439
- "ui_cpnt_sheet_base_02": "sys_component_base_01"
439
+ "ui_cpnt_sheet_base_02": "sys_component_base_01",
440
+ "ui_temp_background": "sys_container_background_01",
441
+ "ui_list_progress_shape_normal": "sys_widget_primary_01",
442
+ "ui_list_progress_shape_error": "sys_widget_error_01",
443
+ "ui_list_progress_shape_base": "sys_widget_grey_04",
444
+ "ui_cpnt_textlabel_sys_brand_primary_opacity50": "sys_cpnt_textlabel_sys_brand_primary_opacity50",
445
+ "ui_cpnt_progressbar_01": "sys_widget_green_01",
446
+ "ui_cpnt_progressbar_02": "sys_widget_grey_04",
447
+ "ui_36": "sys_component_base_black_opacity80"
440
448
  }
@@ -1,59 +1,4 @@
1
1
  declare const colorSet: {
2
- readonly SemanticColor: {
3
- blue500: string;
4
- blue700: string;
5
- blue300: string;
6
- green700: string;
7
- green500: string;
8
- green300: string;
9
- red500: string;
10
- grey900: string;
11
- grey500: string;
12
- grey400: string;
13
- grey100: string;
14
- grey50: string;
15
- white: string;
16
- black: string;
17
- darkblue500: string;
18
- grey950: string;
19
- darkgrey900: string;
20
- darkgrey500: string;
21
- darkgrey400: string;
22
- darkgrey100: string;
23
- darkgrey50: string;
24
- darkred500: string;
25
- darkgreen700: string;
26
- orange500: string;
27
- darkorange500: string;
28
- opacity00: string;
29
- opacity20: string;
30
- opacity30: string;
31
- opacity65: string;
32
- darkgreen500: string;
33
- grey70: string;
34
- navy500: string;
35
- lightgreen500: string;
36
- pink500: string;
37
- darkgrey70: string;
38
- darknavy500: string;
39
- darkpink500: string;
40
- darklightgreen500: string;
41
- opacity10: string;
42
- grey600: string;
43
- darkgrey600: string;
44
- skyblue500: string;
45
- skyblue300: string;
46
- pink300: string;
47
- lightpink500: string;
48
- darkblue300: string;
49
- darkblue700: string;
50
- darkgreen300: string;
51
- darkskyblue500: string;
52
- navy100: string;
53
- darknavy100: string;
54
- opacity80: string;
55
- opacity50: string;
56
- };
57
2
  readonly PaletteColor_light: {
58
3
  sys_container_background_01: string;
59
4
  sys_container_background_02: string;
@@ -175,6 +120,9 @@ declare const colorSet: {
175
120
  usr_widget_brand_primary_darktheme_01: string;
176
121
  usr_text_brand_primary_darktheme_01: string;
177
122
  sys_component_base_black_opacity50: string;
123
+ sys_component_base_card: string;
124
+ sys_cpnt_textlabel_sys_brand_primary_opacity50: string;
125
+ sys_widget_green_01: string;
178
126
  };
179
127
  readonly PaletteColor_Dark: {
180
128
  sys_container_background_01: string;
@@ -297,6 +245,64 @@ declare const colorSet: {
297
245
  usr_widget_brand_primary_darktheme_01: string;
298
246
  usr_text_brand_primary_darktheme_01: string;
299
247
  sys_component_base_black_opacity50: string;
248
+ sys_component_base_card: string;
249
+ sys_cpnt_textlabel_sys_brand_primary_opacity50: string;
250
+ sys_widget_green_01: string;
251
+ };
252
+ readonly SemanticColor: {
253
+ blue500: string;
254
+ blue700: string;
255
+ blue300: string;
256
+ green700: string;
257
+ green500: string;
258
+ green300: string;
259
+ red500: string;
260
+ grey900: string;
261
+ grey500: string;
262
+ grey400: string;
263
+ grey100: string;
264
+ grey50: string;
265
+ white: string;
266
+ black: string;
267
+ darkblue500: string;
268
+ grey950: string;
269
+ darkgrey900: string;
270
+ darkgrey500: string;
271
+ darkgrey400: string;
272
+ darkgrey100: string;
273
+ darkgrey50: string;
274
+ darkred500: string;
275
+ darkgreen700: string;
276
+ orange500: string;
277
+ darkorange500: string;
278
+ opacity00: string;
279
+ opacity20: string;
280
+ opacity30: string;
281
+ opacity65: string;
282
+ darkgreen500: string;
283
+ grey70: string;
284
+ navy500: string;
285
+ lightgreen500: string;
286
+ pink500: string;
287
+ darkgrey70: string;
288
+ darknavy500: string;
289
+ darkpink500: string;
290
+ darklightgreen500: string;
291
+ opacity10: string;
292
+ grey600: string;
293
+ darkgrey600: string;
294
+ skyblue500: string;
295
+ skyblue300: string;
296
+ pink300: string;
297
+ lightpink500: string;
298
+ darkblue300: string;
299
+ darkblue700: string;
300
+ darkgreen300: string;
301
+ darkskyblue500: string;
302
+ navy100: string;
303
+ darknavy100: string;
304
+ opacity80: string;
305
+ opacity50: string;
300
306
  };
301
307
  readonly UIColor: {
302
308
  ui_cpnt_button_fill_base_primary: string;
@@ -460,7 +466,7 @@ declare const colorSet: {
460
466
  ui_cpnt_list_badge_active: string;
461
467
  ui_cpnt_list_badge_active_primary: string;
462
468
  ui_cpnt_list_badge_disabled: string;
463
- ui_cpnt_list_badge_cancle: string;
469
+ ui_cpnt_list_badge_cancel: string;
464
470
  ui_cpnt_list_text_quantity_plus: string;
465
471
  ui_cpnt_content_card_base: string;
466
472
  ui_cpnt_content_icon_03: string;
@@ -737,6 +743,14 @@ declare const colorSet: {
737
743
  ui_cpnt_sheet_base_black: string;
738
744
  ui_cpnt_sheet_base_01: string;
739
745
  ui_cpnt_sheet_base_02: string;
746
+ ui_temp_background: string;
747
+ ui_list_progress_shape_normal: string;
748
+ ui_list_progress_shape_error: string;
749
+ ui_list_progress_shape_base: string;
750
+ ui_cpnt_textlabel_sys_brand_primary_opacity50: string;
751
+ ui_cpnt_progressbar_01: string;
752
+ ui_cpnt_progressbar_02: string;
753
+ ui_36: string;
740
754
  };
741
755
  };
742
756
  export default colorSet;
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /* eslint-disable import/order */
7
- var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
8
7
  var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
9
8
  var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
9
+ var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
10
10
  var UIColor_json_1 = __importDefault(require("./UIColor.json"));
11
11
  var colorSet = {
12
- SemanticColor: SemanticColor_json_1.default,
13
12
  PaletteColor_light: PaletteColor_light_json_1.default,
14
13
  PaletteColor_Dark: PaletteColor_Dark_json_1.default,
14
+ SemanticColor: SemanticColor_json_1.default,
15
15
  UIColor: UIColor_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -160,7 +160,7 @@ export interface UITheme {
160
160
  ui_cpnt_list_badge_active: string;
161
161
  ui_cpnt_list_badge_active_primary: string;
162
162
  ui_cpnt_list_badge_disabled: string;
163
- ui_cpnt_list_badge_cancle: string;
163
+ ui_cpnt_list_badge_cancel: string;
164
164
  ui_cpnt_list_text_quantity_plus: string;
165
165
  ui_cpnt_content_card_base: string;
166
166
  ui_cpnt_content_icon_03: string;
@@ -437,4 +437,12 @@ export interface UITheme {
437
437
  ui_cpnt_sheet_base_black: string;
438
438
  ui_cpnt_sheet_base_01: string;
439
439
  ui_cpnt_sheet_base_02: string;
440
+ ui_temp_background: string;
441
+ ui_list_progress_shape_normal: string;
442
+ ui_list_progress_shape_error: string;
443
+ ui_list_progress_shape_base: string;
444
+ ui_cpnt_textlabel_sys_brand_primary_opacity50: string;
445
+ ui_cpnt_progressbar_01: string;
446
+ ui_cpnt_progressbar_02: string;
447
+ ui_36: string;
440
448
  }
@@ -29,6 +29,7 @@ export declare const theme: {
29
29
  form2: string;
30
30
  blog1: string;
31
31
  singleLine: string;
32
+ btn: string;
32
33
  };
33
34
  mobileFontSize: {
34
35
  displayHeading: string;
@@ -56,6 +57,7 @@ export declare const theme: {
56
57
  form2: string;
57
58
  blog1: string;
58
59
  singleLine: string;
60
+ btn: string;
59
61
  };
60
62
  uiColors: import("..").UITheme;
61
63
  };
@@ -29,6 +29,7 @@ export declare const desktopLineHeight: {
29
29
  form2: string;
30
30
  blog1: string;
31
31
  singleLine: string;
32
+ btn: string;
32
33
  };
33
34
  export declare const mobileFontSize: {
34
35
  displayHeading: string;
@@ -56,6 +57,7 @@ export declare const mobileLineHeight: {
56
57
  form2: string;
57
58
  blog1: string;
58
59
  singleLine: string;
60
+ btn: string;
59
61
  };
60
62
  export declare const boxShadow: {
61
63
  elevation0: string;
@@ -42,7 +42,8 @@ exports.desktopLineHeight = {
42
42
  form1: '1.6',
43
43
  form2: '1.6',
44
44
  blog1: '1.6',
45
- singleLine: 'normal'
45
+ singleLine: 'normal',
46
+ btn: '1'
46
47
  };
47
48
  exports.mobileFontSize = {
48
49
  displayHeading: '32px',
@@ -69,7 +70,8 @@ exports.mobileLineHeight = {
69
70
  form1: '1.6',
70
71
  form2: '1.6',
71
72
  blog1: '1.6',
72
- singleLine: 'normal'
73
+ singleLine: 'normal',
74
+ btn: '1'
73
75
  };
74
76
  exports.boxShadow = {
75
77
  elevation0: '0 0 0 0 #0003',
@@ -27,7 +27,7 @@ function buildCascadedColors(lowLevel, highLevel, override) {
27
27
  // 서버로부터 해당 채널에서 커스텀으로 설정한 팔레트 가져오기
28
28
  // from server (원래는 비동기)
29
29
  var channelSettings = {
30
- tone: 'dark',
30
+ tone: 'light',
31
31
  customPalette: {
32
32
  usr_good_job: '#999999'
33
33
  }
@@ -0,0 +1,3 @@
1
+ export interface IFormValues {
2
+ [key: string]: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import fillIcons from '../assets/icons/fill';
2
+ import lineIcons from '../assets/icons/line';
3
+ export declare type FillIconNameKeys = keyof typeof fillIcons;
4
+ export declare type LineIconNameKeys = keyof typeof lineIcons;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -29,6 +29,7 @@ export interface PdsDevKitTheme {
29
29
  form2: string;
30
30
  blog1: string;
31
31
  singleLine: string;
32
+ btn: string;
32
33
  };
33
34
  mobileFontSize: {
34
35
  displayHeading: string;
@@ -56,6 +57,7 @@ export interface PdsDevKitTheme {
56
57
  form2: string;
57
58
  blog1: string;
58
59
  singleLine: string;
60
+ btn: string;
59
61
  };
60
62
  boxShadow: {
61
63
  elevation0: string;
@@ -0,0 +1,2 @@
1
+ import { uiColors } from '../styles/ui-colors';
2
+ export declare type UiColors = keyof typeof uiColors;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,45 @@
1
+ import { TFunctionResult } from 'i18next';
2
+ import React from 'react';
3
+ import { Path } from 'react-hook-form';
4
+ import { desktopFontSize, fontWeight } from '../../../../common/styles/theme';
5
+ import { uiColors } from '../../../../common/styles/ui-colors';
6
+ import { IFormValues } from '../../../../common/types/form';
7
+ export declare type DesktopFontSize = keyof typeof desktopFontSize;
8
+ export declare type FontWeight = keyof typeof fontWeight;
9
+ export declare type UiColors = keyof typeof uiColors;
10
+ export declare type TextFieldBaseProps = {
11
+ name: Path<IFormValues>;
12
+ hintText?: string | number | null | TFunctionResult;
13
+ defaultText?: string | number | null | TFunctionResult;
14
+ validation?: {
15
+ [key: string]: any;
16
+ };
17
+ preventBlankMode?: 'none' | 'trim' | 'all';
18
+ textLineType: 'single' | 'multi' | 'auto';
19
+ multiRows?: number;
20
+ autoMinRows?: number;
21
+ autoMaxRows?: number;
22
+ inputType?: string;
23
+ state?: 'normal' | 'read_only' | 'disabled';
24
+ colorTheme?: 'none' | 'dark';
25
+ min?: number;
26
+ max?: number;
27
+ maxLength?: number;
28
+ textSize: DesktopFontSize;
29
+ textWeight: FontWeight;
30
+ fieldPadding?: string;
31
+ fieldHeight?: number;
32
+ deleteIconMode?: 'none' | 'use';
33
+ deleteIconSize?: 12 | 16 | 20 | 24;
34
+ deleteIconColor?: UiColors;
35
+ isFocused?: boolean;
36
+ onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
37
+ onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
38
+ onFocus?: () => void;
39
+ onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
40
+ onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
41
+ onTarget?: () => void;
42
+ [x: string]: any;
43
+ } & Record<string, any>;
44
+ declare function TextFieldBase({ name, hintText, defaultText, validation, preventBlankMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, ...rest }: TextFieldBaseProps): JSX.Element;
45
+ export default TextFieldBase;
@@ -0,0 +1,265 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __rest = (this && this.__rest) || function (s, e) {
37
+ var t = {};
38
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
39
+ t[p] = s[p];
40
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
41
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
43
+ t[p[i]] = s[p[i]];
44
+ }
45
+ return t;
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ var react_1 = __importStar(require("react"));
49
+ var react_hook_form_1 = require("react-hook-form");
50
+ var styled_components_1 = __importStar(require("styled-components"));
51
+ var theme_1 = require("../../../../common/styles/theme");
52
+ var IconButton_1 = require("../../../components/IconButton");
53
+ function TextFieldBase(_a) {
54
+ var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _b = _a.preventBlankMode, preventBlankMode = _b === void 0 ? 'none' : _b, _c = _a.textLineType, textLineType = _c === void 0 ? 'single' : _c, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _d = _a.inputType, inputType = _d === void 0 ? 'text' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, min = _a.min, max = _a.max, _g = _a.maxLength, maxLength = _g === void 0 ? Infinity : _g, _h = _a.textSize, textSize = _h === void 0 ? 'form2' : _h, _j = _a.textWeight, textWeight = _j === void 0 ? 'normal' : _j, textPadding = _a.textPadding, _k = _a.fieldHeight, fieldHeight = _k === void 0 ? 48 : _k, _l = _a.deleteIconMode, deleteIconMode = _l === void 0 ? 'use' : _l, _m = _a.deleteIconSize, deleteIconSize = _m === void 0 ? 20 : _m, _o = _a.deleteIconColor, deleteIconColor = _o === void 0 ? 'ui_cpnt_button_icon_disabled' : _o, isFocused = _a.isFocused, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, rest = __rest(_a, ["name", "hintText", "defaultText", "validation", "preventBlankMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget"]);
55
+ var _p = (0, react_hook_form_1.useFormContext)(), register = _p.register, setValue = _p.setValue, getValues = _p.getValues, clearErrors = _p.clearErrors;
56
+ var timeout;
57
+ (0, react_1.useEffect)(function () {
58
+ return function () { return clearTimeout(timeout); };
59
+ }, []);
60
+ function handleFocus() {
61
+ if (onFocus) {
62
+ onFocus();
63
+ }
64
+ clearErrors(name);
65
+ }
66
+ function handleTarget() {
67
+ if (onTarget) {
68
+ onTarget();
69
+ }
70
+ }
71
+ function handleKeyDown(e) {
72
+ if (onKeyDown) {
73
+ onKeyDown(e);
74
+ }
75
+ if (inputType === 'number') {
76
+ preventEKeyword(e);
77
+ }
78
+ }
79
+ function handleKeyUp(e) {
80
+ if (onKeyUp) {
81
+ onKeyUp(e);
82
+ }
83
+ if (inputType === 'number' && maxLength) {
84
+ checkMaxLength(e);
85
+ }
86
+ }
87
+ function handleChange(e) {
88
+ // NOTE: preventBlankMode는 input에만 적용 가능
89
+ // NOTE: preventBlankMode === 'all'일 경우에는 무조건 onChange 시점에 적용
90
+ if (textLineType === 'single' && preventBlankMode === 'all') {
91
+ var value = e.target.value;
92
+ e.target.value = value.replace(/ /g, '');
93
+ }
94
+ if (onChange) {
95
+ onChange(e);
96
+ }
97
+ }
98
+ function handleBlur(e) {
99
+ // NOTE: preventBlankMode는 input에만 적용 가능
100
+ // NOTE: preventBlankMode === 'trim'일 경우에는 무조건 onBlur 시점에 적용
101
+ if (textLineType === 'single' && preventBlankMode === 'trim') {
102
+ setValue(name, e.target.value.replace(/^\s+|\s+$/gm, ''));
103
+ }
104
+ if (onBlur && onTarget) {
105
+ var relatedTarget = e.relatedTarget;
106
+ if (relatedTarget) {
107
+ onTarget();
108
+ onBlur(e);
109
+ return;
110
+ }
111
+ onBlur(e);
112
+ }
113
+ }
114
+ var textAreaRef = (0, react_1.useRef)(null);
115
+ var _q = register(name, validation), ref = _q.ref, refRest = __rest(_q, ["ref"]);
116
+ (0, react_1.useEffect)(function () {
117
+ if (textAreaRef === null || textAreaRef.current === null) {
118
+ return;
119
+ }
120
+ if (autoMinRows === 1) {
121
+ textAreaRef.current.style.height = '0';
122
+ textAreaRef.current.style.height = textAreaRef.current.scrollHeight + "px";
123
+ return;
124
+ }
125
+ textAreaRef.current.style.height = fieldHeight - 2 + "px";
126
+ textAreaRef.current.style.height = textAreaRef.current.scrollHeight + "px";
127
+ }, []);
128
+ /**
129
+ * 텍스트 필드 내부 value에 맞게 초기 height 값을 부여한다.
130
+ *
131
+ * @param getValues(fieldName)
132
+ * @when 텍스트 필드에 value가 있을 때
133
+ */
134
+ (0, react_1.useEffect)(function () {
135
+ if (!textAreaRef || !textAreaRef.current) {
136
+ return;
137
+ }
138
+ if (getValues(name)) {
139
+ textAreaRef.current.style.height = textAreaRef.current.scrollHeight + "px";
140
+ }
141
+ }, [getValues(name)]);
142
+ var handleResizeHeight = (0, react_1.useCallback)(function () {
143
+ if (ref === null || textAreaRef.current === null) {
144
+ return;
145
+ }
146
+ if (autoMinRows === 1) {
147
+ textAreaRef.current.style.height = '0';
148
+ textAreaRef.current.style.height = textAreaRef.current.scrollHeight + "px";
149
+ return;
150
+ }
151
+ textAreaRef.current.style.height = fieldHeight - 2 + "px";
152
+ textAreaRef.current.style.height = textAreaRef.current.scrollHeight + "px";
153
+ }, []);
154
+ function deleteValue() {
155
+ setValue(name, '');
156
+ }
157
+ // NOTE: input의 type이 number일때, e나 E의 경우 숫자로 취급되어 입력이 가능하지만, publ의 기획상 막아야하기 때문에 생성한 함수
158
+ var preventEKeyword = function (e) {
159
+ if (e.key === 'e' || e.key === 'E') {
160
+ e.preventDefault();
161
+ }
162
+ };
163
+ // NOTE: input의 type이 number일때, maxLength를 사용할 수 없으나 기획상 필요해서 생성한 함수
164
+ function checkMaxLength(e) {
165
+ if (e.target.value.length >= maxLength) {
166
+ e.target.value = e.target.value.substring(0, maxLength);
167
+ timeout = setTimeout(function () {
168
+ return setValue(name, e.target.value, {
169
+ shouldValidate: true
170
+ });
171
+ }, 800);
172
+ }
173
+ }
174
+ var S_TextFieldBase = function () {
175
+ if (textLineType === 'single') {
176
+ return (react_1.default.createElement(S_InputWrapper, null,
177
+ react_1.default.createElement(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })),
178
+ deleteIconMode === 'use' && isFocused && (react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', onMouseDown: deleteValue }))));
179
+ }
180
+ if (textLineType === 'multi') {
181
+ return (react_1.default.createElement(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })));
182
+ }
183
+ if (textLineType === 'auto') {
184
+ return (react_1.default.createElement(S_Auto, __assign({}, refRest, rest, { name: name, defaultValue: defaultText, autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, placeholder: hintText, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, fieldHeight: fieldHeight, colorTheme: colorTheme, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
185
+ ref(e);
186
+ textAreaRef.current = e;
187
+ }, onInput: handleResizeHeight })));
188
+ }
189
+ };
190
+ return react_1.default.createElement(react_1.default.Fragment, null, S_TextFieldBase());
191
+ }
192
+ var S_InputWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n width: 100%;\n"])));
193
+ var read_only = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -webkit-user-select: none;\n user-select: none;\n"], ["\n color: ", ";\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -webkit-user-select: none;\n user-select: none;\n"])), function (_a) {
194
+ var theme = _a.theme, colorTheme = _a.colorTheme;
195
+ return colorTheme &&
196
+ { none: theme.ui_cpnt_textfield_text_hint, dark: theme.ui_cpnt_textfield_text_darktheme_hint }[colorTheme];
197
+ });
198
+ var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n color: ", ";\n"], ["\n color: ", ";\n color: ", ";\n"])), function (_a) {
199
+ var theme = _a.theme;
200
+ return theme.ui_cpnt_textfield_text_disabled;
201
+ }, function (_a) {
202
+ var theme = _a.theme, colorTheme = _a.colorTheme;
203
+ return colorTheme &&
204
+ {
205
+ none: theme.ui_cpnt_textfield_text_disabled,
206
+ dark: theme.ui_cpnt_textfield_text_darktheme_disabled
207
+ }[colorTheme];
208
+ });
209
+ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n }\n\n ", ";\n ", "\n"], ["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
210
+ var theme = _a.theme, colorTheme = _a.colorTheme;
211
+ return colorTheme &&
212
+ {
213
+ none: theme.ui_cpnt_textfield_text_typed,
214
+ dark: theme.ui_cpnt_textfield_text_darktheme_enabled
215
+ }[colorTheme];
216
+ }, function (_a) {
217
+ var textSize = _a.textSize;
218
+ return theme_1.desktopFontSize[textSize];
219
+ }, function (_a) {
220
+ var textWeight = _a.textWeight;
221
+ return theme_1.fontWeight[textWeight];
222
+ }, function (_a) {
223
+ var textSize = _a.textSize;
224
+ return theme_1.desktopLineHeight[textSize];
225
+ }, function (_a) {
226
+ var theme = _a.theme, colorTheme = _a.colorTheme;
227
+ return colorTheme &&
228
+ {
229
+ none: theme.ui_cpnt_textfield_text_hint,
230
+ dark: theme.ui_cpnt_textfield_text_darktheme_hint
231
+ }[colorTheme];
232
+ }, function (_a) {
233
+ var state = _a.state;
234
+ return state &&
235
+ {
236
+ normal: '',
237
+ read_only: read_only,
238
+ disabled: disabled
239
+ }[state];
240
+ }, function (_a) {
241
+ var textPadding = _a.textPadding;
242
+ return textPadding && "padding: " + textPadding;
243
+ });
244
+ var S_Input = styled_components_1.default.input(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n line-height: ", ";\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"], ["\n ", "\n line-height: ", ";\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), basicStyle, function (_a) {
245
+ var theme = _a.theme;
246
+ return theme.desktopLineHeight.singleLine;
247
+ });
248
+ var S_Auto = styled_components_1.default.textarea(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n resize: none;\n ", "\n ", ";\n"], ["\n ", "\n resize: none;\n ", "\n ", ";\n"])), basicStyle, function (_a) {
249
+ var autoMaxRows = _a.autoMaxRows, textSize = _a.textSize, fieldHeight = _a.fieldHeight;
250
+ return autoMaxRows &&
251
+ fieldHeight &&
252
+ "max-height: " + Number(theme_1.desktopFontSize[textSize].substring(0, 2)) *
253
+ Number(theme_1.desktopLineHeight[textSize]) *
254
+ autoMaxRows + "px;";
255
+ }, function (_a) {
256
+ var autoMinRows = _a.autoMinRows, textSize = _a.textSize, fieldHeight = _a.fieldHeight;
257
+ return autoMinRows &&
258
+ fieldHeight &&
259
+ "min-height: " + Number(theme_1.desktopFontSize[textSize].substring(0, 2)) *
260
+ Number(theme_1.desktopLineHeight[textSize]) *
261
+ autoMinRows + "px;";
262
+ });
263
+ var S_Multi = styled_components_1.default.textarea(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n"], ["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n"])), basicStyle);
264
+ exports.default = TextFieldBase;
265
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;