@taiga-ui/icons 3.60.0 → 3.61.0-canary.2abddb0

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.
@@ -7,15 +7,15 @@ import fs, { readFileSync, writeFileSync, readdirSync } from 'fs';
7
7
  import prettier from 'prettier';
8
8
  import { parse } from 'path';
9
9
 
10
- function tuiRollupSvgo({ include = `**/*.svg`, exclude, options, } = {}) {
10
+ function tuiRollupSvgo({ include = '**/*.svg', exclude, options, } = {}) {
11
11
  const filter = createFilter(include, exclude);
12
12
  return {
13
- name: `rollupSvgo`,
13
+ name: 'rollupSvgo',
14
14
  transform(svgString, path) {
15
15
  var _a, _b;
16
16
  const skip = !filter(path);
17
17
  if (skip) {
18
- console.info(`\x1B[33m%s\x1B[0m`, `[skip]`, path);
18
+ console.info('\x1B[33m%s\x1B[0m', '[skip]', path);
19
19
  return;
20
20
  }
21
21
  let data;
@@ -29,13 +29,13 @@ function tuiRollupSvgo({ include = `**/*.svg`, exclude, options, } = {}) {
29
29
  errorMessage = (_b = err) === null || _b === void 0 ? void 0 : _b.message;
30
30
  }
31
31
  if (errorMessage) {
32
- console.error(`\x1B[31m%s\x1B[0m`, `[error]`, path, `\n${svgString}`, `\n${errorMessage}`);
32
+ console.error('\x1B[31m%s\x1B[0m', '[error]', path, `\n${svgString}`, `\n${errorMessage}`);
33
33
  process.exit(1);
34
34
  }
35
- console.info(`\x1B[32m%s\x1B[0m`, `[success]`, path);
35
+ console.info('\x1B[32m%s\x1B[0m', '[success]', path);
36
36
  return {
37
37
  code: `export default ${JSON.stringify(data)}`,
38
- map: { mappings: `` },
38
+ map: { mappings: '' },
39
39
  };
40
40
  },
41
41
  };
@@ -67,7 +67,7 @@ function tuiConvertAllCompileFileToAllFile(config) {
67
67
  options: {
68
68
  plugins: [
69
69
  {
70
- name: `preset-default`,
70
+ name: 'preset-default',
71
71
  params: {
72
72
  overrides: {
73
73
  removeViewBox: false,
@@ -75,7 +75,7 @@ function tuiConvertAllCompileFileToAllFile(config) {
75
75
  removeUnknownsAndDefaults: false,
76
76
  cleanupIds: {},
77
77
  sortAttrs: {
78
- xmlnsOrder: `alphabetical`,
78
+ xmlnsOrder: 'alphabetical',
79
79
  },
80
80
  },
81
81
  },
@@ -85,12 +85,12 @@ function tuiConvertAllCompileFileToAllFile(config) {
85
85
  }),
86
86
  ],
87
87
  };
88
- console.info(`\x1B[36m%s\x1B[0m`, `TypeScript options: `, prt2Options);
88
+ console.info('\x1B[36m%s\x1B[0m', 'TypeScript options: ', prt2Options);
89
89
  const bundle = yield rollup(inputOptions);
90
90
  yield bundle.write({
91
91
  banner,
92
92
  file: to,
93
- format: `es`,
93
+ format: 'es',
94
94
  generatedCode: {
95
95
  constBindings: true,
96
96
  },
@@ -106,20 +106,20 @@ function tuiConvertAllCompileFileToAllFile(config) {
106
106
 
107
107
  function tuiPostPrettierFormat({ file, config }) {
108
108
  return __awaiter(this, void 0, void 0, function* () {
109
- console.info(`\x1B[36m%s\x1B[0m`, `format: ${file} by parser - ${config.parser}`);
110
- const bundledBody = readFileSync(file, `utf8`);
109
+ console.info('\x1B[36m%s\x1B[0m', `format: ${file} by parser - ${config.parser}`);
110
+ const bundledBody = readFileSync(file, 'utf8');
111
111
  const formatted = yield prettier.format(bundledBody, config);
112
112
  writeFileSync(file, formatted);
113
113
  });
114
114
  }
115
115
 
116
116
  function tuiPrepareAllToCompileFile(iconsSrc, entryPointTs) {
117
- const icons = readdirSync(iconsSrc).filter(file => file.endsWith(`.svg`));
118
- console.info(`\x1B[36m%s\x1B[0m`, `Combine all svg icons into one file for bundling: ${icons.length}`);
119
- let importDeclarations = ``;
120
- let exportDeclarations = ``;
117
+ const icons = readdirSync(iconsSrc).filter(file => file.endsWith('.svg'));
118
+ console.info('\x1B[36m%s\x1B[0m', `Combine all svg icons into one file for bundling: ${icons.length}`);
119
+ let importDeclarations = '';
120
+ let exportDeclarations = '';
121
121
  icons.forEach(iconPath => {
122
- const fileName = iconPath.split(`.`).shift();
122
+ const fileName = iconPath.split('.').shift();
123
123
  const filePath = `./src/${fileName}.svg`;
124
124
  importDeclarations += `import ${fileName} from '${filePath}';\n`;
125
125
  exportDeclarations += `${fileName}, `;
@@ -127,12 +127,12 @@ function tuiPrepareAllToCompileFile(iconsSrc, entryPointTs) {
127
127
  writeFileSync(entryPointTs, `${importDeclarations} \n export { ${exportDeclarations} }`);
128
128
  }
129
129
 
130
- const START = `<svg`;
131
- const WIDTH_SEARCH = `width="`;
132
- const HEIGHT_SEARCH = `height="`;
130
+ const START = '<svg';
131
+ const WIDTH_SEARCH = 'width="';
132
+ const HEIGHT_SEARCH = 'height="';
133
133
  function wrapIcon(source, name) {
134
134
  const src = source.slice(Math.max(0, source.indexOf(START)));
135
- const attributes = src.slice(0, Math.max(0, src.indexOf(`>`)));
135
+ const attributes = src.slice(0, Math.max(0, src.indexOf('>')));
136
136
  if (!(attributes === null || attributes === void 0 ? void 0 : attributes.includes(WIDTH_SEARCH)) || !attributes.includes(HEIGHT_SEARCH)) {
137
137
  return src;
138
138
  }
@@ -140,12 +140,12 @@ function wrapIcon(source, name) {
140
140
  const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);
141
141
  const widthOffset = indexOfWidth + WIDTH_SEARCH.length;
142
142
  const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;
143
- const widthString = attributes.slice(widthOffset, attributes.indexOf(`"`, widthOffset));
144
- const heightString = attributes.slice(heightOffset, attributes.indexOf(`"`, heightOffset));
143
+ const widthString = attributes.slice(widthOffset, attributes.indexOf('"', widthOffset));
144
+ const heightString = attributes.slice(heightOffset, attributes.indexOf('"', heightOffset));
145
145
  if (!heightString ||
146
146
  !widthString ||
147
- widthString.includes(`%`) ||
148
- heightString.includes(`%`)) {
147
+ widthString.includes('%') ||
148
+ heightString.includes('%')) {
149
149
  return src.replace(START, `<svg id="${name}"`);
150
150
  }
151
151
  const width = parseInt(widthString, 10);
@@ -167,17 +167,17 @@ function tuiProcessIcons(files, interceptor) {
167
167
  for (const file of files) {
168
168
  const baseContent = String(fs.readFileSync(file));
169
169
  const src = interceptor ? interceptor(baseContent) : baseContent;
170
- const name = parse(file).base.replace(`.svg`, ``);
171
- if (src.includes(`id="${name}"`) || name.includes(`Outline`)) {
172
- console.info(`\x1B[33m%s\x1B[0m`, `[skip]:`, file);
170
+ const name = parse(file).base.replace('.svg', '');
171
+ if (src.includes(`id="${name}"`) || name.includes('Outline')) {
172
+ console.info('\x1B[33m%s\x1B[0m', '[skip]:', file);
173
173
  continue;
174
174
  }
175
175
  const wrapped = wrapIcon(src, name);
176
- const final = typeof wrapped === `string`
176
+ const final = typeof wrapped === 'string'
177
177
  ? `${wrapped.replace(START, `<svg xmlns="http://www.w3.org/2000/svg"><g id="${name}" xmlns="http://www.w3.org/2000/svg"><svg`)}</g></svg>`
178
178
  : `<svg xmlns="http://www.w3.org/2000/svg" width="${wrapped.width}" height="${wrapped.height}">${wrapped.src}</svg>`;
179
179
  fs.writeFileSync(file, final);
180
- console.info(`\x1B[32m%s\x1B[0m`, `[preprocessed]:`, file);
180
+ console.info('\x1B[32m%s\x1B[0m', '[preprocessed]:', file);
181
181
  }
182
182
  }
183
183
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-icons-scripts.js","sources":["../../../projects/icons/scripts/rollup-svgo.ts","../../../projects/icons/scripts/convert-all-compile-file-to-all-file.ts","../../../projects/icons/scripts/post-prettier-format.ts","../../../projects/icons/scripts/prepare-all-to-compile-file.ts","../../../projects/icons/scripts/process-icons.ts","../../../projects/icons/scripts/taiga-ui-icons-scripts.ts"],"sourcesContent":["import {createFilter} from '@rollup/pluginutils';\nimport {Plugin, TransformResult} from 'rollup';\nimport {Config, optimize} from 'svgo';\n\nexport interface TuiRollupSvgoConfig {\n readonly exclude?: string;\n\n readonly include?: string;\n\n readonly options?: Config;\n}\n\nexport function tuiRollupSvgo({\n include = `**/*.svg`,\n exclude,\n options,\n}: TuiRollupSvgoConfig = {}): 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 | undefined;\n\n try {\n const result = optimize(svgString, {path, ...options});\n\n data = result?.data || {};\n errorMessage = (result as any)?.error;\n } catch (err: unknown) {\n errorMessage = (err as Error)?.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 {tuiRollupSvgo} from './rollup-svgo';\n\nconst banner = `\n/**\n * @description:\n * DO NOT CHANGE THIS FILE. AUTOGENERATED\n *\n * This file contains inline svg icons\n * for users who wants insert into js bundle\n */\n`;\n\ninterface Options {\n from: string;\n include: string;\n prt2Options: RPT2Options;\n to: string;\n}\n\nexport async function tuiConvertAllCompileFileToAllFile(config: Options): Promise<void> {\n const {from, to, prt2Options, include} = config;\n\n const inputOptions: RollupOptions = {\n input: from,\n output: {\n generatedCode: {\n constBindings: true,\n },\n },\n plugins: [\n typescript(prt2Options),\n tuiRollupSvgo({\n include,\n options: {\n plugins: [\n {\n name: `preset-default`,\n params: {\n overrides: {\n removeViewBox: false,\n collapseGroups: false,\n removeUnknownsAndDefaults: false,\n cleanupIds: {},\n sortAttrs: {\n xmlnsOrder: `alphabetical`,\n },\n },\n },\n },\n ],\n },\n }),\n ],\n };\n\n console.info(`\\x1B[36m%s\\x1B[0m`, `TypeScript options: `, prt2Options);\n\n const bundle = await rollup(inputOptions);\n\n await bundle.write({\n banner,\n file: to,\n format: `es`,\n generatedCode: {\n constBindings: true,\n },\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 {readFileSync, writeFileSync} from 'fs';\nimport prettier, {Options as PrettierOptions} from 'prettier';\n\ninterface Options {\n config: PrettierOptions;\n file: string;\n}\n\nexport async function tuiPostPrettierFormat({file, config}: Options): Promise<void> {\n console.info(`\\x1B[36m%s\\x1B[0m`, `format: ${file} by parser - ${config.parser}`);\n\n const bundledBody = readFileSync(file, `utf8`);\n const formatted = await prettier.format(bundledBody, config);\n\n writeFileSync(file, formatted);\n}\n","import {readdirSync, writeFileSync} from 'fs';\n\nexport function tuiPrepareAllToCompileFile(iconsSrc: string, entryPointTs: string): void {\n const icons: string[] = readdirSync(iconsSrc).filter(file => file.endsWith(`.svg`));\n\n console.info(\n `\\x1B[36m%s\\x1B[0m`,\n `Combine all svg icons into one file for bundling: ${icons.length}`,\n );\n\n let importDeclarations = ``;\n let exportDeclarations = ``;\n\n icons.forEach(iconPath => {\n const fileName = iconPath.split(`.`).shift();\n const filePath = `./src/${fileName}.svg`;\n\n importDeclarations += `import ${fileName} from '${filePath}';\\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 src: string;\n width: string;\n}\n\ntype ContentInterceptor = (src: string) => string;\n\nfunction wrapIcon(source: string, name: string): WrappedContent | string {\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 (!attributes?.includes(WIDTH_SEARCH) || !attributes.includes(HEIGHT_SEARCH)) {\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\nexport function tuiProcessIcons(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}\"`) || name.includes(`Outline`)) {\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\n/**\n * @deprecated:\n * use @{link tuiProcessIcons}\n */\nexport const processIcons = tuiProcessIcons;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAYgB,SAAA,aAAa,CAAC,EAC1B,OAAO,GAAG,CAAU,QAAA,CAAA,EACpB,OAAO,EACP,OAAO,GAAA,GACc,EAAE,EAAA;IACvB,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAE9C,OAAO;AACH,QAAA,IAAI,EAAE,CAAY,UAAA,CAAA;QAClB,SAAS,CAAC,SAAiB,EAAE,IAAY,EAAA;;AACrC,YAAA,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAE3B,YAAA,IAAI,IAAI,EAAE;gBACN,OAAO,CAAC,IAAI,CAAC,CAAA,iBAAA,CAAmB,EAAE,CAAQ,MAAA,CAAA,EAAE,IAAI,CAAC,CAAC;gBAElD,OAAO;AACV,aAAA;AAED,YAAA,IAAI,IAAa,CAAC;AAClB,YAAA,IAAI,YAAgC,CAAC;YAErC,IAAI;gBACA,MAAM,MAAM,GAAG,QAAQ,CAAC,SAAS,kBAAG,IAAI,EAAA,EAAK,OAAO,CAAA,CAAE,CAAC;gBAEvD,IAAI,GAAG,CAAA,MAAM,KAAN,IAAA,IAAA,MAAM,KAAN,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,MAAM,CAAE,IAAI,KAAI,EAAE,CAAC;AAC1B,gBAAA,YAAY,GAAG,CAAA,EAAA,GAAC,MAAc,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,KAAK,CAAC;AACzC,aAAA;AAAC,YAAA,OAAO,GAAY,EAAE;AACnB,gBAAA,YAAY,GAAG,CAAA,EAAA,GAAC,GAAa,MAAA,IAAA,IAAA,EAAA,KAAA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AAA,iBAAA,CAAmB,EAAE,CAAS,OAAA,CAAA,EAAE,IAAI,CAAC,CAAC;YACnD,SAAS;AACZ,SAAA;QAED,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAEpC,QAAA,MAAM,KAAK,GACP,OAAO,OAAO,KAAK,CAAQ,MAAA,CAAA;AACvB,cAAE,CAAA,EAAG,OAAO,CAAC,OAAO,CACd,KAAK,EACL,CAAkD,+CAAA,EAAA,IAAI,CAA2C,yCAAA,CAAA,CACpG,CAAY,UAAA,CAAA;AACf,cAAE,CAAA,+CAAA,EAAkD,OAAO,CAAC,KAAK,CAAa,UAAA,EAAA,OAAO,CAAC,MAAM,CAAK,EAAA,EAAA,OAAO,CAAC,GAAG,QAAQ,CAAC;AAE7H,QAAA,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAE9B,OAAO,CAAC,IAAI,CAAC,CAAA,iBAAA,CAAmB,EAAE,CAAiB,eAAA,CAAA,EAAE,IAAI,CAAC,CAAC;AAC9D,KAAA;AACL,CAAC;AAED;;;AAGG;AACI,MAAM,YAAY,GAAG;;AC9F5B;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-icons-scripts.js","sources":["../../../projects/icons/scripts/rollup-svgo.ts","../../../projects/icons/scripts/convert-all-compile-file-to-all-file.ts","../../../projects/icons/scripts/post-prettier-format.ts","../../../projects/icons/scripts/prepare-all-to-compile-file.ts","../../../projects/icons/scripts/process-icons.ts","../../../projects/icons/scripts/taiga-ui-icons-scripts.ts"],"sourcesContent":["import {createFilter} from '@rollup/pluginutils';\nimport {Plugin, TransformResult} from 'rollup';\nimport {Config, optimize} from 'svgo';\n\nexport interface TuiRollupSvgoConfig {\n readonly exclude?: string;\n\n readonly include?: string;\n\n readonly options?: Config;\n}\n\nexport function tuiRollupSvgo({\n include = '**/*.svg',\n exclude,\n options,\n}: TuiRollupSvgoConfig = {}): 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 | undefined;\n\n try {\n const result = optimize(svgString, {path, ...options});\n\n data = result?.data || {};\n errorMessage = (result as any)?.error;\n } catch (err: unknown) {\n errorMessage = (err as Error)?.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 {tuiRollupSvgo} from './rollup-svgo';\n\nconst banner = `\n/**\n * @description:\n * DO NOT CHANGE THIS FILE. AUTOGENERATED\n *\n * This file contains inline svg icons\n * for users who wants insert into js bundle\n */\n`;\n\ninterface Options {\n from: string;\n include: string;\n prt2Options: RPT2Options;\n to: string;\n}\n\nexport async function tuiConvertAllCompileFileToAllFile(config: Options): Promise<void> {\n const {from, to, prt2Options, include} = config;\n\n const inputOptions: RollupOptions = {\n input: from,\n output: {\n generatedCode: {\n constBindings: true,\n },\n },\n plugins: [\n typescript(prt2Options),\n tuiRollupSvgo({\n include,\n options: {\n plugins: [\n {\n name: 'preset-default',\n params: {\n overrides: {\n removeViewBox: false,\n collapseGroups: false,\n removeUnknownsAndDefaults: false,\n cleanupIds: {},\n sortAttrs: {\n xmlnsOrder: 'alphabetical',\n },\n },\n },\n },\n ],\n },\n }),\n ],\n };\n\n console.info('\\x1B[36m%s\\x1B[0m', 'TypeScript options: ', prt2Options);\n\n const bundle = await rollup(inputOptions);\n\n await bundle.write({\n banner,\n file: to,\n format: 'es',\n generatedCode: {\n constBindings: true,\n },\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 {readFileSync, writeFileSync} from 'fs';\nimport prettier, {Options as PrettierOptions} from 'prettier';\n\ninterface Options {\n config: PrettierOptions;\n file: string;\n}\n\nexport async function tuiPostPrettierFormat({file, config}: Options): Promise<void> {\n console.info('\\x1B[36m%s\\x1B[0m', `format: ${file} by parser - ${config.parser}`);\n\n const bundledBody = readFileSync(file, 'utf8');\n const formatted = await prettier.format(bundledBody, config);\n\n writeFileSync(file, formatted);\n}\n","import {readdirSync, writeFileSync} from 'fs';\n\nexport function tuiPrepareAllToCompileFile(iconsSrc: string, entryPointTs: string): void {\n const icons: string[] = readdirSync(iconsSrc).filter(file => file.endsWith('.svg'));\n\n console.info(\n '\\x1B[36m%s\\x1B[0m',\n `Combine all svg icons into one file for bundling: ${icons.length}`,\n );\n\n let importDeclarations = '';\n let exportDeclarations = '';\n\n icons.forEach(iconPath => {\n const fileName = iconPath.split('.').shift();\n const filePath = `./src/${fileName}.svg`;\n\n importDeclarations += `import ${fileName} from '${filePath}';\\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 src: string;\n width: string;\n}\n\ntype ContentInterceptor = (src: string) => string;\n\nfunction wrapIcon(source: string, name: string): WrappedContent | string {\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 (!attributes?.includes(WIDTH_SEARCH) || !attributes.includes(HEIGHT_SEARCH)) {\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\nexport function tuiProcessIcons(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}\"`) || name.includes('Outline')) {\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\n/**\n * @deprecated:\n * use @{link tuiProcessIcons}\n */\nexport const processIcons = tuiProcessIcons;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAYgB,SAAA,aAAa,CAAC,EAC1B,OAAO,GAAG,UAAU,EACpB,OAAO,EACP,OAAO,GAAA,GACc,EAAE,EAAA;IACvB,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAE9C,OAAO;AACH,QAAA,IAAI,EAAE,YAAY;QAClB,SAAS,CAAC,SAAiB,EAAE,IAAY,EAAA;;AACrC,YAAA,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAE3B,YAAA,IAAI,IAAI,EAAE;gBACN,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;gBAElD,OAAO;AACV,aAAA;AAED,YAAA,IAAI,IAAa,CAAC;AAClB,YAAA,IAAI,YAAgC,CAAC;YAErC,IAAI;gBACA,MAAM,MAAM,GAAG,QAAQ,CAAC,SAAS,kBAAG,IAAI,EAAA,EAAK,OAAO,CAAA,CAAE,CAAC;gBAEvD,IAAI,GAAG,CAAA,MAAM,KAAN,IAAA,IAAA,MAAM,KAAN,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,MAAM,CAAE,IAAI,KAAI,EAAE,CAAC;AAC1B,gBAAA,YAAY,GAAG,CAAA,EAAA,GAAC,MAAc,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,KAAK,CAAC;AACzC,aAAA;AAAC,YAAA,OAAO,GAAY,EAAE;AACnB,gBAAA,YAAY,GAAG,CAAA,EAAA,GAAC,GAAa,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,OAAO,CAAC;AAC1C,aAAA;AAED,YAAA,IAAI,YAAY,EAAE;AACd,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,CAAK,EAAA,EAAA,OAAO,CAAC,GAAG,QAAQ,CAAC;AAE7H,QAAA,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAE9B,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,IAAI,CAAC,CAAC;AAC9D,KAAA;AACL,CAAC;AAED;;;AAGG;AACI,MAAM,YAAY,GAAG;;AC9F5B;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
- "name": "@taiga-ui/icons",
3
- "version": "3.60.0",
4
- "description": "Feather icons for Taiga UI",
5
- "keywords": [
6
- "angular",
7
- "icon",
8
- "svg",
9
- "feather"
10
- ],
11
- "homepage": "https://github.com/taiga-family/taiga-ui",
12
- "repository": "https://github.com/taiga-family/taiga-ui",
13
- "license": "Apache-2.0",
14
- "peerDependencies": {
15
- "@taiga-ui/cdk": ">=3.60.0"
16
- },
17
- "main": "bundles/taiga-ui-icons.umd.js",
18
- "module": "fesm2015/taiga-ui-icons.js",
19
- "es2015": "fesm2015/taiga-ui-icons.js",
20
- "esm2015": "esm2015/taiga-ui-icons.js",
21
- "fesm2015": "fesm2015/taiga-ui-icons.js",
22
- "typings": "taiga-ui-icons.d.ts",
23
- "sideEffects": false,
24
- "dependencies": {
25
- "tslib": "2.6.2"
26
- }
2
+ "name": "@taiga-ui/icons",
3
+ "version": "3.61.0-canary.2abddb0",
4
+ "description": "Feather icons for Taiga UI",
5
+ "keywords": [
6
+ "angular",
7
+ "icon",
8
+ "svg",
9
+ "feather"
10
+ ],
11
+ "homepage": "https://github.com/taiga-family/taiga-ui",
12
+ "repository": "https://github.com/taiga-family/taiga-ui",
13
+ "license": "Apache-2.0",
14
+ "peerDependencies": {
15
+ "@taiga-ui/cdk": ">=3.61.0-canary.2abddb0"
16
+ },
17
+ "main": "bundles/taiga-ui-icons.umd.js",
18
+ "module": "fesm2015/taiga-ui-icons.js",
19
+ "es2015": "fesm2015/taiga-ui-icons.js",
20
+ "esm2015": "esm2015/taiga-ui-icons.js",
21
+ "fesm2015": "fesm2015/taiga-ui-icons.js",
22
+ "typings": "taiga-ui-icons.d.ts",
23
+ "sideEffects": false,
24
+ "dependencies": {
25
+ "tslib": "2.6.2"
26
+ }
27
27
  }