pds-dev-kit-web 2.2.14 → 2.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/assets/icons/line/TypefaceDisplay20.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TypefaceDisplay20.js +30 -0
- package/dist/src/common/assets/icons/line/TypefaceHand20.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TypefaceHand20.js +30 -0
- package/dist/src/common/assets/icons/line/TypefaceMonospace20.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TypefaceMonospace20.js +30 -0
- package/dist/src/common/assets/icons/line/TypefaceSanserif20.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TypefaceSanserif20.js +30 -0
- package/dist/src/common/assets/icons/line/TypefaceSerif20.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TypefaceSerif20.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +5 -5
- package/dist/src/common/assets/icons/line/index.js +10 -10
- package/dist/src/hybrid/components/Icon/Icon.js +2 -1
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +1 -1
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.js +25 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/index.js +11 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/useGoogleFonts.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/useGoogleFonts.js +17 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +3 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +5 -2
- package/dist/src/sub/GoogleFontkit/GoogleFontApplyExample.d.ts +3 -0
- package/dist/src/sub/GoogleFontkit/GoogleFontApplyExample.js +92 -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 +44 -0
- package/dist/src/sub/GoogleFontkit/headless/GoogleFontItem.d.ts +15 -0
- package/dist/src/sub/GoogleFontkit/headless/GoogleFontItem.js +126 -0
- package/dist/src/sub/GoogleFontkit/headless/GoogleFontsList.d.ts +17 -0
- package/dist/src/sub/GoogleFontkit/headless/GoogleFontsList.js +144 -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 +7 -0
- package/dist/src/sub/GoogleFontkit/index.js +32 -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 +2 -0
- package/dist/src/sub/GoogleFontkit/utils/applyActiveFont.js +12 -0
- package/dist/src/sub/GoogleFontkit/utils/callGoogleFontCSSAndApply.d.ts +2 -0
- package/dist/src/sub/GoogleFontkit/utils/callGoogleFontCSSAndApply.js +72 -0
- package/dist/src/sub/GoogleFontkit/utils/createStyleSheet.d.ts +1 -0
- package/dist/src/sub/GoogleFontkit/utils/createStyleSheet.js +10 -0
- package/dist/src/sub/GoogleFontkit/utils/extractFontStyles.d.ts +1 -0
- package/dist/src/sub/GoogleFontkit/utils/extractFontStyles.js +22 -0
- package/dist/src/sub/GoogleFontkit/utils/fillStyleSheet.d.ts +1 -0
- package/dist/src/sub/GoogleFontkit/utils/fillStyleSheet.js +13 -0
- package/dist/src/sub/GoogleFontkit/utils/getActiveFontStylesheet.d.ts +1 -0
- package/dist/src/sub/GoogleFontkit/utils/getActiveFontStylesheet.js +13 -0
- package/dist/src/sub/GoogleFontkit/utils/getFontId.d.ts +1 -0
- package/dist/src/sub/GoogleFontkit/utils/getFontId.js +6 -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 +1 -0
- package/dist/src/sub/GoogleFontkit/utils/isStyleSheetExists.js +12 -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 +1 -0
- package/dist/src/sub/GoogleFontkit/utils/setStyleSheetType.js +15 -0
- package/package.json +1 -1
- package/release-note.md +4 -4
- package/dist/src/common/assets/icons/line/TypefaceDisplay24.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TypefaceDisplay24.js +0 -30
- package/dist/src/common/assets/icons/line/TypefaceHand24.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TypefaceHand24.js +0 -30
- package/dist/src/common/assets/icons/line/TypefaceMonospace24.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TypefaceMonospace24.js +0 -30
- package/dist/src/common/assets/icons/line/TypefaceSanserif24.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TypefaceSanserif24.js +0 -30
- package/dist/src/common/assets/icons/line/TypefaceSerif24.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TypefaceSerif24.js +0 -30
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var react_1 = require("react");
|
|
4
|
+
function useIntersectionObserver(elementRef, _a) {
|
|
5
|
+
var _b = _a.threshold, threshold = _b === void 0 ? 0 : _b, _c = _a.root, root = _c === void 0 ? null : _c, _d = _a.rootMargin, rootMargin = _d === void 0 ? '0%' : _d, _e = _a.freezeOnceVisible, freezeOnceVisible = _e === void 0 ? false : _e;
|
|
6
|
+
var _f = (0, react_1.useState)(), entry = _f[0], setEntry = _f[1];
|
|
7
|
+
var frozen = (entry === null || entry === void 0 ? void 0 : entry.isIntersecting) && freezeOnceVisible;
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
9
|
+
var updateEntry = function (_a) {
|
|
10
|
+
var entry = _a[0];
|
|
11
|
+
setEntry(entry);
|
|
12
|
+
};
|
|
13
|
+
(0, react_1.useEffect)(function () {
|
|
14
|
+
var node = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current; // DOM Ref
|
|
15
|
+
var hasIOSupport = !!window.IntersectionObserver;
|
|
16
|
+
if (!hasIOSupport || frozen || !node)
|
|
17
|
+
return;
|
|
18
|
+
var observerParams = { threshold: threshold, root: root, rootMargin: rootMargin };
|
|
19
|
+
var observer = new IntersectionObserver(updateEntry, observerParams);
|
|
20
|
+
observer.observe(node);
|
|
21
|
+
// eslint-disable-next-line consistent-return
|
|
22
|
+
return function () {
|
|
23
|
+
observer.disconnect();
|
|
24
|
+
};
|
|
25
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
26
|
+
}, [elementRef === null || elementRef === void 0 ? void 0 : elementRef.current, threshold, root, rootMargin, frozen]);
|
|
27
|
+
return entry;
|
|
28
|
+
}
|
|
29
|
+
exports.default = useIntersectionObserver;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as GoogleFontsList } from './headless/GoogleFontsList';
|
|
2
|
+
export { default as GoogleFontItem } from './headless/GoogleFontItem';
|
|
3
|
+
export { default as Example } from './GoogleFontsListExample';
|
|
4
|
+
export { default as useDebounce } from './hooks/useDebounce';
|
|
5
|
+
export { default as useIntersectionObserver } from './hooks/useIntersectionObserver';
|
|
6
|
+
export * from './types';
|
|
7
|
+
export * from './constants';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.useIntersectionObserver = exports.useDebounce = exports.Example = exports.GoogleFontItem = exports.GoogleFontsList = void 0;
|
|
21
|
+
var GoogleFontsList_1 = require("./headless/GoogleFontsList");
|
|
22
|
+
Object.defineProperty(exports, "GoogleFontsList", { enumerable: true, get: function () { return __importDefault(GoogleFontsList_1).default; } });
|
|
23
|
+
var GoogleFontItem_1 = require("./headless/GoogleFontItem");
|
|
24
|
+
Object.defineProperty(exports, "GoogleFontItem", { enumerable: true, get: function () { return __importDefault(GoogleFontItem_1).default; } });
|
|
25
|
+
var GoogleFontsListExample_1 = require("./GoogleFontsListExample");
|
|
26
|
+
Object.defineProperty(exports, "Example", { enumerable: true, get: function () { return __importDefault(GoogleFontsListExample_1).default; } });
|
|
27
|
+
var useDebounce_1 = require("./hooks/useDebounce");
|
|
28
|
+
Object.defineProperty(exports, "useDebounce", { enumerable: true, get: function () { return __importDefault(useDebounce_1).default; } });
|
|
29
|
+
var useIntersectionObserver_1 = require("./hooks/useIntersectionObserver");
|
|
30
|
+
Object.defineProperty(exports, "useIntersectionObserver", { enumerable: true, get: function () { return __importDefault(useIntersectionObserver_1).default; } });
|
|
31
|
+
__exportStar(require("./types"), exports);
|
|
32
|
+
__exportStar(require("./constants"), exports);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type Category = 'serif' | 'sans-serif' | 'display' | 'handwriting' | 'monospace';
|
|
2
|
+
export type Subset = 'korean' | 'latin' | 'latin-ext' | 'arabic' | 'bengali' | 'chinese-hongkong' | 'chinese-simplified' | 'chinese-traditional' | 'cyrillic' | 'cyrillic-ext' | 'devanagari' | 'greek' | 'greek-ext' | 'gujarati' | 'gurmukhi' | 'hebrew' | 'japanese' | 'kannada' | 'khmer' | 'malayalam' | 'myanmar' | 'oriya' | 'sinhala' | 'tamil' | 'telugu' | 'thai' | 'tibetan' | 'vietnamese';
|
|
3
|
+
export type SortOption = 'trending' | 'popularity' | 'date' | 'alpha';
|
|
4
|
+
export type Variant = '100' | '100italic' | '200' | '200italic' | '300' | '300italic' | 'regular' | 'italic' | '500' | '500italic' | '600' | '600italic' | '700' | '700italic' | '800' | '800italic' | '900' | '900italic';
|
|
5
|
+
export interface Font {
|
|
6
|
+
family: string;
|
|
7
|
+
id: string;
|
|
8
|
+
category: Category;
|
|
9
|
+
subsets: Subset[];
|
|
10
|
+
variants: Variant[];
|
|
11
|
+
kind?: string;
|
|
12
|
+
version?: string;
|
|
13
|
+
lastModified?: string;
|
|
14
|
+
files?: Record<Variant, string>;
|
|
15
|
+
}
|
|
16
|
+
export declare const FONT_FAMILY_DEFAULT = "Open Sans";
|
|
17
|
+
export type FontList = Map<string, Font>;
|
|
18
|
+
export interface Options {
|
|
19
|
+
pickerId: string;
|
|
20
|
+
families: string[];
|
|
21
|
+
categories: Category[];
|
|
22
|
+
scripts: Subset[];
|
|
23
|
+
variants: Variant[];
|
|
24
|
+
filter: (font: Font) => boolean;
|
|
25
|
+
limit: number;
|
|
26
|
+
sort: SortOption;
|
|
27
|
+
}
|
|
28
|
+
export declare const OPTIONS_DEFAULTS: Options;
|
|
29
|
+
export type FilterOptionHandlerArgType = {
|
|
30
|
+
name: 'searchQuery';
|
|
31
|
+
value: string;
|
|
32
|
+
} | {
|
|
33
|
+
name: 'categories';
|
|
34
|
+
value: Category[];
|
|
35
|
+
} | {
|
|
36
|
+
name: 'subsets';
|
|
37
|
+
value: Subset[];
|
|
38
|
+
};
|
|
39
|
+
export type ChangeFilterOptionHandler = (arg: FilterOptionHandlerArgType) => void;
|
|
40
|
+
export type FilterOptionType = {
|
|
41
|
+
searchQuery: string;
|
|
42
|
+
categories: Category[];
|
|
43
|
+
subsets: Subset[];
|
|
44
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OPTIONS_DEFAULTS = exports.FONT_FAMILY_DEFAULT = void 0;
|
|
4
|
+
exports.FONT_FAMILY_DEFAULT = 'Open Sans';
|
|
5
|
+
exports.OPTIONS_DEFAULTS = {
|
|
6
|
+
pickerId: '',
|
|
7
|
+
families: [],
|
|
8
|
+
categories: [],
|
|
9
|
+
scripts: ['latin'],
|
|
10
|
+
variants: ['regular'],
|
|
11
|
+
filter: function () { return true; },
|
|
12
|
+
limit: 50,
|
|
13
|
+
sort: 'alpha'
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var getActiveFontStylesheet_1 = __importDefault(require("./getActiveFontStylesheet"));
|
|
7
|
+
function applyActiveFont(activeFont, previousFontFamily, selectorSuffix) {
|
|
8
|
+
var style = "\n\t\t.apply-font".concat(selectorSuffix, " {\n\t\t\tfont-family: \"").concat(activeFont.family, "\"").concat(previousFontFamily ? ", \"".concat(previousFontFamily, "\"") : '', ";\n\t\t}\n\t");
|
|
9
|
+
var activeFontStylesheet = (0, getActiveFontStylesheet_1.default)(selectorSuffix);
|
|
10
|
+
activeFontStylesheet.innerHTML = style;
|
|
11
|
+
}
|
|
12
|
+
exports.default = applyActiveFont;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
var getGoogleFontCss_1 = __importDefault(require("../api/getGoogleFontCss"));
|
|
43
|
+
var createStyleSheet_1 = __importDefault(require("./createStyleSheet"));
|
|
44
|
+
var extractFontStyles_1 = __importDefault(require("./extractFontStyles"));
|
|
45
|
+
var fillStyleSheet_1 = __importDefault(require("./fillStyleSheet"));
|
|
46
|
+
var getFontId_1 = __importDefault(require("./getFontId"));
|
|
47
|
+
var isStyleSheetExists_1 = __importDefault(require("./isStyleSheetExists"));
|
|
48
|
+
function callGoogleFontCSSAndApply(fontFamily) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
50
|
+
var fontId, css, fontStyles;
|
|
51
|
+
return __generator(this, function (_a) {
|
|
52
|
+
switch (_a.label) {
|
|
53
|
+
case 0:
|
|
54
|
+
fontId = (0, getFontId_1.default)(fontFamily);
|
|
55
|
+
if ((0, isStyleSheetExists_1.default)(fontId)) {
|
|
56
|
+
return [2 /*return*/];
|
|
57
|
+
}
|
|
58
|
+
(0, createStyleSheet_1.default)(fontId, false);
|
|
59
|
+
return [4 /*yield*/, (0, getGoogleFontCss_1.default)({
|
|
60
|
+
family: "".concat(fontFamily, ":wght@100;200;300;400;500;700;800;900"),
|
|
61
|
+
'font-display': 'swap'
|
|
62
|
+
})];
|
|
63
|
+
case 1:
|
|
64
|
+
css = _a.sent();
|
|
65
|
+
fontStyles = (0, extractFontStyles_1.default)(css);
|
|
66
|
+
(0, fillStyleSheet_1.default)(fontId, fontStyles[fontId]);
|
|
67
|
+
return [2 /*return*/];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
exports.default = callGoogleFontCSSAndApply;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function createStylesheet(fontId: string, isPreview: boolean): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var constants_1 = require("../constants");
|
|
4
|
+
function createStylesheet(fontId, isPreview) {
|
|
5
|
+
var stylesheetNode = document.createElement('style');
|
|
6
|
+
stylesheetNode.id = fontId;
|
|
7
|
+
stylesheetNode.setAttribute(constants_1.PREVIEW_ATTRIBUTE_NAME, isPreview.toString());
|
|
8
|
+
document.head.appendChild(stylesheetNode);
|
|
9
|
+
}
|
|
10
|
+
exports.default = createStylesheet;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function extractFontStyles(allFontStyles: string): Record<string, string>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var constants_1 = require("../constants");
|
|
7
|
+
var getFontId_1 = __importDefault(require("./getFontId"));
|
|
8
|
+
var getMatches_1 = __importDefault(require("./getMatches"));
|
|
9
|
+
function extractFontStyles(allFontStyles) {
|
|
10
|
+
var rules = (0, getMatches_1.default)(constants_1.FONT_FACE_REGEX, allFontStyles);
|
|
11
|
+
var fontStyles = {};
|
|
12
|
+
rules.forEach(function (rule) {
|
|
13
|
+
var fontFamily = (0, getMatches_1.default)(constants_1.FONT_FAMILY_REGEX, rule)[0];
|
|
14
|
+
var fontId = (0, getFontId_1.default)(fontFamily);
|
|
15
|
+
if (!(fontId in fontStyles)) {
|
|
16
|
+
fontStyles[fontId] = '';
|
|
17
|
+
}
|
|
18
|
+
fontStyles[fontId] += "@font-face {\n".concat(rule, "\n}\n\n");
|
|
19
|
+
});
|
|
20
|
+
return fontStyles;
|
|
21
|
+
}
|
|
22
|
+
exports.default = extractFontStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function fillStylesheet(fontId: string, styles: string): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function fillStylesheet(fontId, styles) {
|
|
4
|
+
var stylesheetNode = document.getElementById(fontId);
|
|
5
|
+
if (stylesheetNode) {
|
|
6
|
+
stylesheetNode.textContent = styles;
|
|
7
|
+
}
|
|
8
|
+
else {
|
|
9
|
+
// eslint-disable-next-line no-console
|
|
10
|
+
console.error("Could not fill stylesheet: Stylesheet with ID \"".concat(fontId, "\" not found"));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = fillStylesheet;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getActiveFontStylesheet(selectorSuffix: string): HTMLStyleElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function getActiveFontStylesheet(selectorSuffix) {
|
|
4
|
+
var stylesheetId = "active-font-".concat(selectorSuffix);
|
|
5
|
+
var activeFontStylesheet = document.getElementById(stylesheetId);
|
|
6
|
+
if (!activeFontStylesheet) {
|
|
7
|
+
activeFontStylesheet = document.createElement('style');
|
|
8
|
+
activeFontStylesheet.id = stylesheetId;
|
|
9
|
+
document.head.appendChild(activeFontStylesheet);
|
|
10
|
+
}
|
|
11
|
+
return activeFontStylesheet;
|
|
12
|
+
}
|
|
13
|
+
exports.default = getActiveFontStylesheet;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getFontId(fontFamily: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getMatches(regex: RegExp, str: string): string[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function getMatches(regex, str) {
|
|
4
|
+
var matches = [];
|
|
5
|
+
var match;
|
|
6
|
+
do {
|
|
7
|
+
match = regex.exec(str);
|
|
8
|
+
if (match) {
|
|
9
|
+
matches.push(match[1]);
|
|
10
|
+
}
|
|
11
|
+
} while (match);
|
|
12
|
+
return matches;
|
|
13
|
+
}
|
|
14
|
+
exports.default = getMatches;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function isStylesheetExists(fontId: string, isPreview?: boolean): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var constants_1 = require("../constants");
|
|
4
|
+
function isStylesheetExists(fontId, isPreview) {
|
|
5
|
+
var stylesheetNode = document.getElementById(fontId);
|
|
6
|
+
if (isPreview === null || isPreview === undefined) {
|
|
7
|
+
return stylesheetNode !== null;
|
|
8
|
+
}
|
|
9
|
+
return (stylesheetNode !== null &&
|
|
10
|
+
stylesheetNode.getAttribute(constants_1.PREVIEW_ATTRIBUTE_NAME) === isPreview.toString());
|
|
11
|
+
}
|
|
12
|
+
exports.default = isStylesheetExists;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function parseVariants(variant, _a) {
|
|
4
|
+
var prefix = _a.prefix, separator = _a.separator;
|
|
5
|
+
var initialAcc = '';
|
|
6
|
+
var fontWeights = variant.reduce(function (acc, cur) {
|
|
7
|
+
var conditionalPrefix = acc === '' ? '' : separator;
|
|
8
|
+
if (cur === 'regular') {
|
|
9
|
+
return "".concat(acc + conditionalPrefix).concat(400);
|
|
10
|
+
}
|
|
11
|
+
if (Number.isNaN(Number(cur))) {
|
|
12
|
+
return acc;
|
|
13
|
+
}
|
|
14
|
+
return "".concat(acc + conditionalPrefix).concat(cur);
|
|
15
|
+
}, initialAcc);
|
|
16
|
+
return "".concat(prefix).concat(fontWeights);
|
|
17
|
+
}
|
|
18
|
+
exports.default = parseVariants;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function setStylesheetType(fontId: string, isPreview: boolean): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var constants_1 = require("../constants");
|
|
4
|
+
function setStylesheetType(fontId, isPreview) {
|
|
5
|
+
var stylesheetId = fontId;
|
|
6
|
+
var stylesheetNode = document.getElementById(stylesheetId);
|
|
7
|
+
if (stylesheetNode) {
|
|
8
|
+
stylesheetNode.setAttribute(constants_1.PREVIEW_ATTRIBUTE_NAME, isPreview.toString());
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
// eslint-disable-next-line no-console
|
|
12
|
+
console.error("Could not change stylesheet type: Stylesheet with ID \"".concat(stylesheetId, "\" not found"));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.default = setStylesheetType;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
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 TypefaceDisplay24 = function (_a) {
|
|
27
|
-
var color = _a.color, rest = __rest(_a, ["color"]);
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: "62", height: "24", viewBox: "0 0 62 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: color, fillRule: "evenodd", d: "M7.1115,15.5015 C9.3905,15.5015 10.5785,14.3205 10.5785,11.6375 C10.5785,8.9795 9.3905,7.8065 7.1285,7.8065 L5.4765,7.8065 L5.4765,15.5015 L7.1115,15.5015 Z M3.0005,17.6315 L3.0005,5.6765 L7.2605,5.6765 C10.8595,5.6765 13.0635,7.9145 13.0555217,11.6375 C13.0635,15.3775 10.8595,17.6315 7.2105,17.6315 L3.0005,17.6315 Z M14.805,17.632 L17.249,17.632 L17.249,8.666 L14.805,8.666 L14.805,17.632 Z M16.027,5 C16.754,5.008 17.356,5.561 17.348,6.255 C17.356,6.932 16.754,7.493 16.027,7.493 C15.292,7.493 14.69,6.932 14.69,6.255 C14.69,5.561 15.292,5.008 16.027,5 L16.027,5 Z M22.797,10.2838 C22.004,10.2918 21.402,10.6638 21.41,11.2088 C21.402,11.6128 21.715,11.9268 22.566,12.0998 L24.167,12.4308 C25.909,12.7938 26.752,13.5698 26.76,14.8578 C26.752,16.6248 25.166,17.8048 22.78,17.8128 C20.361,17.8048 18.941,16.7238 18.735,14.9728 L21.195,14.9728 C21.311,15.6748 21.881,16.0378 22.78,16.0468 C23.672,16.0378 24.267,15.6828 24.267,15.1048 C24.267,14.6428 23.887,14.3538 23.045,14.1808 L21.559,13.8838 C19.85,13.5448 18.975,12.6698 18.983,11.3408 C18.975,9.6238 20.452,8.5498 22.764,8.5498 C25.026,8.5498 26.43,9.6238 26.562,11.3238 L24.267,11.3238 C24.159,10.6968 23.614,10.2918 22.797,10.2838 M32.5556,15.8318 C33.8026,15.8238 34.4796,14.7258 34.4706,13.1408 C34.4796,11.5798 33.8186,10.4988 32.5556,10.4988 C31.3336,10.4988 30.6486,11.5308 30.6566,13.1408 C30.6486,14.7588 31.3416,15.8238 32.5556,15.8318 L32.5556,15.8318 Z M28.2626,8.6658 L30.6736,8.6658 L30.6736,10.1678 L30.7726,10.1678 C31.1106,9.4418 31.8206,8.5498 33.3316,8.5498 C35.3126,8.5498 36.9726,10.0858 36.96463,13.1568 C36.9726,16.1538 35.3796,17.7798 33.3316,17.7798 C31.8706,17.7798 31.1186,16.9378 30.7726,16.1948 L30.7066,16.1948 L30.7066,20.9998 L28.2626,20.9998 L28.2626,8.6658 Z M38.549,17.632 L40.993,17.632 L40.993,5.677 L38.549,5.677 L38.549,17.632 Z M46.1448,16.1125 C47.2598,16.1045 48.0358,15.3775 48.0268,14.4285 L48.0268,13.7765 C47.6558,13.7925 46.6068,13.8505 46.1948,13.8835 C45.3438,13.9575 44.8078,14.3625 44.8078,15.0555 C44.8078,15.7405 45.3608,16.1045 46.1448,16.1125 M45.7978,12.3645 C46.4418,12.3235 47.6478,12.2655 48.0268,12.2485 L48.0268,11.5225 C48.0188,10.7705 47.5068,10.3415 46.5908,10.3335 C45.7568,10.3415 45.2368,10.7135 45.1048,11.3245 L42.7768,11.3245 C42.9248,9.7715 44.2788,8.5505 46.6568,8.5505 C48.6138,8.5505 50.4628,9.4255 50.4548259,11.5885 L50.4548259,17.6315 L48.1428,17.6315 L48.1428,16.3935 L48.0768,16.3935 C47.6388,17.2185 46.7808,17.8045 45.4518,17.7965809 C43.7338,17.8045 42.4708,16.8965 42.4628,15.1215 C42.4708,13.1235 44.0728,12.4715 45.7978,12.3645 M52.1882,20.9505 L52.1882,19.0515 C52.5022,19.0765 52.8732,19.0845 53.1792,19.0845 C53.6662,19.0845 54.0542,19.0355 54.3512,18.2595 L54.5002,17.8795 L51.2802,8.6655 L53.8392,8.6655 L55.7222,15.2705 L55.8212,15.2705 L57.7192,8.6655 L60.3122,8.6655 L56.8112,18.6225 C56.2992,20.0675 55.3172,20.9915 53.4262,21.0005 C52.9482,20.9915 52.5022,20.9835 52.1882,20.9505" }) })));
|
|
29
|
-
};
|
|
30
|
-
exports.default = TypefaceDisplay24;
|
|
@@ -1,30 +0,0 @@
|
|
|
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 TypefaceHand24 = function (_a) {
|
|
27
|
-
var color = _a.color, rest = __rest(_a, ["color"]);
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: "50", height: "24", viewBox: "0 0 50 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: color, fillRule: "evenodd", d: "M18.1506,4.2548 C18.4966,4.9718 18.4226,6.1338 17.3836,7.9898 C16.6416,9.3258 15.6766,10.9838 14.6126,12.9138 C15.1816,13.1618 15.4786,13.5828 15.5776,14.0038 C15.6266,14.2008 15.5526,14.3238 15.3056,14.2758 C14.9096,14.2008 14.4396,14.1768 13.9196,14.2008 C13.0786,15.8088 12.2116,17.5898 11.3956,19.4458 C11.2966,19.6938 11.1236,19.7198 10.9746,19.4958 C10.6286,19.0008 10.4056,18.2828 10.9016,16.7738 C11.0736,16.2788 11.4456,15.4138 11.9396,14.3988 C10.1336,14.6218 8.2286,14.9428 7.0656,14.9428 C6.2986,16.4778 5.5316,18.1098 4.8136,19.7678 C4.7156,20.0158 4.5166,20.0898 4.3686,19.8668 C3.9976,19.3468 3.8246,18.6538 4.2446,17.1448 C4.3936,16.6248 4.8136,15.7348 5.3086,14.6218 C4.7646,14.3748 4.5676,14.0278 4.4676,13.8308 C4.3196,13.5328 4.3686,13.4338 4.7896,13.4578 C5.1606,13.4838 5.5066,13.5328 5.8286,13.5328 C6.23711613,12.6835097 6.69344912,11.768288 7.1631746,10.8530793 L7.51744193,10.1677055 C8.76240125,7.77611842 10.0403419,5.49821935 10.7286,4.5268 C10.9506,4.2278 11.1736,4.2788 11.3216,4.5508 C11.6936,5.2438 11.6186,6.4568 10.7026,8.2138 C9.9856,9.5998 8.9716,11.3548 7.8826,13.4098 C9.5896,13.1858 11.1236,12.7668 12.7566,12.6658 C14.3646,9.4748 16.5426,5.5398 17.5316,4.2278 C17.7796,3.9078 18.0026,3.9318 18.1506,4.2548 Z M47.6623,4.2541 C48.0093,5.0701 47.9343,6.1341 46.8953,7.9901 C45.7083,10.1171 43.3323,14.2011 42.0953,16.8241 C41.4273,18.2591 41.4023,19.2721 42.2443,19.2241 C43.2583,19.1741 44.5943,17.5171 45.4603,15.8091 C45.5853,15.5871 45.7583,15.5871 45.8573,15.7851 C45.9563,16.0061 45.9803,16.6511 45.6573,17.3181 C44.9913,18.6801 43.4553,19.9921 42.0953,19.9171 C40.7603,19.8421 40.0913,19.1011 40.0913,17.9371 C39.2993,18.9281 38.1853,19.8421 37.0223,19.8421 C35.9950679,19.8421 35.3377337,19.2157049 35.1052825,18.2580366 C34.3181779,19.2142617 33.1569308,19.941 32.0683,19.941 C29.9653,19.941 29.4693,18.408 30.1883,16.254 C31.0043,13.831 33.1823,11.207 32.7373,11.01 C32.4893,10.909 31.0533,11.602 29.4693,13.335 C28.0103,14.918 26.9223,17.294 25.8573,19.619 C25.7583,19.842 25.6113,19.941 25.3873,19.72 C25.2069569,19.5396569 25.0727521,19.3170095 24.9939626,19.0472028 C24.3231606,19.6091367 23.538084,19.9811179 22.8089,19.9415 C21.4729,19.8665 20.7799,19.0745 20.7799,17.9125 C19.9879,18.9275 18.8749,19.8425 17.6869,19.8425 C15.3859,19.8425 14.9159,16.6995 16.9699,13.7055 C18.9739,10.7865 20.9289,9.6725 22.1659,9.6725 C23.2299,9.6725 23.7249,10.4905 23.6749,11.4555 C23.9969,10.8605 24.2929,10.3405 24.5649,9.9445 C24.7889,9.6235 24.9869,9.5735 25.1599,9.7965 C25.5309,10.2425 25.7279,11.3065 25.1359,12.5435 C24.5919,13.6575 23.3529,15.5125 22.7599,16.8245 C22.1419,18.2085 22.1159,19.2725 22.9579,19.2235 C23.5748884,19.1931065 24.3193566,18.5596785 25.0028549,17.6841676 C25.0358718,17.521896 25.0818541,17.3509002 25.1393,17.171 C25.6353,15.612 27.5413,12.172 29.0983,9.872 C29.2713,9.6 29.4693,9.624 29.6183,9.872 C29.9893,10.49 29.9653,11.33 29.6933,12.221 C30.8073,11.034 32.4893,9.672 33.3053,9.797 C34.1213,9.92 34.8893,11.133 34.2703,12.42 C33.7503,13.508 32.5373,15.34 31.9693,16.625 C31.3273,18.061 31.4743,19.224 32.3643,19.174 C33.2306142,19.1322191 34.2394299,17.9380662 35.0999983,16.5146223 C35.2632497,15.6403335 35.6586175,14.6763791 36.3053,13.7301 C38.2593,10.8611 40.2403,9.7471 41.4773,9.7471 C42.4903,9.7471 42.9863,10.5141 42.9623,11.4291 C44.2983,8.8801 46.1773,5.5161 47.0683,4.2541 C47.3163,3.9081 47.5393,3.9321 47.6623,4.2541 Z M18.6279,14.6945 C17.3159,16.8245 16.9939,19.0005 17.9589,19.0265 C18.9739,19.0505 20.2599,17.4675 21.5229,15.2895 C23.0809,12.5675 23.3039,11.0345 22.5869,10.9595 C21.7949,10.8845 19.9879,12.4925 18.6279,14.6945 Z M41.8723,11.0101 C41.1063,10.9841 39.2993,12.5431 37.9393,14.7211 C36.6013,16.8491 36.3293,19.0001 37.2943,19.0261 C38.2863,19.0511 39.6213,17.5901 40.7843,15.3401 C42.2183,12.5931 42.5913,11.0341 41.8723,11.0101 Z" }) })));
|
|
29
|
-
};
|
|
30
|
-
exports.default = TypefaceHand24;
|
|
@@ -1,30 +0,0 @@
|
|
|
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 TypefaceMonospace24 = function (_a) {
|
|
27
|
-
var color = _a.color, rest = __rest(_a, ["color"]);
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: "100", height: "24", viewBox: "0 0 100 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: color, fillRule: "evenodd", d: "M10.171,6 L7.982,12.223 L5.957,6 L4,6 L4,18.444 L5.538,18.444 L5.538,13.479 L5.41,8.462 L7.521,14.983 L8.427,14.983 L10.726,8.282 L10.598,13.479 L10.598,18.444 L12.137,18.444 L12.137,6 L10.171,6 Z M15.8622,13.9233 C15.8622,14.3793 15.9162,14.8133 16.0242,15.2263 C16.1332,15.6403 16.2982,16.0033 16.5172,16.3163 C16.7372,16.6303 17.0102,16.8773 17.3412,17.0603 C17.6712,17.2423 18.0562,17.3333 18.4942,17.3333 C18.9282,17.3333 19.3092,17.2423 19.6372,17.0603 C19.9652,16.8773 20.2382,16.6303 20.4572,16.3163 C20.6772,16.0033 20.8392,15.6403 20.9472,15.2263 C21.0562,14.8133 21.1102,14.3793 21.1102,13.9233 L21.1102,13.7353 C21.1102,13.2853 21.0562,12.8533 20.9452,12.4403 C20.8342,12.0273 20.6682,11.6643 20.4492,11.3503 C20.2302,11.0373 19.9562,10.7883 19.6282,10.6023 C19.3012,10.4173 18.9162,10.3253 18.4772,10.3253 C18.0392,10.3253 17.6572,10.4173 17.3322,10.6023 C17.0072,10.7883 16.7372,11.0373 16.5172,11.3503 C16.2982,11.6643 16.1332,12.0273 16.0242,12.4403 C15.9162,12.8533 15.8622,13.2853 15.8622,13.7353 L15.8622,13.9233 Z M14.2812,13.7353 C14.2812,13.0683 14.3782,12.4493 14.5712,11.8763 C14.7652,11.3033 15.0442,10.8063 15.4062,10.3853 C15.7682,9.9633 16.2072,9.6313 16.7252,9.3893 C17.2442,9.1473 17.8282,9.0263 18.4772,9.0263 C19.1332,9.0263 19.7222,9.1473 20.2442,9.3893 C20.7652,9.6313 21.2072,9.9633 21.5692,10.3853 C21.9302,10.8063 22.2072,11.3033 22.4002,11.8763 C22.5942,12.4493 22.6912,13.0683 22.6912,13.7353 L22.6912,13.9233 C22.6912,14.5903 22.5942,15.2083 22.4002,15.7783 C22.2072,16.3473 21.9302,16.8433 21.5692,17.2653 C21.2072,17.6873 20.7652,18.0173 20.2472,18.2563 C19.7282,18.4963 19.1442,18.6153 18.4942,18.6153 C17.8392,18.6153 17.2522,18.4963 16.7312,18.2563 C16.2102,18.0173 15.7682,17.6873 15.4062,17.2653 C15.0442,16.8433 14.7652,16.3473 14.5712,15.7783 C14.3782,15.2083 14.2812,14.5903 14.2812,13.9233 L14.2812,13.7353 Z M26.6486,9.1968 L26.7596,10.5648 C27.0956,10.0858 27.5086,9.7108 27.9986,9.4408 C28.4886,9.1698 29.0356,9.0318 29.6396,9.0258 C30.1246,9.0258 30.5646,9.0938 30.9606,9.2308 C31.3566,9.3678 31.6946,9.5818 31.9736,9.8718 C32.2526,10.1628 32.4676,10.5318 32.6186,10.9788 C32.7696,11.4258 32.8456,11.9578 32.8456,12.5728 L32.8456,18.4448 L31.2636,18.4448 L31.2636,12.6068 C31.2636,12.1968 31.2186,11.8488 31.1276,11.5648 C31.0356,11.2798 30.9006,11.0488 30.7216,10.8718 C30.5416,10.6958 30.3226,10.5668 30.0636,10.4878 C29.8036,10.4078 29.5066,10.3678 29.1696,10.3678 C28.6396,10.3678 28.1746,10.4998 27.7726,10.7648 C27.3706,11.0298 27.0506,11.3788 26.8106,11.8118 L26.8106,18.4448 L25.2296,18.4448 L25.2296,9.1968 L26.6486,9.1968 Z M36.8708,13.9233 C36.8708,14.3793 36.9248,14.8133 37.0328,15.2263 C37.1418,15.6403 37.3048,16.0033 37.5248,16.3163 C37.7438,16.6303 38.0188,16.8773 38.3498,17.0603 C38.6798,17.2423 39.0648,17.3333 39.5028,17.3333 C39.9368,17.3333 40.3168,17.2423 40.6448,17.0603 C40.9718,16.8773 41.2458,16.6303 41.4648,16.3163 C41.6838,16.0033 41.8478,15.6403 41.9558,15.2263 C42.0648,14.8133 42.1188,14.3793 42.1188,13.9233 L42.1188,13.7353 C42.1188,13.2853 42.0628,12.8533 41.9518,12.4403 C41.8408,12.0273 41.6758,11.6643 41.4558,11.3503 C41.2368,11.0373 40.9638,10.7883 40.6358,10.6023 C40.3078,10.4173 39.9248,10.3253 39.4858,10.3253 C39.0478,10.3253 38.6658,10.4173 38.3408,10.6023 C38.0158,10.7883 37.7438,11.0373 37.5248,11.3503 C37.3048,11.6643 37.1418,12.0273 37.0328,12.4403 C36.9248,12.8533 36.8708,13.2853 36.8708,13.7353 L36.8708,13.9233 Z M35.2898,13.7353 C35.2898,13.0683 35.3868,12.4493 35.5798,11.8763 C35.7738,11.3033 36.0518,10.8063 36.4138,10.3853 C36.7758,9.9633 37.2158,9.6313 37.7338,9.3893 C38.2528,9.1473 38.8368,9.0263 39.4858,9.0263 C40.1418,9.0263 40.7298,9.1473 41.2508,9.3893 C41.7728,9.6313 42.2138,9.9633 42.5758,10.3853 C42.9378,10.8063 43.2158,11.3033 43.4088,11.8763 C43.6028,12.4493 43.6998,13.0683 43.6998,13.7353 L43.6998,13.9233 C43.6998,14.5903 43.6028,15.2083 43.4088,15.7783 C43.2158,16.3473 42.9378,16.8433 42.5758,17.2653 C42.2138,17.6873 41.7738,18.0173 41.2558,18.2563 C40.7368,18.4963 40.1528,18.6153 39.5028,18.6153 C38.8478,18.6153 38.2598,18.4963 37.7388,18.2563 C37.2168,18.0173 36.7758,17.6873 36.4138,17.2653 C36.0518,16.8433 35.7738,16.3473 35.5798,15.7783 C35.3868,15.2083 35.2898,14.5903 35.2898,13.9233 L35.2898,13.7353 Z M52.3836,15.9917 C52.3836,15.8037 52.3466,15.6337 52.2726,15.4827 C52.1986,15.3317 52.0726,15.1937 51.8966,15.0687 C51.7196,14.9437 51.4866,14.8277 51.1956,14.7227 C50.9046,14.6167 50.5436,14.5217 50.1096,14.4357 C49.5806,14.3277 49.0976,14.1967 48.6616,14.0427 C48.2256,13.8887 47.8526,13.7057 47.5416,13.4917 C47.2316,13.2777 46.9906,13.0277 46.8196,12.7397 C46.6486,12.4517 46.5626,12.1167 46.5626,11.7357 C46.5626,11.3597 46.6516,11.0077 46.8276,10.6797 C47.0046,10.3517 47.2526,10.0657 47.5716,9.8207 C47.8906,9.5757 48.2706,9.3817 48.7126,9.2397 C49.1546,9.0967 49.6396,9.0257 50.1696,9.0257 C50.7396,9.0257 51.2526,9.0997 51.7086,9.2477 C52.1646,9.3967 52.5516,9.6017 52.8706,9.8637 C53.1896,10.1257 53.4366,10.4317 53.6096,10.7827 C53.7836,11.1327 53.8706,11.5107 53.8706,11.9147 L52.2896,11.9147 C52.2896,11.7157 52.2386,11.5197 52.1356,11.3297 C52.0336,11.1387 51.8906,10.9687 51.7086,10.8207 C51.5256,10.6727 51.3056,10.5527 51.0456,10.4617 C50.7866,10.3707 50.4946,10.3247 50.1696,10.3247 C49.8336,10.3247 49.5386,10.3617 49.2856,10.4357 C49.0316,10.5107 48.8206,10.6097 48.6526,10.7357 C48.4846,10.8607 48.3576,11.0057 48.2726,11.1707 C48.1866,11.3367 48.1446,11.5077 48.1446,11.6837 C48.1446,11.8667 48.1786,12.0287 48.2466,12.1707 C48.3156,12.3137 48.4336,12.4417 48.6016,12.5557 C48.7696,12.6697 48.9946,12.7727 49.2766,12.8637 C49.5586,12.9547 49.9166,13.0427 50.3496,13.1287 C50.9196,13.2477 51.4296,13.3867 51.8796,13.5427 C52.3296,13.6997 52.7086,13.8877 53.0156,14.1067 C53.3236,14.3267 53.5586,14.5817 53.7216,14.8717 C53.8836,15.1627 53.9646,15.4987 53.9646,15.8807 C53.9646,16.2907 53.8726,16.6637 53.6866,17.0007 C53.5016,17.3367 53.2436,17.6237 52.9136,17.8637 C52.5826,18.1027 52.1866,18.2877 51.7256,18.4187 C51.2636,18.5497 50.7596,18.6157 50.2126,18.6157 C49.5856,18.6157 49.0276,18.5317 48.5376,18.3637 C48.0476,18.1957 47.6326,17.9727 47.2936,17.6967 C46.9546,17.4207 46.6956,17.0997 46.5156,16.7357 C46.3366,16.3707 46.2466,15.9917 46.2466,15.5987 L47.8276,15.5987 C47.8506,15.9237 47.9376,16.1967 48.0886,16.4187 C48.2396,16.6417 48.4276,16.8207 48.6526,16.9577 C48.8776,17.0947 49.1276,17.1907 49.4006,17.2477 C49.6746,17.3047 49.9446,17.3337 50.2126,17.3337 C50.8796,17.3337 51.4066,17.2107 51.7936,16.9657 C52.1816,16.7207 52.3776,16.3967 52.3836,15.9917 M62.9648,13.7438 C62.9648,13.2938 62.9148,12.8648 62.8148,12.4578 C62.7158,12.0498 62.5618,11.6908 62.3538,11.3808 C62.1458,11.0698 61.8818,10.8238 61.5628,10.6408 C61.2438,10.4588 60.8618,10.3678 60.4178,10.3678 C59.9108,10.3678 59.4848,10.4858 59.1398,10.7228 C58.7948,10.9588 58.5208,11.2628 58.3148,11.6328 L58.3148,16.0858 C58.5208,16.4508 58.7938,16.7478 59.1358,16.9788 C59.4778,17.2098 59.9108,17.3248 60.4348,17.3248 C60.8738,17.3248 61.2528,17.2328 61.5718,17.0468 C61.8908,16.8618 62.1528,16.6128 62.3578,16.2998 C62.5628,15.9858 62.7158,15.6238 62.8148,15.2138 C62.9148,14.8038 62.9648,14.3738 62.9648,13.9228 L62.9648,13.7438 Z M64.5458,13.9228 C64.5458,14.5838 64.4658,15.2008 64.3068,15.7738 C64.1468,16.3468 63.9138,16.8438 63.6058,17.2648 C63.2978,17.6868 62.9178,18.0168 62.4648,18.2568 C62.0118,18.4958 61.4948,18.6158 60.9138,18.6158 C60.3498,18.6158 59.8518,18.5248 59.4218,18.3418 C58.9918,18.1598 58.6228,17.8978 58.3148,17.5558 L58.3148,21.9998 L56.7338,21.9998 L56.7338,9.1968 L58.1788,9.1968 L58.2558,10.2058 C58.5628,9.8238 58.9348,9.5318 59.3708,9.3288 C59.8068,9.1268 60.3128,9.0258 60.8878,9.0258 C61.4808,9.0258 62.0048,9.1428 62.4608,9.3758 C62.9168,9.6098 63.2978,9.9348 63.6058,10.3508 C63.9138,10.7668 64.1468,11.2638 64.3068,11.8418 C64.4658,12.4208 64.5458,13.0548 64.5458,13.7438 L64.5458,13.9228 Z M70.5289,17.2395 C70.8369,17.2395 71.1239,17.1995 71.3919,17.1195 C71.6599,17.0405 71.9039,16.9345 72.1229,16.8035 C72.3419,16.6725 72.5319,16.5225 72.6909,16.3545 C72.8509,16.1865 72.9759,16.0115 73.0669,15.8295 L73.0669,13.9575 L71.5969,13.9575 C70.6739,13.9575 69.9559,14.0945 69.4439,14.3675 C68.9309,14.6415 68.6739,15.0715 68.6739,15.6585 C68.6739,15.8865 68.7129,16.0975 68.7899,16.2905 C68.8669,16.4845 68.9819,16.6515 69.1359,16.7905 C69.2899,16.9305 69.4829,17.0405 69.7169,17.1195 C69.9509,17.1995 70.2209,17.2395 70.5289,17.2395 L70.5289,17.2395 Z M73.3239,18.4445 C73.2609,18.3245 73.2109,18.1755 73.1739,17.9955 C73.1369,17.8165 73.1099,17.6295 73.0929,17.4365 C72.9339,17.5955 72.7559,17.7465 72.5589,17.8895 C72.3619,18.0315 72.1459,18.1565 71.9089,18.2655 C71.6729,18.3735 71.4209,18.4585 71.1529,18.5215 C70.8849,18.5845 70.5999,18.6155 70.2979,18.6155 C69.8079,18.6155 69.3649,18.5445 68.9689,18.4015 C68.5729,18.2595 68.2369,18.0675 67.9609,17.8245 C67.6839,17.5825 67.4709,17.2955 67.3199,16.9615 C67.1689,16.6285 67.0929,16.2675 67.0929,15.8805 C67.0929,15.3735 67.1939,14.9285 67.3969,14.5475 C67.5989,14.1655 67.8849,13.8475 68.2559,13.5945 C68.6259,13.3405 69.0719,13.1515 69.5929,13.0255 C70.1139,12.9005 70.6969,12.8375 71.3409,12.8375 L73.0669,12.8375 L73.0669,12.1115 C73.0669,11.8325 73.0159,11.5815 72.9139,11.3595 C72.8109,11.1365 72.6659,10.9475 72.4779,10.7905 C72.2899,10.6345 72.0599,10.5125 71.7899,10.4275 C71.5189,10.3425 71.2159,10.2995 70.8789,10.2995 C70.5659,10.2995 70.2849,10.3395 70.0379,10.4185 C69.7899,10.4985 69.5799,10.6045 69.4089,10.7355 C69.2379,10.8665 69.1059,11.0215 69.0119,11.2015 C68.9179,11.3805 68.8709,11.5675 68.8709,11.7605 L67.2809,11.7605 C67.2869,11.4245 67.3739,11.0945 67.5419,10.7695 C67.7099,10.4445 67.9519,10.1525 68.2679,9.8935 C68.5849,9.6345 68.9689,9.4245 69.4219,9.2655 C69.8749,9.1055 70.3889,9.0255 70.9649,9.0255 C71.4889,9.0255 71.9759,9.0895 72.4259,9.2185 C72.8769,9.3465 73.2649,9.5405 73.5929,9.7995 C73.9209,10.0585 74.1789,10.3815 74.3669,10.7695 C74.5549,11.1565 74.6489,11.6095 74.6489,12.1285 L74.6489,16.4275 C74.6489,16.7355 74.6769,17.0615 74.7339,17.4065 C74.7909,17.7505 74.8709,18.0515 74.9729,18.3075 L74.9729,18.4445 L73.3239,18.4445 Z M81.6913,17.3335 C81.9763,17.3335 82.2543,17.2875 82.5243,17.1965 C82.7953,17.1055 83.0363,16.9785 83.2473,16.8165 C83.4573,16.6545 83.6273,16.4635 83.7553,16.2435 C83.8833,16.0245 83.9503,15.7865 83.9563,15.5305 L85.4523,15.5305 C85.4463,15.9405 85.3393,16.3325 85.1313,16.7055 C84.9233,17.0785 84.6453,17.4065 84.2983,17.6885 C83.9503,17.9705 83.5513,18.1955 83.1013,18.3635 C82.6513,18.5315 82.1813,18.6155 81.6913,18.6155 C80.9903,18.6155 80.3783,18.4905 79.8533,18.2395 C79.3293,17.9885 78.8923,17.6515 78.5413,17.2265 C78.1913,16.8025 77.9273,16.3125 77.7513,15.7565 C77.5743,15.2015 77.4863,14.6155 77.4863,14.0005 L77.4863,13.6415 C77.4863,13.0315 77.5743,12.4475 77.7513,11.8895 C77.9273,11.3305 78.1913,10.8395 78.5413,10.4145 C78.8923,9.9905 79.3293,9.6525 79.8533,9.4015 C80.3783,9.1515 80.9903,9.0255 81.6913,9.0255 C82.2383,9.0255 82.7413,9.1125 83.2003,9.2865 C83.6583,9.4605 84.0543,9.6965 84.3883,9.9955 C84.7213,10.2955 84.9823,10.6495 85.1703,11.0605 C85.3583,11.4705 85.4523,11.9095 85.4523,12.3765 L83.9563,12.3765 C83.9503,12.0975 83.8893,11.8335 83.7723,11.5855 C83.6553,11.3375 83.4973,11.1195 83.2983,10.9315 C83.0983,10.7435 82.8613,10.5955 82.5843,10.4875 C82.3083,10.3795 82.0103,10.3245 81.6913,10.3245 C81.2013,10.3245 80.7893,10.4235 80.4563,10.6195 C80.1233,10.8165 79.8533,11.0725 79.6483,11.3895 C79.4433,11.7055 79.2963,12.0605 79.2083,12.4535 C79.1203,12.8465 79.0763,13.2425 79.0763,13.6415 L79.0763,14.0005 C79.0763,14.4045 79.1203,14.8055 79.2083,15.2015 C79.2963,15.5975 79.4423,15.9535 79.6443,16.2695 C79.8463,16.5855 80.1143,16.8425 80.4473,17.0385 C80.7813,17.2355 81.1953,17.3335 81.6913,17.3335 M92.1357,10.325 C91.8167,10.325 91.5147,10.383 91.2297,10.5 C90.9447,10.617 90.6887,10.788 90.4607,11.013 C90.2327,11.238 90.0407,11.514 89.8837,11.842 C89.7267,12.17 89.6167,12.547 89.5547,12.975 L94.5287,12.975 L94.5287,12.855 C94.5117,12.547 94.4537,12.242 94.3537,11.94 C94.2537,11.638 94.1077,11.368 93.9137,11.128 C93.7197,10.889 93.4757,10.695 93.1827,10.547 C92.8897,10.399 92.5407,10.325 92.1357,10.325 M92.3407,18.616 C91.6917,18.616 91.0947,18.504 90.5507,18.282 C90.0057,18.06 89.5407,17.749 89.1527,17.351 C88.7657,16.952 88.4637,16.479 88.2467,15.932 C88.0307,15.385 87.9217,14.789 87.9217,14.146 L87.9217,13.787 C87.9217,13.04 88.0417,12.372 88.2807,11.782 C88.5207,11.193 88.8377,10.694 89.2337,10.287 C89.6297,9.879 90.0797,9.567 90.5847,9.351 C91.0887,9.134 91.6057,9.026 92.1357,9.026 C92.8027,9.026 93.3847,9.141 93.8837,9.372 C94.3817,9.603 94.7967,9.922 95.1267,10.329 C95.4577,10.737 95.7037,11.217 95.8667,11.769 C96.0287,12.322 96.1097,12.92 96.1097,13.564 L96.1097,14.274 L89.5037,14.274 C89.5207,14.695 89.6017,15.091 89.7467,15.462 C89.8917,15.832 90.0917,16.155 90.3447,16.432 C90.5987,16.708 90.9017,16.926 91.2557,17.086 C91.6087,17.245 91.9987,17.325 92.4267,17.325 C92.9907,17.325 93.4917,17.211 93.9307,16.983 C94.3697,16.755 94.7337,16.453 95.0247,16.077 L95.9907,16.829 C95.8367,17.063 95.6447,17.287 95.4137,17.5 C95.1827,17.714 94.9167,17.903 94.6147,18.069 C94.3127,18.234 93.9707,18.366 93.5887,18.466 C93.2067,18.566 92.7907,18.616 92.3407,18.616" }) })));
|
|
29
|
-
};
|
|
30
|
-
exports.default = TypefaceMonospace24;
|