diff --git a/package.json b/package.json index 7011f283f5..ebb9dba2e2 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,9 @@ "postinstall": "yarn get-ready", "spectrum-vars": "node ./scripts/spectrum-vars.js; npx pretty-quick --pattern 'packages/**/*.css'", "process-spectrum": "node ./scripts/process-spectrum-css.js && npx pretty-quick --pattern 'packages/**/*.css'", - "process-icons": "node ./scripts/process-icons.js; npx pretty-quick --pattern 'packages/**/*.svg.ts'", + "process-icons": "run-p icons:ui icons:workflow", + "icons:ui": "node ./scripts/process-icons.js; npx pretty-quick --pattern 'packages/**/*.svg.ts'", + "icons:workflow": "lerna run --scope @spectrum-web-components/icons-workflow build", "build": "gulp css && tsc --build packages/**/tsconfig.json", "build:watch": "tsc --build packages/**/tsconfig.json -w", "build:tests": "tsc --build test/tsconfig.json && tsc --build test/tsconfig-node.json", diff --git a/packages/bundle/README.md b/packages/bundle/README.md index d758853185..bf1c38b7f2 100644 --- a/packages/bundle/README.md +++ b/packages/bundle/README.md @@ -11,3 +11,17 @@ npm install @spectrum-web-components/bundle yarn add @spectrum-web-components/bundle ``` + +### Icons - Workflow + +While this bundle directly re-exports the majority of functionality as they would be exported from their own packages, `@spectrum-web-components/icons-workflow` is renamed to `IconsWorkflow` when leveraging the bundle. This means that you can use workflow icons in your demonstration code by importing them from `@spectrum-web-components/bundle` like the following: + +``` +import { IconsWorkflow } from '@spectrum-web-components/bundle'; + +console.log(IconsWorkflow.CircleIcon()); + +/*** +TemplateResult {strings: Array[1], values: Array[0], type: "html", processor: DefaultTemplateProcessor, constructor: Object} +***/ +``` diff --git a/packages/bundle/package.json b/packages/bundle/package.json index 2602aeecbd..46d67de353 100644 --- a/packages/bundle/package.json +++ b/packages/bundle/package.json @@ -51,6 +51,7 @@ "@spectrum-web-components/dropzone": "^0.2.4", "@spectrum-web-components/icon": "^0.4.4", "@spectrum-web-components/icons": "^0.2.3", + "@spectrum-web-components/icons-workflow": "^0.0.1", "@spectrum-web-components/iconset": "^0.1.7", "@spectrum-web-components/illustrated-message": "^0.1.8", "@spectrum-web-components/link": "^0.3.0", diff --git a/packages/bundle/src/index.ts b/packages/bundle/src/index.ts index 9df589ceb8..f9af63ee82 100644 --- a/packages/bundle/src/index.ts +++ b/packages/bundle/src/index.ts @@ -22,6 +22,8 @@ export * from '@spectrum-web-components/dropdown'; export * from '@spectrum-web-components/dropzone'; export * from '@spectrum-web-components/icon'; export * from '@spectrum-web-components/icons'; +import * as WorkflowIcons from '@spectrum-web-components/icons-workflow'; +export { WorkflowIcons }; export * from '@spectrum-web-components/illustrated-message'; export * from '@spectrum-web-components/link'; export * from '@spectrum-web-components/menu'; diff --git a/packages/bundle/tsconfig.json b/packages/bundle/tsconfig.json index c5e4e5f34a..d7b937a520 100644 --- a/packages/bundle/tsconfig.json +++ b/packages/bundle/tsconfig.json @@ -20,6 +20,7 @@ { "path": "../dropzone" }, { "path": "../icon" }, { "path": "../icons" }, + { "path": "../icons-workflow" }, { "path": "../iconset" }, { "path": "../illustrated-message" }, { "path": "../link" }, diff --git a/packages/icons-workflow/.gitignore b/packages/icons-workflow/.gitignore new file mode 100644 index 0000000000..4de8104801 --- /dev/null +++ b/packages/icons-workflow/.gitignore @@ -0,0 +1,2 @@ +src/icons +src/icons.ts \ No newline at end of file diff --git a/packages/icons-workflow/README.md b/packages/icons-workflow/README.md new file mode 100644 index 0000000000..3081a271ee --- /dev/null +++ b/packages/icons-workflow/README.md @@ -0,0 +1,106 @@ +## Description + +[Spectrum Workflow Icons](https://spectrum.adobe.com/page/icons/) delivered in a flexible template tag so that they can be leveraged across various frameworks. The default export of this package pre-applies the `html` template tag from `lit-html` for ease of use in the Spectrum Web Components library. Please remember to consult Spectrum's [Iconography Guidelines](https://spectrum.adobe.com/page/iconography/) when planning how to leverage these icons in the visual delivery of your application. For technical information on using these iconos in projects powered by various javascript frameworks, check out the "Extended use cases" sectino below. + +### Installation + +``` +npm install @spectrum-web-components/icons-workflow + +# or + +yarn add @spectrum-web-components/icons-workflow +``` + +### Usage + +With the default exports of the packages prepared with the `html` template tag from `lit-html`, the default value of an icon export will be as follows: + +```js +import { LitElement, html } from 'lit-element'; +import '@spectrum-web-components/icon'; +import { CircleIcon } from '@spectrum-web-components/icons-workflow'; + +class ElementWithIcon extends LitElement { + protected render(): TemplateResult { + return html` + + ${CircleIcon()} + + ` + } +} + +customElements.define('element-with-icon', ElementWithIcon); +``` + +Every icons can be customized via the following options: + +```js +{ + width: 24, // number outlining the width to deliver the SVG element with + height: 24, // number outlining the height to delivery the SVG element with + hidden: false, // boolean representing whether to apply the `aria-hidden` attribute + title: 'Icon title', // string of the title to deliver the icon with +} +``` + +### Extended use cases + +The default exports of this package are pre-wrapped via `setCustomTemplateLiteralTag` in the `html` template tag from `lit-html`, and work liek the following:: + +```js +import { CircleIcon } from '@spectrum-web-components/icons-workflow'; + +console.log(CircleIcon()); + +/*** +TemplateResult {strings: Array[1], values: Array[0], type: "html", processor: DefaultTemplateProcessor, constructor: Object} +***/ +``` + +When working in the context of other frameworks, it is possible to import the icons with a generic template tag as follows: + +```js +import { CircleIcon } from '@spectrum-web-components/icons-workflow/lib/icons.js'; + +console.log(CircleIcon()); + +/*** + + + +***/ +``` + +What's more, if you're already working with a specific parser in your project, you can assign it as the one to use when delivering the icons in order to be sure that the SVG content is delivered as parsed content to your final template. The means if you were working with Preact via the `htm` tag as bound to the provided hyperscript function: + +```js +import { + CircleIcon, + setCustomTemplateLiteralTag, +} from '@spectrum-web-components/icons-workflow/lib/icons.js'; +import htm from 'htm'; +import { h } from 'preact'; + +const hPreact = htm.bind(h); + +setCustomTemplateLiteralTag(hPreact); + +console.log(CircleIcon()); + +/*** +VNode {nodeName: "svg", children: Array[1], attributes: Object, key: undefined, constructor: Object} +***/ +``` + +In this way the icons exported by `@spectrum-web-components/icons-workflow` can be leveraged in projects powered by the the likes of hyperHTML, lighterhtml, lit-html, Preact, React, Vanilla JS, Vue.js, and more! diff --git a/packages/icons-workflow/bin/build.js b/packages/icons-workflow/bin/build.js new file mode 100644 index 0000000000..36fc65e72c --- /dev/null +++ b/packages/icons-workflow/bin/build.js @@ -0,0 +1,154 @@ +/* +Copyright 2020 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/ + +const fs = require('fs'); +const glob = require('glob'); +const path = require('path'); +const cheerio = require('cheerio'); +const prettier = require('prettier'); +const Case = require('case'); + +const rootDir = path.join(__dirname, '../../../'); + +const iconsPath = process.argv.slice(2)[0]; +const keepColors = process.argv.slice(2)[1]; + +const disclaimer = ` +/* +Copyright 2020 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/`; + +glob(`${rootDir}/node_modules/${iconsPath}/**.svg`, (err, icons) => { + if (!fs.existsSync(`${rootDir}packages/icons-workflow/src`)) { + fs.mkdirSync(`${rootDir}packages/icons-workflow/src`); + } + if (!fs.existsSync(`${rootDir}packages/icons-workflow/src/icons`)) { + fs.mkdirSync(`${rootDir}packages/icons-workflow/src/icons`); + } + fs.writeFileSync( + path.join(rootDir, 'packages', 'icons-workflow', 'src', 'icons.ts'), + disclaimer, + 'utf-8' + ); + + icons.forEach((i) => { + const svg = fs.readFileSync(i, 'utf-8'); + const id = path + .basename(i, '.svg') + .replace('S_', '') + .replace('_22_N', ''); + const ComponentName = id === 'github' ? 'GitHub' : Case.pascal(id); + const $ = cheerio.load(svg, { + xmlMode: true, + }); + const title = Case.capital(id); + const fileName = `${id}.ts`; + const location = path.join( + rootDir, + 'packages/icons-workflow/src/icons', + fileName + ); + + if (!Number.isNaN(Number(ComponentName[0]))) { + return; + } + + $('*').each((index, el) => { + if (el.name === 'svg') { + $(el).attr('aria-hidden', '...'); + $(el).attr('role', 'img'); + if (keepColors !== 'keep') { + $(el).attr('fill', 'currentColor'); + } + $(el).attr('aria-label', '${title}'); + $(el).removeAttr('id'); + } + if (el.name === 'defs') { + $(el).remove(); + } + Object.keys(el.attribs).forEach((x) => { + if (x === 'class') { + $(el).removeAttr(x); + } + if (keepColors !== 'keep' && x === 'stroke') { + $(el).attr(x, 'currentColor'); + } + if (keepColors !== 'keep' && x === 'fill') { + $(el).attr(x, 'currentColor'); + } + if (el.name === 'svg') { + if (x === 'width' || x === 'height') { + $(el).attr(x, '${' + x + '}'); + } + } + }); + }); + + const iconLiteral = ` + ${disclaimer} + + import {tag as html, TemplateResult} from '../custom-tag.js'; + + export {setCustomTemplateLiteralTag} from '../custom-tag.js'; + export const ${ComponentName}Icon = ({ + width = 24, + height = 24, + hidden = false, + title = '${title}', + } = {},): string | TemplateResult => { + return html\`${$('svg') + .toString() + .replace( + 'aria-hidden="..."', + "aria-hidden=\"${hidden ? 'true' : 'false'}\"" + )}\`; + } + `; + + const icon = prettier.format(iconLiteral, { + printWidth: 100, + tabWidth: 2, + useTabs: false, + semi: true, + singleQuote: true, + trailingComma: 'all', + bracketSpacing: true, + jsxBracketSameLine: false, + arrowParens: 'avoid', + parser: 'typescript', + }); + + fs.writeFileSync(location, icon, 'utf-8'); + + const exportString = `export {${ComponentName}Icon} from './icons/${id}.js';\r\n`; + fs.appendFileSync( + path.join(rootDir, 'packages', 'icons-workflow', 'src', 'icons.ts'), + exportString, + 'utf-8' + ); + }); + + const exportString = `\r\nexport { setCustomTemplateLiteralTag } from './custom-tag.js';\r\n`; + fs.appendFileSync( + path.join(rootDir, 'packages', 'icons-workflow', 'src', 'icons.ts'), + exportString, + 'utf-8' + ); +}); diff --git a/packages/icons-workflow/package.json b/packages/icons-workflow/package.json new file mode 100644 index 0000000000..eb74972687 --- /dev/null +++ b/packages/icons-workflow/package.json @@ -0,0 +1,57 @@ +{ + "name": "@spectrum-web-components/icons-workflow", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "https://github.com/adobe/spectrum-web-components.git", + "directory": "packages/icons-workflow" + }, + "bugs": { + "url": "https://github.com/adobe/spectrum-web-components/issues" + }, + "homepage": "https://adobe.github.io/spectrum-web-components/components/icons-workflow", + "keywords": [ + "spectrum css", + "web components", + "lit-element", + "lit-html" + ], + "version": "0.0.1", + "description": "", + "main": "lib/index.js", + "module": "lib/index.js", + "type": "module", + "files": [ + "custom-elements.json", + "/lib/", + "/src/" + ], + "scripts": { + "build": "node ./bin/build @adobe/spectrum-css-workflow-icons/dist/18" + }, + "author": "", + "license": "Apache-2.0", + "dependencies": { + "@spectrum-web-components/iconset": "^0.1.7", + "tslib": "^1.10.0" + }, + "devDependencies": { + "@adobe/spectrum-css-workflow-icons": "^1.0.0", + "@spectrum-web-components/icon": "^0.4.4", + "@spectrum-web-components/iconset": "^0.1.7", + "case": "^1.6.1", + "cheerio": "^1.0.0-rc.2", + "feather-icons": "^4.14.0", + "fs": "^0.0.1-security", + "glob": "^7.1.3", + "http-server": "^0.11.1", + "path": "^0.12.7", + "prettier": "^1.16.1" + }, + "peerDependencies": { + "lit-element": "^2.1.0", + "lit-html": "^1.0.0" + } +} diff --git a/packages/icons-workflow/src/custom-tag.ts b/packages/icons-workflow/src/custom-tag.ts new file mode 100644 index 0000000000..6a1a517f1b --- /dev/null +++ b/packages/icons-workflow/src/custom-tag.ts @@ -0,0 +1,41 @@ +/* +Copyright 2020 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/ + +import { html, TemplateResult } from 'lit-html'; +export { TemplateResult } from 'lit-html'; + +export type GenericTemplateLiteralTagType = ( + strings: TemplateStringsArray, + ...values: unknown[] +) => string; +type TemplateLiteralTagType = GenericTemplateLiteralTagType | typeof html; +let customTemplateLiteralTag: TemplateLiteralTagType; + +export const tag = function ( + strings: TemplateStringsArray, + ...values: unknown[] +): string | TemplateResult { + if (customTemplateLiteralTag) { + return customTemplateLiteralTag(strings, ...values); + } + return values.reduce( + (acc: string, v, idx) => + (acc as string) + (v as string) + strings[idx + 1], + strings[0] + ); +}; + +export const setCustomTemplateLiteralTag = ( + tag: TemplateLiteralTagType +): void => { + customTemplateLiteralTag = tag; +}; diff --git a/packages/icons-workflow/src/index.ts b/packages/icons-workflow/src/index.ts new file mode 100644 index 0000000000..8b8c8b47ab --- /dev/null +++ b/packages/icons-workflow/src/index.ts @@ -0,0 +1,19 @@ +/* +Copyright 2020 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/ + +import { html } from 'lit-html'; +import { setCustomTemplateLiteralTag } from './custom-tag.js'; + +setCustomTemplateLiteralTag(html); + +export { setCustomTemplateLiteralTag }; +export * from './icons.js'; diff --git a/packages/icons-workflow/stories/icons-workflow.stories.ts b/packages/icons-workflow/stories/icons-workflow.stories.ts new file mode 100644 index 0000000000..e37f34ad89 --- /dev/null +++ b/packages/icons-workflow/stories/icons-workflow.stories.ts @@ -0,0 +1,68 @@ +/* +Copyright 2020 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/ + +import '../'; +import '../../icon'; +import '../../iconset/lib/icons-demo'; +import { html, color, select } from '@open-wc/demoing-storybook'; +import { TemplateResult } from 'lit-html'; + +import '../'; +import * as icons from '../'; + +export default { + title: 'Icons', +}; + +export const Workflow = (): TemplateResult => { + const iconTemplates: { + template: typeof html; + name: string; + }[] = []; + for (const icon in icons) { + if (icon === 'setCustomTemplateLiteralTag') continue; + iconTemplates.push({ + // eslint-disable-next-line @typescript-eslint/no-explicit-any + template: (icons as any)[icon], + name: icon, + }); + } + const size = select( + 'Icon Size', + ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'], + 'm', + 'Element' + ); + return html` + + + ${iconTemplates.map( + (icon) => html` +
+ ${icon.template()} + ${icon.name} +
+ ` + )} +
+ `; +}; + +Workflow.story = { + name: 'Workflow Icons', +}; diff --git a/packages/icons-workflow/tsconfig.json b/packages/icons-workflow/tsconfig.json new file mode 100644 index 0000000000..701096049c --- /dev/null +++ b/packages/icons-workflow/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "composite": true, + "outDir": "./lib", + "rootDir": "./src" + }, + "include": ["src/**/*.ts", "../../global.d.ts"] +} diff --git a/packages/icons/stories/icons.stories.ts b/packages/icons/stories/icons.stories.ts index 5f24b0c098..305dddbeb0 100644 --- a/packages/icons/stories/icons.stories.ts +++ b/packages/icons/stories/icons.stories.ts @@ -26,7 +26,7 @@ export const listMedium = (): TemplateResult => html` `; listMedium.story = { - name: 'List - Medium', + name: 'UI Icons - Medium', }; export const listLarge = (): TemplateResult => html` @@ -36,5 +36,5 @@ export const listLarge = (): TemplateResult => html` `; listLarge.story = { - name: 'List - Large', + name: 'UI Icons - Large', }; diff --git a/yarn.lock b/yarn.lock index 4d993ec2a2..4881cce936 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,7 +10,19 @@ mime "^2.4.0" resolve "^1.9.0" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.5.5", "@babel/code-frame@^7.8.3": +"@adobe/spectrum-css-workflow-icons@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@adobe/spectrum-css-workflow-icons/-/spectrum-css-workflow-icons-1.0.0.tgz#913f3a251ef5ea3154929a7a23d4fbd6de1553da" + integrity sha512-aJbk7XhsUNefoufMpneq2aIT3VuD++KUY0C08VKbt5p/WOW0aDX8WYavUxW4oiK5cAgsvapcaPaS+eWpBMwXLg== + +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.5.5": + version "7.5.5" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49531219699b988f669a8f9d" + integrity sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw== + dependencies: + "@babel/highlight" "^7.0.0" + +"@babel/code-frame@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e" integrity sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g== @@ -289,7 +301,7 @@ "@babel/traverse" "^7.9.0" "@babel/types" "^7.9.0" -"@babel/highlight@^7.8.3": +"@babel/highlight@^7.0.0", "@babel/highlight@^7.8.3": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.9.0.tgz#4e9b45ccb82b79607271b2979ad82c7b68163079" integrity sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ== @@ -6247,6 +6259,11 @@ capture-stack-trace@^1.0.0: resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz#a6c0bbe1f38f3aa0b92238ecb6ff42c344d4135d" integrity sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw== +case@^1.6.1: + version "1.6.3" + resolved "https://registry.yarnpkg.com/case/-/case-1.6.3.tgz#0a4386e3e9825351ca2e6216c60467ff5f1ea1c9" + integrity sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ== + caseless@~0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" @@ -6393,6 +6410,18 @@ check-types@^8.0.3: resolved "https://registry.yarnpkg.com/check-types/-/check-types-8.0.3.tgz#3356cca19c889544f2d7a95ed49ce508a0ecf552" integrity sha512-YpeKZngUmG65rLudJ4taU7VLkOCTMhNl/u4ctNC56LQS/zJTyNH0Lrtwm1tfTsbLlwvlfsA2d1c8vCf/Kh2KwQ== +cheerio@^1.0.0-rc.2: + version "1.0.0-rc.3" + resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-1.0.0-rc.3.tgz#094636d425b2e9c0f4eb91a46c05630c9a1a8bf6" + integrity sha512-0td5ijfUPuubwLUu0OBoe98gZj8C/AA+RW3v67GPlGOrvxWjZmBXiBCRU+I8VEiNyJzjth40POfHiz2RB3gImA== + dependencies: + css-select "~1.2.0" + dom-serializer "~0.1.1" + entities "~1.1.1" + htmlparser2 "^3.9.1" + lodash "^4.15.0" + parse5 "^3.0.1" + chokidar@^2.0.0, chokidar@^2.0.4, chokidar@^2.1.8: version "2.1.8" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917" @@ -6479,6 +6508,11 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" +classnames@^2.2.5: + version "2.2.6" + resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce" + integrity sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q== + clean-css@4.2.x, clean-css@^4.1.11, clean-css@^4.2.1: version "4.2.3" resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.3.tgz#507b5de7d97b48ee53d84adb0160ff6216380f78" @@ -6764,6 +6798,11 @@ colornames@^1.1.1: resolved "https://registry.yarnpkg.com/colornames/-/colornames-1.1.1.tgz#f8889030685c7c4ff9e2a559f5077eb76a816f96" integrity sha1-+IiQMGhcfE/54qVZ9Qd+t2qBb5Y= +colors@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" + integrity sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs= + colors@^1.1.0, colors@^1.1.2, colors@^1.2.1, colors@^1.3.3: version "1.4.0" resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" @@ -7261,7 +7300,7 @@ core-js@^2.4.0, core-js@^2.5.0: resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c" integrity sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg== -core-js@^3.0.1, core-js@^3.3.2: +core-js@^3.0.1, core-js@^3.1.3, core-js@^3.3.2: version "3.6.4" resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.6.4.tgz#440a83536b458114b9cb2ac1580ba377dc470647" integrity sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw== @@ -7279,7 +7318,7 @@ cors@^2.8.4: object-assign "^4" vary "^1" -corser@^2.0.1: +corser@^2.0.1, corser@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/corser/-/corser-2.0.1.tgz#8eda252ecaab5840dcd975ceb90d9370c819ff87" integrity sha1-jtolLsqrWEDc2XXOuQ2TcMgZ/4c= @@ -7488,6 +7527,16 @@ css-select@^2.0.0: domutils "^1.7.0" nth-check "^1.0.2" +css-select@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.2.0.tgz#2b3a110539c5355f1cd8d314623e870b121ec858" + integrity sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg= + dependencies: + boolbase "~1.0.0" + css-what "2.1" + domutils "1.5.1" + nth-check "~1.0.1" + css-selector-tokenizer@^0.7.0: version "0.7.2" resolved "https://registry.yarnpkg.com/css-selector-tokenizer/-/css-selector-tokenizer-0.7.2.tgz#11e5e27c9a48d90284f22d45061c303d7a25ad87" @@ -7529,6 +7578,11 @@ css-unit-converter@^1.1.1: resolved "https://registry.yarnpkg.com/css-unit-converter/-/css-unit-converter-1.1.1.tgz#d9b9281adcfd8ced935bdbaba83786897f64e996" integrity sha1-2bkoGtz9jO2TW9urqDeGiX9k6ZY= +css-what@2.1: + version "2.1.3" + resolved "https://registry.yarnpkg.com/css-what/-/css-what-2.1.3.tgz#a6d7604573365fe74686c3f311c56513d88285f2" + integrity sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg== + css-what@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/css-what/-/css-what-3.2.1.tgz#f4a8f12421064621b456755e34a03a2c22df5da1" @@ -8147,6 +8201,14 @@ dom-serializer@0: domelementtype "^2.0.1" entities "^2.0.0" +dom-serializer@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.1.1.tgz#1ec4059e284babed36eec2941d4a970a189ce7c0" + integrity sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA== + dependencies: + domelementtype "^1.3.0" + entities "^1.1.1" + dom-urls@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/dom-urls/-/dom-urls-1.1.0.tgz#001ddf81628cd1e706125c7176f53ccec55d918e" @@ -8184,7 +8246,7 @@ domain-browser@^1.1.1: resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" integrity sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA== -domelementtype@1, domelementtype@^1.3.1: +domelementtype@1, domelementtype@^1.3.0, domelementtype@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== @@ -8201,6 +8263,14 @@ domhandler@^2.3.0: dependencies: domelementtype "1" +domutils@1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf" + integrity sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8= + dependencies: + dom-serializer "0" + domelementtype "1" + domutils@^1.5.1, domutils@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a" @@ -8306,7 +8376,7 @@ ecdsa-sig-formatter@1.0.11: dependencies: safe-buffer "^5.0.1" -ecstatic@^3.3.2: +ecstatic@^3.0.0, ecstatic@^3.3.2: version "3.3.2" resolved "https://registry.yarnpkg.com/ecstatic/-/ecstatic-3.3.2.tgz#6d1dd49814d00594682c652adb66076a69d46c48" integrity sha512-fLf9l1hnwrHI2xn9mEDT7KIi22UDqA2jaCwyCbSUJh9a1V+LEUSL/JO/6TIz/QyuBURWUHrFL5Kg2TtO1bkkog== @@ -8510,7 +8580,7 @@ ent@~2.2.0: resolved "https://registry.yarnpkg.com/ent/-/ent-2.2.0.tgz#e964219325a21d05f44466a2f686ed6ce5f5dd1d" integrity sha1-6WQhkyWiHQX0RGai9obtbOX13R0= -entities@^1.1.1: +entities@^1.1.1, entities@~1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56" integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w== @@ -9316,6 +9386,14 @@ fd-slicer@~1.1.0: dependencies: pend "~1.2.0" +feather-icons@^4.14.0: + version "4.26.0" + resolved "https://registry.yarnpkg.com/feather-icons/-/feather-icons-4.26.0.tgz#ce856ecdaaffa0c0b3e63148581a3a05c9fcbaf4" + integrity sha512-yojf2HBoPipo3H3To83TxYf+8DNtKVwk8fk31HdcfICKkB2I2wIigo637v9WzcFeog6E5FATrQvS7YFdSVs9ew== + dependencies: + classnames "^2.2.5" + core-js "^3.1.3" + fecha@^2.3.3: version "2.3.3" resolved "https://registry.yarnpkg.com/fecha/-/fecha-2.3.3.tgz#948e74157df1a32fd1b12c3a3c3cdcb6ec9d96cd" @@ -9791,6 +9869,11 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= +fs@^0.0.1-security: + version "0.0.1-security" + resolved "https://registry.yarnpkg.com/fs/-/fs-0.0.1-security.tgz#8a7bd37186b6dddf3813f23858b57ecaaf5e41d4" + integrity sha1-invTcYa23d84E/I4WLV+yq9eQdQ= + fsevents@^1.2.7: version "1.2.12" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.12.tgz#db7e0d8ec3b0b45724fd4d83d43554a8f1f0de5c" @@ -10940,7 +11023,7 @@ html-void-elements@^1.0.0: resolved "https://registry.yarnpkg.com/html-void-elements/-/html-void-elements-1.0.5.tgz#ce9159494e86d95e45795b166c2021c2cfca4483" integrity sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w== -htmlparser2@^3.10.0, htmlparser2@^3.9.2: +htmlparser2@^3.10.0, htmlparser2@^3.9.1, htmlparser2@^3.9.2: version "3.10.1" resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.10.1.tgz#bd679dc3f59897b6a34bb10749c855bb53a9392f" integrity sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ== @@ -11048,7 +11131,7 @@ http-proxy@1.15.2: eventemitter3 "1.x.x" requires-port "1.x.x" -http-proxy@^1.13.0, http-proxy@^1.16.2, http-proxy@^1.17.0: +http-proxy@^1.13.0, http-proxy@^1.16.2, http-proxy@^1.17.0, http-proxy@^1.8.1: version "1.18.0" resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.0.tgz#dbe55f63e75a347db7f3d99974f2692a314a6a3a" integrity sha512-84I2iJM/n1d4Hdgc6y2+qY5mDaz2PUVjlg9znE9byl+q0uC3DeByqBGReQu5tpLK0TAqTIXScRUV+dg7+bUPpQ== @@ -11057,6 +11140,20 @@ http-proxy@^1.13.0, http-proxy@^1.16.2, http-proxy@^1.17.0: follow-redirects "^1.0.0" requires-port "^1.0.0" +http-server@^0.11.1: + version "0.11.1" + resolved "https://registry.yarnpkg.com/http-server/-/http-server-0.11.1.tgz#2302a56a6ffef7f9abea0147d838a5e9b6b6a79b" + integrity sha512-6JeGDGoujJLmhjiRGlt8yK8Z9Kl0vnl/dQoQZlc4oeqaUoAKQg94NILLfrY3oWzSyFaQCVNTcKE5PZ3cH8VP9w== + dependencies: + colors "1.0.3" + corser "~2.0.0" + ecstatic "^3.0.0" + http-proxy "^1.8.1" + opener "~1.4.0" + optimist "0.6.x" + portfinder "^1.0.13" + union "~0.4.3" + http-server@^0.12.0: version "0.12.1" resolved "https://registry.yarnpkg.com/http-server/-/http-server-0.12.1.tgz#629ae9a8c786587ee21b0ff087b670f69b809d8c" @@ -13160,7 +13257,7 @@ lodash.uniq@4.5.0, lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= -lodash@4.17.15, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.2.1: +lodash@4.17.15, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.2.1: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== @@ -14525,7 +14622,7 @@ npmlog@^4.1.2: gauge "~2.7.3" set-blocking "~2.0.0" -nth-check@^1.0.2: +nth-check@^1.0.2, nth-check@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c" integrity sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg== @@ -14732,6 +14829,11 @@ opener@^1.5.1: resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.1.tgz#6d2f0e77f1a0af0032aca716c2c1fbb8e7e8abed" integrity sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA== +opener@~1.4.0: + version "1.4.3" + resolved "https://registry.yarnpkg.com/opener/-/opener-1.4.3.tgz#5c6da2c5d7e5831e8ffa3964950f8d6674ac90b8" + integrity sha1-XG2ixdflgx6P+jlklQ+NZnSskLg= + openurl@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/openurl/-/openurl-1.1.1.tgz#3875b4b0ef7a52c156f0db41d4609dbb0f94b387" @@ -14758,7 +14860,7 @@ opn@^5.4.0, opn@^5.5.0: dependencies: is-wsl "^1.1.0" -optimist@^0.6.1, optimist@~0.6.1: +optimist@0.6.x, optimist@^0.6.1, optimist@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" integrity sha1-2j6nRob6IaGaERwybpDrFaAZZoY= @@ -15149,7 +15251,7 @@ parse5@^2.2.1, parse5@^2.2.2: resolved "https://registry.yarnpkg.com/parse5/-/parse5-2.2.3.tgz#0c4fc41c1000c5e6b93d48b03f8083837834e9f6" integrity sha1-DE/EHBAAxea5PUiwP4CDg3g06fY= -parse5@^3.0.2: +parse5@^3.0.1, parse5@^3.0.2: version "3.0.3" resolved "https://registry.yarnpkg.com/parse5/-/parse5-3.0.3.tgz#042f792ffdd36851551cf4e9e066b3874ab45b5c" integrity sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA== @@ -15307,6 +15409,14 @@ path-type@^4.0.0: resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== +path@^0.12.7: + version "0.12.7" + resolved "https://registry.yarnpkg.com/path/-/path-0.12.7.tgz#d4dc2a506c4ce2197eb481ebfcd5b36c0140b10f" + integrity sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8= + dependencies: + process "^0.11.1" + util "^0.10.3" + pathval@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz#b942e6d4bde653005ef6b71361def8727d0645e0" @@ -15704,7 +15814,7 @@ popper.js@^1.14.4, popper.js@^1.14.7: resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.16.1.tgz#2a223cb3dc7b6213d740e40372be40de43e65b1b" integrity sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ== -portfinder@^1.0.20, portfinder@^1.0.21, portfinder@^1.0.25: +portfinder@^1.0.13, portfinder@^1.0.20, portfinder@^1.0.21, portfinder@^1.0.25: version "1.0.25" resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.25.tgz#254fd337ffba869f4b9d37edc298059cb4d35eca" integrity sha512-6ElJnHBbxVA1XSLgBp7G1FiCkQdlqGzuF7DswL5tcea+E8UpuvPU7beVAjjRwCioTS9ZluNbu+ZyRvgTsmqEBg== @@ -16594,7 +16704,7 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^1.16.4: +prettier@^1.16.1, prettier@^1.16.4: version "1.19.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== @@ -16660,7 +16770,7 @@ process-nextick-args@^2.0.0, process-nextick-args@~2.0.0: resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== -process@^0.11.10: +process@^0.11.1, process@^0.11.10: version "0.11.10" resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= @@ -16956,6 +17066,11 @@ qs@^6.4.0, qs@^6.5.2, qs@^6.6.0: resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.3.tgz#bfadcd296c2d549f1dffa560619132c977f5008e" integrity sha512-EbZYNarm6138UKKq46tdx08Yo/q9ZhFoAXAI1meAFd2GtbRDhbZY2WQSICskT0c5q99aFzLG1D4nvTk9tqfXIw== +qs@~2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/qs/-/qs-2.3.3.tgz#e9e85adbe75da0bbe4c8e0476a086290f863b404" + integrity sha1-6eha2+ddoLvkyOBHaghikPhjtAQ= + qs@~6.5.2: version "6.5.2" resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" @@ -20507,6 +20622,13 @@ union-value@^1.0.0: is-extendable "^0.1.1" set-value "^2.0.1" +union@~0.4.3: + version "0.4.6" + resolved "https://registry.yarnpkg.com/union/-/union-0.4.6.tgz#198fbdaeba254e788b0efcb630bc11f24a2959e0" + integrity sha1-GY+9rrolTniLDvy2MLwR8kopWeA= + dependencies: + qs "~2.3.3" + union@~0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/union/-/union-0.5.0.tgz#b2c11be84f60538537b846edb9ba266ba0090075" @@ -20846,6 +20968,13 @@ util@0.10.3: dependencies: inherits "2.0.1" +util@^0.10.3: + version "0.10.4" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" + integrity sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A== + dependencies: + inherits "2.0.3" + util@^0.11.0: version "0.11.1" resolved "https://registry.yarnpkg.com/util/-/util-0.11.1.tgz#3236733720ec64bb27f6e26f421aaa2e1b588d61"