@roadtrip/components 3.40.0 → 3.41.1
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/loader.cjs.js +1 -1
- package/dist/cjs/road-alert.cjs.entry.js +62 -2
- package/dist/cjs/road-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/road-area-code.cjs.entry.js +1 -1
- package/dist/cjs/road-aspect-ratio.cjs.entry.js +1 -1
- package/dist/cjs/road-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/road-avatar.cjs.entry.js +1 -1
- package/dist/cjs/road-badge_14.cjs.entry.js +23 -18
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-banner.cjs.entry.js +1 -1
- package/dist/cjs/road-button-floating.cjs.entry.js +1 -1
- package/dist/cjs/road-card.cjs.entry.js +1 -1
- package/dist/cjs/road-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/road-carousel.cjs.entry.js +1 -1
- package/dist/cjs/road-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/road-chip.cjs.entry.js +1 -1
- package/dist/cjs/road-collapse.cjs.entry.js +1 -1
- package/dist/cjs/road-content-card.cjs.entry.js +1 -1
- package/dist/cjs/road-dialog.cjs.entry.js +3 -3
- package/dist/cjs/road-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-duration.cjs.entry.js +1 -1
- package/dist/cjs/road-flap.cjs.entry.js +1 -1
- package/dist/cjs/road-global-navigation-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-global-navigation.cjs.entry.js +1 -1
- package/dist/cjs/road-img.cjs.entry.js +1 -1
- package/dist/cjs/road-modal.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar-item-v2.cjs.entry.js +2 -2
- package/dist/cjs/road-navbar-item.cjs.entry.js +2 -2
- package/dist/cjs/road-navbar-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar.cjs.entry.js +1 -1
- package/dist/cjs/road-phone-number-input.cjs.entry.js +2 -2
- package/dist/cjs/road-plate-number.cjs.entry.js +2 -2
- package/dist/cjs/road-profil-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-vertical-item.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-vertical.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-tracker-item.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-tracker.cjs.entry.js +1 -1
- package/dist/cjs/road-progress.cjs.entry.js +1 -1
- package/dist/cjs/road-radio-card.cjs.entry.js +1 -1
- package/dist/cjs/road-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/road-radio.cjs.entry.js +1 -1
- package/dist/cjs/road-range.cjs.entry.js +2 -2
- package/dist/cjs/road-rating.cjs.entry.js +1 -1
- package/dist/cjs/road-segmented-button-bar.cjs.entry.js +1 -1
- package/dist/cjs/road-segmented-button.cjs.entry.js +2 -2
- package/dist/cjs/road-segmented-buttons.cjs.entry.js +1 -1
- package/dist/cjs/road-select-filter.cjs.entry.js +1 -1
- package/dist/cjs/road-select.cjs.entry.js +1 -1
- package/dist/cjs/road-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/road-spinner.cjs.entry.js +1 -1
- package/dist/cjs/road-status-chip.cjs.entry.js +1 -1
- package/dist/cjs/road-switch.cjs.entry.js +2 -2
- package/dist/cjs/road-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/road-tab-button.cjs.entry.js +2 -2
- package/dist/cjs/road-tab.cjs.entry.js +2 -2
- package/dist/cjs/road-table.cjs.entry.js +1 -1
- package/dist/cjs/road-tabs.cjs.entry.js +1 -1
- package/dist/cjs/road-tag.cjs.entry.js +1 -1
- package/dist/cjs/road-text.cjs.entry.js +1 -1
- package/dist/cjs/road-textarea.cjs.entry.js +1 -1
- package/dist/cjs/road-time-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/road-toast.cjs.entry.js +1 -1
- package/dist/cjs/road-toggle.cjs.entry.js +2 -2
- package/dist/cjs/road-toolbar-title-page.cjs.entry.js +1 -1
- package/dist/cjs/road-toolbar-title.cjs.entry.js +1 -1
- package/dist/cjs/road-toolbar-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/roadtrip.cjs.js +1 -1
- package/dist/collection/components/alert/alert.css +68 -2
- package/dist/collection/components/alert/alert.js +185 -1
- package/dist/collection/components/alert/alert.js.map +1 -1
- package/dist/collection/components/alert/alert.stories.js +43 -12
- package/dist/collection/components/area-code/area-code.js +1 -1
- package/dist/collection/components/aspect-ratio/aspect-ratio.js +1 -1
- package/dist/collection/components/autocomplete/autocomplete.js +2 -2
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/banner/banner.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button-floating/button-floating.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/carousel/carousel.js +1 -1
- package/dist/collection/components/carousel-item/carousel-item.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/col/col.js +1 -1
- package/dist/collection/components/collapse/collapse.js +1 -1
- package/dist/collection/components/content-card/content-card.js +1 -1
- package/dist/collection/components/counter/counter.js +1 -1
- package/dist/collection/components/dialog/dialog.js +3 -3
- package/dist/collection/components/drawer/drawer.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/duration/duration.js +1 -1
- package/dist/collection/components/flap/flap.js +1 -1
- package/dist/collection/components/global-navigation/global-navigation.js +1 -1
- package/dist/collection/components/global-navigation-v2/global-navigation-v2.js +1 -1
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/img/img.js +1 -1
- package/dist/collection/components/input/input.css +8 -0
- package/dist/collection/components/input/input.js +27 -2
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input/input.stories.js +11 -0
- package/dist/collection/components/input-group/input-group.js +1 -1
- package/dist/collection/components/item/item.js +3 -3
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/list/list.js +2 -2
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/navbar/navbar.js +1 -1
- package/dist/collection/components/navbar-item/navbar-item.js +2 -2
- package/dist/collection/components/navbar-item-v2/navbar-item-v2.js +2 -2
- package/dist/collection/components/navbar-v2/navbar-v2.js +1 -1
- package/dist/collection/components/phone-number-input/phone-number-input.js +2 -2
- package/dist/collection/components/plate-number/plate-number.js +2 -2
- package/dist/collection/components/profil-dropdown/profil-dropdown.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.js +1 -1
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.js +1 -1
- package/dist/collection/components/progress-indicator-vertical-item/progress-indicator-vertical-item.js +1 -1
- package/dist/collection/components/progress-tracker/progress-tracker.js +1 -1
- package/dist/collection/components/progress-tracker-item/progress-tracker-item.js +1 -1
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/radio-card/radio-card.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +2 -2
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/segmented-button/segmented-button.js +2 -2
- package/dist/collection/components/segmented-button-bar/segmented-button-bar.js +1 -1
- package/dist/collection/components/segmented-buttons/segmented-buttons.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/select-filter/select-filter.js +1 -1
- package/dist/collection/components/skeleton/skeleton.js +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/status-chip/status-chip.js +1 -1
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tag/tag.js +1 -1
- package/dist/collection/components/text/text.js +1 -1
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/time-range-picker/time-range-picker.js +1 -1
- package/dist/collection/components/toast/toast.js +1 -1
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/toolbar/toolbar.js +1 -1
- package/dist/collection/components/toolbar-title/toolbar-title.js +1 -1
- package/dist/collection/components/toolbar-title-page/toolbar-title-page.js +1 -1
- package/dist/collection/components/toolbar-v2/toolbar-v2.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/road-alert.entry.js +63 -3
- package/dist/esm/road-alert.entry.js.map +1 -1
- package/dist/esm/road-area-code.entry.js +1 -1
- package/dist/esm/road-aspect-ratio.entry.js +1 -1
- package/dist/esm/road-autocomplete.entry.js +2 -2
- package/dist/esm/road-avatar.entry.js +1 -1
- package/dist/esm/road-badge_14.entry.js +23 -18
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-banner.entry.js +1 -1
- package/dist/esm/road-button-floating.entry.js +1 -1
- package/dist/esm/road-card.entry.js +1 -1
- package/dist/esm/road-carousel-item.entry.js +2 -2
- package/dist/esm/road-carousel.entry.js +1 -1
- package/dist/esm/road-checkbox.entry.js +1 -1
- package/dist/esm/road-chip.entry.js +1 -1
- package/dist/esm/road-collapse.entry.js +1 -1
- package/dist/esm/road-content-card.entry.js +1 -1
- package/dist/esm/road-dialog.entry.js +3 -3
- package/dist/esm/road-dropdown.entry.js +1 -1
- package/dist/esm/road-duration.entry.js +1 -1
- package/dist/esm/road-flap.entry.js +1 -1
- package/dist/esm/road-global-navigation-v2.entry.js +1 -1
- package/dist/esm/road-global-navigation.entry.js +1 -1
- package/dist/esm/road-img.entry.js +1 -1
- package/dist/esm/road-modal.entry.js +1 -1
- package/dist/esm/road-navbar-item-v2.entry.js +2 -2
- package/dist/esm/road-navbar-item.entry.js +2 -2
- package/dist/esm/road-navbar-v2.entry.js +1 -1
- package/dist/esm/road-navbar.entry.js +1 -1
- package/dist/esm/road-phone-number-input.entry.js +2 -2
- package/dist/esm/road-plate-number.entry.js +2 -2
- package/dist/esm/road-profil-dropdown.entry.js +1 -1
- package/dist/esm/road-progress-indicator-horizontal.entry.js +1 -1
- package/dist/esm/road-progress-indicator-vertical-item.entry.js +1 -1
- package/dist/esm/road-progress-indicator-vertical.entry.js +1 -1
- package/dist/esm/road-progress-tracker-item.entry.js +1 -1
- package/dist/esm/road-progress-tracker.entry.js +1 -1
- package/dist/esm/road-progress.entry.js +1 -1
- package/dist/esm/road-radio-card.entry.js +1 -1
- package/dist/esm/road-radio-group.entry.js +1 -1
- package/dist/esm/road-radio.entry.js +1 -1
- package/dist/esm/road-range.entry.js +2 -2
- package/dist/esm/road-rating.entry.js +1 -1
- package/dist/esm/road-segmented-button-bar.entry.js +1 -1
- package/dist/esm/road-segmented-button.entry.js +2 -2
- package/dist/esm/road-segmented-buttons.entry.js +1 -1
- package/dist/esm/road-select-filter.entry.js +1 -1
- package/dist/esm/road-select.entry.js +1 -1
- package/dist/esm/road-skeleton.entry.js +1 -1
- package/dist/esm/road-spinner.entry.js +1 -1
- package/dist/esm/road-status-chip.entry.js +1 -1
- package/dist/esm/road-switch.entry.js +2 -2
- package/dist/esm/road-tab-bar.entry.js +2 -2
- package/dist/esm/road-tab-button.entry.js +2 -2
- package/dist/esm/road-tab.entry.js +2 -2
- package/dist/esm/road-table.entry.js +1 -1
- package/dist/esm/road-tabs.entry.js +1 -1
- package/dist/esm/road-tag.entry.js +1 -1
- package/dist/esm/road-text.entry.js +1 -1
- package/dist/esm/road-textarea.entry.js +1 -1
- package/dist/esm/road-time-range-picker.entry.js +1 -1
- package/dist/esm/road-toast.entry.js +1 -1
- package/dist/esm/road-toggle.entry.js +2 -2
- package/dist/esm/road-toolbar-title-page.entry.js +1 -1
- package/dist/esm/road-toolbar-title.entry.js +1 -1
- package/dist/esm/road-toolbar-v2.entry.js +1 -1
- package/dist/esm/road-tooltip.entry.js +3 -3
- package/dist/esm/roadtrip.js +1 -1
- package/dist/html.html-data.json +27 -0
- package/dist/roadtrip/{p-017a76a9.entry.js → p-07db2ee1.entry.js} +3 -3
- package/dist/roadtrip/p-07db2ee1.entry.js.map +1 -0
- package/dist/roadtrip/{p-2757cbd1.entry.js → p-11d896b1.entry.js} +2 -2
- package/dist/roadtrip/{p-31837e5f.entry.js → p-1449b7c8.entry.js} +2 -2
- package/dist/roadtrip/{p-4401f218.entry.js → p-24196fd2.entry.js} +2 -2
- package/dist/roadtrip/{p-c2e6b479.entry.js → p-26b852e2.entry.js} +2 -2
- package/dist/roadtrip/{p-651105d3.entry.js → p-2797e2f2.entry.js} +2 -2
- package/dist/roadtrip/{p-71ea3c01.entry.js → p-29ac611e.entry.js} +2 -2
- package/dist/roadtrip/p-2ae82371.entry.js +2 -0
- package/dist/roadtrip/{p-2722edab.entry.js → p-302f51c6.entry.js} +2 -2
- package/dist/roadtrip/{p-58c773c3.entry.js → p-36288d23.entry.js} +2 -2
- package/dist/roadtrip/{p-3c63b7db.entry.js → p-36f8563a.entry.js} +2 -2
- package/dist/roadtrip/{p-21adfb3f.entry.js → p-377d6b5b.entry.js} +2 -2
- package/dist/roadtrip/{p-fef9b54c.entry.js → p-39173ac2.entry.js} +2 -2
- package/dist/roadtrip/{p-6020b36a.entry.js → p-3a310d3d.entry.js} +2 -2
- package/dist/roadtrip/{p-fd19056c.entry.js → p-3dc22d00.entry.js} +2 -2
- package/dist/roadtrip/p-4182495e.entry.js +2 -0
- package/dist/roadtrip/p-4182495e.entry.js.map +1 -0
- package/dist/roadtrip/p-4334d85b.entry.js +2 -0
- package/dist/roadtrip/{p-4543ebe4.entry.js → p-45b9521f.entry.js} +2 -2
- package/dist/roadtrip/{p-4f1d3834.entry.js → p-45cabcdf.entry.js} +2 -2
- package/dist/roadtrip/{p-a4aa3628.entry.js → p-4bb49a92.entry.js} +2 -2
- package/dist/roadtrip/{p-a4e4986d.entry.js → p-4e3cc7e9.entry.js} +2 -2
- package/dist/roadtrip/{p-7546dadc.entry.js → p-509ba166.entry.js} +2 -2
- package/dist/roadtrip/{p-2ff1292b.entry.js → p-52d56ed2.entry.js} +2 -2
- package/dist/roadtrip/{p-47996b6e.entry.js → p-58b20099.entry.js} +2 -2
- package/dist/roadtrip/{p-9fd1a846.entry.js → p-5b738d24.entry.js} +2 -2
- package/dist/roadtrip/{p-14761790.entry.js → p-5f6771e5.entry.js} +2 -2
- package/dist/roadtrip/p-61191773.entry.js +2 -0
- package/dist/roadtrip/{p-db5107c4.entry.js.map → p-61191773.entry.js.map} +1 -1
- package/dist/roadtrip/{p-610216c6.entry.js → p-65dfd1e8.entry.js} +2 -2
- package/dist/roadtrip/{p-a21bce75.entry.js → p-6e9fac54.entry.js} +2 -2
- package/dist/roadtrip/{p-974b5313.entry.js → p-70f4387a.entry.js} +2 -2
- package/dist/roadtrip/{p-111df7a1.entry.js → p-75ebf102.entry.js} +2 -2
- package/dist/roadtrip/{p-f514f186.entry.js → p-7955499d.entry.js} +2 -2
- package/dist/roadtrip/{p-daeb9c8d.entry.js → p-79c3152e.entry.js} +2 -2
- package/dist/roadtrip/{p-84dc220e.entry.js → p-7e0bdcf9.entry.js} +2 -2
- package/dist/roadtrip/{p-bb7583ee.entry.js → p-8753beba.entry.js} +2 -2
- package/dist/roadtrip/{p-fa0d3620.entry.js → p-875b5999.entry.js} +2 -2
- package/dist/roadtrip/{p-29485fb3.entry.js → p-8cd69117.entry.js} +2 -2
- package/dist/roadtrip/{p-c1f1efd9.entry.js → p-927cf307.entry.js} +2 -2
- package/dist/roadtrip/{p-255f2276.entry.js → p-9cbd5ae9.entry.js} +2 -2
- package/dist/roadtrip/{p-64928ea0.entry.js → p-a264377a.entry.js} +2 -2
- package/dist/roadtrip/{p-64b638e1.entry.js → p-a4e45088.entry.js} +2 -2
- package/dist/roadtrip/{p-6eb30876.entry.js → p-b292d3fc.entry.js} +2 -2
- package/dist/roadtrip/{p-5cd3095d.entry.js → p-b5b2e36c.entry.js} +2 -2
- package/dist/roadtrip/{p-324522a1.entry.js → p-b61abebd.entry.js} +2 -2
- package/dist/roadtrip/{p-d91eccca.entry.js → p-b8132587.entry.js} +2 -2
- package/dist/roadtrip/{p-998e28b4.entry.js → p-c28fbcc0.entry.js} +2 -2
- package/dist/roadtrip/{p-aed4bf52.entry.js → p-c4550384.entry.js} +2 -2
- package/dist/roadtrip/{p-c441209e.entry.js → p-c7dd579d.entry.js} +2 -2
- package/dist/roadtrip/{p-cd0c64cb.entry.js → p-c9527301.entry.js} +2 -2
- package/dist/roadtrip/{p-d62ae6e9.entry.js → p-ca3460a4.entry.js} +2 -2
- package/dist/roadtrip/{p-71fe2f8e.entry.js → p-d1517c27.entry.js} +2 -2
- package/dist/roadtrip/{p-74b17bd6.entry.js → p-d6a7644e.entry.js} +2 -2
- package/dist/roadtrip/{p-ea7ad722.entry.js → p-d881a66c.entry.js} +2 -2
- package/dist/roadtrip/{p-1352bc34.entry.js → p-de35fded.entry.js} +2 -2
- package/dist/roadtrip/{p-df353cb6.entry.js → p-e2ba76f7.entry.js} +2 -2
- package/dist/roadtrip/p-e56c84ec.entry.js +2 -0
- package/dist/roadtrip/{p-2ae9b559.entry.js.map → p-e56c84ec.entry.js.map} +1 -1
- package/dist/roadtrip/{p-824b4a68.entry.js → p-e7b4f257.entry.js} +2 -2
- package/dist/roadtrip/{p-b7dc61c8.entry.js → p-e97c8d7f.entry.js} +2 -2
- package/dist/roadtrip/p-eca24e7d.entry.js +2 -0
- package/dist/roadtrip/{p-fbbe77e0.entry.js.map → p-eca24e7d.entry.js.map} +1 -1
- package/dist/roadtrip/{p-6e09a2ef.entry.js → p-edf07985.entry.js} +2 -2
- package/dist/roadtrip/{p-f7a3a65c.entry.js → p-ef883f08.entry.js} +2 -2
- package/dist/roadtrip/{p-83ea3a4e.entry.js → p-f30f96c2.entry.js} +2 -2
- package/dist/roadtrip/{p-6bba72da.entry.js → p-f58f43d0.entry.js} +2 -2
- package/dist/roadtrip/{p-090b84ec.entry.js → p-fdcebcc3.entry.js} +2 -2
- package/dist/roadtrip/p-ff189f73.entry.js +2 -0
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/roadtrip.esm.js.map +1 -1
- package/dist/types/components/alert/alert.d.ts +41 -0
- package/dist/types/components/input/input.d.ts +4 -0
- package/dist/types/components.d.ts +75 -0
- package/hydrate/index.d.ts +24 -38
- package/hydrate/index.js +19982 -20280
- package/hydrate/index.mjs +19982 -20280
- package/package.json +1 -1
- package/dist/roadtrip/p-017a76a9.entry.js.map +0 -1
- package/dist/roadtrip/p-2ae9b559.entry.js +0 -2
- package/dist/roadtrip/p-32685310.entry.js +0 -2
- package/dist/roadtrip/p-9e22fa54.entry.js +0 -2
- package/dist/roadtrip/p-a8cfee66.entry.js +0 -2
- package/dist/roadtrip/p-a8cfee66.entry.js.map +0 -1
- package/dist/roadtrip/p-db5107c4.entry.js +0 -2
- package/dist/roadtrip/p-f4b23455.entry.js +0 -2
- package/dist/roadtrip/p-fbbe77e0.entry.js +0 -2
- /package/dist/roadtrip/{p-2757cbd1.entry.js.map → p-11d896b1.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-31837e5f.entry.js.map → p-1449b7c8.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4401f218.entry.js.map → p-24196fd2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c2e6b479.entry.js.map → p-26b852e2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-651105d3.entry.js.map → p-2797e2f2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-71ea3c01.entry.js.map → p-29ac611e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-32685310.entry.js.map → p-2ae82371.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2722edab.entry.js.map → p-302f51c6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-58c773c3.entry.js.map → p-36288d23.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3c63b7db.entry.js.map → p-36f8563a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-21adfb3f.entry.js.map → p-377d6b5b.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-fef9b54c.entry.js.map → p-39173ac2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6020b36a.entry.js.map → p-3a310d3d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-fd19056c.entry.js.map → p-3dc22d00.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9e22fa54.entry.js.map → p-4334d85b.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4543ebe4.entry.js.map → p-45b9521f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4f1d3834.entry.js.map → p-45cabcdf.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a4aa3628.entry.js.map → p-4bb49a92.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a4e4986d.entry.js.map → p-4e3cc7e9.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-7546dadc.entry.js.map → p-509ba166.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2ff1292b.entry.js.map → p-52d56ed2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-47996b6e.entry.js.map → p-58b20099.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9fd1a846.entry.js.map → p-5b738d24.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-14761790.entry.js.map → p-5f6771e5.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-610216c6.entry.js.map → p-65dfd1e8.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a21bce75.entry.js.map → p-6e9fac54.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-974b5313.entry.js.map → p-70f4387a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-111df7a1.entry.js.map → p-75ebf102.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f514f186.entry.js.map → p-7955499d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-daeb9c8d.entry.js.map → p-79c3152e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-84dc220e.entry.js.map → p-7e0bdcf9.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-bb7583ee.entry.js.map → p-8753beba.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-fa0d3620.entry.js.map → p-875b5999.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-29485fb3.entry.js.map → p-8cd69117.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c1f1efd9.entry.js.map → p-927cf307.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-255f2276.entry.js.map → p-9cbd5ae9.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-64928ea0.entry.js.map → p-a264377a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-64b638e1.entry.js.map → p-a4e45088.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6eb30876.entry.js.map → p-b292d3fc.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-5cd3095d.entry.js.map → p-b5b2e36c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-324522a1.entry.js.map → p-b61abebd.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d91eccca.entry.js.map → p-b8132587.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-998e28b4.entry.js.map → p-c28fbcc0.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-aed4bf52.entry.js.map → p-c4550384.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c441209e.entry.js.map → p-c7dd579d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-cd0c64cb.entry.js.map → p-c9527301.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d62ae6e9.entry.js.map → p-ca3460a4.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-71fe2f8e.entry.js.map → p-d1517c27.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-74b17bd6.entry.js.map → p-d6a7644e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ea7ad722.entry.js.map → p-d881a66c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1352bc34.entry.js.map → p-de35fded.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-df353cb6.entry.js.map → p-e2ba76f7.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-824b4a68.entry.js.map → p-e7b4f257.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b7dc61c8.entry.js.map → p-e97c8d7f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6e09a2ef.entry.js.map → p-edf07985.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f7a3a65c.entry.js.map → p-ef883f08.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-83ea3a4e.entry.js.map → p-f30f96c2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6bba72da.entry.js.map → p-f58f43d0.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-090b84ec.entry.js.map → p-fdcebcc3.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f4b23455.entry.js.map → p-ff189f73.entry.js.map} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { navigationClose } from "../../../icons";
|
|
2
3
|
/**
|
|
3
4
|
* @slot icon - Icon of the alert, it should be a road-icon element.
|
|
4
5
|
* @slot - Message of the alert.
|
|
@@ -9,10 +10,67 @@ export class Alert {
|
|
|
9
10
|
* Set the color of alert. e.g. info, success, warning, danger
|
|
10
11
|
*/
|
|
11
12
|
this.color = 'info';
|
|
13
|
+
/**
|
|
14
|
+
* position of the button
|
|
15
|
+
*/
|
|
16
|
+
this.layout = 'vertical';
|
|
17
|
+
/**
|
|
18
|
+
* Show / hide close icon
|
|
19
|
+
*/
|
|
20
|
+
this.hasCloseIcon = false;
|
|
21
|
+
/**
|
|
22
|
+
* Set isOpen propertie to true to show the modal
|
|
23
|
+
*/
|
|
24
|
+
this.isOpen = false;
|
|
25
|
+
/**
|
|
26
|
+
* Close the dialog when clicking on the cross or layer
|
|
27
|
+
*/
|
|
28
|
+
this.onClick = (ev) => {
|
|
29
|
+
ev.stopPropagation();
|
|
30
|
+
ev.preventDefault();
|
|
31
|
+
this.close();
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Open the modal
|
|
36
|
+
*/
|
|
37
|
+
async open() {
|
|
38
|
+
this.isOpen = true;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Close the modal
|
|
42
|
+
*/
|
|
43
|
+
async close() {
|
|
44
|
+
this.isOpen = false;
|
|
45
|
+
this.el.addEventListener('transitionend', () => {
|
|
46
|
+
this.onClose.emit();
|
|
47
|
+
}, { once: true });
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Close the dialog when press Escape key
|
|
51
|
+
*/
|
|
52
|
+
onEscape(event) {
|
|
53
|
+
if (event.key === 'Escape' || event.key === "Esc") {
|
|
54
|
+
this.close();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Call close function when clicking an element with data-dismiss="modal" attribute
|
|
59
|
+
*/
|
|
60
|
+
componentDidLoad() {
|
|
61
|
+
this.el.querySelectorAll('[data-dismiss="modal"]').forEach(item => {
|
|
62
|
+
item.addEventListener('click', () => this.close());
|
|
63
|
+
});
|
|
12
64
|
}
|
|
13
65
|
render() {
|
|
14
66
|
const colorClass = this.color !== undefined ? `alert-${this.color}` : '';
|
|
15
|
-
|
|
67
|
+
let layoutClass = 'alert-container'; // valeur par défaut
|
|
68
|
+
if (this.layout === 'horizontal') {
|
|
69
|
+
layoutClass = 'alert-container-horizontal';
|
|
70
|
+
}
|
|
71
|
+
const btnContainerClass = this.hasCloseIcon ? 'btn-container justify-end' : 'btn-container';
|
|
72
|
+
const closeIconElement = this.hasCloseIcon ? (h("button", { type: "button", class: "alert-close", onClick: this.onClick, "aria-label": "Close" }, h("road-icon", { icon: navigationClose, "aria-hidden": "true" }))) : null;
|
|
73
|
+
return (h(Host, { key: '358c0b9ba649dc7f2a04f7cf1973fc8136e55d8d', class: colorClass, role: "alert" }, h("div", { key: '08a81f21c4f8a773fca419c2ced43fb0fbd9c34f', class: "alert-icon" }, h("slot", { key: '677101a86efc495b8001d13170c2b88b35a3b59b', name: "icon" })), h("div", { key: '150ee6c4569c39ae1a76a4b560957fba71e06658', class: layoutClass }, h("div", { key: 'a5989623d9b6a2147e76359ddab2a3d052859695', class: "alert-container-content" }, this.label && h("span", { key: '165687f382f202899d8991a1dea3984a6b13a1bb', class: "alert-title d-block" }, this.label), h("p", { key: 'ae7a4dcd6b3f6e68dfe7493175ceeca56be2ac99', class: "alert-description" }, h("slot", { key: 'b6514df3aa0793ed4296856292860e9baf10caec' })), this.link && h("a", { key: 'c8db33f73ca8585369a7edfe91d92af9219d0bd4', href: this.url, class: "alert-link link link-default" }, this.link)), h("div", { key: '43f6da1950628cf9304f0e501c5cb2ce67bf203c', class: btnContainerClass }, h("slot", { key: 'c5b94ccd205912f8a23ddd0397483c370444e5ec', name: "button" })), closeIconElement)));
|
|
16
74
|
}
|
|
17
75
|
static get is() { return "road-alert"; }
|
|
18
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,6 +112,26 @@ export class Alert {
|
|
|
54
112
|
"reflect": false,
|
|
55
113
|
"defaultValue": "'info'"
|
|
56
114
|
},
|
|
115
|
+
"layout": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"mutable": false,
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "'horizontal' | 'vertical' |'default'",
|
|
120
|
+
"resolved": "\"default\" | \"horizontal\" | \"vertical\" | undefined",
|
|
121
|
+
"references": {}
|
|
122
|
+
},
|
|
123
|
+
"required": false,
|
|
124
|
+
"optional": true,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [],
|
|
127
|
+
"text": "position of the button"
|
|
128
|
+
},
|
|
129
|
+
"getter": false,
|
|
130
|
+
"setter": false,
|
|
131
|
+
"attribute": "layout",
|
|
132
|
+
"reflect": false,
|
|
133
|
+
"defaultValue": "'vertical'"
|
|
134
|
+
},
|
|
57
135
|
"label": {
|
|
58
136
|
"type": "string",
|
|
59
137
|
"mutable": false,
|
|
@@ -129,8 +207,114 @@ export class Alert {
|
|
|
129
207
|
"setter": false,
|
|
130
208
|
"attribute": "url",
|
|
131
209
|
"reflect": false
|
|
210
|
+
},
|
|
211
|
+
"hasCloseIcon": {
|
|
212
|
+
"type": "boolean",
|
|
213
|
+
"mutable": false,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "boolean",
|
|
216
|
+
"resolved": "boolean",
|
|
217
|
+
"references": {}
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"optional": false,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [],
|
|
223
|
+
"text": "Show / hide close icon"
|
|
224
|
+
},
|
|
225
|
+
"getter": false,
|
|
226
|
+
"setter": false,
|
|
227
|
+
"attribute": "has-close-icon",
|
|
228
|
+
"reflect": false,
|
|
229
|
+
"defaultValue": "false"
|
|
230
|
+
},
|
|
231
|
+
"isOpen": {
|
|
232
|
+
"type": "boolean",
|
|
233
|
+
"mutable": true,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "boolean",
|
|
236
|
+
"resolved": "boolean",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": "Set isOpen propertie to true to show the modal"
|
|
244
|
+
},
|
|
245
|
+
"getter": false,
|
|
246
|
+
"setter": false,
|
|
247
|
+
"attribute": "is-open",
|
|
248
|
+
"reflect": false,
|
|
249
|
+
"defaultValue": "false"
|
|
132
250
|
}
|
|
133
251
|
};
|
|
134
252
|
}
|
|
253
|
+
static get events() {
|
|
254
|
+
return [{
|
|
255
|
+
"method": "onClose",
|
|
256
|
+
"name": "close",
|
|
257
|
+
"bubbles": true,
|
|
258
|
+
"cancelable": true,
|
|
259
|
+
"composed": true,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": "Indicate when closing the modal"
|
|
263
|
+
},
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "void",
|
|
266
|
+
"resolved": "void",
|
|
267
|
+
"references": {}
|
|
268
|
+
}
|
|
269
|
+
}];
|
|
270
|
+
}
|
|
271
|
+
static get methods() {
|
|
272
|
+
return {
|
|
273
|
+
"open": {
|
|
274
|
+
"complexType": {
|
|
275
|
+
"signature": "() => Promise<void>",
|
|
276
|
+
"parameters": [],
|
|
277
|
+
"references": {
|
|
278
|
+
"Promise": {
|
|
279
|
+
"location": "global",
|
|
280
|
+
"id": "global::Promise"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"return": "Promise<void>"
|
|
284
|
+
},
|
|
285
|
+
"docs": {
|
|
286
|
+
"text": "Open the modal",
|
|
287
|
+
"tags": []
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"close": {
|
|
291
|
+
"complexType": {
|
|
292
|
+
"signature": "() => Promise<void>",
|
|
293
|
+
"parameters": [],
|
|
294
|
+
"references": {
|
|
295
|
+
"Promise": {
|
|
296
|
+
"location": "global",
|
|
297
|
+
"id": "global::Promise"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"return": "Promise<void>"
|
|
301
|
+
},
|
|
302
|
+
"docs": {
|
|
303
|
+
"text": "Close the modal",
|
|
304
|
+
"tags": []
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
static get elementRef() { return "el"; }
|
|
310
|
+
static get listeners() {
|
|
311
|
+
return [{
|
|
312
|
+
"name": "keyup",
|
|
313
|
+
"method": "onEscape",
|
|
314
|
+
"target": "document",
|
|
315
|
+
"capture": false,
|
|
316
|
+
"passive": false
|
|
317
|
+
}];
|
|
318
|
+
}
|
|
135
319
|
}
|
|
136
320
|
//# sourceMappingURL=alert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAgB,OAAO,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD;;;GAGG;AAOH,MAAM,OAAO,KAAK;IALlB;QAYE;;WAEG;QACK,UAAK,GAAmB,MAAM,CAAC;QAEvC;;WAEG;QACO,WAAM,GAA0C,UAAU,CAAC;QAuBrE;;WAEG;QACK,iBAAY,GAAY,KAAK,CAAC;QAEtC;;WAEG;QACsB,WAAM,GAAY,KAAK,CAAC;QA0BjD;;WAEG;QACK,YAAO,GAAG,CAAC,EAAW,EAAE,EAAE;YAChC,EAAE,CAAC,eAAe,EAAE,CAAC;YACrB,EAAE,CAAC,cAAc,EAAE,CAAC;YAEpB,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,CAAC,CAAC;KA8DH;IAzFC;;OAEG;IAEH,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACrB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,KAAK;QACT,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,eAAe,EAAE,GAAG,EAAE;YAC7C,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACtB,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC;IACpB,CAAC;IAYD;;OAEG;IAEH,QAAQ,CAAC,KAAoB;QAC3B,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,GAAG,KAAK,KAAK,EAAE,CAAC;YAClD,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,CAAC;IACH,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAChE,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;IACL,CAAC;IAEH,MAAM;QAEJ,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzE,IAAI,WAAW,GAAG,iBAAiB,CAAC,CAAC,oBAAoB;QACvD,IAAI,IAAI,CAAC,MAAM,KAAK,YAAY,EAAE,CAAC;YACjC,WAAW,GAAG,4BAA4B,CAAC;QAC7C,CAAC;QACH,MAAM,iBAAiB,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,eAAe,CAAC;QAC5F,MAAM,gBAAgB,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAC3C,cACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,aAAa,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,gBACV,OAAO;YAElB,iBAAW,IAAI,EAAE,eAAe,iBAAc,MAAM,GAAa,CAC1D,CACV,CAAC,CAAC,CAAC,IAAI,CAAC;QAET,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAC,OAAO;YACnC,4DAAK,KAAK,EAAC,YAAY;gBACrB,6DAAM,IAAI,EAAC,MAAM,GAAE,CACf;YACN,4DAAK,KAAK,EAAE,WAAW;gBACrB,4DAAK,KAAK,EAAC,yBAAyB;oBACjC,IAAI,CAAC,KAAK,IAAI,6DAAM,KAAK,EAAC,qBAAqB,IAAE,IAAI,CAAC,KAAK,CAAQ;oBACpE,0DAAG,KAAK,EAAC,mBAAmB;wBAC1B,8DAAO,CACL;oBACH,IAAI,CAAC,IAAI,IAAI,0DAAG,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,EAAC,8BAA8B,IAAE,IAAI,CAAC,IAAI,CAAK,CACjF;gBACN,4DAAK,KAAK,EAAE,iBAAiB;oBAC3B,6DAAM,IAAI,EAAC,QAAQ,GAAE,CACjB;gBACL,gBAAgB,CACb,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEA","sourcesContent":["import { Component, Host, Prop, h, Listen, Event, Method, EventEmitter, Element } from '@stencil/core';\nimport { navigationClose } from '../../../icons';\nimport { FeedbackColors } from '../../interface';\n\n/**\n * @slot icon - Icon of the alert, it should be a road-icon element.\n * @slot - Message of the alert.\n */\n\n@Component({\n tag: 'road-alert',\n styleUrl: 'alert.css',\n shadow: true,\n})\nexport class Alert {\n\n /**\n * Current reference of the modal\n */\n @Element() el!: HTMLRoadAlertElement;\n\n /**\n * Set the color of alert. e.g. info, success, warning, danger\n */\n @Prop() color: FeedbackColors = 'info';\n\n /**\n * position of the button \n */\n @Prop() layout?: 'horizontal' | 'vertical' |'default' = 'vertical';\n\n /**\n * Title display in the alert\n */\n @Prop() label?: string;\n\n /**\n * Button display in the alert\n * `<road-button size=\"sm\">Label</road-button>`\n */\n @Prop() button?: string;\n\n /**\n * Text Link display in the alert\n */\n @Prop() link?: string;\n\n /**\n * url display in the link\n */\n @Prop() url?: string;\n\n /**\n * Show / hide close icon\n */\n @Prop() hasCloseIcon: boolean = false;\n\n /**\n * Set isOpen propertie to true to show the modal\n */\n @Prop({ mutable: true }) isOpen: boolean = false;\n\n /**\n * Indicate when closing the modal\n */\n @Event({ eventName: 'close' }) onClose!: EventEmitter<void>;\n\n /**\n * Open the modal\n */\n @Method()\n async open() {\n this.isOpen = true;\n }\n\n /**\n * Close the modal\n */\n @Method()\n async close() {\n this.isOpen = false;\n this.el.addEventListener('transitionend', () => {\n this.onClose.emit();\n }, { once: true});\n }\n\n /**\n * Close the dialog when clicking on the cross or layer\n */\n private onClick = (ev: UIEvent) => {\n ev.stopPropagation();\n ev.preventDefault();\n\n this.close();\n };\n\n /**\n * Close the dialog when press Escape key\n */\n @Listen('keyup', { target: 'document' })\n onEscape(event: KeyboardEvent) {\n if (event.key === 'Escape' || event.key === \"Esc\") {\n this.close();\n }\n }\n\n /**\n * Call close function when clicking an element with data-dismiss=\"modal\" attribute\n */\n componentDidLoad() {\n this.el.querySelectorAll('[data-dismiss=\"modal\"]').forEach(item => {\n item.addEventListener('click', () => this.close());\n });\n }\n\nrender() {\n\n const colorClass = this.color !== undefined ? `alert-${this.color}` : '';\n let layoutClass = 'alert-container'; // valeur par défaut\n if (this.layout === 'horizontal') {\n layoutClass = 'alert-container-horizontal';\n }\n const btnContainerClass = this.hasCloseIcon ? 'btn-container justify-end' : 'btn-container';\n const closeIconElement = this.hasCloseIcon ? (\n <button\n type=\"button\"\n class=\"alert-close\"\n onClick={this.onClick}\n aria-label=\"Close\"\n >\n <road-icon icon={navigationClose} aria-hidden=\"true\"></road-icon>\n </button>\n ) : null;\n\n return (\n <Host class={colorClass} role=\"alert\">\n <div class=\"alert-icon\">\n <slot name=\"icon\"/>\n </div>\n <div class={layoutClass}>\n <div class=\"alert-container-content\">\n {this.label && <span class=\"alert-title d-block\">{this.label}</span>}\n <p class=\"alert-description\">\n <slot/>\n </p>\n {this.link && <a href={this.url} class=\"alert-link link link-default\">{this.link}</a>}\n </div>\n <div class={btnContainerClass}>\n <slot name=\"button\"/>\n </div>\n {closeIconElement}\n </div>\n </Host>\n );\n}\n\n}"]}
|
|
@@ -10,15 +10,23 @@ export default {
|
|
|
10
10
|
color: {
|
|
11
11
|
description: "Set the color of alert. e.g. info, success, warning, danger",
|
|
12
12
|
options: ['info', 'success', 'warning', 'danger'],
|
|
13
|
-
control: {
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
control: { type: 'radio' },
|
|
14
|
+
},
|
|
15
|
+
layout: {
|
|
16
|
+
description: "For the button position",
|
|
17
|
+
options: ['vertical', 'horizontal'],
|
|
18
|
+
control: { type: 'radio' },
|
|
16
19
|
},
|
|
17
20
|
icon: {
|
|
18
21
|
description: "Icon of the alert, it should be a road-icon element.",
|
|
19
22
|
options: list,
|
|
20
|
-
control: {
|
|
21
|
-
|
|
23
|
+
control: { type: 'select' },
|
|
24
|
+
},
|
|
25
|
+
'has-close-icon': {
|
|
26
|
+
description: "Show / hide close icon",
|
|
27
|
+
control: 'boolean',
|
|
28
|
+
table: {
|
|
29
|
+
defaultValue: { summary: 'false' },
|
|
22
30
|
},
|
|
23
31
|
},
|
|
24
32
|
link: {
|
|
@@ -26,7 +34,7 @@ export default {
|
|
|
26
34
|
control: 'text',
|
|
27
35
|
},
|
|
28
36
|
button: {
|
|
29
|
-
description: "
|
|
37
|
+
description: "Text of the button slot\n(slot name=\"button\")",
|
|
30
38
|
control: 'text',
|
|
31
39
|
},
|
|
32
40
|
label: {
|
|
@@ -44,18 +52,30 @@ export default {
|
|
|
44
52
|
},
|
|
45
53
|
args: {
|
|
46
54
|
color: 'info',
|
|
55
|
+
layout: 'vertical',
|
|
47
56
|
icon: `alert-info`,
|
|
48
|
-
|
|
57
|
+
label: `Titre`,
|
|
58
|
+
button: ``, // vide par défaut
|
|
49
59
|
' ': `Information`,
|
|
60
|
+
'has-close-icon': null,
|
|
50
61
|
},
|
|
51
62
|
};
|
|
52
63
|
|
|
53
64
|
const Template = (args) => html`
|
|
54
|
-
<road-alert
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
65
|
+
<road-alert
|
|
66
|
+
color="${ifDefined(args.color)}"
|
|
67
|
+
layout="${ifDefined(args.layout)}"
|
|
68
|
+
label="${ifDefined(args.label)}"
|
|
69
|
+
link="${ifDefined(args.link)}"
|
|
70
|
+
url="${ifDefined(args.url)}"
|
|
71
|
+
has-close-icon="${ifDefined(args['has-close-icon'])}"
|
|
72
|
+
>
|
|
73
|
+
<road-icon slot="icon" name="${ifDefined(args.icon)}" role="img"></road-icon>
|
|
74
|
+
${unsafeHTML(args[' '])}
|
|
75
|
+
${args.button
|
|
76
|
+
? html`<road-button size="sm" slot="button" class="m-0">${args.button}</road-button>`
|
|
77
|
+
: ''}
|
|
78
|
+
</road-alert>
|
|
59
79
|
`;
|
|
60
80
|
|
|
61
81
|
export const Playground = Template.bind({});
|
|
@@ -63,6 +83,7 @@ Playground.args = {
|
|
|
63
83
|
color: 'info',
|
|
64
84
|
icon: `alert-info`,
|
|
65
85
|
' ': `Information`,
|
|
86
|
+
button: `Action`,
|
|
66
87
|
};
|
|
67
88
|
|
|
68
89
|
export const Success = Template.bind({});
|
|
@@ -70,6 +91,7 @@ Success.args = {
|
|
|
70
91
|
color: 'success',
|
|
71
92
|
icon: `alert-success`,
|
|
72
93
|
' ': `Success`,
|
|
94
|
+
button: `OK`,
|
|
73
95
|
};
|
|
74
96
|
|
|
75
97
|
export const Warning = Template.bind({});
|
|
@@ -85,3 +107,12 @@ Danger.args = {
|
|
|
85
107
|
icon: `alert-danger`,
|
|
86
108
|
' ': `Danger`,
|
|
87
109
|
};
|
|
110
|
+
|
|
111
|
+
export const Horizontal = Template.bind({});
|
|
112
|
+
Horizontal.args = {
|
|
113
|
+
color: 'info',
|
|
114
|
+
icon: `alert-info`,
|
|
115
|
+
' ': `Information`,
|
|
116
|
+
button: `Action`,
|
|
117
|
+
layout: 'horizontal'
|
|
118
|
+
};
|
|
@@ -87,7 +87,7 @@ export class RoadAreaCode {
|
|
|
87
87
|
const labelId = this.selectId + '-label';
|
|
88
88
|
const valueId = this.selectId + '-value';
|
|
89
89
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
90
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: 'a9c180581aad52a237a69f0260225358bed4c7d9', class: this.sizes && `select-${this.sizes}` }, h("select", { key: 'acf9b38d0a25646ea6f580d713ecadb12e0f3638', class: `form-select-area has-value ${isInvalidClass}`, id: this.selectId, "aria-disabled": this.disabled ? 'true' : null, autoFocus: this.autofocus, disabled: this.disabled, name: this.name, required: this.required, size: this.size, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur }, this.options && this.options.map(option => (h("option", { value: option.value, selected: option.selected }, option.label)))), h("label", { key: 'd0e9b3b99c5ee593e93866e8c97587459fd520cd', class: "form-select-area-label", id: labelId, htmlFor: this.selectId }, this.label), h("label", { key: '363d2951d028db2c2a6efe1e09f8605a684e0fbc', class: "form-select-area-value", id: valueId, htmlFor: this.selectId }, "+", this.selectedValue), this.error && this.error !== '' && h("p", { key: '160c054f3ac74eb46b625cba25676e430a45f52f', class: "invalid-feedback" }, this.error)));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "road-area-code"; }
|
|
93
93
|
static get encapsulation() { return "scoped"; }
|
|
@@ -11,7 +11,7 @@ export class RoadAspectRatio {
|
|
|
11
11
|
return `${w} / ${h}`;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '0b5d1fb507a3e9a3e7a122d55809ed24ea0a917d', style: { '--road-aspect-ratio': this.getCssRatio() } }, h("div", { key: 'a012fb3c04da5357ea277074ce08a784400068f9', class: "aspect-ratio-wrapper" }, h("div", { key: 'cb533bcb6b16cb21112b96ad862739deffec11e1', class: "aspect-ratio-content" }, h("slot", { key: '8c1737d96c384f55f876c5a3588a79b2381b01a1' })))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "road-aspect-ratio"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,8 +31,8 @@ export class Autocomplete {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
35
|
-
h("ul", { key: '
|
|
34
|
+
return (h(Host, { key: '73780efbf9fbb131958cf95d82e917400b7cc7a7' }, h("slot", { key: 'cb9d4ba58dbee2802504aaaf49223d0905cebeb5' }), this.visible && this.options.length > 0 &&
|
|
35
|
+
h("ul", { key: '0b1f5afaf5a3d0fc088b0e3dc614cdad92d60031', class: "autocomplete-list" }, this.options && this.options.map(option => (h("li", { class: "autocomplete-item", role: "menuitem", onClick: () => this.onClick(option.value, option.label), tabindex: "0" }, option.label))))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "road-autocomplete"; }
|
|
38
38
|
static get encapsulation() { return "scoped"; }
|
|
@@ -11,7 +11,7 @@ export class Avatar {
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
const sizeClass = this.size !== undefined ? `avatar-${this.size}` : '';
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'a36243469cae6cdd1743417f76a261cb7a82d3fd', class: `${sizeClass}` }, h("slot", { key: '656c8a8119209d27897087be9c5a11ed0679dbed' })));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "road-avatar"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class Badge {
|
|
|
21
21
|
const colorClass = this.color !== undefined ? `badge-${this.color}` : '';
|
|
22
22
|
const bubbleClass = this.bubble ? 'badge-bubble' : '';
|
|
23
23
|
const sizeClass = this.size !== undefined ? `badge-${this.size}` : '';
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '272af446e438ac2c9df336d12cd0bfbc3485af77', class: `${colorClass} ${bubbleClass} ${sizeClass}` }, h("slot", { key: 'da72ac86b6650797cd4a4e16a5afe85e2090f325' })));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "road-badge"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,7 +28,7 @@ export class Banner {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const bannerIsOpenClass = this.isOpen ? 'banner-open' : '';
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: 'f1658b8509590ec8c76dbd0a4a04fb7c4b200277', class: bannerIsOpenClass }, h("div", { key: 'b17259ee98bb232c81aa0eb32250be7b8db8f6fe' }, h("span", { key: '07226e7728ae246d5c3f9c15737d77a52912a867', class: "banner-open-label" }, this.label), this.link && h("a", { key: '70dddd7a3782c10ef65aa100f96732e791ae913b', href: this.url, class: "banner-open-link" }, this.link), h("button", { key: '79eecde11b356d2cdfa4f5ea3292b50bd55cac47', type: "button", class: "banner-close", onClick: this.onClick, "aria-label": "closed" }, h("road-icon", { key: 'c2e0b9079e37ff4062fdd7694c33f8ab8f95150c', icon: navigationClose, size: "md" })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "road-banner"; }
|
|
34
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -79,7 +79,7 @@ export class Button {
|
|
|
79
79
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
80
80
|
const expandClass = this.expand ? 'btn-block' : '';
|
|
81
81
|
const iconOnlyClass = this.iconOnly ? 'btn-icon' : '';
|
|
82
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: '79d849dd58e95934ff3ab4c9c5b5edd65fb4c899', class: [colorClass, sizeClass, expandClass, iconOnlyClass].filter(Boolean).join(' '), onClick: this.onClick, "aria-disabled": disabled ? 'true' : null }, h(TagType, Object.assign({ key: '764448aaf4c6c221563aa2d9b00c0b55c0fdea21' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur }), h("slot", { key: '54a7978f6da8b45b48db0ab31cec66d592172e90', name: "start" }), h("slot", { key: '09f29be168b254fa9e3d73273938493d14cbca2f' }), h("slot", { key: '8a014e7ebeed34446a89729ff771ac0a7c97639e', name: "end" }))));
|
|
83
83
|
}
|
|
84
84
|
static get is() { return "road-button"; }
|
|
85
85
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,7 +51,7 @@ export class Button {
|
|
|
51
51
|
render() {
|
|
52
52
|
const TagType = this.href === undefined ? 'button' : 'a';
|
|
53
53
|
const positionClass = this.position !== undefined ? `position-${this.position}` : '';
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: 'c92dd334acedc9c577901d339dfa121b63c0d8d0', onClick: this.onClick, class: `${positionClass}` }, h(TagType, { key: '10398fbc53a8e72cfc12975c6351dfe5430af311', class: "button-native", part: "native", onFocus: this.onFocus, onBlur: this.onBlur }, h("slot", { key: '22d572c54bd1defb07f45426f0bbab05666feb83', name: "start" }), h("slot", { key: 'aad19f6d9af9b534ae7aa36485639a928c77d287' }))));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "road-button-floating"; }
|
|
57
57
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,7 +57,7 @@ export class Card {
|
|
|
57
57
|
render() {
|
|
58
58
|
const { elevation } = this;
|
|
59
59
|
const elevationClass = this.elevation ? `card-elevation-${elevation}` : ``;
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: 'f5bd5b9245b805dbd174a96b76b349af87e4e938', class: `${elevationClass}` }, this.renderCard()));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "road-card"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -270,7 +270,7 @@ export class Carousel {
|
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
render() {
|
|
273
|
-
return (h(Host, { key: '
|
|
273
|
+
return (h(Host, { key: 'ade421fc79d745727fe78ca3e95fe16e3415137e', class: "swiper-container", tabindex: "0" }, h("div", { key: 'd52f527ab0a2a4bd64e2098cc588f3ae6b874bcb', class: "swiper-wrapper" }, h("slot", { key: '0f9426dca0b1ba1341793bd04e847f261f2c1046' })), this.pager && h("div", { key: '3479c07552381ba5a162e012b52fc7da06f41172', class: "swiper-pagination", ref: el => this.paginationEl = el }), this.arrows && (h("div", { key: '9a9b215a9e21380b57b75e4ba371c2c0e2176d56', role: "button", class: "swiper-button-prev", tabindex: "0", "aria-label": "Previous slide", onClick: () => this.slidePrev() }, h("road-icon", { key: '1f78835d575dcad28f3bd6cf55a9f0d34d90f809', icon: navigationChevron, rotate: "180" }))), this.arrows && (h("div", { key: '287a27ab8483e6833bd27aeceeb62d51313ee606', role: "button", class: "swiper-button-next", tabindex: "0", "aria-label": "Next slide", onClick: () => this.slideNext() }, h("road-icon", { key: 'de2b38ddb9afd1e8140f1233a9da42ae12b4793e', icon: navigationChevron })))));
|
|
274
274
|
}
|
|
275
275
|
static get is() { return "road-carousel"; }
|
|
276
276
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,10 +4,10 @@ import { Host, h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class CarouselItem {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '9505d58be5a5b79ca69b82808b1ffd06ba6bf5ae', class: {
|
|
8
8
|
'swiper-slide': true,
|
|
9
9
|
'swiper-zoom-container': true,
|
|
10
|
-
} }, h("slot", { key: '
|
|
10
|
+
} }, h("slot", { key: 'e5c79e5ae3ca8cb8d69cd37a5b55496e04b26652' })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "road-carousel-item"; }
|
|
13
13
|
static get originalStyleUrls() {
|
|
@@ -69,7 +69,7 @@ export class Checkbox {
|
|
|
69
69
|
const labelId = this.checkboxId + '-label';
|
|
70
70
|
const inverseClass = this.inverse && 'form-checkbox-inverse';
|
|
71
71
|
const isInvalidClass = this.error !== undefined && !this.checked && this.error !== '' ? 'is-invalid' : '';
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: '6c65aa807587f38c0d6fcba34c1606431dfa1997' }, h("input", { key: '6a3aa3c88b3fd4bdc23bc3881c7b72e8d7591964', class: `form-check-input ${isInvalidClass}`, type: "checkbox", id: this.checkboxId, name: this.name, required: this.required, disabled: this.disabled, indeterminate: this.indeterminate, checked: this.checked, value: this.value, "aria-checked": `${this.checked}`, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }), h("label", { key: '3614ccc3ffbeacfd1e1b237da2b9c78ce7b8eecc', class: `form-check-label ${inverseClass}`, id: labelId, htmlFor: this.checkboxId }, h("div", { key: '5c3b311e9a816bd504780c2ba4009f5ab69d4b8e' }, this.label, " ", h("span", { key: 'cc588cbde6b8fbdea9ee0d861e265b994c8c5fa6', class: "form-check-label-span" }, this.secondaryLabel), h("slot", { key: 'd92e1174f5d8bc282938dde2532a065b4511f5e2' })), this.checked && !this.indeterminate && h("road-icon", { key: 'f4d26476c8686fc1d210378c581a5dedb6fb9ca3', class: "form-check-icon", icon: checkWide }), this.indeterminate && h("road-icon", { key: '2701bbb698f4558edb21e024d9f803d4227f1eec', class: "form-check-icon", icon: navigationAddLess })), this.error && this.error !== '' && h("p", { key: 'c39dc46b6aa89becc12a0277fddea6afe8c2f447', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && h("p", { key: 'bbd1c57d3d9bc9c13664a829927cb26c560bf075', class: "helper" }, this.helper)));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "road-checkbox"; }
|
|
75
75
|
static get encapsulation() { return "scoped"; }
|
|
@@ -25,7 +25,7 @@ export class Chip {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const outlineClass = this.outline ? 'chip-outline' : '';
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: 'a3d6d90495d0d68b83b3ddbaed51378dedf4d63a', class: `${outlineClass} chip-${this.color} chip-${this.size}`, tabindex: "0" }, h("div", { key: 'a59a6d3451042a9d04cda50c82615fc59465fdf7', class: "chip-description" }, h("slot", { key: '4219f60dc0bd8fda2be79f0ecd2b21075054c046' })), this.hasCloseIcon && h("road-icon", { key: 'c9426711dcf68f15413a3cd1a4f0c65cd09aa548', class: "chip-close", icon: navigationClose })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "road-chip"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class Col {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("slot", { key: '
|
|
7
|
+
return (h("slot", { key: 'a2621927906372b10b73caae4ddb4eca67ca3077' }));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "road-col"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,7 +32,7 @@ export class Collapse {
|
|
|
32
32
|
const isOpenClass = this.isOpen ? 'collapse-open' : '';
|
|
33
33
|
const buttonText = this.isOpen ? this.showLess : this.showMore;
|
|
34
34
|
const centerClass = this.centered ? 'collapse-btn-centered' : '';
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: 'dc4faac44b6213b807e1c1b935474e61ecffc229' }, h("slot", { key: '007dc5698f07c530416b96319c087c70cc2e0928' }), h("div", { key: '88f368b345b0d27a467bf120f4c461f409f43187', class: `collapsed-content ${isOpenClass}` }, h("slot", { key: '253c48a56447a867c6b9f99ec485d3f444166f5a', name: "collapsed-content" })), h("div", { key: 'ce988a1da4251516b4e6a751cd214931e608a586', class: `collapse-btn-wrapper ${centerClass}` }, h("road-button", { key: 'd52107ea32b0cf25f490e7b1d38425df9fdd7d58', onClick: this.onClick, class: "collapse-btn btn-link" }, buttonText))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "road-collapse"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,7 +14,7 @@ export class ContentCard {
|
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
16
|
const insetImageClass = this.insetImage ? '' : 'content-card-image';
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '0929d51b0a1629b1d983f114f1a0a5109db72d5b' }, h("road-img", { key: '289c2d4def77b4bae2f0ab1ce5e3569367b8bfcf', src: "https://s1.medias-norauto.fr/visuals/desktop/fr/banners/blog_loimontagne.png", alt: "loi montagne", class: insetImageClass }), h("div", { key: 'a22a7377c03e7b9f715b723ac454375785ee4765', class: "content-card-description" }, h("road-label", { key: 'e43c2c05a422a9aff793cf67ce7d3810689470b5', class: "content-card-description-title" }, h("slot", { key: '474ee1adb66d34157ad37b3a06546b8000d49a7a', name: "label" })), h("p", { key: 'd8cb29dba572569025b961e4fc08e51cc19fdeea', class: "content-card-description-text" }, h("slot", { key: '2751c5b213c615a8b4e70808da4ee5cdc3e7f26c', name: "description" })), h("div", { key: 'cce3d9833cda5f79b06c5f909af9fae197544204', class: "content-card-description-buttons" }, h("slot", { key: '2f75207ca66a7346c19f521c35ca8772ed3202c9' })))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "road-content-card"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -154,7 +154,7 @@ export class Counter {
|
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
156
|
const dataCi = this.isDustbinVisible ? "road-dustbin" : "";
|
|
157
|
-
return (h("road-input-group", { key: '
|
|
157
|
+
return (h("road-input-group", { key: '820b0cc9986dcb4e4c234f6c7046c14b3a3df095', class: this.size && `counter-${this.size}` }, h("road-button", { key: 'fab3f2d7e20855197f186f0e281d064befb95bbd', slot: "prepend", size: this.size, onClick: this.decrease, class: this.leftIconClasses, "data-cy": "road-decrease" }, h("road-icon", { key: '03c83781abc87777441b607b9722bf8d4ea30e03', name: this.isDustbinVisible ? "delete-forever" : "navigation-add-less", ref: (el) => this.iconCounterLess = el, size: this.size, "data-cy": dataCi, role: "button" })), h("road-input", { key: 'dd8911ac1c4b2c08ad876629962cd6b8b9531a61', ref: (el) => this.inputElement = el, type: "number", min: this.min.toString(), max: (this.max && this.max.toString()), step: this.step, value: this.value, onRoadChange: this.onRoadChange, onKeyUp: this.checkValue, "data-cy": "road-input-counter", readonly: this.readonly, label: "Quantit\u00E9" }), h("road-button", { key: '79bb668b3831df7ce76d1d3691f2c9ef6a3e56a8', slot: "append", size: this.size, onClick: this.increase, class: this.rightIconClasses, "data-cy": "road-increase" }, h("road-icon", { key: '035e4cacd9c843fd6b08a15ea40953bee8fcaa17', name: "navigation-add-more", size: this.size, role: "button" }))));
|
|
158
158
|
}
|
|
159
159
|
static get is() { return "road-counter"; }
|
|
160
160
|
static get encapsulation() { return "scoped"; }
|
|
@@ -85,11 +85,11 @@ export class Dialog {
|
|
|
85
85
|
break;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: 'e2ee13cb0fd6330b23224504c717efe8c68df097', class: `dialog ${modalIsOpenClass} ${modalhasClose}`, role: "alertdialog", "aria-modal": "true", tabindex: "-1", "aria-label": "dialogLabel" }, h("div", { key: 'c5f3ecaae31debea9afe6a712308520cd092fc23', class: "dialog-overlay", onClick: this.hasCloseIcon === true ? this.onClick : undefined, tabindex: "-1" }), h("div", { key: 'b28e1225a56208c8ff7891856a49b171bf09f88b', class: "dialog-modal", role: "document", tabindex: "0" }, h("div", { key: 'd799e1b00205d54e96e52f2e95b63e4c4327db2f', class: "dialog-content" }, h("header", { key: 'a3d16ae59ee42a9a61f4849c779dbf2f2a8066c9', class: "dialog-header" }, this.hasCloseIcon
|
|
89
89
|
? h("button", { type: "button", class: "dialog-close", onClick: this.onClick, "aria-label": "Close" }, h("road-icon", { icon: navigationClose, "aria-hidden": "true" }))
|
|
90
|
-
: ''), h("div", { key: '
|
|
90
|
+
: ''), h("div", { key: 'fadeb8d0776e92809c1f4fdda9d24fe325640103', class: "dialog-body" }, this.color !== undefined
|
|
91
91
|
? h("road-icon", { class: "dialog-icon", part: "dialog-icon", color: this.color, icon: icon, "aria-hidden": "true" })
|
|
92
|
-
: '', h("h2", { key: '
|
|
92
|
+
: '', h("h2", { key: '06cbf8264b6336cb98b19e7bda1a80fb7d7a9271', class: "dialog-title" }, this.label), h("p", { key: 'f82e151b413764289e3d430b76d987a8eaa1d7b3', class: "dialog-description", id: "dialogDesc" }, this.description)), h("footer", { key: 'cbc9e71ad7aed7eab7bca5d9818dcbceb3cbcce2', class: "dialog-footer" }, h("slot", { key: '41d4e4dd47ecf92e96396316e27ff8218ced5f2c' }))))));
|
|
93
93
|
}
|
|
94
94
|
static get is() { return "road-dialog"; }
|
|
95
95
|
static get encapsulation() { return "shadow"; }
|
|
@@ -138,7 +138,7 @@ export class Drawer {
|
|
|
138
138
|
const drawerWidthValue = this.position === 'bottom' ? '100%' : `${this.drawerWidth}px`;
|
|
139
139
|
const footerSlotElement = (_d = this.el.shadowRoot) === null || _d === void 0 ? void 0 : _d.querySelector('slot[name="footer"]');
|
|
140
140
|
const hasFooterContent = footerSlotElement instanceof HTMLSlotElement && footerSlotElement.assignedNodes().length > 0;
|
|
141
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: '8a221daad83a03c6635059b21b807ea546f94033', class: `${drawerIsOpenClass} drawer-${this.position}`, tabindex: "0", role: "dialog", "aria-label": ariaLabel }, h("div", { key: '28de6daf4125334413589e02b3c568936fd54596', class: "drawer-overlay", onClick: this.onClick, tabindex: "-1" }), h("div", { key: '555dd191eb27d3b5b0e97d1a0a29065e1d019195', class: "drawer-dialog", style: { maxWidth: drawerWidthValue }, role: "document", tabindex: "0" }, h("div", { key: 'ca12f58fd65bec534130f96de55781440a99a3f3', class: "drawer-content" }, h("header", { key: '3fbdbf60e39f0bb41de438fca2f90dd7368d2360', class: `drawer-header ${inverseHeaderClass} ${drawerDelimiterClass}` }, backIconElement, this.drawerTitle ? (h("h2", { class: "drawer-title" }, this.drawerTitle)) : (h("div", { class: "drawer-title" }, h("slot", { name: "title" }))), closeIconElement), h("div", { key: '2c87df1cd3e5aeaff575e06a21cc95bb58e123d5', class: `drawer-body ${removePaddingClass}` }, h("slot", { key: '146a53a578800960a1ec69a9ad73fab9f7ec1d08' })), h("footer", { key: 'b67cf3313766e0b1ec4e903c536c68f8dfbc3cc9', class: `drawer-footer ${removePaddingClass}`, style: { display: hasFooterContent ? 'block' : 'none' } }, h("slot", { key: '2fa3f2e7b39ec3b03fba1a76ceb3a5c64d00c0e5', name: "footer" }))))));
|
|
142
142
|
}
|
|
143
143
|
static get is() { return "road-drawer"; }
|
|
144
144
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,7 +23,7 @@ export class Dropdown {
|
|
|
23
23
|
const positionClass = this.position ? `position-${this.position}` : '';
|
|
24
24
|
const dropdownClass = this.position ? `dropdown-${this.position}` : '';
|
|
25
25
|
const directionClass = this.direction ? `direction-${this.direction}` : '';
|
|
26
|
-
return (h("details", { key: '
|
|
26
|
+
return (h("details", { key: '0b6d1adf874e559fb90a471aabda2c01090c48b9', class: "dropdown", open: this.isOpen }, h("summary", { key: '83139e232e4c74c84831d20e5ed32cea245b8102', "aria-expanded": this.isOpen.toString(), tabindex: "0", role: "button", onClick: this.onClick, "tab-index": "0" }, h("div", { key: 'd427dcd5a8c534a4fb1e3874cb2ac279d3b9a5f2', class: `d-flex ${positionClass}` }, h("div", { key: 'b9bbebff325eb4c2ed9e088b7064ead91b2c55f8', class: `${isLightButtonDropDown} ${isMediumButtonDropDown}` }, h("road-icon", { key: '72d9a1fd48cca91d8f16494d731898e3625e47e3', name: "navigation-more", class: "dropdown-button-icon", "aria-hidden": "true" })))), h("div", { key: '2434438ec14e86f8fb78378b3eb88f0a39abb6f2', class: `dropdown-menu ${directionClass} ${dropdownClass}` }, h("slot", { key: '1eb1bc0bdfdbaa13689e0552c8fa278381777863', name: "list" }))));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "road-dropdown"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|