pds-dev-kit-web 2.1.12 → 2.1.14

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 (86) hide show
  1. package/dist/src/common/assets/icons/fill/ArrowRoundLeft.d.ts +4 -0
  2. package/dist/src/common/assets/icons/fill/ArrowRoundLeft.js +30 -0
  3. package/dist/src/common/assets/icons/fill/Layout.js +1 -1
  4. package/dist/src/common/assets/icons/fill/LogoYt.js +1 -1
  5. package/dist/src/common/assets/icons/fill/TextAlignBottom.d.ts +4 -0
  6. package/dist/src/common/assets/icons/fill/TextAlignBottom.js +30 -0
  7. package/dist/src/common/assets/icons/fill/TextAlignCenter.d.ts +4 -0
  8. package/dist/src/common/assets/icons/fill/TextAlignCenter.js +30 -0
  9. package/dist/src/common/assets/icons/fill/TextAlignLeft.d.ts +4 -0
  10. package/dist/src/common/assets/icons/fill/TextAlignLeft.js +30 -0
  11. package/dist/src/common/assets/icons/fill/TextAlignMiddle.d.ts +4 -0
  12. package/dist/src/common/assets/icons/fill/TextAlignMiddle.js +30 -0
  13. package/dist/src/common/assets/icons/fill/TextAlignRight.d.ts +4 -0
  14. package/dist/src/common/assets/icons/fill/TextAlignRight.js +30 -0
  15. package/dist/src/common/assets/icons/fill/TextAlignTop.d.ts +4 -0
  16. package/dist/src/common/assets/icons/fill/TextAlignTop.js +30 -0
  17. package/dist/src/common/assets/icons/fill/index.d.ts +7 -0
  18. package/dist/src/common/assets/icons/fill/index.js +14 -0
  19. package/dist/src/common/assets/icons/line/ArrowRoundLeft.js +1 -1
  20. package/dist/src/common/assets/icons/line/Layout.js +1 -1
  21. package/dist/src/common/assets/icons/line/SectionContent32.js +1 -1
  22. package/dist/src/common/assets/icons/line/SectionContent40.js +1 -1
  23. package/dist/src/common/assets/icons/line/SectionContentsCarousel32.js +1 -1
  24. package/dist/src/common/assets/icons/line/SectionContentsCarousel40.js +1 -1
  25. package/dist/src/common/assets/icons/line/SectionCustom32.js +1 -1
  26. package/dist/src/common/assets/icons/line/SectionCustom40.js +1 -1
  27. package/dist/src/common/assets/icons/line/SectionDivider32.js +1 -1
  28. package/dist/src/common/assets/icons/line/SectionDivider40.js +1 -1
  29. package/dist/src/common/assets/icons/line/SectionFooter32.js +1 -1
  30. package/dist/src/common/assets/icons/line/SectionFooter40.js +1 -1
  31. package/dist/src/common/assets/icons/line/SectionIframe32.js +1 -1
  32. package/dist/src/common/assets/icons/line/SectionIframe40.js +1 -1
  33. package/dist/src/common/assets/icons/line/SectionInfoBox32.js +1 -1
  34. package/dist/src/common/assets/icons/line/SectionInfoBox40.js +1 -1
  35. package/dist/src/common/assets/icons/line/SectionIntro32.js +1 -1
  36. package/dist/src/common/assets/icons/line/SectionIntro40.js +1 -1
  37. package/dist/src/common/assets/icons/line/SectionMap32.js +1 -1
  38. package/dist/src/common/assets/icons/line/SectionMap40.js +1 -1
  39. package/dist/src/common/assets/icons/line/SectionMembership32.js +1 -1
  40. package/dist/src/common/assets/icons/line/SectionMembership40.js +1 -1
  41. package/dist/src/common/assets/icons/line/SectionPriceBox32.js +1 -1
  42. package/dist/src/common/assets/icons/line/SectionPriceBox40.js +1 -1
  43. package/dist/src/common/assets/icons/line/SectionProductsCarousel32.js +1 -1
  44. package/dist/src/common/assets/icons/line/SectionProductsCarousel40.js +1 -1
  45. package/dist/src/common/assets/icons/line/SectionReview32.js +1 -1
  46. package/dist/src/common/assets/icons/line/SectionReview40.js +1 -1
  47. package/dist/src/common/assets/icons/line/SectionSlider32.js +1 -1
  48. package/dist/src/common/assets/icons/line/SectionSlider40.js +1 -1
  49. package/dist/src/common/assets/icons/line/SectionTab32.js +1 -1
  50. package/dist/src/common/assets/icons/line/SectionTab40.js +1 -1
  51. package/dist/src/common/assets/icons/line/TextAlignBottom.d.ts +4 -0
  52. package/dist/src/common/assets/icons/line/TextAlignBottom.js +30 -0
  53. package/dist/src/common/assets/icons/line/TextAlignCenter.d.ts +4 -0
  54. package/dist/src/common/assets/icons/line/TextAlignCenter.js +30 -0
  55. package/dist/src/common/assets/icons/line/TextAlignLeft.d.ts +4 -0
  56. package/dist/src/common/assets/icons/line/TextAlignLeft.js +30 -0
  57. package/dist/src/common/assets/icons/line/TextAlignMiddle.d.ts +4 -0
  58. package/dist/src/common/assets/icons/line/TextAlignMiddle.js +30 -0
  59. package/dist/src/common/assets/icons/line/TextAlignRight.d.ts +4 -0
  60. package/dist/src/common/assets/icons/line/TextAlignRight.js +30 -0
  61. package/dist/src/common/assets/icons/line/TextAlignTop.d.ts +4 -0
  62. package/dist/src/common/assets/icons/line/TextAlignTop.js +30 -0
  63. package/dist/src/common/assets/icons/line/index.d.ts +6 -0
  64. package/dist/src/common/assets/icons/line/index.js +12 -0
  65. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +3 -2
  66. package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
  67. package/dist/src/common/styles/colorSet/UIColor.json +2 -1
  68. package/dist/src/common/styles/colorSet/index.d.ts +5 -2
  69. package/dist/src/common/styles/colorSet/index.js +2 -2
  70. package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
  71. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +6 -2
  72. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +181 -28
  73. package/dist/src/desktop/common/components/TextFieldBase/constants.d.ts +1 -0
  74. package/dist/src/desktop/common/components/TextFieldBase/constants.js +2 -1
  75. package/dist/src/desktop/components/Slider/Slider.js +8 -1
  76. package/dist/src/desktop/components/TextField/TextField.js +1 -1
  77. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +6 -2
  78. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +180 -27
  79. package/dist/src/mobile/common/components/TextFieldBase/constants.d.ts +1 -0
  80. package/dist/src/mobile/common/components/TextFieldBase/constants.js +2 -1
  81. package/dist/src/mobile/components/Slider/Slider.js +8 -1
  82. package/dist/src/mobile/components/TextField/TextField.js +1 -1
  83. package/dist/src/sub/AdminList/ToolBar/SearchField.js +1 -1
  84. package/package.json +1 -1
  85. package/release-note.md +19 -97
  86. package/webhook/node_modules/esrecurse/.babelrc +0 -3
@@ -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;
@@ -60,7 +60,14 @@ function Slider(_a, ref) {
60
60
  };
61
61
  var getThumbPositionOnTrack = function (percent, value, width) {
62
62
  var thumbOffset = getThumbOffset(percent, width);
63
- return "calc(" + ((Number(value) - min) / (max - min)) * 100 + "% + " + thumbOffset + "px)";
63
+ var calcValue = ((Number(value) - min) / (max - min)) * 100;
64
+ if (!calcValue || calcValue < 0) {
65
+ return "calc(0% + 10px)";
66
+ }
67
+ if (calcValue > 100) {
68
+ return "calc(100% - 10px)";
69
+ }
70
+ return "calc(" + calcValue + "% + " + thumbOffset + "px)";
64
71
  };
65
72
  var updateFillTrackAndThumb = function (trackElement, thumbElement, thumbPosition) {
66
73
  trackElement.style.backgroundSize = thumbPosition + " 100%";
@@ -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', textPadding: size === 'large' || size === 'rlarge' ? '0 8px 0 0' : undefined, 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' || size === 'rlarge' ? ((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],
@@ -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.12",
3
+ "version": "2.1.14",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,103 +1,25 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.1.12]
2
+ ## [v2.1.14]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### Components
6
- * TextField
7
- * 각 prop에 따른 내부 간격 수정
8
- * TextLabel
9
- * 각 styleTheme에 맞게 tooltip icon이 중앙정렬되어 보일 수 있도록 수정
10
- * Icon
11
- * ic_links
12
- * fill 수정
13
- * ic_plus_circle
14
- * line 수정
15
- * fill 추가
16
- * ic_minus_circle
17
- * line 수정
18
- * fill 추가
19
- * ic_video_type
20
- * line, fill 추가
21
- * ic_arrow_up_stepper
22
- * fill 추가
23
- * ic_arrow_down_stepper
24
- * fill 추가
25
- * ic_accordion
26
- * fill 수정
27
- * ic_align_bottom
28
- * fill 수정
29
- * ic_align_center
30
- * fill 수정
31
- * ic_align_left
32
- * fill 수정
33
- * ic_align_middle
34
- * fill 수정
35
- * ic_align_right
36
- * fill 수정
37
- * ic_align_top
38
- * fill 수정
39
- * ic_audio
40
- * fill 수정
41
- * ic_button
42
- * fill 수정
43
- * ic_calendar
44
- * fill 수정
45
- * ic_carousel
46
- * line, fill 수정
47
- * ic_copy
48
- * fill 수정
49
- * ic_device_app
50
- * fill 수정
51
- * ic_device_desktop
52
- * fill 수정
53
- * ic_device_mobile
54
- * fill 수정
55
- * ic_divider
56
- * fill 수정
57
- * ic_download
58
- * fill 수정
59
- * ic_editor_left_side
60
- * fill 수정
61
- * ic_editor_right_side
62
- * fill 수정
63
- * ic_embed
64
- * fill 수정
65
- * ic_icon
66
- * fill 수정
67
- * ic_image
68
- * fill 수정
69
- * ic_layer_backward
70
- * fill 수정
71
- * ic_layer_forward
72
- * fill 수정
73
- * ic_layout
74
- * fill 수정
75
- * ic_light_bulb
76
- * line, fill 수정
77
- * ic_list
78
- * fill 수정
79
- * ic_logo_insta
80
- * fill 수정
81
- * ic_logo_twitter
82
- * fill 수정
83
- * ic_paint
84
- * fill 수정
85
- * ic_plus_round
86
- * fill 수정
87
- * ic_rich_text
88
- * line, fill 수정
89
- * ic_scrolling_text
90
- * fill 수정
91
- * ic_shape
92
- * fill 수정
93
- * ic_slider
94
- * fill 수정
95
- * ic_text
96
- * fill 수정
97
- * ic_trashcan
98
- * fill 수정
99
- * ic_upload
100
- * fill 수정
6
+ * ic_section_~~_32 / ic_section_~~_40 → 각각 두 종류 아이콘 수정 작업 (라인을 좀 더 굵게 표현함)
7
+ - ic_section_content
8
+ - ic_section_contentscarousel
9
+ - ic_section_custom
10
+ - ic_section_divider
11
+ - ic_section_footer
12
+ - ic_section_iframe
13
+ - ic_section_infobox
14
+ - ic_section_intro
15
+ - ic_section_map
16
+ - ic_section_membership
17
+ - ic_section_pricebox
18
+ - ic_section_productcarousel
19
+ - ic_section_review
20
+ - ic_section_slider
21
+ - ic_section_tab
22
+ * slider : min / max 넘지 않도록 수정
101
23
 
102
24
  ### Color
103
- * 컬러 키 값 23.08.02 1825분 기준 싱크
25
+ * 컬러 키 값 23.08.06 1622분 기준 싱크
@@ -1,3 +0,0 @@
1
- {
2
- "presets": ["es2015"]
3
- }