@updevs/icons 1.0.5 → 1.0.9

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.
Files changed (67) hide show
  1. package/.eslintrc.json +43 -0
  2. package/README.md +2 -23
  3. package/jest.config.ts +22 -0
  4. package/ng-package.json +7 -0
  5. package/package.json +14 -27
  6. package/project.json +40 -0
  7. package/src/assets/hero-icons/icons.ts +3075 -0
  8. package/src/assets/hero-icons/icons.type.ts +2 -0
  9. package/src/assets/hero-icons/v2.1.5.txt +1 -0
  10. package/src/assets/tabler-icons/icons.ts +5 -0
  11. package/src/assets/tabler-icons/icons.type.ts +2 -0
  12. package/src/assets/tabler-icons/v3.11.0.txt +1 -0
  13. package/src/lib/icon/base-icon.component.html +3 -0
  14. package/src/lib/icon/base-icon.component.ts +32 -0
  15. package/src/lib/icon/hero-icon/hero-icon.component.scss +15 -0
  16. package/src/lib/icon/hero-icon/hero-icon.component.spec.ts +23 -0
  17. package/src/lib/icon/hero-icon/hero-icon.component.ts +45 -0
  18. package/src/lib/icon/icon/icon.component.html +13 -0
  19. package/src/lib/icon/icon/icon.component.scss +0 -0
  20. package/src/lib/icon/icon/icon.component.spec.ts +21 -0
  21. package/src/lib/icon/icon/icon.component.ts +60 -0
  22. package/src/lib/icon/models/content-icon.model.ts +7 -0
  23. package/{lib/icon/models/icon.model.d.ts → src/lib/icon/models/icon.model.ts} +8 -2
  24. package/src/lib/icon/tabler-icon/tabler-icon.component.scss +0 -0
  25. package/src/lib/icon/tabler-icon/tabler-icon.component.spec.ts +21 -0
  26. package/src/lib/icon/tabler-icon/tabler-icon.component.ts +58 -0
  27. package/src/lib/icon/types/weight.type.ts +1 -0
  28. package/src/lib/upd-icons.module.ts +21 -0
  29. package/{public-api.d.ts → src/public-api.ts} +3 -0
  30. package/src/test-setup.ts +8 -0
  31. package/tsconfig.json +29 -0
  32. package/tsconfig.lib.json +18 -0
  33. package/tsconfig.lib.prod.json +9 -0
  34. package/tsconfig.spec.json +16 -0
  35. package/assets/hero-icons/icons.d.ts +0 -4
  36. package/assets/hero-icons/icons.type.d.ts +0 -1
  37. package/assets/tabler-icons/icons.d.ts +0 -4
  38. package/assets/tabler-icons/icons.type.d.ts +0 -1
  39. package/esm2022/assets/hero-icons/icons.mjs +0 -4241
  40. package/esm2022/assets/hero-icons/icons.type.mjs +0 -2
  41. package/esm2022/assets/tabler-icons/icons.mjs +0 -50101
  42. package/esm2022/assets/tabler-icons/icons.type.mjs +0 -2
  43. package/esm2022/index.mjs +0 -2
  44. package/esm2022/lib/icon/base-icon.component.mjs +0 -40
  45. package/esm2022/lib/icon/hero-icon/hero-icon.component.mjs +0 -50
  46. package/esm2022/lib/icon/icon/icon.component.mjs +0 -60
  47. package/esm2022/lib/icon/models/content-icon.model.mjs +0 -6
  48. package/esm2022/lib/icon/models/icon.model.mjs +0 -2
  49. package/esm2022/lib/icon/tabler-icon/tabler-icon.component.mjs +0 -31
  50. package/esm2022/lib/icon/types/icon-library.type.mjs +0 -2
  51. package/esm2022/lib/icon/types/size.type.mjs +0 -2
  52. package/esm2022/lib/icon/types/structure.type.mjs +0 -2
  53. package/esm2022/lib/upd-icons.module.mjs +0 -30
  54. package/esm2022/public-api.mjs +0 -12
  55. package/esm2022/updevs-icons.mjs +0 -5
  56. package/fesm2022/updevs-icons.mjs +0 -54549
  57. package/fesm2022/updevs-icons.mjs.map +0 -1
  58. package/lib/icon/base-icon.component.d.ts +0 -18
  59. package/lib/icon/hero-icon/hero-icon.component.d.ts +0 -14
  60. package/lib/icon/icon/icon.component.d.ts +0 -25
  61. package/lib/icon/models/content-icon.model.d.ts +0 -7
  62. package/lib/icon/tabler-icon/tabler-icon.component.d.ts +0 -10
  63. package/lib/upd-icons.module.d.ts +0 -10
  64. /package/{index.d.ts → src/index.ts} +0 -0
  65. /package/{lib/icon/types/icon-library.type.d.ts → src/lib/icon/types/icon-library.type.ts} +0 -0
  66. /package/{lib/icon/types/size.type.d.ts → src/lib/icon/types/size.type.ts} +0 -0
  67. /package/{lib/icon/types/structure.type.d.ts → src/lib/icon/types/structure.type.ts} +0 -0
package/.eslintrc.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "extends": ["../../.eslintrc.json"],
3
+ "ignorePatterns": ["!**/*"],
4
+ "overrides": [
5
+ {
6
+ "files": ["*.ts"],
7
+ "extends": [
8
+ "plugin:@nx/angular",
9
+ "plugin:@angular-eslint/template/process-inline-templates"
10
+ ],
11
+ "rules": {
12
+ "@angular-eslint/directive-selector": [
13
+ "error",
14
+ {
15
+ "type": "attribute",
16
+ "prefix": "upd",
17
+ "style": "camelCase"
18
+ }
19
+ ],
20
+ "@angular-eslint/component-selector": [
21
+ "error",
22
+ {
23
+ "type": "element",
24
+ "prefix": "upd",
25
+ "style": "kebab-case"
26
+ }
27
+ ]
28
+ }
29
+ },
30
+ {
31
+ "files": ["*.html"],
32
+ "extends": ["plugin:@nx/angular-template"],
33
+ "rules": {}
34
+ },
35
+ {
36
+ "files": ["*.json"],
37
+ "parser": "jsonc-eslint-parser",
38
+ "rules": {
39
+ "@nx/dependency-checks": "error"
40
+ }
41
+ }
42
+ ]
43
+ }
package/README.md CHANGED
@@ -1,24 +1,3 @@
1
- # Icons
1
+ # UpDevs Icons
2
2
 
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.1.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project icons` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project icons`.
8
- > Note: Don't forget to add `--project icons` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build icons` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build icons`, go to the dist folder `cd dist/icons` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test icons` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
3
+ Tabler and Hero Icons library
package/jest.config.ts ADDED
@@ -0,0 +1,22 @@
1
+ /* eslint-disable */
2
+ export default {
3
+ displayName: 'icons',
4
+ preset: '../../jest.preset.js',
5
+ setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6
+ coverageDirectory: '../../coverage/libs/icons',
7
+ transform: {
8
+ '^.+\\.(ts|mjs|js|html)$': [
9
+ 'jest-preset-angular',
10
+ {
11
+ tsconfig: '<rootDir>/tsconfig.spec.json',
12
+ stringifyContentPathRegex: '\\.(html|svg)$',
13
+ },
14
+ ],
15
+ },
16
+ transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
17
+ snapshotSerializers: [
18
+ 'jest-preset-angular/build/serializers/no-ng-attributes',
19
+ 'jest-preset-angular/build/serializers/ng-snapshot',
20
+ 'jest-preset-angular/build/serializers/html-comment',
21
+ ],
22
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/libs/icons",
4
+ "lib": {
5
+ "entryFile": "src/index.ts"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,29 +1,16 @@
1
1
  {
2
- "name": "@updevs/icons",
3
- "version": "1.0.5",
4
- "peerDependencies": {
5
- "@angular/common": "^16.2.7",
6
- "@angular/core": "^16.2.7",
7
- "@angular/platform-browser": "^16.2.7"
8
- },
9
- "dependencies": {
10
- "tslib": "^2.3.0"
11
- },
12
- "publishConfig": {
13
- "access": "public"
14
- },
15
- "sideEffects": false,
16
- "module": "fesm2022/updevs-icons.mjs",
17
- "typings": "index.d.ts",
18
- "exports": {
19
- "./package.json": {
20
- "default": "./package.json"
2
+ "name": "@updevs/icons",
3
+ "version": "1.0.9",
4
+ "peerDependencies": {
5
+ "@angular/common": "^18.0.1",
6
+ "@angular/core": "^18.0.1",
7
+ "@angular/platform-browser": "^18.0.1"
21
8
  },
22
- ".": {
23
- "types": "./index.d.ts",
24
- "esm2022": "./esm2022/updevs-icons.mjs",
25
- "esm": "./esm2022/updevs-icons.mjs",
26
- "default": "./fesm2022/updevs-icons.mjs"
27
- }
28
- }
29
- }
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "sideEffects": false
16
+ }
package/project.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "icons",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
+ "sourceRoot": "libs/icons/src",
5
+ "prefix": "upd",
6
+ "projectType": "library",
7
+ "tags": [],
8
+ "targets": {
9
+ "build": {
10
+ "executor": "@nx/angular:package",
11
+ "outputs": [
12
+ "{workspaceRoot}/dist/{projectRoot}"
13
+ ],
14
+ "options": {
15
+ "project": "libs/icons/ng-package.json"
16
+ },
17
+ "configurations": {
18
+ "production": {
19
+ "tsConfig": "libs/icons/tsconfig.lib.prod.json"
20
+ },
21
+ "development": {
22
+ "tsConfig": "libs/icons/tsconfig.lib.json"
23
+ }
24
+ },
25
+ "defaultConfiguration": "production"
26
+ },
27
+ "test": {
28
+ "executor": "@nx/jest:jest",
29
+ "outputs": [
30
+ "{workspaceRoot}/coverage/{projectRoot}"
31
+ ],
32
+ "options": {
33
+ "jestConfig": "libs/icons/jest.config.ts"
34
+ }
35
+ },
36
+ "lint": {
37
+ "executor": "@nx/eslint:lint"
38
+ }
39
+ }
40
+ }