@riverty/web-components 5.5.0 → 5.7.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 +29 -0
- package/README.md +3 -3
- package/custom-elements.json +19 -15
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/r-accordion.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/r-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/r-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/r-hint_3.cjs.entry.js +136 -38
- package/dist/cjs/r-icon-button.cjs.entry.js +3 -3
- package/dist/cjs/r-icon.cjs.entry.js +2 -2
- 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 +7 -4
- package/dist/cjs/r-input-phone-number.cjs.entry.js +4 -4
- package/dist/cjs/r-input.cjs.entry.js +6 -4
- 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.cjs.entry.js +3 -3
- package/dist/cjs/r-textarea.cjs.entry.js +1 -1
- package/dist/cjs/r-toast.cjs.entry.js +9 -10
- package/dist/cjs/web-components.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -2
- package/dist/collection/components/alert/alert.css +4 -4
- package/dist/collection/components/badge/badge.css +8 -8
- package/dist/collection/components/button/button.js +1 -2
- package/dist/collection/components/checkbox/checkbox.js +4 -5
- package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
- package/dist/collection/components/hint/hint.css +1 -1
- 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.css +1 -1
- package/dist/collection/components/input/input.js +24 -3
- package/dist/collection/components/input-code/input-code.css +1 -1
- package/dist/collection/components/input-date/input-date.css +1 -1
- package/dist/collection/components/input-date/input-date.js +7 -7
- package/dist/collection/components/input-password/input-password.js +8 -5
- 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/radio-button/radio-button.css +1 -1
- package/dist/collection/components/radio-group/radio-group.css +2 -2
- package/dist/collection/components/radio-group/radio-group.js +7 -7
- package/dist/collection/components/select/select.css +2 -2
- package/dist/collection/components/select/select.js +3 -4
- package/dist/collection/components/textarea/textarea.css +1 -1
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/toast/toast.css +7 -7
- package/dist/collection/components/toast/toast.js +10 -11
- package/dist/collection/components/tooltip/tooltip.css +6 -71
- package/dist/collection/components/tooltip/tooltip.js +135 -33
- package/dist/esm/loader.js +1 -1
- package/dist/esm/r-accordion.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/r-checkbox-group.entry.js +1 -1
- package/dist/esm/r-checkbox.entry.js +4 -4
- package/dist/esm/r-hint_3.entry.js +136 -38
- package/dist/esm/r-icon-button.entry.js +3 -3
- package/dist/esm/r-icon.entry.js +2 -2
- 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 +7 -4
- package/dist/esm/r-input-phone-number.entry.js +4 -4
- package/dist/esm/r-input.entry.js +6 -4
- 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.entry.js +3 -3
- package/dist/esm/r-textarea.entry.js +1 -1
- package/dist/esm/r-toast.entry.js +9 -10
- package/dist/esm/web-components.js +1 -1
- 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/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 +5 -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/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/tooltip/tooltip.d.ts +12 -4
- package/dist/types/components.d.ts +28 -40
- package/dist/web-components/bundled-icons/riverty-kit.json +1 -1
- package/dist/web-components/p-289eb4b0.entry.js +1 -0
- package/dist/web-components/p-2b8e12ae.entry.js +1 -0
- package/dist/web-components/{p-89136369.entry.js → p-2e2c8a5b.entry.js} +1 -1
- package/dist/web-components/{p-ad4292d8.entry.js → p-3a39932b.entry.js} +1 -1
- package/dist/web-components/{p-43eff76a.entry.js → p-44be9992.entry.js} +1 -1
- package/dist/web-components/{p-230e44ae.entry.js → p-63474b32.entry.js} +1 -1
- package/dist/web-components/{p-0735fd75.entry.js → p-72c0c0d8.entry.js} +1 -1
- package/dist/web-components/{p-24bbf3b6.entry.js → p-74d2a563.entry.js} +1 -1
- package/dist/web-components/p-7ad8e78b.entry.js +1 -0
- package/dist/web-components/{p-28718c50.entry.js → p-8028c2a9.entry.js} +1 -1
- package/dist/web-components/{p-a683612d.entry.js → p-96ddeb7f.entry.js} +1 -1
- package/dist/web-components/{p-7fccc301.entry.js → p-9d898089.entry.js} +1 -1
- package/dist/web-components/{p-99ba15d9.entry.js → p-9e50120b.entry.js} +1 -1
- package/dist/web-components/{p-e49b1ec3.entry.js → p-b2f03016.entry.js} +1 -1
- package/dist/web-components/{p-8c577cda.entry.js → p-c300c22f.entry.js} +1 -1
- package/dist/web-components/{p-f1e22caa.entry.js → p-d1379ac6.entry.js} +1 -1
- package/dist/web-components/{p-c09a863b.entry.js → p-d93c240d.entry.js} +1 -1
- package/dist/web-components/p-f770e22b.entry.js +1 -0
- package/dist/web-components/{p-a58124c4.entry.js → p-f952161b.entry.js} +1 -1
- package/dist/web-components/web-components.esm.js +1 -1
- package/package.json +7 -6
- package/dist/web-components/p-00eb6986.entry.js +0 -1
- package/dist/web-components/p-0f4eea22.entry.js +0 -1
- package/dist/web-components/p-2265dae1.entry.js +0 -1
- package/dist/web-components/p-f22696e0.entry.js +0 -1
|
@@ -275,10 +275,10 @@ export class InputPhoneNumber {
|
|
|
275
275
|
disabled,
|
|
276
276
|
'aria-describedby': this.ariaDescribedBy
|
|
277
277
|
};
|
|
278
|
-
return (h(Host, { key: '
|
|
279
|
-
h("r-label", Object.assign({ key: '
|
|
280
|
-
h("r-hint", { key: '
|
|
281
|
-
h("r-icon", { key: '
|
|
278
|
+
return (h(Host, { key: '87f5720347e3627524f95f7110088b8eddef7f8f' }, h("div", { key: '091e2048f011ff4167b35434567149de061954bd', class: "r-input-phone-number--label-container" }, h("label", { key: '80994d1cfd1b6f2228fb231f64894e660bdb1a1c', id: `${uniqueId}-label` }, label &&
|
|
279
|
+
h("r-label", Object.assign({ key: '36fa07371ee2c9d37645060a29f2d6f4ffe66342' }, labelAttr), label)), h("slot", { key: '76034d24a4208a46ee92185221256b9b5e87f971', name: "popover" })), hint &&
|
|
280
|
+
h("r-hint", { key: '574a0ec6541310640594eed29e0c301f5f9a01f7', id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { key: '63f37ce77a8e247091e0e6bf55632a834e19992d', class: "r-input-phone-number", role: "group", "aria-labelledby": `${uniqueId}-label`, "aria-describedby": this.ariaDescribedBy }, h("slot", { key: '36f3e834567d3ce77b6d89ae3e835eee630675b7' }), h("r-input", { key: '2f8dc7a95823b3107d8e24f90ae53791554c19af', label: inputLabel, value: phoneNumber, internal: true, valid: valid, invalid: invalid, required: required, readonly: this.readonly, novalidate: true, fullWidth: fullWidth, type: "tel", error: this.errorMessage || '', onRInput: this.handleOnInput, onRChange: this.handleInputOnChange, disabled: disabled }, valid && phoneNumber &&
|
|
281
|
+
h("r-icon", { key: '4559b1d4c55e35b2ef9560554a62d4742bca875e', slot: "trailing", name: "circled-check", size: "s", color: "var(--r-status-success-regular)" }))), h("input", Object.assign({ key: 'c68a9255419c41e8b9fc02127d5f3b68cd14f40b', type: "hidden" }, inputAttrs, { readonly: this.readonly, value: fullPhoneNumber, ref: el => this.nativeElement = el })), h("r-hint", { key: '43712e3a6b916945b1a00d3c6d8ace5f7bdcc1d7', "aria-live": "polite", "aria-atomic": "true", id: `${uniqueId}-message`, class: !this.hasMessage && 'visually-hidden', variant: "error" }, this.hasMessage ? (this.hasError ? this.error : this.validityMessage) : '')));
|
|
282
282
|
}
|
|
283
283
|
static get is() { return "r-input-phone-number"; }
|
|
284
284
|
static get encapsulation() { return "shadow"; }
|
|
@@ -465,7 +465,7 @@ export class InputPhoneNumber {
|
|
|
465
465
|
"optional": true,
|
|
466
466
|
"docs": {
|
|
467
467
|
"tags": [],
|
|
468
|
-
"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
|
|
468
|
+
"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"
|
|
469
469
|
},
|
|
470
470
|
"getter": false,
|
|
471
471
|
"setter": false,
|
|
@@ -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,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
:host([invalid]:not([invalid=false])),
|
|
40
40
|
:host([invalid]:not([invalid=false])[checked]:not([checked=false])) {
|
|
41
|
-
--r-radio-button--box--border-color: var(--r-status-error-regular, #
|
|
41
|
+
--r-radio-button--box--border-color: var(--r-status-error-regular, #b00c15);
|
|
42
42
|
--r-radio-button--box--background-color: var(--r-status-error-soft, #fef6f6);
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
:host([invalid]:not([invalid=false])) ::slotted(r-radio-button) {
|
|
27
|
-
--r-radio-button--box--border-color: var(--r-status-error-regular, #
|
|
27
|
+
--r-radio-button--box--border-color: var(--r-status-error-regular, #b00c15);
|
|
28
28
|
--r-radio-button--box--background-color: var(--r-status-error-soft, #fef6f6);
|
|
29
|
-
--r-radio-button--marker--background-color: var(--r-status-error-regular, #
|
|
29
|
+
--r-radio-button--marker--background-color: var(--r-status-error-regular, #b00c15);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
:host .r-radio-group {
|
|
@@ -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,
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
|
|
27
27
|
:host([invalid]:not([invalid=false])) {
|
|
28
28
|
--r-select--container--background-color: var(--r-status-error-soft, #fef6f6);
|
|
29
|
-
--r-select--value--border-color: var(--r-status-error-regular, #
|
|
30
|
-
--r-select--options--border-color: var(--r-status-error-regular, #
|
|
29
|
+
--r-select--value--border-color: var(--r-status-error-regular, #b00c15);
|
|
30
|
+
--r-select--options--border-color: var(--r-status-error-regular, #b00c15);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
:host([disabled]:not([disabled=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,
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
:host([invalid]:not([invalid=false])) {
|
|
37
37
|
--r-textarea--container--background-color: var(--r-status-error-soft, #fef6f6);
|
|
38
|
-
--r-textarea--container--border-color: var(--r-status-error-regular, #
|
|
38
|
+
--r-textarea--container--border-color: var(--r-status-error-regular, #b00c15);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.r-textarea--label-container {
|
|
@@ -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,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
:host([status=info]) {
|
|
2
|
-
--r-toast--border-color: var(--r-status-info-regular, #
|
|
2
|
+
--r-toast--border-color: var(--r-status-info-regular, #3e5c73);
|
|
3
3
|
--r-toast--background-color: var(--r-status-info-soft, #f8fafb);
|
|
4
|
-
--r-toast--leading-icon--color: var(--r-status-info-regular, #
|
|
4
|
+
--r-toast--leading-icon--color: var(--r-status-info-regular, #3e5c73);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
:host([status=warning]) {
|
|
8
|
-
--r-toast--border-color: var(--r-status-warning-regular, #
|
|
8
|
+
--r-toast--border-color: var(--r-status-warning-regular, #ff7429);
|
|
9
9
|
--r-toast--background-color: var(--r-status-warning-soft, #fef9f5);
|
|
10
10
|
--r-toast--leading-icon--color: var(--r-status-warning-strong, #89411A);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
:host([status=error]) {
|
|
14
|
-
--r-toast--border-color: var(--r-status-error-regular, #
|
|
14
|
+
--r-toast--border-color: var(--r-status-error-regular, #b00c15);
|
|
15
15
|
--r-toast--background-color: var(--r-status-error-soft, #fef6f6);
|
|
16
|
-
--r-toast--leading-icon--color: var(--r-status-error-regular, #
|
|
16
|
+
--r-toast--leading-icon--color: var(--r-status-error-regular, #b00c15);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
:host([status=success]) {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
padding: var(--r-toast--padding, 16px);
|
|
100
100
|
border-width: var(--r-toast--border-width, 1px);
|
|
101
101
|
border-style: var(--r-toast--border-style, solid);
|
|
102
|
-
border-color: var(--r-toast--border-color, var(--r-status-info-regular, #
|
|
102
|
+
border-color: var(--r-toast--border-color, var(--r-status-info-regular, #3e5c73));
|
|
103
103
|
background-color: var(--r-toast--background-color, var(--r-status-info-soft, #f8fafb));
|
|
104
104
|
box-sizing: var(--r-toast--box-sizing, border-box);
|
|
105
105
|
transition: var(--r-toast--transition, all 0.3s);
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
flex: var(--r-toast--content--flex, 1);
|
|
109
109
|
}
|
|
110
110
|
.r-toast--leading-icon {
|
|
111
|
-
color: var(--r-toast--leading-icon--color, var(--r-status-info-regular, #
|
|
111
|
+
color: var(--r-toast--leading-icon--color, var(--r-status-info-regular, #3e5c73));
|
|
112
112
|
margin-top: var(--r-toast--leading-icon--margin-top, 0);
|
|
113
113
|
}
|
|
114
114
|
.r-toast--headline {
|
|
@@ -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: '0d44f0bca1b27a8f2321525c867ff9d3842a4b28' }, trailingIconAttrs, { class: "r-toast--trailing-button", onClick: this.handleTrailingButtonClick, label: this.dismissLabel }), h("slot", { key: 'f0a708e9aec0f54734182dc0e7eb713921a11fe2', 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,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 {
|