@reliability-design/web 1.1.1 → 1.2.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/dist/components/rel-accordion/rel-accordion.ts +17 -32
- package/dist/components/rel-alert/rel-alert.ts +34 -34
- package/dist/components/rel-avatar/rel-avatar.ts +5 -3
- package/dist/components/rel-badge/rel-badge.ts +2 -1
- package/dist/components/rel-breadcrumb/rel-breadcrumb.ts +6 -6
- package/dist/components/rel-button/rel-button.ts +67 -21
- package/dist/components/rel-calendar/rel-calendar.ts +15 -8
- package/dist/components/rel-card/rel-card.ts +9 -17
- package/dist/components/rel-cardmedia/rel-cardmedia.ts +20 -23
- package/dist/components/rel-carousel/rel-carousel.ts +596 -468
- package/dist/components/rel-checkbox/rel-checkbox.ts +68 -16
- package/dist/components/rel-chip/rel-chip.ts +291 -244
- package/dist/components/rel-container/rel-container.ts +2 -2
- package/dist/components/rel-date-picker/rel-date-picker.ts +23 -19
- package/dist/components/rel-divider/rel-divider.ts +3 -3
- package/dist/components/rel-drawer/rel-drawer-footer.ts +0 -2
- package/dist/components/rel-drawer/rel-drawer.ts +41 -88
- package/dist/components/rel-kbd/rel-kbd.ts +94 -118
- package/dist/components/rel-layout/rel-layout.ts +49 -58
- package/dist/components/rel-menu/rel-menu.ts +359 -359
- package/dist/components/rel-menubar/rel-menubar-menu.css +3 -0
- package/dist/components/rel-menubar/rel-menubar-menu.ts +2 -1
- package/dist/components/rel-menubar/rel-menubar.ts +602 -605
- package/dist/components/rel-otp/rel-otp.ts +22 -25
- package/dist/components/rel-pagination/rel-pagination.ts +101 -57
- package/dist/components/rel-popover/rel-popover-content.ts +6 -5
- package/dist/components/rel-popover/rel-popover.ts +26 -7
- package/dist/components/rel-progress/rel-progress.ts +10 -9
- package/dist/components/rel-radio/rel-radio.ts +228 -172
- package/dist/components/rel-range-picker/rel-range-picker.css +349 -0
- package/dist/components/rel-range-picker/rel-range-picker.ts +1079 -0
- package/dist/components/rel-resizable/rel-resizable-handle.ts +8 -7
- package/dist/components/rel-segmented-button/rel-segmented-button.ts +41 -20
- package/dist/components/rel-select/rel-select.ts +103 -32
- package/dist/components/rel-sheet/rel-sheet.ts +362 -684
- package/dist/components/rel-slider/rel-slider.ts +49 -27
- package/dist/components/rel-snackbar/rel-snackbar.ts +28 -28
- package/dist/components/rel-stepper/rel-stepper.ts +11 -10
- package/dist/components/rel-switch/rel-switch.ts +7 -6
- package/dist/components/rel-tab/rel-tab.ts +15 -29
- package/dist/components/rel-textfield/rel-textfield.ts +144 -35
- package/dist/components/rel-toast/rel-toast.ts +25 -12
- package/dist/components/rel-tooltip/rel-tooltip.ts +123 -123
- package/dist/components/rel-topbar/rel-topbar-actions.ts +1 -0
- package/dist/components/rel-topbar/rel-topbar-brand.ts +1 -0
- package/dist/components/rel-topbar/rel-topbar-dropdown-item.ts +32 -2
- package/dist/components/rel-topbar/rel-topbar-dropdown.ts +1 -1
- package/dist/components/rel-topbar/rel-topbar-item.ts +15 -10
- package/dist/components/rel-topbar/rel-topbar-mobile-panel.ts +1 -0
- package/dist/components/rel-topbar/rel-topbar-profile.ts +30 -56
- package/dist/components/rel-topbar/rel-topbar-utilities.ts +1 -0
- package/dist/components/rel-topbar/rel-topbar.ts +137 -28
- package/dist/index.d.mts +153 -178
- package/dist/index.d.ts +153 -178
- package/dist/index.js +4711 -3875
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4047 -3202
- package/dist/index.mjs.map +1 -1
- package/dist/rel-menubar-menu-BEEQDAXW.css +3 -0
- package/dist/styles/vars-v2.css +525 -0
- package/dist/styles/vars.css +346 -346
- package/dist/{vars-TBB4BMSD.css → vars-I2PC74XD.css} +346 -346
- package/dist/vars-v2-VMGWTFJZ.css +525 -0
- package/package.json +2 -1
|
@@ -1,118 +1,94 @@
|
|
|
1
|
-
import { LitElement, html, css } from "lit";
|
|
2
|
-
import { customElement, property } from "lit/decorators.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
border-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
:host([inset]) .kbd-default {
|
|
97
|
-
background: var(--rel-surface-secondary, #fafafa);
|
|
98
|
-
border-color: var(--rel-colors-gray-divider);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
:host([inset]) .kbd-muted {
|
|
102
|
-
background: var(--rel-colors-gray-divider);
|
|
103
|
-
border-color: var(--rel-colors-gray-border);
|
|
104
|
-
}
|
|
105
|
-
`;
|
|
106
|
-
|
|
107
|
-
private get classes() {
|
|
108
|
-
return ["kbd", `kbd-${this.size}`, `kbd-${this.variant}`].join(" ");
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
render() {
|
|
112
|
-
return html`
|
|
113
|
-
<kbd class="${this.classes}" role="presentation">
|
|
114
|
-
<slot></slot>
|
|
115
|
-
</kbd>
|
|
116
|
-
`;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
1
|
+
import { LitElement, html, css } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
3
|
+
import "../../styles/vars-v2.css";
|
|
4
|
+
|
|
5
|
+
@customElement("rel-kbd")
|
|
6
|
+
export class RelKbd extends LitElement {
|
|
7
|
+
@property({ type: String, reflect: true })
|
|
8
|
+
size: "sm" | "md" | "lg" = "md";
|
|
9
|
+
|
|
10
|
+
@property({ type: String, reflect: true })
|
|
11
|
+
variant: "default" | "muted" = "default";
|
|
12
|
+
|
|
13
|
+
@property({ type: Boolean, reflect: true })
|
|
14
|
+
pill = false;
|
|
15
|
+
|
|
16
|
+
@property({ type: Boolean, reflect: true })
|
|
17
|
+
inset = false;
|
|
18
|
+
|
|
19
|
+
static styles = css`
|
|
20
|
+
:host {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
font-family: var(--rel-fontFamilies-primary);
|
|
25
|
+
font-weight: var(--rel-fontWeights-medium);
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
user-select: none;
|
|
28
|
+
transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
|
|
29
|
+
line-height: 1;
|
|
30
|
+
vertical-align: middle;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([size="sm"]) {
|
|
34
|
+
font-size: var(--rel-fontSizes-xs);
|
|
35
|
+
padding: var(--rel-spacing-space-3xs) var(--rel-spacing-space-xs);
|
|
36
|
+
min-width: 20px;
|
|
37
|
+
height: 20px;
|
|
38
|
+
border-radius: var(--rel-borders-radius-border-radius-100);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host([size="md"]) {
|
|
42
|
+
font-size: var(--rel-fontSizes-sm);
|
|
43
|
+
padding: var(--rel-spacing-space-2xs) var(--rel-spacing-space-sm);
|
|
44
|
+
min-width: 24px;
|
|
45
|
+
height: 24px;
|
|
46
|
+
border-radius: var(--rel-borders-radius-border-radius-100);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host([size="lg"]) {
|
|
50
|
+
font-size: var(--rel-fontSizes-md);
|
|
51
|
+
padding: var(--rel-spacing-space-xs) var(--rel-spacing-space-md);
|
|
52
|
+
min-width: 32px;
|
|
53
|
+
height: 32px;
|
|
54
|
+
border-radius: var(--rel-borders-radius-border-radius-200);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([variant="default"]) {
|
|
58
|
+
background: var(--rel-color-bg-secondary);
|
|
59
|
+
color: var(--rel-color-text-heading);
|
|
60
|
+
border: var(--rel-borders-width-stroke-100) solid var(--rel-color-border-default);
|
|
61
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 0 0 rgba(255, 255, 255, 0.5) inset;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([variant="muted"]) {
|
|
65
|
+
background: var(--rel-color-bg-secondary);
|
|
66
|
+
color: var(--rel-color-text-placeholder);
|
|
67
|
+
border: var(--rel-borders-width-stroke-100) solid var(--rel-color-border-divider);
|
|
68
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([pill]) {
|
|
72
|
+
border-radius: var(--rel-borders-radius-border-radius-500);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host([inset]) {
|
|
76
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset, 0 1px 0 0 rgba(0, 0, 0, 0.05);
|
|
77
|
+
transform: translateY(1px);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host([inset][variant="default"]) {
|
|
81
|
+
background: var(--rel-color-bg-secondary);
|
|
82
|
+
border-color: var(--rel-color-border-divider);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([inset][variant="muted"]) {
|
|
86
|
+
background: var(--rel-color-border-divider);
|
|
87
|
+
border-color: var(--rel-color-border-default);
|
|
88
|
+
}
|
|
89
|
+
`;
|
|
90
|
+
|
|
91
|
+
render() {
|
|
92
|
+
return html`<slot></slot>`;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -1,58 +1,49 @@
|
|
|
1
|
-
import { LitElement, html, css } from "lit";
|
|
2
|
-
import { customElement, property } from "lit/decorators.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@property({ type: Boolean, reflect: true }) responsive = true;
|
|
12
|
-
|
|
13
|
-
static styles = css`
|
|
14
|
-
:host {
|
|
15
|
-
display:
|
|
16
|
-
width: 100%;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
gap: ${this.gap};
|
|
51
|
-
grid-template-columns: repeat(${this.columns}, 1fr);
|
|
52
|
-
"
|
|
53
|
-
>
|
|
54
|
-
<slot></slot>
|
|
55
|
-
</div>
|
|
56
|
-
`;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
import { LitElement, html, css } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
3
|
+
import "../../styles/vars-v2.css";
|
|
4
|
+
|
|
5
|
+
@customElement("rel-layout")
|
|
6
|
+
export class RelLayout extends LitElement {
|
|
7
|
+
@property({ type: String }) gap = "1rem";
|
|
8
|
+
|
|
9
|
+
@property({ type: Number }) columns = 4;
|
|
10
|
+
|
|
11
|
+
@property({ type: Boolean, reflect: true }) responsive = true;
|
|
12
|
+
|
|
13
|
+
static styles = css`
|
|
14
|
+
:host {
|
|
15
|
+
display: grid;
|
|
16
|
+
width: 100%;
|
|
17
|
+
font-family: var(--rel-fontFamilies-primary);
|
|
18
|
+
gap: var(--_gap, 1rem);
|
|
19
|
+
grid-template-columns: repeat(var(--_columns, 4), 1fr);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (max-width: 1024px) {
|
|
23
|
+
:host([responsive]) {
|
|
24
|
+
grid-template-columns: repeat(3, 1fr);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (max-width: 768px) {
|
|
29
|
+
:host([responsive]) {
|
|
30
|
+
grid-template-columns: repeat(2, 1fr);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (max-width: 480px) {
|
|
35
|
+
:host([responsive]) {
|
|
36
|
+
grid-template-columns: 1fr;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
willUpdate() {
|
|
42
|
+
this.style.setProperty('--_gap', this.gap);
|
|
43
|
+
this.style.setProperty('--_columns', String(this.columns));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
render() {
|
|
47
|
+
return html`<slot></slot>`;
|
|
48
|
+
}
|
|
49
|
+
}
|