@lmvz-ds/components 0.19.0 → 0.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.
- package/CHANGELOG.md +16 -0
- package/assets/icons/checkmark.svg +4 -0
- package/cjs/{aria-loader-CfFuAbJn.js → aria-loader-Cec1zR2g.js} +1 -1
- package/cjs/icons-BQASWgk-.js +80 -0
- package/cjs/{index--7IqZZqn.js → index-3g9Z9sfF.js} +765 -2854
- package/cjs/index.cjs.js +4 -3
- package/cjs/lmvz-button.cjs.entry.js +3 -3
- package/cjs/lmvz-card.cjs.entry.js +1 -1
- package/cjs/lmvz-checkbox.cjs.entry.js +113 -0
- package/cjs/lmvz-chip.cjs.entry.js +3 -3
- package/cjs/lmvz-components.cjs.js +1 -1
- package/cjs/lmvz-header_2.cjs.entry.js +3 -3
- package/cjs/lmvz-icon.cjs.entry.js +9 -7
- package/cjs/lmvz-input.cjs.entry.js +4 -4
- package/cjs/lmvz-menuitem.cjs.entry.js +4 -4
- package/cjs/lmvz-select.cjs.entry.js +3 -3
- package/cjs/lmvz-toggle.cjs.entry.js +96 -0
- package/cjs/loader.cjs.js +1 -1
- package/cjs/{logger-Bn2yoZGP.js → logger-DsM6xg6V.js} +3063 -833
- package/cjs/{reactive-controller-host-Bi9eu2bV.js → reactive-controller-host-BA4ZhjKA.js} +1 -1
- package/cjs/{icons-Tg7ySOh-.js → svg-BMBduILB.js} +31 -85
- package/collection/assets/icons/checkmark.svg +4 -0
- package/collection/collection-manifest.json +2 -0
- package/collection/components/lmvz-button/lmvz-button.css +1 -2
- package/collection/components/lmvz-card/lmvz-card.css +1 -2
- package/collection/components/lmvz-checkbox/lmvz-checkbox.css +207 -0
- package/collection/components/lmvz-checkbox/lmvz-checkbox.js +424 -0
- package/collection/components/lmvz-chip/lmvz-chip.js +1 -1
- package/collection/components/lmvz-header/lmvz-header.js +1 -1
- package/collection/components/lmvz-icon/lmvz-icon.js +5 -5
- package/collection/components/lmvz-input/lmvz-input.js +2 -2
- package/collection/components/lmvz-menuitem/lmvz-menuitem.css +1 -1
- package/collection/components/lmvz-menuitem/lmvz-menuitem.js +1 -1
- package/collection/components/lmvz-select/lmvz-select.js +1 -1
- package/collection/components/lmvz-toggle/lmvz-toggle.css +118 -0
- package/collection/components/lmvz-toggle/lmvz-toggle.js +358 -0
- package/collection/integration/header-integration/header-integration.js +1 -1
- package/collection/utils/icons/icons.js +2 -13
- package/collection/utils/icons/icons.unit.js +3 -15
- package/components/index.d.ts +4 -0
- package/components/index.d.ts.bak +4 -0
- package/components/index.js +1 -1
- package/components/lmvz-button.js +1 -1
- package/components/lmvz-card.js +1 -1
- package/components/lmvz-checkbox.d.ts +11 -0
- package/components/lmvz-checkbox.d.ts.bak +11 -0
- package/components/lmvz-checkbox.js +1 -0
- package/components/lmvz-chip.js +1 -1
- package/components/lmvz-header.js +1 -1
- package/components/lmvz-icon.js +1 -1
- package/components/lmvz-input.js +1 -1
- package/components/lmvz-menuitem.js +1 -1
- package/components/lmvz-select.js +1 -1
- package/components/lmvz-toggle.d.ts +11 -0
- package/components/lmvz-toggle.d.ts.bak +11 -0
- package/components/lmvz-toggle.js +1 -0
- package/components/p-0s99QfRy.js +12 -0
- package/components/{p-DbeHBSOe.js → p-BuFx0tTm.js} +1 -1
- package/components/p-CGmJG63p.js +1 -0
- package/components/p-CcxjkCOx.js +1 -0
- package/esm/{aria-loader-CES8Ae1e.js → aria-loader-BVolm0lC.js} +1 -1
- package/esm/icons-CmuFKDRz.js +75 -0
- package/esm/{index-BvxaUA12.js → index-Dh_9sN0q.js} +389 -2478
- package/esm/index.js +4 -3
- package/esm/lmvz-button.entry.js +3 -3
- package/esm/lmvz-card.entry.js +1 -1
- package/esm/lmvz-checkbox.entry.js +111 -0
- package/esm/lmvz-chip.entry.js +3 -3
- package/esm/lmvz-components.js +1 -1
- package/esm/lmvz-header_2.entry.js +3 -3
- package/esm/lmvz-icon.entry.js +9 -7
- package/esm/lmvz-input.entry.js +4 -4
- package/esm/lmvz-menuitem.entry.js +4 -4
- package/esm/lmvz-select.entry.js +3 -3
- package/esm/lmvz-toggle.entry.js +94 -0
- package/esm/loader.js +1 -1
- package/esm/{logger-0bL3pydp.js → logger-CGmJG63p.js} +2870 -765
- package/esm/{reactive-controller-host-J2thAxVH.js → reactive-controller-host-DHcPpJW7.js} +1 -1
- package/esm/{icons-Bj4dF1-I.js → svg-B2YoIRuh.js} +29 -80
- package/hydrate/index.js +2551 -165
- package/hydrate/index.mjs +2551 -165
- package/lmvz-components/index.esm.js +1 -1
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/{p-ec96c6b6.entry.js → p-0f7a4236.entry.js} +1 -1
- package/lmvz-components/p-0s99QfRy.js +12 -0
- package/lmvz-components/p-2f83d7a2.entry.js +1 -0
- package/lmvz-components/{p-6e8acbd9.entry.js → p-32171f4f.entry.js} +1 -1
- package/lmvz-components/{p-9212bd23.entry.js → p-400b2318.entry.js} +1 -1
- package/lmvz-components/{p-9626e951.entry.js → p-851969bd.entry.js} +1 -1
- package/lmvz-components/p-9f9d845d.entry.js +1 -0
- package/lmvz-components/p-CFsC37ww.js +1 -0
- package/lmvz-components/p-CGmJG63p.js +1 -0
- package/lmvz-components/p-CcxjkCOx.js +1 -0
- package/lmvz-components/{p-BxHnZA0M.js → p-GdMr6Qlp.js} +1 -1
- package/lmvz-components/p-a12f95da.entry.js +1 -0
- package/lmvz-components/{p-e1b847d2.entry.js → p-ab4437dc.entry.js} +1 -1
- package/lmvz-components/p-c3b7890d.entry.js +1 -0
- package/lmvz-components/{p-7a6bec13.entry.js → p-d0a0e206.entry.js} +1 -1
- package/lmvz-components/{p-DYaffOLo.js → p-dhVSUYqd.js} +1 -1
- package/manifest.json +833 -77
- package/package.json +9 -1
- package/types/components/lmvz-checkbox/lmvz-checkbox.d.ts +39 -0
- package/types/components/lmvz-toggle/lmvz-toggle.d.ts +31 -0
- package/types/components.d.ts +270 -0
- package/types/utils/icons/icons.d.ts +0 -1
- package/components/p-DXOTa5VF.js +0 -12
- package/components/p-fiRXhuXK.js +0 -1
- package/lmvz-components/p-0bL3pydp.js +0 -1
- package/lmvz-components/p-40569208.entry.js +0 -1
- package/lmvz-components/p-49ab22bd.entry.js +0 -1
- package/lmvz-components/p-Bu4Z_PMf.js +0 -1
- package/lmvz-components/p-DHZwxmLb.js +0 -12
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmvz-ds/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.21.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "The components of the design system",
|
|
7
7
|
"author": "Patrick Nemenz <patrick.nemenz@adesso.at>",
|
|
@@ -67,6 +67,14 @@
|
|
|
67
67
|
"./lmvz-select": {
|
|
68
68
|
"types": "./components/lmvz-select.d.ts",
|
|
69
69
|
"import": "./components/lmvz-select.js"
|
|
70
|
+
},
|
|
71
|
+
"./lmvz-checkbox": {
|
|
72
|
+
"import": "./components/lmvz-checkbox.js",
|
|
73
|
+
"types": "./components/lmvz-checkbox.d.ts"
|
|
74
|
+
},
|
|
75
|
+
"./lmvz-toggle": {
|
|
76
|
+
"types": "./components/lmvz-toggle.d.ts",
|
|
77
|
+
"import": "./components/lmvz-toggle.js"
|
|
70
78
|
}
|
|
71
79
|
},
|
|
72
80
|
"main": "./index.cjs.js",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
3
|
+
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
4
|
+
export declare class LmvzCheckbox extends ReactiveControllerHost implements AriaValidationHost {
|
|
5
|
+
readonly el: HTMLElement;
|
|
6
|
+
get validationEl(): HTMLElement;
|
|
7
|
+
internals: ElementInternals;
|
|
8
|
+
private nativeInput;
|
|
9
|
+
private checkboxId;
|
|
10
|
+
private initialChecked;
|
|
11
|
+
private get helperId();
|
|
12
|
+
private get errorId();
|
|
13
|
+
private get ariaDescribedBy();
|
|
14
|
+
label: string;
|
|
15
|
+
checked: boolean;
|
|
16
|
+
value: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
required: boolean;
|
|
20
|
+
error: boolean;
|
|
21
|
+
errorMessage?: string;
|
|
22
|
+
helperText?: string;
|
|
23
|
+
form?: string;
|
|
24
|
+
autofocus: boolean;
|
|
25
|
+
private checkedState;
|
|
26
|
+
protected handleCheckedChange(val: boolean): void;
|
|
27
|
+
lmvzChange: EventEmitter<boolean>;
|
|
28
|
+
focusInput(): Promise<void>;
|
|
29
|
+
checkValidity(): Promise<boolean>;
|
|
30
|
+
reportValidity(): Promise<boolean>;
|
|
31
|
+
constructor();
|
|
32
|
+
componentWillLoad(): void;
|
|
33
|
+
componentWillRender(): void;
|
|
34
|
+
formAssociatedCallback(): void;
|
|
35
|
+
formResetCallback(): void;
|
|
36
|
+
formStateRestoreCallback(state: string | File | FormData): void;
|
|
37
|
+
private handleChange;
|
|
38
|
+
render(): any;
|
|
39
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type AriaValidationHost } from '../../utils/aria/aria-validation-controller';
|
|
3
|
+
import { ReactiveControllerHost } from '../../utils/reactive-controller-host';
|
|
4
|
+
export declare class LmvzToggle extends ReactiveControllerHost implements AriaValidationHost {
|
|
5
|
+
readonly el: HTMLElement;
|
|
6
|
+
get validationEl(): HTMLElement;
|
|
7
|
+
internals: ElementInternals;
|
|
8
|
+
private nativeInputElement?;
|
|
9
|
+
private toggleId;
|
|
10
|
+
lmvzChange: EventEmitter<boolean>;
|
|
11
|
+
label: string;
|
|
12
|
+
checked: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
required: boolean;
|
|
15
|
+
name?: string;
|
|
16
|
+
value: string;
|
|
17
|
+
form?: string;
|
|
18
|
+
constructor();
|
|
19
|
+
formAssociatedCallback(_form: HTMLFormElement | undefined): void;
|
|
20
|
+
formResetCallback(): void;
|
|
21
|
+
formStateRestoreCallback(state: string): void;
|
|
22
|
+
handleCheckedChange(checked: boolean): void;
|
|
23
|
+
handleDisabledChange(disabled: boolean): void;
|
|
24
|
+
focusToggle(): Promise<void>;
|
|
25
|
+
blurToggle(): Promise<void>;
|
|
26
|
+
checkValidity(): Promise<boolean>;
|
|
27
|
+
reportValidity(): Promise<boolean>;
|
|
28
|
+
getInputElement(): Promise<HTMLInputElement | undefined>;
|
|
29
|
+
private handleChange;
|
|
30
|
+
render(): any;
|
|
31
|
+
}
|
package/types/components.d.ts
CHANGED
|
@@ -67,6 +67,76 @@ export declare namespace Components {
|
|
|
67
67
|
*/
|
|
68
68
|
"primaryActionLabel": string;
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Checkbox component with form association, ARIA validation, and accessible label support.
|
|
72
|
+
* @example ```html
|
|
73
|
+
* <lmvz-checkbox label="Accept terms" name="terms" required></lmvz-checkbox>
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
export interface LmvzCheckbox {
|
|
77
|
+
/**
|
|
78
|
+
* Whether the checkbox should autofocus.
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
"autofocus": boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Returns whether the checkbox satisfies its validation constraints.
|
|
84
|
+
*/
|
|
85
|
+
"checkValidity": () => Promise<boolean>;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the checkbox is checked.
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
"checked": boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the checkbox is disabled.
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
"disabled": boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the checkbox is in an error state.
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
100
|
+
"error": boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Error message displayed when error is true. Required when error=true.
|
|
103
|
+
*/
|
|
104
|
+
"errorMessage"?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Sets focus on the native checkbox input.
|
|
107
|
+
*/
|
|
108
|
+
"focusInput": () => Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Form id to associate with (for out-of-form usage).
|
|
111
|
+
*/
|
|
112
|
+
"form"?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Helper / description text displayed below the label.
|
|
115
|
+
*/
|
|
116
|
+
"helperText"?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Label text for the checkbox. Required for accessibility.
|
|
119
|
+
*/
|
|
120
|
+
"label": string;
|
|
121
|
+
/**
|
|
122
|
+
* Name attribute for form submission via ElementInternals.
|
|
123
|
+
*/
|
|
124
|
+
"name"?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Reports validation errors to the user.
|
|
127
|
+
*/
|
|
128
|
+
"reportValidity": () => Promise<boolean>;
|
|
129
|
+
/**
|
|
130
|
+
* Whether the checkbox is required.
|
|
131
|
+
* @default false
|
|
132
|
+
*/
|
|
133
|
+
"required": boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Form submission value when checked.
|
|
136
|
+
* @default 'on'
|
|
137
|
+
*/
|
|
138
|
+
"value": string;
|
|
139
|
+
}
|
|
70
140
|
/**
|
|
71
141
|
* The chip displays a compact semantic status as a non-interactive UI element.
|
|
72
142
|
*/
|
|
@@ -337,6 +407,66 @@ export declare namespace Components {
|
|
|
337
407
|
*/
|
|
338
408
|
"value"?: string;
|
|
339
409
|
}
|
|
410
|
+
/**
|
|
411
|
+
* Toggle (switch) component. Wraps a native `<input type="checkbox" role="switch">` for full keyboard and form support.
|
|
412
|
+
* @example ```html
|
|
413
|
+
* <lmvz-toggle label="Enable notifications" name="notifications" required></lmvz-toggle>
|
|
414
|
+
* ```
|
|
415
|
+
*/
|
|
416
|
+
export interface LmvzToggle {
|
|
417
|
+
/**
|
|
418
|
+
* Removes focus from the toggle
|
|
419
|
+
*/
|
|
420
|
+
"blurToggle": () => Promise<void>;
|
|
421
|
+
/**
|
|
422
|
+
* Returns whether the toggle satisfies its validation constraints
|
|
423
|
+
*/
|
|
424
|
+
"checkValidity": () => Promise<boolean>;
|
|
425
|
+
/**
|
|
426
|
+
* Whether the toggle is checked
|
|
427
|
+
* @default false
|
|
428
|
+
*/
|
|
429
|
+
"checked": boolean;
|
|
430
|
+
/**
|
|
431
|
+
* Whether the toggle is disabled
|
|
432
|
+
* @default false
|
|
433
|
+
*/
|
|
434
|
+
"disabled": boolean;
|
|
435
|
+
/**
|
|
436
|
+
* Sets focus on the toggle
|
|
437
|
+
*/
|
|
438
|
+
"focusToggle": () => Promise<void>;
|
|
439
|
+
/**
|
|
440
|
+
* Form id to associate with
|
|
441
|
+
*/
|
|
442
|
+
"form"?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Returns the native HTMLInputElement. Promise resolves when the element is ready and the input is available.
|
|
445
|
+
*/
|
|
446
|
+
"getInputElement": () => Promise<HTMLInputElement | undefined>;
|
|
447
|
+
/**
|
|
448
|
+
* Label text for the toggle
|
|
449
|
+
*/
|
|
450
|
+
"label": string;
|
|
451
|
+
/**
|
|
452
|
+
* Name attribute for form integration
|
|
453
|
+
*/
|
|
454
|
+
"name"?: string;
|
|
455
|
+
/**
|
|
456
|
+
* Reports validation errors to the user
|
|
457
|
+
*/
|
|
458
|
+
"reportValidity": () => Promise<boolean>;
|
|
459
|
+
/**
|
|
460
|
+
* Whether the toggle is required
|
|
461
|
+
* @default false
|
|
462
|
+
*/
|
|
463
|
+
"required": boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Value submitted with the form when checked
|
|
466
|
+
* @default 'on'
|
|
467
|
+
*/
|
|
468
|
+
"value": string;
|
|
469
|
+
}
|
|
340
470
|
}
|
|
341
471
|
|
|
342
472
|
export declare type FormRef = string | HTMLFormElement | undefined;
|
|
@@ -423,6 +553,68 @@ export declare namespace JSX {
|
|
|
423
553
|
*/
|
|
424
554
|
"primaryActionLabel"?: string;
|
|
425
555
|
}
|
|
556
|
+
/**
|
|
557
|
+
* Checkbox component with form association, ARIA validation, and accessible label support.
|
|
558
|
+
* @example ```html
|
|
559
|
+
* <lmvz-checkbox label="Accept terms" name="terms" required></lmvz-checkbox>
|
|
560
|
+
* ```
|
|
561
|
+
*/
|
|
562
|
+
export interface LmvzCheckbox {
|
|
563
|
+
/**
|
|
564
|
+
* Whether the checkbox should autofocus.
|
|
565
|
+
* @default false
|
|
566
|
+
*/
|
|
567
|
+
"autofocus"?: boolean;
|
|
568
|
+
/**
|
|
569
|
+
* Whether the checkbox is checked.
|
|
570
|
+
* @default false
|
|
571
|
+
*/
|
|
572
|
+
"checked"?: boolean;
|
|
573
|
+
/**
|
|
574
|
+
* Whether the checkbox is disabled.
|
|
575
|
+
* @default false
|
|
576
|
+
*/
|
|
577
|
+
"disabled"?: boolean;
|
|
578
|
+
/**
|
|
579
|
+
* Whether the checkbox is in an error state.
|
|
580
|
+
* @default false
|
|
581
|
+
*/
|
|
582
|
+
"error"?: boolean;
|
|
583
|
+
/**
|
|
584
|
+
* Error message displayed when error is true. Required when error=true.
|
|
585
|
+
*/
|
|
586
|
+
"errorMessage"?: string;
|
|
587
|
+
/**
|
|
588
|
+
* Form id to associate with (for out-of-form usage).
|
|
589
|
+
*/
|
|
590
|
+
"form"?: string;
|
|
591
|
+
/**
|
|
592
|
+
* Helper / description text displayed below the label.
|
|
593
|
+
*/
|
|
594
|
+
"helperText"?: string;
|
|
595
|
+
/**
|
|
596
|
+
* Label text for the checkbox. Required for accessibility.
|
|
597
|
+
*/
|
|
598
|
+
"label": string;
|
|
599
|
+
/**
|
|
600
|
+
* Name attribute for form submission via ElementInternals.
|
|
601
|
+
*/
|
|
602
|
+
"name"?: string;
|
|
603
|
+
/**
|
|
604
|
+
* Emitted whenever the checkbox checked state changes. Event detail contains the new checked boolean value.
|
|
605
|
+
*/
|
|
606
|
+
"onLmvzChange"?: (event: LmvzCheckboxCustomEvent<boolean>) => void;
|
|
607
|
+
/**
|
|
608
|
+
* Whether the checkbox is required.
|
|
609
|
+
* @default false
|
|
610
|
+
*/
|
|
611
|
+
"required"?: boolean;
|
|
612
|
+
/**
|
|
613
|
+
* Form submission value when checked.
|
|
614
|
+
* @default 'on'
|
|
615
|
+
*/
|
|
616
|
+
"value"?: string;
|
|
617
|
+
}
|
|
426
618
|
/**
|
|
427
619
|
* The chip displays a compact semantic status as a non-interactive UI element.
|
|
428
620
|
*/
|
|
@@ -677,6 +869,50 @@ export declare namespace JSX {
|
|
|
677
869
|
*/
|
|
678
870
|
"value"?: string;
|
|
679
871
|
}
|
|
872
|
+
/**
|
|
873
|
+
* Toggle (switch) component. Wraps a native `<input type="checkbox" role="switch">` for full keyboard and form support.
|
|
874
|
+
* @example ```html
|
|
875
|
+
* <lmvz-toggle label="Enable notifications" name="notifications" required></lmvz-toggle>
|
|
876
|
+
* ```
|
|
877
|
+
*/
|
|
878
|
+
export interface LmvzToggle {
|
|
879
|
+
/**
|
|
880
|
+
* Whether the toggle is checked
|
|
881
|
+
* @default false
|
|
882
|
+
*/
|
|
883
|
+
"checked"?: boolean;
|
|
884
|
+
/**
|
|
885
|
+
* Whether the toggle is disabled
|
|
886
|
+
* @default false
|
|
887
|
+
*/
|
|
888
|
+
"disabled"?: boolean;
|
|
889
|
+
/**
|
|
890
|
+
* Form id to associate with
|
|
891
|
+
*/
|
|
892
|
+
"form"?: string;
|
|
893
|
+
/**
|
|
894
|
+
* Label text for the toggle
|
|
895
|
+
*/
|
|
896
|
+
"label": string;
|
|
897
|
+
/**
|
|
898
|
+
* Name attribute for form integration
|
|
899
|
+
*/
|
|
900
|
+
"name"?: string;
|
|
901
|
+
/**
|
|
902
|
+
* Emitted when the toggle is switched. Event detail is the new checked state.
|
|
903
|
+
*/
|
|
904
|
+
"onLmvzChange"?: (event: LmvzToggleCustomEvent<boolean>) => void;
|
|
905
|
+
/**
|
|
906
|
+
* Whether the toggle is required
|
|
907
|
+
* @default false
|
|
908
|
+
*/
|
|
909
|
+
"required"?: boolean;
|
|
910
|
+
/**
|
|
911
|
+
* Value submitted with the form when checked
|
|
912
|
+
* @default 'on'
|
|
913
|
+
*/
|
|
914
|
+
"value"?: string;
|
|
915
|
+
}
|
|
680
916
|
|
|
681
917
|
export interface LmvzButtonAttributes {
|
|
682
918
|
"ti": number;
|
|
@@ -692,6 +928,19 @@ export declare namespace JSX {
|
|
|
692
928
|
"description": string;
|
|
693
929
|
"primaryActionLabel": string;
|
|
694
930
|
}
|
|
931
|
+
export interface LmvzCheckboxAttributes {
|
|
932
|
+
"label": string;
|
|
933
|
+
"checked": boolean;
|
|
934
|
+
"value": string;
|
|
935
|
+
"name": string;
|
|
936
|
+
"disabled": boolean;
|
|
937
|
+
"required": boolean;
|
|
938
|
+
"error": boolean;
|
|
939
|
+
"errorMessage": string;
|
|
940
|
+
"helperText": string;
|
|
941
|
+
"form": string;
|
|
942
|
+
"autofocus": boolean;
|
|
943
|
+
}
|
|
695
944
|
export interface LmvzChipAttributes {
|
|
696
945
|
"type": Chip.Type;
|
|
697
946
|
"size": Chip.Size;
|
|
@@ -745,17 +994,28 @@ export declare namespace JSX {
|
|
|
745
994
|
"required": boolean;
|
|
746
995
|
"name": string;
|
|
747
996
|
}
|
|
997
|
+
export interface LmvzToggleAttributes {
|
|
998
|
+
"label": string;
|
|
999
|
+
"checked": boolean;
|
|
1000
|
+
"disabled": boolean;
|
|
1001
|
+
"required": boolean;
|
|
1002
|
+
"name": string;
|
|
1003
|
+
"value": string;
|
|
1004
|
+
"form": string;
|
|
1005
|
+
}
|
|
748
1006
|
|
|
749
1007
|
export interface IntrinsicElements {
|
|
750
1008
|
"lmvz-action": LmvzAction;
|
|
751
1009
|
"lmvz-button": Omit<LmvzButton, keyof LmvzButtonAttributes> & { [K in keyof LmvzButton & keyof LmvzButtonAttributes]?: LmvzButton[K] } & { [K in keyof LmvzButton & keyof LmvzButtonAttributes as `attr:${K}`]?: LmvzButtonAttributes[K] } & { [K in keyof LmvzButton & keyof LmvzButtonAttributes as `prop:${K}`]?: LmvzButton[K] };
|
|
752
1010
|
"lmvz-card": Omit<LmvzCard, keyof LmvzCardAttributes> & { [K in keyof LmvzCard & keyof LmvzCardAttributes]?: LmvzCard[K] } & { [K in keyof LmvzCard & keyof LmvzCardAttributes as `attr:${K}`]?: LmvzCardAttributes[K] } & { [K in keyof LmvzCard & keyof LmvzCardAttributes as `prop:${K}`]?: LmvzCard[K] } & OneOf<"cardTitle", LmvzCard["cardTitle"], LmvzCardAttributes["cardTitle"]>;
|
|
1011
|
+
"lmvz-checkbox": Omit<LmvzCheckbox, keyof LmvzCheckboxAttributes> & { [K in keyof LmvzCheckbox & keyof LmvzCheckboxAttributes]?: LmvzCheckbox[K] } & { [K in keyof LmvzCheckbox & keyof LmvzCheckboxAttributes as `attr:${K}`]?: LmvzCheckboxAttributes[K] } & { [K in keyof LmvzCheckbox & keyof LmvzCheckboxAttributes as `prop:${K}`]?: LmvzCheckbox[K] } & OneOf<"label", LmvzCheckbox["label"], LmvzCheckboxAttributes["label"]>;
|
|
753
1012
|
"lmvz-chip": Omit<LmvzChip, keyof LmvzChipAttributes> & { [K in keyof LmvzChip & keyof LmvzChipAttributes]?: LmvzChip[K] } & { [K in keyof LmvzChip & keyof LmvzChipAttributes as `attr:${K}`]?: LmvzChipAttributes[K] } & { [K in keyof LmvzChip & keyof LmvzChipAttributes as `prop:${K}`]?: LmvzChip[K] };
|
|
754
1013
|
"lmvz-header": Omit<LmvzHeader, keyof LmvzHeaderAttributes> & { [K in keyof LmvzHeader & keyof LmvzHeaderAttributes]?: LmvzHeader[K] } & { [K in keyof LmvzHeader & keyof LmvzHeaderAttributes as `attr:${K}`]?: LmvzHeaderAttributes[K] } & { [K in keyof LmvzHeader & keyof LmvzHeaderAttributes as `prop:${K}`]?: LmvzHeader[K] };
|
|
755
1014
|
"lmvz-icon": Omit<LmvzIcon, keyof LmvzIconAttributes> & { [K in keyof LmvzIcon & keyof LmvzIconAttributes]?: LmvzIcon[K] } & { [K in keyof LmvzIcon & keyof LmvzIconAttributes as `attr:${K}`]?: LmvzIconAttributes[K] } & { [K in keyof LmvzIcon & keyof LmvzIconAttributes as `prop:${K}`]?: LmvzIcon[K] } & OneOf<"icon", LmvzIcon["icon"], LmvzIconAttributes["icon"]>;
|
|
756
1015
|
"lmvz-input": Omit<LmvzInput, keyof LmvzInputAttributes> & { [K in keyof LmvzInput & keyof LmvzInputAttributes]?: LmvzInput[K] } & { [K in keyof LmvzInput & keyof LmvzInputAttributes as `attr:${K}`]?: LmvzInputAttributes[K] } & { [K in keyof LmvzInput & keyof LmvzInputAttributes as `prop:${K}`]?: LmvzInput[K] } & OneOf<"label", LmvzInput["label"], LmvzInputAttributes["label"]>;
|
|
757
1016
|
"lmvz-menuitem": Omit<LmvzMenuitem, keyof LmvzMenuitemAttributes> & { [K in keyof LmvzMenuitem & keyof LmvzMenuitemAttributes]?: LmvzMenuitem[K] } & { [K in keyof LmvzMenuitem & keyof LmvzMenuitemAttributes as `attr:${K}`]?: LmvzMenuitemAttributes[K] } & { [K in keyof LmvzMenuitem & keyof LmvzMenuitemAttributes as `prop:${K}`]?: LmvzMenuitem[K] };
|
|
758
1017
|
"lmvz-select": Omit<LmvzSelect, keyof LmvzSelectAttributes> & { [K in keyof LmvzSelect & keyof LmvzSelectAttributes]?: LmvzSelect[K] } & { [K in keyof LmvzSelect & keyof LmvzSelectAttributes as `attr:${K}`]?: LmvzSelectAttributes[K] } & { [K in keyof LmvzSelect & keyof LmvzSelectAttributes as `prop:${K}`]?: LmvzSelect[K] } & OneOf<"label", LmvzSelect["label"], LmvzSelectAttributes["label"]>;
|
|
1018
|
+
"lmvz-toggle": Omit<LmvzToggle, keyof LmvzToggleAttributes> & { [K in keyof LmvzToggle & keyof LmvzToggleAttributes]?: LmvzToggle[K] } & { [K in keyof LmvzToggle & keyof LmvzToggleAttributes as `attr:${K}`]?: LmvzToggleAttributes[K] } & { [K in keyof LmvzToggle & keyof LmvzToggleAttributes as `prop:${K}`]?: LmvzToggle[K] } & OneOf<"label", LmvzToggle["label"], LmvzToggleAttributes["label"]>;
|
|
759
1019
|
}
|
|
760
1020
|
}
|
|
761
1021
|
|
|
@@ -774,6 +1034,11 @@ export declare interface LmvzCardCustomEvent<T> extends CustomEvent<T> {
|
|
|
774
1034
|
target: HTMLLmvzCardElement;
|
|
775
1035
|
}
|
|
776
1036
|
|
|
1037
|
+
export declare interface LmvzCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
1038
|
+
detail: T;
|
|
1039
|
+
target: HTMLLmvzCheckboxElement;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
777
1042
|
declare namespace LmvzDS {
|
|
778
1043
|
type Variant = (typeof variants)[number];
|
|
779
1044
|
type Size = (typeof sizes)[number];
|
|
@@ -794,6 +1059,11 @@ export declare interface LmvzSelectCustomEvent<T> extends CustomEvent<T> {
|
|
|
794
1059
|
target: HTMLLmvzSelectElement;
|
|
795
1060
|
}
|
|
796
1061
|
|
|
1062
|
+
export declare interface LmvzToggleCustomEvent<T> extends CustomEvent<T> {
|
|
1063
|
+
detail: T;
|
|
1064
|
+
target: HTMLLmvzToggleElement;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
797
1067
|
declare const scaleValues: readonly ["small", "default", "large"];
|
|
798
1068
|
|
|
799
1069
|
declare const sizes: readonly ["xs", "sm", "md", "lg"];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { IconPropsFallback, IconPropsForSet, IconPropsForSetWithoutFallback, KnownIconSetId } from '@lmvz-ds/lib-icon-api';
|
|
2
2
|
import type { SVGString } from '@lmvz-ds/lib-ts/validation/SVGString.d.ts';
|
|
3
3
|
export type IconData = SVGString;
|
|
4
|
-
export declare const emptyDefaultSvg: () => import("@lmvz-ds/lib-ts/validation/SVGString.js").SVGString;
|
|
5
4
|
export declare function resolveIconSvg<I extends KnownIconSetId>(options: IconPropsForSet<I>): Promise<IconData>;
|
|
6
5
|
export declare function resolveIconSvg(options: IconPropsFallback): Promise<IconData>;
|
|
7
6
|
export declare function typedIconFromSet<S extends string>(iconset: S, icon: IconPropsForSetWithoutFallback<S>['icon']): IconPropsForSetWithoutFallback<S>;
|