pds-dev-kit-web 0.5.13 → 0.5.17

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 (99) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/dist/index.js +2 -2
  3. package/dist/src/common/index.d.ts +2 -5
  4. package/dist/src/common/services/i18n/resources/en.json +83 -27
  5. package/dist/src/common/services/i18n/resources/es.json +69 -13
  6. package/dist/src/common/services/i18n/resources/index.d.ts +228 -4
  7. package/dist/src/common/services/i18n/resources/jp.json +69 -13
  8. package/dist/src/common/services/i18n/resources/ko.json +69 -13
  9. package/dist/src/common/styles/colorSet/UIColor.json +1 -1
  10. package/dist/src/common/styles/colorSet/index.d.ts +55 -55
  11. package/dist/src/common/styles/colorSet/index.js +2 -2
  12. package/dist/src/common/types/index.d.ts +5 -0
  13. package/dist/src/common/types/index.js +17 -0
  14. package/dist/src/common/types/styled-components.d.ts +3 -0
  15. package/dist/src/common/types/text.d.ts +2 -0
  16. package/dist/src/common/types/text.js +2 -0
  17. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +3 -9
  18. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +10 -9
  19. package/dist/src/desktop/components/Card/Card.d.ts +3 -2
  20. package/dist/src/desktop/components/Card/Card.js +1 -7
  21. package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +2 -2
  22. package/dist/src/desktop/components/Chip/Chip.d.ts +2 -5
  23. package/dist/src/desktop/components/Chip/Chip.js +6 -1
  24. package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.d.ts +2 -1
  25. package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.d.ts +5 -5
  26. package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +13 -3
  27. package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.d.ts +3 -2
  28. package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +17 -40
  29. package/dist/src/desktop/components/DesktopTabBar/index.d.ts +1 -1
  30. package/dist/src/desktop/components/DesktopTabBar/index.js +2 -2
  31. package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.d.ts +5 -8
  32. package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +11 -7
  33. package/dist/src/desktop/components/FilterBar/FilterBar.d.ts +2 -5
  34. package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.d.ts +2 -5
  35. package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.js +12 -2
  36. package/dist/src/desktop/components/Hero/Hero.d.ts +3 -2
  37. package/dist/src/desktop/components/IconButton/IconButton.d.ts +1 -6
  38. package/dist/src/desktop/components/IconButton/IconButton.js +14 -4
  39. package/dist/src/desktop/components/MainButton/MainButton.d.ts +2 -5
  40. package/dist/src/desktop/components/MainButton/MainButton.js +11 -1
  41. package/dist/src/desktop/components/Radio/Radio.d.ts +2 -1
  42. package/dist/src/desktop/components/Radio/Radio.js +6 -1
  43. package/dist/src/desktop/components/ReactionButton/ReactionButton.d.ts +2 -1
  44. package/dist/src/desktop/components/Select/Select.d.ts +2 -1
  45. package/dist/src/desktop/components/StatusBlock/StatusBlock.d.ts +2 -1
  46. package/dist/src/desktop/components/TextButton/TextButton.d.ts +2 -1
  47. package/dist/src/desktop/components/TextButton/TextButton.js +6 -1
  48. package/dist/src/desktop/components/TextField/TextField.d.ts +3 -8
  49. package/dist/src/desktop/components/TextField/TextField.js +13 -2
  50. package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +2 -4
  51. package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +6 -1
  52. package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +2 -2
  53. package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +6 -1
  54. package/dist/src/desktop/components/UploadTextButton/UploadTextButton.d.ts +2 -1
  55. package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +6 -1
  56. package/dist/src/desktop/components/UserDesktopNavBar/UserDesktopNavBar.d.ts +4 -3
  57. package/dist/src/desktop/components/UserDesktopNavBar/UserDesktopNavBar.js +23 -14
  58. package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.d.ts +2 -1
  59. package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.js +11 -7
  60. package/dist/src/desktop/components/index.d.ts +2 -2
  61. package/dist/src/desktop/components/index.js +2 -2
  62. package/dist/src/desktop/index.d.ts +2 -2
  63. package/dist/src/desktop/index.js +2 -2
  64. package/dist/src/hybrid/components/Switch/Switch.js +1 -1
  65. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +3 -9
  66. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +10 -9
  67. package/dist/src/mobile/components/BlogTextField/BlogTextField.d.ts +3 -8
  68. package/dist/src/mobile/components/BlogTextField/BlogTextField.js +1 -0
  69. package/dist/src/mobile/components/Card/Card.d.ts +3 -2
  70. package/dist/src/mobile/components/Card/Card.js +1 -7
  71. package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +2 -2
  72. package/dist/src/mobile/components/Chip/Chip.d.ts +2 -5
  73. package/dist/src/mobile/components/Chip/Chip.js +11 -6
  74. package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.d.ts +2 -1
  75. package/dist/src/mobile/components/IconButton/IconButton.d.ts +2 -2
  76. package/dist/src/mobile/components/IconButton/IconButton.js +12 -2
  77. package/dist/src/mobile/components/MainButton/MainButton.d.ts +4 -7
  78. package/dist/src/mobile/components/MainButton/MainButton.js +12 -2
  79. package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.d.ts +2 -2
  80. package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.js +18 -3
  81. package/dist/src/mobile/components/MobileTabBar/MobileTabBar.d.ts +2 -1
  82. package/dist/src/mobile/components/MobileTabBar/MobileTabBar.js +12 -8
  83. package/dist/src/mobile/components/Radio/Radio.d.ts +2 -1
  84. package/dist/src/mobile/components/Radio/Radio.js +6 -1
  85. package/dist/src/mobile/components/ReactionButton/ReactionButton.d.ts +4 -3
  86. package/dist/src/mobile/components/ReactionButton/ReactionButton.js +5 -5
  87. package/dist/src/mobile/components/Select/Select.d.ts +2 -1
  88. package/dist/src/mobile/components/StatusBlock/StatusBlock.d.ts +2 -1
  89. package/dist/src/mobile/components/TextButton/TextButton.d.ts +2 -1
  90. package/dist/src/mobile/components/TextButton/TextButton.js +6 -1
  91. package/dist/src/mobile/components/TextField/TextField.d.ts +3 -8
  92. package/dist/src/mobile/components/TextField/TextField.js +13 -2
  93. package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +2 -4
  94. package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +6 -1
  95. package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +2 -2
  96. package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +6 -1
  97. package/dist/src/mobile/components/UploadTextButton/UploadTextButton.d.ts +2 -1
  98. package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +6 -1
  99. package/package.json +1 -1
@@ -1,59 +1,4 @@
1
1
  declare const colorSet: {
2
- readonly SemanticColor: {
3
- blue500: string;
4
- blue700: string;
5
- blue300: string;
6
- green700: string;
7
- green500: string;
8
- green300: string;
9
- red500: string;
10
- grey900: string;
11
- grey500: string;
12
- grey400: string;
13
- grey100: string;
14
- grey50: string;
15
- white: string;
16
- black: string;
17
- darkblue500: string;
18
- grey950: string;
19
- darkgrey900: string;
20
- darkgrey500: string;
21
- darkgrey400: string;
22
- darkgrey100: string;
23
- darkgrey50: string;
24
- darkred500: string;
25
- darkgreen700: string;
26
- orange500: string;
27
- darkorange500: string;
28
- opacity00: string;
29
- opacity20: string;
30
- opacity30: string;
31
- opacity65: string;
32
- darkgreen500: string;
33
- grey70: string;
34
- navy500: string;
35
- lightgreen500: string;
36
- pink500: string;
37
- darkgrey70: string;
38
- darknavy500: string;
39
- darkpink500: string;
40
- darklightgreen500: string;
41
- opacity10: string;
42
- grey600: string;
43
- darkgrey600: string;
44
- skyblue500: string;
45
- skyblue300: string;
46
- pink300: string;
47
- lightpink500: string;
48
- darkblue300: string;
49
- darkblue700: string;
50
- darkgreen300: string;
51
- darkskyblue500: string;
52
- navy100: string;
53
- darknavy100: string;
54
- opacity80: string;
55
- opacity50: string;
56
- };
57
2
  readonly PaletteColor_light: {
58
3
  sys_container_background_01: string;
59
4
  sys_container_background_02: string;
@@ -181,6 +126,61 @@ declare const colorSet: {
181
126
  sys_component_base_black_opacity30: string;
182
127
  sys_area_background: string;
183
128
  };
129
+ readonly SemanticColor: {
130
+ blue500: string;
131
+ blue700: string;
132
+ blue300: string;
133
+ green700: string;
134
+ green500: string;
135
+ green300: string;
136
+ red500: string;
137
+ grey900: string;
138
+ grey500: string;
139
+ grey400: string;
140
+ grey100: string;
141
+ grey50: string;
142
+ white: string;
143
+ black: string;
144
+ darkblue500: string;
145
+ grey950: string;
146
+ darkgrey900: string;
147
+ darkgrey500: string;
148
+ darkgrey400: string;
149
+ darkgrey100: string;
150
+ darkgrey50: string;
151
+ darkred500: string;
152
+ darkgreen700: string;
153
+ orange500: string;
154
+ darkorange500: string;
155
+ opacity00: string;
156
+ opacity20: string;
157
+ opacity30: string;
158
+ opacity65: string;
159
+ darkgreen500: string;
160
+ grey70: string;
161
+ navy500: string;
162
+ lightgreen500: string;
163
+ pink500: string;
164
+ darkgrey70: string;
165
+ darknavy500: string;
166
+ darkpink500: string;
167
+ darklightgreen500: string;
168
+ opacity10: string;
169
+ grey600: string;
170
+ darkgrey600: string;
171
+ skyblue500: string;
172
+ skyblue300: string;
173
+ pink300: string;
174
+ lightpink500: string;
175
+ darkblue300: string;
176
+ darkblue700: string;
177
+ darkgreen300: string;
178
+ darkskyblue500: string;
179
+ navy100: string;
180
+ darknavy100: string;
181
+ opacity80: string;
182
+ opacity50: string;
183
+ };
184
184
  readonly PaletteColor_Dark: {
185
185
  sys_container_background_01: string;
186
186
  sys_container_background_02: string;
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /* eslint-disable import/order */
7
- var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
8
7
  var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
8
+ var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
9
9
  var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
10
10
  var UIColor_json_1 = __importDefault(require("./UIColor.json"));
11
11
  var colorSet = {
12
- SemanticColor: SemanticColor_json_1.default,
13
12
  PaletteColor_light: PaletteColor_light_json_1.default,
13
+ SemanticColor: SemanticColor_json_1.default,
14
14
  PaletteColor_Dark: PaletteColor_Dark_json_1.default,
15
15
  UIColor: UIColor_json_1.default
16
16
  };
@@ -0,0 +1,5 @@
1
+ export * from './form';
2
+ export * from './icon';
3
+ export * from './styled-components';
4
+ export * from './text';
5
+ export * from './uiColors';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./form"), exports);
14
+ __exportStar(require("./icon"), exports);
15
+ __exportStar(require("./styled-components"), exports);
16
+ __exportStar(require("./text"), exports);
17
+ __exportStar(require("./uiColors"), exports);
@@ -1,3 +1,4 @@
1
+ import { desktopFontSize, fontWeight } from '../styles/theme';
1
2
  export interface PdsDevKitTheme {
2
3
  fontWeight: {
3
4
  normal: string;
@@ -84,3 +85,5 @@ export interface PdsDevKitTheme {
84
85
  spacingN: string;
85
86
  };
86
87
  }
88
+ export declare type DesktopFontSize = keyof typeof desktopFontSize;
89
+ export declare type FontWeight = keyof typeof fontWeight;
@@ -0,0 +1,2 @@
1
+ import { TFunctionResult } from 'i18next';
2
+ export declare type PDSTextType = number | TFunctionResult;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +1,10 @@
1
- import { TFunctionResult } from 'i18next';
2
1
  import React from 'react';
3
2
  import { Path } from 'react-hook-form';
4
- import { desktopFontSize, fontWeight } from '../../../../common/styles/theme';
5
- import { uiColors } from '../../../../common/styles/ui-colors';
6
- import { IFormValues } from '../../../../common/types/form';
7
- export declare type DesktopFontSize = keyof typeof desktopFontSize;
8
- export declare type FontWeight = keyof typeof fontWeight;
9
- export declare type UiColors = keyof typeof uiColors;
3
+ import { DesktopFontSize, FontWeight, IFormValues, PDSTextType, UiColors } from '../../../../common';
10
4
  export declare type TextFieldBaseProps = {
11
5
  name: Path<IFormValues>;
12
- hintText?: string | number | null | TFunctionResult;
13
- defaultText?: string | number | null | TFunctionResult;
6
+ hintText?: PDSTextType;
7
+ defaultText?: PDSTextType;
14
8
  validation?: {
15
9
  [key: string]: any;
16
10
  };
@@ -45,10 +45,11 @@ var __rest = (this && this.__rest) || function (s, e) {
45
45
  return t;
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
+ /* eslint-disable react/jsx-no-bind */
48
49
  var react_1 = __importStar(require("react"));
49
50
  var react_hook_form_1 = require("react-hook-form");
50
51
  var styled_components_1 = __importStar(require("styled-components"));
51
- var theme_1 = require("../../../../common/styles/theme");
52
+ var common_1 = require("../../../../common");
52
53
  var IconButton_1 = require("../../../components/IconButton");
53
54
  function TextFieldBase(_a) {
54
55
  var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _b = _a.preventBlankMode, preventBlankMode = _b === void 0 ? 'none' : _b, _c = _a.textLineType, textLineType = _c === void 0 ? 'single' : _c, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _d = _a.inputType, inputType = _d === void 0 ? 'text' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, min = _a.min, max = _a.max, _g = _a.maxLength, maxLength = _g === void 0 ? Infinity : _g, _h = _a.textSize, textSize = _h === void 0 ? 'form2' : _h, _j = _a.textWeight, textWeight = _j === void 0 ? 'normal' : _j, textPadding = _a.textPadding, _k = _a.fieldHeight, fieldHeight = _k === void 0 ? 48 : _k, _l = _a.deleteIconMode, deleteIconMode = _l === void 0 ? 'use' : _l, _m = _a.deleteIconSize, deleteIconSize = _m === void 0 ? 20 : _m, _o = _a.deleteIconColor, deleteIconColor = _o === void 0 ? 'ui_cpnt_button_icon_disabled' : _o, isFocused = _a.isFocused, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, rest = __rest(_a, ["name", "hintText", "defaultText", "validation", "preventBlankMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget"]);
@@ -215,13 +216,13 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
215
216
  }[colorTheme];
216
217
  }, function (_a) {
217
218
  var textSize = _a.textSize;
218
- return theme_1.desktopFontSize[textSize];
219
+ return common_1.desktopFontSize[textSize];
219
220
  }, function (_a) {
220
221
  var textWeight = _a.textWeight;
221
- return theme_1.fontWeight[textWeight];
222
+ return common_1.fontWeight[textWeight];
222
223
  }, function (_a) {
223
224
  var textSize = _a.textSize;
224
- return theme_1.desktopLineHeight[textSize];
225
+ return common_1.desktopLineHeight[textSize];
225
226
  }, function (_a) {
226
227
  var theme = _a.theme, colorTheme = _a.colorTheme;
227
228
  return colorTheme &&
@@ -241,7 +242,7 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
241
242
  var textPadding = _a.textPadding;
242
243
  return textPadding && "padding: " + textPadding;
243
244
  });
244
- var S_Input = styled_components_1.default.input(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n line-height: ", ";\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"], ["\n ", "\n line-height: ", ";\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), basicStyle, function (_a) {
245
+ var S_Input = styled_components_1.default.input(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n flex: 1;\n line-height: ", ";\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"], ["\n ", "\n flex: 1;\n line-height: ", ";\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), basicStyle, function (_a) {
245
246
  var theme = _a.theme;
246
247
  return theme.desktopLineHeight.singleLine;
247
248
  });
@@ -249,15 +250,15 @@ var S_Auto = styled_components_1.default.textarea(templateObject_6 || (templateO
249
250
  var autoMaxRows = _a.autoMaxRows, textSize = _a.textSize, fieldHeight = _a.fieldHeight;
250
251
  return autoMaxRows &&
251
252
  fieldHeight &&
252
- "max-height: " + Number(theme_1.desktopFontSize[textSize].substring(0, 2)) *
253
- Number(theme_1.desktopLineHeight[textSize]) *
253
+ "max-height: " + Number(common_1.desktopFontSize[textSize].substring(0, 2)) *
254
+ Number(common_1.desktopLineHeight[textSize]) *
254
255
  autoMaxRows + "px;";
255
256
  }, function (_a) {
256
257
  var autoMinRows = _a.autoMinRows, textSize = _a.textSize, fieldHeight = _a.fieldHeight;
257
258
  return autoMinRows &&
258
259
  fieldHeight &&
259
- "min-height: " + Number(theme_1.desktopFontSize[textSize].substring(0, 2)) *
260
- Number(theme_1.desktopLineHeight[textSize]) *
260
+ "min-height: " + Number(common_1.desktopFontSize[textSize].substring(0, 2)) *
261
+ Number(common_1.desktopLineHeight[textSize]) *
261
262
  autoMinRows + "px;";
262
263
  });
263
264
  var S_Multi = styled_components_1.default.textarea(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n"], ["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n"])), basicStyle);
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import { PDSTextType } from '../../../common';
2
3
  export declare type CardProps = {
3
- titleText?: string;
4
- descText?: string;
4
+ titleText?: PDSTextType;
5
+ descText?: PDSTextType;
5
6
  imageIconMode?: 'none' | 'image' | 'icon';
6
7
  imageSrc?: string;
7
8
  selectState?: 'unselected' | 'selected';
@@ -9,13 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  var react_1 = __importDefault(require("react"));
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
- // TODO 추후 기획에 수정이 생길 시 icon 반영
13
- // import { uiColors } from '../../../common';
14
- // import fillIcons from '../../../common/assets/icons/fill';
15
- // import lineIcons from '../../../common/assets/icons/line';
16
- // import { Icon } from '../../../hybrid/components/Icon';
17
12
  var hybrid_1 = require("../../../hybrid");
18
- var ImageView_1 = require("../../../hybrid/components/ImageView");
19
13
  var TextLabel_1 = require("../TextLabel");
20
14
  function Card(_a) {
21
15
  var titleText = _a.titleText, descText = _a.descText, _b = _a.imageIconMode, imageIconMode = _b === void 0 ? 'none' : _b, imageSrc = _a.imageSrc, _c = _a.selectState, selectState = _c === void 0 ? 'unselected' : _c, onClick = _a.onClick;
@@ -25,7 +19,7 @@ function Card(_a) {
25
19
  }
26
20
  };
27
21
  return (react_1.default.createElement(S_CardGroups, { selectState: selectState, onClick: handleClick },
28
- imageIconMode !== 'none' && (react_1.default.createElement(S_ImageIconModeBox, null, imageIconMode === 'image' && imageSrc && (react_1.default.createElement(ImageView_1.ImageView, { shapeType: "rectangle", width: "responsive", ratio: "16_9", scaleType: "cover", src: imageSrc })))),
22
+ imageIconMode !== 'none' && (react_1.default.createElement(S_ImageIconModeBox, null, imageIconMode === 'image' && imageSrc && (react_1.default.createElement(hybrid_1.ImageView, { shapeType: "rectangle", width: "responsive", ratio: "16_9", scaleType: "cover", src: imageSrc })))),
29
23
  react_1.default.createElement(S_Content, null,
30
24
  react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: "body2Bold", colorTheme: "sysTextPrimary" }),
31
25
  react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c" }),
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { Path } from 'react-hook-form';
3
- import { IFormValues } from '../../../common/types/form';
3
+ import { IFormValues, PDSTextType } from '../../../common';
4
4
  declare type CheckboxProps = {
5
- text?: string;
5
+ text?: PDSTextType;
6
6
  fontWeight?: 'bold' | 'regular';
7
7
  state?: 'normal' | 'disabled';
8
8
  name: Path<IFormValues>;
@@ -1,12 +1,9 @@
1
1
  /// <reference types="react" />
2
- import fillIcons from '../../../common/assets/icons/fill';
3
- import lineIcons from '../../../common/assets/icons/line';
4
- export declare type FillIconNameKeys = keyof typeof fillIcons;
5
- export declare type LineIconNameKeys = keyof typeof lineIcons;
2
+ import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
6
3
  declare type DisplayType = 'category_choice' | 'filter_single' | 'filter_multi' | 'removable' | 'label' | 'time' | 'information';
7
4
  export declare type ChipProps = {
8
5
  displayType?: DisplayType;
9
- text?: string | number;
6
+ text?: PDSTextType;
10
7
  filterIconMode?: 'none' | 'left';
11
8
  iconFillType?: 'line' | 'fill';
12
9
  iconName?: FillIconNameKeys | LineIconNameKeys;
@@ -18,6 +18,11 @@ function Chip(_a) {
18
18
  onClickChip();
19
19
  }
20
20
  };
21
+ var handleClickXMarkIcon = function () {
22
+ if (onClickXMarkIcon) {
23
+ onClickXMarkIcon();
24
+ }
25
+ };
21
26
  var chipType = function () {
22
27
  switch (displayType) {
23
28
  case 'category_choice':
@@ -39,7 +44,7 @@ function Chip(_a) {
39
44
  case 'removable':
40
45
  return (react_1.default.createElement(S_RemovableChip, { onClick: handleClick },
41
46
  react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", btnMode: "use", colorTheme: "sysTextSecondary" }),
42
- react_1.default.createElement(S_XIconWrapper, { onClick: onClickXMarkIcon },
47
+ react_1.default.createElement(S_XIconWrapper, { onClick: handleClickXMarkIcon },
43
48
  react_1.default.createElement(Icon_1.Icon, { size: 12, iconName: "ic_xmark", fillType: "line", colorKey: "ui_cpnt_chip_fill_icon_inactive" }))));
44
49
  default:
45
50
  return (react_1.default.createElement(S_FilterSingleChip, { isActive: chipId === activeChipId, onClick: handleClick },
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
+ import { PDSTextType } from '../../../common';
2
3
  export declare type ContextMenuItemProps = {
3
- text: string;
4
+ text: PDSTextType;
4
5
  size?: 'large' | 'medium' | 'small';
5
6
  value: string | number | boolean;
6
7
  isSelected?: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { FillIconNameKeys, LineIconNameKeys } from '../../../common';
2
+ import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
3
3
  declare const defaultProps: {
4
4
  size: "large" | "xlarge";
5
5
  leftDisplayType: "text" | "icon" | "back";
@@ -8,9 +8,9 @@ declare const defaultProps: {
8
8
  };
9
9
  declare type DefaultProps = Readonly<typeof defaultProps>;
10
10
  declare type OptionalProps = {
11
- text?: string;
11
+ text?: PDSTextType;
12
12
  iconName?: FillIconNameKeys | LineIconNameKeys;
13
- mBtnText?: string;
13
+ mBtnText?: PDSTextType;
14
14
  onClickLeftBtn?: () => void;
15
15
  onClickRightBtn?: () => void;
16
16
  };
@@ -19,7 +19,7 @@ declare type Complete<T> = {
19
19
  };
20
20
  declare type TextType = {
21
21
  leftDisplayType: 'text';
22
- text: string;
22
+ text: PDSTextType;
23
23
  };
24
24
  declare type IconType = {
25
25
  leftDisplayType: 'icon';
@@ -32,7 +32,7 @@ declare type CloseType = {
32
32
  } & Complete<Pick<OptionalProps, 'onClickRightBtn'>>;
33
33
  declare type MBtnType = {
34
34
  rightBtnMode: 'mbtn';
35
- mBtnText: string;
35
+ mBtnText: PDSTextType;
36
36
  } & Complete<Pick<OptionalProps, 'onClickRightBtn'>>;
37
37
  declare type DesktopHeaderBarProps = OptionalProps & (TextType | IconType | BackType | CloseType | MBtnType) & Partial<DefaultProps>;
38
38
  declare function DesktopHeaderBar({ text, size, leftDisplayType, iconName, rightBtnMode, mBtnText, dividerType, onClickLeftBtn, onClickRightBtn }: DesktopHeaderBarProps): JSX.Element;
@@ -21,6 +21,16 @@ var defaultProps = {
21
21
  };
22
22
  function DesktopHeaderBar(_a) {
23
23
  var text = _a.text, _b = _a.size, size = _b === void 0 ? 'xlarge' : _b, _c = _a.leftDisplayType, leftDisplayType = _c === void 0 ? 'text' : _c, iconName = _a.iconName, _d = _a.rightBtnMode, rightBtnMode = _d === void 0 ? 'none' : _d, mBtnText = _a.mBtnText, _e = _a.dividerType, dividerType = _e === void 0 ? 'none' : _e, onClickLeftBtn = _a.onClickLeftBtn, onClickRightBtn = _a.onClickRightBtn;
24
+ var handleClickLeftBtn = function () {
25
+ if (onClickLeftBtn) {
26
+ onClickLeftBtn();
27
+ }
28
+ };
29
+ var handleClickRightBtn = function () {
30
+ if (onClickRightBtn) {
31
+ onClickRightBtn();
32
+ }
33
+ };
24
34
  var leftDisplayMode = function () {
25
35
  switch (leftDisplayType) {
26
36
  case 'icon': {
@@ -29,7 +39,7 @@ function DesktopHeaderBar(_a) {
29
39
  react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" })));
30
40
  }
31
41
  case 'back': {
32
- return (react_1.default.createElement(IconButton_1.IconButton, { iconSize: 24, baseSize: "large", fillType: "fill", iconFillType: "line", iconName: "ic_arrow_left", onClick: onClickLeftBtn, iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_transparent" }));
42
+ return (react_1.default.createElement(IconButton_1.IconButton, { iconSize: 24, baseSize: "large", fillType: "fill", iconFillType: "line", iconName: "ic_arrow_left", onClick: handleClickLeftBtn, iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_transparent" }));
33
43
  }
34
44
  case 'text': {
35
45
  return;
@@ -39,11 +49,11 @@ function DesktopHeaderBar(_a) {
39
49
  var rightButtonMode = function () {
40
50
  switch (rightBtnMode) {
41
51
  case 'close': {
42
- return (react_1.default.createElement(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", iconSize: 24, shapeType: "rectangle", iconName: "ic_xmark", iconFillType: "line", onClick: onClickRightBtn, iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_transparent" }));
52
+ return (react_1.default.createElement(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", iconSize: 24, shapeType: "rectangle", iconName: "ic_xmark", iconFillType: "line", onClick: handleClickRightBtn, iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_transparent" }));
43
53
  }
44
54
  case 'mbtn': {
45
55
  return (react_1.default.createElement(react_1.default.Fragment, null, size === 'xlarge' && (react_1.default.createElement(S_MainButtonWrapper, null,
46
- react_1.default.createElement(MainButton_1.MainButton, { text: mBtnText, size: "small", fillType: "line", onClick: onClickRightBtn })))));
56
+ react_1.default.createElement(MainButton_1.MainButton, { text: mBtnText, size: "small", fillType: "line", onClick: handleClickRightBtn })))));
47
57
  }
48
58
  case 'none': {
49
59
  return;
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import { PDSTextType } from '../../../common';
2
3
  declare type TextObj = {
3
- title: string;
4
+ title: PDSTextType;
4
5
  path: string;
5
6
  subArray?: {
6
- title: string;
7
+ title: PDSTextType;
7
8
  path: string;
8
9
  }[];
9
10
  };
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importDefault(require("react"));
30
30
  var react_router_dom_1 = require("react-router-dom");
31
31
  var styled_components_1 = __importStar(require("styled-components"));
32
- var Divider_1 = require("../../../hybrid/components/Divider");
33
32
  var TextLabel_1 = require("../TextLabel");
34
33
  function DesktopTabBar(_a) {
35
34
  var textArray = _a.textArray, _b = _a.styleTheme, styleTheme = _b === void 0 ? 'main' : _b;
@@ -42,7 +41,7 @@ function DesktopTabBar(_a) {
42
41
  };
43
42
  var textLabel = function (value, isSubText) {
44
43
  if (isSubText) {
45
- return (react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, styleTheme: pathname === value.path ? 'caption1Bold' : 'caption1Regular', colorTheme: pathname === value.path ? 'sysTextPrimary' : 'sysTextSecondary', singleLineMode: "use" }));
44
+ return (react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, styleTheme: pathname === value.path ? 'caption1Bold' : 'caption1Regular', colorTheme: pathname === value.path ? 'sysTextPrimary' : 'sysTextSecondary', btnMode: "use" }));
46
45
  }
47
46
  if (styleTheme === 'content') {
48
47
  return (react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, styleTheme: pathname === value.path ? 'caption1Bold' : 'caption1Regular', colorTheme: pathname === value.path ? 'sysTextPrimary' : 'sysTextSecondary', singleLineMode: "use" }));
@@ -52,25 +51,15 @@ function DesktopTabBar(_a) {
52
51
  }
53
52
  };
54
53
  return (react_1.default.createElement(react_1.default.Fragment, null,
55
- react_1.default.createElement(S_TabBox, { styleTheme: styleTheme },
56
- textArray.map(function (value) { return (react_1.default.createElement(S_TabWrapper, { key: value.path, styleTheme: styleTheme, isActive: pathname.includes(value.path), onClick: function () {
54
+ react_1.default.createElement(S_TabBox, null,
55
+ textArray.map(function (value) { return (react_1.default.createElement(S_TabWrapper, { key: value.path, isActive: pathname.includes(value.path), onClick: function () {
57
56
  handleClick(value);
58
57
  } },
59
58
  textLabel(value, false),
60
59
  value.subArray && pathname.includes(value.path) && (react_1.default.createElement(S_SubTabBox, null, value.subArray.map(function (subValue) { return (react_1.default.createElement(S_SubWrapper, { key: subValue.path }, textLabel(subValue, true))); }))))); }),
61
- textArray.map(function (value) { return value.subArray && pathname.includes(value.path) && react_1.default.createElement(S_SubBackground, null); })),
62
- react_1.default.createElement(Divider_1.Divider, { direction: "horizontal" })));
60
+ textArray.map(function (value) { return value.subArray && pathname.includes(value.path) && react_1.default.createElement(S_SubBackground, null); }))));
63
61
  }
64
- var S_TabWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n ", "\n"], ["\n position: relative;\n ", "\n"])), function (_a) {
65
- var styleTheme = _a.styleTheme;
66
- switch (styleTheme) {
67
- case 'content':
68
- return contentStyle;
69
- default:
70
- return mainStyle;
71
- }
72
- });
73
- var mainStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: flex-end;\n justify-content: center;\n cursor: pointer;\n display: flex;\n height: 40px;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n border-bottom: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n }\n"], ["\n align-items: flex-end;\n justify-content: center;\n cursor: pointer;\n display: flex;\n height: 40px;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n border-bottom: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n }\n"])), function (_a) {
62
+ var mediumStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-end;\n box-sizing: border-box;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"], ["\n align-items: flex-end;\n box-sizing: border-box;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"])), function (_a) {
74
63
  var theme = _a.theme;
75
64
  return theme.spacing.spacingD;
76
65
  }, function (_a) {
@@ -79,42 +68,30 @@ var mainStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject
79
68
  }, function (_a) {
80
69
  var theme = _a.theme;
81
70
  return theme.spacing.spacingB;
82
- }, function (_a) {
83
- var isActive = _a.isActive, theme = _a.theme;
84
- return isActive && theme.ui_cpnt_tabbar_base_area;
85
- }, function (_a) {
86
- var isActive = _a.isActive, theme = _a.theme;
87
- return isActive && "2px solid " + theme.ui_cpnt_tabbar_border_active_indicator_primary;
88
- });
89
- var contentStyle = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: flex-end;\n justify-content: center;\n cursor: pointer;\n display: flex;\n height: 40px;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n border-bottom: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n }\n"], ["\n align-items: flex-end;\n justify-content: center;\n cursor: pointer;\n display: flex;\n height: 40px;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n border-bottom: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n }\n"])), function (_a) {
90
- var theme = _a.theme;
91
- return theme.spacing.spacingD;
92
71
  }, function (_a) {
93
72
  var theme = _a.theme;
94
- return theme.spacing.spacingA;
95
- }, function (_a) {
96
- var theme = _a.theme;
97
- return theme.spacing.spacingB;
73
+ return theme.ui_cpnt_tabbar_border_active_indicator_primary;
98
74
  }, function (_a) {
99
- var isActive = _a.isActive, theme = _a.theme;
100
- return isActive && theme.ui_cpnt_tabbar_base_area;
101
- }, function (_a) {
102
- var isActive = _a.isActive, theme = _a.theme;
103
- return isActive && "2px solid " + theme.ui_cpnt_tabbar_border_active_indicator;
75
+ var isActive = _a.isActive;
76
+ return !isActive && "display: none;";
104
77
  });
105
- var S_TabBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n padding-left: ", ";\n position: relative;\n"], ["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n padding-left: ", ";\n position: relative;\n"])), function (_a) {
78
+ var S_TabWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n ", "\n"], ["\n position: relative;\n ", "\n"])), mediumStyle);
79
+ var S_TabBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n padding-left: ", ";\n position: relative;\n height: 40px;\n"], ["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n padding-left: ", ";\n position: relative;\n height: 40px;\n"])), function (_a) {
106
80
  var theme = _a.theme;
107
81
  return theme.ui_cpnt_tabbar_base_area;
82
+ }, function (_a) {
83
+ var theme = _a.theme;
84
+ return theme.ui_cpnt_divider;
108
85
  }, function (_a) {
109
86
  var theme = _a.theme;
110
87
  return theme.spacing.spacingE;
111
88
  });
112
- var S_SubBackground = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100%;\n height: 32px;\n background-color: ", ";\n position: absolute;\n bottom: -33px;\n left: 0px;\n"], ["\n width: 100%;\n height: 32px;\n background-color: ", ";\n position: absolute;\n bottom: -33px;\n left: 0px;\n"])), function (_a) {
89
+ var S_SubBackground = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 100%;\n height: 32px;\n background-color: ", ";\n position: absolute;\n bottom: -33px;\n left: 0px;\n"], ["\n width: 100%;\n height: 32px;\n background-color: ", ";\n position: absolute;\n bottom: -33px;\n left: 0px;\n"])), function (_a) {
113
90
  var theme = _a.theme;
114
91
  return theme.ui_cpnt_tabbar_base_area_sub;
115
92
  });
116
- var S_SubTabBox = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: 100vw;\n position: absolute;\n bottom: -33px;\n left: 0px;\n height: 32px;\n display: flex;\n z-index: 1;\n"], ["\n width: 100vw;\n position: absolute;\n bottom: -33px;\n left: 0px;\n height: 32px;\n display: flex;\n z-index: 1;\n"])));
117
- var S_SubWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n\n &:last-child {\n margin-right: 0;\n }\n"], ["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n\n &:last-child {\n margin-right: 0;\n }\n"])), function (_a) {
93
+ var S_SubTabBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100vw;\n position: absolute;\n bottom: -33px;\n left: 0px;\n height: 32px;\n display: flex;\n z-index: 1;\n"], ["\n width: 100vw;\n position: absolute;\n bottom: -33px;\n left: 0px;\n height: 32px;\n display: flex;\n z-index: 1;\n"])));
94
+ var S_SubWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n\n &:last-child {\n margin-right: 0;\n }\n"], ["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n\n &:last-child {\n margin-right: 0;\n }\n"])), function (_a) {
118
95
  var theme = _a.theme;
119
96
  return theme.spacing.spacingE;
120
97
  }, function (_a) {
@@ -122,4 +99,4 @@ var S_SubWrapper = styled_components_1.default.div(templateObject_7 || (template
122
99
  return theme.spacing.spacingA;
123
100
  });
124
101
  exports.default = DesktopTabBar;
125
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
102
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -1 +1 @@
1
- export { default as DesktopTapBar } from './DesktopTabBar';
1
+ export { default as DesktopTabBar } from './DesktopTabBar';
@@ -3,6 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DesktopTapBar = void 0;
6
+ exports.DesktopTabBar = void 0;
7
7
  var DesktopTabBar_1 = require("./DesktopTabBar");
8
- Object.defineProperty(exports, "DesktopTapBar", { enumerable: true, get: function () { return __importDefault(DesktopTabBar_1).default; } });
8
+ Object.defineProperty(exports, "DesktopTabBar", { enumerable: true, get: function () { return __importDefault(DesktopTabBar_1).default; } });
@@ -1,14 +1,10 @@
1
1
  import React from 'react';
2
2
  import { Path } from 'react-hook-form';
3
- import fillIcons from '../../../common/assets/icons/fill';
4
- import lineIcons from '../../../common/assets/icons/line';
5
- import { IFormValues } from '../../../common/types/form';
6
- export declare type FillIconNameKeys = keyof typeof fillIcons;
7
- export declare type LineIconNameKeys = keyof typeof lineIcons;
3
+ import { PDSTextType, IFormValues } from '../../../common';
8
4
  export declare type EditApplyTextFieldProps = {
9
5
  name: Path<IFormValues>;
10
- hintText?: string | number | null;
11
- defaultText?: string | number | null;
6
+ hintText?: PDSTextType;
7
+ defaultText?: PDSTextType;
12
8
  validation?: {
13
9
  [key: string]: any;
14
10
  };
@@ -25,8 +21,9 @@ export declare type EditApplyTextFieldProps = {
25
21
  min?: number;
26
22
  onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
27
23
  onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
24
+ onClickSubmitBtn?: (...args: any) => any;
28
25
  onFocus?: () => void;
29
26
  onTarget?: () => void;
30
27
  };
31
- declare function EditApplyTextField({ name, hintText, defaultText, validation, preventBlankMode, size, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, max, maxLength, min, onBlur, onChange, onFocus, onTarget }: EditApplyTextFieldProps): JSX.Element;
28
+ declare function EditApplyTextField({ name, hintText, defaultText, validation, preventBlankMode, size, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, max, maxLength, min, onBlur, onChange, onClickSubmitBtn, onFocus, onTarget }: EditApplyTextFieldProps): JSX.Element;
32
29
  export default EditApplyTextField;