diff --git a/.gitignore b/.gitignore index c208f16250..16d8838c58 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,8 @@ dist build .nx/installation .nx/cache -.idea \ No newline at end of file +.idea + +# OS generated files # +###################### +.DS_Store \ No newline at end of file diff --git a/.npmrc b/.npmrc index 80af792045..9689d82cda 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -publish-branch=production \ No newline at end of file +publish-branch=production diff --git a/apps/dialtone-documentation/.gitignore b/apps/dialtone-documentation/.gitignore index 9efa2ce71e..114f048fcd 100644 --- a/apps/dialtone-documentation/.gitignore +++ b/apps/dialtone-documentation/.gitignore @@ -7,20 +7,12 @@ docs/_includes/icons docs/_includes/patterns docs/_includes/spot -# OS generated files # -###################### -.DS_Store - -# NPM # -############### -node_modules - # Environment normalization # ############### /docs/.bundle /docs/vendor/bundle # VuePress # -.temp -.cache +docs/.vuepress/.temp +docs/.vuepress/.cache docs/.vuepress/dist \ No newline at end of file diff --git a/packages/dialtone-icons-vue2/.eslintrc.cjs b/packages/dialtone-icons-vue2/.eslintrc.cjs deleted file mode 100644 index 6649c646a4..0000000000 --- a/packages/dialtone-icons-vue2/.eslintrc.cjs +++ /dev/null @@ -1,29 +0,0 @@ -module.exports = { - root: true, - env: { - node: true - }, - 'extends': [ - 'plugin:vue/vue3-essential', - 'eslint:recommended' - ], - parserOptions: { - parser: '@babel/eslint-parser' - }, - rules: { - 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', - 'vue/multi-word-component-names': 'off', - }, - overrides: [ - { - files: [ - '**/__tests__/*.{j,t}s?(x)', - '**/tests/unit/**/*.spec.{j,t}s?(x)' - ], - env: { - mocha: true - } - } - ] -} diff --git a/packages/dialtone-icons-vue2/.gitignore b/packages/dialtone-icons-vue2/.gitignore deleted file mode 100644 index bd93b6b9cf..0000000000 --- a/packages/dialtone-icons-vue2/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -.DS_Store -node_modules -/dist - - -# local env files -.env.local -.env.*.local - -# Log files -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* - -# Editor directories and files -.idea -.vscode -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? - -# Auto-build files -src/main.js -src/icons/ diff --git a/packages/dialtone-icons-vue2/jsconfig.json b/packages/dialtone-icons-vue2/jsconfig.json deleted file mode 100644 index 4aafc5f6ed..0000000000 --- a/packages/dialtone-icons-vue2/jsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "esnext", - "baseUrl": "./", - "moduleResolution": "node", - "paths": { - "@/*": [ - "src/*" - ] - }, - "lib": [ - "esnext", - "dom", - "dom.iterable", - "scripthost" - ] - } -} diff --git a/packages/dialtone-icons-vue2/release-ci.config.cjs b/packages/dialtone-icons-vue2/release-ci.config.cjs deleted file mode 100644 index d75605a982..0000000000 --- a/packages/dialtone-icons-vue2/release-ci.config.cjs +++ /dev/null @@ -1,32 +0,0 @@ -const name = 'dialtone-icons-vue2'; -const srcRoot = `packages/${name}`; - -module.exports = { - extends: 'release.config.base.js', - pkgRoot: srcRoot, - tagFormat: name + '/v${version}', - commitPaths: [`${srcRoot}/*`], - plugins: [ - ['@semantic-release/commit-analyzer', { - preset: 'angular', - releaseRules: [ - {type: 'refactor', release: 'patch'}, - ], - }], - ['@semantic-release/release-notes-generator', { - config: '@dialpad/conventional-changelog-angular', - }], - '@semantic-release/github', - ], - branches: [ - 'production', - { - name: 'beta', - prerelease: true, - }, - { - name: 'alpha', - prerelease: true, - }, - ], -}; diff --git a/packages/dialtone-icons-vue2/release-local.config.cjs b/packages/dialtone-icons-vue2/release-local.config.cjs deleted file mode 100644 index f095978357..0000000000 --- a/packages/dialtone-icons-vue2/release-local.config.cjs +++ /dev/null @@ -1,40 +0,0 @@ -const name = 'dialtone-icons-vue2'; -const srcRoot = `packages/${name}`; - -module.exports = { - extends: 'release.config.base.js', - pkgRoot: srcRoot, - tagFormat: name + '/v${version}', - commitPaths: [`${srcRoot}/*`], - assets: [`${srcRoot}/CHANGELOG.md`, `${srcRoot}/CHANGELOG.json`, `${srcRoot}/package.json`, `${srcRoot}/package-lock.json`], - plugins: [ - ['@semantic-release/commit-analyzer', { - preset: 'angular', - releaseRules: [ - { type: 'refactor', release: 'patch' }, - ], - }], - ['@semantic-release/release-notes-generator', { - config: '@dialpad/conventional-changelog-angular', - }], - ['@dialpad/semantic-release-changelog-json', { changelogFile: `${srcRoot}/CHANGELOG.md`, changelogJsonFile: `${srcRoot}/CHANGELOG.json` }], - ['@semantic-release/changelog', { changelogFile: `${srcRoot}/CHANGELOG.md` }], - ['@semantic-release/npm', { npmPublish: false }], - ['@semantic-release/git', { - /* eslint-disable-next-line no-template-curly-in-string */ - message: `chore(release): ${name}` + - '/v${nextRelease.version}\n\n${nextRelease.notes}', - }], - ], - branches: [ - 'staging', - { - name: 'beta', - prerelease: true, - }, - { - name: 'alpha', - prerelease: true, - }, - ], -}; diff --git a/packages/dialtone-icons-vue2/src/baseIconTemplate.vue b/packages/dialtone-icons-vue2/src/baseIconTemplate.vue deleted file mode 100644 index 3bb61ca6ab..0000000000 --- a/packages/dialtone-icons-vue2/src/baseIconTemplate.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/packages/dialtone-icons-vue2/src/utils.js b/packages/dialtone-icons-vue2/src/utils.js deleted file mode 100644 index 8497c7f218..0000000000 --- a/packages/dialtone-icons-vue2/src/utils.js +++ /dev/null @@ -1,10 +0,0 @@ -export const DEFAULT_PREFIX = 'dtIcon'; -let UNIQUE_ID_COUNTER = 0; - -export function getUniqueString (prefix = DEFAULT_PREFIX) { - return `${prefix}${UNIQUE_ID_COUNTER++}`; -} - -export default { - getUniqueString, -} diff --git a/packages/dialtone-icons-vue2/vite.config.js b/packages/dialtone-icons-vue2/vite.config.js deleted file mode 100644 index 557af1c5d9..0000000000 --- a/packages/dialtone-icons-vue2/vite.config.js +++ /dev/null @@ -1,29 +0,0 @@ -import { defineConfig } from 'vite'; -import vue from '@vitejs/plugin-vue2'; -import path, { resolve } from 'path'; -import { fileURLToPath } from 'url'; - -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); - -export default defineConfig({ - build: { - emptyOutDir: false, - lib: { - entry: resolve(__dirname, './src/main.js'), - name: 'dialtone-icons', - }, - rollupOptions: { - external: ['vue'], - output: { - globals: { - vue: 'Vue', - }, - }, - }, - }, - plugins: [vue()], - resolve: { - alias: { '@' : path.resolve(__dirname, './src') } - }, -}); diff --git a/packages/dialtone-icons-vue3/.commitlintrc.json b/packages/dialtone-icons-vue3/.commitlintrc.json deleted file mode 100644 index 4a7040f8f5..0000000000 --- a/packages/dialtone-icons-vue3/.commitlintrc.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "extends": ["@commitlint/config-conventional"], - "rules": { - "type-enum": [ - 2, - "always", - [ - "build", - "chore", - "ci", - "docs", - "feat", - "fix", - "perf", - "refactor", - "revert", - "style", - "test" - ] - ], - "scope-case": [2, "always", "kebab-case"], - "header-max-length": [2, "always", 120], - "body-max-line-length": [0, "always", 100], - "subject-full-stop": [0, "never", "."] - }, - "helpUrl": "https://github.com/dialpad/dialtone-icons/blob/staging/.github/COMMIT_CONVENTION.md" -} diff --git a/packages/dialtone-icons-vue3/.eslintrc.cjs b/packages/dialtone-icons-vue3/.eslintrc.cjs deleted file mode 100644 index 6649c646a4..0000000000 --- a/packages/dialtone-icons-vue3/.eslintrc.cjs +++ /dev/null @@ -1,29 +0,0 @@ -module.exports = { - root: true, - env: { - node: true - }, - 'extends': [ - 'plugin:vue/vue3-essential', - 'eslint:recommended' - ], - parserOptions: { - parser: '@babel/eslint-parser' - }, - rules: { - 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', - 'vue/multi-word-component-names': 'off', - }, - overrides: [ - { - files: [ - '**/__tests__/*.{j,t}s?(x)', - '**/tests/unit/**/*.spec.{j,t}s?(x)' - ], - env: { - mocha: true - } - } - ] -} diff --git a/packages/dialtone-icons-vue3/.gitignore b/packages/dialtone-icons-vue3/.gitignore deleted file mode 100644 index bd93b6b9cf..0000000000 --- a/packages/dialtone-icons-vue3/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -.DS_Store -node_modules -/dist - - -# local env files -.env.local -.env.*.local - -# Log files -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* - -# Editor directories and files -.idea -.vscode -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? - -# Auto-build files -src/main.js -src/icons/ diff --git a/packages/dialtone-icons-vue3/.gulp.json b/packages/dialtone-icons-vue3/.gulp.json deleted file mode 100644 index 6cdb49a589..0000000000 --- a/packages/dialtone-icons-vue3/.gulp.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "flags": { - "gulpfile": "gulpfile.cjs" - } -} diff --git a/packages/dialtone-icons-vue3/CHANGELOG.json b/packages/dialtone-icons-vue3/CHANGELOG.json deleted file mode 100644 index e9bf19ada6..0000000000 --- a/packages/dialtone-icons-vue3/CHANGELOG.json +++ /dev/null @@ -1 +0,0 @@ -{"versions":[{"version":"3.4.1","title":"[3.4.1](https://github.com/dialpad/design-system/compare/dialtone-icons-vue3/v3.4.0...dialtone-icons-vue3/v3.4.1) (2023-10-31)","date":"2023-10-31","body":"### Code Refactoring\n\n* move .github to root workspace ([b818041](https://github.com/dialpad/design-system/commit/b818041ed12ffa5e5baebbdcdccf56a6b428853b))\n\n\n\n### Features\n\n* add skip-15-sec, rewind-15-sec, list-ordered icons ([#28](https://github.com/dialpad/dialtone-icons/issues/28)) ([d13dd30](https://github.com/dialpad/dialtone-icons/commit/d13dd3018a7e12710dae9bcd78ae59d00dd5affa))","parsed":{"_":["move .github to root workspace (b818041)","add skip-15-sec, rewind-15-sec, list-ordered icons (#28) (d13dd30)"],"Code Refactoring":["move .github to root workspace (b818041)"],"Features":["add skip-15-sec, rewind-15-sec, list-ordered icons (#28) (d13dd30)"]}},{"version":"3.3.0","title":"[3.3.0](https://github.com/dialpad/dialtone-icons/compare/v3.2.0...v3.3.0) (2023-10-04)","date":"2023-10-04","body":"### Features\n\n* add attestation-outline, empty, video-settings, call-rejected, waveform icons ([#27](https://github.com/dialpad/dialtone-icons/issues/27)) ([195093f](https://github.com/dialpad/dialtone-icons/commit/195093f8e57d1e9351b2c750040afad2fa0e961a))","parsed":{"_":["add attestation-outline, empty, video-settings, call-rejected, waveform icons (#27) (195093f)"],"Features":["add attestation-outline, empty, video-settings, call-rejected, waveform icons (#27) (195093f)"]}},{"version":"3.2.0","title":"[3.2.0](https://github.com/dialpad/dialtone-icons/compare/v3.1.1...v3.2.0) (2023-09-21)","date":"2023-09-21","body":"### Documentation\n\n* rename main branch to production ([8e5511f](https://github.com/dialpad/dialtone-icons/commit/8e5511f295860a7c552bc6adec2b4ba361ca29de))\n\n\n### Features\n\n* add circle half filled icon ([#26](https://github.com/dialpad/dialtone-icons/issues/26)) ([8622483](https://github.com/dialpad/dialtone-icons/commit/862248369d96f715773740a06072e0744b48c3e9))\n* add x and threads icons ([#25](https://github.com/dialpad/dialtone-icons/issues/25)) ([f417682](https://github.com/dialpad/dialtone-icons/commit/f4176821fa22b30fe4fd44e6193837271259292c))","parsed":{"_":["rename main branch to production (8e5511f)","add circle half filled icon (#26) (8622483)","add x and threads icons (#25) (f417682)"],"Documentation":["rename main branch to production (8e5511f)"],"Features":["add circle half filled icon (#26) (8622483)","add x and threads icons (#25) (f417682)"]}},{"version":"3.1.1","title":"[3.1.1](https://github.com/dialpad/dialtone-icons/compare/v3.1.0...v3.1.1) (2023-09-04)","date":"2023-09-04","body":"### Bug Fixes\n\n* add prepublish script ([48cb09c](https://github.com/dialpad/dialtone-icons/commit/48cb09c25397cd7e92e1d9127f5cf81855f1fab3))","parsed":{"_":["add prepublish script (48cb09c)"],"Bug Fixes":["add prepublish script (48cb09c)"]}},{"version":"3.1.0","title":"[3.1.0](https://github.com/dialpad/dialtone-icons/compare/v3.0.2...v3.1.0) (2023-09-04)","date":"2023-09-04","body":"### Features\n\n* add dialpad-logomark ([67c5889](https://github.com/dialpad/dialtone-icons/commit/67c588921575254a075cc3c5c26acbfc7817b4a0))","parsed":{"_":["add dialpad-logomark (67c5889)"],"Features":["add dialpad-logomark (67c5889)"]}},{"version":"3.0.2","title":"[3.0.2](https://github.com/dialpad/dialtone-icons/compare/v3.0.1...v3.0.2) (2023-07-31)","date":"2023-07-31","body":"### Bug Fixes\n\n* github release ([e1a36e4](https://github.com/dialpad/dialtone-icons/commit/e1a36e4c919b6a9d8bfc104123987b8352be84ac))","parsed":{"_":["github release (e1a36e4)"],"Bug Fixes":["github release (e1a36e4)"]}},{"version":"3.0.1","title":"[3.0.1](https://github.com/dialpad/dialtone-icons/compare/v3.0.0...v3.0.1) (2023-07-31)","date":"2023-07-31","body":"### Bug Fixes\n\n* force-release ([cdd9ac5](https://github.com/dialpad/dialtone-icons/commit/cdd9ac545764956a8d94aa2266528e33397bef27))","parsed":{"_":["force-release (cdd9ac5)"],"Bug Fixes":["force-release (cdd9ac5)"]}},{"version":"3.0.0","title":"3.0.0 (2023-07-31)","date":"2023-07-31","body":"### Bug Fixes\n\n* add cjs ([b99ad92](https://github.com/dialpad/dialtone-icons/commit/b99ad925235f3cd6c790079e3b38c780a5ee4b01))\n* add icons.json export ([7628f26](https://github.com/dialpad/dialtone-icons/commit/7628f265484411c5bc6e6abb185a357a8cdfe118))\n* add missing icons and exports ([7cdfd59](https://github.com/dialpad/dialtone-icons/commit/7cdfd59e9c676ef64bc0e484eb13059695756a6c))\n* add role=\"img\" to svgs for better compatibility ([e8090f2](https://github.com/dialpad/dialtone-icons/commit/e8090f208f162eb39e993ee938debb7d902aef21))\n* commit json ([7acced5](https://github.com/dialpad/dialtone-icons/commit/7acced5ddc77a6942ae9edfca4685c342a36bd5e))\n* dialbot icon ([e224650](https://github.com/dialpad/dialtone-icons/commit/e224650fadee6b66a0cd3ce9c53126641734c965))\n* duplicated clip-path id ([#11](https://github.com/dialpad/dialtone-icons/issues/11)) ([789804b](https://github.com/dialpad/dialtone-icons/commit/789804ba3877e6bf60d80c4c17049cebb1d5fcb5))\n* missing icons ([0c5ed97](https://github.com/dialpad/dialtone-icons/commit/0c5ed973917e5b47d2db100e4744848b3527c1f7))\n* missing icons ([631031e](https://github.com/dialpad/dialtone-icons/commit/631031ea7b79c4606970e7598bb501bd9591eff2))\n* missing json file ([b890042](https://github.com/dialpad/dialtone-icons/commit/b8900429c8f94eb9d22ca5c42e0c88d131ee4774))\n* phone-hold icon facing wrong way ([28d0fbb](https://github.com/dialpad/dialtone-icons/commit/28d0fbb47da8717b9639fcc126fce5a97a71598c))\n* rename dialpad-ai.svg -> dialpad-ai-color.svg ([66dc633](https://github.com/dialpad/dialtone-icons/commit/66dc633ee9e8dcd50ac5c19a8251206f09831921))\n* update dialpad-ai ([900f46f](https://github.com/dialpad/dialtone-icons/commit/900f46f59cd441d07859078dfd311e894ccad219))\n* vue3 fixes ([999342c](https://github.com/dialpad/dialtone-icons/commit/999342cac6a026d994f83a9d0ce423aaf5458bc7))\n\n\n### Code Refactoring\n\n* improve icons contributing process ([#9](https://github.com/dialpad/dialtone-icons/issues/9)) ([4b6d07e](https://github.com/dialpad/dialtone-icons/commit/4b6d07e2263fce260d41665e5988931b86880b5b))\n\n\n### Features\n\n* add attestation, hand, lightbulb, lightbulb-off, picture-in-picture, phone-hang-up + other icons ([#7](https://github.com/dialpad/dialtone-icons/issues/7)) ([9d9688c](https://github.com/dialpad/dialtone-icons/commit/9d9688ce9dd4700cde7b6ffd2f794d364bac8e3b))\n* add brand-full-color icons - vue3 ([#15](https://github.com/dialpad/dialtone-icons/issues/15)) ([9af7a01](https://github.com/dialpad/dialtone-icons/commit/9af7a012246b4a7636c4f0399462e68c768df9cf))\n* add coaching-hub icon ([ec80c0d](https://github.com/dialpad/dialtone-icons/commit/ec80c0dc4108a78c68a6dc5fddef7ec6d2f6c765))\n* add deskphone / double check icons ([#20](https://github.com/dialpad/dialtone-icons/issues/20)) ([59d55bb](https://github.com/dialpad/dialtone-icons/commit/59d55bb8d181650f4a75057c2a653d4afc53a988))\n* add google icons and filled play ([5a4466b](https://github.com/dialpad/dialtone-icons/commit/5a4466bcc6e48009cf01d5bfce953eaaa0917650))\n* add icons ([3af6a2d](https://github.com/dialpad/dialtone-icons/commit/3af6a2dffd41b2b78d6b84e0a5c6f9f682f9086f))\n* add icons ([#13](https://github.com/dialpad/dialtone-icons/issues/13)) ([444e1ec](https://github.com/dialpad/dialtone-icons/commit/444e1eccb0f30e045394a9fd6c7649bdbd935f2a))\n* add new communication icons ([32b147a](https://github.com/dialpad/dialtone-icons/commit/32b147a1fe8df193d77e14465f3a38a101213371))\n* add new icons ([dc7b07f](https://github.com/dialpad/dialtone-icons/commit/dc7b07f3a7e897696b5e9cbc8f0b0315af8f2cf3))\n* add svg files ([bc22d89](https://github.com/dialpad/dialtone-icons/commit/bc22d8961e76e51e601e24953076bd7d4b0ad52f))\n* add transportation and check-circle-filled icons ([054a881](https://github.com/dialpad/dialtone-icons/commit/054a881a7a2bea08d3ce46b9d2fbca335ea523b8))\n* branch, call-merge and expert-node icons ([f8514d1](https://github.com/dialpad/dialtone-icons/commit/f8514d11c76fe119593c3b2292a5b44ab32918dd))\n* generate unique ids ([#17](https://github.com/dialpad/dialtone-icons/issues/17)) ([a47a93a](https://github.com/dialpad/dialtone-icons/commit/a47a93a7c3b3a5d6499954ff17f33af31d623c6d))\n* snooze and list-add icons ([d2eff99](https://github.com/dialpad/dialtone-icons/commit/d2eff994c16e8336a28a7e62f958d9fd21969b10))\n* upgrade to vite ([25389cf](https://github.com/dialpad/dialtone-icons/commit/25389cf5316c696493fa63d9f6611f2d3a95f3c7))","parsed":{"_":["add cjs (b99ad92)","add icons.json export (7628f26)","add missing icons and exports (7cdfd59)","add role=\"img\" to svgs for better compatibility (e8090f2)","commit json (7acced5)","dialbot icon (e224650)","duplicated clip-path id (#11) (789804b)","missing icons (0c5ed97)","missing icons (631031e)","missing json file (b890042)","phone-hold icon facing wrong way (28d0fbb)","rename dialpad-ai.svg -> dialpad-ai-color.svg (66dc633)","update dialpad-ai (900f46f)","vue3 fixes (999342c)","improve icons contributing process (#9) (4b6d07e)","add attestation, hand, lightbulb, lightbulb-off, picture-in-picture, phone-hang-up + other icons (#7) (9d9688c)","add brand-full-color icons - vue3 (#15) (9af7a01)","add coaching-hub icon (ec80c0d)","add deskphone / double check icons (#20) (59d55bb)","add google icons and filled play (5a4466b)","add icons (3af6a2d)","add icons (#13) (444e1ec)","add new communication icons (32b147a)","add new icons (dc7b07f)","add svg files (bc22d89)","add transportation and check-circle-filled icons (054a881)","branch, call-merge and expert-node icons (f8514d1)","generate unique ids (#17) (a47a93a)","snooze and list-add icons (d2eff99)","upgrade to vite (25389cf)"],"Bug Fixes":["add cjs (b99ad92)","add icons.json export (7628f26)","add missing icons and exports (7cdfd59)","add role=\"img\" to svgs for better compatibility (e8090f2)","commit json (7acced5)","dialbot icon (e224650)","duplicated clip-path id (#11) (789804b)","missing icons (0c5ed97)","missing icons (631031e)","missing json file (b890042)","phone-hold icon facing wrong way (28d0fbb)","rename dialpad-ai.svg -> dialpad-ai-color.svg (66dc633)","update dialpad-ai (900f46f)","vue3 fixes (999342c)"],"Code Refactoring":["improve icons contributing process (#9) (4b6d07e)"],"Features":["add attestation, hand, lightbulb, lightbulb-off, picture-in-picture, phone-hang-up + other icons (#7) (9d9688c)","add brand-full-color icons - vue3 (#15) (9af7a01)","add coaching-hub icon (ec80c0d)","add deskphone / double check icons (#20) (59d55bb)","add google icons and filled play (5a4466b)","add icons (3af6a2d)","add icons (#13) (444e1ec)","add new communication icons (32b147a)","add new icons (dc7b07f)","add svg files (bc22d89)","add transportation and check-circle-filled icons (054a881)","branch, call-merge and expert-node icons (f8514d1)","generate unique ids (#17) (a47a93a)","snooze and list-add icons (d2eff99)","upgrade to vite (25389cf)"]}}],"title":"[3.4.0](https://github.com/dialpad/dialtone-icons/compare/v3.3.0...v3.4.0) (2023-10-20)"} \ No newline at end of file diff --git a/packages/dialtone-icons-vue3/CHANGELOG.md b/packages/dialtone-icons-vue3/CHANGELOG.md deleted file mode 100644 index 0508c98932..0000000000 --- a/packages/dialtone-icons-vue3/CHANGELOG.md +++ /dev/null @@ -1,105 +0,0 @@ -## [3.4.1](https://github.com/dialpad/design-system/compare/dialtone-icons-vue3/v3.4.0...dialtone-icons-vue3/v3.4.1) (2023-10-31) - - -### Code Refactoring - -* move .github to root workspace ([b818041](https://github.com/dialpad/design-system/commit/b818041ed12ffa5e5baebbdcdccf56a6b428853b)) - -# [3.4.0](https://github.com/dialpad/dialtone-icons/compare/v3.3.0...v3.4.0) (2023-10-20) - - -### Features - -* add skip-15-sec, rewind-15-sec, list-ordered icons ([#28](https://github.com/dialpad/dialtone-icons/issues/28)) ([d13dd30](https://github.com/dialpad/dialtone-icons/commit/d13dd3018a7e12710dae9bcd78ae59d00dd5affa)) - -# [3.3.0](https://github.com/dialpad/dialtone-icons/compare/v3.2.0...v3.3.0) (2023-10-04) - - -### Features - -* add attestation-outline, empty, video-settings, call-rejected, waveform icons ([#27](https://github.com/dialpad/dialtone-icons/issues/27)) ([195093f](https://github.com/dialpad/dialtone-icons/commit/195093f8e57d1e9351b2c750040afad2fa0e961a)) - -# [3.2.0](https://github.com/dialpad/dialtone-icons/compare/v3.1.1...v3.2.0) (2023-09-21) - - -### Documentation - -* rename main branch to production ([8e5511f](https://github.com/dialpad/dialtone-icons/commit/8e5511f295860a7c552bc6adec2b4ba361ca29de)) - - -### Features - -* add circle half filled icon ([#26](https://github.com/dialpad/dialtone-icons/issues/26)) ([8622483](https://github.com/dialpad/dialtone-icons/commit/862248369d96f715773740a06072e0744b48c3e9)) -* add x and threads icons ([#25](https://github.com/dialpad/dialtone-icons/issues/25)) ([f417682](https://github.com/dialpad/dialtone-icons/commit/f4176821fa22b30fe4fd44e6193837271259292c)) - -## [3.1.1](https://github.com/dialpad/dialtone-icons/compare/v3.1.0...v3.1.1) (2023-09-04) - - -### Bug Fixes - -* add prepublish script ([48cb09c](https://github.com/dialpad/dialtone-icons/commit/48cb09c25397cd7e92e1d9127f5cf81855f1fab3)) - -# [3.1.0](https://github.com/dialpad/dialtone-icons/compare/v3.0.2...v3.1.0) (2023-09-04) - - -### Features - -* add dialpad-logomark ([67c5889](https://github.com/dialpad/dialtone-icons/commit/67c588921575254a075cc3c5c26acbfc7817b4a0)) - -## [3.0.2](https://github.com/dialpad/dialtone-icons/compare/v3.0.1...v3.0.2) (2023-07-31) - - -### Bug Fixes - -* github release ([e1a36e4](https://github.com/dialpad/dialtone-icons/commit/e1a36e4c919b6a9d8bfc104123987b8352be84ac)) - -## [3.0.1](https://github.com/dialpad/dialtone-icons/compare/v3.0.0...v3.0.1) (2023-07-31) - - -### Bug Fixes - -* force-release ([cdd9ac5](https://github.com/dialpad/dialtone-icons/commit/cdd9ac545764956a8d94aa2266528e33397bef27)) - -# 3.0.0 (2023-07-31) - - -### Bug Fixes - -* add cjs ([b99ad92](https://github.com/dialpad/dialtone-icons/commit/b99ad925235f3cd6c790079e3b38c780a5ee4b01)) -* add icons.json export ([7628f26](https://github.com/dialpad/dialtone-icons/commit/7628f265484411c5bc6e6abb185a357a8cdfe118)) -* add missing icons and exports ([7cdfd59](https://github.com/dialpad/dialtone-icons/commit/7cdfd59e9c676ef64bc0e484eb13059695756a6c)) -* add role="img" to svgs for better compatibility ([e8090f2](https://github.com/dialpad/dialtone-icons/commit/e8090f208f162eb39e993ee938debb7d902aef21)) -* commit json ([7acced5](https://github.com/dialpad/dialtone-icons/commit/7acced5ddc77a6942ae9edfca4685c342a36bd5e)) -* dialbot icon ([e224650](https://github.com/dialpad/dialtone-icons/commit/e224650fadee6b66a0cd3ce9c53126641734c965)) -* duplicated clip-path id ([#11](https://github.com/dialpad/dialtone-icons/issues/11)) ([789804b](https://github.com/dialpad/dialtone-icons/commit/789804ba3877e6bf60d80c4c17049cebb1d5fcb5)) -* missing icons ([0c5ed97](https://github.com/dialpad/dialtone-icons/commit/0c5ed973917e5b47d2db100e4744848b3527c1f7)) -* missing icons ([631031e](https://github.com/dialpad/dialtone-icons/commit/631031ea7b79c4606970e7598bb501bd9591eff2)) -* missing json file ([b890042](https://github.com/dialpad/dialtone-icons/commit/b8900429c8f94eb9d22ca5c42e0c88d131ee4774)) -* phone-hold icon facing wrong way ([28d0fbb](https://github.com/dialpad/dialtone-icons/commit/28d0fbb47da8717b9639fcc126fce5a97a71598c)) -* rename dialpad-ai.svg -> dialpad-ai-color.svg ([66dc633](https://github.com/dialpad/dialtone-icons/commit/66dc633ee9e8dcd50ac5c19a8251206f09831921)) -* update dialpad-ai ([900f46f](https://github.com/dialpad/dialtone-icons/commit/900f46f59cd441d07859078dfd311e894ccad219)) -* vue3 fixes ([999342c](https://github.com/dialpad/dialtone-icons/commit/999342cac6a026d994f83a9d0ce423aaf5458bc7)) - - -### Code Refactoring - -* improve icons contributing process ([#9](https://github.com/dialpad/dialtone-icons/issues/9)) ([4b6d07e](https://github.com/dialpad/dialtone-icons/commit/4b6d07e2263fce260d41665e5988931b86880b5b)) - - -### Features - -* add attestation, hand, lightbulb, lightbulb-off, picture-in-picture, phone-hang-up + other icons ([#7](https://github.com/dialpad/dialtone-icons/issues/7)) ([9d9688c](https://github.com/dialpad/dialtone-icons/commit/9d9688ce9dd4700cde7b6ffd2f794d364bac8e3b)) -* add brand-full-color icons - vue3 ([#15](https://github.com/dialpad/dialtone-icons/issues/15)) ([9af7a01](https://github.com/dialpad/dialtone-icons/commit/9af7a012246b4a7636c4f0399462e68c768df9cf)) -* add coaching-hub icon ([ec80c0d](https://github.com/dialpad/dialtone-icons/commit/ec80c0dc4108a78c68a6dc5fddef7ec6d2f6c765)) -* add deskphone / double check icons ([#20](https://github.com/dialpad/dialtone-icons/issues/20)) ([59d55bb](https://github.com/dialpad/dialtone-icons/commit/59d55bb8d181650f4a75057c2a653d4afc53a988)) -* add google icons and filled play ([5a4466b](https://github.com/dialpad/dialtone-icons/commit/5a4466bcc6e48009cf01d5bfce953eaaa0917650)) -* add icons ([3af6a2d](https://github.com/dialpad/dialtone-icons/commit/3af6a2dffd41b2b78d6b84e0a5c6f9f682f9086f)) -* add icons ([#13](https://github.com/dialpad/dialtone-icons/issues/13)) ([444e1ec](https://github.com/dialpad/dialtone-icons/commit/444e1eccb0f30e045394a9fd6c7649bdbd935f2a)) -* add new communication icons ([32b147a](https://github.com/dialpad/dialtone-icons/commit/32b147a1fe8df193d77e14465f3a38a101213371)) -* add new icons ([dc7b07f](https://github.com/dialpad/dialtone-icons/commit/dc7b07f3a7e897696b5e9cbc8f0b0315af8f2cf3)) -* add svg files ([bc22d89](https://github.com/dialpad/dialtone-icons/commit/bc22d8961e76e51e601e24953076bd7d4b0ad52f)) -* add transportation and check-circle-filled icons ([054a881](https://github.com/dialpad/dialtone-icons/commit/054a881a7a2bea08d3ce46b9d2fbca335ea523b8)) -* branch, call-merge and expert-node icons ([f8514d1](https://github.com/dialpad/dialtone-icons/commit/f8514d11c76fe119593c3b2292a5b44ab32918dd)) -* generate unique ids ([#17](https://github.com/dialpad/dialtone-icons/issues/17)) ([a47a93a](https://github.com/dialpad/dialtone-icons/commit/a47a93a7c3b3a5d6499954ff17f33af31d623c6d)) -* snooze and list-add icons ([d2eff99](https://github.com/dialpad/dialtone-icons/commit/d2eff994c16e8336a28a7e62f958d9fd21969b10)) -* upgrade to vite ([25389cf](https://github.com/dialpad/dialtone-icons/commit/25389cf5316c696493fa63d9f6611f2d3a95f3c7)) diff --git a/packages/dialtone-icons-vue3/README.md b/packages/dialtone-icons-vue3/README.md deleted file mode 100644 index 9923e04ceb..0000000000 --- a/packages/dialtone-icons-vue3/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# Dialtone Icons - -This is the home for Dialtone icons. It includes the resources needed to implement icons on your application that conform to Dialpad’s design principles and best practices. - -## Install Dialtone icons via NPM - -To add Dialtone icons into your project, you can install it via NPM: - -**For Vue 2 projects:** -``` -npm install --save @dialpad/dialtone-icons -``` - -**For Vue 3 projects:** -``` -npm install --save @dialpad/dialtone-icons@vue3 -``` - -Once installed, you can import icons like: -``` -import { Accessibility } from '@dialpad/dialtone-icons'; -``` - -## Committing - -If you need to add icons, follow the next steps to get your icons committed. - -1. Place the `.svg` files into `src/svg` inside the category folder. -2. Run `npm run build` -3. Commit and push your changes. -4. `git cherry-pick` your commit(s) (not release commit) to `vue3`. - -## Questions? - -If you have a question, please feel free to [open an issue](https://github.com/dialpad/dialtone-icons/issues/new). diff --git a/packages/dialtone-icons-vue3/gulpfile.cjs b/packages/dialtone-icons-vue3/gulpfile.cjs deleted file mode 100644 index c109070c64..0000000000 --- a/packages/dialtone-icons-vue3/gulpfile.cjs +++ /dev/null @@ -1,274 +0,0 @@ -// -// ================================================================================ -// @ SETTINGS -// Turn different build features on/off -// ================================================================================ -const settings = { - clean: true, // Turn on/off clean tasks - svgs: true, // Turn on/off SVG tasks - build: true, // Turn on/off build tasks - exportIcons: true, // Turn on/off export icons tasks - iconList: true, // Turn on/off icon list tasks -}; - -// ================================================================================ -// @ PACKAGES -// What makes everything go -// ================================================================================ -// @@ GENERAL -const { src, dest, series } = require('gulp'); -const del = require('del'); -const rename = require('gulp-rename'); -const through2 = require('through2'); -const fs = require("fs"); -const jsonFormat = require('gulp-json-format'); - -// @@ SVGS -const path = settings.svgs ? require('path') : null; -const svgmin = settings.svgs ? require('gulp-svgmin') : null; -const replace = settings.svgs ? require('gulp-replace') : null; - -// ================================================================================ -// @ PATHS -// Where everything is in this project -// ================================================================================ -const paths = { - clean: { - svgs: './dist/svg/**/*.svg', - vueIcons: './src/icons/*.vue', - }, - icons: { - input: './src/svg/**/*.svg', - outputSvg: './dist/svg/', - outputVue: './src/icons/', - }, - exports: { - vueIcons: './src/icons/', - index: './src/icons.js', - iconsList: './src/icons.json', - }, - templates: { - baseIcon: './src/baseIconTemplate.vue', - } -}; - -// ==== -// Util Functions -// ==== -const _getAllFiles = (dirPath, arrayOfFiles = []) => { - const files = fs.readdirSync(dirPath) - files.forEach(function(file) { - if (fs.statSync(dirPath + "/" + file).isDirectory()) { - arrayOfFiles = _getAllFiles(dirPath + "/" + file, arrayOfFiles) - } else { - arrayOfFiles.push(path.join(__dirname, dirPath, "/", file)) - } - }) - - return arrayOfFiles -} - -// ================================================================================ -// @ TASKS -// Where everything happens -// ================================================================================ -// @@ CLEAN UP -// ================================================================================ -// -- Function to clean out folders / files -const cleanUp = (items) => { - // Make sure the feature is active before running - if (!settings.clean) return; - - // Clean dist folders - return Promise.all([ - del.sync(items), - ]); -}; - -// -- Clean out SVGs -const cleanSVGs = () => { - return cleanUp([paths.clean.svgs]); -}; - -// -- Clean out Vue icons -const cleanVueIcons = () => { - return cleanUp([paths.clean.vueIcons]); -}; - -// ================================================================================ -// @@ COMPILE CSS -// Lint, minify, and concatenate style files -// ================================================================================ -const moveStyleTagsToEOF = function (file, enc, cb) { - if (!file.isBuffer()) return cb(null, file); - - const styleTagsRegex = //gmi; - let content = file.contents.toString(); - const result = styleTagsRegex.exec(content); - - if (!result) return cb(null, file); - - const matchedText = result[0]; - content = content.replace(styleTagsRegex, ''); - content = content + matchedText; - file.contents = Buffer.from(content); - - return cb(null, file); -}; - -const replaceTemplateContent = function (file, enc, cb) { - if (!file.isBuffer()) return cb(null, file); - - const template = fs.readFileSync(paths.templates.baseIcon).toString(); - let content = file.contents.toString(); - content = template.replace('/*SVG-CONTENT*/', content); - file.contents = Buffer.from(content); - - return cb(null, file); -}; - -// ================================================================================ -// @@ COMPILE SVGS -// Lint and optimize SVG files -// ================================================================================ -const buildIcons = function (done) { - // Make sure this feature is activated before running - if (!settings.svgs) return done(); - - // Compile icons - return src(paths.icons.input) - .pipe(replace(' fill="none"', '')) - .pipe(replace(' fill="#000"', ' fill="currentColor"')) - .pipe(replace(' fill="#000000"', ' fill="currentColor"')) - .pipe(replace(' fill="black"', ' fill="currentColor"')) - .pipe(replace(' fill="#0D0C0F"', ' fill="currentColor"')) - .pipe(replace(' fill="#222"', ' fill="currentColor"')) - .pipe(replace(' fill="#222222"', ' fill="currentColor"')) - .pipe(replace(/ { - return match - .replace(/width="[0-9]+"/, '') - .replace(/height="[0-9]+"/, ''); - })) - .pipe(replace(' t.toUpperCase()) - .replace(/-+/g, ' '); - return `${match} - aria-hidden="true" - focusable="false" - role="img" - data-name="${title}" - class="d-icon d-icon--${name}"`; - })) - .pipe(svgmin(function getOptions () { - return { - multipass: true, - plugins: [ - { - removeUnknownsAndDefaults: { - keepRoleAttr: true, - }, - }, - { - cleanupIDs: { - minify: true, - }, - } - ], - } - })) - .pipe(rename({ dirname: '' })) - .pipe(dest(paths.icons.outputSvg)) - .pipe(replace(/(clip-path|fill|mask|filter)="url\(#[a-z]\)"/g, (match) => { - return ':'+ match - .replace(/url\(#[a-z]\)/, (match) => `\`${match}\``) - .replace(/#[a-z]/, (id) => '#${uniqueID}__' + id.charAt(1)) - })) - .pipe(replace(/id="[a-z]"/g, (match) => { - const oldID = /"[a-z]"/.exec(match)[0].charAt(1); - return `:id="\`\${uniqueID}__${oldID}\`"`; - })) - // replace the SVG content into the vue template - .pipe(through2.obj(replaceTemplateContent)) - // move any style tags within the svg into style tags of the vue component - .pipe(through2.obj(moveStyleTagsToEOF)) - .pipe(replace('