pds-dev-kit-web-test 0.3.54 → 0.3.56
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/Sales.js +1 -1
- package/dist/src/common/assets/icons/fill/Shoppingbag.js +1 -1
- package/dist/src/common/assets/icons/fill/StarShaped.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/StarShaped.js +30 -0
- package/dist/src/common/assets/icons/fill/Target.js +1 -1
- package/dist/src/common/assets/icons/fill/Xmark.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Xmark.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +2 -0
- package/dist/src/common/assets/icons/fill/index.js +5 -1
- package/dist/src/common/assets/icons/line/StarShaped.d.ts +4 -0
- package/dist/src/common/assets/icons/line/StarShaped.js +30 -0
- package/dist/src/common/assets/icons/line/Ticket.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Ticket.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +2 -0
- package/dist/src/common/assets/icons/line/index.js +4 -0
- package/dist/src/common/hooks/index.d.ts +0 -1
- package/dist/src/common/hooks/index.js +1 -5
- package/dist/src/common/styles/colorSet/UIColor.json +2 -1
- package/dist/src/common/styles/colorSet/index.d.ts +1 -0
- package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
- package/dist/src/common/types/components.d.ts +1 -0
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.js +17 -5
- package/dist/src/desktop/components/DesktopAlertDialog/DesktopAlertDialog.js +13 -8
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +1 -1
- package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.d.ts +2 -1
- package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.js +20 -9
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +15 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +19 -2
- package/package.json +1 -1
- package/release-note.md +5 -5
- package/dist/src/common/hooks/useShortcutKey/ShortcutKeyProvider.d.ts +0 -27
- package/dist/src/common/hooks/useShortcutKey/ShortcutKeyProvider.js +0 -74
- package/dist/src/common/hooks/useShortcutKey/constants.d.ts +0 -2
- package/dist/src/common/hooks/useShortcutKey/constants.js +0 -25
- package/dist/src/common/hooks/useShortcutKey/index.d.ts +0 -3
- package/dist/src/common/hooks/useShortcutKey/index.js +0 -8
- package/dist/src/common/hooks/useShortcutKey/types.d.ts +0 -27
- package/dist/src/common/hooks/useShortcutKey/types.js +0 -2
- package/dist/src/common/hooks/useShortcutKey/useShortcutKey.d.ts +0 -3
- package/dist/src/common/hooks/useShortcutKey/useShortcutKey.js +0 -62
- package/dist/src/common/hooks/useShortcutKey/validators.d.ts +0 -20
- package/dist/src/common/hooks/useShortcutKey/validators.js +0 -150
|
@@ -25,6 +25,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
26
|
var Sales = function (_a) {
|
|
27
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)("path", { fill: color, fillRule: "evenodd", d: "M18.
|
|
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)("path", { fill: color, fillRule: "evenodd", d: "M18.6797,17.7361 C18.6797,18.2881 18.2317,18.7361 17.6797,18.7361 C17.1277,18.7361 16.6797,18.2881 16.6797,17.7361 L16.6797,11.7651 C16.6797,11.2131 17.1277,10.7651 17.6797,10.7651 C18.2317,10.7651 18.6797,11.2131 18.6797,11.7651 L18.6797,17.7361 Z M14.8927,17.7361 C14.8927,18.2881 14.4457,18.7361 13.8927,18.7361 C13.3407,18.7361 12.8927,18.2881 12.8927,17.7361 L12.8927,14.9951 C12.8927,14.4431 13.3407,13.9951 13.8927,13.9951 C14.4457,13.9951 14.8927,14.4431 14.8927,14.9951 L14.8927,17.7361 Z M11.1067,17.7361 C11.1067,18.2881 10.6587,18.7361 10.1067,18.7361 C9.5547,18.7361 9.1067,18.2881 9.1067,17.7361 L9.1067,13.9651 C9.1067,13.4131 9.5547,12.9651 10.1067,12.9651 C10.6587,12.9651 11.1067,13.4131 11.1067,13.9651 L11.1067,17.7361 Z M7.3207,17.7361 C7.3207,18.2881 6.8727,18.7361 6.3207,18.7361 C5.7677,18.7361 5.3207,18.2881 5.3207,17.7361 L5.3207,16.0751 C5.3207,15.5231 5.7677,15.0751 6.3207,15.0751 C6.8727,15.0751 7.3207,15.5231 7.3207,16.0751 L7.3207,17.7361 Z M5.6337,11.5651 L9.4537,7.7281 C9.7517,7.4291 10.2087,7.3591 10.5827,7.5501 L13.6617,9.1341 L16.9727,5.6021 C17.3397,5.2111 17.9517,5.1921 18.3417,5.5571 C18.7317,5.9231 18.7517,6.5361 18.3867,6.9261 L14.5757,10.9911 C14.2787,11.3071 13.8097,11.3881 13.4257,11.1911 L10.3267,9.5961 L7.0067,12.9311 C6.8177,13.1211 6.5687,13.2161 6.3207,13.2161 C6.0737,13.2161 5.8257,13.1221 5.6367,12.9341 C5.2577,12.5571 5.2567,11.9441 5.6337,11.5651 L5.6337,11.5651 Z M18.6337,2.7501 L5.3667,2.7501 C3.5067,2.7501 1.9997,4.2571 1.9997,6.1161 L1.9997,17.8841 C1.9997,19.7431 3.5067,21.2501 5.3667,21.2501 L18.6337,21.2501 C20.4927,21.2501 21.9997,19.7431 21.9997,17.8841 L21.9997,6.1161 C21.9997,4.2571 20.4927,2.7501 18.6337,2.7501 L18.6337,2.7501 Z" }) })));
|
|
29
29
|
};
|
|
30
30
|
exports.default = Sales;
|
|
@@ -25,6 +25,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
26
|
var Shoppingbag = function (_a) {
|
|
27
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.
|
|
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)("path", { fill: color, fillRule: "evenodd", d: "M8.1495,7.0244 C8.1495,4.8654 9.9055,3.1084 12.0645,3.1084 C14.2235,3.1084 15.9805,4.8654 15.9805,7.0244 L15.9805,7.7374 L8.1495,7.7374 L8.1495,7.0244 Z M21.3125,8.5594 C20.9015,8.0374 20.2845,7.7374 19.6205,7.7374 L17.4805,7.7374 L17.4805,7.0244 C17.4805,4.0384 15.0505,1.6084 12.0645,1.6084 C9.0785,1.6084 6.6495,4.0384 6.6495,7.0244 L6.6495,7.7374 L4.3795,7.7374 C3.7145,7.7374 3.0985,8.0374 2.6875,8.5594 C2.2775,9.0814 2.1315,9.7514 2.2885,10.3974 L4.6615,20.1584 C4.8975,21.1254 5.7565,21.8014 6.7525,21.8014 L17.2475,21.8014 C18.2435,21.8014 19.1025,21.1254 19.3375,20.1584 L21.7115,10.3974 C21.8685,9.7514 21.7225,9.0814 21.3125,8.5594 L21.3125,8.5594 Z" }) })));
|
|
29
29
|
};
|
|
30
30
|
exports.default = Shoppingbag;
|
|
@@ -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 StarShaped = 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)("path", { fill: color, fillRule: "evenodd", d: "M16.3459,21.1607 C16.0679,21.1607 15.7869,21.1137 15.5169,21.0177 L12.1589,19.8237 C12.0559,19.7857 11.9449,19.7867 11.8419,19.8227 L8.4829,21.0177 C7.7159,21.2897 6.8609,21.1677 6.1999,20.6877 C5.5399,20.2077 5.1589,19.4347 5.1819,18.6187 L5.2799,15.0557 C5.2829,14.9477 5.2479,14.8397 5.1819,14.7537 L3.0079,11.9287 C2.5109,11.2827 2.3639,10.4327 2.6159,9.6567 C2.8679,8.8797 3.4859,8.2787 4.2689,8.0487 L7.6879,7.0407 C7.7919,7.0097 7.8839,6.9427 7.9449,6.8537 L9.9599,3.9127 C10.4209,3.2407 11.1829,2.8387 11.9999,2.8377 L11.9999,2.8377 C12.8159,2.8377 13.5789,3.2397 14.0399,3.9127 L16.0549,6.8537 C16.1169,6.9437 16.2079,7.0097 16.3129,7.0407 L19.7309,8.0487 C20.5139,8.2787 21.1319,8.8797 21.3839,9.6557 C21.6369,10.4317 21.4899,11.2817 20.9919,11.9287 L18.8189,14.7537 C18.7519,14.8397 18.7179,14.9467 18.7209,15.0557 L18.8179,18.6187 C18.8409,19.4337 18.4599,20.2077 17.8009,20.6877 C17.3719,20.9987 16.8619,21.1607 16.3459,21.1607" }) })));
|
|
29
|
+
};
|
|
30
|
+
exports.default = StarShaped;
|
|
@@ -25,6 +25,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
26
|
var Target = function (_a) {
|
|
27
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.
|
|
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)("path", { fill: color, fillRule: "evenodd", d: "M11.1384,3.8672 C11.5734,3.8672 12.0324,3.9072 12.5394,3.9872 C13.1884,4.0902 13.6304,4.7002 13.5274,5.3482 C13.4244,5.9972 12.8164,6.4432 12.1664,6.3372 C11.7834,6.2762 11.4474,6.2462 11.1384,6.2462 C7.5604,6.2462 4.6504,9.1582 4.6504,12.7352 C4.6504,16.3132 7.5604,19.2242 11.1384,19.2242 C14.7164,19.2242 17.6274,16.3132 17.6274,12.7352 C17.6274,12.4242 17.5974,12.0882 17.5364,11.7092 C17.4324,11.0602 17.8744,10.4502 18.5234,10.3462 C19.1704,10.2392 19.7824,10.6842 19.8864,11.3332 C19.9674,11.8382 20.0064,12.2972 20.0064,12.7352 C20.0064,17.6252 16.0284,21.6032 11.1384,21.6032 C6.2484,21.6032 2.2704,17.6252 2.2704,12.7352 C2.2704,7.8462 6.2484,3.8672 11.1384,3.8672 Z M18.58,1.5503 C18.895,1.2343 19.435,1.4473 19.449,1.8933 L19.529,4.3443 L21.98,4.4243 C22.426,4.4383 22.639,4.9783 22.324,5.2943 L19.48,8.1383 L17.223,8.0653 L15.421,9.8663 C15.972,10.6873 16.294,11.6733 16.294,12.7353 C16.294,15.5823 13.986,17.8913 11.138,17.8913 C8.291,17.8913 5.983,15.5823 5.983,12.7353 C5.983,9.8883 8.291,7.5793 11.138,7.5793 C12.2,7.5793 13.187,7.9023 14.007,8.4523 L15.809,6.6513 L15.735,4.3943 Z M11.138,10.7433 C10.038,10.7433 9.146,11.6353 9.146,12.7353 C9.146,13.8353 10.038,14.7273 11.138,14.7273 C12.239,14.7273 13.131,13.8353 13.131,12.7353 C13.131,12.5593 13.101,12.3923 13.058,12.2293 L12.195,13.0923 C12,13.2873 11.744,13.3853 11.488,13.3853 C11.233,13.3853 10.976,13.2873 10.781,13.0923 C10.391,12.7013 10.391,12.0693 10.781,11.6783 L11.644,10.8153 C11.482,10.7723 11.314,10.7433 11.138,10.7433 Z" }) })));
|
|
29
29
|
};
|
|
30
30
|
exports.default = Target;
|
|
@@ -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 Xmark = 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)("path", { fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "3", d: "M5.5,5.5 L18.5,18.5 M18.5,5.5 L5.5,18.5" }) })));
|
|
29
|
+
};
|
|
30
|
+
exports.default = Xmark;
|
|
@@ -104,6 +104,7 @@ declare const fillIcons: {
|
|
|
104
104
|
readonly ic_speaker_wave_2: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
105
105
|
readonly ic_split_screen: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
106
106
|
readonly ic_star: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
107
|
+
readonly ic_star_shaped: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
107
108
|
readonly ic_subscribers: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
108
109
|
readonly ic_target: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
109
110
|
readonly ic_text: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
@@ -135,5 +136,6 @@ declare const fillIcons: {
|
|
|
135
136
|
readonly ic_video_subtitle: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
136
137
|
readonly ic_video_type: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
137
138
|
readonly ic_vodplus: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
139
|
+
readonly ic_xmark: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
138
140
|
};
|
|
139
141
|
export default fillIcons;
|
|
@@ -107,6 +107,7 @@ var SpeakerWave1_1 = __importDefault(require("./SpeakerWave1"));
|
|
|
107
107
|
var SpeakerWave2_1 = __importDefault(require("./SpeakerWave2"));
|
|
108
108
|
var SplitScreen_1 = __importDefault(require("./SplitScreen"));
|
|
109
109
|
var Star_1 = __importDefault(require("./Star"));
|
|
110
|
+
var StarShaped_1 = __importDefault(require("./StarShaped"));
|
|
110
111
|
var Subscribers_1 = __importDefault(require("./Subscribers"));
|
|
111
112
|
var Target_1 = __importDefault(require("./Target"));
|
|
112
113
|
var Text_1 = __importDefault(require("./Text"));
|
|
@@ -138,6 +139,7 @@ var VideoResolution_1 = __importDefault(require("./VideoResolution"));
|
|
|
138
139
|
var VideoSubtitle_1 = __importDefault(require("./VideoSubtitle"));
|
|
139
140
|
var VideoType_1 = __importDefault(require("./VideoType"));
|
|
140
141
|
var Vodplus_1 = __importDefault(require("./Vodplus"));
|
|
142
|
+
var Xmark_1 = __importDefault(require("./Xmark"));
|
|
141
143
|
var fillIcons = {
|
|
142
144
|
ic_accordion: Accordion_1.default,
|
|
143
145
|
ic_align_bottom: AlignBottom_1.default,
|
|
@@ -243,6 +245,7 @@ var fillIcons = {
|
|
|
243
245
|
ic_speaker_wave_2: SpeakerWave2_1.default,
|
|
244
246
|
ic_split_screen: SplitScreen_1.default,
|
|
245
247
|
ic_star: Star_1.default,
|
|
248
|
+
ic_star_shaped: StarShaped_1.default,
|
|
246
249
|
ic_subscribers: Subscribers_1.default,
|
|
247
250
|
ic_target: Target_1.default,
|
|
248
251
|
ic_text: Text_1.default,
|
|
@@ -273,6 +276,7 @@ var fillIcons = {
|
|
|
273
276
|
ic_video_resolution: VideoResolution_1.default,
|
|
274
277
|
ic_video_subtitle: VideoSubtitle_1.default,
|
|
275
278
|
ic_video_type: VideoType_1.default,
|
|
276
|
-
ic_vodplus: Vodplus_1.default
|
|
279
|
+
ic_vodplus: Vodplus_1.default,
|
|
280
|
+
ic_xmark: Xmark_1.default
|
|
277
281
|
};
|
|
278
282
|
exports.default = fillIcons;
|
|
@@ -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 StarShaped = 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)("path", { fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M13.2153,4.4787 L15.2303,7.4187 C15.4223,7.6987 15.7043,7.9037 16.0293,7.9997 L19.4483,9.0077 C20.4413,9.2997 20.8313,10.4987 20.1993,11.3187 L18.0263,14.1447 C17.8193,14.4127 17.7113,14.7447 17.7203,15.0837 L17.8183,18.6467 C17.8473,19.6817 16.8273,20.4217 15.8523,20.0757 L12.4933,18.8807 C12.1743,18.7677 11.8253,18.7677 11.5063,18.8807 L8.1473,20.0757 C7.1723,20.4217 6.1523,19.6817 6.1813,18.6467 L6.2793,15.0837 C6.2883,14.7447 6.1813,14.4127 5.9743,14.1447 L3.8003,11.3187 C3.1693,10.4987 3.5583,9.2997 4.5513,9.0077 L7.9703,7.9997 C8.2963,7.9037 8.5783,7.6987 8.7693,7.4187 L10.7843,4.4787 C11.3703,3.6247 12.6303,3.6247 13.2153,4.4787 Z" }) })));
|
|
29
|
+
};
|
|
30
|
+
exports.default = StarShaped;
|
|
@@ -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 Ticket = 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.jsxs)("g", __assign({ fill: "none", fillRule: "evenodd" }, { children: [(0, jsx_runtime_1.jsx)("path", { stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M2.5,17.4929 C2.5,18.5979 3.395,19.4929 4.5,19.4929 L19.5,19.4929 C20.605,19.4929 21.5,18.5979 21.5,17.4929 L21.5,14.8589 C19.921,14.8589 18.641,13.5789 18.641,11.9999 C18.641,10.4209 19.921,9.1409 21.5,9.1409 L21.5,6.5069 C21.5,5.4029 20.605,4.5069 19.5,4.5069 L4.5,4.5069 C3.395,4.5069 2.5,5.4029 2.5,6.5069 L2.5,17.4929 Z M15.7509,6.9942 L15.7509,8.5032 M15.7509,11.2453 L15.7509,12.7543 M15.7509,15.4963 L15.7509,17.0053" }), (0, jsx_runtime_1.jsx)("path", { fill: color, d: "M9.6975,8.6638 L10.5855,9.9598 C10.6695,10.0828 10.7945,10.1728 10.9375,10.2148 L12.4445,10.6598 C12.8815,10.7878 13.0535,11.3168 12.7755,11.6778 L11.8175,12.9228 C11.7265,13.0408 11.6785,13.1868 11.6825,13.3368 L11.7255,14.9068 C11.7385,15.3628 11.2895,15.6888 10.8595,15.5358 L9.3795,15.0098 C9.2385,14.9598 9.0855,14.9598 8.9445,15.0098 L7.4645,15.5358 C7.0345,15.6888 6.5855,15.3628 6.5985,14.9068 L6.6415,13.3368 C6.6455,13.1868 6.5975,13.0408 6.5065,12.9228 L5.5485,11.6778 C5.2705,11.3168 5.4425,10.7878 5.8795,10.6598 L7.3865,10.2148 C7.5295,10.1728 7.6545,10.0828 7.7385,9.9598 L8.6265,8.6638 C8.8845,8.2878 9.4395,8.2878 9.6975,8.6638" })] })) })));
|
|
29
|
+
};
|
|
30
|
+
exports.default = Ticket;
|
|
@@ -222,6 +222,7 @@ declare const lineIcons: {
|
|
|
222
222
|
readonly ic_speaker_wave_1: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
223
223
|
readonly ic_speaker_wave_2: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
224
224
|
readonly ic_standard_banner: ({ color, ...rest }: import("../IconType").default) => JSX.Element;
|
|
225
|
+
readonly ic_star_shaped: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
225
226
|
readonly ic_subscribers: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
226
227
|
readonly ic_success: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
227
228
|
readonly ic_target: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
@@ -236,6 +237,7 @@ declare const lineIcons: {
|
|
|
236
237
|
readonly ic_text_align_middle: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
237
238
|
readonly ic_text_align_right: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
238
239
|
readonly ic_text_align_top: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
240
|
+
readonly ic_ticket: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
239
241
|
readonly ic_time: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
240
242
|
readonly ic_toggle_down: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
241
243
|
readonly ic_toggle_up: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
@@ -225,6 +225,7 @@ var SpeakerOff_1 = __importDefault(require("./SpeakerOff"));
|
|
|
225
225
|
var SpeakerWave1_1 = __importDefault(require("./SpeakerWave1"));
|
|
226
226
|
var SpeakerWave2_1 = __importDefault(require("./SpeakerWave2"));
|
|
227
227
|
var StandardBanner_1 = __importDefault(require("./StandardBanner"));
|
|
228
|
+
var StarShaped_1 = __importDefault(require("./StarShaped"));
|
|
228
229
|
var Subscribers_1 = __importDefault(require("./Subscribers"));
|
|
229
230
|
var Success_1 = __importDefault(require("./Success"));
|
|
230
231
|
var Target_1 = __importDefault(require("./Target"));
|
|
@@ -239,6 +240,7 @@ var TextAlignLeft_1 = __importDefault(require("./TextAlignLeft"));
|
|
|
239
240
|
var TextAlignMiddle_1 = __importDefault(require("./TextAlignMiddle"));
|
|
240
241
|
var TextAlignRight_1 = __importDefault(require("./TextAlignRight"));
|
|
241
242
|
var TextAlignTop_1 = __importDefault(require("./TextAlignTop"));
|
|
243
|
+
var Ticket_1 = __importDefault(require("./Ticket"));
|
|
242
244
|
var Time_1 = __importDefault(require("./Time"));
|
|
243
245
|
var ToggleDown_1 = __importDefault(require("./ToggleDown"));
|
|
244
246
|
var ToggleUp_1 = __importDefault(require("./ToggleUp"));
|
|
@@ -496,6 +498,7 @@ var lineIcons = {
|
|
|
496
498
|
ic_speaker_wave_1: SpeakerWave1_1.default,
|
|
497
499
|
ic_speaker_wave_2: SpeakerWave2_1.default,
|
|
498
500
|
ic_standard_banner: StandardBanner_1.default,
|
|
501
|
+
ic_star_shaped: StarShaped_1.default,
|
|
499
502
|
ic_subscribers: Subscribers_1.default,
|
|
500
503
|
ic_success: Success_1.default,
|
|
501
504
|
ic_target: Target_1.default,
|
|
@@ -510,6 +513,7 @@ var lineIcons = {
|
|
|
510
513
|
ic_text_align_middle: TextAlignMiddle_1.default,
|
|
511
514
|
ic_text_align_right: TextAlignRight_1.default,
|
|
512
515
|
ic_text_align_top: TextAlignTop_1.default,
|
|
516
|
+
ic_ticket: Ticket_1.default,
|
|
513
517
|
ic_time: Time_1.default,
|
|
514
518
|
ic_toggle_down: ToggleDown_1.default,
|
|
515
519
|
ic_toggle_up: ToggleUp_1.default,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { useShortcutKey, ShortcutKeyProvider, useShortcutKeyContext } from './useShortcutKey';
|
|
2
1
|
export { default as useAbsolutePositioner } from './useAbsolutePositioner';
|
|
3
2
|
export { default as useDetectOverflow } from './useDetectOverflow';
|
|
4
3
|
export { default as usePrevious } from './usePrevious';
|
|
@@ -3,11 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.usePrevious = exports.useDetectOverflow = exports.useAbsolutePositioner =
|
|
7
|
-
var useShortcutKey_1 = require("./useShortcutKey");
|
|
8
|
-
Object.defineProperty(exports, "useShortcutKey", { enumerable: true, get: function () { return useShortcutKey_1.useShortcutKey; } });
|
|
9
|
-
Object.defineProperty(exports, "ShortcutKeyProvider", { enumerable: true, get: function () { return useShortcutKey_1.ShortcutKeyProvider; } });
|
|
10
|
-
Object.defineProperty(exports, "useShortcutKeyContext", { enumerable: true, get: function () { return useShortcutKey_1.useShortcutKeyContext; } });
|
|
6
|
+
exports.usePrevious = exports.useDetectOverflow = exports.useAbsolutePositioner = void 0;
|
|
11
7
|
var useAbsolutePositioner_1 = require("./useAbsolutePositioner");
|
|
12
8
|
Object.defineProperty(exports, "useAbsolutePositioner", { enumerable: true, get: function () { return __importDefault(useAbsolutePositioner_1).default; } });
|
|
13
9
|
var useDetectOverflow_1 = require("./useDetectOverflow");
|
|
@@ -850,5 +850,6 @@
|
|
|
850
850
|
"ui_sw_sidebar_divider_vertical": "sys_sw_sidebar_divider_vertical",
|
|
851
851
|
"ui_113": "sys_cpnt_sheet_base_13",
|
|
852
852
|
"ui_114": "sys_component_base_26",
|
|
853
|
-
"ui_115": "sys_cpnt_sheet_base_14"
|
|
853
|
+
"ui_115": "sys_cpnt_sheet_base_14",
|
|
854
|
+
"ui_116": "sys_kakao"
|
|
854
855
|
}
|
|
@@ -17,6 +17,7 @@ export type ContextMenuItemValueOption = {
|
|
|
17
17
|
iconName?: FillIconNameKeys | LineIconNameKeys;
|
|
18
18
|
iconFillType?: 'fill' | 'line';
|
|
19
19
|
fontWeight?: 'bold' | 'regular';
|
|
20
|
+
descText?: PDSTextType;
|
|
20
21
|
};
|
|
21
22
|
export type DropdownValueOption = ContextMenuItemValueOption & {
|
|
22
23
|
state?: 'normal' | 'disabled';
|
|
@@ -65,15 +65,25 @@ function ContextMenuItem(_a) {
|
|
|
65
65
|
if (state === 'disabled') {
|
|
66
66
|
textColorTheme = 'sysTextTertiary';
|
|
67
67
|
}
|
|
68
|
+
var descTextColorTheme;
|
|
69
|
+
if (isSelected) {
|
|
70
|
+
descTextColorTheme = 'sysTextTertiary';
|
|
71
|
+
}
|
|
72
|
+
if (!isSelected && state === 'normal') {
|
|
73
|
+
descTextColorTheme = 'sysTextTertiary';
|
|
74
|
+
}
|
|
75
|
+
if (state === 'disabled') {
|
|
76
|
+
descTextColorTheme = 'sysTextTertiary';
|
|
77
|
+
}
|
|
68
78
|
var getIconColorKey = function () {
|
|
69
79
|
if (state === 'disabled') {
|
|
70
80
|
return 'ui_cpnt_dropdown_display_icon_disabled';
|
|
71
81
|
}
|
|
72
82
|
return 'ui_cpnt_dropdown_display_icon_normal';
|
|
73
83
|
};
|
|
74
|
-
return ((0, jsx_runtime_1.jsxs)(S_ContextMenuItem, __assign({ "x-pds-name": "ContextMenuItem", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, onClick: handleClick, selected: isSelected, disabled: state === 'disabled', displayType: displayType }, { children: [(displayType === 'icon_only' || displayType === 'icon_text') &&
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
return ((0, jsx_runtime_1.jsxs)(S_ContextMenuItem, __assign({ "x-pds-name": "ContextMenuItem", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, onClick: handleClick, selected: isSelected, disabled: state === 'disabled', displayType: displayType }, { children: [(0, jsx_runtime_1.jsxs)(S_LeftSide, { children: [(displayType === 'icon_only' || displayType === 'icon_text') &&
|
|
85
|
+
option &&
|
|
86
|
+
'iconName' in option && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { size: size === 'small' ? 20 : 24, iconName: option.iconName, fillType: option.iconFillType, colorKey: getIconColorKey() }), displayType === 'icon_text' && (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b", spacingType: "width" }), ' '] })), (displayType === 'text_only' || displayType === 'icon_text') && (option === null || option === void 0 ? void 0 : option.text) && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: option.text || text, styleTheme: option.fontWeight === 'bold' ? 'form2Bold' : 'form2Regular', singleLineMode: "use", colorTheme: textColorTheme, ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }))] }), (0, jsx_runtime_1.jsx)(S_RightSide, { children: (displayType === 'text_only' || displayType === 'icon_text') && (option === null || option === void 0 ? void 0 : option.descText) && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: option.descText, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: descTextColorTheme, ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all", textAlign: "right" })) })] })));
|
|
77
87
|
}
|
|
78
88
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n padding: 0 ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n padding: 0 ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
|
79
89
|
var theme = _a.theme;
|
|
@@ -87,7 +97,7 @@ var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 =
|
|
|
87
97
|
var theme = _a.theme;
|
|
88
98
|
return theme.spacing.spacingD;
|
|
89
99
|
});
|
|
90
|
-
var S_ContextMenuItem = styled_components_1.default.li(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n\n ", ";\n ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n\n ", ";\n ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
100
|
+
var S_ContextMenuItem = styled_components_1.default.li(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n\n ", ";\n ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n\n ", ";\n ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
91
101
|
var theme = _a.theme, selected = _a.selected;
|
|
92
102
|
return selected
|
|
93
103
|
? theme.ui_cpnt_contextmenu_menu_base_selected
|
|
@@ -107,5 +117,7 @@ var S_ContextMenuItem = styled_components_1.default.li(templateObject_4 || (temp
|
|
|
107
117
|
cursor: 'not-allowed'
|
|
108
118
|
};
|
|
109
119
|
});
|
|
120
|
+
var S_LeftSide = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n"], ["\n align-items: center;\n display: flex;\n"])));
|
|
121
|
+
var S_RightSide = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n"], ["\n align-items: center;\n display: flex;\n"])));
|
|
110
122
|
exports.default = ContextMenuItem;
|
|
111
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
123
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
@@ -21,7 +21,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
22
|
var react_1 = require("react");
|
|
23
23
|
var react_dom_1 = __importDefault(require("react-dom"));
|
|
24
|
-
var hooks_1 = require("../../../common/hooks");
|
|
25
24
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
26
25
|
var animationStyle_1 = require("../../../common/styles/movement/animationStyle");
|
|
27
26
|
var hybrid_1 = require("../../../hybrid");
|
|
@@ -44,12 +43,18 @@ function DesktopAlertDialog(_a) {
|
|
|
44
43
|
root.removeChild(container);
|
|
45
44
|
};
|
|
46
45
|
}, []);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
// Enter 키 입력 감지를 위한 useEffect
|
|
47
|
+
(0, react_1.useEffect)(function () {
|
|
48
|
+
var handleKeyDown = function (event) {
|
|
49
|
+
if (event.key === 'Enter') {
|
|
50
|
+
onClickTBtn1 && onClickTBtn1();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
54
|
+
return function () {
|
|
55
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
56
|
+
};
|
|
57
|
+
}, [onClickTBtn1]);
|
|
53
58
|
var btn1Mode = ['tbtn_amount1', 'tbtn_amount2', 'tbtn_amount3'];
|
|
54
59
|
var btn2Mode = ['tbtn_amount2', 'tbtn_amount3'];
|
|
55
60
|
var btn3Mode = ['tbtn_amount3'];
|
|
@@ -58,7 +63,7 @@ function DesktopAlertDialog(_a) {
|
|
|
58
63
|
return ((0, jsx_runtime_1.jsxs)(S_IconWrapper, { children: [iconMode === 'success' && ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: "ic_success", size: 72, colorKey: "ui_cpnt_alertdialog_icon_success" })), iconMode === 'error' && ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: "ic_error", size: 72, colorKey: "ui_cpnt_alertdialog_icon_error" })), iconMode === 'warning' && ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: "ic_warning", size: 72, colorKey: "ui_cpnt_alertdialog_icon_warning" })), iconMode === 'information' && ((0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: "ic_information", size: 72, colorKey: "ui_cpnt_alertdialog_icon_information" }))] }));
|
|
59
64
|
}
|
|
60
65
|
};
|
|
61
|
-
return react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)(
|
|
66
|
+
return react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_ModalOverlay, {}), (0, jsx_runtime_1.jsxs)(S_ModalWrapper, __assign({ "x-pds-name": "DesktopAlertDialog", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: [(0, jsx_runtime_1.jsxs)(S_UpperBox, { children: [icon(), iconMode !== 'none' && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }), (0, jsx_runtime_1.jsxs)(S_TextBox, { children: [titleText && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, colorTheme: "sysTextPrimary", styleTheme: "leadParaBold" })), titleText && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c" }), contentText && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: contentText, colorTheme: "sysTextPrimary", styleTheme: "body1Regular" }))] })] }), (0, jsx_runtime_1.jsxs)(S_Footer, { children: [btn3Mode.includes(btnMode) && tBtn3Text && ((0, jsx_runtime_1.jsx)(TextButton_1.TextButton, { text: tBtn3Text, state: tBtn3State, type: tBtn3Type, size: "large", onClick: onClickTBtn3, colorTheme: "grey_01" })), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }), btn2Mode.includes(btnMode) && tBtn2Text && ((0, jsx_runtime_1.jsx)(TextButton_1.TextButton, { text: tBtn2Text, state: tBtn2State, type: tBtn2Type, size: "large", onClick: onClickTBtn2, colorTheme: "grey_01" })), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }), btn1Mode.includes(btnMode) && tBtn1Text && ((0, jsx_runtime_1.jsx)(TextButton_1.TextButton, { text: tBtn1Text, state: tBtn1State, type: tBtn1Type, size: "large", onClick: onClickTBtn1 }))] })] }))] }), container);
|
|
62
67
|
}
|
|
63
68
|
var S_UpperBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n margin: ", ";\n"], ["\n display: flex;\n margin: ", ";\n"])), function (_a) {
|
|
64
69
|
var theme = _a.theme;
|
|
@@ -81,7 +81,7 @@ function DesktopHeaderBar(_a) {
|
|
|
81
81
|
var leftButton2Mode = function () {
|
|
82
82
|
switch (leftBtn2Mode) {
|
|
83
83
|
case 'mbtn': {
|
|
84
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: styleTheme === 'type_a' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }), (0, jsx_runtime_1.jsx)(MainButton_1.MainButton, { styleTheme: "secondary", size: "xsmall", text: leftBtn2Text, onClick: handleClickLeft2Btn })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }), (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { shapeType: "round", baseSize: "xsmall", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconFillType: "fill", iconSize: 16, iconName: "
|
|
84
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: styleTheme === 'type_a' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }), (0, jsx_runtime_1.jsx)(MainButton_1.MainButton, { styleTheme: "secondary", size: "xsmall", text: leftBtn2Text, onClick: handleClickLeft2Btn })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }), (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { shapeType: "round", baseSize: "xsmall", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconFillType: "fill", iconSize: 16, iconName: "ic_question", iconColorKey: "ui_cpnt_button_icon_primary", fillType: "fill", onClick: handleClickLeft2Btn })] })) }));
|
|
85
85
|
}
|
|
86
86
|
case 'tbtn': {
|
|
87
87
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }), (0, jsx_runtime_1.jsx)(TextButton_1.TextButton, { size: "xsmall", text: leftBtn2Text, onClick: handleClickLeft2Btn })] }));
|
|
@@ -12,7 +12,8 @@ export type DesktopTutorialModalInfoType = {
|
|
|
12
12
|
type DesktopTutorialModalProps = {
|
|
13
13
|
modalTitleText: PDSTextType;
|
|
14
14
|
infoArray: DesktopTutorialModalInfoType[];
|
|
15
|
+
sequenceMode?: 'use' | 'none';
|
|
15
16
|
onClose: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
16
17
|
};
|
|
17
|
-
declare function DesktopTutorialModal({ modalTitleText, infoArray, onClose }: DesktopTutorialModalProps): import("react").ReactPortal;
|
|
18
|
+
declare function DesktopTutorialModal({ modalTitleText, infoArray, sequenceMode, onClose }: DesktopTutorialModalProps): import("react").ReactPortal;
|
|
18
19
|
export default DesktopTutorialModal;
|
|
@@ -28,7 +28,7 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
28
28
|
var components_1 = require("../../components");
|
|
29
29
|
var Components_1 = require("./Components");
|
|
30
30
|
function DesktopTutorialModal(_a) {
|
|
31
|
-
var modalTitleText = _a.modalTitleText, infoArray = _a.infoArray, onClose = _a.onClose;
|
|
31
|
+
var modalTitleText = _a.modalTitleText, infoArray = _a.infoArray, _b = _a.sequenceMode, sequenceMode = _b === void 0 ? 'use' : _b, onClose = _a.onClose;
|
|
32
32
|
var container = (0, react_1.useState)(function () {
|
|
33
33
|
var modalRoot = document.createElement('div');
|
|
34
34
|
modalRoot.setAttribute('id', 'DesktopTutorialModal');
|
|
@@ -44,12 +44,7 @@ function DesktopTutorialModal(_a) {
|
|
|
44
44
|
root.removeChild(container);
|
|
45
45
|
};
|
|
46
46
|
}, []);
|
|
47
|
-
var
|
|
48
|
-
if (onClose) {
|
|
49
|
-
onClose(e);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
var _b = (0, react_1.useState)("".concat(infoArray[0].sideTabTitleText, "0")), selectedItem = _b[0], setSelectedItem = _b[1];
|
|
47
|
+
var _c = (0, react_1.useState)("".concat(infoArray[0].sideTabTitleText, "0")), selectedItem = _c[0], setSelectedItem = _c[1];
|
|
53
48
|
var sideTabTitleArray = infoArray.map(function (data, index) {
|
|
54
49
|
return {
|
|
55
50
|
title: data.sideTabTitleText,
|
|
@@ -57,15 +52,31 @@ function DesktopTutorialModal(_a) {
|
|
|
57
52
|
onClick: function () { return setSelectedItem("".concat(data.sideTabTitleText).concat(index)); }
|
|
58
53
|
};
|
|
59
54
|
});
|
|
55
|
+
var lastIndex = infoArray.length - 1;
|
|
56
|
+
var numberPattern = /\d+$/;
|
|
57
|
+
var selectedItemIndexPart = selectedItem.match(numberPattern);
|
|
58
|
+
var selectedItemIndex = selectedItemIndexPart && parseInt(selectedItemIndexPart[0], 10);
|
|
59
|
+
var handleClickNextBtn = function () {
|
|
60
|
+
if (selectedItemIndexPart) {
|
|
61
|
+
var incrementedIndex = parseInt(selectedItemIndexPart[0], 10) + 1;
|
|
62
|
+
var newSelectedItem = "".concat(infoArray[incrementedIndex].sideTabTitleText).concat(incrementedIndex);
|
|
63
|
+
setSelectedItem(newSelectedItem);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
var handleClickCloseBtn = function (e) {
|
|
67
|
+
if (onClose) {
|
|
68
|
+
onClose(e);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
60
71
|
return react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_ModalOverlay, {}), (0, jsx_runtime_1.jsxs)(S_ModalWrapper, __assign({ "x-pds-name": "DesktopTutorialModal", "x-pds-element-type": "panel", "x-pds-device-type": "desktop" }, { children: [(0, jsx_runtime_1.jsxs)(S_LeftPanel, { children: [(0, jsx_runtime_1.jsx)(S_Header, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: modalTitleText, lineLimit: 2, ellipsisMode: "use", styleTheme: "headingBold" }) }), (0, jsx_runtime_1.jsxs)(S_SideTabWrapper, { children: [(0, jsx_runtime_1.jsx)(Components_1.SideTab, { itemArray: sideTabTitleArray }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_i" })] })] }), infoArray
|
|
61
72
|
.filter(function (data, index) { return selectedItem === "".concat(data.sideTabTitleText).concat(index); })
|
|
62
|
-
.map(function (data, index) { return ((0, jsx_runtime_1.jsxs)(S_RightPanel, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: data.imageSrc, shapeType: "rectangle", width: "responsive", ratio: "16_9", scaleType: "cover", backgroundFillMode: "use" }), (0, jsx_runtime_1.jsxs)(S_InfoBox, { children: [(0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: data.infoTitleText ? data.infoTitleText : data.sideTabTitleText, styleTheme: "headingBold" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d" }), (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: data.infoDescText, styleTheme: "body2Regular", colorTheme: "sysTextSecondary" })] }), data.btnMode === 'btn_amount1' && ((0, jsx_runtime_1.jsx)(S_Footer, { children: (0, jsx_runtime_1.jsx)(components_1.MainButton, { text: data.btn1Text, type: "button", size: "medium", onClick: data.onClickBtn1 }) }))] }, "".concat(data.sideTabTitleText).concat(index))); }), (0, jsx_runtime_1.jsx)(S_IconButtonWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.IconButton, { shapeType: "circular", baseSize: "medium", baseColorKey: "ui_cpnt_button_fill_base_tutorialmodal", iconName: "ic_xmark", iconColorKey: "ui_cpnt_button_icon_white", onClick: handleClickCloseBtn }) })] }))] }), container);
|
|
73
|
+
.map(function (data, index) { return ((0, jsx_runtime_1.jsxs)(S_RightPanel, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: data.imageSrc, shapeType: "rectangle", width: "responsive", ratio: "16_9", scaleType: "cover", backgroundFillMode: "use" }), (0, jsx_runtime_1.jsxs)(S_InfoBox, { children: [(0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: data.infoTitleText ? data.infoTitleText : data.sideTabTitleText, styleTheme: "headingBold" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d" }), (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: data.infoDescText, styleTheme: "body2Regular", colorTheme: "sysTextSecondary" })] }), data.btnMode === 'btn_amount1' && ((0, jsx_runtime_1.jsx)(S_Footer, { children: (0, jsx_runtime_1.jsx)(components_1.MainButton, { text: data.btn1Text, type: "button", size: "medium", onClick: data.onClickBtn1 }) }))] }, "".concat(data.sideTabTitleText).concat(index))); }), (0, jsx_runtime_1.jsx)(S_IconButtonWrapper, { children: sequenceMode === 'use' && selectedItemIndex !== lastIndex ? ((0, jsx_runtime_1.jsx)(components_1.IconButton, { shapeType: "circular", baseSize: "medium", baseColorKey: "ui_cpnt_button_fill_base_tutorialmodal", iconName: "ic_arrow_right", iconColorKey: "ui_cpnt_button_icon_white", onClick: handleClickNextBtn })) : ((0, jsx_runtime_1.jsx)(components_1.IconButton, { shapeType: "circular", baseSize: "medium", baseColorKey: "ui_cpnt_button_fill_base_tutorialmodal", iconName: "ic_xmark", iconColorKey: "ui_cpnt_button_icon_white", onClick: handleClickCloseBtn })) })] }))] }), container);
|
|
63
74
|
}
|
|
64
75
|
var S_ModalOverlay = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n\n ", "\n"], ["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n\n ", "\n"])), function (_a) {
|
|
65
76
|
var theme = _a.theme;
|
|
66
77
|
return theme.ui_cpnt_modal_dimmed;
|
|
67
78
|
}, animationStyle_1.modalOverlayOnAni);
|
|
68
|
-
var S_ModalWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 24px;\n box-shadow: ", ";\n box-sizing: border-box;\n display: flex;\n
|
|
79
|
+
var S_ModalWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 24px;\n box-shadow: ", ";\n box-sizing: border-box;\n display: flex;\n height: 80vh;\n left: 50%;\n max-height: 720px;\n min-height: 560px;\n overflow: hidden;\n pointer-events: auto;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 960px;\n\n ", "\n"], ["\n background-color: ", ";\n border-radius: 24px;\n box-shadow: ", ";\n box-sizing: border-box;\n display: flex;\n height: 80vh;\n left: 50%;\n max-height: 720px;\n min-height: 560px;\n overflow: hidden;\n pointer-events: auto;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 960px;\n\n ", "\n"])), function (_a) {
|
|
69
80
|
var theme = _a.theme;
|
|
70
81
|
return theme.ui_cpnt_modal_base;
|
|
71
82
|
}, function (_a) {
|