@reliability-design/web 1.3.0 → 1.3.1
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/components/rel-alert/rel-alert.ts +8 -1
- package/dist/components/rel-badge/rel-badge.ts +23 -6
- package/dist/components/rel-button/rel-button.ts +35 -0
- package/dist/components/rel-date-picker/rel-date-picker.ts +116 -14
- package/dist/components/rel-tab/rel-tab.ts +10 -4
- package/dist/components/rel-textfield/rel-textfield.ts +637 -397
- package/dist/components/rel-topbar/rel-topbar-actions.ts +4 -0
- package/dist/components/rel-topbar/rel-topbar-brand.ts +4 -0
- package/dist/components/rel-topbar/rel-topbar-dropdown-item.ts +4 -0
- package/dist/components/rel-topbar/rel-topbar-dropdown.ts +4 -0
- package/dist/components/rel-topbar/rel-topbar-item.ts +4 -0
- package/dist/components/rel-topbar/rel-topbar-mobile-panel.ts +4 -0
- package/dist/components/rel-topbar/rel-topbar-profile.ts +3 -0
- package/dist/components/rel-topbar/rel-topbar-utilities.ts +4 -0
- package/dist/components/rel-topbar/rel-topbar.ts +6 -0
- package/dist/index.d.mts +76 -1
- package/dist/index.d.ts +76 -1
- package/dist/index.js +482 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +483 -55
- package/dist/index.mjs.map +1 -1
- package/dist/styles/vars.css +17 -0
- package/dist/{vars-I2PC74XD.css → vars-F54UGCHM.css} +17 -0
- package/package.json +1 -1
|
@@ -2,6 +2,10 @@ import { LitElement, html, css } from "lit";
|
|
|
2
2
|
import { customElement } from "lit/decorators.js";
|
|
3
3
|
import "../../styles/vars-v2.css";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Part of the deprecated rel-topbar family. Use plain
|
|
7
|
+
* `rel-button` elements inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
8
|
+
*/
|
|
5
9
|
@customElement("rel-topbar-actions")
|
|
6
10
|
export class RelTopbarActions extends LitElement {
|
|
7
11
|
static styles = css`
|
|
@@ -2,6 +2,10 @@ import { LitElement, html, css } from "lit";
|
|
|
2
2
|
import { customElement, property } from "lit/decorators.js";
|
|
3
3
|
import "../../styles/vars-v2.css";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Part of the deprecated rel-topbar family. Use a plain
|
|
7
|
+
* `<a>`/logo markup inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
8
|
+
*/
|
|
5
9
|
@customElement("rel-topbar-brand")
|
|
6
10
|
export class RelTopbarBrand extends LitElement {
|
|
7
11
|
@property({ type: String }) src: string = "";
|
|
@@ -2,6 +2,10 @@ import { LitElement, html, css } from "lit";
|
|
|
2
2
|
import { customElement, property } from "lit/decorators.js";
|
|
3
3
|
import "../../styles/vars-v2.css";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Part of the deprecated rel-topbar family. Use `rel-menu`'s
|
|
7
|
+
* item slots or `rel-popover` content in the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
8
|
+
*/
|
|
5
9
|
@customElement("rel-topbar-dropdown-item")
|
|
6
10
|
export class RelTopbarDropdownItem extends LitElement {
|
|
7
11
|
@property({ type: String }) label: string = "";
|
|
@@ -2,6 +2,10 @@ import { LitElement, html, css } from "lit";
|
|
|
2
2
|
import { customElement } from "lit/decorators.js";
|
|
3
3
|
import "../../styles/vars-v2.css";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Part of the deprecated rel-topbar family. Use `rel-menu` or
|
|
7
|
+
* `rel-popover` for nav dropdowns in the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
8
|
+
*/
|
|
5
9
|
@customElement("rel-topbar-dropdown")
|
|
6
10
|
export class RelTopbarDropdown extends LitElement {
|
|
7
11
|
static styles = css`
|
|
@@ -8,6 +8,10 @@ import "@reliability-design/icons/rel-icon";
|
|
|
8
8
|
/**
|
|
9
9
|
* `rel-topbar-item` — A navigation item within rel-topbar.
|
|
10
10
|
*
|
|
11
|
+
* @deprecated Part of the deprecated rel-topbar family. Use the "App
|
|
12
|
+
* Topbar" recipe at /docs/recipes/app-topbar, which composes nav links and
|
|
13
|
+
* `rel-menu`/`rel-popover` dropdowns directly instead of a dedicated item component.
|
|
14
|
+
*
|
|
11
15
|
* Renders as an `<a>` when `href` is supplied, otherwise a `<button>`.
|
|
12
16
|
*
|
|
13
17
|
* Slots:
|
|
@@ -2,6 +2,10 @@ import { LitElement, html, css } from "lit";
|
|
|
2
2
|
import { customElement } from "lit/decorators.js";
|
|
3
3
|
import "../../styles/vars-v2.css";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Part of the deprecated rel-topbar family. Use `rel-drawer`
|
|
7
|
+
* for the mobile nav panel in the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
8
|
+
*/
|
|
5
9
|
@customElement("rel-topbar-mobile-panel")
|
|
6
10
|
export class RelTopbarMobilePanel extends LitElement {
|
|
7
11
|
static styles = css`
|
|
@@ -9,6 +9,9 @@ export type TopbarRewardTier = "gold" | "silver" | "platinum" | "bronze" | "regu
|
|
|
9
9
|
/**
|
|
10
10
|
* `rel-topbar-profile` — Profile / user tile for the topbar right region.
|
|
11
11
|
*
|
|
12
|
+
* @deprecated Part of the deprecated rel-topbar family. Compose `rel-avatar`
|
|
13
|
+
* directly inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
14
|
+
*
|
|
12
15
|
* type="avatar" Customer avatar with initials circle + optional name/subtitle.
|
|
13
16
|
* type="carrier" Carrier reward tile with reward-tier badge + name/subtitle.
|
|
14
17
|
*/
|
|
@@ -2,6 +2,10 @@ import { LitElement, html, css } from "lit";
|
|
|
2
2
|
import { customElement } from "lit/decorators.js";
|
|
3
3
|
import "../../styles/vars-v2.css";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Part of the deprecated rel-topbar family. Use plain
|
|
7
|
+
* `rel-button` (icon variant) elements inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
8
|
+
*/
|
|
5
9
|
@customElement("rel-topbar-utilities")
|
|
6
10
|
export class RelTopbarUtilities extends LitElement {
|
|
7
11
|
static styles = css`
|
|
@@ -15,6 +15,12 @@ export type TopbarForceLayout = "auto" | "desktop" | "tablet" | "mobile";
|
|
|
15
15
|
/**
|
|
16
16
|
* `rel-topbar` — Application-level top navigation / header shell.
|
|
17
17
|
*
|
|
18
|
+
* @deprecated This component's fixed slot structure, hardcoded breakpoint,
|
|
19
|
+
* and built-in overflow logic are too rigid for most real layouts. Use the
|
|
20
|
+
* "App Topbar" recipe at /docs/recipes/app-topbar instead, composed from
|
|
21
|
+
* rel-menu/rel-popover, rel-drawer, and rel-button. Still supported, but
|
|
22
|
+
* will be removed in a future major version.
|
|
23
|
+
*
|
|
18
24
|
* Slots:
|
|
19
25
|
* brand — Logo / wordmark region (left)
|
|
20
26
|
* (default) — Primary nav items (rel-topbar-item elements)
|
package/dist/index.d.mts
CHANGED
|
@@ -83,6 +83,10 @@ declare class RelButton extends LitElement {
|
|
|
83
83
|
border: "corner-radius" | "small-corner-radius" | "no-corner-radius";
|
|
84
84
|
disabled: boolean;
|
|
85
85
|
ariaLabel: string | null;
|
|
86
|
+
/** Numeric/overflow text shown in a corner badge (e.g. "3", "999+"). Ignored when badgeDot is set. */
|
|
87
|
+
badge: string;
|
|
88
|
+
/** Shows a small corner dot instead of a numbered badge — takes precedence over `badge`. */
|
|
89
|
+
badgeDot: boolean;
|
|
86
90
|
static styles: lit.CSSResult;
|
|
87
91
|
connectedCallback(): void;
|
|
88
92
|
disconnectedCallback(): void;
|
|
@@ -210,14 +214,28 @@ declare class RelDatePicker extends LitElement {
|
|
|
210
214
|
label: string | null;
|
|
211
215
|
disabled: boolean;
|
|
212
216
|
required: boolean;
|
|
217
|
+
readonly: boolean;
|
|
218
|
+
minDate: string | null;
|
|
219
|
+
maxDate: string | null;
|
|
220
|
+
/** @deprecated use minDate */
|
|
213
221
|
min: string | null;
|
|
222
|
+
/** @deprecated use maxDate */
|
|
214
223
|
max: string | null;
|
|
215
224
|
weekStart: "sun" | "mon";
|
|
216
225
|
locale: string;
|
|
217
226
|
open: boolean;
|
|
218
227
|
closeOnSelect: boolean;
|
|
219
228
|
clearable: boolean;
|
|
229
|
+
error: boolean;
|
|
230
|
+
errorMessage?: string;
|
|
231
|
+
helperText?: string;
|
|
232
|
+
name?: string;
|
|
233
|
+
size: "small" | "medium" | "large";
|
|
234
|
+
variant: "outlined";
|
|
235
|
+
fullWidth: boolean;
|
|
220
236
|
isDateDisabled?: (date: Date) => boolean;
|
|
237
|
+
private get minBound();
|
|
238
|
+
private get maxBound();
|
|
221
239
|
private viewYear;
|
|
222
240
|
private viewMonth;
|
|
223
241
|
private focusedDate;
|
|
@@ -572,6 +590,10 @@ declare class RelNavbar extends LitElement {
|
|
|
572
590
|
render(): lit_html.TemplateResult<1>;
|
|
573
591
|
}
|
|
574
592
|
|
|
593
|
+
/**
|
|
594
|
+
* @deprecated Part of the deprecated rel-topbar family. Use a plain
|
|
595
|
+
* `<a>`/logo markup inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
596
|
+
*/
|
|
575
597
|
declare class RelTopbarBrand extends LitElement {
|
|
576
598
|
src: string;
|
|
577
599
|
href: string;
|
|
@@ -585,6 +607,10 @@ declare global {
|
|
|
585
607
|
}
|
|
586
608
|
}
|
|
587
609
|
|
|
610
|
+
/**
|
|
611
|
+
* @deprecated Part of the deprecated rel-topbar family. Use plain
|
|
612
|
+
* `rel-button` elements inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
613
|
+
*/
|
|
588
614
|
declare class RelTopbarActions extends LitElement {
|
|
589
615
|
static styles: lit.CSSResult;
|
|
590
616
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -595,6 +621,10 @@ declare global {
|
|
|
595
621
|
}
|
|
596
622
|
}
|
|
597
623
|
|
|
624
|
+
/**
|
|
625
|
+
* @deprecated Part of the deprecated rel-topbar family. Use plain
|
|
626
|
+
* `rel-button` (icon variant) elements inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
627
|
+
*/
|
|
598
628
|
declare class RelTopbarUtilities extends LitElement {
|
|
599
629
|
static styles: lit.CSSResult;
|
|
600
630
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -605,6 +635,10 @@ declare global {
|
|
|
605
635
|
}
|
|
606
636
|
}
|
|
607
637
|
|
|
638
|
+
/**
|
|
639
|
+
* @deprecated Part of the deprecated rel-topbar family. Use `rel-drawer`
|
|
640
|
+
* for the mobile nav panel in the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
641
|
+
*/
|
|
608
642
|
declare class RelTopbarMobilePanel extends LitElement {
|
|
609
643
|
static styles: lit.CSSResult;
|
|
610
644
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -615,6 +649,10 @@ declare global {
|
|
|
615
649
|
}
|
|
616
650
|
}
|
|
617
651
|
|
|
652
|
+
/**
|
|
653
|
+
* @deprecated Part of the deprecated rel-topbar family. Use `rel-menu` or
|
|
654
|
+
* `rel-popover` for nav dropdowns in the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
655
|
+
*/
|
|
618
656
|
declare class RelTopbarDropdown extends LitElement {
|
|
619
657
|
static styles: lit.CSSResult;
|
|
620
658
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -625,6 +663,10 @@ declare global {
|
|
|
625
663
|
}
|
|
626
664
|
}
|
|
627
665
|
|
|
666
|
+
/**
|
|
667
|
+
* @deprecated Part of the deprecated rel-topbar family. Use `rel-menu`'s
|
|
668
|
+
* item slots or `rel-popover` content in the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
669
|
+
*/
|
|
628
670
|
declare class RelTopbarDropdownItem extends LitElement {
|
|
629
671
|
label: string;
|
|
630
672
|
href: string;
|
|
@@ -644,6 +686,12 @@ type TopbarForceLayout = "auto" | "desktop" | "tablet" | "mobile";
|
|
|
644
686
|
/**
|
|
645
687
|
* `rel-topbar` — Application-level top navigation / header shell.
|
|
646
688
|
*
|
|
689
|
+
* @deprecated This component's fixed slot structure, hardcoded breakpoint,
|
|
690
|
+
* and built-in overflow logic are too rigid for most real layouts. Use the
|
|
691
|
+
* "App Topbar" recipe at /docs/recipes/app-topbar instead, composed from
|
|
692
|
+
* rel-menu/rel-popover, rel-drawer, and rel-button. Still supported, but
|
|
693
|
+
* will be removed in a future major version.
|
|
694
|
+
*
|
|
647
695
|
* Slots:
|
|
648
696
|
* brand — Logo / wordmark region (left)
|
|
649
697
|
* (default) — Primary nav items (rel-topbar-item elements)
|
|
@@ -693,6 +741,10 @@ declare class RelTopbar extends LitElement {
|
|
|
693
741
|
/**
|
|
694
742
|
* `rel-topbar-item` — A navigation item within rel-topbar.
|
|
695
743
|
*
|
|
744
|
+
* @deprecated Part of the deprecated rel-topbar family. Use the "App
|
|
745
|
+
* Topbar" recipe at /docs/recipes/app-topbar, which composes nav links and
|
|
746
|
+
* `rel-menu`/`rel-popover` dropdowns directly instead of a dedicated item component.
|
|
747
|
+
*
|
|
696
748
|
* Renders as an `<a>` when `href` is supplied, otherwise a `<button>`.
|
|
697
749
|
*
|
|
698
750
|
* Slots:
|
|
@@ -739,6 +791,9 @@ type TopbarRewardTier = "gold" | "silver" | "platinum" | "bronze" | "regular";
|
|
|
739
791
|
/**
|
|
740
792
|
* `rel-topbar-profile` — Profile / user tile for the topbar right region.
|
|
741
793
|
*
|
|
794
|
+
* @deprecated Part of the deprecated rel-topbar family. Compose `rel-avatar`
|
|
795
|
+
* directly inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
796
|
+
*
|
|
742
797
|
* type="avatar" Customer avatar with initials circle + optional name/subtitle.
|
|
743
798
|
* type="carrier" Carrier reward tile with reward-tier badge + name/subtitle.
|
|
744
799
|
*/
|
|
@@ -1237,12 +1292,15 @@ declare class RelSwitch extends LitElement {
|
|
|
1237
1292
|
interface TabItem {
|
|
1238
1293
|
label: string;
|
|
1239
1294
|
badge?: number;
|
|
1295
|
+
badgeDot?: boolean;
|
|
1240
1296
|
disabled?: boolean;
|
|
1241
1297
|
}
|
|
1242
1298
|
declare class RelTabItem extends LitElement {
|
|
1243
1299
|
label: string;
|
|
1244
1300
|
value: string;
|
|
1245
1301
|
badge: number;
|
|
1302
|
+
/** Shows a small dot instead of a numbered badge — takes precedence over `badge`. */
|
|
1303
|
+
badgeDot: boolean;
|
|
1246
1304
|
disabled: boolean;
|
|
1247
1305
|
render(): lit_html.TemplateResult<1>;
|
|
1248
1306
|
}
|
|
@@ -1260,7 +1318,7 @@ declare class RelTab extends LitElement {
|
|
|
1260
1318
|
|
|
1261
1319
|
type TextFieldState = "default" | "error" | "disabled";
|
|
1262
1320
|
type TextFieldSize = "small" | "medium" | "large";
|
|
1263
|
-
type TextFieldVariant = "default" | "underline";
|
|
1321
|
+
type TextFieldVariant = "default" | "underline" | "legend";
|
|
1264
1322
|
declare class RelTextfield extends LitElement {
|
|
1265
1323
|
label?: string;
|
|
1266
1324
|
placeholder: string;
|
|
@@ -1273,9 +1331,26 @@ declare class RelTextfield extends LitElement {
|
|
|
1273
1331
|
size: TextFieldSize;
|
|
1274
1332
|
floatingLabel: boolean;
|
|
1275
1333
|
variant: TextFieldVariant;
|
|
1334
|
+
disabled: boolean;
|
|
1335
|
+
required: boolean;
|
|
1336
|
+
multiline: boolean;
|
|
1337
|
+
rows: number;
|
|
1338
|
+
prefixIcon?: string;
|
|
1339
|
+
prefixIconAriaLabel?: string;
|
|
1340
|
+
error: boolean;
|
|
1341
|
+
errorMessage?: string;
|
|
1342
|
+
helperText?: string;
|
|
1343
|
+
readonly: boolean;
|
|
1344
|
+
maxLength?: number;
|
|
1345
|
+
name?: string;
|
|
1346
|
+
fullWidth: boolean;
|
|
1276
1347
|
private internalState;
|
|
1277
1348
|
private _wasError;
|
|
1278
1349
|
private uniqueId;
|
|
1350
|
+
private get isDisabled();
|
|
1351
|
+
private get isError();
|
|
1352
|
+
private get leadingIcon();
|
|
1353
|
+
private get helper();
|
|
1279
1354
|
static styles: lit.CSSResult;
|
|
1280
1355
|
connectedCallback(): void;
|
|
1281
1356
|
private handleFocus;
|
package/dist/index.d.ts
CHANGED
|
@@ -83,6 +83,10 @@ declare class RelButton extends LitElement {
|
|
|
83
83
|
border: "corner-radius" | "small-corner-radius" | "no-corner-radius";
|
|
84
84
|
disabled: boolean;
|
|
85
85
|
ariaLabel: string | null;
|
|
86
|
+
/** Numeric/overflow text shown in a corner badge (e.g. "3", "999+"). Ignored when badgeDot is set. */
|
|
87
|
+
badge: string;
|
|
88
|
+
/** Shows a small corner dot instead of a numbered badge — takes precedence over `badge`. */
|
|
89
|
+
badgeDot: boolean;
|
|
86
90
|
static styles: lit.CSSResult;
|
|
87
91
|
connectedCallback(): void;
|
|
88
92
|
disconnectedCallback(): void;
|
|
@@ -210,14 +214,28 @@ declare class RelDatePicker extends LitElement {
|
|
|
210
214
|
label: string | null;
|
|
211
215
|
disabled: boolean;
|
|
212
216
|
required: boolean;
|
|
217
|
+
readonly: boolean;
|
|
218
|
+
minDate: string | null;
|
|
219
|
+
maxDate: string | null;
|
|
220
|
+
/** @deprecated use minDate */
|
|
213
221
|
min: string | null;
|
|
222
|
+
/** @deprecated use maxDate */
|
|
214
223
|
max: string | null;
|
|
215
224
|
weekStart: "sun" | "mon";
|
|
216
225
|
locale: string;
|
|
217
226
|
open: boolean;
|
|
218
227
|
closeOnSelect: boolean;
|
|
219
228
|
clearable: boolean;
|
|
229
|
+
error: boolean;
|
|
230
|
+
errorMessage?: string;
|
|
231
|
+
helperText?: string;
|
|
232
|
+
name?: string;
|
|
233
|
+
size: "small" | "medium" | "large";
|
|
234
|
+
variant: "outlined";
|
|
235
|
+
fullWidth: boolean;
|
|
220
236
|
isDateDisabled?: (date: Date) => boolean;
|
|
237
|
+
private get minBound();
|
|
238
|
+
private get maxBound();
|
|
221
239
|
private viewYear;
|
|
222
240
|
private viewMonth;
|
|
223
241
|
private focusedDate;
|
|
@@ -572,6 +590,10 @@ declare class RelNavbar extends LitElement {
|
|
|
572
590
|
render(): lit_html.TemplateResult<1>;
|
|
573
591
|
}
|
|
574
592
|
|
|
593
|
+
/**
|
|
594
|
+
* @deprecated Part of the deprecated rel-topbar family. Use a plain
|
|
595
|
+
* `<a>`/logo markup inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
596
|
+
*/
|
|
575
597
|
declare class RelTopbarBrand extends LitElement {
|
|
576
598
|
src: string;
|
|
577
599
|
href: string;
|
|
@@ -585,6 +607,10 @@ declare global {
|
|
|
585
607
|
}
|
|
586
608
|
}
|
|
587
609
|
|
|
610
|
+
/**
|
|
611
|
+
* @deprecated Part of the deprecated rel-topbar family. Use plain
|
|
612
|
+
* `rel-button` elements inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
613
|
+
*/
|
|
588
614
|
declare class RelTopbarActions extends LitElement {
|
|
589
615
|
static styles: lit.CSSResult;
|
|
590
616
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -595,6 +621,10 @@ declare global {
|
|
|
595
621
|
}
|
|
596
622
|
}
|
|
597
623
|
|
|
624
|
+
/**
|
|
625
|
+
* @deprecated Part of the deprecated rel-topbar family. Use plain
|
|
626
|
+
* `rel-button` (icon variant) elements inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
627
|
+
*/
|
|
598
628
|
declare class RelTopbarUtilities extends LitElement {
|
|
599
629
|
static styles: lit.CSSResult;
|
|
600
630
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -605,6 +635,10 @@ declare global {
|
|
|
605
635
|
}
|
|
606
636
|
}
|
|
607
637
|
|
|
638
|
+
/**
|
|
639
|
+
* @deprecated Part of the deprecated rel-topbar family. Use `rel-drawer`
|
|
640
|
+
* for the mobile nav panel in the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
641
|
+
*/
|
|
608
642
|
declare class RelTopbarMobilePanel extends LitElement {
|
|
609
643
|
static styles: lit.CSSResult;
|
|
610
644
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -615,6 +649,10 @@ declare global {
|
|
|
615
649
|
}
|
|
616
650
|
}
|
|
617
651
|
|
|
652
|
+
/**
|
|
653
|
+
* @deprecated Part of the deprecated rel-topbar family. Use `rel-menu` or
|
|
654
|
+
* `rel-popover` for nav dropdowns in the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
655
|
+
*/
|
|
618
656
|
declare class RelTopbarDropdown extends LitElement {
|
|
619
657
|
static styles: lit.CSSResult;
|
|
620
658
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -625,6 +663,10 @@ declare global {
|
|
|
625
663
|
}
|
|
626
664
|
}
|
|
627
665
|
|
|
666
|
+
/**
|
|
667
|
+
* @deprecated Part of the deprecated rel-topbar family. Use `rel-menu`'s
|
|
668
|
+
* item slots or `rel-popover` content in the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
669
|
+
*/
|
|
628
670
|
declare class RelTopbarDropdownItem extends LitElement {
|
|
629
671
|
label: string;
|
|
630
672
|
href: string;
|
|
@@ -644,6 +686,12 @@ type TopbarForceLayout = "auto" | "desktop" | "tablet" | "mobile";
|
|
|
644
686
|
/**
|
|
645
687
|
* `rel-topbar` — Application-level top navigation / header shell.
|
|
646
688
|
*
|
|
689
|
+
* @deprecated This component's fixed slot structure, hardcoded breakpoint,
|
|
690
|
+
* and built-in overflow logic are too rigid for most real layouts. Use the
|
|
691
|
+
* "App Topbar" recipe at /docs/recipes/app-topbar instead, composed from
|
|
692
|
+
* rel-menu/rel-popover, rel-drawer, and rel-button. Still supported, but
|
|
693
|
+
* will be removed in a future major version.
|
|
694
|
+
*
|
|
647
695
|
* Slots:
|
|
648
696
|
* brand — Logo / wordmark region (left)
|
|
649
697
|
* (default) — Primary nav items (rel-topbar-item elements)
|
|
@@ -693,6 +741,10 @@ declare class RelTopbar extends LitElement {
|
|
|
693
741
|
/**
|
|
694
742
|
* `rel-topbar-item` — A navigation item within rel-topbar.
|
|
695
743
|
*
|
|
744
|
+
* @deprecated Part of the deprecated rel-topbar family. Use the "App
|
|
745
|
+
* Topbar" recipe at /docs/recipes/app-topbar, which composes nav links and
|
|
746
|
+
* `rel-menu`/`rel-popover` dropdowns directly instead of a dedicated item component.
|
|
747
|
+
*
|
|
696
748
|
* Renders as an `<a>` when `href` is supplied, otherwise a `<button>`.
|
|
697
749
|
*
|
|
698
750
|
* Slots:
|
|
@@ -739,6 +791,9 @@ type TopbarRewardTier = "gold" | "silver" | "platinum" | "bronze" | "regular";
|
|
|
739
791
|
/**
|
|
740
792
|
* `rel-topbar-profile` — Profile / user tile for the topbar right region.
|
|
741
793
|
*
|
|
794
|
+
* @deprecated Part of the deprecated rel-topbar family. Compose `rel-avatar`
|
|
795
|
+
* directly inside the "App Topbar" recipe at /docs/recipes/app-topbar.
|
|
796
|
+
*
|
|
742
797
|
* type="avatar" Customer avatar with initials circle + optional name/subtitle.
|
|
743
798
|
* type="carrier" Carrier reward tile with reward-tier badge + name/subtitle.
|
|
744
799
|
*/
|
|
@@ -1237,12 +1292,15 @@ declare class RelSwitch extends LitElement {
|
|
|
1237
1292
|
interface TabItem {
|
|
1238
1293
|
label: string;
|
|
1239
1294
|
badge?: number;
|
|
1295
|
+
badgeDot?: boolean;
|
|
1240
1296
|
disabled?: boolean;
|
|
1241
1297
|
}
|
|
1242
1298
|
declare class RelTabItem extends LitElement {
|
|
1243
1299
|
label: string;
|
|
1244
1300
|
value: string;
|
|
1245
1301
|
badge: number;
|
|
1302
|
+
/** Shows a small dot instead of a numbered badge — takes precedence over `badge`. */
|
|
1303
|
+
badgeDot: boolean;
|
|
1246
1304
|
disabled: boolean;
|
|
1247
1305
|
render(): lit_html.TemplateResult<1>;
|
|
1248
1306
|
}
|
|
@@ -1260,7 +1318,7 @@ declare class RelTab extends LitElement {
|
|
|
1260
1318
|
|
|
1261
1319
|
type TextFieldState = "default" | "error" | "disabled";
|
|
1262
1320
|
type TextFieldSize = "small" | "medium" | "large";
|
|
1263
|
-
type TextFieldVariant = "default" | "underline";
|
|
1321
|
+
type TextFieldVariant = "default" | "underline" | "legend";
|
|
1264
1322
|
declare class RelTextfield extends LitElement {
|
|
1265
1323
|
label?: string;
|
|
1266
1324
|
placeholder: string;
|
|
@@ -1273,9 +1331,26 @@ declare class RelTextfield extends LitElement {
|
|
|
1273
1331
|
size: TextFieldSize;
|
|
1274
1332
|
floatingLabel: boolean;
|
|
1275
1333
|
variant: TextFieldVariant;
|
|
1334
|
+
disabled: boolean;
|
|
1335
|
+
required: boolean;
|
|
1336
|
+
multiline: boolean;
|
|
1337
|
+
rows: number;
|
|
1338
|
+
prefixIcon?: string;
|
|
1339
|
+
prefixIconAriaLabel?: string;
|
|
1340
|
+
error: boolean;
|
|
1341
|
+
errorMessage?: string;
|
|
1342
|
+
helperText?: string;
|
|
1343
|
+
readonly: boolean;
|
|
1344
|
+
maxLength?: number;
|
|
1345
|
+
name?: string;
|
|
1346
|
+
fullWidth: boolean;
|
|
1276
1347
|
private internalState;
|
|
1277
1348
|
private _wasError;
|
|
1278
1349
|
private uniqueId;
|
|
1350
|
+
private get isDisabled();
|
|
1351
|
+
private get isError();
|
|
1352
|
+
private get leadingIcon();
|
|
1353
|
+
private get helper();
|
|
1279
1354
|
static styles: lit.CSSResult;
|
|
1280
1355
|
connectedCallback(): void;
|
|
1281
1356
|
private handleFocus;
|