pds-dev-kit-web 0.4.0 → 0.5.1

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 (268) 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 +10 -3
  35. package/dist/src/common/styles/colorSet/index.d.ts +71 -58
  36. package/dist/src/common/styles/colorSet/index.js +2 -2
  37. package/dist/src/common/styles/colorSet/ui-type.d.ts +8 -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/NavigationContainer/variation/Navigation.js +1 -1
  268. package/package.json +5 -1
@@ -30,8 +30,8 @@ var react_1 = __importDefault(require("react"));
30
30
  var styled_components_1 = __importStar(require("styled-components"));
31
31
  var common_1 = require("../../../common");
32
32
  function TextLabel(_a) {
33
- var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, colorOverride = _a.colorOverride, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.underline, underline = _e === void 0 ? 'none' : _e, _f = _a.singleLineMode, singleLineMode = _f === void 0 ? 'none' : _f, _g = _a.ellipsisMode, ellipsisMode = _g === void 0 ? 'none' : _g, lineLimit = _a.lineLimit;
34
- return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, underline: underline, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit }, text));
33
+ var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, colorOverride = _a.colorOverride, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.underline, underline = _e === void 0 ? 'none' : _e, _f = _a.singleLineMode, singleLineMode = _f === void 0 ? 'none' : _f, _g = _a.ellipsisMode, ellipsisMode = _g === void 0 ? 'none' : _g, lineLimit = _a.lineLimit, _h = _a.btnMode, btnMode = _h === void 0 ? 'none' : _h;
34
+ return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, underline: underline, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit, btnMode: btnMode }, text));
35
35
  }
36
36
  var displayBold = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"], ["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"])), function (_a) {
37
37
  var theme = _a.theme;
@@ -251,7 +251,7 @@ var ellipsisStyle = (0, styled_components_1.css)(templateObject_29 || (templateO
251
251
  var lineLimit = _a.lineLimit;
252
252
  return lineLimit;
253
253
  });
254
- var S_TextLabel = styled_components_1.default.div(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: break-all;\n\n ", ";\n\n ", ";\n\n line-height: ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: break-all;\n\n ", ";\n\n ", ";\n\n line-height: ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
254
+ var S_TextLabel = styled_components_1.default.div(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: break-all;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: break-all;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
255
255
  var textAlign = _a.textAlign;
256
256
  return textAlign;
257
257
  }, function (_a) {
@@ -296,7 +296,10 @@ var S_TextLabel = styled_components_1.default.div(templateObject_30 || (template
296
296
  }[colorTheme];
297
297
  }, function (_a) {
298
298
  var singleLineMode = _a.singleLineMode, theme = _a.theme;
299
- return singleLineMode === 'use' && theme.mobileLineHeight.singleLine;
299
+ return singleLineMode === 'use' && "line-height: " + theme.desktopLineHeight.singleLine;
300
+ }, function (_a) {
301
+ var btnMode = _a.btnMode, theme = _a.theme;
302
+ return btnMode === 'use' && "line-height: " + theme.desktopLineHeight.btn;
300
303
  }, function (_a) {
301
304
  var ellipsisMode = _a.ellipsisMode, lineLimit = _a.lineLimit;
302
305
  return ellipsisMode === 'use' && lineLimit && ellipsisStyle;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { FillIconNameKeys, LineIconNameKeys, UiColors } from '../../../common';
3
+ export declare type UploadIconButtonProps = {
4
+ fillType?: 'fill' | 'line';
5
+ shapeType?: 'circular' | 'rectangle';
6
+ baseSize?: 'xxlarge' | 'large' | 'medium' | 'small' | 'xsmall';
7
+ baseColorKey?: UiColors;
8
+ borderColorKey?: UiColors;
9
+ iconSize?: 12 | 16 | 20 | 24 | 48 | 72;
10
+ iconFillType?: 'fill' | 'line';
11
+ iconName: FillIconNameKeys | LineIconNameKeys;
12
+ iconColorKey?: UiColors;
13
+ shadow?: 'hidden' | 'visible';
14
+ colorTheme?: 'none' | 'line1' | 'line2';
15
+ state?: 'normal' | 'disabled';
16
+ accept?: string;
17
+ multipleMode?: 'none' | 'use';
18
+ onClick?: (e: React.ChangeEvent<HTMLInputElement>) => void;
19
+ };
20
+ declare function UploadIconButton({ fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, state, accept, multipleMode, onClick }: UploadIconButtonProps): JSX.Element;
21
+ export default UploadIconButton;
@@ -0,0 +1,138 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ var react_1 = __importDefault(require("react"));
30
+ var styled_components_1 = __importStar(require("styled-components"));
31
+ var common_1 = require("../../../common");
32
+ var hybrid_1 = require("../../../hybrid");
33
+ var types_1 = require("./types");
34
+ function UploadIconButton(_a) {
35
+ var _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.shapeType, shapeType = _c === void 0 ? 'rectangle' : _c, _d = _a.baseSize, baseSize = _d === void 0 ? 'small' : _d, baseColorKey = _a.baseColorKey, borderColorKey = _a.borderColorKey, _e = _a.iconSize, iconSize = _e === void 0 ? 24 : _e, _f = _a.iconFillType, iconFillType = _f === void 0 ? 'line' : _f, _g = _a.iconName, iconName = _g === void 0 ? 'ic_upload' : _g, iconColorKey = _a.iconColorKey, _h = _a.shadow, shadow = _h === void 0 ? 'hidden' : _h, _j = _a.colorTheme, colorTheme = _j === void 0 ? 'none' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, _l = _a.accept, accept = _l === void 0 ? '*' : _l, _m = _a.multipleMode, multipleMode = _m === void 0 ? 'none' : _m, onClick = _a.onClick;
36
+ var IconColorSelect = function () {
37
+ if (state === 'disabled') {
38
+ return 'ui_cpnt_button_icon_disabled';
39
+ }
40
+ if (colorTheme !== 'none' && fillType === 'line') {
41
+ return types_1.iconThemeColorLineColors[colorTheme];
42
+ }
43
+ if (iconColorKey) {
44
+ return iconColorKey;
45
+ }
46
+ return types_1.iconStateColors[fillType];
47
+ };
48
+ return (react_1.default.createElement(S_UploadIconButton, { fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, isDisabled: state === 'disabled' },
49
+ react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: onClick }),
50
+ react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: iconSize, colorKey: IconColorSelect(), fillType: iconFillType })));
51
+ }
52
+ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
53
+ var theme = _a.theme, baseColorKey = _a.baseColorKey;
54
+ return baseColorKey === 'ui_cpnt_button_fill_base_transparent'
55
+ ? ''
56
+ : theme.ui_cpnt_button_fill_base_disabled;
57
+ });
58
+ var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"])), function (_a) {
59
+ var theme = _a.theme, baseColorKey = _a.baseColorKey;
60
+ return baseColorKey ? common_1.uiColors[baseColorKey] : theme.ui_cpnt_button_fill_base_primary;
61
+ }, function (_a) {
62
+ var theme = _a.theme, baseColorKey = _a.baseColorKey;
63
+ return baseColorKey === 'ui_cpnt_button_fill_base_transparent'
64
+ ? ''
65
+ : "linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_pressed + ",\n " + theme.ui_cpnt_button_fill_on_base_pressed + "\n )";
66
+ }, function (_a) {
67
+ var isDisabled = _a.isDisabled;
68
+ return isDisabled && fillDisabled;
69
+ });
70
+ var line1ColorTheme = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-color: ", ";\n"], ["\n border-color: ", ";\n"])), function (_a) {
71
+ var theme = _a.theme;
72
+ return theme.ui_cpnt_button_line_border_error;
73
+ });
74
+ var line2ColorTheme = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-color: ", ";\n"], ["\n border-color: ", ";\n"])), function (_a) {
75
+ var theme = _a.theme;
76
+ return theme.ui_cpnt_button_line_border_primary;
77
+ });
78
+ var lineDisabled = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-color: ", ";\n background-color: ", ";\n"], ["\n border-color: ", ";\n background-color: ", ";\n"])), function (_a) {
79
+ var theme = _a.theme;
80
+ return theme.ui_cpnt_button_line_border_disabled;
81
+ }, function (_a) {
82
+ var theme = _a.theme;
83
+ return theme.ui_cpnt_button_line_base_default;
84
+ });
85
+ var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n border-color: ", ";\n\n ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n border-color: ", ";\n\n ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n"])), function (_a) {
86
+ var theme = _a.theme;
87
+ return theme.ui_cpnt_button_line_base_default;
88
+ }, function (_a) {
89
+ var theme = _a.theme, borderColorKey = _a.borderColorKey;
90
+ return borderColorKey ? common_1.uiColors[borderColorKey] : theme.ui_cpnt_button_line_border_enabled;
91
+ }, function (_a) {
92
+ var colorTheme = _a.colorTheme;
93
+ switch (colorTheme) {
94
+ case 'line1':
95
+ return line1ColorTheme;
96
+ case 'line2':
97
+ return line2ColorTheme;
98
+ default:
99
+ return '';
100
+ }
101
+ }, function (_a) {
102
+ var theme = _a.theme;
103
+ return theme.ui_cpnt_button_line_base_pressed;
104
+ }, function (_a) {
105
+ var isDisabled = _a.isDisabled;
106
+ return isDisabled && lineDisabled;
107
+ });
108
+ var xxlarge = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: 96px;\n width: 96px;\n"], ["\n height: 96px;\n width: 96px;\n"])));
109
+ var large = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n height: 48px;\n width: 48px;\n"], ["\n height: 48px;\n width: 48px;\n"])));
110
+ var medium = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n height: 40px;\n width: 40px;\n"], ["\n height: 40px;\n width: 40px;\n"])));
111
+ var small = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n height: 32px;\n width: 32px;\n"], ["\n height: 32px;\n width: 32px;\n"])));
112
+ var xsmall = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n height: 24px;\n width: 24px;\n"], ["\n height: 24px;\n width: 24px;\n"])));
113
+ var S_UploadIconButton = styled_components_1.default.label(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n border-radius: ", ";\n box-shadow: ", ";\n display: inline-flex;\n justify-content: center;\n\n ", ";\n\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n border-radius: ", ";\n box-shadow: ", ";\n display: inline-flex;\n justify-content: center;\n\n ", ";\n\n ", ";\n"])), function (_a) {
114
+ var shapeType = _a.shapeType;
115
+ return shapeType === 'circular' && '50%';
116
+ }, function (_a) {
117
+ var theme = _a.theme, shadow = _a.shadow;
118
+ return shadow === 'visible' && theme.boxShadow.elevation2;
119
+ }, function (_a) {
120
+ var fillType = _a.fillType;
121
+ return fillType &&
122
+ {
123
+ fill: fill,
124
+ line: line
125
+ }[fillType];
126
+ }, function (_a) {
127
+ var baseSize = _a.baseSize;
128
+ return baseSize &&
129
+ {
130
+ xxlarge: xxlarge,
131
+ large: large,
132
+ medium: medium,
133
+ small: small,
134
+ xsmall: xsmall
135
+ }[baseSize];
136
+ });
137
+ exports.default = UploadIconButton;
138
+ 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;
@@ -0,0 +1 @@
1
+ export { default as UploadIconButton } from './UploadIconButton';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UploadIconButton = void 0;
7
+ var UploadIconButton_1 = require("./UploadIconButton");
8
+ Object.defineProperty(exports, "UploadIconButton", { enumerable: true, get: function () { return __importDefault(UploadIconButton_1).default; } });
@@ -0,0 +1,8 @@
1
+ export declare const iconStateColors: {
2
+ readonly fill: "ui_cpnt_button_icon_on_primary";
3
+ readonly line: "ui_cpnt_button_icon_enabled";
4
+ };
5
+ export declare const iconThemeColorLineColors: {
6
+ readonly line1: "ui_cpnt_button_icon_error";
7
+ readonly line2: "ui_cpnt_button_icon_primary";
8
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.iconThemeColorLineColors = exports.iconStateColors = void 0;
4
+ exports.iconStateColors = {
5
+ fill: 'ui_cpnt_button_icon_on_primary',
6
+ line: 'ui_cpnt_button_icon_enabled'
7
+ };
8
+ exports.iconThemeColorLineColors = {
9
+ line1: 'ui_cpnt_button_icon_error',
10
+ line2: 'ui_cpnt_button_icon_primary'
11
+ };
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { FillIconNameKeys, LineIconNameKeys } from '../../../common';
3
+ declare type UploadMainButtonProps = {
4
+ text?: string;
5
+ fillType?: 'fill' | 'line';
6
+ size?: 'large' | 'medium' | 'small' | 'xsmall' | 'rlarge';
7
+ fontWeight?: 'bold' | 'regular';
8
+ iconMode?: 'none' | 'left' | 'right';
9
+ iconFillType?: 'fill' | 'line';
10
+ iconName?: FillIconNameKeys | LineIconNameKeys;
11
+ colorTheme?: 'none' | 'line1' | 'line2' | 'line3';
12
+ state?: 'normal' | 'disabled';
13
+ accept?: string;
14
+ multipleMode?: 'none' | 'use';
15
+ onClick?: (e: React.ChangeEvent<HTMLInputElement>) => void;
16
+ };
17
+ declare function UploadMainButton({ text, fillType, size, fontWeight, iconMode, iconFillType, iconName, colorTheme, state, accept, multipleMode, onClick }: UploadMainButtonProps): JSX.Element;
18
+ export default UploadMainButton;
@@ -0,0 +1,161 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ var react_1 = __importDefault(require("react"));
30
+ var styled_components_1 = __importStar(require("styled-components"));
31
+ var hybrid_1 = require("../../../hybrid");
32
+ var TextLabel_1 = require("../TextLabel");
33
+ var types_1 = require("./types");
34
+ function UploadMainButton(_a) {
35
+ var text = _a.text, _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.size, size = _c === void 0 ? 'large' : _c, fontWeight = _a.fontWeight, _d = _a.iconMode, iconMode = _d === void 0 ? 'none' : _d, _e = _a.iconFillType, iconFillType = _e === void 0 ? 'line' : _e, _f = _a.iconName, iconName = _f === void 0 ? 'ic_upload' : _f, _g = _a.colorTheme, colorTheme = _g === void 0 ? 'none' : _g, _h = _a.state, state = _h === void 0 ? 'normal' : _h, _j = _a.accept, accept = _j === void 0 ? '*' : _j, _k = _a.multipleMode, multipleMode = _k === void 0 ? 'none' : _k, onClick = _a.onClick;
36
+ var selectTextThemeColor = function () {
37
+ if (colorTheme === 'line3' && state === 'disabled') {
38
+ return 'ui_cpnt_button_text_darktheme_disabled';
39
+ }
40
+ if (fillType === 'line' && colorTheme !== 'none' && state !== 'disabled') {
41
+ return types_1.textThemeColorLines[colorTheme];
42
+ }
43
+ return undefined;
44
+ };
45
+ var iconColor = function () {
46
+ if (state === 'disabled') {
47
+ if (colorTheme === 'line3') {
48
+ return 'ui_cpnt_button_icon_darktheme_disabled';
49
+ }
50
+ return 'ui_cpnt_button_icon_disabled';
51
+ }
52
+ if (fillType === 'line' && colorTheme !== 'none') {
53
+ return types_1.iconColorThemeLineColors[colorTheme];
54
+ }
55
+ return types_1.iconFillTypeColors[fillType];
56
+ };
57
+ return (react_1.default.createElement(S_UploadMainButton, { fillType: fillType, size: size, fontWeight: fontWeight, colorTheme: colorTheme, disabled: state === 'disabled' },
58
+ react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: onClick }),
59
+ size !== 'xsmall' && iconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
60
+ react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType }),
61
+ react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }))),
62
+ react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: types_1.textStyles[size], btnMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : types_1.textColors[fillType], colorOverride: selectTextThemeColor() }),
63
+ size !== 'xsmall' && iconMode === 'right' && (react_1.default.createElement(react_1.default.Fragment, null,
64
+ react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }),
65
+ react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType })))));
66
+ }
67
+ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 24px;\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n width: ", ";\n"], ["\n border-radius: 24px;\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n width: ", ";\n"])), function (_a) {
68
+ var theme = _a.theme;
69
+ return theme.spacing.spacingE;
70
+ }, function (_a) {
71
+ var size = _a.size;
72
+ return size === 'rlarge' && '100%';
73
+ });
74
+ var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 20px;\n height: 40px;\n padding: 0 ", ";\n"], ["\n border-radius: 20px;\n height: 40px;\n padding: 0 ", ";\n"])), function (_a) {
75
+ var theme = _a.theme;
76
+ return theme.spacing.spacingE;
77
+ });
78
+ var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 16px;\n height: 32px;\n padding: 0 ", ";\n"], ["\n border-radius: 16px;\n height: 32px;\n padding: 0 ", ";\n"])), function (_a) {
79
+ var theme = _a.theme;
80
+ return theme.spacing.spacingD;
81
+ });
82
+ var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 12px;\n height: 24px;\n padding: 0 ", ";\n"], ["\n border-radius: 12px;\n height: 24px;\n padding: 0 ", ";\n"])), function (_a) {
83
+ var theme = _a.theme;
84
+ return theme.spacing.spacingD;
85
+ });
86
+ var fillDisabled = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
87
+ var theme = _a.theme;
88
+ return theme.ui_cpnt_button_fill_base_disabled;
89
+ });
90
+ var fill = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", "\n"], ["\n background-color: ", ";\n border: none;\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", "\n"])), function (_a) {
91
+ var theme = _a.theme;
92
+ return theme.ui_cpnt_button_fill_base_primary;
93
+ }, function (_a) {
94
+ var theme = _a.theme;
95
+ return "linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_pressed + ",\n " + theme.ui_cpnt_button_fill_on_base_pressed + "\n )";
96
+ }, function (_a) {
97
+ var disabled = _a.disabled;
98
+ return disabled && fillDisabled;
99
+ });
100
+ var none = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border: solid 1px ", ";\n"], ["\n border: solid 1px ", ";\n"])), function (_a) {
101
+ var theme = _a.theme;
102
+ return theme.ui_cpnt_button_line_border_enabled;
103
+ });
104
+ var line1 = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n border: solid 1px ", ";\n"], ["\n border: solid 1px ", ";\n"])), function (_a) {
105
+ var theme = _a.theme;
106
+ return theme.ui_cpnt_button_line_border_error;
107
+ });
108
+ var line2 = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n border: solid 1px ", ";\n"], ["\n border: solid 1px ", ";\n"])), function (_a) {
109
+ var theme = _a.theme;
110
+ return theme.ui_cpnt_button_line_border_primary;
111
+ });
112
+ var line3 = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n border: solid 1px ", ";\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"], ["\n border: solid 1px ", ";\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"])), function (_a) {
113
+ var theme = _a.theme;
114
+ return theme.ui_cpnt_button_line_border_darktheme_enabled;
115
+ }, function (_a) {
116
+ var theme = _a.theme;
117
+ return theme.ui_cpnt_button_line_base_darktheme_default;
118
+ }, function (_a) {
119
+ var theme = _a.theme;
120
+ return theme.ui_cpnt_button_line_base_darktheme_pressed;
121
+ });
122
+ var lineDisabled = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 1px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 1px\n ", ";\n"])), function (_a) {
123
+ var theme = _a.theme, colorTheme = _a.colorTheme;
124
+ return colorTheme === 'line3'
125
+ ? theme.ui_cpnt_button_line_base_darktheme_default
126
+ : theme.ui_cpnt_button_line_base_default;
127
+ }, function (_a) {
128
+ var theme = _a.theme, colorTheme = _a.colorTheme;
129
+ return colorTheme === 'line3'
130
+ ? theme.ui_cpnt_button_line_border_darktheme_disabled
131
+ : theme.ui_cpnt_button_line_border_disabled;
132
+ });
133
+ var line = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n ", "\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
134
+ var theme = _a.theme;
135
+ return theme.ui_cpnt_button_line_base_default;
136
+ }, function (_a) {
137
+ var theme = _a.theme;
138
+ return theme.ui_cpnt_button_line_base_pressed;
139
+ }, function (_a) {
140
+ var colorTheme = _a.colorTheme;
141
+ return colorTheme && { none: none, line1: line1, line2: line2, line3: line3 }[colorTheme];
142
+ }, function (_a) {
143
+ var disabled = _a.disabled;
144
+ return disabled && lineDisabled;
145
+ });
146
+ var S_UploadMainButton = styled_components_1.default.label(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n & > div {\n font-weight: ", ";\n }\n\n ", "\n ", "\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n & > div {\n font-weight: ", ";\n }\n\n ", "\n ", "\n"])), function (_a) {
147
+ var theme = _a.theme, fontWeight = _a.fontWeight;
148
+ return fontWeight &&
149
+ {
150
+ bold: theme.fontWeight.bold,
151
+ regular: theme.fontWeight.normal
152
+ }[fontWeight];
153
+ }, function (_a) {
154
+ var fillType = _a.fillType;
155
+ return fillType && { fill: fill, line: line }[fillType];
156
+ }, function (_a) {
157
+ var size = _a.size;
158
+ return size && { large: large, medium: medium, small: small, xsmall: xsmall, rlarge: large }[size];
159
+ });
160
+ exports.default = UploadMainButton;
161
+ 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;
@@ -0,0 +1 @@
1
+ export { default as UploadMainButton } from './UploadMainButton';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UploadMainButton = void 0;
7
+ var UploadMainButton_1 = require("./UploadMainButton");
8
+ Object.defineProperty(exports, "UploadMainButton", { enumerable: true, get: function () { return __importDefault(UploadMainButton_1).default; } });
@@ -0,0 +1,25 @@
1
+ export declare const textStyles: {
2
+ readonly rlarge: "body1Bold";
3
+ readonly large: "body1Bold";
4
+ readonly medium: "body2Bold";
5
+ readonly small: "caption1Bold";
6
+ readonly xsmall: "caption1Regular";
7
+ };
8
+ export declare const textThemeColorLines: {
9
+ readonly line1: "ui_cpnt_button_text_error";
10
+ readonly line2: "ui_cpnt_button_text_primary";
11
+ readonly line3: "ui_cpnt_button_text_darktheme_enabled";
12
+ };
13
+ export declare const textColors: {
14
+ readonly fill: "usrTextBrandOnPrimary";
15
+ readonly line: "sysTextPrimary";
16
+ };
17
+ export declare const iconFillTypeColors: {
18
+ readonly fill: "ui_cpnt_button_icon_on_primary";
19
+ readonly line: "ui_cpnt_button_icon_enabled";
20
+ };
21
+ export declare const iconColorThemeLineColors: {
22
+ readonly line1: "ui_cpnt_button_icon_error";
23
+ readonly line2: "ui_cpnt_button_icon_primary";
24
+ readonly line3: "ui_cpnt_button_icon_darktheme_enabled";
25
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.iconColorThemeLineColors = exports.iconFillTypeColors = exports.textColors = exports.textThemeColorLines = exports.textStyles = void 0;
4
+ exports.textStyles = {
5
+ rlarge: 'body1Bold',
6
+ large: 'body1Bold',
7
+ medium: 'body2Bold',
8
+ small: 'caption1Bold',
9
+ xsmall: 'caption1Regular'
10
+ };
11
+ exports.textThemeColorLines = {
12
+ line1: 'ui_cpnt_button_text_error',
13
+ line2: 'ui_cpnt_button_text_primary',
14
+ line3: 'ui_cpnt_button_text_darktheme_enabled'
15
+ };
16
+ exports.textColors = {
17
+ fill: 'usrTextBrandOnPrimary',
18
+ line: 'sysTextPrimary'
19
+ };
20
+ exports.iconFillTypeColors = {
21
+ fill: 'ui_cpnt_button_icon_on_primary',
22
+ line: 'ui_cpnt_button_icon_enabled'
23
+ };
24
+ exports.iconColorThemeLineColors = {
25
+ line1: 'ui_cpnt_button_icon_error',
26
+ line2: 'ui_cpnt_button_icon_primary',
27
+ line3: 'ui_cpnt_button_icon_darktheme_enabled'
28
+ };
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ declare type UploadTextButtonProps = {
3
+ text?: string;
4
+ size?: 'rlarge' | 'large' | 'medium' | 'small' | 'xsmall';
5
+ fontWeight?: 'bold' | 'regular';
6
+ state?: 'normal' | 'disabled';
7
+ accept?: string;
8
+ multipleMode?: 'none' | 'use';
9
+ onClick?: (e: React.ChangeEvent<HTMLInputElement>) => void;
10
+ };
11
+ declare function UploadTextButton({ text, size, fontWeight, state, accept, multipleMode, onClick }: UploadTextButtonProps): JSX.Element;
12
+ export default UploadTextButton;
@@ -0,0 +1,77 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ var react_1 = __importDefault(require("react"));
30
+ var styled_components_1 = __importStar(require("styled-components"));
31
+ var TextLabel_1 = require("../TextLabel");
32
+ var textStyle = {
33
+ rlarge: 'body1Bold',
34
+ large: 'body1Bold',
35
+ medium: 'body2Bold',
36
+ small: 'caption1Bold',
37
+ xsmall: 'caption1Regular'
38
+ };
39
+ function UploadTextButton(_a) {
40
+ var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, fontWeight = _a.fontWeight, _c = _a.state, state = _c === void 0 ? 'normal' : _c, _d = _a.accept, accept = _d === void 0 ? '*' : _d, _e = _a.multipleMode, multipleMode = _e === void 0 ? 'none' : _e, onClick = _a.onClick;
41
+ return (react_1.default.createElement(S_UploadTextButton, { size: size, fontWeight: fontWeight, disabled: state === 'disabled' },
42
+ react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: onClick }),
43
+ react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : 'usrTextBrandPrimary', btnMode: "use" })));
44
+ }
45
+ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n"], ["\n height: 48px;\n width: ", ";\n"])), function (_a) {
46
+ var size = _a.size;
47
+ return size === 'rlarge' && '100%';
48
+ });
49
+ var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n"], ["\n height: 40px;\n"])));
50
+ var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n"], ["\n height: 32px;\n"])));
51
+ var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n"], ["\n height: 24px;\n"])));
52
+ var S_UploadTextButton = styled_components_1.default.label(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n"])), function (_a) {
53
+ var theme = _a.theme;
54
+ return theme.spacing.spacingB;
55
+ }, function (_a) {
56
+ var theme = _a.theme;
57
+ return theme.ui_cpnt_button_line_base_pressed;
58
+ }, function (_a) {
59
+ var theme = _a.theme, fontWeight = _a.fontWeight;
60
+ return fontWeight &&
61
+ {
62
+ bold: theme.fontWeight.bold,
63
+ regular: theme.fontWeight.normal
64
+ }[fontWeight];
65
+ }, function (_a) {
66
+ var size = _a.size;
67
+ return size &&
68
+ {
69
+ rlarge: large,
70
+ large: large,
71
+ medium: medium,
72
+ small: small,
73
+ xsmall: xsmall
74
+ }[size];
75
+ });
76
+ exports.default = UploadTextButton;
77
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -0,0 +1 @@
1
+ export { default as UploadTextButton } from './UploadTextButton';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UploadTextButton = void 0;
7
+ var UploadTextButton_1 = require("./UploadTextButton");
8
+ Object.defineProperty(exports, "UploadTextButton", { enumerable: true, get: function () { return __importDefault(UploadTextButton_1).default; } });
@@ -1,4 +1,23 @@
1
+ import { BlogTextField } from './BlogTextField';
2
+ import { Card } from './Card';
3
+ import { CardList } from './CardList';
4
+ import { Checkbox } from './Checkbox';
5
+ import { Chip } from './Chip';
6
+ import { ContextMenu } from './ContextMenu';
7
+ import { ContextMenuItem } from './ContextMenuItem';
1
8
  import { IconButton } from './IconButton';
9
+ import { ImageSlide } from './ImageSlide';
10
+ import { MainButton } from './MainButton';
11
+ import { MobileHeaderBar } from './MobileHeaderBar';
12
+ import { MobileTabBar } from './MobileTabBar';
13
+ import { Radio } from './Radio';
14
+ import { ReactionButton } from './ReactionButton';
15
+ import { Select } from './Select';
2
16
  import { StatusBlock } from './StatusBlock';
17
+ import { TextButton } from './TextButton';
18
+ import { TextField } from './TextField';
3
19
  import { TextLabel } from './TextLabel';
4
- export { IconButton, StatusBlock, TextLabel };
20
+ import { UploadIconButton } from './UploadIconButton';
21
+ import { UploadMainButton } from './UploadMainButton';
22
+ import { UploadTextButton } from './UploadTextButton';
23
+ export { BlogTextField, Card, CardList, Checkbox, Chip, ContextMenu, ContextMenuItem, IconButton, ImageSlide, MainButton, MobileHeaderBar, MobileTabBar, Radio, ReactionButton, Select, StatusBlock, TextButton, TextField, TextLabel, UploadIconButton, UploadMainButton, UploadTextButton };