pds-dev-kit-web 2.0.13 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/assets/icons/line/DottedCircle.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DottedCircle.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +1 -0
- package/dist/src/common/assets/icons/line/index.js +2 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +14 -2
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +13 -1
- package/dist/src/common/styles/colorSet/UIColor.json +26 -1
- package/dist/src/common/styles/colorSet/index.d.ts +51 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +25 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +4 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +36 -11
- package/dist/src/desktop/common/components/TextFieldBase/constants.d.ts +1 -0
- package/dist/src/desktop/common/components/TextFieldBase/constants.js +4 -0
- package/dist/src/desktop/components/IconButton/IconButton.d.ts +4 -2
- package/dist/src/desktop/components/IconButton/IconButton.js +52 -4
- package/dist/src/desktop/components/IconButton/constants.d.ts +15 -0
- package/dist/src/desktop/components/IconButton/constants.js +19 -0
- package/dist/src/desktop/components/TextField/TextField.d.ts +3 -1
- package/dist/src/desktop/components/TextField/TextField.js +5 -5
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.js +2 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSG.js +57 -32
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSI.d.ts +15 -0
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSI.js +117 -0
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/index.d.ts +1 -0
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/index.js +3 -1
- package/dist/src/desktop/layout/LayoutWS/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +4 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +35 -10
- package/dist/src/mobile/common/components/TextFieldBase/constants.d.ts +1 -0
- package/dist/src/mobile/common/components/TextFieldBase/constants.js +4 -0
- package/dist/src/mobile/components/TextField/TextField.d.ts +3 -1
- package/dist/src/mobile/components/TextField/TextField.js +5 -5
- package/package.json +1 -1
- package/release-note.md +11 -7
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
|
+
var DottedCircle = function (_a) {
|
|
27
|
+
var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("g", __assign({ stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M7.7033,4.2616 C7.4343,4.2616 7.1743,4.1166 7.0393,3.8626 C6.8463,3.4956 6.9853,3.0426 7.3513,2.8486 C8.3203,2.3356 9.3453,1.9856 10.3983,1.8076 C10.8053,1.7346 11.1933,2.0126 11.2623,2.4216 C11.3313,2.8296 11.0573,3.2166 10.6483,3.2856 C9.7543,3.4376 8.8813,3.7366 8.0533,4.1746 C7.9413,4.2336 7.8213,4.2616 7.7033,4.2616 M16.3203,4.2736 C16.2023,4.2736 16.0823,4.2446 15.9703,4.1866 C15.1343,3.7426 14.2613,3.4416 13.3763,3.2886 C12.9683,3.2186 12.6943,2.8306 12.7643,2.4226 C12.8353,2.0146 13.2203,1.7446 13.6303,1.8106 C14.6723,1.9906 15.6963,2.3426 16.6723,2.8606 C17.0383,3.0546 17.1783,3.5086 16.9843,3.8746 C16.8493,4.1286 16.5893,4.2736 16.3203,4.2736 M20.5003,8.4246 C20.2273,8.4246 19.9643,8.2756 19.8313,8.0146 C19.4153,7.1976 18.8713,6.4496 18.2153,5.7926 C17.9233,5.4996 17.9233,5.0246 18.2163,4.7326 C18.5093,4.4386 18.9843,4.4396 19.2773,4.7326 C20.0443,5.5006 20.6803,6.3756 21.1683,7.3346 C21.3563,7.7036 21.2093,8.1556 20.8403,8.3426 C20.7313,8.3986 20.6153,8.4246 20.5003,8.4246 M3.5233,8.4306 C3.4043,8.4306 3.2843,8.4026 3.1713,8.3426 C2.8063,8.1476 2.6673,7.6936 2.8623,7.3276 C3.3643,6.3856 4.0073,5.5196 4.7743,4.7546 C5.0673,4.4626 5.5413,4.4616 5.8343,4.7566 C6.1273,5.0496 6.1263,5.5246 5.8333,5.8176 C5.1723,6.4766 4.6183,7.2216 4.1863,8.0326 C4.0513,8.2856 3.7913,8.4306 3.5233,8.4306 M2.5433,14.2276 C2.1843,14.2276 1.8663,13.9686 1.8053,13.6016 C1.7163,13.0766 1.6713,12.5406 1.6713,12.0096 C1.6713,11.4646 1.7183,10.9116 1.8123,10.3686 C1.8833,9.9616 2.2753,9.6926 2.6793,9.7576 C3.0873,9.8276 3.3613,10.2166 3.2903,10.6246 C3.2113,11.0826 3.1713,11.5486 3.1713,12.0096 C3.1713,12.4576 3.2093,12.9096 3.2843,13.3536 C3.3523,13.7616 3.0773,14.1486 2.6693,14.2166 C2.6263,14.2246 2.5853,14.2276 2.5433,14.2276 M21.4173,14.2436 C21.3783,14.2436 21.3393,14.2406 21.2993,14.2356 C20.8903,14.1706 20.6113,13.7856 20.6753,13.3766 C20.7473,12.9236 20.7833,12.4596 20.7843,11.9986 C20.7843,11.5406 20.7483,11.0796 20.6773,10.6276 C20.6123,10.2186 20.8923,9.8346 21.3013,9.7706 C21.7093,9.7136 22.0943,9.9866 22.1593,10.3956 C22.2423,10.9236 22.2843,11.4636 22.2843,11.9986 C22.2833,12.5376 22.2413,13.0796 22.1573,13.6116 C22.0993,13.9806 21.7803,14.2436 21.4173,14.2436 M5.2453,19.4756 C5.0433,19.4756 4.8413,19.3946 4.6933,19.2336 C3.9433,18.4186 3.3213,17.5486 2.8463,16.6466 C2.6523,16.2806 2.7933,15.8256 3.1593,15.6336 C3.5263,15.4386 3.9793,15.5796 4.1723,15.9476 C4.5883,16.7346 5.1343,17.4976 5.7973,18.2176 C6.0773,18.5226 6.0573,18.9966 5.7533,19.2776 C5.6093,19.4096 5.4273,19.4756 5.2453,19.4756 M18.7263,19.4956 C18.5373,19.4956 18.3493,19.4266 18.2063,19.2856 C17.9123,18.9976 17.8963,18.5356 18.1823,18.2406 C18.1923,18.2296 18.2223,18.1996 18.2323,18.1906 C18.8673,17.5556 19.4113,16.8086 19.8283,15.9896 C20.0163,15.6196 20.4683,15.4736 20.8373,15.6616 C21.2063,15.8496 21.3523,16.3016 21.1643,16.6706 C20.6753,17.6296 20.0383,18.5046 19.2713,19.2716 C19.1223,19.4206 18.9243,19.4956 18.7263,19.4956 M10.4873,22.1626 C10.4473,22.1626 10.4073,22.1596 10.3673,22.1536 C9.2973,21.9816 8.2683,21.6456 7.3093,21.1546 C6.9413,20.9646 6.7953,20.5126 6.9843,20.1446 C7.1733,19.7746 7.6253,19.6316 7.9943,19.8186 C8.8123,20.2386 9.6913,20.5256 10.6053,20.6726 C11.0143,20.7386 11.2923,21.1226 11.2263,21.5326 C11.1673,21.9006 10.8483,22.1626 10.4873,22.1626 M13.4673,22.1706 C13.1033,22.1706 12.7843,21.9066 12.7263,21.5346 C12.6633,21.1256 12.9433,20.7426 13.3533,20.6796 C14.2673,20.5376 15.1473,20.2556 15.9673,19.8396 C16.3363,19.6546 16.7883,19.8006 16.9753,20.1696 C17.1623,20.5386 17.0153,20.9906 16.6453,21.1776 C15.6843,21.6646 14.6533,21.9956 13.5823,22.1616 C13.5443,22.1676 13.5053,22.1706 13.4673,22.1706", fill: color }, void 0) }), void 0) }), void 0));
|
|
29
|
+
};
|
|
30
|
+
exports.default = DottedCircle;
|
|
@@ -52,6 +52,7 @@ declare const lineIcons: {
|
|
|
52
52
|
readonly ic_device_app: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
53
53
|
readonly ic_device_desktop: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
54
54
|
readonly ic_device_mobile: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
55
|
+
readonly ic_dotted_circle: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
55
56
|
readonly ic_download: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
56
57
|
readonly ic_dynamic_layout: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
57
58
|
readonly ic_edit: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
@@ -55,6 +55,7 @@ var Developer_1 = __importDefault(require("./Developer"));
|
|
|
55
55
|
var DeviceApp_1 = __importDefault(require("./DeviceApp"));
|
|
56
56
|
var DeviceDesktop_1 = __importDefault(require("./DeviceDesktop"));
|
|
57
57
|
var DeviceMobile_1 = __importDefault(require("./DeviceMobile"));
|
|
58
|
+
var DottedCircle_1 = __importDefault(require("./DottedCircle"));
|
|
58
59
|
var Download_1 = __importDefault(require("./Download"));
|
|
59
60
|
var DynamicLayout_1 = __importDefault(require("./DynamicLayout"));
|
|
60
61
|
var Edit_1 = __importDefault(require("./Edit"));
|
|
@@ -259,6 +260,7 @@ var lineIcons = {
|
|
|
259
260
|
ic_device_app: DeviceApp_1.default,
|
|
260
261
|
ic_device_desktop: DeviceDesktop_1.default,
|
|
261
262
|
ic_device_mobile: DeviceMobile_1.default,
|
|
263
|
+
ic_dotted_circle: DottedCircle_1.default,
|
|
262
264
|
ic_download: Download_1.default,
|
|
263
265
|
ic_dynamic_layout: DynamicLayout_1.default,
|
|
264
266
|
ic_edit: Edit_1.default,
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
"sys_storyboard_card_base_red01": "red30",
|
|
280
280
|
"sys_storyboard_card_base_green01": "green50",
|
|
281
281
|
"sys_brand_secondary_variant": "darkgreen700",
|
|
282
|
-
"sys_button_tooltip_base": "white/
|
|
282
|
+
"sys_button_tooltip_base": "white/opacity65",
|
|
283
283
|
"sys_text_button_tooltip": "grey900",
|
|
284
284
|
"sys_membership_button_base": "white/opacity20",
|
|
285
285
|
"sys_membership_item_membership_base": "darkgrey50",
|
|
@@ -299,5 +299,17 @@
|
|
|
299
299
|
"sys_text_warning_02": "darkbrown500",
|
|
300
300
|
"sys_component_base_39": "darkyellow300",
|
|
301
301
|
"sys_component_base_40": "darkorange50",
|
|
302
|
-
"sys_component_base_41": "darkskyblue100"
|
|
302
|
+
"sys_component_base_41": "darkskyblue100",
|
|
303
|
+
"sys_cpnt_slider_track": "darkgrey100",
|
|
304
|
+
"sys_cpnt_slider_track_active": "darkgrey900",
|
|
305
|
+
"sys_cpnt_slider_thumb_normal": "darkgrey900",
|
|
306
|
+
"sys_cpnt_slider_thumb_disabled": "darkgrey400",
|
|
307
|
+
"sys_cpnt_slider_thumb_hover_circle": "darkgrey900/opacity10",
|
|
308
|
+
"sys_cpnt_slider_thumb_pressed_circle": "darkgrey900/opacity20",
|
|
309
|
+
"sys_cpnt_slider_track_disabled": "darkgrey400",
|
|
310
|
+
"sys_component_base_42": "darkorange30",
|
|
311
|
+
"sys_component_base_43": "darkblue30",
|
|
312
|
+
"sys_icon_grey_darktheme_01": "darkgrey900",
|
|
313
|
+
"sys_icon_grey_darktheme_02": "darkgrey500",
|
|
314
|
+
"sys_icon_grey_darktheme_03": "darkgrey400"
|
|
303
315
|
}
|
|
@@ -299,5 +299,17 @@
|
|
|
299
299
|
"sys_text_warning_02": "brown500",
|
|
300
300
|
"sys_component_base_39": "yellow300",
|
|
301
301
|
"sys_component_base_40": "orange50",
|
|
302
|
-
"sys_component_base_41": "skyblue100"
|
|
302
|
+
"sys_component_base_41": "skyblue100",
|
|
303
|
+
"sys_cpnt_slider_track": "grey100",
|
|
304
|
+
"sys_cpnt_slider_track_active": "grey900",
|
|
305
|
+
"sys_cpnt_slider_thumb_normal": "grey900",
|
|
306
|
+
"sys_cpnt_slider_thumb_disabled": "grey400",
|
|
307
|
+
"sys_cpnt_slider_thumb_hover_circle": "grey900/opacity10",
|
|
308
|
+
"sys_cpnt_slider_thumb_pressed_circle": "grey900/opacity20",
|
|
309
|
+
"sys_cpnt_slider_track_disabled": "grey400",
|
|
310
|
+
"sys_component_base_42": "orange30",
|
|
311
|
+
"sys_component_base_43": "blue30",
|
|
312
|
+
"sys_icon_grey_darktheme_01": "darkgrey900",
|
|
313
|
+
"sys_icon_grey_darktheme_02": "darkgrey500",
|
|
314
|
+
"sys_icon_grey_darktheme_03": "darkgrey400"
|
|
303
315
|
}
|
|
@@ -769,5 +769,30 @@
|
|
|
769
769
|
"ui_cpnt_sheet_base_20": "sys_component_base_39",
|
|
770
770
|
"ui_cpnt_sheet_base_21": "sys_component_base_32",
|
|
771
771
|
"ui_cpnt_sheet_base_22": "sys_component_base_40",
|
|
772
|
-
"ui_cpnt_sheet_base_23": "sys_component_base_41"
|
|
772
|
+
"ui_cpnt_sheet_base_23": "sys_component_base_41",
|
|
773
|
+
"ui_cpnt_slider_track": "sys_cpnt_slider_track",
|
|
774
|
+
"ui_cpnt_slider_track_active": "sys_cpnt_slider_track_active",
|
|
775
|
+
"ui_cpnt_slider_thumb_normal": "sys_cpnt_slider_thumb_normal",
|
|
776
|
+
"ui_cpnt_slider_thumb_disabled": "sys_cpnt_slider_thumb_disabled",
|
|
777
|
+
"ui_cpnt_slider_thumb_hover_circle": "sys_cpnt_slider_thumb_hover_circle",
|
|
778
|
+
"ui_cpnt_slider_thumb_pressed_circle": "sys_cpnt_slider_thumb_pressed_circle",
|
|
779
|
+
"ui_cpnt_slider_track_disabled": "sys_cpnt_slider_track_disabled",
|
|
780
|
+
"ui_cpnt_basicbuttongroup_base_default": "sys_component_base_01",
|
|
781
|
+
"ui_cpnt_basicbuttongroup_on_base_hover": "sys_component_on_base_01",
|
|
782
|
+
"ui_cpnt_basicbuttongroup_on_base_pressed": "sys_component_on_base_02",
|
|
783
|
+
"ui_cpnt_basicbuttongroup_base_disabled": "sys_component_base_03",
|
|
784
|
+
"ui_cpnt_segmentedbuttongroup_base_default": "sys_component_base_01",
|
|
785
|
+
"ui_cpnt_segmentedbuttongroup_on_base_hover": "sys_component_on_base_01",
|
|
786
|
+
"ui_cpnt_segmentedbuttongroup_on_base_pressed": "sys_component_on_base_02",
|
|
787
|
+
"ui_cpnt_segmentedbuttongroup_base_disabled": "sys_component_base_03",
|
|
788
|
+
"ui_cpnt_segmentedbuttongroup_base_selected": "usr_brand_primary",
|
|
789
|
+
"ui_cpnt_sheet_base_24": "sys_component_base_42",
|
|
790
|
+
"ui_cpnt_sheet_base_25": "sys_component_base_11",
|
|
791
|
+
"ui_cpnt_sheet_base_26": "sys_component_base_43",
|
|
792
|
+
"ui_cpnt_dropdown_display_icon_normal": "sys_widget_grey_01",
|
|
793
|
+
"ui_cpnt_dropdown_display_icon_disabled": "sys_widget_grey_03",
|
|
794
|
+
"ui_cpnt_dropdown_display_icon_darktheme_enabled": "sys_icon_grey_darktheme_01",
|
|
795
|
+
"ui_cpnt_dropdown_display_icon_darktheme_disabled": "sys_icon_grey_darktheme_03",
|
|
796
|
+
"ui_cpnt_dropdown_display_icon_white_enabled": "sys_widget_white",
|
|
797
|
+
"ui_cpnt_dropdown_display_icon_white_disabled": "sys_widget_grey_03"
|
|
773
798
|
}
|
|
@@ -117,7 +117,7 @@ declare const colorSet: {
|
|
|
117
117
|
grey20: string;
|
|
118
118
|
darkgrey20: string;
|
|
119
119
|
};
|
|
120
|
-
readonly
|
|
120
|
+
readonly PaletteColor_light: {
|
|
121
121
|
sys_container_background_01: string;
|
|
122
122
|
sys_container_background_02: string;
|
|
123
123
|
sys_container_background_03: string;
|
|
@@ -419,8 +419,20 @@ declare const colorSet: {
|
|
|
419
419
|
sys_component_base_39: string;
|
|
420
420
|
sys_component_base_40: string;
|
|
421
421
|
sys_component_base_41: string;
|
|
422
|
+
sys_cpnt_slider_track: string;
|
|
423
|
+
sys_cpnt_slider_track_active: string;
|
|
424
|
+
sys_cpnt_slider_thumb_normal: string;
|
|
425
|
+
sys_cpnt_slider_thumb_disabled: string;
|
|
426
|
+
sys_cpnt_slider_thumb_hover_circle: string;
|
|
427
|
+
sys_cpnt_slider_thumb_pressed_circle: string;
|
|
428
|
+
sys_cpnt_slider_track_disabled: string;
|
|
429
|
+
sys_component_base_42: string;
|
|
430
|
+
sys_component_base_43: string;
|
|
431
|
+
sys_icon_grey_darktheme_01: string;
|
|
432
|
+
sys_icon_grey_darktheme_02: string;
|
|
433
|
+
sys_icon_grey_darktheme_03: string;
|
|
422
434
|
};
|
|
423
|
-
readonly
|
|
435
|
+
readonly PaletteColor_Dark: {
|
|
424
436
|
sys_container_background_01: string;
|
|
425
437
|
sys_container_background_02: string;
|
|
426
438
|
sys_container_background_03: string;
|
|
@@ -722,6 +734,18 @@ declare const colorSet: {
|
|
|
722
734
|
sys_component_base_39: string;
|
|
723
735
|
sys_component_base_40: string;
|
|
724
736
|
sys_component_base_41: string;
|
|
737
|
+
sys_cpnt_slider_track: string;
|
|
738
|
+
sys_cpnt_slider_track_active: string;
|
|
739
|
+
sys_cpnt_slider_thumb_normal: string;
|
|
740
|
+
sys_cpnt_slider_thumb_disabled: string;
|
|
741
|
+
sys_cpnt_slider_thumb_hover_circle: string;
|
|
742
|
+
sys_cpnt_slider_thumb_pressed_circle: string;
|
|
743
|
+
sys_cpnt_slider_track_disabled: string;
|
|
744
|
+
sys_component_base_42: string;
|
|
745
|
+
sys_component_base_43: string;
|
|
746
|
+
sys_icon_grey_darktheme_01: string;
|
|
747
|
+
sys_icon_grey_darktheme_02: string;
|
|
748
|
+
sys_icon_grey_darktheme_03: string;
|
|
725
749
|
};
|
|
726
750
|
readonly UIColor: {
|
|
727
751
|
ui_cpnt_button_fill_base_primary: string;
|
|
@@ -1495,6 +1519,31 @@ declare const colorSet: {
|
|
|
1495
1519
|
ui_cpnt_sheet_base_21: string;
|
|
1496
1520
|
ui_cpnt_sheet_base_22: string;
|
|
1497
1521
|
ui_cpnt_sheet_base_23: string;
|
|
1522
|
+
ui_cpnt_slider_track: string;
|
|
1523
|
+
ui_cpnt_slider_track_active: string;
|
|
1524
|
+
ui_cpnt_slider_thumb_normal: string;
|
|
1525
|
+
ui_cpnt_slider_thumb_disabled: string;
|
|
1526
|
+
ui_cpnt_slider_thumb_hover_circle: string;
|
|
1527
|
+
ui_cpnt_slider_thumb_pressed_circle: string;
|
|
1528
|
+
ui_cpnt_slider_track_disabled: string;
|
|
1529
|
+
ui_cpnt_basicbuttongroup_base_default: string;
|
|
1530
|
+
ui_cpnt_basicbuttongroup_on_base_hover: string;
|
|
1531
|
+
ui_cpnt_basicbuttongroup_on_base_pressed: string;
|
|
1532
|
+
ui_cpnt_basicbuttongroup_base_disabled: string;
|
|
1533
|
+
ui_cpnt_segmentedbuttongroup_base_default: string;
|
|
1534
|
+
ui_cpnt_segmentedbuttongroup_on_base_hover: string;
|
|
1535
|
+
ui_cpnt_segmentedbuttongroup_on_base_pressed: string;
|
|
1536
|
+
ui_cpnt_segmentedbuttongroup_base_disabled: string;
|
|
1537
|
+
ui_cpnt_segmentedbuttongroup_base_selected: string;
|
|
1538
|
+
ui_cpnt_sheet_base_24: string;
|
|
1539
|
+
ui_cpnt_sheet_base_25: string;
|
|
1540
|
+
ui_cpnt_sheet_base_26: string;
|
|
1541
|
+
ui_cpnt_dropdown_display_icon_normal: string;
|
|
1542
|
+
ui_cpnt_dropdown_display_icon_disabled: string;
|
|
1543
|
+
ui_cpnt_dropdown_display_icon_darktheme_enabled: string;
|
|
1544
|
+
ui_cpnt_dropdown_display_icon_darktheme_disabled: string;
|
|
1545
|
+
ui_cpnt_dropdown_display_icon_white_enabled: string;
|
|
1546
|
+
ui_cpnt_dropdown_display_icon_white_disabled: string;
|
|
1498
1547
|
};
|
|
1499
1548
|
};
|
|
1500
1549
|
export default colorSet;
|
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
7
|
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
8
|
-
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
8
|
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
9
|
+
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
10
10
|
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
12
|
SemanticColor: SemanticColor_json_1.default,
|
|
13
|
-
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
13
|
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
14
|
+
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
15
15
|
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -770,4 +770,29 @@ export interface UITheme {
|
|
|
770
770
|
ui_cpnt_sheet_base_21: string;
|
|
771
771
|
ui_cpnt_sheet_base_22: string;
|
|
772
772
|
ui_cpnt_sheet_base_23: string;
|
|
773
|
+
ui_cpnt_slider_track: string;
|
|
774
|
+
ui_cpnt_slider_track_active: string;
|
|
775
|
+
ui_cpnt_slider_thumb_normal: string;
|
|
776
|
+
ui_cpnt_slider_thumb_disabled: string;
|
|
777
|
+
ui_cpnt_slider_thumb_hover_circle: string;
|
|
778
|
+
ui_cpnt_slider_thumb_pressed_circle: string;
|
|
779
|
+
ui_cpnt_slider_track_disabled: string;
|
|
780
|
+
ui_cpnt_basicbuttongroup_base_default: string;
|
|
781
|
+
ui_cpnt_basicbuttongroup_on_base_hover: string;
|
|
782
|
+
ui_cpnt_basicbuttongroup_on_base_pressed: string;
|
|
783
|
+
ui_cpnt_basicbuttongroup_base_disabled: string;
|
|
784
|
+
ui_cpnt_segmentedbuttongroup_base_default: string;
|
|
785
|
+
ui_cpnt_segmentedbuttongroup_on_base_hover: string;
|
|
786
|
+
ui_cpnt_segmentedbuttongroup_on_base_pressed: string;
|
|
787
|
+
ui_cpnt_segmentedbuttongroup_base_disabled: string;
|
|
788
|
+
ui_cpnt_segmentedbuttongroup_base_selected: string;
|
|
789
|
+
ui_cpnt_sheet_base_24: string;
|
|
790
|
+
ui_cpnt_sheet_base_25: string;
|
|
791
|
+
ui_cpnt_sheet_base_26: string;
|
|
792
|
+
ui_cpnt_dropdown_display_icon_normal: string;
|
|
793
|
+
ui_cpnt_dropdown_display_icon_disabled: string;
|
|
794
|
+
ui_cpnt_dropdown_display_icon_darktheme_enabled: string;
|
|
795
|
+
ui_cpnt_dropdown_display_icon_darktheme_disabled: string;
|
|
796
|
+
ui_cpnt_dropdown_display_icon_white_enabled: string;
|
|
797
|
+
ui_cpnt_dropdown_display_icon_white_disabled: string;
|
|
773
798
|
}
|
|
@@ -30,6 +30,9 @@ export declare type TextFieldBaseProps = {
|
|
|
30
30
|
deleteIconColor?: UiColors;
|
|
31
31
|
isFocused?: boolean;
|
|
32
32
|
autoComplete?: string;
|
|
33
|
+
stepperMode?: 'none' | 'use';
|
|
34
|
+
innerSpinButtonSize?: 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72;
|
|
35
|
+
step?: number;
|
|
33
36
|
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
34
37
|
onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
35
38
|
onFocus?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
@@ -39,5 +42,5 @@ export declare type TextFieldBaseProps = {
|
|
|
39
42
|
inputRef?: any;
|
|
40
43
|
[x: string]: any;
|
|
41
44
|
} & Record<string, any>;
|
|
42
|
-
declare function TextFieldBase({ name, hintText, defaultText, textAlign, validation, preventBlankMode, enterSubmitMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, autoComplete, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, inputRef, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
45
|
+
declare function TextFieldBase({ name, hintText, defaultText, textAlign, validation, preventBlankMode, enterSubmitMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, autoComplete, stepperMode, innerSpinButtonSize, step, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, inputRef, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
43
46
|
export default TextFieldBase;
|
|
@@ -46,15 +46,18 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
49
|
+
/* eslint-disable better-styled-components/sort-declarations-alphabetically */
|
|
49
50
|
/* eslint-disable react/jsx-no-bind */
|
|
50
51
|
var react_1 = require("react");
|
|
51
52
|
var react_hook_form_1 = require("react-hook-form");
|
|
53
|
+
var components_1 = require("../../../../hybrid/components");
|
|
52
54
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
53
55
|
var common_1 = require("../../../../common");
|
|
54
56
|
var IconButton_1 = require("../../../components/IconButton");
|
|
57
|
+
var constants_1 = require("./constants");
|
|
55
58
|
function TextFieldBase(_a) {
|
|
56
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.enterSubmitMode, enterSubmitMode = _d === void 0 ? 'none' : _d, _e = _a.textLineType, textLineType = _e === void 0 ? 'single' : _e, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _f = _a.inputType, inputType = _f === void 0 ? 'text' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, min = _a.min, max = _a.max, _j = _a.maxLength, maxLength = _j === void 0 ? Infinity : _j, _k = _a.textSize, textSize = _k === void 0 ? 'form2' : _k, _l = _a.textWeight, textWeight = _l === void 0 ? 'normal' : _l, textPadding = _a.textPadding, _m = _a.fieldHeight, fieldHeight = _m === void 0 ? 48 : _m, _o = _a.deleteIconMode, deleteIconMode = _o === void 0 ? 'use' : _o, _p = _a.deleteIconSize, deleteIconSize = _p === void 0 ? 20 : _p, _q = _a.deleteIconColor, deleteIconColor = _q === void 0 ? 'ui_cpnt_button_icon_disabled' : _q, isFocused = _a.isFocused, _r = _a.autoComplete, autoComplete = _r === void 0 ? 'on' : _r, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, inputRef = _a.inputRef, rest = __rest(_a, ["name", "hintText", "defaultText", "textAlign", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "autoComplete", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget", "inputRef"]);
|
|
57
|
-
var
|
|
59
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.enterSubmitMode, enterSubmitMode = _d === void 0 ? 'none' : _d, _e = _a.textLineType, textLineType = _e === void 0 ? 'single' : _e, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _f = _a.inputType, inputType = _f === void 0 ? 'text' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, min = _a.min, max = _a.max, _j = _a.maxLength, maxLength = _j === void 0 ? Infinity : _j, _k = _a.textSize, textSize = _k === void 0 ? 'form2' : _k, _l = _a.textWeight, textWeight = _l === void 0 ? 'normal' : _l, textPadding = _a.textPadding, _m = _a.fieldHeight, fieldHeight = _m === void 0 ? 48 : _m, _o = _a.deleteIconMode, deleteIconMode = _o === void 0 ? 'use' : _o, _p = _a.deleteIconSize, deleteIconSize = _p === void 0 ? 20 : _p, _q = _a.deleteIconColor, deleteIconColor = _q === void 0 ? 'ui_cpnt_button_icon_disabled' : _q, isFocused = _a.isFocused, _r = _a.autoComplete, autoComplete = _r === void 0 ? 'on' : _r, _s = _a.stepperMode, stepperMode = _s === void 0 ? 'none' : _s, innerSpinButtonSize = _a.innerSpinButtonSize, step = _a.step, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, inputRef = _a.inputRef, rest = __rest(_a, ["name", "hintText", "defaultText", "textAlign", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "autoComplete", "stepperMode", "innerSpinButtonSize", "step", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget", "inputRef"]);
|
|
60
|
+
var _t = (0, react_hook_form_1.useFormContext)(), register = _t.register, setValue = _t.setValue, getValues = _t.getValues, clearErrors = _t.clearErrors;
|
|
58
61
|
var timeout;
|
|
59
62
|
(0, react_1.useEffect)(function () {
|
|
60
63
|
return function () { return clearTimeout(timeout); };
|
|
@@ -116,7 +119,7 @@ function TextFieldBase(_a) {
|
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
121
|
var textAreaRef = (0, react_1.useRef)(null);
|
|
119
|
-
var
|
|
122
|
+
var _u = register(name, validation), ref = _u.ref, refRest = __rest(_u, ["ref"]);
|
|
120
123
|
(0, react_1.useEffect)(function () {
|
|
121
124
|
if (textAreaRef === null || textAreaRef.current === null) {
|
|
122
125
|
return;
|
|
@@ -177,12 +180,12 @@ function TextFieldBase(_a) {
|
|
|
177
180
|
}
|
|
178
181
|
var S_TextFieldBase = function () {
|
|
179
182
|
if (textLineType === 'single') {
|
|
180
|
-
return ((0, jsx_runtime_1.jsxs)(S_InputWrapper, { children: [(0, jsx_runtime_1.jsx)(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
183
|
+
return ((0, jsx_runtime_1.jsxs)(S_InputWrapper, { children: [(0, jsx_runtime_1.jsx)(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, autoComplete: autoComplete, stepperMode: stepperMode, innerSpinButtonSize: innerSpinButtonSize, step: step, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
181
184
|
ref(e);
|
|
182
185
|
if (inputRef) {
|
|
183
186
|
inputRef.current = e;
|
|
184
187
|
}
|
|
185
|
-
} }), void 0), deleteIconMode === 'use' && isFocused && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: deleteValue }, void 0))] }, void 0));
|
|
188
|
+
} }), void 0), stepperMode === 'use' && ((0, jsx_runtime_1.jsxs)(S_IconBox, __assign({ innerSpinButtonSize: innerSpinButtonSize }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_up", fillType: "fill", size: innerSpinButtonSize }, void 0), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_down", fillType: "fill", size: innerSpinButtonSize }, void 0)] }), void 0)), deleteIconMode === 'use' && isFocused && stepperMode === 'none' && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: deleteValue }, void 0))] }, void 0));
|
|
186
189
|
}
|
|
187
190
|
if (textLineType === 'multi') {
|
|
188
191
|
return ((0, jsx_runtime_1.jsx)(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
@@ -206,7 +209,7 @@ function TextFieldBase(_a) {
|
|
|
206
209
|
};
|
|
207
210
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: S_TextFieldBase() }, void 0);
|
|
208
211
|
}
|
|
209
|
-
var S_InputWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n width: 100%;\n"])));
|
|
212
|
+
var S_InputWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n position: relative;\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n position: relative;\n width: 100%;\n"])));
|
|
210
213
|
var read_only = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
211
214
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
212
215
|
return colorTheme &&
|
|
@@ -225,7 +228,7 @@ var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_
|
|
|
225
228
|
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_disabled
|
|
226
229
|
}[colorTheme];
|
|
227
230
|
});
|
|
228
|
-
var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n
|
|
231
|
+
var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n cursor: ", ";\n display: inline-flex;\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n justify-content: center;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n text-align: ", ";\n width: 100%;\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"], ["\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n cursor: ", ";\n display: inline-flex;\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n justify-content: center;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n text-align: ", ";\n width: 100%;\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
229
232
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
230
233
|
return colorTheme &&
|
|
231
234
|
{
|
|
@@ -277,11 +280,33 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
|
|
|
277
280
|
var textPadding = _a.textPadding;
|
|
278
281
|
return textPadding && "padding: " + textPadding + ";";
|
|
279
282
|
});
|
|
280
|
-
var
|
|
283
|
+
var inputInnerSpinButtonStyle = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n -webkit-appearance: none;\n cursor: pointer;\n height: ", ";\n margin-left: ", ";\n opacity: 1;\n width: ", ";\n"], ["\n -webkit-appearance: none;\n cursor: pointer;\n height: ", ";\n margin-left: ", ";\n opacity: 1;\n width: ", ";\n"])), function (_a) {
|
|
284
|
+
var innerSpinButtonSize = _a.innerSpinButtonSize;
|
|
285
|
+
return innerSpinButtonSize && innerSpinButtonSize * 2 + "px";
|
|
286
|
+
}, function (_a) {
|
|
287
|
+
var theme = _a.theme;
|
|
288
|
+
return theme.spacing.spacingB;
|
|
289
|
+
}, function (_a) {
|
|
290
|
+
var innerSpinButtonSize = _a.innerSpinButtonSize;
|
|
291
|
+
return innerSpinButtonSize && innerSpinButtonSize + "px";
|
|
292
|
+
});
|
|
293
|
+
var S_Input = styled_components_1.default.input(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n flex: 1;\n line-height: ", ";\n z-index: 20;\n\n ::-webkit-inner-spin-button {\n ", "\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"], ["\n ", "\n flex: 1;\n line-height: ", ";\n z-index: 20;\n\n ::-webkit-inner-spin-button {\n ", "\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), basicStyle, function (_a) {
|
|
281
294
|
var theme = _a.theme;
|
|
282
295
|
return theme.desktopLineHeight.singleLine;
|
|
296
|
+
}, function (_a) {
|
|
297
|
+
var stepperMode = _a.stepperMode, type = _a.type;
|
|
298
|
+
return stepperMode === 'use' && type === 'number'
|
|
299
|
+
? inputInnerSpinButtonStyle
|
|
300
|
+
: '-webkit-appearance: none; margin: 0;';
|
|
301
|
+
});
|
|
302
|
+
var S_IconBox = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: column;\n height: ", ";\n justify-content: center;\n position: absolute;\n right: ", "px;\n width: ", ";\n z-index: 1;\n"], ["\n align-items: center;\n display: flex;\n flex-direction: column;\n height: ", ";\n justify-content: center;\n position: absolute;\n right: ", "px;\n width: ", ";\n z-index: 1;\n"])), function (_a) {
|
|
303
|
+
var innerSpinButtonSize = _a.innerSpinButtonSize;
|
|
304
|
+
return innerSpinButtonSize && innerSpinButtonSize * 2 + "px";
|
|
305
|
+
}, constants_1.PIXEL_FOR_ICONS_CENTER, function (_a) {
|
|
306
|
+
var innerSpinButtonSize = _a.innerSpinButtonSize;
|
|
307
|
+
return innerSpinButtonSize && innerSpinButtonSize + "px";
|
|
283
308
|
});
|
|
284
|
-
var S_Auto = styled_components_1.default.textarea(
|
|
309
|
+
var S_Auto = styled_components_1.default.textarea(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n ", "\n ", ";\n"], ["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n ", "\n ", ";\n"])), basicStyle, function (_a) {
|
|
285
310
|
var autoMaxRows = _a.autoMaxRows, textSize = _a.textSize, fieldHeight = _a.fieldHeight;
|
|
286
311
|
return autoMaxRows &&
|
|
287
312
|
fieldHeight &&
|
|
@@ -296,6 +321,6 @@ var S_Auto = styled_components_1.default.textarea(templateObject_6 || (templateO
|
|
|
296
321
|
Number(common_1.desktopLineHeight[textSize]) *
|
|
297
322
|
autoMinRows + "px;";
|
|
298
323
|
});
|
|
299
|
-
var S_Multi = styled_components_1.default.textarea(
|
|
324
|
+
var S_Multi = styled_components_1.default.textarea(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n"], ["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n"])), basicStyle);
|
|
300
325
|
exports.default = TextFieldBase;
|
|
301
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
326
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PIXEL_FOR_ICONS_CENTER = 1;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FillIconNameKeys, LineIconNameKeys, UiColors } from '../../../common';
|
|
2
|
+
import type { FillIconNameKeys, LineIconNameKeys, PDSTextType, UiColors } from '../../../common';
|
|
3
3
|
export declare type IconButtonProps = {
|
|
4
|
+
tooltipText?: PDSTextType;
|
|
5
|
+
tooltipPosition?: 'left_top' | 'left_bottom' | 'center_top' | 'center_bottom' | 'right_top' | 'right_bottom';
|
|
4
6
|
fillType?: 'fill' | 'line';
|
|
5
7
|
shapeType?: 'circular' | 'rectangle';
|
|
6
8
|
baseSize?: 'xxlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
@@ -18,5 +20,5 @@ export declare type IconButtonProps = {
|
|
|
18
20
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
21
|
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
20
22
|
};
|
|
21
|
-
declare function IconButton({ fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, type, state, tabIndex, onClick, onMouseDown }: IconButtonProps): JSX.Element;
|
|
23
|
+
declare function IconButton({ tooltipText, tooltipPosition, fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, type, state, tabIndex, onClick, onMouseDown }: IconButtonProps): JSX.Element;
|
|
22
24
|
export default IconButton;
|
|
@@ -35,11 +35,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
35
35
|
};
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
var react_1 = require("react");
|
|
38
39
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
39
40
|
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
40
41
|
var hybrid_1 = require("../../../hybrid");
|
|
42
|
+
var TextLabel_1 = require("../TextLabel");
|
|
43
|
+
var constants_1 = require("./constants");
|
|
41
44
|
function IconButton(_a) {
|
|
42
|
-
var _b = _a.
|
|
45
|
+
var tooltipText = _a.tooltipText, _b = _a.tooltipPosition, tooltipPosition = _b === void 0 ? 'center_bottom' : _b, _c = _a.fillType, fillType = _c === void 0 ? 'fill' : _c, _d = _a.shapeType, shapeType = _d === void 0 ? 'rectangle' : _d, _e = _a.baseSize, baseSize = _e === void 0 ? 'small' : _e, baseColorKey = _a.baseColorKey, borderColorKey = _a.borderColorKey, _f = _a.iconSize, iconSize = _f === void 0 ? 24 : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, iconColorKey = _a.iconColorKey, _h = _a.shadow, shadow = _h === void 0 ? 'hidden' : _h, _j = _a.colorTheme, colorTheme = _j === void 0 ? 'none' : _j, _k = _a.type, type = _k === void 0 ? 'button' : _k, _l = _a.state, state = _l === void 0 ? 'normal' : _l, tabIndex = _a.tabIndex, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
46
|
+
var _m = (0, react_1.useState)(false), isTooltipOpen = _m[0], setIsTooltipOpen = _m[1];
|
|
47
|
+
var handleTooltipToggle = function (value) {
|
|
48
|
+
setIsTooltipOpen(value);
|
|
49
|
+
};
|
|
43
50
|
var handleClick = function (e) {
|
|
44
51
|
if (onClick) {
|
|
45
52
|
onClick(e);
|
|
@@ -73,7 +80,7 @@ function IconButton(_a) {
|
|
|
73
80
|
}
|
|
74
81
|
return iconStateColorObj[fillType];
|
|
75
82
|
};
|
|
76
|
-
return ((0, jsx_runtime_1.
|
|
83
|
+
return ((0, jsx_runtime_1.jsxs)(S_IconButton, __assign({ "x-pds-name": "IconButton", "x-pds-element-type": "component", "x-pds-device-type": "desktop", fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', tabIndex: tabIndex, onClick: handleClick, onMouseDown: handleMouseDown, onMouseEnter: function () { return tooltipText && handleTooltipToggle(true); }, onMouseLeave: function () { return tooltipText && handleTooltipToggle(false); } }, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: iconName, size: iconSize, colorKey: IconColorSelect(), fillType: iconFillType }, void 0), tooltipText && isTooltipOpen && ((0, jsx_runtime_1.jsx)(S_TooltipWrapper, __assign({ className: "TooltipWrapper", isTooltipOpen: isTooltipOpen, tooltipPosition: tooltipPosition, baseSize: baseSize }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: tooltipText, colorOverride: "ui_cpnt_textlabel_button_tooltip", styleTheme: "caption2Regular", colorTheme: "sysTextSecondary" }, void 0) }), void 0))] }), void 0));
|
|
77
84
|
}
|
|
78
85
|
var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
79
86
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
@@ -81,7 +88,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
81
88
|
? ''
|
|
82
89
|
: theme.ui_cpnt_button_fill_base_disabled;
|
|
83
90
|
});
|
|
84
|
-
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n
|
|
91
|
+
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n background-color: transparent;\n border-radius: inherit;\n content: '';\n height: 100%;\n position: absolute;\n width: 100%;\n ", "\n }\n\n &:hover:enabled::before {\n background-color: ", ";\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n background-color: transparent;\n border-radius: inherit;\n content: '';\n height: 100%;\n position: absolute;\n width: 100%;\n ", "\n }\n\n &:hover:enabled::before {\n background-color: ", ";\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
85
92
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
86
93
|
return baseColorKey ? theme[baseColorKey] : theme.ui_cpnt_button_fill_base_primary;
|
|
87
94
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
@@ -172,5 +179,46 @@ var iconButtonStyle = (0, styled_components_1.css)(templateObject_12 || (templat
|
|
|
172
179
|
}[baseSize];
|
|
173
180
|
});
|
|
174
181
|
var S_IconButton = styled_components_1.default.button(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), iconButtonStyle);
|
|
182
|
+
var tooltipPositionSpacing = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
183
|
+
var baseSize = _a.baseSize;
|
|
184
|
+
return baseSize &&
|
|
185
|
+
{
|
|
186
|
+
xxlarge: constants_1.TOOLTIP_POSITION_SPACING.xxlarge,
|
|
187
|
+
large: constants_1.TOOLTIP_POSITION_SPACING.large,
|
|
188
|
+
medium: constants_1.TOOLTIP_POSITION_SPACING.medium,
|
|
189
|
+
small: constants_1.TOOLTIP_POSITION_SPACING.small,
|
|
190
|
+
xsmall: constants_1.TOOLTIP_POSITION_SPACING.xsmall
|
|
191
|
+
}[baseSize];
|
|
192
|
+
});
|
|
193
|
+
var tooltipLeftTop = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n bottom: ", ";\n right: 0;\n"], ["\n bottom: ", ";\n right: 0;\n"])), tooltipPositionSpacing);
|
|
194
|
+
var tooltipLeftBottom = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n right: 0;\n top: ", ";\n"], ["\n right: 0;\n top: ", ";\n"])), tooltipPositionSpacing);
|
|
195
|
+
var tooltipCenterTop = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n bottom: ", ";\n"], ["\n bottom: ", ";\n"])), tooltipPositionSpacing);
|
|
196
|
+
var tooltipCenterBottom = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n top: ", ";\n"], ["\n top: ", ";\n"])), tooltipPositionSpacing);
|
|
197
|
+
var tooltipRightTop = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n bottom: ", ";\n left: 0;\n"], ["\n bottom: ", ";\n left: 0;\n"])), tooltipPositionSpacing);
|
|
198
|
+
var tooltipRightBottom = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n left: 0;\n top: ", ";\n"], ["\n left: 0;\n top: ", ";\n"])), tooltipPositionSpacing);
|
|
199
|
+
var S_TooltipWrapper = styled_components_1.default.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding: ", ";\n position: absolute;\n width: max-content;\n z-index: 400;\n\n ", ";\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding: ", ";\n position: absolute;\n width: max-content;\n z-index: 400;\n\n ", ";\n\n ", "\n"])), function (_a) {
|
|
200
|
+
var theme = _a.theme;
|
|
201
|
+
return theme.ui_cpnt_button_tooltip_base;
|
|
202
|
+
}, function (_a) {
|
|
203
|
+
var theme = _a.theme;
|
|
204
|
+
return theme.spacing.spacingA;
|
|
205
|
+
}, function (_a) {
|
|
206
|
+
var theme = _a.theme;
|
|
207
|
+
return theme.spacing.spacingA + " " + theme.spacing.spacingB;
|
|
208
|
+
}, function (_a) {
|
|
209
|
+
var isTooltipOpen = _a.isTooltipOpen;
|
|
210
|
+
return !isTooltipOpen && 'display: none';
|
|
211
|
+
}, function (_a) {
|
|
212
|
+
var tooltipPosition = _a.tooltipPosition;
|
|
213
|
+
return tooltipPosition &&
|
|
214
|
+
{
|
|
215
|
+
left_top: tooltipLeftTop,
|
|
216
|
+
left_bottom: tooltipLeftBottom,
|
|
217
|
+
center_top: tooltipCenterTop,
|
|
218
|
+
center_bottom: tooltipCenterBottom,
|
|
219
|
+
right_top: tooltipRightTop,
|
|
220
|
+
right_bottom: tooltipRightBottom
|
|
221
|
+
}[tooltipPosition];
|
|
222
|
+
});
|
|
175
223
|
exports.default = IconButton;
|
|
176
|
-
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;
|
|
224
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const ICON_BUTTON_SIZE: {
|
|
2
|
+
xxlarge: number;
|
|
3
|
+
large: number;
|
|
4
|
+
medium: number;
|
|
5
|
+
small: number;
|
|
6
|
+
xsmall: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const ICON_BUTTON_TOOLTIP_SPACING = 8;
|
|
9
|
+
export declare const TOOLTIP_POSITION_SPACING: {
|
|
10
|
+
xxlarge: string;
|
|
11
|
+
large: string;
|
|
12
|
+
medium: string;
|
|
13
|
+
small: string;
|
|
14
|
+
xsmall: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOOLTIP_POSITION_SPACING = exports.ICON_BUTTON_TOOLTIP_SPACING = exports.ICON_BUTTON_SIZE = void 0;
|
|
4
|
+
exports.ICON_BUTTON_SIZE = {
|
|
5
|
+
xxlarge: 96,
|
|
6
|
+
large: 48,
|
|
7
|
+
medium: 40,
|
|
8
|
+
small: 32,
|
|
9
|
+
xsmall: 24
|
|
10
|
+
};
|
|
11
|
+
exports.ICON_BUTTON_TOOLTIP_SPACING = 8;
|
|
12
|
+
// NOTE - iconSize 크기에 따라 위치를 이동시켜주고, iconButtonSize에 간격까지 8px을 추가해준 값입니다.(IconButton과 tooltip의 간격)
|
|
13
|
+
exports.TOOLTIP_POSITION_SPACING = {
|
|
14
|
+
xxlarge: "calc(" + exports.ICON_BUTTON_SIZE.xxlarge + "px + " + exports.ICON_BUTTON_TOOLTIP_SPACING + "px)",
|
|
15
|
+
large: "calc(" + exports.ICON_BUTTON_SIZE.large + "px + " + exports.ICON_BUTTON_TOOLTIP_SPACING + "px)",
|
|
16
|
+
medium: "calc(" + exports.ICON_BUTTON_SIZE.medium + "px + " + exports.ICON_BUTTON_TOOLTIP_SPACING + "px)",
|
|
17
|
+
small: "calc(" + exports.ICON_BUTTON_SIZE.small + "px + " + exports.ICON_BUTTON_TOOLTIP_SPACING + "px)",
|
|
18
|
+
xsmall: "calc(" + exports.ICON_BUTTON_SIZE.xsmall + "px + " + exports.ICON_BUTTON_TOOLTIP_SPACING + "px)"
|
|
19
|
+
};
|
|
@@ -32,6 +32,8 @@ export declare type TextFieldProps = {
|
|
|
32
32
|
min?: number;
|
|
33
33
|
customWidth?: string;
|
|
34
34
|
autoComplete?: string;
|
|
35
|
+
numberStepperMode?: 'none' | 'use';
|
|
36
|
+
numberStep?: number;
|
|
35
37
|
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
36
38
|
onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
37
39
|
onClickIBtn1?: () => void;
|
|
@@ -41,5 +43,5 @@ export declare type TextFieldProps = {
|
|
|
41
43
|
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
42
44
|
onTarget?: () => void;
|
|
43
45
|
};
|
|
44
|
-
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, colorTheme, max, maxLength, min, customWidth, autoComplete, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
|
|
46
|
+
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, colorTheme, max, maxLength, min, customWidth, autoComplete, numberStepperMode, numberStep, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
|
|
45
47
|
export default TextField;
|