@warp-ds/elements 2.4.0-next.2 → 2.4.0-next.4
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 +178 -3297
- package/dist/index.d.ts +39 -771
- package/dist/packages/checkbox/checkbox-group.js +11 -3
- package/dist/packages/checkbox/checkbox.js +201 -2572
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/combobox/combobox.test.d.ts +2 -0
- package/dist/packages/combobox/combobox.test.js +21 -0
- package/dist/packages/combobox/index.d.ts +2 -4
- package/dist/packages/combobox/index.js +9 -8
- package/dist/packages/combobox/index.js.map +2 -2
- package/dist/packages/deadtoggle/index.js +51 -2547
- package/dist/packages/pageindicator/index.js +44 -28
- package/dist/packages/pagination/index.js +183 -2484
- package/dist/packages/radio/radio-group-styles.js +3 -3
- package/dist/packages/radio/radio-group.js +313 -2619
- package/dist/packages/radio/radio-styles.js +0 -1
- package/dist/packages/radio/radio.js +109 -2556
- package/dist/packages/radio/radio.stories.js +47 -3688
- package/dist/packages/slider/slider-thumb.js +400 -2647
- package/dist/packages/slider/slider.js +272 -2603
- package/dist/packages/stepindicator/index.js +189 -2459
- package/dist/packages/tabs/index.d.ts +0 -1
- package/dist/packages/tabs/index.js +1 -0
- package/dist/packages/tabs/tab-panel.d.ts +3 -3
- package/dist/packages/tabs/tab-panel.js +9 -13
- package/dist/packages/tabs/tab.d.ts +1 -2
- package/dist/packages/tabs/tab.js +80 -2453
- package/dist/packages/tabs/tabs.d.ts +2 -4
- package/dist/packages/tabs/tabs.js +263 -2444
- package/dist/packages/tabs/tabs.react.stories.js +26 -27
- package/dist/packages/tabs/tabs.stories.js +58 -58
- package/dist/packages/textarea/textarea.js +210 -2465
- package/dist/packages/textfield/index.d.ts +1 -0
- package/dist/packages/textfield/index.js +18 -17
- package/dist/packages/textfield/index.js.map +2 -2
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.test.js +9 -0
- package/dist/web-types.json +42 -830
- package/package.json +1 -37
- package/dist/packages/checkbox/checkbox-group.js.map +0 -7
- package/dist/packages/checkbox/checkbox.js.map +0 -7
- package/dist/packages/deadtoggle/index.js.map +0 -7
- package/dist/packages/pageindicator/index.js.map +0 -7
- package/dist/packages/pagination/index.js.map +0 -7
- package/dist/packages/radio/radio-group-styles.js.map +0 -7
- package/dist/packages/radio/radio-group.js.map +0 -7
- package/dist/packages/radio/radio-styles.js.map +0 -7
- package/dist/packages/radio/radio.js.map +0 -7
- package/dist/packages/radio/radio.stories.js.map +0 -7
- package/dist/packages/slider/slider-thumb.js.map +0 -7
- package/dist/packages/slider/slider.js.map +0 -7
- package/dist/packages/stepindicator/index.js.map +0 -7
- package/dist/packages/tabs/tab.js.map +0 -7
- package/dist/packages/tabs/tabs.js.map +0 -7
- package/dist/packages/textarea/textarea.js.map +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Tab panel component that holds content for individual tabs.
|
|
4
4
|
* Each tab panel should have a name that matches a corresponding tab.
|
|
@@ -7,10 +7,10 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class WarpTabPanel extends LitElement {
|
|
9
9
|
static styles: import("lit").CSSResult[];
|
|
10
|
-
name: string;
|
|
11
10
|
hidden: boolean;
|
|
12
11
|
connectedCallback(): void;
|
|
13
|
-
updated(
|
|
12
|
+
updated(): void;
|
|
13
|
+
private _syncA11yAttributes;
|
|
14
14
|
render(): import("lit").TemplateResult<1>;
|
|
15
15
|
}
|
|
16
16
|
declare global {
|
|
@@ -24,25 +24,21 @@ export class WarpTabPanel extends LitElement {
|
|
|
24
24
|
super.connectedCallback();
|
|
25
25
|
this.setAttribute('tabindex', '-1');
|
|
26
26
|
this.setAttribute('role', 'tabpanel');
|
|
27
|
-
|
|
28
|
-
if (this.name) {
|
|
29
|
-
this.setAttribute('aria-labelledby', `warp-tab-${this.name}`);
|
|
30
|
-
this.setAttribute('id', `warp-tabpanel-${this.name}`);
|
|
31
|
-
}
|
|
27
|
+
this._syncA11yAttributes();
|
|
32
28
|
}
|
|
33
|
-
updated(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
updated() {
|
|
30
|
+
this._syncA11yAttributes();
|
|
31
|
+
}
|
|
32
|
+
_syncA11yAttributes() {
|
|
33
|
+
// Panel identity comes from its own id attribute.
|
|
34
|
+
if (!this.id)
|
|
35
|
+
return;
|
|
36
|
+
this.setAttribute('aria-labelledby', `warp-tab-${this.id}`);
|
|
38
37
|
}
|
|
39
38
|
render() {
|
|
40
39
|
return html `<slot></slot>`;
|
|
41
40
|
}
|
|
42
41
|
}
|
|
43
|
-
__decorate([
|
|
44
|
-
property({ reflect: true })
|
|
45
|
-
], WarpTabPanel.prototype, "name", void 0);
|
|
46
42
|
__decorate([
|
|
47
43
|
property({ type: Boolean, reflect: true })
|
|
48
44
|
], WarpTabPanel.prototype, "hidden", void 0);
|
|
@@ -6,12 +6,11 @@ import { LitElement } from 'lit';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class WarpTab extends LitElement {
|
|
8
8
|
static styles: import("lit").CSSResult[];
|
|
9
|
-
|
|
9
|
+
for: string;
|
|
10
10
|
label: string;
|
|
11
11
|
active: boolean;
|
|
12
12
|
over: boolean;
|
|
13
13
|
tabClass: string;
|
|
14
|
-
private _handleClick;
|
|
15
14
|
private get _classes();
|
|
16
15
|
private get _hasChildren();
|
|
17
16
|
render(): import("lit").TemplateResult<1>;
|