pds-dev-kit-web 1.3.0 → 1.3.3
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.
- package/.vscode/settings.json +2 -1
- package/dist/src/common/assets/icons/line/MinusCircle.d.ts +4 -0
- package/dist/src/common/assets/icons/line/MinusCircle.js +36 -0
- package/dist/src/common/assets/icons/line/PappType.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PappType.js +37 -0
- package/dist/src/common/assets/icons/line/index.d.ts +2 -0
- package/dist/src/common/assets/icons/line/index.js +4 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +2 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +4 -4
- package/dist/src/desktop/components/DesktopBasicModal/DesktopBasicModal.d.ts +4 -1
- package/dist/src/desktop/components/DesktopBasicModal/DesktopBasicModal.js +6 -6
- package/dist/src/desktop/components/TextField/TextField.d.ts +2 -1
- package/dist/src/desktop/components/TextField/TextField.js +5 -5
- package/dist/src/desktop/components/TextLabel/TextLabel.js +1 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +2 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +4 -4
- package/dist/src/mobile/components/TextField/TextField.d.ts +2 -1
- package/dist/src/mobile/components/TextField/TextField.js +5 -5
- package/dist/src/mobile/components/TextLabel/TextLabel.js +1 -1
- package/package.json +1 -1
- package/release-note.md +5 -10
package/.vscode/settings.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var react_1 = __importDefault(require("react"));
|
|
29
|
+
var MinusCircle = function (_a) {
|
|
30
|
+
var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
|
|
31
|
+
return (react_1.default.createElement("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest),
|
|
32
|
+
react_1.default.createElement("g", { fill: "none", fillRule: "evenodd" },
|
|
33
|
+
react_1.default.createElement("path", { fill: color, d: "M12.0001,2 C6.4771,2 2.0001,6.477 2.0001,12 C2.0001,17.523 6.4771,22 12.0001,22 C17.5231,22 22.0001,17.523 22.0001,12 C22.0001,6.477 17.5231,2 12.0001,2 M12.0001,3.5 C16.6871,3.5 20.5001,7.313 20.5001,12 C20.5001,16.687 16.6871,20.5 12.0001,20.5 C7.3131,20.5 3.5001,16.687 3.5001,12 C3.5001,7.313 7.3131,3.5 12.0001,3.5" }),
|
|
34
|
+
react_1.default.createElement("line", { x1: "14.899", x2: "9.101", y1: "9.101", y2: "14.899", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", transform: "rotate(45 12 12)" }))));
|
|
35
|
+
};
|
|
36
|
+
exports.default = MinusCircle;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var react_1 = __importDefault(require("react"));
|
|
29
|
+
var PappType = function (_a) {
|
|
30
|
+
var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
|
|
31
|
+
return (react_1.default.createElement("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest),
|
|
32
|
+
react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24" },
|
|
33
|
+
react_1.default.createElement("g", { fill: "none", fillRule: "evenodd" },
|
|
34
|
+
react_1.default.createElement("path", { fill: color, d: "M19.2878,7.0015 L4.7118,7.0015 C3.3318,7.0015 2.2118,8.1205 2.2118,9.5015 L2.2118,17.3035 C2.2118,18.6835 3.3318,19.8035 4.7118,19.8035 L19.2878,19.8035 C20.6688,19.8035 21.7878,18.6835 21.7878,17.3035 L21.7878,9.5015 C21.7878,8.1205 20.6688,7.0015 19.2878,7.0015 L19.2878,7.0015 Z M19.2878,8.5015 C19.8398,8.5015 20.2878,8.9505 20.2878,9.5015 L20.2878,17.3035 C20.2878,17.8545 19.8398,18.3035 19.2878,18.3035 L4.7118,18.3035 C4.1608,18.3035 3.7118,17.8545 3.7118,17.3035 L3.7118,9.5015 C3.7118,8.9505 4.1608,8.5015 4.7118,8.5015 L19.2878,8.5015 Z" }),
|
|
35
|
+
react_1.default.createElement("path", { stroke: color, strokeWidth: "1.5", d: "M6.1046,8.0121 L6.1046,5.5901 C6.1046,5.0321 6.5566,4.5801 7.1146,4.5801 L9.4596,4.5801 C10.0176,4.5801 10.4696,5.0321 10.4696,5.5901 L10.4696,8.0121 M13.4324,8.0121 L13.4324,5.5901 C13.4324,5.0321 13.8844,4.5801 14.4424,4.5801 L16.7874,4.5801 C17.3454,4.5801 17.7974,5.0321 17.7974,5.5901 L17.7974,8.0121" })))));
|
|
36
|
+
};
|
|
37
|
+
exports.default = PappType;
|
|
@@ -53,10 +53,12 @@ declare const lineIcons: {
|
|
|
53
53
|
readonly ic_menu: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
54
54
|
readonly ic_mic_off: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
55
55
|
readonly ic_mic_on: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
56
|
+
readonly ic_minus_circle: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
56
57
|
readonly ic_open_page: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
57
58
|
readonly ic_page_size_expand: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
58
59
|
readonly ic_page_size_reduce: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
59
60
|
readonly ic_papp: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
61
|
+
readonly ic_papp_type: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
60
62
|
readonly ic_payment: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
61
63
|
readonly ic_payment_gift: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
62
64
|
readonly ic_payment_onetime: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
@@ -56,10 +56,12 @@ var Lock_1 = __importDefault(require("./Lock"));
|
|
|
56
56
|
var Menu_1 = __importDefault(require("./Menu"));
|
|
57
57
|
var MicOff_1 = __importDefault(require("./MicOff"));
|
|
58
58
|
var MicOn_1 = __importDefault(require("./MicOn"));
|
|
59
|
+
var MinusCircle_1 = __importDefault(require("./MinusCircle"));
|
|
59
60
|
var OpenPage_1 = __importDefault(require("./OpenPage"));
|
|
60
61
|
var PageSizeExpand_1 = __importDefault(require("./PageSizeExpand"));
|
|
61
62
|
var PageSizeReduce_1 = __importDefault(require("./PageSizeReduce"));
|
|
62
63
|
var Papp_1 = __importDefault(require("./Papp"));
|
|
64
|
+
var PappType_1 = __importDefault(require("./PappType"));
|
|
63
65
|
var Payment_1 = __importDefault(require("./Payment"));
|
|
64
66
|
var PaymentGift_1 = __importDefault(require("./PaymentGift"));
|
|
65
67
|
var PaymentOnetime_1 = __importDefault(require("./PaymentOnetime"));
|
|
@@ -182,10 +184,12 @@ var lineIcons = {
|
|
|
182
184
|
ic_menu: Menu_1.default,
|
|
183
185
|
ic_mic_off: MicOff_1.default,
|
|
184
186
|
ic_mic_on: MicOn_1.default,
|
|
187
|
+
ic_minus_circle: MinusCircle_1.default,
|
|
185
188
|
ic_open_page: OpenPage_1.default,
|
|
186
189
|
ic_page_size_expand: PageSizeExpand_1.default,
|
|
187
190
|
ic_page_size_reduce: PageSizeReduce_1.default,
|
|
188
191
|
ic_papp: Papp_1.default,
|
|
192
|
+
ic_papp_type: PappType_1.default,
|
|
189
193
|
ic_payment: Payment_1.default,
|
|
190
194
|
ic_payment_gift: PaymentGift_1.default,
|
|
191
195
|
ic_payment_onetime: PaymentOnetime_1.default,
|
|
@@ -9,6 +9,7 @@ export declare type TextFieldBaseProps = {
|
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
};
|
|
11
11
|
preventBlankMode?: 'none' | 'trim' | 'all';
|
|
12
|
+
enterSubmitMode?: 'none' | 'use';
|
|
12
13
|
textLineType: 'single' | 'multi' | 'auto';
|
|
13
14
|
multiRows?: number;
|
|
14
15
|
autoMinRows?: number;
|
|
@@ -35,5 +36,5 @@ export declare type TextFieldBaseProps = {
|
|
|
35
36
|
onTarget?: () => void;
|
|
36
37
|
[x: string]: any;
|
|
37
38
|
} & Record<string, any>;
|
|
38
|
-
declare function TextFieldBase({ name, hintText, defaultText, validation, preventBlankMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
39
|
+
declare function TextFieldBase({ name, hintText, defaultText, validation, preventBlankMode, enterSubmitMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
39
40
|
export default TextFieldBase;
|
|
@@ -52,8 +52,8 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
52
52
|
var common_1 = require("../../../../common");
|
|
53
53
|
var IconButton_1 = require("../../../components/IconButton");
|
|
54
54
|
function TextFieldBase(_a) {
|
|
55
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _b = _a.preventBlankMode, preventBlankMode = _b === void 0 ? 'none' : _b, _c = _a.textLineType, textLineType =
|
|
56
|
-
var
|
|
55
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _b = _a.preventBlankMode, preventBlankMode = _b === void 0 ? 'none' : _b, _c = _a.enterSubmitMode, enterSubmitMode = _c === void 0 ? 'none' : _c, _d = _a.textLineType, textLineType = _d === void 0 ? 'single' : _d, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _e = _a.inputType, inputType = _e === void 0 ? 'text' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, _g = _a.colorTheme, colorTheme = _g === void 0 ? 'none' : _g, min = _a.min, max = _a.max, _h = _a.maxLength, maxLength = _h === void 0 ? Infinity : _h, _j = _a.textSize, textSize = _j === void 0 ? 'form2' : _j, _k = _a.textWeight, textWeight = _k === void 0 ? 'normal' : _k, textPadding = _a.textPadding, _l = _a.fieldHeight, fieldHeight = _l === void 0 ? 48 : _l, _m = _a.deleteIconMode, deleteIconMode = _m === void 0 ? 'use' : _m, _o = _a.deleteIconSize, deleteIconSize = _o === void 0 ? 20 : _o, _p = _a.deleteIconColor, deleteIconColor = _p === void 0 ? 'ui_cpnt_button_icon_disabled' : _p, isFocused = _a.isFocused, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, rest = __rest(_a, ["name", "hintText", "defaultText", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget"]);
|
|
56
|
+
var _q = (0, react_hook_form_1.useFormContext)(), register = _q.register, setValue = _q.setValue, getValues = _q.getValues, clearErrors = _q.clearErrors;
|
|
57
57
|
var timeout;
|
|
58
58
|
(0, react_1.useEffect)(function () {
|
|
59
59
|
return function () { return clearTimeout(timeout); };
|
|
@@ -65,7 +65,7 @@ function TextFieldBase(_a) {
|
|
|
65
65
|
clearErrors(name);
|
|
66
66
|
}
|
|
67
67
|
function handleKeyDown(e) {
|
|
68
|
-
if (textLineType === 'single' && e.code === 'Enter') {
|
|
68
|
+
if (textLineType === 'single' && enterSubmitMode === 'none' && e.code === 'Enter') {
|
|
69
69
|
e.preventDefault();
|
|
70
70
|
}
|
|
71
71
|
if (inputType === 'number') {
|
|
@@ -111,7 +111,7 @@ function TextFieldBase(_a) {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
var textAreaRef = (0, react_1.useRef)(null);
|
|
114
|
-
var
|
|
114
|
+
var _r = register(name, validation), ref = _r.ref, refRest = __rest(_r, ["ref"]);
|
|
115
115
|
(0, react_1.useEffect)(function () {
|
|
116
116
|
if (textAreaRef === null || textAreaRef.current === null) {
|
|
117
117
|
return;
|
|
@@ -7,11 +7,14 @@ declare type DesktopBasicModalProps = {
|
|
|
7
7
|
mBtn1Text: PDSTextType;
|
|
8
8
|
mBtn2Text?: PDSTextType;
|
|
9
9
|
mBtn3Text?: PDSTextType;
|
|
10
|
+
mBtn1State?: 'normal' | 'disabled';
|
|
11
|
+
mBtn2State?: 'normal' | 'disabled';
|
|
12
|
+
mBtn3State?: 'normal' | 'disabled';
|
|
10
13
|
size?: 'large' | 'medium' | 'small';
|
|
11
14
|
onClickMBtn1?: () => void;
|
|
12
15
|
onClickMBtn2?: () => void;
|
|
13
16
|
onClickMBtn3?: () => void;
|
|
14
17
|
children?: React.ReactNode;
|
|
15
18
|
};
|
|
16
|
-
declare function DesktopBasicModal({ titleText, contentText, btnMode, mBtn1Text, mBtn2Text, mBtn3Text, onClickMBtn1, onClickMBtn2, onClickMBtn3, size, children }: DesktopBasicModalProps): React.ReactPortal;
|
|
19
|
+
declare function DesktopBasicModal({ titleText, contentText, btnMode, mBtn1Text, mBtn2Text, mBtn3Text, mBtn1State, mBtn2State, mBtn3State, onClickMBtn1, onClickMBtn2, onClickMBtn3, size, children }: DesktopBasicModalProps): React.ReactPortal;
|
|
17
20
|
export default DesktopBasicModal;
|
|
@@ -33,7 +33,7 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
33
33
|
var MainButton_1 = require("../MainButton");
|
|
34
34
|
var TextLabel_1 = require("../TextLabel");
|
|
35
35
|
function DesktopBasicModal(_a) {
|
|
36
|
-
var titleText = _a.titleText, contentText = _a.contentText, _b = _a.btnMode, btnMode = _b === void 0 ? 'mbtn_amount2' : _b, mBtn1Text = _a.mBtn1Text, mBtn2Text = _a.mBtn2Text, mBtn3Text = _a.mBtn3Text, onClickMBtn1 = _a.onClickMBtn1, onClickMBtn2 = _a.onClickMBtn2, onClickMBtn3 = _a.onClickMBtn3,
|
|
36
|
+
var titleText = _a.titleText, contentText = _a.contentText, _b = _a.btnMode, btnMode = _b === void 0 ? 'mbtn_amount2' : _b, mBtn1Text = _a.mBtn1Text, mBtn2Text = _a.mBtn2Text, mBtn3Text = _a.mBtn3Text, _c = _a.mBtn1State, mBtn1State = _c === void 0 ? 'normal' : _c, _d = _a.mBtn2State, mBtn2State = _d === void 0 ? 'normal' : _d, _e = _a.mBtn3State, mBtn3State = _e === void 0 ? 'normal' : _e, onClickMBtn1 = _a.onClickMBtn1, onClickMBtn2 = _a.onClickMBtn2, onClickMBtn3 = _a.onClickMBtn3, _f = _a.size, size = _f === void 0 ? 'large' : _f, children = _a.children;
|
|
37
37
|
var container = (0, react_1.useState)(function () {
|
|
38
38
|
var modalRoot = document.createElement('div');
|
|
39
39
|
modalRoot.setAttribute('id', 'DesktopBasicModal');
|
|
@@ -62,16 +62,16 @@ function DesktopBasicModal(_a) {
|
|
|
62
62
|
children && children),
|
|
63
63
|
react_1.default.createElement(hybrid_1.Divider, null),
|
|
64
64
|
react_1.default.createElement(S_Footer, null,
|
|
65
|
-
react_1.default.createElement(S_Left, null, btn3Mode.includes(btnMode) && mBtn3Text && (react_1.default.createElement(MainButton_1.MainButton, { fillType: "line", text: mBtn3Text, size: "medium", onClick: onClickMBtn3 }))),
|
|
65
|
+
react_1.default.createElement(S_Left, null, btn3Mode.includes(btnMode) && mBtn3Text && (react_1.default.createElement(MainButton_1.MainButton, { fillType: "line", text: mBtn3Text, state: mBtn3State, size: "medium", onClick: onClickMBtn3 }))),
|
|
66
66
|
react_1.default.createElement(S_Right, null,
|
|
67
|
-
react_1.default.createElement(S_Btn2Wrapper, null, btn2Mode.includes(btnMode) && mBtn2Text && (react_1.default.createElement(MainButton_1.MainButton, { fillType: "line", text: mBtn2Text, size: "medium", onClick: onClickMBtn2 }))),
|
|
68
|
-
btn1Mode.includes(btnMode) && mBtn1Text && (react_1.default.createElement(MainButton_1.MainButton, { text: mBtn1Text, size: "medium", onClick: onClickMBtn1 })))))), container);
|
|
67
|
+
react_1.default.createElement(S_Btn2Wrapper, null, btn2Mode.includes(btnMode) && mBtn2Text && (react_1.default.createElement(MainButton_1.MainButton, { fillType: "line", text: mBtn2Text, state: mBtn2State, size: "medium", onClick: onClickMBtn2 }))),
|
|
68
|
+
btn1Mode.includes(btnMode) && mBtn1Text && (react_1.default.createElement(MainButton_1.MainButton, { text: mBtn1Text, state: mBtn1State, size: "medium", onClick: onClickMBtn1 })))))), container);
|
|
69
69
|
}
|
|
70
70
|
var S_ModalOverlay = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n"], ["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n"])), function (_a) {
|
|
71
71
|
var theme = _a.theme;
|
|
72
72
|
return theme.ui_cpnt_modal_dimmed;
|
|
73
73
|
});
|
|
74
|
-
var S_ModalWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n left: 50%;\n max-height: 720px;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n left: 50%;\n max-height: 720px;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: ", ";\n"])), function (_a) {
|
|
74
|
+
var S_ModalWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n left: 50%;\n max-height: 720px;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n left: 50%;\n max-height: 720px;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: ", ";\n"])), function (_a) {
|
|
75
75
|
var theme = _a.theme;
|
|
76
76
|
return theme.ui_cpnt_modal_base;
|
|
77
77
|
}, function (_a) {
|
|
@@ -108,7 +108,7 @@ var S_Header = styled_components_1.default.div(templateObject_6 || (templateObje
|
|
|
108
108
|
var theme = _a.theme;
|
|
109
109
|
return theme.spacing.spacingC;
|
|
110
110
|
});
|
|
111
|
-
var S_Body = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n overflow:
|
|
111
|
+
var S_Body = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n flex: 1;\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n overflow: auto;\n"], ["\n flex: 1;\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n overflow: auto;\n"])), function (_a) {
|
|
112
112
|
var theme = _a.theme;
|
|
113
113
|
return theme.spacing.spacingD;
|
|
114
114
|
}, function (_a) {
|
|
@@ -10,6 +10,7 @@ export declare type TextFieldProps = {
|
|
|
10
10
|
};
|
|
11
11
|
validationPoint?: 'onChange' | 'onBlur';
|
|
12
12
|
preventBlankMode?: 'none' | 'trim' | 'all';
|
|
13
|
+
enterSubmitMode?: 'none' | 'use';
|
|
13
14
|
size?: 'small' | 'medium' | 'large' | 'rlarge';
|
|
14
15
|
responsiveMode?: 'none' | 'use';
|
|
15
16
|
textLineType?: 'single' | 'multi' | 'auto';
|
|
@@ -34,5 +35,5 @@ export declare type TextFieldProps = {
|
|
|
34
35
|
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
35
36
|
onTarget?: () => void;
|
|
36
37
|
};
|
|
37
|
-
declare function TextField({ name, hintText, defaultText, validation, validationPoint, preventBlankMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onTarget }: TextFieldProps): JSX.Element;
|
|
38
|
+
declare function TextField({ name, hintText, defaultText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onTarget }: TextFieldProps): JSX.Element;
|
|
38
39
|
export default TextField;
|
|
@@ -32,7 +32,7 @@ var components_1 = require("../../common/components");
|
|
|
32
32
|
var IconButton_1 = require("../IconButton");
|
|
33
33
|
function TextField(_a) {
|
|
34
34
|
var _b;
|
|
35
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.validationPoint, validationPoint = _c === void 0 ? 'onBlur' : _c, _d = _a.preventBlankMode, preventBlankMode = _d === void 0 ? 'none' : _d, _e = _a.
|
|
35
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.validationPoint, validationPoint = _c === void 0 ? 'onBlur' : _c, _d = _a.preventBlankMode, preventBlankMode = _d === void 0 ? 'none' : _d, _e = _a.enterSubmitMode, enterSubmitMode = _e === void 0 ? 'none' : _e, _f = _a.size, size = _f === void 0 ? 'large' : _f, _g = _a.responsiveMode, responsiveMode = _g === void 0 ? 'none' : _g, _h = _a.textLineType, textLineType = _h === void 0 ? 'single' : _h, _j = _a.multiRows, multiRows = _j === void 0 ? 8 : _j, _k = _a.autoMinRows, autoMinRows = _k === void 0 ? 8 : _k, autoMaxRows = _a.autoMaxRows, _l = _a.inputType, inputType = _l === void 0 ? 'text' : _l, _m = _a.state, state = _m === void 0 ? 'normal' : _m, iBtn1IconName = _a.iBtn1IconName, _o = _a.iBtn1IconFillType, iBtn1IconFillType = _o === void 0 ? 'line' : _o, iBtn2IconName = _a.iBtn2IconName, _p = _a.iBtn2IconFillType, iBtn2IconFillType = _p === void 0 ? 'line' : _p, _q = _a.colorTheme, colorTheme = _q === void 0 ? 'none' : _q, max = _a.max, maxLength = _a.maxLength, min = _a.min, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget;
|
|
36
36
|
var iconThemeColorNoneObj = {
|
|
37
37
|
normal: 'ui_cpnt_button_icon_default',
|
|
38
38
|
read_only: 'ui_cpnt_button_icon_default',
|
|
@@ -44,9 +44,9 @@ function TextField(_a) {
|
|
|
44
44
|
disabled: 'ui_cpnt_textfield_icon_darktheme_disabled'
|
|
45
45
|
};
|
|
46
46
|
var t = (0, react_i18next_1.useTranslation)('translation').t;
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
47
|
+
var _r = (0, react_1.useState)(false), isFocused = _r[0], setIsFocused = _r[1];
|
|
48
|
+
var _s = (0, react_hook_form_1.useFormContext)(), register = _s.register, trigger = _s.trigger, errors = _s.formState.errors;
|
|
49
|
+
var _t = register(name, validation), validateOnChange = _t.onChange, validateOnBlur = _t.onBlur;
|
|
50
50
|
var isError = Object.keys(errors).some(function (error) { return error === name; });
|
|
51
51
|
var handleClickIBtn1 = function () {
|
|
52
52
|
if (onClickIBtn1) {
|
|
@@ -103,7 +103,7 @@ function TextField(_a) {
|
|
|
103
103
|
}
|
|
104
104
|
if (textLineType === 'single') {
|
|
105
105
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
106
|
-
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, isFocused: isFocused, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }),
|
|
106
|
+
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, isFocused: isFocused, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }),
|
|
107
107
|
react_1.default.createElement(S_IconBox, null,
|
|
108
108
|
iBtn2IconName && (react_1.default.createElement(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 &&
|
|
109
109
|
{
|
|
@@ -259,7 +259,7 @@ var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateO
|
|
|
259
259
|
return lineLimit;
|
|
260
260
|
});
|
|
261
261
|
var userSelectModeStyle = (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"], ["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"])));
|
|
262
|
-
var S_TextLabel = styled_components_1.default.div(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break:
|
|
262
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
263
263
|
var textAlign = _a.textAlign;
|
|
264
264
|
return textAlign;
|
|
265
265
|
}, function (_a) {
|
|
@@ -9,6 +9,7 @@ export declare type TextFieldBaseProps = {
|
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
};
|
|
11
11
|
preventBlankMode?: 'none' | 'trim' | 'all';
|
|
12
|
+
enterSubmitMode?: 'none' | 'use';
|
|
12
13
|
textLineType: 'single' | 'multi' | 'auto';
|
|
13
14
|
multiRows?: number;
|
|
14
15
|
autoMinRows?: number;
|
|
@@ -35,5 +36,5 @@ export declare type TextFieldBaseProps = {
|
|
|
35
36
|
onTarget?: () => void;
|
|
36
37
|
[x: string]: any;
|
|
37
38
|
} & Record<string, any>;
|
|
38
|
-
declare function TextFieldBase({ name, hintText, defaultText, validation, preventBlankMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
39
|
+
declare function TextFieldBase({ name, hintText, defaultText, validation, preventBlankMode, enterSubmitMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
39
40
|
export default TextFieldBase;
|
|
@@ -52,8 +52,8 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
52
52
|
var common_1 = require("../../../../common");
|
|
53
53
|
var IconButton_1 = require("../../../components/IconButton");
|
|
54
54
|
function TextFieldBase(_a) {
|
|
55
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _b = _a.preventBlankMode, preventBlankMode = _b === void 0 ? 'none' : _b, _c = _a.textLineType, textLineType =
|
|
56
|
-
var
|
|
55
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _b = _a.preventBlankMode, preventBlankMode = _b === void 0 ? 'none' : _b, _c = _a.enterSubmitMode, enterSubmitMode = _c === void 0 ? 'none' : _c, _d = _a.textLineType, textLineType = _d === void 0 ? 'single' : _d, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _e = _a.inputType, inputType = _e === void 0 ? 'text' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, _g = _a.colorTheme, colorTheme = _g === void 0 ? 'none' : _g, min = _a.min, max = _a.max, _h = _a.maxLength, maxLength = _h === void 0 ? Infinity : _h, _j = _a.textSize, textSize = _j === void 0 ? 'form2' : _j, _k = _a.textWeight, textWeight = _k === void 0 ? 'normal' : _k, textPadding = _a.textPadding, _l = _a.fieldHeight, fieldHeight = _l === void 0 ? 48 : _l, _m = _a.deleteIconMode, deleteIconMode = _m === void 0 ? 'use' : _m, _o = _a.deleteIconSize, deleteIconSize = _o === void 0 ? 20 : _o, _p = _a.deleteIconColor, deleteIconColor = _p === void 0 ? 'ui_cpnt_button_icon_disabled' : _p, isFocused = _a.isFocused, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, rest = __rest(_a, ["name", "hintText", "defaultText", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget"]);
|
|
56
|
+
var _q = (0, react_hook_form_1.useFormContext)(), register = _q.register, setValue = _q.setValue, getValues = _q.getValues, clearErrors = _q.clearErrors;
|
|
57
57
|
var timeout;
|
|
58
58
|
(0, react_1.useEffect)(function () {
|
|
59
59
|
return function () { return clearTimeout(timeout); };
|
|
@@ -65,7 +65,7 @@ function TextFieldBase(_a) {
|
|
|
65
65
|
clearErrors(name);
|
|
66
66
|
}
|
|
67
67
|
function handleKeyDown(e) {
|
|
68
|
-
if (textLineType === 'single' && e.code === 'Enter') {
|
|
68
|
+
if (textLineType === 'single' && enterSubmitMode === 'none' && e.code === 'Enter') {
|
|
69
69
|
e.preventDefault();
|
|
70
70
|
}
|
|
71
71
|
if (inputType === 'number') {
|
|
@@ -111,7 +111,7 @@ function TextFieldBase(_a) {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
var textAreaRef = (0, react_1.useRef)(null);
|
|
114
|
-
var
|
|
114
|
+
var _r = register(name, validation), ref = _r.ref, refRest = __rest(_r, ["ref"]);
|
|
115
115
|
(0, react_1.useEffect)(function () {
|
|
116
116
|
if (textAreaRef === null || textAreaRef.current === null) {
|
|
117
117
|
return;
|
|
@@ -10,6 +10,7 @@ export declare type TextFieldProps = {
|
|
|
10
10
|
};
|
|
11
11
|
validationPoint?: 'onChange' | 'onBlur';
|
|
12
12
|
preventBlankMode?: 'none' | 'trim' | 'all';
|
|
13
|
+
enterSubmitMode?: 'none' | 'use';
|
|
13
14
|
size?: 'small' | 'medium' | 'large' | 'rlarge';
|
|
14
15
|
responsiveMode?: 'none' | 'use';
|
|
15
16
|
textLineType?: 'single' | 'multi' | 'auto';
|
|
@@ -34,5 +35,5 @@ export declare type TextFieldProps = {
|
|
|
34
35
|
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
35
36
|
onTarget?: () => void;
|
|
36
37
|
};
|
|
37
|
-
declare function TextField({ name, hintText, defaultText, validation, validationPoint, preventBlankMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onTarget }: TextFieldProps): JSX.Element;
|
|
38
|
+
declare function TextField({ name, hintText, defaultText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onTarget }: TextFieldProps): JSX.Element;
|
|
38
39
|
export default TextField;
|
|
@@ -32,7 +32,7 @@ var components_1 = require("../../common/components");
|
|
|
32
32
|
var IconButton_1 = require("../IconButton");
|
|
33
33
|
function TextField(_a) {
|
|
34
34
|
var _b;
|
|
35
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.validationPoint, validationPoint = _c === void 0 ? 'onBlur' : _c, _d = _a.preventBlankMode, preventBlankMode = _d === void 0 ? 'none' : _d, _e = _a.
|
|
35
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.validationPoint, validationPoint = _c === void 0 ? 'onBlur' : _c, _d = _a.preventBlankMode, preventBlankMode = _d === void 0 ? 'none' : _d, _e = _a.enterSubmitMode, enterSubmitMode = _e === void 0 ? 'none' : _e, _f = _a.size, size = _f === void 0 ? 'large' : _f, _g = _a.responsiveMode, responsiveMode = _g === void 0 ? 'none' : _g, _h = _a.textLineType, textLineType = _h === void 0 ? 'single' : _h, _j = _a.multiRows, multiRows = _j === void 0 ? 8 : _j, _k = _a.autoMinRows, autoMinRows = _k === void 0 ? 8 : _k, autoMaxRows = _a.autoMaxRows, _l = _a.inputType, inputType = _l === void 0 ? 'text' : _l, _m = _a.state, state = _m === void 0 ? 'normal' : _m, iBtn1IconName = _a.iBtn1IconName, _o = _a.iBtn1IconFillType, iBtn1IconFillType = _o === void 0 ? 'line' : _o, iBtn2IconName = _a.iBtn2IconName, _p = _a.iBtn2IconFillType, iBtn2IconFillType = _p === void 0 ? 'line' : _p, _q = _a.colorTheme, colorTheme = _q === void 0 ? 'none' : _q, max = _a.max, maxLength = _a.maxLength, min = _a.min, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget;
|
|
36
36
|
var iconThemeColorNoneObj = {
|
|
37
37
|
normal: 'ui_cpnt_button_icon_default',
|
|
38
38
|
read_only: 'ui_cpnt_button_icon_default',
|
|
@@ -44,9 +44,9 @@ function TextField(_a) {
|
|
|
44
44
|
disabled: 'ui_cpnt_textfield_icon_darktheme_disabled'
|
|
45
45
|
};
|
|
46
46
|
var t = (0, react_i18next_1.useTranslation)('translation').t;
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
47
|
+
var _r = (0, react_1.useState)(false), isFocused = _r[0], setIsFocused = _r[1];
|
|
48
|
+
var _s = (0, react_hook_form_1.useFormContext)(), register = _s.register, trigger = _s.trigger, errors = _s.formState.errors;
|
|
49
|
+
var _t = register(name, validation), validateOnChange = _t.onChange, validateOnBlur = _t.onBlur;
|
|
50
50
|
var isError = Object.keys(errors).some(function (error) { return error === name; });
|
|
51
51
|
var handleClickIBtn1 = function () {
|
|
52
52
|
if (onClickIBtn1) {
|
|
@@ -103,7 +103,7 @@ function TextField(_a) {
|
|
|
103
103
|
}
|
|
104
104
|
if (textLineType === 'single') {
|
|
105
105
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
106
|
-
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, isFocused: isFocused, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }),
|
|
106
|
+
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, isFocused: isFocused, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }),
|
|
107
107
|
react_1.default.createElement(S_IconBox, null,
|
|
108
108
|
iBtn2IconName && (react_1.default.createElement(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 &&
|
|
109
109
|
{
|
|
@@ -259,7 +259,7 @@ var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateO
|
|
|
259
259
|
return lineLimit;
|
|
260
260
|
});
|
|
261
261
|
var userSelectModeStyle = (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"], ["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"])));
|
|
262
|
-
var S_TextLabel = styled_components_1.default.div(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break:
|
|
262
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
263
263
|
var textAlign = _a.textAlign;
|
|
264
264
|
return textAlign;
|
|
265
265
|
}, function (_a) {
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v1.3.
|
|
2
|
+
## [v1.3.3]
|
|
3
3
|
|
|
4
4
|
### Component
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* AdminListItem 생성
|
|
10
|
-
* AdminListHeader 생성
|
|
11
|
-
|
|
12
|
-
### Color
|
|
13
|
-
* 컬러 키 값 22.04.13 00시 13분 기준 싱크
|
|
5
|
+
* TextLabel
|
|
6
|
+
* word-break: keep-all;로 변경 (한글 줄바꿈시 단어가 어색하게 잘리지 않기 위해)
|
|
7
|
+
* Icon
|
|
8
|
+
* line 아이콘 추가 (ic_minus_circle, ic_papp_type)
|