@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
|
@@ -9,19 +9,8 @@ import StyleObserver from "style-observer";
|
|
|
9
9
|
*/
|
|
10
10
|
export class Select {
|
|
11
11
|
constructor() {
|
|
12
|
-
/** Controls the visibility of validation indicators for the field. */
|
|
13
|
-
this.showValid = false;
|
|
14
12
|
/** Define if select should render as a text item or a block */
|
|
15
13
|
this.fullWidth = false;
|
|
16
|
-
/** _DEPRECATED_ (This property will be removed in November 2025 release. Use `leading slot` instead)
|
|
17
|
-
* Define size of an icon that serves as leading icon in select */
|
|
18
|
-
this.leadingIconSize = 's';
|
|
19
|
-
/** _DEPRECATED_ (This property will be removed in November 2025 release.)
|
|
20
|
-
* Defines the trailing icon defined by name for select, Default: 'andle-down' */
|
|
21
|
-
this.trailingIcon = 'angle-down';
|
|
22
|
-
/** _DEPRECATED_ (This property will be removed in November 2025 release.)
|
|
23
|
-
* Define size of an icon that serves as trailing icon in select */
|
|
24
|
-
this.tralingIconSize = 's';
|
|
25
14
|
/** Define wether listbox appears on top or at the bottom of the select */
|
|
26
15
|
this.listboxPosition = 'bottom';
|
|
27
16
|
/**
|
|
@@ -1025,11 +1014,8 @@ export class Select {
|
|
|
1025
1014
|
var _a;
|
|
1026
1015
|
return this.validityState !== 'valid' && ((_a = this.validityMessage) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
1027
1016
|
}
|
|
1028
|
-
get hasValidationSuccess() {
|
|
1029
|
-
return this.valid && this.validMessage && this.showValid;
|
|
1030
|
-
}
|
|
1031
1017
|
get hasMessage() {
|
|
1032
|
-
return this.hasError || this.hasValidationError
|
|
1018
|
+
return this.hasError || this.hasValidationError;
|
|
1033
1019
|
}
|
|
1034
1020
|
get isInteractive() {
|
|
1035
1021
|
return !this.disabled && !this.isReadonly;
|
|
@@ -1064,14 +1050,10 @@ export class Select {
|
|
|
1064
1050
|
}
|
|
1065
1051
|
render() {
|
|
1066
1052
|
var _a;
|
|
1067
|
-
const { uniqueId, disabled, isExpanded, fieldIndicator, invalid, placeholder, required, hint, label, internal
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
tooltip,
|
|
1071
|
-
'tooltip-icon': tooltipIcon,
|
|
1072
|
-
'tooltip-icon-color': tooltipIconColor,
|
|
1053
|
+
const { uniqueId, disabled, isExpanded, fieldIndicator, invalid, placeholder, required, hint, label, internal } = this;
|
|
1054
|
+
const labelAttr = label ? {
|
|
1055
|
+
fieldIndicator
|
|
1073
1056
|
} : {};
|
|
1074
|
-
const labelAttr = label ? Object.assign({ fieldIndicator }, tooltipAttrs) : {};
|
|
1075
1057
|
const isRequired = this.isInteractive ? !!required : false;
|
|
1076
1058
|
const comboboxAttrs = {
|
|
1077
1059
|
id: `${uniqueId}-value`,
|
|
@@ -1098,8 +1080,8 @@ export class Select {
|
|
|
1098
1080
|
disabled,
|
|
1099
1081
|
required: isRequired
|
|
1100
1082
|
};
|
|
1101
|
-
return (h(Host, { key: '
|
|
1102
|
-
h("r-hint", { key: '
|
|
1083
|
+
return (h(Host, { key: '7f1fb8ee95b7da1cd7aad0d212d1efa9da744dc2', "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}`, "data-touched": `${this.touched}`, "data-dirty": `${this.dirty}` }, h("div", { key: 'cb2a21da12f1f1c0dc298f42338d32b709f62375', class: `r-select--label ${!internal ? 'r-select--label__margin-bottom' : ''}` }, h("div", { key: 'd293ba41b9846d24ba4a2c44fb8fcb9895637c03', class: internal ? 'visually-hidden' : 'r-select--label-container' }, h("label", { key: 'b562d22174f435deed545a94d0fd7ce0233ba3de', id: `${uniqueId}-label`, onClick: this.isInteractive ? this.onValueClick : null }, h("r-label", Object.assign({ key: '2412f39f04b62a1fac018b588fb463efc9760ae0' }, labelAttr), label)), h("slot", { key: '99c5c78534118199fc1e99daac2737b78d55bc28', name: "popover" })), hint &&
|
|
1084
|
+
h("r-hint", { key: '74f3cf98c25ba600e8faf8a1793d56ab14c01466', id: `${uniqueId}-hint`, class: "r-select--hint" }, hint)), h("div", { key: '1960780639c8896bc52d1b62269d9453645132ef', class: "r-select" }, h("select", Object.assign({ key: '2b9d75c37066bfeb8e06b4097ecc73bd96358702', class: "r-select--native", ref: el => this.nativeElement = el }, nativeAttrs)), h("div", { key: '3eff5f8f263a013e0ba7ba64eace1da6167b6d1f', class: "r-select--container" }, this.combobox ? this.renderCombobox(comboboxAttrs) : this.renderSelect(comboboxAttrs), h("div", Object.assign({ key: 'bbfb28e905d17feee0bd2693faac327d8ef97894', 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: '319993c58f2133c271c2db357d22132497751958', "data-no-results": "true", value: "no_results" }, this.noResultsFound), h("slot", { key: 'bbb21659679bb22e3aeb9471a34e3e007ab835d8', onSlotchange: this.handleSlotChange })))), h("div", { key: '5971e5c4f3bbb453dcae9f3ecbdf2c2f14cf0293', 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: '1c1aba3c4f3baa93cd6ecab59dd40d99ad5bd0b2', variant: this.invalid ? 'error' : 'success' }, this.hasError && this.error, this.hasValidationError && this.validityMessage))));
|
|
1103
1085
|
}
|
|
1104
1086
|
static get is() { return "r-select"; }
|
|
1105
1087
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1229,69 +1211,6 @@ export class Select {
|
|
|
1229
1211
|
"setter": false,
|
|
1230
1212
|
"reflect": true
|
|
1231
1213
|
},
|
|
1232
|
-
"tooltip": {
|
|
1233
|
-
"type": "string",
|
|
1234
|
-
"attribute": "tooltip",
|
|
1235
|
-
"mutable": false,
|
|
1236
|
-
"complexType": {
|
|
1237
|
-
"original": "string",
|
|
1238
|
-
"resolved": "string",
|
|
1239
|
-
"references": {}
|
|
1240
|
-
},
|
|
1241
|
-
"required": false,
|
|
1242
|
-
"optional": true,
|
|
1243
|
-
"docs": {
|
|
1244
|
-
"tags": [],
|
|
1245
|
-
"text": "_DEPRECATED_ (Use popover slot instead. This property will be removed in November 2025 release.)\nLabel tooltip text"
|
|
1246
|
-
},
|
|
1247
|
-
"getter": false,
|
|
1248
|
-
"setter": false,
|
|
1249
|
-
"reflect": true
|
|
1250
|
-
},
|
|
1251
|
-
"tooltipIcon": {
|
|
1252
|
-
"type": "string",
|
|
1253
|
-
"attribute": "tooltip-icon",
|
|
1254
|
-
"mutable": false,
|
|
1255
|
-
"complexType": {
|
|
1256
|
-
"original": "IconName",
|
|
1257
|
-
"resolved": "string",
|
|
1258
|
-
"references": {
|
|
1259
|
-
"IconName": {
|
|
1260
|
-
"location": "import",
|
|
1261
|
-
"path": "../icon/exports",
|
|
1262
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
},
|
|
1266
|
-
"required": false,
|
|
1267
|
-
"optional": true,
|
|
1268
|
-
"docs": {
|
|
1269
|
-
"tags": [],
|
|
1270
|
-
"text": "_DEPRECATED_ (Use popover slot instead. This property will be removed in November 2025 release.)\nLabel tooltip trigger icon"
|
|
1271
|
-
},
|
|
1272
|
-
"getter": false,
|
|
1273
|
-
"setter": false,
|
|
1274
|
-
"reflect": false
|
|
1275
|
-
},
|
|
1276
|
-
"tooltipIconColor": {
|
|
1277
|
-
"type": "string",
|
|
1278
|
-
"attribute": "tooltip-icon-color",
|
|
1279
|
-
"mutable": false,
|
|
1280
|
-
"complexType": {
|
|
1281
|
-
"original": "string",
|
|
1282
|
-
"resolved": "string",
|
|
1283
|
-
"references": {}
|
|
1284
|
-
},
|
|
1285
|
-
"required": false,
|
|
1286
|
-
"optional": true,
|
|
1287
|
-
"docs": {
|
|
1288
|
-
"tags": [],
|
|
1289
|
-
"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."
|
|
1290
|
-
},
|
|
1291
|
-
"getter": false,
|
|
1292
|
-
"setter": false,
|
|
1293
|
-
"reflect": false
|
|
1294
|
-
},
|
|
1295
1214
|
"placeholder": {
|
|
1296
1215
|
"type": "string",
|
|
1297
1216
|
"attribute": "placeholder",
|
|
@@ -1349,31 +1268,6 @@ export class Select {
|
|
|
1349
1268
|
"setter": false,
|
|
1350
1269
|
"reflect": true
|
|
1351
1270
|
},
|
|
1352
|
-
"disabledIcon": {
|
|
1353
|
-
"type": "string",
|
|
1354
|
-
"attribute": "disabled-icon",
|
|
1355
|
-
"mutable": false,
|
|
1356
|
-
"complexType": {
|
|
1357
|
-
"original": "IconName",
|
|
1358
|
-
"resolved": "string",
|
|
1359
|
-
"references": {
|
|
1360
|
-
"IconName": {
|
|
1361
|
-
"location": "import",
|
|
1362
|
-
"path": "../icon/exports",
|
|
1363
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
},
|
|
1367
|
-
"required": false,
|
|
1368
|
-
"optional": true,
|
|
1369
|
-
"docs": {
|
|
1370
|
-
"tags": [],
|
|
1371
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nDefines the trailing icon for select in disabled state"
|
|
1372
|
-
},
|
|
1373
|
-
"getter": false,
|
|
1374
|
-
"setter": false,
|
|
1375
|
-
"reflect": false
|
|
1376
|
-
},
|
|
1377
1271
|
"required": {
|
|
1378
1272
|
"type": "boolean",
|
|
1379
1273
|
"attribute": "required",
|
|
@@ -1412,64 +1306,6 @@ export class Select {
|
|
|
1412
1306
|
"setter": false,
|
|
1413
1307
|
"reflect": true
|
|
1414
1308
|
},
|
|
1415
|
-
"optional": {
|
|
1416
|
-
"type": "boolean",
|
|
1417
|
-
"attribute": "optional",
|
|
1418
|
-
"mutable": false,
|
|
1419
|
-
"complexType": {
|
|
1420
|
-
"original": "boolean",
|
|
1421
|
-
"resolved": "boolean",
|
|
1422
|
-
"references": {}
|
|
1423
|
-
},
|
|
1424
|
-
"required": false,
|
|
1425
|
-
"optional": true,
|
|
1426
|
-
"docs": {
|
|
1427
|
-
"tags": [],
|
|
1428
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release. Use `fieldIndicator` instead) Marks the field as optional"
|
|
1429
|
-
},
|
|
1430
|
-
"getter": false,
|
|
1431
|
-
"setter": false,
|
|
1432
|
-
"reflect": false
|
|
1433
|
-
},
|
|
1434
|
-
"optionalText": {
|
|
1435
|
-
"type": "string",
|
|
1436
|
-
"attribute": "optional-text",
|
|
1437
|
-
"mutable": false,
|
|
1438
|
-
"complexType": {
|
|
1439
|
-
"original": "string",
|
|
1440
|
-
"resolved": "string",
|
|
1441
|
-
"references": {}
|
|
1442
|
-
},
|
|
1443
|
-
"required": false,
|
|
1444
|
-
"optional": true,
|
|
1445
|
-
"docs": {
|
|
1446
|
-
"tags": [],
|
|
1447
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release. Use `fieldIndicator` instead)\nDefine the optional marker text if the field is marked as optional"
|
|
1448
|
-
},
|
|
1449
|
-
"getter": false,
|
|
1450
|
-
"setter": false,
|
|
1451
|
-
"reflect": true
|
|
1452
|
-
},
|
|
1453
|
-
"showValid": {
|
|
1454
|
-
"type": "boolean",
|
|
1455
|
-
"attribute": "show-valid",
|
|
1456
|
-
"mutable": false,
|
|
1457
|
-
"complexType": {
|
|
1458
|
-
"original": "boolean",
|
|
1459
|
-
"resolved": "boolean",
|
|
1460
|
-
"references": {}
|
|
1461
|
-
},
|
|
1462
|
-
"required": false,
|
|
1463
|
-
"optional": false,
|
|
1464
|
-
"docs": {
|
|
1465
|
-
"tags": [],
|
|
1466
|
-
"text": "Controls the visibility of validation indicators for the field."
|
|
1467
|
-
},
|
|
1468
|
-
"getter": false,
|
|
1469
|
-
"setter": false,
|
|
1470
|
-
"reflect": false,
|
|
1471
|
-
"defaultValue": "false"
|
|
1472
|
-
},
|
|
1473
1309
|
"valid": {
|
|
1474
1310
|
"type": "boolean",
|
|
1475
1311
|
"attribute": "valid",
|
|
@@ -1547,147 +1383,6 @@ export class Select {
|
|
|
1547
1383
|
"reflect": true,
|
|
1548
1384
|
"defaultValue": "false"
|
|
1549
1385
|
},
|
|
1550
|
-
"leadingIcon": {
|
|
1551
|
-
"type": "string",
|
|
1552
|
-
"attribute": "leading-icon",
|
|
1553
|
-
"mutable": false,
|
|
1554
|
-
"complexType": {
|
|
1555
|
-
"original": "IconName",
|
|
1556
|
-
"resolved": "string",
|
|
1557
|
-
"references": {
|
|
1558
|
-
"IconName": {
|
|
1559
|
-
"location": "import",
|
|
1560
|
-
"path": "../icon/exports",
|
|
1561
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
},
|
|
1565
|
-
"required": false,
|
|
1566
|
-
"optional": true,
|
|
1567
|
-
"docs": {
|
|
1568
|
-
"tags": [],
|
|
1569
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release. Use `leading slot` instead)\nAdds an icon defined by name that serves as leading icon in select"
|
|
1570
|
-
},
|
|
1571
|
-
"getter": false,
|
|
1572
|
-
"setter": false,
|
|
1573
|
-
"reflect": false
|
|
1574
|
-
},
|
|
1575
|
-
"leadingIconSrc": {
|
|
1576
|
-
"type": "string",
|
|
1577
|
-
"attribute": "leading-icon-src",
|
|
1578
|
-
"mutable": false,
|
|
1579
|
-
"complexType": {
|
|
1580
|
-
"original": "string",
|
|
1581
|
-
"resolved": "string",
|
|
1582
|
-
"references": {}
|
|
1583
|
-
},
|
|
1584
|
-
"required": false,
|
|
1585
|
-
"optional": true,
|
|
1586
|
-
"docs": {
|
|
1587
|
-
"tags": [],
|
|
1588
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release. Use `leading slot` instead)\nAdds an icon defined by file source that serves as leading icon in select"
|
|
1589
|
-
},
|
|
1590
|
-
"getter": false,
|
|
1591
|
-
"setter": false,
|
|
1592
|
-
"reflect": false
|
|
1593
|
-
},
|
|
1594
|
-
"leadingIconSize": {
|
|
1595
|
-
"type": "string",
|
|
1596
|
-
"attribute": "leading-icon-size",
|
|
1597
|
-
"mutable": false,
|
|
1598
|
-
"complexType": {
|
|
1599
|
-
"original": "IconSize",
|
|
1600
|
-
"resolved": "\"l\" | \"m\" | \"s\"",
|
|
1601
|
-
"references": {
|
|
1602
|
-
"IconSize": {
|
|
1603
|
-
"location": "import",
|
|
1604
|
-
"path": "../icon/exports",
|
|
1605
|
-
"id": "src/components/icon/exports.ts::IconSize"
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
},
|
|
1609
|
-
"required": false,
|
|
1610
|
-
"optional": true,
|
|
1611
|
-
"docs": {
|
|
1612
|
-
"tags": [],
|
|
1613
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release. Use `leading slot` instead)\nDefine size of an icon that serves as leading icon in select"
|
|
1614
|
-
},
|
|
1615
|
-
"getter": false,
|
|
1616
|
-
"setter": false,
|
|
1617
|
-
"reflect": false,
|
|
1618
|
-
"defaultValue": "'s'"
|
|
1619
|
-
},
|
|
1620
|
-
"trailingIcon": {
|
|
1621
|
-
"type": "string",
|
|
1622
|
-
"attribute": "trailing-icon",
|
|
1623
|
-
"mutable": false,
|
|
1624
|
-
"complexType": {
|
|
1625
|
-
"original": "IconName",
|
|
1626
|
-
"resolved": "string",
|
|
1627
|
-
"references": {
|
|
1628
|
-
"IconName": {
|
|
1629
|
-
"location": "import",
|
|
1630
|
-
"path": "../icon/exports",
|
|
1631
|
-
"id": "src/components/icon/exports.ts::IconName"
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
},
|
|
1635
|
-
"required": false,
|
|
1636
|
-
"optional": false,
|
|
1637
|
-
"docs": {
|
|
1638
|
-
"tags": [],
|
|
1639
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nDefines the trailing icon defined by name for select, Default: 'andle-down'"
|
|
1640
|
-
},
|
|
1641
|
-
"getter": false,
|
|
1642
|
-
"setter": false,
|
|
1643
|
-
"reflect": false,
|
|
1644
|
-
"defaultValue": "'angle-down'"
|
|
1645
|
-
},
|
|
1646
|
-
"trailingIconSrc": {
|
|
1647
|
-
"type": "string",
|
|
1648
|
-
"attribute": "trailing-icon-src",
|
|
1649
|
-
"mutable": false,
|
|
1650
|
-
"complexType": {
|
|
1651
|
-
"original": "string",
|
|
1652
|
-
"resolved": "string",
|
|
1653
|
-
"references": {}
|
|
1654
|
-
},
|
|
1655
|
-
"required": false,
|
|
1656
|
-
"optional": true,
|
|
1657
|
-
"docs": {
|
|
1658
|
-
"tags": [],
|
|
1659
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nDefines the trailing icon defined by source for select"
|
|
1660
|
-
},
|
|
1661
|
-
"getter": false,
|
|
1662
|
-
"setter": false,
|
|
1663
|
-
"reflect": false
|
|
1664
|
-
},
|
|
1665
|
-
"tralingIconSize": {
|
|
1666
|
-
"type": "string",
|
|
1667
|
-
"attribute": "traling-icon-size",
|
|
1668
|
-
"mutable": false,
|
|
1669
|
-
"complexType": {
|
|
1670
|
-
"original": "IconSize",
|
|
1671
|
-
"resolved": "\"l\" | \"m\" | \"s\"",
|
|
1672
|
-
"references": {
|
|
1673
|
-
"IconSize": {
|
|
1674
|
-
"location": "import",
|
|
1675
|
-
"path": "../icon/exports",
|
|
1676
|
-
"id": "src/components/icon/exports.ts::IconSize"
|
|
1677
|
-
}
|
|
1678
|
-
}
|
|
1679
|
-
},
|
|
1680
|
-
"required": false,
|
|
1681
|
-
"optional": false,
|
|
1682
|
-
"docs": {
|
|
1683
|
-
"tags": [],
|
|
1684
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nDefine size of an icon that serves as trailing icon in select"
|
|
1685
|
-
},
|
|
1686
|
-
"getter": false,
|
|
1687
|
-
"setter": false,
|
|
1688
|
-
"reflect": false,
|
|
1689
|
-
"defaultValue": "'s'"
|
|
1690
|
-
},
|
|
1691
1386
|
"listboxPosition": {
|
|
1692
1387
|
"type": "string",
|
|
1693
1388
|
"attribute": "listbox-position",
|
|
@@ -1714,25 +1409,6 @@ export class Select {
|
|
|
1714
1409
|
"reflect": false,
|
|
1715
1410
|
"defaultValue": "'bottom'"
|
|
1716
1411
|
},
|
|
1717
|
-
"validMessage": {
|
|
1718
|
-
"type": "string",
|
|
1719
|
-
"attribute": "valid-message",
|
|
1720
|
-
"mutable": false,
|
|
1721
|
-
"complexType": {
|
|
1722
|
-
"original": "string",
|
|
1723
|
-
"resolved": "string",
|
|
1724
|
-
"references": {}
|
|
1725
|
-
},
|
|
1726
|
-
"required": false,
|
|
1727
|
-
"optional": true,
|
|
1728
|
-
"docs": {
|
|
1729
|
-
"tags": [],
|
|
1730
|
-
"text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nSet custom message if the element meets all its validation constraints."
|
|
1731
|
-
},
|
|
1732
|
-
"getter": false,
|
|
1733
|
-
"setter": false,
|
|
1734
|
-
"reflect": true
|
|
1735
|
-
},
|
|
1736
1412
|
"valueMissingMessage": {
|
|
1737
1413
|
"type": "string",
|
|
1738
1414
|
"attribute": "value-missing-message",
|
|
@@ -128,7 +128,7 @@ export class SelectOption {
|
|
|
128
128
|
size: iconSize,
|
|
129
129
|
color: iconColor
|
|
130
130
|
};
|
|
131
|
-
return (h(Host, { key: '
|
|
131
|
+
return (h(Host, { key: 'd059d75cec11ef39ddea8c4ddc9ce8bc9d1a57e7', id: uniqueId, role: "option", onClick: this.handleClick, onKeydown: this.handleKeydown, "aria-disabled": `${disabled}`, "aria-selected": `${this.isSelected}`, "data-value": this.definedValue, "data-focused": `${this.isFocused}` }, h("div", { key: '70fa5c2fc9194d197b4124b6afad296d2849032c', class: "r-select-option" }, icon && h("span", { key: '07bdfeb2d8330c989e6b59c34ee85cac029135cb', class: "r-select-option--icon" }, h("r-icon", Object.assign({ key: '358748199ca580e8a9d397ed4f5642a722703441' }, iconAttributes))), !icon && hasIconSlot && h("span", { key: '60a4e6059188b27d0fbe6e9b0134882cea803d90', class: "r-select-option--icon" }, h("slot", { key: '08b11beec2c086b21ab92ad6cab080bae1cd0eac', name: "icon" })), h("span", { key: '4397696c7b8ec172098d9bd82e0c89c55781bb91', class: "r-select-option--label" }, h("slot", { key: 'b9dddec8b9c455f130ed38577c9321cb6aced0dd' })))));
|
|
132
132
|
}
|
|
133
133
|
static get is() { return "r-select-option"; }
|
|
134
134
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class SkipLink {
|
|
|
5
5
|
this.position = 'center';
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '5097cfa89ded56bcfb98dc24ca0b1e42c389e4ae' }, h("slot", { key: 'bba803efc4b82b0612e270665d5f80b740a786f1' })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "r-skip-link"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
width: var(--r-stepper-divider--width, 100%);
|
|
19
19
|
height: var(--r-stepper-divider--height, 1px);
|
|
20
20
|
top: var(--r-stepper-divider--top, 10px);
|
|
21
|
-
background-color: var(--r-stepper-divider--background-color, var(--r-
|
|
21
|
+
background-color: var(--r-stepper-divider--background-color, var(--r-text-regular, #282828));
|
|
22
22
|
}
|
|
@@ -11,7 +11,7 @@ export class Stepper {
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
const completed = this.completed || this.completeSteps;
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '196ddb8922499f7222418d19cd6ddc994c211119' }, h("div", { key: '2220fcb8ec2125a15db198ec7948780d8d331e50', class: "r-stepper" }, !this.hasSteps && Array.from({ length: this.total }, (_, index) => (h("r-stepper-item", { number: index + 1, complete: completed > index, active: completed === index, key: index }))), h("slot", { key: '69c7eb87d53b67b19efc6da0ab489debc7e6b06c' }))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "r-stepper"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
align-items: var(--r-stepper-item--align-items, center);
|
|
19
19
|
justify-content: var(--r-stepper-item--justify-content, center);
|
|
20
20
|
font-size: var(--r-stepper-item--font-size, var(--r-font-size-200, 13px));
|
|
21
|
-
color: var(--r-stepper-item--color, var(--r-text-
|
|
21
|
+
color: var(--r-stepper-item--color, var(--r-text-regular, #282828));
|
|
22
22
|
font-family: var(--r-stepper-item--font-family, var(--r-font-family-text, system-ui));
|
|
23
23
|
width: var(--r-stepper-item--width, 36px);
|
|
24
24
|
white-space: var(--r-stepper-item--white-space, nowrap);
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
align-items: var(--r-stepper-item--indicator--align-items, center);
|
|
36
36
|
border-width: var(--r-stepper-item--indicator--border-width, 1px);
|
|
37
37
|
border-style: var(--r-stepper-item--indicator--border-style, solid);
|
|
38
|
-
border-color: var(--r-stepper-item--indicator--border-color, var(--r-
|
|
38
|
+
border-color: var(--r-stepper-item--indicator--border-color, var(--r-text-regular, #282828));
|
|
39
39
|
margin-left: var(--r-stepper-item--indicator--margin-left, 8px);
|
|
40
40
|
margin-right: var(--r-stepper-item--indicator--margin-right, 8px);
|
|
41
41
|
}
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
}
|
|
45
45
|
.r-stepper-item--text {
|
|
46
46
|
font-size: var(--r-stepper-item--text--font-size, var(--r-font-size-200, 13px));
|
|
47
|
-
color: var(--r-stepper-item--text--color, var(--r-text-
|
|
47
|
+
color: var(--r-stepper-item--text--color, var(--r-text-regular, #282828));
|
|
48
48
|
text-align: var(--r-stepper-item--text--text-align, center);
|
|
49
49
|
}
|
|
@@ -11,8 +11,8 @@ export class StepperItem {
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
const number = this.number || this.stepNumber;
|
|
14
|
-
return (h(Host, { key: '
|
|
15
|
-
h("div", { key: '
|
|
14
|
+
return (h(Host, { key: '3613c92e8ac7583bf5e3db7e90edca9a921fa475' }, h("div", { key: 'ca2c38443d9a855baea829e99ec9c642c279a3be', class: "r-stepper-item" }, h("div", { key: '513f01a9a3ac3a87c3622b14f051765121308241', class: "r-stepper-item--indicator" }, this.complete ? (h("r-icon", { name: "check", size: "s" })) : this.icon ? (h("r-icon", { name: this.icon, size: "s" })) : number !== undefined ? (h("span", { class: "r-stepper-item--indicator--step-number" }, number)) : null), this.hasText &&
|
|
15
|
+
h("div", { key: 'cec8659e5ff31608b05c6f62798a8a1048cd7539', class: "r-stepper-item--text" }, h("slot", { key: '6a9d581948decc8a15e66401275cb85bf52bb459' })))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "r-stepper-item"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,42 +6,30 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
:host(:hover:not([disabled]:not([disabled=false]))) {
|
|
9
|
-
--r-tab--
|
|
10
|
-
--r-tab--marker--height: 5px;
|
|
11
|
-
--r-tab--marker--background-color: var(--r-border-softer, #c9c9c9);
|
|
12
|
-
--r-tab--marker--visibility: visible;
|
|
9
|
+
--r-tab--background: var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04));
|
|
13
10
|
}
|
|
14
11
|
|
|
15
12
|
:host(:active:not([disabled]:not([disabled=false]))) {
|
|
16
|
-
--r-tab--background
|
|
13
|
+
--r-tab--background: var(--r-background-interactive-pressed, rgba(40,40,40,0.12));
|
|
17
14
|
}
|
|
18
15
|
|
|
19
16
|
:host(:focus-visible) {
|
|
20
|
-
--r-tab--
|
|
21
|
-
--r-tab--
|
|
22
|
-
--r-tab--
|
|
23
|
-
--r-tab--slot--box-shadow: 0 0 0 6px var(--r-border-focused-outlined, #fff);
|
|
24
|
-
--r-tab--slot--outline: 2px solid var(--r-border-focused, #0071e3);
|
|
25
|
-
--r-tab--slot--outline-offset: 2px;
|
|
17
|
+
--r-tab--box-shadow: 0 0 0 6px var(--r-border-focused-outlined, #fff);
|
|
18
|
+
--r-tab--outline: 2px solid var(--r-border-focused, #0071e3);
|
|
19
|
+
--r-tab--outline-offset: 2px;
|
|
26
20
|
}
|
|
27
21
|
|
|
28
22
|
:host([active]:not([active=false])) {
|
|
29
23
|
cursor: default;
|
|
30
24
|
--r-tab--font-weight: var(--r-font-weight-semibold, 600);
|
|
31
|
-
--r-tab--color: var(--r-text-strong, #000);
|
|
32
|
-
--r-tab--padding-left: 0.5625rem;
|
|
33
|
-
--r-tab--padding-right: 0.5625rem;
|
|
34
|
-
--r-tab--marker--background-color: var(--r-border-regular, #282828);
|
|
35
25
|
--r-tab--marker--visibility: visible;
|
|
36
|
-
--r-tab--marker--height: 3px;
|
|
37
26
|
}
|
|
38
27
|
|
|
39
28
|
:host([disabled]:not([disabled=false])) {
|
|
40
|
-
opacity: 0.4;
|
|
41
29
|
cursor: not-allowed;
|
|
42
30
|
--r-tab--pointer-events: none;
|
|
43
|
-
--r-tab--
|
|
44
|
-
--r-tab--
|
|
31
|
+
--r-tab--color: var(--r-text-soft, #686868);
|
|
32
|
+
--r-tab--marker--background-color: var(--r-border-soft, #686868) ;
|
|
45
33
|
}
|
|
46
34
|
|
|
47
35
|
.r-tab {
|
|
@@ -49,19 +37,26 @@
|
|
|
49
37
|
font-family: var(--r-tab--font-family, var(--r-font-family-text, system-ui));
|
|
50
38
|
font-weight: var(--r-tab--font-weight, var(--r-font-weight-regular, 400));
|
|
51
39
|
font-size: var(--r-tab--font-size, var(--r-font-size-400, 1rem));
|
|
52
|
-
line-height: var(--r-tab--line-height, 1);
|
|
40
|
+
line-height: var(--r-tab--line-height, var(--r-line-height-m, 1.5));
|
|
53
41
|
cursor: var(--r-tab--cursor, inherit);
|
|
54
42
|
pointer-events: var(--r-tab--pointer-events, initial);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
43
|
+
display: var(--r-tab--display, flex);
|
|
44
|
+
align-items: var(--r-tab--align-items, center);
|
|
45
|
+
justify-content: var(--r-tab--justify-content, center);
|
|
46
|
+
gap: var(--r-tab--gap, var(--r-spacing-050, 0.5rem));
|
|
47
|
+
width: var(--r-tab--width, auto);
|
|
48
|
+
padding-top: var(--r-tab--padding-top, var(--r-spacing-025, 0.25rem));
|
|
49
|
+
padding-right: var(--r-tab--padding-right, var(--r-spacing-050, 0.5rem));
|
|
50
|
+
padding-bottom: var(--r-tab--padding-bottom, var(--r-spacing-100, 1rem));
|
|
51
|
+
padding-left: var(--r-tab--padding-left, var(--r-spacing-050, 0.5rem));
|
|
52
|
+
margin-bottom: var(--r-tab--margin-bottom, -1px);
|
|
59
53
|
opacity: var(--r-tab--opacity, 1);
|
|
60
54
|
background: var(--r-tab--background, none);
|
|
61
55
|
color: var(--r-tab--color, var(--r-text-regular, #282828));
|
|
62
56
|
border: var(--r-tab--border, none);
|
|
63
57
|
box-shadow: var(--r-tab--box-shadow, none);
|
|
64
58
|
outline: var(--r-tab--outline, none);
|
|
59
|
+
outline-offset: var(--r-tab--outline-offset, 0);
|
|
65
60
|
}
|
|
66
61
|
.r-tab::after {
|
|
67
62
|
content: var(--r-tab--marker--content, "");
|
|
@@ -71,11 +66,16 @@
|
|
|
71
66
|
bottom: var(--r-tab--marker--bottom, 0);
|
|
72
67
|
left: var(--r-tab--marker--left, 0);
|
|
73
68
|
visibility: var(--r-tab--marker--visibility, hidden);
|
|
74
|
-
background-color: var(--r-tab--marker--background-color,
|
|
69
|
+
background-color: var(--r-tab--marker--background-color, var(--r-border-regular, #282828));
|
|
75
70
|
transition: var(--r-tab--marker--transition, all 0.1s ease-in);
|
|
76
71
|
}
|
|
77
|
-
.r-tab--
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
.r-tab--disabled-icon,
|
|
73
|
+
.r-tab ::slotted([slot=icon]) {
|
|
74
|
+
color: var(--r-tab--icon--color, var(--r-icon-soft, #686868));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media (prefers-reduced-motion) {
|
|
78
|
+
.r-tab::after {
|
|
79
|
+
transition: none;
|
|
80
|
+
}
|
|
81
81
|
}
|
|
@@ -22,6 +22,8 @@ export class RTab {
|
|
|
22
22
|
if (this.disabled)
|
|
23
23
|
return;
|
|
24
24
|
switch (event.code) {
|
|
25
|
+
case 'ArrowLeft':
|
|
26
|
+
case 'ArrowRight':
|
|
25
27
|
case 'Space':
|
|
26
28
|
case 'Home':
|
|
27
29
|
case 'End':
|
|
@@ -41,7 +43,9 @@ export class RTab {
|
|
|
41
43
|
'aria-selected': `${active}`,
|
|
42
44
|
'aria-disabled': `${disabled}`
|
|
43
45
|
};
|
|
44
|
-
return (h(Host, Object.assign({ key: '
|
|
46
|
+
return (h(Host, Object.assign({ key: '619d576a8efdfa1f941be9760312d7254a922f10', onClick: this.handleClick, onKeyUp: this.handleKeyup, onKeyDown: this.handleKeydown }, hostAttrs), h("span", { key: '15d69c67544bdb845df4b10411ff3e55fb5671a2', class: "r-tab" }, disabled ?
|
|
47
|
+
h("r-icon", { class: "r-tab--disabled-icon", size: "s", name: "circle-slash" })
|
|
48
|
+
: h("slot", { name: "icon" }), h("slot", { key: '59e5f0740a92f1cfeb71ab9709db2f2a13152fb4' }))));
|
|
45
49
|
}
|
|
46
50
|
static get is() { return "r-tab"; }
|
|
47
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class RTabPanel {
|
|
|
12
12
|
active,
|
|
13
13
|
'aria-labelledby': tabId
|
|
14
14
|
};
|
|
15
|
-
return (h(Host, Object.assign({ key: '
|
|
15
|
+
return (h(Host, Object.assign({ key: 'db95a245a8aa8900e1cea5af71ac488352954299', class: "r-typography" }, hostAttrs), h("div", { key: '0e720978d72a9d9ba9da367794ac96c49737d854', class: "r-tab-panel" }, h("slot", { key: 'f16a0da6c7d3d2c1e0c57778837bdb47879468b4' }))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "r-tab-panel"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|