@pine-ds/icons 3.6.0 → 3.7.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.
Files changed (35) hide show
  1. package/components/pds-icon.js +1 -1
  2. package/components/pds-icon.js.map +1 -1
  3. package/dist/cheatsheet.html +5 -5
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/pds-icon.cjs.entry.js +1 -1
  6. package/dist/cjs/{utils-868de787.js → utils-c1c85b71.js} +2 -2
  7. package/dist/cjs/{utils-868de787.js.map → utils-c1c85b71.js.map} +1 -1
  8. package/dist/collection/components/pds-icon/assetPath.js +1 -1
  9. package/dist/collection/components/pds-icon/assetPath.js.map +1 -1
  10. package/dist/collection/components/pds-icon/svg/heading-small.svg +1 -1
  11. package/dist/collection/components/pds-icon/svg/user-filled.svg +1 -1
  12. package/dist/docs.json +1 -1
  13. package/dist/esm/index.js +1 -1
  14. package/dist/esm/pds-icon.entry.js +1 -1
  15. package/dist/esm/{utils-529a5e56.js → utils-bff5219d.js} +2 -2
  16. package/dist/esm/{utils-529a5e56.js.map → utils-bff5219d.js.map} +1 -1
  17. package/dist/pds-icons/index.esm.js +1 -1
  18. package/dist/pds-icons/p-60645170.js +2 -0
  19. package/dist/pds-icons/p-60645170.js.map +1 -0
  20. package/dist/pds-icons/{p-982dfca2.entry.js → p-91ce3f72.entry.js} +2 -2
  21. package/dist/pds-icons/pds-icons.esm.js +1 -1
  22. package/dist/pds-icons/svg/heading-small.svg +1 -1
  23. package/dist/pds-icons/svg/user-filled.svg +1 -1
  24. package/dist/pds-icons.json +1 -1
  25. package/dist/pds-icons.symbols.svg +3 -3
  26. package/dist/svg/heading-small.svg +1 -1
  27. package/dist/svg/user-filled.svg +1 -1
  28. package/icons/index.d.ts +1 -1
  29. package/icons/index.js +3 -3
  30. package/icons/index.mjs +3 -3
  31. package/icons/package.json +1 -1
  32. package/package.json +1 -1
  33. package/dist/pds-icons/p-f954ed14.js +0 -2
  34. package/dist/pds-icons/p-f954ed14.js.map +0 -1
  35. /package/dist/pds-icons/{p-982dfca2.entry.js.map → p-91ce3f72.entry.js.map} +0 -0
@@ -22,7 +22,7 @@ const getAssetPath = (path) => {
22
22
  if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {
23
23
  missingAssetPathWarning = true;
24
24
  console.warn(`
25
- Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation:
25
+ Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs
26
26
  `);
27
27
  }
28
28
  let assetPath = path;
@@ -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,IAAI,CAAC,UAAU,CAAE,IAAI,CAAC,EAAG;QAC5B,SAAS,GAAG,IAAI,C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,SAAS,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,SAAS,GAAG,IAAI,EAC/E,IAAI,EAAC,KAAK,EACV,KAAK,EAAE,KAAK,EACZ,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 asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation:\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 contain: strict;\n display: inline-block;\n fill: currentColor;\n height: 1em;\n width: 1em;\n\n .pdsicon {\n fill: currentColor;\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 componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\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('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 const style = {\n height: this.iconSize(),\n width: this.iconSize(),\n color: this.color,\n }\n\n return (\n\n <Host\n aria-label={ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null }\n role=\"img\"\n style={style}\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}
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,IAAI,CAAC,UAAU,CAAE,IAAI,CAAC,EAAG;QAC5B,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAC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AAE,GAAG,SAAS,GAAG,IAAI,EAC/E,IAAI,EAAC,KAAK,EACV,KAAK,EAAE,KAAK,EACZ,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 asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you 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 contain: strict;\n display: inline-block;\n fill: currentColor;\n height: 1em;\n width: 1em;\n\n .pdsicon {\n fill: currentColor;\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 componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\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('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 const style = {\n height: this.iconSize(),\n width: this.iconSize(),\n color: this.color,\n }\n\n return (\n\n <Host\n aria-label={ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null }\n role=\"img\"\n style={style}\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}
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <title>Pine icons 3.6.0 Cheatsheet</title>
5
+ <title>Pine icons 3.7.0 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 3.6.0 Cheatsheet</h1>
36
+ <h1>Pine Icons 3.7.0 Cheatsheet</h1>
37
37
  <h3>280 icons</h3>
38
38
 
39
39
  <a href="./svg/access-key.svg"><svg><use href="#access-key" xlink:href="#access-key"/></svg></a>
@@ -316,7 +316,7 @@
316
316
  <a href="./svg/world.svg"><svg><use href="#world" xlink:href="#world"/></svg></a>
317
317
  <a href="./svg/wrench.svg"><svg><use href="#wrench" xlink:href="#wrench"/></svg></a>
318
318
  <a href="./svg/youtube.svg"><svg><use href="#youtube" xlink:href="#youtube"/></svg></a>
319
- <svg data-pdsicons="3.6.0" style="display:none">
319
+ <svg data-pdsicons="3.7.0" style="display:none">
320
320
  <style>
321
321
  .pdsicon {
322
322
  fill: currentColor;
@@ -461,7 +461,7 @@
461
461
  <symbol id="hashtag" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M7.326 1.432a.667.667 0 0 0-1.319-.198l-.514 3.433h-2.16a.667.667 0 0 0 0 1.333h1.96l-.6 4H2.667a.667.667 0 0 0 0 1.333h1.826l-.486 3.235a.667.667 0 0 0 1.319.198l.515-3.433h3.318l-.485 3.235a.667.667 0 0 0 1.319.198l.514-3.433h2.16a.667.667 0 1 0 0-1.333h-1.96l.6-4h2.026a.667.667 0 1 0 0-1.333h-1.825l.485-3.235a.667.667 0 1 0-1.319-.198l-.515 3.433H6.841l.485-3.235ZM9.359 10l.6-4H6.641l-.6 4h3.318Z"/></symbol>
462
462
  <symbol id="hd-video" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M1.32 1.856h13.36c.73 0 1.32.593 1.32 1.324v9.64c0 .731-.59 1.324-1.32 1.324H1.32c-.73 0-1.32-.593-1.32-1.324V3.18c0-.731.59-1.324 1.32-1.324Zm.284 10.68h12.792V3.464H1.604v9.07ZM8.94 5.37l.014-.001.024-.001.609-.002c.472-.002.945-.005 1.417.006.636.014 1.218.206 1.702.638.353.315.583.71.699 1.166.176.691.16 1.376-.12 2.038-.3.71-.845 1.143-1.578 1.348a2.922 2.922 0 0 1-.782.107l-1.406.001H8.94v-5.3Zm1.357 4.183c.132 0 .261.001.39-.002l.074-.002c.133-.003.267-.006.397-.03.518-.097.875-.392 1.037-.902.103-.326.11-.66.048-.995-.125-.692-.629-1.097-1.31-1.132a9.152 9.152 0 0 0-.53-.007h-.23a.225.225 0 0 0-.034.004.582.582 0 0 1-.017.003v3.062h.175Zm-6.337 1.114H2.78V5.375h1.179V7.44h2.108V5.374h1.186v5.293H6.07v-2.1H3.96v2.101Z"/></symbol>
463
463
  <symbol id="heading-large" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M2 .667a.667.667 0 0 1 1.333 0v6.666h9.334V.667a.667.667 0 0 1 1.333 0v14.666a.667.667 0 0 1-1.333 0V8.667H3.333v6.666a.667.667 0 1 1-1.333 0V.667Z"/></symbol>
464
- <symbol id="heading-small" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M3.333 4.111a.778.778 0 0 1 1.556 0v3.222h6.222V4.111a.778.778 0 1 1 1.556 0v7.778a.778.778 0 0 1-1.556 0V8.667H4.89v3.222a.778.778 0 0 1-1.556 0V4.11Z"/></symbol>
464
+ <symbol id="heading-small" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M3.3 3.97a.67.67 0 0 1 .925-.619.66.66 0 0 1 .405.619V7.3h6.68V3.97a.662.662 0 0 1 1.134-.474.67.67 0 0 1 .196.474v8a.67.67 0 0 1-1.14.473.66.66 0 0 1-.19-.473V8.64H4.63v3.33a.66.66 0 0 1-.66.67.67.67 0 0 1-.67-.67v-8Z"/></symbol>
465
465
  <symbol id="headset" viewBox="0 0 16 16" class="pdsicon"><path d="M8 0A7.338 7.338 0 0 0 .667 7.333v4c0 1.1.9 2 2 2h2c.366 0 .666-.3.666-.666V8c0-.367-.3-.667-.666-.667H2c0-3.306 2.693-6 6-6s6 2.694 6 6h-2.667c-.366 0-.666.3-.666.667v4.667c0 .366.3.666.666.666h2c.234 0 .46-.046.667-.12v.12c0 .734-.6 1.334-1.333 1.334H9.333c-.366 0-.666.3-.666.666 0 .367.3.667.666.667h3.334a2.666 2.666 0 0 0 2.666-2.667v-6A7.338 7.338 0 0 0 8 0ZM4 8.667V12H2.667A.669.669 0 0 1 2 11.333V8.667h2ZM13.333 12H12V8.667h2v2.666c0 .367-.3.667-.667.667Z"/></symbol>
466
466
  <symbol id="help-filled" viewBox="0 0 16 16" class="pdsicon"><path d="M15.333 6h-.276A7.309 7.309 0 0 0 10 .943V.667A.666.666 0 0 0 9.333 0H6.667A.666.666 0 0 0 6 .667v.276A7.309 7.309 0 0 0 .943 6H.667A.666.666 0 0 0 0 6.667v2.666c0 .368.298.667.667.667h.276A7.309 7.309 0 0 0 6 15.057v.276c0 .368.298.667.667.667h2.666a.667.667 0 0 0 .667-.667v-.276A7.309 7.309 0 0 0 15.057 10h.276A.666.666 0 0 0 16 9.333V6.667A.666.666 0 0 0 15.333 6ZM8 10.667A2.67 2.67 0 0 1 5.333 8 2.67 2.67 0 0 1 8 5.333 2.67 2.67 0 0 1 10.667 8 2.67 2.67 0 0 1 8 10.667ZM13.655 6h-2.196A4.016 4.016 0 0 0 10 4.541V2.345A5.967 5.967 0 0 1 13.655 6ZM6 2.345v2.196A4.016 4.016 0 0 0 4.541 6H2.345A5.967 5.967 0 0 1 6 2.345ZM2.345 10h2.196c.351.605.854 1.108 1.459 1.459v2.196A5.967 5.967 0 0 1 2.345 10ZM10 13.655v-2.196A4.022 4.022 0 0 0 11.459 10h2.196A5.967 5.967 0 0 1 10 13.655Z"/></symbol>
467
467
  <symbol id="help-outline" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M15.06 6A7.373 7.373 0 0 0 10 .94.94.94 0 0 0 9.06 0H6.94A.94.94 0 0 0 6 .94 7.373 7.373 0 0 0 .94 6a.94.94 0 0 0-.94.94v2.12c0 .52.42.94.94.94A7.36 7.36 0 0 0 6 15.06c0 .52.42.94.94.94h2.12c.52 0 .94-.42.94-.94A7.36 7.36 0 0 0 15.06 10c.52 0 .94-.42.94-.94V6.94a.94.94 0 0 0-.94-.94ZM10 2.34A6.016 6.016 0 0 1 13.66 6h-2.193A4.07 4.07 0 0 0 10 4.533V2.34ZM7.333 1.333h1.334v2.72A4.423 4.423 0 0 0 8 4c-.227 0-.447.02-.667.053v-2.72ZM6 2.34v2.193A4.07 4.07 0 0 0 4.533 6H2.34A6.032 6.032 0 0 1 6 2.34ZM1.333 7.333h2.72C4.02 7.553 4 7.773 4 8c0 .227.02.447.053.667h-2.72V7.333ZM6 13.66A6.016 6.016 0 0 1 2.34 10h2.193A4.07 4.07 0 0 0 6 11.467v2.193Zm2.667 1.007H7.333v-2.72c.22.033.44.053.667.053.227 0 .447-.02.667-.053v2.72Zm-.667-4a2.666 2.666 0 1 1 0-5.334 2.666 2.666 0 1 1 0 5.334Zm2 2.993v-2.193A4.07 4.07 0 0 0 11.467 10h2.193A6.032 6.032 0 0 1 10 13.66Zm4.667-4.993h-2.72c.033-.22.053-.44.053-.667 0-.227-.02-.447-.053-.667h2.72v1.334Z"/></symbol>
@@ -595,7 +595,7 @@
595
595
  <symbol id="upload" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M.727 10.182c.402 0 .728.325.728.727v3.636h13.09V10.91a.727.727 0 1 1 1.455 0v4.364a.727.727 0 0 1-.727.727H.727A.727.727 0 0 1 0 15.273v-4.364c0-.402.326-.727.727-.727Z"/><path fill-rule="evenodd" d="M8 0c.402 0 .727.326.727.727v10.91a.727.727 0 0 1-1.454 0V.726C7.273.326 7.598 0 8 0Z"/><path fill-rule="evenodd" d="M7.486.213a.727.727 0 0 1 1.028 0l4.364 4.364a.727.727 0 0 1-1.029 1.028L8 1.755l-3.85 3.85a.727.727 0 1 1-1.028-1.028L7.486.213Z"/></symbol>
596
596
  <symbol id="url" viewBox="0 0 16 16" class="pdsicon"><path d="M9.518 2.758 7.805 4.47a.667.667 0 1 1-.943-.942l1.722-1.723a4.007 4.007 0 0 1 5.598 0l-.465.477.477-.465a4.008 4.008 0 0 1 0 5.598l-.006.005-1.717 1.717a.667.667 0 1 1-.942-.943l1.713-1.713a2.674 2.674 0 0 0 .003-3.727 2.674 2.674 0 0 0-3.727.003ZM4.471 6.862c.26.26.26.682 0 .943L2.758 9.518a2.674 2.674 0 0 0-.003 3.727 2.674 2.674 0 0 0 3.727-.003l1.713-1.713a.667.667 0 1 1 .943.942l-1.722 1.723a4.008 4.008 0 0 1-5.598 0l.465-.477-.477.465a4.007 4.007 0 0 1 0-5.598l.006-.005 1.717-1.717c.26-.26.682-.26.942 0Z"/><path d="M11.138 5.805a.667.667 0 0 0-.943-.943l-5.333 5.333a.667.667 0 1 0 .943.943l5.333-5.333Z"/></symbol>
597
597
  <symbol id="user" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M10.88 8.34a4.667 4.667 0 1 0-5.758 0 7.336 7.336 0 0 0-5.122 6.993.667.667 0 1 0 1.333 0 6 6 0 0 1 6-6h1.334a6 6 0 0 1 6 6 .667.667 0 1 0 1.333 0 7.336 7.336 0 0 0-5.12-6.993ZM4.666 4.667a3.333 3.333 0 1 1 6.666 0 3.333 3.333 0 0 1-6.666 0Z"/></symbol>
598
- <symbol id="user-filled" viewBox="0 0 16 17" class="pdsicon"><path fill-rule="evenodd" d="M11.667 3.697C11.667 5.687 10.067 8 8 8 5.933 8 4.333 5.687 4.333 3.697a3.667 3.667 0 1 1 7.334 0Zm-8.77 7.2c1-1 2.356-1.562 3.77-1.564h2.666a5.34 5.34 0 0 1 5.334 5.334.667.667 0 0 1-.464.635A22.19 22.19 0 0 1 8 16a22.19 22.19 0 0 1-6.203-.698.667.667 0 0 1-.464-.635 5.34 5.34 0 0 1 1.564-3.77Z"/></symbol>
598
+ <symbol id="user-filled" viewBox="0 0 16 16" class="pdsicon"><path d="M12.222 8.925A5.98 5.98 0 0 1 8 10.667a5.983 5.983 0 0 1-4.222-1.742A7.335 7.335 0 0 0 0 15.333c0 .368.299.667.667.667h14.666a.667.667 0 0 0 .667-.667 7.335 7.335 0 0 0-3.778-6.408Z"/><path d="M8 9.333A4.667 4.667 0 1 0 8 0a4.667 4.667 0 0 0 0 9.333Z"/></symbol>
599
599
  <symbol id="users" viewBox="0 0 16 16" class="pdsicon"><path d="M15.388 14.715H12.71c-.4 0-.668-.267-.668-.669 0-.401.267-.669.668-.669h2.008V11.17l-2.476-1.003c-.267-.067-.468-.268-.602-.468-.134-.201-.2-.469-.2-.736V8.36c0-.268.133-.469.334-.603.334-.2.535-.4.736-.735.134-.335.2-.67.2-1.004V4.68c0-.335-.066-.67-.267-1.004a1.944 1.944 0 0 0-.736-.736 2.133 2.133 0 0 0-2.007 0c-.335.201-.736.067-.937-.267-.2-.335-.067-.736.268-.937a3.323 3.323 0 0 1 3.345 0c.535.268.937.736 1.204 1.204.335.536.469 1.138.469 1.74v1.338a3.02 3.02 0 0 1-.469 1.673c-.2.401-.535.736-.87 1.003v.2l2.476 1.004c.268.067.468.268.602.469.134.2.2.468.2.736v2.943c.068.335-.2.67-.601.67ZM10.035 14.715H.67c-.401 0-.669-.267-.669-.669V11.84c0-.268.067-.536.2-.736.135-.201.335-.402.603-.469l2.542-1.07v-.2c-.334-.268-.669-.603-.87-1.004a3.02 3.02 0 0 1-.468-1.673V5.349c0-.87.335-1.74 1.004-2.342.602-.669 1.471-1.003 2.341-1.003.87 0 1.74.334 2.342 1.003.669.603 1.003 1.472 1.003 2.342v1.338A3.02 3.02 0 0 1 8.23 8.36c-.2.401-.535.736-.87 1.003v.2l2.476 1.004c.267.067.468.268.602.469.134.2.2.468.2.736v2.274c.067.335-.2.67-.602.67Zm-8.697-1.338h8.028v-1.539l-2.475-1.003c-.268-.067-.468-.268-.602-.468a1.286 1.286 0 0 1-.268-.803v-.602c0-.268.134-.469.335-.602.334-.201.535-.402.736-.736.2-.268.267-.602.267-.937V5.349c0-.535-.2-1.07-.602-1.405-.736-.803-2.074-.803-2.81 0-.401.335-.602.87-.602 1.405v1.338c0 .335.067.67.268 1.004.2.334.401.535.736.736.2.066.334.334.334.535v.602c0 .267-.067.535-.2.736-.134.2-.335.401-.603.468l-2.542 1.07v1.54Z"/></symbol>
600
600
  <symbol id="users-wm" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M15.167 9.867a1.334 1.334 0 0 1 .833 1.24v3.546h-4V13.32h2.667v-2.213l-2.494-1a1.312 1.312 0 0 1-.606-.487 1.302 1.302 0 0 1-.234-.747V7.9l.334-.187a1.967 1.967 0 0 0 1-1.72V4.66c0-.353-.094-.693-.267-1a1.985 1.985 0 0 0-.733-.733 2.02 2.02 0 0 0-2 0l-.58.333-.667-1.153.58-.334a3.377 3.377 0 0 1 3.333 0c.507.294.927.714 1.22 1.22A3.32 3.32 0 0 1 14 4.66v1.333c0 .58-.16 1.16-.447 1.66a3.327 3.327 0 0 1-.886.994v.226l2.5.994Zm-7.427-.16 2.087.833c.246.1.46.267.613.493.147.22.227.48.227.747v2.88H0v-2.88a1.344 1.344 0 0 1 .84-1.247L2.927 9.7C1.273 9.253.793 8.407.74 8.293l-.22-.426.34-.347C1.18 7.2 2 6.187 2 5.327c0-.894.347-1.727.973-2.36a3.34 3.34 0 0 1 2.36-.974 3.34 3.34 0 0 1 2.36.974 3.34 3.34 0 0 1 .974 2.36c0 .86.82 1.873 1.14 2.2l.34.34-.22.433c-.062.11-.537.954-2.187 1.407ZM1.333 11.78v1.54h7.994v-1.547l-2.494-1A1.312 1.312 0 0 1 6 9.54v-.887l.58-.073c.973-.127 1.54-.4 1.847-.613-.454-.58-1.094-1.574-1.094-2.64a1.97 1.97 0 0 0-.586-1.414c-.754-.753-2.074-.753-2.827 0-.38.38-.587.88-.587 1.414 0 1.066-.64 2.066-1.093 2.633.307.213.867.48 1.847.613l.58.08v.887a1.34 1.34 0 0 1-.84 1.24l-2.494 1Z"/></symbol>
601
601
  <symbol id="video-off" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M15.133 1.8a.644.644 0 0 0 0-.933.644.644 0 0 0-.933 0l-2.867 2.866c-.066-.466-.266-.866-.6-1.133-.333-.4-.866-.6-1.4-.6H2c-.533 0-1.067.2-1.4.6-.4.333-.6.867-.6 1.4v8c0 .533.2 1.067.6 1.4.2.2.4.333.6.4l-.333.333a.645.645 0 0 0 0 .934.645.645 0 0 0 .933 0L15.133 1.8ZM2.4 12.667l7.6-7.6V4c0-.2-.067-.333-.2-.467a.605.605 0 0 0-.467-.2H2c-.2 0-.333.067-.467.2a.605.605 0 0 0-.2.467v8c0 .2.067.333.2.467.134.133.267.2.467.2h.4Zm13.333-8.534c.2.134.267.334.267.534v6.666c0 .2-.067.4-.267.534-.133.133-.4.133-.6.133l-3.8-1.133V12c0 .533-.2 1.067-.6 1.4-.333.4-.866.6-1.4.6H5.467c-.4 0-.667-.267-.667-.667s.267-.666.667-.666h3.866c.2 0 .334-.067.467-.2A.605.605 0 0 0 10 12v-2c0-.2.067-.4.267-.533.133-.134.4-.134.6-.134l3.8 1.067V5.533l-.8.2c-.334.134-.734-.133-.8-.466-.134-.334.133-.734.466-.8l1.6-.467c.2 0 .467 0 .6.133Z"/></symbol>
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const utils = require('./utils-868de787.js');
5
+ const utils = require('./utils-c1c85b71.js');
6
6
 
7
7
 
8
8
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-30789db3.js');
6
- const utils = require('./utils-868de787.js');
6
+ const utils = require('./utils-c1c85b71.js');
7
7
 
8
8
  const validateContent = (svgContent) => {
9
9
  const div = document.createElement('div');
@@ -22,7 +22,7 @@ const getAssetPath = (path) => {
22
22
  if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {
23
23
  missingAssetPathWarning = true;
24
24
  console.warn(`
25
- Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation:
25
+ Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs
26
26
  `);
27
27
  }
28
28
  let assetPath = path;
@@ -135,4 +135,4 @@ exports.getUrl = getUrl;
135
135
  exports.inheritAttributes = inheritAttributes;
136
136
  exports.isStr = isStr;
137
137
 
138
- //# sourceMappingURL=utils-868de787.js.map
138
+ //# sourceMappingURL=utils-c1c85b71.js.map
@@ -1 +1 @@
1
- {"file":"utils-868de787.js","mappings":";;AAEA,IAAI,uBAAuB,GAAG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AC;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 asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation:\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"],"version":3}
1
+ {"file":"utils-c1c85b71.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,GAA0C,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,IAAI,CAAC,UAAU,CAAE,IAAI,CAAC,EAAG;QAC5B,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAC/B;IAED,IAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAG;QAClC,SAAS,GAAG,GAAG,GAAG,SAAS,CAAC;KAC7B;IAED,OAAO,aAAa,GAAG,SAAS,CAAC;AACnC,CAAC;;AC7CD,IAAI,UAA+B,CAAC;MAEvB,QAAQ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,iBAAiB,GAAG,CAAC,EAAe,EAAE,aAAuB,EAAE;IAC3E,MAAM,eAAe,GAAyB,EAAE,CAAC;IAEjD,UAAU,CAAC,OAAO,CAAC,IAAI;QACrB,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YACzB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACpC,IAAI,KAAK,KAAK,IAAI,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 asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you 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"],"version":3}
@@ -21,7 +21,7 @@ export const getAssetPath = (path) => {
21
21
  if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {
22
22
  missingAssetPathWarning = true;
23
23
  console.warn(`
24
- Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation:
24
+ Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs
25
25
  `);
26
26
  }
27
27
  let assetPath = path;
@@ -1 +1 @@
1
- {"version":3,"file":"assetPath.js","sourceRoot":"","sources":["../../../src/components/pds-icon/assetPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,IAAI,uBAAuB,GAAG,KAAK,CAAC;AAQpC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,EAAE;;IAC3C,MAAM,iBAAiB,GAAG,MAAA,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAkB,4BAA4B,CAAC,0CAAE,OAAO,CAAC,aAAa,CAAC;IAE5H,yDAAyD;IACzD,MAAM,eAAe,GAAG,MAAM,CAAC,mBAAmB,CAAC;IAEnD,kDAAkD;IAClD,MAAM,YAAY,GAAG,6DAA6D,CAAC;IAEnF,MAAM,aAAa,GAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,IAAI,eAAe,IAAI,YAAY,IAAI,GAAG,CAAA;IAExH,4DAA4D;IAC5D,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,IAAI,CAAC,UAAU,CAAE,IAAI,CAAC,EAAG;QAC5B,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAC/B;IAED,IAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAG;QAClC,SAAS,GAAG,GAAG,GAAG,SAAS,CAAC;KAC7B;IAED,OAAO,aAAa,GAAG,SAAS,CAAC;AACnC,CAAC,CAAA","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 asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation:\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"]}
1
+ {"version":3,"file":"assetPath.js","sourceRoot":"","sources":["../../../src/components/pds-icon/assetPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,IAAI,uBAAuB,GAAG,KAAK,CAAC;AAQpC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,EAAE;;IAC3C,MAAM,iBAAiB,GAAG,MAAA,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAkB,4BAA4B,CAAC,0CAAE,OAAO,CAAC,aAAa,CAAC;IAE5H,yDAAyD;IACzD,MAAM,eAAe,GAAG,MAAM,CAAC,mBAAmB,CAAC;IAEnD,kDAAkD;IAClD,MAAM,YAAY,GAAG,6DAA6D,CAAC;IAEnF,MAAM,aAAa,GAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,IAAI,eAAe,IAAI,YAAY,IAAI,GAAG,CAAA;IAExH,4DAA4D;IAC5D,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,IAAI,CAAC,UAAU,CAAE,IAAI,CAAC,EAAG;QAC5B,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAC/B;IAED,IAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAG;QAClC,SAAS,GAAG,GAAG,GAAG,SAAS,CAAC;KAC7B;IAED,OAAO,aAAa,GAAG,SAAS,CAAC;AACnC,CAAC,CAAA","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 asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you 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"]}
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M3.333 4.111a.778.778 0 0 1 1.556 0v3.222h6.222V4.111a.778.778 0 1 1 1.556 0v7.778a.778.778 0 0 1-1.556 0V8.667H4.89v3.222a.778.778 0 0 1-1.556 0V4.11Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M3.3 3.97a.67.67 0 0 1 .925-.619.66.66 0 0 1 .405.619V7.3h6.68V3.97a.662.662 0 0 1 1.134-.474.67.67 0 0 1 .196.474v8a.67.67 0 0 1-1.14.473.66.66 0 0 1-.19-.473V8.64H4.63v3.33a.66.66 0 0 1-.66.67.67.67 0 0 1-.67-.67v-8Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 17" class="pdsicon"><path fill-rule="evenodd" d="M11.667 3.697C11.667 5.687 10.067 8 8 8 5.933 8 4.333 5.687 4.333 3.697a3.667 3.667 0 1 1 7.334 0Zm-8.77 7.2c1-1 2.356-1.562 3.77-1.564h2.666a5.34 5.34 0 0 1 5.334 5.334.667.667 0 0 1-.464.635A22.19 22.19 0 0 1 8 16a22.19 22.19 0 0 1-6.203-.698.667.667 0 0 1-.464-.635 5.34 5.34 0 0 1 1.564-3.77Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M12.222 8.925A5.98 5.98 0 0 1 8 10.667a5.983 5.983 0 0 1-4.222-1.742A7.335 7.335 0 0 0 0 15.333c0 .368.299.667.667.667h14.666a.667.667 0 0 0 .667-.667 7.335 7.335 0 0 0-3.778-6.408Z"/><path d="M8 9.333A4.667 4.667 0 1 0 8 0a4.667 4.667 0 0 0 0 9.333Z"/></svg>
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-03-12T20:28:00",
2
+ "timestamp": "2024-03-14T11:09:17",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.8.1",
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { a as addIcons } from './utils-529a5e56.js';
1
+ export { a as addIcons } from './utils-bff5219d.js';
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-68ccb33c.js';
2
- import { i as isStr, b as inheritAttributes, g as getUrl, c as getName } from './utils-529a5e56.js';
2
+ import { i as isStr, b as inheritAttributes, g as getUrl, c as getName } from './utils-bff5219d.js';
3
3
 
4
4
  const validateContent = (svgContent) => {
5
5
  const div = document.createElement('div');
@@ -20,7 +20,7 @@ const getAssetPath = (path) => {
20
20
  if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {
21
21
  missingAssetPathWarning = true;
22
22
  console.warn(`
23
- Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation:
23
+ Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs
24
24
  `);
25
25
  }
26
26
  let assetPath = path;
@@ -129,4 +129,4 @@ const inheritAttributes = (el, attributes = []) => {
129
129
 
130
130
  export { addIcons as a, inheritAttributes as b, getName as c, getUrl as g, isStr as i };
131
131
 
132
- //# sourceMappingURL=utils-529a5e56.js.map
132
+ //# sourceMappingURL=utils-bff5219d.js.map
@@ -1 +1 @@
1
- {"file":"utils-529a5e56.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,GAA0C,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,IAAI,CAAC,UAAU,CAAE,IAAI,CAAC,EAAG;QAC5B,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAC/B;IAED,IAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAG;QAClC,SAAS,GAAG,GAAG,GAAG,SAAS,CAAC;KAC7B;IAED,OAAO,aAAa,GAAG,SAAS,CAAC;AACnC,CAAC;;AC7CD,IAAI,UAA+B,CAAC;MAEvB,QAAQ,GAAG,CAAC,KAAkC;IACzD,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IACzB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CA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O,CAAC,IAAI;QACrB,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YACzB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACpC,IAAI,KAAK,KAAK,IAAI,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 asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation:\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"],"version":3}
1
+ {"file":"utils-bff5219d.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,GAA0C,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,IAAI,CAAC,UAAU,CAAE,IAAI,CAAC,EAAG;QAC5B,SAAS,GAAG,IAAI,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K,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;MAC/D,KAAK,GAAG,CAAC,GAAQ,KAAoB,OAAO,GAAG,KAAK,SAAS;AACnE,MAAM,OAAO,GAAG,CAAC,GAAW,KAAK,GAAG,CAAC,WAAW,EAAE,CAAC;AAE1D;;;;;;;;;;MAUc,iBAAiB,GAAG,CAAC,EAAe,EAAE,aAAuB,EAAE;IAC3E,MAAM,eAAe,GAAyB,EAAE,CAAC;IAEjD,UAAU,CAAC,OAAO,CAAC,IAAI;QACrB,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YACzB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACpC,IAAI,KAAK,KAAK,IAAI,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 asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you 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"],"version":3}
@@ -1,2 +1,2 @@
1
- export{a as addIcons}from"./p-f954ed14.js";
1
+ export{a as addIcons}from"./p-60645170.js";
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1,2 @@
1
+ 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 asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you 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&&!a(t)){n=t}if(d(n)){n=l(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(a(n)){return n}}return null};const u=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 a=n=>n.length>0&&/(\/|\.)/.test(n);const d=n=>typeof n==="string";const l=n=>n.toLowerCase();const f=(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,f as b,i as c,u as g,d as i};
2
+ //# sourceMappingURL=p-60645170.js.map
@@ -0,0 +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 asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you 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"],"mappings":"AAEA,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,kS,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,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e}from"./p-194a0f36.js";import{i as n,b as r,g as o,c}from"./p-f954ed14.js";const l=t=>{const i=document.createElement("div");i.innerHTML=t;for(let t=i.childNodes.length-1;t>=0;t--){if(i.childNodes[t].nodeName.toLowerCase()!=="svg"){i.removeChild(i.childNodes[t])}}const s=i.firstElementChild;if(s&&s.nodeName.toLowerCase()==="svg"){const t=s.getAttribute("class")||"";s.setAttribute("class",(t+" s-pds-icon").trim());if(a(s)){return i.innerHTML}}return""};const a=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(let i=0;i<t.attributes.length;i++){const s=t.attributes[i].name;if(n(s)&&s.toLowerCase().indexOf("on")===0){return false}}for(let i=0;i<t.childNodes.length;i++){if(!a(t.childNodes[i])){return false}}}return true};const d=t=>t.startsWith("data:image/svg+xml");const h=t=>t.indexOf(";utf8,")!==-1;const f=new Map;const u=new Map;let p;const g=(t,i=false)=>{let s=u.get(t);if(!s){if(typeof fetch!="undefined"&&typeof document!=="undefined"){if(d(t)&&h(t)){if(!p){p=new DOMParser}const i=p.parseFromString(t,"text/html");const s=i.querySelector("svg");if(s){f.set(t,s.outerHTML)}return Promise.resolve()}else{s=fetch(t).then((s=>{if(s.ok){return s.text().then((s=>{if(s&&i!==false){s=l(s)}f.set(t,s||"")}))}f.set(t,"")}));u.set(t,s)}}else{f.set(t,"");return Promise.resolve()}}return s};const m=":host{contain:strict;display:inline-block;fill:currentColor;height:1em;width:1em}:host .pdsicon{fill:currentColor}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}";const w=class{constructor(i){t(this,i);this.inheritedAttributes={};this.hasAriaHidden=()=>{const{el:t}=this;return t.hasAttribute("aria-hidden")&&t.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 t={small:"12px",regular:"16px",medium:"20px",large:"24px"};if(t[this.size]){return t[this.size]}else{return this.size}}componentWillLoad(){this.inheritedAttributes=r(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=true;this.loadIcon()}))}disconnectedCallback(){if(this.io){this.io.disconnect();this.io=undefined}}loadIcon(){if(this.isVisible){const t=o(this);if(t){if(f.has(t)){this.svgContent=f.get(t)}else{g(t).then((()=>this.svgContent=f.get(t)))}}}const t=c(this.name,this.icon);if(t){this.ariaLabel=t.replace(/\-/g," ")}}render(){const{ariaLabel:t,inheritedAttributes:e}=this;const n={height:this.iconSize(),width:this.iconSize(),color:this.color};return i(s,Object.assign({"aria-label":t!==undefined&&!this.hasAriaHidden()?t:null,role:"img",style:n,class:Object.assign({},b(this.color))},e),this.svgContent?i("div",{class:"icon-inner",innerHTML:this.svgContent}):i("div",{class:"icon-inner"}))}waitUntilVisible(t,i,s){if(typeof window!=="undefined"&&window.IntersectionObserver){const e=this.io=new window.IntersectionObserver((t=>{if(t[0].isIntersecting){e.disconnect();this.io=undefined;s()}}),{rootMargin:i});e.observe(t)}else{s()}}static get assetsDirs(){return["svg"]}get el(){return e(this)}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"]}}};const b=t=>t?{"pds-color":true,[`pds-color-${t}`]:true}:null;w.style=m;export{w as pds_icon};
2
- //# sourceMappingURL=p-982dfca2.entry.js.map
1
+ import{r as t,h as i,H as s,g as e}from"./p-194a0f36.js";import{i as n,b as r,g as o,c}from"./p-60645170.js";const l=t=>{const i=document.createElement("div");i.innerHTML=t;for(let t=i.childNodes.length-1;t>=0;t--){if(i.childNodes[t].nodeName.toLowerCase()!=="svg"){i.removeChild(i.childNodes[t])}}const s=i.firstElementChild;if(s&&s.nodeName.toLowerCase()==="svg"){const t=s.getAttribute("class")||"";s.setAttribute("class",(t+" s-pds-icon").trim());if(a(s)){return i.innerHTML}}return""};const a=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(let i=0;i<t.attributes.length;i++){const s=t.attributes[i].name;if(n(s)&&s.toLowerCase().indexOf("on")===0){return false}}for(let i=0;i<t.childNodes.length;i++){if(!a(t.childNodes[i])){return false}}}return true};const d=t=>t.startsWith("data:image/svg+xml");const h=t=>t.indexOf(";utf8,")!==-1;const f=new Map;const u=new Map;let p;const g=(t,i=false)=>{let s=u.get(t);if(!s){if(typeof fetch!="undefined"&&typeof document!=="undefined"){if(d(t)&&h(t)){if(!p){p=new DOMParser}const i=p.parseFromString(t,"text/html");const s=i.querySelector("svg");if(s){f.set(t,s.outerHTML)}return Promise.resolve()}else{s=fetch(t).then((s=>{if(s.ok){return s.text().then((s=>{if(s&&i!==false){s=l(s)}f.set(t,s||"")}))}f.set(t,"")}));u.set(t,s)}}else{f.set(t,"");return Promise.resolve()}}return s};const m=":host{contain:strict;display:inline-block;fill:currentColor;height:1em;width:1em}:host .pdsicon{fill:currentColor}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}";const w=class{constructor(i){t(this,i);this.inheritedAttributes={};this.hasAriaHidden=()=>{const{el:t}=this;return t.hasAttribute("aria-hidden")&&t.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 t={small:"12px",regular:"16px",medium:"20px",large:"24px"};if(t[this.size]){return t[this.size]}else{return this.size}}componentWillLoad(){this.inheritedAttributes=r(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=true;this.loadIcon()}))}disconnectedCallback(){if(this.io){this.io.disconnect();this.io=undefined}}loadIcon(){if(this.isVisible){const t=o(this);if(t){if(f.has(t)){this.svgContent=f.get(t)}else{g(t).then((()=>this.svgContent=f.get(t)))}}}const t=c(this.name,this.icon);if(t){this.ariaLabel=t.replace(/\-/g," ")}}render(){const{ariaLabel:t,inheritedAttributes:e}=this;const n={height:this.iconSize(),width:this.iconSize(),color:this.color};return i(s,Object.assign({"aria-label":t!==undefined&&!this.hasAriaHidden()?t:null,role:"img",style:n,class:Object.assign({},b(this.color))},e),this.svgContent?i("div",{class:"icon-inner",innerHTML:this.svgContent}):i("div",{class:"icon-inner"}))}waitUntilVisible(t,i,s){if(typeof window!=="undefined"&&window.IntersectionObserver){const e=this.io=new window.IntersectionObserver((t=>{if(t[0].isIntersecting){e.disconnect();this.io=undefined;s()}}),{rootMargin:i});e.observe(t)}else{s()}}static get assetsDirs(){return["svg"]}get el(){return e(this)}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"]}}};const b=t=>t?{"pds-color":true,[`pds-color-${t}`]:true}:null;w.style=m;export{w as pds_icon};
2
+ //# sourceMappingURL=p-91ce3f72.entry.js.map
@@ -1,2 +1,2 @@
1
- import{p as o,b as n}from"./p-194a0f36.js";export{s as setNonce}from"./p-194a0f36.js";const a=()=>{const n=import.meta.url;const s={};if(n!==""){s.resourcesUrl=new URL(".",n).href}return o(s)};a().then((o=>n([["p-982dfca2",[[1,"pds-icon",{color:[1],icon:[8],name:[513],size:[513],src:[1],ariaLabel:[32],isVisible:[32],svgContent:[32]},null,{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"]}]]]],o)));
1
+ import{p as o,b as n}from"./p-194a0f36.js";export{s as setNonce}from"./p-194a0f36.js";const a=()=>{const n=import.meta.url;const s={};if(n!==""){s.resourcesUrl=new URL(".",n).href}return o(s)};a().then((o=>n([["p-91ce3f72",[[1,"pds-icon",{color:[1],icon:[8],name:[513],size:[513],src:[1],ariaLabel:[32],isVisible:[32],svgContent:[32]},null,{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 16 16" class="pdsicon"><path fill-rule="evenodd" d="M3.333 4.111a.778.778 0 0 1 1.556 0v3.222h6.222V4.111a.778.778 0 1 1 1.556 0v7.778a.778.778 0 0 1-1.556 0V8.667H4.89v3.222a.778.778 0 0 1-1.556 0V4.11Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M3.3 3.97a.67.67 0 0 1 .925-.619.66.66 0 0 1 .405.619V7.3h6.68V3.97a.662.662 0 0 1 1.134-.474.67.67 0 0 1 .196.474v8a.67.67 0 0 1-1.14.473.66.66 0 0 1-.19-.473V8.64H4.63v3.33a.66.66 0 0 1-.66.67.67.67 0 0 1-.67-.67v-8Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 17" class="pdsicon"><path fill-rule="evenodd" d="M11.667 3.697C11.667 5.687 10.067 8 8 8 5.933 8 4.333 5.687 4.333 3.697a3.667 3.667 0 1 1 7.334 0Zm-8.77 7.2c1-1 2.356-1.562 3.77-1.564h2.666a5.34 5.34 0 0 1 5.334 5.334.667.667 0 0 1-.464.635A22.19 22.19 0 0 1 8 16a22.19 22.19 0 0 1-6.203-.698.667.667 0 0 1-.464-.635 5.34 5.34 0 0 1 1.564-3.77Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M12.222 8.925A5.98 5.98 0 0 1 8 10.667a5.983 5.983 0 0 1-4.222-1.742A7.335 7.335 0 0 0 0 15.333c0 .368.299.667.667.667h14.666a.667.667 0 0 0 .667-.667 7.335 7.335 0 0 0-3.778-6.408Z"/><path d="M8 9.333A4.667 4.667 0 1 0 8 0a4.667 4.667 0 0 0 0 9.333Z"/></svg>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-icons",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "icons": [
5
5
  {
6
6
  "name": "access-key",
@@ -1,4 +1,4 @@
1
- <svg data-pdsicons="3.6.0" style="display:none">
1
+ <svg data-pdsicons="3.7.0" style="display:none">
2
2
  <style>
3
3
  .pdsicon {
4
4
  fill: currentColor;
@@ -143,7 +143,7 @@
143
143
  <symbol id="hashtag" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M7.326 1.432a.667.667 0 0 0-1.319-.198l-.514 3.433h-2.16a.667.667 0 0 0 0 1.333h1.96l-.6 4H2.667a.667.667 0 0 0 0 1.333h1.826l-.486 3.235a.667.667 0 0 0 1.319.198l.515-3.433h3.318l-.485 3.235a.667.667 0 0 0 1.319.198l.514-3.433h2.16a.667.667 0 1 0 0-1.333h-1.96l.6-4h2.026a.667.667 0 1 0 0-1.333h-1.825l.485-3.235a.667.667 0 1 0-1.319-.198l-.515 3.433H6.841l.485-3.235ZM9.359 10l.6-4H6.641l-.6 4h3.318Z"/></symbol>
144
144
  <symbol id="hd-video" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M1.32 1.856h13.36c.73 0 1.32.593 1.32 1.324v9.64c0 .731-.59 1.324-1.32 1.324H1.32c-.73 0-1.32-.593-1.32-1.324V3.18c0-.731.59-1.324 1.32-1.324Zm.284 10.68h12.792V3.464H1.604v9.07ZM8.94 5.37l.014-.001.024-.001.609-.002c.472-.002.945-.005 1.417.006.636.014 1.218.206 1.702.638.353.315.583.71.699 1.166.176.691.16 1.376-.12 2.038-.3.71-.845 1.143-1.578 1.348a2.922 2.922 0 0 1-.782.107l-1.406.001H8.94v-5.3Zm1.357 4.183c.132 0 .261.001.39-.002l.074-.002c.133-.003.267-.006.397-.03.518-.097.875-.392 1.037-.902.103-.326.11-.66.048-.995-.125-.692-.629-1.097-1.31-1.132a9.152 9.152 0 0 0-.53-.007h-.23a.225.225 0 0 0-.034.004.582.582 0 0 1-.017.003v3.062h.175Zm-6.337 1.114H2.78V5.375h1.179V7.44h2.108V5.374h1.186v5.293H6.07v-2.1H3.96v2.101Z"/></symbol>
145
145
  <symbol id="heading-large" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M2 .667a.667.667 0 0 1 1.333 0v6.666h9.334V.667a.667.667 0 0 1 1.333 0v14.666a.667.667 0 0 1-1.333 0V8.667H3.333v6.666a.667.667 0 1 1-1.333 0V.667Z"/></symbol>
146
- <symbol id="heading-small" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M3.333 4.111a.778.778 0 0 1 1.556 0v3.222h6.222V4.111a.778.778 0 1 1 1.556 0v7.778a.778.778 0 0 1-1.556 0V8.667H4.89v3.222a.778.778 0 0 1-1.556 0V4.11Z"/></symbol>
146
+ <symbol id="heading-small" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M3.3 3.97a.67.67 0 0 1 .925-.619.66.66 0 0 1 .405.619V7.3h6.68V3.97a.662.662 0 0 1 1.134-.474.67.67 0 0 1 .196.474v8a.67.67 0 0 1-1.14.473.66.66 0 0 1-.19-.473V8.64H4.63v3.33a.66.66 0 0 1-.66.67.67.67 0 0 1-.67-.67v-8Z"/></symbol>
147
147
  <symbol id="headset" viewBox="0 0 16 16" class="pdsicon"><path d="M8 0A7.338 7.338 0 0 0 .667 7.333v4c0 1.1.9 2 2 2h2c.366 0 .666-.3.666-.666V8c0-.367-.3-.667-.666-.667H2c0-3.306 2.693-6 6-6s6 2.694 6 6h-2.667c-.366 0-.666.3-.666.667v4.667c0 .366.3.666.666.666h2c.234 0 .46-.046.667-.12v.12c0 .734-.6 1.334-1.333 1.334H9.333c-.366 0-.666.3-.666.666 0 .367.3.667.666.667h3.334a2.666 2.666 0 0 0 2.666-2.667v-6A7.338 7.338 0 0 0 8 0ZM4 8.667V12H2.667A.669.669 0 0 1 2 11.333V8.667h2ZM13.333 12H12V8.667h2v2.666c0 .367-.3.667-.667.667Z"/></symbol>
148
148
  <symbol id="help-filled" viewBox="0 0 16 16" class="pdsicon"><path d="M15.333 6h-.276A7.309 7.309 0 0 0 10 .943V.667A.666.666 0 0 0 9.333 0H6.667A.666.666 0 0 0 6 .667v.276A7.309 7.309 0 0 0 .943 6H.667A.666.666 0 0 0 0 6.667v2.666c0 .368.298.667.667.667h.276A7.309 7.309 0 0 0 6 15.057v.276c0 .368.298.667.667.667h2.666a.667.667 0 0 0 .667-.667v-.276A7.309 7.309 0 0 0 15.057 10h.276A.666.666 0 0 0 16 9.333V6.667A.666.666 0 0 0 15.333 6ZM8 10.667A2.67 2.67 0 0 1 5.333 8 2.67 2.67 0 0 1 8 5.333 2.67 2.67 0 0 1 10.667 8 2.67 2.67 0 0 1 8 10.667ZM13.655 6h-2.196A4.016 4.016 0 0 0 10 4.541V2.345A5.967 5.967 0 0 1 13.655 6ZM6 2.345v2.196A4.016 4.016 0 0 0 4.541 6H2.345A5.967 5.967 0 0 1 6 2.345ZM2.345 10h2.196c.351.605.854 1.108 1.459 1.459v2.196A5.967 5.967 0 0 1 2.345 10ZM10 13.655v-2.196A4.022 4.022 0 0 0 11.459 10h2.196A5.967 5.967 0 0 1 10 13.655Z"/></symbol>
149
149
  <symbol id="help-outline" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M15.06 6A7.373 7.373 0 0 0 10 .94.94.94 0 0 0 9.06 0H6.94A.94.94 0 0 0 6 .94 7.373 7.373 0 0 0 .94 6a.94.94 0 0 0-.94.94v2.12c0 .52.42.94.94.94A7.36 7.36 0 0 0 6 15.06c0 .52.42.94.94.94h2.12c.52 0 .94-.42.94-.94A7.36 7.36 0 0 0 15.06 10c.52 0 .94-.42.94-.94V6.94a.94.94 0 0 0-.94-.94ZM10 2.34A6.016 6.016 0 0 1 13.66 6h-2.193A4.07 4.07 0 0 0 10 4.533V2.34ZM7.333 1.333h1.334v2.72A4.423 4.423 0 0 0 8 4c-.227 0-.447.02-.667.053v-2.72ZM6 2.34v2.193A4.07 4.07 0 0 0 4.533 6H2.34A6.032 6.032 0 0 1 6 2.34ZM1.333 7.333h2.72C4.02 7.553 4 7.773 4 8c0 .227.02.447.053.667h-2.72V7.333ZM6 13.66A6.016 6.016 0 0 1 2.34 10h2.193A4.07 4.07 0 0 0 6 11.467v2.193Zm2.667 1.007H7.333v-2.72c.22.033.44.053.667.053.227 0 .447-.02.667-.053v2.72Zm-.667-4a2.666 2.666 0 1 1 0-5.334 2.666 2.666 0 1 1 0 5.334Zm2 2.993v-2.193A4.07 4.07 0 0 0 11.467 10h2.193A6.032 6.032 0 0 1 10 13.66Zm4.667-4.993h-2.72c.033-.22.053-.44.053-.667 0-.227-.02-.447-.053-.667h2.72v1.334Z"/></symbol>
@@ -277,7 +277,7 @@
277
277
  <symbol id="upload" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M.727 10.182c.402 0 .728.325.728.727v3.636h13.09V10.91a.727.727 0 1 1 1.455 0v4.364a.727.727 0 0 1-.727.727H.727A.727.727 0 0 1 0 15.273v-4.364c0-.402.326-.727.727-.727Z"/><path fill-rule="evenodd" d="M8 0c.402 0 .727.326.727.727v10.91a.727.727 0 0 1-1.454 0V.726C7.273.326 7.598 0 8 0Z"/><path fill-rule="evenodd" d="M7.486.213a.727.727 0 0 1 1.028 0l4.364 4.364a.727.727 0 0 1-1.029 1.028L8 1.755l-3.85 3.85a.727.727 0 1 1-1.028-1.028L7.486.213Z"/></symbol>
278
278
  <symbol id="url" viewBox="0 0 16 16" class="pdsicon"><path d="M9.518 2.758 7.805 4.47a.667.667 0 1 1-.943-.942l1.722-1.723a4.007 4.007 0 0 1 5.598 0l-.465.477.477-.465a4.008 4.008 0 0 1 0 5.598l-.006.005-1.717 1.717a.667.667 0 1 1-.942-.943l1.713-1.713a2.674 2.674 0 0 0 .003-3.727 2.674 2.674 0 0 0-3.727.003ZM4.471 6.862c.26.26.26.682 0 .943L2.758 9.518a2.674 2.674 0 0 0-.003 3.727 2.674 2.674 0 0 0 3.727-.003l1.713-1.713a.667.667 0 1 1 .943.942l-1.722 1.723a4.008 4.008 0 0 1-5.598 0l.465-.477-.477.465a4.007 4.007 0 0 1 0-5.598l.006-.005 1.717-1.717c.26-.26.682-.26.942 0Z"/><path d="M11.138 5.805a.667.667 0 0 0-.943-.943l-5.333 5.333a.667.667 0 1 0 .943.943l5.333-5.333Z"/></symbol>
279
279
  <symbol id="user" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M10.88 8.34a4.667 4.667 0 1 0-5.758 0 7.336 7.336 0 0 0-5.122 6.993.667.667 0 1 0 1.333 0 6 6 0 0 1 6-6h1.334a6 6 0 0 1 6 6 .667.667 0 1 0 1.333 0 7.336 7.336 0 0 0-5.12-6.993ZM4.666 4.667a3.333 3.333 0 1 1 6.666 0 3.333 3.333 0 0 1-6.666 0Z"/></symbol>
280
- <symbol id="user-filled" viewBox="0 0 16 17" class="pdsicon"><path fill-rule="evenodd" d="M11.667 3.697C11.667 5.687 10.067 8 8 8 5.933 8 4.333 5.687 4.333 3.697a3.667 3.667 0 1 1 7.334 0Zm-8.77 7.2c1-1 2.356-1.562 3.77-1.564h2.666a5.34 5.34 0 0 1 5.334 5.334.667.667 0 0 1-.464.635A22.19 22.19 0 0 1 8 16a22.19 22.19 0 0 1-6.203-.698.667.667 0 0 1-.464-.635 5.34 5.34 0 0 1 1.564-3.77Z"/></symbol>
280
+ <symbol id="user-filled" viewBox="0 0 16 16" class="pdsicon"><path d="M12.222 8.925A5.98 5.98 0 0 1 8 10.667a5.983 5.983 0 0 1-4.222-1.742A7.335 7.335 0 0 0 0 15.333c0 .368.299.667.667.667h14.666a.667.667 0 0 0 .667-.667 7.335 7.335 0 0 0-3.778-6.408Z"/><path d="M8 9.333A4.667 4.667 0 1 0 8 0a4.667 4.667 0 0 0 0 9.333Z"/></symbol>
281
281
  <symbol id="users" viewBox="0 0 16 16" class="pdsicon"><path d="M15.388 14.715H12.71c-.4 0-.668-.267-.668-.669 0-.401.267-.669.668-.669h2.008V11.17l-2.476-1.003c-.267-.067-.468-.268-.602-.468-.134-.201-.2-.469-.2-.736V8.36c0-.268.133-.469.334-.603.334-.2.535-.4.736-.735.134-.335.2-.67.2-1.004V4.68c0-.335-.066-.67-.267-1.004a1.944 1.944 0 0 0-.736-.736 2.133 2.133 0 0 0-2.007 0c-.335.201-.736.067-.937-.267-.2-.335-.067-.736.268-.937a3.323 3.323 0 0 1 3.345 0c.535.268.937.736 1.204 1.204.335.536.469 1.138.469 1.74v1.338a3.02 3.02 0 0 1-.469 1.673c-.2.401-.535.736-.87 1.003v.2l2.476 1.004c.268.067.468.268.602.469.134.2.2.468.2.736v2.943c.068.335-.2.67-.601.67ZM10.035 14.715H.67c-.401 0-.669-.267-.669-.669V11.84c0-.268.067-.536.2-.736.135-.201.335-.402.603-.469l2.542-1.07v-.2c-.334-.268-.669-.603-.87-1.004a3.02 3.02 0 0 1-.468-1.673V5.349c0-.87.335-1.74 1.004-2.342.602-.669 1.471-1.003 2.341-1.003.87 0 1.74.334 2.342 1.003.669.603 1.003 1.472 1.003 2.342v1.338A3.02 3.02 0 0 1 8.23 8.36c-.2.401-.535.736-.87 1.003v.2l2.476 1.004c.267.067.468.268.602.469.134.2.2.468.2.736v2.274c.067.335-.2.67-.602.67Zm-8.697-1.338h8.028v-1.539l-2.475-1.003c-.268-.067-.468-.268-.602-.468a1.286 1.286 0 0 1-.268-.803v-.602c0-.268.134-.469.335-.602.334-.201.535-.402.736-.736.2-.268.267-.602.267-.937V5.349c0-.535-.2-1.07-.602-1.405-.736-.803-2.074-.803-2.81 0-.401.335-.602.87-.602 1.405v1.338c0 .335.067.67.268 1.004.2.334.401.535.736.736.2.066.334.334.334.535v.602c0 .267-.067.535-.2.736-.134.2-.335.401-.603.468l-2.542 1.07v1.54Z"/></symbol>
282
282
  <symbol id="users-wm" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M15.167 9.867a1.334 1.334 0 0 1 .833 1.24v3.546h-4V13.32h2.667v-2.213l-2.494-1a1.312 1.312 0 0 1-.606-.487 1.302 1.302 0 0 1-.234-.747V7.9l.334-.187a1.967 1.967 0 0 0 1-1.72V4.66c0-.353-.094-.693-.267-1a1.985 1.985 0 0 0-.733-.733 2.02 2.02 0 0 0-2 0l-.58.333-.667-1.153.58-.334a3.377 3.377 0 0 1 3.333 0c.507.294.927.714 1.22 1.22A3.32 3.32 0 0 1 14 4.66v1.333c0 .58-.16 1.16-.447 1.66a3.327 3.327 0 0 1-.886.994v.226l2.5.994Zm-7.427-.16 2.087.833c.246.1.46.267.613.493.147.22.227.48.227.747v2.88H0v-2.88a1.344 1.344 0 0 1 .84-1.247L2.927 9.7C1.273 9.253.793 8.407.74 8.293l-.22-.426.34-.347C1.18 7.2 2 6.187 2 5.327c0-.894.347-1.727.973-2.36a3.34 3.34 0 0 1 2.36-.974 3.34 3.34 0 0 1 2.36.974 3.34 3.34 0 0 1 .974 2.36c0 .86.82 1.873 1.14 2.2l.34.34-.22.433c-.062.11-.537.954-2.187 1.407ZM1.333 11.78v1.54h7.994v-1.547l-2.494-1A1.312 1.312 0 0 1 6 9.54v-.887l.58-.073c.973-.127 1.54-.4 1.847-.613-.454-.58-1.094-1.574-1.094-2.64a1.97 1.97 0 0 0-.586-1.414c-.754-.753-2.074-.753-2.827 0-.38.38-.587.88-.587 1.414 0 1.066-.64 2.066-1.093 2.633.307.213.867.48 1.847.613l.58.08v.887a1.34 1.34 0 0 1-.84 1.24l-2.494 1Z"/></symbol>
283
283
  <symbol id="video-off" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M15.133 1.8a.644.644 0 0 0 0-.933.644.644 0 0 0-.933 0l-2.867 2.866c-.066-.466-.266-.866-.6-1.133-.333-.4-.866-.6-1.4-.6H2c-.533 0-1.067.2-1.4.6-.4.333-.6.867-.6 1.4v8c0 .533.2 1.067.6 1.4.2.2.4.333.6.4l-.333.333a.645.645 0 0 0 0 .934.645.645 0 0 0 .933 0L15.133 1.8ZM2.4 12.667l7.6-7.6V4c0-.2-.067-.333-.2-.467a.605.605 0 0 0-.467-.2H2c-.2 0-.333.067-.467.2a.605.605 0 0 0-.2.467v8c0 .2.067.333.2.467.134.133.267.2.467.2h.4Zm13.333-8.534c.2.134.267.334.267.534v6.666c0 .2-.067.4-.267.534-.133.133-.4.133-.6.133l-3.8-1.133V12c0 .533-.2 1.067-.6 1.4-.333.4-.866.6-1.4.6H5.467c-.4 0-.667-.267-.667-.667s.267-.666.667-.666h3.866c.2 0 .334-.067.467-.2A.605.605 0 0 0 10 12v-2c0-.2.067-.4.267-.533.133-.134.4-.134.6-.134l3.8 1.067V5.533l-.8.2c-.334.134-.734-.133-.8-.466-.134-.334.133-.734.466-.8l1.6-.467c.2 0 .467 0 .6.133Z"/></symbol>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M3.333 4.111a.778.778 0 0 1 1.556 0v3.222h6.222V4.111a.778.778 0 1 1 1.556 0v7.778a.778.778 0 0 1-1.556 0V8.667H4.89v3.222a.778.778 0 0 1-1.556 0V4.11Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M3.3 3.97a.67.67 0 0 1 .925-.619.66.66 0 0 1 .405.619V7.3h6.68V3.97a.662.662 0 0 1 1.134-.474.67.67 0 0 1 .196.474v8a.67.67 0 0 1-1.14.473.66.66 0 0 1-.19-.473V8.64H4.63v3.33a.66.66 0 0 1-.66.67.67.67 0 0 1-.67-.67v-8Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 17" class="pdsicon"><path fill-rule="evenodd" d="M11.667 3.697C11.667 5.687 10.067 8 8 8 5.933 8 4.333 5.687 4.333 3.697a3.667 3.667 0 1 1 7.334 0Zm-8.77 7.2c1-1 2.356-1.562 3.77-1.564h2.666a5.34 5.34 0 0 1 5.334 5.334.667.667 0 0 1-.464.635A22.19 22.19 0 0 1 8 16a22.19 22.19 0 0 1-6.203-.698.667.667 0 0 1-.464-.635 5.34 5.34 0 0 1 1.564-3.77Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M12.222 8.925A5.98 5.98 0 0 1 8 10.667a5.983 5.983 0 0 1-4.222-1.742A7.335 7.335 0 0 0 0 15.333c0 .368.299.667.667.667h14.666a.667.667 0 0 0 .667-.667 7.335 7.335 0 0 0-3.778-6.408Z"/><path d="M8 9.333A4.667 4.667 0 1 0 8 0a4.667 4.667 0 0 0 0 9.333Z"/></svg>
package/icons/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* pds-icons v3.6.0, Types */
1
+ /* pds-icons v3.7.0, Types */
2
2
 
3
3
  export declare var accessKey: string
4
4
  export declare var add: string
package/icons/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* pds-icons v3.6.0, CommonJs */
1
+ /* pds-icons v3.7.0, CommonJs */
2
2
 
3
3
  exports.accessKey = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='m14.193 2.75 1.571-1.572c.315-.314.315-.733 0-.942-.314-.315-.733-.315-.942 0L12.727 2.33l-2.095 2.095-2.933 2.828c-1.886-1.467-4.609-1.257-6.285.419-1.885 1.885-1.885 5.027 0 6.913 1.886 1.885 5.028 1.885 6.913 0a4.817 4.817 0 0 0 .42-6.39l2.409-2.409 1.57 1.571c.315.315.734.315.943 0l2.095-2.095c.315-.314.315-.733 0-.942l-1.57-1.571ZM7.28 13.643a3.477 3.477 0 0 1-4.923 0 3.477 3.477 0 0 1 0-4.923 3.477 3.477 0 0 1 4.923 0 3.477 3.477 0 0 1 0 4.923Zm5.97-7.646-1.152-1.152 1.152-1.153 1.153 1.153-1.153 1.152Z'/></svg>"
4
4
  exports.add = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M8 2a.628.628 0 0 0-.628.628v4.744H2.628a.628.628 0 0 0 0 1.256h4.744v4.744a.628.628 0 1 0 1.256 0V8.628h4.744a.628.628 0 1 0 0-1.256H8.628V2.628A.628.628 0 0 0 8 2Z'/></svg>"
@@ -133,7 +133,7 @@ exports.handle2Vertical = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org
133
133
  exports.hashtag = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M7.326 1.432a.667.667 0 0 0-1.319-.198l-.514 3.433h-2.16a.667.667 0 0 0 0 1.333h1.96l-.6 4H2.667a.667.667 0 0 0 0 1.333h1.826l-.486 3.235a.667.667 0 0 0 1.319.198l.515-3.433h3.318l-.485 3.235a.667.667 0 0 0 1.319.198l.514-3.433h2.16a.667.667 0 1 0 0-1.333h-1.96l.6-4h2.026a.667.667 0 1 0 0-1.333h-1.825l.485-3.235a.667.667 0 1 0-1.319-.198l-.515 3.433H6.841l.485-3.235ZM9.359 10l.6-4H6.641l-.6 4h3.318Z'/></svg>"
134
134
  exports.hdVideo = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M1.32 1.856h13.36c.73 0 1.32.593 1.32 1.324v9.64c0 .731-.59 1.324-1.32 1.324H1.32c-.73 0-1.32-.593-1.32-1.324V3.18c0-.731.59-1.324 1.32-1.324Zm.284 10.68h12.792V3.464H1.604v9.07ZM8.94 5.37l.014-.001.024-.001.609-.002c.472-.002.945-.005 1.417.006.636.014 1.218.206 1.702.638.353.315.583.71.699 1.166.176.691.16 1.376-.12 2.038-.3.71-.845 1.143-1.578 1.348a2.922 2.922 0 0 1-.782.107l-1.406.001H8.94v-5.3Zm1.357 4.183c.132 0 .261.001.39-.002l.074-.002c.133-.003.267-.006.397-.03.518-.097.875-.392 1.037-.902.103-.326.11-.66.048-.995-.125-.692-.629-1.097-1.31-1.132a9.152 9.152 0 0 0-.53-.007h-.23a.225.225 0 0 0-.034.004.582.582 0 0 1-.017.003v3.062h.175Zm-6.337 1.114H2.78V5.375h1.179V7.44h2.108V5.374h1.186v5.293H6.07v-2.1H3.96v2.101Z'/></svg>"
135
135
  exports.headingLarge = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M2 .667a.667.667 0 0 1 1.333 0v6.666h9.334V.667a.667.667 0 0 1 1.333 0v14.666a.667.667 0 0 1-1.333 0V8.667H3.333v6.666a.667.667 0 1 1-1.333 0V.667Z'/></svg>"
136
- exports.headingSmall = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M3.333 4.111a.778.778 0 0 1 1.556 0v3.222h6.222V4.111a.778.778 0 1 1 1.556 0v7.778a.778.778 0 0 1-1.556 0V8.667H4.89v3.222a.778.778 0 0 1-1.556 0V4.11Z'/></svg>"
136
+ exports.headingSmall = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M3.3 3.97a.67.67 0 0 1 .925-.619.66.66 0 0 1 .405.619V7.3h6.68V3.97a.662.662 0 0 1 1.134-.474.67.67 0 0 1 .196.474v8a.67.67 0 0 1-1.14.473.66.66 0 0 1-.19-.473V8.64H4.63v3.33a.66.66 0 0 1-.66.67.67.67 0 0 1-.67-.67v-8Z'/></svg>"
137
137
  exports.headset = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M8 0A7.338 7.338 0 0 0 .667 7.333v4c0 1.1.9 2 2 2h2c.366 0 .666-.3.666-.666V8c0-.367-.3-.667-.666-.667H2c0-3.306 2.693-6 6-6s6 2.694 6 6h-2.667c-.366 0-.666.3-.666.667v4.667c0 .366.3.666.666.666h2c.234 0 .46-.046.667-.12v.12c0 .734-.6 1.334-1.333 1.334H9.333c-.366 0-.666.3-.666.666 0 .367.3.667.666.667h3.334a2.666 2.666 0 0 0 2.666-2.667v-6A7.338 7.338 0 0 0 8 0ZM4 8.667V12H2.667A.669.669 0 0 1 2 11.333V8.667h2ZM13.333 12H12V8.667h2v2.666c0 .367-.3.667-.667.667Z'/></svg>"
138
138
  exports.helpFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M15.333 6h-.276A7.309 7.309 0 0 0 10 .943V.667A.666.666 0 0 0 9.333 0H6.667A.666.666 0 0 0 6 .667v.276A7.309 7.309 0 0 0 .943 6H.667A.666.666 0 0 0 0 6.667v2.666c0 .368.298.667.667.667h.276A7.309 7.309 0 0 0 6 15.057v.276c0 .368.298.667.667.667h2.666a.667.667 0 0 0 .667-.667v-.276A7.309 7.309 0 0 0 15.057 10h.276A.666.666 0 0 0 16 9.333V6.667A.666.666 0 0 0 15.333 6ZM8 10.667A2.67 2.67 0 0 1 5.333 8 2.67 2.67 0 0 1 8 5.333 2.67 2.67 0 0 1 10.667 8 2.67 2.67 0 0 1 8 10.667ZM13.655 6h-2.196A4.016 4.016 0 0 0 10 4.541V2.345A5.967 5.967 0 0 1 13.655 6ZM6 2.345v2.196A4.016 4.016 0 0 0 4.541 6H2.345A5.967 5.967 0 0 1 6 2.345ZM2.345 10h2.196c.351.605.854 1.108 1.459 1.459v2.196A5.967 5.967 0 0 1 2.345 10ZM10 13.655v-2.196A4.022 4.022 0 0 0 11.459 10h2.196A5.967 5.967 0 0 1 10 13.655Z'/></svg>"
139
139
  exports.helpOutline = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M15.06 6A7.373 7.373 0 0 0 10 .94.94.94 0 0 0 9.06 0H6.94A.94.94 0 0 0 6 .94 7.373 7.373 0 0 0 .94 6a.94.94 0 0 0-.94.94v2.12c0 .52.42.94.94.94A7.36 7.36 0 0 0 6 15.06c0 .52.42.94.94.94h2.12c.52 0 .94-.42.94-.94A7.36 7.36 0 0 0 15.06 10c.52 0 .94-.42.94-.94V6.94a.94.94 0 0 0-.94-.94ZM10 2.34A6.016 6.016 0 0 1 13.66 6h-2.193A4.07 4.07 0 0 0 10 4.533V2.34ZM7.333 1.333h1.334v2.72A4.423 4.423 0 0 0 8 4c-.227 0-.447.02-.667.053v-2.72ZM6 2.34v2.193A4.07 4.07 0 0 0 4.533 6H2.34A6.032 6.032 0 0 1 6 2.34ZM1.333 7.333h2.72C4.02 7.553 4 7.773 4 8c0 .227.02.447.053.667h-2.72V7.333ZM6 13.66A6.016 6.016 0 0 1 2.34 10h2.193A4.07 4.07 0 0 0 6 11.467v2.193Zm2.667 1.007H7.333v-2.72c.22.033.44.053.667.053.227 0 .447-.02.667-.053v2.72Zm-.667-4a2.666 2.666 0 1 1 0-5.334 2.666 2.666 0 1 1 0 5.334Zm2 2.993v-2.193A4.07 4.07 0 0 0 11.467 10h2.193A6.032 6.032 0 0 1 10 13.66Zm4.667-4.993h-2.72c.033-.22.053-.44.053-.667 0-.227-.02-.447-.053-.667h2.72v1.334Z'/></svg>"
@@ -267,7 +267,7 @@ exports.upSmall = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/sv
267
267
  exports.upload = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M.727 10.182c.402 0 .728.325.728.727v3.636h13.09V10.91a.727.727 0 1 1 1.455 0v4.364a.727.727 0 0 1-.727.727H.727A.727.727 0 0 1 0 15.273v-4.364c0-.402.326-.727.727-.727Z'/><path fill-rule='evenodd' d='M8 0c.402 0 .727.326.727.727v10.91a.727.727 0 0 1-1.454 0V.726C7.273.326 7.598 0 8 0Z'/><path fill-rule='evenodd' d='M7.486.213a.727.727 0 0 1 1.028 0l4.364 4.364a.727.727 0 0 1-1.029 1.028L8 1.755l-3.85 3.85a.727.727 0 1 1-1.028-1.028L7.486.213Z'/></svg>"
268
268
  exports.url = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M9.518 2.758 7.805 4.47a.667.667 0 1 1-.943-.942l1.722-1.723a4.007 4.007 0 0 1 5.598 0l-.465.477.477-.465a4.008 4.008 0 0 1 0 5.598l-.006.005-1.717 1.717a.667.667 0 1 1-.942-.943l1.713-1.713a2.674 2.674 0 0 0 .003-3.727 2.674 2.674 0 0 0-3.727.003ZM4.471 6.862c.26.26.26.682 0 .943L2.758 9.518a2.674 2.674 0 0 0-.003 3.727 2.674 2.674 0 0 0 3.727-.003l1.713-1.713a.667.667 0 1 1 .943.942l-1.722 1.723a4.008 4.008 0 0 1-5.598 0l.465-.477-.477.465a4.007 4.007 0 0 1 0-5.598l.006-.005 1.717-1.717c.26-.26.682-.26.942 0Z'/><path d='M11.138 5.805a.667.667 0 0 0-.943-.943l-5.333 5.333a.667.667 0 1 0 .943.943l5.333-5.333Z'/></svg>"
269
269
  exports.user = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M10.88 8.34a4.667 4.667 0 1 0-5.758 0 7.336 7.336 0 0 0-5.122 6.993.667.667 0 1 0 1.333 0 6 6 0 0 1 6-6h1.334a6 6 0 0 1 6 6 .667.667 0 1 0 1.333 0 7.336 7.336 0 0 0-5.12-6.993ZM4.666 4.667a3.333 3.333 0 1 1 6.666 0 3.333 3.333 0 0 1-6.666 0Z'/></svg>"
270
- exports.userFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 17' class='pdsicon'><path fill-rule='evenodd' d='M11.667 3.697C11.667 5.687 10.067 8 8 8 5.933 8 4.333 5.687 4.333 3.697a3.667 3.667 0 1 1 7.334 0Zm-8.77 7.2c1-1 2.356-1.562 3.77-1.564h2.666a5.34 5.34 0 0 1 5.334 5.334.667.667 0 0 1-.464.635A22.19 22.19 0 0 1 8 16a22.19 22.19 0 0 1-6.203-.698.667.667 0 0 1-.464-.635 5.34 5.34 0 0 1 1.564-3.77Z'/></svg>"
270
+ exports.userFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M12.222 8.925A5.98 5.98 0 0 1 8 10.667a5.983 5.983 0 0 1-4.222-1.742A7.335 7.335 0 0 0 0 15.333c0 .368.299.667.667.667h14.666a.667.667 0 0 0 .667-.667 7.335 7.335 0 0 0-3.778-6.408Z'/><path d='M8 9.333A4.667 4.667 0 1 0 8 0a4.667 4.667 0 0 0 0 9.333Z'/></svg>"
271
271
  exports.users = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M15.388 14.715H12.71c-.4 0-.668-.267-.668-.669 0-.401.267-.669.668-.669h2.008V11.17l-2.476-1.003c-.267-.067-.468-.268-.602-.468-.134-.201-.2-.469-.2-.736V8.36c0-.268.133-.469.334-.603.334-.2.535-.4.736-.735.134-.335.2-.67.2-1.004V4.68c0-.335-.066-.67-.267-1.004a1.944 1.944 0 0 0-.736-.736 2.133 2.133 0 0 0-2.007 0c-.335.201-.736.067-.937-.267-.2-.335-.067-.736.268-.937a3.323 3.323 0 0 1 3.345 0c.535.268.937.736 1.204 1.204.335.536.469 1.138.469 1.74v1.338a3.02 3.02 0 0 1-.469 1.673c-.2.401-.535.736-.87 1.003v.2l2.476 1.004c.268.067.468.268.602.469.134.2.2.468.2.736v2.943c.068.335-.2.67-.601.67ZM10.035 14.715H.67c-.401 0-.669-.267-.669-.669V11.84c0-.268.067-.536.2-.736.135-.201.335-.402.603-.469l2.542-1.07v-.2c-.334-.268-.669-.603-.87-1.004a3.02 3.02 0 0 1-.468-1.673V5.349c0-.87.335-1.74 1.004-2.342.602-.669 1.471-1.003 2.341-1.003.87 0 1.74.334 2.342 1.003.669.603 1.003 1.472 1.003 2.342v1.338A3.02 3.02 0 0 1 8.23 8.36c-.2.401-.535.736-.87 1.003v.2l2.476 1.004c.267.067.468.268.602.469.134.2.2.468.2.736v2.274c.067.335-.2.67-.602.67Zm-8.697-1.338h8.028v-1.539l-2.475-1.003c-.268-.067-.468-.268-.602-.468a1.286 1.286 0 0 1-.268-.803v-.602c0-.268.134-.469.335-.602.334-.201.535-.402.736-.736.2-.268.267-.602.267-.937V5.349c0-.535-.2-1.07-.602-1.405-.736-.803-2.074-.803-2.81 0-.401.335-.602.87-.602 1.405v1.338c0 .335.067.67.268 1.004.2.334.401.535.736.736.2.066.334.334.334.535v.602c0 .267-.067.535-.2.736-.134.2-.335.401-.603.468l-2.542 1.07v1.54Z'/></svg>"
272
272
  exports.usersWm = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M15.167 9.867a1.334 1.334 0 0 1 .833 1.24v3.546h-4V13.32h2.667v-2.213l-2.494-1a1.312 1.312 0 0 1-.606-.487 1.302 1.302 0 0 1-.234-.747V7.9l.334-.187a1.967 1.967 0 0 0 1-1.72V4.66c0-.353-.094-.693-.267-1a1.985 1.985 0 0 0-.733-.733 2.02 2.02 0 0 0-2 0l-.58.333-.667-1.153.58-.334a3.377 3.377 0 0 1 3.333 0c.507.294.927.714 1.22 1.22A3.32 3.32 0 0 1 14 4.66v1.333c0 .58-.16 1.16-.447 1.66a3.327 3.327 0 0 1-.886.994v.226l2.5.994Zm-7.427-.16 2.087.833c.246.1.46.267.613.493.147.22.227.48.227.747v2.88H0v-2.88a1.344 1.344 0 0 1 .84-1.247L2.927 9.7C1.273 9.253.793 8.407.74 8.293l-.22-.426.34-.347C1.18 7.2 2 6.187 2 5.327c0-.894.347-1.727.973-2.36a3.34 3.34 0 0 1 2.36-.974 3.34 3.34 0 0 1 2.36.974 3.34 3.34 0 0 1 .974 2.36c0 .86.82 1.873 1.14 2.2l.34.34-.22.433c-.062.11-.537.954-2.187 1.407ZM1.333 11.78v1.54h7.994v-1.547l-2.494-1A1.312 1.312 0 0 1 6 9.54v-.887l.58-.073c.973-.127 1.54-.4 1.847-.613-.454-.58-1.094-1.574-1.094-2.64a1.97 1.97 0 0 0-.586-1.414c-.754-.753-2.074-.753-2.827 0-.38.38-.587.88-.587 1.414 0 1.066-.64 2.066-1.093 2.633.307.213.867.48 1.847.613l.58.08v.887a1.34 1.34 0 0 1-.84 1.24l-2.494 1Z'/></svg>"
273
273
  exports.videoOff = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M15.133 1.8a.644.644 0 0 0 0-.933.644.644 0 0 0-.933 0l-2.867 2.866c-.066-.466-.266-.866-.6-1.133-.333-.4-.866-.6-1.4-.6H2c-.533 0-1.067.2-1.4.6-.4.333-.6.867-.6 1.4v8c0 .533.2 1.067.6 1.4.2.2.4.333.6.4l-.333.333a.645.645 0 0 0 0 .934.645.645 0 0 0 .933 0L15.133 1.8ZM2.4 12.667l7.6-7.6V4c0-.2-.067-.333-.2-.467a.605.605 0 0 0-.467-.2H2c-.2 0-.333.067-.467.2a.605.605 0 0 0-.2.467v8c0 .2.067.333.2.467.134.133.267.2.467.2h.4Zm13.333-8.534c.2.134.267.334.267.534v6.666c0 .2-.067.4-.267.534-.133.133-.4.133-.6.133l-3.8-1.133V12c0 .533-.2 1.067-.6 1.4-.333.4-.866.6-1.4.6H5.467c-.4 0-.667-.267-.667-.667s.267-.666.667-.666h3.866c.2 0 .334-.067.467-.2A.605.605 0 0 0 10 12v-2c0-.2.067-.4.267-.533.133-.134.4-.134.6-.134l3.8 1.067V5.533l-.8.2c-.334.134-.734-.133-.8-.466-.134-.334.133-.734.466-.8l1.6-.467c.2 0 .467 0 .6.133Z'/></svg>"
package/icons/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /* pds-icons v3.6.0, ES Modules */
1
+ /* pds-icons v3.7.0, 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 16 16' class='pdsicon'><path fill-rule='evenodd' d='m14.193 2.75 1.571-1.572c.315-.314.315-.733 0-.942-.314-.315-.733-.315-.942 0L12.727 2.33l-2.095 2.095-2.933 2.828c-1.886-1.467-4.609-1.257-6.285.419-1.885 1.885-1.885 5.027 0 6.913 1.886 1.885 5.028 1.885 6.913 0a4.817 4.817 0 0 0 .42-6.39l2.409-2.409 1.57 1.571c.315.315.734.315.943 0l2.095-2.095c.315-.314.315-.733 0-.942l-1.57-1.571ZM7.28 13.643a3.477 3.477 0 0 1-4.923 0 3.477 3.477 0 0 1 0-4.923 3.477 3.477 0 0 1 4.923 0 3.477 3.477 0 0 1 0 4.923Zm5.97-7.646-1.152-1.152 1.152-1.153 1.153 1.153-1.153 1.152Z'/></svg>"
4
4
  export const add = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M8 2a.628.628 0 0 0-.628.628v4.744H2.628a.628.628 0 0 0 0 1.256h4.744v4.744a.628.628 0 1 0 1.256 0V8.628h4.744a.628.628 0 1 0 0-1.256H8.628V2.628A.628.628 0 0 0 8 2Z'/></svg>"
@@ -133,7 +133,7 @@ export const handle2Vertical = "data:image/svg+xml;utf8,<svg xmlns='http://www.w
133
133
  export const hashtag = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M7.326 1.432a.667.667 0 0 0-1.319-.198l-.514 3.433h-2.16a.667.667 0 0 0 0 1.333h1.96l-.6 4H2.667a.667.667 0 0 0 0 1.333h1.826l-.486 3.235a.667.667 0 0 0 1.319.198l.515-3.433h3.318l-.485 3.235a.667.667 0 0 0 1.319.198l.514-3.433h2.16a.667.667 0 1 0 0-1.333h-1.96l.6-4h2.026a.667.667 0 1 0 0-1.333h-1.825l.485-3.235a.667.667 0 1 0-1.319-.198l-.515 3.433H6.841l.485-3.235ZM9.359 10l.6-4H6.641l-.6 4h3.318Z'/></svg>"
134
134
  export const hdVideo = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M1.32 1.856h13.36c.73 0 1.32.593 1.32 1.324v9.64c0 .731-.59 1.324-1.32 1.324H1.32c-.73 0-1.32-.593-1.32-1.324V3.18c0-.731.59-1.324 1.32-1.324Zm.284 10.68h12.792V3.464H1.604v9.07ZM8.94 5.37l.014-.001.024-.001.609-.002c.472-.002.945-.005 1.417.006.636.014 1.218.206 1.702.638.353.315.583.71.699 1.166.176.691.16 1.376-.12 2.038-.3.71-.845 1.143-1.578 1.348a2.922 2.922 0 0 1-.782.107l-1.406.001H8.94v-5.3Zm1.357 4.183c.132 0 .261.001.39-.002l.074-.002c.133-.003.267-.006.397-.03.518-.097.875-.392 1.037-.902.103-.326.11-.66.048-.995-.125-.692-.629-1.097-1.31-1.132a9.152 9.152 0 0 0-.53-.007h-.23a.225.225 0 0 0-.034.004.582.582 0 0 1-.017.003v3.062h.175Zm-6.337 1.114H2.78V5.375h1.179V7.44h2.108V5.374h1.186v5.293H6.07v-2.1H3.96v2.101Z'/></svg>"
135
135
  export const headingLarge = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M2 .667a.667.667 0 0 1 1.333 0v6.666h9.334V.667a.667.667 0 0 1 1.333 0v14.666a.667.667 0 0 1-1.333 0V8.667H3.333v6.666a.667.667 0 1 1-1.333 0V.667Z'/></svg>"
136
- export const headingSmall = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M3.333 4.111a.778.778 0 0 1 1.556 0v3.222h6.222V4.111a.778.778 0 1 1 1.556 0v7.778a.778.778 0 0 1-1.556 0V8.667H4.89v3.222a.778.778 0 0 1-1.556 0V4.11Z'/></svg>"
136
+ export const headingSmall = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M3.3 3.97a.67.67 0 0 1 .925-.619.66.66 0 0 1 .405.619V7.3h6.68V3.97a.662.662 0 0 1 1.134-.474.67.67 0 0 1 .196.474v8a.67.67 0 0 1-1.14.473.66.66 0 0 1-.19-.473V8.64H4.63v3.33a.66.66 0 0 1-.66.67.67.67 0 0 1-.67-.67v-8Z'/></svg>"
137
137
  export const headset = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M8 0A7.338 7.338 0 0 0 .667 7.333v4c0 1.1.9 2 2 2h2c.366 0 .666-.3.666-.666V8c0-.367-.3-.667-.666-.667H2c0-3.306 2.693-6 6-6s6 2.694 6 6h-2.667c-.366 0-.666.3-.666.667v4.667c0 .366.3.666.666.666h2c.234 0 .46-.046.667-.12v.12c0 .734-.6 1.334-1.333 1.334H9.333c-.366 0-.666.3-.666.666 0 .367.3.667.666.667h3.334a2.666 2.666 0 0 0 2.666-2.667v-6A7.338 7.338 0 0 0 8 0ZM4 8.667V12H2.667A.669.669 0 0 1 2 11.333V8.667h2ZM13.333 12H12V8.667h2v2.666c0 .367-.3.667-.667.667Z'/></svg>"
138
138
  export const helpFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M15.333 6h-.276A7.309 7.309 0 0 0 10 .943V.667A.666.666 0 0 0 9.333 0H6.667A.666.666 0 0 0 6 .667v.276A7.309 7.309 0 0 0 .943 6H.667A.666.666 0 0 0 0 6.667v2.666c0 .368.298.667.667.667h.276A7.309 7.309 0 0 0 6 15.057v.276c0 .368.298.667.667.667h2.666a.667.667 0 0 0 .667-.667v-.276A7.309 7.309 0 0 0 15.057 10h.276A.666.666 0 0 0 16 9.333V6.667A.666.666 0 0 0 15.333 6ZM8 10.667A2.67 2.67 0 0 1 5.333 8 2.67 2.67 0 0 1 8 5.333 2.67 2.67 0 0 1 10.667 8 2.67 2.67 0 0 1 8 10.667ZM13.655 6h-2.196A4.016 4.016 0 0 0 10 4.541V2.345A5.967 5.967 0 0 1 13.655 6ZM6 2.345v2.196A4.016 4.016 0 0 0 4.541 6H2.345A5.967 5.967 0 0 1 6 2.345ZM2.345 10h2.196c.351.605.854 1.108 1.459 1.459v2.196A5.967 5.967 0 0 1 2.345 10ZM10 13.655v-2.196A4.022 4.022 0 0 0 11.459 10h2.196A5.967 5.967 0 0 1 10 13.655Z'/></svg>"
139
139
  export const helpOutline = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M15.06 6A7.373 7.373 0 0 0 10 .94.94.94 0 0 0 9.06 0H6.94A.94.94 0 0 0 6 .94 7.373 7.373 0 0 0 .94 6a.94.94 0 0 0-.94.94v2.12c0 .52.42.94.94.94A7.36 7.36 0 0 0 6 15.06c0 .52.42.94.94.94h2.12c.52 0 .94-.42.94-.94A7.36 7.36 0 0 0 15.06 10c.52 0 .94-.42.94-.94V6.94a.94.94 0 0 0-.94-.94ZM10 2.34A6.016 6.016 0 0 1 13.66 6h-2.193A4.07 4.07 0 0 0 10 4.533V2.34ZM7.333 1.333h1.334v2.72A4.423 4.423 0 0 0 8 4c-.227 0-.447.02-.667.053v-2.72ZM6 2.34v2.193A4.07 4.07 0 0 0 4.533 6H2.34A6.032 6.032 0 0 1 6 2.34ZM1.333 7.333h2.72C4.02 7.553 4 7.773 4 8c0 .227.02.447.053.667h-2.72V7.333ZM6 13.66A6.016 6.016 0 0 1 2.34 10h2.193A4.07 4.07 0 0 0 6 11.467v2.193Zm2.667 1.007H7.333v-2.72c.22.033.44.053.667.053.227 0 .447-.02.667-.053v2.72Zm-.667-4a2.666 2.666 0 1 1 0-5.334 2.666 2.666 0 1 1 0 5.334Zm2 2.993v-2.193A4.07 4.07 0 0 0 11.467 10h2.193A6.032 6.032 0 0 1 10 13.66Zm4.667-4.993h-2.72c.033-.22.053-.44.053-.667 0-.227-.02-.447-.053-.667h2.72v1.334Z'/></svg>"
@@ -267,7 +267,7 @@ export const upSmall = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/20
267
267
  export const upload = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M.727 10.182c.402 0 .728.325.728.727v3.636h13.09V10.91a.727.727 0 1 1 1.455 0v4.364a.727.727 0 0 1-.727.727H.727A.727.727 0 0 1 0 15.273v-4.364c0-.402.326-.727.727-.727Z'/><path fill-rule='evenodd' d='M8 0c.402 0 .727.326.727.727v10.91a.727.727 0 0 1-1.454 0V.726C7.273.326 7.598 0 8 0Z'/><path fill-rule='evenodd' d='M7.486.213a.727.727 0 0 1 1.028 0l4.364 4.364a.727.727 0 0 1-1.029 1.028L8 1.755l-3.85 3.85a.727.727 0 1 1-1.028-1.028L7.486.213Z'/></svg>"
268
268
  export const url = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M9.518 2.758 7.805 4.47a.667.667 0 1 1-.943-.942l1.722-1.723a4.007 4.007 0 0 1 5.598 0l-.465.477.477-.465a4.008 4.008 0 0 1 0 5.598l-.006.005-1.717 1.717a.667.667 0 1 1-.942-.943l1.713-1.713a2.674 2.674 0 0 0 .003-3.727 2.674 2.674 0 0 0-3.727.003ZM4.471 6.862c.26.26.26.682 0 .943L2.758 9.518a2.674 2.674 0 0 0-.003 3.727 2.674 2.674 0 0 0 3.727-.003l1.713-1.713a.667.667 0 1 1 .943.942l-1.722 1.723a4.008 4.008 0 0 1-5.598 0l.465-.477-.477.465a4.007 4.007 0 0 1 0-5.598l.006-.005 1.717-1.717c.26-.26.682-.26.942 0Z'/><path d='M11.138 5.805a.667.667 0 0 0-.943-.943l-5.333 5.333a.667.667 0 1 0 .943.943l5.333-5.333Z'/></svg>"
269
269
  export const user = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M10.88 8.34a4.667 4.667 0 1 0-5.758 0 7.336 7.336 0 0 0-5.122 6.993.667.667 0 1 0 1.333 0 6 6 0 0 1 6-6h1.334a6 6 0 0 1 6 6 .667.667 0 1 0 1.333 0 7.336 7.336 0 0 0-5.12-6.993ZM4.666 4.667a3.333 3.333 0 1 1 6.666 0 3.333 3.333 0 0 1-6.666 0Z'/></svg>"
270
- export const userFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 17' class='pdsicon'><path fill-rule='evenodd' d='M11.667 3.697C11.667 5.687 10.067 8 8 8 5.933 8 4.333 5.687 4.333 3.697a3.667 3.667 0 1 1 7.334 0Zm-8.77 7.2c1-1 2.356-1.562 3.77-1.564h2.666a5.34 5.34 0 0 1 5.334 5.334.667.667 0 0 1-.464.635A22.19 22.19 0 0 1 8 16a22.19 22.19 0 0 1-6.203-.698.667.667 0 0 1-.464-.635 5.34 5.34 0 0 1 1.564-3.77Z'/></svg>"
270
+ export const userFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M12.222 8.925A5.98 5.98 0 0 1 8 10.667a5.983 5.983 0 0 1-4.222-1.742A7.335 7.335 0 0 0 0 15.333c0 .368.299.667.667.667h14.666a.667.667 0 0 0 .667-.667 7.335 7.335 0 0 0-3.778-6.408Z'/><path d='M8 9.333A4.667 4.667 0 1 0 8 0a4.667 4.667 0 0 0 0 9.333Z'/></svg>"
271
271
  export const users = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M15.388 14.715H12.71c-.4 0-.668-.267-.668-.669 0-.401.267-.669.668-.669h2.008V11.17l-2.476-1.003c-.267-.067-.468-.268-.602-.468-.134-.201-.2-.469-.2-.736V8.36c0-.268.133-.469.334-.603.334-.2.535-.4.736-.735.134-.335.2-.67.2-1.004V4.68c0-.335-.066-.67-.267-1.004a1.944 1.944 0 0 0-.736-.736 2.133 2.133 0 0 0-2.007 0c-.335.201-.736.067-.937-.267-.2-.335-.067-.736.268-.937a3.323 3.323 0 0 1 3.345 0c.535.268.937.736 1.204 1.204.335.536.469 1.138.469 1.74v1.338a3.02 3.02 0 0 1-.469 1.673c-.2.401-.535.736-.87 1.003v.2l2.476 1.004c.268.067.468.268.602.469.134.2.2.468.2.736v2.943c.068.335-.2.67-.601.67ZM10.035 14.715H.67c-.401 0-.669-.267-.669-.669V11.84c0-.268.067-.536.2-.736.135-.201.335-.402.603-.469l2.542-1.07v-.2c-.334-.268-.669-.603-.87-1.004a3.02 3.02 0 0 1-.468-1.673V5.349c0-.87.335-1.74 1.004-2.342.602-.669 1.471-1.003 2.341-1.003.87 0 1.74.334 2.342 1.003.669.603 1.003 1.472 1.003 2.342v1.338A3.02 3.02 0 0 1 8.23 8.36c-.2.401-.535.736-.87 1.003v.2l2.476 1.004c.267.067.468.268.602.469.134.2.2.468.2.736v2.274c.067.335-.2.67-.602.67Zm-8.697-1.338h8.028v-1.539l-2.475-1.003c-.268-.067-.468-.268-.602-.468a1.286 1.286 0 0 1-.268-.803v-.602c0-.268.134-.469.335-.602.334-.201.535-.402.736-.736.2-.268.267-.602.267-.937V5.349c0-.535-.2-1.07-.602-1.405-.736-.803-2.074-.803-2.81 0-.401.335-.602.87-.602 1.405v1.338c0 .335.067.67.268 1.004.2.334.401.535.736.736.2.066.334.334.334.535v.602c0 .267-.067.535-.2.736-.134.2-.335.401-.603.468l-2.542 1.07v1.54Z'/></svg>"
272
272
  export const usersWm = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M15.167 9.867a1.334 1.334 0 0 1 .833 1.24v3.546h-4V13.32h2.667v-2.213l-2.494-1a1.312 1.312 0 0 1-.606-.487 1.302 1.302 0 0 1-.234-.747V7.9l.334-.187a1.967 1.967 0 0 0 1-1.72V4.66c0-.353-.094-.693-.267-1a1.985 1.985 0 0 0-.733-.733 2.02 2.02 0 0 0-2 0l-.58.333-.667-1.153.58-.334a3.377 3.377 0 0 1 3.333 0c.507.294.927.714 1.22 1.22A3.32 3.32 0 0 1 14 4.66v1.333c0 .58-.16 1.16-.447 1.66a3.327 3.327 0 0 1-.886.994v.226l2.5.994Zm-7.427-.16 2.087.833c.246.1.46.267.613.493.147.22.227.48.227.747v2.88H0v-2.88a1.344 1.344 0 0 1 .84-1.247L2.927 9.7C1.273 9.253.793 8.407.74 8.293l-.22-.426.34-.347C1.18 7.2 2 6.187 2 5.327c0-.894.347-1.727.973-2.36a3.34 3.34 0 0 1 2.36-.974 3.34 3.34 0 0 1 2.36.974 3.34 3.34 0 0 1 .974 2.36c0 .86.82 1.873 1.14 2.2l.34.34-.22.433c-.062.11-.537.954-2.187 1.407ZM1.333 11.78v1.54h7.994v-1.547l-2.494-1A1.312 1.312 0 0 1 6 9.54v-.887l.58-.073c.973-.127 1.54-.4 1.847-.613-.454-.58-1.094-1.574-1.094-2.64a1.97 1.97 0 0 0-.586-1.414c-.754-.753-2.074-.753-2.827 0-.38.38-.587.88-.587 1.414 0 1.066-.64 2.066-1.093 2.633.307.213.867.48 1.847.613l.58.08v.887a1.34 1.34 0 0 1-.84 1.24l-2.494 1Z'/></svg>"
273
273
  export const videoOff = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M15.133 1.8a.644.644 0 0 0 0-.933.644.644 0 0 0-.933 0l-2.867 2.866c-.066-.466-.266-.866-.6-1.133-.333-.4-.866-.6-1.4-.6H2c-.533 0-1.067.2-1.4.6-.4.333-.6.867-.6 1.4v8c0 .533.2 1.067.6 1.4.2.2.4.333.6.4l-.333.333a.645.645 0 0 0 0 .934.645.645 0 0 0 .933 0L15.133 1.8ZM2.4 12.667l7.6-7.6V4c0-.2-.067-.333-.2-.467a.605.605 0 0 0-.467-.2H2c-.2 0-.333.067-.467.2a.605.605 0 0 0-.2.467v8c0 .2.067.333.2.467.134.133.267.2.467.2h.4Zm13.333-8.534c.2.134.267.334.267.534v6.666c0 .2-.067.4-.267.534-.133.133-.4.133-.6.133l-3.8-1.133V12c0 .533-.2 1.067-.6 1.4-.333.4-.866.6-1.4.6H5.467c-.4 0-.667-.267-.667-.667s.267-.666.667-.666h3.866c.2 0 .334-.067.467-.2A.605.605 0 0 0 10 12v-2c0-.2.067-.4.267-.533.133-.134.4-.134.6-.134l3.8 1.067V5.533l-.8.2c-.334.134-.734-.133-.8-.466-.134-.334.133-.734.466-.8l1.6-.467c.2 0 .467 0 .6.133Z'/></svg>"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pine-ds/icons/icons",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "module": "index.mjs",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pine-ds/icons",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "license": "MIT",
5
5
  "description": "Pine Icon Library",
6
6
  "author": " Kajabi Design System Services",
@@ -1,2 +0,0 @@
1
- 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 asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation:\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&&!a(t)){n=t}if(l(n)){n=d(n)}if(!l(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(l(n)){n=n.trim();if(a(n)){return n}}return null};const u=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 a=n=>n.length>0&&/(\/|\.)/.test(n);const l=n=>typeof n==="string";const d=n=>n.toLowerCase();const f=(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,f as b,i as c,u as g,l as i};
2
- //# sourceMappingURL=p-f954ed14.js.map
@@ -1 +0,0 @@
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 asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation:\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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