@pine-ds/icons 8.18.0 → 8.19.0
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.
- package/components/pds-icon.js +2 -2
- package/components/pds-icon.js.map +1 -1
- package/dist/cheatsheet.html +6 -6
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/pds-icon.cjs.entry.js +1 -1
- package/dist/cjs/{utils-ad651990.js → utils-2688221f.js} +3 -3
- package/dist/cjs/{utils-ad651990.js.map → utils-2688221f.js.map} +1 -1
- package/dist/collection/components/pds-icon/svg/logo-facebook-round.svg +1 -1
- package/dist/collection/components/pds-icon/svg/logo-facebook.svg +1 -1
- package/dist/collection/components/pds-icon/svg/logo-tiktok.svg +1 -1
- package/dist/collection/components/pds-icon/utils.js +2 -2
- package/dist/collection/components/pds-icon/utils.js.map +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/pds-icon.entry.js +1 -1
- package/dist/esm/{utils-a600f0ec.js → utils-82853a12.js} +3 -3
- package/dist/esm/{utils-a600f0ec.js.map → utils-82853a12.js.map} +1 -1
- package/dist/pds-icons/index.esm.js +1 -1
- package/dist/pds-icons/{p-1a3cdcc3.entry.js → p-3f0a1f7c.entry.js} +2 -2
- package/dist/pds-icons/{p-5baaa291.js → p-4719974e.js} +1 -1
- package/dist/pds-icons/{p-5baaa291.js.map → p-4719974e.js.map} +1 -1
- package/dist/pds-icons/pds-icons.esm.js +1 -1
- package/dist/pds-icons/svg/logo-facebook-round.svg +1 -1
- package/dist/pds-icons/svg/logo-facebook.svg +1 -1
- package/dist/pds-icons/svg/logo-tiktok.svg +1 -1
- package/dist/pds-icons.json +1 -1
- package/dist/pds-icons.symbols.svg +4 -4
- package/dist/svg/logo-facebook-round.svg +1 -1
- package/dist/svg/logo-facebook.svg +1 -1
- package/dist/svg/logo-tiktok.svg +1 -1
- package/dist/types/components/pds-icon/utils.d.ts +2 -2
- package/icons/index.d.ts +1 -1
- package/icons/index.js +4 -4
- package/icons/index.mjs +4 -4
- package/icons/package.json +1 -1
- package/package.json +1 -1
- /package/dist/pds-icons/{p-1a3cdcc3.entry.js.map → p-3f0a1f7c.entry.js.map} +0 -0
package/components/pds-icon.js
CHANGED
|
@@ -107,8 +107,8 @@ const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescri
|
|
|
107
107
|
const toLower = (val) => val.toLowerCase();
|
|
108
108
|
/**
|
|
109
109
|
* Elements inside of web components sometimes need to inherit global attributes
|
|
110
|
-
* set on the host. For example, the inner input in `
|
|
111
|
-
* the `title` attribute that developers set directly on `
|
|
110
|
+
* set on the host. For example, the inner input in `pds-input` should inherit
|
|
111
|
+
* the `title` attribute that developers set directly on `pds-input`. This
|
|
112
112
|
* helper function should be called in componentWillLoad and assigned to a variable
|
|
113
113
|
* that is later used in the render function.
|
|
114
114
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pds-icon.js","mappings":";;AAEA,IAAI,uBAAuB,GAAG,KAAK,CAAC;AAQpC;;;;;;;;;AASO,MAAM,YAAY,GAAG,CAAC,IAAY;;IACvC,MAAM,iBAAiB,GAAG,MAAA,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAkB,4BAA4B,CAAC,0CAAE,OAAO,CAAC,aAAa,CAAC;;IAG5H,MAAM,eAAe,GAAG,MAAM,CAAC,mBAAmB,CAAC;;IAGnD,MAAM,YAAY,GAAG,6DAA6D,CAAC;IAEnF,MAAM,aAAa,GAAI,KAAK,CAAC,SAAS,GAAG,iBAAiB,GAAG,iBAAiB,IAAI,eAAe,IAAI,YAAY,IAAI,GAAG,CAAA;;IAGxH,IAAK,aAAa,CAAC,UAAU,CAAC,+BAA+B,CAAC,IAAI,CAAC,uBAAuB,EAAG;QAC3F,uBAAuB,GAAG,IAAI,CAAC;QAC/B,OAAO,CAAC,IAAI,CAAC;;KAEZ,CAAC,CAAA;KACH;IAED,IAAI,SAAS,GAAG,IAAI,CAAC;IAErB,IAAK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EAAE,CAAC;iBACN;aACF,EACD,EAAE,UAAU,EAAE,CACf,CAAC,CAAC;YAEH,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SAChB;aAAM;;;YAGL,EAAE,EAAE,CAAC;SACN;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;AASH,MAAM,kBAAkB,GAAG,CAAC,KAAyB;IACnD,OAAO,KAAK;UACT;YACE,WAAW,EAAE,IAAI;YACjB,CAAC,aAAa,KAAK,EAAE,GAAG,IAAI;SAC7B;UACD,IAAI,CAAC;AACT,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;","names":["PdsIcon"],"sources":["src/components/pds-icon/assetPath.ts","src/components/pds-icon/utils.ts","src/components/pds-icon/validate.ts","src/components/pds-icon/request.ts","src/components/pds-icon/pds-icon.scss?tag=pds-icon&encapsulation=shadow","src/components/pds-icon/pds-icon.tsx"],"sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine assets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and set the path accordingly.\\n\\nFor more information, read the documentation: \\nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n","import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n","import { isStr } from './utils';\n\nexport const validateContent = (svgContent: string) => {\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n\n // setup this way to ensure it works on our buddy IE\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {\n div.removeChild(div.childNodes[i]);\n }\n }\n\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {\n const svgClass = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', (svgClass + ' s-pds-icon').trim());\n\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm as HTMLElement)) {\n return div.innerHTML;\n }\n }\n return '';\n};\n\nexport const isValid = (elm: HTMLElement) => {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\n\n for (let i = 0; i < elm.attributes.length; i++) {\n const name = elm.attributes[i].name;\n if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {\n return false;\n }\n }\n\n for (let i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i] as HTMLElement)) {\n return false;\n }\n }\n }\n return true;\n};\n\nexport const isSvgDataUrl = (url: string) => url.startsWith('data:image/svg+xml');\nexport const isEncodedDataUrl = (url: string) => url.indexOf(';utf8,') !== -1;\n","import { isEncodedDataUrl, isSvgDataUrl, validateContent } from './validate';\n\nexport const pdsIconContent = new Map<string, string>();\nconst requests = new Map<string, Promise<any>>(); // eslint-disable-line @typescript-eslint/no-explicit-any\n\nlet parser: DOMParser;\n\nexport const getSvgContent = (url: string, sanitize = false) => {\n let req = requests.get(url);\n\n if(!req) {\n if (typeof fetch != 'undefined' && typeof document !== 'undefined') {\n if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {\n if (!parser) {\n parser = new DOMParser();\n }\n\n const doc = parser.parseFromString(url, 'text/html');\n const svg = doc.querySelector('svg');\n\n if (svg) {\n pdsIconContent.set(url, svg.outerHTML);\n }\n\n return Promise.resolve();\n } else {\n // we don't have a request\n req = fetch(url).then((rsp) => {\n if (rsp.ok) {\n return rsp.text().then((svgContent) => {\n if (svgContent && sanitize !== false) {\n svgContent = validateContent(svgContent);\n }\n pdsIconContent.set(url, svgContent || '');\n });\n }\n pdsIconContent.set(url, '');\n });\n\n requests.set(url, req);\n }\n } else {\n pdsIconContent.set(url, '');\n return Promise.resolve();\n }\n }\n\n return req;\n}\n",":host {\n --dimension-icon-height: 16px;\n --dimension-icon-width: 16px;\n --color-icon-fill: currentColor;\n\n contain: strict;\n display: inline-block;\n fill: var(--color-icon-fill);\n height: var(--dimension-icon-height);\n width: var(--dimension-icon-width);\n\n .pdsicon {\n fill: var(--color-icon-fill);\n }\n}\n\n.pds-icon-fill-none {\n fill: none;\n}\n\n.icon-inner,\n.pds-icon,\nsvg {\n display: block;\n height: 100%;\n width: 100%;\n}\n","import { Build, Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\nimport { getSvgContent, pdsIconContent } from './request';\nimport { getName, getUrl, inheritAttributes } from './utils';\n\n@Component({\n tag: 'pds-icon',\n assetsDirs: ['svg'],\n styleUrl: 'pds-icon.scss',\n shadow: true,\n})\nexport class PdsIcon {\n private io?: IntersectionObserver;\n private inheritedAttributes: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n @Element() el!: HTMLPdsIconElement;\n\n @State() private ariaLabel?: string;\n @State() private isVisible = false;\n @State() private svgContent?: string;\n\n /**\n *\n * The color of the icon\n *\n */\n @Prop() color?: string;\n\n /**\n * This a combination of both `name` and `src`. If a `src` url is detected\n * it will set the `src` property. Otherwise it assumes it's a built-in named\n * SVG and set the `name` property.\n */\n @Prop() icon?: any;\n\n /**\n * The name of the icon to use from\n * the built-in set.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * The size of the icon. This can be\n * 'small', 'regular', 'medium', large, or a\n * custom value (40px, 1rem, etc)\n *\n */\n @Prop({ reflect: true }) size?:\n | 'small' // 12px\n | 'regular' // 16px\n | 'medium' // 20px\n | 'large' // 24px\n | 'auto'\n | string = 'regular'\n\n /**\n *\n * Specifies the exact `src` of an SVG file to use.\n */\n @Prop() src?: string;\n\n private iconSize() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sizes: { [key: string]: any } = {\n small: '12px',\n regular: '16px',\n medium: '20px',\n large: '24px',\n }\n\n if (sizes[this.size]) {\n return sizes[this.size];\n } else {\n return this.size;\n }\n }\n\n componentDidLoad() {\n this.setCSSVariables();\n }\n\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\n this.setCSSVariables();\n }\n\n setCSSVariables() {\n this.el.style.setProperty(`--dimension-icon-height`, this.iconSize());\n this.el.style.setProperty(`--dimension-icon-width`, this.iconSize());\n this.el.style.setProperty(`--color-icon-fill`, typeof this.color !== 'undefined' ? this.color : 'currentColor');\n }\n\n connectedCallback() {\n this.waitUntilVisible(this.el, '50px', () => {\n this.isVisible = true;\n this.loadIcon();\n })\n }\n\n disconnectedCallback() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n\n @Watch('size')\n @Watch('color')\n updateStyles() {\n this.setCSSVariables();\n }\n\n @Watch('name')\n @Watch('src')\n @Watch('icon')\n loadIcon() {\n if (Build.isBrowser && this.isVisible) {\n const url = getUrl(this);\n if (url) {\n if (pdsIconContent.has(url)) {\n this.svgContent = pdsIconContent.get(url);\n } else {\n getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));\n }\n }\n }\n\n const label = getName(this.name, this.icon);\n\n if (label) {\n this.ariaLabel = label.replace(/\\-/g, ' ');\n }\n }\n\n render() {\n const { ariaLabel, inheritedAttributes } = this;\n\n return (\n\n <Host\n aria-label={ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null }\n alt=\"\"\n role=\"img\"\n class={{\n ...createColorClasses(this.color),\n }}\n {...inheritedAttributes}\n >\n {Build.isBrowser && this.svgContent ? (\n <div class=\"icon-inner\" innerHTML={this.svgContent}></div>\n ) : (\n <div class=\"icon-inner\"></div>\n )}\n </Host>\n )\n }\n\n /*****\n * Private Methods\n ****/\n\n private waitUntilVisible(el: HTMLElement, rootMargin: string, cb: () => void) {\n if (Build.isBrowser && typeof window !== 'undefined' && (window).IntersectionObserver) {\n const io = (this.io = new (window).IntersectionObserver(\n (data: IntersectionObserverEntry[]) => {\n if (data[0].isIntersecting) {\n io.disconnect();\n this.io = undefined;\n cb();\n }\n },\n { rootMargin },\n ));\n\n io.observe(el);\n } else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n }\n\n private hasAriaHidden = () => {\n const { el } = this;\n\n return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';\n }\n}\n\nconst createColorClasses = (color: string | undefined) => {\n return color\n ? {\n 'pds-color': true,\n [`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,EAC/E,GAAG,EAAC,EAAE,EACN,IAAI,EAAC,KAAK,EACV,KAAK,oBACA,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,KAE/B,mBAAmB,GAEtB,KAAK,CAAC,SAAS,IAAI,IAAI,CAAC,UAAU,IACjC,WAAK,KAAK,EAAC,YAAY,EAAC,SAAS,EAAE,IAAI,CAAC,UAAU,GAAQ,KAE1D,WAAK,KAAK,EAAC,YAAY,GAAO,CAC/B,CACI,EACR;KACF;;;;IAMO,gBAAgB,CAAC,EAAe,EAAE,UAAkB,EAAE,EAAc;QAC1E,IAAI,KAAK,CAAC,SAAS,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,MAAM,EAAE,oBAAoB,EAAE;YACrF,MAAM,EAAE,IAAI,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,oBAAoB,CACrD,CAAC,IAAiC;gBAChC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE;oBAC1B,EAAE,CAAC,UAAU,EAAE,CAAC;oBAChB,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC;oBACpB,EAAE,EAAE,CAAC;iBACN;aACF,EACD,EAAE,UAAU,EAAE,CACf,CAAC,CAAC;YAEH,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SAChB;aAAM;;;YAGL,EAAE,EAAE,CAAC;SACN;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;AASH,MAAM,kBAAkB,GAAG,CAAC,KAAyB;IACnD,OAAO,KAAK;UACT;YACE,WAAW,EAAE,IAAI;YACjB,CAAC,aAAa,KAAK,EAAE,GAAG,IAAI;SAC7B;UACD,IAAI,CAAC;AACT,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;","names":["PdsIcon"],"sources":["src/components/pds-icon/assetPath.ts","src/components/pds-icon/utils.ts","src/components/pds-icon/validate.ts","src/components/pds-icon/request.ts","src/components/pds-icon/pds-icon.scss?tag=pds-icon&encapsulation=shadow","src/components/pds-icon/pds-icon.tsx"],"sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine assets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and set the path accordingly.\\n\\nFor more information, read the documentation: \\nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n","import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `pds-input` should inherit\n * the `title` attribute that developers set directly on `pds-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n","import { isStr } from './utils';\n\nexport const validateContent = (svgContent: string) => {\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n\n // setup this way to ensure it works on our buddy IE\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {\n div.removeChild(div.childNodes[i]);\n }\n }\n\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {\n const svgClass = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', (svgClass + ' s-pds-icon').trim());\n\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm as HTMLElement)) {\n return div.innerHTML;\n }\n }\n return '';\n};\n\nexport const isValid = (elm: HTMLElement) => {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\n\n for (let i = 0; i < elm.attributes.length; i++) {\n const name = elm.attributes[i].name;\n if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {\n return false;\n }\n }\n\n for (let i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i] as HTMLElement)) {\n return false;\n }\n }\n }\n return true;\n};\n\nexport const isSvgDataUrl = (url: string) => url.startsWith('data:image/svg+xml');\nexport const isEncodedDataUrl = (url: string) => url.indexOf(';utf8,') !== -1;\n","import { isEncodedDataUrl, isSvgDataUrl, validateContent } from './validate';\n\nexport const pdsIconContent = new Map<string, string>();\nconst requests = new Map<string, Promise<any>>(); // eslint-disable-line @typescript-eslint/no-explicit-any\n\nlet parser: DOMParser;\n\nexport const getSvgContent = (url: string, sanitize = false) => {\n let req = requests.get(url);\n\n if(!req) {\n if (typeof fetch != 'undefined' && typeof document !== 'undefined') {\n if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {\n if (!parser) {\n parser = new DOMParser();\n }\n\n const doc = parser.parseFromString(url, 'text/html');\n const svg = doc.querySelector('svg');\n\n if (svg) {\n pdsIconContent.set(url, svg.outerHTML);\n }\n\n return Promise.resolve();\n } else {\n // we don't have a request\n req = fetch(url).then((rsp) => {\n if (rsp.ok) {\n return rsp.text().then((svgContent) => {\n if (svgContent && sanitize !== false) {\n svgContent = validateContent(svgContent);\n }\n pdsIconContent.set(url, svgContent || '');\n });\n }\n pdsIconContent.set(url, '');\n });\n\n requests.set(url, req);\n }\n } else {\n pdsIconContent.set(url, '');\n return Promise.resolve();\n }\n }\n\n return req;\n}\n",":host {\n --dimension-icon-height: 16px;\n --dimension-icon-width: 16px;\n --color-icon-fill: currentColor;\n\n contain: strict;\n display: inline-block;\n fill: var(--color-icon-fill);\n height: var(--dimension-icon-height);\n width: var(--dimension-icon-width);\n\n .pdsicon {\n fill: var(--color-icon-fill);\n }\n}\n\n.pds-icon-fill-none {\n fill: none;\n}\n\n.icon-inner,\n.pds-icon,\nsvg {\n display: block;\n height: 100%;\n width: 100%;\n}\n","import { Build, Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\nimport { getSvgContent, pdsIconContent } from './request';\nimport { getName, getUrl, inheritAttributes } from './utils';\n\n@Component({\n tag: 'pds-icon',\n assetsDirs: ['svg'],\n styleUrl: 'pds-icon.scss',\n shadow: true,\n})\nexport class PdsIcon {\n private io?: IntersectionObserver;\n private inheritedAttributes: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n @Element() el!: HTMLPdsIconElement;\n\n @State() private ariaLabel?: string;\n @State() private isVisible = false;\n @State() private svgContent?: string;\n\n /**\n *\n * The color of the icon\n *\n */\n @Prop() color?: string;\n\n /**\n * This a combination of both `name` and `src`. If a `src` url is detected\n * it will set the `src` property. Otherwise it assumes it's a built-in named\n * SVG and set the `name` property.\n */\n @Prop() icon?: any;\n\n /**\n * The name of the icon to use from\n * the built-in set.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * The size of the icon. This can be\n * 'small', 'regular', 'medium', large, or a\n * custom value (40px, 1rem, etc)\n *\n */\n @Prop({ reflect: true }) size?:\n | 'small' // 12px\n | 'regular' // 16px\n | 'medium' // 20px\n | 'large' // 24px\n | 'auto'\n | string = 'regular'\n\n /**\n *\n * Specifies the exact `src` of an SVG file to use.\n */\n @Prop() src?: string;\n\n private iconSize() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sizes: { [key: string]: any } = {\n small: '12px',\n regular: '16px',\n medium: '20px',\n large: '24px',\n }\n\n if (sizes[this.size]) {\n return sizes[this.size];\n } else {\n return this.size;\n }\n }\n\n componentDidLoad() {\n this.setCSSVariables();\n }\n\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\n this.setCSSVariables();\n }\n\n setCSSVariables() {\n this.el.style.setProperty(`--dimension-icon-height`, this.iconSize());\n this.el.style.setProperty(`--dimension-icon-width`, this.iconSize());\n this.el.style.setProperty(`--color-icon-fill`, typeof this.color !== 'undefined' ? this.color : 'currentColor');\n }\n\n connectedCallback() {\n this.waitUntilVisible(this.el, '50px', () => {\n this.isVisible = true;\n this.loadIcon();\n })\n }\n\n disconnectedCallback() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n\n @Watch('size')\n @Watch('color')\n updateStyles() {\n this.setCSSVariables();\n }\n\n @Watch('name')\n @Watch('src')\n @Watch('icon')\n loadIcon() {\n if (Build.isBrowser && this.isVisible) {\n const url = getUrl(this);\n if (url) {\n if (pdsIconContent.has(url)) {\n this.svgContent = pdsIconContent.get(url);\n } else {\n getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));\n }\n }\n }\n\n const label = getName(this.name, this.icon);\n\n if (label) {\n this.ariaLabel = label.replace(/\\-/g, ' ');\n }\n }\n\n render() {\n const { ariaLabel, inheritedAttributes } = this;\n\n return (\n\n <Host\n aria-label={ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null }\n alt=\"\"\n role=\"img\"\n class={{\n ...createColorClasses(this.color),\n }}\n {...inheritedAttributes}\n >\n {Build.isBrowser && this.svgContent ? (\n <div class=\"icon-inner\" innerHTML={this.svgContent}></div>\n ) : (\n <div class=\"icon-inner\"></div>\n )}\n </Host>\n )\n }\n\n /*****\n * Private Methods\n ****/\n\n private waitUntilVisible(el: HTMLElement, rootMargin: string, cb: () => void) {\n if (Build.isBrowser && typeof window !== 'undefined' && (window).IntersectionObserver) {\n const io = (this.io = new (window).IntersectionObserver(\n (data: IntersectionObserverEntry[]) => {\n if (data[0].isIntersecting) {\n io.disconnect();\n this.io = undefined;\n cb();\n }\n },\n { rootMargin },\n ));\n\n io.observe(el);\n } else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n }\n\n private hasAriaHidden = () => {\n const { el } = this;\n\n return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';\n }\n}\n\nconst createColorClasses = (color: string | undefined) => {\n return color\n ? {\n 'pds-color': true,\n [`pds-color-${color}`]: true,\n }\n : null;\n };\n"],"version":3}
|
package/dist/cheatsheet.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
|
-
<title>Pine icons 8.
|
|
5
|
+
<title>Pine icons 8.18.1 Cheatsheet</title>
|
|
6
6
|
<style>
|
|
7
7
|
body {
|
|
8
8
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</style>
|
|
34
34
|
</head>
|
|
35
35
|
<body>
|
|
36
|
-
<h1>Pine Icons 8.
|
|
36
|
+
<h1>Pine Icons 8.18.1 Cheatsheet</h1>
|
|
37
37
|
<h3>355 icons</h3>
|
|
38
38
|
|
|
39
39
|
<a href="./svg/access-key.svg"><svg><use href="#access-key" xlink:href="#access-key"/></svg></a>
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
<a href="./svg/window-paragraph.svg"><svg><use href="#window-paragraph" xlink:href="#window-paragraph"/></svg></a>
|
|
392
392
|
<a href="./svg/world.svg"><svg><use href="#world" xlink:href="#world"/></svg></a>
|
|
393
393
|
<a href="./svg/wrench.svg"><svg><use href="#wrench" xlink:href="#wrench"/></svg></a>
|
|
394
|
-
<svg data-pdsicons="8.
|
|
394
|
+
<svg data-pdsicons="8.18.1" style="display:none">
|
|
395
395
|
<style>
|
|
396
396
|
.pdsicon {
|
|
397
397
|
fill: currentColor;
|
|
@@ -609,12 +609,12 @@
|
|
|
609
609
|
<symbol id="lock" viewBox="0 0 24 24" class="pdsicon"><path fill-rule="evenodd" d="M6 8a6 6 0 1 1 12 0v2.15c.283.062.554.152.816.286a4 4 0 0 1 1.748 1.748c.247.485.346 1.002.392 1.564.044.541.044 1.206.044 2.01v.483c0 .805 0 1.47-.044 2.01-.046.563-.145 1.08-.392 1.565a4 4 0 0 1-1.748 1.748c-.485.247-1.002.346-1.564.392-.541.044-1.206.044-2.01.044H8.758c-.805 0-1.47 0-2.01-.044-.563-.046-1.08-.145-1.565-.392a4 4 0 0 1-1.748-1.748c-.247-.485-.346-1.002-.392-1.564C3 17.71 3 17.046 3 16.242v-.483c0-.805 0-1.47.044-2.01.046-.563.145-1.08.392-1.565a4 4 0 0 1 1.748-1.748c.262-.134.533-.224.816-.286zm2 2.002q.356-.003.759-.002h6.482q.403 0 .759.002V8a4 4 0 0 0-8 0zm-1.089 2.036c-.438.035-.663.1-.819.18a2 2 0 0 0-.874.874c-.08.156-.145.38-.18.819C5 14.361 5 14.943 5 15.8v.4c0 .857 0 1.439.038 1.889.035.438.1.663.18.819a2 2 0 0 0 .874.874c.156.08.38.145.819.18C7.361 20 7.943 20 8.8 20h6.4c.857 0 1.439 0 1.889-.038.438-.035.663-.1.819-.18a2 2 0 0 0 .874-.874c.08-.156.145-.38.18-.819.037-.45.038-1.032.038-1.889v-.4c0-.857 0-1.439-.038-1.889-.035-.438-.1-.663-.18-.819a2 2 0 0 0-.874-.874c-.156-.08-.38-.145-.819-.18C16.639 12 16.057 12 15.2 12H8.8c-.857 0-1.439 0-1.889.038"/></symbol>
|
|
610
610
|
<symbol id="lock-alt" viewBox="0 0 24 24" class="pdsicon"><path fill-rule="evenodd" d="M6 8a6 6 0 1 1 12 0v2.15c.283.062.554.152.816.286a4 4 0 0 1 1.748 1.748c.247.485.346 1.002.392 1.564.044.541.044 1.206.044 2.01v.483c0 .805 0 1.47-.044 2.01-.046.563-.145 1.08-.392 1.565a4 4 0 0 1-1.748 1.748c-.485.247-1.002.346-1.564.392-.541.044-1.206.044-2.01.044H8.758c-.805 0-1.47 0-2.01-.044-.563-.046-1.08-.145-1.565-.392a4 4 0 0 1-1.748-1.748c-.247-.485-.346-1.002-.392-1.564C3 17.71 3 17.046 3 16.242v-.483c0-.805 0-1.47.044-2.01.046-.563.145-1.08.392-1.565a4 4 0 0 1 1.748-1.748c.262-.134.533-.224.816-.286zm2 2.002q.356-.003.759-.002h6.482q.403 0 .759.002V8a4 4 0 0 0-8 0zm-1.089 2.036c-.438.035-.663.1-.819.18a2 2 0 0 0-.874.874c-.08.156-.145.38-.18.819C5 14.361 5 14.943 5 15.8v.4c0 .857 0 1.439.038 1.889.035.438.1.663.18.819a2 2 0 0 0 .874.874c.156.08.38.145.819.18C7.361 20 7.943 20 8.8 20h6.4c.857 0 1.439 0 1.889-.038.438-.035.663-.1.819-.18a2 2 0 0 0 .874-.874c.08-.156.145-.38.18-.819.037-.45.038-1.032.038-1.889v-.4c0-.857 0-1.439-.038-1.889-.035-.438-.1-.663-.18-.819a2 2 0 0 0-.874-.874c-.156-.08-.38-.145-.819-.18C16.639 12 16.057 12 15.2 12H8.8c-.857 0-1.439 0-1.889.038"/></symbol>
|
|
611
611
|
<symbol id="logo-afterpay" viewBox="0 0 24 24" class="pdsicon"><path d="M21.458 6.213 18.442 4.43 15.29 2.649c-2.056-1.234-4.66.274-4.66 2.604v.411c0 .274.136.411.273.549l1.371.822c.548.274 1.097 0 1.097-.548v-.96c0-.411.41-.685.822-.411l5.757 3.29a.642.642 0 0 1 0 1.096l-2.878 1.645-2.879 1.508c-.411.137-.822-.137-.822-.548v-.412c0-2.467-2.605-3.975-4.66-2.741l-3.153 1.782-3.016 1.782a3.087 3.087 0 0 0 0 5.346l3.016 1.782 3.152 1.781c2.056 1.097 4.66-.41 4.66-2.74v-.412c0-.274-.136-.411-.273-.548l-1.371-.823c-.548-.274-1.097 0-1.097.548v.96c0 .411-.41.685-.822.411l-5.757-3.29c-.274-.137-.274-.685.137-.96l5.757-3.289c.274-.137.685.137.685.548v.412c0 2.33 2.605 3.838 4.66 2.604l3.153-1.782 3.016-1.782c2.056-.96 2.056-3.975 0-5.071"/></symbol>
|
|
612
|
-
<symbol id="logo-facebook" viewBox="0 0 24 24" class="pdsicon"><path d="
|
|
613
|
-
<symbol id="logo-facebook-round" viewBox="0 0 24 24" class="pdsicon"><path d="M23 12.
|
|
612
|
+
<symbol id="logo-facebook" viewBox="0 0 24 24" class="pdsicon"><path d="m9.105 23-.032-10H5V9h4.073V6.5c0-3.711 2.34-5.5 5.71-5.5 1.616 0 3.003.118 3.408.17v3.88h-2.338c-1.833 0-2.188.856-2.188 2.112V9H19l-2.036 4h-3.3v10z"/></symbol>
|
|
613
|
+
<symbol id="logo-facebook-round" viewBox="0 0 24 24" class="pdsicon"><path d="M23 12.067c0-2.115-.603-4.186-1.736-5.967a11 11 0 0 0-4.66-4.084 10.94 10.94 0 0 0-11.75 1.637 11.07 11.07 0 0 0-3.38 5.204 11.13 11.13 0 0 0-.06 6.217 11.1 11.1 0 0 0 3.28 5.269A10.97 10.97 0 0 0 10.282 23v-7.734H7.488v-3.2h2.793V9.629c0-2.773 1.643-4.306 4.155-4.306a17 17 0 0 1 2.463.216v2.724H15.51a1.58 1.58 0 0 0-1.175.315 1.6 1.6 0 0 0-.617 1.414v2.076h3.048l-.488 3.2h-2.567V23a10.98 10.98 0 0 0 6.65-3.742A11.1 11.1 0 0 0 23 12.067"/></symbol>
|
|
614
614
|
<symbol id="logo-instagram" viewBox="0 0 24 24" class="pdsicon"><path fill-rule="evenodd" d="M12 2.982c2.937 0 3.285.011 4.445.064a6.1 6.1 0 0 1 2.042.379 3.4 3.4 0 0 1 1.265.823 3.4 3.4 0 0 1 .823 1.265 6.1 6.1 0 0 1 .379 2.042c.053 1.16.064 1.508.064 4.445s-.011 3.285-.064 4.445a6.1 6.1 0 0 1-.379 2.042 3.64 3.64 0 0 1-2.088 2.088 6.1 6.1 0 0 1-2.042.379c-1.16.053-1.508.064-4.445.064s-3.285-.011-4.445-.064a6.1 6.1 0 0 1-2.042-.379 3.4 3.4 0 0 1-1.265-.823 3.4 3.4 0 0 1-.823-1.265 6.1 6.1 0 0 1-.379-2.042c-.053-1.16-.064-1.508-.064-4.445s.011-3.285.064-4.445a6.1 6.1 0 0 1 .379-2.042 3.4 3.4 0 0 1 .823-1.265 3.4 3.4 0 0 1 1.265-.823 6.1 6.1 0 0 1 2.042-.379c1.16-.053 1.508-.064 4.445-.064M12 1c-2.987 0-3.362.013-4.535.066a8.1 8.1 0 0 0-2.67.511A5.63 5.63 0 0 0 1.577 4.8a8.1 8.1 0 0 0-.511 2.67C1.013 8.638 1 9.013 1 12s.013 3.362.066 4.535c.019.912.192 1.815.511 2.67A5.63 5.63 0 0 0 4.8 22.423c.855.32 1.758.492 2.67.511C8.638 22.987 9.013 23 12 23s3.362-.013 4.535-.066a8.1 8.1 0 0 0 2.67-.511 5.63 5.63 0 0 0 3.218-3.223c.32-.855.492-1.758.511-2.67.053-1.168.066-1.543.066-4.53s-.013-3.362-.066-4.535a8.1 8.1 0 0 0-.511-2.67A5.63 5.63 0 0 0 19.2 1.577a8.1 8.1 0 0 0-2.67-.511C15.362 1.013 14.987 1 12 1m0 5.351a5.65 5.65 0 1 0 0 11.298 5.65 5.65 0 0 0 0-11.298m0 9.316a3.667 3.667 0 1 1 0-7.335 3.667 3.667 0 0 1 0 7.335m7.192-9.539a1.32 1.32 0 1 1-2.64 0 1.32 1.32 0 0 1 2.64 0"/></symbol>
|
|
615
615
|
<symbol id="logo-linkedin" viewBox="0 0 24 24" class="pdsicon"><path d="M22.083 1H1.917C1.367 1 1 1.367 1 1.917v20.166c0 .55.367.917.917.917h20.166c.55 0 .917-.367.917-.917V1.917c0-.55-.367-.917-.917-.917M4.3 19.792V9.25h3.3v10.542zM5.858 7.783c-1.008 0-1.925-.825-1.925-1.925 0-1.008.825-1.925 1.925-1.925 1.009 0 1.925.825 1.925 1.925s-.825 1.925-1.925 1.925m13.934 12.009h-3.3v-5.134c0-1.191 0-2.75-1.65-2.75-1.742 0-1.925 1.284-1.925 2.659v5.225h-3.3V9.25h3.116v1.467c.459-.825 1.467-1.65 3.117-1.65 3.3 0 3.942 2.2 3.942 5.041z"/></symbol>
|
|
616
616
|
<symbol id="logo-snapchat" viewBox="0 0 24 24" class="pdsicon"><path d="M22.594 18.442c.718-.36.307-.564.102-.718-3.847-1.847-4.463-4.72-4.514-4.925-.052-.256-.052-.462.205-.77.308-.256 1.488-.974 1.847-1.23.564-.411.82-.77.615-1.283-.102-.308-.41-.41-.77-.41h-.307c-.616.153-1.18.461-1.539.512-.051.052-.103.052-.154.052-.154 0-.205-.103-.205-.308.051-.667.103-2 0-3.232-.103-1.693-.667-2.514-1.334-3.232C16.232 2.54 14.796 1 11.974 1 9.204 1 7.768 2.539 7.46 2.898c-.667.718-1.231 1.54-1.334 3.232-.154 1.231-.051 2.565 0 3.232 0 .205-.051.308-.256.308h-.103c-.36-.103-.923-.41-1.539-.565H3.92c-.359 0-.667.103-.77.462-.204.462.052.872.616 1.231.36.257 1.54 1.026 1.847 1.283.257.256.257.462.205.718-.051.205-.667 3.078-4.514 4.925-.205.154-.616.359.103.718 1.026.616 1.744.564 2.308.872.462.308.205.975.513 1.231.41.257 1.642-.051 3.232.462 1.334.462 2.155 1.693 4.566 1.693 2.36 0 3.18-1.231 4.514-1.693 1.59-.513 2.822-.205 3.232-.462.308-.256.051-.923.513-1.18.564-.359 1.282-.307 2.308-.923"/></symbol>
|
|
617
|
-
<symbol id="logo-tiktok" viewBox="0 0 24 24" class="pdsicon"><path d="
|
|
617
|
+
<symbol id="logo-tiktok" viewBox="0 0 24 24" class="pdsicon"><path d="M9.853 9.192v3.779a3.24 3.24 0 0 0-2.772.534 3.308 3.308 0 0 0-1.322 2.512 3 3 0 0 0 .865 2.3 2.95 2.95 0 0 0 2.29.856 2.92 2.92 0 0 0 2.31-.865 2.97 2.97 0 0 0 .844-2.333V1h3.71c.63 3.955 2.593 4.873 5.222 5.297v3.79a11.1 11.1 0 0 1-5.118-1.742v7.487c0 3.391-1.992 7.168-6.94 7.168a6.9 6.9 0 0 1-2.7-.56 7 7 0 0 1-2.273-1.572 7 7 0 0 1-1.49-2.336 7.1 7.1 0 0 1-.477-2.736c.03-.973.263-1.93.686-2.805a6.9 6.9 0 0 1 1.767-2.274 6.79 6.79 0 0 1 5.398-1.524"/></symbol>
|
|
618
618
|
<symbol id="logo-twitter" viewBox="0 0 24 24" class="pdsicon"><path fill-rule="evenodd" d="m15.945 23-5.55-7.91L3.449 23H.51l8.583-9.769L.509 1h7.546l5.23 7.455L19.84 1h2.939l-8.184 9.317L23.49 23zm3.273-2.23h-1.979L4.718 3.23h1.979l5.015 7.023.867 1.219z"/></symbol>
|
|
619
619
|
<symbol id="logo-twitter-x" viewBox="0 0 24 24" class="pdsicon"><path fill-rule="evenodd" d="m15.945 23-5.55-7.91L3.448 23H.51l8.582-9.769L.51 1h7.546l5.23 7.455L19.84 1h2.939l-8.184 9.317L23.49 23zm3.273-2.23h-1.979L4.718 3.23h1.978l5.015 7.023.868 1.219z"/></symbol>
|
|
620
620
|
<symbol id="logo-youtube" viewBox="0 0 24 24" class="pdsicon"><path d="M22.817 7.6s-.184-1.558-.917-2.2c-.825-.917-1.742-.917-2.2-.917C16.583 4.3 12 4.3 12 4.3s-4.583 0-7.7.183c-.458.092-1.375.092-2.2.917-.642.642-.917 2.2-.917 2.2S1 9.342 1 11.175v1.65c0 1.742.183 3.575.183 3.575s.184 1.558.917 2.2c.825.917 1.925.825 2.383.917C6.225 19.7 12 19.7 12 19.7s4.583 0 7.7-.275c.458-.092 1.375-.092 2.2-.917.642-.641.917-2.2.917-2.2S23 14.567 23 12.733v-1.65c0-1.741-.183-3.483-.183-3.483M9.708 14.842V8.7l5.959 3.117z"/></symbol>
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-01bc4624.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-2688221f.js');
|
|
7
7
|
|
|
8
8
|
const validateContent = (svgContent) => {
|
|
9
9
|
const div = document.createElement('div');
|
|
@@ -109,8 +109,8 @@ const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescri
|
|
|
109
109
|
const toLower = (val) => val.toLowerCase();
|
|
110
110
|
/**
|
|
111
111
|
* Elements inside of web components sometimes need to inherit global attributes
|
|
112
|
-
* set on the host. For example, the inner input in `
|
|
113
|
-
* the `title` attribute that developers set directly on `
|
|
112
|
+
* set on the host. For example, the inner input in `pds-input` should inherit
|
|
113
|
+
* the `title` attribute that developers set directly on `pds-input`. This
|
|
114
114
|
* helper function should be called in componentWillLoad and assigned to a variable
|
|
115
115
|
* that is later used in the render function.
|
|
116
116
|
*
|
|
@@ -137,4 +137,4 @@ exports.getUrl = getUrl;
|
|
|
137
137
|
exports.inheritAttributes = inheritAttributes;
|
|
138
138
|
exports.isStr = isStr;
|
|
139
139
|
|
|
140
|
-
//# sourceMappingURL=utils-
|
|
140
|
+
//# sourceMappingURL=utils-2688221f.js.map
|
|
@@ -1 +1 @@
|
|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AAI,EAAE;gBAClB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;aAC/C;YACD,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SAC1B;KACF,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB;;;;;;;;","names":[],"sources":["src/components/pds-icon/assetPath.ts","src/components/pds-icon/utils.ts"],"sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine assets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and set the path accordingly.\\n\\nFor more information, read the documentation: \\nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n","import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `pds-input` should inherit\n * the `title` attribute that developers set directly on `pds-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="M23 12.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="M23 12.067c0-2.115-.603-4.186-1.736-5.967a11 11 0 0 0-4.66-4.084 10.94 10.94 0 0 0-11.75 1.637 11.07 11.07 0 0 0-3.38 5.204 11.13 11.13 0 0 0-.06 6.217 11.1 11.1 0 0 0 3.28 5.269A10.97 10.97 0 0 0 10.282 23v-7.734H7.488v-3.2h2.793V9.629c0-2.773 1.643-4.306 4.155-4.306a17 17 0 0 1 2.463.216v2.724H15.51a1.58 1.58 0 0 0-1.175.315 1.6 1.6 0 0 0-.617 1.414v2.076h3.048l-.488 3.2h-2.567V23a10.98 10.98 0 0 0 6.65-3.742A11.1 11.1 0 0 0 23 12.067"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="m9.105 23-.032-10H5V9h4.073V6.5c0-3.711 2.34-5.5 5.71-5.5 1.616 0 3.003.118 3.408.17v3.88h-2.338c-1.833 0-2.188.856-2.188 2.112V9H19l-2.036 4h-3.3v10z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="M9.853 9.192v3.779a3.24 3.24 0 0 0-2.772.534 3.308 3.308 0 0 0-1.322 2.512 3 3 0 0 0 .865 2.3 2.95 2.95 0 0 0 2.29.856 2.92 2.92 0 0 0 2.31-.865 2.97 2.97 0 0 0 .844-2.333V1h3.71c.63 3.955 2.593 4.873 5.222 5.297v3.79a11.1 11.1 0 0 1-5.118-1.742v7.487c0 3.391-1.992 7.168-6.94 7.168a6.9 6.9 0 0 1-2.7-.56 7 7 0 0 1-2.273-1.572 7 7 0 0 1-1.49-2.336 7.1 7.1 0 0 1-.477-2.736c.03-.973.263-1.93.686-2.805a6.9 6.9 0 0 1 1.767-2.274 6.79 6.79 0 0 1 5.398-1.524"/></svg>
|
|
@@ -71,8 +71,8 @@ export const isStr = (val) => typeof val === 'string'; // eslint-disable-line @t
|
|
|
71
71
|
export const toLower = (val) => val.toLowerCase();
|
|
72
72
|
/**
|
|
73
73
|
* Elements inside of web components sometimes need to inherit global attributes
|
|
74
|
-
* set on the host. For example, the inner input in `
|
|
75
|
-
* the `title` attribute that developers set directly on `
|
|
74
|
+
* set on the host. For example, the inner input in `pds-input` should inherit
|
|
75
|
+
* the `title` attribute that developers set directly on `pds-input`. This
|
|
76
76
|
* helper function should be called in componentWillLoad and assigned to a variable
|
|
77
77
|
* that is later used in the render function.
|
|
78
78
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/pds-icon/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,IAAI,UAA+B,CAAC;AAEpC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ACP,OAAO,GAAG,CAAC;QACb,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAQ,EAAiB,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,yDAAyD;AACpI,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;AAE1D;;;;;;;;;GASG;AACF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAe,EAAE,aAAuB,EAAE,EAAE,EAAE;IAC/E,MAAM,eAAe,GAAyB,EAAE,CAAC,CAAC,yDAAyD;IAE3G,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACxB,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1B,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACpC,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACnB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YAChD,CAAC;YACD,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB,CAAC,CAAA","sourcesContent":["import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/pds-icon/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,IAAI,UAA+B,CAAC;AAEpC,MAAM,CAAC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AG,CAAC;QACb,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAQ,EAAiB,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,yDAAyD;AACpI,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;AAE1D;;;;;;;;;GASG;AACF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAe,EAAE,aAAuB,EAAE,EAAE,EAAE;IAC/E,MAAM,eAAe,GAAyB,EAAE,CAAC,CAAC,yDAAyD;IAE3G,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACxB,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1B,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACpC,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACnB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YAChD,CAAC;YACD,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB,CAAC,CAAA","sourcesContent":["import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `pds-input` should inherit\n * the `title` attribute that developers set directly on `pds-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n"]}
|
package/dist/docs.json
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-e65f4069.js';
|
|
2
|
-
import { i as isStr, b as inheritAttributes, g as getUrl, c as getName } from './utils-
|
|
2
|
+
import { i as isStr, b as inheritAttributes, g as getUrl, c as getName } from './utils-82853a12.js';
|
|
3
3
|
|
|
4
4
|
const validateContent = (svgContent) => {
|
|
5
5
|
const div = document.createElement('div');
|
|
@@ -107,8 +107,8 @@ const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescri
|
|
|
107
107
|
const toLower = (val) => val.toLowerCase();
|
|
108
108
|
/**
|
|
109
109
|
* Elements inside of web components sometimes need to inherit global attributes
|
|
110
|
-
* set on the host. For example, the inner input in `
|
|
111
|
-
* the `title` attribute that developers set directly on `
|
|
110
|
+
* set on the host. For example, the inner input in `pds-input` should inherit
|
|
111
|
+
* the `title` attribute that developers set directly on `pds-input`. This
|
|
112
112
|
* helper function should be called in componentWillLoad and assigned to a variable
|
|
113
113
|
* that is later used in the render function.
|
|
114
114
|
*
|
|
@@ -131,4 +131,4 @@ const inheritAttributes = (el, attributes = []) => {
|
|
|
131
131
|
|
|
132
132
|
export { addIcons as a, inheritAttributes as b, getName as c, getUrl as g, isStr as i };
|
|
133
133
|
|
|
134
|
-
//# sourceMappingURL=utils-
|
|
134
|
+
//# sourceMappingURL=utils-82853a12.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"utils-
|
|
1
|
+
{"file":"utils-82853a12.js","mappings":";;AAEA,IAAI,uBAAuB,GAAG,KAAK,CAAC;AAQpC;;;;;;;;;AAS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,CAAC,IAAI,CAAC,CAAC;SAC1B;KACF,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB;;;;","names":[],"sources":["src/components/pds-icon/assetPath.ts","src/components/pds-icon/utils.ts"],"sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine assets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and set the path accordingly.\\n\\nFor more information, read the documentation: \\nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n","import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `pds-input` should inherit\n * the `title` attribute that developers set directly on `pds-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n"],"version":3}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as addIcons}from"./p-
|
|
1
|
+
export{a as addIcons}from"./p-4719974e.js";import"./p-fd0315e5.js";
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,h as t,H as e,g as s}from"./p-fd0315e5.js";import{i as n,b as o,g as r,c}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,h as t,H as e,g as s}from"./p-fd0315e5.js";import{i as n,b as o,g as r,c}from"./p-4719974e.js";const l=i=>{const t=document.createElement("div");t.innerHTML=i;for(let i=t.childNodes.length-1;i>=0;i--){if(t.childNodes[i].nodeName.toLowerCase()!=="svg"){t.removeChild(t.childNodes[i])}}const e=t.firstElementChild;if(e&&e.nodeName.toLowerCase()==="svg"){const i=e.getAttribute("class")||"";e.setAttribute("class",(i+" s-pds-icon").trim());if(d(e)){return t.innerHTML}}return""};const d=i=>{if(i.nodeType===1){if(i.nodeName.toLowerCase()==="script"){return false}for(let t=0;t<i.attributes.length;t++){const e=i.attributes[t].name;if(n(e)&&e.toLowerCase().indexOf("on")===0){return false}}for(let t=0;t<i.childNodes.length;t++){if(!d(i.childNodes[t])){return false}}}return true};const a=i=>i.startsWith("data:image/svg+xml");const h=i=>i.indexOf(";utf8,")!==-1;const f=new Map;const u=new Map;let p;const m=(i,t=false)=>{let e=u.get(i);if(!e){if(typeof fetch!="undefined"&&typeof document!=="undefined"){if(a(i)&&h(i)){if(!p){p=new DOMParser}const t=p.parseFromString(i,"text/html");const e=t.querySelector("svg");if(e){f.set(i,e.outerHTML)}return Promise.resolve()}else{e=fetch(i).then((e=>{if(e.ok){return e.text().then((e=>{if(e&&t!==false){e=l(e)}f.set(i,e||"")}))}f.set(i,"")}));u.set(i,e)}}else{f.set(i,"");return Promise.resolve()}}return e};const g=":host{--dimension-icon-height:16px;--dimension-icon-width:16px;--color-icon-fill:currentColor;contain:strict;display:inline-block;fill:var(--color-icon-fill);height:var(--dimension-icon-height);width:var(--dimension-icon-width)}:host .pdsicon{fill:var(--color-icon-fill)}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}";const b=g;const w=class{constructor(t){i(this,t);this.inheritedAttributes={};this.hasAriaHidden=()=>{const{el:i}=this;return i.hasAttribute("aria-hidden")&&i.getAttribute("aria-hidden")==="true"};this.ariaLabel=undefined;this.isVisible=false;this.svgContent=undefined;this.color=undefined;this.icon=undefined;this.name=undefined;this.size="regular";this.src=undefined}iconSize(){const i={small:"12px",regular:"16px",medium:"20px",large:"24px"};if(i[this.size]){return i[this.size]}else{return this.size}}componentDidLoad(){this.setCSSVariables()}componentWillLoad(){this.inheritedAttributes=o(this.el,["aria-label"]);this.setCSSVariables()}setCSSVariables(){this.el.style.setProperty(`--dimension-icon-height`,this.iconSize());this.el.style.setProperty(`--dimension-icon-width`,this.iconSize());this.el.style.setProperty(`--color-icon-fill`,typeof this.color!=="undefined"?this.color:"currentColor")}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=true;this.loadIcon()}))}disconnectedCallback(){if(this.io){this.io.disconnect();this.io=undefined}}updateStyles(){this.setCSSVariables()}loadIcon(){if(this.isVisible){const i=r(this);if(i){if(f.has(i)){this.svgContent=f.get(i)}else{m(i).then((()=>this.svgContent=f.get(i)))}}}const i=c(this.name,this.icon);if(i){this.ariaLabel=i.replace(/\-/g," ")}}render(){const{ariaLabel:i,inheritedAttributes:s}=this;return t(e,Object.assign({key:"4bbc232e2530d43e8b5afefb754486d94ea6538b","aria-label":i!==undefined&&!this.hasAriaHidden()?i:null,alt:"",role:"img",class:Object.assign({},v(this.color))},s),this.svgContent?t("div",{class:"icon-inner",innerHTML:this.svgContent}):t("div",{class:"icon-inner"}))}waitUntilVisible(i,t,e){if(typeof window!=="undefined"&&window.IntersectionObserver){const s=this.io=new window.IntersectionObserver((i=>{if(i[0].isIntersecting){s.disconnect();this.io=undefined;e()}}),{rootMargin:t});s.observe(i)}else{e()}}static get assetsDirs(){return["svg"]}get el(){return s(this)}static get watchers(){return{size:["updateStyles"],color:["updateStyles"],name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"]}}};const v=i=>i?{"pds-color":true,[`pds-color-${i}`]:true}:null;w.style=b;export{w as pds_icon};
|
|
2
|
+
//# sourceMappingURL=p-3f0a1f7c.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import"./p-fd0315e5.js";let n=false;const t=t=>{var e;const s=(e=document.head.querySelector("meta[data-pine-asset-path]"))===null||e===void 0?void 0:e.dataset.pineAssetPath;const o=window.__PINE_ASSET_PATH__;const i="https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/";const r=s||o||i||"/";if(r.startsWith("https://cdn.jsdelivr.net/npm/")&&!n){n=true;console.warn(`\n Fetching Pine assets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and set the path accordingly.\n\nFor more information, read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `)}let c=t;if(t.startsWith("./")){c=t.substring(2)}if(!r.endsWith("/")){c="/"+c}return r+c};let e;const s=n=>{const t=o();Object.keys(n).forEach((e=>t.set(e,n[e])))};const o=()=>{if(typeof window==="undefined"){return new Map}else{if(!e){const n=window;n.PdsIcons=n.PdsIcons||{};e=n.PdsIcons.map=n.PdsIcons.map||new Map}return e}};const i=(n,t)=>{if(!n&&t&&!u(t)){n=t}if(d(n)){n=f(n)}if(!d(n)||n.trim()===""){return null}const e=n.replace(/[a-z]|-|\d/gi,"");if(e!=""){return null}return n};const r=n=>{const e=o().get(n);if(e){return e}return t(`svg/${n}.svg`)};const c=n=>{if(d(n)){n=n.trim();if(u(n)){return n}}return null};const a=n=>{let t=c(n.src);if(t){return t}t=i(n.name,n.icon);if(t){return r(t)}if(n.icon){t=c(n.icon);if(t){return t}}return null};const u=n=>n.length>0&&/(\/|\.)/.test(n);const d=n=>typeof n==="string";const f=n=>n.toLowerCase();const l=(n,t=[])=>{const e={};t.forEach((t=>{if(n.hasAttribute(t)){const s=n.getAttribute(t);if(s!==null){e[t]=n.getAttribute(t)}n.removeAttribute(t)}}));return e};export{s as a,l as b,i as c,a as g,d as i};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
2
|
+
//# sourceMappingURL=p-4719974e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["missingAssetPathWarning","getAssetPath","path","metaPineAssetPath","_a","document","head","querySelector","dataset","pineAssetPath","windowAssetPath","window","__PINE_ASSET_PATH__","cdnAssetPath","assetBasePath","startsWith","console","warn","assetPath","substring","endsWith","CACHED_MAP","addIcons","icons","map","getIconMap","Object","keys","forEach","name","set","Map","win","PdsIcons","getName","iconName","icon","isSrc","isStr","toLower","trim","invalidChars","replace","getNamedUrl","url","get","getSrc","src","getUrl","pdsIcon","str","length","test","val","toLowerCase","inheritAttributes","el","attributes","attributeObject","attr","hasAttribute","value","getAttribute","removeAttribute"],"sources":["src/components/pds-icon/assetPath.ts","src/components/pds-icon/utils.ts"],"sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine assets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and set the path accordingly.\\n\\nFor more information, read the documentation: \\nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n","import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `
|
|
1
|
+
{"version":3,"names":["missingAssetPathWarning","getAssetPath","path","metaPineAssetPath","_a","document","head","querySelector","dataset","pineAssetPath","windowAssetPath","window","__PINE_ASSET_PATH__","cdnAssetPath","assetBasePath","startsWith","console","warn","assetPath","substring","endsWith","CACHED_MAP","addIcons","icons","map","getIconMap","Object","keys","forEach","name","set","Map","win","PdsIcons","getName","iconName","icon","isSrc","isStr","toLower","trim","invalidChars","replace","getNamedUrl","url","get","getSrc","src","getUrl","pdsIcon","str","length","test","val","toLowerCase","inheritAttributes","el","attributes","attributeObject","attr","hasAttribute","value","getAttribute","removeAttribute"],"sources":["src/components/pds-icon/assetPath.ts","src/components/pds-icon/utils.ts"],"sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine assets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and set the path accordingly.\\n\\nFor more information, read the documentation: \\nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n","import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `pds-input` should inherit\n * the `title` attribute that developers set directly on `pds-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n"],"mappings":"wBAEA,IAAIA,EAA0B,MAiBvB,MAAMC,EAAgBC,I,MAC3B,MAAMC,GAAoBC,EAAAC,SAASC,KAAKC,cAA+B,iCAA6B,MAAAH,SAAA,SAAAA,EAAEI,QAAQC,cAG9G,MAAMC,EAAkBC,OAAOC,oBAG/B,MAAMC,EAAe,8DAErB,MAAMC,EAAuDX,GAAqBO,GAAmBG,GAAgB,IAGrH,GAAKC,EAAcC,WAAW,mCAAqCf,EAA0B,CAC3FA,EAA0B,KAC1BgB,QAAQC,KAAK,0R,CAKf,IAAIC,EAAYhB,EAEhB,GAAKA,EAAKa,WAAY,MAAQ,CAC5BG,EAAYhB,EAAKiB,UAAU,E,CAG7B,IAAML,EAAcM,SAAS,KAAO,CAClCF,EAAY,IAAMA,C,CAGpB,OAAOJ,EAAgBI,CAAS,EC5ClC,IAAIG,E,MAESC,EAAYC,IACvB,MAAMC,EAAMC,IACZC,OAAOC,KAAKJ,GAAOK,SAAQC,GAAQL,EAAIM,IAAID,EAAMN,EAAMM,KAAO,EAGzD,MAAMJ,EAAa,KACxB,UAAWd,SAAW,YAAa,CACjC,OAAO,IAAIoB,G,KACL,CACN,IAAKV,EAAY,CACf,MAAMW,EAAMrB,OACZqB,EAAIC,SAAWD,EAAIC,UAAY,GAC/BZ,EAAaW,EAAIC,SAAST,IAAMQ,EAAIC,SAAST,KAAO,IAAIO,G,CAG1D,OAAOV,C,SAIEa,EAAU,CACrBC,EACAC,KAGA,IAAID,GAAYC,IAASC,EAAMD,GAAO,CACpCD,EAAWC,C,CAGb,GAAIE,EAAMH,GAAW,CACnBA,EAAWI,EAAQJ,E,CAGrB,IAAKG,EAAMH,IAAaA,EAASK,SAAW,GAAI,CAC9C,OAAO,I,CAGT,MAAMC,EAAeN,EAASO,QAAQ,eAAe,IACrD,GAAID,GAAgB,GAAI,CAAE,OAAO,I,CAEjC,OAAON,CAAQ,EAGjB,MAAMQ,EAAeR,IACnB,MAAMS,EAAMnB,IAAaoB,IAAIV,GAC7B,GAAIS,EAAK,CACP,OAAOA,C,CAGT,OAAO3C,EAAa,OAAOkC,QAAe,EAGrC,MAAMW,EAAUC,IACrB,GAAIT,EAAMS,GAAM,CACdA,EAAMA,EAAIP,OAEV,GAAIH,EAAMU,GAAM,CACd,OAAOA,C,EAIX,OAAO,IAAI,E,MAGAC,EAAUC,IACrB,IAAIL,EAAME,EAAOG,EAAQF,KACzB,GAAIH,EAAK,CACP,OAAOA,C,CAGTA,EAAMV,EAAQe,EAAQpB,KAAMoB,EAAQb,MACpC,GAAIQ,EAAK,CACP,OAAOD,EAAYC,E,CAGrB,GAAIK,EAAQb,KAAM,CAChBQ,EAAME,EAAOG,EAAQb,MAErB,GAAGQ,EAAK,CACN,OAAOA,C,EAIX,OAAO,IAAI,EAIN,MAAMP,EAASa,GAAgBA,EAAIC,OAAS,GAAK,UAAUC,KAAKF,G,MAC1DZ,EAASe,UAAmCA,IAAQ,SAC1D,MAAMd,EAAWc,GAAgBA,EAAIC,c,MAY9BC,EAAoB,CAACC,EAAiBC,EAAuB,MACzE,MAAMC,EAAwC,GAE9CD,EAAW7B,SAAQ+B,IACjB,GAAIH,EAAGI,aAAaD,GAAO,CACzB,MAAME,EAAQL,EAAGM,aAAaH,GAC9B,GAAIE,IAAU,KAAM,CAClBH,EAAgBC,GAAQH,EAAGM,aAAaH,E,CAE1CH,EAAGO,gBAAgBJ,E,KAIvB,OAAOD,CAAe,S","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,b as e}from"./p-fd0315e5.js";export{s as setNonce}from"./p-fd0315e5.js";import{g as a}from"./p-e1255160.js";var n=()=>{const s=import.meta.url;const e={};if(s!==""){e.resourcesUrl=new URL(".",s).href}return o(e)};n().then((async o=>{await a();return e([["p-
|
|
1
|
+
import{p as o,b as e}from"./p-fd0315e5.js";export{s as setNonce}from"./p-fd0315e5.js";import{g as a}from"./p-e1255160.js";var n=()=>{const s=import.meta.url;const e={};if(s!==""){e.resourcesUrl=new URL(".",s).href}return o(e)};n().then((async o=>{await a();return e([["p-3f0a1f7c",[[1,"pds-icon",{color:[1],icon:[8],name:[513],size:[513],src:[1],ariaLabel:[32],isVisible:[32],svgContent:[32]},null,{size:["updateStyles"],color:["updateStyles"],name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"]}]]]],o)}));
|
|
2
2
|
//# sourceMappingURL=pds-icons.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="M23 12.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="M23 12.067c0-2.115-.603-4.186-1.736-5.967a11 11 0 0 0-4.66-4.084 10.94 10.94 0 0 0-11.75 1.637 11.07 11.07 0 0 0-3.38 5.204 11.13 11.13 0 0 0-.06 6.217 11.1 11.1 0 0 0 3.28 5.269A10.97 10.97 0 0 0 10.282 23v-7.734H7.488v-3.2h2.793V9.629c0-2.773 1.643-4.306 4.155-4.306a17 17 0 0 1 2.463.216v2.724H15.51a1.58 1.58 0 0 0-1.175.315 1.6 1.6 0 0 0-.617 1.414v2.076h3.048l-.488 3.2h-2.567V23a10.98 10.98 0 0 0 6.65-3.742A11.1 11.1 0 0 0 23 12.067"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="m9.105 23-.032-10H5V9h4.073V6.5c0-3.711 2.34-5.5 5.71-5.5 1.616 0 3.003.118 3.408.17v3.88h-2.338c-1.833 0-2.188.856-2.188 2.112V9H19l-2.036 4h-3.3v10z"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="M9.853 9.192v3.779a3.24 3.24 0 0 0-2.772.534 3.308 3.308 0 0 0-1.322 2.512 3 3 0 0 0 .865 2.3 2.95 2.95 0 0 0 2.29.856 2.92 2.92 0 0 0 2.31-.865 2.97 2.97 0 0 0 .844-2.333V1h3.71c.63 3.955 2.593 4.873 5.222 5.297v3.79a11.1 11.1 0 0 1-5.118-1.742v7.487c0 3.391-1.992 7.168-6.94 7.168a6.9 6.9 0 0 1-2.7-.56 7 7 0 0 1-2.273-1.572 7 7 0 0 1-1.49-2.336 7.1 7.1 0 0 1-.477-2.736c.03-.973.263-1.93.686-2.805a6.9 6.9 0 0 1 1.767-2.274 6.79 6.79 0 0 1 5.398-1.524"/></svg>
|
package/dist/pds-icons.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg data-pdsicons="8.
|
|
1
|
+
<svg data-pdsicons="8.18.1" style="display:none">
|
|
2
2
|
<style>
|
|
3
3
|
.pdsicon {
|
|
4
4
|
fill: currentColor;
|
|
@@ -216,12 +216,12 @@
|
|
|
216
216
|
<symbol id="lock" viewBox="0 0 24 24" class="pdsicon"><path fill-rule="evenodd" d="M6 8a6 6 0 1 1 12 0v2.15c.283.062.554.152.816.286a4 4 0 0 1 1.748 1.748c.247.485.346 1.002.392 1.564.044.541.044 1.206.044 2.01v.483c0 .805 0 1.47-.044 2.01-.046.563-.145 1.08-.392 1.565a4 4 0 0 1-1.748 1.748c-.485.247-1.002.346-1.564.392-.541.044-1.206.044-2.01.044H8.758c-.805 0-1.47 0-2.01-.044-.563-.046-1.08-.145-1.565-.392a4 4 0 0 1-1.748-1.748c-.247-.485-.346-1.002-.392-1.564C3 17.71 3 17.046 3 16.242v-.483c0-.805 0-1.47.044-2.01.046-.563.145-1.08.392-1.565a4 4 0 0 1 1.748-1.748c.262-.134.533-.224.816-.286zm2 2.002q.356-.003.759-.002h6.482q.403 0 .759.002V8a4 4 0 0 0-8 0zm-1.089 2.036c-.438.035-.663.1-.819.18a2 2 0 0 0-.874.874c-.08.156-.145.38-.18.819C5 14.361 5 14.943 5 15.8v.4c0 .857 0 1.439.038 1.889.035.438.1.663.18.819a2 2 0 0 0 .874.874c.156.08.38.145.819.18C7.361 20 7.943 20 8.8 20h6.4c.857 0 1.439 0 1.889-.038.438-.035.663-.1.819-.18a2 2 0 0 0 .874-.874c.08-.156.145-.38.18-.819.037-.45.038-1.032.038-1.889v-.4c0-.857 0-1.439-.038-1.889-.035-.438-.1-.663-.18-.819a2 2 0 0 0-.874-.874c-.156-.08-.38-.145-.819-.18C16.639 12 16.057 12 15.2 12H8.8c-.857 0-1.439 0-1.889.038"/></symbol>
|
|
217
217
|
<symbol id="lock-alt" viewBox="0 0 24 24" class="pdsicon"><path fill-rule="evenodd" d="M6 8a6 6 0 1 1 12 0v2.15c.283.062.554.152.816.286a4 4 0 0 1 1.748 1.748c.247.485.346 1.002.392 1.564.044.541.044 1.206.044 2.01v.483c0 .805 0 1.47-.044 2.01-.046.563-.145 1.08-.392 1.565a4 4 0 0 1-1.748 1.748c-.485.247-1.002.346-1.564.392-.541.044-1.206.044-2.01.044H8.758c-.805 0-1.47 0-2.01-.044-.563-.046-1.08-.145-1.565-.392a4 4 0 0 1-1.748-1.748c-.247-.485-.346-1.002-.392-1.564C3 17.71 3 17.046 3 16.242v-.483c0-.805 0-1.47.044-2.01.046-.563.145-1.08.392-1.565a4 4 0 0 1 1.748-1.748c.262-.134.533-.224.816-.286zm2 2.002q.356-.003.759-.002h6.482q.403 0 .759.002V8a4 4 0 0 0-8 0zm-1.089 2.036c-.438.035-.663.1-.819.18a2 2 0 0 0-.874.874c-.08.156-.145.38-.18.819C5 14.361 5 14.943 5 15.8v.4c0 .857 0 1.439.038 1.889.035.438.1.663.18.819a2 2 0 0 0 .874.874c.156.08.38.145.819.18C7.361 20 7.943 20 8.8 20h6.4c.857 0 1.439 0 1.889-.038.438-.035.663-.1.819-.18a2 2 0 0 0 .874-.874c.08-.156.145-.38.18-.819.037-.45.038-1.032.038-1.889v-.4c0-.857 0-1.439-.038-1.889-.035-.438-.1-.663-.18-.819a2 2 0 0 0-.874-.874c-.156-.08-.38-.145-.819-.18C16.639 12 16.057 12 15.2 12H8.8c-.857 0-1.439 0-1.889.038"/></symbol>
|
|
218
218
|
<symbol id="logo-afterpay" viewBox="0 0 24 24" class="pdsicon"><path d="M21.458 6.213 18.442 4.43 15.29 2.649c-2.056-1.234-4.66.274-4.66 2.604v.411c0 .274.136.411.273.549l1.371.822c.548.274 1.097 0 1.097-.548v-.96c0-.411.41-.685.822-.411l5.757 3.29a.642.642 0 0 1 0 1.096l-2.878 1.645-2.879 1.508c-.411.137-.822-.137-.822-.548v-.412c0-2.467-2.605-3.975-4.66-2.741l-3.153 1.782-3.016 1.782a3.087 3.087 0 0 0 0 5.346l3.016 1.782 3.152 1.781c2.056 1.097 4.66-.41 4.66-2.74v-.412c0-.274-.136-.411-.273-.548l-1.371-.823c-.548-.274-1.097 0-1.097.548v.96c0 .411-.41.685-.822.411l-5.757-3.29c-.274-.137-.274-.685.137-.96l5.757-3.289c.274-.137.685.137.685.548v.412c0 2.33 2.605 3.838 4.66 2.604l3.153-1.782 3.016-1.782c2.056-.96 2.056-3.975 0-5.071"/></symbol>
|
|
219
|
-
<symbol id="logo-facebook" viewBox="0 0 24 24" class="pdsicon"><path d="
|
|
220
|
-
<symbol id="logo-facebook-round" viewBox="0 0 24 24" class="pdsicon"><path d="M23 12.
|
|
219
|
+
<symbol id="logo-facebook" viewBox="0 0 24 24" class="pdsicon"><path d="m9.105 23-.032-10H5V9h4.073V6.5c0-3.711 2.34-5.5 5.71-5.5 1.616 0 3.003.118 3.408.17v3.88h-2.338c-1.833 0-2.188.856-2.188 2.112V9H19l-2.036 4h-3.3v10z"/></symbol>
|
|
220
|
+
<symbol id="logo-facebook-round" viewBox="0 0 24 24" class="pdsicon"><path d="M23 12.067c0-2.115-.603-4.186-1.736-5.967a11 11 0 0 0-4.66-4.084 10.94 10.94 0 0 0-11.75 1.637 11.07 11.07 0 0 0-3.38 5.204 11.13 11.13 0 0 0-.06 6.217 11.1 11.1 0 0 0 3.28 5.269A10.97 10.97 0 0 0 10.282 23v-7.734H7.488v-3.2h2.793V9.629c0-2.773 1.643-4.306 4.155-4.306a17 17 0 0 1 2.463.216v2.724H15.51a1.58 1.58 0 0 0-1.175.315 1.6 1.6 0 0 0-.617 1.414v2.076h3.048l-.488 3.2h-2.567V23a10.98 10.98 0 0 0 6.65-3.742A11.1 11.1 0 0 0 23 12.067"/></symbol>
|
|
221
221
|
<symbol id="logo-instagram" viewBox="0 0 24 24" class="pdsicon"><path fill-rule="evenodd" d="M12 2.982c2.937 0 3.285.011 4.445.064a6.1 6.1 0 0 1 2.042.379 3.4 3.4 0 0 1 1.265.823 3.4 3.4 0 0 1 .823 1.265 6.1 6.1 0 0 1 .379 2.042c.053 1.16.064 1.508.064 4.445s-.011 3.285-.064 4.445a6.1 6.1 0 0 1-.379 2.042 3.64 3.64 0 0 1-2.088 2.088 6.1 6.1 0 0 1-2.042.379c-1.16.053-1.508.064-4.445.064s-3.285-.011-4.445-.064a6.1 6.1 0 0 1-2.042-.379 3.4 3.4 0 0 1-1.265-.823 3.4 3.4 0 0 1-.823-1.265 6.1 6.1 0 0 1-.379-2.042c-.053-1.16-.064-1.508-.064-4.445s.011-3.285.064-4.445a6.1 6.1 0 0 1 .379-2.042 3.4 3.4 0 0 1 .823-1.265 3.4 3.4 0 0 1 1.265-.823 6.1 6.1 0 0 1 2.042-.379c1.16-.053 1.508-.064 4.445-.064M12 1c-2.987 0-3.362.013-4.535.066a8.1 8.1 0 0 0-2.67.511A5.63 5.63 0 0 0 1.577 4.8a8.1 8.1 0 0 0-.511 2.67C1.013 8.638 1 9.013 1 12s.013 3.362.066 4.535c.019.912.192 1.815.511 2.67A5.63 5.63 0 0 0 4.8 22.423c.855.32 1.758.492 2.67.511C8.638 22.987 9.013 23 12 23s3.362-.013 4.535-.066a8.1 8.1 0 0 0 2.67-.511 5.63 5.63 0 0 0 3.218-3.223c.32-.855.492-1.758.511-2.67.053-1.168.066-1.543.066-4.53s-.013-3.362-.066-4.535a8.1 8.1 0 0 0-.511-2.67A5.63 5.63 0 0 0 19.2 1.577a8.1 8.1 0 0 0-2.67-.511C15.362 1.013 14.987 1 12 1m0 5.351a5.65 5.65 0 1 0 0 11.298 5.65 5.65 0 0 0 0-11.298m0 9.316a3.667 3.667 0 1 1 0-7.335 3.667 3.667 0 0 1 0 7.335m7.192-9.539a1.32 1.32 0 1 1-2.64 0 1.32 1.32 0 0 1 2.64 0"/></symbol>
|
|
222
222
|
<symbol id="logo-linkedin" viewBox="0 0 24 24" class="pdsicon"><path d="M22.083 1H1.917C1.367 1 1 1.367 1 1.917v20.166c0 .55.367.917.917.917h20.166c.55 0 .917-.367.917-.917V1.917c0-.55-.367-.917-.917-.917M4.3 19.792V9.25h3.3v10.542zM5.858 7.783c-1.008 0-1.925-.825-1.925-1.925 0-1.008.825-1.925 1.925-1.925 1.009 0 1.925.825 1.925 1.925s-.825 1.925-1.925 1.925m13.934 12.009h-3.3v-5.134c0-1.191 0-2.75-1.65-2.75-1.742 0-1.925 1.284-1.925 2.659v5.225h-3.3V9.25h3.116v1.467c.459-.825 1.467-1.65 3.117-1.65 3.3 0 3.942 2.2 3.942 5.041z"/></symbol>
|
|
223
223
|
<symbol id="logo-snapchat" viewBox="0 0 24 24" class="pdsicon"><path d="M22.594 18.442c.718-.36.307-.564.102-.718-3.847-1.847-4.463-4.72-4.514-4.925-.052-.256-.052-.462.205-.77.308-.256 1.488-.974 1.847-1.23.564-.411.82-.77.615-1.283-.102-.308-.41-.41-.77-.41h-.307c-.616.153-1.18.461-1.539.512-.051.052-.103.052-.154.052-.154 0-.205-.103-.205-.308.051-.667.103-2 0-3.232-.103-1.693-.667-2.514-1.334-3.232C16.232 2.54 14.796 1 11.974 1 9.204 1 7.768 2.539 7.46 2.898c-.667.718-1.231 1.54-1.334 3.232-.154 1.231-.051 2.565 0 3.232 0 .205-.051.308-.256.308h-.103c-.36-.103-.923-.41-1.539-.565H3.92c-.359 0-.667.103-.77.462-.204.462.052.872.616 1.231.36.257 1.54 1.026 1.847 1.283.257.256.257.462.205.718-.051.205-.667 3.078-4.514 4.925-.205.154-.616.359.103.718 1.026.616 1.744.564 2.308.872.462.308.205.975.513 1.231.41.257 1.642-.051 3.232.462 1.334.462 2.155 1.693 4.566 1.693 2.36 0 3.18-1.231 4.514-1.693 1.59-.513 2.822-.205 3.232-.462.308-.256.051-.923.513-1.18.564-.359 1.282-.307 2.308-.923"/></symbol>
|
|
224
|
-
<symbol id="logo-tiktok" viewBox="0 0 24 24" class="pdsicon"><path d="
|
|
224
|
+
<symbol id="logo-tiktok" viewBox="0 0 24 24" class="pdsicon"><path d="M9.853 9.192v3.779a3.24 3.24 0 0 0-2.772.534 3.308 3.308 0 0 0-1.322 2.512 3 3 0 0 0 .865 2.3 2.95 2.95 0 0 0 2.29.856 2.92 2.92 0 0 0 2.31-.865 2.97 2.97 0 0 0 .844-2.333V1h3.71c.63 3.955 2.593 4.873 5.222 5.297v3.79a11.1 11.1 0 0 1-5.118-1.742v7.487c0 3.391-1.992 7.168-6.94 7.168a6.9 6.9 0 0 1-2.7-.56 7 7 0 0 1-2.273-1.572 7 7 0 0 1-1.49-2.336 7.1 7.1 0 0 1-.477-2.736c.03-.973.263-1.93.686-2.805a6.9 6.9 0 0 1 1.767-2.274 6.79 6.79 0 0 1 5.398-1.524"/></symbol>
|
|
225
225
|
<symbol id="logo-twitter" viewBox="0 0 24 24" class="pdsicon"><path fill-rule="evenodd" d="m15.945 23-5.55-7.91L3.449 23H.51l8.583-9.769L.509 1h7.546l5.23 7.455L19.84 1h2.939l-8.184 9.317L23.49 23zm3.273-2.23h-1.979L4.718 3.23h1.979l5.015 7.023.867 1.219z"/></symbol>
|
|
226
226
|
<symbol id="logo-twitter-x" viewBox="0 0 24 24" class="pdsicon"><path fill-rule="evenodd" d="m15.945 23-5.55-7.91L3.448 23H.51l8.582-9.769L.51 1h7.546l5.23 7.455L19.84 1h2.939l-8.184 9.317L23.49 23zm3.273-2.23h-1.979L4.718 3.23h1.978l5.015 7.023.868 1.219z"/></symbol>
|
|
227
227
|
<symbol id="logo-youtube" viewBox="0 0 24 24" class="pdsicon"><path d="M22.817 7.6s-.184-1.558-.917-2.2c-.825-.917-1.742-.917-2.2-.917C16.583 4.3 12 4.3 12 4.3s-4.583 0-7.7.183c-.458.092-1.375.092-2.2.917-.642.642-.917 2.2-.917 2.2S1 9.342 1 11.175v1.65c0 1.742.183 3.575.183 3.575s.184 1.558.917 2.2c.825.917 1.925.825 2.383.917C6.225 19.7 12 19.7 12 19.7s4.583 0 7.7-.275c.458-.092 1.375-.092 2.2-.917.642-.641.917-2.2.917-2.2S23 14.567 23 12.733v-1.65c0-1.741-.183-3.483-.183-3.483M9.708 14.842V8.7l5.959 3.117z"/></symbol>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="M23 12.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="M23 12.067c0-2.115-.603-4.186-1.736-5.967a11 11 0 0 0-4.66-4.084 10.94 10.94 0 0 0-11.75 1.637 11.07 11.07 0 0 0-3.38 5.204 11.13 11.13 0 0 0-.06 6.217 11.1 11.1 0 0 0 3.28 5.269A10.97 10.97 0 0 0 10.282 23v-7.734H7.488v-3.2h2.793V9.629c0-2.773 1.643-4.306 4.155-4.306a17 17 0 0 1 2.463.216v2.724H15.51a1.58 1.58 0 0 0-1.175.315 1.6 1.6 0 0 0-.617 1.414v2.076h3.048l-.488 3.2h-2.567V23a10.98 10.98 0 0 0 6.65-3.742A11.1 11.1 0 0 0 23 12.067"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="m9.105 23-.032-10H5V9h4.073V6.5c0-3.711 2.34-5.5 5.71-5.5 1.616 0 3.003.118 3.408.17v3.88h-2.338c-1.833 0-2.188.856-2.188 2.112V9H19l-2.036 4h-3.3v10z"/></svg>
|
package/dist/svg/logo-tiktok.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pdsicon"><path d="M9.853 9.192v3.779a3.24 3.24 0 0 0-2.772.534 3.308 3.308 0 0 0-1.322 2.512 3 3 0 0 0 .865 2.3 2.95 2.95 0 0 0 2.29.856 2.92 2.92 0 0 0 2.31-.865 2.97 2.97 0 0 0 .844-2.333V1h3.71c.63 3.955 2.593 4.873 5.222 5.297v3.79a11.1 11.1 0 0 1-5.118-1.742v7.487c0 3.391-1.992 7.168-6.94 7.168a6.9 6.9 0 0 1-2.7-.56 7 7 0 0 1-2.273-1.572 7 7 0 0 1-1.49-2.336 7.1 7.1 0 0 1-.477-2.736c.03-.973.263-1.93.686-2.805a6.9 6.9 0 0 1 1.767-2.274 6.79 6.79 0 0 1 5.398-1.524"/></svg>
|
|
@@ -11,8 +11,8 @@ export declare const isStr: (val: any) => val is string;
|
|
|
11
11
|
export declare const toLower: (val: string) => string;
|
|
12
12
|
/**
|
|
13
13
|
* Elements inside of web components sometimes need to inherit global attributes
|
|
14
|
-
* set on the host. For example, the inner input in `
|
|
15
|
-
* the `title` attribute that developers set directly on `
|
|
14
|
+
* set on the host. For example, the inner input in `pds-input` should inherit
|
|
15
|
+
* the `title` attribute that developers set directly on `pds-input`. This
|
|
16
16
|
* helper function should be called in componentWillLoad and assigned to a variable
|
|
17
17
|
* that is later used in the render function.
|
|
18
18
|
*
|
package/icons/index.d.ts
CHANGED
package/icons/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* pds-icons v8.
|
|
1
|
+
/* pds-icons v8.18.1, CommonJs */
|
|
2
2
|
|
|
3
3
|
exports.accessKey = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M8 9a7 7 0 1 1 6.06 6.937 14 14 0 0 0-.514-.062l-.01.008a9 9 0 0 0-.25.245l-1.579 1.58A1 1 0 0 1 11 18h-1v1a1 1 0 0 1-1 1H8v1a1 1 0 0 1-1 1H4.568c-.252 0-.498 0-.706-.017a2 2 0 0 1-.77-.201 2 2 0 0 1-.874-.874 2 2 0 0 1-.201-.77C2 19.93 2 19.684 2 19.432v-1.82c0-.19-.001-.43.055-.665a2 2 0 0 1 .24-.578c.126-.206.296-.375.43-.509l.036-.036 5.111-5.11c.126-.126.196-.197.245-.25l.008-.01-.003-.045c-.01-.103-.03-.244-.06-.469A7 7 0 0 1 8 9m0 9v-1a1 1 0 0 1 1-1h1.586l1.286-1.286.052-.053c.18-.18.398-.4.646-.539a1.8 1.8 0 0 1 .693-.234c.193-.027.382-.014.52 0 .145.014.324.038.525.065l.018.002q.33.045.674.045a5 5 0 1 0-4.955-4.326l.002.018c.027.201.051.38.065.524.014.14.027.328 0 .521-.038.265-.104.46-.234.693-.14.248-.359.466-.54.646l-.052.052-5.11 5.11a6 6 0 0 0-.171.175l-.002.002v.004a6 6 0 0 0-.003.244V19.4a8 8 0 0 0 .011.588l.014.002c.116.01.278.01.575.01H6v-1a1 1 0 0 1 1-1zm6-11a1 1 0 0 1 1-1c.766 0 1.536.293 2.121.879.586.585.879 1.355.879 2.12A1 1 0 1 1 16 9a1 1 0 0 0-.293-.707A1 1 0 0 0 15 8a1 1 0 0 1-1-1'/></svg>"
|
|
4
4
|
exports.add = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M12 4a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2h-6v6a1 1 0 1 1-2 0v-6H5a1 1 0 1 1 0-2h6V5a1 1 0 0 1 1-1'/></svg>"
|
|
@@ -206,12 +206,12 @@ exports.location = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/s
|
|
|
206
206
|
exports.lock = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M6 8a6 6 0 1 1 12 0v2.15c.283.062.554.152.816.286a4 4 0 0 1 1.748 1.748c.247.485.346 1.002.392 1.564.044.541.044 1.206.044 2.01v.483c0 .805 0 1.47-.044 2.01-.046.563-.145 1.08-.392 1.565a4 4 0 0 1-1.748 1.748c-.485.247-1.002.346-1.564.392-.541.044-1.206.044-2.01.044H8.758c-.805 0-1.47 0-2.01-.044-.563-.046-1.08-.145-1.565-.392a4 4 0 0 1-1.748-1.748c-.247-.485-.346-1.002-.392-1.564C3 17.71 3 17.046 3 16.242v-.483c0-.805 0-1.47.044-2.01.046-.563.145-1.08.392-1.565a4 4 0 0 1 1.748-1.748c.262-.134.533-.224.816-.286zm2 2.002q.356-.003.759-.002h6.482q.403 0 .759.002V8a4 4 0 0 0-8 0zm-1.089 2.036c-.438.035-.663.1-.819.18a2 2 0 0 0-.874.874c-.08.156-.145.38-.18.819C5 14.361 5 14.943 5 15.8v.4c0 .857 0 1.439.038 1.889.035.438.1.663.18.819a2 2 0 0 0 .874.874c.156.08.38.145.819.18C7.361 20 7.943 20 8.8 20h6.4c.857 0 1.439 0 1.889-.038.438-.035.663-.1.819-.18a2 2 0 0 0 .874-.874c.08-.156.145-.38.18-.819.037-.45.038-1.032.038-1.889v-.4c0-.857 0-1.439-.038-1.889-.035-.438-.1-.663-.18-.819a2 2 0 0 0-.874-.874c-.156-.08-.38-.145-.819-.18C16.639 12 16.057 12 15.2 12H8.8c-.857 0-1.439 0-1.889.038'/></svg>"
|
|
207
207
|
exports.lockAlt = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M6 8a6 6 0 1 1 12 0v2.15c.283.062.554.152.816.286a4 4 0 0 1 1.748 1.748c.247.485.346 1.002.392 1.564.044.541.044 1.206.044 2.01v.483c0 .805 0 1.47-.044 2.01-.046.563-.145 1.08-.392 1.565a4 4 0 0 1-1.748 1.748c-.485.247-1.002.346-1.564.392-.541.044-1.206.044-2.01.044H8.758c-.805 0-1.47 0-2.01-.044-.563-.046-1.08-.145-1.565-.392a4 4 0 0 1-1.748-1.748c-.247-.485-.346-1.002-.392-1.564C3 17.71 3 17.046 3 16.242v-.483c0-.805 0-1.47.044-2.01.046-.563.145-1.08.392-1.565a4 4 0 0 1 1.748-1.748c.262-.134.533-.224.816-.286zm2 2.002q.356-.003.759-.002h6.482q.403 0 .759.002V8a4 4 0 0 0-8 0zm-1.089 2.036c-.438.035-.663.1-.819.18a2 2 0 0 0-.874.874c-.08.156-.145.38-.18.819C5 14.361 5 14.943 5 15.8v.4c0 .857 0 1.439.038 1.889.035.438.1.663.18.819a2 2 0 0 0 .874.874c.156.08.38.145.819.18C7.361 20 7.943 20 8.8 20h6.4c.857 0 1.439 0 1.889-.038.438-.035.663-.1.819-.18a2 2 0 0 0 .874-.874c.08-.156.145-.38.18-.819.037-.45.038-1.032.038-1.889v-.4c0-.857 0-1.439-.038-1.889-.035-.438-.1-.663-.18-.819a2 2 0 0 0-.874-.874c-.156-.08-.38-.145-.819-.18C16.639 12 16.057 12 15.2 12H8.8c-.857 0-1.439 0-1.889.038'/></svg>"
|
|
208
208
|
exports.logoAfterpay = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M21.458 6.213 18.442 4.43 15.29 2.649c-2.056-1.234-4.66.274-4.66 2.604v.411c0 .274.136.411.273.549l1.371.822c.548.274 1.097 0 1.097-.548v-.96c0-.411.41-.685.822-.411l5.757 3.29a.642.642 0 0 1 0 1.096l-2.878 1.645-2.879 1.508c-.411.137-.822-.137-.822-.548v-.412c0-2.467-2.605-3.975-4.66-2.741l-3.153 1.782-3.016 1.782a3.087 3.087 0 0 0 0 5.346l3.016 1.782 3.152 1.781c2.056 1.097 4.66-.41 4.66-2.74v-.412c0-.274-.136-.411-.273-.548l-1.371-.823c-.548-.274-1.097 0-1.097.548v.96c0 .411-.41.685-.822.411l-5.757-3.29c-.274-.137-.274-.685.137-.96l5.757-3.289c.274-.137.685.137.685.548v.412c0 2.33 2.605 3.838 4.66 2.604l3.153-1.782 3.016-1.782c2.056-.96 2.056-3.975 0-5.071'/></svg>"
|
|
209
|
-
exports.logoFacebook = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='
|
|
210
|
-
exports.logoFacebookRound = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M23 12.
|
|
209
|
+
exports.logoFacebook = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='m9.105 23-.032-10H5V9h4.073V6.5c0-3.711 2.34-5.5 5.71-5.5 1.616 0 3.003.118 3.408.17v3.88h-2.338c-1.833 0-2.188.856-2.188 2.112V9H19l-2.036 4h-3.3v10z'/></svg>"
|
|
210
|
+
exports.logoFacebookRound = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M23 12.067c0-2.115-.603-4.186-1.736-5.967a11 11 0 0 0-4.66-4.084 10.94 10.94 0 0 0-11.75 1.637 11.07 11.07 0 0 0-3.38 5.204 11.13 11.13 0 0 0-.06 6.217 11.1 11.1 0 0 0 3.28 5.269A10.97 10.97 0 0 0 10.282 23v-7.734H7.488v-3.2h2.793V9.629c0-2.773 1.643-4.306 4.155-4.306a17 17 0 0 1 2.463.216v2.724H15.51a1.58 1.58 0 0 0-1.175.315 1.6 1.6 0 0 0-.617 1.414v2.076h3.048l-.488 3.2h-2.567V23a10.98 10.98 0 0 0 6.65-3.742A11.1 11.1 0 0 0 23 12.067'/></svg>"
|
|
211
211
|
exports.logoInstagram = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M12 2.982c2.937 0 3.285.011 4.445.064a6.1 6.1 0 0 1 2.042.379 3.4 3.4 0 0 1 1.265.823 3.4 3.4 0 0 1 .823 1.265 6.1 6.1 0 0 1 .379 2.042c.053 1.16.064 1.508.064 4.445s-.011 3.285-.064 4.445a6.1 6.1 0 0 1-.379 2.042 3.64 3.64 0 0 1-2.088 2.088 6.1 6.1 0 0 1-2.042.379c-1.16.053-1.508.064-4.445.064s-3.285-.011-4.445-.064a6.1 6.1 0 0 1-2.042-.379 3.4 3.4 0 0 1-1.265-.823 3.4 3.4 0 0 1-.823-1.265 6.1 6.1 0 0 1-.379-2.042c-.053-1.16-.064-1.508-.064-4.445s.011-3.285.064-4.445a6.1 6.1 0 0 1 .379-2.042 3.4 3.4 0 0 1 .823-1.265 3.4 3.4 0 0 1 1.265-.823 6.1 6.1 0 0 1 2.042-.379c1.16-.053 1.508-.064 4.445-.064M12 1c-2.987 0-3.362.013-4.535.066a8.1 8.1 0 0 0-2.67.511A5.63 5.63 0 0 0 1.577 4.8a8.1 8.1 0 0 0-.511 2.67C1.013 8.638 1 9.013 1 12s.013 3.362.066 4.535c.019.912.192 1.815.511 2.67A5.63 5.63 0 0 0 4.8 22.423c.855.32 1.758.492 2.67.511C8.638 22.987 9.013 23 12 23s3.362-.013 4.535-.066a8.1 8.1 0 0 0 2.67-.511 5.63 5.63 0 0 0 3.218-3.223c.32-.855.492-1.758.511-2.67.053-1.168.066-1.543.066-4.53s-.013-3.362-.066-4.535a8.1 8.1 0 0 0-.511-2.67A5.63 5.63 0 0 0 19.2 1.577a8.1 8.1 0 0 0-2.67-.511C15.362 1.013 14.987 1 12 1m0 5.351a5.65 5.65 0 1 0 0 11.298 5.65 5.65 0 0 0 0-11.298m0 9.316a3.667 3.667 0 1 1 0-7.335 3.667 3.667 0 0 1 0 7.335m7.192-9.539a1.32 1.32 0 1 1-2.64 0 1.32 1.32 0 0 1 2.64 0'/></svg>"
|
|
212
212
|
exports.logoLinkedin = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M22.083 1H1.917C1.367 1 1 1.367 1 1.917v20.166c0 .55.367.917.917.917h20.166c.55 0 .917-.367.917-.917V1.917c0-.55-.367-.917-.917-.917M4.3 19.792V9.25h3.3v10.542zM5.858 7.783c-1.008 0-1.925-.825-1.925-1.925 0-1.008.825-1.925 1.925-1.925 1.009 0 1.925.825 1.925 1.925s-.825 1.925-1.925 1.925m13.934 12.009h-3.3v-5.134c0-1.191 0-2.75-1.65-2.75-1.742 0-1.925 1.284-1.925 2.659v5.225h-3.3V9.25h3.116v1.467c.459-.825 1.467-1.65 3.117-1.65 3.3 0 3.942 2.2 3.942 5.041z'/></svg>"
|
|
213
213
|
exports.logoSnapchat = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M22.594 18.442c.718-.36.307-.564.102-.718-3.847-1.847-4.463-4.72-4.514-4.925-.052-.256-.052-.462.205-.77.308-.256 1.488-.974 1.847-1.23.564-.411.82-.77.615-1.283-.102-.308-.41-.41-.77-.41h-.307c-.616.153-1.18.461-1.539.512-.051.052-.103.052-.154.052-.154 0-.205-.103-.205-.308.051-.667.103-2 0-3.232-.103-1.693-.667-2.514-1.334-3.232C16.232 2.54 14.796 1 11.974 1 9.204 1 7.768 2.539 7.46 2.898c-.667.718-1.231 1.54-1.334 3.232-.154 1.231-.051 2.565 0 3.232 0 .205-.051.308-.256.308h-.103c-.36-.103-.923-.41-1.539-.565H3.92c-.359 0-.667.103-.77.462-.204.462.052.872.616 1.231.36.257 1.54 1.026 1.847 1.283.257.256.257.462.205.718-.051.205-.667 3.078-4.514 4.925-.205.154-.616.359.103.718 1.026.616 1.744.564 2.308.872.462.308.205.975.513 1.231.41.257 1.642-.051 3.232.462 1.334.462 2.155 1.693 4.566 1.693 2.36 0 3.18-1.231 4.514-1.693 1.59-.513 2.822-.205 3.232-.462.308-.256.051-.923.513-1.18.564-.359 1.282-.307 2.308-.923'/></svg>"
|
|
214
|
-
exports.logoTiktok = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='
|
|
214
|
+
exports.logoTiktok = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M9.853 9.192v3.779a3.24 3.24 0 0 0-2.772.534 3.308 3.308 0 0 0-1.322 2.512 3 3 0 0 0 .865 2.3 2.95 2.95 0 0 0 2.29.856 2.92 2.92 0 0 0 2.31-.865 2.97 2.97 0 0 0 .844-2.333V1h3.71c.63 3.955 2.593 4.873 5.222 5.297v3.79a11.1 11.1 0 0 1-5.118-1.742v7.487c0 3.391-1.992 7.168-6.94 7.168a6.9 6.9 0 0 1-2.7-.56 7 7 0 0 1-2.273-1.572 7 7 0 0 1-1.49-2.336 7.1 7.1 0 0 1-.477-2.736c.03-.973.263-1.93.686-2.805a6.9 6.9 0 0 1 1.767-2.274 6.79 6.79 0 0 1 5.398-1.524'/></svg>"
|
|
215
215
|
exports.logoTwitter = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='m15.945 23-5.55-7.91L3.449 23H.51l8.583-9.769L.509 1h7.546l5.23 7.455L19.84 1h2.939l-8.184 9.317L23.49 23zm3.273-2.23h-1.979L4.718 3.23h1.979l5.015 7.023.867 1.219z'/></svg>"
|
|
216
216
|
exports.logoTwitterX = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='m15.945 23-5.55-7.91L3.448 23H.51l8.582-9.769L.51 1h7.546l5.23 7.455L19.84 1h2.939l-8.184 9.317L23.49 23zm3.273-2.23h-1.979L4.718 3.23h1.978l5.015 7.023.868 1.219z'/></svg>"
|
|
217
217
|
exports.logoYoutube = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M22.817 7.6s-.184-1.558-.917-2.2c-.825-.917-1.742-.917-2.2-.917C16.583 4.3 12 4.3 12 4.3s-4.583 0-7.7.183c-.458.092-1.375.092-2.2.917-.642.642-.917 2.2-.917 2.2S1 9.342 1 11.175v1.65c0 1.742.183 3.575.183 3.575s.184 1.558.917 2.2c.825.917 1.925.825 2.383.917C6.225 19.7 12 19.7 12 19.7s4.583 0 7.7-.275c.458-.092 1.375-.092 2.2-.917.642-.641.917-2.2.917-2.2S23 14.567 23 12.733v-1.65c0-1.741-.183-3.483-.183-3.483M9.708 14.842V8.7l5.959 3.117z'/></svg>"
|
package/icons/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* pds-icons v8.
|
|
1
|
+
/* pds-icons v8.18.1, ES Modules */
|
|
2
2
|
|
|
3
3
|
export const accessKey = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M8 9a7 7 0 1 1 6.06 6.937 14 14 0 0 0-.514-.062l-.01.008a9 9 0 0 0-.25.245l-1.579 1.58A1 1 0 0 1 11 18h-1v1a1 1 0 0 1-1 1H8v1a1 1 0 0 1-1 1H4.568c-.252 0-.498 0-.706-.017a2 2 0 0 1-.77-.201 2 2 0 0 1-.874-.874 2 2 0 0 1-.201-.77C2 19.93 2 19.684 2 19.432v-1.82c0-.19-.001-.43.055-.665a2 2 0 0 1 .24-.578c.126-.206.296-.375.43-.509l.036-.036 5.111-5.11c.126-.126.196-.197.245-.25l.008-.01-.003-.045c-.01-.103-.03-.244-.06-.469A7 7 0 0 1 8 9m0 9v-1a1 1 0 0 1 1-1h1.586l1.286-1.286.052-.053c.18-.18.398-.4.646-.539a1.8 1.8 0 0 1 .693-.234c.193-.027.382-.014.52 0 .145.014.324.038.525.065l.018.002q.33.045.674.045a5 5 0 1 0-4.955-4.326l.002.018c.027.201.051.38.065.524.014.14.027.328 0 .521-.038.265-.104.46-.234.693-.14.248-.359.466-.54.646l-.052.052-5.11 5.11a6 6 0 0 0-.171.175l-.002.002v.004a6 6 0 0 0-.003.244V19.4a8 8 0 0 0 .011.588l.014.002c.116.01.278.01.575.01H6v-1a1 1 0 0 1 1-1zm6-11a1 1 0 0 1 1-1c.766 0 1.536.293 2.121.879.586.585.879 1.355.879 2.12A1 1 0 1 1 16 9a1 1 0 0 0-.293-.707A1 1 0 0 0 15 8a1 1 0 0 1-1-1'/></svg>"
|
|
4
4
|
export const add = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M12 4a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2h-6v6a1 1 0 1 1-2 0v-6H5a1 1 0 1 1 0-2h6V5a1 1 0 0 1 1-1'/></svg>"
|
|
@@ -206,12 +206,12 @@ export const location = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2
|
|
|
206
206
|
export const lock = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M6 8a6 6 0 1 1 12 0v2.15c.283.062.554.152.816.286a4 4 0 0 1 1.748 1.748c.247.485.346 1.002.392 1.564.044.541.044 1.206.044 2.01v.483c0 .805 0 1.47-.044 2.01-.046.563-.145 1.08-.392 1.565a4 4 0 0 1-1.748 1.748c-.485.247-1.002.346-1.564.392-.541.044-1.206.044-2.01.044H8.758c-.805 0-1.47 0-2.01-.044-.563-.046-1.08-.145-1.565-.392a4 4 0 0 1-1.748-1.748c-.247-.485-.346-1.002-.392-1.564C3 17.71 3 17.046 3 16.242v-.483c0-.805 0-1.47.044-2.01.046-.563.145-1.08.392-1.565a4 4 0 0 1 1.748-1.748c.262-.134.533-.224.816-.286zm2 2.002q.356-.003.759-.002h6.482q.403 0 .759.002V8a4 4 0 0 0-8 0zm-1.089 2.036c-.438.035-.663.1-.819.18a2 2 0 0 0-.874.874c-.08.156-.145.38-.18.819C5 14.361 5 14.943 5 15.8v.4c0 .857 0 1.439.038 1.889.035.438.1.663.18.819a2 2 0 0 0 .874.874c.156.08.38.145.819.18C7.361 20 7.943 20 8.8 20h6.4c.857 0 1.439 0 1.889-.038.438-.035.663-.1.819-.18a2 2 0 0 0 .874-.874c.08-.156.145-.38.18-.819.037-.45.038-1.032.038-1.889v-.4c0-.857 0-1.439-.038-1.889-.035-.438-.1-.663-.18-.819a2 2 0 0 0-.874-.874c-.156-.08-.38-.145-.819-.18C16.639 12 16.057 12 15.2 12H8.8c-.857 0-1.439 0-1.889.038'/></svg>"
|
|
207
207
|
export const lockAlt = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M6 8a6 6 0 1 1 12 0v2.15c.283.062.554.152.816.286a4 4 0 0 1 1.748 1.748c.247.485.346 1.002.392 1.564.044.541.044 1.206.044 2.01v.483c0 .805 0 1.47-.044 2.01-.046.563-.145 1.08-.392 1.565a4 4 0 0 1-1.748 1.748c-.485.247-1.002.346-1.564.392-.541.044-1.206.044-2.01.044H8.758c-.805 0-1.47 0-2.01-.044-.563-.046-1.08-.145-1.565-.392a4 4 0 0 1-1.748-1.748c-.247-.485-.346-1.002-.392-1.564C3 17.71 3 17.046 3 16.242v-.483c0-.805 0-1.47.044-2.01.046-.563.145-1.08.392-1.565a4 4 0 0 1 1.748-1.748c.262-.134.533-.224.816-.286zm2 2.002q.356-.003.759-.002h6.482q.403 0 .759.002V8a4 4 0 0 0-8 0zm-1.089 2.036c-.438.035-.663.1-.819.18a2 2 0 0 0-.874.874c-.08.156-.145.38-.18.819C5 14.361 5 14.943 5 15.8v.4c0 .857 0 1.439.038 1.889.035.438.1.663.18.819a2 2 0 0 0 .874.874c.156.08.38.145.819.18C7.361 20 7.943 20 8.8 20h6.4c.857 0 1.439 0 1.889-.038.438-.035.663-.1.819-.18a2 2 0 0 0 .874-.874c.08-.156.145-.38.18-.819.037-.45.038-1.032.038-1.889v-.4c0-.857 0-1.439-.038-1.889-.035-.438-.1-.663-.18-.819a2 2 0 0 0-.874-.874c-.156-.08-.38-.145-.819-.18C16.639 12 16.057 12 15.2 12H8.8c-.857 0-1.439 0-1.889.038'/></svg>"
|
|
208
208
|
export const logoAfterpay = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M21.458 6.213 18.442 4.43 15.29 2.649c-2.056-1.234-4.66.274-4.66 2.604v.411c0 .274.136.411.273.549l1.371.822c.548.274 1.097 0 1.097-.548v-.96c0-.411.41-.685.822-.411l5.757 3.29a.642.642 0 0 1 0 1.096l-2.878 1.645-2.879 1.508c-.411.137-.822-.137-.822-.548v-.412c0-2.467-2.605-3.975-4.66-2.741l-3.153 1.782-3.016 1.782a3.087 3.087 0 0 0 0 5.346l3.016 1.782 3.152 1.781c2.056 1.097 4.66-.41 4.66-2.74v-.412c0-.274-.136-.411-.273-.548l-1.371-.823c-.548-.274-1.097 0-1.097.548v.96c0 .411-.41.685-.822.411l-5.757-3.29c-.274-.137-.274-.685.137-.96l5.757-3.289c.274-.137.685.137.685.548v.412c0 2.33 2.605 3.838 4.66 2.604l3.153-1.782 3.016-1.782c2.056-.96 2.056-3.975 0-5.071'/></svg>"
|
|
209
|
-
export const logoFacebook = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='
|
|
210
|
-
export const logoFacebookRound = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M23 12.
|
|
209
|
+
export const logoFacebook = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='m9.105 23-.032-10H5V9h4.073V6.5c0-3.711 2.34-5.5 5.71-5.5 1.616 0 3.003.118 3.408.17v3.88h-2.338c-1.833 0-2.188.856-2.188 2.112V9H19l-2.036 4h-3.3v10z'/></svg>"
|
|
210
|
+
export const logoFacebookRound = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M23 12.067c0-2.115-.603-4.186-1.736-5.967a11 11 0 0 0-4.66-4.084 10.94 10.94 0 0 0-11.75 1.637 11.07 11.07 0 0 0-3.38 5.204 11.13 11.13 0 0 0-.06 6.217 11.1 11.1 0 0 0 3.28 5.269A10.97 10.97 0 0 0 10.282 23v-7.734H7.488v-3.2h2.793V9.629c0-2.773 1.643-4.306 4.155-4.306a17 17 0 0 1 2.463.216v2.724H15.51a1.58 1.58 0 0 0-1.175.315 1.6 1.6 0 0 0-.617 1.414v2.076h3.048l-.488 3.2h-2.567V23a10.98 10.98 0 0 0 6.65-3.742A11.1 11.1 0 0 0 23 12.067'/></svg>"
|
|
211
211
|
export const logoInstagram = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M12 2.982c2.937 0 3.285.011 4.445.064a6.1 6.1 0 0 1 2.042.379 3.4 3.4 0 0 1 1.265.823 3.4 3.4 0 0 1 .823 1.265 6.1 6.1 0 0 1 .379 2.042c.053 1.16.064 1.508.064 4.445s-.011 3.285-.064 4.445a6.1 6.1 0 0 1-.379 2.042 3.64 3.64 0 0 1-2.088 2.088 6.1 6.1 0 0 1-2.042.379c-1.16.053-1.508.064-4.445.064s-3.285-.011-4.445-.064a6.1 6.1 0 0 1-2.042-.379 3.4 3.4 0 0 1-1.265-.823 3.4 3.4 0 0 1-.823-1.265 6.1 6.1 0 0 1-.379-2.042c-.053-1.16-.064-1.508-.064-4.445s.011-3.285.064-4.445a6.1 6.1 0 0 1 .379-2.042 3.4 3.4 0 0 1 .823-1.265 3.4 3.4 0 0 1 1.265-.823 6.1 6.1 0 0 1 2.042-.379c1.16-.053 1.508-.064 4.445-.064M12 1c-2.987 0-3.362.013-4.535.066a8.1 8.1 0 0 0-2.67.511A5.63 5.63 0 0 0 1.577 4.8a8.1 8.1 0 0 0-.511 2.67C1.013 8.638 1 9.013 1 12s.013 3.362.066 4.535c.019.912.192 1.815.511 2.67A5.63 5.63 0 0 0 4.8 22.423c.855.32 1.758.492 2.67.511C8.638 22.987 9.013 23 12 23s3.362-.013 4.535-.066a8.1 8.1 0 0 0 2.67-.511 5.63 5.63 0 0 0 3.218-3.223c.32-.855.492-1.758.511-2.67.053-1.168.066-1.543.066-4.53s-.013-3.362-.066-4.535a8.1 8.1 0 0 0-.511-2.67A5.63 5.63 0 0 0 19.2 1.577a8.1 8.1 0 0 0-2.67-.511C15.362 1.013 14.987 1 12 1m0 5.351a5.65 5.65 0 1 0 0 11.298 5.65 5.65 0 0 0 0-11.298m0 9.316a3.667 3.667 0 1 1 0-7.335 3.667 3.667 0 0 1 0 7.335m7.192-9.539a1.32 1.32 0 1 1-2.64 0 1.32 1.32 0 0 1 2.64 0'/></svg>"
|
|
212
212
|
export const logoLinkedin = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M22.083 1H1.917C1.367 1 1 1.367 1 1.917v20.166c0 .55.367.917.917.917h20.166c.55 0 .917-.367.917-.917V1.917c0-.55-.367-.917-.917-.917M4.3 19.792V9.25h3.3v10.542zM5.858 7.783c-1.008 0-1.925-.825-1.925-1.925 0-1.008.825-1.925 1.925-1.925 1.009 0 1.925.825 1.925 1.925s-.825 1.925-1.925 1.925m13.934 12.009h-3.3v-5.134c0-1.191 0-2.75-1.65-2.75-1.742 0-1.925 1.284-1.925 2.659v5.225h-3.3V9.25h3.116v1.467c.459-.825 1.467-1.65 3.117-1.65 3.3 0 3.942 2.2 3.942 5.041z'/></svg>"
|
|
213
213
|
export const logoSnapchat = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M22.594 18.442c.718-.36.307-.564.102-.718-3.847-1.847-4.463-4.72-4.514-4.925-.052-.256-.052-.462.205-.77.308-.256 1.488-.974 1.847-1.23.564-.411.82-.77.615-1.283-.102-.308-.41-.41-.77-.41h-.307c-.616.153-1.18.461-1.539.512-.051.052-.103.052-.154.052-.154 0-.205-.103-.205-.308.051-.667.103-2 0-3.232-.103-1.693-.667-2.514-1.334-3.232C16.232 2.54 14.796 1 11.974 1 9.204 1 7.768 2.539 7.46 2.898c-.667.718-1.231 1.54-1.334 3.232-.154 1.231-.051 2.565 0 3.232 0 .205-.051.308-.256.308h-.103c-.36-.103-.923-.41-1.539-.565H3.92c-.359 0-.667.103-.77.462-.204.462.052.872.616 1.231.36.257 1.54 1.026 1.847 1.283.257.256.257.462.205.718-.051.205-.667 3.078-4.514 4.925-.205.154-.616.359.103.718 1.026.616 1.744.564 2.308.872.462.308.205.975.513 1.231.41.257 1.642-.051 3.232.462 1.334.462 2.155 1.693 4.566 1.693 2.36 0 3.18-1.231 4.514-1.693 1.59-.513 2.822-.205 3.232-.462.308-.256.051-.923.513-1.18.564-.359 1.282-.307 2.308-.923'/></svg>"
|
|
214
|
-
export const logoTiktok = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='
|
|
214
|
+
export const logoTiktok = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M9.853 9.192v3.779a3.24 3.24 0 0 0-2.772.534 3.308 3.308 0 0 0-1.322 2.512 3 3 0 0 0 .865 2.3 2.95 2.95 0 0 0 2.29.856 2.92 2.92 0 0 0 2.31-.865 2.97 2.97 0 0 0 .844-2.333V1h3.71c.63 3.955 2.593 4.873 5.222 5.297v3.79a11.1 11.1 0 0 1-5.118-1.742v7.487c0 3.391-1.992 7.168-6.94 7.168a6.9 6.9 0 0 1-2.7-.56 7 7 0 0 1-2.273-1.572 7 7 0 0 1-1.49-2.336 7.1 7.1 0 0 1-.477-2.736c.03-.973.263-1.93.686-2.805a6.9 6.9 0 0 1 1.767-2.274 6.79 6.79 0 0 1 5.398-1.524'/></svg>"
|
|
215
215
|
export const logoTwitter = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='m15.945 23-5.55-7.91L3.449 23H.51l8.583-9.769L.509 1h7.546l5.23 7.455L19.84 1h2.939l-8.184 9.317L23.49 23zm3.273-2.23h-1.979L4.718 3.23h1.979l5.015 7.023.867 1.219z'/></svg>"
|
|
216
216
|
export const logoTwitterX = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='m15.945 23-5.55-7.91L3.448 23H.51l8.582-9.769L.51 1h7.546l5.23 7.455L19.84 1h2.939l-8.184 9.317L23.49 23zm3.273-2.23h-1.979L4.718 3.23h1.978l5.015 7.023.868 1.219z'/></svg>"
|
|
217
217
|
export const logoYoutube = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path d='M22.817 7.6s-.184-1.558-.917-2.2c-.825-.917-1.742-.917-2.2-.917C16.583 4.3 12 4.3 12 4.3s-4.583 0-7.7.183c-.458.092-1.375.092-2.2.917-.642.642-.917 2.2-.917 2.2S1 9.342 1 11.175v1.65c0 1.742.183 3.575.183 3.575s.184 1.558.917 2.2c.825.917 1.925.825 2.383.917C6.225 19.7 12 19.7 12 19.7s4.583 0 7.7-.275c.458-.092 1.375-.092 2.2-.917.642-.641.917-2.2.917-2.2S23 14.567 23 12.733v-1.65c0-1.741-.183-3.483-.183-3.483M9.708 14.842V8.7l5.959 3.117z'/></svg>"
|
package/icons/package.json
CHANGED
package/package.json
CHANGED
|
File without changes
|