@taiga-ui/icons 2.33.0 → 2.36.0
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/all.d.ts +1 -1
- package/bundles/taiga-ui-icons-scripts.umd.js +24 -36
- package/bundles/taiga-ui-icons-scripts.umd.js.map +1 -1
- package/bundles/taiga-ui-icons-scripts.umd.min.js +1 -1
- package/bundles/taiga-ui-icons-scripts.umd.min.js.map +1 -1
- package/bundles/taiga-ui-icons.umd.js +1 -1
- package/bundles/taiga-ui-icons.umd.js.map +1 -1
- package/bundles/taiga-ui-icons.umd.min.js +1 -1
- package/bundles/taiga-ui-icons.umd.min.js.map +1 -1
- package/esm2015/all.js +2 -2
- package/esm2015/scripts/rollup-svgo.js +25 -28
- package/esm5/all.js +2 -2
- package/esm5/scripts/rollup-svgo.js +26 -38
- package/fesm2015/taiga-ui-icons-scripts.js +24 -26
- package/fesm2015/taiga-ui-icons-scripts.js.map +1 -1
- package/fesm2015/taiga-ui-icons.js +1 -1
- package/fesm2015/taiga-ui-icons.js.map +1 -1
- package/fesm5/taiga-ui-icons-scripts.js +25 -37
- package/fesm5/taiga-ui-icons-scripts.js.map +1 -1
- package/fesm5/taiga-ui-icons.js +1 -1
- package/fesm5/taiga-ui-icons.js.map +1 -1
- package/package.json +1 -1
- package/src/tuiIconVisa.svg +6 -6
- package/taiga-ui-icons.metadata.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
2
|
import { createFilter } from '@rollup/pluginutils';
|
|
3
3
|
import { optimize } from 'svgo';
|
|
4
4
|
export function rollupSvgo(_a) {
|
|
@@ -8,43 +8,31 @@ export function rollupSvgo(_a) {
|
|
|
8
8
|
name: 'rollupSvgo',
|
|
9
9
|
transform: function (svgString, path) {
|
|
10
10
|
var _a;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
if (error) {
|
|
36
|
-
console.error('\x1b[31m%s\x1b[0m', '[error]', path, "\n" + svgString, "\n" + error);
|
|
37
|
-
process.exit(1);
|
|
38
|
-
}
|
|
39
|
-
console.info('\x1b[32m%s\x1b[0m', '[success]', path);
|
|
40
|
-
return [2 /*return*/, {
|
|
41
|
-
code: "export default " + JSON.stringify(data),
|
|
42
|
-
map: { mappings: '' },
|
|
43
|
-
}];
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
});
|
|
11
|
+
var skip = !filter(path);
|
|
12
|
+
if (skip) {
|
|
13
|
+
console.info('\x1b[33m%s\x1b[0m', '[skip]', path);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
var data;
|
|
17
|
+
var error;
|
|
18
|
+
try {
|
|
19
|
+
var result = optimize(svgString, __assign({ path: path }, options));
|
|
20
|
+
data = ((_a = result) === null || _a === void 0 ? void 0 : _a.data) || {};
|
|
21
|
+
error = result.error;
|
|
22
|
+
}
|
|
23
|
+
catch (err) {
|
|
24
|
+
error = err.message;
|
|
25
|
+
}
|
|
26
|
+
if (error) {
|
|
27
|
+
console.error('\x1b[31m%s\x1b[0m', '[error]', path, "\n" + svgString, "\n" + error);
|
|
28
|
+
process.exit(1);
|
|
29
|
+
}
|
|
30
|
+
console.info('\x1b[32m%s\x1b[0m', '[success]', path);
|
|
31
|
+
return {
|
|
32
|
+
code: "export default " + JSON.stringify(data),
|
|
33
|
+
map: { mappings: '' },
|
|
34
|
+
};
|
|
47
35
|
},
|
|
48
36
|
};
|
|
49
37
|
}
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,
|
|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gICAgICAgICAgfSBjYXRjaCAoZXJyKSB7XG4gICAgICAgICAgICAgICAgZXJyb3IgPSBlcnIubWVzc2FnZTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKGVycm9yKSB7XG4gICAgICAgICAgICAgICAgY29uc29sZS5lcnJvcihcbiAgICAgICAgICAgICAgICAgICAgJ1xceDFiWzMxbSVzXFx4MWJbMG0nLFxuICAgICAgICAgICAgICAgICAgICAnW2Vycm9yXScsXG4gICAgICAgICAgICAgICAgICAgIHBhdGgsXG4gICAgICAgICAgICAgICAgICAgIGBcXG4ke3N2Z1N0cmluZ31gLFxuICAgICAgICAgICAgICAgICAgICBgXFxuJHtlcnJvcn1gLFxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgcHJvY2Vzcy5leGl0KDEpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjb25zb2xlLmluZm8oJ1xceDFiWzMybSVzXFx4MWJbMG0nLCAnW3N1Y2Nlc3NdJywgcGF0aCk7XG5cbiAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgY29kZTogYGV4cG9ydCBkZWZhdWx0ICR7SlNPTi5zdHJpbmdpZnkoZGF0YSl9YCxcbiAgICAgICAgICAgICAgICBtYXA6IHttYXBwaW5nczogJyd9LFxuICAgICAgICAgICAgfTtcbiAgICAgICAgfSxcbiAgICB9O1xufVxuIl19
|
|
@@ -13,32 +13,30 @@ function rollupSvgo({ include = '**/*.svg', exclude, options, } = {}) {
|
|
|
13
13
|
name: 'rollupSvgo',
|
|
14
14
|
transform(svgString, path) {
|
|
15
15
|
var _a;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
});
|
|
16
|
+
const skip = !filter(path);
|
|
17
|
+
if (skip) {
|
|
18
|
+
console.info('\x1b[33m%s\x1b[0m', '[skip]', path);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
let data;
|
|
22
|
+
let error;
|
|
23
|
+
try {
|
|
24
|
+
const result = optimize(svgString, Object.assign({ path }, options));
|
|
25
|
+
data = ((_a = result) === null || _a === void 0 ? void 0 : _a.data) || {};
|
|
26
|
+
error = result.error;
|
|
27
|
+
}
|
|
28
|
+
catch (err) {
|
|
29
|
+
error = err.message;
|
|
30
|
+
}
|
|
31
|
+
if (error) {
|
|
32
|
+
console.error('\x1b[31m%s\x1b[0m', '[error]', path, `\n${svgString}`, `\n${error}`);
|
|
33
|
+
process.exit(1);
|
|
34
|
+
}
|
|
35
|
+
console.info('\x1b[32m%s\x1b[0m', '[success]', path);
|
|
36
|
+
return {
|
|
37
|
+
code: `export default ${JSON.stringify(data)}`,
|
|
38
|
+
map: { mappings: '' },
|
|
39
|
+
};
|
|
42
40
|
},
|
|
43
41
|
};
|
|
44
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-icons-scripts.js","sources":["ng://@taiga-ui/icons/scripts/rollup-svgo.ts","ng://@taiga-ui/icons/scripts/convert-all-compile-file-to-all-file.ts","ng://@taiga-ui/icons/scripts/delete-all-to-compile-file.ts","ng://@taiga-ui/icons/scripts/post-prettier-format.ts","ng://@taiga-ui/icons/scripts/prepare-all-to-compile-file.ts","ng://@taiga-ui/icons/scripts/process-icons.ts","ng://@taiga-ui/icons/scripts/taiga-ui-icons-scripts.ts"],"sourcesContent":["import {createFilter} from '@rollup/pluginutils';\nimport {Plugin, TransformResult} from 'rollup';\nimport {optimize, OptimizedError, OptimizedSvg, OptimizeOptions} from 'svgo';\n\ntype SvgoResult = OptimizedSvg | OptimizedError;\n\nexport interface RollupSvgoConfig {\n readonly include?: string;\n\n readonly exclude?: string;\n\n readonly options?: OptimizeOptions;\n}\n\nexport function rollupSvgo({\n include = '**/*.svg',\n exclude,\n options,\n}: RollupSvgoConfig = {}): Plugin {\n const filter = createFilter(include, exclude);\n\n return {\n name: 'rollupSvgo',\n async transform(svgString: string, path: string): Promise<TransformResult> {\n const skip = !filter(path);\n\n if (skip) {\n console.info('\\x1b[33m%s\\x1b[0m', '[skip]', path);\n\n return;\n }\n\n let data: unknown;\n let error: unknown;\n\n try {\n const result: SvgoResult = await optimize(svgString, {path, ...options});\n\n data = (result as OptimizedSvg)?.data || {};\n error = result.error;\n } catch (err) {\n error = err.message;\n }\n\n if (error) {\n console.error(\n '\\x1b[31m%s\\x1b[0m',\n '[error]',\n path,\n `\\n${svgString}`,\n `\\n${error}`,\n );\n process.exit(1);\n }\n\n console.info('\\x1b[32m%s\\x1b[0m', '[success]', path);\n\n return {\n code: `export default ${JSON.stringify(data)}`,\n map: {mappings: ''},\n };\n },\n };\n}\n","import {rollup, RollupOptions} from 'rollup';\nimport typescript, {RPT2Options} from 'rollup-plugin-typescript2';\n\nimport {rollupSvgo} from './rollup-svgo';\n\nconst banner = `\n/**\n * @description:\n * DO NOT CHANGE THIS FILE. AUTOGENERATED\n */\n`;\n\ninterface Options {\n prt2Options?: RPT2Options;\n from: string;\n to: string;\n}\n\nexport async function convertAllCompileFileToAllFile(config: Options): Promise<void> {\n const {from, to, prt2Options} = config;\n\n const inputOptions: RollupOptions = {\n input: from,\n output: {preferConst: true},\n plugins: [\n typescript(prt2Options ?? {cacheRoot: 'node_modules/.cache/.rpt2_cache'}),\n rollupSvgo({\n include: '**/*.svg',\n options: {\n plugins: [\n {\n name: 'preset-default',\n params: {\n overrides: {\n removeViewBox: false,\n collapseGroups: false,\n cleanupIDs: false,\n removeUnknownsAndDefaults: false,\n },\n },\n },\n ],\n },\n }),\n ],\n };\n\n const bundle = await rollup(inputOptions);\n\n await bundle.write({\n banner,\n file: to,\n format: 'es',\n preferConst: true,\n });\n\n /**\n * @note:\n * The rollup bundle must be closed once `write` is finished to let plugins clean up their external\n * processes or services via the `closeBundle` hook, otherwise it can lead to memory leaks.\n */\n await bundle.close();\n}\n","import {unlinkSync} from 'fs';\n\nexport function deleteAllToCompileFile(allToCompilePath: string | string[]): void {\n if (Array.isArray(allToCompilePath)) {\n allToCompilePath.forEach(file => unlinkSync(file));\n } else {\n unlinkSync(allToCompilePath);\n }\n}\n","import {readFileSync, writeFileSync} from 'fs';\nimport prettier from 'prettier';\n\nexport function postPrettierFormat(filePath: string, prettierConfig?: string): void {\n const bundledBody = readFileSync(filePath, 'utf8');\n const options = prettier.resolveConfig.sync(prettierConfig ?? 'prettier.config.js');\n const formatted = prettier.format(bundledBody, {...options, parser: 'typescript'});\n\n writeFileSync(filePath, formatted);\n}\n","import {readdirSync, writeFileSync} from 'fs';\n\nexport function prepareAllToCompileFile(iconsSrc: string, entryPointTs: string): void {\n const icons: string[] = readdirSync(iconsSrc).filter(\n file => file.split('.').pop() === 'svg',\n );\n\n let importDeclarations = '';\n let exportDeclarations = '';\n\n for (const iconPath of icons) {\n const fileName = iconPath.split('.').shift();\n\n importDeclarations += `import ${fileName} from './src/${fileName}.svg';\\n`;\n exportDeclarations += `${fileName}, `;\n }\n\n writeFileSync(\n entryPointTs,\n `${importDeclarations} \\n export { ${exportDeclarations} }`,\n );\n}\n","import fs from 'fs';\nimport {parse} from 'path';\n\nconst START = '<svg';\nconst WIDTH_SEARCH = 'width=\"';\nconst HEIGHT_SEARCH = 'height=\"';\n\ninterface WrappedContent {\n height: string;\n width: string;\n src: string;\n}\n\ntype ContentInterceptor = (src: string) => string;\n\nexport function processIcons(files: string[], interceptor?: ContentInterceptor): void {\n for (const file of files) {\n const baseContent = String(fs.readFileSync(file));\n const src = interceptor ? interceptor(baseContent) : baseContent;\n\n const name = parse(file).base.replace('.svg', '');\n\n if (src.includes(`id=\"${name}\"`)) {\n console.info('\\x1b[33m%s\\x1b[0m', `[skip]:`, file);\n continue;\n }\n\n const wrapped = wrapIcon(src, name);\n\n const final =\n typeof wrapped === 'string'\n ? wrapped.replace(\n START,\n `<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg`,\n ) + '</g></svg>'\n : `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${wrapped.width}\" height=\"${wrapped.height}\">${wrapped.src}</svg>`;\n\n fs.writeFileSync(file, final);\n\n console.info('\\x1b[32m%s\\x1b[0m', `[preprocessed]:`, file);\n }\n}\n\nfunction wrapIcon(source: string, name: string): string | WrappedContent {\n const src = source.substring(source.indexOf(START));\n const attributes = src.substring(0, src.indexOf('>'));\n\n if (\n !attributes ||\n !attributes.includes(WIDTH_SEARCH) ||\n !attributes.includes(HEIGHT_SEARCH)\n ) {\n return src;\n }\n\n const indexOfWidth = attributes.indexOf(WIDTH_SEARCH);\n const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);\n const widthOffset = indexOfWidth + WIDTH_SEARCH.length;\n const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;\n const widthString = attributes.substring(\n widthOffset,\n attributes.indexOf('\"', widthOffset),\n );\n const heightString = attributes.substring(\n heightOffset,\n attributes.indexOf('\"', heightOffset),\n );\n\n if (\n !heightString ||\n !widthString ||\n widthString.includes('%') ||\n heightString.includes('%')\n ) {\n return src.replace(START, `<svg id=\"${name}\"`);\n }\n\n const width = parseInt(widthString, 10);\n const height = parseInt(heightString, 10);\n const emWidth = width / 16;\n const emHeight = height / 16;\n\n return {\n width: `${emWidth}em`,\n height: `${emHeight}em`,\n src: `\n <g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\">\n <svg x=\"50%\" y=\"50%\" width=\"${emWidth}em\" height=\"${emHeight}em\" overflow=\"visible\" viewBox=\"0 0 ${width} ${height}\">\n <svg x=\"${-width / 2}\" y=\"${-height / 2}\">${src}</svg>\n </svg>\n </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
{"version":3,"file":"taiga-ui-icons-scripts.js","sources":["ng://@taiga-ui/icons/scripts/rollup-svgo.ts","ng://@taiga-ui/icons/scripts/convert-all-compile-file-to-all-file.ts","ng://@taiga-ui/icons/scripts/delete-all-to-compile-file.ts","ng://@taiga-ui/icons/scripts/post-prettier-format.ts","ng://@taiga-ui/icons/scripts/prepare-all-to-compile-file.ts","ng://@taiga-ui/icons/scripts/process-icons.ts","ng://@taiga-ui/icons/scripts/taiga-ui-icons-scripts.ts"],"sourcesContent":["import {createFilter} from '@rollup/pluginutils';\nimport {Plugin, TransformResult} from 'rollup';\nimport {optimize, OptimizedError, OptimizedSvg, OptimizeOptions} from 'svgo';\n\ntype SvgoResult = OptimizedSvg | OptimizedError;\n\nexport interface RollupSvgoConfig {\n readonly include?: string;\n\n readonly exclude?: string;\n\n readonly options?: OptimizeOptions;\n}\n\nexport function rollupSvgo({\n include = '**/*.svg',\n exclude,\n options,\n}: RollupSvgoConfig = {}): Plugin {\n const filter = createFilter(include, exclude);\n\n return {\n name: 'rollupSvgo',\n transform(svgString: string, path: string): TransformResult {\n const skip = !filter(path);\n\n if (skip) {\n console.info('\\x1b[33m%s\\x1b[0m', '[skip]', path);\n\n return;\n }\n\n let data: unknown;\n let error: unknown;\n\n try {\n const result: SvgoResult = optimize(svgString, {path, ...options});\n\n data = (result as OptimizedSvg)?.data || {};\n error = result.error;\n } catch (err) {\n error = err.message;\n }\n\n if (error) {\n console.error(\n '\\x1b[31m%s\\x1b[0m',\n '[error]',\n path,\n `\\n${svgString}`,\n `\\n${error}`,\n );\n process.exit(1);\n }\n\n console.info('\\x1b[32m%s\\x1b[0m', '[success]', path);\n\n return {\n code: `export default ${JSON.stringify(data)}`,\n map: {mappings: ''},\n };\n },\n };\n}\n","import {rollup, RollupOptions} from 'rollup';\nimport typescript, {RPT2Options} from 'rollup-plugin-typescript2';\n\nimport {rollupSvgo} from './rollup-svgo';\n\nconst banner = `\n/**\n * @description:\n * DO NOT CHANGE THIS FILE. AUTOGENERATED\n */\n`;\n\ninterface Options {\n prt2Options?: RPT2Options;\n from: string;\n to: string;\n}\n\nexport async function convertAllCompileFileToAllFile(config: Options): Promise<void> {\n const {from, to, prt2Options} = config;\n\n const inputOptions: RollupOptions = {\n input: from,\n output: {preferConst: true},\n plugins: [\n typescript(prt2Options ?? {cacheRoot: 'node_modules/.cache/.rpt2_cache'}),\n rollupSvgo({\n include: '**/*.svg',\n options: {\n plugins: [\n {\n name: 'preset-default',\n params: {\n overrides: {\n removeViewBox: false,\n collapseGroups: false,\n cleanupIDs: false,\n removeUnknownsAndDefaults: false,\n },\n },\n },\n ],\n },\n }),\n ],\n };\n\n const bundle = await rollup(inputOptions);\n\n await bundle.write({\n banner,\n file: to,\n format: 'es',\n preferConst: true,\n });\n\n /**\n * @note:\n * The rollup bundle must be closed once `write` is finished to let plugins clean up their external\n * processes or services via the `closeBundle` hook, otherwise it can lead to memory leaks.\n */\n await bundle.close();\n}\n","import {unlinkSync} from 'fs';\n\nexport function deleteAllToCompileFile(allToCompilePath: string | string[]): void {\n if (Array.isArray(allToCompilePath)) {\n allToCompilePath.forEach(file => unlinkSync(file));\n } else {\n unlinkSync(allToCompilePath);\n }\n}\n","import {readFileSync, writeFileSync} from 'fs';\nimport prettier from 'prettier';\n\nexport function postPrettierFormat(filePath: string, prettierConfig?: string): void {\n const bundledBody = readFileSync(filePath, 'utf8');\n const options = prettier.resolveConfig.sync(prettierConfig ?? 'prettier.config.js');\n const formatted = prettier.format(bundledBody, {...options, parser: 'typescript'});\n\n writeFileSync(filePath, formatted);\n}\n","import {readdirSync, writeFileSync} from 'fs';\n\nexport function prepareAllToCompileFile(iconsSrc: string, entryPointTs: string): void {\n const icons: string[] = readdirSync(iconsSrc).filter(\n file => file.split('.').pop() === 'svg',\n );\n\n let importDeclarations = '';\n let exportDeclarations = '';\n\n for (const iconPath of icons) {\n const fileName = iconPath.split('.').shift();\n\n importDeclarations += `import ${fileName} from './src/${fileName}.svg';\\n`;\n exportDeclarations += `${fileName}, `;\n }\n\n writeFileSync(\n entryPointTs,\n `${importDeclarations} \\n export { ${exportDeclarations} }`,\n );\n}\n","import fs from 'fs';\nimport {parse} from 'path';\n\nconst START = '<svg';\nconst WIDTH_SEARCH = 'width=\"';\nconst HEIGHT_SEARCH = 'height=\"';\n\ninterface WrappedContent {\n height: string;\n width: string;\n src: string;\n}\n\ntype ContentInterceptor = (src: string) => string;\n\nexport function processIcons(files: string[], interceptor?: ContentInterceptor): void {\n for (const file of files) {\n const baseContent = String(fs.readFileSync(file));\n const src = interceptor ? interceptor(baseContent) : baseContent;\n\n const name = parse(file).base.replace('.svg', '');\n\n if (src.includes(`id=\"${name}\"`)) {\n console.info('\\x1b[33m%s\\x1b[0m', `[skip]:`, file);\n continue;\n }\n\n const wrapped = wrapIcon(src, name);\n\n const final =\n typeof wrapped === 'string'\n ? wrapped.replace(\n START,\n `<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg`,\n ) + '</g></svg>'\n : `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${wrapped.width}\" height=\"${wrapped.height}\">${wrapped.src}</svg>`;\n\n fs.writeFileSync(file, final);\n\n console.info('\\x1b[32m%s\\x1b[0m', `[preprocessed]:`, file);\n }\n}\n\nfunction wrapIcon(source: string, name: string): string | WrappedContent {\n const src = source.substring(source.indexOf(START));\n const attributes = src.substring(0, src.indexOf('>'));\n\n if (\n !attributes ||\n !attributes.includes(WIDTH_SEARCH) ||\n !attributes.includes(HEIGHT_SEARCH)\n ) {\n return src;\n }\n\n const indexOfWidth = attributes.indexOf(WIDTH_SEARCH);\n const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);\n const widthOffset = indexOfWidth + WIDTH_SEARCH.length;\n const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;\n const widthString = attributes.substring(\n widthOffset,\n attributes.indexOf('\"', widthOffset),\n );\n const heightString = attributes.substring(\n heightOffset,\n attributes.indexOf('\"', heightOffset),\n );\n\n if (\n !heightString ||\n !widthString ||\n widthString.includes('%') ||\n heightString.includes('%')\n ) {\n return src.replace(START, `<svg id=\"${name}\"`);\n }\n\n const width = parseInt(widthString, 10);\n const height = parseInt(heightString, 10);\n const emWidth = width / 16;\n const emHeight = height / 16;\n\n return {\n width: `${emWidth}em`,\n height: `${emHeight}em`,\n src: `\n <g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\">\n <svg x=\"50%\" y=\"50%\" width=\"${emWidth}em\" height=\"${emHeight}em\" overflow=\"visible\" viewBox=\"0 0 ${width} ${height}\">\n <svg x=\"${-width / 2}\" y=\"${-height / 2}\">${src}</svg>\n </svg>\n </g>`.trim(),\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;SAcgB,UAAU,CAAC,EACvB,OAAO,GAAG,UAAU,EACpB,OAAO,EACP,OAAO,MACW,EAAE;IACpB,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAE9C,OAAO;QACH,IAAI,EAAE,YAAY;QAClB,SAAS,CAAC,SAAiB,EAAE,IAAY;;YACrC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAE3B,IAAI,IAAI,EAAE;gBACN,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;gBAElD,OAAO;aACV;YAED,IAAI,IAAa,CAAC;YAClB,IAAI,KAAc,CAAC;YAEnB,IAAI;gBACA,MAAM,MAAM,GAAe,QAAQ,CAAC,SAAS,kBAAG,IAAI,IAAK,OAAO,EAAE,CAAC;gBAEnE,IAAI,GAAG,OAAC,MAAuB,0CAAE,IAAI,KAAI,EAAE,CAAC;gBAC5C,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;aACxB;YAAC,OAAO,GAAG,EAAE;gBACV,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC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OAAO,GAAG,KAAK,GAAG,EAAE,CAAC;IAC3B,MAAM,QAAQ,GAAG,MAAM,GAAG,EAAE,CAAC;IAE7B,OAAO;QACH,KAAK,EAAE,GAAG,OAAO,IAAI;QACrB,MAAM,EAAE,GAAG,QAAQ,IAAI;QACvB,GAAG,EAAE;iBACI,IAAI;0CACqB,OAAO,eAAe,QAAQ,uCAAuC,KAAK,IAAI,MAAM;0BACpG,CAAC,KAAK,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,KAAK,GAAG;;aAElD,CAAC,IAAI,EAAE;KACf,CAAC;AACN;;AC5FA;;;;;;"}
|
|
@@ -216,7 +216,7 @@ const tuiIconUsers = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height
|
|
|
216
216
|
const tuiIconVideo = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" focusable="false"><g id="tuiIconVideo" xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" width="1em" height="1em" overflow="visible" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><svg x="-8" y="-8"><path d="m15 5-4 3 4 3V5zM9.667 3H2.333C1.597 3 1 3.64 1 4.429v7.142C1 12.361 1.597 13 2.333 13h7.334c.736 0 1.333-.64 1.333-1.429V4.43C11 3.639 10.403 3 9.667 3z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></svg></g></svg>';
|
|
217
217
|
const tuiIconVideoLarge = '<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" focusable="false"><g id="tuiIconVideoLarge" xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" width="1.5em" height="1.5em" overflow="visible" viewBox="0 0 24 24" fill="none"><svg x="-12" y="-12" xmlns="http://www.w3.org/2000/svg"><path d="m23 7-7 5 7 5V7zm-9-2H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></svg></g></svg>';
|
|
218
218
|
const tuiIconViewListLarge = '<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" focusable="false"><g id="tuiIconViewListLarge" xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" width="1.5em" height="1.5em" overflow="visible" viewBox="0 0 24 24" fill="none"><svg x="-12" y="-12" xmlns="http://www.w3.org/2000/svg"><path d="M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></svg></g></svg>';
|
|
219
|
-
const tuiIconVisa = '<svg xmlns="http://www.w3.org/2000/svg" width="2em" focusable="false" height="2em"><g id="tuiIconVisa" xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" width="2em" height="2em" overflow="visible" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><svg x="-16" y="-16"><g fill="#
|
|
219
|
+
const tuiIconVisa = '<svg xmlns="http://www.w3.org/2000/svg" width="2em" focusable="false" height="2em"><g id="tuiIconVisa" xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" width="2em" height="2em" overflow="visible" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><svg x="-16" y="-16"><g fill="#1434cb"><path d="M11.257 9.302 12.875.16h2.587l-1.619 9.143zM23.226.384A6.909 6.909 0 0 0 20.907 0c-2.556 0-4.357 1.24-4.372 3.017-.014 1.314 1.286 2.047 2.267 2.485 1.007.448 1.346.734 1.34 1.134-.006.613-.803.893-1.547.893-1.036 0-1.586-.139-2.435-.48l-.334-.146-.363 2.047c.605.255 1.722.477 2.882.488 2.72 0 4.485-1.226 4.505-3.124.01-1.04-.68-1.832-2.172-2.484-.904-.423-1.458-.705-1.452-1.134 0-.38.469-.786 1.481-.786a4.93 4.93 0 0 1 1.937.35l.231.106.351-1.982M29.86.168h-1.999c-.62 0-1.083.162-1.355.758l-3.842 8.38h2.717s.444-1.127.545-1.375l3.313.004c.077.32.315 1.37.315 1.37h2.4L29.86.168ZM26.67 6.06c.214-.527 1.03-2.556 1.03-2.556-.014.024.213-.53.344-.873l.175.789.599 2.64H26.67ZM9.087.166 6.554 6.4l-.27-1.267c-.471-1.461-1.94-3.044-3.582-3.836l2.316 7.996 2.737-.003L11.828.166h-2.74" transform="translate(0 11)"/><path d="M4.205.16H.033L0 .35c3.246.757 5.393 2.586 6.285 4.784L5.377.932C5.221.352 4.767.18 4.205.16" transform="translate(0 11)"/></g></svg></svg></g></svg>';
|
|
220
220
|
const tuiIconVisaMono = '<svg xmlns="http://www.w3.org/2000/svg" width="2em" height="2em"><g id="tuiIconVisaMono" xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" width="2em" height="2em" overflow="visible" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><svg x="-16" y="-16"><path fill-rule="evenodd" clip-rule="evenodd" d="M23.226 12.384A6.91 6.91 0 0 0 20.907 12c-2.556 0-4.357 1.24-4.372 3.017-.014 1.314 1.286 2.047 2.267 2.485 1.007.448 1.346.733 1.34 1.134-.006.613-.803.893-1.547.893-1.035 0-1.586-.139-2.435-.48l-.334-.146-.363 2.047c.604.255 1.722.477 2.882.488 2.72 0 4.485-1.226 4.505-3.124.01-1.04-.68-1.831-2.172-2.484-.904-.423-1.458-.705-1.452-1.134 0-.38.469-.786 1.481-.786a4.933 4.933 0 0 1 1.937.35l.232.106.35-1.982Zm-11.969 8.918 1.618-9.143h2.587l-1.619 9.143h-2.586Zm16.604-9.134h2l2.093 9.137h-2.4s-.238-1.05-.315-1.37l-1.816-.002h-.004l-1.493-.002c-.1.247-.545 1.374-.545 1.374h-2.717l3.842-8.38c.272-.595.736-.757 1.355-.757Zm-.16 3.337-1.03 2.556h2.147l-.6-2.64-.174-.789c-.069.18-.164.418-.236.6a5.326 5.326 0 0 0-.107.273Zm-18.614-3.34-2.533 6.236-.27-1.267v-.001l-.907-4.201c-.156-.58-.61-.752-1.172-.772H.033L0 12.35a11.11 11.11 0 0 1 2.718 1.003l2.3 7.941 2.737-.003 4.073-9.125h-2.74Z" fill="currentColor"/></svg></svg></g></svg>';
|
|
221
221
|
const tuiIconWarningLarge = '<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" focusable="false"><g id="tuiIconWarningLarge" xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" width="1.5em" height="1.5em" overflow="visible" viewBox="0 0 24 24" fill="none"><svg x="-12" y="-12" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 5a1 1 0 0 1 1 1v8a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1zm1 13a1 1 0 1 1-2 0 1 1 0 0 1 2 0z" fill="currentColor"/></svg></svg></g></svg>';
|
|
222
222
|
const tuiIconWifiOffLarge = '<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" focusable="false"><g id="tuiIconWifiOffLarge" xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" width="1.5em" height="1.5em" overflow="visible" viewBox="0 0 24 24" fill="none"><svg x="-12" y="-12" xmlns="http://www.w3.org/2000/svg"><path d="m1 1 22 22m-6.28-11.94c.82.4 1.585.9 2.28 1.49m-14 0a10.94 10.94 0 0 1 5.17-2.39m.54-5.11A16 16 0 0 1 22.58 9M1.42 9a15.91 15.91 0 0 1 4.7-2.88m2.41 9.99a6 6 0 0 1 6.95 0M12 20h.01" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></svg></g></svg>';
|