@riverty/web-components 5.8.0 → 6.0.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 +86 -0
- package/custom-elements.json +124 -369
- package/dist/cjs/index-DJ4H_bFj.js +6 -10
- package/dist/cjs/loader.cjs.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 +5 -35
- package/dist/cjs/r-accordion.cjs.entry.js +3 -7
- package/dist/cjs/r-alert.cjs.entry.js +26 -11
- 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 -11
- package/dist/cjs/r-checkbox.cjs.entry.js +76 -75
- package/dist/cjs/r-dialog.cjs.entry.js +3 -11
- package/dist/cjs/r-hint_2.cjs.entry.js +50 -0
- package/dist/cjs/{r-hint_3.cjs.entry.js → r-icon-button_2.cjs.entry.js} +64 -51
- package/dist/cjs/r-input-code.cjs.entry.js +112 -17
- package/dist/cjs/r-input-date.cjs.entry.js +8 -14
- package/dist/cjs/r-input-password.cjs.entry.js +16 -8
- package/dist/cjs/r-input-phone-number.cjs.entry.js +7 -12
- package/dist/cjs/r-input.cjs.entry.js +87 -41
- package/dist/cjs/r-list-item.cjs.entry.js +5 -5
- package/dist/cjs/r-panel.cjs.entry.js +2 -2
- 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 +3 -3
- 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 +29 -12
- package/dist/cjs/r-radio-group.cjs.entry.js +18 -22
- package/dist/cjs/r-select-option.cjs.entry.js +1 -1
- package/dist/cjs/r-select.cjs.entry.js +6 -24
- package/dist/cjs/r-skip-link.cjs.entry.js +1 -1
- package/dist/cjs/r-stepper-item.cjs.entry.js +2 -2
- 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 +6 -18
- package/dist/cjs/r-toast-group.cjs.entry.js +1 -1
- package/dist/cjs/r-toast.cjs.entry.js +9 -9
- package/dist/cjs/web-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/accordion/accordion.css +0 -2
- package/dist/collection/components/accordion/accordion.js +4 -8
- package/dist/collection/components/accordion/exports.js +1 -1
- package/dist/collection/components/accordion-panel/accordion-panel.js +1 -1
- package/dist/collection/components/accordion-section/accordion-section.js +1 -1
- package/dist/collection/components/accordion-trigger/accordion-trigger.css +0 -4
- package/dist/collection/components/accordion-trigger/accordion-trigger.js +4 -215
- package/dist/collection/components/alert/alert.css +6 -0
- package/dist/collection/components/alert/alert.js +48 -10
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +80 -98
- package/dist/collection/components/checkbox-group/checkbox-group.js +1 -50
- package/dist/collection/components/dialog/dialog.css +1 -3
- package/dist/collection/components/dialog/dialog.js +2 -10
- package/dist/collection/components/hint/hint.js +2 -2
- package/dist/collection/components/icon-button/icon-button.js +3 -3
- package/dist/collection/components/input/input.css +3 -0
- package/dist/collection/components/input/input.js +180 -370
- package/dist/collection/components/input-code/exports.js +2 -0
- package/dist/collection/components/input-code/input-code.js +294 -26
- package/dist/collection/components/input-date/input-date.js +8 -77
- package/dist/collection/components/input-password/exports.js +1 -0
- package/dist/collection/components/input-password/input-password.css +1 -0
- package/dist/collection/components/input-password/input-password.js +195 -70
- package/dist/collection/components/input-phone-number/input-phone-number.js +7 -75
- package/dist/collection/components/label/label.js +3 -113
- package/dist/collection/components/list-item/list-item/list-item.css +7 -7
- package/dist/collection/components/list-item/list-item/list-item.js +4 -26
- package/dist/collection/components/panel/panel.js +2 -2
- package/dist/collection/components/popover/exports.js +0 -1
- package/dist/collection/components/popover/popover.css +2 -10
- package/dist/collection/components/popover/popover.js +2 -55
- package/dist/collection/components/popover-action/popover-action.js +1 -1
- package/dist/collection/components/popover-content/popover-content.js +1 -1
- package/dist/collection/components/popover-headline/popover-headline.js +1 -1
- package/dist/collection/components/popover-trigger/popover-trigger.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +49 -12
- package/dist/collection/components/radio-button-description/radio-button-description.js +1 -1
- package/dist/collection/components/radio-button-leading/radio-button-leading.js +1 -1
- package/dist/collection/components/radio-button-title/radio-button-title.js +1 -1
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +38 -124
- package/dist/collection/components/select/select.js +6 -330
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/skip-link/skip-link.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +2 -2
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tabs-list/tabs-list.js +1 -1
- package/dist/collection/components/textarea/textarea.js +6 -158
- package/dist/collection/components/toast/toast.js +9 -31
- package/dist/collection/components/toast-group/toast-group.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/esm/index-Da7qOBFr.js +6 -10
- package/dist/esm/loader.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 +5 -35
- package/dist/esm/r-accordion.entry.js +3 -7
- package/dist/esm/r-alert.entry.js +26 -11
- 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 -11
- package/dist/esm/r-checkbox.entry.js +76 -75
- package/dist/esm/r-dialog.entry.js +3 -11
- package/dist/esm/r-hint_2.entry.js +47 -0
- package/dist/esm/{r-hint_3.entry.js → r-icon-button_2.entry.js} +65 -51
- package/dist/esm/r-input-code.entry.js +112 -17
- package/dist/esm/r-input-date.entry.js +8 -14
- package/dist/esm/r-input-password.entry.js +16 -8
- package/dist/esm/r-input-phone-number.entry.js +7 -12
- package/dist/esm/r-input.entry.js +87 -41
- package/dist/esm/r-list-item.entry.js +5 -5
- package/dist/esm/r-panel.entry.js +2 -2
- 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 +3 -3
- 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 +29 -12
- package/dist/esm/r-radio-group.entry.js +18 -22
- package/dist/esm/r-select-option.entry.js +1 -1
- package/dist/esm/r-select.entry.js +6 -24
- package/dist/esm/r-skip-link.entry.js +1 -1
- package/dist/esm/r-stepper-item.entry.js +2 -2
- 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 +6 -18
- package/dist/esm/r-toast-group.entry.js +1 -1
- package/dist/esm/r-toast.entry.js +9 -9
- package/dist/esm/web-components.js +1 -1
- package/dist/types/components/accordion/accordion.d.ts +1 -5
- package/dist/types/components/accordion/exports.d.ts +1 -1
- package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +0 -36
- package/dist/types/components/alert/alert.d.ts +6 -1
- package/dist/types/components/checkbox/checkbox.d.ts +24 -34
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +0 -11
- package/dist/types/components/dialog/dialog.d.ts +0 -2
- package/dist/types/components/input/input.d.ts +30 -72
- package/dist/types/components/input-code/exports.d.ts +4 -0
- package/dist/types/components/input-code/input-code.d.ts +49 -7
- package/dist/types/components/input-date/input-date.d.ts +0 -16
- package/dist/types/components/input-password/exports.d.ts +1 -0
- package/dist/types/components/input-password/input-password.d.ts +48 -16
- package/dist/types/components/input-phone-number/input-phone-number.d.ts +0 -16
- package/dist/types/components/label/label.d.ts +0 -18
- package/dist/types/components/list-item/list-item/list-item.d.ts +0 -6
- package/dist/types/components/popover/exports.d.ts +0 -2
- package/dist/types/components/popover/popover.d.ts +1 -14
- package/dist/types/components/radio-button/radio-button.d.ts +5 -0
- package/dist/types/components/radio-group/radio-group.d.ts +5 -26
- package/dist/types/components/select/select.d.ts +0 -50
- package/dist/types/components/textarea/textarea.d.ts +0 -32
- package/dist/types/components/toast/toast.d.ts +0 -5
- package/dist/types/components.d.ts +201 -636
- package/dist/web-components/p-0347feff.entry.js +1 -0
- package/dist/web-components/p-05738503.entry.js +1 -0
- package/dist/web-components/p-0e4c8bf1.entry.js +1 -0
- package/dist/web-components/{p-5744d75c.entry.js → p-1da75540.entry.js} +1 -1
- package/dist/web-components/p-26ef77d6.entry.js +1 -0
- package/dist/web-components/p-3884c6e7.entry.js +1 -0
- package/dist/web-components/p-3a5a67e7.entry.js +1 -0
- package/dist/web-components/p-3f60c6c0.entry.js +1 -0
- package/dist/web-components/p-4254a383.entry.js +1 -0
- package/dist/web-components/{p-87f39749.entry.js → p-4595fa8e.entry.js} +1 -1
- package/dist/web-components/{p-4e3df002.entry.js → p-4cc58c6a.entry.js} +1 -1
- package/dist/web-components/p-5441b746.entry.js +1 -0
- package/dist/web-components/{p-72fa1fd1.entry.js → p-550e2237.entry.js} +1 -1
- package/dist/web-components/p-589baaf9.entry.js +1 -0
- package/dist/web-components/p-60341de2.entry.js +1 -0
- package/dist/web-components/{p-4bd3e077.entry.js → p-60ca994e.entry.js} +1 -1
- package/dist/web-components/{p-44ae9f33.entry.js → p-62b788bf.entry.js} +1 -1
- package/dist/web-components/{p-2b2f581a.entry.js → p-6303b9fe.entry.js} +1 -1
- package/dist/web-components/p-63fd817d.entry.js +1 -0
- package/dist/web-components/{p-e0e2f2b2.entry.js → p-673dbfd0.entry.js} +1 -1
- package/dist/web-components/p-67fa3f84.entry.js +1 -0
- package/dist/web-components/p-6cc2ea2c.entry.js +1 -0
- package/dist/web-components/p-70784685.entry.js +1 -0
- package/dist/web-components/{p-429213ea.entry.js → p-7fed6f4d.entry.js} +1 -1
- package/dist/web-components/p-8a66d20c.entry.js +1 -0
- package/dist/web-components/{p-0bb04d79.entry.js → p-8b4d2448.entry.js} +1 -1
- package/dist/web-components/{p-c7f8e59b.entry.js → p-8c31cbd5.entry.js} +1 -1
- package/dist/web-components/p-8dac326b.entry.js +1 -0
- package/dist/web-components/{p-1c2497de.entry.js → p-9ef1bbee.entry.js} +1 -1
- package/dist/web-components/p-a0dbde7c.entry.js +1 -0
- package/dist/web-components/{p-755cc697.entry.js → p-a71485d8.entry.js} +1 -1
- package/dist/web-components/p-a7d22c76.entry.js +1 -0
- package/dist/web-components/{p-85a9af42.entry.js → p-ae251d2f.entry.js} +1 -1
- package/dist/web-components/p-b9e3b3d6.entry.js +1 -0
- package/dist/web-components/p-c1e748f2.entry.js +1 -0
- package/dist/web-components/{p-5bbd6e3c.entry.js → p-c478712b.entry.js} +1 -1
- package/dist/web-components/{p-3078b2b8.entry.js → p-d054eb4d.entry.js} +1 -1
- package/dist/web-components/{p-8563a1ab.entry.js → p-d433a828.entry.js} +1 -1
- package/dist/web-components/p-d7726e46.entry.js +1 -0
- package/dist/web-components/p-d819c8e5.entry.js +1 -0
- package/dist/web-components/p-e2188953.entry.js +1 -0
- package/dist/web-components/{p-3b4e3faf.entry.js → p-e5945c01.entry.js} +1 -1
- package/dist/web-components/{p-d1379ac6.entry.js → p-f9d5004c.entry.js} +1 -1
- package/dist/web-components/web-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/r-accordion-item.cjs.entry.js +0 -78
- package/dist/cjs/r-icon-button.cjs.entry.js +0 -81
- package/dist/collection/components/accordion-item/accordion-item.css +0 -121
- package/dist/collection/components/accordion-item/accordion-item.js +0 -138
- package/dist/esm/r-accordion-item.entry.js +0 -76
- package/dist/esm/r-icon-button.entry.js +0 -79
- package/dist/types/components/accordion-item/accordion-item.d.ts +0 -26
- package/dist/web-components/p-00ca474f.entry.js +0 -1
- package/dist/web-components/p-15ac0fdd.entry.js +0 -1
- package/dist/web-components/p-1c956370.entry.js +0 -1
- package/dist/web-components/p-2a512983.entry.js +0 -1
- package/dist/web-components/p-2e18e762.entry.js +0 -1
- package/dist/web-components/p-3bc93d65.entry.js +0 -1
- package/dist/web-components/p-51a5804b.entry.js +0 -1
- package/dist/web-components/p-56da04d8.entry.js +0 -1
- package/dist/web-components/p-5e6aabd8.entry.js +0 -1
- package/dist/web-components/p-656229de.entry.js +0 -1
- package/dist/web-components/p-7775228c.entry.js +0 -1
- package/dist/web-components/p-7ad8e78b.entry.js +0 -1
- package/dist/web-components/p-9e50120b.entry.js +0 -1
- package/dist/web-components/p-a022f356.entry.js +0 -1
- package/dist/web-components/p-a7e7f8fa.entry.js +0 -1
- package/dist/web-components/p-ad9b2a48.entry.js +0 -1
- package/dist/web-components/p-b2f03016.entry.js +0 -1
- package/dist/web-components/p-b87ad83b.entry.js +0 -1
- package/dist/web-components/p-c937bd92.entry.js +0 -1
- package/dist/web-components/p-cbcd7699.entry.js +0 -1
- package/dist/web-components/p-dbe579e8.entry.js +0 -1
- package/dist/web-components/p-e4b66277.entry.js +0 -1
- package/dist/web-components/p-e6a31881.entry.js +0 -1
- package/dist/web-components/p-f2577a3c.entry.js +0 -1
- package/dist/web-components/p-f6a92287.entry.js +0 -1
|
@@ -9,13 +9,11 @@
|
|
|
9
9
|
--r-accordion-panel--padding-bottom: var(--r-spacing-200, 2rem);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
:host([size=small]),
|
|
13
12
|
:host([size=s]) {
|
|
14
13
|
--r-accordion-trigger--content--font-size: var(--r-font-size-400, 1rem);
|
|
15
14
|
--r-accordion-trigger--padding-top: var(--r-spacing-100, 1rem);
|
|
16
15
|
--r-accordion-trigger--padding-bottom: var(--r-spacing-100, 1rem);
|
|
17
16
|
}
|
|
18
|
-
:host([size=small]) ::slotted(r-accordion-section[expanded]),
|
|
19
17
|
:host([size=s]) ::slotted(r-accordion-section[expanded]) {
|
|
20
18
|
--r-accordion-panel--padding-top: var(--r-spacing-100, 1rem);
|
|
21
19
|
--r-accordion-panel--padding-bottom: var(--r-spacing-150, 1.5rem);
|
|
@@ -19,15 +19,11 @@ import { Host, h } from "@stencil/core";
|
|
|
19
19
|
*/
|
|
20
20
|
export class Accordion {
|
|
21
21
|
constructor() {
|
|
22
|
-
/**
|
|
23
|
-
* Defines the size of an accordion UI.
|
|
24
|
-
* DEPRECATED: 'small | large',
|
|
25
|
-
* use 's | l' instead
|
|
26
|
-
* */
|
|
22
|
+
/** Defines the size of an accordion UI. */
|
|
27
23
|
this.size = 'l';
|
|
28
24
|
}
|
|
29
25
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '09de7ec91fc9aab3dfb6705f23aa5035c6aab622' }, h("div", { key: '9152451f26122074076a6b7654a76312027309eb', class: "r-accordion" }, h("slot", { key: '6c89250f9146fe4d18f550f8d0853188187daf0c' }))));
|
|
31
27
|
}
|
|
32
28
|
static get is() { return "r-accordion"; }
|
|
33
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -68,7 +64,7 @@ export class Accordion {
|
|
|
68
64
|
"mutable": false,
|
|
69
65
|
"complexType": {
|
|
70
66
|
"original": "AccordionSize",
|
|
71
|
-
"resolved": "\"l\" | \"
|
|
67
|
+
"resolved": "\"l\" | \"s\"",
|
|
72
68
|
"references": {
|
|
73
69
|
"AccordionSize": {
|
|
74
70
|
"location": "import",
|
|
@@ -81,7 +77,7 @@ export class Accordion {
|
|
|
81
77
|
"optional": false,
|
|
82
78
|
"docs": {
|
|
83
79
|
"tags": [],
|
|
84
|
-
"text": "Defines the size of an accordion UI
|
|
80
|
+
"text": "Defines the size of an accordion UI."
|
|
85
81
|
},
|
|
86
82
|
"getter": false,
|
|
87
83
|
"setter": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const accordionSizeArray = ['
|
|
1
|
+
export const accordionSizeArray = ['s', 'l'];
|
|
@@ -7,7 +7,7 @@ export class AccordionPanel {
|
|
|
7
7
|
'aria-labelledby': this.trigger,
|
|
8
8
|
'aria-disabled': `${this.disabled || false}`
|
|
9
9
|
};
|
|
10
|
-
return (h(Host, Object.assign({ key: '
|
|
10
|
+
return (h(Host, Object.assign({ key: 'af44b5edf84a5c1e031bee5fd9b5501993e2fa4e' }, hostAttrs), h("div", { key: 'e885aace8251b940637bde22098627be23650ac7', class: "r-accordion-panel" }, h("slot", { key: '8d548a077a42730e50436554c44d3162edb02ebe' }))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "r-accordion-panel"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -106,7 +106,7 @@ export class AccordionSection {
|
|
|
106
106
|
this._linkElements();
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: '7d2d81fddab0d5115b7412e087a8924a01fb8f68' }, h("div", { key: '84261f6c1065910e468ca570c9f68fc800705fc5', class: "r-accordion-section" }, h("div", { key: 'dc84a18a2a356fd52adf0c49cfa7008f053c3ebd', role: "heading", "aria-level": this.headingAriaLevel }, h("slot", { key: '312ad3f397910f86911c8f23f36ac5b4f5112d16', name: "accordion-trigger" })), h("slot", { key: '0aab606a6c07f0b4c7e132e68eeba70967b7be6e', name: "accordion-panel" }))));
|
|
110
110
|
}
|
|
111
111
|
static get is() { return "r-accordion-section"; }
|
|
112
112
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,10 +39,6 @@
|
|
|
39
39
|
--r-accordion-trigger--icon--display: none;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
:host([icon-position=start]) {
|
|
43
|
-
--r-accordion-trigger--flex-direction: row-reverse;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
42
|
.r-accordion-trigger {
|
|
47
43
|
display: var(--r-accordion-trigger--display, flex);
|
|
48
44
|
align-items: var(--r-accordion-trigger--align-items, center);
|
|
@@ -1,36 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class AccordionTrigger {
|
|
3
3
|
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* _DEPRECATED_ (This property will be removed in November 2025 release.)
|
|
6
|
-
* Icon to be used as status indication
|
|
7
|
-
**/
|
|
8
|
-
this.icon = 'angle-down';
|
|
9
|
-
/**
|
|
10
|
-
* _DEPRECATED_ (This property will be removed in November 2025 release.)
|
|
11
|
-
* Defines the size of an icon used as status indication. Default: `m`.
|
|
12
|
-
**/
|
|
13
|
-
this.iconSize = 'm';
|
|
14
|
-
/**
|
|
15
|
-
* _DEPRECATED_ (This property will be removed in November 2025 release.)
|
|
16
|
-
* Icon might be placed before or after content
|
|
17
|
-
**/
|
|
18
|
-
this.iconPosition = 'end';
|
|
19
|
-
/**
|
|
20
|
-
* _DEPRECATED_ (This property will be removed in November 2025 release.)
|
|
21
|
-
* Icon for expanded state
|
|
22
|
-
**/
|
|
23
|
-
this.iconExpanded = 'angle-up';
|
|
24
|
-
/**
|
|
25
|
-
* _DEPRECATED_ (This property will be removed in November 2025 release.)
|
|
26
|
-
* Icon for collapsed state
|
|
27
|
-
**/
|
|
28
|
-
this.iconCollapsed = 'angle-down';
|
|
29
|
-
/**
|
|
30
|
-
* _DEPRECATED_ (This property will be removed in November 2025 release. Use leading icon slot instead)
|
|
31
|
-
* Defines the size of an icon in leading slot. Default: `m`.
|
|
32
|
-
* */
|
|
33
|
-
this.leadingIconSize = 'm';
|
|
34
4
|
this.handleClick = (event) => {
|
|
35
5
|
if (this.disabled)
|
|
36
6
|
return;
|
|
@@ -97,13 +67,13 @@ export class AccordionTrigger {
|
|
|
97
67
|
'data-has-panel': `${this.hasPanel}`
|
|
98
68
|
};
|
|
99
69
|
hostAttrs['aria-controls'] = this.panel ? `${this.panel}` : null;
|
|
100
|
-
return (h(Host, Object.assign({ key: '
|
|
70
|
+
return (h(Host, Object.assign({ key: 'e823c4799fa51824a6de4db7bf857385b0558ec4', onClick: this.handleClick, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown }, hostAttrs), h("span", { key: '55249e964a4eb164a4f842567f8cf14c9c58fee5', class: "r-accordion-trigger" }, h("span", { key: '37ffd053c1af48ff23ee9d1c22b6a0b6c92a3110', class: "r-accordion-trigger--content" }, h("slot", { key: 'b4583e319fd62bb98c2f2b312cd2edcfc646ddb5', name: "leading-icon" }), this.splitted ?
|
|
101
71
|
h("slot", { name: `content-${this.nameAddition}` }, h("slot", null))
|
|
102
72
|
:
|
|
103
|
-
h("slot", null)), h("span", { key: '
|
|
104
|
-
h("slot", { name: `icon-${this.nameAddition}` }, h("r-icon", { name: this.expanded ?
|
|
73
|
+
h("slot", null)), h("span", { key: '190013be64d4239d80be83ae9fb581b1d1e64f83', class: "r-accordion-trigger--icon" }, this.splitted ?
|
|
74
|
+
h("slot", { name: `icon-${this.nameAddition}` }, h("r-icon", { name: this.expanded ? 'angle-up' : 'angle-down', size: "m" }))
|
|
105
75
|
:
|
|
106
|
-
h("slot", { name: "icon" }, h("r-icon", { name:
|
|
76
|
+
h("slot", { name: "icon" }, h("r-icon", { name: "angle-down", size: "m" }))))));
|
|
107
77
|
}
|
|
108
78
|
static get is() { return "r-accordion-trigger"; }
|
|
109
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -194,187 +164,6 @@ export class AccordionTrigger {
|
|
|
194
164
|
"getter": false,
|
|
195
165
|
"setter": false,
|
|
196
166
|
"reflect": false
|
|
197
|
-
},
|
|
198
|
-
"icon": {
|
|
199
|
-
"type": "string",
|
|
200
|
-
"attribute": "icon",
|
|
201
|
-
"mutable": false,
|
|
202
|
-
"complexType": {
|
|
203
|
-
"original": "IconName",
|
|
204
|
-
"resolved": "string",
|
|
205
|
-
"references": {
|
|
206
|
-
"IconName": {
|
|
207
|
-
"location": "import",
|
|
208
|
-
"path": "../icon/exports",
|
|
209
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
"required": false,
|
|
214
|
-
"optional": false,
|
|
215
|
-
"docs": {
|
|
216
|
-
"tags": [],
|
|
217
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nIcon to be used as status indication"
|
|
218
|
-
},
|
|
219
|
-
"getter": false,
|
|
220
|
-
"setter": false,
|
|
221
|
-
"reflect": false,
|
|
222
|
-
"defaultValue": "'angle-down'"
|
|
223
|
-
},
|
|
224
|
-
"iconSize": {
|
|
225
|
-
"type": "string",
|
|
226
|
-
"attribute": "icon-size",
|
|
227
|
-
"mutable": false,
|
|
228
|
-
"complexType": {
|
|
229
|
-
"original": "IconSize",
|
|
230
|
-
"resolved": "\"l\" | \"m\" | \"s\"",
|
|
231
|
-
"references": {
|
|
232
|
-
"IconSize": {
|
|
233
|
-
"location": "import",
|
|
234
|
-
"path": "../icon/exports",
|
|
235
|
-
"id": "src/components/icon/exports.ts::IconSize"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
"required": false,
|
|
240
|
-
"optional": false,
|
|
241
|
-
"docs": {
|
|
242
|
-
"tags": [],
|
|
243
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nDefines the size of an icon used as status indication. Default: `m`."
|
|
244
|
-
},
|
|
245
|
-
"getter": false,
|
|
246
|
-
"setter": false,
|
|
247
|
-
"reflect": false,
|
|
248
|
-
"defaultValue": "'m'"
|
|
249
|
-
},
|
|
250
|
-
"iconPosition": {
|
|
251
|
-
"type": "string",
|
|
252
|
-
"attribute": "icon-position",
|
|
253
|
-
"mutable": false,
|
|
254
|
-
"complexType": {
|
|
255
|
-
"original": "IconPosition",
|
|
256
|
-
"resolved": "\"end\" | \"start\"",
|
|
257
|
-
"references": {
|
|
258
|
-
"IconPosition": {
|
|
259
|
-
"location": "import",
|
|
260
|
-
"path": "../icon/exports",
|
|
261
|
-
"id": "src/components/icon/exports.ts::IconPosition"
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
"required": false,
|
|
266
|
-
"optional": false,
|
|
267
|
-
"docs": {
|
|
268
|
-
"tags": [],
|
|
269
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nIcon might be placed before or after content"
|
|
270
|
-
},
|
|
271
|
-
"getter": false,
|
|
272
|
-
"setter": false,
|
|
273
|
-
"reflect": false,
|
|
274
|
-
"defaultValue": "'end'"
|
|
275
|
-
},
|
|
276
|
-
"iconExpanded": {
|
|
277
|
-
"type": "string",
|
|
278
|
-
"attribute": "icon-expanded",
|
|
279
|
-
"mutable": false,
|
|
280
|
-
"complexType": {
|
|
281
|
-
"original": "IconName",
|
|
282
|
-
"resolved": "string",
|
|
283
|
-
"references": {
|
|
284
|
-
"IconName": {
|
|
285
|
-
"location": "import",
|
|
286
|
-
"path": "../icon/exports",
|
|
287
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
"required": false,
|
|
292
|
-
"optional": true,
|
|
293
|
-
"docs": {
|
|
294
|
-
"tags": [],
|
|
295
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nIcon for expanded state"
|
|
296
|
-
},
|
|
297
|
-
"getter": false,
|
|
298
|
-
"setter": false,
|
|
299
|
-
"reflect": false,
|
|
300
|
-
"defaultValue": "'angle-up'"
|
|
301
|
-
},
|
|
302
|
-
"iconCollapsed": {
|
|
303
|
-
"type": "string",
|
|
304
|
-
"attribute": "icon-collapsed",
|
|
305
|
-
"mutable": false,
|
|
306
|
-
"complexType": {
|
|
307
|
-
"original": "IconName",
|
|
308
|
-
"resolved": "string",
|
|
309
|
-
"references": {
|
|
310
|
-
"IconName": {
|
|
311
|
-
"location": "import",
|
|
312
|
-
"path": "../icon/exports",
|
|
313
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
"required": false,
|
|
318
|
-
"optional": true,
|
|
319
|
-
"docs": {
|
|
320
|
-
"tags": [],
|
|
321
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nIcon for collapsed state"
|
|
322
|
-
},
|
|
323
|
-
"getter": false,
|
|
324
|
-
"setter": false,
|
|
325
|
-
"reflect": false,
|
|
326
|
-
"defaultValue": "'angle-down'"
|
|
327
|
-
},
|
|
328
|
-
"leadingIcon": {
|
|
329
|
-
"type": "string",
|
|
330
|
-
"attribute": "leading-icon",
|
|
331
|
-
"mutable": false,
|
|
332
|
-
"complexType": {
|
|
333
|
-
"original": "IconName",
|
|
334
|
-
"resolved": "string",
|
|
335
|
-
"references": {
|
|
336
|
-
"IconName": {
|
|
337
|
-
"location": "import",
|
|
338
|
-
"path": "../icon/exports",
|
|
339
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
"required": false,
|
|
344
|
-
"optional": true,
|
|
345
|
-
"docs": {
|
|
346
|
-
"tags": [],
|
|
347
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release. Use leading icon slot instead)\nName of an icon rendered within leading slot (before content)."
|
|
348
|
-
},
|
|
349
|
-
"getter": false,
|
|
350
|
-
"setter": false,
|
|
351
|
-
"reflect": false
|
|
352
|
-
},
|
|
353
|
-
"leadingIconSize": {
|
|
354
|
-
"type": "string",
|
|
355
|
-
"attribute": "leading-icon-size",
|
|
356
|
-
"mutable": false,
|
|
357
|
-
"complexType": {
|
|
358
|
-
"original": "IconSize",
|
|
359
|
-
"resolved": "\"l\" | \"m\" | \"s\"",
|
|
360
|
-
"references": {
|
|
361
|
-
"IconSize": {
|
|
362
|
-
"location": "import",
|
|
363
|
-
"path": "../icon/exports",
|
|
364
|
-
"id": "src/components/icon/exports.ts::IconSize"
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
"required": false,
|
|
369
|
-
"optional": false,
|
|
370
|
-
"docs": {
|
|
371
|
-
"tags": [],
|
|
372
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release. Use leading icon slot instead)\nDefines the size of an icon in leading slot. Default: `m`."
|
|
373
|
-
},
|
|
374
|
-
"getter": false,
|
|
375
|
-
"setter": false,
|
|
376
|
-
"reflect": false,
|
|
377
|
-
"defaultValue": "'m'"
|
|
378
167
|
}
|
|
379
168
|
};
|
|
380
169
|
}
|
|
@@ -79,6 +79,9 @@
|
|
|
79
79
|
flex-flow: var(--r-alert--main--flex-flow, column);
|
|
80
80
|
gap: var(--r-alert--main--gap, var(--r-spacing-050));
|
|
81
81
|
}
|
|
82
|
+
.r-alert--main:not(:has(.r-alert--headline)) {
|
|
83
|
+
--r-alert--content--margin-top: var(--r-spacing-025, 0.25rem);
|
|
84
|
+
}
|
|
82
85
|
.r-alert--headline {
|
|
83
86
|
color: var(--r-alert--headline--color, var(--color));
|
|
84
87
|
font-size: var(--r-alert--headline--font-size, var(--r-font-size-400, 1rem));
|
|
@@ -93,6 +96,9 @@
|
|
|
93
96
|
--r-button--padding: 0;
|
|
94
97
|
--r-button--color: var(--color);
|
|
95
98
|
}
|
|
99
|
+
.r-alert--content {
|
|
100
|
+
margin-top: var(--r-alert--content--margin-top, 0);
|
|
101
|
+
}
|
|
96
102
|
.r-alert--link,
|
|
97
103
|
.r-alert ::slotted(r-button) {
|
|
98
104
|
--r-button--background-color: transparent;
|
|
@@ -7,6 +7,11 @@ export class Alert {
|
|
|
7
7
|
this.announced = true;
|
|
8
8
|
/** Defines an icon size to be presented in leading slot*/
|
|
9
9
|
this.leadingIconSize = 'm';
|
|
10
|
+
/**
|
|
11
|
+
* Defines whether the leading icon is visible.
|
|
12
|
+
* @default true
|
|
13
|
+
* */
|
|
14
|
+
this.leadingIconVisible = true;
|
|
10
15
|
/** Defines an icon to be presented in trailing slot */
|
|
11
16
|
this.trailingIcon = 'cross';
|
|
12
17
|
/** Defines an icon size to be presented in trailing slot*/
|
|
@@ -37,15 +42,11 @@ export class Alert {
|
|
|
37
42
|
this.collapseAlert();
|
|
38
43
|
};
|
|
39
44
|
}
|
|
40
|
-
get isLeadingIcon() {
|
|
41
|
-
var _a, _b;
|
|
42
|
-
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;
|
|
43
|
-
}
|
|
44
45
|
get isLeadingSlot() {
|
|
45
46
|
return this.isElContent('[slot="leading"]');
|
|
46
47
|
}
|
|
47
48
|
get isLeading() {
|
|
48
|
-
return this.
|
|
49
|
+
return this.leadingIconVisible || this.isLeadingSlot;
|
|
49
50
|
}
|
|
50
51
|
get isTrailingIcon() {
|
|
51
52
|
var _a, _b;
|
|
@@ -83,6 +84,20 @@ export class Alert {
|
|
|
83
84
|
const el = this.host.querySelector('[slot="headline"]');
|
|
84
85
|
return (_a = el === null || el === void 0 ? void 0 : el.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
85
86
|
}
|
|
87
|
+
get statusBasedLeadingIconName() {
|
|
88
|
+
if (this.leadingIcon)
|
|
89
|
+
return this.leadingIcon;
|
|
90
|
+
switch (this.status) {
|
|
91
|
+
case 'info':
|
|
92
|
+
return 'circled-information-i';
|
|
93
|
+
case 'warning':
|
|
94
|
+
return 'circled-exclamation-mark';
|
|
95
|
+
case 'error':
|
|
96
|
+
return 'triangle-with-exclamation-mark';
|
|
97
|
+
default:
|
|
98
|
+
return 'circled-information-i';
|
|
99
|
+
}
|
|
100
|
+
}
|
|
86
101
|
componentDidLoad() {
|
|
87
102
|
if (this.isDelay)
|
|
88
103
|
this.startCollapseTimer();
|
|
@@ -96,7 +111,7 @@ export class Alert {
|
|
|
96
111
|
'aria-label': this.headlineSlotContent || this.headline || null
|
|
97
112
|
};
|
|
98
113
|
const leadingIconAttrs = {
|
|
99
|
-
name: this.
|
|
114
|
+
name: this.statusBasedLeadingIconName,
|
|
100
115
|
src: this.leadingIconSrc,
|
|
101
116
|
size: this.leadingIconSize
|
|
102
117
|
};
|
|
@@ -105,14 +120,14 @@ export class Alert {
|
|
|
105
120
|
src: this.trailingIconSrc,
|
|
106
121
|
size: this.trailingIconSize
|
|
107
122
|
};
|
|
108
|
-
return (h(Host, Object.assign({ key: '
|
|
109
|
-
h("div", { key: '
|
|
123
|
+
return (h(Host, Object.assign({ key: 'e0bb7ba3b7ca0c93e47c20c8666489976b52fe6d' }, hostAttrs), h("div", { key: 'c13d2517796fb274af8632a574196603feb13e61', class: "r-alert" }, this.isLeading &&
|
|
124
|
+
h("div", { key: 'b38044eb982c0b9fcd352122a6d21008e1802abb', class: "r-alert--leading" }, h("slot", { key: '01a26f5684ab9dc959c5f79cb8694a23621d091f', name: "leading" }, this.leadingIconVisible && h("r-icon", Object.assign({ key: '36b7c3e1c35faee26737e0f165ecad79c109bd4f' }, leadingIconAttrs)))), this.isMain ?
|
|
110
125
|
h("div", { class: "r-alert--main" }, h("slot", { name: "headline" }, this.isHeadline && h("h3", { class: "r-alert--headline" }, this.headline)), h("slot", { name: "content" }, this.isContent && h("div", { class: "r-alert--content" }, this.content)), h("slot", { name: "link" }, this.isLink &&
|
|
111
126
|
h("r-button", { class: "r-alert--link", variant: "text-inline", size: "small", href: this.href, target: this.target }, this.linkText)), h("slot", null))
|
|
112
127
|
:
|
|
113
128
|
h("slot", null), this.isTrailing &&
|
|
114
|
-
h("div", { key: '
|
|
115
|
-
h("r-icon-button", { key: '
|
|
129
|
+
h("div", { key: 'dc9b171a6263c167a08816bfb2c149376eef6d34', class: "r-alert--trailing" }, h("slot", { key: '2d31946de22bb1cc247969207fc4243e4fcd7c08', name: "trailing" }, this.isTrailingIcon &&
|
|
130
|
+
h("r-icon-button", { key: '0c738aed534f98062835a59b55fe7b83e20473fb', name: !this.trailingIconSrc ? this.trailingIcon : null, onClick: this.handleTrailingButtonClick, label: this.dismissButtonAriaLabel }, this.trailingIconSrc && h("r-icon", Object.assign({ key: '13653d686f0886f16c157cdb3a499abbd5006d2b' }, trailingIconAttrs))))))));
|
|
116
131
|
}
|
|
117
132
|
static get is() { return "r-alert"; }
|
|
118
133
|
static get encapsulation() { return "shadow"; }
|
|
@@ -244,6 +259,29 @@ export class Alert {
|
|
|
244
259
|
"reflect": false,
|
|
245
260
|
"defaultValue": "'m'"
|
|
246
261
|
},
|
|
262
|
+
"leadingIconVisible": {
|
|
263
|
+
"type": "boolean",
|
|
264
|
+
"attribute": "leading-icon-visible",
|
|
265
|
+
"mutable": false,
|
|
266
|
+
"complexType": {
|
|
267
|
+
"original": "boolean",
|
|
268
|
+
"resolved": "boolean",
|
|
269
|
+
"references": {}
|
|
270
|
+
},
|
|
271
|
+
"required": false,
|
|
272
|
+
"optional": false,
|
|
273
|
+
"docs": {
|
|
274
|
+
"tags": [{
|
|
275
|
+
"name": "default",
|
|
276
|
+
"text": "true"
|
|
277
|
+
}],
|
|
278
|
+
"text": "Defines whether the leading icon is visible."
|
|
279
|
+
},
|
|
280
|
+
"getter": false,
|
|
281
|
+
"setter": false,
|
|
282
|
+
"reflect": false,
|
|
283
|
+
"defaultValue": "true"
|
|
284
|
+
},
|
|
247
285
|
"trailingIcon": {
|
|
248
286
|
"type": "string",
|
|
249
287
|
"attribute": "trailing-icon",
|
|
@@ -29,7 +29,7 @@ export class RBadge {
|
|
|
29
29
|
const hostAttrs = {
|
|
30
30
|
variant
|
|
31
31
|
};
|
|
32
|
-
return (h(Host, Object.assign({ key: '
|
|
32
|
+
return (h(Host, Object.assign({ key: '414f16e5a8bde16b295420ea689be3b528b6b9d7' }, hostAttrs), h("div", { key: 'd06b6b22be283666817326c82503080c247b3cb7', class: "r-badge" }, iconVisible && h("slot", { key: '38e1c8768bbc6560294f798ba635bb6a1ecd5ee1', name: "icon" }, h("r-icon", { key: 'da0d4672b3fd929deb32944faeb2cf6676dd0751', size: "s", name: this.iconName, iconAriaLabel: iconAriaLabel })), h("slot", { key: 'f0c3ce3e33ddb887af28e03cbd9af75f0fe0346e' }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "r-badge"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -131,7 +131,7 @@ export class Button {
|
|
|
131
131
|
position: iconPosition
|
|
132
132
|
};
|
|
133
133
|
const TagName = isLink ? 'a' : 'button';
|
|
134
|
-
return (h(Host, { key: '
|
|
134
|
+
return (h(Host, { key: '97dbd8b4be7ada112d733f3e8838bb98b23ea37d' }, h(TagName, Object.assign({ key: '51ac8df717d9db6901b0bf313987fca0aa3c9e0e', class: "r-button" }, attrs, { "aria-label": rAriaLabel || null, ref: (el) => (this.nativeElement = el), onClick: this.handleClick }), h("span", { key: '5d18e8d4d11946a950196113ca34b13389d380d7', class: "r-button--slot" }, icon && h("r-icon", Object.assign({ key: 'b0eab29fd53184befd2e63cc48b8e9fa5262f742', name: icon }, iconAttrs, { size: "s" })), this.hasIconSlot && h("slot", { key: '1679c43372773a8888d790afcee23d4b4a4d5969', name: "icon" }), h("div", { key: 'd3862e66255a78e2cfb0ae3741cd8f82e4efc0ea', style: { display: 'contents' } }, h("slot", { key: '68dc5cbb93492c37139d6efdbc706050271f710f', onSlotchange: this.handleSlotChange }))))));
|
|
135
135
|
}
|
|
136
136
|
static get is() { return "r-button"; }
|
|
137
137
|
static get encapsulation() { return "shadow"; }
|