@taiga-ui/icons 2.44.0 → 2.47.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 +3 -1
- package/bundles/taiga-ui-icons-scripts.umd.js +54 -24
- 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 +54 -20
- package/bundles/taiga-ui-icons.umd.js.map +1 -1
- package/bundles/taiga-ui-icons.umd.min.js +1 -15
- package/bundles/taiga-ui-icons.umd.min.js.map +1 -1
- package/esm2015/all.js +4 -2
- package/esm2015/scripts/process-icons.js +5 -5
- package/esm5/all.js +4 -2
- package/esm5/scripts/process-icons.js +5 -5
- package/fesm2015/taiga-ui-icons-scripts.js +4 -4
- package/fesm2015/taiga-ui-icons-scripts.js.map +1 -1
- package/fesm2015/taiga-ui-icons.js +3 -1
- package/fesm2015/taiga-ui-icons.js.map +1 -1
- package/fesm5/taiga-ui-icons-scripts.js +4 -4
- package/fesm5/taiga-ui-icons-scripts.js.map +1 -1
- package/fesm5/taiga-ui-icons.js +3 -1
- package/fesm5/taiga-ui-icons.js.map +1 -1
- package/package.json +1 -1
- package/src/tuiIconSpoilerDeleteLarge.svg +20 -0
- package/src/tuiIconSpoilerLarge.svg +20 -0
- package/taiga-ui-icons.metadata.json +1 -1
|
@@ -33,8 +33,8 @@ export function processIcons(files, interceptor) {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
function wrapIcon(source, name) {
|
|
36
|
-
var src = source.
|
|
37
|
-
var attributes = src.
|
|
36
|
+
var src = source.slice(Math.max(0, source.indexOf(START)));
|
|
37
|
+
var attributes = src.slice(0, Math.max(0, src.indexOf('>')));
|
|
38
38
|
if (!attributes ||
|
|
39
39
|
!attributes.includes(WIDTH_SEARCH) ||
|
|
40
40
|
!attributes.includes(HEIGHT_SEARCH)) {
|
|
@@ -44,8 +44,8 @@ function wrapIcon(source, name) {
|
|
|
44
44
|
var indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);
|
|
45
45
|
var widthOffset = indexOfWidth + WIDTH_SEARCH.length;
|
|
46
46
|
var heightOffset = indexOfHeight + HEIGHT_SEARCH.length;
|
|
47
|
-
var widthString = attributes.
|
|
48
|
-
var heightString = attributes.
|
|
47
|
+
var widthString = attributes.slice(widthOffset, attributes.indexOf('"', widthOffset));
|
|
48
|
+
var heightString = attributes.slice(heightOffset, attributes.indexOf('"', heightOffset));
|
|
49
49
|
if (!heightString ||
|
|
50
50
|
!widthString ||
|
|
51
51
|
widthString.includes('%') ||
|
|
@@ -62,4 +62,4 @@ function wrapIcon(source, name) {
|
|
|
62
62
|
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(),
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvY2Vzcy1pY29ucy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9pY29ucy9zY3JpcHRzLyIsInNvdXJjZXMiOlsicHJvY2Vzcy1pY29ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sSUFBSSxDQUFDO0FBQ3BCLE9BQU8sRUFBQyxLQUFLLEVBQUMsTUFBTSxNQUFNLENBQUM7QUFFM0IsSUFBTSxLQUFLLEdBQUcsTUFBTSxDQUFDO0FBQ3JCLElBQU0sWUFBWSxHQUFH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XJuIHNyYy5yZXBsYWNlKFNUQVJULCBgPHN2ZyBpZD1cIiR7bmFtZX1cImApO1xuICAgIH1cblxuICAgIGNvbnN0IHdpZHRoID0gcGFyc2VJbnQod2lkdGhTdHJpbmcsIDEwKTtcbiAgICBjb25zdCBoZWlnaHQgPSBwYXJzZUludChoZWlnaHRTdHJpbmcsIDEwKTtcbiAgICBjb25zdCBlbVdpZHRoID0gd2lkdGggLyAxNjtcbiAgICBjb25zdCBlbUhlaWdodCA9IGhlaWdodCAvIDE2O1xuXG4gICAgcmV0dXJuIHtcbiAgICAgICAgd2lkdGg6IGAke2VtV2lkdGh9ZW1gLFxuICAgICAgICBoZWlnaHQ6IGAke2VtSGVpZ2h0fWVtYCxcbiAgICAgICAgc3JjOiBgXG4gICAgICAgIDxnIGlkPVwiJHtuYW1lfVwiIHhtbG5zPVwiaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmdcIj5cbiAgICAgICAgICAgIDxzdmcgeD1cIjUwJVwiIHk9XCI1MCVcIiB3aWR0aD1cIiR7ZW1XaWR0aH1lbVwiIGhlaWdodD1cIiR7ZW1IZWlnaHR9ZW1cIiBvdmVyZmxvdz1cInZpc2libGVcIiB2aWV3Qm94PVwiMCAwICR7d2lkdGh9ICR7aGVpZ2h0fVwiPlxuICAgICAgICAgICAgICAgIDxzdmcgeD1cIiR7LXdpZHRoIC8gMn1cIiB5PVwiJHstaGVpZ2h0IC8gMn1cIj4ke3NyY308L3N2Zz5cbiAgICAgICAgICAgIDwvc3ZnPlxuICAgICAgICA8L2c+YC50cmltKCksXG4gICAgfTtcbn1cbiJdfQ==
|
|
@@ -140,8 +140,8 @@ function processIcons(files, interceptor) {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
function wrapIcon(source, name) {
|
|
143
|
-
const src = source.
|
|
144
|
-
const attributes = src.
|
|
143
|
+
const src = source.slice(Math.max(0, source.indexOf(START)));
|
|
144
|
+
const attributes = src.slice(0, Math.max(0, src.indexOf('>')));
|
|
145
145
|
if (!attributes ||
|
|
146
146
|
!attributes.includes(WIDTH_SEARCH) ||
|
|
147
147
|
!attributes.includes(HEIGHT_SEARCH)) {
|
|
@@ -151,8 +151,8 @@ function wrapIcon(source, name) {
|
|
|
151
151
|
const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);
|
|
152
152
|
const widthOffset = indexOfWidth + WIDTH_SEARCH.length;
|
|
153
153
|
const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;
|
|
154
|
-
const widthString = attributes.
|
|
155
|
-
const heightString = attributes.
|
|
154
|
+
const widthString = attributes.slice(widthOffset, attributes.indexOf('"', widthOffset));
|
|
155
|
+
const heightString = attributes.slice(heightOffset, attributes.indexOf('"', heightOffset));
|
|
156
156
|
if (!heightString ||
|
|
157
157
|
!widthString ||
|
|
158
158
|
widthString.includes('%') ||
|
|
@@ -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 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 errorMessage: string;\n\n try {\n const result: SvgoResult = optimize(svgString, {path, ...options});\n\n data = (result as OptimizedSvg)?.data || {};\n errorMessage = result.error as string;\n } catch (err) {\n errorMessage = err.message;\n }\n\n if (errorMessage) {\n console.error(\n '\\x1b[31m%s\\x1b[0m',\n '[error]',\n path,\n `\\n${svgString}`,\n `\\n${errorMessage}`,\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,C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AAG,UAAU,CAAC,SAAS,CACpC,WAAW,EACX,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,WAAW,CAAC,CACvC,CAAC;IACF,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,CACrC,YAAY,EACZ,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,YAAY,CAAC,CACxC,CAAC;IAEF,IACI,CAAC,YAAY;QACb,CAAC,WAAW;QACZ,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC;QACzB,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAC5B;QACE,OAAO,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,YAAY,IAAI,GAAG,CAAC,CAAC;KAClD;IAED,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IACxC,MAAM,MAAM,GAAG,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAC1C,MAAM,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;;;;;;"}
|
|
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 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 errorMessage: string;\n\n try {\n const result: SvgoResult = optimize(svgString, {path, ...options});\n\n data = (result as OptimizedSvg)?.data || {};\n errorMessage = result.error as string;\n } catch (err) {\n errorMessage = err.message;\n }\n\n if (errorMessage) {\n console.error(\n '\\x1b[31m%s\\x1b[0m',\n '[error]',\n path,\n `\\n${svgString}`,\n `\\n${errorMessage}`,\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.slice(Math.max(0, source.indexOf(START)));\n const attributes = src.slice(0, Math.max(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.slice(\n widthOffset,\n attributes.indexOf('\"', widthOffset),\n );\n const heightString = attributes.slice(\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,YAAoB,CAAC;YAEzB,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,YAAY,GAAG,MAAM,CAAC,KAAe,CAAC;aACzC;YAAC,OAAO,GAAG,EAAE;gBACV,YAAY,GAAG,GAAG,CAAC,OAAO,CAAC;aAC9B;YAED,IAAI,YAAY,EAAE;gBACd,OAAO,CAAC,KAAK,CACT,mBAAmB,EACnB,SAAS,EACT,IAAI,EACJ,KAAK,SAAS,EAAE,EAChB,KAAK,YAAY,EAAE,CACtB,CAAC;gBACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACnB;Y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G,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;;;;;;"}
|
|
@@ -180,6 +180,8 @@ const tuiIconSound = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height
|
|
|
180
180
|
const tuiIconSoundLarge = '<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" focusable="false"><g id="tuiIconSoundLarge" 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="M11 5 6 9H2v6h4l5 4V5zm8.07-.07a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></svg></g></svg>';
|
|
181
181
|
const tuiIconSoundOff = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" focusable="false"><g id="tuiIconSoundOff" 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="M7.333 3.333 4 6H1.333v4H4l3.333 2.667V3.333zM14.334 6l-4 4m0-4 4 4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></svg></g></svg>';
|
|
182
182
|
const tuiIconSoundOffLarge = '<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" focusable="false"><g id="tuiIconSoundOffLarge" 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="M11 5 6 9H2v6h4l5 4V5zm12 4-6 6m0-6 6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></svg></g></svg>';
|
|
183
|
+
const tuiIconSpoilerDeleteLarge = '<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em"><g id="tuiIconSpoilerDeleteLarge" 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"><svg x="-12" y="-12"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 4c-.5 0-1 .5-1 1v1.313a1 1 0 0 1-2 0V5c0-1.624 1.376-3 3-3h1.313a1 1 0 0 1 0 2H5Zm4.688-1a1 1 0 0 1 1-1h2.624a1 1 0 1 1 0 2h-2.624a1 1 0 0 1-1-1ZM3 9.688a1 1 0 0 1 1 1v2.624a1 1 0 1 1-2 0v-2.624a1 1 0 0 1 1-1Zm18 0a1 1 0 0 1 1 1v2.624a1 1 0 1 1-2 0v-2.624a1 1 0 0 1 1-1ZM9.687 21a1 1 0 0 1 1-1h2.626a1 1 0 1 1 0 2h-2.626a1 1 0 0 1-1-1ZM20 5v1.313a1 1 0 1 0 2 0V5c0-1.624-1.376-3-3-3h-1.313a1 1 0 1 0 0 2H19c.5 0 1 .5 1 1Zm0 12.688V19c0 .5-.5 1-1 1h-1.313a1 1 0 1 0 0 2H19c1.624 0 3-1.376 3-3v-1.313a1 1 0 1 0-2 0ZM4 19v-1.313a1 1 0 1 0-2 0V19c0 1.624 1.376 3 3 3h1.313a1 1 0 1 0 0-2H5c-.5 0-1-.5-1-1ZM8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor"/></svg></svg></svg></g></svg>';
|
|
184
|
+
const tuiIconSpoilerLarge = '<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em"><g id="tuiIconSpoilerLarge" 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"><svg x="-12" y="-12"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 2a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3H5ZM4 5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5Zm5.707 5.293a1 1 0 1 0-1.414 1.414l3 3a1 1 0 0 0 1.414 0l3-3a1 1 0 0 0-1.414-1.414L12 12.586l-2.293-2.293Z" fill="currentColor"/></svg></svg></svg></g></svg>';
|
|
183
185
|
const tuiIconStar = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" focusable="false"><g id="tuiIconStar" 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="m8 1.333 2.06 4.174 4.607.673-3.334 3.247.787 4.587L8 11.847l-4.12 2.167.787-4.587L1.333 6.18l4.607-.673L8 1.334z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></svg></g></svg>';
|
|
184
186
|
const tuiIconStarFilled = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" focusable="false"><g id="tuiIconStarFilled" xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" width="1em" height="1em" overflow="visible" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><svg x="-8" y="-8"><path d="m8 1.333 2.06 4.174 4.607.673-3.334 3.247.787 4.587L8 11.847l-4.12 2.167.787-4.587L1.333 6.18l4.607-.673L8 1.334z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></svg></g></svg>';
|
|
185
187
|
const tuiIconStarFilledLarge = '<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" focusable="false"><g id="tuiIconStarFilledLarge" 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="currentColor"><svg x="-12" y="-12" xmlns="http://www.w3.org/2000/svg"><path d="m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></svg></g></svg>';
|
|
@@ -262,5 +264,5 @@ const tuiKitIcons = Object.assign(Object.assign({}, tuiCoreIcons), { tuiIconAler
|
|
|
262
264
|
* Generated bundle index. Do not edit.
|
|
263
265
|
*/
|
|
264
266
|
|
|
265
|
-
export { tuiCoreIcons, tuiIconAddRowLarge, tuiIconAlertCircleLarge, tuiIconAlignCenterLarge, tuiIconAlignJustifyLarge, tuiIconAlignLeftLarge, tuiIconAlignRightLarge, tuiIconArrowDown, tuiIconArrowDownLarge, tuiIconArrowDownLeft, tuiIconArrowDownRight, tuiIconArrowLeft, tuiIconArrowLeftLarge, tuiIconArrowRight, tuiIconArrowRightLarge, tuiIconArrowUp, tuiIconArrowUpLarge, tuiIconArrowUpLeft, tuiIconArrowUpRight, tuiIconAttach, tuiIconAttachLarge, tuiIconAttention, tuiIconBackCircleLarge, tuiIconBell, tuiIconBellLarge, tuiIconBellOff, tuiIconBellOffLarge, tuiIconBoldLarge, tuiIconBookmark, tuiIconBookmarkLarge, tuiIconCalendar, tuiIconCalendarLarge, tuiIconCall, tuiIconCallIn, tuiIconCallInLarge, tuiIconCallLarge, tuiIconCallOut, tuiIconCallOutLarge, tuiIconCallTransferLarge, tuiIconCameraLarge, tuiIconCancel, tuiIconCancelCircleLarge, tuiIconCard, tuiIconCardsLarge, tuiIconChartBar, tuiIconChartLarge, tuiIconChartLineLarge, tuiIconCheck, tuiIconCheckCircle, tuiIconCheckCircleLarge, tuiIconCheckLarge, tuiIconCheckList, tuiIconChevronDown, tuiIconChevronDownLarge, tuiIconChevronLeft, tuiIconChevronLeftLarge, tuiIconChevronRight, tuiIconChevronRightLarge, tuiIconChevronUp, tuiIconChevronUpLarge, tuiIconClearFormatLarge, tuiIconClose, tuiIconCloseCircleLarge, tuiIconCloseLarge, tuiIconCloud, tuiIconCode, tuiIconCodeLarge, tuiIconCollapse, tuiIconColorLarge, tuiIconComment, tuiIconCommentLarge, tuiIconCompanyLarge, tuiIconCopy, tuiIconCopyLarge, tuiIconDefaultDocLarge, tuiIconDeleteLarge, tuiIconDesktopLarge, tuiIconDislikeLarge, tuiIconDone, tuiIconDownload, tuiIconDownloadLarge, tuiIconDraft, tuiIconDrag, tuiIconDragLarge, tuiIconEdit, tuiIconEditLarge, tuiIconElectron, tuiIconElectronMono, tuiIconExpand, tuiIconExternal, tuiIconExternalLarge, tuiIconEyeClosed, tuiIconEyeOpen, tuiIconFile, tuiIconFileLarge, tuiIconFilter, tuiIconFilterLarge, tuiIconFlag, tuiIconFlagLarge, tuiIconFolder, tuiIconFolderLarge, tuiIconFontLarge, tuiIconFormatLarge, tuiIconFrameLarge, tuiIconGeoLarge, tuiIconHeart, tuiIconHeartFilled, tuiIconHeartFilledLarge, tuiIconHeartLarge, tuiIconHelpCircleLarge, tuiIconHideLarge, tuiIconHiliteLarge, tuiIconHrLarge, tuiIconImgLarge, tuiIconIndentLarge, tuiIconInfo, tuiIconInfoCircleLarge, tuiIconItalicLarge, tuiIconLikeLarge, tuiIconLink, tuiIconLinkLarge, tuiIconLock, tuiIconLockLarge, tuiIconLockOpenLarge, tuiIconLoginLarge, tuiIconLogoutLarge, tuiIconMaestro, tuiIconMaestroMono, tuiIconMail, tuiIconMailLarge, tuiIconMastercard, tuiIconMastercardMono, tuiIconMenuLarge, tuiIconMicLarge, tuiIconMicOffLarge, tuiIconMinus, tuiIconMinusCircle, tuiIconMinusLarge, tuiIconMir, tuiIconMirMono, tuiIconMobile, tuiIconMobileLarge, tuiIconMoreHorLarge, tuiIconMoreVer, tuiIconMoreVertLarge, tuiIconMusicLarge, tuiIconOLLarge, tuiIconOutdentLarge, tuiIconPaintLarge, tuiIconPause, tuiIconPauseLarge, tuiIconPicture, tuiIconPiechartLarge, tuiIconPin, tuiIconPlay, tuiIconPlayLarge, tuiIconPlus, tuiIconPlusCircleLarge, tuiIconPlusLarge, tuiIconPrintLarge, tuiIconQuoteLarge, tuiIconRedo, tuiIconRedoLarge, tuiIconRefresh, tuiIconRefreshLarge, tuiIconRemoveLarge, tuiIconRotate, tuiIconSearch, tuiIconSearchLarge, tuiIconSettings, tuiIconSettingsLarge, tuiIconShowLarge, tuiIconSortDown, tuiIconSortOff, tuiIconSortUp, tuiIconSound, tuiIconSoundLarge, tuiIconSoundOff, tuiIconSoundOffLarge, tuiIconStar, tuiIconStarFilled, tuiIconStarFilledLarge, tuiIconStarLarge, tuiIconStop, tuiIconStopLarge, tuiIconStrikeThroughLarge, tuiIconStructureLarge, tuiIconSubitem, tuiIconSublevelLarge, tuiIconSubscriptLarge, tuiIconSuperscriptLarge, tuiIconTableLarge, tuiIconTableMergeLarge, tuiIconTableSplitLarge, tuiIconTeXLarge, tuiIconTime, tuiIconTimeLarge, tuiIconToggleOff, tuiIconToggleOffLarge, tuiIconToggleOn, tuiIconToggleOnLarge, tuiIconTooltip, tuiIconTooltipLarge, tuiIconTransparentLarge, tuiIconTrash, tuiIconTrashLarge, tuiIconUnderlineLarge, tuiIconUndo, tuiIconUndoLarge, tuiIconUpload, tuiIconUploadLarge, tuiIconUser, tuiIconUsers, tuiIconVideo, tuiIconVideoLarge, tuiIconViewListLarge, tuiIconVisa, tuiIconVisaMono, tuiIconWarningLarge, tuiIconWifiOffLarge, tuiIconWifiOnLarge, tuiKitIcons };
|
|
267
|
+
export { tuiCoreIcons, tuiIconAddRowLarge, tuiIconAlertCircleLarge, tuiIconAlignCenterLarge, tuiIconAlignJustifyLarge, tuiIconAlignLeftLarge, tuiIconAlignRightLarge, tuiIconArrowDown, tuiIconArrowDownLarge, tuiIconArrowDownLeft, tuiIconArrowDownRight, tuiIconArrowLeft, tuiIconArrowLeftLarge, tuiIconArrowRight, tuiIconArrowRightLarge, tuiIconArrowUp, tuiIconArrowUpLarge, tuiIconArrowUpLeft, tuiIconArrowUpRight, tuiIconAttach, tuiIconAttachLarge, tuiIconAttention, tuiIconBackCircleLarge, tuiIconBell, tuiIconBellLarge, tuiIconBellOff, tuiIconBellOffLarge, tuiIconBoldLarge, tuiIconBookmark, tuiIconBookmarkLarge, tuiIconCalendar, tuiIconCalendarLarge, tuiIconCall, tuiIconCallIn, tuiIconCallInLarge, tuiIconCallLarge, tuiIconCallOut, tuiIconCallOutLarge, tuiIconCallTransferLarge, tuiIconCameraLarge, tuiIconCancel, tuiIconCancelCircleLarge, tuiIconCard, tuiIconCardsLarge, tuiIconChartBar, tuiIconChartLarge, tuiIconChartLineLarge, tuiIconCheck, tuiIconCheckCircle, tuiIconCheckCircleLarge, tuiIconCheckLarge, tuiIconCheckList, tuiIconChevronDown, tuiIconChevronDownLarge, tuiIconChevronLeft, tuiIconChevronLeftLarge, tuiIconChevronRight, tuiIconChevronRightLarge, tuiIconChevronUp, tuiIconChevronUpLarge, tuiIconClearFormatLarge, tuiIconClose, tuiIconCloseCircleLarge, tuiIconCloseLarge, tuiIconCloud, tuiIconCode, tuiIconCodeLarge, tuiIconCollapse, tuiIconColorLarge, tuiIconComment, tuiIconCommentLarge, tuiIconCompanyLarge, tuiIconCopy, tuiIconCopyLarge, tuiIconDefaultDocLarge, tuiIconDeleteLarge, tuiIconDesktopLarge, tuiIconDislikeLarge, tuiIconDone, tuiIconDownload, tuiIconDownloadLarge, tuiIconDraft, tuiIconDrag, tuiIconDragLarge, tuiIconEdit, tuiIconEditLarge, tuiIconElectron, tuiIconElectronMono, tuiIconExpand, tuiIconExternal, tuiIconExternalLarge, tuiIconEyeClosed, tuiIconEyeOpen, tuiIconFile, tuiIconFileLarge, tuiIconFilter, tuiIconFilterLarge, tuiIconFlag, tuiIconFlagLarge, tuiIconFolder, tuiIconFolderLarge, tuiIconFontLarge, tuiIconFormatLarge, tuiIconFrameLarge, tuiIconGeoLarge, tuiIconHeart, tuiIconHeartFilled, tuiIconHeartFilledLarge, tuiIconHeartLarge, tuiIconHelpCircleLarge, tuiIconHideLarge, tuiIconHiliteLarge, tuiIconHrLarge, tuiIconImgLarge, tuiIconIndentLarge, tuiIconInfo, tuiIconInfoCircleLarge, tuiIconItalicLarge, tuiIconLikeLarge, tuiIconLink, tuiIconLinkLarge, tuiIconLock, tuiIconLockLarge, tuiIconLockOpenLarge, tuiIconLoginLarge, tuiIconLogoutLarge, tuiIconMaestro, tuiIconMaestroMono, tuiIconMail, tuiIconMailLarge, tuiIconMastercard, tuiIconMastercardMono, tuiIconMenuLarge, tuiIconMicLarge, tuiIconMicOffLarge, tuiIconMinus, tuiIconMinusCircle, tuiIconMinusLarge, tuiIconMir, tuiIconMirMono, tuiIconMobile, tuiIconMobileLarge, tuiIconMoreHorLarge, tuiIconMoreVer, tuiIconMoreVertLarge, tuiIconMusicLarge, tuiIconOLLarge, tuiIconOutdentLarge, tuiIconPaintLarge, tuiIconPause, tuiIconPauseLarge, tuiIconPicture, tuiIconPiechartLarge, tuiIconPin, tuiIconPlay, tuiIconPlayLarge, tuiIconPlus, tuiIconPlusCircleLarge, tuiIconPlusLarge, tuiIconPrintLarge, tuiIconQuoteLarge, tuiIconRedo, tuiIconRedoLarge, tuiIconRefresh, tuiIconRefreshLarge, tuiIconRemoveLarge, tuiIconRotate, tuiIconSearch, tuiIconSearchLarge, tuiIconSettings, tuiIconSettingsLarge, tuiIconShowLarge, tuiIconSortDown, tuiIconSortOff, tuiIconSortUp, tuiIconSound, tuiIconSoundLarge, tuiIconSoundOff, tuiIconSoundOffLarge, tuiIconSpoilerDeleteLarge, tuiIconSpoilerLarge, tuiIconStar, tuiIconStarFilled, tuiIconStarFilledLarge, tuiIconStarLarge, tuiIconStop, tuiIconStopLarge, tuiIconStrikeThroughLarge, tuiIconStructureLarge, tuiIconSubitem, tuiIconSublevelLarge, tuiIconSubscriptLarge, tuiIconSuperscriptLarge, tuiIconTableLarge, tuiIconTableMergeLarge, tuiIconTableSplitLarge, tuiIconTeXLarge, tuiIconTime, tuiIconTimeLarge, tuiIconToggleOff, tuiIconToggleOffLarge, tuiIconToggleOn, tuiIconToggleOnLarge, tuiIconTooltip, tuiIconTooltipLarge, tuiIconTransparentLarge, tuiIconTrash, tuiIconTrashLarge, tuiIconUnderlineLarge, tuiIconUndo, tuiIconUndoLarge, tuiIconUpload, tuiIconUploadLarge, tuiIconUser, tuiIconUsers, tuiIconVideo, tuiIconVideoLarge, tuiIconViewListLarge, tuiIconVisa, tuiIconVisaMono, tuiIconWarningLarge, tuiIconWifiOffLarge, tuiIconWifiOnLarge, tuiKitIcons };
|
|
266
268
|
//# sourceMappingURL=taiga-ui-icons.js.map
|