pds-dev-kit-web 2.1.11 → 2.1.13

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 (109) hide show
  1. package/dist/src/common/assets/icons/fill/Accordion.js +1 -1
  2. package/dist/src/common/assets/icons/fill/AlignBottom.js +1 -1
  3. package/dist/src/common/assets/icons/fill/AlignCenter.js +1 -1
  4. package/dist/src/common/assets/icons/fill/AlignLeft.js +1 -1
  5. package/dist/src/common/assets/icons/fill/AlignMiddle.js +1 -1
  6. package/dist/src/common/assets/icons/fill/AlignRight.js +1 -1
  7. package/dist/src/common/assets/icons/fill/AlignTop.js +1 -1
  8. package/dist/src/common/assets/icons/fill/ArrowDownStepper.d.ts +4 -0
  9. package/dist/src/common/assets/icons/fill/ArrowDownStepper.js +30 -0
  10. package/dist/src/common/assets/icons/fill/ArrowRoundLeft.d.ts +4 -0
  11. package/dist/src/common/assets/icons/fill/ArrowRoundLeft.js +30 -0
  12. package/dist/src/common/assets/icons/fill/ArrowUpStepper.d.ts +4 -0
  13. package/dist/src/common/assets/icons/fill/ArrowUpStepper.js +30 -0
  14. package/dist/src/common/assets/icons/fill/Audio.js +1 -1
  15. package/dist/src/common/assets/icons/fill/Button.js +1 -1
  16. package/dist/src/common/assets/icons/fill/Calendar.js +1 -1
  17. package/dist/src/common/assets/icons/fill/Carousel.js +1 -1
  18. package/dist/src/common/assets/icons/fill/Copy.js +1 -1
  19. package/dist/src/common/assets/icons/fill/DeviceApp.js +1 -1
  20. package/dist/src/common/assets/icons/fill/DeviceDesktop.js +1 -1
  21. package/dist/src/common/assets/icons/fill/DeviceMobile.js +1 -1
  22. package/dist/src/common/assets/icons/fill/Divider.js +1 -1
  23. package/dist/src/common/assets/icons/fill/Download.js +1 -1
  24. package/dist/src/common/assets/icons/fill/EditorLeftSide.js +1 -1
  25. package/dist/src/common/assets/icons/fill/EditorRightSide.js +1 -1
  26. package/dist/src/common/assets/icons/fill/Embed.js +1 -1
  27. package/dist/src/common/assets/icons/fill/Icon.js +1 -1
  28. package/dist/src/common/assets/icons/fill/Image.js +1 -1
  29. package/dist/src/common/assets/icons/fill/LayerBackward.js +1 -1
  30. package/dist/src/common/assets/icons/fill/LayerForward.js +1 -1
  31. package/dist/src/common/assets/icons/fill/Layout.js +1 -1
  32. package/dist/src/common/assets/icons/fill/LightBulb.js +1 -1
  33. package/dist/src/common/assets/icons/fill/Links.js +1 -1
  34. package/dist/src/common/assets/icons/fill/List.js +1 -1
  35. package/dist/src/common/assets/icons/fill/LogoInsta.js +1 -1
  36. package/dist/src/common/assets/icons/fill/LogoTwitter.js +1 -1
  37. package/dist/src/common/assets/icons/fill/LogoYt.js +1 -1
  38. package/dist/src/common/assets/icons/fill/MinusCircle.d.ts +4 -0
  39. package/dist/src/common/assets/icons/fill/MinusCircle.js +30 -0
  40. package/dist/src/common/assets/icons/fill/Paint.js +1 -1
  41. package/dist/src/common/assets/icons/fill/PlusCircle.d.ts +4 -0
  42. package/dist/src/common/assets/icons/fill/PlusCircle.js +30 -0
  43. package/dist/src/common/assets/icons/fill/PlusRound.js +1 -1
  44. package/dist/src/common/assets/icons/fill/Richtext.js +1 -1
  45. package/dist/src/common/assets/icons/fill/ScrollingText.js +1 -1
  46. package/dist/src/common/assets/icons/fill/Shape.js +1 -1
  47. package/dist/src/common/assets/icons/fill/Slider.js +1 -1
  48. package/dist/src/common/assets/icons/fill/Text.js +1 -1
  49. package/dist/src/common/assets/icons/fill/TextAlignBottom.d.ts +4 -0
  50. package/dist/src/common/assets/icons/fill/TextAlignBottom.js +30 -0
  51. package/dist/src/common/assets/icons/fill/TextAlignCenter.d.ts +4 -0
  52. package/dist/src/common/assets/icons/fill/TextAlignCenter.js +30 -0
  53. package/dist/src/common/assets/icons/fill/TextAlignLeft.d.ts +4 -0
  54. package/dist/src/common/assets/icons/fill/TextAlignLeft.js +30 -0
  55. package/dist/src/common/assets/icons/fill/TextAlignMiddle.d.ts +4 -0
  56. package/dist/src/common/assets/icons/fill/TextAlignMiddle.js +30 -0
  57. package/dist/src/common/assets/icons/fill/TextAlignRight.d.ts +4 -0
  58. package/dist/src/common/assets/icons/fill/TextAlignRight.js +30 -0
  59. package/dist/src/common/assets/icons/fill/TextAlignTop.d.ts +4 -0
  60. package/dist/src/common/assets/icons/fill/TextAlignTop.js +30 -0
  61. package/dist/src/common/assets/icons/fill/Trashcan.js +1 -1
  62. package/dist/src/common/assets/icons/fill/Upload.js +1 -1
  63. package/dist/src/common/assets/icons/fill/VideoType.d.ts +4 -0
  64. package/dist/src/common/assets/icons/fill/VideoType.js +30 -0
  65. package/dist/src/common/assets/icons/fill/index.d.ts +12 -0
  66. package/dist/src/common/assets/icons/fill/index.js +24 -0
  67. package/dist/src/common/assets/icons/line/ArrowRoundLeft.js +1 -1
  68. package/dist/src/common/assets/icons/line/Carousel.js +1 -1
  69. package/dist/src/common/assets/icons/line/Layout.js +1 -1
  70. package/dist/src/common/assets/icons/line/LightBulb.js +1 -1
  71. package/dist/src/common/assets/icons/line/MinusCircle.js +1 -1
  72. package/dist/src/common/assets/icons/line/PlusCircle.js +1 -1
  73. package/dist/src/common/assets/icons/line/Richtext.js +1 -1
  74. package/dist/src/common/assets/icons/line/TextAlignBottom.d.ts +4 -0
  75. package/dist/src/common/assets/icons/line/TextAlignBottom.js +30 -0
  76. package/dist/src/common/assets/icons/line/TextAlignCenter.d.ts +4 -0
  77. package/dist/src/common/assets/icons/line/TextAlignCenter.js +30 -0
  78. package/dist/src/common/assets/icons/line/TextAlignLeft.d.ts +4 -0
  79. package/dist/src/common/assets/icons/line/TextAlignLeft.js +30 -0
  80. package/dist/src/common/assets/icons/line/TextAlignMiddle.d.ts +4 -0
  81. package/dist/src/common/assets/icons/line/TextAlignMiddle.js +30 -0
  82. package/dist/src/common/assets/icons/line/TextAlignRight.d.ts +4 -0
  83. package/dist/src/common/assets/icons/line/TextAlignRight.js +30 -0
  84. package/dist/src/common/assets/icons/line/TextAlignTop.d.ts +4 -0
  85. package/dist/src/common/assets/icons/line/TextAlignTop.js +30 -0
  86. package/dist/src/common/assets/icons/line/VideoType.d.ts +4 -0
  87. package/dist/src/common/assets/icons/line/VideoType.js +30 -0
  88. package/dist/src/common/assets/icons/line/index.d.ts +7 -0
  89. package/dist/src/common/assets/icons/line/index.js +14 -0
  90. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +6 -4
  91. package/dist/src/common/styles/colorSet/PaletteColor_light.json +6 -4
  92. package/dist/src/common/styles/colorSet/UIColor.json +3 -1
  93. package/dist/src/common/styles/colorSet/index.d.ts +959 -953
  94. package/dist/src/common/styles/colorSet/index.js +5 -5
  95. package/dist/src/common/styles/colorSet/ui-type.d.ts +2 -0
  96. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +6 -2
  97. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +181 -28
  98. package/dist/src/desktop/common/components/TextFieldBase/constants.d.ts +1 -0
  99. package/dist/src/desktop/common/components/TextFieldBase/constants.js +2 -1
  100. package/dist/src/desktop/components/TextField/TextField.js +3 -3
  101. package/dist/src/desktop/components/TextLabel/TextLabel.js +40 -15
  102. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +6 -2
  103. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +180 -27
  104. package/dist/src/mobile/common/components/TextFieldBase/constants.d.ts +1 -0
  105. package/dist/src/mobile/common/components/TextFieldBase/constants.js +2 -1
  106. package/dist/src/mobile/components/TextField/TextField.js +3 -3
  107. package/dist/src/sub/AdminList/ToolBar/SearchField.js +1 -1
  108. package/package.json +1 -1
  109. package/release-note.md +22 -26
@@ -50,15 +50,28 @@ var jsx_runtime_1 = require("react/jsx-runtime");
50
50
  /* eslint-disable react/jsx-no-bind */
51
51
  var react_1 = require("react");
52
52
  var react_hook_form_1 = require("react-hook-form");
53
- var components_1 = require("../../../../hybrid/components");
53
+ var components_1 = require("../../../../desktop/components");
54
+ var components_2 = require("../../../../hybrid/components");
54
55
  var styled_components_1 = __importStar(require("styled-components"));
55
56
  var common_1 = require("../../../../common");
56
57
  var IconButton_1 = require("../../../components/IconButton");
57
58
  var constants_1 = require("./constants");
58
59
  function TextFieldBase(_a) {
59
- var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.enterSubmitMode, enterSubmitMode = _d === void 0 ? 'none' : _d, _e = _a.textLineType, textLineType = _e === void 0 ? 'single' : _e, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _f = _a.inputType, inputType = _f === void 0 ? 'text' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, min = _a.min, max = _a.max, _j = _a.maxLength, maxLength = _j === void 0 ? Infinity : _j, _k = _a.textSize, textSize = _k === void 0 ? 'form2' : _k, _l = _a.textWeight, textWeight = _l === void 0 ? 'normal' : _l, textPadding = _a.textPadding, _m = _a.fieldHeight, fieldHeight = _m === void 0 ? 48 : _m, _o = _a.deleteIconMode, deleteIconMode = _o === void 0 ? 'use' : _o, _p = _a.deleteIconSize, deleteIconSize = _p === void 0 ? 20 : _p, _q = _a.deleteIconColor, deleteIconColor = _q === void 0 ? 'ui_cpnt_button_icon_disabled' : _q, isFocused = _a.isFocused, _r = _a.autoComplete, autoComplete = _r === void 0 ? 'on' : _r, _s = _a.stepperMode, stepperMode = _s === void 0 ? 'none' : _s, innerSpinButtonSize = _a.innerSpinButtonSize, step = _a.step, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, rest = __rest(_a, ["name", "hintText", "defaultText", "textAlign", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "autoComplete", "stepperMode", "innerSpinButtonSize", "step", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget"]);
60
- var _t = (0, react_hook_form_1.useFormContext)(), register = _t.register, setValue = _t.setValue, getValues = _t.getValues, clearErrors = _t.clearErrors;
60
+ var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.enterSubmitMode, enterSubmitMode = _d === void 0 ? 'none' : _d, _e = _a.textLineType, textLineType = _e === void 0 ? 'single' : _e, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _f = _a.inputType, inputType = _f === void 0 ? 'text' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, min = _a.min, max = _a.max, _j = _a.maxLength, maxLength = _j === void 0 ? Infinity : _j, _k = _a.textSize, textSize = _k === void 0 ? 'form2' : _k, _l = _a.textWeight, textWeight = _l === void 0 ? 'normal' : _l, fieldPaddingRight = _a.fieldPaddingRight, fieldPaddingLeft = _a.fieldPaddingLeft, textPadding = _a.textPadding, _m = _a.fieldHeight, fieldHeight = _m === void 0 ? 48 : _m, _o = _a.deleteIconMode, deleteIconMode = _o === void 0 ? 'use' : _o, _p = _a.deleteIconSize, deleteIconSize = _p === void 0 ? 20 : _p, _q = _a.deleteIconColor, deleteIconColor = _q === void 0 ? 'ui_cpnt_button_icon_disabled' : _q, suffixText = _a.suffixText, _r = _a.suffixTextRightSpacingMode, suffixTextRightSpacingMode = _r === void 0 ? 'none' : _r, isFocused = _a.isFocused, _s = _a.autoComplete, autoComplete = _s === void 0 ? 'on' : _s, _t = _a.stepperMode, stepperMode = _t === void 0 ? 'none' : _t, _u = _a.stepperRightSpacing, stepperRightSpacing = _u === void 0 ? 1 : _u, _v = _a.innerSpinButtonSize, innerSpinButtonSize = _v === void 0 ? 16 : _v, step = _a.step, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, rest = __rest(_a, ["name", "hintText", "defaultText", "textAlign", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "fieldPaddingRight", "fieldPaddingLeft", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "suffixText", "suffixTextRightSpacingMode", "isFocused", "autoComplete", "stepperMode", "stepperRightSpacing", "innerSpinButtonSize", "step", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget"]);
61
+ var _w = (0, react_hook_form_1.useFormContext)(), register = _w.register, setValue = _w.setValue, getValues = _w.getValues, clearErrors = _w.clearErrors;
61
62
  var timeout;
63
+ var suffixTextRef = (0, react_1.useRef)(null);
64
+ var _x = (0, react_1.useState)(0), suffixTextWidth = _x[0], setSuffixTextWidth = _x[1];
65
+ // NOTE suffixText가 변할때마다 suffixText가 차지하는 너비를 알아내어 suffixTextWidth에 담는다.
66
+ (0, react_1.useEffect)(function () {
67
+ var calculateDivWidth = function () {
68
+ if (suffixTextRef.current) {
69
+ var width = suffixTextRef.current.offsetWidth;
70
+ setSuffixTextWidth(width);
71
+ }
72
+ };
73
+ calculateDivWidth();
74
+ }, [suffixText]);
62
75
  (0, react_1.useEffect)(function () {
63
76
  return function () { return clearTimeout(timeout); };
64
77
  }, []);
@@ -119,7 +132,7 @@ function TextFieldBase(_a) {
119
132
  }
120
133
  }
121
134
  var textAreaRef = (0, react_1.useRef)(null);
122
- var _u = register(name, validation), ref = _u.ref, refRest = __rest(_u, ["ref"]);
135
+ var _y = register(name, validation), ref = _y.ref, refRest = __rest(_y, ["ref"]);
123
136
  (0, react_1.useEffect)(function () {
124
137
  if (textAreaRef === null || textAreaRef.current === null) {
125
138
  return;
@@ -180,13 +193,13 @@ function TextFieldBase(_a) {
180
193
  }
181
194
  var S_TextFieldBase = function () {
182
195
  if (textLineType === 'single') {
183
- return ((0, jsx_runtime_1.jsxs)(S_InputWrapper, { children: [stepperMode === 'use' && ((0, jsx_runtime_1.jsxs)(S_IconBox, __assign({ innerSpinButtonSize: innerSpinButtonSize }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_up", fillType: "fill", size: innerSpinButtonSize }, void 0), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_down", fillType: "fill", size: innerSpinButtonSize }, void 0)] }), void 0)), (0, jsx_runtime_1.jsx)(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, autoComplete: autoComplete, stepperMode: stepperMode, innerSpinButtonSize: innerSpinButtonSize, step: step, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref }), void 0), deleteIconMode === 'use' && isFocused && stepperMode === 'none' && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: deleteValue }, void 0))] }, void 0));
196
+ return ((0, jsx_runtime_1.jsxs)(S_InputWrapper, { children: [stepperMode === 'use' && ((0, jsx_runtime_1.jsxs)(S_IconBox, __assign({ innerSpinButtonSize: innerSpinButtonSize, isFocused: isFocused, stepperRightSpacing: stepperRightSpacing }, { children: [(0, jsx_runtime_1.jsx)(components_2.Icon, { iconName: "ic_arrow_up_stepper", fillType: "fill", size: innerSpinButtonSize }, void 0), (0, jsx_runtime_1.jsx)(components_2.Icon, { iconName: "ic_arrow_down_stepper", fillType: "fill", size: innerSpinButtonSize }, void 0)] }), void 0)), (0, jsx_runtime_1.jsx)(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, fieldPaddingRight: fieldPaddingRight, fieldPaddingLeft: fieldPaddingLeft, colorTheme: colorTheme, min: min, max: max, autoComplete: autoComplete, stepperMode: stepperMode, innerSpinButtonSize: innerSpinButtonSize, step: step, deleteIconMode: deleteIconMode, suffixText: suffixText, suffixTextWidth: suffixTextWidth, stepperRightSpacing: stepperRightSpacing, isFocused: isFocused, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref }), void 0), (deleteIconMode === 'use' || suffixText) && ((0, jsx_runtime_1.jsxs)(S_RightBox, __assign({ deleteIconMode: deleteIconMode, stepperMode: stepperMode, suffixText: suffixText, innerSpinButtonSize: innerSpinButtonSize }, { children: [deleteIconMode === 'use' && ((0, jsx_runtime_1.jsx)(S_IconButtonWrapper, __assign({ innerSpinButtonSize: innerSpinButtonSize, deleteIconMode: deleteIconMode, stepperMode: stepperMode, suffixText: suffixText, isFocused: isFocused, suffixTextWidth: suffixTextWidth, stepperRightSpacing: stepperRightSpacing }, { children: isFocused && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: deleteValue }, void 0)) }), void 0)), suffixText && ((0, jsx_runtime_1.jsxs)(S_SuffixTextBox, __assign({ ref: suffixTextRef }, { children: [(0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: suffixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", colorOverride: stepperMode === 'use' && isFocused ? 'ui_106' : undefined, textAlign: "right", singleLineMode: "use" }, void 0), suffixTextRightSpacingMode === 'use' && ((0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_b", spacingType: "width" }, void 0))] }), void 0))] }), void 0))] }, void 0));
184
197
  }
185
198
  if (textLineType === 'multi') {
186
- return ((0, jsx_runtime_1.jsx)(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref }), void 0));
199
+ return ((0, jsx_runtime_1.jsx)(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, fieldPaddingRight: fieldPaddingRight, fieldPaddingLeft: fieldPaddingLeft, textPadding: textPadding, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref }), void 0));
187
200
  }
188
201
  if (textLineType === 'auto') {
189
- return ((0, jsx_runtime_1.jsx)(S_Auto, __assign({}, refRest, rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, fieldHeight: fieldHeight, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
202
+ return ((0, jsx_runtime_1.jsx)(S_Auto, __assign({}, refRest, rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, textSize: textSize, textWeight: textWeight, fieldPaddingRight: fieldPaddingRight, fieldPaddingLeft: fieldPaddingLeft, textPadding: textPadding, fieldHeight: fieldHeight, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
190
203
  ref(e);
191
204
  textAreaRef.current = e;
192
205
  }, onInput: handleResizeHeight }), void 0));
@@ -194,8 +207,54 @@ function TextFieldBase(_a) {
194
207
  };
195
208
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: S_TextFieldBase() }, void 0);
196
209
  }
197
- var S_InputWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n position: relative;\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n position: relative;\n width: 100%;\n"])));
198
- var read_only = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
210
+ var stepper_and_delete_style = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n"], ["\n position: absolute;\n right: ", ";\n"])), function (_a) {
211
+ var innerSpinButtonSize = _a.innerSpinButtonSize, stepperRightSpacing = _a.stepperRightSpacing;
212
+ return innerSpinButtonSize && stepperRightSpacing && innerSpinButtonSize + stepperRightSpacing + "px";
213
+ });
214
+ var S_IconButtonWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n\n ", "\n"], ["\n ", ";\n\n ", "\n"])), function (_a) {
215
+ var deleteIconMode = _a.deleteIconMode, stepperMode = _a.stepperMode, suffixText = _a.suffixText;
216
+ return deleteIconMode === 'use' && stepperMode === 'use' && !suffixText && stepper_and_delete_style;
217
+ }, function (_a) {
218
+ var innerSpinButtonSize = _a.innerSpinButtonSize, deleteIconMode = _a.deleteIconMode, stepperMode = _a.stepperMode, suffixText = _a.suffixText, isFocused = _a.isFocused, suffixTextWidth = _a.suffixTextWidth, stepperRightSpacing = _a.stepperRightSpacing;
219
+ if (deleteIconMode === 'use' && stepperMode === 'use' && suffixText && stepperRightSpacing) {
220
+ if (isFocused) {
221
+ if (innerSpinButtonSize) {
222
+ if (innerSpinButtonSize + constants_1.DELETE_BUTTON_BASE_SIZE > suffixTextWidth) {
223
+ return "margin-right: " + (innerSpinButtonSize - suffixTextWidth + stepperRightSpacing) + "px;";
224
+ }
225
+ return;
226
+ }
227
+ return;
228
+ }
229
+ return;
230
+ }
231
+ return;
232
+ });
233
+ var S_RightBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: ", ";\n height: 100%;\n display: flex;\n align-items: center;\n right: 0;\n"], ["\n position: ", ";\n height: 100%;\n display: flex;\n align-items: center;\n right: 0;\n"])), function (_a) {
234
+ var deleteIconMode = _a.deleteIconMode, stepperMode = _a.stepperMode, suffixText = _a.suffixText;
235
+ if ((deleteIconMode === 'use' && stepperMode === 'use' && suffixText) ||
236
+ (deleteIconMode === 'use' && stepperMode === 'use') ||
237
+ stepperMode === 'use') {
238
+ return 'absolute';
239
+ }
240
+ return 'relative';
241
+ });
242
+ var S_IconBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: column;\n height: ", ";\n justify-content: center;\n position: absolute;\n right: ", ";\n width: ", ";\n visibility: hidden;\n\n ", ";\n"], ["\n align-items: center;\n display: flex;\n flex-direction: column;\n height: ", ";\n justify-content: center;\n position: absolute;\n right: ", ";\n width: ", ";\n visibility: hidden;\n\n ", ";\n"])), function (_a) {
243
+ var innerSpinButtonSize = _a.innerSpinButtonSize;
244
+ return innerSpinButtonSize && innerSpinButtonSize * 2 + "px";
245
+ }, function (_a) {
246
+ var stepperRightSpacing = _a.stepperRightSpacing;
247
+ return stepperRightSpacing && stepperRightSpacing + "px";
248
+ }, function (_a) {
249
+ var innerSpinButtonSize = _a.innerSpinButtonSize;
250
+ return innerSpinButtonSize && innerSpinButtonSize + "px";
251
+ }, function (_a) {
252
+ var isFocused = _a.isFocused;
253
+ return isFocused && 'visibility: visible;';
254
+ });
255
+ var S_SuffixTextBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
256
+ var S_InputWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n position: relative;\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n position: relative;\n width: 100%;\n"])));
257
+ var read_only = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
199
258
  var theme = _a.theme, colorTheme = _a.colorTheme;
200
259
  return colorTheme &&
201
260
  {
@@ -204,7 +263,7 @@ var read_only = (0, styled_components_1.css)(templateObject_2 || (templateObject
204
263
  transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_readonly
205
264
  }[colorTheme];
206
265
  });
207
- var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n pointer-events: none;\n"], ["\n color: ", ";\n pointer-events: none;\n"])), function (_a) {
266
+ var disabled = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n color: ", ";\n pointer-events: none;\n"], ["\n color: ", ";\n pointer-events: none;\n"])), function (_a) {
208
267
  var theme = _a.theme, colorTheme = _a.colorTheme;
209
268
  return colorTheme &&
210
269
  {
@@ -213,7 +272,7 @@ var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_
213
272
  transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_disabled
214
273
  }[colorTheme];
215
274
  });
216
- var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n display: inline-flex;\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n justify-content: center;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n text-align: ", ";\n width: 100%;\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"], ["\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n display: inline-flex;\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n justify-content: center;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n text-align: ", ";\n width: 100%;\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
275
+ var basicStyle = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n display: inline-flex;\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n justify-content: center;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n text-align: ", ";\n width: 100%;\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n ", "\n\n ", "\n"], ["\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n display: inline-flex;\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n justify-content: center;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n text-align: ", ";\n width: 100%;\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n ", "\n\n ", "\n"])), function (_a) {
217
276
  var theme = _a.theme, colorTheme = _a.colorTheme;
218
277
  return colorTheme &&
219
278
  {
@@ -259,10 +318,105 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
259
318
  disabled: disabled
260
319
  }[state];
261
320
  }, function (_a) {
262
- var textPadding = _a.textPadding;
263
- return textPadding && "padding: " + textPadding;
321
+ var fieldPaddingRight = _a.fieldPaddingRight;
322
+ return fieldPaddingRight && "padding-right: " + fieldPaddingRight + "px;";
323
+ }, function (_a) {
324
+ var fieldPaddingLeft = _a.fieldPaddingLeft;
325
+ return fieldPaddingLeft && "padding-left: " + fieldPaddingLeft + "px;";
326
+ }, function (_a) {
327
+ var deleteIconMode = _a.deleteIconMode, stepperMode = _a.stepperMode, suffixText = _a.suffixText;
328
+ if (deleteIconMode === 'use' && stepperMode === 'use' && suffixText) {
329
+ return delete_stepper_suffix;
330
+ }
331
+ if (deleteIconMode === 'use' && stepperMode === 'use' && !suffixText) {
332
+ return delete_stepper;
333
+ }
334
+ if (deleteIconMode === 'none' && stepperMode === 'use' && suffixText) {
335
+ return stepper_suffix;
336
+ }
337
+ if (deleteIconMode === 'none' && stepperMode === 'use' && !suffixText) {
338
+ return stepper;
339
+ }
340
+ return;
264
341
  });
265
- var inputInnerSpinButtonStyle = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n -webkit-appearance: none;\n cursor: pointer;\n height: ", ";\n margin-left: ", ";\n opacity: 1;\n width: ", ";\n"], ["\n -webkit-appearance: none;\n cursor: pointer;\n height: ", ";\n margin-left: ", ";\n opacity: 1;\n width: ", ";\n"])), function (_a) {
342
+ var delete_stepper_suffix = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n padding-right: ", ";\n"], ["\n padding-right: ", ";\n"])), function (_a) {
343
+ var innerSpinButtonSize = _a.innerSpinButtonSize, fieldPaddingRight = _a.fieldPaddingRight, isFocused = _a.isFocused, suffixTextWidth = _a.suffixTextWidth, stepperRightSpacing = _a.stepperRightSpacing;
344
+ if (innerSpinButtonSize && stepperRightSpacing) {
345
+ if (isFocused) {
346
+ if (innerSpinButtonSize + constants_1.DELETE_BUTTON_BASE_SIZE + stepperRightSpacing <
347
+ constants_1.DELETE_BUTTON_BASE_SIZE + suffixTextWidth) {
348
+ if (fieldPaddingRight) {
349
+ return constants_1.DELETE_BUTTON_BASE_SIZE + suffixTextWidth + fieldPaddingRight + "px";
350
+ }
351
+ return constants_1.DELETE_BUTTON_BASE_SIZE + suffixTextWidth + "px";
352
+ }
353
+ if (fieldPaddingRight) {
354
+ return constants_1.DELETE_BUTTON_BASE_SIZE + innerSpinButtonSize + fieldPaddingRight + stepperRightSpacing + "px";
355
+ }
356
+ return constants_1.DELETE_BUTTON_BASE_SIZE + innerSpinButtonSize + stepperRightSpacing + "px";
357
+ }
358
+ if (fieldPaddingRight) {
359
+ return suffixTextWidth + fieldPaddingRight + "px";
360
+ }
361
+ return suffixTextWidth + "px";
362
+ }
363
+ return;
364
+ });
365
+ var delete_stepper = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n padding-right: ", ";\n"], ["\n padding-right: ", ";\n"])), function (_a) {
366
+ var innerSpinButtonSize = _a.innerSpinButtonSize, fieldPaddingRight = _a.fieldPaddingRight, isFocused = _a.isFocused, stepperRightSpacing = _a.stepperRightSpacing;
367
+ if (innerSpinButtonSize && stepperRightSpacing) {
368
+ if (isFocused) {
369
+ if (fieldPaddingRight) {
370
+ return innerSpinButtonSize + constants_1.DELETE_BUTTON_BASE_SIZE + fieldPaddingRight + stepperRightSpacing + "px";
371
+ }
372
+ return innerSpinButtonSize + constants_1.DELETE_BUTTON_BASE_SIZE + stepperRightSpacing + "px";
373
+ }
374
+ if (fieldPaddingRight) {
375
+ return fieldPaddingRight + "px";
376
+ }
377
+ return;
378
+ }
379
+ return;
380
+ });
381
+ var stepper_suffix = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n padding-right: ", ";\n"], ["\n padding-right: ", ";\n"])), function (_a) {
382
+ var innerSpinButtonSize = _a.innerSpinButtonSize, fieldPaddingRight = _a.fieldPaddingRight, isFocused = _a.isFocused, suffixTextWidth = _a.suffixTextWidth, stepperRightSpacing = _a.stepperRightSpacing;
383
+ if (innerSpinButtonSize && stepperRightSpacing) {
384
+ if (isFocused) {
385
+ if (innerSpinButtonSize + stepperRightSpacing < suffixTextWidth) {
386
+ if (fieldPaddingRight) {
387
+ return suffixTextWidth + fieldPaddingRight + "px";
388
+ }
389
+ return suffixTextWidth + "px";
390
+ }
391
+ if (fieldPaddingRight) {
392
+ return innerSpinButtonSize + stepperRightSpacing + fieldPaddingRight + "px";
393
+ }
394
+ return innerSpinButtonSize + stepperRightSpacing + "px";
395
+ }
396
+ if (fieldPaddingRight) {
397
+ return suffixTextWidth + fieldPaddingRight + "px";
398
+ }
399
+ return suffixTextWidth + "px";
400
+ }
401
+ return;
402
+ });
403
+ var stepper = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n padding-right: ", ";\n"], ["\n padding-right: ", ";\n"])), function (_a) {
404
+ var innerSpinButtonSize = _a.innerSpinButtonSize, fieldPaddingRight = _a.fieldPaddingRight, isFocused = _a.isFocused, stepperRightSpacing = _a.stepperRightSpacing;
405
+ if (innerSpinButtonSize && stepperRightSpacing) {
406
+ if (isFocused) {
407
+ if (fieldPaddingRight) {
408
+ return innerSpinButtonSize + stepperRightSpacing + fieldPaddingRight + "px";
409
+ }
410
+ return innerSpinButtonSize + stepperRightSpacing + "px";
411
+ }
412
+ if (fieldPaddingRight) {
413
+ return fieldPaddingRight + "px";
414
+ }
415
+ return;
416
+ }
417
+ return;
418
+ });
419
+ var inputInnerSpinButtonStyle = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n -webkit-appearance: none;\n z-index: 1;\n cursor: pointer;\n height: ", ";\n margin-left: ", ";\n opacity: 1;\n width: ", ";\n position: absolute;\n right: ", ";\n top: calc(\n 50% - ", "\n );\n"], ["\n -webkit-appearance: none;\n z-index: 1;\n cursor: pointer;\n height: ", ";\n margin-left: ", ";\n opacity: 1;\n width: ", ";\n position: absolute;\n right: ", ";\n top: calc(\n 50% - ", "\n );\n"])), function (_a) {
266
420
  var innerSpinButtonSize = _a.innerSpinButtonSize;
267
421
  return innerSpinButtonSize && innerSpinButtonSize * 2 + "px";
268
422
  }, function (_a) {
@@ -271,24 +425,23 @@ var inputInnerSpinButtonStyle = (0, styled_components_1.css)(templateObject_5 ||
271
425
  }, function (_a) {
272
426
  var innerSpinButtonSize = _a.innerSpinButtonSize;
273
427
  return innerSpinButtonSize && innerSpinButtonSize + "px";
428
+ }, function (_a) {
429
+ var stepperRightSpacing = _a.stepperRightSpacing;
430
+ return stepperRightSpacing && stepperRightSpacing + "px";
431
+ }, function (_a) {
432
+ var innerSpinButtonSize = _a.innerSpinButtonSize;
433
+ return innerSpinButtonSize && innerSpinButtonSize + "px";
274
434
  });
275
- var S_Input = styled_components_1.default.input(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n line-height: ", ";\n position: relative;\n\n ::-webkit-inner-spin-button {\n ", "\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"], ["\n ", "\n line-height: ", ";\n position: relative;\n\n ::-webkit-inner-spin-button {\n ", "\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), basicStyle, function (_a) {
435
+ var S_Input = styled_components_1.default.input(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n line-height: ", ";\n position: relative;\n\n ::-webkit-inner-spin-button {\n ", "\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"], ["\n ", "\n line-height: ", ";\n position: relative;\n\n ::-webkit-inner-spin-button {\n ", "\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), basicStyle, function (_a) {
276
436
  var theme = _a.theme;
277
437
  return theme.desktopLineHeight.singleLine;
278
438
  }, function (_a) {
279
- var stepperMode = _a.stepperMode, type = _a.type;
280
- return stepperMode === 'use' && type === 'number'
439
+ var stepperMode = _a.stepperMode, type = _a.type, isFocused = _a.isFocused;
440
+ return stepperMode === 'use' && type === 'number' && isFocused
281
441
  ? inputInnerSpinButtonStyle
282
442
  : '-webkit-appearance: none; margin: 0;';
283
443
  });
284
- var S_IconBox = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: column;\n height: ", ";\n justify-content: center;\n position: absolute;\n right: ", "px;\n width: ", ";\n"], ["\n align-items: center;\n display: flex;\n flex-direction: column;\n height: ", ";\n justify-content: center;\n position: absolute;\n right: ", "px;\n width: ", ";\n"])), function (_a) {
285
- var innerSpinButtonSize = _a.innerSpinButtonSize;
286
- return innerSpinButtonSize && innerSpinButtonSize * 2 + "px";
287
- }, constants_1.PIXEL_FOR_ICONS_CENTER, function (_a) {
288
- var innerSpinButtonSize = _a.innerSpinButtonSize;
289
- return innerSpinButtonSize && innerSpinButtonSize + "px";
290
- });
291
- var S_Auto = styled_components_1.default.textarea(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n ", "\n ", ";\n"], ["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n ", "\n ", ";\n"])), basicStyle, function (_a) {
444
+ var S_Auto = styled_components_1.default.textarea(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n ", "\n ", ";\n"], ["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n ", "\n ", ";\n"])), basicStyle, function (_a) {
292
445
  var autoMaxRows = _a.autoMaxRows, textSize = _a.textSize, fieldHeight = _a.fieldHeight;
293
446
  return autoMaxRows &&
294
447
  fieldHeight &&
@@ -303,6 +456,6 @@ var S_Auto = styled_components_1.default.textarea(templateObject_8 || (templateO
303
456
  Number(common_1.desktopLineHeight[textSize]) *
304
457
  autoMinRows + "px;";
305
458
  });
306
- var S_Multi = styled_components_1.default.textarea(templateObject_9 || (templateObject_9 = __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);
459
+ var S_Multi = styled_components_1.default.textarea(templateObject_17 || (templateObject_17 = __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);
307
460
  exports.default = TextFieldBase;
308
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
461
+ 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;
@@ -1 +1,2 @@
1
1
  export declare const PIXEL_FOR_ICONS_CENTER = 1;
2
+ export declare const DELETE_BUTTON_BASE_SIZE = 32;
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PIXEL_FOR_ICONS_CENTER = void 0;
3
+ exports.DELETE_BUTTON_BASE_SIZE = exports.PIXEL_FOR_ICONS_CENTER = void 0;
4
4
  exports.PIXEL_FOR_ICONS_CENTER = 1;
5
+ exports.DELETE_BUTTON_BASE_SIZE = 32;
@@ -136,7 +136,7 @@ function TextField(_a) {
136
136
  break;
137
137
  }
138
138
  }
139
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [prefixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: prefixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", singleLineMode: "use" }, void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)] }, void 0)), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: inputType === 'number' && numberStepperMode === 'use' ? 'right' : textAlign, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: fontWeight === 'bold' ? 'bold' : 'normal', deleteIconMode: deleteBtnMode, deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, stepperMode: inputType === 'number' && numberStepperMode === 'use' ? 'use' : 'none', innerSpinButtonSize: size === 'small' ? 12 : 16, step: numberStep, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }, void 0), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [suffixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: suffixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", textAlign: "right", singleLineMode: "use" }, void 0), size === 'large' ? ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)) : ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }, void 0))] }, void 0)), iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: colorTheme &&
139
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [prefixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: prefixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", singleLineMode: "use" }, void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)] }, void 0)), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: textAlign, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: fontWeight === 'bold' ? 'bold' : 'normal', fieldPaddingRight: size === 'large' || size === 'rlarge' ? 8 : undefined, deleteIconMode: deleteBtnMode, deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, stepperMode: inputType === 'number' && numberStepperMode === 'use' ? 'use' : 'none', stepperRightSpacing: size === 'large' || size === 'rlarge' ? 1 : -4, innerSpinButtonSize: size === 'small' ? 12 : 16, step: numberStep, suffixText: suffixText, suffixTextRightSpacingMode: size === 'large' || size === 'rlarge' ? 'use' : 'none', onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }, void 0), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: colorTheme &&
140
140
  {
141
141
  none: basicThemeIconColors[state],
142
142
  dark: darkThemeIconColors[state],
@@ -184,14 +184,14 @@ var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
184
184
  return theme.spacing.spacingC;
185
185
  }, function (_a) {
186
186
  var theme = _a.theme;
187
- return theme.spacing.spacingB;
187
+ return theme.spacing.spacingC;
188
188
  });
189
189
  var medium = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-radius: 12px;\n height: 40px;\n padding-left: ", ";\n padding-right: ", ";\n width: 188px;\n"], ["\n border-radius: 12px;\n height: 40px;\n padding-left: ", ";\n padding-right: ", ";\n width: 188px;\n"])), function (_a) {
190
190
  var theme = _a.theme;
191
191
  return theme.spacing.spacingC;
192
192
  }, function (_a) {
193
193
  var theme = _a.theme;
194
- return theme.spacing.spacingB;
194
+ return theme.spacing.spacingC;
195
195
  });
196
196
  var large = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n padding-left: ", ";\n padding-right: ", ";\n width: ", ";\n ", "\n ", "\n"], ["\n border-radius: 14px;\n height: 48px;\n padding-left: ", ";\n padding-right: ", ";\n width: ", ";\n ", "\n ", "\n"])), function (_a) {
197
197
  var theme = _a.theme;
@@ -72,7 +72,7 @@ function SearchField(_a) {
72
72
  onTarget();
73
73
  }
74
74
  };
75
- return ((0, jsx_runtime_1.jsx)(S_SearchFieldBox, __assign({ "x-pds-name": "SearchField", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, responsiveMode: responsiveMode, customWidth: customWidth }, { children: (0, jsx_runtime_1.jsxs)(S_SearchFieldWrapper, __assign({ size: size, textLineType: "single", isFocused: isFocused, state: "normal", colorTheme: "none", responsiveMode: responsiveMode, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsx)(components_2.IconButton, { baseSize: "medium", iconSize: 20, iconName: "ic_arrow_left", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleArrowIBtnClick }, void 0), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { inputRef: textFieldBaseRef, name: name, size: size, hintText: hintText, defaultText: defaultText, enterSubmitMode: "use", textLineType: "single", textSize: "form2", textWeight: "normal", textPadding: "0 0 0 8px", deleteIconMode: "use", deleteIconSize: size === 'large' ? 20 : 16, deleteIconColor: "ui_cpnt_button_icon_disabled", isFocused: isFocused, onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onChange: register('searchField').onChange }, void 0), (0, jsx_runtime_1.jsx)(components_3.Spacing, { size: "spacing_a", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(components_2.IconButton, { baseSize: "medium", iconSize: 20, iconName: "ic_search", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleSearchIBtnClick }, void 0)] }), void 0) }), void 0));
75
+ return ((0, jsx_runtime_1.jsx)(S_SearchFieldBox, __assign({ "x-pds-name": "SearchField", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, responsiveMode: responsiveMode, customWidth: customWidth }, { children: (0, jsx_runtime_1.jsxs)(S_SearchFieldWrapper, __assign({ size: size, textLineType: "single", isFocused: isFocused, state: "normal", colorTheme: "none", responsiveMode: responsiveMode, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsx)(components_2.IconButton, { baseSize: "medium", iconSize: 20, iconName: "ic_arrow_left", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleArrowIBtnClick }, void 0), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { inputRef: textFieldBaseRef, name: name, size: size, hintText: hintText, defaultText: defaultText, enterSubmitMode: "use", textLineType: "single", textSize: "form2", textWeight: "normal", fieldPaddingLeft: 8, deleteIconMode: "use", deleteIconSize: size === 'large' ? 20 : 16, deleteIconColor: "ui_cpnt_button_icon_disabled", isFocused: isFocused, onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onChange: register('searchField').onChange }, void 0), (0, jsx_runtime_1.jsx)(components_3.Spacing, { size: "spacing_a", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(components_2.IconButton, { baseSize: "medium", iconSize: 20, iconName: "ic_search", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleSearchIBtnClick }, void 0)] }), void 0) }), void 0));
76
76
  }
77
77
  var S_SearchFieldBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n ", ";\n ", "\n"], ["\n ", ";\n ", ";\n ", "\n"])), function (_a) {
78
78
  var size = _a.size;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.1.11",
3
+ "version": "2.1.13",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,34 +1,30 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.1.10]
2
+ ## [v2.1.13]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### Components
6
- * BasicButtonGroup
7
- * iconFillType이 제대로 작동하도록 수정
8
- * SegmentedButtonGroup
9
- * iconFillType이 제대로 작동하도록 수정
6
+ * TextField
7
+ * delete button, stepper, suffixText의 작동 방식 및 간격 변경
10
8
  * Icon
11
- * ic_audio
12
- * fill, line 추가
13
- * ic_calendar
14
- * fill, line 추가
15
- * ic_embed
16
- * fill, line 추가
17
- * ic_icon
18
- * fill, line 추가
19
- * ic_list
20
- * fill, line 추가
21
- * ic_post_inquiry
9
+ * ic_logo_yt
10
+ * fill 수정
11
+ * ic_arrow_round_left
12
+ * line 수정
22
13
  * fill 추가
23
- * ic_scrolling_text
24
- * fill, line 추가
25
- * ic_seller_page
26
- * fill 추가
27
- * ic_slider
28
- * fill, line 추가
29
- * TextLabel
30
- * 툴팁 텍스트의 행간을 1.2로 수정
31
- * 툴팁 최대 너비를 320px -> 240px로 수정
14
+ * ic_layout
15
+ * line, fill 수정
16
+ * ic_text_align_top
17
+ * line, fill 추가
18
+ * ic_text_align_middle
19
+ * line, fill 추가
20
+ * ic_text_align_bottom
21
+ * line, fill 추가
22
+ * ic_text_align_left
23
+ * line, fill 추가
24
+ * ic_text_align_center
25
+ * line, fill 추가
26
+ * ic_text_align_right
27
+ * line, fill 추가
32
28
 
33
29
  ### Color
34
- * 컬러 키 값 23.07.29 1546분 기준 싱크
30
+ * 컬러 키 값 23.08.03 2050분 기준 싱크