From 087f23c460fdb454437811fb0c2bd9c8caa8600b Mon Sep 17 00:00:00 2001 From: Miguel Campos Date: Fri, 12 Jan 2024 21:40:34 -0800 Subject: [PATCH] add new icons --- libs/icons/valentines/.babelrc | 12 +++ libs/icons/valentines/.eslintrc.json | 18 ++++ libs/icons/valentines/README.md | 7 ++ libs/icons/valentines/jest.config.ts | 11 ++ libs/icons/valentines/project.json | 30 ++++++ libs/icons/valentines/src/index.ts | 7 ++ libs/icons/valentines/src/lib/chat.tsx | 124 +++++++++++++++++++++ libs/icons/valentines/src/lib/diamond.tsx | 76 +++++++++++++ libs/icons/valentines/src/lib/gift.tsx | 104 ++++++++++++++++++ libs/icons/valentines/src/lib/mail.tsx | 116 ++++++++++++++++++++ libs/icons/valentines/src/lib/ticket.tsx | 96 +++++++++++++++++ libs/icons/valentines/tsconfig.json | 20 ++++ libs/icons/valentines/tsconfig.lib.json | 23 ++++ libs/icons/valentines/tsconfig.spec.json | 20 ++++ libs/icons/web/.babelrc | 12 +++ libs/icons/web/.eslintrc.json | 18 ++++ libs/icons/web/README.md | 7 ++ libs/icons/web/jest.config.ts | 11 ++ libs/icons/web/project.json | 30 ++++++ libs/icons/web/src/index.ts | 4 + libs/icons/web/src/lib/gamepad.tsx | 126 ++++++++++++++++++++++ libs/icons/web/src/lib/hourglass.tsx | 87 +++++++++++++++ libs/icons/web/tsconfig.json | 20 ++++ libs/icons/web/tsconfig.lib.json | 23 ++++ libs/icons/web/tsconfig.spec.json | 20 ++++ tsconfig.base.json | 2 + 26 files changed, 1024 insertions(+) create mode 100644 libs/icons/valentines/.babelrc create mode 100644 libs/icons/valentines/.eslintrc.json create mode 100644 libs/icons/valentines/README.md create mode 100644 libs/icons/valentines/jest.config.ts create mode 100644 libs/icons/valentines/project.json create mode 100644 libs/icons/valentines/src/index.ts create mode 100644 libs/icons/valentines/src/lib/chat.tsx create mode 100644 libs/icons/valentines/src/lib/diamond.tsx create mode 100644 libs/icons/valentines/src/lib/gift.tsx create mode 100644 libs/icons/valentines/src/lib/mail.tsx create mode 100644 libs/icons/valentines/src/lib/ticket.tsx create mode 100644 libs/icons/valentines/tsconfig.json create mode 100644 libs/icons/valentines/tsconfig.lib.json create mode 100644 libs/icons/valentines/tsconfig.spec.json create mode 100644 libs/icons/web/.babelrc create mode 100644 libs/icons/web/.eslintrc.json create mode 100644 libs/icons/web/README.md create mode 100644 libs/icons/web/jest.config.ts create mode 100644 libs/icons/web/project.json create mode 100644 libs/icons/web/src/index.ts create mode 100644 libs/icons/web/src/lib/gamepad.tsx create mode 100644 libs/icons/web/src/lib/hourglass.tsx create mode 100644 libs/icons/web/tsconfig.json create mode 100644 libs/icons/web/tsconfig.lib.json create mode 100644 libs/icons/web/tsconfig.spec.json diff --git a/libs/icons/valentines/.babelrc b/libs/icons/valentines/.babelrc new file mode 100644 index 000000000..1ea870ead --- /dev/null +++ b/libs/icons/valentines/.babelrc @@ -0,0 +1,12 @@ +{ + "presets": [ + [ + "@nx/react/babel", + { + "runtime": "automatic", + "useBuiltIns": "usage" + } + ] + ], + "plugins": [] +} diff --git a/libs/icons/valentines/.eslintrc.json b/libs/icons/valentines/.eslintrc.json new file mode 100644 index 000000000..75b85077d --- /dev/null +++ b/libs/icons/valentines/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["plugin:@nx/react", "../../../.eslintrc.json"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/libs/icons/valentines/README.md b/libs/icons/valentines/README.md new file mode 100644 index 000000000..d1a5f7893 --- /dev/null +++ b/libs/icons/valentines/README.md @@ -0,0 +1,7 @@ +# icons-valentines + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test icons-valentines` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/icons/valentines/jest.config.ts b/libs/icons/valentines/jest.config.ts new file mode 100644 index 000000000..1acb6320d --- /dev/null +++ b/libs/icons/valentines/jest.config.ts @@ -0,0 +1,11 @@ +/* eslint-disable */ +export default { + displayName: 'icons-valentines', + preset: '../../../jest.preset.js', + transform: { + '^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest', + '^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/react/babel'] }], + }, + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], + coverageDirectory: '../../../coverage/libs/icons/valentines', +}; diff --git a/libs/icons/valentines/project.json b/libs/icons/valentines/project.json new file mode 100644 index 000000000..54c7d6e1b --- /dev/null +++ b/libs/icons/valentines/project.json @@ -0,0 +1,30 @@ +{ + "name": "icons-valentines", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/icons/valentines/src", + "projectType": "library", + "tags": [], + "targets": { + "lint": { + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["libs/icons/valentines/**/*.{ts,tsx,js,jsx}"] + } + }, + "test": { + "executor": "@nx/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/icons/valentines/jest.config.ts", + "passWithNoTests": true + }, + "configurations": { + "ci": { + "ci": true, + "codeCoverage": true + } + } + } + } +} diff --git a/libs/icons/valentines/src/index.ts b/libs/icons/valentines/src/index.ts new file mode 100644 index 000000000..4bf5fdf4a --- /dev/null +++ b/libs/icons/valentines/src/index.ts @@ -0,0 +1,7 @@ +// https://www.svgrepo.com/collection/valentines-day-21/ + +export * from './lib/ticket'; +export * from './lib/mail'; +export * from './lib/diamond'; +export * from './lib/gift'; +export * from './lib/chat'; diff --git a/libs/icons/valentines/src/lib/chat.tsx b/libs/icons/valentines/src/lib/chat.tsx new file mode 100644 index 000000000..4c7de41a1 --- /dev/null +++ b/libs/icons/valentines/src/lib/chat.tsx @@ -0,0 +1,124 @@ +import { createSvgIcon } from '@mui/material'; + +const name = 'ValentinesChat'; + +export const ValentinesChat = createSvgIcon( + + + + + + + + + + + + + + + + + + + + + + + , + name +); diff --git a/libs/icons/valentines/src/lib/diamond.tsx b/libs/icons/valentines/src/lib/diamond.tsx new file mode 100644 index 000000000..aeb7aa946 --- /dev/null +++ b/libs/icons/valentines/src/lib/diamond.tsx @@ -0,0 +1,76 @@ +import { createSvgIcon } from '@mui/material'; + +const name = 'ValentinesDiamond'; + +export const ValentinesDiamond = createSvgIcon( + + + + + + + + + + + + + + + + , + name +); diff --git a/libs/icons/valentines/src/lib/gift.tsx b/libs/icons/valentines/src/lib/gift.tsx new file mode 100644 index 000000000..f0ea49f3c --- /dev/null +++ b/libs/icons/valentines/src/lib/gift.tsx @@ -0,0 +1,104 @@ +import { createSvgIcon } from '@mui/material'; + +const name = 'ValentinesGift'; + +export const ValentinesGift = createSvgIcon( + + + + + + + + + + + + + + + + + + + + + + + , + name +); diff --git a/libs/icons/valentines/src/lib/mail.tsx b/libs/icons/valentines/src/lib/mail.tsx new file mode 100644 index 000000000..11a7ccdac --- /dev/null +++ b/libs/icons/valentines/src/lib/mail.tsx @@ -0,0 +1,116 @@ +import { createSvgIcon } from '@mui/material'; + +const name = 'ValentinesMail'; + +export const ValentinesMail = createSvgIcon( + + + + + + + + + + + + + + + , + name +); diff --git a/libs/icons/valentines/src/lib/ticket.tsx b/libs/icons/valentines/src/lib/ticket.tsx new file mode 100644 index 000000000..0d545148b --- /dev/null +++ b/libs/icons/valentines/src/lib/ticket.tsx @@ -0,0 +1,96 @@ +import { createSvgIcon } from '@mui/material'; + +const name = 'ValentinesTicket'; + +export const ValentinesTicket = createSvgIcon( + + + + + + + + + + + + + + , + name +); diff --git a/libs/icons/valentines/tsconfig.json b/libs/icons/valentines/tsconfig.json new file mode 100644 index 000000000..4daaf45cd --- /dev/null +++ b/libs/icons/valentines/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "jsx": "react-jsx", + "allowJs": false, + "esModuleInterop": false, + "allowSyntheticDefaultImports": true, + "strict": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ], + "extends": "../../../tsconfig.base.json" +} diff --git a/libs/icons/valentines/tsconfig.lib.json b/libs/icons/valentines/tsconfig.lib.json new file mode 100644 index 000000000..7b862025e --- /dev/null +++ b/libs/icons/valentines/tsconfig.lib.json @@ -0,0 +1,23 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "types": ["node"] + }, + "files": [ + "../../../node_modules/@nx/react/typings/cssmodule.d.ts", + "../../../node_modules/@nx/react/typings/image.d.ts" + ], + "exclude": [ + "jest.config.ts", + "src/**/*.spec.ts", + "src/**/*.test.ts", + "src/**/*.spec.tsx", + "src/**/*.test.tsx", + "src/**/*.spec.js", + "src/**/*.test.js", + "src/**/*.spec.jsx", + "src/**/*.test.jsx" + ], + "include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"] +} diff --git a/libs/icons/valentines/tsconfig.spec.json b/libs/icons/valentines/tsconfig.spec.json new file mode 100644 index 000000000..25b7af8f6 --- /dev/null +++ b/libs/icons/valentines/tsconfig.spec.json @@ -0,0 +1,20 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "include": [ + "jest.config.ts", + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.test.tsx", + "src/**/*.spec.tsx", + "src/**/*.test.js", + "src/**/*.spec.js", + "src/**/*.test.jsx", + "src/**/*.spec.jsx", + "src/**/*.d.ts" + ] +} diff --git a/libs/icons/web/.babelrc b/libs/icons/web/.babelrc new file mode 100644 index 000000000..1ea870ead --- /dev/null +++ b/libs/icons/web/.babelrc @@ -0,0 +1,12 @@ +{ + "presets": [ + [ + "@nx/react/babel", + { + "runtime": "automatic", + "useBuiltIns": "usage" + } + ] + ], + "plugins": [] +} diff --git a/libs/icons/web/.eslintrc.json b/libs/icons/web/.eslintrc.json new file mode 100644 index 000000000..75b85077d --- /dev/null +++ b/libs/icons/web/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["plugin:@nx/react", "../../../.eslintrc.json"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/libs/icons/web/README.md b/libs/icons/web/README.md new file mode 100644 index 000000000..837e08b69 --- /dev/null +++ b/libs/icons/web/README.md @@ -0,0 +1,7 @@ +# icons-web + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test icons-web` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/icons/web/jest.config.ts b/libs/icons/web/jest.config.ts new file mode 100644 index 000000000..fd19cbdde --- /dev/null +++ b/libs/icons/web/jest.config.ts @@ -0,0 +1,11 @@ +/* eslint-disable */ +export default { + displayName: 'icons-web', + preset: '../../../jest.preset.js', + transform: { + '^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest', + '^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/react/babel'] }], + }, + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], + coverageDirectory: '../../../coverage/libs/icons/web', +}; diff --git a/libs/icons/web/project.json b/libs/icons/web/project.json new file mode 100644 index 000000000..fad3297f8 --- /dev/null +++ b/libs/icons/web/project.json @@ -0,0 +1,30 @@ +{ + "name": "icons-web", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/icons/web/src", + "projectType": "library", + "tags": [], + "targets": { + "lint": { + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["libs/icons/web/**/*.{ts,tsx,js,jsx}"] + } + }, + "test": { + "executor": "@nx/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/icons/web/jest.config.ts", + "passWithNoTests": true + }, + "configurations": { + "ci": { + "ci": true, + "codeCoverage": true + } + } + } + } +} diff --git a/libs/icons/web/src/index.ts b/libs/icons/web/src/index.ts new file mode 100644 index 000000000..c3b2dfe68 --- /dev/null +++ b/libs/icons/web/src/index.ts @@ -0,0 +1,4 @@ +// https://www.svgrepo.com/collection/electronic-and-web-element-collection-2/ + +export * from './lib/gamepad'; +export * from './lib/hourglass'; diff --git a/libs/icons/web/src/lib/gamepad.tsx b/libs/icons/web/src/lib/gamepad.tsx new file mode 100644 index 000000000..83ff90d48 --- /dev/null +++ b/libs/icons/web/src/lib/gamepad.tsx @@ -0,0 +1,126 @@ +import { createSvgIcon } from '@mui/material'; + +const name = 'WebGamepad'; + +export const WebGamepad = createSvgIcon( + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + name +); diff --git a/libs/icons/web/src/lib/hourglass.tsx b/libs/icons/web/src/lib/hourglass.tsx new file mode 100644 index 000000000..fff95630c --- /dev/null +++ b/libs/icons/web/src/lib/hourglass.tsx @@ -0,0 +1,87 @@ +import { createSvgIcon } from '@mui/material'; + +const name = 'WebHourglass'; + +export const WebHourglass = createSvgIcon( + + + + + + + + + + + + + , + name +); diff --git a/libs/icons/web/tsconfig.json b/libs/icons/web/tsconfig.json new file mode 100644 index 000000000..4daaf45cd --- /dev/null +++ b/libs/icons/web/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "jsx": "react-jsx", + "allowJs": false, + "esModuleInterop": false, + "allowSyntheticDefaultImports": true, + "strict": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ], + "extends": "../../../tsconfig.base.json" +} diff --git a/libs/icons/web/tsconfig.lib.json b/libs/icons/web/tsconfig.lib.json new file mode 100644 index 000000000..7b862025e --- /dev/null +++ b/libs/icons/web/tsconfig.lib.json @@ -0,0 +1,23 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "types": ["node"] + }, + "files": [ + "../../../node_modules/@nx/react/typings/cssmodule.d.ts", + "../../../node_modules/@nx/react/typings/image.d.ts" + ], + "exclude": [ + "jest.config.ts", + "src/**/*.spec.ts", + "src/**/*.test.ts", + "src/**/*.spec.tsx", + "src/**/*.test.tsx", + "src/**/*.spec.js", + "src/**/*.test.js", + "src/**/*.spec.jsx", + "src/**/*.test.jsx" + ], + "include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"] +} diff --git a/libs/icons/web/tsconfig.spec.json b/libs/icons/web/tsconfig.spec.json new file mode 100644 index 000000000..25b7af8f6 --- /dev/null +++ b/libs/icons/web/tsconfig.spec.json @@ -0,0 +1,20 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "include": [ + "jest.config.ts", + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.test.tsx", + "src/**/*.spec.tsx", + "src/**/*.test.js", + "src/**/*.spec.js", + "src/**/*.test.jsx", + "src/**/*.spec.jsx", + "src/**/*.d.ts" + ] +} diff --git a/tsconfig.base.json b/tsconfig.base.json index be7d19e75..d55735bf4 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -25,6 +25,8 @@ "@worksheets/icons/arrows": ["libs/icons/arrows/src/index.ts"], "@worksheets/icons/charity": ["libs/icons/charity/src/index.ts"], "@worksheets/icons/companies": ["libs/icons/companies/src/index.ts"], + "@worksheets/icons/valentines": ["libs/icons/valentines/src/index.ts"], + "@worksheets/icons/web": ["libs/icons/web/src/index.ts"], "@worksheets/icons/youtube": ["libs/icons/youtube/src/index.ts"], "@worksheets/prisma": ["libs/prisma/src/index.ts"], "@worksheets/services/environment": [