@riverty/web-components 5.4.0 → 5.6.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 +35 -0
- package/README.md +3 -3
- package/custom-elements.json +27 -15
- package/dist/cjs/{index-BnETQtSf.js → index-DJ4H_bFj.js} +382 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/r-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/r-accordion-panel.cjs.entry.js +1 -1
- package/dist/cjs/r-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/r-accordion-trigger.cjs.entry.js +1 -1
- package/dist/cjs/r-accordion.cjs.entry.js +2 -2
- package/dist/cjs/r-alert.cjs.entry.js +1 -1
- package/dist/cjs/r-badge.cjs.entry.js +1 -1
- package/dist/cjs/r-button.cjs.entry.js +2 -2
- package/dist/cjs/r-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/r-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/r-design-system-devtools.cjs.entry.js +1 -1
- package/dist/cjs/r-dialog.cjs.entry.js +8 -10
- package/dist/cjs/r-hint_3.cjs.entry.js +136 -38
- package/dist/cjs/r-icon-button.cjs.entry.js +4 -4
- package/dist/cjs/r-icon.cjs.entry.js +3 -3
- package/dist/cjs/r-input-code.cjs.entry.js +1 -1
- package/dist/cjs/r-input-date.cjs.entry.js +7 -7
- package/dist/cjs/r-input-password.cjs.entry.js +3 -3
- package/dist/cjs/r-input-phone-number.cjs.entry.js +5 -5
- package/dist/cjs/r-input.cjs.entry.js +19 -6
- package/dist/cjs/r-list-item.cjs.entry.js +5 -6
- package/dist/cjs/r-pagination.cjs.entry.js +1 -1
- package/dist/cjs/r-panel.cjs.entry.js +1 -1
- package/dist/cjs/r-popover-action.cjs.entry.js +1 -1
- package/dist/cjs/r-popover-content.cjs.entry.js +1 -1
- package/dist/cjs/r-popover-headline.cjs.entry.js +1 -1
- package/dist/cjs/r-popover-trigger.cjs.entry.js +1 -1
- package/dist/cjs/r-popover.cjs.entry.js +1 -1
- package/dist/cjs/r-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/r-radio-button-description.cjs.entry.js +1 -1
- package/dist/cjs/r-radio-button-leading.cjs.entry.js +1 -1
- package/dist/cjs/r-radio-button-title.cjs.entry.js +1 -1
- package/dist/cjs/r-radio-button-trailing.cjs.entry.js +1 -1
- package/dist/cjs/r-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/r-radio-group.cjs.entry.js +7 -7
- package/dist/cjs/r-select-option.cjs.entry.js +1 -1
- package/dist/cjs/r-select.cjs.entry.js +3 -3
- package/dist/cjs/r-skip-link.cjs.entry.js +1 -1
- package/dist/cjs/r-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/r-stepper.cjs.entry.js +1 -1
- package/dist/cjs/r-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/r-tab.cjs.entry.js +1 -1
- package/dist/cjs/r-tabs-list.cjs.entry.js +1 -1
- package/dist/cjs/r-tabs.cjs.entry.js +1 -1
- package/dist/cjs/r-textarea.cjs.entry.js +1 -1
- package/dist/cjs/r-toast-group.cjs.entry.js +15 -5
- package/dist/cjs/r-toast.cjs.entry.js +10 -11
- package/dist/cjs/web-components.cjs.js +2 -2
- package/dist/collection/components/accordion/accordion.js +1 -2
- package/dist/collection/components/button/button.js +1 -2
- package/dist/collection/components/checkbox/checkbox.js +4 -5
- package/dist/collection/components/dialog/dialog.css +1 -1
- package/dist/collection/components/dialog/dialog.js +23 -8
- package/dist/collection/components/icon/bundled-icons/riverty-kit.json +1 -1
- package/dist/collection/components/icon/icon.js +2 -2
- package/dist/collection/components/icon/riverty-kit.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +3 -4
- package/dist/collection/components/input/input.js +37 -5
- package/dist/collection/components/input-date/input-date.js +7 -7
- package/dist/collection/components/input-password/input-password.js +3 -3
- package/dist/collection/components/input-phone-number/input-phone-number.js +5 -5
- package/dist/collection/components/label/label.js +4 -4
- package/dist/collection/components/list-item/list-item/list-item.css +19 -11
- package/dist/collection/components/list-item/list-item/list-item.js +41 -4
- package/dist/collection/components/radio-group/radio-group.js +7 -7
- package/dist/collection/components/select/select.js +3 -4
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/toast/toast.css +8 -2
- package/dist/collection/components/toast/toast.js +10 -11
- package/dist/collection/components/toast-group/toast-group.css +14 -13
- package/dist/collection/components/toast-group/toast-group.js +14 -4
- package/dist/collection/components/tooltip/tooltip.css +6 -71
- package/dist/collection/components/tooltip/tooltip.js +135 -33
- package/dist/esm/{index-CTxpqopm.js → index-Da7qOBFr.js} +382 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/r-accordion-item.entry.js +1 -1
- package/dist/esm/r-accordion-panel.entry.js +1 -1
- package/dist/esm/r-accordion-section.entry.js +1 -1
- package/dist/esm/r-accordion-trigger.entry.js +1 -1
- package/dist/esm/r-accordion.entry.js +2 -2
- package/dist/esm/r-alert.entry.js +1 -1
- package/dist/esm/r-badge.entry.js +1 -1
- package/dist/esm/r-button.entry.js +2 -2
- package/dist/esm/r-checkbox-group.entry.js +1 -1
- package/dist/esm/r-checkbox.entry.js +5 -5
- package/dist/esm/r-design-system-devtools.entry.js +1 -1
- package/dist/esm/r-dialog.entry.js +8 -10
- package/dist/esm/r-hint_3.entry.js +136 -38
- package/dist/esm/r-icon-button.entry.js +4 -4
- package/dist/esm/r-icon.entry.js +3 -3
- package/dist/esm/r-input-code.entry.js +1 -1
- package/dist/esm/r-input-date.entry.js +7 -7
- package/dist/esm/r-input-password.entry.js +3 -3
- package/dist/esm/r-input-phone-number.entry.js +5 -5
- package/dist/esm/r-input.entry.js +19 -6
- package/dist/esm/r-list-item.entry.js +5 -6
- package/dist/esm/r-pagination.entry.js +1 -1
- package/dist/esm/r-panel.entry.js +1 -1
- package/dist/esm/r-popover-action.entry.js +1 -1
- package/dist/esm/r-popover-content.entry.js +1 -1
- package/dist/esm/r-popover-headline.entry.js +1 -1
- package/dist/esm/r-popover-trigger.entry.js +1 -1
- package/dist/esm/r-popover.entry.js +1 -1
- package/dist/esm/r-progress-bar.entry.js +1 -1
- package/dist/esm/r-radio-button-description.entry.js +1 -1
- package/dist/esm/r-radio-button-leading.entry.js +1 -1
- package/dist/esm/r-radio-button-title.entry.js +1 -1
- package/dist/esm/r-radio-button-trailing.entry.js +1 -1
- package/dist/esm/r-radio-button.entry.js +1 -1
- package/dist/esm/r-radio-group.entry.js +7 -7
- package/dist/esm/r-select-option.entry.js +1 -1
- package/dist/esm/r-select.entry.js +3 -3
- package/dist/esm/r-skip-link.entry.js +1 -1
- package/dist/esm/r-stepper-item.entry.js +1 -1
- package/dist/esm/r-stepper.entry.js +1 -1
- package/dist/esm/r-tab-panel.entry.js +1 -1
- package/dist/esm/r-tab.entry.js +1 -1
- package/dist/esm/r-tabs-list.entry.js +1 -1
- package/dist/esm/r-tabs.entry.js +1 -1
- package/dist/esm/r-textarea.entry.js +1 -1
- package/dist/esm/r-toast-group.entry.js +15 -5
- package/dist/esm/r-toast.entry.js +10 -11
- package/dist/esm/web-components.js +3 -3
- package/dist/types/components/accordion/accordion.d.ts +0 -1
- package/dist/types/components/button/button.d.ts +0 -1
- package/dist/types/components/checkbox/checkbox.d.ts +0 -1
- package/dist/types/components/dialog/dialog.d.ts +6 -1
- package/dist/types/components/icon/exports.d.ts +1 -0
- package/dist/types/components/icon/icon-data.d.ts +1 -0
- package/dist/types/components/icon/icon.d.ts +1 -1
- package/dist/types/components/icon/riverty-kit.d.ts +1 -0
- package/dist/types/components/icon-button/icon-button.d.ts +0 -1
- package/dist/types/components/input/input.d.ts +6 -0
- package/dist/types/components/input-date/input-date.d.ts +1 -1
- package/dist/types/components/input-password/input-password.d.ts +1 -1
- package/dist/types/components/input-phone-number/input-phone-number.d.ts +1 -1
- package/dist/types/components/label/label.d.ts +1 -1
- package/dist/types/components/list-item/list-item/list-item.d.ts +6 -1
- package/dist/types/components/radio-group/radio-group.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +1 -2
- package/dist/types/components/textarea/textarea.d.ts +3 -3
- package/dist/types/components/toast/toast.d.ts +1 -3
- package/dist/types/components/toast-group/toast-group.d.ts +2 -0
- package/dist/types/components/tooltip/tooltip.d.ts +12 -4
- package/dist/types/components.d.ts +63 -40
- package/dist/web-components/bundled-icons/riverty-kit.json +1 -1
- package/dist/web-components/{p-aecd025b.entry.js → p-00ca474f.entry.js} +1 -1
- package/dist/web-components/{p-9c40f9cd.entry.js → p-0bb04d79.entry.js} +1 -1
- package/dist/web-components/{p-48dfb286.entry.js → p-1ae69897.entry.js} +1 -1
- package/dist/web-components/{p-4cf01f30.entry.js → p-1c2497de.entry.js} +1 -1
- package/dist/web-components/{p-03ff9abf.entry.js → p-230e44ae.entry.js} +1 -1
- package/dist/web-components/p-29a1e75f.entry.js +1 -0
- package/dist/web-components/{p-1157b7f4.entry.js → p-2b2f581a.entry.js} +1 -1
- package/dist/web-components/{p-0a424361.entry.js → p-3b4e3faf.entry.js} +1 -1
- package/dist/web-components/p-3bc93d65.entry.js +1 -0
- package/dist/web-components/{p-dc93ed55.entry.js → p-429213ea.entry.js} +1 -1
- package/dist/web-components/{p-c7a9da98.entry.js → p-44ae9f33.entry.js} +1 -1
- package/dist/web-components/{p-c60294d4.entry.js → p-44be9992.entry.js} +1 -1
- package/dist/web-components/{p-66c454ce.entry.js → p-4652635a.entry.js} +1 -1
- package/dist/web-components/{p-e50503d0.entry.js → p-4bd3e077.entry.js} +1 -1
- package/dist/web-components/{p-89ff32dc.entry.js → p-4e3df002.entry.js} +1 -1
- package/dist/web-components/p-51a5804b.entry.js +1 -0
- package/dist/web-components/{p-2d85c0f3.entry.js → p-72c0c0d8.entry.js} +1 -1
- package/dist/web-components/{p-e273950c.entry.js → p-72fa1fd1.entry.js} +1 -1
- package/dist/web-components/{p-135be1d5.entry.js → p-755cc697.entry.js} +1 -1
- package/dist/web-components/{p-e74c363a.entry.js → p-77155630.entry.js} +1 -1
- package/dist/web-components/{p-3ea6a1be.entry.js → p-8028c2a9.entry.js} +1 -1
- package/dist/web-components/{p-3fc2b23b.entry.js → p-828cb164.entry.js} +1 -1
- package/dist/web-components/{p-988a7731.entry.js → p-85a9af42.entry.js} +1 -1
- package/dist/web-components/{p-24130cdb.entry.js → p-87f39749.entry.js} +1 -1
- package/dist/web-components/{p-c9b2389b.entry.js → p-89136369.entry.js} +1 -1
- package/dist/web-components/{p-77dc268e.entry.js → p-8c577cda.entry.js} +1 -1
- package/dist/web-components/{p-8d2f4097.entry.js → p-96ddeb7f.entry.js} +1 -1
- package/dist/web-components/{p-735da2bb.entry.js → p-9b08e9ee.entry.js} +1 -1
- package/dist/web-components/{p-6b7d5236.entry.js → p-9e50120b.entry.js} +1 -1
- package/dist/web-components/{p-900923ab.entry.js → p-9eb1f262.entry.js} +1 -1
- package/dist/web-components/p-Da7qOBFr.js +2 -0
- package/dist/web-components/{p-2394508f.entry.js → p-a022f356.entry.js} +1 -1
- package/dist/web-components/{p-df81177e.entry.js → p-a58124c4.entry.js} +1 -1
- package/dist/web-components/p-a5be3395.entry.js +1 -0
- package/dist/web-components/{p-9891afb8.entry.js → p-a7e7f8fa.entry.js} +1 -1
- package/dist/web-components/p-b2cec978.entry.js +1 -0
- package/dist/web-components/{p-71d6c4d7.entry.js → p-c7f8e59b.entry.js} +1 -1
- package/dist/web-components/{p-f625b739.entry.js → p-c937bd92.entry.js} +1 -1
- package/dist/web-components/p-cbcd7699.entry.js +1 -0
- package/dist/web-components/{p-fdf70aed.entry.js → p-d3ff65b0.entry.js} +1 -1
- package/dist/web-components/p-e0e2f2b2.entry.js +1 -0
- package/dist/web-components/{p-8d6a35e3.entry.js → p-e49b1ec3.entry.js} +1 -1
- package/dist/web-components/p-e4b66277.entry.js +1 -0
- package/dist/web-components/p-e6a31881.entry.js +1 -0
- package/dist/web-components/{p-05ba30ba.entry.js → p-f1e22caa.entry.js} +1 -1
- package/dist/web-components/p-f6a92287.entry.js +1 -0
- package/dist/web-components/p-f770e22b.entry.js +1 -0
- package/dist/web-components/p-f7adb875.entry.js +1 -0
- package/dist/web-components/web-components.esm.js +1 -1
- package/package.json +2 -1
- package/dist/web-components/p-0ac858b8.entry.js +0 -1
- package/dist/web-components/p-0bb0de18.entry.js +0 -1
- package/dist/web-components/p-10724c18.entry.js +0 -1
- package/dist/web-components/p-1ed3efd7.entry.js +0 -1
- package/dist/web-components/p-20f979ff.entry.js +0 -1
- package/dist/web-components/p-31c8388d.entry.js +0 -1
- package/dist/web-components/p-333707b2.entry.js +0 -1
- package/dist/web-components/p-61f78bf6.entry.js +0 -1
- package/dist/web-components/p-8f719321.entry.js +0 -1
- package/dist/web-components/p-9f583ed1.entry.js +0 -1
- package/dist/web-components/p-CTxpqopm.js +0 -2
- package/dist/web-components/p-caca2855.entry.js +0 -1
- package/dist/web-components/p-ef0f43e0.entry.js +0 -1
|
@@ -25,9 +25,9 @@ export class RLabel {
|
|
|
25
25
|
size: 's',
|
|
26
26
|
color: tooltipIconColor
|
|
27
27
|
};
|
|
28
|
-
return (h(Host, { key: '
|
|
29
|
-
h("span", { key: '
|
|
30
|
-
h("span", { key: '
|
|
28
|
+
return (h(Host, { key: '2d7da94197a774e5b3399ff59dba01f946f0d8df' }, h("div", { key: '56baaf39a736e1f504502c9f49b4cf5fbff2f911', class: "r-label" }, h("span", { key: '5b0032c31e83b628d73a207eeaa915368edc7237', class: "r-label--slot" }, h("slot", { key: 'fbcd30c185b9eef55ea43c8ca8b082a0308953e2' }), fieldIndicator &&
|
|
29
|
+
h("span", { key: '0d355d5857e515e735dc543d3416540e0a0ffdba', class: "r-label--marker" }, fieldIndicator)), tooltip &&
|
|
30
|
+
h("span", { key: 'b450b3e7ee2b33dbdc02d9fce04bd2ef6a97713d', class: "r-label--tooltip-icon" }, h("r-tooltip", Object.assign({ key: 'a1b2a24a312b7eabd5acd43273658bce3199ef1b' }, tooltipAttrs), h("r-icon", Object.assign({ key: 'c22f6349b9c67a82b29f4a5758a77fb1b2910b75' }, tooltipIconAttrs)))))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "r-label"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -127,7 +127,7 @@ export class RLabel {
|
|
|
127
127
|
"optional": true,
|
|
128
128
|
"docs": {
|
|
129
129
|
"tags": [],
|
|
130
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nChange color of an icon that triggers tooltip to one of the
|
|
130
|
+
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nChange color of an icon that triggers tooltip to one of the Riverty color tokens"
|
|
131
131
|
},
|
|
132
132
|
"getter": false,
|
|
133
133
|
"setter": false,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
:host([alignment=top])
|
|
1
|
+
:host([alignment=top]) {
|
|
2
|
+
--r-list-item--trailing-text--font-weight: bold;
|
|
2
3
|
--r-list-item--trailing--align-self: start;
|
|
3
4
|
}
|
|
4
5
|
|
|
@@ -74,6 +75,10 @@
|
|
|
74
75
|
--r-list-item--leading-icon--color: rgba(104,104,104, 0.4);
|
|
75
76
|
}
|
|
76
77
|
|
|
78
|
+
:host([truncate-description]:not([truncate-description=false])) {
|
|
79
|
+
--r-list-item--description--white-space: nowrap;
|
|
80
|
+
}
|
|
81
|
+
|
|
77
82
|
:host {
|
|
78
83
|
display: var(--display, block);
|
|
79
84
|
pointer-events: var(--pointer-events, auto);
|
|
@@ -111,14 +116,6 @@
|
|
|
111
116
|
.r-list-item--leading-icon {
|
|
112
117
|
color: var(--r-list-item--leading-icon--color, var(--r-icon-soft, #686868));
|
|
113
118
|
}
|
|
114
|
-
.r-list-item--text {
|
|
115
|
-
flex-grow: var(--r-list-item--text--flex-grow, 1);
|
|
116
|
-
overflow: var(--r-list-item--overflow);
|
|
117
|
-
display: var(--r-list-item--text-slot--display);
|
|
118
|
-
white-space: var(--r-list-item--text--white-space, nowrap);
|
|
119
|
-
overflow: var(--r-list-item--text--overflow, hidden);
|
|
120
|
-
text-overflow: var(--r-list-item--text--text-overflow, ellipsis);
|
|
121
|
-
}
|
|
122
119
|
.r-list-item--trailing {
|
|
123
120
|
display: var(--r-list-item--trailing--display, flex);
|
|
124
121
|
align-self: var(--r-list-item--trailing--align-self, center);
|
|
@@ -130,14 +127,23 @@
|
|
|
130
127
|
transform: var(--r-list-item--trailing-icon--transform, rotate(0deg));
|
|
131
128
|
color: var(--r-list-item--trailing-icon--color, inherit);
|
|
132
129
|
}
|
|
130
|
+
.r-list-item--trailing-text {
|
|
131
|
+
font-weight: var(--r-list-item--trailing-text--font-weight, 400);
|
|
132
|
+
white-space: var(--r-list-item--trailing-text--white-space, nowrap);
|
|
133
|
+
}
|
|
133
134
|
.r-list-item--trailing ::slotted(*) {
|
|
134
135
|
display: var(--r-list-item--trailing-slotted--display, flex);
|
|
135
136
|
gap: var(--r-list-item--trailing-slotted--display, 8px);
|
|
136
137
|
}
|
|
137
138
|
.r-list-item--text {
|
|
138
139
|
display: var(--r-list-item--text--display, flex);
|
|
140
|
+
flex-grow: var(--r-list-item--text--flex-grow, 1);
|
|
139
141
|
flex-direction: var(--r-list-item--text--flex-direction, column);
|
|
140
142
|
gap: var(--r-list-item--text--gap, 2px);
|
|
143
|
+
white-space: var(--r-list-item--text--white-space, normal);
|
|
144
|
+
overflow: var(--r-list-item--text--overflow, hidden);
|
|
145
|
+
text-overflow: var(--r-list-item--text--text-overflow, ellipsis);
|
|
146
|
+
font-weight: var(--r-list-item--trailing-text--font-weight, inherit);
|
|
141
147
|
}
|
|
142
148
|
.r-list-item--headline {
|
|
143
149
|
font-size: var(--r-list-item--headline--font-size, 1rem);
|
|
@@ -150,8 +156,10 @@
|
|
|
150
156
|
font-weight: var(--r-list-item--description--font-weight, var(--r-list-item--subtext--font-weight, 400));
|
|
151
157
|
line-height: var(--r-list-item--description--line-height, var(--r-list-item--subtext--line-height, 1.5));
|
|
152
158
|
color: var(--r-list-item--description--color, var(--r-list-item--subtext--color, var(--r-text-regular, #282828)));
|
|
159
|
+
white-space: var(--r-list-item--description--white-space, normal);
|
|
160
|
+
overflow: var(--r-list-item--description--overflow, hidden);
|
|
161
|
+
text-overflow: var(--r-list-item--description--text-overflow, ellipsis);
|
|
153
162
|
}
|
|
154
|
-
.r-list-item--subtext ::slotted(a
|
|
163
|
+
.r-list-item--subtext ::slotted(a), .r-list-item--description ::slotted(a) {
|
|
155
164
|
color: var(--r-list-item--description--color, var(--r-list-item--subtext--slotted--color, inherit));
|
|
156
|
-
text-decoration: var(--r-list-item--description--text-decoration, var(--r-list-item--subtext--slotted--text-decoration, none));
|
|
157
165
|
}
|
|
@@ -18,14 +18,13 @@ export class RListItem {
|
|
|
18
18
|
this.expanded = !this.expanded;
|
|
19
19
|
}
|
|
20
20
|
get isLeadingIcon() {
|
|
21
|
-
|
|
22
|
-
return ((_a = this.leadingIcon) === null || _a === void 0 ? void 0 : _a.length) > 0 || ((_b = this.leadingIconSrc) === null || _b === void 0 ? void 0 : _b.length) > 0;
|
|
21
|
+
return !!this.leadingIcon || !!this.leadingIconSrc;
|
|
23
22
|
}
|
|
24
23
|
get isLeadingSlot() {
|
|
25
24
|
return this.isEl('[slot="leading"]');
|
|
26
25
|
}
|
|
27
26
|
get isLeading() {
|
|
28
|
-
return this.isLeadingIcon || this.isLeadingSlot;
|
|
27
|
+
return (this.isLeadingIcon && !this.hideLeadingIcon) || this.isLeadingSlot;
|
|
29
28
|
}
|
|
30
29
|
get isTrailingIcon() {
|
|
31
30
|
var _a, _b;
|
|
@@ -82,7 +81,7 @@ export class RListItem {
|
|
|
82
81
|
const TagName = this.tagName;
|
|
83
82
|
const itemAttrs = Object.assign({ href: TagName === 'a' ? this.href : null }, (this.disabled ? { role: 'link', 'aria-disabled': 'true' } : null));
|
|
84
83
|
const ListItemContent = (h(TagName, Object.assign({ class: "r-list-item" }, itemAttrs), this.isLeading &&
|
|
85
|
-
h("span", { class: "r-list-item--leading" }, h("slot", { name: "leading" }, this.isLeadingIcon &&
|
|
84
|
+
h("span", { class: "r-list-item--leading" }, h("slot", { name: "leading" }, this.isLeadingIcon && !this.hideLeadingIcon &&
|
|
86
85
|
h("r-icon", { class: "r-list-item--leading-icon", name: leadingIcon, src: leadingIconSrc }))), h("span", { class: "r-list-item--text" }, !this.isTextSlot ?
|
|
87
86
|
h(Fragment, null, (this.isHeadlineSlot || headline) &&
|
|
88
87
|
h("span", { class: "r-list-item--headline" }, h("slot", { name: "headline" }, headline)), (description || this.isDescriptionSlot || subtext) &&
|
|
@@ -170,6 +169,25 @@ export class RListItem {
|
|
|
170
169
|
"setter": false,
|
|
171
170
|
"reflect": false
|
|
172
171
|
},
|
|
172
|
+
"truncateDescription": {
|
|
173
|
+
"type": "boolean",
|
|
174
|
+
"attribute": "truncate-description",
|
|
175
|
+
"mutable": false,
|
|
176
|
+
"complexType": {
|
|
177
|
+
"original": "boolean",
|
|
178
|
+
"resolved": "boolean",
|
|
179
|
+
"references": {}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
182
|
+
"optional": true,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [],
|
|
185
|
+
"text": "When enabled, the description is limited to a single line and truncated with an ellipsis if it overflows."
|
|
186
|
+
},
|
|
187
|
+
"getter": false,
|
|
188
|
+
"setter": false,
|
|
189
|
+
"reflect": false
|
|
190
|
+
},
|
|
173
191
|
"leadingIcon": {
|
|
174
192
|
"type": "string",
|
|
175
193
|
"attribute": "leading-icon",
|
|
@@ -214,6 +232,25 @@ export class RListItem {
|
|
|
214
232
|
"setter": false,
|
|
215
233
|
"reflect": false
|
|
216
234
|
},
|
|
235
|
+
"hideLeadingIcon": {
|
|
236
|
+
"type": "boolean",
|
|
237
|
+
"attribute": "hide-leading-icon",
|
|
238
|
+
"mutable": false,
|
|
239
|
+
"complexType": {
|
|
240
|
+
"original": "boolean",
|
|
241
|
+
"resolved": "boolean",
|
|
242
|
+
"references": {}
|
|
243
|
+
},
|
|
244
|
+
"required": false,
|
|
245
|
+
"optional": true,
|
|
246
|
+
"docs": {
|
|
247
|
+
"tags": [],
|
|
248
|
+
"text": "Defines if the leading icon shall become hidden."
|
|
249
|
+
},
|
|
250
|
+
"getter": false,
|
|
251
|
+
"setter": false,
|
|
252
|
+
"reflect": false
|
|
253
|
+
},
|
|
217
254
|
"trailingIcon": {
|
|
218
255
|
"type": "string",
|
|
219
256
|
"attribute": "trailing-icon",
|
|
@@ -329,12 +329,12 @@ export class RadioGroup {
|
|
|
329
329
|
'tooltip-icon': tooltipIcon,
|
|
330
330
|
'tooltip-icon-color': tooltipIconColor
|
|
331
331
|
};
|
|
332
|
-
return (h(Host, { key: '
|
|
333
|
-
h("div", { key: '
|
|
334
|
-
h("r-hint", { key: '
|
|
335
|
-
h("r-hint", { key: '
|
|
336
|
-
h("r-hint", { key: '
|
|
337
|
-
h("r-hint", { key: '
|
|
332
|
+
return (h(Host, { key: '0a209644dc2a122c793a38e1f624eccf3ca0b884' }, h("div", { key: 'b4d8dbe5fb3d1e11d87a7902addcc801852e3554', class: "r-radio-group", onClick: this.onLabelClick }, label &&
|
|
333
|
+
h("div", { key: 'c77bc88a07ddad6f45671c869b99b3fa5c4d0e2a', class: "r-radio-group--label-container" }, h("r-label", Object.assign({ key: '1dbfc739da13dbae04481912203a53837941b8e0', id: `${uniqueId}-label`, class: "r-radio-group--label", "field-indicator": fieldIndicator }, labelAttr), label), h("slot", { key: '2f1b6a50b2f7d7b1becef2cc95a4d7f6a26d970d', name: "popover" })), hint &&
|
|
334
|
+
h("r-hint", { key: 'c3c4310d3550d17d34ee26fa308cb3957a19dfd3', id: `${uniqueId}-hint`, class: "r-radio-group--hint", role: "note" }, hint), h("div", { key: '891beaea14680a2d629fa59f4597a968b8c2b695', class: "r-radio-group--content" }, h("slot", { key: '1d107723f7c363564e488309fdcb586ff43046ff' }))), invalid && error &&
|
|
335
|
+
h("r-hint", { key: 'de64c7c8a42136b7ac3ca93536a7654dc1d274fa', "aria-live": "polite", id: `${uniqueId}-message`, role: "alert", variant: "error" }, error), this.validityState !== 'valid' && this.validityMessage &&
|
|
336
|
+
h("r-hint", { key: 'c40eba0d5b6c47276ca91ca1631948d11f950c86', "aria-live": "polite", id: `${uniqueId}-message`, role: "alert", variant: "error" }, this.customErrorMessage || this.validityMessage), this.valid && this.validMessage && this.showValid &&
|
|
337
|
+
h("r-hint", { key: '0b13cc722509fe66231f18bd2783b29b798882ef', role: "alert", variant: "success" }, this.validMessage)));
|
|
338
338
|
}
|
|
339
339
|
static get is() { return "r-radio-group"; }
|
|
340
340
|
static get encapsulation() { return "shadow"; }
|
|
@@ -540,7 +540,7 @@ export class RadioGroup {
|
|
|
540
540
|
"optional": true,
|
|
541
541
|
"docs": {
|
|
542
542
|
"tags": [],
|
|
543
|
-
"text": "_DEPRECATED_ (Use popover slot instead. This property will be removed in November 2025 release.)\nChange color of an icon that triggers tooltip to one of the
|
|
543
|
+
"text": "_DEPRECATED_ (Use popover slot instead. This property will be removed in November 2025 release.)\nChange color of an icon that triggers tooltip to one of the Riverty color tokens"
|
|
544
544
|
},
|
|
545
545
|
"getter": false,
|
|
546
546
|
"setter": false,
|
|
@@ -6,7 +6,6 @@ import StyleObserver from "style-observer";
|
|
|
6
6
|
*
|
|
7
7
|
* Overall behavior is based on native `<select>`
|
|
8
8
|
*
|
|
9
|
-
* [Docs](https://riverty.design/components/select)
|
|
10
9
|
*/
|
|
11
10
|
export class Select {
|
|
12
11
|
constructor() {
|
|
@@ -1005,8 +1004,8 @@ export class Select {
|
|
|
1005
1004
|
disabled,
|
|
1006
1005
|
required: isRequired
|
|
1007
1006
|
};
|
|
1008
|
-
return (h(Host, { key: '
|
|
1009
|
-
h("r-hint", { key: '
|
|
1007
|
+
return (h(Host, { key: '4faff470b9b6b8b7d61e3076e92791ef59337a48', "data-value": this.currentValue, expanded: !this.disabled && this.isExpanded, "data-listbox-position": this.listboxPositionState, "data-initial-value": this.initial['value'], "data-is-placeholder": `${!!this.isPlaceholder}`, "data-value-focused": `${!!this.isValueFocused}`, "data-option-focused": `${!!this.focusedOption}`, "data-validity-state": `${this.validityState || ''}`, "data-validity-message": `${this.validityMessage || ''}`, "data-readonly": `${!!this.isReadonly}` }, h("div", { key: '0e171d25d2210017b79c8e4298e24335087f0528', class: `r-select--label ${!internal ? 'r-select--label__margin-bottom' : ''}` }, h("div", { key: 'd23c28cea13b76464697eadca26ba34a3d1009cd', class: internal ? 'visually-hidden' : 'r-select--label-container' }, h("label", { key: '5eed04830b9339a2c274f79eda156fa48eaa8249', id: `${uniqueId}-label`, onClick: this.isInteractive ? this.onValueClick : null }, h("r-label", Object.assign({ key: '85c9eecfbff6e3d5412c99faafc142bf495aedb4' }, labelAttr), label)), h("slot", { key: '72a93bf0defe9a3f41d7b7be5cf3415e95874141', name: "popover" })), hint &&
|
|
1008
|
+
h("r-hint", { key: 'd0b4a4bd2ca88ba642285dc85920d57f73298bb5', id: `${uniqueId}-hint`, class: "r-select--hint" }, hint)), h("div", { key: 'd859fdbd5f21ab2ec625712e5704f7e594ecff05', class: "r-select" }, h("select", Object.assign({ key: '388cf0c3f3234c2547aec144060f0d700df2fa57', class: "r-select--native", ref: el => this.nativeElement = el }, nativeAttrs)), h("div", { key: 'e2409bf6c794e8360089fc113144dfcd7dffbbe2', class: "r-select--container" }, this.combobox ? this.renderCombobox(comboboxAttrs) : this.renderSelect(comboboxAttrs), h("div", Object.assign({ key: '8b813027f707bf37ccdf022c852838eb4801e03e', role: "listbox", tabindex: "-1", id: `${uniqueId}-list`, class: "r-select--options", ref: el => this.listboxElement = el }, listboxAttrs), (this.isNoResultsFound || !((_a = this.optionElements) === null || _a === void 0 ? void 0 : _a.length)) && h("r-select-option", { key: 'b6aa6ab7eb6390b05ac6d475546ca9647edb1a02', "data-no-results": "true", value: "no_results" }, this.noResultsFound), h("slot", { key: 'e84ce6b5e610147962c25a930967e1554a91f2a1', onSlotchange: this.handleSlotChange })))), h("div", { key: '92a91fc11ac5c98330bd677a97ab76a88af48f3b', id: `${uniqueId}-message`, "aria-live": "polite", "aria-atomic": "true", ref: (el) => this.messageContainer = el, class: this.hasMessage && !internal ? 'r-select--message' : 'visually-hidden' }, this.hasMessage && h("r-hint", { key: 'c23f0cc7347fb7ceb61c4696d527534ececec403', variant: this.invalid ? 'error' : 'success' }, this.hasError && this.error, this.hasValidationError && this.validityMessage, this.hasValidationSuccess && this.validMessage))));
|
|
1010
1009
|
}
|
|
1011
1010
|
static get is() { return "r-select"; }
|
|
1012
1011
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1193,7 +1192,7 @@ export class Select {
|
|
|
1193
1192
|
"optional": true,
|
|
1194
1193
|
"docs": {
|
|
1195
1194
|
"tags": [],
|
|
1196
|
-
"text": "_DEPRECATED_ (Use popover slot instead. This property will be removed in November 2025 release.)\nChange color of an icon that triggers tooltip to one of the
|
|
1195
|
+
"text": "_DEPRECATED_ (Use popover slot instead. This property will be removed in November 2025 release.)\nChange color of an icon that triggers tooltip to one of the Riverty color tokens."
|
|
1197
1196
|
},
|
|
1198
1197
|
"getter": false,
|
|
1199
1198
|
"setter": false,
|
|
@@ -885,7 +885,7 @@ export class RTextarea {
|
|
|
885
885
|
"optional": true,
|
|
886
886
|
"docs": {
|
|
887
887
|
"tags": [],
|
|
888
|
-
"text": "_DEPRECATED_ (Use popover slot instead. This property will be removed in November 2025 release.)
|
|
888
|
+
"text": "_DEPRECATED_ (Use popover slot instead. This property will be removed in November 2025 release.)\nSpecifies the color of the tooltip icon from Riverty color tokens.\nDisplayed alongside the label."
|
|
889
889
|
},
|
|
890
890
|
"getter": false,
|
|
891
891
|
"setter": false,
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--r-toast--content--margin-top: var(--r-spacing-050, 0.5rem);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
:host([
|
|
33
|
+
:host([data-visually-hidden=true]) {
|
|
34
34
|
--r-toast--host--transition: all 0.15s;
|
|
35
35
|
--r-toast--host--transition-delay: 0.15s;
|
|
36
36
|
--r-toast--host--opacity: 0;
|
|
@@ -82,6 +82,12 @@
|
|
|
82
82
|
:host .r-toast--trailing-button:active {
|
|
83
83
|
--r-button--transform: scale(0.94);
|
|
84
84
|
}
|
|
85
|
+
@media (prefers-reduced-motion) {
|
|
86
|
+
:host {
|
|
87
|
+
--r-toast--transition: none;
|
|
88
|
+
--r-toast--host--animation-name: none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
85
91
|
|
|
86
92
|
.r-toast {
|
|
87
93
|
font-family: var(--r-toast--font-family, var(--r-font-family-text, system-ui));
|
|
@@ -90,7 +96,7 @@
|
|
|
90
96
|
flex-direction: var(--r-toast--flex-direction, row);
|
|
91
97
|
align-items: var(--r-toast--align-items, stretch);
|
|
92
98
|
gap: var(--r-toast--gap, var(--r-spacing-075, 0.75rem));
|
|
93
|
-
padding: var(--r-toast--padding,
|
|
99
|
+
padding: var(--r-toast--padding, 16px);
|
|
94
100
|
border-width: var(--r-toast--border-width, 1px);
|
|
95
101
|
border-style: var(--r-toast--border-style, solid);
|
|
96
102
|
border-color: var(--r-toast--border-color, var(--r-status-info-regular, #466882));
|
|
@@ -10,7 +10,6 @@ export class Toast {
|
|
|
10
10
|
* @default 'info' */
|
|
11
11
|
this.status = 'info';
|
|
12
12
|
/** Specifies an optional icon for the trailing slot of the dialog.
|
|
13
|
-
* For options check [Riverty Icons](https://riverty.design/components/icon)
|
|
14
13
|
* @default 'cross'
|
|
15
14
|
* */
|
|
16
15
|
this.trailingIcon = 'cross';
|
|
@@ -158,14 +157,14 @@ export class Toast {
|
|
|
158
157
|
name: trailingIcon,
|
|
159
158
|
size: 'm'
|
|
160
159
|
};
|
|
161
|
-
return (h(Host, { key: '
|
|
162
|
-
h("div", { key: '
|
|
163
|
-
h("h2", { key: '
|
|
164
|
-
h("div", { key: '
|
|
165
|
-
h("div", { key: '
|
|
166
|
-
h("a", Object.assign({ key: '
|
|
167
|
-
h("div", { key: '
|
|
168
|
-
h("r-icon-button", Object.assign({ key: '
|
|
160
|
+
return (h(Host, { key: 'ecccac165e35c1d3479db71c8da83d676592a428', id: this.uniqueId, role: "alert", "aria-live": `${this.isError ? 'assertive' : 'polite'}`, "data-visually-hidden": `${this.isOpen ? 'false' : 'true'}` }, h("div", { key: '18c27be9270236a6a4ca4de0bd10a64e6dd5532f', class: "r-toast" }, this.hasLeading &&
|
|
161
|
+
h("div", { key: '16d69b95a0b843efeec05449d71762abc3bb55be', class: "r-toast--leading" }, this.hasLeadingSlot && h("slot", { key: 'acfa65e5150af0b2e2a06752e9d4b329bebebf1f', name: "leading" }), this.hasLeadingIcon && h("r-icon", Object.assign({ key: 'ecaddd2b51d91276e2eb20a1e992e0eeea541668', class: "r-toast--leading-icon" }, leadingIconAttrs))), h("div", { key: '7cc6d9af5dfc4cf78a10071fb97e4e280ddbe8c4', class: "r-toast--main" }, this.hasHeadline &&
|
|
162
|
+
h("h2", { key: '88f4dae62b41098d730fb05f731ddf6dace827fd', class: "r-toast--headline" }, h("slot", { key: '93beeba62659efa72d5d6254ea63f9da23666936', name: "headline" }, headline)), this.hasContent &&
|
|
163
|
+
h("div", { key: 'b38a7111b06b93eb93141bf470a74e4ccbc701be', class: "r-toast--content r-typography" }, h("slot", { key: '8d734d4d579be0cee0a512a1c8017f7c11f6a4d7', onSlotchange: this.handleSlotChange })), this.hasAction &&
|
|
164
|
+
h("div", { key: '8cd04075e9c01e8478f0cd443d0711f23f9b072a', class: "r-toast--action" }, h("slot", { key: '788ec92aa6dd9141500004fd2f7bf99423cb6a8d', name: "action" }, this.hasActionLink &&
|
|
165
|
+
h("a", Object.assign({ key: 'd1ed349333ac36d5ef64a00f4b86055c6593567a', class: "r-toast--action-link" }, actionAttrs), action)))), this.hasTrailing &&
|
|
166
|
+
h("div", { key: '6fac76c40a13c7ad0ad417f7ea4793df130258db', class: "r-toast--trailing" }, this.hasTrailingSlot && h("slot", { key: '96a11d4d0a2fed9303cbe6cac872504b177e8143', name: "trailing" }), this.isDismissManual &&
|
|
167
|
+
h("r-icon-button", Object.assign({ key: 'e1a913e0cfdebb82cd5b657a8c6847be4fbe9bf4' }, trailingIconAttrs, { class: "r-toast--trailing-button", onClick: this.handleTrailingButtonClick, "aria-label": this.dismissLabel }), h("slot", { key: '1df0a1d761630c7c6b004078b0e9db5d33179a0e', name: "dismiss" }))))));
|
|
169
168
|
}
|
|
170
169
|
static get is() { return "r-toast"; }
|
|
171
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -249,7 +248,7 @@ export class Toast {
|
|
|
249
248
|
"optional": true,
|
|
250
249
|
"docs": {
|
|
251
250
|
"tags": [],
|
|
252
|
-
"text": "Specifies an optional icon for the leading slot of the dialog
|
|
251
|
+
"text": "Specifies an optional icon for the leading slot of the dialog."
|
|
253
252
|
},
|
|
254
253
|
"getter": false,
|
|
255
254
|
"setter": false,
|
|
@@ -277,7 +276,7 @@ export class Toast {
|
|
|
277
276
|
"name": "default",
|
|
278
277
|
"text": "'cross'"
|
|
279
278
|
}],
|
|
280
|
-
"text": "Specifies an optional icon for the trailing slot of the dialog
|
|
279
|
+
"text": "Specifies an optional icon for the trailing slot of the dialog."
|
|
281
280
|
},
|
|
282
281
|
"getter": false,
|
|
283
282
|
"setter": false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@media (max-width:
|
|
1
|
+
@media (max-width: 48rem) {
|
|
2
2
|
:host {
|
|
3
3
|
--width: auto;
|
|
4
4
|
--right: 24px;
|
|
@@ -7,12 +7,19 @@
|
|
|
7
7
|
--padding-right: 0;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
:host([
|
|
11
|
-
|
|
10
|
+
:host([data-visually-hidden=true]) {
|
|
11
|
+
position: absolute;
|
|
12
|
+
width: 1px;
|
|
13
|
+
height: 1px;
|
|
14
|
+
padding: 0;
|
|
15
|
+
margin: -1px;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
clip: rect(0, 0, 0, 0);
|
|
18
|
+
border: 0;
|
|
12
19
|
}
|
|
13
20
|
|
|
14
21
|
:host {
|
|
15
|
-
display: var(--display,
|
|
22
|
+
display: var(--display, block);
|
|
16
23
|
position: var(--position, fixed);
|
|
17
24
|
top: var(--top, 32px);
|
|
18
25
|
right: var(--right, 0);
|
|
@@ -30,13 +37,7 @@
|
|
|
30
37
|
.r-toast-group {
|
|
31
38
|
position: relative;
|
|
32
39
|
display: var(--r-toast-group--display, flex);
|
|
33
|
-
flex-direction: var(--r-toast-group--flex-direction, column
|
|
34
|
-
justify-content: var(--r-toast-group--justify-content, flex-
|
|
35
|
-
gap: var(--r-toast-group--gap,
|
|
36
|
-
}
|
|
37
|
-
.r-toast-group ::slotted(r-toast[aria-hidden=true]) {
|
|
38
|
-
--animation-name: slideOut;
|
|
39
|
-
}
|
|
40
|
-
.r-toast-group ::slotted(r-toast[aria-hidden=false]) {
|
|
41
|
-
--animation-name: slideIn;
|
|
40
|
+
flex-direction: var(--r-toast-group--flex-direction, column);
|
|
41
|
+
justify-content: var(--r-toast-group--justify-content, flex-start);
|
|
42
|
+
gap: var(--r-toast-group--gap, var(--r-spacing-100, 1rem));
|
|
42
43
|
}
|
|
@@ -2,20 +2,30 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
export class ToastGroup {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.updateHiddenState = () => {
|
|
5
|
-
this.host.setAttribute('
|
|
5
|
+
this.host.setAttribute('data-visually-hidden', `${!this.hasChildren}`);
|
|
6
|
+
};
|
|
7
|
+
this.observeSlotContentChange = () => {
|
|
8
|
+
this.observer = new MutationObserver(() => {
|
|
9
|
+
this.updateHiddenState();
|
|
10
|
+
});
|
|
11
|
+
this.observer.observe(this.host, {
|
|
12
|
+
childList: true,
|
|
13
|
+
subtree: true
|
|
14
|
+
});
|
|
6
15
|
};
|
|
7
16
|
}
|
|
8
17
|
get hasChildren() {
|
|
9
|
-
return this.host.
|
|
18
|
+
return this.host.querySelectorAll('r-toast').length > 0;
|
|
10
19
|
}
|
|
11
20
|
componentWillLoad() {
|
|
12
21
|
this.updateHiddenState();
|
|
22
|
+
this.observeSlotContentChange();
|
|
13
23
|
}
|
|
14
24
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '95e0b29bb1b6a45aabb4e7f5da283997c6b707a8' }, h("div", { key: '4b42e40646381d78f2b812f483ea993992ec7f12', class: "r-toast-group" }, h("slot", { key: 'db3cca9551652a78d9c1579532894fc86ca02b73' }))));
|
|
16
26
|
}
|
|
17
27
|
static get is() { return "r-toast-group"; }
|
|
18
|
-
static get encapsulation() { return "
|
|
28
|
+
static get encapsulation() { return "scoped"; }
|
|
19
29
|
static get originalStyleUrls() {
|
|
20
30
|
return {
|
|
21
31
|
"$": ["toast-group.css"]
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: inline-block;
|
|
3
3
|
--r-tooltip--position: relative;
|
|
4
|
-
--r-tooltip--content--position:
|
|
5
|
-
--r-tooltip--content--top: auto;
|
|
6
|
-
--r-tooltip--content--right: auto;
|
|
7
|
-
--r-tooltip--content--bottom: auto;
|
|
8
|
-
--r-tooltip--content--left: auto;
|
|
4
|
+
--r-tooltip--content--position: fixed;
|
|
9
5
|
--r-tooltip--content--display: none;
|
|
10
|
-
--r-tooltip--content--content: attr(tooltip-data);
|
|
11
6
|
--r-tooltip--content--color: var(--r-text-inverse);
|
|
12
7
|
--r-tooltip--content--background-color: var(--r-background-inverse);
|
|
13
8
|
--r-tooltip--content--font-family: var(--r-font-family-text);
|
|
@@ -18,22 +13,17 @@
|
|
|
18
13
|
--r-tooltip--content--max-width: 300px;
|
|
19
14
|
--r-tooltip--content--min-height: 32px;
|
|
20
15
|
--r-tooltip--content--padding: var(--r-spacing-050) var(--r-spacing-100);
|
|
21
|
-
--r-tooltip--content--width: max-
|
|
16
|
+
--r-tooltip--content--width: max-width;
|
|
22
17
|
--r-tooltip--content--word-break: break-word;
|
|
23
18
|
--r-tooltip--content--box-sizing: border-box;
|
|
24
19
|
--r-tooltip--content--justify-content: center;
|
|
25
20
|
--r-tooltip--content--align-items: center;
|
|
26
21
|
--r-tooltip--content--z-index: 0;
|
|
27
|
-
--r-tooltip--content--transform: none;
|
|
28
22
|
--r-tooltip--arrow--display: none;
|
|
29
|
-
--r-tooltip--arrow--position:
|
|
30
|
-
--r-tooltip--arrow--top: auto;
|
|
31
|
-
--r-tooltip--arrow--right: auto;
|
|
32
|
-
--r-tooltip--arrow--bottom: auto;
|
|
33
|
-
--r-tooltip--arrow--left: 50%;
|
|
23
|
+
--r-tooltip--arrow--position: fixed;
|
|
34
24
|
--r-tooltip--arrow--width: 12px;
|
|
35
|
-
--r-tooltip--arrow--height:
|
|
36
|
-
--r-tooltip--arrow--transform:
|
|
25
|
+
--r-tooltip--arrow--height: 12px;
|
|
26
|
+
--r-tooltip--arrow--transform: rotate(180deg);
|
|
37
27
|
--r-tooltip--arrow--inner-content: "";
|
|
38
28
|
--r-tooltip--arrow--inner--width: 12px;
|
|
39
29
|
--r-tooltip--arrow--inner--height: 6px;
|
|
@@ -46,63 +36,18 @@
|
|
|
46
36
|
display: contents;
|
|
47
37
|
}
|
|
48
38
|
|
|
49
|
-
:host([data-arrow-position=left]) {
|
|
50
|
-
--r-tooltip--content--left: - var(--r-spacing-100);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host([data-arrow-position=right]) {
|
|
54
|
-
--r-tooltip--content--right: - var(--r-spacing-100);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:host([data-arrow-position=center]) {
|
|
58
|
-
--r-tooltip--content--left: 50%;
|
|
59
|
-
--r-tooltip--content--transform: translate(-50%);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
:host([data-position=top]) {
|
|
63
|
-
--r-tooltip--content--bottom: calc(100% + var(--r-spacing-075));
|
|
64
|
-
--r-tooltip--arrow--bottom: 100%;
|
|
65
|
-
--r-tooltip--arrow--height: calc(var(--r-tooltip--arrow--inner--height) + 1.5 * var(--r-spacing-025));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:host([data-position=top][data-arrow-position=right]) {
|
|
69
|
-
--r-tooltip--content--right: 0;
|
|
70
|
-
--r-tooltip--content--left: unset;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
39
|
:host([data-position=bottom]) {
|
|
74
|
-
--r-tooltip--
|
|
75
|
-
--r-tooltip--arrow--top: 100%;
|
|
76
|
-
--r-tooltip--arrow--height: calc(var(--r-tooltip--arrow--inner--height) + 1.6 * var(--r-spacing-025));
|
|
77
|
-
--r-tooltip--arrow--transform: translateX(-50%) rotate(0);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:host([data-position=bottom][data-arrow-position=right]) {
|
|
81
|
-
--r-tooltip--content--right: 0;
|
|
82
|
-
--r-tooltip--content--left: unset;
|
|
40
|
+
--r-tooltip--arrow--transform: rotate(0);
|
|
83
41
|
}
|
|
84
42
|
|
|
85
43
|
:host([data-position=right]) {
|
|
86
|
-
--r-tooltip--content--left: calc(100% + var(--r-tooltip--arrow--height) + 0.1875rem);
|
|
87
|
-
--r-tooltip--arrow--left: 100%;
|
|
88
44
|
--r-tooltip--arrow--transform: rotate(270deg);
|
|
89
45
|
}
|
|
90
46
|
|
|
91
47
|
:host([data-position=left]) {
|
|
92
|
-
--r-tooltip--content--right: calc(100% + var(--r-tooltip--arrow--height) + 0.1875rem);
|
|
93
|
-
--r-tooltip--content--left: unset;
|
|
94
|
-
--r-tooltip--arrow--right: 100%;
|
|
95
|
-
--r-tooltip--arrow--left: unset;
|
|
96
48
|
--r-tooltip--arrow--transform: rotate(90deg);
|
|
97
49
|
}
|
|
98
50
|
|
|
99
|
-
:host([data-position=right]),
|
|
100
|
-
:host([data-position=left]) {
|
|
101
|
-
--r-tooltip--content--top: 50%;
|
|
102
|
-
--r-tooltip--content--transform: translateY(-50%);
|
|
103
|
-
--r-tooltip--arrow--top: calc(50% - calc(var(--r-tooltip--arrow--height)/2));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
51
|
.r-tooltip {
|
|
107
52
|
position: var(--r-tooltip--position);
|
|
108
53
|
}
|
|
@@ -126,12 +71,7 @@
|
|
|
126
71
|
}
|
|
127
72
|
.r-tooltip--content {
|
|
128
73
|
position: var(--r-tooltip--content--position);
|
|
129
|
-
top: var(--r-tooltip--content--top);
|
|
130
|
-
right: var(--r-tooltip--content--right);
|
|
131
|
-
bottom: var(--r-tooltip--content--bottom);
|
|
132
|
-
left: var(--r-tooltip--content--left);
|
|
133
74
|
display: var(--r-tooltip--content--display);
|
|
134
|
-
content: var(--r-tooltip--content--content);
|
|
135
75
|
color: var(--r-tooltip--content--color);
|
|
136
76
|
background-color: var(--r-tooltip--content--background-color);
|
|
137
77
|
font-family: var(--r-tooltip--content--font-family);
|
|
@@ -146,17 +86,12 @@
|
|
|
146
86
|
word-break: var(--r-tooltip--content--word-break);
|
|
147
87
|
box-sizing: var(--r-tooltip--content--box-sizing);
|
|
148
88
|
z-index: var(--r-tooltip--content--z-index);
|
|
149
|
-
transform: var(--r-tooltip--content--transform);
|
|
150
89
|
}
|
|
151
90
|
.r-tooltip--arrow {
|
|
152
91
|
display: var(--r-tooltip--arrow--display);
|
|
153
92
|
position: var(--r-tooltip--arrow--position);
|
|
154
93
|
width: var(--r-tooltip--arrow--width);
|
|
155
94
|
height: var(--r-tooltip--arrow--height);
|
|
156
|
-
top: var(--r-tooltip--arrow--top);
|
|
157
|
-
right: var(--r-tooltip--arrow--right);
|
|
158
|
-
bottom: var(--r-tooltip--arrow--bottom);
|
|
159
|
-
left: var(--r-tooltip--arrow--left);
|
|
160
95
|
transform: var(--r-tooltip--arrow--transform);
|
|
161
96
|
}
|
|
162
97
|
.r-tooltip--arrow:after {
|