@redvars/peacock 3.3.2 → 3.3.3
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/dist/custom-elements.json +423 -0
- package/dist/index.js +1 -1
- package/dist/peacock-loader.js +4 -1
- package/dist/peacock-loader.js.map +1 -1
- package/dist/{snackbar-74YCdMPL.js → radio-b70_Ie9n.js} +545 -92
- package/dist/radio-b70_Ie9n.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/radio/index.d.ts +1 -0
- package/dist/src/radio/radio.d.ts +73 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/readme.md +2 -2
- package/src/index.ts +1 -0
- package/src/peacock-loader.ts +4 -0
- package/src/radio/index.ts +1 -0
- package/src/radio/radio.scss +181 -0
- package/src/radio/radio.ts +362 -0
- package/src/tabs/tab.ts +1 -1
- package/dist/snackbar-74YCdMPL.js.map +0 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Radio } from './radio.js';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class Radio extends LitElement {
|
|
3
|
+
private static readonly DIRECTION_NEXT;
|
|
4
|
+
private static readonly DIRECTION_PREVIOUS;
|
|
5
|
+
static styles: import("lit").CSSResultGroup[];
|
|
6
|
+
/**
|
|
7
|
+
* The input field name for grouping radios.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* The submitted value when this radio is selected.
|
|
12
|
+
*/
|
|
13
|
+
value: string;
|
|
14
|
+
/**
|
|
15
|
+
* The radio label.
|
|
16
|
+
*/
|
|
17
|
+
label: string;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the radio is selected.
|
|
20
|
+
*/
|
|
21
|
+
checked: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* If true, required icon is shown. Defaults to `false`.
|
|
24
|
+
*/
|
|
25
|
+
required: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* If true, the radio is readonly. Defaults to `false`.
|
|
28
|
+
*/
|
|
29
|
+
readonly: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If true, the user cannot interact with the radio. Defaults to `false`.
|
|
32
|
+
*/
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Configuration object for aria attributes.
|
|
36
|
+
*/
|
|
37
|
+
configAria: Record<string, string>;
|
|
38
|
+
private hasFocus;
|
|
39
|
+
private isActive;
|
|
40
|
+
private slotHasContent;
|
|
41
|
+
private isGroupFocusTarget;
|
|
42
|
+
private containerElement?;
|
|
43
|
+
private nativeElement?;
|
|
44
|
+
private tabindex?;
|
|
45
|
+
connectedCallback(): void;
|
|
46
|
+
disconnectedCallback(): void;
|
|
47
|
+
firstUpdated(): void;
|
|
48
|
+
updated(changedProps: Map<string, unknown>): void;
|
|
49
|
+
private handleInitialAttributes;
|
|
50
|
+
private windowMouseUp;
|
|
51
|
+
private windowKeyUp;
|
|
52
|
+
private mouseDownHandler;
|
|
53
|
+
private keyDownHandler;
|
|
54
|
+
private clickHandler;
|
|
55
|
+
private blurHandler;
|
|
56
|
+
private focusHandler;
|
|
57
|
+
private selectRadio;
|
|
58
|
+
private dispatchChange;
|
|
59
|
+
private uncheckSiblings;
|
|
60
|
+
private getGroupRadios;
|
|
61
|
+
private isRadioEnabled;
|
|
62
|
+
private updateGroupFocusTarget;
|
|
63
|
+
private navigateGroup;
|
|
64
|
+
/**
|
|
65
|
+
* Sets focus on the radio.
|
|
66
|
+
*/
|
|
67
|
+
focus(): void;
|
|
68
|
+
/**
|
|
69
|
+
* Removes focus from the radio.
|
|
70
|
+
*/
|
|
71
|
+
blur(): void;
|
|
72
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
73
|
+
}
|