pds-dev-kit-web-test 0.2.37 → 0.2.38
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/README.md +2 -2
- package/dist/src/common/assets/icons/fill/LogoGoogle.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/LogoGoogle.js +30 -0
- package/dist/src/common/assets/icons/fill/TypefaceSystem.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/TypefaceSystem.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +2 -0
- package/dist/src/common/assets/icons/fill/index.js +4 -0
- package/dist/src/common/assets/icons/line/LogoGoogle.d.ts +4 -0
- package/dist/src/common/assets/icons/line/LogoGoogle.js +30 -0
- package/dist/src/common/assets/icons/line/TypefaceSystem.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TypefaceSystem.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/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/mobile/components/MobileHeaderBar/MobileHeaderBar.d.ts +3 -1
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.js +13 -11
- package/dist/src/mobile/components/MobileHeaderBar/utils.d.ts +12 -0
- package/dist/src/mobile/components/MobileHeaderBar/utils.js +22 -0
- package/dist/src/sub/GoogleFontkit/GoogleFontApplyExample.d.ts +3 -0
- package/dist/src/sub/GoogleFontkit/GoogleFontApplyExample.js +93 -0
- package/dist/src/sub/GoogleFontkit/GoogleFontsListExample.d.ts +3 -0
- package/dist/src/sub/GoogleFontkit/GoogleFontsListExample.js +57 -0
- package/dist/src/sub/GoogleFontkit/api/getGoogleFontCss.d.ts +10 -0
- package/dist/src/sub/GoogleFontkit/api/getGoogleFontCss.js +53 -0
- package/dist/src/sub/GoogleFontkit/api/getGoogleFontDefaultText.d.ts +2 -0
- package/dist/src/sub/GoogleFontkit/api/getGoogleFontDefaultText.js +55 -0
- package/dist/src/sub/GoogleFontkit/api/getGoogleWebFonts.d.ts +10 -0
- package/dist/src/sub/GoogleFontkit/api/getGoogleWebFonts.js +53 -0
- package/dist/src/sub/GoogleFontkit/constants.d.ts +7 -0
- package/dist/src/sub/GoogleFontkit/constants.js +42 -0
- package/dist/src/sub/GoogleFontkit/headless/GoogleFontItem.d.ts +13 -0
- package/dist/src/sub/GoogleFontkit/headless/GoogleFontItem.js +107 -0
- package/dist/src/sub/GoogleFontkit/headless/GoogleFontsList.d.ts +17 -0
- package/dist/src/sub/GoogleFontkit/headless/GoogleFontsList.js +145 -0
- package/dist/src/sub/GoogleFontkit/hooks/useDebounce.d.ts +1 -0
- package/dist/src/sub/GoogleFontkit/hooks/useDebounce.js +14 -0
- package/dist/src/sub/GoogleFontkit/hooks/useIntersectionObserver.d.ts +6 -0
- package/dist/src/sub/GoogleFontkit/hooks/useIntersectionObserver.js +29 -0
- package/dist/src/sub/GoogleFontkit/index.d.ts +2 -0
- package/dist/src/sub/GoogleFontkit/index.js +10 -0
- package/dist/src/sub/GoogleFontkit/types.d.ts +44 -0
- package/dist/src/sub/GoogleFontkit/types.js +14 -0
- package/dist/src/sub/GoogleFontkit/utils/applyActiveFont.d.ts +5 -0
- package/dist/src/sub/GoogleFontkit/utils/applyActiveFont.js +15 -0
- package/dist/src/sub/GoogleFontkit/utils/callGoogleFontCSSAndApply.d.ts +2 -0
- package/dist/src/sub/GoogleFontkit/utils/callGoogleFontCSSAndApply.js +83 -0
- package/dist/src/sub/GoogleFontkit/utils/createStyleSheet.d.ts +4 -0
- package/dist/src/sub/GoogleFontkit/utils/createStyleSheet.js +13 -0
- package/dist/src/sub/GoogleFontkit/utils/extractFontStyles.d.ts +1 -0
- package/dist/src/sub/GoogleFontkit/utils/extractFontStyles.js +26 -0
- package/dist/src/sub/GoogleFontkit/utils/fillStyleSheet.d.ts +4 -0
- package/dist/src/sub/GoogleFontkit/utils/fillStyleSheet.js +17 -0
- package/dist/src/sub/GoogleFontkit/utils/getActiveFontStylesheet.d.ts +4 -0
- package/dist/src/sub/GoogleFontkit/utils/getActiveFontStylesheet.js +16 -0
- package/dist/src/sub/GoogleFontkit/utils/getFontId.d.ts +4 -0
- package/dist/src/sub/GoogleFontkit/utils/getFontId.js +9 -0
- package/dist/src/sub/GoogleFontkit/utils/getMatches.d.ts +1 -0
- package/dist/src/sub/GoogleFontkit/utils/getMatches.js +14 -0
- package/dist/src/sub/GoogleFontkit/utils/isStyleSheetExists.d.ts +4 -0
- package/dist/src/sub/GoogleFontkit/utils/isStyleSheetExists.js +15 -0
- package/dist/src/sub/GoogleFontkit/utils/parseFontVariants.d.ts +4 -0
- package/dist/src/sub/GoogleFontkit/utils/parseFontVariants.js +18 -0
- package/dist/src/sub/GoogleFontkit/utils/setStyleSheetType.d.ts +4 -0
- package/dist/src/sub/GoogleFontkit/utils/setStyleSheetType.js +18 -0
- package/package.json +1 -1
- package/release-note.md +3 -7
package/README.md
CHANGED
|
@@ -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 LogoGoogle = 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: "M12.0906,11.41 L18.7266,11.41 C18.7646,11.561 18.7966,11.744 18.8216,11.958 C18.8466,12.173 18.8596,12.387 18.8596,12.601 C18.8596,13.471 18.7266,14.291 18.4626,15.059 C18.1976,15.828 17.7816,16.515 17.2146,17.12 C16.6096,17.763 15.8846,18.261 15.0396,18.614 C14.1956,18.967 13.2316,19.143 12.1476,19.143 C11.1636,19.143 10.2376,18.967 9.3676,18.614 C8.4976,18.261 7.7416,17.769 7.0986,17.139 C6.4556,16.509 5.9456,15.762 5.5676,14.898 C5.1896,14.035 4.9996,13.093 4.9996,12.072 C4.9996,11.051 5.1896,10.108 5.5676,9.245 C5.9456,8.382 6.4556,7.635 7.0986,7.005 C7.7416,6.374 8.4976,5.883 9.3676,5.53 C10.2376,5.177 11.1636,5 12.1476,5 C13.2436,5 14.2236,5.189 15.0876,5.567 C15.9506,5.945 16.6916,6.469 17.3096,7.137 L15.5506,8.857 C15.1096,8.391 14.6176,8.035 14.0756,7.789 C13.5336,7.544 12.8846,7.421 12.1286,7.421 C11.5106,7.421 10.9246,7.531 10.3696,7.752 C9.8156,7.972 9.3306,8.284 8.9136,8.687 C8.4976,9.091 8.1676,9.579 7.9216,10.152 C7.6756,10.726 7.5526,11.366 7.5526,12.072 C7.5526,12.778 7.6756,13.418 7.9216,13.991 C8.1676,14.564 8.5006,15.053 8.9236,15.456 C9.3456,15.86 9.8336,16.172 10.3886,16.392 C10.9436,16.613 11.5356,16.723 12.1656,16.723 C12.8846,16.723 13.4926,16.619 13.9906,16.411 C14.4886,16.203 14.9136,15.935 15.2676,15.607 C15.5186,15.381 15.7366,15.094 15.9196,14.747 C16.1016,14.4 16.2436,14.013 16.3446,13.585 L12.0906,13.585 L12.0906,11.41 Z" }) })));
|
|
29
|
+
};
|
|
30
|
+
exports.default = LogoGoogle;
|
|
@@ -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 TypefaceSystem = 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: "M10.159,13.153 L9.099,9.909 L9.04,9.909 L7.981,13.153 L10.159,13.153 Z M5,16.48 L7.94,8 L10.2,8 L13.128,16.48 L11.242,16.48 L10.604,14.524 L7.535,14.524 L6.897,16.48 L5,16.48 Z M15.943,15.4018 C16.734,15.3958 17.284,14.8808 17.278,14.2078 L17.278,13.7448 C17.015,13.7558 16.271,13.7978 15.978,13.8208 C15.375,13.8738 14.994,14.1608 14.994,14.6518 C14.994,15.1388 15.387,15.3958 15.943,15.4018 M15.697,12.7438 C16.154,12.7138 17.009,12.6738 17.278,12.6618 L17.278,12.1458 C17.272,11.6128 16.909,11.3078 16.259,11.3028 C15.668,11.3078 15.299,11.5728 15.205,12.0058 L13.554,12.0058 C13.659,10.9048 14.619,10.0388 16.306,10.0388 C17.694,10.0388 19.006,10.6588 19.0000205,12.1928 L19.0000205,16.4798 L17.36,16.4798 L17.36,15.6008 L17.313,15.6008 C17.003,16.1868 16.394,16.6028 15.451,16.5968641 C14.233,16.6028 13.337,15.9578 13.331,14.6998 C13.337,13.2818 14.473,12.8188 15.697,12.7438" }) })));
|
|
29
|
+
};
|
|
30
|
+
exports.default = TypefaceSystem;
|
|
@@ -60,6 +60,7 @@ declare const fillIcons: {
|
|
|
60
60
|
readonly ic_list: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
61
61
|
readonly ic_live: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
62
62
|
readonly ic_login: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
63
|
+
readonly ic_logo_google: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
63
64
|
readonly ic_logo_insta: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
64
65
|
readonly ic_logo_twitter: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
65
66
|
readonly ic_logo_yt: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
@@ -107,6 +108,7 @@ declare const fillIcons: {
|
|
|
107
108
|
readonly ic_toggle_down: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
108
109
|
readonly ic_toggle_up: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
109
110
|
readonly ic_trashcan: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
111
|
+
readonly ic_typeface_system: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
110
112
|
readonly ic_unavailable: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
111
113
|
readonly ic_upload: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
112
114
|
readonly ic_verified: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
@@ -63,6 +63,7 @@ var Links_1 = __importDefault(require("./Links"));
|
|
|
63
63
|
var List_1 = __importDefault(require("./List"));
|
|
64
64
|
var Live_1 = __importDefault(require("./Live"));
|
|
65
65
|
var Login_1 = __importDefault(require("./Login"));
|
|
66
|
+
var LogoGoogle_1 = __importDefault(require("./LogoGoogle"));
|
|
66
67
|
var LogoInsta_1 = __importDefault(require("./LogoInsta"));
|
|
67
68
|
var LogoTwitter_1 = __importDefault(require("./LogoTwitter"));
|
|
68
69
|
var LogoYt_1 = __importDefault(require("./LogoYt"));
|
|
@@ -110,6 +111,7 @@ var ThumbUp_1 = __importDefault(require("./ThumbUp"));
|
|
|
110
111
|
var ToggleDown_1 = __importDefault(require("./ToggleDown"));
|
|
111
112
|
var ToggleUp_1 = __importDefault(require("./ToggleUp"));
|
|
112
113
|
var Trashcan_1 = __importDefault(require("./Trashcan"));
|
|
114
|
+
var TypefaceSystem_1 = __importDefault(require("./TypefaceSystem"));
|
|
113
115
|
var Unavailable_1 = __importDefault(require("./Unavailable"));
|
|
114
116
|
var Upload_1 = __importDefault(require("./Upload"));
|
|
115
117
|
var Verified_1 = __importDefault(require("./Verified"));
|
|
@@ -186,6 +188,7 @@ var fillIcons = {
|
|
|
186
188
|
ic_list: List_1.default,
|
|
187
189
|
ic_live: Live_1.default,
|
|
188
190
|
ic_login: Login_1.default,
|
|
191
|
+
ic_logo_google: LogoGoogle_1.default,
|
|
189
192
|
ic_logo_insta: LogoInsta_1.default,
|
|
190
193
|
ic_logo_twitter: LogoTwitter_1.default,
|
|
191
194
|
ic_logo_yt: LogoYt_1.default,
|
|
@@ -233,6 +236,7 @@ var fillIcons = {
|
|
|
233
236
|
ic_toggle_down: ToggleDown_1.default,
|
|
234
237
|
ic_toggle_up: ToggleUp_1.default,
|
|
235
238
|
ic_trashcan: Trashcan_1.default,
|
|
239
|
+
ic_typeface_system: TypefaceSystem_1.default,
|
|
236
240
|
ic_unavailable: Unavailable_1.default,
|
|
237
241
|
ic_upload: Upload_1.default,
|
|
238
242
|
ic_verified: Verified_1.default,
|
|
@@ -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 LogoGoogle = 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: "M12.0906,11.41 L18.7266,11.41 C18.7646,11.561 18.7966,11.744 18.8216,11.958 C18.8466,12.173 18.8596,12.387 18.8596,12.601 C18.8596,13.471 18.7266,14.291 18.4626,15.059 C18.1976,15.828 17.7816,16.515 17.2146,17.12 C16.6096,17.763 15.8846,18.261 15.0396,18.614 C14.1956,18.967 13.2316,19.143 12.1476,19.143 C11.1636,19.143 10.2376,18.967 9.3676,18.614 C8.4976,18.261 7.7416,17.769 7.0986,17.139 C6.4556,16.509 5.9456,15.762 5.5676,14.898 C5.1896,14.035 4.9996,13.093 4.9996,12.072 C4.9996,11.051 5.1896,10.108 5.5676,9.245 C5.9456,8.382 6.4556,7.635 7.0986,7.005 C7.7416,6.374 8.4976,5.883 9.3676,5.53 C10.2376,5.177 11.1636,5 12.1476,5 C13.2436,5 14.2236,5.189 15.0876,5.567 C15.9506,5.945 16.6916,6.469 17.3096,7.137 L15.5506,8.857 C15.1096,8.391 14.6176,8.035 14.0756,7.789 C13.5336,7.544 12.8846,7.421 12.1286,7.421 C11.5106,7.421 10.9246,7.531 10.3696,7.752 C9.8156,7.972 9.3306,8.284 8.9136,8.687 C8.4976,9.091 8.1676,9.579 7.9216,10.152 C7.6756,10.726 7.5526,11.366 7.5526,12.072 C7.5526,12.778 7.6756,13.418 7.9216,13.991 C8.1676,14.564 8.5006,15.053 8.9236,15.456 C9.3456,15.86 9.8336,16.172 10.3886,16.392 C10.9436,16.613 11.5356,16.723 12.1656,16.723 C12.8846,16.723 13.4926,16.619 13.9906,16.411 C14.4886,16.203 14.9136,15.935 15.2676,15.607 C15.5186,15.381 15.7366,15.094 15.9196,14.747 C16.1016,14.4 16.2436,14.013 16.3446,13.585 L12.0906,13.585 L12.0906,11.41 Z" }) })));
|
|
29
|
+
};
|
|
30
|
+
exports.default = LogoGoogle;
|
|
@@ -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 TypefaceSystem = 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: "M10.159,13.153 L9.099,9.909 L9.04,9.909 L7.981,13.153 L10.159,13.153 Z M5,16.48 L7.94,8 L10.2,8 L13.128,16.48 L11.242,16.48 L10.604,14.524 L7.535,14.524 L6.897,16.48 L5,16.48 Z M15.943,15.4018 C16.734,15.3958 17.284,14.8808 17.278,14.2078 L17.278,13.7448 C17.015,13.7558 16.271,13.7978 15.978,13.8208 C15.375,13.8738 14.994,14.1608 14.994,14.6518 C14.994,15.1388 15.387,15.3958 15.943,15.4018 M15.697,12.7438 C16.154,12.7138 17.009,12.6738 17.278,12.6618 L17.278,12.1458 C17.272,11.6128 16.909,11.3078 16.259,11.3028 C15.668,11.3078 15.299,11.5728 15.205,12.0058 L13.554,12.0058 C13.659,10.9048 14.619,10.0388 16.306,10.0388 C17.694,10.0388 19.006,10.6588 19.0000205,12.1928 L19.0000205,16.4798 L17.36,16.4798 L17.36,15.6008 L17.313,15.6008 C17.003,16.1868 16.394,16.6028 15.451,16.5968641 C14.233,16.6028 13.337,15.9578 13.331,14.6998 C13.337,13.2818 14.473,12.8188 15.697,12.7438" }) })));
|
|
29
|
+
};
|
|
30
|
+
exports.default = TypefaceSystem;
|
|
@@ -102,6 +102,7 @@ declare const lineIcons: {
|
|
|
102
102
|
readonly ic_live_event: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
103
103
|
readonly ic_live_personal: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
104
104
|
readonly ic_lock: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
105
|
+
readonly ic_logo_google: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
105
106
|
readonly ic_mail: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
106
107
|
readonly ic_menu: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
107
108
|
readonly ic_menu_design: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
@@ -229,6 +230,7 @@ declare const lineIcons: {
|
|
|
229
230
|
readonly ic_toggle_down: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
230
231
|
readonly ic_toggle_up: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
231
232
|
readonly ic_trashcan: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
233
|
+
readonly ic_typeface_system: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
232
234
|
readonly ic_unavailable: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
233
235
|
readonly ic_unlock: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
234
236
|
readonly ic_upload: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
|
@@ -105,6 +105,7 @@ var LiveConcert_1 = __importDefault(require("./LiveConcert"));
|
|
|
105
105
|
var LiveEvent_1 = __importDefault(require("./LiveEvent"));
|
|
106
106
|
var LivePersonal_1 = __importDefault(require("./LivePersonal"));
|
|
107
107
|
var Lock_1 = __importDefault(require("./Lock"));
|
|
108
|
+
var LogoGoogle_1 = __importDefault(require("./LogoGoogle"));
|
|
108
109
|
var Mail_1 = __importDefault(require("./Mail"));
|
|
109
110
|
var Menu_1 = __importDefault(require("./Menu"));
|
|
110
111
|
var MenuDesign_1 = __importDefault(require("./MenuDesign"));
|
|
@@ -232,6 +233,7 @@ var Time_1 = __importDefault(require("./Time"));
|
|
|
232
233
|
var ToggleDown_1 = __importDefault(require("./ToggleDown"));
|
|
233
234
|
var ToggleUp_1 = __importDefault(require("./ToggleUp"));
|
|
234
235
|
var Trashcan_1 = __importDefault(require("./Trashcan"));
|
|
236
|
+
var TypefaceSystem_1 = __importDefault(require("./TypefaceSystem"));
|
|
235
237
|
var Unavailable_1 = __importDefault(require("./Unavailable"));
|
|
236
238
|
var Unlock_1 = __importDefault(require("./Unlock"));
|
|
237
239
|
var Upload_1 = __importDefault(require("./Upload"));
|
|
@@ -357,6 +359,7 @@ var lineIcons = {
|
|
|
357
359
|
ic_live_event: LiveEvent_1.default,
|
|
358
360
|
ic_live_personal: LivePersonal_1.default,
|
|
359
361
|
ic_lock: Lock_1.default,
|
|
362
|
+
ic_logo_google: LogoGoogle_1.default,
|
|
360
363
|
ic_mail: Mail_1.default,
|
|
361
364
|
ic_menu: Menu_1.default,
|
|
362
365
|
ic_menu_design: MenuDesign_1.default,
|
|
@@ -484,6 +487,7 @@ var lineIcons = {
|
|
|
484
487
|
ic_toggle_down: ToggleDown_1.default,
|
|
485
488
|
ic_toggle_up: ToggleUp_1.default,
|
|
486
489
|
ic_trashcan: Trashcan_1.default,
|
|
490
|
+
ic_typeface_system: TypefaceSystem_1.default,
|
|
487
491
|
ic_unavailable: Unavailable_1.default,
|
|
488
492
|
ic_unlock: Unlock_1.default,
|
|
489
493
|
ic_upload: Upload_1.default,
|
|
@@ -835,5 +835,6 @@
|
|
|
835
835
|
"ui_cpnt_modalwithtab_sidetab_hover": "sys_component_base_01",
|
|
836
836
|
"ui_cpnt_modalwithtab_sidetab_pressed": "sys_component_base_04",
|
|
837
837
|
"ui_107": "sys_component_border_white_opacity20",
|
|
838
|
-
"ui_cpnt_textlabel_sys_white_02": "sys_text_white_02"
|
|
838
|
+
"ui_cpnt_textlabel_sys_white_02": "sys_text_white_02",
|
|
839
|
+
"ui_cpnt_headerbar_base_area_transparent": "sys_container_background_04"
|
|
839
840
|
}
|
|
@@ -1303,6 +1303,7 @@ declare const colorSet: {
|
|
|
1303
1303
|
ui_cpnt_modalwithtab_sidetab_pressed: string;
|
|
1304
1304
|
ui_107: string;
|
|
1305
1305
|
ui_cpnt_textlabel_sys_white_02: string;
|
|
1306
|
+
ui_cpnt_headerbar_base_area_transparent: string;
|
|
1306
1307
|
};
|
|
1307
1308
|
readonly PaletteColor_Dark: {
|
|
1308
1309
|
sys_container_background_01: string;
|
|
@@ -18,9 +18,11 @@ type Props = {
|
|
|
18
18
|
iBtn1Type?: 'submit' | 'reset' | 'button';
|
|
19
19
|
iBtn2State?: 'normal' | 'disabled';
|
|
20
20
|
iBtn2Type?: 'submit' | 'reset' | 'button';
|
|
21
|
+
colorTheme?: ColorTheme;
|
|
21
22
|
onClickLeftBtn?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
22
23
|
onClickIBtn1?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
23
24
|
onClickIBtn2?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
+
export type ColorTheme = 'none' | 'transparent_white';
|
|
27
|
+
declare function MobileHeaderBar({ titleType, titleText, captionText, leftBtnMode, displayType, iBtn1IconName, iBtn1IconFillType, iBtn1IconColorKey, iBtn2IconName, iBtn2IconFillType, iBtn2IconColorKey, dividerMode, imageSrc, iBtn1State, iBtn1Type, iBtn2State, iBtn2Type, colorTheme, onClickLeftBtn, onClickIBtn1, onClickIBtn2 }: Props): JSX.Element;
|
|
26
28
|
export default MobileHeaderBar;
|
|
@@ -23,8 +23,10 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
|
23
23
|
var hybrid_1 = require("../../../hybrid");
|
|
24
24
|
var IconButton_1 = require("../IconButton");
|
|
25
25
|
var TextLabel_1 = require("../TextLabel");
|
|
26
|
+
var utils_1 = require("./utils");
|
|
26
27
|
function MobileHeaderBar(_a) {
|
|
27
|
-
var _b = _a.titleType, titleType = _b === void 0 ? 'text' : _b, titleText = _a.titleText, captionText = _a.captionText, _c = _a.leftBtnMode, leftBtnMode = _c === void 0 ? 'back' : _c, _d = _a.displayType, displayType = _d === void 0 ? 'none' : _d, iBtn1IconName = _a.iBtn1IconName, _e = _a.iBtn1IconFillType, iBtn1IconFillType = _e === void 0 ? 'line' : _e,
|
|
28
|
+
var _b = _a.titleType, titleType = _b === void 0 ? 'text' : _b, titleText = _a.titleText, captionText = _a.captionText, _c = _a.leftBtnMode, leftBtnMode = _c === void 0 ? 'back' : _c, _d = _a.displayType, displayType = _d === void 0 ? 'none' : _d, iBtn1IconName = _a.iBtn1IconName, _e = _a.iBtn1IconFillType, iBtn1IconFillType = _e === void 0 ? 'line' : _e, iBtn1IconColorKey = _a.iBtn1IconColorKey, iBtn2IconName = _a.iBtn2IconName, _f = _a.iBtn2IconFillType, iBtn2IconFillType = _f === void 0 ? 'line' : _f, iBtn2IconColorKey = _a.iBtn2IconColorKey, _g = _a.dividerMode, dividerMode = _g === void 0 ? 'none' : _g, imageSrc = _a.imageSrc, _h = _a.iBtn1State, iBtn1State = _h === void 0 ? 'normal' : _h, _j = _a.iBtn1Type, iBtn1Type = _j === void 0 ? 'button' : _j, _k = _a.iBtn2State, iBtn2State = _k === void 0 ? 'normal' : _k, _l = _a.iBtn2Type, iBtn2Type = _l === void 0 ? 'button' : _l, _m = _a.colorTheme, colorTheme = _m === void 0 ? 'none' : _m, onClickLeftBtn = _a.onClickLeftBtn, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2;
|
|
29
|
+
var _o = (0, utils_1.getOptionalColorTheme)(colorTheme), titleColor = _o.titleColor, captionColor = _o.captionColor, iconButtonIconColor = _o.iconButtonIconColor, baseColor = _o.baseColor, dividerColor = _o.dividerColor;
|
|
28
30
|
var handleClickLeftBtn = function (e) {
|
|
29
31
|
if (onClickLeftBtn) {
|
|
30
32
|
onClickLeftBtn(e);
|
|
@@ -57,18 +59,18 @@ function MobileHeaderBar(_a) {
|
|
|
57
59
|
if (!iconName) {
|
|
58
60
|
return (0, jsx_runtime_1.jsx)("div", {});
|
|
59
61
|
}
|
|
60
|
-
return ((0, jsx_runtime_1.jsx)(S_LeftButtonBox, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iconName, fillType: "fill", iconFillType: "line", baseSize: "large", iconSize: 24, shapeType: "rectangle", onClick: handleClickLeftBtn, iconColorKey:
|
|
62
|
+
return ((0, jsx_runtime_1.jsx)(S_LeftButtonBox, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iconName, fillType: "fill", iconFillType: "line", baseSize: "large", iconSize: 24, shapeType: "rectangle", onClick: handleClickLeftBtn, iconColorKey: iconButtonIconColor, baseColorKey: "ui_cpnt_button_fill_base_transparent" }) }));
|
|
61
63
|
};
|
|
62
64
|
var title = function () {
|
|
63
65
|
switch (titleType) {
|
|
64
66
|
case 'text': {
|
|
65
67
|
if (captionText) {
|
|
66
|
-
return ((0, jsx_runtime_1.jsxs)(S_CaptionTextBox, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "height" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, colorTheme:
|
|
68
|
+
return ((0, jsx_runtime_1.jsxs)(S_CaptionTextBox, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "height" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, colorTheme: titleColor, styleTheme: "body2Bold", singleLineMode: "use", textAlign: "center", wordBreak: "break_all", ellipsisMode: "use", lineLimit: 1 }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "height" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: captionText, colorTheme: captionColor, styleTheme: "caption2Regular", singleLineMode: "use", textAlign: "center", wordBreak: "break_all", ellipsisMode: "use", lineLimit: 1 })] }));
|
|
67
69
|
}
|
|
68
|
-
return ((0, jsx_runtime_1.jsx)(S_TextTypeBox, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, colorTheme:
|
|
70
|
+
return ((0, jsx_runtime_1.jsx)(S_TextTypeBox, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, colorTheme: titleColor, styleTheme: "body2Bold", singleLineMode: "use", textAlign: "center", wordBreak: "break_all", ellipsisMode: "use", lineLimit: 1 }) }));
|
|
69
71
|
}
|
|
70
72
|
case 'profile': {
|
|
71
|
-
return ((0, jsx_runtime_1.jsxs)(S_ProfileWrapper, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b" }), (0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: imageSrc, shapeType: "circular", width: 40, ratio: "1_1", scaleType: "cover", borderMode: "use" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, colorTheme:
|
|
73
|
+
return ((0, jsx_runtime_1.jsxs)(S_ProfileWrapper, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b" }), (0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: imageSrc, shapeType: "circular", width: 40, ratio: "1_1", scaleType: "cover", borderMode: "use" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, colorTheme: titleColor, styleTheme: "caption1Regular", singleLineMode: "use", wordBreak: "break_all", ellipsisMode: "use", lineLimit: 1 }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d" })] }));
|
|
72
74
|
}
|
|
73
75
|
case 'image': {
|
|
74
76
|
return ((0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: imageSrc, shapeType: "rectangle", height: 32, scaleType: "contain", width: 160 }));
|
|
@@ -79,19 +81,19 @@ function MobileHeaderBar(_a) {
|
|
|
79
81
|
if (displayType === 'none') {
|
|
80
82
|
return (0, jsx_runtime_1.jsx)("div", {});
|
|
81
83
|
}
|
|
82
|
-
return ((0, jsx_runtime_1.jsxs)(S_IBtnBox, { children: [displayType === 'ibtn_amount2' && iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconSize: 24, baseSize: "large", iconName: iBtn2IconName, fillType: "fill", onClick: handleClickIBtn2, iconFillType: iBtn2IconFillType, iconColorKey: iBtn2IconColorKey, baseColorKey: "ui_cpnt_button_fill_base_transparent", type: iBtn2Type, state: iBtn2State })), (displayType === 'ibtn_amount1' || displayType === 'ibtn_amount2') && iBtn1IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconSize: 24, baseSize: "large", iconName: iBtn1IconName, fillType: "fill", onClick: handleClickIBtn1, iconFillType: iBtn1IconFillType, iconColorKey: iBtn1IconColorKey, baseColorKey: "ui_cpnt_button_fill_base_transparent", type: iBtn1Type, state: iBtn1State }))] }));
|
|
84
|
+
return ((0, jsx_runtime_1.jsxs)(S_IBtnBox, { children: [displayType === 'ibtn_amount2' && iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconSize: 24, baseSize: "large", iconName: iBtn2IconName, fillType: "fill", onClick: handleClickIBtn2, iconFillType: iBtn2IconFillType, iconColorKey: iBtn2IconColorKey !== null && iBtn2IconColorKey !== void 0 ? iBtn2IconColorKey : iconButtonIconColor, baseColorKey: "ui_cpnt_button_fill_base_transparent", type: iBtn2Type, state: iBtn2State })), (displayType === 'ibtn_amount1' || displayType === 'ibtn_amount2') && iBtn1IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconSize: 24, baseSize: "large", iconName: iBtn1IconName, fillType: "fill", onClick: handleClickIBtn1, iconFillType: iBtn1IconFillType, iconColorKey: iBtn1IconColorKey !== null && iBtn1IconColorKey !== void 0 ? iBtn1IconColorKey : iconButtonIconColor, baseColorKey: "ui_cpnt_button_fill_base_transparent", type: iBtn1Type, state: iBtn1State }))] }));
|
|
83
85
|
};
|
|
84
|
-
return ((0, jsx_runtime_1.jsxs)(S_MobileHeaderBar, __assign({ "x-pds-name": "MobileHeaderBar", "x-pds-element-type": "component", "x-pds-device-type": "mobile", hasBorder: dividerMode === 'solid', hasCaptionText: (captionText === null || captionText === void 0 ? void 0 : captionText.toString) ? true : false, expand: titleType === 'profile' }, { children: [(0, jsx_runtime_1.jsxs)(S_ButtonWrapper, { children: [(titleType === 'profile' || captionText) && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a" }), leftIcon()] }), displayType === 'ibtn_amount2' && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_g", spacingType: "width" }), (0, jsx_runtime_1.jsx)(S_Title, { children: title() }), (0, jsx_runtime_1.jsxs)(S_ButtonWrapper, { children: [(titleType === 'profile' || captionText) && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a" }), iBtn()] })] })));
|
|
86
|
+
return ((0, jsx_runtime_1.jsxs)(S_MobileHeaderBar, __assign({ "x-pds-name": "MobileHeaderBar", "x-pds-element-type": "component", "x-pds-device-type": "mobile", hasBorder: dividerMode === 'solid', borderColor: dividerColor, hasCaptionText: (captionText === null || captionText === void 0 ? void 0 : captionText.toString) ? true : false, expand: titleType === 'profile', baseColor: baseColor }, { children: [(0, jsx_runtime_1.jsxs)(S_ButtonWrapper, { children: [(titleType === 'profile' || captionText) && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a" }), leftIcon()] }), displayType === 'ibtn_amount2' && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_g", spacingType: "width" }), (0, jsx_runtime_1.jsx)(S_Title, { children: title() }), (0, jsx_runtime_1.jsxs)(S_ButtonWrapper, { children: [(titleType === 'profile' || captionText) && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a" }), iBtn()] })] })));
|
|
85
87
|
}
|
|
86
88
|
var S_MobileHeaderBar = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: ", ";\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: space-between;\n padding: 0 ", ";\n"], ["\n align-items: ", ";\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: space-between;\n padding: 0 ", ";\n"])), function (_a) {
|
|
87
89
|
var expand = _a.expand, hasCaptionText = _a.hasCaptionText;
|
|
88
90
|
return expand || hasCaptionText ? 'flex-start' : 'center';
|
|
89
91
|
}, function (_a) {
|
|
90
|
-
var theme = _a.theme;
|
|
91
|
-
return theme
|
|
92
|
+
var theme = _a.theme, baseColor = _a.baseColor;
|
|
93
|
+
return theme[baseColor];
|
|
92
94
|
}, function (_a) {
|
|
93
|
-
var hasBorder = _a.hasBorder, theme = _a.theme;
|
|
94
|
-
return hasBorder && "1px solid ".concat(theme
|
|
95
|
+
var hasBorder = _a.hasBorder, theme = _a.theme, borderColor = _a.borderColor;
|
|
96
|
+
return hasBorder && "1px solid ".concat(theme[borderColor]);
|
|
95
97
|
}, function (_a) {
|
|
96
98
|
var expand = _a.expand, hasCaptionText = _a.hasCaptionText;
|
|
97
99
|
return (expand || hasCaptionText ? 'auto' : '56px');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TextStyleProps } from '../TextLabel/TextLabel';
|
|
2
|
+
import type { ColorTheme } from './MobileHeaderBar';
|
|
3
|
+
import type { UiColors } from '../../../common/index';
|
|
4
|
+
type MobileHeaderbarColorThemeType = {
|
|
5
|
+
titleColor: TextStyleProps['colorTheme'];
|
|
6
|
+
captionColor: TextStyleProps['colorTheme'];
|
|
7
|
+
iconButtonIconColor: UiColors;
|
|
8
|
+
baseColor: UiColors;
|
|
9
|
+
dividerColor: UiColors;
|
|
10
|
+
};
|
|
11
|
+
export declare function getOptionalColorTheme(colorTheme: ColorTheme): MobileHeaderbarColorThemeType;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOptionalColorTheme = void 0;
|
|
4
|
+
function getOptionalColorTheme(colorTheme) {
|
|
5
|
+
if (colorTheme === 'transparent_white') {
|
|
6
|
+
return {
|
|
7
|
+
titleColor: 'sysTextWhite',
|
|
8
|
+
captionColor: 'sysTextWhite',
|
|
9
|
+
iconButtonIconColor: 'ui_cpnt_headerbar_icon_02',
|
|
10
|
+
baseColor: 'ui_cpnt_headerbar_base_area_transparent',
|
|
11
|
+
dividerColor: 'ui_cpnt_divider_white_opacity00'
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
titleColor: 'sysTextPrimary',
|
|
16
|
+
captionColor: 'sysTextTertiary',
|
|
17
|
+
iconButtonIconColor: 'ui_cpnt_button_icon_enabled',
|
|
18
|
+
baseColor: 'ui_cpnt_headerbar_base_area',
|
|
19
|
+
dividerColor: 'ui_cpnt_divider'
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
exports.getOptionalColorTheme = getOptionalColorTheme;
|
|
@@ -0,0 +1,93 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
+
var react_1 = require("react");
|
|
19
|
+
var getGoogleFontDefaultText_1 = __importDefault(require("./api/getGoogleFontDefaultText"));
|
|
20
|
+
var callGoogleFontCSSAndApply_1 = __importDefault(require("./utils/callGoogleFontCSSAndApply"));
|
|
21
|
+
var GOOGLE_FONT_API_KEY = 'AIzaSyDvOkXcd-jqqD1z1P-RmIBM9RzGpEXRwV0';
|
|
22
|
+
function TextCB(_a) {
|
|
23
|
+
var text = _a.text, font = _a.font;
|
|
24
|
+
var _b = (0, react_1.useState)(text), defaultText = _b[0], setDefaultText = _b[1];
|
|
25
|
+
(0, react_1.useEffect)(function () {
|
|
26
|
+
(0, callGoogleFontCSSAndApply_1.default)(GOOGLE_FONT_API_KEY, font);
|
|
27
|
+
(0, getGoogleFontDefaultText_1.default)(font).then(function (data) {
|
|
28
|
+
setDefaultText(data.sampleText.tester);
|
|
29
|
+
});
|
|
30
|
+
}, [font]);
|
|
31
|
+
return (0, jsx_runtime_1.jsx)("div", __assign({ style: { fontFamily: font } }, { children: defaultText }));
|
|
32
|
+
}
|
|
33
|
+
function GoogleFontApplyExample() {
|
|
34
|
+
var texts = [
|
|
35
|
+
{
|
|
36
|
+
font: 'Dokdo',
|
|
37
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
font: 'Open Sans',
|
|
41
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
font: 'Poppins',
|
|
45
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
font: 'Dokdo',
|
|
49
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
font: 'Lato',
|
|
53
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
font: 'Dokdo',
|
|
57
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
font: 'Dokdo',
|
|
61
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
font: 'Caveat',
|
|
65
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
font: 'Dokdo',
|
|
69
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
font: 'Material Icons Sharp',
|
|
73
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
font: 'Material Symbols Rounded',
|
|
77
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
font: 'Orbitron',
|
|
81
|
+
text: 'Whereas disregard and contempt for human rights have resulted'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
font: 'Noto Color Emoji',
|
|
85
|
+
text: 'a'
|
|
86
|
+
},
|
|
87
|
+
{ font: 'Noto Sans KR', test: '노토산스 한국어' },
|
|
88
|
+
{ font: 'Noto Sans JP', test: '노토산스 일본어' },
|
|
89
|
+
{ font: 'Noto Sans NKo Unjoined', text: '노토산스 외국어' }
|
|
90
|
+
];
|
|
91
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: texts.map(function (group) { return ((0, jsx_runtime_1.jsx)(TextCB, { text: group.text, font: group.font }, group.font)); }) }));
|
|
92
|
+
}
|
|
93
|
+
exports.default = GoogleFontApplyExample;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
23
|
+
var constants_1 = require("./constants");
|
|
24
|
+
var GoogleFontItem_1 = __importDefault(require("./headless/GoogleFontItem"));
|
|
25
|
+
var GoogleFontsList_1 = __importDefault(require("./headless/GoogleFontsList"));
|
|
26
|
+
var GOOGLE_FONT_API_KEY = '문의바람';
|
|
27
|
+
function GoogleFontsListExample() {
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(GoogleFontsList_1.default, __assign({ apiKey: GOOGLE_FONT_API_KEY, sort: "trending" }, { children: function (_a) {
|
|
29
|
+
var isLoading = _a.isLoading, filteredFonts = _a.filteredFonts, filterOptions = _a.filterOptions, changeSort = _a.changeSort, changeFilterOption = _a.changeFilterOption;
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(SFilters, { children: [(0, jsx_runtime_1.jsx)("button", __assign({ type: "button", onClick: function () { return changeSort('date'); } }, { children: "change sort" })), (0, jsx_runtime_1.jsx)("input", { type: "text", onChange: function (e) {
|
|
31
|
+
return changeFilterOption({
|
|
32
|
+
name: 'searchQuery',
|
|
33
|
+
value: e.target.value
|
|
34
|
+
});
|
|
35
|
+
} }), (0, jsx_runtime_1.jsx)("div", __assign({ style: { backgroundColor: 'yellow' } }, { children: constants_1.SUBSETS.map(function (eachSubset) {
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: eachSubset }), (0, jsx_runtime_1.jsx)("input", { type: "checkbox", id: eachSubset, value: eachSubset, checked: filterOptions.subsets.includes(eachSubset), onClick: function () {
|
|
37
|
+
return changeFilterOption({
|
|
38
|
+
name: 'subsets',
|
|
39
|
+
value: [eachSubset]
|
|
40
|
+
});
|
|
41
|
+
} }, eachSubset)] }));
|
|
42
|
+
}) })), (0, jsx_runtime_1.jsx)("div", __assign({ style: { backgroundColor: 'red' } }, { children: constants_1.CATEGORIES.map(function (category) {
|
|
43
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: category }), (0, jsx_runtime_1.jsx)("input", { type: "checkbox", id: category, value: category, checked: filterOptions.categories.includes(category), onClick: function () {
|
|
44
|
+
return changeFilterOption({
|
|
45
|
+
name: 'categories',
|
|
46
|
+
value: [category]
|
|
47
|
+
});
|
|
48
|
+
} }, category)] }));
|
|
49
|
+
}) }))] }), isLoading && 'isLoading', filteredFonts.map(function (font) { return ((0, jsx_runtime_1.jsx)(GoogleFontItem_1.default, __assign({ font: font }, { children: function (_a) {
|
|
50
|
+
var isFontFamilyLoading = _a.isLoading, ref = _a.ref;
|
|
51
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ ref: ref }, { children: [isFontFamilyLoading && (0, jsx_runtime_1.jsx)("div", { children: "loading.." }), (0, jsx_runtime_1.jsx)("div", __assign({ style: { fontFamily: font.family } }, { children: font.family }))] })));
|
|
52
|
+
} }), font.id)); })] }));
|
|
53
|
+
} })) }));
|
|
54
|
+
}
|
|
55
|
+
var SFilters = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: 1px solid black;\n"], ["\n border: 1px solid black;\n"])));
|
|
56
|
+
exports.default = GoogleFontsListExample;
|
|
57
|
+
var templateObject_1;
|