pds-dev-kit-web-test 2.5.199 → 2.5.201
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/dist/src/common/assets/icons/fill/BringForward.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/BringForward.js +30 -0
- package/dist/src/common/assets/icons/fill/BringToFront.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/BringToFront.js +30 -0
- package/dist/src/common/assets/icons/fill/CheckboxIndeterminate.js +1 -1
- package/dist/src/common/assets/icons/fill/CheckboxOn.js +1 -1
- package/dist/src/common/assets/icons/fill/CloudDownload.js +1 -1
- package/dist/src/common/assets/icons/fill/Cut.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Cut.js +30 -0
- package/dist/src/common/assets/icons/fill/Developer.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Developer.js +30 -0
- package/dist/src/common/assets/icons/fill/Downloaded.js +1 -1
- package/dist/src/common/assets/icons/fill/Group.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Group.js +30 -0
- package/dist/src/common/assets/icons/fill/MenuHome.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/MenuHome.js +30 -0
- package/dist/src/common/assets/icons/fill/MoveBackward.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/MoveBackward.js +30 -0
- package/dist/src/common/assets/icons/fill/MoveForward.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/MoveForward.js +30 -0
- package/dist/src/common/assets/icons/fill/Paste.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Paste.js +30 -0
- package/dist/src/common/assets/icons/fill/PostPost.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/PostPost.js +30 -0
- package/dist/src/common/assets/icons/fill/PostSeries.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/PostSeries.js +30 -0
- package/dist/src/common/assets/icons/fill/SendBackward.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/SendBackward.js +30 -0
- package/dist/src/common/assets/icons/fill/SendToBack.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/SendToBack.js +30 -0
- package/dist/src/common/assets/icons/fill/ToggleDown.js +1 -1
- package/dist/src/common/assets/icons/fill/ToggleUp.js +1 -1
- package/dist/src/common/assets/icons/fill/Ungroup.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Ungroup.js +30 -0
- package/dist/src/common/assets/icons/fill/VideoEpisode.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/VideoEpisode.js +30 -0
- package/dist/src/common/assets/icons/fill/VideoSeries.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/VideoSeries.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +16 -0
- package/dist/src/common/assets/icons/fill/index.js +33 -1
- package/dist/src/common/assets/icons/line/BookingCompleted.js +1 -1
- package/dist/src/common/assets/icons/line/BringForward.d.ts +4 -0
- package/dist/src/common/assets/icons/line/BringForward.js +30 -0
- package/dist/src/common/assets/icons/line/BringToFront.d.ts +4 -0
- package/dist/src/common/assets/icons/line/BringToFront.js +30 -0
- package/dist/src/common/assets/icons/line/Cut.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Cut.js +30 -0
- package/dist/src/common/assets/icons/line/Group.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Group.js +30 -0
- package/dist/src/common/assets/icons/line/Heart.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Heart.js +30 -0
- package/dist/src/common/assets/icons/line/MenuHome.d.ts +4 -0
- package/dist/src/common/assets/icons/line/MenuHome.js +30 -0
- package/dist/src/common/assets/icons/line/MoveBackward.d.ts +4 -0
- package/dist/src/common/assets/icons/line/MoveBackward.js +30 -0
- package/dist/src/common/assets/icons/line/MoveForward.d.ts +4 -0
- package/dist/src/common/assets/icons/line/MoveForward.js +30 -0
- package/dist/src/common/assets/icons/line/PageCollapse.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PageCollapse.js +30 -0
- package/dist/src/common/assets/icons/line/Paste.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Paste.js +30 -0
- package/dist/src/common/assets/icons/line/PostPost.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PostPost.js +30 -0
- package/dist/src/common/assets/icons/line/PostSeries.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PostSeries.js +31 -0
- package/dist/src/common/assets/icons/line/SendBackward.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SendBackward.js +30 -0
- package/dist/src/common/assets/icons/line/SendToBack.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SendToBack.js +30 -0
- package/dist/src/common/assets/icons/line/Ungroup.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Ungroup.js +30 -0
- package/dist/src/common/assets/icons/line/VideoEpisode.d.ts +4 -0
- package/dist/src/common/assets/icons/line/VideoEpisode.js +30 -0
- package/dist/src/common/assets/icons/line/VideoSeries.d.ts +4 -0
- package/dist/src/common/assets/icons/line/VideoSeries.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +17 -0
- package/dist/src/common/assets/icons/line/index.js +35 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +6 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +6 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +4 -2
- package/dist/src/common/styles/colorSet/UIColor.json +13 -2
- package/dist/src/common/styles/colorSet/index.d.ts +25 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +11 -0
- package/dist/src/common/types/components.d.ts +5 -0
- package/dist/src/common/types/form.d.ts +6 -0
- package/dist/src/common/types/form.js +8 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +3 -2
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +33 -4
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +7 -7
- package/dist/src/desktop/components/DesktopAlertDialog/DesktopAlertDialog.js +9 -10
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +14 -8
- package/dist/src/desktop/components/Dropdown/Dropdown.js +14 -6
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.d.ts +1 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.js +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.d.ts +1 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.js +2 -2
- package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.js +8 -6
- package/dist/src/desktop/components/Select/Select.d.ts +7 -2
- package/dist/src/desktop/components/Select/Select.js +90 -27
- package/dist/src/desktop/components/TextButton/TextButton.js +5 -5
- package/dist/src/desktop/components/TextField/TextField.d.ts +3 -28
- package/dist/src/desktop/components/TextField/TextField.js +5 -7
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +1 -0
- package/dist/src/desktop/components/TextLabel/TextLabel.js +6 -3
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSJ.js +2 -2
- package/dist/src/hybrid/components/Switch/Switch.d.ts +3 -1
- package/dist/src/hybrid/components/Switch/Switch.js +11 -5
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +3 -2
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +33 -4
- package/dist/src/mobile/components/BasicButtonGroup/BasicButtonGroup.js +6 -4
- package/dist/src/mobile/components/Dropdown/Dropdown.js +14 -6
- package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.js +8 -6
- package/dist/src/mobile/components/Select/Select.d.ts +7 -2
- package/dist/src/mobile/components/Select/Select.js +87 -20
- package/dist/src/mobile/components/TextField/TextField.d.ts +3 -28
- package/dist/src/mobile/components/TextField/TextField.js +5 -7
- package/dist/src/sub/AdminList/ToolBar/SearchField.js +2 -2
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +3 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/fill/CheckboxIndeterminate.js +1 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/fill/CheckboxOn.js +1 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/fill/CloudDownload.js +1 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/fill/Downloaded.js +1 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/BookingCompleted.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -10
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/IframeDenied.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/clsx.js +3 -2
- package/dist/src/sub/DynamicLayout/types.d.ts +1 -0
- package/package.json +7 -8
- package/release-note.md +2 -2
@@ -39,16 +39,40 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
39
39
|
};
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
41
41
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
42
|
+
var react_hook_form_1 = require("react-hook-form");
|
43
|
+
var types_1 = require("../../../common/types");
|
42
44
|
var styled_components_1 = __importStar(require("styled-components"));
|
43
45
|
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
44
46
|
var hybrid_1 = require("../../../hybrid");
|
45
|
-
var HINT = 'HINT_VALUE';
|
46
47
|
function Select(_a) {
|
47
|
-
var _b;
|
48
|
-
var hintText = _a.hintText, defaultValue = _a.defaultValue, value = _a.value, valueArray = _a.valueArray,
|
48
|
+
var _b, _c;
|
49
|
+
var name = _a.name, hintText = _a.hintText, defaultValue = _a.defaultValue, value = _a.value, valueArray = _a.valueArray, _d = _a.size, size = _d === void 0 ? 'large' : _d, _e = _a.responsiveMode, responsiveMode = _e === void 0 ? 'none' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, _g = _a.colorTheme, colorTheme = _g === void 0 ? 'none' : _g, customWidth = _a.customWidth, validation = _a.validation, onChange = _a.onChange;
|
50
|
+
// validation을 확장하여 힌트 체크 추가
|
51
|
+
var extendedValidation = __assign(__assign({}, validation), { validate: function (value) {
|
52
|
+
var _a;
|
53
|
+
// 값이 없으면 required.message 노출
|
54
|
+
if (!value || value.length === 0) {
|
55
|
+
if (validation === null || validation === void 0 ? void 0 : validation.required) {
|
56
|
+
return ((_a = validation === null || validation === void 0 ? void 0 : validation.required) === null || _a === void 0 ? void 0 : _a.message) || false;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
// 기존 validate 함수가 있다면 실행
|
60
|
+
if (validation === null || validation === void 0 ? void 0 : validation.validate) {
|
61
|
+
return validation.validate(value);
|
62
|
+
}
|
63
|
+
return true;
|
64
|
+
} });
|
65
|
+
var formContext = (0, react_hook_form_1.useFormContext)();
|
66
|
+
var register = name && formContext ? formContext.register(name, extendedValidation) : null;
|
67
|
+
var isError = name && formContext ? Boolean((0, types_1.getErrorByName)(formContext.formState.errors, name)) : false;
|
49
68
|
var handleChange = function (e) {
|
50
|
-
|
51
|
-
|
69
|
+
register === null || register === void 0 ? void 0 : register.onChange(e);
|
70
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
71
|
+
};
|
72
|
+
var handleBlur = function (e) {
|
73
|
+
if (register) {
|
74
|
+
register.onBlur(e);
|
75
|
+
formContext.trigger(name);
|
52
76
|
}
|
53
77
|
};
|
54
78
|
var getIconColorKey = function () {
|
@@ -56,28 +80,28 @@ function Select(_a) {
|
|
56
80
|
if (colorTheme === 'dark') {
|
57
81
|
return 'ui_cpnt_select_icon_darktheme_disabled';
|
58
82
|
}
|
59
|
-
|
60
|
-
return 'ui_cpnt_select_icon_02';
|
61
|
-
}
|
83
|
+
return 'ui_cpnt_select_icon_02';
|
62
84
|
}
|
63
85
|
if (colorTheme === 'dark') {
|
64
86
|
return 'ui_cpnt_select_icon_darktheme_default';
|
65
87
|
}
|
66
|
-
|
67
|
-
return 'ui_cpnt_select_icon_01';
|
68
|
-
}
|
88
|
+
return 'ui_cpnt_select_icon_01';
|
69
89
|
};
|
70
|
-
return ((0, jsx_runtime_1.jsxs)(S_Box, __assign({ "x-pds-name": "Select", "x-pds-element-type": "component", "x-pds-device-type": "desktop", "$size": size, responsiveMode: responsiveMode, tabIndex: 0, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsx)(S_Icon_Wrapper, __assign({ state: state }, { children: (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, fillType: "line", iconName: "ic_arrow_down", colorKey: getIconColorKey() }) })), (0, jsx_runtime_1.jsxs)(S_Select, __assign({ disabled: state === 'disabled' || state === 'read_only', state: state, "$size": size, colorTheme: colorTheme, onChange: handleChange, defaultValue: (_b = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _b !== void 0 ? _b :
|
90
|
+
return ((0, jsx_runtime_1.jsxs)(S_Box, __assign({ "x-pds-name": "Select", "x-pds-element-type": "component", "x-pds-device-type": "desktop", "$size": size, responsiveMode: responsiveMode, tabIndex: 0, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsxs)(S_SelectWrapper, { children: [(0, jsx_runtime_1.jsx)(S_Icon_Wrapper, __assign({ state: state }, { children: (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, fillType: "line", iconName: "ic_arrow_down", colorKey: getIconColorKey() }) })), (0, jsx_runtime_1.jsxs)(S_Select, __assign({}, register, { disabled: state === 'disabled' || state === 'read_only', state: state, isError: isError, "$size": size, colorTheme: colorTheme, onChange: handleChange, onBlur: handleBlur, defaultValue: (_b = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _b !== void 0 ? _b : '', value: value || undefined }, { children: [hintText && ((0, jsx_runtime_1.jsx)("option", __assign({ disabled: true, value: "" }, { children: hintText }))), valueArray.map(function (el) { return ((0, jsx_runtime_1.jsx)("option", __assign({ value: el.value }, { children: el.text }), el.value)); })] }))] }), name &&
|
91
|
+
((_c = (0, types_1.getErrorByName)(formContext.formState.errors, name)) === null || _c === void 0 ? void 0 : _c.message) &&
|
92
|
+
state === 'normal' && ((0, jsx_runtime_1.jsx)(S_Error, __assign({ colorTheme: colorTheme }, { children: (0, types_1.getErrorByName)(formContext.formState.errors, name).message })))] })));
|
71
93
|
}
|
72
94
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n width: 432px;\n"], ["\n height: 48px;\n width: 432px;\n"])));
|
73
95
|
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n width: 188px;\n"], ["\n height: 40px;\n width: 188px;\n"])));
|
74
96
|
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n width: 188px;\n"], ["\n height: 32px;\n width: 188px;\n"])));
|
75
97
|
var rlarge = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 48px;\n width: 100%;\n"], ["\n height: 48px;\n width: 100%;\n"])));
|
76
|
-
var dark = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n border: 2px solid
|
98
|
+
var dark = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n border: 2px solid\n ", ";\n color: ", ";\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n }\n\n :focus {\n border: 2px solid\n ", " !important;\n color: ", ";\n }\n"], ["\n background-color: ", ";\n border: 2px solid\n ", ";\n color: ", ";\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n }\n\n :focus {\n border: 2px solid\n ", " !important;\n color: ", ";\n }\n"])), function (_a) {
|
77
99
|
var theme = _a.theme;
|
78
100
|
return theme.ui_cpnt_select_base_darktheme_normal;
|
79
101
|
}, function (_a) {
|
80
|
-
var theme = _a.theme;
|
102
|
+
var theme = _a.theme, isError = _a.isError;
|
103
|
+
if (isError)
|
104
|
+
return theme.ui_cpnt_select_dropdown_border_darktheme_error;
|
81
105
|
return theme.ui_cpnt_select_border_darktheme_normal;
|
82
106
|
}, function (_a) {
|
83
107
|
var theme = _a.theme;
|
@@ -94,7 +118,9 @@ var dark = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 =
|
|
94
118
|
? theme.ui_cpnt_select_text_darktheme_readonly
|
95
119
|
: theme.ui_cpnt_select_text_darktheme_disabled;
|
96
120
|
}, function (_a) {
|
97
|
-
var theme = _a.theme;
|
121
|
+
var theme = _a.theme, isError = _a.isError;
|
122
|
+
if (isError)
|
123
|
+
return theme.ui_cpnt_select_dropdown_border_darktheme_error;
|
98
124
|
return theme.ui_cpnt_select_border_darktheme_focus;
|
99
125
|
}, function (_a) {
|
100
126
|
var theme = _a.theme;
|
@@ -104,10 +130,10 @@ var S_Box = styled_components_1.default.div(templateObject_6 || (templateObject_
|
|
104
130
|
var $size = _a.$size;
|
105
131
|
return $size &&
|
106
132
|
{
|
107
|
-
|
108
|
-
medium:
|
109
|
-
|
110
|
-
rlarge:
|
133
|
+
small: 'width: 188px;',
|
134
|
+
medium: 'width: 188px;',
|
135
|
+
large: 'width: 432px;',
|
136
|
+
rlarge: 'width: 100%'
|
111
137
|
}[$size];
|
112
138
|
}, function (_a) {
|
113
139
|
var responsiveMode = _a.responsiveMode;
|
@@ -116,11 +142,12 @@ var S_Box = styled_components_1.default.div(templateObject_6 || (templateObject_
|
|
116
142
|
var customWidth = _a.customWidth;
|
117
143
|
return customWidth && "width: ".concat(customWidth, ";");
|
118
144
|
});
|
119
|
-
var
|
145
|
+
var S_SelectWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
|
146
|
+
var S_Icon_Wrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 16px;\n pointer-events: none;\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n"], ["\n align-items: center;\n display: flex;\n height: 16px;\n pointer-events: none;\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n"])), function (_a) {
|
120
147
|
var theme = _a.theme;
|
121
148
|
return theme.spacing.spacingD;
|
122
149
|
});
|
123
|
-
var backgroundHoverColor = (0, styled_components_1.css)(
|
150
|
+
var backgroundHoverColor = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
124
151
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
125
152
|
switch (colorTheme) {
|
126
153
|
case 'none':
|
@@ -131,7 +158,7 @@ var backgroundHoverColor = (0, styled_components_1.css)(templateObject_8 || (tem
|
|
131
158
|
return theme.ui_cpnt_textfield_base_hover;
|
132
159
|
}
|
133
160
|
});
|
134
|
-
var backgroundActiveColor = (0, styled_components_1.css)(
|
161
|
+
var backgroundActiveColor = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
135
162
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
136
163
|
switch (colorTheme) {
|
137
164
|
case 'none':
|
@@ -142,12 +169,23 @@ var backgroundActiveColor = (0, styled_components_1.css)(templateObject_9 || (te
|
|
142
169
|
return theme.ui_cpnt_textfield_base_pressed;
|
143
170
|
}
|
144
171
|
});
|
145
|
-
var normalActionColor = (0, styled_components_1.css)(
|
146
|
-
var S_Select = styled_components_1.default.select(
|
172
|
+
var normalActionColor = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"], ["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), backgroundHoverColor, backgroundActiveColor);
|
173
|
+
var S_Select = styled_components_1.default.select(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n appearance: none;\n background-color: ", ";\n ", ";\n border: 2px solid\n ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n cursor: pointer;\n display: -webkit-box;\n font-family: inherit;\n font-size: ", ";\n overflow: hidden;\n padding-left: ", ";\n padding-right: ", ";\n text-overflow: ellipsis;\n width: 100%;\n word-break: break-all;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n cursor: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid\n ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n\n ", "\n\n ", "\n"], ["\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n appearance: none;\n background-color: ", ";\n ", ";\n border: 2px solid\n ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n cursor: pointer;\n display: -webkit-box;\n font-family: inherit;\n font-size: ", ";\n overflow: hidden;\n padding-left: ", ";\n padding-right: ", ";\n text-overflow: ellipsis;\n width: 100%;\n word-break: break-all;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n cursor: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid\n ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
|
147
174
|
var theme = _a.theme;
|
148
175
|
return theme.ui_cpnt_select_base_normal;
|
149
176
|
}, function (_a) {
|
150
|
-
var
|
177
|
+
var $size = _a.$size;
|
178
|
+
return $size &&
|
179
|
+
{
|
180
|
+
large: large,
|
181
|
+
medium: medium,
|
182
|
+
small: small,
|
183
|
+
rlarge: rlarge
|
184
|
+
}[$size];
|
185
|
+
}, function (_a) {
|
186
|
+
var theme = _a.theme, isError = _a.isError;
|
187
|
+
if (isError)
|
188
|
+
return theme.ui_cpnt_select_dropdown_border_error;
|
151
189
|
return theme.ui_cpnt_select_border_normal;
|
152
190
|
}, function (_a) {
|
153
191
|
var $size = _a.$size;
|
@@ -192,7 +230,9 @@ var S_Select = styled_components_1.default.select(templateObject_11 || (template
|
|
192
230
|
return 'pointer';
|
193
231
|
}
|
194
232
|
}, function (_a) {
|
195
|
-
var theme = _a.theme;
|
233
|
+
var theme = _a.theme, isError = _a.isError;
|
234
|
+
if (isError)
|
235
|
+
return theme.ui_cpnt_select_dropdown_border_error;
|
196
236
|
return theme.ui_cpnt_select_border_focus;
|
197
237
|
}, function (_a) {
|
198
238
|
var theme = _a.theme;
|
@@ -204,5 +244,28 @@ var S_Select = styled_components_1.default.select(templateObject_11 || (template
|
|
204
244
|
var state = _a.state;
|
205
245
|
return state === 'normal' && normalActionColor;
|
206
246
|
});
|
247
|
+
var S_Error = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"])), function (_a) {
|
248
|
+
var theme = _a.theme, colorTheme = _a.colorTheme;
|
249
|
+
switch (colorTheme) {
|
250
|
+
case 'none': {
|
251
|
+
return theme.ui_cpnt_select_dropdown_text_error;
|
252
|
+
}
|
253
|
+
case 'dark': {
|
254
|
+
return theme.ui_cpnt_select_dropdown_text_darktheme_error;
|
255
|
+
}
|
256
|
+
}
|
257
|
+
}, function (_a) {
|
258
|
+
var theme = _a.theme;
|
259
|
+
return theme.desktopFontSize.caption2;
|
260
|
+
}, function (_a) {
|
261
|
+
var theme = _a.theme;
|
262
|
+
return theme.fontWeight.normal;
|
263
|
+
}, function (_a) {
|
264
|
+
var theme = _a.theme;
|
265
|
+
return theme.desktopLineHeight.caption2;
|
266
|
+
}, function (_a) {
|
267
|
+
var theme = _a.theme;
|
268
|
+
return theme.spacing.spacingA;
|
269
|
+
});
|
207
270
|
exports.default = Select;
|
208
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
271
|
+
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;
|
@@ -90,35 +90,35 @@ function TextButton(_a) {
|
|
90
90
|
};
|
91
91
|
return ((0, jsx_runtime_1.jsx)(S_Button, __assign({ ref: buttonRef, "x-pds-name": "TextButton", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, onKeyDown: onKeyDown, type: type, fontWeight: fontWeight, disabled: state === 'disabled', state: state, colorTheme: colorTheme }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor[colorTheme], singleLineMode: "use", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }) })));
|
92
92
|
}
|
93
|
-
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n border-radius: 14px;\n height: 48px;\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
93
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n border-radius: 14px;\n height: 48px;\n\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
94
94
|
var size = _a.size;
|
95
95
|
return size === 'rlarge' && 'width: 100%';
|
96
96
|
});
|
97
97
|
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 14px;\n height: 40px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n border-radius: 14px;\n height: 40px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])));
|
98
98
|
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n border-radius: 10px;\n height: 32px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])));
|
99
99
|
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"], ["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"])));
|
100
|
-
var colorThemeDefault = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
100
|
+
var colorThemeDefault = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n &:hover:enabled {\n background-color: ", ";\n }\n\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:hover:enabled {\n background-color: ", ";\n }\n\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
101
101
|
var theme = _a.theme;
|
102
102
|
return theme.ui_cpnt_button_line_base_hover;
|
103
103
|
}, function (_a) {
|
104
104
|
var theme = _a.theme;
|
105
105
|
return theme.ui_cpnt_button_line_base_pressed;
|
106
106
|
});
|
107
|
-
var colorThemeWhite = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
107
|
+
var colorThemeWhite = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n &:hover:enabled {\n background-color: ", ";\n }\n\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:hover:enabled {\n background-color: ", ";\n }\n\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
108
108
|
var theme = _a.theme;
|
109
109
|
return theme.ui_cpnt_button_white_base_hover;
|
110
110
|
}, function (_a) {
|
111
111
|
var theme = _a.theme;
|
112
112
|
return theme.ui_cpnt_button_white_base_pressed;
|
113
113
|
});
|
114
|
-
var colorThemeWhite2 = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
114
|
+
var colorThemeWhite2 = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n &:hover:enabled {\n background-color: ", ";\n }\n\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:hover:enabled {\n background-color: ", ";\n }\n\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
115
115
|
var theme = _a.theme;
|
116
116
|
return theme.ui_cpnt_textbutton_white_variation_base_hover;
|
117
117
|
}, function (_a) {
|
118
118
|
var theme = _a.theme;
|
119
119
|
return theme.ui_cpnt_textbutton_white_variation_base_pressed;
|
120
120
|
});
|
121
|
-
var S_Button = styled_components_1.default.button(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n ", "\n\n ", ";\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n ", "\n\n ", ";\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"])), function (_a) {
|
121
|
+
var S_Button = styled_components_1.default.button(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n ", "\n\n ", ";\n\n ", ";\n\n & > div {\n ", ";\n }\n\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n ", "\n\n ", ";\n\n ", ";\n\n & > div {\n ", ";\n }\n\n ", ";\n"])), function (_a) {
|
122
122
|
var state = _a.state;
|
123
123
|
return (state === 'normal' ? 'pointer' : 'default');
|
124
124
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
@@ -1,51 +1,26 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Path } from 'react-hook-form';
|
3
3
|
import type { IFormValues, PDSTextType, UiColors, PDSIconType } from '../../../common';
|
4
|
+
import type { TextFieldBaseProps } from '../../common/components/TextFieldBase/TextFieldBase';
|
4
5
|
export type TextFieldProps = {
|
5
6
|
name: Path<IFormValues>;
|
6
|
-
hintText?: PDSTextType;
|
7
|
-
defaultText?: PDSTextType;
|
8
|
-
textAlign?: 'left' | 'center' | 'right';
|
9
7
|
prefixText?: PDSTextType;
|
10
|
-
suffixText?: PDSTextType;
|
11
|
-
validation?: {
|
12
|
-
[key: string]: any;
|
13
|
-
};
|
14
8
|
validationPoint?: 'onChange' | 'onBlur';
|
15
|
-
preventBlankMode?: 'none' | 'trim' | 'all';
|
16
|
-
enterSubmitMode?: 'none' | 'use';
|
17
9
|
size?: 'small' | 'medium' | 'large' | 'rlarge';
|
18
10
|
responsiveMode?: 'none' | 'use';
|
19
|
-
textLineType?: 'single' | 'multi' | 'auto';
|
20
|
-
multiRows?: number;
|
21
|
-
autoMinRows?: number;
|
22
|
-
autoMaxRows?: number;
|
23
|
-
inputType?: string;
|
24
|
-
state?: 'normal' | 'read_only' | 'disabled';
|
25
11
|
iBtn1IconName?: PDSIconType;
|
26
12
|
iBtn2IconName?: PDSIconType;
|
27
13
|
iBtn1IconFillType?: 'line' | 'fill';
|
28
14
|
iBtn2IconFillType?: 'line' | 'fill';
|
29
15
|
overrideIBtn1IconColorKey?: UiColors;
|
30
16
|
overrideIBtn2IconColorKey?: UiColors;
|
31
|
-
colorTheme?: 'none' | 'dark' | 'transparent';
|
32
|
-
max?: number;
|
33
|
-
maxLength?: number;
|
34
|
-
min?: number;
|
35
17
|
customWidth?: string;
|
36
|
-
autoComplete?: string;
|
37
18
|
numberStepperMode?: 'none' | 'use';
|
38
19
|
numberStep?: number;
|
39
20
|
fontWeight?: 'bold' | 'regular';
|
40
21
|
deleteBtnMode?: 'none' | 'use';
|
41
|
-
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
42
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
43
22
|
onClickIBtn1?: () => void;
|
44
23
|
onClickIBtn2?: () => void;
|
45
|
-
|
46
|
-
|
47
|
-
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
48
|
-
onTarget?: () => void;
|
49
|
-
};
|
50
|
-
declare function TextField({ name, hintText, defaultText, textAlign, prefixText, suffixText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, overrideIBtn1IconColorKey, overrideIBtn2IconColorKey, colorTheme, max, maxLength, min, customWidth, autoComplete, numberStepperMode, numberStep, fontWeight, deleteBtnMode, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
|
24
|
+
} & Partial<TextFieldBaseProps>;
|
25
|
+
declare function TextField({ name, hintText, defaultText, textAlign, prefixText, suffixText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, inputMode, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, overrideIBtn1IconColorKey, overrideIBtn2IconColorKey, colorTheme, max, maxLength, min, customWidth, autoComplete, numberStepperMode, numberStep, fontWeight, deleteBtnMode, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
|
51
26
|
export default TextField;
|
@@ -42,6 +42,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
42
|
/* eslint-disable react/jsx-no-bind */
|
43
43
|
var react_1 = require("react");
|
44
44
|
var react_hook_form_1 = require("react-hook-form");
|
45
|
+
var types_1 = require("../../../common/types");
|
45
46
|
var styled_components_1 = __importStar(require("styled-components"));
|
46
47
|
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
47
48
|
var hybrid_1 = require("../../../hybrid");
|
@@ -50,7 +51,7 @@ var IconButton_1 = require("../IconButton");
|
|
50
51
|
var TextLabel_1 = require("../TextLabel");
|
51
52
|
function TextField(_a) {
|
52
53
|
var _b;
|
53
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _c = _a.textAlign, textAlign = _c === void 0 ? 'left' : _c, prefixText = _a.prefixText, suffixText = _a.suffixText, validation = _a.validation, _d = _a.validationPoint, validationPoint = _d === void 0 ? 'onBlur' : _d, _e = _a.preventBlankMode, preventBlankMode = _e === void 0 ? 'none' : _e, _f = _a.enterSubmitMode, enterSubmitMode = _f === void 0 ? 'none' : _f, _g = _a.size, size = _g === void 0 ? 'large' : _g, _h = _a.responsiveMode, responsiveMode = _h === void 0 ? 'none' : _h, _j = _a.textLineType, textLineType = _j === void 0 ? 'single' : _j, _k = _a.multiRows, multiRows = _k === void 0 ? 8 : _k, _l = _a.autoMinRows, autoMinRows = _l === void 0 ? 8 : _l, autoMaxRows = _a.autoMaxRows, _m = _a.inputType, inputType = _m === void 0 ? 'text' : _m, _o = _a.state, state = _o === void 0 ? 'normal' : _o, iBtn1IconName = _a.iBtn1IconName, _p = _a.iBtn1IconFillType, iBtn1IconFillType = _p === void 0 ? 'line' : _p, iBtn2IconName = _a.iBtn2IconName, _q = _a.iBtn2IconFillType, iBtn2IconFillType = _q === void 0 ? 'line' : _q, overrideIBtn1IconColorKey = _a.overrideIBtn1IconColorKey, overrideIBtn2IconColorKey = _a.overrideIBtn2IconColorKey, _r = _a.colorTheme, colorTheme = _r === void 0 ? 'none' : _r, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _s = _a.autoComplete, autoComplete = _s === void 0 ? 'on' : _s, _t = _a.numberStepperMode, numberStepperMode = _t === void 0 ? 'none' : _t, numberStep = _a.numberStep, _u = _a.fontWeight, fontWeight = _u === void 0 ? 'regular' : _u, _v = _a.deleteBtnMode, deleteBtnMode = _v === void 0 ? 'use' : _v, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, onTarget = _a.onTarget;
|
54
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _c = _a.textAlign, textAlign = _c === void 0 ? 'left' : _c, prefixText = _a.prefixText, suffixText = _a.suffixText, validation = _a.validation, _d = _a.validationPoint, validationPoint = _d === void 0 ? 'onBlur' : _d, _e = _a.preventBlankMode, preventBlankMode = _e === void 0 ? 'none' : _e, _f = _a.enterSubmitMode, enterSubmitMode = _f === void 0 ? 'none' : _f, _g = _a.size, size = _g === void 0 ? 'large' : _g, _h = _a.responsiveMode, responsiveMode = _h === void 0 ? 'none' : _h, _j = _a.textLineType, textLineType = _j === void 0 ? 'single' : _j, _k = _a.multiRows, multiRows = _k === void 0 ? 8 : _k, _l = _a.autoMinRows, autoMinRows = _l === void 0 ? 8 : _l, autoMaxRows = _a.autoMaxRows, _m = _a.inputType, inputType = _m === void 0 ? 'text' : _m, inputMode = _a.inputMode, _o = _a.state, state = _o === void 0 ? 'normal' : _o, iBtn1IconName = _a.iBtn1IconName, _p = _a.iBtn1IconFillType, iBtn1IconFillType = _p === void 0 ? 'line' : _p, iBtn2IconName = _a.iBtn2IconName, _q = _a.iBtn2IconFillType, iBtn2IconFillType = _q === void 0 ? 'line' : _q, overrideIBtn1IconColorKey = _a.overrideIBtn1IconColorKey, overrideIBtn2IconColorKey = _a.overrideIBtn2IconColorKey, _r = _a.colorTheme, colorTheme = _r === void 0 ? 'none' : _r, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _s = _a.autoComplete, autoComplete = _s === void 0 ? 'on' : _s, _t = _a.numberStepperMode, numberStepperMode = _t === void 0 ? 'none' : _t, numberStep = _a.numberStep, _u = _a.fontWeight, fontWeight = _u === void 0 ? 'regular' : _u, _v = _a.deleteBtnMode, deleteBtnMode = _v === void 0 ? 'use' : _v, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, onTarget = _a.onTarget;
|
54
55
|
var basicThemeIconColors = {
|
55
56
|
normal: 'ui_cpnt_button_icon_default',
|
56
57
|
read_only: 'ui_cpnt_button_icon_default',
|
@@ -69,10 +70,7 @@ function TextField(_a) {
|
|
69
70
|
var _w = (0, react_1.useState)(false), isFocused = _w[0], setIsFocused = _w[1];
|
70
71
|
var _x = (0, react_hook_form_1.useFormContext)(), register = _x.register, trigger = _x.trigger, errors = _x.formState.errors;
|
71
72
|
var _y = register(name, validation), validateOnChange = _y.onChange, validateOnBlur = _y.onBlur;
|
72
|
-
var
|
73
|
-
return name.split('.').reduce(function (errors, property) { return errors && errors[property]; }, errors);
|
74
|
-
};
|
75
|
-
var isError = getErrorByName(errors, name);
|
73
|
+
var isError = (0, types_1.getErrorByName)(errors, name);
|
76
74
|
var handleClickIBtn1 = function () {
|
77
75
|
if (onClickIBtn1) {
|
78
76
|
onClickIBtn1();
|
@@ -143,7 +141,7 @@ function TextField(_a) {
|
|
143
141
|
break;
|
144
142
|
}
|
145
143
|
}
|
146
|
-
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" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" })] })), (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 }), (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: overrideIBtn2IconColorKey ||
|
144
|
+
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" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" })] })), (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, inputMode: inputMode, 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 }), (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: overrideIBtn2IconColorKey ||
|
147
145
|
(colorTheme &&
|
148
146
|
{
|
149
147
|
none: basicThemeIconColors[state],
|
@@ -158,7 +156,7 @@ function TextField(_a) {
|
|
158
156
|
}[colorTheme]), iconFillType: iBtn1IconFillType === 'fill' ? 'fill' : 'line', state: state === 'disabled' ? 'disabled' : 'normal', onClick: handleClickIBtn1 }))] })] }));
|
159
157
|
}
|
160
158
|
};
|
161
|
-
return ((0, jsx_runtime_1.jsxs)(S_TextFieldBox, __assign({ "x-pds-name": "TextField", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, responsiveMode: responsiveMode, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsx)(S_TextFieldWrapper, __assign({ size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: Boolean(isError), state: state, colorTheme: colorTheme, customWidth: customWidth }, { children: S_TextField() })), ((_b = errors
|
159
|
+
return ((0, jsx_runtime_1.jsxs)(S_TextFieldBox, __assign({ "x-pds-name": "TextField", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, responsiveMode: responsiveMode, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsx)(S_TextFieldWrapper, __assign({ size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: Boolean(isError), state: state, colorTheme: colorTheme, customWidth: customWidth }, { children: S_TextField() })), ((_b = (0, types_1.getErrorByName)(errors, name)) === null || _b === void 0 ? void 0 : _b.message) && state === 'normal' && ((0, jsx_runtime_1.jsx)(S_Error, __assign({ colorTheme: colorTheme }, { children: (0, types_1.getErrorByName)(errors, name).message })))] })));
|
162
160
|
}
|
163
161
|
var S_TextFieldBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n ", ";\n ", "\n"], ["\n ", ";\n ", ";\n ", "\n"])), function (_a) {
|
164
162
|
var size = _a.size;
|
@@ -26,6 +26,7 @@ export type TextLabelProps = {
|
|
26
26
|
export type TextStyleProps = {
|
27
27
|
textAlign?: TextLabelProps['textAlign'];
|
28
28
|
tooltipPosition?: TextLabelProps['tooltipPosition'];
|
29
|
+
tooltipText?: TextLabelProps['tooltipText'];
|
29
30
|
styleTheme?: TextLabelProps['styleTheme'];
|
30
31
|
colorOverride?: UiColors;
|
31
32
|
colorTheme?: TextLabelProps['colorTheme'];
|
@@ -361,7 +361,7 @@ var ellipsisStyle = (0, styled_components_1.css)(templateObject_35 || (templateO
|
|
361
361
|
});
|
362
362
|
var userSelectModeStyle = (0, styled_components_1.css)(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n -khtml-user-select: none;\n -moz-user-select: -moz-none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"], ["\n -khtml-user-select: none;\n -moz-user-select: -moz-none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"])));
|
363
363
|
var bulletPointModeStyle = (0, styled_components_1.css)(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n padding-left: 16px;\n ::before {\n content: '\u2022';\n left: 0;\n position: absolute;\n width: 16px;\n }\n"], ["\n padding-left: 16px;\n ::before {\n content: '\u2022';\n left: 0;\n position: absolute;\n width: 16px;\n }\n"])));
|
364
|
-
var S_TextLabel = styled_components_1.default.div(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n box-sizing: border-box;\n overflow-wrap: break-word;\n text-align: ", ";\n white-space: pre-wrap;\n\n ", ";\n\n ", ";\n\n ", ";\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n overflow-wrap: break-word;\n text-align: ", ";\n white-space: pre-wrap;\n\n ", ";\n\n ", ";\n\n ", ";\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
364
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n box-sizing: border-box;\n overflow-wrap: break-word;\n position: relative;\n text-align: ", ";\n white-space: pre-wrap;\n\n ", ";\n\n ", ";\n\n ", ";\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n overflow-wrap: break-word;\n position: relative;\n text-align: ", ";\n white-space: pre-wrap;\n\n ", ";\n\n ", ";\n\n ", ";\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
365
365
|
var textAlign = _a.textAlign;
|
366
366
|
return textAlign;
|
367
367
|
}, function (_a) {
|
@@ -463,9 +463,12 @@ var caption2AfterTextBox = (0, styled_components_1.css)(templateObject_47 || (te
|
|
463
463
|
var form1AfterTextBox = (0, styled_components_1.css)(templateObject_48 || (templateObject_48 = __makeTemplateObject(["\n margin-bottom: 3px;\n"], ["\n margin-bottom: 3px;\n"])));
|
464
464
|
var form2AfterTextBox = (0, styled_components_1.css)(templateObject_49 || (templateObject_49 = __makeTemplateObject(["\n margin-bottom: 2px;\n"], ["\n margin-bottom: 2px;\n"])));
|
465
465
|
var blog1RAfterTextBox = (0, styled_components_1.css)(templateObject_50 || (templateObject_50 = __makeTemplateObject(["\n margin-bottom: 3px;\n"], ["\n margin-bottom: 3px;\n"])));
|
466
|
-
var S_AfterTextBox = styled_components_1.default.div(templateObject_51 || (templateObject_51 = __makeTemplateObject(["\n display: inline-block;\n margin-left: ", ";\n position: relative;\n vertical-align: middle;\n\n ", ";\n"], ["\n display: inline-block;\n margin-left: ", ";\n position: relative;\n vertical-align: middle;\n\n ", ";\n"])), function (_a) {
|
466
|
+
var S_AfterTextBox = styled_components_1.default.div(templateObject_51 || (templateObject_51 = __makeTemplateObject(["\n display: inline-block;\n margin-left: ", ";\n margin-right: ", ";\n position: relative;\n vertical-align: middle;\n\n ", ";\n"], ["\n display: inline-block;\n margin-left: ", ";\n margin-right: ", ";\n position: relative;\n vertical-align: middle;\n\n ", ";\n"])), function (_a) {
|
467
467
|
var theme = _a.theme;
|
468
468
|
return theme.spacing.spacingA;
|
469
|
+
}, function (_a) {
|
470
|
+
var tooltipText = _a.tooltipText;
|
471
|
+
return (tooltipText ? '0' : '12px');
|
469
472
|
}, function (_a) {
|
470
473
|
var styleTheme = _a.styleTheme;
|
471
474
|
return styleTheme &&
|
@@ -492,7 +495,7 @@ var S_AfterTextBox = styled_components_1.default.div(templateObject_51 || (templ
|
|
492
495
|
blog1Regular: blog1RAfterTextBox
|
493
496
|
}[styleTheme];
|
494
497
|
});
|
495
|
-
var S_IconWrapper = styled_components_1.default.div(templateObject_52 || (templateObject_52 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n
|
498
|
+
var S_IconWrapper = styled_components_1.default.div(templateObject_52 || (templateObject_52 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n left: 0;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n left: 0;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n"])));
|
496
499
|
var S_TooltipWrapper = styled_components_1.default.div(templateObject_53 || (templateObject_53 = __makeTemplateObject(["\n ", "\n\n ", ";\n"], ["\n ", "\n\n ", ";\n"])), systemUI_1.TooltipWrapperStyle, function (_a) {
|
497
500
|
var tooltipPositionCss = _a.tooltipPositionCss;
|
498
501
|
return tooltipPositionCss;
|
@@ -50,14 +50,14 @@ var overrideStyleContainer1 = (0, styled_components_1.css)(templateObject_1 || (
|
|
50
50
|
var theme = _a.theme, overrideContainer1ColorKey = _a.overrideContainer1ColorKey;
|
51
51
|
return overrideContainer1ColorKey && theme[overrideContainer1ColorKey];
|
52
52
|
});
|
53
|
-
var S_ContentsContainer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n box-sizing: border-box;\n height: 100%;\n min-width: 960px;\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n\n ", "\n ", "\n"], ["\n background-color: ", ";\n box-sizing: border-box;\n height: 100%;\n min-width: 960px;\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n\n ", "\n ", "\n"])), function (_a) {
|
53
|
+
var S_ContentsContainer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n box-sizing: border-box;\n height: 100%;\n min-width: 960px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ", ";\n\n ", "\n\n ", "\n"], ["\n background-color: ", ";\n box-sizing: border-box;\n height: 100%;\n min-width: 960px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_a) {
|
54
54
|
var theme = _a.theme;
|
55
55
|
return theme.ui_contentscontainer01_background;
|
56
56
|
}, function (_a) {
|
57
57
|
var containerColor = _a.containerColor;
|
58
58
|
return "background-color: ".concat(containerColor);
|
59
59
|
}, scrollbarStyle_1.scrollbarStyle, overrideStyleContainer1);
|
60
|
-
var S_ContentsArea = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n box-sizing: border-box;\n min-width: 912px;\n padding-bottom: 88px;\n ", ";\n"], ["\n box-sizing: border-box;\n min-width: 912px;\n padding-bottom: 88px;\n ", ";\n"])), function (_a) {
|
60
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n box-sizing: border-box;\n min-width: 912px;\n padding-bottom: 88px;\n\n ", ";\n"], ["\n box-sizing: border-box;\n min-width: 912px;\n padding-bottom: 88px;\n\n ", ";\n"])), function (_a) {
|
61
61
|
var areaColor = _a.areaColor;
|
62
62
|
return "background-color: ".concat(areaColor);
|
63
63
|
});
|
@@ -1,9 +1,11 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import type { UiColors } from '../../../common/types';
|
2
3
|
type SwitchProps = {
|
3
4
|
name: string;
|
4
5
|
status?: 'off' | 'on';
|
5
6
|
state?: 'normal' | 'disabled';
|
7
|
+
backgroundColorTheme?: UiColors;
|
6
8
|
onClick?: (status: boolean) => void;
|
7
9
|
};
|
8
|
-
declare function Switch({ name, status, state, onClick }: SwitchProps): JSX.Element;
|
10
|
+
declare function Switch({ name, status, state, backgroundColorTheme, onClick }: SwitchProps): JSX.Element;
|
9
11
|
export default Switch;
|
@@ -21,16 +21,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
22
22
|
var styled_components_1 = __importDefault(require("styled-components"));
|
23
23
|
function Switch(_a) {
|
24
|
-
var name = _a.name, _b = _a.status, status = _b === void 0 ? 'off' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, onClick = _a.onClick;
|
24
|
+
var name = _a.name, _b = _a.status, status = _b === void 0 ? 'off' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, backgroundColorTheme = _a.backgroundColorTheme, onClick = _a.onClick;
|
25
25
|
var handleChange = function (e) {
|
26
26
|
onClick && onClick(e.target.checked);
|
27
27
|
};
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(S_Switch, __assign({ "x-pds-name": "Switch", "x-pds-element-type": "component", "x-pds-device-type": "hybrid" }, { children: [(0, jsx_runtime_1.jsx)(S_Input, { type: "checkbox", hidden: true, id: name, checked: status === 'on', disabled: state === 'disabled', onChange: handleChange }), (0, jsx_runtime_1.jsx)(S_Label, { htmlFor: name, disabled: state === 'disabled' })] })));
|
28
|
+
return ((0, jsx_runtime_1.jsxs)(S_Switch, __assign({ "x-pds-name": "Switch", "x-pds-element-type": "component", "x-pds-device-type": "hybrid" }, { children: [(0, jsx_runtime_1.jsx)(S_Input, { type: "checkbox", hidden: true, id: name, checked: status === 'on', disabled: state === 'disabled', onChange: handleChange, backgroundColorTheme: backgroundColorTheme }), (0, jsx_runtime_1.jsx)(S_Label, { htmlFor: name, disabled: state === 'disabled', backgroundColorTheme: backgroundColorTheme })] })));
|
29
29
|
}
|
30
30
|
var S_Switch = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 32px;\n position: relative;\n width: 56px;\n"], ["\n height: 32px;\n position: relative;\n width: 56px;\n"])));
|
31
31
|
var S_Label = styled_components_1.default.label(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: ", ";\n border-radius: 24px;\n cursor: ", ";\n height: 32px;\n left: 0;\n position: absolute;\n top: 0;\n width: 56px;\n\n &::after {\n background: ", ";\n border-radius: 24px;\n content: '';\n display: block;\n height: 24px;\n margin: ", ";\n width: 24px;\n }\n"], ["\n background: ", ";\n border-radius: 24px;\n cursor: ", ";\n height: 32px;\n left: 0;\n position: absolute;\n top: 0;\n width: 56px;\n\n &::after {\n background: ", ";\n border-radius: 24px;\n content: '';\n display: block;\n height: 24px;\n margin: ", ";\n width: 24px;\n }\n"])), function (_a) {
|
32
32
|
var theme = _a.theme, disabled = _a.disabled;
|
33
|
-
|
33
|
+
if (disabled)
|
34
|
+
return theme.ui_cpnt_selcontrols_base_off_disabled;
|
35
|
+
return theme.ui_cpnt_selcontrols_base_off;
|
34
36
|
}, function (_a) {
|
35
37
|
var disabled = _a.disabled;
|
36
38
|
return (disabled ? 'default' : 'pointer');
|
@@ -42,8 +44,12 @@ var S_Label = styled_components_1.default.label(templateObject_2 || (templateObj
|
|
42
44
|
return theme.spacing.spacingA;
|
43
45
|
});
|
44
46
|
var S_Input = styled_components_1.default.input(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &:checked + ", " {\n background: ", ";\n\n &::after {\n margin-bottom: ", ";\n margin-right: ", ";\n margin-top: ", ";\n position: absolute;\n right: 0px;\n }\n }\n"], ["\n &:checked + ", " {\n background: ", ";\n\n &::after {\n margin-bottom: ", ";\n margin-right: ", ";\n margin-top: ", ";\n position: absolute;\n right: 0px;\n }\n }\n"])), S_Label, function (_a) {
|
45
|
-
var theme = _a.theme, disabled = _a.disabled;
|
46
|
-
|
47
|
+
var theme = _a.theme, disabled = _a.disabled, backgroundColorTheme = _a.backgroundColorTheme;
|
48
|
+
if (disabled)
|
49
|
+
return theme.ui_cpnt_selcontrols_base_on_disabled;
|
50
|
+
if (backgroundColorTheme)
|
51
|
+
return theme[backgroundColorTheme];
|
52
|
+
return theme.ui_cpnt_selcontrols_base_on;
|
47
53
|
}, function (_a) {
|
48
54
|
var theme = _a.theme;
|
49
55
|
return theme.spacing.spacingA;
|
@@ -11,11 +11,12 @@ export type TextFieldBaseProps = {
|
|
11
11
|
};
|
12
12
|
preventBlankMode?: 'none' | 'trim' | 'all';
|
13
13
|
enterSubmitMode?: 'none' | 'use';
|
14
|
-
textLineType
|
14
|
+
textLineType?: 'single' | 'multi' | 'auto';
|
15
15
|
multiRows?: number;
|
16
16
|
autoMinRows?: number;
|
17
17
|
autoMaxRows?: number;
|
18
18
|
inputType?: string;
|
19
|
+
inputMode?: string;
|
19
20
|
state?: 'normal' | 'read_only' | 'disabled';
|
20
21
|
colorTheme?: 'none' | 'dark' | 'transparent';
|
21
22
|
min?: number;
|
@@ -45,5 +46,5 @@ export type TextFieldBaseProps = {
|
|
45
46
|
onTarget?: () => void;
|
46
47
|
[x: string]: any;
|
47
48
|
} & Record<string, any>;
|
48
|
-
declare function TextFieldBase({ 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, ...rest }: TextFieldBaseProps): JSX.Element;
|
49
|
+
declare function TextFieldBase({ name, hintText, defaultText, textAlign, validation, preventBlankMode, enterSubmitMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, inputMode, 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, ...rest }: TextFieldBaseProps): JSX.Element;
|
49
50
|
export default TextFieldBase;
|