@riverty/web-components 5.8.0 → 6.1.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 +107 -0
- package/custom-elements.json +215 -362
- 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-icon.cjs.entry.js +1 -1
- 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 +90 -42
- package/dist/cjs/r-list-item.cjs.entry.js +20 -19
- package/dist/cjs/r-panel.cjs.entry.js +5 -5
- 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 +3 -3
- package/dist/cjs/r-stepper.cjs.entry.js +2 -2
- package/dist/cjs/r-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/r-tab.cjs.entry.js +6 -2
- package/dist/cjs/r-tabs-list.cjs.entry.js +160 -2
- package/dist/cjs/r-tabs.cjs.entry.js +34 -6
- package/dist/cjs/r-textarea.cjs.entry.js +7 -19
- package/dist/cjs/r-toast-group.cjs.entry.js +2 -2
- package/dist/cjs/r-toast.cjs.entry.js +31 -11
- 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 +8 -3
- 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/bundled-icons/riverty-kit.json +1 -1
- package/dist/collection/components/icon/riverty-kit.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +22 -3
- package/dist/collection/components/input/exports.js +2 -0
- package/dist/collection/components/input/input.css +3 -0
- package/dist/collection/components/input/input.js +233 -371
- 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 +53 -19
- package/dist/collection/components/list-item/list-item/list-item.js +38 -40
- package/dist/collection/components/panel/panel.css +40 -17
- package/dist/collection/components/panel/panel.js +6 -6
- 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.css +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.css +3 -3
- package/dist/collection/components/stepper-item/stepper-item.js +2 -2
- package/dist/collection/components/tab/tab.css +29 -29
- package/dist/collection/components/tab/tab.js +5 -1
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/tabs/tabs.js +34 -6
- package/dist/collection/components/tabs-list/exports.js +2 -0
- package/dist/collection/components/tabs-list/tabs-list.css +43 -2
- package/dist/collection/components/tabs-list/tabs-list.js +277 -1
- package/dist/collection/components/textarea/textarea.css +1 -1
- package/dist/collection/components/textarea/textarea.js +6 -158
- package/dist/collection/components/toast/toast.css +35 -9
- package/dist/collection/components/toast/toast.js +44 -32
- package/dist/collection/components/toast-group/toast-group.css +1 -1
- package/dist/collection/components/toast-group/toast-group.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- 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-icon.entry.js +1 -1
- 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 +90 -42
- package/dist/esm/r-list-item.entry.js +20 -19
- package/dist/esm/r-panel.entry.js +5 -5
- 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 +3 -3
- package/dist/esm/r-stepper.entry.js +2 -2
- package/dist/esm/r-tab-panel.entry.js +1 -1
- package/dist/esm/r-tab.entry.js +6 -2
- package/dist/esm/r-tabs-list.entry.js +161 -3
- package/dist/esm/r-tabs.entry.js +34 -6
- package/dist/esm/r-textarea.entry.js +7 -19
- package/dist/esm/r-toast-group.entry.js +2 -2
- package/dist/esm/r-toast.entry.js +31 -11
- 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/icon/exports.d.ts +1 -0
- package/dist/types/components/icon/icon-data.d.ts +1 -0
- package/dist/types/components/icon/riverty-kit.d.ts +1 -0
- package/dist/types/components/icon-button/icon-button.d.ts +4 -0
- package/dist/types/components/input/exports.d.ts +4 -0
- package/dist/types/components/input/input.d.ts +47 -73
- 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 +5 -9
- 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/tabs/tabs.d.ts +1 -0
- package/dist/types/components/tabs-list/exports.d.ts +4 -0
- package/dist/types/components/tabs-list/tabs-list.d.ts +38 -0
- package/dist/types/components/textarea/textarea.d.ts +0 -32
- package/dist/types/components/toast/toast.d.ts +11 -5
- package/dist/types/components.d.ts +280 -638
- package/dist/web-components/bundled-icons/riverty-kit.json +1 -1
- package/dist/web-components/p-0347feff.entry.js +1 -0
- package/dist/web-components/p-159822fe.entry.js +1 -0
- package/dist/web-components/p-19407a14.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-3f60c6c0.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-4f261b63.entry.js +1 -0
- package/dist/web-components/{p-e0e2f2b2.entry.js → p-50893211.entry.js} +1 -1
- 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-3b4e3faf.entry.js → p-5eeb7002.entry.js} +1 -1
- package/dist/web-components/p-60341de2.entry.js +1 -0
- package/dist/web-components/{p-44ae9f33.entry.js → p-62b788bf.entry.js} +1 -1
- package/dist/web-components/p-63fd817d.entry.js +1 -0
- package/dist/web-components/p-67fa3f84.entry.js +1 -0
- package/dist/web-components/p-6bb44ec6.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-7ce57332.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-c7f8e59b.entry.js → p-8c31cbd5.entry.js} +1 -1
- package/dist/web-components/p-8dac326b.entry.js +1 -0
- package/dist/web-components/p-92c7cf33.entry.js +1 -0
- package/dist/web-components/{p-1c2497de.entry.js → p-9ef1bbee.entry.js} +1 -1
- package/dist/web-components/p-a7d22c76.entry.js +1 -0
- package/dist/web-components/p-b96d59ca.entry.js +1 -0
- package/dist/web-components/p-ba801820.entry.js +1 -0
- package/dist/web-components/{p-a022f356.entry.js → p-bfc8c077.entry.js} +1 -1
- package/dist/web-components/p-c05b05da.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-c95b6470.entry.js +1 -0
- package/dist/web-components/p-cd5daad2.entry.js +1 -0
- package/dist/web-components/p-cdd88c5a.entry.js +1 -0
- 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-755cc697.entry.js → p-e4dc60f0.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-0bb04d79.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-2b2f581a.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-4bd3e077.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-6a4f3836.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-85a9af42.entry.js +0 -1
- package/dist/web-components/p-9e50120b.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
|
@@ -53,12 +53,6 @@
|
|
|
53
53
|
--r-list-item--background-color: var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12));
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
:host(:focus-visible:not(:active)) .r-list-item {
|
|
57
|
-
--r-list-item--box-shadow: 0 0 0 6px var(--r-border-focused-outlined, #fff);
|
|
58
|
-
--r-list-item--outline: 2px solid var(--r-border-focused, #0071e3);
|
|
59
|
-
--r-list-item--outline-offset: 2px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
56
|
:host(:focus-within) .r-list-item[href] {
|
|
63
57
|
--r-list-item--box-shadow: 0 0 0 6px var(--r-border-focused-outlined, #fff);
|
|
64
58
|
--r-list-item--outline: 2px solid var(--r-border-focused, #0071e3);
|
|
@@ -92,9 +86,9 @@
|
|
|
92
86
|
display: var(--r-list-item--display, flex);
|
|
93
87
|
align-items: var(--r-list-item--align-items, center);
|
|
94
88
|
justify-content: var(--r-list-item--justify-content, center);
|
|
95
|
-
gap: var(--r-list-item--gap,
|
|
89
|
+
gap: var(--r-list-item--gap, var(--r-spacing-100, 1rem));
|
|
96
90
|
width: var(--r-list-item--width, inherit);
|
|
97
|
-
padding: var(--r-list-item--padding,
|
|
91
|
+
padding: var(--r-list-item--padding, var(--r-spacing-100, 1rem));
|
|
98
92
|
margin-left: var(--r-list-item--margin-left, 0);
|
|
99
93
|
opacity: var(--r-list-item--opacity, 1);
|
|
100
94
|
color: var(--r-list-item--color, inherit);
|
|
@@ -102,15 +96,23 @@
|
|
|
102
96
|
outline: var(--r-list-item--outline, none);
|
|
103
97
|
outline-offset: var(--r-list-item--outline-offset, 0);
|
|
104
98
|
text-decoration: var(--r-list-item--text-decoration, none);
|
|
99
|
+
text-align: var(--r-list-item--text-align, left);
|
|
105
100
|
background-color: var(--r-list-item--background-color, transparent);
|
|
106
101
|
border-style: var(--r-list-item--border-style, solid);
|
|
107
102
|
border-width: var(--r-list-item--border-width, 0);
|
|
108
103
|
border-color: var(--r-list-item--border-color, transparent);
|
|
109
104
|
cursor: var(--r-list-item--cursor, inherit);
|
|
110
105
|
font-weight: var(--r-list-item--font-weight, var(--r-font-weight-regular, 400));
|
|
111
|
-
|
|
106
|
+
font-family: var(--r-list-item--font-family, var(--r-font-family-text, system-ui));
|
|
107
|
+
}
|
|
108
|
+
.r-list-item:focus-visible {
|
|
109
|
+
--r-list-item--box-shadow: 0 0 0 6px var(--r-border-focused-outlined, #fff);
|
|
110
|
+
--r-list-item--outline: 2px solid var(--r-border-focused, #0071e3);
|
|
111
|
+
--r-list-item--outline-offset: 2px;
|
|
112
112
|
}
|
|
113
113
|
.r-list-item--leading {
|
|
114
|
+
display: var(--r-list-item--leading--display, flex);
|
|
115
|
+
align-items: var(--r-list-item--leading--align-items, center);
|
|
114
116
|
color: var(--r-list-item--leading--color, var(--r-icon-soft, #686868));
|
|
115
117
|
}
|
|
116
118
|
.r-list-item--leading-icon {
|
|
@@ -119,7 +121,7 @@
|
|
|
119
121
|
.r-list-item--trailing {
|
|
120
122
|
display: var(--r-list-item--trailing--display, flex);
|
|
121
123
|
align-self: var(--r-list-item--trailing--align-self, center);
|
|
122
|
-
gap: var(--r-list-item--trailing--gap,
|
|
124
|
+
gap: var(--r-list-item--trailing--gap, var(--r-spacing-050, 0.5rem));
|
|
123
125
|
color: var(--r-list-item--trailing--color, inherit);
|
|
124
126
|
}
|
|
125
127
|
.r-list-item--trailing-icon {
|
|
@@ -133,33 +135,65 @@
|
|
|
133
135
|
}
|
|
134
136
|
.r-list-item--trailing ::slotted(*) {
|
|
135
137
|
display: var(--r-list-item--trailing-slotted--display, flex);
|
|
136
|
-
gap: var(--r-list-item--trailing-slotted--display,
|
|
138
|
+
gap: var(--r-list-item--trailing-slotted--display, var(--r-spacing-050, 0.5rem));
|
|
137
139
|
}
|
|
138
140
|
.r-list-item--text {
|
|
139
141
|
display: var(--r-list-item--text--display, flex);
|
|
140
142
|
flex-grow: var(--r-list-item--text--flex-grow, 1);
|
|
141
143
|
flex-direction: var(--r-list-item--text--flex-direction, column);
|
|
142
|
-
gap: var(--r-list-item--text--gap,
|
|
144
|
+
gap: var(--r-list-item--text--gap, 0.125rem);
|
|
143
145
|
white-space: var(--r-list-item--text--white-space, normal);
|
|
144
146
|
overflow: var(--r-list-item--text--overflow, hidden);
|
|
145
147
|
text-overflow: var(--r-list-item--text--text-overflow, ellipsis);
|
|
146
148
|
font-weight: var(--r-list-item--trailing-text--font-weight, inherit);
|
|
147
149
|
}
|
|
150
|
+
.r-list-item--sr-text {
|
|
151
|
+
display: var(--r-list-item--sr-text--display, none);
|
|
152
|
+
}
|
|
148
153
|
.r-list-item--headline {
|
|
149
154
|
font-size: var(--r-list-item--headline--font-size, 1rem);
|
|
150
155
|
font-weight: var(--r-list-item--headline--font-weight, 600);
|
|
151
156
|
line-height: var(--r-list-item--headline--line-height, 1.5);
|
|
152
157
|
color: var(--r-list-item--headline--color, inherit);
|
|
153
158
|
}
|
|
154
|
-
.r-list-item--
|
|
155
|
-
font-size: var(--r-list-item--description--font-size,
|
|
156
|
-
font-weight: var(--r-list-item--description--font-weight,
|
|
157
|
-
line-height: var(--r-list-item--description--line-height,
|
|
158
|
-
color: var(--r-list-item--description--color, var(--r-
|
|
159
|
+
.r-list-item--description {
|
|
160
|
+
font-size: var(--r-list-item--description--font-size, 1rem);
|
|
161
|
+
font-weight: var(--r-list-item--description--font-weight, 400);
|
|
162
|
+
line-height: var(--r-list-item--description--line-height, 1.5);
|
|
163
|
+
color: var(--r-list-item--description--color, var(--r-text-regular, #282828));
|
|
159
164
|
white-space: var(--r-list-item--description--white-space, normal);
|
|
160
165
|
overflow: var(--r-list-item--description--overflow, hidden);
|
|
161
166
|
text-overflow: var(--r-list-item--description--text-overflow, ellipsis);
|
|
162
167
|
}
|
|
163
|
-
.r-list-item--
|
|
164
|
-
color: var(--r-list-item--description--color,
|
|
168
|
+
.r-list-item--description ::slotted(a) {
|
|
169
|
+
color: var(--r-list-item--description--color, inherit);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.r-list-item-wrapper {
|
|
173
|
+
width: var(--r-list-item-wrapper--width, 100%);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.sub-items {
|
|
177
|
+
margin: var(--r-sub-items--margin, 0);
|
|
178
|
+
padding: var(--r-sub-items--padding, 0);
|
|
179
|
+
list-style-type: var(--r-sub-items--list-style-type, "");
|
|
180
|
+
}
|
|
181
|
+
.sub-items[aria-hidden=true] {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.visually-hidden {
|
|
186
|
+
position: absolute;
|
|
187
|
+
width: 0.0625rem;
|
|
188
|
+
height: 0.0625rem;
|
|
189
|
+
clip: rect(0 0 0 0);
|
|
190
|
+
clip-path: inset(50%);
|
|
191
|
+
overflow: hidden;
|
|
192
|
+
white-space: nowrap;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@media (prefers-reduced-motion) {
|
|
196
|
+
.r-list-item--trailing-icon {
|
|
197
|
+
transition: none;
|
|
198
|
+
}
|
|
165
199
|
}
|
|
@@ -5,6 +5,8 @@ export class RListItem {
|
|
|
5
5
|
this.variant = 'list-item';
|
|
6
6
|
/** Determines whether the list item is expanded to show its subitems. It can be toggled programmatically or through user interaction. */
|
|
7
7
|
this.expanded = false;
|
|
8
|
+
/** Unique id for each subItem list */
|
|
9
|
+
this.uniqueSubmitemsId = `r-list-item-subitems-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
8
10
|
this.isEl = (selector) => {
|
|
9
11
|
return this.host.querySelector(selector) !== null;
|
|
10
12
|
};
|
|
@@ -44,7 +46,11 @@ export class RListItem {
|
|
|
44
46
|
return this.isEl('[slot="headline"]');
|
|
45
47
|
}
|
|
46
48
|
get isDescriptionSlot() {
|
|
47
|
-
return this.isEl('[slot="description"]')
|
|
49
|
+
return this.isEl('[slot="description"]');
|
|
50
|
+
}
|
|
51
|
+
get headlineContent() {
|
|
52
|
+
var _a;
|
|
53
|
+
return ((_a = this.host.querySelector('[slot="headline"]')) === null || _a === void 0 ? void 0 : _a.textContent) || this.headline;
|
|
48
54
|
}
|
|
49
55
|
get hasSubitems() {
|
|
50
56
|
return this.isEl('[variant="subitem"]');
|
|
@@ -53,20 +59,12 @@ export class RListItem {
|
|
|
53
59
|
var _a;
|
|
54
60
|
return (_a = this.host) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[variant="subitem"]');
|
|
55
61
|
}
|
|
56
|
-
handleKeyDown(event) {
|
|
57
|
-
if (event.key !== 'Enter' && event.key !== ' ')
|
|
58
|
-
return;
|
|
59
|
-
this.toggleSubitems();
|
|
60
|
-
}
|
|
61
|
-
/** Prevent the click from toggling the parent **/
|
|
62
|
-
handleSubitemClick(event) {
|
|
63
|
-
event.stopPropagation();
|
|
64
|
-
}
|
|
65
62
|
/** Function to set tabindex for sub-items */
|
|
66
63
|
setTabIndexOnSubItems() {
|
|
67
64
|
if (this.hasSubitems) {
|
|
68
65
|
this.subItems.forEach((element) => {
|
|
69
|
-
|
|
66
|
+
var _a;
|
|
67
|
+
(_a = element.shadowRoot.querySelector('a.r-list-item')) === null || _a === void 0 ? void 0 : _a.setAttribute('tabindex', this.disabled ? '-1' : null);
|
|
70
68
|
});
|
|
71
69
|
}
|
|
72
70
|
}
|
|
@@ -74,26 +72,29 @@ export class RListItem {
|
|
|
74
72
|
this.setTabIndexOnSubItems();
|
|
75
73
|
}
|
|
76
74
|
get tagName() {
|
|
75
|
+
if (this.hasSubitems) {
|
|
76
|
+
return 'button';
|
|
77
|
+
}
|
|
77
78
|
return this.href && !this.disabled ? 'a' : 'div';
|
|
78
79
|
}
|
|
79
80
|
render() {
|
|
80
|
-
const { leadingIcon, leadingIconSrc, trailingIcon, trailingIconSrc, headline, trailingText,
|
|
81
|
+
const { leadingIcon, leadingIconSrc, trailingIcon, trailingIconSrc, headline, trailingText, description } = this;
|
|
81
82
|
const TagName = this.tagName;
|
|
82
|
-
const itemAttrs = Object.assign({ href: TagName === 'a' ? this.href : null }, (this.disabled ? { role: 'link', 'aria-disabled': 'true' } : null));
|
|
83
|
-
const ListItemContent = (h(TagName, Object.assign({ class: "r-list-item" }, itemAttrs), this.isLeading &&
|
|
83
|
+
const itemAttrs = Object.assign(Object.assign(Object.assign({ href: TagName === 'a' ? this.href : null, 'aria-current': this.active && TagName === 'a' ? 'page' : null }, (this.disabled ? { role: 'link', 'aria-disabled': 'true' } : null)), (this.hasSubitems ? { 'aria-expanded': `${this.expanded}` } : null)), (this.hasSubitems ? { 'aria-controls': `${this.uniqueSubmitemsId}` } : null));
|
|
84
|
+
const ListItemContent = (h(TagName, Object.assign({ class: "r-list-item" }, itemAttrs, { onClick: () => this.hasSubitems && this.toggleSubitems() }), this.isLeading &&
|
|
84
85
|
h("span", { class: "r-list-item--leading" }, h("slot", { name: "leading" }, this.isLeadingIcon && !this.hideLeadingIcon &&
|
|
85
86
|
h("r-icon", { class: "r-list-item--leading-icon", name: leadingIcon, src: leadingIconSrc }))), h("span", { class: "r-list-item--text" }, !this.isTextSlot ?
|
|
86
87
|
h(Fragment, null, (this.isHeadlineSlot || headline) &&
|
|
87
|
-
h("span", { class: "r-list-item--headline" }, h("slot", { name: "headline" }, headline)), (description || this.isDescriptionSlot
|
|
88
|
-
h("span", { class: "r-list-item--description" }, h("slot", { name: "
|
|
88
|
+
h("span", { class: "r-list-item--headline" }, h("slot", { name: "headline" }, headline)), (description || this.isDescriptionSlot) &&
|
|
89
|
+
h("span", { class: "r-list-item--description" }, h("slot", { name: "description" }, description)))
|
|
89
90
|
:
|
|
90
|
-
h("slot", { name: "text" })), this.isTrailing &&
|
|
91
|
+
h("slot", { name: "text" })), h("span", { class: "r-list-item--sr-text visually-hidden" }, this.headlineContent), this.isTrailing &&
|
|
91
92
|
h("span", { class: "r-list-item--trailing" }, h("slot", { name: "trailing" }, this.isTrailingIcon && !trailingText &&
|
|
92
93
|
h("r-icon", { class: "r-list-item--trailing-icon", name: trailingIcon, src: trailingIconSrc }), trailingText && !this.isTrailingIcon &&
|
|
93
94
|
h("span", { class: "r-list-item--trailing-text" }, trailingText)))));
|
|
94
95
|
if (!this.hasSubitems)
|
|
95
96
|
return h(Host, null, ListItemContent);
|
|
96
|
-
return (h(Host,
|
|
97
|
+
return (h(Host, null, h("div", { class: "r-list-item-wrapper" }, ListItemContent, h("ul", { "aria-hidden": `${!this.expanded}`, id: this.uniqueSubmitemsId, class: "sub-items" }, h("slot", null)))));
|
|
97
98
|
}
|
|
98
99
|
static get is() { return "r-list-item"; }
|
|
99
100
|
static get encapsulation() { return "shadow"; }
|
|
@@ -128,28 +129,6 @@ export class RListItem {
|
|
|
128
129
|
"setter": false,
|
|
129
130
|
"reflect": false
|
|
130
131
|
},
|
|
131
|
-
"subtext": {
|
|
132
|
-
"type": "string",
|
|
133
|
-
"attribute": "subtext",
|
|
134
|
-
"mutable": false,
|
|
135
|
-
"complexType": {
|
|
136
|
-
"original": "string",
|
|
137
|
-
"resolved": "string",
|
|
138
|
-
"references": {}
|
|
139
|
-
},
|
|
140
|
-
"required": false,
|
|
141
|
-
"optional": true,
|
|
142
|
-
"docs": {
|
|
143
|
-
"tags": [{
|
|
144
|
-
"name": "deprecated",
|
|
145
|
-
"text": "Use `description` instead. Will be removed November 2025.\nSecondary text displayed below the headline (2nd slot), used for additional details or context."
|
|
146
|
-
}],
|
|
147
|
-
"text": ""
|
|
148
|
-
},
|
|
149
|
-
"getter": false,
|
|
150
|
-
"setter": false,
|
|
151
|
-
"reflect": false
|
|
152
|
-
},
|
|
153
132
|
"description": {
|
|
154
133
|
"type": "string",
|
|
155
134
|
"attribute": "description",
|
|
@@ -441,6 +420,25 @@ export class RListItem {
|
|
|
441
420
|
"setter": false,
|
|
442
421
|
"reflect": true,
|
|
443
422
|
"defaultValue": "false"
|
|
423
|
+
},
|
|
424
|
+
"active": {
|
|
425
|
+
"type": "boolean",
|
|
426
|
+
"attribute": "active",
|
|
427
|
+
"mutable": false,
|
|
428
|
+
"complexType": {
|
|
429
|
+
"original": "boolean",
|
|
430
|
+
"resolved": "boolean",
|
|
431
|
+
"references": {}
|
|
432
|
+
},
|
|
433
|
+
"required": false,
|
|
434
|
+
"optional": true,
|
|
435
|
+
"docs": {
|
|
436
|
+
"tags": [],
|
|
437
|
+
"text": "Indicates whether the list item is currently active (e.g., represents the current page)."
|
|
438
|
+
},
|
|
439
|
+
"getter": false,
|
|
440
|
+
"setter": false,
|
|
441
|
+
"reflect": true
|
|
444
442
|
}
|
|
445
443
|
};
|
|
446
444
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
--r-panel--min-width:
|
|
2
|
+
--r-panel--min-width: 18.75rem;
|
|
3
3
|
--r-panel--background-color: var(--r-background-soft, #F3F1F0);
|
|
4
4
|
--r-panel--display: flex;
|
|
5
5
|
--r-panel--flex-direction: column;
|
|
6
6
|
--r-panel--position: fixed;
|
|
7
7
|
--r-panel--align-items: flex-start;
|
|
8
8
|
--r-panel--top: 0;
|
|
9
|
-
--r-panel--padding:
|
|
10
|
-
--r-panel--width:
|
|
9
|
+
--r-panel--padding: 8px 0;
|
|
10
|
+
--r-panel--width: 18.75rem;
|
|
11
11
|
--r-panel--height: 100%;
|
|
12
12
|
--r-panel--color: var(--r-text-regular, #282828);
|
|
13
13
|
--r-panel--transition: all 250ms ease-in-out;
|
|
@@ -15,37 +15,41 @@
|
|
|
15
15
|
--r-panel--font-family: var(--r-font-family-text);
|
|
16
16
|
--r-panel--left: 0;
|
|
17
17
|
--r-panel--header--display: flex;
|
|
18
|
-
--r-panel--header--padding:
|
|
18
|
+
--r-panel--header--padding: 12px 16px;
|
|
19
19
|
--r-panel--header--justify-content: space-between;
|
|
20
20
|
--r-panel--header--align-items: center;
|
|
21
21
|
--r-panel--header--align-self: stretch;
|
|
22
22
|
--r-panel--header--icon-rotate: none;
|
|
23
23
|
--r-panel--header--flex-direction: row;
|
|
24
|
-
--r-panel--header--gap:
|
|
24
|
+
--r-panel--header--gap: 3.125rem;
|
|
25
25
|
--r-panel--header--logo--img--width: 100%;
|
|
26
26
|
--r-panel--header--logo--img--height: auto;
|
|
27
|
-
--r-panel--header--logo--img--expanded--width:
|
|
28
|
-
--r-panel--header--logo--img--collapsed--width:
|
|
27
|
+
--r-panel--header--logo--img--expanded--width: 12rem;
|
|
28
|
+
--r-panel--header--logo--img--collapsed--width: 1.875rem;
|
|
29
29
|
--r-panel--header--height: unset;
|
|
30
30
|
--r-panel--body--display: block;
|
|
31
31
|
--r-panel--body--flex-grow: 1;
|
|
32
32
|
--r-panel--body--align-self: stretch;
|
|
33
33
|
--r-panel--body--overflow: auto;
|
|
34
|
-
--r-panel--body--padding:
|
|
34
|
+
--r-panel--body--padding: 4px 8px 0;
|
|
35
35
|
--r-panel--body-header--color: var(--r-text-soft, #686868);
|
|
36
|
-
--r-panel--body-header--
|
|
37
|
-
--r-panel--body-header--
|
|
36
|
+
--r-panel--body-header--font-size: var(--r-font-size-400, 1rem);
|
|
37
|
+
--r-panel--body-header--font-weight: var(--r-font-weight-regular, 400);
|
|
38
|
+
--r-panel--body-header--padding: 16px 0;
|
|
39
|
+
--r-panel--body-header--width: 16.75rem;
|
|
40
|
+
--r-panel--body-header--margin: 0px;
|
|
38
41
|
--r-panel--footer--dispay: flex;
|
|
39
|
-
--r-panel--footer--
|
|
42
|
+
--r-panel--footer--width: 100%;
|
|
43
|
+
--r-panel--footer--padding: 16px 16px 24px;
|
|
40
44
|
--r-panel--footer--flex-direction: column;
|
|
41
45
|
--r-panel--footer--justify-content: center;
|
|
42
|
-
--r-panel--footer-gap: var(--spacing-100,
|
|
46
|
+
--r-panel--footer-gap: var(--spacing-100, 1rem);
|
|
43
47
|
--r-panel--footer--align-self: stretch;
|
|
44
48
|
--r-panel--footer--text-align: center;
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
:host([variant=drawer]) r-button {
|
|
48
|
-
--r-button--padding:
|
|
52
|
+
--r-button--padding: 0.625rem;
|
|
49
53
|
--r-button--background: var(--r-background-interactive-softer, #E7E4E2);
|
|
50
54
|
--r-button--border-radius: 10%;
|
|
51
55
|
--r-button--slot--position: relative;
|
|
@@ -53,13 +57,13 @@
|
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
:host([variant=drawer][collapsed]) {
|
|
56
|
-
--r-panel--width:
|
|
60
|
+
--r-panel--width: var(--r-spacing-450, 4.5rem);
|
|
57
61
|
--r-panel--header--display: none;
|
|
58
62
|
--r-panel--header--icon-rotate: rotate(180deg);
|
|
59
63
|
--r-panel--header--logo--expaned--display: none;
|
|
60
64
|
--r-panel--header--logo--collapsed--display: block;
|
|
61
65
|
--r-panel--header--flex-direction: column;
|
|
62
|
-
--r-panel--header--gap:
|
|
66
|
+
--r-panel--header--gap: 0.625rem;
|
|
63
67
|
--r-list-item--epxanded--background-color: rgba(40, 40, 40, 0.08);
|
|
64
68
|
}
|
|
65
69
|
:host([variant=drawer][collapsed]) r-button {
|
|
@@ -73,14 +77,15 @@
|
|
|
73
77
|
|
|
74
78
|
:host([collapsed]:not([variant=modal])) {
|
|
75
79
|
--r-panel--min-width: 0;
|
|
80
|
+
--r-list-item--sr-text--display: block;
|
|
76
81
|
--r-list-item--text--display: none;
|
|
77
82
|
--r-list-item--trailing--display: none;
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
:host([variant=drawer]:not([has-header]):not([collapsed])),
|
|
81
86
|
:host([variant=drawer][has-header=false]:not([collapsed])) {
|
|
82
|
-
--r-panel--header--height:
|
|
83
|
-
--r-panel--header--padding:
|
|
87
|
+
--r-panel--header--height: var(--spacing-150, 1.5rem);
|
|
88
|
+
--r-panel--header--padding: 12px 8px 0 16px;
|
|
84
89
|
}
|
|
85
90
|
:host([variant=drawer]:not([has-header]):not([collapsed])) r-button,
|
|
86
91
|
:host([variant=drawer][has-header=false]:not([collapsed])) r-button {
|
|
@@ -154,9 +159,15 @@
|
|
|
154
159
|
}
|
|
155
160
|
.r-panel--body ::slotted(.header) {
|
|
156
161
|
color: var(--r-panel--body-header--color);
|
|
162
|
+
font-size: var(--r-panel--body-header--font-size);
|
|
163
|
+
font-weight: var(--r-panel--body-header--font-weight);
|
|
157
164
|
padding: var(--r-panel--body-header--padding);
|
|
158
165
|
display: var(--r-panel--header--display);
|
|
159
166
|
width: var(--r-panel--body-header--width);
|
|
167
|
+
margin: var(--r-panel--body-header--margin);
|
|
168
|
+
}
|
|
169
|
+
.r-panel--footer {
|
|
170
|
+
width: var(--r-panel--footer--width);
|
|
160
171
|
}
|
|
161
172
|
.r-panel ::slotted([slot=footer]) {
|
|
162
173
|
display: var(--r-panel--footer--dispay);
|
|
@@ -167,3 +178,15 @@
|
|
|
167
178
|
align-self: var(--r-panel--footer--align-self);
|
|
168
179
|
text-align: var(--r-panel--footer--text-align);
|
|
169
180
|
}
|
|
181
|
+
.r-panel ::slotted(ul) {
|
|
182
|
+
margin: var(--r-panel--item-list--margin, 0);
|
|
183
|
+
padding: var(--r-panel--item-list--padding, 0);
|
|
184
|
+
list-style-type: var(--r-panel--item-list--list-style-type, "");
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@media (prefers-reduced-motion) {
|
|
188
|
+
.r-panel,
|
|
189
|
+
:host([variant=drawer][collapsed]) r-button {
|
|
190
|
+
transition: none;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -12,9 +12,9 @@ export class Panel {
|
|
|
12
12
|
/** A boolean property that determines the collapsed state of the component. The default state is `false`. */
|
|
13
13
|
this.collapsed = false;
|
|
14
14
|
/** Aria-label text for collapse */
|
|
15
|
-
this.labelCollapse = '
|
|
15
|
+
this.labelCollapse = 'Collapse panel';
|
|
16
16
|
/** Aria-label text for expand */
|
|
17
|
-
this.labelExpand = '
|
|
17
|
+
this.labelExpand = 'Expand panel';
|
|
18
18
|
this.isCollapsed = this.collapsed;
|
|
19
19
|
// Pre-bound method for event listeners
|
|
20
20
|
this.updateCurrentLocationBound = this.updateCurrentLocation.bind(this);
|
|
@@ -161,10 +161,10 @@ export class Panel {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
render() {
|
|
164
|
-
return (h(Host, { key: '
|
|
164
|
+
return (h(Host, { key: 'aace877d6d376afd9cbac880bdc7d462ccee34e7', role: "navigation", collapsed: this.isCollapsed }, h("div", { key: 'c07a80d9fbefa984af49e105c37675585241dc96', class: "r-panel" }, h("div", { key: '6b16c3af37e340153a9449704bee1d9925309fd6', class: "r-panel--header" }, this.hasHeader && (h("a", { key: '56d04db007a0305db77010fc59b23467c4ab347a', class: "logo-wrapper", href: this.logoLink }, this.isCollapsed ?
|
|
165
165
|
h("slot", { name: "logo-collapsed" })
|
|
166
166
|
:
|
|
167
|
-
h("slot", { name: "logo-expanded" }))), this.variant === 'modal' ? (h("r-button", { class: "r-panel--trigger", variant: "blank",
|
|
167
|
+
h("slot", { name: "logo-expanded" }))), this.variant === 'modal' ? (h("r-button", { class: "r-panel--trigger", variant: "blank", icon: "cross", rAriaLabel: `${this.labelCollapse}`, onClick: this.handleFullyCollapsedButtonClick })) : this.variant === 'drawer' ? (h("r-button", { class: "r-panel--trigger", variant: "blank", icon: "angle-left", rAriaLabel: this.isCollapsed ? `${this.labelExpand}` : `${this.labelCollapse}`, onClick: this.handleSemiCollapsedButtonClick })) : this.variant === 'visible' ? (null) : null), h("div", { key: '4d88759343c8172d7b0c8f4750ba3bbb0d027586', class: "r-panel--body" }, h("slot", { key: '8a238430717fa44459b784a27b45f12dcb0b20d3' })), this.hasFooter && !this.isCollapsed && (h("div", { key: '74bc26fe68ea907ea844f1b36ab78be45ffd1540', class: "r-panel--footer" }, h("slot", { key: 'bd294360e84e060493088d42b6dd022e4d3058a9', name: "footer" }))))));
|
|
168
168
|
}
|
|
169
169
|
static get is() { return "r-panel"; }
|
|
170
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -342,7 +342,7 @@ export class Panel {
|
|
|
342
342
|
"getter": false,
|
|
343
343
|
"setter": false,
|
|
344
344
|
"reflect": false,
|
|
345
|
-
"defaultValue": "'
|
|
345
|
+
"defaultValue": "'Collapse panel'"
|
|
346
346
|
},
|
|
347
347
|
"labelExpand": {
|
|
348
348
|
"type": "string",
|
|
@@ -362,7 +362,7 @@ export class Panel {
|
|
|
362
362
|
"getter": false,
|
|
363
363
|
"setter": false,
|
|
364
364
|
"reflect": false,
|
|
365
|
-
"defaultValue": "'
|
|
365
|
+
"defaultValue": "'Expand panel'"
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
368
|
}
|
|
@@ -20,14 +20,6 @@
|
|
|
20
20
|
--pointer--spacer: 0.25rem;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
:host([size=s]) {
|
|
24
|
-
--r-popover--board--max-width: 375px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
:host([size=l]) {
|
|
28
|
-
--r-popover--board--max-width: 500px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
23
|
:host([data-open=true]) {
|
|
32
24
|
--r-popover--pointer--display: block;
|
|
33
25
|
--r-popover--board--visibility: visible;
|
|
@@ -219,8 +211,8 @@
|
|
|
219
211
|
left: var(--r-popover--board--left, -1000em);
|
|
220
212
|
visibility: var(--r-popover--board--visibility, hidden);
|
|
221
213
|
width: var(--r-popover--board--width, 100%);
|
|
222
|
-
min-width: var(--
|
|
223
|
-
max-width: var(--
|
|
214
|
+
min-width: var(--board--min-width);
|
|
215
|
+
max-width: var(--board--max-width);
|
|
224
216
|
height: var(--r-popover--board--height, auto);
|
|
225
217
|
max-height: var(--r-popover--board--max-height, var(--board--max-height));
|
|
226
218
|
background-color: var(--r-popover--board--background-color, var(--r-background-inverse));
|
|
@@ -280,8 +280,8 @@ export class Popover {
|
|
|
280
280
|
this.open ? this.show() : this.hide();
|
|
281
281
|
}
|
|
282
282
|
render() {
|
|
283
|
-
return (h(Host, { key: '
|
|
284
|
-
h("r-icon-button", { key: '
|
|
283
|
+
return (h(Host, { key: '13318df823b3f54e05823c9fc9821839f56583b2', id: this.uniqueId, "data-position": this.positionState, "data-open": `${this.isOpen}`, open: this.isOpen }, h("div", { key: '3f750ac2a82236f6a4074fa419b44f0c42f2b7e6', class: "r-popover" }, h("button", { key: '46e4bb247c2eda0e0cc0c4774acac6daf8801bc4', class: "r-popover--trigger", "aria-label": this.triggerAriaLabel, ref: el => this.triggerElement = el, popoverTarget: `${this.uniqueId}-board`, popoverTargetAction: this.triggerAction }, h("slot", { key: 'fac2e6d0ee9ac8830df16d379a0ec5e873becd58', name: "trigger" })), h("div", { key: '636c2ee45476903dc8b812924081f3b45499b18a', class: "r-popover--board", id: `${this.uniqueId}-board`, popover: this.dismissMode, ref: el => this.boardElement = el, onToggle: this.onToggle, onKeyDown: this.onKeyDown }, this.hasDismiss &&
|
|
284
|
+
h("r-icon-button", { key: '4f6a1168587faf500cddb85981f0dd7209af4020', ref: el => this.dismissElement = el, class: "r-popover--dismiss", name: "cross", onClick: this.onClickDismiss, label: this.dismissAriaLabel }), h("div", { key: 'bfa17c2df8022a01192550c315ba32e3a5247e3f', class: "r-popover--board-content" }, h("slot", { key: '001d74737028aee0d413e9ed679ff853070d5559', name: "headline" }), h("slot", { key: '9a33119f2e2f6bf10f0005f83283a1e964332583', name: "content" }), h("slot", { key: '2ff477aed3ef83d6bfff4fb3fdaeb3501dfba7c7', name: "action" })), h("div", { key: '6c0b891bc2e9def0892f65fe8882deef565b2037', class: "r-popover--board-pointer", "aria-hidden": "true" }, h("svg", { key: 'e9da72e80bb395041f4a9cc269cf835b643a335c', width: "16", height: "8", viewBox: "0 0 16 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '44eb8e0fa2c3d294074787595097fcdf82311052', d: "M8 8L0 0L16 0L8 8Z", fill: "currentColor" })))))));
|
|
285
285
|
}
|
|
286
286
|
static get is() { return "r-popover"; }
|
|
287
287
|
static get encapsulation() { return "shadow"; }
|
|
@@ -319,37 +319,6 @@ export class Popover {
|
|
|
319
319
|
"setter": false,
|
|
320
320
|
"reflect": true
|
|
321
321
|
},
|
|
322
|
-
"size": {
|
|
323
|
-
"type": "string",
|
|
324
|
-
"attribute": "size",
|
|
325
|
-
"mutable": false,
|
|
326
|
-
"complexType": {
|
|
327
|
-
"original": "PopoverSize",
|
|
328
|
-
"resolved": "\"l\" | \"s\"",
|
|
329
|
-
"references": {
|
|
330
|
-
"PopoverSize": {
|
|
331
|
-
"location": "import",
|
|
332
|
-
"path": "./exports",
|
|
333
|
-
"id": "src/components/popover/exports.ts::PopoverSize"
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
"required": false,
|
|
338
|
-
"optional": false,
|
|
339
|
-
"docs": {
|
|
340
|
-
"tags": [{
|
|
341
|
-
"name": "default",
|
|
342
|
-
"text": "\"s\""
|
|
343
|
-
}, {
|
|
344
|
-
"name": "deprecated",
|
|
345
|
-
"text": "This property will be removed in November 2025 release."
|
|
346
|
-
}],
|
|
347
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nSize of the Popover: `s` | `l`."
|
|
348
|
-
},
|
|
349
|
-
"getter": false,
|
|
350
|
-
"setter": false,
|
|
351
|
-
"reflect": true
|
|
352
|
-
},
|
|
353
322
|
"dismissMode": {
|
|
354
323
|
"type": "string",
|
|
355
324
|
"attribute": "dismiss-mode",
|
|
@@ -446,28 +415,6 @@ export class Popover {
|
|
|
446
415
|
"setter": false,
|
|
447
416
|
"reflect": false
|
|
448
417
|
},
|
|
449
|
-
"containerAriaLabel": {
|
|
450
|
-
"type": "string",
|
|
451
|
-
"attribute": "container-aria-label",
|
|
452
|
-
"mutable": false,
|
|
453
|
-
"complexType": {
|
|
454
|
-
"original": "string",
|
|
455
|
-
"resolved": "string",
|
|
456
|
-
"references": {}
|
|
457
|
-
},
|
|
458
|
-
"required": false,
|
|
459
|
-
"optional": true,
|
|
460
|
-
"docs": {
|
|
461
|
-
"tags": [{
|
|
462
|
-
"name": "deprecated",
|
|
463
|
-
"text": "This property will be removed in December 2025 release."
|
|
464
|
-
}],
|
|
465
|
-
"text": "Defines `aria-label` content for the popover container.\nUsed for accessibility to describe the popover content area."
|
|
466
|
-
},
|
|
467
|
-
"getter": false,
|
|
468
|
-
"setter": false,
|
|
469
|
-
"reflect": false
|
|
470
|
-
},
|
|
471
418
|
"vertical": {
|
|
472
419
|
"type": "string",
|
|
473
420
|
"attribute": "vertical",
|
|
@@ -64,7 +64,7 @@ export class PopoverAction {
|
|
|
64
64
|
return focusableElements(this.host);
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '898d4a649622403956b34ea5065ca5135e67c595', slot: "action" }, h("slot", { key: 'f61e085a1797778c33f07eaf3987cd743d56a662', onSlotchange: this.handleSlotChange })));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "r-popover-action"; }
|
|
70
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,7 +44,7 @@ export class PopoverContent {
|
|
|
44
44
|
return focusableElements(this.host);
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: 'b85780e40b627c6d859af763113bc88e21768f88', slot: "content", class: "r-typography" }, h("slot", { key: '7bd5e6152e29a4e20d837c21e1df7bff68a673da' })));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "r-popover-content"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class PopoverHeadline {
|
|
|
10
10
|
stopInverseThemeAwareness(this.host, themeContextElement);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '6b604401e4e82c17a300f00d6af33902b38f493c', slot: "headline" }, h("slot", { key: '64c8c6ff661e0317ba3ae0d4f32f6424d91fccbe' })));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "r-popover-headline"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,7 +53,7 @@ export class PopoverTrigger {
|
|
|
53
53
|
(_a = this.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: 'fe285ee3a91600ee0e0cebeb9f5818eb30d89f06', slot: "trigger", onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("slot", { key: '3782871f7aac634d3c1ccef2f516cdf00916b4f6' })));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "r-popover-trigger"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,7 @@ export class ProgressBar {
|
|
|
11
11
|
max: '100',
|
|
12
12
|
'aria-label': rAriaLabel
|
|
13
13
|
};
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'f79c73155a42eef63910abde1fc2cebd147b7129' }, h("progress", Object.assign({ key: 'ce94e9a20124fa8cd1561612e2797e17f0ebe19f' }, progressBarAttrs, { class: "r-progress-bar" }))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "r-progress-bar"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|