@roadtrip/components 2.47.0 → 2.49.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/dist/cjs/index-a2306350.js +16 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/road-avatar.cjs.entry.js +7 -2
- package/dist/cjs/road-badge_14.cjs.entry.js +7 -3
- package/dist/cjs/road-profil-dropdown.cjs.entry.js +29 -0
- package/dist/cjs/road-progress.cjs.entry.js +0 -1
- package/dist/cjs/road-segmented-button.cjs.entry.js +7 -1
- package/dist/cjs/road-vertical-stepper-item.cjs.entry.js +19 -0
- package/dist/cjs/road-vertical-stepper.cjs.entry.js +19 -0
- package/dist/cjs/roadtrip.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/avatar/avatar.css +40 -1
- package/dist/collection/components/avatar/avatar.js +31 -2
- package/dist/collection/components/avatar/avatar.stories.js +8 -7
- package/dist/collection/components/button/button.css +1 -0
- package/dist/collection/components/counter/counter.css +38 -13
- package/dist/collection/components/counter/counter.js +8 -3
- package/dist/collection/components/counter/counter.stories.js +1 -1
- package/dist/collection/components/icon/svg/electric-charger-service-color.svg +1 -1
- package/dist/collection/components/icon/svg/electric-charger-service-outline.svg +1 -1
- package/dist/collection/components/icon/svg/navigation-add-less-outline.svg +1 -1
- package/dist/collection/components/icon/svg/navigation-add-less-solid.svg +1 -0
- package/dist/collection/components/icon/svg/navigation-add-more-outline.svg +1 -1
- package/dist/collection/components/icon/svg/navigation-add-more-solid.svg +1 -0
- package/dist/collection/components/icon/svg/navigation-close-outline.svg +1 -1
- package/dist/collection/components/icon/svg/navigation-close-solid.svg +1 -0
- package/dist/collection/components/icon/svg/stocktaking-color.svg +1 -0
- package/dist/collection/components/icon/svg/stocktaking-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-5-doors-color.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-5-doors-outline.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-5-doors-solid-color.svg +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/input.stories.js +5 -5
- package/dist/collection/components/profil-dropdown/profil-dropdown.css +156 -0
- package/dist/collection/components/profil-dropdown/profil-dropdown.js +59 -0
- package/dist/collection/components/profil-dropdown/profil-dropdown.stories.js +68 -0
- package/dist/collection/components/progress/progress.js +0 -1
- package/dist/collection/components/segmented-button/segmented-button.css +9 -0
- package/dist/collection/components/segmented-button/segmented-button.js +24 -0
- package/dist/collection/components/segmented-buttons/segmented-buttons.stories.js +21 -0
- package/dist/collection/components/vertical-stepper/vertical-stepper.css +25 -0
- package/dist/collection/components/vertical-stepper/vertical-stepper.js +30 -0
- package/dist/collection/components/vertical-stepper/vertical-stepper.stories.js +542 -0
- package/dist/collection/components/vertical-stepper-item/vertical-stepper-item.css +185 -0
- package/dist/collection/components/vertical-stepper-item/vertical-stepper-item.js +20 -0
- package/dist/esm/index-a99a5e7b.js +16 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/road-avatar.entry.js +8 -3
- package/dist/esm/road-badge_14.entry.js +7 -3
- package/dist/esm/road-profil-dropdown.entry.js +25 -0
- package/dist/esm/road-progress.entry.js +0 -1
- package/dist/esm/road-segmented-button.entry.js +7 -1
- package/dist/esm/road-vertical-stepper-item.entry.js +15 -0
- package/dist/esm/road-vertical-stepper.entry.js +15 -0
- package/dist/esm/roadtrip.js +1 -1
- package/dist/html.html-data.json +79 -1
- package/dist/icons/icons.svg +1 -1
- package/dist/icons/index.d.ts +5 -0
- package/dist/icons/index.js +13 -8
- package/dist/roadtrip/p-140d8d34.entry.js +1 -0
- package/dist/roadtrip/p-16f79a5a.entry.js +1 -0
- package/dist/roadtrip/p-1ac0bf10.entry.js +1 -0
- package/dist/roadtrip/p-87b690f4.entry.js +1 -0
- package/dist/roadtrip/p-932e323f.entry.js +1 -0
- package/dist/roadtrip/p-a3736d12.entry.js +1 -0
- package/dist/roadtrip/p-ed05f2c9.entry.js +1 -0
- package/dist/roadtrip/roadtrip.css +1 -1
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/svg/electric-charger-service-color.svg +1 -1
- package/dist/roadtrip/svg/electric-charger-service-outline.svg +1 -1
- package/dist/roadtrip/svg/navigation-add-less-outline.svg +1 -1
- package/dist/roadtrip/svg/navigation-add-less-solid.svg +1 -0
- package/dist/roadtrip/svg/navigation-add-more-outline.svg +1 -1
- package/dist/roadtrip/svg/navigation-add-more-solid.svg +1 -0
- package/dist/roadtrip/svg/navigation-close-outline.svg +1 -1
- package/dist/roadtrip/svg/navigation-close-solid.svg +1 -0
- package/dist/roadtrip/svg/stocktaking-color.svg +1 -0
- package/dist/roadtrip/svg/stocktaking-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-5-doors-color.svg +1 -1
- package/dist/roadtrip/svg/vehicle-5-doors-outline.svg +1 -1
- package/dist/roadtrip/svg/vehicle-5-doors-solid-color.svg +1 -1
- package/dist/types/components/avatar/avatar.d.ts +4 -0
- package/dist/types/components/counter/counter.d.ts +1 -1
- package/dist/types/components/profil-dropdown/profil-dropdown.d.ts +18 -0
- package/dist/types/components/segmented-button/segmented-button.d.ts +4 -0
- package/dist/types/components/vertical-stepper/vertical-stepper.d.ts +15 -0
- package/dist/types/components/vertical-stepper-item/vertical-stepper-item.d.ts +6 -0
- package/dist/types/components.d.ts +65 -2
- package/icons/icons.svg +1 -1
- package/icons/index.d.ts +5 -0
- package/icons/index.js +13 -8
- package/package.json +1 -1
- package/dist/roadtrip/p-12fcedd3.entry.js +0 -1
- package/dist/roadtrip/p-2b92deb4.entry.js +0 -1
- package/dist/roadtrip/p-9a91495a.entry.js +0 -1
- package/dist/roadtrip/p-d52512f6.entry.js +0 -1
|
@@ -1997,10 +1997,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1997
1997
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1998
1998
|
/* webpackMode: "lazy" */
|
|
1999
1999
|
'./road-autocomplete.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2000
|
-
case 'road-avatar.cjs':
|
|
2001
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2002
|
-
/* webpackMode: "lazy" */
|
|
2003
|
-
'./road-avatar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2004
2000
|
case 'road-banner.cjs':
|
|
2005
2001
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2006
2002
|
/* webpackMode: "lazy" */
|
|
@@ -2061,6 +2057,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2061
2057
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2062
2058
|
/* webpackMode: "lazy" */
|
|
2063
2059
|
'./road-plate-number.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2060
|
+
case 'road-profil-dropdown.cjs':
|
|
2061
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2062
|
+
/* webpackMode: "lazy" */
|
|
2063
|
+
'./road-profil-dropdown.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2064
2064
|
case 'road-progress.cjs':
|
|
2065
2065
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2066
2066
|
/* webpackMode: "lazy" */
|
|
@@ -2161,6 +2161,18 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2161
2161
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2162
2162
|
/* webpackMode: "lazy" */
|
|
2163
2163
|
'./road-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2164
|
+
case 'road-vertical-stepper.cjs':
|
|
2165
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2166
|
+
/* webpackMode: "lazy" */
|
|
2167
|
+
'./road-vertical-stepper.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2168
|
+
case 'road-vertical-stepper-item.cjs':
|
|
2169
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2170
|
+
/* webpackMode: "lazy" */
|
|
2171
|
+
'./road-vertical-stepper-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2172
|
+
case 'road-avatar.cjs':
|
|
2173
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2174
|
+
/* webpackMode: "lazy" */
|
|
2175
|
+
'./road-avatar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2164
2176
|
case 'road-card.cjs':
|
|
2165
2177
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2166
2178
|
/* webpackMode: "lazy" */
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -29,7 +29,7 @@ const patchEsm = () => {
|
|
|
29
29
|
const defineCustomElements = (win, options) => {
|
|
30
30
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
31
31
|
return patchEsm().then(() => {
|
|
32
|
-
return index.bootstrapLazy([["road-badge_14.cjs",[[2,"road-counter",{"inputId":[1,"input-id"],"min":[2],"max":[2],"step":[1],"value":[2],"size":[1],"dustbin":[4],"leftIconClasses":[32],"rightIconClasses":[32],"isDustbinVisible":[32]}],[1,"road-item",{"button":[4],"detail":[4],"active":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"target":[1],"type":[1],"multipleInputs":[32]}],[1,"road-badge",{"color":[1],"bubble":[4]}],[1,"road-list",{"lines":[1]}],[1,"road-toolbar",{"color":[1]}],[33,"road-drawer",{"isOpen":[1028,"is-open"],"position":[1],"drawerWidth":[2,"drawer-width"],"hasInverseHeader":[4,"has-inverse-header"],"hasBackIcon":[4,"has-back-icon"],"backText":[1,"back-text"],"drawerTitle":[1,"drawer-title"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64],"back":[64]},[[4,"keyup","onEscape"]]],[1,"road-col"],[1,"road-grid"],[6,"road-input",{"inputId":[1,"input-id"],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"sizes":[1],"type":[1],"value":[1032],"label":[1],"error":[1],"helper":[1],"debounce":[2]}],[1,"road-
|
|
32
|
+
return index.bootstrapLazy([["road-badge_14.cjs",[[2,"road-counter",{"inputId":[1,"input-id"],"min":[2],"max":[2],"step":[1],"value":[2],"size":[1],"dustbin":[4],"leftIconClasses":[32],"rightIconClasses":[32],"isDustbinVisible":[32]}],[1,"road-item",{"button":[4],"detail":[4],"active":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"target":[1],"type":[1],"multipleInputs":[32]}],[1,"road-badge",{"color":[1],"bubble":[4]}],[1,"road-list",{"lines":[1]}],[1,"road-toolbar",{"color":[1]}],[33,"road-drawer",{"isOpen":[1028,"is-open"],"position":[1],"drawerWidth":[2,"drawer-width"],"hasInverseHeader":[4,"has-inverse-header"],"hasBackIcon":[4,"has-back-icon"],"backText":[1,"back-text"],"drawerTitle":[1,"drawer-title"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64],"back":[64]},[[4,"keyup","onEscape"]]],[1,"road-col"],[1,"road-grid"],[6,"road-input",{"inputId":[1,"input-id"],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"sizes":[1],"type":[1],"value":[1032],"label":[1],"error":[1],"helper":[1],"debounce":[2]}],[1,"road-row"],[1,"road-button",{"color":[1],"size":[513],"buttonType":[1,"button-type"],"disabled":[516],"expand":[516],"download":[1],"href":[1],"rel":[1],"target":[1],"outline":[4]}],[1,"road-input-group"],[1,"road-label"],[1,"road-icon",{"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"name":[1],"src":[1],"icon":[8],"size":[1],"rotate":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["road-duration.cjs",[[1,"road-duration",{"isOpen":[1028,"is-open"],"header":[1],"min":[2],"max":[2],"step":[2],"open":[64],"close":[64]},[[0,"roadcardclick","handleClick"]]]]],["road-plate-number.cjs",[[2,"road-plate-number",{"country":[1],"disabled":[4],"placeholder":[1],"readonly":[4],"value":[1032],"motorbike":[4]}]]],["road-profil-dropdown.cjs",[[1,"road-profil-dropdown",{"isOpen":[1028,"is-open"]}]]],["road-accordion.cjs",[[1,"road-accordion",{"isOpen":[1028,"is-open"],"isLight":[4,"is-light"],"isLightSeparator":[4,"is-light-separator"],"isSmall":[4,"is-small"]}]]],["road-banner.cjs",[[1,"road-banner",{"isOpen":[1028,"is-open"],"label":[1],"link":[1],"url":[1],"close":[64]}]]],["road-carousel.cjs",[[1,"road-carousel",{"options":[8],"pager":[4],"arrows":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["road-checkbox.cjs",[[6,"road-checkbox",{"checkboxId":[1,"checkbox-id"],"name":[1],"required":[4],"checked":[1028],"indeterminate":[4],"disabled":[4],"value":[1],"label":[1],"inverse":[4],"error":[1],"helper":[1]}]]],["road-chip.cjs",[[1,"road-chip",{"color":[1],"outline":[4],"size":[1],"hasCloseIcon":[4,"has-close-icon"]}]]],["road-collapse.cjs",[[1,"road-collapse",{"isOpen":[1028,"is-open"],"showMore":[1,"show-more"],"showLess":[1,"show-less"],"centered":[4]}]]],["road-dialog.cjs",[[1,"road-dialog",{"isOpen":[1028,"is-open"],"hasCloseIcon":[4,"has-close-icon"],"color":[1],"icon":[1],"label":[1],"description":[1],"open":[64],"close":[64]},[[4,"keyup","onEscape"]]]]],["road-dropdown.cjs",[[1,"road-dropdown",{"isOpen":[1028,"is-open"],"isLight":[4,"is-light"],"position":[513],"direction":[513]}]]],["road-modal.cjs",[[1,"road-modal",{"maxWidth":[2,"max-width"],"isOpen":[1028,"is-open"],"hasInverseHeader":[4,"has-inverse-header"],"modalTitle":[1,"modal-title"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64]},[[4,"keyup","onEscape"]]]]],["road-range.cjs",[[6,"road-range",{"rangeId":[1,"range-id"],"value":[1032],"min":[1],"max":[1],"step":[1],"showValue":[4,"show-value"],"showTick":[4,"show-tick"],"showLabels":[4,"show-labels"]}]]],["road-rating.cjs",[[1,"road-rating",{"size":[513],"rate":[2],"reviews":[2],"reviewsText":[1,"reviews-text"]}]]],["road-toast.cjs",[[1,"road-toast",{"isOpen":[1028,"is-open"],"color":[1],"label":[1],"timeout":[2],"open":[64],"close":[64]}]]],["road-alert.cjs",[[1,"road-alert",{"color":[1],"label":[1],"link":[1],"url":[1]}]]],["road-autocomplete.cjs",[[6,"road-autocomplete",{"options":[16],"visible":[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[4,"click","onClickOutside"]]]]],["road-carousel-item.cjs",[[4,"road-carousel-item"]]],["road-flap.cjs",[[1,"road-flap",{"color":[1],"size":[513]}]]],["road-img.cjs",[[1,"road-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["road-navbar.cjs",[[1,"road-navbar",{"selectedTab":[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"]]]]],["road-navbar-item.cjs",[[1,"road-navbar-item",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"selected":[1028],"tab":[1],"target":[1]},[[8,"roadNavbarChanged","onNavbarChanged"],[8,"roadnavbarchanged","onNavbarChanged"]]]]],["road-progress.cjs",[[1,"road-progress",{"value":[2],"numbersteps":[1],"label":[1],"showstep":[4],"color":[1]}]]],["road-radio.cjs",[[2,"road-radio",{"radioId":[1,"radio-id"],"name":[1],"required":[4],"disabled":[4],"value":[8],"label":[1],"inverse":[4],"error":[4],"helper":[1],"inline":[4],"checked":[32]},[[8,"roadChange","onRoadChangedChanged"],[8,"roadchange","onRoadChangedChanged"]]]]],["road-radio-group.cjs",[[6,"road-radio-group",{"radioGroupId":[1,"radio-group-id"],"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032],"label":[1],"asterisk":[4],"ariaLabel":[513,"aria-label"],"error":[1025],"helper":[1]}]]],["road-segmented-button.cjs",[[1,"road-segmented-button",{"size":[1],"selected":[1028],"tab":[1]},[[8,"roadSegmentedButtonBarChanged","onButtonBarChanged"],[8,"roadSegmentedButtonbarchanged","onButtonBarChanged"]]]]],["road-segmented-button-bar.cjs",[[1,"road-segmented-button-bar",{"selectedTab":[1,"selected-tab"]}]]],["road-segmented-buttons.cjs",[[1,"road-segmented-buttons",{"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64]}]]],["road-select.cjs",[[2,"road-select",{"selectId":[1,"select-id"],"options":[16],"autofocus":[4],"disabled":[4],"name":[1],"required":[4],"size":[2],"sizes":[1],"label":[1],"error":[1],"value":[1032]}]]],["road-select-filter.cjs",[[6,"road-select-filter",{"options":[16],"parameters":[8],"isActive":[4,"is-active"],"onlySelect":[4,"only-select"],"isOpen":[32],"currentValue":[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[0,"roadBlur","handleBlur"],[0,"roadblur","handleBlur"],[0,"roadChange","handleChange"],[0,"roadchange","handleChange"],[4,"click","onClickOutside"]]]]],["road-skeleton.cjs",[[1,"road-skeleton"]]],["road-spinner.cjs",[[1,"road-spinner",{"size":[513],"color":[513]}]]],["road-stepper.cjs",[[1,"road-stepper",{"color":[513],"light":[4],"outline":[4],"stateFirstStep":[1,"state-first-step"],"stateSecondStep":[1,"state-second-step"],"stateThirdStep":[1,"state-third-step"]}]]],["road-switch.cjs",[[2,"road-switch",{"switchId":[1,"switch-id"],"name":[1],"checked":[1028],"disabled":[4],"label":[1],"color":[1],"hasLeftLabel":[4,"has-left-label"],"isSpaced":[4,"is-spaced"],"value":[1],"on":[1],"off":[1]}]]],["road-tab.cjs",[[1,"road-tab",{"active":[1028],"tab":[1],"setActive":[64]}]]],["road-tab-bar.cjs",[[1,"road-tab-bar",{"secondary":[4],"expand":[4],"center":[4],"selectedTab":[1,"selected-tab"]}]]],["road-tab-button.cjs",[[1,"road-tab-button",{"download":[1],"href":[1],"rel":[1],"layout":[1],"selected":[1028],"tab":[1],"target":[1]},[[8,"roadTabBarChanged","onTabBarChanged"],[8,"roadTabbarchanged","onTabBarChanged"]]]]],["road-table.cjs",[[6,"road-table"]]],["road-tabs.cjs",[[1,"road-tabs",{"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64]}]]],["road-text.cjs",[[1,"road-text",{"color":[1]}]]],["road-textarea.cjs",[[2,"road-textarea",{"textareaId":[1,"textarea-id"],"autocapitalize":[1],"autofocus":[4],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"sizes":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"value":[1025],"label":[1],"error":[1],"helper":[1]}]]],["road-toggle.cjs",[[2,"road-toggle",{"toggleId":[1,"toggle-id"],"name":[1],"checked":[1028],"disabled":[4],"label":[1],"color":[1],"hasLeftLabel":[4,"has-left-label"],"isSpaced":[4,"is-spaced"],"value":[1],"on":[1],"off":[1]}]]],["road-toolbar-title.cjs",[[1,"road-toolbar-title"]]],["road-tooltip.cjs",[[1,"road-tooltip",{"tooltipId":[1,"tooltip-id"],"content":[1],"position":[1],"contentAlign":[1,"content-align"],"isOpen":[1028,"is-open"],"trigger":[1],"open":[64],"close":[64]}]]],["road-vertical-stepper.cjs",[[1,"road-vertical-stepper"]]],["road-vertical-stepper-item.cjs",[[4,"road-vertical-stepper-item"]]],["road-avatar.cjs",[[1,"road-avatar",{"size":[513]}]]],["road-card.cjs",[[1,"road-card",{"button":[4],"value":[1],"type":[1],"download":[1],"href":[1],"rel":[1],"target":[1]}]]]], options);
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -4,14 +4,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a2306350.js');
|
|
6
6
|
|
|
7
|
-
const avatarCss = ":host{--avatar-background:var(--road-
|
|
7
|
+
const avatarCss = ":host{--avatar-background:var(--road-primary-500);--avatar-width:3rem;--avatar-color:var(--road-grey-000);position:relative;display:flex;align-items:center;justify-content:center;width:var(--avatar-width);height:var(--avatar-width);font-weight:700;color:var(--avatar-color);background:var(--avatar-background);border-radius:var(--avatar-width);transition:box-shadow 0.5s}:host(:hover),:host(.focus-visible),:host(:focus){box-shadow:0 0 0 4px var(--road-primary-200)}:host ::slotted(road-icon){fill:var(--road-grey-000)}:host(.avatar-sm){width:2.625rem;height:2.625rem;font-size:1.25rem}:host(.avatar-md){width:3.5rem;height:3.5rem;font-size:2rem}:host(.avatar-lg){width:4rem;height:4rem;font-size:2.375rem}::slotted(road-img),::slotted(img){width:100%;height:100%;object-fit:cover;overflow:hidden;border-radius:var(--avatar-width)}::slotted(road-badge){position:absolute;top:0;right:0}";
|
|
8
8
|
|
|
9
9
|
const Avatar = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
+
/**
|
|
13
|
+
* The Avatar size.
|
|
14
|
+
*/
|
|
15
|
+
this.size = 'md';
|
|
12
16
|
}
|
|
13
17
|
render() {
|
|
14
|
-
|
|
18
|
+
const sizeClass = this.size !== undefined ? `avatar-${this.size}` : '';
|
|
19
|
+
return (index.h(index.Host, { class: `${sizeClass}` }, index.h("slot", null)));
|
|
15
20
|
}
|
|
16
21
|
};
|
|
17
22
|
Avatar.style = avatarCss;
|
|
@@ -29,7 +29,7 @@ const Badge = class {
|
|
|
29
29
|
};
|
|
30
30
|
Badge.style = badgeCss;
|
|
31
31
|
|
|
32
|
-
const buttonCss = ":host{--border-radius:0.25rem;--font-size:1rem;--margin-bottom:1rem;--padding-start:1.5rem;--padding-end:1.5rem;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:3rem;padding:0;margin-bottom:var(--margin-bottom);font-family:var(--road-font, sans-serif);font-size:var(--font-size);font-weight:700;line-height:1.375;color:var(--road-grey-900);text-decoration:none;white-space:nowrap;vertical-align:middle;background:transparent;border:1px solid transparent;border-radius:var(--border-radius);transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}:host(:hover){text-decoration:none}:host(.focus-visible){outline:0}.button-native{position:relative;z-index:1;display:flex;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;padding:0 var(--padding-end) 0 var(--padding-start);margin:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;color:inherit;text-align:inherit;text-decoration:none;text-indent:inherit;text-overflow:inherit;text-transform:inherit;letter-spacing:inherit;white-space:inherit;cursor:pointer;background:transparent;border:none;outline:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}:host(.btn-default:not([disabled]).focus-visible){background:var(--road-grey-200)}:host(.btn-primary){color:var(--road-primary-contrast);background:var(--road-primary-500)}:host(.btn-primary) ::slotted(road-icon){color:var(--road-primary-contrast)}:host(.btn-primary:not([disabled]):hover),:host(.btn-primary:not([disabled]).focus-visible){background:var(--road-primary-700)}:host(.btn-secondary){color:var(--road-primary-contrast);background:var(--road-primary-500)}:host(.btn-secondary) ::slotted(road-icon){color:var(--road-primary-contrast)}:host(.btn-secondary:not([disabled]):hover),:host(.btn-secondary:not([disabled]).focus-visible){background:var(--road-primary-700)}:host(.btn-link){font-weight:400;color:var(--road-primary-500);background:transparent}:host(.btn-link:not([disabled]):hover),:host(.btn-link:not([disabled]).focus-visible){color:var(--road-primary-700)}:host(.btn-outline-primary),:host(.btn-outline-secondary),:host(.btn-outline-default){background:transparent}:host(.btn-outline-default){color:var(--road-grey-600);background:var(--road-grey-000);border-color:var(--road-grey-600)}:host(.btn-outline-default) ::slotted(road-icon){color:var(--road-grey-600)}:host(.btn-outline-default:hover),:host(.btn-outline-default.focus-visible){background:var(--road-grey-200)}:host(.btn-ghost) ::slotted(road-icon){color:var(--road-grey-900)}:host(.btn-ghost:hover),:host(.btn-ghost.focus-visible){background:var(--road-primary-100)}:host(.btn-outline-primary){color:var(--road-primary-500);border-color:var(--road-primary-500)}:host(.btn-outline-primary) ::slotted(road-icon){color:var(--road-primary-500)}:host(.btn-outline-primary:hover),:host(.btn-outline-primary.focus-visible){background:var(--road-primary-100)}:host(.btn-outline-secondary){color:var(--road-primary-500);border-color:var(--road-primary-500)}:host(.btn-outline-secondary) ::slotted(road-icon){color:var(--road-primary-500)}:host(.btn-outline-secondary:hover),:host(.btn-outline-secondary.focus-visible){background:var(--road-primary-100)}:host([aria-disabled]){pointer-events:none;opacity:0.16}.button-native:disabled{cursor:not-allowed}::slotted([slot=\"start\"]){margin-right:0.5rem}::slotted([slot=\"end\"]){margin-left:0.5rem}:host(.btn-xl){height:3.5rem}:host(.btn-xl) ::slotted(road-icon){width:2rem;height:2rem}:host(.btn-md){--font-size:0.875rem;height:2.5rem}:host(.btn-md) ::slotted(road-icon){width:1.5rem;height:1.5rem}:host(.btn-sm){--font-size:0.875rem;height:2rem}:host(.btn-sm) ::slotted(road-icon){width:1.25rem;height:1.25rem}:host(.btn-block){width:100%}::slotted(road-badge){position:absolute;top:4px;left:calc(50% + 0.375rem);z-index:1;box-sizing:border-box;height:auto}";
|
|
32
|
+
const buttonCss = ":host{--border-radius:0.25rem;--font-size:1rem;--margin-bottom:1rem;--padding-start:1.5rem;--padding-end:1.5rem;box-sizing:border-box;display:inline-flex;display:-webkit-inline-flex;align-items:center;justify-content:center;height:3rem;padding:0;margin-bottom:var(--margin-bottom);font-family:var(--road-font, sans-serif);font-size:var(--font-size);font-weight:700;line-height:1.375;color:var(--road-grey-900);text-decoration:none;white-space:nowrap;vertical-align:middle;background:transparent;border:1px solid transparent;border-radius:var(--border-radius);transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}:host(:hover){text-decoration:none}:host(.focus-visible){outline:0}.button-native{position:relative;z-index:1;display:flex;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;padding:0 var(--padding-end) 0 var(--padding-start);margin:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;color:inherit;text-align:inherit;text-decoration:none;text-indent:inherit;text-overflow:inherit;text-transform:inherit;letter-spacing:inherit;white-space:inherit;cursor:pointer;background:transparent;border:none;outline:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}:host(.btn-default:not([disabled]).focus-visible){background:var(--road-grey-200)}:host(.btn-primary){color:var(--road-primary-contrast);background:var(--road-primary-500)}:host(.btn-primary) ::slotted(road-icon){color:var(--road-primary-contrast)}:host(.btn-primary:not([disabled]):hover),:host(.btn-primary:not([disabled]).focus-visible){background:var(--road-primary-700)}:host(.btn-secondary){color:var(--road-primary-contrast);background:var(--road-primary-500)}:host(.btn-secondary) ::slotted(road-icon){color:var(--road-primary-contrast)}:host(.btn-secondary:not([disabled]):hover),:host(.btn-secondary:not([disabled]).focus-visible){background:var(--road-primary-700)}:host(.btn-link){font-weight:400;color:var(--road-primary-500);background:transparent}:host(.btn-link:not([disabled]):hover),:host(.btn-link:not([disabled]).focus-visible){color:var(--road-primary-700)}:host(.btn-outline-primary),:host(.btn-outline-secondary),:host(.btn-outline-default){background:transparent}:host(.btn-outline-default){color:var(--road-grey-600);background:var(--road-grey-000);border-color:var(--road-grey-600)}:host(.btn-outline-default) ::slotted(road-icon){color:var(--road-grey-600)}:host(.btn-outline-default:hover),:host(.btn-outline-default.focus-visible){background:var(--road-grey-200)}:host(.btn-ghost) ::slotted(road-icon){color:var(--road-grey-900)}:host(.btn-ghost:hover),:host(.btn-ghost.focus-visible){background:var(--road-primary-100)}:host(.btn-outline-primary){color:var(--road-primary-500);border-color:var(--road-primary-500)}:host(.btn-outline-primary) ::slotted(road-icon){color:var(--road-primary-500)}:host(.btn-outline-primary:hover),:host(.btn-outline-primary.focus-visible){background:var(--road-primary-100)}:host(.btn-outline-secondary){color:var(--road-primary-500);border-color:var(--road-primary-500)}:host(.btn-outline-secondary) ::slotted(road-icon){color:var(--road-primary-500)}:host(.btn-outline-secondary:hover),:host(.btn-outline-secondary.focus-visible){background:var(--road-primary-100)}:host([aria-disabled]){pointer-events:none;opacity:0.16}.button-native:disabled{cursor:not-allowed}::slotted([slot=\"start\"]){margin-right:0.5rem}::slotted([slot=\"end\"]){margin-left:0.5rem}:host(.btn-xl){height:3.5rem}:host(.btn-xl) ::slotted(road-icon){width:2rem;height:2rem}:host(.btn-md){--font-size:0.875rem;height:2.5rem}:host(.btn-md) ::slotted(road-icon){width:1.5rem;height:1.5rem}:host(.btn-sm){--font-size:0.875rem;height:2rem}:host(.btn-sm) ::slotted(road-icon){width:1.25rem;height:1.25rem}:host(.btn-block){width:100%}::slotted(road-badge){position:absolute;top:4px;left:calc(50% + 0.375rem);z-index:1;box-sizing:border-box;height:auto}";
|
|
33
33
|
|
|
34
34
|
const Button = class {
|
|
35
35
|
constructor(hostRef) {
|
|
@@ -120,7 +120,7 @@ const Col = class {
|
|
|
120
120
|
};
|
|
121
121
|
Col.style = colCss;
|
|
122
122
|
|
|
123
|
-
const counterCss = ".sc-road-counter-h{display:block}road-input.sc-road-counter{--input-text-align:center;--border-radius:0;--margin-bottom:0}road-button.sc-road-counter{font-size:1.5rem;line-height:1.4;background:var(--road-grey-
|
|
123
|
+
const counterCss = ".sc-road-counter-h{display:block}road-input.sc-road-counter{--input-text-align:center;--border-radius:0;--margin-bottom:0}road-button.sc-road-counter{width:3rem;font-size:1.5rem;line-height:1.4;background:var(--road-grey-000);border:1px solid var(--road-primary-500)}road-button.sc-road-counter:hover,road-button.sc-road-counter:focus{background:var(--road-primary-100)}road-button.sc-road-counter road-icon.sc-road-counter{display:flex;fill:var(--road-primary-500)}.disabled.sc-road-counter{margin-right:-1px;margin-left:-1px;pointer-events:none;cursor:not-allowed;background:var(--road-disabled);border:1px solid var(--road-grey-500);opacity:inherit}.disabled.sc-road-counter:focus{background:var(--road-disabled)}.disabled.sc-road-counter road-icon.sc-road-counter{fill:var(--road-grey-500)}road-button.btn-md.sc-road-counter{width:2.5rem}road-button.btn-sm.sc-road-counter{width:2rem}.counter-md.sc-road-counter{height:2.5rem}.counter-sm.sc-road-counter{height:2rem}.counter-md.sc-road-counter road-input.sc-road-counter{--height:2.5rem}.counter-md.sc-road-counter road-button.sc-road-counter{min-width:2.5rem}.counter-sm.sc-road-counter road-input.sc-road-counter{--height:2rem}.counter-sm.sc-road-counter road-button.sc-road-counter{min-width:2rem}";
|
|
124
124
|
|
|
125
125
|
const Counter = class {
|
|
126
126
|
constructor(hostRef) {
|
|
@@ -144,6 +144,10 @@ const Counter = class {
|
|
|
144
144
|
* The value of the counter.
|
|
145
145
|
*/
|
|
146
146
|
this.value = 1;
|
|
147
|
+
/**
|
|
148
|
+
* The size of the counter.
|
|
149
|
+
*/
|
|
150
|
+
this.size = "lg";
|
|
147
151
|
/**
|
|
148
152
|
* Set to `true` to add the dustbin icon if the value is equal to the min.
|
|
149
153
|
*/
|
|
@@ -659,7 +663,7 @@ const Input = class {
|
|
|
659
663
|
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
660
664
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
661
665
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
662
|
-
return (index.h(index.Host, { "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, index.h("input", { class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }), index.h("label", { class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && index.h("p", { class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && index.h("p", { class: "helper" }, this.helper), this.type && this.type == 'password' &&
|
|
666
|
+
return (index.h(index.Host, { "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, index.h("input", { class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "data-cy": 'road-input' }), index.h("label", { class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && index.h("p", { class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && index.h("p", { class: "helper" }, this.helper), this.type && this.type == 'password' &&
|
|
663
667
|
index.h("slot", { name: "checklistPassword" })));
|
|
664
668
|
}
|
|
665
669
|
static get watchers() { return {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-a2306350.js');
|
|
6
|
+
|
|
7
|
+
const profilDropdownCss = ":host{--margin-top:0.5rem;display:block;font-size:1rem}.dropdown{position:relative;width:max-content;font-family:var(--road-font)}.dropdown summary{display:block;cursor:pointer;outline:none}.dropdown summary::-webkit-details-marker{display:none}.dropdown-button{position:relative;z-index:1;height:3.5rem;cursor:pointer;border-radius:0.25rem}.dropdown-button:hover{background:var(--road-grey-200)}.dropdown[open] .dropdown-menu{transform:scaleY(1)}.dropdown[open] .dropdown-menu.direction-top{position:absolute;bottom:0;left:0;transform:translate3d(0, -56px, 0);will-change:transform}.dropdown-menu{position:absolute;top:0;left:5.5rem;display:flex;flex-direction:column;width:100%;min-width:16.875rem;padding:0.5rem 0;color:var(--road-grey-900);background:var(--road-test);border:1px solid;border-color:var(--road-grey-200);border-radius:0.25rem;box-shadow:0 0.375rem 0.375rem rgba(41, 44, 51, 0.24);transition:transform 0.2s ease-in-out;transform:scaleY(0);transform-origin:0 0}road-item{font-size:1rem}.profil-item{display:flex;padding-bottom:1rem;margin:1rem;cursor:auto;border-bottom:1px solid var(--road-grey-200)}.profil-item-info{display:flex;flex-direction:column;margin-left:1rem}.profil-item-info-name{font-weight:700}.profil-item road-avatar:hover{box-shadow:none}.dropdown-item{display:flex;align-items:center;min-height:40px;padding:0 1rem;font-size:1rem;line-height:1.5;color:var(--road-grey-900);text-align:left;text-decoration:none;cursor:pointer;background:var(--road-grey-000);border:none;outline:none}.dropdown-item-border{border-color:var(--road-grey-200);border-bottom:1px solid}.dropdown-item road-icon{margin-right:0.7rem}road-item:hover:first-child,road-item.focus-visible:first-child{background:none}road-item:hover,road-item.focus-visible{background:var(--road-grey-100)}";
|
|
8
|
+
|
|
9
|
+
const Dropdown = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
/**
|
|
13
|
+
* Set to `true` to open the dropdown menu and to `false` to close it.
|
|
14
|
+
*/
|
|
15
|
+
this.isOpen = false;
|
|
16
|
+
/**
|
|
17
|
+
* Toggle the display when clicking element in slot
|
|
18
|
+
*/
|
|
19
|
+
this.onClick = () => {
|
|
20
|
+
this.isOpen = !this.isOpen;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
return (index.h("details", { class: "dropdown", open: this.isOpen }, index.h("summary", { "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, index.h("div", { class: `d-flex` }, index.h("div", null, index.h("road-avatar", null, index.h("slot", { name: "avatar" }))))), index.h("div", { class: `dropdown-menu` }, index.h("div", { class: "profil-item" }, index.h("road-avatar", { size: "sm" }, index.h("slot", { name: "avatarItem" })), index.h("div", { class: "profil-item-info" }, index.h("span", { class: "profil-item-info-name" }, "First and Last name"), index.h("road-label", null, "Email"))), index.h("slot", { name: "list" }))));
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
Dropdown.style = profilDropdownCss;
|
|
28
|
+
|
|
29
|
+
exports.road_profil_dropdown = Dropdown;
|
|
@@ -33,7 +33,6 @@ const ProgressBar = class {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const valueRound = Math.round(this.value / 5 / 5);
|
|
36
|
-
console.log(this.value / 5 / 5);
|
|
37
36
|
return (index.h(index.Host, { class: "progress-element" }, index.h("div", { class: `progress progress-${this.color}` }, index.h("div", { class: "progress-bar", role: "progressbar", style: { width: `${this.value}%` }, "aria-valuenow": this.value, "aria-valuemin": "0", "aria-valuemax": "100" })), index.h("div", { class: "progress-element-info" }, index.h("span", { class: "progress-element-label" }, this.label), this.showstep && index.h("span", { class: "progress-element-step" }, valueRound, "/", this.numbersteps))));
|
|
38
37
|
}
|
|
39
38
|
};
|
|
@@ -4,13 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a2306350.js');
|
|
6
6
|
|
|
7
|
-
const segmentedButtonCss = ":host{--border-radius:0.25rem;--font-size:1rem;--margin-bottom:1rem;--padding-start:1.5rem;--padding-end:1.5rem;box-sizing:border-box;flex:1;align-items:center;justify-content:center;max-height:2.5rem;font-size:1rem;font-weight:700;color:var(--road-primary-500);text-decoration:none;white-space:nowrap;vertical-align:middle;background-color:var(--road-grey-000);border-top:1px solid var(--road-primary-500);border-bottom:1px solid var(--road-primary-500);border-left:1px solid var(--road-primary-500);border-radius:0;transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}:host(:first-child){border:1px solid var(--road-primary-500);border-right:0;border-radius:999em 0 0 999em}:host(:last-child){border:1px solid var(--road-primary-500);border-radius:0 999em 999em 0}:host(.tab-selected){color:var(--road-primary-contrast);background-color:var(--road-primary-500)}:host(.tab-selected:hover){background-color:var(--road-primary-700)}:host(:hover){background:var(--road-primary-100)}:host(.focus-visible){background:var(--road-primary-100);outline:0}:host(.tab-selected.focus-visible){background-color:var(--road-primary-700)}.button-native{position:relative;box-sizing:border-box;display:flex;flex-direction:inherit;align-items:inherit;justify-content:inherit;width:100%;height:100%;max-height:2.5rem;padding:0.75rem var(--padding-end, 1.5rem) 0.75rem var(--padding-start, 1.5rem);margin:0;overflow:hidden;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;color:inherit;text-align:inherit;text-decoration:none;text-indent:inherit;text-overflow:inherit;text-transform:inherit;letter-spacing:inherit;white-space:inherit;cursor:pointer;background:transparent;-webkit-user-drag:none;border-color:initial;border-style:initial;border-width:0;border-radius:inherit;border-image:initial;outline:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}";
|
|
7
|
+
const segmentedButtonCss = ":host{--border-radius:0.25rem;--font-size:1rem;--margin-bottom:1rem;--padding-start:1.5rem;--padding-end:1.5rem;box-sizing:border-box;flex:1;align-items:center;justify-content:center;max-height:2.5rem;font-size:1rem;font-weight:700;color:var(--road-primary-500);text-decoration:none;white-space:nowrap;vertical-align:middle;background-color:var(--road-grey-000);border-top:1px solid var(--road-primary-500);border-bottom:1px solid var(--road-primary-500);border-left:1px solid var(--road-primary-500);border-radius:0;transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}:host(:first-child){border:1px solid var(--road-primary-500);border-right:0;border-radius:999em 0 0 999em}:host(:last-child){border:1px solid var(--road-primary-500);border-radius:0 999em 999em 0}:host(.btn-sm){height:2rem;font-size:0.875rem}:host(.tab-selected){color:var(--road-primary-contrast);background-color:var(--road-primary-500)}:host(.tab-selected:hover){background-color:var(--road-primary-700)}:host(:hover){background:var(--road-primary-100)}:host(.focus-visible){background:var(--road-primary-100);outline:0}:host(.tab-selected.focus-visible){background-color:var(--road-primary-700)}.button-native{position:relative;box-sizing:border-box;display:flex;flex-direction:inherit;align-items:inherit;justify-content:inherit;width:100%;height:100%;max-height:2.5rem;padding:0.75rem var(--padding-end, 1.5rem) 0.75rem var(--padding-start, 1.5rem);margin:0;overflow:hidden;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;color:inherit;text-align:inherit;text-decoration:none;text-indent:inherit;text-overflow:inherit;text-transform:inherit;letter-spacing:inherit;white-space:inherit;cursor:pointer;background:transparent;-webkit-user-drag:none;border-color:initial;border-style:initial;border-width:0;border-radius:inherit;border-image:initial;outline:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}";
|
|
8
8
|
|
|
9
9
|
const SegmentedButton = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
this.roadsegmentedbuttonclick = index.createEvent(this, "roadsegmentedbuttonclick", 7);
|
|
13
13
|
this.roadSegmentedButtonClick = index.createEvent(this, "roadSegmentedButtonClick", 7);
|
|
14
|
+
/**
|
|
15
|
+
* The Segmented buttons size.
|
|
16
|
+
*/
|
|
17
|
+
this.size = 'md';
|
|
14
18
|
/**
|
|
15
19
|
* The selected tab component
|
|
16
20
|
*/
|
|
@@ -53,8 +57,10 @@ const SegmentedButton = class {
|
|
|
53
57
|
}
|
|
54
58
|
render() {
|
|
55
59
|
const { tabIndex, selected, tab } = this;
|
|
60
|
+
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
56
61
|
return (index.h(index.Host, { onClick: this.onClick, onKeyup: this.onKeyUp, role: "tab", tabindex: tabIndex, "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
57
62
|
'tab-selected': selected,
|
|
63
|
+
[`${sizeClass}`]: true,
|
|
58
64
|
} }, index.h("button", { type: "button", tabIndex: -1, class: "button-native", part: "native" }, index.h("slot", null))));
|
|
59
65
|
}
|
|
60
66
|
get el() { return index.getElement(this); }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-a2306350.js');
|
|
6
|
+
|
|
7
|
+
const verticalStepperItemCss = "road-vertical-stepper-item{display:flex;flex-direction:row;justify-content:flex-start;min-height:65px}.vertical-stepper-item-content{display:inline-block;margin-left:1rem}road-vertical-stepper-item:not(.completed) .vertical-stepper-link{cursor:not-allowed}.vertical-stepper-link{position:relative;z-index:1;display:flex}.vertical-stepper-icon{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;font-size:1rem;font-weight:700;color:var(--road-grey-500);background:var(--road-grey-200);border-radius:50%;fill:currentColor}.vertical-stepper-line{position:absolute;top:32px;left:15px;z-index:-1;height:calc(100% - 32px);border-left:2px solid var(--road-grey-200)}road-vertical-stepper-item:last-child .vertical-stepper-line{border-left:0}.stepper-outline .vertical-stepper-icon,.stepper-secondary-outline .vertical-stepper-icon{color:var(--road-grey-500);background:var(--road-grey-000);border:2px solid var(--road-grey-500)}.stepper-outline-light .vertical-stepper-icon,.stepper-secondary-outline-light .vertical-stepper-icon{color:var(--road-grey-500);background:none;border:2px solid var(--road-grey-500);fill:currentColor}.vertical-stepper-title{display:block;font-size:0.875rem;font-weight:700;color:var(--road-grey-900)}.vertical-stepper-description{display:block;margin:0;font-size:0.75rem;font-weight:400;color:var(--road-grey-600)}.completed:not(:last-child)::after{background:var(--road-primary-500)}.vertical-stepper-secondary .completed:not(:last-child) .vertical-stepper-line,.vertical-stepper-secondary-outline .completed:not(:last-child) .vertical-stepper-line,.vertical-stepper-secondary-outline-light .completed:not(:last-child) .vertical-stepper-line{background:var(--road-secondary-600)}.completed .vertical-stepper-icon,.current .vertical-stepper-icon{width:2rem;height:2rem;color:var(--road-primary-contrast);background:var(--road-primary-500);border:0}.completed .vertical-stepper-line{border-left:2px solid var(--road-primary-500)}.stepper-secondary.completed .vertical-stepper-line,.stepper-secondary-outline.completed .vertical-stepper-line,.stepper-secondary-outline-light.completed .vertical-stepper-line{border-left:2px solid var(--road-secondary-600)}.stepper-outline.completed .vertical-stepper-icon{align-items:baseline;color:var(--road-primary-500);background:var(--road-grey-000);border:2px solid var(--road-primary-500)}.stepper-secondary.stepper-outline.completed .vertical-stepper-icon{color:var(--road-secondary-600);background:var(--road-grey-000);border:2px solid var(--road-secondary-600)}.stepper-outline-light.completed .vertical-stepper-icon{align-items:baseline;color:var(--road-primary-500);background:none;border:2px solid var(--road-primary-500)}.stepper-secondary.completed .vertical-stepper-icon{color:var(--road-grey-900);background:var(--road-secondary-600);border:0}.stepper-secondary.stepper-outline-light.completed .vertical-stepper-icon{color:var(--road-secondary-600);background:none;border:2px solid var(--road-secondary-600)}.stepper-secondary.current .vertical-stepper-icon{color:var(--road-grey-900);background:var(--road-secondary-600)}.stepper-secondary-outline.current .vertical-stepper-icon{color:var(--road-grey-900);background:var(--road-secondary-600)}.stepper-secondary-outline-light.current .vertical-stepper-icon{color:var(--road-grey-900);background:var(--road-secondary-600)}.current .vertical-stepper-title{font-weight:700;color:var(--road-grey-900)}";
|
|
8
|
+
|
|
9
|
+
const VerticalStepperItem = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (index.h(index.Host, null, index.h("slot", null)));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
VerticalStepperItem.style = verticalStepperItemCss;
|
|
18
|
+
|
|
19
|
+
exports.road_vertical_stepper_item = VerticalStepperItem;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-a2306350.js');
|
|
6
|
+
|
|
7
|
+
const verticalStepperCss = ":host{display:block}.vertical-stepper{display:flex;flex-direction:column;padding-left:0;list-style:none}";
|
|
8
|
+
|
|
9
|
+
const VerticalStepper = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (index.h(index.Host, null, index.h("nav", null, index.h("ul", null, index.h("slot", null)))));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
VerticalStepper.style = verticalStepperCss;
|
|
18
|
+
|
|
19
|
+
exports.road_vertical_stepper = VerticalStepper;
|
package/dist/cjs/roadtrip.cjs.js
CHANGED
|
@@ -83,5 +83,5 @@ const patchDynamicImport = (base, orgScriptElm) => {
|
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
patchBrowser().then(options => {
|
|
86
|
-
return index.bootstrapLazy([["road-badge_14.cjs",[[2,"road-counter",{"inputId":[1,"input-id"],"min":[2],"max":[2],"step":[1],"value":[2],"size":[1],"dustbin":[4],"leftIconClasses":[32],"rightIconClasses":[32],"isDustbinVisible":[32]}],[1,"road-item",{"button":[4],"detail":[4],"active":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"target":[1],"type":[1],"multipleInputs":[32]}],[1,"road-badge",{"color":[1],"bubble":[4]}],[1,"road-list",{"lines":[1]}],[1,"road-toolbar",{"color":[1]}],[33,"road-drawer",{"isOpen":[1028,"is-open"],"position":[1],"drawerWidth":[2,"drawer-width"],"hasInverseHeader":[4,"has-inverse-header"],"hasBackIcon":[4,"has-back-icon"],"backText":[1,"back-text"],"drawerTitle":[1,"drawer-title"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64],"back":[64]},[[4,"keyup","onEscape"]]],[1,"road-col"],[1,"road-grid"],[6,"road-input",{"inputId":[1,"input-id"],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"sizes":[1],"type":[1],"value":[1032],"label":[1],"error":[1],"helper":[1],"debounce":[2]}],[1,"road-
|
|
86
|
+
return index.bootstrapLazy([["road-badge_14.cjs",[[2,"road-counter",{"inputId":[1,"input-id"],"min":[2],"max":[2],"step":[1],"value":[2],"size":[1],"dustbin":[4],"leftIconClasses":[32],"rightIconClasses":[32],"isDustbinVisible":[32]}],[1,"road-item",{"button":[4],"detail":[4],"active":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"target":[1],"type":[1],"multipleInputs":[32]}],[1,"road-badge",{"color":[1],"bubble":[4]}],[1,"road-list",{"lines":[1]}],[1,"road-toolbar",{"color":[1]}],[33,"road-drawer",{"isOpen":[1028,"is-open"],"position":[1],"drawerWidth":[2,"drawer-width"],"hasInverseHeader":[4,"has-inverse-header"],"hasBackIcon":[4,"has-back-icon"],"backText":[1,"back-text"],"drawerTitle":[1,"drawer-title"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64],"back":[64]},[[4,"keyup","onEscape"]]],[1,"road-col"],[1,"road-grid"],[6,"road-input",{"inputId":[1,"input-id"],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"sizes":[1],"type":[1],"value":[1032],"label":[1],"error":[1],"helper":[1],"debounce":[2]}],[1,"road-row"],[1,"road-button",{"color":[1],"size":[513],"buttonType":[1,"button-type"],"disabled":[516],"expand":[516],"download":[1],"href":[1],"rel":[1],"target":[1],"outline":[4]}],[1,"road-input-group"],[1,"road-label"],[1,"road-icon",{"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"name":[1],"src":[1],"icon":[8],"size":[1],"rotate":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["road-duration.cjs",[[1,"road-duration",{"isOpen":[1028,"is-open"],"header":[1],"min":[2],"max":[2],"step":[2],"open":[64],"close":[64]},[[0,"roadcardclick","handleClick"]]]]],["road-plate-number.cjs",[[2,"road-plate-number",{"country":[1],"disabled":[4],"placeholder":[1],"readonly":[4],"value":[1032],"motorbike":[4]}]]],["road-profil-dropdown.cjs",[[1,"road-profil-dropdown",{"isOpen":[1028,"is-open"]}]]],["road-accordion.cjs",[[1,"road-accordion",{"isOpen":[1028,"is-open"],"isLight":[4,"is-light"],"isLightSeparator":[4,"is-light-separator"],"isSmall":[4,"is-small"]}]]],["road-banner.cjs",[[1,"road-banner",{"isOpen":[1028,"is-open"],"label":[1],"link":[1],"url":[1],"close":[64]}]]],["road-carousel.cjs",[[1,"road-carousel",{"options":[8],"pager":[4],"arrows":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["road-checkbox.cjs",[[6,"road-checkbox",{"checkboxId":[1,"checkbox-id"],"name":[1],"required":[4],"checked":[1028],"indeterminate":[4],"disabled":[4],"value":[1],"label":[1],"inverse":[4],"error":[1],"helper":[1]}]]],["road-chip.cjs",[[1,"road-chip",{"color":[1],"outline":[4],"size":[1],"hasCloseIcon":[4,"has-close-icon"]}]]],["road-collapse.cjs",[[1,"road-collapse",{"isOpen":[1028,"is-open"],"showMore":[1,"show-more"],"showLess":[1,"show-less"],"centered":[4]}]]],["road-dialog.cjs",[[1,"road-dialog",{"isOpen":[1028,"is-open"],"hasCloseIcon":[4,"has-close-icon"],"color":[1],"icon":[1],"label":[1],"description":[1],"open":[64],"close":[64]},[[4,"keyup","onEscape"]]]]],["road-dropdown.cjs",[[1,"road-dropdown",{"isOpen":[1028,"is-open"],"isLight":[4,"is-light"],"position":[513],"direction":[513]}]]],["road-modal.cjs",[[1,"road-modal",{"maxWidth":[2,"max-width"],"isOpen":[1028,"is-open"],"hasInverseHeader":[4,"has-inverse-header"],"modalTitle":[1,"modal-title"],"hasCloseIcon":[4,"has-close-icon"],"open":[64],"close":[64]},[[4,"keyup","onEscape"]]]]],["road-range.cjs",[[6,"road-range",{"rangeId":[1,"range-id"],"value":[1032],"min":[1],"max":[1],"step":[1],"showValue":[4,"show-value"],"showTick":[4,"show-tick"],"showLabels":[4,"show-labels"]}]]],["road-rating.cjs",[[1,"road-rating",{"size":[513],"rate":[2],"reviews":[2],"reviewsText":[1,"reviews-text"]}]]],["road-toast.cjs",[[1,"road-toast",{"isOpen":[1028,"is-open"],"color":[1],"label":[1],"timeout":[2],"open":[64],"close":[64]}]]],["road-alert.cjs",[[1,"road-alert",{"color":[1],"label":[1],"link":[1],"url":[1]}]]],["road-autocomplete.cjs",[[6,"road-autocomplete",{"options":[16],"visible":[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[4,"click","onClickOutside"]]]]],["road-carousel-item.cjs",[[4,"road-carousel-item"]]],["road-flap.cjs",[[1,"road-flap",{"color":[1],"size":[513]}]]],["road-img.cjs",[[1,"road-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["road-navbar.cjs",[[1,"road-navbar",{"selectedTab":[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"]]]]],["road-navbar-item.cjs",[[1,"road-navbar-item",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"selected":[1028],"tab":[1],"target":[1]},[[8,"roadNavbarChanged","onNavbarChanged"],[8,"roadnavbarchanged","onNavbarChanged"]]]]],["road-progress.cjs",[[1,"road-progress",{"value":[2],"numbersteps":[1],"label":[1],"showstep":[4],"color":[1]}]]],["road-radio.cjs",[[2,"road-radio",{"radioId":[1,"radio-id"],"name":[1],"required":[4],"disabled":[4],"value":[8],"label":[1],"inverse":[4],"error":[4],"helper":[1],"inline":[4],"checked":[32]},[[8,"roadChange","onRoadChangedChanged"],[8,"roadchange","onRoadChangedChanged"]]]]],["road-radio-group.cjs",[[6,"road-radio-group",{"radioGroupId":[1,"radio-group-id"],"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032],"label":[1],"asterisk":[4],"ariaLabel":[513,"aria-label"],"error":[1025],"helper":[1]}]]],["road-segmented-button.cjs",[[1,"road-segmented-button",{"size":[1],"selected":[1028],"tab":[1]},[[8,"roadSegmentedButtonBarChanged","onButtonBarChanged"],[8,"roadSegmentedButtonbarchanged","onButtonBarChanged"]]]]],["road-segmented-button-bar.cjs",[[1,"road-segmented-button-bar",{"selectedTab":[1,"selected-tab"]}]]],["road-segmented-buttons.cjs",[[1,"road-segmented-buttons",{"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64]}]]],["road-select.cjs",[[2,"road-select",{"selectId":[1,"select-id"],"options":[16],"autofocus":[4],"disabled":[4],"name":[1],"required":[4],"size":[2],"sizes":[1],"label":[1],"error":[1],"value":[1032]}]]],["road-select-filter.cjs",[[6,"road-select-filter",{"options":[16],"parameters":[8],"isActive":[4,"is-active"],"onlySelect":[4,"only-select"],"isOpen":[32],"currentValue":[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[0,"roadBlur","handleBlur"],[0,"roadblur","handleBlur"],[0,"roadChange","handleChange"],[0,"roadchange","handleChange"],[4,"click","onClickOutside"]]]]],["road-skeleton.cjs",[[1,"road-skeleton"]]],["road-spinner.cjs",[[1,"road-spinner",{"size":[513],"color":[513]}]]],["road-stepper.cjs",[[1,"road-stepper",{"color":[513],"light":[4],"outline":[4],"stateFirstStep":[1,"state-first-step"],"stateSecondStep":[1,"state-second-step"],"stateThirdStep":[1,"state-third-step"]}]]],["road-switch.cjs",[[2,"road-switch",{"switchId":[1,"switch-id"],"name":[1],"checked":[1028],"disabled":[4],"label":[1],"color":[1],"hasLeftLabel":[4,"has-left-label"],"isSpaced":[4,"is-spaced"],"value":[1],"on":[1],"off":[1]}]]],["road-tab.cjs",[[1,"road-tab",{"active":[1028],"tab":[1],"setActive":[64]}]]],["road-tab-bar.cjs",[[1,"road-tab-bar",{"secondary":[4],"expand":[4],"center":[4],"selectedTab":[1,"selected-tab"]}]]],["road-tab-button.cjs",[[1,"road-tab-button",{"download":[1],"href":[1],"rel":[1],"layout":[1],"selected":[1028],"tab":[1],"target":[1]},[[8,"roadTabBarChanged","onTabBarChanged"],[8,"roadTabbarchanged","onTabBarChanged"]]]]],["road-table.cjs",[[6,"road-table"]]],["road-tabs.cjs",[[1,"road-tabs",{"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64]}]]],["road-text.cjs",[[1,"road-text",{"color":[1]}]]],["road-textarea.cjs",[[2,"road-textarea",{"textareaId":[1,"textarea-id"],"autocapitalize":[1],"autofocus":[4],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"sizes":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"value":[1025],"label":[1],"error":[1],"helper":[1]}]]],["road-toggle.cjs",[[2,"road-toggle",{"toggleId":[1,"toggle-id"],"name":[1],"checked":[1028],"disabled":[4],"label":[1],"color":[1],"hasLeftLabel":[4,"has-left-label"],"isSpaced":[4,"is-spaced"],"value":[1],"on":[1],"off":[1]}]]],["road-toolbar-title.cjs",[[1,"road-toolbar-title"]]],["road-tooltip.cjs",[[1,"road-tooltip",{"tooltipId":[1,"tooltip-id"],"content":[1],"position":[1],"contentAlign":[1,"content-align"],"isOpen":[1028,"is-open"],"trigger":[1],"open":[64],"close":[64]}]]],["road-vertical-stepper.cjs",[[1,"road-vertical-stepper"]]],["road-vertical-stepper-item.cjs",[[4,"road-vertical-stepper-item"]]],["road-avatar.cjs",[[1,"road-avatar",{"size":[513]}]]],["road-card.cjs",[[1,"road-card",{"button":[4],"value":[1],"type":[1],"download":[1],"href":[1],"rel":[1],"target":[1]}]]]], options);
|
|
87
87
|
});
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"./components/navbar/navbar.js",
|
|
33
33
|
"./components/navbar-item/navbar-item.js",
|
|
34
34
|
"./components/plate-number/plate-number.js",
|
|
35
|
+
"./components/profil-dropdown/profil-dropdown.js",
|
|
35
36
|
"./components/progress/progress.js",
|
|
36
37
|
"./components/radio/radio.js",
|
|
37
38
|
"./components/radio-group/radio-group.js",
|
|
@@ -58,7 +59,9 @@
|
|
|
58
59
|
"./components/toggle/toggle.js",
|
|
59
60
|
"./components/toolbar/toolbar.js",
|
|
60
61
|
"./components/toolbar-title/toolbar-title.js",
|
|
61
|
-
"./components/tooltip/tooltip.js"
|
|
62
|
+
"./components/tooltip/tooltip.js",
|
|
63
|
+
"./components/vertical-stepper/vertical-stepper.js",
|
|
64
|
+
"./components/vertical-stepper-item/vertical-stepper-item.js"
|
|
62
65
|
],
|
|
63
66
|
"compiler": {
|
|
64
67
|
"name": "@stencil/core",
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
-------------------- */
|
|
17
17
|
|
|
18
18
|
:host {
|
|
19
|
-
--avatar-background: var(--road-
|
|
19
|
+
--avatar-background: var(--road-primary-500);
|
|
20
20
|
--avatar-width: 3rem;
|
|
21
|
+
--avatar-color: var(--road-grey-000);
|
|
21
22
|
|
|
22
23
|
position: relative;
|
|
23
24
|
display: flex;
|
|
@@ -25,10 +26,48 @@
|
|
|
25
26
|
justify-content: center;
|
|
26
27
|
width: var(--avatar-width);
|
|
27
28
|
height: var(--avatar-width);
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
color: var(--avatar-color);
|
|
28
31
|
background: var(--avatar-background);
|
|
29
32
|
border-radius: var(--avatar-width);
|
|
33
|
+
transition: box-shadow 0.5s;
|
|
30
34
|
}
|
|
31
35
|
|
|
36
|
+
:host(:hover),
|
|
37
|
+
:host(.focus-visible),
|
|
38
|
+
:host(:focus){
|
|
39
|
+
box-shadow: 0 0 0 4px var(--road-primary-200);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
:host ::slotted(road-icon) {
|
|
45
|
+
fill: var(--road-grey-000);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/* SIZE
|
|
50
|
+
-------------------- */
|
|
51
|
+
|
|
52
|
+
:host(.avatar-sm) {
|
|
53
|
+
width: 2.625rem;
|
|
54
|
+
height: 2.625rem;
|
|
55
|
+
font-size: 1.25rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host(.avatar-md) {
|
|
59
|
+
width: 3.5rem;
|
|
60
|
+
height: 3.5rem;
|
|
61
|
+
font-size: 2rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host(.avatar-lg) {
|
|
65
|
+
width: 4rem;
|
|
66
|
+
height: 4rem;
|
|
67
|
+
font-size: 2.375rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
32
71
|
/* IMAGE
|
|
33
72
|
-------------------- */
|
|
34
73
|
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import { h } from '@stencil/core';
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
|
2
2
|
/**
|
|
3
3
|
* @slot - Image of the avatar.
|
|
4
4
|
*/
|
|
5
5
|
export class Avatar {
|
|
6
|
+
constructor() {
|
|
7
|
+
/**
|
|
8
|
+
* The Avatar size.
|
|
9
|
+
*/
|
|
10
|
+
this.size = 'md';
|
|
11
|
+
}
|
|
6
12
|
render() {
|
|
7
|
-
|
|
13
|
+
const sizeClass = this.size !== undefined ? `avatar-${this.size}` : '';
|
|
14
|
+
return (h(Host, { class: `${sizeClass}` }, h("slot", null)));
|
|
8
15
|
}
|
|
9
16
|
static get is() { return "road-avatar"; }
|
|
10
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,4 +25,26 @@ export class Avatar {
|
|
|
18
25
|
"$": ["avatar.css"]
|
|
19
26
|
};
|
|
20
27
|
}
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"size": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "'sm' | 'md' | 'lg'",
|
|
35
|
+
"resolved": "\"lg\" | \"md\" | \"sm\" | undefined",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": true,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": "The Avatar size."
|
|
43
|
+
},
|
|
44
|
+
"attribute": "size",
|
|
45
|
+
"reflect": true,
|
|
46
|
+
"defaultValue": "'md'"
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
21
50
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { html } from 'lit-html';
|
|
2
|
+
import { ifDefined } from 'lit-html/directives/if-defined';
|
|
2
3
|
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
|
|
3
4
|
|
|
4
5
|
export default {
|
|
@@ -10,28 +11,28 @@ export default {
|
|
|
10
11
|
},
|
|
11
12
|
'--avatar-background': {
|
|
12
13
|
table: {
|
|
13
|
-
defaultValue: { summary: 'var(--road-
|
|
14
|
+
defaultValue: { summary: 'var(--road-primary-500)' },
|
|
14
15
|
},
|
|
15
16
|
control: {
|
|
16
17
|
type: null,
|
|
17
18
|
},
|
|
18
19
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
defaultValue: { summary: '3rem' },
|
|
22
|
-
},
|
|
20
|
+
size: {
|
|
21
|
+
options: ['sm', 'md', 'lg'],
|
|
23
22
|
control: {
|
|
24
|
-
type:
|
|
23
|
+
type: 'select',
|
|
25
24
|
},
|
|
26
25
|
},
|
|
27
26
|
},
|
|
28
27
|
args: {
|
|
28
|
+
size: null,
|
|
29
29
|
' ': `<road-img src="https://images.unsplash.com/photo-1527980965255-d3b416303d12?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80" alt="avatar"></road-img>`,
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
const Template = (args) => html`
|
|
34
|
-
<road-avatar
|
|
34
|
+
<road-avatar
|
|
35
|
+
size="${ifDefined(args.size)}">
|
|
35
36
|
${unsafeHTML(args[' '])}
|
|
36
37
|
</road-avatar>
|
|
37
38
|
`;
|