@lucca/prisme 21.2.0-rc.3 → 21.2.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/lucca-prisme-button.mjs +8 -1
- package/fesm2022/lucca-prisme-button.mjs.map +1 -1
- package/fesm2022/lucca-prisme-core.mjs +9 -1
- package/fesm2022/lucca-prisme-core.mjs.map +1 -1
- package/fesm2022/lucca-prisme-icon.mjs.map +1 -1
- package/package.json +3 -3
- package/types/lucca-prisme-button.d.ts +15 -5
- package/types/lucca-prisme-core.d.ts +5 -3
- package/types/lucca-prisme-icon.d.ts +1 -1
|
@@ -3,6 +3,13 @@ import { inject, ElementRef, signal, input, booleanAttribute, computed, contentC
|
|
|
3
3
|
import { PrClass, ɵeffectWithDeps as _effectWithDeps } from '@lucca/prisme/core';
|
|
4
4
|
import { IconComponent } from '@lucca/prisme/icon';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Available ButtonComponent Types
|
|
8
|
+
*/
|
|
9
|
+
const BUTTON_SIZE = ['M', 'S', 'XS'];
|
|
10
|
+
const BUTTON_STATE = ['default', 'loading', 'error', 'success'];
|
|
11
|
+
const BUTTON_TYPE = ['', 'outlined', 'AI', 'AI-invert', 'ghost', 'ghost-invert', 'text', 'text-invert'];
|
|
12
|
+
|
|
6
13
|
class ButtonComponent {
|
|
7
14
|
#prClass;
|
|
8
15
|
#elementRef;
|
|
@@ -122,5 +129,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
122
129
|
* Generated bundle index. Do not edit.
|
|
123
130
|
*/
|
|
124
131
|
|
|
125
|
-
export { ButtonComponent };
|
|
132
|
+
export { BUTTON_SIZE, BUTTON_STATE, BUTTON_TYPE, ButtonComponent };
|
|
126
133
|
//# sourceMappingURL=lucca-prisme-button.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-prisme-button.mjs","sources":["../../../packages/prisme/button/button.component.ts","../../../packages/prisme/button/lucca-prisme-button.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, contentChild, ElementRef, inject, input, signal, ViewEncapsulation } from '@angular/core';\nimport { Palette, PrClass, ɵeffectWithDeps } from '@lucca/prisme/core';\nimport { IconComponent } from '@lucca/prisme/icon';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'button[luButton], a[luButton], span[luButton], button[prButton], a[prButton], span[prButton]',\n\tproviders: [PrClass],\n\ttemplate: '<ng-content />',\n\tstyleUrl: './button.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'button',\n\t\t'[class.is-error]': 'notifyError()',\n\t\t'(click)': 'triggerErrorIfNeeded()',\n\t\t'(animationend)': 'notifyError.set(false)',\n\t},\n})\nexport class ButtonComponent {\n\t#prClass = inject(PrClass);\n\t#elementRef = inject<ElementRef<HTMLButtonElement>>(ElementRef);\n\n\treadonly notifyError = signal(false);\n\n\t/**\n\t * Change the size of the Button\n\t */\n\treadonly size = input<'M' | 'S' | 'XS'>();\n\n\t/**\n\t * Apply block display\n\t */\n\treadonly block = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Indicates an action with significant or irreversible consequences on hover and focus. Only compatible with outlined and ghost\n\t */\n\treadonly critical = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * @deprecated use `critical` input instead\n\t */\n\treadonly delete = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Indicates the presence of a menu\n\t */\n\treadonly disclosure = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Applies a color palette to the Button\n\t */\n\treadonly palette = input<Palette>('none');\n\n\t/**\n\t * Modifies the state of the Button\n\t */\n\treadonly state = input<'default' | 'loading' | 'error' | 'success'>('default');\n\n\treadonly luButton = input<'' | 'outlined' | 'AI' | 'AI-invert' | 'ghost' | 'ghost-invert' | 'text' | 'text-invert'>('');\n\n\t/**\n\t * '' is the default value when you just set the `prButton` directive without a value attached to it.\n\t * We just make this explicit here.\n\t */\n\treadonly prButton = input<'' | 'outlined' | 'AI' | 'ghost' | 'ghost-invert' | 'text' | 'text-invert'>('');\n\n\treadonly buttonType = computed(() => this.luButton() || this.prButton());\n\n\treadonly iconComponentRef = contentChild<IconComponent, ElementRef<HTMLElement>>(IconComponent, { read: ElementRef });\n\n\treadonly classesConfig = computed(() => {\n\t\tconst config = {\n\t\t\t[`mod-${this.size()}`]: !!this.size(),\n\t\t\t[`mod-block`]: this.block(),\n\t\t\t[`palette-${this.palette()}`]: !!this.palette(),\n\t\t\t[`is-${this.state()}`]: !!this.state() && this.state() !== 'error',\n\t\t\t['mod-onlyIcon']: this.iconOnly,\n\t\t\t['mod-iconOnLeft']: this.iconOnLeft,\n\t\t\t['mod-iconOnRight']: this.iconOnRight,\n\t\t\t['mod-withIcon']: this.iconComponentRef() !== undefined && !this.disclosure() && !this.iconOnly,\n\t\t\t['mod-critical']: this.critical() || this.delete(),\n\t\t\t['mod-disclosure']: this.disclosure(),\n\t\t};\n\n\t\tif (this.buttonType() !== '') {\n\t\t\tif (this.buttonType() === 'ghost-invert') {\n\t\t\t\tconfig['mod-ghost'] = true;\n\t\t\t\tconfig['mod-invert'] = true;\n\t\t\t} else if (this.luButton() === 'AI-invert') {\n\t\t\t\tconfig['mod-AI'] = true;\n\t\t\t\tconfig['mod-invert'] = true;\n\t\t\t} else {\n\t\t\t\tconfig[`mod-${this.buttonType()}`] = true;\n\t\t\t}\n\t\t}\n\t\treturn config;\n\t});\n\n\tprivate get iconOnly(): boolean {\n\t\tconst childNodes = Array.from(this.#elementRef?.nativeElement?.childNodes || []);\n\t\tconst noText = childNodes.every(({ nodeName }) => nodeName !== '#text');\n\t\t// ignore icon and comment\n\t\tconst noSpan =\n\t\t\tchildNodes.filter((node: HTMLElement) => {\n\t\t\t\treturn node.nodeName !== '#comment' && node.nodeName.toLowerCase() !== 'lu-icon' && !node?.className?.includes('mask');\n\t\t\t}).length == 0;\n\t\treturn !!this.iconComponentRef() && noSpan && noText;\n\t}\n\n\tprivate get iconOnLeft(): boolean {\n\t\treturn this.iconComponentRef()?.nativeElement === this.#elementRef?.nativeElement?.firstChild;\n\t}\n\n\tprivate get iconOnRight(): boolean {\n\t\treturn this.iconComponentRef()?.nativeElement === this.#elementRef?.nativeElement?.lastChild;\n\t}\n\n\tconstructor() {\n\t\tɵeffectWithDeps([this.state], (state) => {\n\t\t\tif (state) {\n\t\t\t\tthis.triggerErrorIfNeeded();\n\t\t\t}\n\t\t});\n\n\t\tɵeffectWithDeps([this.classesConfig], (config) => {\n\t\t\tif (config) {\n\t\t\t\tthis.#prClass.setState(config);\n\t\t\t}\n\t\t});\n\t}\n\n\ttriggerErrorIfNeeded(): void {\n\t\tif (this.state() === 'error') {\n\t\t\tthis.notifyError.set(true);\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵeffectWithDeps"],"mappings":";;;;;MAmBa,eAAe,CAAA;AAC3B,IAAA,QAAQ;AACR,IAAA,WAAW;AA+EX,IAAA,IAAY,QAAQ,GAAA;AACnB,QAAA,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,UAAU,IAAI,EAAE,CAAC;AAChF,QAAA,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,QAAQ,KAAK,OAAO,CAAC;;QAEvE,MAAM,MAAM,GACX,UAAU,CAAC,MAAM,CAAC,CAAC,IAAiB,KAAI;YACvC,OAAO,IAAI,CAAC,QAAQ,KAAK,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,SAAS,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC;AACvH,QAAA,CAAC,CAAC,CAAC,MA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A,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,aAAa,CAAA,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACtErH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"lucca-prisme-button.mjs","sources":["../../../packages/prisme/button/button-type.ts","../../../packages/prisme/button/button.component.ts","../../../packages/prisme/button/lucca-prisme-button.ts"],"sourcesContent":["/**\n * Available ButtonComponent Types\n */\n\nexport const BUTTON_SIZE = ['M', 'S', 'XS'] as const;\nexport type ButtonSize = (typeof BUTTON_SIZE)[number];\n\nexport const BUTTON_STATE = ['default', 'loading', 'error', 'success'] as const;\nexport type ButtonState = (typeof BUTTON_STATE)[number];\n\nexport const BUTTON_TYPE = ['', 'outlined', 'AI', 'AI-invert', 'ghost', 'ghost-invert', 'text', 'text-invert'] as const;\nexport type ButtonType = (typeof BUTTON_TYPE)[number];\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, contentChild, ElementRef, inject, input, signal, ViewEncapsulation } from '@angular/core';\nimport { Palette, PrClass, ɵeffectWithDeps } from '@lucca/prisme/core';\nimport { IconComponent } from '@lucca/prisme/icon';\nimport { ButtonSize, ButtonState, ButtonType } from './button-type';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'button[luButton], a[luButton], span[luButton], button[prButton], a[prButton], span[prButton]',\n\tproviders: [PrClass],\n\ttemplate: '<ng-content />',\n\tstyleUrl: './button.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'button',\n\t\t'[class.is-error]': 'notifyError()',\n\t\t'(click)': 'triggerErrorIfNeeded()',\n\t\t'(animationend)': 'notifyError.set(false)',\n\t},\n})\nexport class ButtonComponent {\n\t#prClass = inject(PrClass);\n\t#elementRef = inject<ElementRef<HTMLButtonElement>>(ElementRef);\n\n\treadonly notifyError = signal(false);\n\n\t/**\n\t * Change the size of the Button\n\t */\n\treadonly size = input<ButtonSize>();\n\n\t/**\n\t * Apply block display\n\t */\n\treadonly block = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Indicates an action with significant or irreversible consequences on hover and focus. Only compatible with outlined and ghost\n\t */\n\treadonly critical = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * @deprecated use `critical` input instead\n\t */\n\treadonly delete = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Indicates the presence of a menu\n\t */\n\treadonly disclosure = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Applies a color palette to the Button\n\t */\n\treadonly palette = input<Palette>('none');\n\n\t/**\n\t * Modifies the state of the Button\n\t */\n\treadonly state = input<ButtonState>('default');\n\n\treadonly luButton = input<ButtonType>('');\n\n\t/**\n\t * '' is the default value when you just set the `prButton` directive without a value attached to it.\n\t * We just make this explicit here.\n\t */\n\treadonly prButton = input<ButtonType>('');\n\n\treadonly buttonType = computed(() => this.luButton() || this.prButton());\n\n\treadonly iconComponentRef = contentChild<IconComponent, ElementRef<HTMLElement>>(IconComponent, { read: ElementRef });\n\n\treadonly classesConfig = computed(() => {\n\t\tconst config = {\n\t\t\t[`mod-${this.size()}`]: !!this.size(),\n\t\t\t[`mod-block`]: this.block(),\n\t\t\t[`palette-${this.palette()}`]: !!this.palette(),\n\t\t\t[`is-${this.state()}`]: !!this.state() && this.state() !== 'error',\n\t\t\t['mod-onlyIcon']: this.iconOnly,\n\t\t\t['mod-iconOnLeft']: this.iconOnLeft,\n\t\t\t['mod-iconOnRight']: this.iconOnRight,\n\t\t\t['mod-withIcon']: this.iconComponentRef() !== undefined && !this.disclosure() && !this.iconOnly,\n\t\t\t['mod-critical']: this.critical() || this.delete(),\n\t\t\t['mod-disclosure']: this.disclosure(),\n\t\t};\n\n\t\tif (this.buttonType() !== '') {\n\t\t\tif (this.buttonType() === 'ghost-invert') {\n\t\t\t\tconfig['mod-ghost'] = true;\n\t\t\t\tconfig['mod-invert'] = true;\n\t\t\t} else if (this.luButton() === 'AI-invert') {\n\t\t\t\tconfig['mod-AI'] = true;\n\t\t\t\tconfig['mod-invert'] = true;\n\t\t\t} else {\n\t\t\t\tconfig[`mod-${this.buttonType()}`] = true;\n\t\t\t}\n\t\t}\n\t\treturn config;\n\t});\n\n\tprivate get iconOnly(): boolean {\n\t\tconst childNodes = Array.from(this.#elementRef?.nativeElement?.childNodes || []);\n\t\tconst noText = childNodes.every(({ nodeName }) => nodeName !== '#text');\n\t\t// ignore icon and comment\n\t\tconst noSpan =\n\t\t\tchildNodes.filter((node: HTMLElement) => {\n\t\t\t\treturn node.nodeName !== '#comment' && node.nodeName.toLowerCase() !== 'lu-icon' && !node?.className?.includes('mask');\n\t\t\t}).length == 0;\n\t\treturn !!this.iconComponentRef() && noSpan && noText;\n\t}\n\n\tprivate get iconOnLeft(): boolean {\n\t\treturn this.iconComponentRef()?.nativeElement === this.#elementRef?.nativeElement?.firstChild;\n\t}\n\n\tprivate get iconOnRight(): boolean {\n\t\treturn this.iconComponentRef()?.nativeElement === this.#elementRef?.nativeElement?.lastChild;\n\t}\n\n\tconstructor() {\n\t\tɵeffectWithDeps([this.state], (state) => {\n\t\t\tif (state) {\n\t\t\t\tthis.triggerErrorIfNeeded();\n\t\t\t}\n\t\t});\n\n\t\tɵeffectWithDeps([this.classesConfig], (config) => {\n\t\t\tif (config) {\n\t\t\t\tthis.#prClass.setState(config);\n\t\t\t}\n\t\t});\n\t}\n\n\ttriggerErrorIfNeeded(): void {\n\t\tif (this.state() === 'error') {\n\t\t\tthis.notifyError.set(true);\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵeffectWithDeps"],"mappings":";;;;;AAAA;;AAEG;AAEI,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI;AAGnC,MAAM,YAAY,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS;MAGxD,WAAW,GAAG,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa;;MCUhG,eAAe,CAAA;AAC3B,IAAA,QAAQ;AACR,IAAA,WAAW;AA+EX,IAAA,IAAY,QAAQ,GAAA;AACnB,QAAA,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,UAAU,IAAI,EAAE,CAAC;AAChF,QAAA,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,QAAQ,KAAK,OAAO,CAAC;;QAEvE,MAAM,MAAM,GACX,UAAU,CAAC,MAAM,CAAC,CAAC,IAAiB,KAAI;YACvC,OAAO,IAAI,CAAC,QAAQ,KAAK,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,SAAS,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ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A,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,aAAa,CAAA,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACvErH;;AAEG;;;;"}
|
|
@@ -74,6 +74,14 @@ function normalizeToRecord(obj) {
|
|
|
74
74
|
return obj;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* Available CSS palettes
|
|
79
|
+
*/
|
|
80
|
+
// primary is deprecated
|
|
81
|
+
// grey is deprecated
|
|
82
|
+
const PALETTE = ['success', 'warning', 'error', 'product', 'neutral', 'none', 'primary', 'grey', 'brand'];
|
|
83
|
+
const DECORATIVE_PALETTE = ['kiwi', 'lime', 'cucumber', 'mint', 'glacier', 'lagoon', 'blueberry', 'lavender', 'grape', 'watermelon', 'pumpkin', 'pineapple'];
|
|
84
|
+
|
|
77
85
|
/**
|
|
78
86
|
* In order to make this efficient when building the split, I copied this from lucca-front/core, TODO use it from here instead
|
|
79
87
|
*/
|
|
@@ -102,5 +110,5 @@ function isReadonlyArray(input) {
|
|
|
102
110
|
* Generated bundle index. Do not edit.
|
|
103
111
|
*/
|
|
104
112
|
|
|
105
|
-
export { PrClass, ɵeffectWithDeps };
|
|
113
|
+
export { DECORATIVE_PALETTE, PALETTE, PrClass, ɵeffectWithDeps };
|
|
106
114
|
//# sourceMappingURL=lucca-prisme-core.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-prisme-core.mjs","sources":["../../../packages/prisme/core/class.ts","../../../packages/prisme/core/signal.ts","../../../packages/prisme/core/lucca-prisme-core.ts"],"sourcesContent":["import { ElementRef, inject, Injectable, Renderer2 } from '@angular/core';\n\ntype PrClassSupportedTypes = string | string[] | Set<string> | { [klass: string]: boolean };\n\ninterface CssClassState {\n\tenabled: boolean;\n\tchanged: boolean;\n\ttouched: boolean;\n}\n\n@Injectable()\nexport class PrClass {\n\t#elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\t#renderer = inject(Renderer2);\n\n\t#state: Record<string, boolean> = {};\n\t#stateMap = new Map<string, CssClassState>();\n\n\tpublic setState(value: PrClassSupportedTypes) {\n\t\tthis.#state = normalizeToRecord(value);\n\n\t\tfor (const [klass, enabled] of Object.entries(this.#state)) {\n\t\t\tthis.#updateState(klass, enabled);\n\t\t}\n\n\t\tthis.#applyStateDiff();\n\t}\n\n\t#updateState(klass: string, nextEnabled: boolean) {\n\t\tconst state = this.#stateMap.get(klass);\n\t\tif (state !== undefined) {\n\t\t\tif (state.enabled !== nextEnabled) {\n\t\t\t\tstate.changed = true;\n\t\t\t\tstate.enabled = nextEnabled;\n\t\t\t}\n\t\t\tstate.touched = true;\n\t\t} else {\n\t\t\tthis.#stateMap.set(klass, { enabled: nextEnabled, changed: true, touched: true });\n\t\t}\n\t}\n\n\t#applyStateDiff() {\n\t\tfor (const stateEntry of this.#stateMap) {\n\t\t\tconst klass = stateEntry[0];\n\t\t\tconst state = stateEntry[1];\n\n\t\t\tif (state.changed) {\n\t\t\t\tthis.#toggleClass(klass, state.enabled);\n\t\t\t\tstate.changed = false;\n\t\t\t} else if (!state.touched) {\n\t\t\t\t// A class that was previously active got removed from the new collection of classes -\n\t\t\t\t// remove from the DOM as well.\n\t\t\t\tif (state.enabled) {\n\t\t\t\t\tthis.#toggleClass(klass, false);\n\t\t\t\t}\n\t\t\t\tthis.#stateMap.delete(klass);\n\t\t\t}\n\n\t\t\tstate.touched = false;\n\t\t}\n\t}\n\n\t#toggleClass(klass: string, enabled: boolean): void {\n\t\tif (enabled) {\n\t\t\tthis.#renderer.addClass(this.#elementRef.nativeElement, klass);\n\t\t} else {\n\t\t\tthis.#renderer.removeClass(this.#elementRef.nativeElement, klass);\n\t\t}\n\t}\n}\n\nfunction normalizeToRecord(obj: PrClassSupportedTypes): Record<string, boolean> {\n\tif (Array.isArray(obj) || obj instanceof Set) {\n\t\tconst result: Record<string, boolean> = {};\n\n\t\tfor (const item of obj) {\n\t\t\tresult[item] = true;\n\t\t}\n\n\t\treturn result;\n\t}\n\n\tif (typeof obj === 'string') {\n\t\tobj = obj.trim();\n\t\treturn obj ? { [obj]: true } : {};\n\t}\n\n\treturn obj;\n}\n","/**\n * In order to make this efficient when building the split, I copied this from lucca-front/core, TODO use it from here instead\n */\nimport { CreateEffectOptions, effect, EffectCleanupRegisterFn, EffectRef, Signal, untracked } from '@angular/core';\n\ntype SignalsValue<T> = T extends readonly unknown[] ? TupleOfSignalValues<T> : [RecordOfSignalValues<T>];\n\ntype TupleOfSignalValues<T> = T extends readonly [Signal<infer U>, ...infer R] ? [U, ...TupleOfSignalValues<R>] : [];\ntype RecordOfSignalValues<T> = { [K in keyof T]: T[K] extends Signal<infer U> ? U : never };\n\nexport type EffectWithDepsInput = ReadonlyArray<Signal<unknown>> | Record<string, Signal<unknown>>;\n\n/**\n * Effect peut être dangereux car l'action accomplie peut elle-même déclencher des écritures dans des signaux.\n * C'est une mauvaise pratique, interdite par défaut par Angular.\n * La plupart du temps, seule la lecture des signaux est intéressante à tracker, pas les actions qui en découlent.\n */\nexport function ɵeffectWithDeps<const T extends EffectWithDepsInput>(\n\tdependencies: T,\n\taction: (...values: [...SignalsValue<T>, EffectCleanupRegisterFn]) => unknown,\n\toptions?: CreateEffectOptions,\n): EffectRef {\n\treturn effect((onCleanup) => {\n\t\tconst deps = isReadonlyArray(dependencies) ? readTupleOfSignalValues(dependencies) : [readRecordOfSignalValues(dependencies)];\n\n\t\tuntracked(() => action(...(deps as SignalsValue<T>), onCleanup));\n\t}, options);\n}\n\nfunction readTupleOfSignalValues<T extends readonly Signal<unknown>[]>(signals: T): TupleOfSignalValues<T> {\n\treturn signals.map((signal) => signal()) as TupleOfSignalValues<T>;\n}\n\nfunction readRecordOfSignalValues<T extends Record<string, Signal<unknown>>>(signals: T): RecordOfSignalValues<T> {\n\treturn Object.fromEntries(Object.entries(signals).map(([key, signal]) => [key, signal()])) as RecordOfSignalValues<T>;\n}\n\nfunction isReadonlyArray(input: EffectWithDepsInput): input is ReadonlyArray<Signal<unknown>> {\n\treturn Array.isArray(input);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAWa,OAAO,CAAA;AACnB,IAAA,WAAW,GAAG,MAAM,CAA0B,UAAU,CAAC;AACzD,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IAE7B,MAAM,GAA4B,EAAE;AACpC,IAAA,SAAS,GAAG,IAAI,GAAG,EAAyB;AAErC,IAAA,QAAQ,CAAC,KAA4B,EAAA;AAC3C,QAAA,IAAI,CAAC,MAAM,GAAG,iBAAiB,CAAC,KAAK,CAAC;AAEtC,QAAA,KAAK,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;AAC3D,YAAA,IAAI,CAAC,YAAY,CAAC,K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AAM,CAAC,GAAI,IAAwB,EAAE,SAAS,CAAC,CAAC;IACjE,CAAC,EAAE,OAAO,CAAC;AACZ;AAEA,SAAS,uBAAuB,CAAuC,OAAU,EAAA;AAChF,IAAA,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,MAAM,EAAE,CAA2B;AACnE;AAEA,SAAS,wBAAwB,CAA4C,OAAU,EAAA;AACtF,IAAA,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC,CAA4B;AACtH;AAEA,SAAS,eAAe,CAAC,KAA0B,EAAA;AAClD,IAAA,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;AAC5B;;ACvCA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"lucca-prisme-core.mjs","sources":["../../../packages/prisme/core/class.ts","../../../packages/prisme/core/style.ts","../../../packages/prisme/core/signal.ts","../../../packages/prisme/core/lucca-prisme-core.ts"],"sourcesContent":["import { ElementRef, inject, Injectable, Renderer2 } from '@angular/core';\n\ntype PrClassSupportedTypes = string | string[] | Set<string> | { [klass: string]: boolean };\n\ninterface CssClassState {\n\tenabled: boolean;\n\tchanged: boolean;\n\ttouched: boolean;\n}\n\n@Injectable()\nexport class PrClass {\n\t#elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\t#renderer = inject(Renderer2);\n\n\t#state: Record<string, boolean> = {};\n\t#stateMap = new Map<string, CssClassState>();\n\n\tpublic setState(value: PrClassSupportedTypes) {\n\t\tthis.#state = normalizeToRecord(value);\n\n\t\tfor (const [klass, enabled] of Object.entries(this.#state)) {\n\t\t\tthis.#updateState(klass, enabled);\n\t\t}\n\n\t\tthis.#applyStateDiff();\n\t}\n\n\t#updateState(klass: string, nextEnabled: boolean) {\n\t\tconst state = this.#stateMap.get(klass);\n\t\tif (state !== undefined) {\n\t\t\tif (state.enabled !== nextEnabled) {\n\t\t\t\tstate.changed = true;\n\t\t\t\tstate.enabled = nextEnabled;\n\t\t\t}\n\t\t\tstate.touched = true;\n\t\t} else {\n\t\t\tthis.#stateMap.set(klass, { enabled: nextEnabled, changed: true, touched: true });\n\t\t}\n\t}\n\n\t#applyStateDiff() {\n\t\tfor (const stateEntry of this.#stateMap) {\n\t\t\tconst klass = stateEntry[0];\n\t\t\tconst state = stateEntry[1];\n\n\t\t\tif (state.changed) {\n\t\t\t\tthis.#toggleClass(klass, state.enabled);\n\t\t\t\tstate.changed = false;\n\t\t\t} else if (!state.touched) {\n\t\t\t\t// A class that was previously active got removed from the new collection of classes -\n\t\t\t\t// remove from the DOM as well.\n\t\t\t\tif (state.enabled) {\n\t\t\t\t\tthis.#toggleClass(klass, false);\n\t\t\t\t}\n\t\t\t\tthis.#stateMap.delete(klass);\n\t\t\t}\n\n\t\t\tstate.touched = false;\n\t\t}\n\t}\n\n\t#toggleClass(klass: string, enabled: boolean): void {\n\t\tif (enabled) {\n\t\t\tthis.#renderer.addClass(this.#elementRef.nativeElement, klass);\n\t\t} else {\n\t\t\tthis.#renderer.removeClass(this.#elementRef.nativeElement, klass);\n\t\t}\n\t}\n}\n\nfunction normalizeToRecord(obj: PrClassSupportedTypes): Record<string, boolean> {\n\tif (Array.isArray(obj) || obj instanceof Set) {\n\t\tconst result: Record<string, boolean> = {};\n\n\t\tfor (const item of obj) {\n\t\t\tresult[item] = true;\n\t\t}\n\n\t\treturn result;\n\t}\n\n\tif (typeof obj === 'string') {\n\t\tobj = obj.trim();\n\t\treturn obj ? { [obj]: true } : {};\n\t}\n\n\treturn obj;\n}\n","/**\n * Available CSS palettes\n */\n// primary is deprecated\n// grey is deprecated\nexport const PALETTE = ['success', 'warning', 'error', 'product', 'neutral', 'none', 'primary', 'grey', 'brand'] as const;\nexport type Palette = (typeof PALETTE)[number];\n\nexport const DECORATIVE_PALETTE = ['kiwi', 'lime', 'cucumber', 'mint', 'glacier', 'lagoon', 'blueberry', 'lavender', 'grape', 'watermelon', 'pumpkin', 'pineapple'] as const;\nexport type DecorativePalette = (typeof DECORATIVE_PALETTE)[number];\n","/**\n * In order to make this efficient when building the split, I copied this from lucca-front/core, TODO use it from here instead\n */\nimport { CreateEffectOptions, effect, EffectCleanupRegisterFn, EffectRef, Signal, untracked } from '@angular/core';\n\ntype SignalsValue<T> = T extends readonly unknown[] ? TupleOfSignalValues<T> : [RecordOfSignalValues<T>];\n\ntype TupleOfSignalValues<T> = T extends readonly [Signal<infer U>, ...infer R] ? [U, ...TupleOfSignalValues<R>] : [];\ntype RecordOfSignalValues<T> = { [K in keyof T]: T[K] extends Signal<infer U> ? U : never };\n\nexport type EffectWithDepsInput = ReadonlyArray<Signal<unknown>> | Record<string, Signal<unknown>>;\n\n/**\n * Effect peut être dangereux car l'action accomplie peut elle-même déclencher des écritures dans des signaux.\n * C'est une mauvaise pratique, interdite par défaut par Angular.\n * La plupart du temps, seule la lecture des signaux est intéressante à tracker, pas les actions qui en découlent.\n */\nexport function ɵeffectWithDeps<const T extends EffectWithDepsInput>(\n\tdependencies: T,\n\taction: (...values: [...SignalsValue<T>, EffectCleanupRegisterFn]) => unknown,\n\toptions?: CreateEffectOptions,\n): EffectRef {\n\treturn effect((onCleanup) => {\n\t\tconst deps = isReadonlyArray(dependencies) ? readTupleOfSignalValues(dependencies) : [readRecordOfSignalValues(dependencies)];\n\n\t\tuntracked(() => action(...(deps as SignalsValue<T>), onCleanup));\n\t}, options);\n}\n\nfunction readTupleOfSignalValues<T extends readonly Signal<unknown>[]>(signals: T): TupleOfSignalValues<T> {\n\treturn signals.map((signal) => signal()) as TupleOfSignalValues<T>;\n}\n\nfunction readRecordOfSignalValues<T extends Record<string, Signal<unknown>>>(signals: T): RecordOfSignalValues<T> {\n\treturn Object.fromEntries(Object.entries(signals).map(([key, signal]) => [key, signal()])) as RecordOfSignalValues<T>;\n}\n\nfunction isReadonlyArray(input: EffectWithDepsInput): input is ReadonlyArray<Signal<unknown>> {\n\treturn Array.isArray(input);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAWa,OAAO,CAAA;AACnB,IAAA,WAAW,GAAG,MAAM,CAA0B,UAAU,CAAC;AACzD,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IAE7B,MAAM,GAA4B,EAAE;AACpC,IAAA,SAAS,GAAG,IAAI,GAAG,EAAyB;AAErC,IAAA,QAAQ,CAAC,KAA4B,EAAA;AAC3C,QAAA,IAAI,CAAC,MAAM,GAAG,iBAAiB,CAAC,KAAK,CAAC;AAEtC,QAAA,KAAK,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;AAC3D,YAAA,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC;QAClC;QAEA,IAAI,CAAC,eAAe,EAAE;IACvB;IAEA,YAAY,CAAC,KAAa,EAAE,WAAoB,EAAA;QAC/C,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;AACvC,QAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACxB,YAAA,IAAI,KAAK,CAAC,OAAO,KAAK,WAAW,EAAE;AAClC,gBAAA,KAAK,CAAC,OAAO,GAAG,IAAI;AACpB,gBAAA,KAAK,CAAC,OAAO,GAAG,WAAW;YAC5B;AACA,YAAA,KAAK,CAAC,OAAO,GAAG,IAAI;QACrB;aAAO;YACN,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAClF;IACD;IAEA,eAAe,GAAA;AACd,QAAA,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,SAAS,EAAE;AACxC,YAAA,MAA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AC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC,CAA4B;AACtH;AAEA,SAAS,eAAe,CAAC,KAA0B,EAAA;AAClD,IAAA,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;AAC5B;;ACvCA;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-prisme-icon.mjs","sources":["../../../packages/prisme/icon/icon.component.ts","../../../packages/prisme/icon/icon.component.html","../../../packages/prisme/icon/icons.ts","../../../packages/prisme/icon/lucca-prisme-icon.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport type { LuccaIcon } from './icons';\n\n@Component({\n\tselector: 'lu-icon, pr-icon',\n\timports: [NgClass],\n\ttemplateUrl: './icon.component.html',\n\tstyleUrl: './icon.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class IconComponent {\n\t/**\n\t * Defines icon to display\n\t */\n\treadonly icon = input.required<LuccaIcon>();\n\n\t/**\n\t * Information conveyed by the screen reader\n\t */\n\treadonly alt = input<string>();\n\n\t/**\n\t * Which size should the icon be? XXS to XXL\n\t */\n\treadonly size = input<'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL'>();\n\n\t/**\n\t * Changes the color of the icon (inherit by default)\n\t */\n\treadonly color = input<'primary' | 'secondary' | 'product' | 'error' | 'warning' | 'success' | 'light' | 'placeholder' | 'inherit'>('inherit');\n\n\t/**\n\t * Display icon in AI mode\n\t */\n\treadonly AI = input(false, { transform: booleanAttribute });\n\n\treadonly iconClasses = computed(() => {\n\t\tconst size = this.size();\n\t\treturn {\n\t\t\t[`mod-${size}`]: !!size,\n\t\t};\n\t});\n}\n","<span\n\taria-hidden=\"true\"\n\t[class.mod-AI]=\"AI()\"\n\tclass=\"lucca-icon icon-{{ icon() }} icon-color-{{ color() }}\"\n\t[ngClass]=\"iconClasses()\"\n></span>\n@if (alt()) {\n\t<span class=\"pr-u-mask\">{{ alt() }}</span>\n}\n","// *******************************************\n// *** THIS FILE IS GENERATED, DO NOT EDIT ***\n// *** The generator is update-icons.js\t\t ***\n// *******************************************\n\nexport type LuccaIcon =\n\t| 'app'\n\t| 'apps'\n\t| 'nineTiles'\n\t| 'mosaic'\n\t| 'tiles'\n\t| 'appWidget'\n\t| 'arrowBackward'\n\t| 'backward'\n\t| 'arrowBottom'\n\t| 'arrowFullSouth'\n\t| 'arrowBottomLeft'\n\t| 'arrowBottomRight'\n\t| 'arrowCenterReduce'\n\t| 'arrowChevronBottom'\n\t| 'arrowSouth'\n\t| 'southArrow'\n\t| 'southThinArrow'\n\t| 'chevronSouth'\n\t| 'chevronBottom'\n\t| 'arrowChevronLeft'\n\t| 'arrowWest'\n\t| 'westArrow'\n\t| 'westThinArrow'\n\t| 'chevronWest'\n\t| 'chevronLeft'\n\t| 'arrowChevronRight'\n\t| 'arrowEast'\n\t| 'eastArrow'\n\t| 'eastThinArrow'\n\t| 'chevronEast'\n\t| 'chevronRight'\n\t| 'arrowChevronTop'\n\t| 'arrowNorth'\n\t| 'northArrow'\n\t| 'northThinArrow'\n\t| 'chevronNorth'\n\t| 'chevronTop'\n\t| 'arrowCorner'\n\t| 'distribute'\n\t| 'arrowCornerExpand'\n\t| 'arrowCurvedDownRight'\n\t| 'arrowDownload'\n\t| 'download'\n\t| 'arrowExternal'\n\t| 'outside'\n\t| 'arrowForward'\n\t| 'arrowDouble'\n\t| 'forward'\n\t| 'arrowLeft'\n\t| 'arrowFullWest'\n\t| 'arrowLineBottom'\n\t| 'arrowLineTop'\n\t| 'arrowLogin'\n\t| 'login'\n\t| 'arrowLogout'\n\t| 'logout'\n\t| 'arrowOppositeLeftRight'\n\t| 'arrowOppositeHorizontal'\n\t| 'swap'\n\t| 'arrowOppositeRightLeft'\n\t| 'arrowOppositeTopBottom'\n\t| 'arrowOppositeVertical'\n\t| 'creditDebit'\n\t| 'arrowReply'\n\t| 'reply'\n\t| 'arrowReset'\n\t| 'refresh'\n\t| 'update'\n\t| 'arrowRight'\n\t| 'arrowFullEast'\n\t| 'arrowSync'\n\t| 'sync'\n\t| 'arrowSyncStrikethrough'\n\t| 'syncDisabled'\n\t| 'arrowTop'\n\t| 'arrowFullNorth'\n\t| 'arrowTopLeft'\n\t| 'arrowTopRight'\n\t| 'arrowUnfoldLess'\n\t| 'collapse'\n\t| 'arrowUnfoldMore'\n\t| 'expand'\n\t| 'arrowUpload'\n\t| 'upload'\n\t| 'cloudUpload'\n\t| 'bell'\n\t| 'notification'\n\t| 'bellStrikethrough'\n\t| 'book'\n\t| 'bookmark'\n\t| 'bookmarkFilled'\n\t| 'boxArchive'\n\t| 'archive'\n\t| 'boxUnarchive'\n\t| 'unarchive'\n\t| 'branch'\n\t| 'bubbleAnswer'\n\t| 'answer'\n\t| 'bubbleConversation'\n\t| 'messenger'\n\t| 'bubbleSpeech'\n\t| 'chat'\n\t| 'talk'\n\t| 'dialog'\n\t| 'bubbleStars'\n\t| 'buildingCompany'\n\t| 'building'\n\t| 'establishment'\n\t| 'buildingHouse'\n\t| 'house'\n\t| 'home'\n\t| 'buildingHouseFilled'\n\t| 'houseFilled'\n\t| 'homeFill'\n\t| 'buildingHouseStarred'\n\t| 'houseStarred'\n\t| 'homeStarred'\n\t| 'buildingStore'\n\t| 'store'\n\t| 'bulb'\n\t| 'lightBulb'\n\t| 'calendarChecked'\n\t| 'calendarDate'\n\t| 'calendar'\n\t| 'planning'\n\t| 'calendarEdit'\n\t| 'planningEdit'\n\t| 'calendarPlanning'\n\t| 'payPeriod'\n\t| 'calendarSettings'\n\t| 'planningManage'\n\t| 'calendarStrikethrough'\n\t| 'calendarOff'\n\t| 'capCrown'\n\t| 'crown'\n\t| 'capGraduate'\n\t| 'graduate'\n\t| 'school'\n\t| 'certificationFailed'\n\t| 'certifKo'\n\t| 'certificationSuccess'\n\t| 'certifOk'\n\t| 'certificationWaiting'\n\t| 'certifWaiting'\n\t| 'chartDonut'\n\t| 'donut'\n\t| 'donutChart'\n\t| 'chartFlow'\n\t| 'familyTree'\n\t| 'orgTree'\n\t| 'chartHorizontalBar'\n\t| 'horizontalBarChart'\n\t| 'chartLevels'\n\t| 'level'\n\t| 'chartPie'\n\t| 'dashboard'\n\t| 'chartSpider'\n\t| 'chartVerticalBar'\n\t| 'analytics'\n\t| 'charts'\n\t| 'clipboard'\n\t| 'paste'\n\t| 'completion'\n\t| 'cornersFocus'\n\t| 'cornersFullscreenExit'\n\t| 'fullscreenExit'\n\t| 'cornersFullscreenOpen'\n\t| 'fullscreen'\n\t| 'dataTable'\n\t| 'table'\n\t| 'database'\n\t| 'databaseArrow'\n\t| 'apiSync'\n\t| 'deviceCamera'\n\t| 'camera'\n\t| 'deviceComputer'\n\t| 'computer'\n\t| 'deviceLaptop'\n\t| 'laptop'\n\t| 'deviceMobile'\n\t| 'deviceMouse'\n\t| 'computerMouse'\n\t| 'devicePrinter'\n\t| 'print'\n\t| 'deviceVideo'\n\t| 'dotsDrag'\n\t| 'drag'\n\t| 'emojiSmile'\n\t| 'eye'\n\t| 'watch'\n\t| 'eyeStrikethrough'\n\t| 'unwatch'\n\t| 'fileContract'\n\t| 'contract'\n\t| 'fileCopy'\n\t| 'copy'\n\t| 'fileDocument'\n\t| 'file'\n\t| 'files'\n\t| 'fileExport'\n\t| 'fileFolder'\n\t| 'folder'\n\t| 'fileImport'\n\t| 'importDirty'\n\t| 'importPristine'\n\t| 'filePlus'\n\t| 'fileSign'\n\t| 'sign'\n\t| 'filtersDescending'\n\t| 'filterAbstract'\n\t| 'filtersFunnel'\n\t| 'funnel'\n\t| 'filter'\n\t| 'filtersSort'\n\t| 'sort'\n\t| 'reorder'\n\t| 'flag'\n\t| 'floppyDiskSave'\n\t| 'save'\n\t| 'foodBirthdayCake'\n\t| 'birthday'\n\t| 'foodBobun'\n\t| 'lunchAlternative'\n\t| 'foodBurger'\n\t| 'lunch'\n\t| 'foodChefHat'\n\t| 'restaurant'\n\t| 'foodClocheDish'\n\t| 'diner'\n\t| 'foodCocktail'\n\t| 'drink'\n\t| 'foodCoffee'\n\t| 'coffee'\n\t| 'breaktime'\n\t| 'foodCroissant'\n\t| 'breakfast'\n\t| 'foodCutlery'\n\t| 'meal'\n\t| 'foodSandwich'\n\t| 'snack'\n\t| 'formatBulletedList'\n\t| 'list'\n\t| 'formatClipperAttachment'\n\t| 'attach'\n\t| 'formatCornerUpLeft'\n\t| 'formatUndo'\n\t| 'formatCornerUpRight'\n\t| 'formatRedo'\n\t| 'formatLink'\n\t| 'formatNumberedList'\n\t| 'formatListNb'\n\t| 'formatText'\n\t| 'formatJustify'\n\t| 'formatTextBold'\n\t| 'formatBold'\n\t| 'formatTextClear'\n\t| 'formatClear'\n\t| 'formatTextItalic'\n\t| 'formatItalic'\n\t| 'formatTextSize'\n\t| 'formatSize'\n\t| 'formatTextStrikethrough'\n\t| 'formatStrikethrough'\n\t| 'formatTextUnderline'\n\t| 'formatUnderlined'\n\t| 'formatUnlink'\n\t| 'unlink'\n\t| 'gift'\n\t| 'present'\n\t| 'heart'\n\t| 'heartFilled'\n\t| 'heartStrikethrough'\n\t| 'brokenHeart'\n\t| 'hotelBed'\n\t| 'bed'\n\t| 'hotel'\n\t| 'hotelHanger'\n\t| 'hanger'\n\t| 'hotelIron'\n\t| 'iron'\n\t| 'pressing'\n\t| 'hotelLuggage'\n\t| 'luggage'\n\t| 'jigsawPuzzle'\n\t| 'puzzle'\n\t| 'journey'\n\t| 'milestone'\n\t| 'jumpingCc'\n\t| 'lucca'\n\t| 'laboratoryTestFlask'\n\t| 'test'\n\t| 'layers'\n\t| 'floor'\n\t| 'listChecked'\n\t| 'listChecklist'\n\t| 'listTodo'\n\t| 'lockClose'\n\t| 'lock'\n\t| 'lockKey'\n\t| 'key'\n\t| 'lockOpen'\n\t| 'unlock'\n\t| 'mailEnvelope'\n\t| 'mail'\n\t| 'mailMailbox'\n\t| 'mailbox'\n\t| 'stamp'\n\t| 'postage'\n\t| 'mailPaperPlane'\n\t| 'send'\n\t| 'mapGlobe'\n\t| 'globe'\n\t| 'mapLocation'\n\t| 'location'\n\t| 'mapPin'\n\t| 'pin'\n\t| 'mapPlan'\n\t| 'mapTripStep'\n\t| 'mathsDivide'\n\t| 'divide'\n\t| 'mathsEquals'\n\t| 'mathsMinus'\n\t| 'minus'\n\t| 'partial'\n\t| 'minimize'\n\t| 'mathsMultiplicate'\n\t| 'close'\n\t| 'thinCross'\n\t| 'cross'\n\t| 'crossBold'\n\t| 'mathsNotEqual'\n\t| 'mathsPlus'\n\t| 'plus'\n\t| 'plusBold'\n\t| 'medicalDoctor'\n\t| 'menuBurger'\n\t| 'menu'\n\t| 'hamburgerMenu'\n\t| 'menuDots'\n\t| 'menuEllipsis'\n\t| 'ellipsis'\n\t| 'moneyBag'\n\t| 'moneybag'\n\t| 'moneyBagStrikethrough'\n\t| 'noMoney'\n\t| 'moneyBankImport'\n\t| 'moneyBanknoteStrikethrough'\n\t| 'moneyBill'\n\t| 'bill'\n\t| 'moneyBuildingBank'\n\t| 'bank'\n\t| 'moneyCardCheck'\n\t| 'moneyCardImport'\n\t| 'importCb'\n\t| 'moneyCheck'\n\t| 'moneyCoins'\n\t| 'money'\n\t| 'payment'\n\t| 'moneyCurrencyDollar'\n\t| 'dollar'\n\t| 'moneyCurrencyEuro'\n\t| 'euro'\n\t| 'moneyPaymentCard'\n\t| 'bankingCard'\n\t| 'moneyPaymentCards'\n\t| 'moneyPiggyBank'\n\t| 'piggyBank'\n\t| 'moneyWallet'\n\t| 'wallet'\n\t| 'officeBriefcase'\n\t| 'officeChair'\n\t| 'chair'\n\t| 'officeCompass'\n\t| 'compass'\n\t| 'officeElectricalPlug'\n\t| 'officeFirstAid'\n\t| 'officeMicrophone'\n\t| 'officePen'\n\t| 'edit'\n\t| 'editMini'\n\t| 'officePenStar'\n\t| 'officePenWriting'\n\t| 'editWrite'\n\t| 'editFrame'\n\t| 'officePhone'\n\t| 'telephone'\n\t| 'officeScissors'\n\t| 'cut'\n\t| 'officeSupplies'\n\t| 'supplies'\n\t| 'peopleAccessibility'\n\t| 'peopleAdd'\n\t| 'userAdd'\n\t| 'adduser'\n\t| 'peopleArrowUp'\n\t| 'peopleEdit'\n\t| 'peopleFolder'\n\t| 'peopleGroup'\n\t| 'userGroup'\n\t| 'group'\n\t| 'peopleHouse'\n\t| 'peopleId'\n\t| 'identityCard'\n\t| 'userFile'\n\t| 'dossierRh'\n\t| 'peopleLocked'\n\t| 'userRoles'\n\t| 'peoplePerson'\n\t| 'user'\n\t| 'face'\n\t| 'peopleRemove'\n\t| 'userRemove'\n\t| 'peopleSwitch'\n\t| 'send2user'\n\t| 'userSendTo'\n\t| 'peopleTeacher'\n\t| 'teacher'\n\t| 'pictureGallery'\n\t| 'gallery'\n\t| 'pictureImage'\n\t| 'image'\n\t| 'picturePalette'\n\t| 'palette'\n\t| 'playerPauseCircle'\n\t| 'pause'\n\t| 'playerPlay'\n\t| 'playFull'\n\t| 'playerPlayCircle'\n\t| 'play'\n\t| 'playerRecording'\n\t| 'playerStopCircle'\n\t| 'stop'\n\t| 'priceTag'\n\t| 'pricetag'\n\t| 'priorityHigh'\n\t| 'high'\n\t| 'priorityHigher'\n\t| 'higher'\n\t| 'priorityHighest'\n\t| 'highest'\n\t| 'priorityLow'\n\t| 'low'\n\t| 'priorityLower'\n\t| 'lower'\n\t| 'priorityLowest'\n\t| 'lowest'\n\t| 'priorityMedium'\n\t| 'medium'\n\t| 'rotationLeft'\n\t| 'rotate'\n\t| 'rotationRight'\n\t| 'rotateRight'\n\t| 'searchMagnifyingGlass'\n\t| 'search'\n\t| 'searchZoomIn'\n\t| 'searchZoomOut'\n\t| 'settingsEqualizer'\n\t| 'sliders'\n\t| 'settingsGear'\n\t| 'settings'\n\t| 'settingsTools'\n\t| 'tools'\n\t| 'share'\n\t| 'signAt'\n\t| 'signBan'\n\t| 'forbidden'\n\t| 'signCancel'\n\t| 'cancel'\n\t| 'signCheckbox'\n\t| 'signClose'\n\t| 'signConfirm'\n\t| 'confirm'\n\t| 'tick'\n\t| 'tickThin'\n\t| 'tickBold'\n\t| 'signConstruction'\n\t| 'build'\n\t| 'signDiscount'\n\t| 'discount'\n\t| 'signError'\n\t| 'error'\n\t| 'signHelp'\n\t| 'help'\n\t| 'helpOutline'\n\t| 'signInfo'\n\t| 'info'\n\t| 'signParking'\n\t| 'parking'\n\t| 'signShieldError'\n\t| 'signShieldSuccess'\n\t| 'signShieldWarning'\n\t| 'signSuccess'\n\t| 'success'\n\t| 'signTranslation'\n\t| 'signWarning'\n\t| 'warning'\n\t| 'signWebhook'\n\t| 'soundMegaphone'\n\t| 'star'\n\t| 'unstared'\n\t| 'starFilled'\n\t| 'target'\n\t| 'thumbDown'\n\t| 'thumbDownFilled'\n\t| 'thumbUp'\n\t| 'thumbUpFilled'\n\t| 'thumbnail'\n\t| 'timeAlarm'\n\t| 'alarm'\n\t| 'timeClock'\n\t| 'clock'\n\t| 'timeFuture'\n\t| 'postpone'\n\t| 'timeHourglass'\n\t| 'timer'\n\t| 'timePast'\n\t| 'history'\n\t| 'timeTimer'\n\t| 'chronoOn'\n\t| 'timeTimerStrikethrough'\n\t| 'overplanned'\n\t| 'timeTimesheet'\n\t| 'timesheet'\n\t| 'transportBus'\n\t| 'bus'\n\t| 'transportCar'\n\t| 'car'\n\t| 'transportCarElectric'\n\t| 'transportCarwashStation'\n\t| 'cleanCar'\n\t| 'transportGazStation'\n\t| 'gasoline'\n\t| 'transportMotocycle'\n\t| 'transportMotocycleElectric'\n\t| 'transportPlane'\n\t| 'plane'\n\t| 'transportRocket'\n\t| 'rocket'\n\t| 'transportScooter'\n\t| 'transportScooterElectric'\n\t| 'transportSpeedometer'\n\t| 'speedometer'\n\t| 'mileage'\n\t| 'transportSubway'\n\t| 'subway'\n\t| 'transportTaxi'\n\t| 'taxi'\n\t| 'transportToll'\n\t| 'toll'\n\t| 'tollDollar'\n\t| 'tollEuro'\n\t| 'transportTrain'\n\t| 'train'\n\t| 'transportTruck'\n\t| 'truck'\n\t| 'trashDelete'\n\t| 'trash'\n\t| 'trendingGrowth'\n\t| 'evolution'\n\t| 'trendingLoss'\n\t| 'evolutionDown'\n\t| 'weatherCloudy'\n\t| 'weatherLightning'\n\t| 'weatherStars'\n\t| 'weatherStormy'\n\t| 'weatherStorm'\n\t| 'weatherSunny'\n\t| 'weatherSun'\n\t| 'weight';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAYa,aAAa,CAAA;AAR1B,IAAA,WAAA,GAAA;AASC;;AAEG;AACM,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAa;AAE3C;;AAEG;QACM,IAAA,CAAA,GAAG,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,KAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;AAE9B;;AAEG;QACM,IAAA,CAAA,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAiD;AAEtE;;AAEG;AACM,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAA8G,SAAS,iDAAC;AAE9I;;AAEG;QACM,IAAA,CAAA,EAAE,GAAG,KAAK,CAAC,KAAK,+CAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAElD,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;AACpC,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE;YACxB,OAAO;AACN,gBAAA,CAAC,OAAO,IAAI,CAAA,CAAE,GAAG,CAAC,CAAC,IAAI;aACvB;AACF,QAAA,CAAC,uDAAC;AACF,IAAA;8GAhCY,aAAa,EAAA,I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,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAML,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;+BACC,kBAAkB,EAAA,OAAA,EACnB,CAAC,OAAO,CAAC,EAAA,eAAA,EAGD,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,0OAAA,EAAA,MAAA,EAAA,CAAA,saAAA,CAAA,EAAA;;;AEVtC;AACA;AACA;AACA;;ACHA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"lucca-prisme-icon.mjs","sources":["../../../packages/prisme/icon/icon.component.ts","../../../packages/prisme/icon/icon.component.html","../../../packages/prisme/icon/icons.ts","../../../packages/prisme/icon/lucca-prisme-icon.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport type { LuccaIcon } from './icons';\n\n@Component({\n\tselector: 'lu-icon, pr-icon',\n\timports: [NgClass],\n\ttemplateUrl: './icon.component.html',\n\tstyleUrl: './icon.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class IconComponent {\n\t/**\n\t * Defines icon to display\n\t */\n\treadonly icon = input.required<LuccaIcon>();\n\n\t/**\n\t * Information conveyed by the screen reader\n\t */\n\treadonly alt = input<string>();\n\n\t/**\n\t * Which size should the icon be? XXS to XXL\n\t */\n\treadonly size = input<'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL'>();\n\n\t/**\n\t * Changes the color of the icon (inherit by default)\n\t */\n\treadonly color = input<'primary' | 'secondary' | 'product' | 'error' | 'warning' | 'success' | 'light' | 'placeholder' | 'inherit'>('inherit');\n\n\t/**\n\t * Display icon in AI mode\n\t */\n\treadonly AI = input(false, { transform: booleanAttribute });\n\n\treadonly iconClasses = computed(() => {\n\t\tconst size = this.size();\n\t\treturn {\n\t\t\t[`mod-${size}`]: !!size,\n\t\t};\n\t});\n}\n","<span\n\taria-hidden=\"true\"\n\t[class.mod-AI]=\"AI()\"\n\tclass=\"lucca-icon icon-{{ icon() }} icon-color-{{ color() }}\"\n\t[ngClass]=\"iconClasses()\"\n></span>\n@if (alt()) {\n\t<span class=\"pr-u-mask\">{{ alt() }}</span>\n}\n","// *******************************************\n// *** THIS FILE IS GENERATED, DO NOT EDIT ***\n// *** The generator is update-icons.js\t\t ***\n// *******************************************\n\nexport type LuccaIcon =\n\t| 'app'\n\t| 'apps'\n\t| 'nineTiles'\n\t| 'mosaic'\n\t| 'tiles'\n\t| 'appWidget'\n\t| 'arrowBackward'\n\t| 'backward'\n\t| 'arrowBottom'\n\t| 'arrowFullSouth'\n\t| 'arrowBottomLeft'\n\t| 'arrowBottomRight'\n\t| 'arrowCenterReduce'\n\t| 'arrowChevronBottom'\n\t| 'arrowSouth'\n\t| 'southArrow'\n\t| 'southThinArrow'\n\t| 'chevronSouth'\n\t| 'chevronBottom'\n\t| 'arrowChevronLeft'\n\t| 'arrowWest'\n\t| 'westArrow'\n\t| 'westThinArrow'\n\t| 'chevronWest'\n\t| 'chevronLeft'\n\t| 'arrowChevronRight'\n\t| 'arrowEast'\n\t| 'eastArrow'\n\t| 'eastThinArrow'\n\t| 'chevronEast'\n\t| 'chevronRight'\n\t| 'arrowChevronTop'\n\t| 'arrowNorth'\n\t| 'northArrow'\n\t| 'northThinArrow'\n\t| 'chevronNorth'\n\t| 'chevronTop'\n\t| 'arrowCorner'\n\t| 'distribute'\n\t| 'arrowCornerExpand'\n\t| 'arrowCurvedDownRight'\n\t| 'arrowDownload'\n\t| 'download'\n\t| 'arrowExternal'\n\t| 'outside'\n\t| 'arrowForward'\n\t| 'arrowDouble'\n\t| 'forward'\n\t| 'arrowLeft'\n\t| 'arrowFullWest'\n\t| 'arrowLineBottom'\n\t| 'arrowLineTop'\n\t| 'arrowLogin'\n\t| 'login'\n\t| 'arrowLogout'\n\t| 'logout'\n\t| 'arrowOppositeLeftRight'\n\t| 'arrowOppositeHorizontal'\n\t| 'swap'\n\t| 'arrowOppositeRightLeft'\n\t| 'arrowOppositeTopBottom'\n\t| 'arrowOppositeVertical'\n\t| 'creditDebit'\n\t| 'arrowReply'\n\t| 'reply'\n\t| 'arrowReset'\n\t| 'refresh'\n\t| 'update'\n\t| 'arrowRight'\n\t| 'arrowFullEast'\n\t| 'arrowSync'\n\t| 'sync'\n\t| 'arrowSyncStrikethrough'\n\t| 'syncDisabled'\n\t| 'arrowTop'\n\t| 'arrowFullNorth'\n\t| 'arrowTopLeft'\n\t| 'arrowTopRight'\n\t| 'arrowUnfoldLess'\n\t| 'collapse'\n\t| 'arrowUnfoldMore'\n\t| 'expand'\n\t| 'arrowUpload'\n\t| 'upload'\n\t| 'cloudUpload'\n\t| 'bell'\n\t| 'notification'\n\t| 'bellStrikethrough'\n\t| 'book'\n\t| 'bookmark'\n\t| 'bookmarkFilled'\n\t| 'boxArchive'\n\t| 'archive'\n\t| 'boxUnarchive'\n\t| 'unarchive'\n\t| 'branch'\n\t| 'bubbleAnswer'\n\t| 'answer'\n\t| 'bubbleConversation'\n\t| 'messenger'\n\t| 'bubbleSpeech'\n\t| 'chat'\n\t| 'talk'\n\t| 'dialog'\n\t| 'bubbleStars'\n\t| 'buildingCompany'\n\t| 'building'\n\t| 'establishment'\n\t| 'buildingHouse'\n\t| 'house'\n\t| 'home'\n\t| 'buildingHouseFilled'\n\t| 'houseFilled'\n\t| 'homeFill'\n\t| 'buildingHouseStarred'\n\t| 'houseStarred'\n\t| 'homeStarred'\n\t| 'buildingStore'\n\t| 'store'\n\t| 'bulb'\n\t| 'lightBulb'\n\t| 'calendarChecked'\n\t| 'calendarDate'\n\t| 'calendar'\n\t| 'planning'\n\t| 'calendarEdit'\n\t| 'planningEdit'\n\t| 'calendarPlanning'\n\t| 'payPeriod'\n\t| 'calendarSettings'\n\t| 'planningManage'\n\t| 'calendarStrikethrough'\n\t| 'calendarOff'\n\t| 'capCrown'\n\t| 'crown'\n\t| 'capGraduate'\n\t| 'graduate'\n\t| 'school'\n\t| 'certificationFailed'\n\t| 'certifKo'\n\t| 'certificationSuccess'\n\t| 'certifOk'\n\t| 'certificationWaiting'\n\t| 'certifWaiting'\n\t| 'chartDonut'\n\t| 'donut'\n\t| 'donutChart'\n\t| 'chartFlow'\n\t| 'familyTree'\n\t| 'orgTree'\n\t| 'chartHorizontalBar'\n\t| 'horizontalBarChart'\n\t| 'chartLevels'\n\t| 'level'\n\t| 'chartPie'\n\t| 'dashboard'\n\t| 'chartSpider'\n\t| 'chartVerticalBar'\n\t| 'analytics'\n\t| 'charts'\n\t| 'clipboard'\n\t| 'paste'\n\t| 'completion'\n\t| 'cornersFocus'\n\t| 'cornersFullscreenExit'\n\t| 'fullscreenExit'\n\t| 'cornersFullscreenOpen'\n\t| 'fullscreen'\n\t| 'dataTable'\n\t| 'table'\n\t| 'database'\n\t| 'databaseArrow'\n\t| 'apiSync'\n\t| 'deviceCamera'\n\t| 'camera'\n\t| 'deviceComputer'\n\t| 'computer'\n\t| 'deviceLaptop'\n\t| 'laptop'\n\t| 'deviceMobile'\n\t| 'deviceMouse'\n\t| 'computerMouse'\n\t| 'devicePrinter'\n\t| 'print'\n\t| 'deviceVideo'\n\t| 'dotsDrag'\n\t| 'drag'\n\t| 'emojiSmile'\n\t| 'eye'\n\t| 'watch'\n\t| 'eyeStrikethrough'\n\t| 'unwatch'\n\t| 'fileContract'\n\t| 'contract'\n\t| 'fileCopy'\n\t| 'copy'\n\t| 'fileDocument'\n\t| 'file'\n\t| 'files'\n\t| 'fileExport'\n\t| 'fileFolder'\n\t| 'folder'\n\t| 'fileImport'\n\t| 'importDirty'\n\t| 'importPristine'\n\t| 'filePlus'\n\t| 'fileSign'\n\t| 'sign'\n\t| 'filtersDescending'\n\t| 'filterAbstract'\n\t| 'filtersFunnel'\n\t| 'funnel'\n\t| 'filter'\n\t| 'filtersSort'\n\t| 'sort'\n\t| 'reorder'\n\t| 'flag'\n\t| 'floppyDiskSave'\n\t| 'save'\n\t| 'foodBirthdayCake'\n\t| 'birthday'\n\t| 'foodBobun'\n\t| 'lunchAlternative'\n\t| 'foodBurger'\n\t| 'lunch'\n\t| 'foodChefHat'\n\t| 'restaurant'\n\t| 'foodClocheDish'\n\t| 'diner'\n\t| 'foodCocktail'\n\t| 'drink'\n\t| 'foodCoffee'\n\t| 'coffee'\n\t| 'breaktime'\n\t| 'foodCroissant'\n\t| 'breakfast'\n\t| 'foodCutlery'\n\t| 'meal'\n\t| 'foodSandwich'\n\t| 'snack'\n\t| 'formatBulletedList'\n\t| 'list'\n\t| 'formatClipperAttachment'\n\t| 'attach'\n\t| 'formatCornerUpLeft'\n\t| 'formatUndo'\n\t| 'formatCornerUpRight'\n\t| 'formatRedo'\n\t| 'formatLink'\n\t| 'formatNumberedList'\n\t| 'formatListNb'\n\t| 'formatText'\n\t| 'formatJustify'\n\t| 'formatTextBold'\n\t| 'formatBold'\n\t| 'formatTextClear'\n\t| 'formatClear'\n\t| 'formatTextItalic'\n\t| 'formatItalic'\n\t| 'formatTextSize'\n\t| 'formatSize'\n\t| 'formatTextStrikethrough'\n\t| 'formatStrikethrough'\n\t| 'formatTextUnderline'\n\t| 'formatUnderlined'\n\t| 'formatUnlink'\n\t| 'unlink'\n\t| 'gift'\n\t| 'present'\n\t| 'heart'\n\t| 'heartFilled'\n\t| 'heartStrikethrough'\n\t| 'brokenHeart'\n\t| 'hotelBed'\n\t| 'bed'\n\t| 'hotel'\n\t| 'hotelHanger'\n\t| 'hanger'\n\t| 'hotelIron'\n\t| 'iron'\n\t| 'pressing'\n\t| 'hotelLuggage'\n\t| 'luggage'\n\t| 'jigsawPuzzle'\n\t| 'puzzle'\n\t| 'journey'\n\t| 'milestone'\n\t| 'jumpingCc'\n\t| 'lucca'\n\t| 'laboratoryTestFlask'\n\t| 'test'\n\t| 'layers'\n\t| 'floor'\n\t| 'listChecked'\n\t| 'listChecklist'\n\t| 'listTodo'\n\t| 'listMultipleChoices'\n\t| 'lockClose'\n\t| 'lock'\n\t| 'lockKey'\n\t| 'key'\n\t| 'lockOpen'\n\t| 'unlock'\n\t| 'mailEnvelope'\n\t| 'mail'\n\t| 'mailMailbox'\n\t| 'mailbox'\n\t| 'stamp'\n\t| 'postage'\n\t| 'mailPaperPlane'\n\t| 'send'\n\t| 'mapGlobe'\n\t| 'globe'\n\t| 'mapLocation'\n\t| 'location'\n\t| 'mapPin'\n\t| 'pin'\n\t| 'mapPlan'\n\t| 'mapTripStep'\n\t| 'mathsDivide'\n\t| 'divide'\n\t| 'mathsEquals'\n\t| 'mathsMinus'\n\t| 'minus'\n\t| 'partial'\n\t| 'minimize'\n\t| 'mathsMultiplicate'\n\t| 'close'\n\t| 'thinCross'\n\t| 'cross'\n\t| 'crossBold'\n\t| 'mathsNotEqual'\n\t| 'mathsPlus'\n\t| 'plus'\n\t| 'plusBold'\n\t| 'medicalDoctor'\n\t| 'menuBurger'\n\t| 'menu'\n\t| 'hamburgerMenu'\n\t| 'menuDots'\n\t| 'menuEllipsis'\n\t| 'ellipsis'\n\t| 'moneyBag'\n\t| 'moneybag'\n\t| 'moneyBagStrikethrough'\n\t| 'noMoney'\n\t| 'moneyBankImport'\n\t| 'moneyBanknoteStrikethrough'\n\t| 'moneyBill'\n\t| 'bill'\n\t| 'moneyBuildingBank'\n\t| 'bank'\n\t| 'moneyCardCheck'\n\t| 'moneyCardImport'\n\t| 'importCb'\n\t| 'moneyCheck'\n\t| 'moneyCoins'\n\t| 'money'\n\t| 'payment'\n\t| 'moneyCurrencyDollar'\n\t| 'dollar'\n\t| 'moneyCurrencyEuro'\n\t| 'euro'\n\t| 'moneyPaymentCard'\n\t| 'bankingCard'\n\t| 'moneyPaymentCards'\n\t| 'moneyPiggyBank'\n\t| 'piggyBank'\n\t| 'moneyWallet'\n\t| 'wallet'\n\t| 'officeBriefcase'\n\t| 'officeChair'\n\t| 'chair'\n\t| 'officeCompass'\n\t| 'compass'\n\t| 'officeElectricalPlug'\n\t| 'officeFirstAid'\n\t| 'officeMicrophone'\n\t| 'officePen'\n\t| 'edit'\n\t| 'editMini'\n\t| 'officePenStar'\n\t| 'officePenWriting'\n\t| 'editWrite'\n\t| 'editFrame'\n\t| 'officePhone'\n\t| 'telephone'\n\t| 'officeScissors'\n\t| 'cut'\n\t| 'officeSupplies'\n\t| 'supplies'\n\t| 'peopleAccessibility'\n\t| 'peopleAdd'\n\t| 'userAdd'\n\t| 'adduser'\n\t| 'peopleArrowUp'\n\t| 'peopleEdit'\n\t| 'peopleFolder'\n\t| 'peopleGroup'\n\t| 'userGroup'\n\t| 'group'\n\t| 'peopleHouse'\n\t| 'peopleId'\n\t| 'identityCard'\n\t| 'userFile'\n\t| 'dossierRh'\n\t| 'peopleLocked'\n\t| 'userRoles'\n\t| 'peoplePerson'\n\t| 'user'\n\t| 'face'\n\t| 'peopleRemove'\n\t| 'userRemove'\n\t| 'peopleSwitch'\n\t| 'send2user'\n\t| 'userSendTo'\n\t| 'peopleTeacher'\n\t| 'teacher'\n\t| 'pictureGallery'\n\t| 'gallery'\n\t| 'pictureImage'\n\t| 'image'\n\t| 'picturePalette'\n\t| 'palette'\n\t| 'playerPauseCircle'\n\t| 'pause'\n\t| 'playerPlay'\n\t| 'playFull'\n\t| 'playerPlayCircle'\n\t| 'play'\n\t| 'playerRecording'\n\t| 'playerStopCircle'\n\t| 'stop'\n\t| 'priceTag'\n\t| 'pricetag'\n\t| 'priorityHigh'\n\t| 'high'\n\t| 'priorityHigher'\n\t| 'higher'\n\t| 'priorityHighest'\n\t| 'highest'\n\t| 'priorityLow'\n\t| 'low'\n\t| 'priorityLower'\n\t| 'lower'\n\t| 'priorityLowest'\n\t| 'lowest'\n\t| 'priorityMedium'\n\t| 'medium'\n\t| 'rotationLeft'\n\t| 'rotate'\n\t| 'rotationRight'\n\t| 'rotateRight'\n\t| 'searchMagnifyingGlass'\n\t| 'search'\n\t| 'searchZoomIn'\n\t| 'searchZoomOut'\n\t| 'settingsEqualizer'\n\t| 'sliders'\n\t| 'settingsGear'\n\t| 'settings'\n\t| 'settingsTools'\n\t| 'tools'\n\t| 'share'\n\t| 'signAt'\n\t| 'signBan'\n\t| 'forbidden'\n\t| 'signCancel'\n\t| 'cancel'\n\t| 'signCheckbox'\n\t| 'signClose'\n\t| 'signConfirm'\n\t| 'confirm'\n\t| 'tick'\n\t| 'tickThin'\n\t| 'tickBold'\n\t| 'signConstruction'\n\t| 'build'\n\t| 'signDiscount'\n\t| 'discount'\n\t| 'signError'\n\t| 'error'\n\t| 'signHelp'\n\t| 'help'\n\t| 'helpOutline'\n\t| 'signInfo'\n\t| 'info'\n\t| 'signParking'\n\t| 'parking'\n\t| 'signShieldError'\n\t| 'signShieldSuccess'\n\t| 'signShieldWarning'\n\t| 'signSimpleChoice'\n\t| 'signSuccess'\n\t| 'success'\n\t| 'signTranslation'\n\t| 'signWarning'\n\t| 'warning'\n\t| 'signWebhook'\n\t| 'soundMegaphone'\n\t| 'star'\n\t| 'unstared'\n\t| 'starFilled'\n\t| 'target'\n\t| 'thumbDown'\n\t| 'thumbDownFilled'\n\t| 'thumbUp'\n\t| 'thumbUpFilled'\n\t| 'thumbnail'\n\t| 'timeAlarm'\n\t| 'alarm'\n\t| 'timeClock'\n\t| 'clock'\n\t| 'timeFuture'\n\t| 'postpone'\n\t| 'timeHourglass'\n\t| 'timer'\n\t| 'timePast'\n\t| 'history'\n\t| 'timeTimer'\n\t| 'chronoOn'\n\t| 'timeTimerStrikethrough'\n\t| 'overplanned'\n\t| 'timeTimesheet'\n\t| 'timesheet'\n\t| 'transportBus'\n\t| 'bus'\n\t| 'transportCar'\n\t| 'car'\n\t| 'transportCarElectric'\n\t| 'transportCarwashStation'\n\t| 'cleanCar'\n\t| 'transportGazStation'\n\t| 'gasoline'\n\t| 'transportMotocycle'\n\t| 'transportMotocycleElectric'\n\t| 'transportPlane'\n\t| 'plane'\n\t| 'transportRocket'\n\t| 'rocket'\n\t| 'transportScooter'\n\t| 'transportScooterElectric'\n\t| 'transportSpeedometer'\n\t| 'speedometer'\n\t| 'mileage'\n\t| 'transportSubway'\n\t| 'subway'\n\t| 'transportTaxi'\n\t| 'taxi'\n\t| 'transportToll'\n\t| 'toll'\n\t| 'tollDollar'\n\t| 'tollEuro'\n\t| 'transportTrain'\n\t| 'train'\n\t| 'transportTruck'\n\t| 'truck'\n\t| 'trashDelete'\n\t| 'trash'\n\t| 'trendingGrowth'\n\t| 'evolution'\n\t| 'trendingLoss'\n\t| 'evolutionDown'\n\t| 'weatherCloudy'\n\t| 'weatherLightning'\n\t| 'weatherStars'\n\t| 'weatherStormy'\n\t| 'weatherStorm'\n\t| 'weatherSunny'\n\t| 'weatherSun'\n\t| 'weight';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAYa,aAAa,CAAA;AAR1B,IAAA,WAAA,GAAA;AASC;;AAEG;AACM,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAa;AAE3C;;AAEG;QACM,IAAA,CAAA,GAAG,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,KAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;AAE9B;;AAEG;QACM,IAAA,CAAA,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAiD;AAEtE;;AAEG;AACM,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAA8G,SAAS,iDAAC;AAE9I;;AAEG;QACM,IAAA,CAAA,EAAE,GAAG,KAAK,CAAC,KAAK,+CAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAElD,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;AACpC,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE;YACxB,OAAO;AACN,gBAAA,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,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAML,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;+BACC,kBAAkB,EAAA,OAAA,EACnB,CAAC,OAAO,CAAC,EAAA,eAAA,EAGD,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,0OAAA,EAAA,MAAA,EAAA,CAAA,saAAA,CAAA,EAAA;;;AEVtC;AACA;AACA;AACA;;ACHA;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca/prisme",
|
|
3
|
-
"version": "21.2.0-rc.
|
|
3
|
+
"version": "21.2.0-rc.5",
|
|
4
4
|
"description": "Design system made by @lucca",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@angular/cdk": "^21.0.0",
|
|
21
21
|
"@angular/animations": "^21.0.0",
|
|
22
22
|
"@types/dompurify": "^3.0.0",
|
|
23
|
-
"@lucca-front/icons": "21.2.0-rc.
|
|
24
|
-
"@lucca-front/scss": "21.2.0-rc.
|
|
23
|
+
"@lucca-front/icons": "21.2.0-rc.5",
|
|
24
|
+
"@lucca-front/scss": "21.2.0-rc.5",
|
|
25
25
|
"isomorphic-dompurify": "^2.11.0",
|
|
26
26
|
"date-fns": "^3.6.0",
|
|
27
27
|
"rxjs": "^7.8.0"
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { ElementRef } from '@angular/core';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Available ButtonComponent Types
|
|
6
|
+
*/
|
|
7
|
+
declare const BUTTON_SIZE: readonly ["M", "S", "XS"];
|
|
8
|
+
type ButtonSize = (typeof BUTTON_SIZE)[number];
|
|
9
|
+
declare const BUTTON_STATE: readonly ["default", "loading", "error", "success"];
|
|
10
|
+
type ButtonState = (typeof BUTTON_STATE)[number];
|
|
11
|
+
declare const BUTTON_TYPE: readonly ["", "outlined", "AI", "AI-invert", "ghost", "ghost-invert", "text", "text-invert"];
|
|
12
|
+
type ButtonType = (typeof BUTTON_TYPE)[number];
|
|
4
13
|
|
|
5
14
|
declare class ButtonComponent {
|
|
6
15
|
#private;
|
|
@@ -28,17 +37,17 @@ declare class ButtonComponent {
|
|
|
28
37
|
/**
|
|
29
38
|
* Applies a color palette to the Button
|
|
30
39
|
*/
|
|
31
|
-
readonly palette: _angular_core.InputSignal<
|
|
40
|
+
readonly palette: _angular_core.InputSignal<"error" | "success" | "warning" | "product" | "neutral" | "none" | "primary" | "grey" | "brand">;
|
|
32
41
|
/**
|
|
33
42
|
* Modifies the state of the Button
|
|
34
43
|
*/
|
|
35
|
-
readonly state: _angular_core.InputSignal<"
|
|
44
|
+
readonly state: _angular_core.InputSignal<"default" | "loading" | "error" | "success">;
|
|
36
45
|
readonly luButton: _angular_core.InputSignal<"" | "outlined" | "AI" | "AI-invert" | "ghost" | "ghost-invert" | "text" | "text-invert">;
|
|
37
46
|
/**
|
|
38
47
|
* '' is the default value when you just set the `prButton` directive without a value attached to it.
|
|
39
48
|
* We just make this explicit here.
|
|
40
49
|
*/
|
|
41
|
-
readonly prButton: _angular_core.InputSignal<"" | "outlined" | "AI" | "ghost" | "ghost-invert" | "text" | "text-invert">;
|
|
50
|
+
readonly prButton: _angular_core.InputSignal<"" | "outlined" | "AI" | "AI-invert" | "ghost" | "ghost-invert" | "text" | "text-invert">;
|
|
42
51
|
readonly buttonType: _angular_core.Signal<"" | "outlined" | "AI" | "AI-invert" | "ghost" | "ghost-invert" | "text" | "text-invert">;
|
|
43
52
|
readonly iconComponentRef: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
44
53
|
readonly classesConfig: _angular_core.Signal<{
|
|
@@ -60,4 +69,5 @@ declare class ButtonComponent {
|
|
|
60
69
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "button[luButton], a[luButton], span[luButton], button[prButton], a[prButton], span[prButton]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "critical": { "alias": "critical"; "required": false; "isSignal": true; }; "delete": { "alias": "delete"; "required": false; "isSignal": true; }; "disclosure": { "alias": "disclosure"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "luButton": { "alias": "luButton"; "required": false; "isSignal": true; }; "prButton": { "alias": "prButton"; "required": false; "isSignal": true; }; }, {}, ["iconComponentRef"], ["*"], true, never>;
|
|
61
70
|
}
|
|
62
71
|
|
|
63
|
-
export { ButtonComponent };
|
|
72
|
+
export { BUTTON_SIZE, BUTTON_STATE, BUTTON_TYPE, ButtonComponent };
|
|
73
|
+
export type { ButtonSize, ButtonState, ButtonType };
|
|
@@ -14,8 +14,10 @@ declare class PrClass {
|
|
|
14
14
|
/**
|
|
15
15
|
* Available CSS palettes
|
|
16
16
|
*/
|
|
17
|
-
|
|
18
|
-
type
|
|
17
|
+
declare const PALETTE: readonly ["success", "warning", "error", "product", "neutral", "none", "primary", "grey", "brand"];
|
|
18
|
+
type Palette = (typeof PALETTE)[number];
|
|
19
|
+
declare const DECORATIVE_PALETTE: readonly ["kiwi", "lime", "cucumber", "mint", "glacier", "lagoon", "blueberry", "lavender", "grape", "watermelon", "pumpkin", "pineapple"];
|
|
20
|
+
type DecorativePalette = (typeof DECORATIVE_PALETTE)[number];
|
|
19
21
|
|
|
20
22
|
/**
|
|
21
23
|
* In order to make this efficient when building the split, I copied this from lucca-front/core, TODO use it from here instead
|
|
@@ -34,5 +36,5 @@ type EffectWithDepsInput = ReadonlyArray<Signal<unknown>> | Record<string, Signa
|
|
|
34
36
|
*/
|
|
35
37
|
declare function ɵeffectWithDeps<const T extends EffectWithDepsInput>(dependencies: T, action: (...values: [...SignalsValue<T>, EffectCleanupRegisterFn]) => unknown, options?: CreateEffectOptions): EffectRef;
|
|
36
38
|
|
|
37
|
-
export { PrClass, ɵeffectWithDeps };
|
|
39
|
+
export { DECORATIVE_PALETTE, PALETTE, PrClass, ɵeffectWithDeps };
|
|
38
40
|
export type { DecorativePalette, EffectWithDepsInput, Palette };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
|
|
3
|
-
type LuccaIcon = 'app' | 'apps' | 'nineTiles' | 'mosaic' | 'tiles' | 'appWidget' | 'arrowBackward' | 'backward' | 'arrowBottom' | 'arrowFullSouth' | 'arrowBottomLeft' | 'arrowBottomRight' | 'arrowCenterReduce' | 'arrowChevronBottom' | 'arrowSouth' | 'southArrow' | 'southThinArrow' | 'chevronSouth' | 'chevronBottom' | 'arrowChevronLeft' | 'arrowWest' | 'westArrow' | 'westThinArrow' | 'chevronWest' | 'chevronLeft' | 'arrowChevronRight' | 'arrowEast' | 'eastArrow' | 'eastThinArrow' | 'chevronEast' | 'chevronRight' | 'arrowChevronTop' | 'arrowNorth' | 'northArrow' | 'northThinArrow' | 'chevronNorth' | 'chevronTop' | 'arrowCorner' | 'distribute' | 'arrowCornerExpand' | 'arrowCurvedDownRight' | 'arrowDownload' | 'download' | 'arrowExternal' | 'outside' | 'arrowForward' | 'arrowDouble' | 'forward' | 'arrowLeft' | 'arrowFullWest' | 'arrowLineBottom' | 'arrowLineTop' | 'arrowLogin' | 'login' | 'arrowLogout' | 'logout' | 'arrowOppositeLeftRight' | 'arrowOppositeHorizontal' | 'swap' | 'arrowOppositeRightLeft' | 'arrowOppositeTopBottom' | 'arrowOppositeVertical' | 'creditDebit' | 'arrowReply' | 'reply' | 'arrowReset' | 'refresh' | 'update' | 'arrowRight' | 'arrowFullEast' | 'arrowSync' | 'sync' | 'arrowSyncStrikethrough' | 'syncDisabled' | 'arrowTop' | 'arrowFullNorth' | 'arrowTopLeft' | 'arrowTopRight' | 'arrowUnfoldLess' | 'collapse' | 'arrowUnfoldMore' | 'expand' | 'arrowUpload' | 'upload' | 'cloudUpload' | 'bell' | 'notification' | 'bellStrikethrough' | 'book' | 'bookmark' | 'bookmarkFilled' | 'boxArchive' | 'archive' | 'boxUnarchive' | 'unarchive' | 'branch' | 'bubbleAnswer' | 'answer' | 'bubbleConversation' | 'messenger' | 'bubbleSpeech' | 'chat' | 'talk' | 'dialog' | 'bubbleStars' | 'buildingCompany' | 'building' | 'establishment' | 'buildingHouse' | 'house' | 'home' | 'buildingHouseFilled' | 'houseFilled' | 'homeFill' | 'buildingHouseStarred' | 'houseStarred' | 'homeStarred' | 'buildingStore' | 'store' | 'bulb' | 'lightBulb' | 'calendarChecked' | 'calendarDate' | 'calendar' | 'planning' | 'calendarEdit' | 'planningEdit' | 'calendarPlanning' | 'payPeriod' | 'calendarSettings' | 'planningManage' | 'calendarStrikethrough' | 'calendarOff' | 'capCrown' | 'crown' | 'capGraduate' | 'graduate' | 'school' | 'certificationFailed' | 'certifKo' | 'certificationSuccess' | 'certifOk' | 'certificationWaiting' | 'certifWaiting' | 'chartDonut' | 'donut' | 'donutChart' | 'chartFlow' | 'familyTree' | 'orgTree' | 'chartHorizontalBar' | 'horizontalBarChart' | 'chartLevels' | 'level' | 'chartPie' | 'dashboard' | 'chartSpider' | 'chartVerticalBar' | 'analytics' | 'charts' | 'clipboard' | 'paste' | 'completion' | 'cornersFocus' | 'cornersFullscreenExit' | 'fullscreenExit' | 'cornersFullscreenOpen' | 'fullscreen' | 'dataTable' | 'table' | 'database' | 'databaseArrow' | 'apiSync' | 'deviceCamera' | 'camera' | 'deviceComputer' | 'computer' | 'deviceLaptop' | 'laptop' | 'deviceMobile' | 'deviceMouse' | 'computerMouse' | 'devicePrinter' | 'print' | 'deviceVideo' | 'dotsDrag' | 'drag' | 'emojiSmile' | 'eye' | 'watch' | 'eyeStrikethrough' | 'unwatch' | 'fileContract' | 'contract' | 'fileCopy' | 'copy' | 'fileDocument' | 'file' | 'files' | 'fileExport' | 'fileFolder' | 'folder' | 'fileImport' | 'importDirty' | 'importPristine' | 'filePlus' | 'fileSign' | 'sign' | 'filtersDescending' | 'filterAbstract' | 'filtersFunnel' | 'funnel' | 'filter' | 'filtersSort' | 'sort' | 'reorder' | 'flag' | 'floppyDiskSave' | 'save' | 'foodBirthdayCake' | 'birthday' | 'foodBobun' | 'lunchAlternative' | 'foodBurger' | 'lunch' | 'foodChefHat' | 'restaurant' | 'foodClocheDish' | 'diner' | 'foodCocktail' | 'drink' | 'foodCoffee' | 'coffee' | 'breaktime' | 'foodCroissant' | 'breakfast' | 'foodCutlery' | 'meal' | 'foodSandwich' | 'snack' | 'formatBulletedList' | 'list' | 'formatClipperAttachment' | 'attach' | 'formatCornerUpLeft' | 'formatUndo' | 'formatCornerUpRight' | 'formatRedo' | 'formatLink' | 'formatNumberedList' | 'formatListNb' | 'formatText' | 'formatJustify' | 'formatTextBold' | 'formatBold' | 'formatTextClear' | 'formatClear' | 'formatTextItalic' | 'formatItalic' | 'formatTextSize' | 'formatSize' | 'formatTextStrikethrough' | 'formatStrikethrough' | 'formatTextUnderline' | 'formatUnderlined' | 'formatUnlink' | 'unlink' | 'gift' | 'present' | 'heart' | 'heartFilled' | 'heartStrikethrough' | 'brokenHeart' | 'hotelBed' | 'bed' | 'hotel' | 'hotelHanger' | 'hanger' | 'hotelIron' | 'iron' | 'pressing' | 'hotelLuggage' | 'luggage' | 'jigsawPuzzle' | 'puzzle' | 'journey' | 'milestone' | 'jumpingCc' | 'lucca' | 'laboratoryTestFlask' | 'test' | 'layers' | 'floor' | 'listChecked' | 'listChecklist' | 'listTodo' | 'lockClose' | 'lock' | 'lockKey' | 'key' | 'lockOpen' | 'unlock' | 'mailEnvelope' | 'mail' | 'mailMailbox' | 'mailbox' | 'stamp' | 'postage' | 'mailPaperPlane' | 'send' | 'mapGlobe' | 'globe' | 'mapLocation' | 'location' | 'mapPin' | 'pin' | 'mapPlan' | 'mapTripStep' | 'mathsDivide' | 'divide' | 'mathsEquals' | 'mathsMinus' | 'minus' | 'partial' | 'minimize' | 'mathsMultiplicate' | 'close' | 'thinCross' | 'cross' | 'crossBold' | 'mathsNotEqual' | 'mathsPlus' | 'plus' | 'plusBold' | 'medicalDoctor' | 'menuBurger' | 'menu' | 'hamburgerMenu' | 'menuDots' | 'menuEllipsis' | 'ellipsis' | 'moneyBag' | 'moneybag' | 'moneyBagStrikethrough' | 'noMoney' | 'moneyBankImport' | 'moneyBanknoteStrikethrough' | 'moneyBill' | 'bill' | 'moneyBuildingBank' | 'bank' | 'moneyCardCheck' | 'moneyCardImport' | 'importCb' | 'moneyCheck' | 'moneyCoins' | 'money' | 'payment' | 'moneyCurrencyDollar' | 'dollar' | 'moneyCurrencyEuro' | 'euro' | 'moneyPaymentCard' | 'bankingCard' | 'moneyPaymentCards' | 'moneyPiggyBank' | 'piggyBank' | 'moneyWallet' | 'wallet' | 'officeBriefcase' | 'officeChair' | 'chair' | 'officeCompass' | 'compass' | 'officeElectricalPlug' | 'officeFirstAid' | 'officeMicrophone' | 'officePen' | 'edit' | 'editMini' | 'officePenStar' | 'officePenWriting' | 'editWrite' | 'editFrame' | 'officePhone' | 'telephone' | 'officeScissors' | 'cut' | 'officeSupplies' | 'supplies' | 'peopleAccessibility' | 'peopleAdd' | 'userAdd' | 'adduser' | 'peopleArrowUp' | 'peopleEdit' | 'peopleFolder' | 'peopleGroup' | 'userGroup' | 'group' | 'peopleHouse' | 'peopleId' | 'identityCard' | 'userFile' | 'dossierRh' | 'peopleLocked' | 'userRoles' | 'peoplePerson' | 'user' | 'face' | 'peopleRemove' | 'userRemove' | 'peopleSwitch' | 'send2user' | 'userSendTo' | 'peopleTeacher' | 'teacher' | 'pictureGallery' | 'gallery' | 'pictureImage' | 'image' | 'picturePalette' | 'palette' | 'playerPauseCircle' | 'pause' | 'playerPlay' | 'playFull' | 'playerPlayCircle' | 'play' | 'playerRecording' | 'playerStopCircle' | 'stop' | 'priceTag' | 'pricetag' | 'priorityHigh' | 'high' | 'priorityHigher' | 'higher' | 'priorityHighest' | 'highest' | 'priorityLow' | 'low' | 'priorityLower' | 'lower' | 'priorityLowest' | 'lowest' | 'priorityMedium' | 'medium' | 'rotationLeft' | 'rotate' | 'rotationRight' | 'rotateRight' | 'searchMagnifyingGlass' | 'search' | 'searchZoomIn' | 'searchZoomOut' | 'settingsEqualizer' | 'sliders' | 'settingsGear' | 'settings' | 'settingsTools' | 'tools' | 'share' | 'signAt' | 'signBan' | 'forbidden' | 'signCancel' | 'cancel' | 'signCheckbox' | 'signClose' | 'signConfirm' | 'confirm' | 'tick' | 'tickThin' | 'tickBold' | 'signConstruction' | 'build' | 'signDiscount' | 'discount' | 'signError' | 'error' | 'signHelp' | 'help' | 'helpOutline' | 'signInfo' | 'info' | 'signParking' | 'parking' | 'signShieldError' | 'signShieldSuccess' | 'signShieldWarning' | 'signSuccess' | 'success' | 'signTranslation' | 'signWarning' | 'warning' | 'signWebhook' | 'soundMegaphone' | 'star' | 'unstared' | 'starFilled' | 'target' | 'thumbDown' | 'thumbDownFilled' | 'thumbUp' | 'thumbUpFilled' | 'thumbnail' | 'timeAlarm' | 'alarm' | 'timeClock' | 'clock' | 'timeFuture' | 'postpone' | 'timeHourglass' | 'timer' | 'timePast' | 'history' | 'timeTimer' | 'chronoOn' | 'timeTimerStrikethrough' | 'overplanned' | 'timeTimesheet' | 'timesheet' | 'transportBus' | 'bus' | 'transportCar' | 'car' | 'transportCarElectric' | 'transportCarwashStation' | 'cleanCar' | 'transportGazStation' | 'gasoline' | 'transportMotocycle' | 'transportMotocycleElectric' | 'transportPlane' | 'plane' | 'transportRocket' | 'rocket' | 'transportScooter' | 'transportScooterElectric' | 'transportSpeedometer' | 'speedometer' | 'mileage' | 'transportSubway' | 'subway' | 'transportTaxi' | 'taxi' | 'transportToll' | 'toll' | 'tollDollar' | 'tollEuro' | 'transportTrain' | 'train' | 'transportTruck' | 'truck' | 'trashDelete' | 'trash' | 'trendingGrowth' | 'evolution' | 'trendingLoss' | 'evolutionDown' | 'weatherCloudy' | 'weatherLightning' | 'weatherStars' | 'weatherStormy' | 'weatherStorm' | 'weatherSunny' | 'weatherSun' | 'weight';
|
|
3
|
+
type LuccaIcon = 'app' | 'apps' | 'nineTiles' | 'mosaic' | 'tiles' | 'appWidget' | 'arrowBackward' | 'backward' | 'arrowBottom' | 'arrowFullSouth' | 'arrowBottomLeft' | 'arrowBottomRight' | 'arrowCenterReduce' | 'arrowChevronBottom' | 'arrowSouth' | 'southArrow' | 'southThinArrow' | 'chevronSouth' | 'chevronBottom' | 'arrowChevronLeft' | 'arrowWest' | 'westArrow' | 'westThinArrow' | 'chevronWest' | 'chevronLeft' | 'arrowChevronRight' | 'arrowEast' | 'eastArrow' | 'eastThinArrow' | 'chevronEast' | 'chevronRight' | 'arrowChevronTop' | 'arrowNorth' | 'northArrow' | 'northThinArrow' | 'chevronNorth' | 'chevronTop' | 'arrowCorner' | 'distribute' | 'arrowCornerExpand' | 'arrowCurvedDownRight' | 'arrowDownload' | 'download' | 'arrowExternal' | 'outside' | 'arrowForward' | 'arrowDouble' | 'forward' | 'arrowLeft' | 'arrowFullWest' | 'arrowLineBottom' | 'arrowLineTop' | 'arrowLogin' | 'login' | 'arrowLogout' | 'logout' | 'arrowOppositeLeftRight' | 'arrowOppositeHorizontal' | 'swap' | 'arrowOppositeRightLeft' | 'arrowOppositeTopBottom' | 'arrowOppositeVertical' | 'creditDebit' | 'arrowReply' | 'reply' | 'arrowReset' | 'refresh' | 'update' | 'arrowRight' | 'arrowFullEast' | 'arrowSync' | 'sync' | 'arrowSyncStrikethrough' | 'syncDisabled' | 'arrowTop' | 'arrowFullNorth' | 'arrowTopLeft' | 'arrowTopRight' | 'arrowUnfoldLess' | 'collapse' | 'arrowUnfoldMore' | 'expand' | 'arrowUpload' | 'upload' | 'cloudUpload' | 'bell' | 'notification' | 'bellStrikethrough' | 'book' | 'bookmark' | 'bookmarkFilled' | 'boxArchive' | 'archive' | 'boxUnarchive' | 'unarchive' | 'branch' | 'bubbleAnswer' | 'answer' | 'bubbleConversation' | 'messenger' | 'bubbleSpeech' | 'chat' | 'talk' | 'dialog' | 'bubbleStars' | 'buildingCompany' | 'building' | 'establishment' | 'buildingHouse' | 'house' | 'home' | 'buildingHouseFilled' | 'houseFilled' | 'homeFill' | 'buildingHouseStarred' | 'houseStarred' | 'homeStarred' | 'buildingStore' | 'store' | 'bulb' | 'lightBulb' | 'calendarChecked' | 'calendarDate' | 'calendar' | 'planning' | 'calendarEdit' | 'planningEdit' | 'calendarPlanning' | 'payPeriod' | 'calendarSettings' | 'planningManage' | 'calendarStrikethrough' | 'calendarOff' | 'capCrown' | 'crown' | 'capGraduate' | 'graduate' | 'school' | 'certificationFailed' | 'certifKo' | 'certificationSuccess' | 'certifOk' | 'certificationWaiting' | 'certifWaiting' | 'chartDonut' | 'donut' | 'donutChart' | 'chartFlow' | 'familyTree' | 'orgTree' | 'chartHorizontalBar' | 'horizontalBarChart' | 'chartLevels' | 'level' | 'chartPie' | 'dashboard' | 'chartSpider' | 'chartVerticalBar' | 'analytics' | 'charts' | 'clipboard' | 'paste' | 'completion' | 'cornersFocus' | 'cornersFullscreenExit' | 'fullscreenExit' | 'cornersFullscreenOpen' | 'fullscreen' | 'dataTable' | 'table' | 'database' | 'databaseArrow' | 'apiSync' | 'deviceCamera' | 'camera' | 'deviceComputer' | 'computer' | 'deviceLaptop' | 'laptop' | 'deviceMobile' | 'deviceMouse' | 'computerMouse' | 'devicePrinter' | 'print' | 'deviceVideo' | 'dotsDrag' | 'drag' | 'emojiSmile' | 'eye' | 'watch' | 'eyeStrikethrough' | 'unwatch' | 'fileContract' | 'contract' | 'fileCopy' | 'copy' | 'fileDocument' | 'file' | 'files' | 'fileExport' | 'fileFolder' | 'folder' | 'fileImport' | 'importDirty' | 'importPristine' | 'filePlus' | 'fileSign' | 'sign' | 'filtersDescending' | 'filterAbstract' | 'filtersFunnel' | 'funnel' | 'filter' | 'filtersSort' | 'sort' | 'reorder' | 'flag' | 'floppyDiskSave' | 'save' | 'foodBirthdayCake' | 'birthday' | 'foodBobun' | 'lunchAlternative' | 'foodBurger' | 'lunch' | 'foodChefHat' | 'restaurant' | 'foodClocheDish' | 'diner' | 'foodCocktail' | 'drink' | 'foodCoffee' | 'coffee' | 'breaktime' | 'foodCroissant' | 'breakfast' | 'foodCutlery' | 'meal' | 'foodSandwich' | 'snack' | 'formatBulletedList' | 'list' | 'formatClipperAttachment' | 'attach' | 'formatCornerUpLeft' | 'formatUndo' | 'formatCornerUpRight' | 'formatRedo' | 'formatLink' | 'formatNumberedList' | 'formatListNb' | 'formatText' | 'formatJustify' | 'formatTextBold' | 'formatBold' | 'formatTextClear' | 'formatClear' | 'formatTextItalic' | 'formatItalic' | 'formatTextSize' | 'formatSize' | 'formatTextStrikethrough' | 'formatStrikethrough' | 'formatTextUnderline' | 'formatUnderlined' | 'formatUnlink' | 'unlink' | 'gift' | 'present' | 'heart' | 'heartFilled' | 'heartStrikethrough' | 'brokenHeart' | 'hotelBed' | 'bed' | 'hotel' | 'hotelHanger' | 'hanger' | 'hotelIron' | 'iron' | 'pressing' | 'hotelLuggage' | 'luggage' | 'jigsawPuzzle' | 'puzzle' | 'journey' | 'milestone' | 'jumpingCc' | 'lucca' | 'laboratoryTestFlask' | 'test' | 'layers' | 'floor' | 'listChecked' | 'listChecklist' | 'listTodo' | 'listMultipleChoices' | 'lockClose' | 'lock' | 'lockKey' | 'key' | 'lockOpen' | 'unlock' | 'mailEnvelope' | 'mail' | 'mailMailbox' | 'mailbox' | 'stamp' | 'postage' | 'mailPaperPlane' | 'send' | 'mapGlobe' | 'globe' | 'mapLocation' | 'location' | 'mapPin' | 'pin' | 'mapPlan' | 'mapTripStep' | 'mathsDivide' | 'divide' | 'mathsEquals' | 'mathsMinus' | 'minus' | 'partial' | 'minimize' | 'mathsMultiplicate' | 'close' | 'thinCross' | 'cross' | 'crossBold' | 'mathsNotEqual' | 'mathsPlus' | 'plus' | 'plusBold' | 'medicalDoctor' | 'menuBurger' | 'menu' | 'hamburgerMenu' | 'menuDots' | 'menuEllipsis' | 'ellipsis' | 'moneyBag' | 'moneybag' | 'moneyBagStrikethrough' | 'noMoney' | 'moneyBankImport' | 'moneyBanknoteStrikethrough' | 'moneyBill' | 'bill' | 'moneyBuildingBank' | 'bank' | 'moneyCardCheck' | 'moneyCardImport' | 'importCb' | 'moneyCheck' | 'moneyCoins' | 'money' | 'payment' | 'moneyCurrencyDollar' | 'dollar' | 'moneyCurrencyEuro' | 'euro' | 'moneyPaymentCard' | 'bankingCard' | 'moneyPaymentCards' | 'moneyPiggyBank' | 'piggyBank' | 'moneyWallet' | 'wallet' | 'officeBriefcase' | 'officeChair' | 'chair' | 'officeCompass' | 'compass' | 'officeElectricalPlug' | 'officeFirstAid' | 'officeMicrophone' | 'officePen' | 'edit' | 'editMini' | 'officePenStar' | 'officePenWriting' | 'editWrite' | 'editFrame' | 'officePhone' | 'telephone' | 'officeScissors' | 'cut' | 'officeSupplies' | 'supplies' | 'peopleAccessibility' | 'peopleAdd' | 'userAdd' | 'adduser' | 'peopleArrowUp' | 'peopleEdit' | 'peopleFolder' | 'peopleGroup' | 'userGroup' | 'group' | 'peopleHouse' | 'peopleId' | 'identityCard' | 'userFile' | 'dossierRh' | 'peopleLocked' | 'userRoles' | 'peoplePerson' | 'user' | 'face' | 'peopleRemove' | 'userRemove' | 'peopleSwitch' | 'send2user' | 'userSendTo' | 'peopleTeacher' | 'teacher' | 'pictureGallery' | 'gallery' | 'pictureImage' | 'image' | 'picturePalette' | 'palette' | 'playerPauseCircle' | 'pause' | 'playerPlay' | 'playFull' | 'playerPlayCircle' | 'play' | 'playerRecording' | 'playerStopCircle' | 'stop' | 'priceTag' | 'pricetag' | 'priorityHigh' | 'high' | 'priorityHigher' | 'higher' | 'priorityHighest' | 'highest' | 'priorityLow' | 'low' | 'priorityLower' | 'lower' | 'priorityLowest' | 'lowest' | 'priorityMedium' | 'medium' | 'rotationLeft' | 'rotate' | 'rotationRight' | 'rotateRight' | 'searchMagnifyingGlass' | 'search' | 'searchZoomIn' | 'searchZoomOut' | 'settingsEqualizer' | 'sliders' | 'settingsGear' | 'settings' | 'settingsTools' | 'tools' | 'share' | 'signAt' | 'signBan' | 'forbidden' | 'signCancel' | 'cancel' | 'signCheckbox' | 'signClose' | 'signConfirm' | 'confirm' | 'tick' | 'tickThin' | 'tickBold' | 'signConstruction' | 'build' | 'signDiscount' | 'discount' | 'signError' | 'error' | 'signHelp' | 'help' | 'helpOutline' | 'signInfo' | 'info' | 'signParking' | 'parking' | 'signShieldError' | 'signShieldSuccess' | 'signShieldWarning' | 'signSimpleChoice' | 'signSuccess' | 'success' | 'signTranslation' | 'signWarning' | 'warning' | 'signWebhook' | 'soundMegaphone' | 'star' | 'unstared' | 'starFilled' | 'target' | 'thumbDown' | 'thumbDownFilled' | 'thumbUp' | 'thumbUpFilled' | 'thumbnail' | 'timeAlarm' | 'alarm' | 'timeClock' | 'clock' | 'timeFuture' | 'postpone' | 'timeHourglass' | 'timer' | 'timePast' | 'history' | 'timeTimer' | 'chronoOn' | 'timeTimerStrikethrough' | 'overplanned' | 'timeTimesheet' | 'timesheet' | 'transportBus' | 'bus' | 'transportCar' | 'car' | 'transportCarElectric' | 'transportCarwashStation' | 'cleanCar' | 'transportGazStation' | 'gasoline' | 'transportMotocycle' | 'transportMotocycleElectric' | 'transportPlane' | 'plane' | 'transportRocket' | 'rocket' | 'transportScooter' | 'transportScooterElectric' | 'transportSpeedometer' | 'speedometer' | 'mileage' | 'transportSubway' | 'subway' | 'transportTaxi' | 'taxi' | 'transportToll' | 'toll' | 'tollDollar' | 'tollEuro' | 'transportTrain' | 'train' | 'transportTruck' | 'truck' | 'trashDelete' | 'trash' | 'trendingGrowth' | 'evolution' | 'trendingLoss' | 'evolutionDown' | 'weatherCloudy' | 'weatherLightning' | 'weatherStars' | 'weatherStormy' | 'weatherStorm' | 'weatherSunny' | 'weatherSun' | 'weight';
|
|
4
4
|
|
|
5
5
|
declare class IconComponent {
|
|
6
6
|
/**
|