@ascentgl/ads-icons 21.19.0 → 21.21.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.
|
@@ -170,11 +170,11 @@ class AdsIconComponent {
|
|
|
170
170
|
return this.element.nativeElement.querySelector('svg');
|
|
171
171
|
}
|
|
172
172
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsIconComponent, deps: [{ token: i0.ElementRef }, { token: AdsIconRegistry }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
173
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: AdsIconComponent, isStandalone: false, selector: "ads-icon", inputs: { size: "size", name: "name", color: "color", theme: "theme", stroke: "stroke" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;font-size:32px;fill:currentColor}:host ::ng-deep [data-no-fill]{fill:none!important}:host ::ng-deep [data-no-stroke]{stroke:none!important}:host ::ng-deep [data-stroke-white]{stroke:var(--color-white)}:host ::ng-deep [data-fill-white]{fill:var(--color-white)}\n"] }); }
|
|
173
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: AdsIconComponent, isStandalone: false, selector: "ads-icon", inputs: { size: "size", name: "name", color: "color", theme: "theme", stroke: "stroke" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;font-size:32px;fill:currentColor}:host ::ng-deep [data-no-fill]{fill:none!important}:host ::ng-deep [data-no-stroke]{stroke:none!important}:host ::ng-deep [data-stroke-white]{stroke:var(--color-white)}:host ::ng-deep [data-fill-white]{fill:var(--color-white)}:host ::ng-deep [data-fill-logo]{fill:var(--color-logo)}\n"] }); }
|
|
174
174
|
}
|
|
175
175
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsIconComponent, decorators: [{
|
|
176
176
|
type: Component,
|
|
177
|
-
args: [{ selector: 'ads-icon', template: '', standalone: false, styles: [":host{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;font-size:32px;fill:currentColor}:host ::ng-deep [data-no-fill]{fill:none!important}:host ::ng-deep [data-no-stroke]{stroke:none!important}:host ::ng-deep [data-stroke-white]{stroke:var(--color-white)}:host ::ng-deep [data-fill-white]{fill:var(--color-white)}\n"] }]
|
|
177
|
+
args: [{ selector: 'ads-icon', template: '', standalone: false, styles: [":host{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;font-size:32px;fill:currentColor}:host ::ng-deep [data-no-fill]{fill:none!important}:host ::ng-deep [data-no-stroke]{stroke:none!important}:host ::ng-deep [data-stroke-white]{stroke:var(--color-white)}:host ::ng-deep [data-fill-white]{fill:var(--color-white)}:host ::ng-deep [data-fill-logo]{fill:var(--color-logo)}\n"] }]
|
|
178
178
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: AdsIconRegistry }, { type: i0.Renderer2 }], propDecorators: { size: [{
|
|
179
179
|
type: Input
|
|
180
180
|
}], name: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ascentgl-ads-icons.mjs","sources":["../../../../libs/ads-icons/src/lib/ads-icon-registry.service.ts","../../../../libs/ads-icons/src/lib/ads-icon.component.ts","../../../../libs/ads-icons/src/lib/ads-icon.module.ts","../../../../libs/ads-icons/src/public-api.ts","../../../../libs/ads-icons/src/ascentgl-ads-icons.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { AdsIcon } from '@ascentgl/ads-icons/icons';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AdsIconRegistry {\n private registry = new Map<string, string>();\n\n public register(icons: AdsIcon | AdsIcon[]): void {\n if (Array.isArray(icons)) {\n icons.forEach((icon: AdsIcon) => this.registry.set(icon.name, icon.data));\n } else {\n this.registry.set(icons.name, icons.data);\n }\n }\n\n public get(iconName: string): string | undefined {\n if (!this.registry.has(iconName)) {\n console.warn(`Could not find a Ads Icon with the name ${iconName}. Did you add it to the icon registry?`);\n }\n\n return this.registry.get(iconName);\n }\n}\n","import { Component, ElementRef, Input, OnInit, Renderer2, OnChanges, SimpleChanges } from '@angular/core';\nimport { AdsIconRegistry } from './ads-icon-registry.service';\nimport { adsIcon } from '@ascentgl/ads-icons/icons';\n\ntype Sizes = {\n xxl: string;\n xl: string;\n lg: string;\n md: string;\n sm: string;\n xs: string;\n xxs: string;\n xxs_16: string;\n xxxs: string;\n xxxxs: string;\n auto: string;\n};\n\nexport type IconThemes = {\n iconPrimary: string;\n primary: string;\n secondary: string;\n secondaryHover: string;\n success: string;\n warn: string;\n white: string;\n 'dark-50': string;\n dark: string;\n link: string;\n 'medium-50': string;\n light: string;\n};\n\n@Component({\n selector: 'ads-icon',\n template: '',\n styleUrls: ['./ads-icon.component.scss'],\n standalone: false,\n})\nexport class AdsIconComponent implements OnInit, OnChanges {\n /**\n * The size of the icon\n */\n @Input() size: keyof Sizes = 'md';\n /**\n * The icon name\n */\n @Input() name!: adsIcon;\n /**\n * The color of the icon\n */\n @Input() color?: string;\n\n /**\n * The icon theme\n */\n @Input() theme?: keyof IconThemes;\n /**\n * The icon stroke\n */\n @Input() stroke?: keyof IconThemes;\n\n /** @ignore */\n private sizes: Sizes = {\n xxl: '128px',\n xl: '64px',\n lg: '48px',\n md: '32px',\n sm: '24px',\n xs: '20px',\n xxs_16: '16px',\n xxs: '14px',\n xxxs: '12px',\n xxxxs: '8px',\n auto: 'auto',\n };\n\n /** @ignore */\n private themes: IconThemes = {\n iconPrimary: '--color-medium',\n 'medium-50': '--color-medium-50',\n secondary: '--color-secondary',\n success: '--color-success',\n warn: '--color-error',\n primary: '--color-primary',\n white: '--color-white',\n 'dark-50': '--color-dark-50',\n dark: '--color-dark',\n link: '--color-link',\n secondaryHover: '--color-secondary-hover',\n light: '--color-light',\n };\n\n /** @ignore */\n private static instanceCounter = 0;\n private instanceId: number;\n\n /** @ignore */\n constructor(\n private element: ElementRef,\n private registry: AdsIconRegistry,\n private renderer: Renderer2,\n ) {\n this.instanceId = AdsIconComponent.instanceCounter++;\n }\n\n /** @ignore */\n ngOnInit(): void {\n this.renderIcon();\n }\n\n /** @ignore */\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.size || changes.color || changes.theme || changes.stroke || changes.fill || changes.name) {\n this.renderIcon();\n }\n }\n\n /** @ignore */\n private renderIcon(): void {\n let iconSVG = this.registry.get(this.name);\n\n if (iconSVG) {\n // Make clip-path and other ID references unique to avoid conflicts with multiple instances\n iconSVG = this.makeIdsUnique(iconSVG);\n this.element.nativeElement.innerHTML = iconSVG;\n this.updateSize();\n this.updateColor();\n this.updateTheme();\n this.updateStroke();\n } else {\n console.warn(`${this.name} is missing from the icon registry`);\n }\n }\n\n /** @ignore */\n private makeIdsUnique(svg: string): string {\n // Find all id definitions and their references, make them unique\n const idRegex = /id=\"([^\"]+)\"/g;\n\n const ids = new Set<string>();\n let match;\n\n // Collect all IDs\n while ((match = idRegex.exec(svg)) !== null) {\n ids.add(match[1]);\n }\n\n // Replace each ID and its references with unique versions\n let result = svg;\n ids.forEach((id) => {\n const uniqueId = `${id}_${this.instanceId}`;\n // Escape special regex characters in the ID\n const escapedId = id.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n result = result.replace(new RegExp(`id=\"${escapedId}\"`, 'g'), `id=\"${uniqueId}\"`);\n result = result.replace(new RegExp(`url\\\\(#${escapedId}\\\\)`, 'g'), `url(#${uniqueId})`);\n // Also update xlink:href and href references (used by flag icons with embedded images)\n result = result.replace(new RegExp(`xlink:href=\"#${escapedId}\"`, 'g'), `xlink:href=\"#${uniqueId}\"`);\n result = result.replace(new RegExp(`href=\"#${escapedId}\"`, 'g'), `href=\"#${uniqueId}\"`);\n });\n\n return result;\n }\n\n /** @ignore */\n private updateSize(): void {\n const size = this.sizes[this.size];\n this.renderer.setStyle(this.element.nativeElement, 'fontSize', size);\n this.renderer.setStyle(this.element.nativeElement, 'width', size);\n this.renderer.setStyle(this.element.nativeElement, 'height', size);\n\n const svgElement = this.getSvgElement();\n if (svgElement) {\n this.renderer.setStyle(svgElement, 'width', size);\n this.renderer.setStyle(svgElement, 'height', size);\n }\n }\n\n /** @ignore */\n private updateColor(): void {\n if (this.color) {\n const svg = this.element.nativeElement.querySelector('svg');\n this.renderer.setStyle(svg, 'fill', `var(${this.color})`);\n }\n }\n\n /** @ignore */\n private updateTheme(): void {\n if (this.theme) {\n const themeColor = this.themes[this.theme];\n if (themeColor) {\n this.renderer.setStyle(this.element.nativeElement, 'color', `var(${themeColor})`);\n } else {\n console.warn(\n `${this.theme} is not a valid ads-icon theme. Valid themes include: 'iconPrimary', 'primary', 'secondary', 'success', 'warn', 'white'`,\n );\n }\n }\n }\n\n /** @ignore */\n private updateStroke(): void {\n if (this.stroke) {\n const strokeColor = this.themes[this.stroke];\n if (strokeColor) {\n this.renderer.setStyle(this.element.nativeElement, 'stroke', `var(${strokeColor})`);\n } else {\n console.warn(\n `${this.stroke} is not a valid ads-icon stroke. Valid strokes include: 'iconPrimary', 'primary', 'secondary', 'success', 'warn', 'white', 'dark-50', 'dark'`,\n );\n }\n }\n }\n\n /** @ignore */\n private getSvgElement(): SVGElement | null {\n return this.element.nativeElement.querySelector('svg');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { AdsIconComponent } from './ads-icon.component';\n\n@NgModule({\n declarations: [AdsIconComponent],\n exports: [AdsIconComponent],\n})\nexport class AdsIconModule {}\n","/*\n * Public API Surface of ads-icons\n */\n\nexport * from './lib/ads-icon-registry.service';\nexport * from './lib/ads-icon.component';\nexport * from './lib/ads-icon.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.AdsIconRegistry"],"mappings":";;;MAMa,eAAe,CAAA;AAH5B,IAAA,WAAA,GAAA;AAIU,QAAA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file":"ascentgl-ads-icons.mjs","sources":["../../../../libs/ads-icons/src/lib/ads-icon-registry.service.ts","../../../../libs/ads-icons/src/lib/ads-icon.component.ts","../../../../libs/ads-icons/src/lib/ads-icon.module.ts","../../../../libs/ads-icons/src/public-api.ts","../../../../libs/ads-icons/src/ascentgl-ads-icons.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { AdsIcon } from '@ascentgl/ads-icons/icons';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AdsIconRegistry {\n private registry = new Map<string, string>();\n\n public register(icons: AdsIcon | AdsIcon[]): void {\n if (Array.isArray(icons)) {\n icons.forEach((icon: AdsIcon) => this.registry.set(icon.name, icon.data));\n } else {\n this.registry.set(icons.name, icons.data);\n }\n }\n\n public get(iconName: string): string | undefined {\n if (!this.registry.has(iconName)) {\n console.warn(`Could not find a Ads Icon with the name ${iconName}. Did you add it to the icon registry?`);\n }\n\n return this.registry.get(iconName);\n }\n}\n","import { Component, ElementRef, Input, OnInit, Renderer2, OnChanges, SimpleChanges } from '@angular/core';\nimport { AdsIconRegistry } from './ads-icon-registry.service';\nimport { adsIcon } from '@ascentgl/ads-icons/icons';\n\ntype Sizes = {\n xxl: string;\n xl: string;\n lg: string;\n md: string;\n sm: string;\n xs: string;\n xxs: string;\n xxs_16: string;\n xxxs: string;\n xxxxs: string;\n auto: string;\n};\n\nexport type IconThemes = {\n iconPrimary: string;\n primary: string;\n secondary: string;\n secondaryHover: string;\n success: string;\n warn: string;\n white: string;\n 'dark-50': string;\n dark: string;\n link: string;\n 'medium-50': string;\n light: string;\n};\n\n@Component({\n selector: 'ads-icon',\n template: '',\n styleUrls: ['./ads-icon.component.scss'],\n standalone: false,\n})\nexport class AdsIconComponent implements OnInit, OnChanges {\n /**\n * The size of the icon\n */\n @Input() size: keyof Sizes = 'md';\n /**\n * The icon name\n */\n @Input() name!: adsIcon;\n /**\n * The color of the icon\n */\n @Input() color?: string;\n\n /**\n * The icon theme\n */\n @Input() theme?: keyof IconThemes;\n /**\n * The icon stroke\n */\n @Input() stroke?: keyof IconThemes;\n\n /** @ignore */\n private sizes: Sizes = {\n xxl: '128px',\n xl: '64px',\n lg: '48px',\n md: '32px',\n sm: '24px',\n xs: '20px',\n xxs_16: '16px',\n xxs: '14px',\n xxxs: '12px',\n xxxxs: '8px',\n auto: 'auto',\n };\n\n /** @ignore */\n private themes: IconThemes = {\n iconPrimary: '--color-medium',\n 'medium-50': '--color-medium-50',\n secondary: '--color-secondary',\n success: '--color-success',\n warn: '--color-error',\n primary: '--color-primary',\n white: '--color-white',\n 'dark-50': '--color-dark-50',\n dark: '--color-dark',\n link: '--color-link',\n secondaryHover: '--color-secondary-hover',\n light: '--color-light',\n };\n\n /** @ignore */\n private static instanceCounter = 0;\n private instanceId: number;\n\n /** @ignore */\n constructor(\n private element: ElementRef,\n private registry: AdsIconRegistry,\n private renderer: Renderer2,\n ) {\n this.instanceId = AdsIconComponent.instanceCounter++;\n }\n\n /** @ignore */\n ngOnInit(): void {\n this.renderIcon();\n }\n\n /** @ignore */\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.size || changes.color || changes.theme || changes.stroke || changes.fill || changes.name) {\n this.renderIcon();\n }\n }\n\n /** @ignore */\n private renderIcon(): void {\n let iconSVG = this.registry.get(this.name);\n\n if (iconSVG) {\n // Make clip-path and other ID references unique to avoid conflicts with multiple instances\n iconSVG = this.makeIdsUnique(iconSVG);\n this.element.nativeElement.innerHTML = iconSVG;\n this.updateSize();\n this.updateColor();\n this.updateTheme();\n this.updateStroke();\n } else {\n console.warn(`${this.name} is missing from the icon registry`);\n }\n }\n\n /** @ignore */\n private makeIdsUnique(svg: string): string {\n // Find all id definitions and their references, make them unique\n const idRegex = /id=\"([^\"]+)\"/g;\n\n const ids = new Set<string>();\n let match;\n\n // Collect all IDs\n while ((match = idRegex.exec(svg)) !== null) {\n ids.add(match[1]);\n }\n\n // Replace each ID and its references with unique versions\n let result = svg;\n ids.forEach((id) => {\n const uniqueId = `${id}_${this.instanceId}`;\n // Escape special regex characters in the ID\n const escapedId = id.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n result = result.replace(new RegExp(`id=\"${escapedId}\"`, 'g'), `id=\"${uniqueId}\"`);\n result = result.replace(new RegExp(`url\\\\(#${escapedId}\\\\)`, 'g'), `url(#${uniqueId})`);\n // Also update xlink:href and href references (used by flag icons with embedded images)\n result = result.replace(new RegExp(`xlink:href=\"#${escapedId}\"`, 'g'), `xlink:href=\"#${uniqueId}\"`);\n result = result.replace(new RegExp(`href=\"#${escapedId}\"`, 'g'), `href=\"#${uniqueId}\"`);\n });\n\n return result;\n }\n\n /** @ignore */\n private updateSize(): void {\n const size = this.sizes[this.size];\n this.renderer.setStyle(this.element.nativeElement, 'fontSize', size);\n this.renderer.setStyle(this.element.nativeElement, 'width', size);\n this.renderer.setStyle(this.element.nativeElement, 'height', size);\n\n const svgElement = this.getSvgElement();\n if (svgElement) {\n this.renderer.setStyle(svgElement, 'width', size);\n this.renderer.setStyle(svgElement, 'height', size);\n }\n }\n\n /** @ignore */\n private updateColor(): void {\n if (this.color) {\n const svg = this.element.nativeElement.querySelector('svg');\n this.renderer.setStyle(svg, 'fill', `var(${this.color})`);\n }\n }\n\n /** @ignore */\n private updateTheme(): void {\n if (this.theme) {\n const themeColor = this.themes[this.theme];\n if (themeColor) {\n this.renderer.setStyle(this.element.nativeElement, 'color', `var(${themeColor})`);\n } else {\n console.warn(\n `${this.theme} is not a valid ads-icon theme. Valid themes include: 'iconPrimary', 'primary', 'secondary', 'success', 'warn', 'white'`,\n );\n }\n }\n }\n\n /** @ignore */\n private updateStroke(): void {\n if (this.stroke) {\n const strokeColor = this.themes[this.stroke];\n if (strokeColor) {\n this.renderer.setStyle(this.element.nativeElement, 'stroke', `var(${strokeColor})`);\n } else {\n console.warn(\n `${this.stroke} is not a valid ads-icon stroke. Valid strokes include: 'iconPrimary', 'primary', 'secondary', 'success', 'warn', 'white', 'dark-50', 'dark'`,\n );\n }\n }\n }\n\n /** @ignore */\n private getSvgElement(): SVGElement | null {\n return this.element.nativeElement.querySelector('svg');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { AdsIconComponent } from './ads-icon.component';\n\n@NgModule({\n declarations: [AdsIconComponent],\n exports: [AdsIconComponent],\n})\nexport class AdsIconModule {}\n","/*\n * Public API Surface of ads-icons\n */\n\nexport * from './lib/ads-icon-registry.service';\nexport * from './lib/ads-icon.component';\nexport * from './lib/ads-icon.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.AdsIconRegistry"],"mappings":";;;MAMa,eAAe,CAAA;AAH5B,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,GAAG,EAAkB;AAiB7C,IAAA;AAfQ,IAAA,QAAQ,CAAC,KAA0B,EAAA;AACxC,QAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACxB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAa,KAAK,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3E;aAAO;AACL,YAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QAC3C;IACF;AAEO,IAAA,GAAG,CAAC,QAAgB,EAAA;QACzB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;AAChC,YAAA,OAAO,CAAC,IAAI,CAAC,2CAA2C,QAAQ,CAAA,sCAAA,CAAwC,CAAC;QAC3G;QAEA,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC;IACpC;8GAjBW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAA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EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAb,aAAa,EAAA,YAAA,EAAA,CAHT,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACrB,gBAAgB,CAAA,EAAA,CAAA,CAAA;+GAEf,aAAa,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type adsIcon = 'arrows' | 'arrow_down' | 'arrow_up' | 'arrow_up_and_down' | 'assembly_production_conveyer' | 'audit_pay' | 'badge' | 'bar_graph' | 'bell' | 'bell_warning' | 'bookmark' | 'bookmark_filled' | 'box_check' | 'business_briefcase' | 'calculator' | 'calendar' | 'canada_flag' | 'calendar_check' | 'calendar_star' | 'caret_down_2' | 'caret_up_2' | 'chemicals_hazard' | 'check' | 'check_circle' | 'check_circle_filled' | 'checklist' | 'chevron_down' | 'chevron_left' | 'chevron_right' | 'chevron_up' | 'circle_filled' | 'circle_no_filled' | 'cross' | 'cross_circle' | 'cross_circle_themed' | 'cross_circle_filled' | 'cross_v2' | 'dashboard' | 'datepicker' | 'download' | 'drag' | 'dropdown_arrow' | 'edit_dashboard' | 'essentials' | 'exclamation' | 'export' | 'file_complete' | 'file_multi' | 'file_pdf' | 'files' | 'file_signature' | 'file_tariff' | 'flame_fire' | 'flight' | 'filter' | 'forklift' | 'france_flag' | 'front_truck' | 'freight_container' | 'gear' | 'germany_flag' | 'globe' | 'graph' | 'grid_view' | 'hamburger_menu' | 'hazmat' | 'heart' | 'image' | 'information' | 'italy_flag' | 'japan_flag' | 'list_view' | 'loading' | 'location_filled' | 'lock' | 'logout' | 'list' | 'mail_envelope' | 'mail_forward' | 'map' | 'menu_filters' | 'menu_more_info' | 'medal' | 'minus' | 'minus_circle' | 'mexican_flag' | 'news_document' | 'order' | 'order_management' | 'palette' | 'paper_clip' | 'pencil' | 'pending' | 'phone' | 'plus' | 'plus_circle' | 'print' | 'portugal_flag' | 'reply' | 'reply_all' | 'reporting' | 'route' | 'ruler' | 'search' | 'settings' | 'search_file' | 'scales' | 'ship' | 'shipping' | 'shipment' | 'sorting_arrow_up' | 'sorting_arrow_down' | 'sort_ascending' | 'sort_descending' | 'sort_filled' | 'sort_rearrange' | 'sort_up_to_down' | 'sort_down_to_up' | 'star' | 'star_25' | 'star_50' | 'star_75' | 'star_full' | 'status_new' | 'status_processing' | 'south_korea_flag' | 'spain_flag' | 'stepper_circle' | 'square_arrow_up_right' | 'table' | 'table_filter' | 'table_view' | 'thumbs_up_opportunities' | 'timepicker' | 'tools' | 'train' | 'trash' | 'truck' | 'truck_dolly' | 'truck_fast' | 'us_flag' | 'user' | 'user_circle' | 'users' | 'unlock' | 'vendor_management' | 'visibility_eye' | 'visibility_eye_none' | 'warehouse' | 'exit' | 'warning' | 'warning_reversed' | 'communication_chat_bubble' | 'donut_chart';
|
|
1
|
+
type adsIcon = 'arrows' | 'arrow_down' | 'arrow_up' | 'arrow_up_and_down' | 'assembly_production_conveyer' | 'audit_pay' | 'badge' | 'bar_graph' | 'bell' | 'bell_warning' | 'bookmark' | 'bookmark_filled' | 'box_check' | 'business_briefcase' | 'calculator' | 'calendar' | 'canada_flag' | 'calendar_check' | 'calendar_star' | 'caret_down_2' | 'caret_up_2' | 'chemicals_hazard' | 'check' | 'check_circle' | 'check_circle_filled' | 'checklist' | 'chevron_down' | 'chevron_left' | 'chevron_right' | 'chevron_up' | 'circle_filled' | 'circle_no_filled' | 'cross' | 'cross_circle' | 'cross_circle_themed' | 'cross_circle_filled' | 'cross_v2' | 'dashboard' | 'datepicker' | 'download' | 'drag' | 'dropdown_arrow' | 'edit_dashboard' | 'essentials' | 'exclamation' | 'export' | 'file_complete' | 'file_multi' | 'file_pdf' | 'files' | 'file_signature' | 'file_tariff' | 'flame_fire' | 'flight' | 'filter' | 'forklift' | 'france_flag' | 'front_truck' | 'freight_container' | 'gear' | 'germany_flag' | 'globe' | 'graph' | 'grid_view' | 'hamburger_menu' | 'hazmat' | 'heart' | 'hyperlink' | 'image' | 'information' | 'italy_flag' | 'japan_flag' | 'list_view' | 'loading' | 'location_filled' | 'lock' | 'logo_badge' | 'logout' | 'list' | 'mail_envelope' | 'mail_forward' | 'map' | 'menu_filters' | 'menu_more_info' | 'medal' | 'minus' | 'minus_circle' | 'mexican_flag' | 'news_document' | 'order' | 'order_management' | 'palette' | 'paper_clip' | 'pencil' | 'pending' | 'phone' | 'plus' | 'plus_circle' | 'print' | 'portugal_flag' | 'reply' | 'reply_all' | 'reporting' | 'route' | 'ruler' | 'search' | 'settings' | 'search_file' | 'scales' | 'ship' | 'shipping' | 'shipment' | 'sorting_arrow_up' | 'sorting_arrow_down' | 'sort_ascending' | 'sort_descending' | 'sort_filled' | 'sort_rearrange' | 'sort_up_to_down' | 'sort_down_to_up' | 'star' | 'star_25' | 'star_50' | 'star_75' | 'star_full' | 'status_new' | 'status_processing' | 'south_korea_flag' | 'spain_flag' | 'stepper_circle' | 'square_arrow_up_right' | 'table' | 'table_filter' | 'table_view' | 'thumbs_up_opportunities' | 'timepicker' | 'tools' | 'train' | 'trash' | 'truck' | 'truck_dolly' | 'truck_fast' | 'us_flag' | 'user' | 'user_circle' | 'users' | 'unlock' | 'vendor_management' | 'visibility_eye' | 'visibility_eye_none' | 'warehouse' | 'exit' | 'warning' | 'warning_reversed' | 'communication_chat_bubble' | 'donut_chart';
|
|
2
2
|
interface AdsIcon {
|
|
3
3
|
name: adsIcon;
|
|
4
4
|
data: string;
|
|
@@ -99,6 +99,11 @@ declare const adsIconTableFilter: {
|
|
|
99
99
|
data: string;
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
+
declare const adsIconHyperlink: {
|
|
103
|
+
name: 'hyperlink';
|
|
104
|
+
data: string;
|
|
105
|
+
};
|
|
106
|
+
|
|
102
107
|
declare const adsIconScales: {
|
|
103
108
|
name: 'scales';
|
|
104
109
|
data: string;
|
|
@@ -764,7 +769,12 @@ declare const adsIconUnlock: {
|
|
|
764
769
|
data: string;
|
|
765
770
|
};
|
|
766
771
|
|
|
772
|
+
declare const adsIconLogoBadge: {
|
|
773
|
+
name: 'logo_badge';
|
|
774
|
+
data: string;
|
|
775
|
+
};
|
|
776
|
+
|
|
767
777
|
type AdsIconNameSubset<T extends Readonly<AdsIcon[]>> = T[number]['name'];
|
|
768
778
|
|
|
769
|
-
export { adsIconArrowDown, adsIconArrowUp, adsIconArrowUpAndDown, adsIconArrows, adsIconAssemblyProductionConveyer, adsIconAuditPay, adsIconBadge, adsIconBarGraph, adsIconBell, adsIconBellWarning, adsIconBookmark, adsIconBookmarkFilled, adsIconBoxCheck, adsIconBusinessBriefcase, adsIconCalculator, adsIconCalendar, adsIconCalendarCheck, adsIconCalendarStar, adsIconCanadaFlag, adsIconCaretDown2, adsIconCaretUp2, adsIconCheck, adsIconCheckCircle, adsIconCheckCircleFilled, adsIconChecklist, adsIconChemicals_Hazard, adsIconChevronDown, adsIconChevronLeft, adsIconChevronRight, adsIconChevronUp, adsIconCircleFilled, adsIconCircleNoFilled, adsIconCommunication_Chat_Bubble, adsIconCross, adsIconCrossCircle, adsIconCrossCircleFilled, adsIconCrossCircleThemed, adsIconDashboard, adsIconDatepicker, adsIconDonut_Chart, adsIconDownload, adsIconDrag, adsIconDropdownArrow, adsIconEditDashboard, adsIconEssentials, adsIconExclamation, adsIconExit, adsIconExport, adsIconFileComplete, adsIconFileMulti, adsIconFilePdf, adsIconFileSignature, adsIconFileTariff, adsIconFiles, adsIconFilter, adsIconFlameFire, adsIconFlight, adsIconForklift, adsIconFranceFlag, adsIconFreightContainer, adsIconFrontTruck, adsIconGear, adsIconGermanyFlag, adsIconGlobe, adsIconGraph, adsIconGridView, adsIconHamburgerMenu, adsIconHazmat, adsIconHeart, adsIconImage, adsIconInformation, adsIconItalyFlag, adsIconJapanFlag, adsIconList, adsIconListView, adsIconLoading, adsIconLocationFilled, adsIconLock, adsIconLogout, adsIconMailEnvelope, adsIconMailForward, adsIconMap, adsIconMedal, adsIconMenuFilters, adsIconMenuMoreInfo, adsIconMexicanFlag, adsIconMinusCircle, adsIconNewsDocument, adsIconOM, adsIconOrder, adsIconPalette, adsIconPaperClip, adsIconPencil, adsIconPending, adsIconPhone, adsIconPlus, adsIconPlusCircle, adsIconPortugalFlag, adsIconPrint, adsIconReply, adsIconReplyAll, adsIconReporting, adsIconRoute, adsIconRuler, adsIconScales, adsIconSearch, adsIconSearchFile, adsIconSettings, adsIconShip, adsIconShipment, adsIconShipping, adsIconSortAscending, adsIconSortDescending, adsIconSortDownToUp, adsIconSortFilled, adsIconSortRearrange, adsIconSortUpToDown, adsIconSortingArrowDown, adsIconSortingArrowUp, adsIconSouthKoreaFlag, adsIconSpainFlag, adsIconSquareArrowUpRight, adsIconStar, adsIconStar25, adsIconStar50, adsIconStar75, adsIconStarFull, adsIconStatusNew, adsIconStatusProcessing, adsIconStepperCircle, adsIconTable, adsIconTableFilter, adsIconTableView, adsIconThumbsUpOpportunities, adsIconTimepicker, adsIconTools, adsIconTrain, adsIconTrash, adsIconTruck, adsIconTruckDolly, adsIconTruckFast, adsIconUSFlag, adsIconUnlock, adsIconUser, adsIconUserCircle, adsIconUsers, adsIconVendorManagement, adsIconVisibilityEye, adsIconVisibilityEyeNone, adsIconWarehouse, adsIconWarning, adsIconWarningReversed };
|
|
779
|
+
export { adsIconArrowDown, adsIconArrowUp, adsIconArrowUpAndDown, adsIconArrows, adsIconAssemblyProductionConveyer, adsIconAuditPay, adsIconBadge, adsIconBarGraph, adsIconBell, adsIconBellWarning, adsIconBookmark, adsIconBookmarkFilled, adsIconBoxCheck, adsIconBusinessBriefcase, adsIconCalculator, adsIconCalendar, adsIconCalendarCheck, adsIconCalendarStar, adsIconCanadaFlag, adsIconCaretDown2, adsIconCaretUp2, adsIconCheck, adsIconCheckCircle, adsIconCheckCircleFilled, adsIconChecklist, adsIconChemicals_Hazard, adsIconChevronDown, adsIconChevronLeft, adsIconChevronRight, adsIconChevronUp, adsIconCircleFilled, adsIconCircleNoFilled, adsIconCommunication_Chat_Bubble, adsIconCross, adsIconCrossCircle, adsIconCrossCircleFilled, adsIconCrossCircleThemed, adsIconDashboard, adsIconDatepicker, adsIconDonut_Chart, adsIconDownload, adsIconDrag, adsIconDropdownArrow, adsIconEditDashboard, adsIconEssentials, adsIconExclamation, adsIconExit, adsIconExport, adsIconFileComplete, adsIconFileMulti, adsIconFilePdf, adsIconFileSignature, adsIconFileTariff, adsIconFiles, adsIconFilter, adsIconFlameFire, adsIconFlight, adsIconForklift, adsIconFranceFlag, adsIconFreightContainer, adsIconFrontTruck, adsIconGear, adsIconGermanyFlag, adsIconGlobe, adsIconGraph, adsIconGridView, adsIconHamburgerMenu, adsIconHazmat, adsIconHeart, adsIconHyperlink, adsIconImage, adsIconInformation, adsIconItalyFlag, adsIconJapanFlag, adsIconList, adsIconListView, adsIconLoading, adsIconLocationFilled, adsIconLock, adsIconLogoBadge, adsIconLogout, adsIconMailEnvelope, adsIconMailForward, adsIconMap, adsIconMedal, adsIconMenuFilters, adsIconMenuMoreInfo, adsIconMexicanFlag, adsIconMinusCircle, adsIconNewsDocument, adsIconOM, adsIconOrder, adsIconPalette, adsIconPaperClip, adsIconPencil, adsIconPending, adsIconPhone, adsIconPlus, adsIconPlusCircle, adsIconPortugalFlag, adsIconPrint, adsIconReply, adsIconReplyAll, adsIconReporting, adsIconRoute, adsIconRuler, adsIconScales, adsIconSearch, adsIconSearchFile, adsIconSettings, adsIconShip, adsIconShipment, adsIconShipping, adsIconSortAscending, adsIconSortDescending, adsIconSortDownToUp, adsIconSortFilled, adsIconSortRearrange, adsIconSortUpToDown, adsIconSortingArrowDown, adsIconSortingArrowUp, adsIconSouthKoreaFlag, adsIconSpainFlag, adsIconSquareArrowUpRight, adsIconStar, adsIconStar25, adsIconStar50, adsIconStar75, adsIconStarFull, adsIconStatusNew, adsIconStatusProcessing, adsIconStepperCircle, adsIconTable, adsIconTableFilter, adsIconTableView, adsIconThumbsUpOpportunities, adsIconTimepicker, adsIconTools, adsIconTrain, adsIconTrash, adsIconTruck, adsIconTruckDolly, adsIconTruckFast, adsIconUSFlag, adsIconUnlock, adsIconUser, adsIconUserCircle, adsIconUsers, adsIconVendorManagement, adsIconVisibilityEye, adsIconVisibilityEyeNone, adsIconWarehouse, adsIconWarning, adsIconWarningReversed };
|
|
770
780
|
export type { AdsIcon, AdsIconNameSubset, adsIcon };
|