pds-dev-kit-web 1.3.26 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/index.d.ts +6 -6
  2. package/dist/index.js +7 -3
  3. package/dist/src/GlobalStyle.js +1 -1
  4. package/dist/src/common/components/BoxLayout/Col.d.ts +7 -0
  5. package/dist/src/common/components/BoxLayout/Col.js +48 -0
  6. package/dist/src/common/components/BoxLayout/Grid.d.ts +9 -0
  7. package/dist/src/common/components/BoxLayout/Grid.js +51 -0
  8. package/dist/src/common/components/BoxLayout/Row.d.ts +7 -0
  9. package/dist/src/common/components/BoxLayout/Row.js +48 -0
  10. package/dist/src/common/components/BoxLayout/index.d.ts +3 -0
  11. package/dist/src/common/components/BoxLayout/index.js +12 -0
  12. package/dist/src/common/components/Navigations/ContextTextLabelNav.d.ts +11 -0
  13. package/dist/src/common/components/Navigations/ContextTextLabelNav.js +15 -0
  14. package/dist/src/common/components/Navigations/NavLink.d.ts +13 -0
  15. package/dist/src/common/components/Navigations/NavLink.js +42 -0
  16. package/dist/src/common/components/Navigations/Navs.d.ts +10 -0
  17. package/dist/src/common/components/Navigations/Navs.js +43 -0
  18. package/dist/src/common/components/Navigations/TextLabelNav.d.ts +11 -0
  19. package/dist/src/common/components/Navigations/TextLabelNav.js +15 -0
  20. package/dist/src/common/components/Navigations/index.d.ts +2 -0
  21. package/dist/src/common/components/Navigations/index.js +10 -0
  22. package/dist/src/common/decorators/withFormProvider.js +4 -1
  23. package/dist/src/common/hooks/index.d.ts +1 -0
  24. package/dist/src/common/hooks/index.js +8 -0
  25. package/dist/src/common/hooks/useDetectOverflow.d.ts +10 -0
  26. package/dist/src/common/hooks/useDetectOverflow.js +46 -0
  27. package/dist/src/common/index.d.ts +2 -2
  28. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +13 -3
  29. package/dist/src/common/styles/colorSet/PaletteColor_light.json +13 -3
  30. package/dist/src/common/styles/colorSet/SemanticColor.json +2 -1
  31. package/dist/src/common/styles/colorSet/UIColor.json +46 -27
  32. package/dist/src/common/styles/colorSet/index.d.ts +100 -60
  33. package/dist/src/common/styles/colorSet/index.js +4 -4
  34. package/dist/src/common/styles/colorSet/ui-type.d.ts +19 -0
  35. package/dist/src/common/types/components.d.ts +2 -0
  36. package/dist/src/common/types/icon.d.ts +1 -0
  37. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +2 -1
  38. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +29 -11
  39. package/dist/src/desktop/components/AdminList/AdminList.d.ts +22 -8
  40. package/dist/src/desktop/components/AdminList/AdminList.js +21 -2
  41. package/dist/src/desktop/components/AdminList/BulkActionBar.d.ts +8 -8
  42. package/dist/src/desktop/components/AdminList/BulkActionBar.js +8 -8
  43. package/dist/src/desktop/components/AdminListHeader/AdminListHeader.js +1 -1
  44. package/dist/src/desktop/components/BasicListItem/BasicListItem.js +3 -3
  45. package/dist/src/desktop/components/BlogTextField/BlogTextField.js +7 -4
  46. package/dist/src/desktop/components/ContextMenu/ContextMenu.js +2 -2
  47. package/dist/src/desktop/components/DesktopAlertDialog/DesktopAlertDialog.d.ts +7 -1
  48. package/dist/src/desktop/components/DesktopAlertDialog/DesktopAlertDialog.js +5 -5
  49. package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +4 -2
  50. package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +1 -1
  51. package/dist/src/desktop/components/Dropdown/Dropdown.js +123 -24
  52. package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.d.ts +27 -0
  53. package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.js +70 -0
  54. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/BrandLogo.d.ts +10 -0
  55. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/BrandLogo.js +20 -0
  56. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/PrimaryMenu.d.ts +10 -0
  57. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/PrimaryMenu.js +109 -0
  58. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/SecondaryMenu.d.ts +10 -0
  59. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/SecondaryMenu.js +19 -0
  60. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.d.ts +9 -0
  61. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.js +22 -0
  62. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/index.d.ts +4 -0
  63. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/index.js +14 -0
  64. package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuItemNav.d.ts +12 -0
  65. package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuItemNav.js +73 -0
  66. package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuNavs.d.ts +7 -0
  67. package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuNavs.js +49 -0
  68. package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/index.d.ts +2 -0
  69. package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/index.js +10 -0
  70. package/dist/src/desktop/components/DynamicDesktopNavBar/components/IconNav.d.ts +8 -0
  71. package/dist/src/desktop/components/DynamicDesktopNavBar/components/IconNav.js +14 -0
  72. package/dist/src/desktop/components/DynamicDesktopNavBar/components/ImageIconNav.d.ts +8 -0
  73. package/dist/src/desktop/components/DynamicDesktopNavBar/components/ImageIconNav.js +22 -0
  74. package/dist/src/desktop/components/DynamicDesktopNavBar/components/LogoNav.d.ts +8 -0
  75. package/dist/src/desktop/components/DynamicDesktopNavBar/components/LogoNav.js +22 -0
  76. package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/MenuItemNav.d.ts +8 -0
  77. package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/MenuItemNav.js +65 -0
  78. package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.d.ts +11 -0
  79. package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.js +49 -0
  80. package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/WebMenuItemNav.d.ts +11 -0
  81. package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/WebMenuItemNav.js +22 -0
  82. package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/index.d.ts +1 -0
  83. package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/index.js +8 -0
  84. package/dist/src/desktop/components/DynamicDesktopNavBar/components/ProfileNav.d.ts +7 -0
  85. package/dist/src/desktop/components/DynamicDesktopNavBar/components/ProfileNav.js +22 -0
  86. package/dist/src/desktop/components/DynamicDesktopNavBar/components/TextNav.d.ts +10 -0
  87. package/dist/src/desktop/components/DynamicDesktopNavBar/components/TextNav.js +25 -0
  88. package/dist/src/desktop/components/DynamicDesktopNavBar/components/index.d.ts +0 -0
  89. package/dist/src/desktop/components/DynamicDesktopNavBar/components/index.js +0 -0
  90. package/dist/src/desktop/components/DynamicDesktopNavBar/index.d.ts +1 -0
  91. package/dist/src/desktop/components/DynamicDesktopNavBar/index.js +8 -0
  92. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/MenuDesignTemplates.d.ts +102 -0
  93. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/MenuDesignTemplates.js +31 -0
  94. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.d.ts +101 -0
  95. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.js +104 -0
  96. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/index.d.ts +2 -0
  97. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/index.js +19 -0
  98. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/types.d.ts +20 -0
  99. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/types.js +2 -0
  100. package/dist/src/desktop/components/DynamicDesktopNavBar/types.d.ts +12 -0
  101. package/dist/src/desktop/components/DynamicDesktopNavBar/types.js +5 -0
  102. package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +53 -24
  103. package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.js +1 -1
  104. package/dist/src/desktop/components/HorizontalFormGroup/HorizontalFormGroup.d.ts +11 -0
  105. package/dist/src/desktop/components/HorizontalFormGroup/HorizontalFormGroup.js +62 -0
  106. package/dist/src/desktop/components/HorizontalFormGroup/index.d.ts +1 -0
  107. package/dist/src/desktop/components/HorizontalFormGroup/index.js +8 -0
  108. package/dist/src/desktop/components/IconButton/IconButton.js +3 -0
  109. package/dist/src/desktop/components/MainButton/MainButton.d.ts +3 -1
  110. package/dist/src/desktop/components/MainButton/MainButton.js +82 -14
  111. package/dist/src/desktop/components/ReactionButton/ReactionButton.js +9 -5
  112. package/dist/src/desktop/components/Select/Select.js +28 -10
  113. package/dist/src/desktop/components/TextButton/TextButton.d.ts +2 -1
  114. package/dist/src/desktop/components/TextButton/TextButton.js +20 -17
  115. package/dist/src/desktop/components/TextField/TextField.js +14 -11
  116. package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +6 -1
  117. package/dist/src/desktop/components/TextLabel/TextLabel.js +29 -13
  118. package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +3 -1
  119. package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +80 -11
  120. package/dist/src/desktop/components/UploadMainButton/types.d.ts +4 -4
  121. package/dist/src/desktop/components/UploadMainButton/types.js +5 -5
  122. package/dist/src/desktop/components/UploadTextButton/UploadTextButton.d.ts +2 -1
  123. package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +12 -7
  124. package/dist/src/desktop/components/UserDesktopNavBar/UserDesktopNavBar.js +1 -1
  125. package/dist/src/desktop/components/index.d.ts +3 -2
  126. package/dist/src/desktop/components/index.js +5 -3
  127. package/dist/src/desktop/index.d.ts +4 -2
  128. package/dist/src/desktop/index.js +7 -2
  129. package/dist/src/desktop/{components → panels}/DesktopBasicModal/DesktopBasicModal.d.ts +1 -1
  130. package/dist/src/desktop/{components → panels}/DesktopBasicModal/DesktopBasicModal.js +13 -10
  131. package/dist/src/desktop/{components → panels}/DesktopBasicModal/index.d.ts +0 -0
  132. package/dist/src/desktop/{components → panels}/DesktopBasicModal/index.js +0 -0
  133. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.d.ts +10 -0
  134. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +121 -0
  135. package/dist/src/desktop/panels/DesktopHeadlessModal/index.d.ts +1 -0
  136. package/dist/src/desktop/panels/DesktopHeadlessModal/index.js +8 -0
  137. package/dist/src/desktop/panels/index.d.ts +3 -0
  138. package/dist/src/desktop/panels/index.js +7 -0
  139. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +6 -6
  140. package/dist/src/mobile/components/BasicListItem/BasicListItem.js +3 -3
  141. package/dist/src/mobile/components/BlogTextField/BlogTextField.js +3 -3
  142. package/dist/src/mobile/components/ContextMenu/ContextMenu.d.ts +2 -1
  143. package/dist/src/mobile/components/ContextMenu/ContextMenu.js +6 -3
  144. package/dist/src/mobile/components/Dropdown/Dropdown.d.ts +7 -3
  145. package/dist/src/mobile/components/Dropdown/Dropdown.js +127 -29
  146. package/dist/src/mobile/components/HorizontalFormGroup/HorizontalFormGroup.d.ts +11 -0
  147. package/dist/src/mobile/components/HorizontalFormGroup/HorizontalFormGroup.js +62 -0
  148. package/dist/src/mobile/components/HorizontalFormGroup/index.d.ts +1 -0
  149. package/dist/src/mobile/components/HorizontalFormGroup/index.js +8 -0
  150. package/dist/src/mobile/components/IconButton/IconButton.js +3 -0
  151. package/dist/src/mobile/components/MainButton/MainButton.d.ts +3 -1
  152. package/dist/src/mobile/components/MainButton/MainButton.js +82 -14
  153. package/dist/src/mobile/components/MobileAlertDialog/MobileAlertDialog.d.ts +7 -1
  154. package/dist/src/mobile/components/MobileAlertDialog/MobileAlertDialog.js +5 -5
  155. package/dist/src/mobile/components/ReactionButton/ReactionButton.js +9 -5
  156. package/dist/src/mobile/components/Select/Select.js +18 -10
  157. package/dist/src/mobile/components/TextButton/TextButton.d.ts +2 -1
  158. package/dist/src/mobile/components/TextButton/TextButton.js +19 -16
  159. package/dist/src/mobile/components/TextField/TextField.js +11 -11
  160. package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +6 -1
  161. package/dist/src/mobile/components/TextLabel/TextLabel.js +39 -4
  162. package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +3 -1
  163. package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +80 -11
  164. package/dist/src/mobile/components/UploadMainButton/types.d.ts +4 -4
  165. package/dist/src/mobile/components/UploadMainButton/types.js +5 -5
  166. package/dist/src/mobile/components/UploadTextButton/UploadTextButton.d.ts +2 -1
  167. package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +12 -7
  168. package/dist/src/mobile/components/index.d.ts +2 -2
  169. package/dist/src/mobile/components/index.js +3 -3
  170. package/dist/src/mobile/index.d.ts +4 -2
  171. package/dist/src/mobile/index.js +5 -2
  172. package/dist/src/mobile/{components → panels}/MobileBasicModal/MobileBasicModal.d.ts +8 -2
  173. package/dist/src/mobile/{components → panels}/MobileBasicModal/MobileBasicModal.js +25 -14
  174. package/dist/src/mobile/{components → panels}/MobileBasicModal/index.d.ts +0 -0
  175. package/dist/src/mobile/{components → panels}/MobileBasicModal/index.js +0 -0
  176. package/dist/src/mobile/panels/index.d.ts +2 -0
  177. package/dist/src/mobile/panels/index.js +5 -0
  178. package/package.json +3 -1
  179. package/release-note.md +163 -8
@@ -40,7 +40,7 @@ function Select(_a) {
40
40
  }
41
41
  };
42
42
  var getIconColorKey = function () {
43
- if (state === 'disabled') {
43
+ if (state === 'disabled' || state === 'read_only') {
44
44
  if (colorTheme === 'dark') {
45
45
  return 'ui_cpnt_select_icon_darktheme_disabled';
46
46
  }
@@ -62,9 +62,9 @@ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 =
62
62
  var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n width: 188px;\n"], ["\n height: 40px;\n width: 188px;\n"])));
63
63
  var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n width: 188px;\n"], ["\n height: 32px;\n width: 188px;\n"])));
64
64
  var rlarge = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 48px;\n width: 100%;\n"], ["\n height: 48px;\n width: 100%;\n"])));
65
- var dark = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n color: ", ";\n\n :disabled {\n background-color: ", ";\n color: ", ";\n }\n\n :focus {\n border: 0.5px solid ", " !important;\n color: ", ";\n }\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n color: ", ";\n\n :disabled {\n background-color: ", ";\n color: ", ";\n }\n\n :focus {\n border: 0.5px solid ", " !important;\n color: ", ";\n }\n"])), function (_a) {
65
+ var dark = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n }\n"], ["\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n }\n"])), function (_a) {
66
66
  var theme = _a.theme;
67
- return theme.ui_cpnt_select_base_normal;
67
+ return theme.ui_cpnt_select_base_darktheme_normal;
68
68
  }, function (_a) {
69
69
  var theme = _a.theme;
70
70
  return theme.ui_cpnt_select_border_darktheme_normal;
@@ -74,10 +74,13 @@ var dark = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 =
74
74
  }, function (_a) {
75
75
  var theme = _a.theme;
76
76
  return theme.ui_cpnt_select_base_darktheme_disabled;
77
+ }, function (_a) {
78
+ var theme = _a.theme;
79
+ return theme.ui_cpnt_select_border_darktheme_disabled;
77
80
  }, function (_a) {
78
81
  var theme = _a.theme, state = _a.state;
79
82
  return state === 'read_only'
80
- ? theme.ui_cpnt_select_text_darktheme_enabled
83
+ ? theme.ui_cpnt_select_text_darktheme_readonly
81
84
  : theme.ui_cpnt_select_text_darktheme_disabled;
82
85
  }, function (_a) {
83
86
  var theme = _a.theme;
@@ -99,19 +102,19 @@ var S_Box = styled_components_1.default.div(templateObject_6 || (templateObject_
99
102
  var responsiveMode = _a.responsiveMode;
100
103
  return responsiveMode === 'use' && 'width: 100%';
101
104
  });
102
- var S_Icon_Wrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 16px;\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n ", ";\n"], ["\n align-items: center;\n display: flex;\n height: 16px;\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n ", ";\n"])), function (_a) {
105
+ var S_Icon_Wrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 16px;\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n"], ["\n align-items: center;\n display: flex;\n height: 16px;\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n"])), function (_a) {
103
106
  var theme = _a.theme;
104
107
  return theme.spacing.spacingD;
105
- }, function (_a) {
106
- var state = _a.state;
107
- return state === 'normal' && 'z-index: -1';
108
108
  });
109
- var S_Select = styled_components_1.default.select(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n appearance: none;\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n width: 100%;\n\n :disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n :focus {\n border: 0.5px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"], ["\n appearance: none;\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n width: 100%;\n\n :disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n :focus {\n border: 0.5px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"])), function (_a) {
109
+ var S_Select = styled_components_1.default.select(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n width: 100%;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"], ["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n width: 100%;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"])), function (_a) {
110
110
  var theme = _a.theme;
111
111
  return theme.ui_cpnt_select_base_normal;
112
112
  }, function (_a) {
113
113
  var theme = _a.theme;
114
114
  return theme.ui_cpnt_select_border_normal;
115
+ }, function (_a) {
116
+ var size = _a.size;
117
+ return (size === 'small' ? '10px' : '14px');
115
118
  }, function (_a) {
116
119
  var theme = _a.theme;
117
120
  return theme.ui_cpnt_select_text_hint;
@@ -124,9 +127,14 @@ var S_Select = styled_components_1.default.select(templateObject_8 || (templateO
124
127
  }, function (_a) {
125
128
  var theme = _a.theme;
126
129
  return theme.ui_cpnt_select_base_disabled;
130
+ }, function (_a) {
131
+ var theme = _a.theme;
132
+ return theme.ui_cpnt_select_border_disabled;
127
133
  }, function (_a) {
128
134
  var theme = _a.theme, state = _a.state;
129
- return state === 'read_only' ? theme.ui_cpnt_select_text_hint : theme.ui_cpnt_select_text_disabled;
135
+ return state === 'read_only'
136
+ ? theme.ui_cpnt_select_text_readonly
137
+ : theme.ui_cpnt_select_text_disabled;
130
138
  }, function (_a) {
131
139
  var theme = _a.theme;
132
140
  return theme.ui_cpnt_select_border_focus;
@@ -7,7 +7,8 @@ export declare type TextButtonProps = {
7
7
  fontWeight?: 'bold' | 'regular';
8
8
  type?: 'submit' | 'reset' | 'button';
9
9
  state?: 'normal' | 'disabled';
10
+ colorTheme?: 'none' | 'red' | 'grey_01';
10
11
  onClick?: (...args: any) => any;
11
12
  };
12
- declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, onClick, ...rest }: TextButtonProps): JSX.Element;
13
+ declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, colorTheme, onClick, ...rest }: TextButtonProps): JSX.Element;
13
14
  export default TextButton;
@@ -51,33 +51,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  var react_1 = __importDefault(require("react"));
52
52
  var styled_components_1 = __importStar(require("styled-components"));
53
53
  var TextLabel_1 = require("../TextLabel");
54
- // NOTE : 기획상 아직 사용하지 않는 props
55
- // colorTheme?: 'none';
54
+ var textStyle = {
55
+ rlarge: 'body1Bold',
56
+ large: 'body1Bold',
57
+ medium: 'body2Bold',
58
+ small: 'caption1Bold',
59
+ xsmall: 'caption1Regular'
60
+ };
61
+ var textColor = {
62
+ none: 'usrTextBrandPrimary',
63
+ red: 'sysTextError',
64
+ grey_01: 'sysTextPrimary'
65
+ };
56
66
  function TextButton(_a) {
57
- var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, fontWeight = _a.fontWeight, _d = _a.type, type = _d === void 0 ? 'button' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "onClick"]);
67
+ var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, fontWeight = _a.fontWeight, _d = _a.type, type = _d === void 0 ? 'button' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "colorTheme", "onClick"]);
58
68
  var handleClick = function () {
59
69
  if (onClick) {
60
70
  onClick();
61
71
  }
62
72
  };
63
- var textStyle = {
64
- rlarge: 'body1Bold',
65
- large: 'body1Bold',
66
- medium: 'body2Bold',
67
- small: 'caption1Bold',
68
- xsmall: 'caption1Regular'
69
- };
70
73
  return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled' }),
71
- react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : 'usrTextBrandPrimary', singleLineMode: "use" })));
74
+ react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor[colorTheme], singleLineMode: "use" })));
72
75
  }
73
- var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n ", ";\n"], ["\n height: 48px;\n ", ";\n"])), function (_a) {
76
+ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n ", ";\n"], ["\n border-radius: 14px;\n height: 48px;\n ", ";\n"])), function (_a) {
74
77
  var size = _a.size;
75
78
  return size === 'rlarge' && 'width: 100%';
76
79
  });
77
- var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n"], ["\n height: 40px;\n"])));
78
- var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n"], ["\n height: 32px;\n"])));
79
- var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n"], ["\n height: 24px;\n"])));
80
- var S_Button = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:active:enabled {\n background-color: ", ";\n }\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:active:enabled {\n background-color: ", ";\n }\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"])), function (_a) {
80
+ var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 14px;\n height: 40px;\n"], ["\n border-radius: 14px;\n height: 40px;\n"])));
81
+ var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n"], ["\n border-radius: 10px;\n height: 32px;\n"])));
82
+ var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 8px;\n height: 24px;\n"], ["\n border-radius: 8px;\n height: 24px;\n"])));
83
+ var S_Button = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:active:enabled {\n background-color: ", ";\n }\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:active:enabled {\n background-color: ", ";\n }\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"])), function (_a) {
81
84
  var state = _a.state;
82
85
  return (state === 'normal' ? 'pointer' : 'default');
83
86
  }, function (_a) {
@@ -146,7 +146,7 @@ var auto = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 =
146
146
  Number(theme.desktopFontSize.form2.substring(0, 2)) * Number(theme.desktopLineHeight.form2)) /
147
147
  2;
148
148
  });
149
- var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n width: 188px;\n"], ["\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n width: 188px;\n"])), function (_a) {
149
+ var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n width: 188px;\n"], ["\n border-radius: 10px;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n width: 188px;\n"])), function (_a) {
150
150
  var theme = _a.theme;
151
151
  return theme.spacing.spacingC;
152
152
  }, function (_a) {
@@ -176,7 +176,7 @@ var large = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
176
176
  var textLineType = _a.textLineType;
177
177
  return textLineType === 'auto' && auto;
178
178
  });
179
- var normal = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 1px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 1px\n ", ";\n"])), function (_a) {
179
+ var normal = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 2px\n ", ";\n"])), function (_a) {
180
180
  var theme = _a.theme;
181
181
  return theme.ui_cpnt_textfield_base_normal;
182
182
  }, function (_a) {
@@ -187,23 +187,23 @@ var normal = (0, styled_components_1.css)(templateObject_7 || (templateObject_7
187
187
  return theme.ui_cpnt_textfield_border_focus;
188
188
  return theme.ui_cpnt_textfield_border_normal;
189
189
  });
190
- var read_only = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 1px ", ";\n"], ["\n background-color: ", ";\n border: solid 1px ", ";\n"])), function (_a) {
190
+ var read_only = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
191
191
  var theme = _a.theme;
192
192
  return theme.ui_cpnt_textfield_base_disabled;
193
193
  }, function (_a) {
194
194
  var theme = _a.theme;
195
- return theme.ui_cpnt_textfield_border_normal;
195
+ return theme.ui_cpnt_textfield_border_disabled;
196
196
  });
197
- var disabled = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 1px ", ";\n"], ["\n background-color: ", ";\n border: solid 1px ", ";\n"])), function (_a) {
197
+ var disabled = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
198
198
  var theme = _a.theme;
199
199
  return theme.ui_cpnt_textfield_base_disabled;
200
200
  }, function (_a) {
201
201
  var theme = _a.theme;
202
- return theme.ui_cpnt_textfield_border_normal;
202
+ return theme.ui_cpnt_textfield_border_disabled;
203
203
  });
204
- var dark_normal = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 1px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 1px\n ", ";\n"])), function (_a) {
204
+ var dark_normal = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 2px\n ", ";\n"])), function (_a) {
205
205
  var theme = _a.theme;
206
- return theme.ui_cpnt_textfield_base_normal;
206
+ return theme.ui_cpnt_textfield_base_darktheme_normal;
207
207
  }, function (_a) {
208
208
  var theme = _a.theme, isError = _a.isError, isFocused = _a.isFocused;
209
209
  if (isError)
@@ -212,21 +212,21 @@ var dark_normal = (0, styled_components_1.css)(templateObject_10 || (templateObj
212
212
  return theme.ui_cpnt_textfield_border_darktheme_focus;
213
213
  return theme.ui_cpnt_textfield_border_darktheme_normal;
214
214
  });
215
- var dark_read_only = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 1px ", ";\n"], ["\n background-color: ", ";\n border: solid 1px ", ";\n"])), function (_a) {
215
+ var dark_read_only = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
216
216
  var theme = _a.theme;
217
217
  return theme.ui_cpnt_textfield_base_darktheme_disabled;
218
218
  }, function (_a) {
219
219
  var theme = _a.theme;
220
220
  return theme.ui_cpnt_textfield_border_darktheme_normal;
221
221
  });
222
- var dark_disabled = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 1px ", ";\n"], ["\n background-color: ", ";\n border: solid 1px ", ";\n"])), function (_a) {
222
+ var dark_disabled = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
223
223
  var theme = _a.theme;
224
224
  return theme.ui_cpnt_textfield_base_darktheme_disabled;
225
225
  }, function (_a) {
226
226
  var theme = _a.theme;
227
227
  return theme.ui_cpnt_textfield_border_darktheme_normal;
228
228
  });
229
- var S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
229
+ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
230
230
  var size = _a.size;
231
231
  return size &&
232
232
  {
@@ -13,6 +13,9 @@ export declare type TextLabelProps = {
13
13
  customFontSize?: string;
14
14
  customFontWeight?: 'bold' | 'regular';
15
15
  textDecorationType?: 'none' | 'line_through';
16
+ requirementMode?: 'none' | 'use';
17
+ bulletPointMode?: 'none' | 'use';
18
+ wordBreak?: 'normal' | 'break_all' | 'keep_all' | 'break_word';
16
19
  };
17
20
  export declare type TextStyleProps = {
18
21
  textAlign?: 'left' | 'center' | 'right';
@@ -26,6 +29,8 @@ export declare type TextStyleProps = {
26
29
  customFontSize?: string;
27
30
  customFontWeight?: 'bold' | 'regular';
28
31
  textDecorationType?: 'none' | 'line_through';
32
+ bulletPointMode?: 'none' | 'use';
33
+ wordBreak?: 'normal' | 'break_all' | 'keep_all' | 'break_word';
29
34
  };
30
- declare function TextLabel({ text, textAlign, styleTheme, colorOverride, colorTheme, singleLineMode, ellipsisMode, lineLimit, userSelectMode, customFontSize, customFontWeight, textDecorationType }: TextLabelProps): JSX.Element;
35
+ declare function TextLabel({ text, textAlign, styleTheme, colorOverride, colorTheme, singleLineMode, ellipsisMode, lineLimit, userSelectMode, customFontSize, customFontWeight, textDecorationType, requirementMode, bulletPointMode, wordBreak }: TextLabelProps): JSX.Element;
31
36
  export default TextLabel;
@@ -29,9 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importDefault(require("react"));
30
30
  var styled_components_1 = __importStar(require("styled-components"));
31
31
  var common_1 = require("../../../common");
32
+ var hybrid_1 = require("../../../hybrid");
32
33
  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.singleLineMode, singleLineMode = _e === void 0 ? 'none' : _e, _f = _a.ellipsisMode, ellipsisMode = _f === void 0 ? 'none' : _f, lineLimit = _a.lineLimit, _g = _a.userSelectMode, userSelectMode = _g === void 0 ? 'none' : _g, customFontSize = _a.customFontSize, customFontWeight = _a.customFontWeight, _h = _a.textDecorationType, textDecorationType = _h === void 0 ? 'none' : _h;
34
- return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit, userSelectMode: userSelectMode, customFontSize: customFontSize, customFontWeight: customFontWeight, textDecorationType: textDecorationType }, text));
34
+ 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.singleLineMode, singleLineMode = _e === void 0 ? 'none' : _e, _f = _a.ellipsisMode, ellipsisMode = _f === void 0 ? 'none' : _f, lineLimit = _a.lineLimit, _g = _a.userSelectMode, userSelectMode = _g === void 0 ? 'none' : _g, customFontSize = _a.customFontSize, customFontWeight = _a.customFontWeight, _h = _a.textDecorationType, textDecorationType = _h === void 0 ? 'none' : _h, _j = _a.requirementMode, requirementMode = _j === void 0 ? 'none' : _j, _k = _a.bulletPointMode, bulletPointMode = _k === void 0 ? 'none' : _k, _l = _a.wordBreak, wordBreak = _l === void 0 ? 'keep_all' : _l;
35
+ return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit, userSelectMode: userSelectMode, customFontSize: customFontSize, customFontWeight: customFontWeight, textDecorationType: textDecorationType, bulletPointMode: bulletPointMode, wordBreak: wordBreak },
36
+ text,
37
+ requirementMode === 'use' && (react_1.default.createElement(S_AfterTextBox, { styleTheme: styleTheme },
38
+ react_1.default.createElement(S_IconWrapper, null,
39
+ react_1.default.createElement(hybrid_1.Icon, { iconName: "ic_requirement", size: 16, fillType: "line", colorKey: "ui_cpnt_icon_sys_error_01" }))))));
35
40
  }
36
41
  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
42
  var theme = _a.theme;
@@ -260,9 +265,19 @@ var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateO
260
265
  return lineLimit;
261
266
  });
262
267
  var userSelectModeStyle = (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"], ["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"])));
263
- var S_TextLabel = styled_components_1.default.div(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n overflow-wrap: break-word;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n overflow-wrap: break-word;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
268
+ var bulletPointModeStyle = (0, styled_components_1.css)(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n padding-left: 16px;\n ::before {\n content: '\u2022';\n position: absolute;\n left: 0;\n width: 16px;\n }\n"], ["\n padding-left: 16px;\n ::before {\n content: '\u2022';\n position: absolute;\n left: 0;\n width: 16px;\n }\n"])));
269
+ var S_TextLabel = styled_components_1.default.div(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: ", ";\n overflow-wrap: break-word;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: ", ";\n overflow-wrap: break-word;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
264
270
  var textAlign = _a.textAlign;
265
271
  return textAlign;
272
+ }, function (_a) {
273
+ var wordBreak = _a.wordBreak;
274
+ return wordBreak &&
275
+ {
276
+ normal: 'normal',
277
+ break_all: 'break-all',
278
+ keep_all: 'keep-all',
279
+ break_word: 'break-word'
280
+ }[wordBreak];
266
281
  }, function (_a) {
267
282
  var styleTheme = _a.styleTheme;
268
283
  return styleTheme &&
@@ -324,6 +339,26 @@ var S_TextLabel = styled_components_1.default.div(templateObject_32 || (template
324
339
  none: '',
325
340
  line_through: 'text-decoration: line-through;'
326
341
  }[textDecorationType];
342
+ }, function (_a) {
343
+ var bulletPointMode = _a.bulletPointMode;
344
+ return bulletPointMode === 'use' && bulletPointModeStyle;
327
345
  });
346
+ var S_AfterTextBox = styled_components_1.default.div(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n display: inline-block;\n margin-left: ", ";\n position: relative;\n\n ", ";\n"], ["\n display: inline-block;\n margin-left: ", ";\n position: relative;\n\n ", ";\n"])), function (_a) {
347
+ var theme = _a.theme;
348
+ return theme.spacing.spacingA;
349
+ }, function (_a) {
350
+ var styleTheme = _a.styleTheme;
351
+ switch (styleTheme) {
352
+ case 'headingBold':
353
+ return;
354
+ case 'leadParaBold':
355
+ return;
356
+ case 'leadParaRegular':
357
+ return;
358
+ default:
359
+ return 'vertical-align: middle';
360
+ }
361
+ });
362
+ var S_IconWrapper = styled_components_1.default.div(templateObject_35 || (templateObject_35 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 16px;\n height: 16px;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 16px;\n height: 16px;\n"])));
328
363
  exports.default = TextLabel;
329
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32;
364
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35;
@@ -2,7 +2,9 @@ import React from 'react';
2
2
  import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
3
3
  declare type UploadMainButtonProps = {
4
4
  text?: PDSTextType;
5
+ shapeType?: 'round' | 'rectangle';
5
6
  fillType?: 'fill' | 'line';
7
+ styleTheme?: 'primary' | 'secondary';
6
8
  size?: 'large' | 'medium' | 'small' | 'xsmall' | 'rlarge';
7
9
  responsiveMode?: 'none' | 'use';
8
10
  fontWeight?: 'bold' | 'regular';
@@ -15,5 +17,5 @@ declare type UploadMainButtonProps = {
15
17
  multipleMode?: 'none' | 'use';
16
18
  onClick?: (e: React.ChangeEvent<HTMLInputElement>) => void;
17
19
  };
18
- declare function UploadMainButton({ text, fillType, size, responsiveMode, fontWeight, iconMode, iconFillType, iconName, colorTheme, state, accept, multipleMode, onClick }: UploadMainButtonProps): JSX.Element;
20
+ declare function UploadMainButton({ text, shapeType, fillType, styleTheme, size, responsiveMode, fontWeight, iconMode, iconFillType, iconName, colorTheme, state, accept, multipleMode, onClick }: UploadMainButtonProps): JSX.Element;
19
21
  export default UploadMainButton;
@@ -32,7 +32,7 @@ var hybrid_1 = require("../../../hybrid");
32
32
  var TextLabel_1 = require("../TextLabel");
33
33
  var types_1 = require("./types");
34
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, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d, fontWeight = _a.fontWeight, _e = _a.iconMode, iconMode = _e === void 0 ? 'none' : _e, _f = _a.iconFillType, iconFillType = _f === void 0 ? 'line' : _f, _g = _a.iconName, iconName = _g === void 0 ? 'ic_upload' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, _j = _a.state, state = _j === void 0 ? 'normal' : _j, _k = _a.accept, accept = _k === void 0 ? '*' : _k, _l = _a.multipleMode, multipleMode = _l === void 0 ? 'none' : _l, onClick = _a.onClick;
35
+ var text = _a.text, _b = _a.shapeType, shapeType = _b === void 0 ? 'round' : _b, fillType = _a.fillType, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 'large' : _d, _e = _a.responsiveMode, responsiveMode = _e === void 0 ? 'none' : _e, fontWeight = _a.fontWeight, _f = _a.iconMode, iconMode = _f === void 0 ? 'none' : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, _h = _a.iconName, iconName = _h === void 0 ? 'ic_upload' : _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
36
  var handleClick = function (e) {
37
37
  if (onClick) {
38
38
  onClick(e);
@@ -57,36 +57,68 @@ function UploadMainButton(_a) {
57
57
  if (fillType === 'line' && colorTheme !== 'none') {
58
58
  return types_1.iconColorThemeLineColors[colorTheme];
59
59
  }
60
- return types_1.iconFillTypeColors[fillType];
60
+ if (fillType) {
61
+ return types_1.iconFillTypeColors[fillType];
62
+ }
63
+ if (styleTheme) {
64
+ return types_1.iconStyleThemeColors[styleTheme];
65
+ }
61
66
  };
62
- return (react_1.default.createElement(S_UploadMainButton, { fillType: fillType, size: size, responsiveMode: responsiveMode, fontWeight: fontWeight, colorTheme: colorTheme, disabled: state === 'disabled' },
67
+ var textColor = function () {
68
+ if (fillType === 'fill') {
69
+ return 'usrTextBrandOnPrimary';
70
+ }
71
+ if (fillType === 'line') {
72
+ return 'sysTextPrimary';
73
+ }
74
+ if (styleTheme === 'primary') {
75
+ return 'usrTextBrandOnPrimary';
76
+ }
77
+ if (styleTheme === 'secondary') {
78
+ return 'usrTextBrandPrimary';
79
+ }
80
+ return 'usrTextBrandOnPrimary';
81
+ };
82
+ return (react_1.default.createElement(S_UploadMainButton, { shapeType: shapeType, fillType: fillType, styleTheme: styleTheme, size: size, responsiveMode: responsiveMode, fontWeight: fontWeight, colorTheme: colorTheme, disabled: state === 'disabled' },
63
83
  react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: handleClick }),
64
84
  size !== 'xsmall' && iconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
65
85
  react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType }),
66
86
  react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }))),
67
- react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: types_1.textStyles[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : types_1.textColors[fillType], colorOverride: selectTextThemeColor() }),
87
+ react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: types_1.textStyles[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor(), colorOverride: selectTextThemeColor() }),
68
88
  size !== 'xsmall' && iconMode === 'right' && (react_1.default.createElement(react_1.default.Fragment, null,
69
89
  react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }),
70
90
  react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType })))));
71
91
  }
72
- 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) {
92
+ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n ", "\n ", ";\n"], ["\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n ", "\n ", ";\n"])), function (_a) {
73
93
  var theme = _a.theme;
74
94
  return theme.spacing.spacingE;
95
+ }, function (_a) {
96
+ var shapeType = _a.shapeType;
97
+ return shapeType === 'round' && 'border-radius: 14px;';
75
98
  }, function (_a) {
76
99
  var size = _a.size;
77
- return size === 'rlarge' && '100%';
100
+ return size === 'rlarge' && 'width: 100%';
78
101
  });
79
- 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) {
102
+ var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 40px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
80
103
  var theme = _a.theme;
81
104
  return theme.spacing.spacingE;
105
+ }, function (_a) {
106
+ var shapeType = _a.shapeType;
107
+ return shapeType === 'round' && 'border-radius: 14px;';
82
108
  });
83
- 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) {
109
+ var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 32px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
84
110
  var theme = _a.theme;
85
111
  return theme.spacing.spacingD;
112
+ }, function (_a) {
113
+ var shapeType = _a.shapeType;
114
+ return shapeType === 'round' && 'border-radius: 10px;';
86
115
  });
87
- 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) {
116
+ var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 24px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
88
117
  var theme = _a.theme;
89
118
  return theme.spacing.spacingD;
119
+ }, function (_a) {
120
+ var shapeType = _a.shapeType;
121
+ return shapeType === 'round' && 'border-radius: 8px;';
90
122
  });
91
123
  var fillDisabled = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
92
124
  var theme = _a.theme;
@@ -148,13 +180,50 @@ var line = (0, styled_components_1.css)(templateObject_12 || (templateObject_12
148
180
  var disabled = _a.disabled;
149
181
  return disabled && lineDisabled;
150
182
  });
151
- 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"], ["\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"])), function (_a) {
183
+ var primaryDisabled = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
184
+ var theme = _a.theme;
185
+ return theme.ui_cpnt_button_fill_base_disabled;
186
+ });
187
+ var primary = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"], ["\n background-color: ", ";\n border: none;\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"])), function (_a) {
188
+ var theme = _a.theme;
189
+ return theme.ui_cpnt_button_fill_base_primary;
190
+ }, function (_a) {
191
+ var theme = _a.theme;
192
+ return "background-image: linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_hover + ",\n " + theme.ui_cpnt_button_fill_on_base_hover + "\n );";
193
+ }, function (_a) {
194
+ var theme = _a.theme;
195
+ return "background-image: linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_pressed + ",\n " + theme.ui_cpnt_button_fill_on_base_pressed + "\n );";
196
+ }, function (_a) {
197
+ var disabled = _a.disabled;
198
+ return disabled && primaryDisabled;
199
+ });
200
+ var secondaryDisabled = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
201
+ var theme = _a.theme;
202
+ return theme.ui_cpnt_button_line_base_hover;
203
+ });
204
+ var secondary = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"], ["\n background-color: ", ";\n border: none;\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"])), function (_a) {
205
+ var theme = _a.theme;
206
+ return theme.ui_cpnt_button_line_base_hover;
207
+ }, function (_a) {
208
+ var theme = _a.theme;
209
+ return "background-image: linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_hover + ",\n " + theme.ui_cpnt_button_fill_on_base_hover + "\n );";
210
+ }, function (_a) {
211
+ var theme = _a.theme;
212
+ return "background-image: linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_pressed + ",\n " + theme.ui_cpnt_button_fill_on_base_pressed + "\n );";
213
+ }, function (_a) {
214
+ var disabled = _a.disabled;
215
+ return disabled && secondaryDisabled;
216
+ });
217
+ var S_UploadMainButton = styled_components_1.default.label(templateObject_17 || (templateObject_17 = __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 ", ";\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 ", "\n ", ";\n"])), function (_a) {
152
218
  var theme = _a.theme, fontWeight = _a.fontWeight;
153
219
  return fontWeight &&
154
220
  {
155
221
  bold: theme.fontWeight.bold,
156
222
  regular: theme.fontWeight.normal
157
223
  }[fontWeight];
224
+ }, function (_a) {
225
+ var styleTheme = _a.styleTheme;
226
+ return styleTheme && { primary: primary, secondary: secondary }[styleTheme];
158
227
  }, function (_a) {
159
228
  var fillType = _a.fillType;
160
229
  return fillType && { fill: fill, line: line }[fillType];
@@ -166,4 +235,4 @@ var S_UploadMainButton = styled_components_1.default.label(templateObject_13 ||
166
235
  return responsiveMode === 'use' && 'width: 100%';
167
236
  });
168
237
  exports.default = UploadMainButton;
169
- 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;
238
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
@@ -10,14 +10,14 @@ export declare const textThemeColorLines: {
10
10
  readonly line2: "ui_cpnt_button_text_primary";
11
11
  readonly line3: "ui_cpnt_button_text_darktheme_enabled";
12
12
  };
13
- export declare const textColors: {
14
- readonly fill: "usrTextBrandOnPrimary";
15
- readonly line: "sysTextPrimary";
16
- };
17
13
  export declare const iconFillTypeColors: {
18
14
  readonly fill: "ui_cpnt_button_icon_on_primary";
19
15
  readonly line: "ui_cpnt_button_icon_enabled";
20
16
  };
17
+ export declare const iconStyleThemeColors: {
18
+ readonly primary: "ui_cpnt_button_icon_on_primary";
19
+ readonly secondary: "ui_cpnt_button_icon_primary";
20
+ };
21
21
  export declare const iconColorThemeLineColors: {
22
22
  readonly line1: "ui_cpnt_button_icon_error";
23
23
  readonly line2: "ui_cpnt_button_icon_primary";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.iconColorThemeLineColors = exports.iconFillTypeColors = exports.textColors = exports.textThemeColorLines = exports.textStyles = void 0;
3
+ exports.iconColorThemeLineColors = exports.iconStyleThemeColors = exports.iconFillTypeColors = exports.textThemeColorLines = exports.textStyles = void 0;
4
4
  exports.textStyles = {
5
5
  rlarge: 'body1Bold',
6
6
  large: 'body1Bold',
@@ -13,14 +13,14 @@ exports.textThemeColorLines = {
13
13
  line2: 'ui_cpnt_button_text_primary',
14
14
  line3: 'ui_cpnt_button_text_darktheme_enabled'
15
15
  };
16
- exports.textColors = {
17
- fill: 'usrTextBrandOnPrimary',
18
- line: 'sysTextPrimary'
19
- };
20
16
  exports.iconFillTypeColors = {
21
17
  fill: 'ui_cpnt_button_icon_on_primary',
22
18
  line: 'ui_cpnt_button_icon_enabled'
23
19
  };
20
+ exports.iconStyleThemeColors = {
21
+ primary: 'ui_cpnt_button_icon_on_primary',
22
+ secondary: 'ui_cpnt_button_icon_primary'
23
+ };
24
24
  exports.iconColorThemeLineColors = {
25
25
  line1: 'ui_cpnt_button_icon_error',
26
26
  line2: 'ui_cpnt_button_icon_primary',
@@ -6,9 +6,10 @@ declare type UploadTextButtonProps = {
6
6
  responsiveMode?: 'none' | 'use';
7
7
  fontWeight?: 'bold' | 'regular';
8
8
  state?: 'normal' | 'disabled';
9
+ colorTheme?: 'none' | 'red' | 'grey_01';
9
10
  accept?: string;
10
11
  multipleMode?: 'none' | 'use';
11
12
  onClick?: (e: React.ChangeEvent<HTMLInputElement>) => void;
12
13
  };
13
- declare function UploadTextButton({ text, size, responsiveMode, fontWeight, state, accept, multipleMode, onClick }: UploadTextButtonProps): JSX.Element;
14
+ declare function UploadTextButton({ text, size, responsiveMode, fontWeight, state, colorTheme, accept, multipleMode, onClick }: UploadTextButtonProps): JSX.Element;
14
15
  export default UploadTextButton;
@@ -36,8 +36,13 @@ var textStyle = {
36
36
  small: 'caption1Bold',
37
37
  xsmall: 'caption1Regular'
38
38
  };
39
+ var textColor = {
40
+ none: 'usrTextBrandPrimary',
41
+ red: 'sysTextError',
42
+ grey_01: 'sysTextPrimary'
43
+ };
39
44
  function UploadTextButton(_a) {
40
- var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, fontWeight = _a.fontWeight, _d = _a.state, state = _d === void 0 ? 'normal' : _d, _e = _a.accept, accept = _e === void 0 ? '*' : _e, _f = _a.multipleMode, multipleMode = _f === void 0 ? 'none' : _f, onClick = _a.onClick;
45
+ var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, fontWeight = _a.fontWeight, _d = _a.state, state = _d === void 0 ? 'normal' : _d, _e = _a.colorTheme, colorTheme = _e === void 0 ? 'none' : _e, _f = _a.accept, accept = _f === void 0 ? '*' : _f, _g = _a.multipleMode, multipleMode = _g === void 0 ? 'none' : _g, onClick = _a.onClick;
41
46
  var handleClick = function (e) {
42
47
  if (onClick) {
43
48
  onClick(e);
@@ -45,16 +50,16 @@ function UploadTextButton(_a) {
45
50
  };
46
51
  return (react_1.default.createElement(S_UploadTextButton, { size: size, responsiveMode: responsiveMode, fontWeight: fontWeight, disabled: state === 'disabled' },
47
52
  react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: handleClick }),
48
- react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : 'usrTextBrandPrimary', singleLineMode: "use" })));
53
+ react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor[colorTheme], singleLineMode: "use" })));
49
54
  }
50
- 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) {
55
+ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n width: ", ";\n"], ["\n border-radius: 14px;\n height: 48px;\n width: ", ";\n"])), function (_a) {
51
56
  var size = _a.size;
52
57
  return size === 'rlarge' && '100%';
53
58
  });
54
- var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n"], ["\n height: 40px;\n"])));
55
- var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n"], ["\n height: 32px;\n"])));
56
- var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n"], ["\n height: 24px;\n"])));
57
- 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"], ["\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"])), function (_a) {
59
+ var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 14px;\n height: 40px;\n"], ["\n border-radius: 14px;\n height: 40px;\n"])));
60
+ var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n"], ["\n border-radius: 10px;\n height: 32px;\n"])));
61
+ var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 8px;\n height: 24px;\n"], ["\n border-radius: 8px;\n height: 24px;\n"])));
62
+ 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 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"], ["\n align-items: center;\n background-color: transparent;\n border: none;\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"])), function (_a) {
58
63
  var theme = _a.theme;
59
64
  return theme.spacing.spacingB;
60
65
  }, function (_a) {