@roadtrip/components 2.23.0 → 2.25.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/{app-dd3d5c6d.js → app-79994847.js} +1 -1
- package/dist/cjs/{css-shim-17741caa.js → css-shim-9a05bb86.js} +1 -1
- package/dist/cjs/{dom-500ce210.js → dom-417ccd20.js} +1 -1
- package/dist/cjs/{index-c72934e6.js → index-9b63596c.js} +81 -72
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/road-accordion.cjs.entry.js +3 -3
- package/dist/cjs/road-alert.cjs.entry.js +1 -1
- package/dist/cjs/road-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/road-avatar.cjs.entry.js +2 -2
- package/dist/cjs/road-badge_11.cjs.entry.js +17 -9
- package/dist/cjs/road-card.cjs.entry.js +2 -2
- package/dist/cjs/road-carousel-item.cjs.entry.js +1 -1
- package/dist/cjs/road-carousel.cjs.entry.js +1 -1
- package/dist/cjs/road-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/road-chip.cjs.entry.js +4 -4
- package/dist/cjs/road-collapse.cjs.entry.js +4 -4
- package/dist/cjs/road-counter.cjs.entry.js +4 -4
- package/dist/cjs/road-dialog.cjs.entry.js +1 -1
- package/dist/cjs/road-dropdown.cjs.entry.js +29 -0
- package/dist/cjs/road-flap.cjs.entry.js +1 -1
- package/dist/cjs/road-img.cjs.entry.js +1 -1
- package/dist/cjs/road-input-group.cjs.entry.js +2 -2
- package/dist/cjs/road-input.cjs.entry.js +3 -3
- package/dist/cjs/road-modal.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar-item.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar.cjs.entry.js +1 -1
- package/dist/cjs/road-plate-number.cjs.entry.js +7 -4
- package/dist/cjs/road-progress.cjs.entry.js +1 -1
- package/dist/cjs/road-radio-group.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/road-select-filter.cjs.entry.js +1794 -4
- package/dist/cjs/road-select.cjs.entry.js +1 -1
- package/dist/cjs/road-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/road-spinner.cjs.entry.js +2 -2
- package/dist/cjs/road-switch.cjs.entry.js +4 -4
- package/dist/cjs/road-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/road-tab-button.cjs.entry.js +1 -1
- package/dist/cjs/road-tab.cjs.entry.js +1 -1
- package/dist/cjs/road-table.cjs.entry.js +2 -2
- package/dist/cjs/road-tabs.cjs.entry.js +1 -1
- package/dist/cjs/road-text.cjs.entry.js +1 -1
- package/dist/cjs/road-textarea.cjs.entry.js +6 -6
- package/dist/cjs/road-toast.cjs.entry.js +3 -3
- package/dist/cjs/road-toolbar-title.cjs.entry.js +2 -2
- package/dist/cjs/road-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/roadtrip.cjs.js +5 -5
- package/dist/cjs/{shadow-css-d8ee70b1.js → shadow-css-432b27e3.js} +9 -10
- package/dist/cjs/{utils-6ec63290.js → utils-90171b88.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/accordion/accordion.css +10 -11
- package/dist/collection/components/accordion/accordion.js +2 -2
- package/dist/collection/components/accordion/accordion.stories.js +81 -37
- package/dist/collection/components/alert/alert.css +10 -16
- package/dist/collection/components/alert/alert.stories.js +51 -45
- package/dist/collection/components/autocomplete/autocomplete.css +0 -3
- package/dist/collection/components/autocomplete/autocomplete.js +1 -1
- package/dist/collection/components/autocomplete/autocomplete.stories.js +50 -20
- package/dist/collection/components/avatar/avatar.css +18 -0
- package/dist/collection/components/avatar/avatar.js +2 -3
- package/dist/collection/components/avatar/avatar.stories.js +39 -14
- package/dist/collection/components/badge/badge.css +9 -10
- package/dist/collection/components/badge/badge.stories.js +33 -35
- package/dist/collection/components/button/button.css +33 -33
- package/dist/collection/components/button/button.js +16 -6
- package/dist/collection/components/button/button.stories.js +161 -70
- package/dist/collection/components/card/card.css +12 -7
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/carousel/carousel.css +22 -2
- package/dist/collection/components/carousel/carousel.js +22 -22
- package/dist/collection/components/carousel/carousel.stories.js +317 -73
- package/dist/collection/components/carousel-item/carousel-item.css +14 -0
- package/dist/collection/components/checkbox/checkbox.css +4 -5
- package/dist/collection/components/checkbox/checkbox.js +4 -4
- package/dist/collection/components/checkbox/checkbox.stories.js +88 -63
- package/dist/collection/components/chip/chip.js +6 -6
- package/dist/collection/components/chip/chip.stories.js +58 -82
- package/dist/collection/components/col/col.js +2 -3
- package/dist/collection/components/collapse/collapse.css +0 -1
- package/dist/collection/components/collapse/collapse.js +7 -7
- package/dist/collection/components/collapse/collapse.stories.js +141 -126
- package/dist/collection/components/counter/counter.css +0 -1
- package/dist/collection/components/counter/counter.js +9 -10
- package/dist/collection/components/counter/counter.stories.js +64 -30
- package/dist/collection/components/dialog/dialog.css +14 -15
- package/dist/collection/components/dialog/dialog.stories.js +81 -37
- package/dist/collection/components/drawer/drawer.dark.css +28 -26
- package/dist/collection/components/drawer/drawer.light.css +28 -26
- package/dist/collection/components/drawer/drawer.stories.js +195 -72
- package/dist/collection/components/dropdown/dropdown.css +63 -0
- package/dist/collection/components/dropdown/dropdown.js +54 -0
- package/dist/collection/components/dropdown/dropdown.stories.js +71 -0
- package/dist/collection/components/flap/flap.stories.js +35 -31
- package/dist/collection/components/grid/grid.js +2 -3
- package/dist/collection/components/grid/grid.stories.js +5 -5
- package/dist/collection/components/icon/icon.css +12 -3
- package/dist/collection/components/icon/icon.stories.js +88 -62
- package/dist/collection/components/icon/svg/app.svg +1 -1
- package/dist/collection/components/icon/svg/archive-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/archive-outline.svg +1 -0
- package/dist/collection/components/icon/svg/archive.svg +1 -0
- package/dist/collection/components/icon/svg/attachment.svg +1 -0
- package/dist/collection/components/icon/svg/brake-color.svg +1 -1
- package/dist/collection/components/icon/svg/check-list-color.svg +1 -0
- package/dist/collection/components/icon/svg/check-list.svg +1 -0
- package/dist/collection/components/icon/svg/data-bar-color.svg +1 -0
- package/dist/collection/components/icon/svg/data-bar.svg +1 -0
- package/dist/collection/components/icon/svg/fuse-color.svg +1 -0
- package/dist/collection/components/icon/svg/location-pin-all-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/location-pin-all-outline.svg +1 -0
- package/dist/collection/components/icon/svg/location-pin-all.svg +1 -1
- package/dist/collection/components/icon/svg/navigation-app.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-first-color.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-first.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-hours-color.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-hours.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-minute-color.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-minute.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-night-and-day-color.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-night-and-day.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-second-color.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-second.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-third-color.svg +1 -0
- package/dist/collection/components/icon/svg/secure-level-third.svg +1 -0
- package/dist/collection/components/icon/svg/star-half.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-all-authorize-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-all-authorize-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-all-unauthorize-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-all-unauthorize-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-bodywork-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-bodywork-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-car-bodywork.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delevery-outline.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-delevery-van.svg +1 -1
- package/dist/collection/components/icon/svg/vehicle-delevery.svg +1 -1
- package/dist/collection/components/icon/svg/windscreen-wiper-color.svg +1 -1
- package/dist/collection/components/icon/svg/windscreen-wiper.svg +1 -1
- package/dist/collection/components/icon/svg/windscreen-wipers-color.svg +1 -1
- package/dist/collection/components/icon/svg/windscreen-wipers-left-color.svg +1 -1
- package/dist/collection/components/icon/svg/windscreen-wipers-left.svg +1 -1
- package/dist/collection/components/icon/svg/windscreen-wipers-right-color.svg +1 -1
- package/dist/collection/components/icon/svg/windscreen-wipers-right.svg +1 -1
- package/dist/collection/components/icon/svg/windscreen-wipers.svg +1 -1
- package/dist/collection/components/icon/svg/work-order-awaiting-approval-color.svg +1 -0
- package/dist/collection/components/icon/svg/work-order-awaiting-approval-outline.svg +1 -0
- package/dist/collection/components/icon/svg/work-order-awaiting-approval.svg +1 -0
- package/dist/collection/components/img/img.css +2 -3
- package/dist/collection/components/input/input.css +8 -9
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/input.stories.js +192 -126
- package/dist/collection/components/input-group/input-group.css +5 -4
- package/dist/collection/components/input-group/input-group.stories.js +44 -35
- package/dist/collection/components/item/item.css +15 -16
- package/dist/collection/components/item/item.stories.js +118 -24
- package/dist/collection/components/label/label.css +5 -0
- package/dist/collection/components/label/label.js +2 -3
- package/dist/collection/components/list/list.css +5 -3
- package/dist/collection/components/list/list.stories.js +48 -46
- package/dist/collection/components/modal/modal.css +10 -11
- package/dist/collection/components/modal/modal.stories.js +46 -30
- package/dist/collection/components/navbar/navbar.js +2 -2
- package/dist/collection/components/navbar/navbar.stories.js +40 -23
- package/dist/collection/components/navbar-item/navbar-item.css +6 -7
- package/dist/collection/components/navbar-item/navbar-item.js +2 -2
- package/dist/collection/components/plate-number/plate-number.css +41 -2
- package/dist/collection/components/plate-number/plate-number.js +28 -7
- package/dist/collection/components/plate-number/plate-number.stories.js +39 -7
- package/dist/collection/components/progress/progress.css +2 -2
- package/dist/collection/components/progress/progress.stories.js +3 -3
- package/dist/collection/components/radio/radio.css +4 -5
- package/dist/collection/components/radio/radio.stories.js +47 -30
- package/dist/collection/components/radio-group/radio-group.css +22 -3
- package/dist/collection/components/range/range.css +1 -2
- package/dist/collection/components/range/range.js +5 -6
- package/dist/collection/components/range/range.stories.js +39 -32
- package/dist/collection/components/rating/rating.css +19 -1
- package/dist/collection/components/rating/rating.stories.js +40 -31
- package/dist/collection/components/select/select.css +4 -5
- package/dist/collection/components/select/select.stories.js +81 -89
- package/dist/collection/components/select-filter/select-filter.css +0 -1
- package/dist/collection/components/select-filter/select-filter.js +34 -3
- package/dist/collection/components/select-filter/select-filter.stories.js +95 -85
- package/dist/collection/components/skeleton/skeleton.css +2 -3
- package/dist/collection/components/skeleton/skeleton.js +2 -3
- package/dist/collection/components/spinner/spinner.css +4 -5
- package/dist/collection/components/spinner/spinner.js +3 -4
- package/dist/collection/components/switch/switch.css +9 -10
- package/dist/collection/components/switch/switch.js +8 -8
- package/dist/collection/components/switch/switch.stories.js +94 -82
- 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.css +12 -11
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/table/table.css +1 -0
- package/dist/collection/components/table/table.js +2 -3
- package/dist/collection/components/table/table.stories.js +15 -6
- package/dist/collection/components/tabs/tabs.css +5 -0
- package/dist/collection/components/tabs/tabs.js +4 -4
- package/dist/collection/components/tabs/tabs.stories.js +106 -57
- package/dist/collection/components/text/text.css +52 -1
- package/dist/collection/components/text/text.stories.js +8 -4
- package/dist/collection/components/textarea/textarea.css +5 -6
- package/dist/collection/components/textarea/textarea.js +12 -12
- package/dist/collection/components/textarea/textarea.stories.js +132 -110
- package/dist/collection/components/toast/toast.css +5 -6
- package/dist/collection/components/toast/toast.js +4 -4
- package/dist/collection/components/toast/toast.stories.js +60 -46
- package/dist/collection/components/toolbar/toolbar.css +8 -9
- package/dist/collection/components/toolbar/toolbar.stories.js +50 -13
- package/dist/collection/components/toolbar-title/toolbar-title.css +5 -0
- package/dist/collection/components/toolbar-title/toolbar-title.js +3 -4
- package/dist/collection/components/tooltip/tooltip.css +16 -5
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/components/tooltip/tooltip.stories.js +78 -11
- package/dist/esm/{app-292fcdfa.js → app-a32f9d74.js} +1 -1
- package/dist/esm/{css-shim-09c9cbdc.js → css-shim-17041dc7.js} +1 -1
- package/dist/esm/{dom-db0073f0.js → dom-ba83fb9d.js} +1 -1
- package/dist/esm/{index-ca0a4edb.js → index-0c8a0e04.js} +81 -72
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/road-accordion.entry.js +3 -3
- package/dist/esm/road-alert.entry.js +1 -1
- package/dist/esm/road-autocomplete.entry.js +2 -2
- package/dist/esm/road-avatar.entry.js +2 -2
- package/dist/esm/road-badge_11.entry.js +17 -9
- package/dist/esm/road-card.entry.js +2 -2
- package/dist/esm/road-carousel-item.entry.js +1 -1
- package/dist/esm/road-carousel.entry.js +1 -1
- package/dist/esm/road-checkbox.entry.js +2 -2
- package/dist/esm/road-chip.entry.js +4 -4
- package/dist/esm/road-collapse.entry.js +4 -4
- package/dist/esm/road-counter.entry.js +4 -4
- package/dist/esm/road-dialog.entry.js +1 -1
- package/dist/esm/road-dropdown.entry.js +25 -0
- package/dist/esm/road-flap.entry.js +1 -1
- package/dist/esm/road-img.entry.js +1 -1
- package/dist/esm/road-input-group.entry.js +2 -2
- package/dist/esm/road-input.entry.js +3 -3
- package/dist/esm/road-modal.entry.js +1 -1
- package/dist/esm/road-navbar-item.entry.js +1 -1
- package/dist/esm/road-navbar.entry.js +1 -1
- package/dist/esm/road-plate-number.entry.js +7 -4
- package/dist/esm/road-progress.entry.js +1 -1
- package/dist/esm/road-radio-group.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/road-select-filter.entry.js +1794 -4
- package/dist/esm/road-select.entry.js +1 -1
- package/dist/esm/road-skeleton.entry.js +2 -2
- package/dist/esm/road-spinner.entry.js +2 -2
- package/dist/esm/road-switch.entry.js +4 -4
- package/dist/esm/road-tab-bar.entry.js +1 -1
- package/dist/esm/road-tab-button.entry.js +1 -1
- package/dist/esm/road-tab.entry.js +1 -1
- package/dist/esm/road-table.entry.js +2 -2
- package/dist/esm/road-tabs.entry.js +1 -1
- package/dist/esm/road-text.entry.js +1 -1
- package/dist/esm/road-textarea.entry.js +6 -6
- package/dist/esm/road-toast.entry.js +3 -3
- package/dist/esm/road-toolbar-title.entry.js +2 -2
- package/dist/esm/road-tooltip.entry.js +3 -3
- package/dist/esm/roadtrip.js +5 -5
- package/dist/esm/{shadow-css-c1fdfa9f.js → shadow-css-bfd5796e.js} +9 -10
- package/dist/esm/{utils-38991a7b.js → utils-39de47f7.js} +1 -1
- package/dist/esm-es5/app-a32f9d74.js +1 -0
- package/dist/esm-es5/{css-shim-09c9cbdc.js → css-shim-17041dc7.js} +0 -0
- package/dist/esm-es5/{dom-db0073f0.js → dom-ba83fb9d.js} +0 -0
- package/dist/esm-es5/index-0c8a0e04.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/road-accordion.entry.js +1 -1
- package/dist/esm-es5/road-alert.entry.js +1 -1
- package/dist/esm-es5/road-autocomplete.entry.js +1 -1
- package/dist/esm-es5/road-avatar.entry.js +1 -1
- package/dist/esm-es5/road-badge_11.entry.js +1 -1
- package/dist/esm-es5/road-card.entry.js +1 -1
- package/dist/esm-es5/road-carousel-item.entry.js +1 -1
- package/dist/esm-es5/road-carousel.entry.js +1 -1
- package/dist/esm-es5/road-checkbox.entry.js +1 -1
- package/dist/esm-es5/road-chip.entry.js +1 -1
- package/dist/esm-es5/road-collapse.entry.js +1 -1
- package/dist/esm-es5/road-counter.entry.js +1 -1
- package/dist/esm-es5/road-dialog.entry.js +1 -1
- package/dist/esm-es5/road-dropdown.entry.js +1 -0
- package/dist/esm-es5/road-flap.entry.js +1 -1
- package/dist/esm-es5/road-img.entry.js +1 -1
- package/dist/esm-es5/road-input-group.entry.js +1 -1
- package/dist/esm-es5/road-input.entry.js +1 -1
- package/dist/esm-es5/road-modal.entry.js +1 -1
- package/dist/esm-es5/road-navbar-item.entry.js +1 -1
- package/dist/esm-es5/road-navbar.entry.js +1 -1
- package/dist/esm-es5/road-plate-number.entry.js +1 -1
- package/dist/esm-es5/road-progress.entry.js +1 -1
- package/dist/esm-es5/road-radio-group.entry.js +1 -1
- package/dist/esm-es5/road-radio.entry.js +1 -1
- package/dist/esm-es5/road-range.entry.js +1 -1
- package/dist/esm-es5/road-rating.entry.js +1 -1
- package/dist/esm-es5/road-select-filter.entry.js +1 -1
- package/dist/esm-es5/road-select.entry.js +1 -1
- package/dist/esm-es5/road-skeleton.entry.js +1 -1
- package/dist/esm-es5/road-spinner.entry.js +1 -1
- package/dist/esm-es5/road-switch.entry.js +1 -1
- package/dist/esm-es5/road-tab-bar.entry.js +1 -1
- package/dist/esm-es5/road-tab-button.entry.js +1 -1
- package/dist/esm-es5/road-tab.entry.js +1 -1
- package/dist/esm-es5/road-table.entry.js +1 -1
- package/dist/esm-es5/road-tabs.entry.js +1 -1
- package/dist/esm-es5/road-text.entry.js +1 -1
- package/dist/esm-es5/road-textarea.entry.js +1 -1
- package/dist/esm-es5/road-toast.entry.js +1 -1
- package/dist/esm-es5/road-toolbar-title.entry.js +1 -1
- package/dist/esm-es5/road-tooltip.entry.js +1 -1
- package/dist/esm-es5/roadtrip.js +1 -1
- package/dist/esm-es5/shadow-css-bfd5796e.js +12 -0
- package/dist/esm-es5/{utils-38991a7b.js → utils-39de47f7.js} +1 -1
- package/dist/html.html-data.json +50 -20
- package/dist/icons/icons.svg +1 -1
- package/dist/icons/index.d.ts +35 -2
- package/dist/icons/index.js +49 -16
- package/dist/roadtrip/index.esm.js +1 -1
- package/dist/roadtrip/{p-db7b669e.system.js → p-05961c88.system.js} +1 -1
- package/dist/roadtrip/{p-52b55f44.system.entry.js → p-06a743b4.system.entry.js} +1 -1
- package/dist/roadtrip/{p-741d9d7d.system.entry.js → p-093a2288.system.entry.js} +1 -1
- package/dist/roadtrip/p-0a5f2c0f.entry.js +1 -0
- package/dist/roadtrip/{p-ccdb9902.system.entry.js → p-0b4b6077.system.entry.js} +1 -1
- package/dist/roadtrip/{p-3af119c3.entry.js → p-0e5cecff.entry.js} +1 -1
- package/dist/roadtrip/{p-5f20bd78.entry.js → p-0f8da68b.entry.js} +1 -1
- package/dist/roadtrip/p-102d3882.system.js +1 -0
- package/dist/roadtrip/{p-3919001a.entry.js → p-1347a27e.entry.js} +1 -1
- package/dist/roadtrip/{p-dbe915df.system.entry.js → p-13c18cec.system.entry.js} +1 -1
- package/dist/roadtrip/{p-f92085f7.entry.js → p-16a1b3cb.entry.js} +1 -1
- package/dist/roadtrip/{p-f90c7a6e.entry.js → p-194b2934.entry.js} +1 -1
- package/dist/roadtrip/{p-2087071d.system.entry.js → p-19c89e8f.system.entry.js} +1 -1
- package/dist/roadtrip/p-1c0851b0.entry.js +1 -0
- package/dist/roadtrip/p-1ef8acf8.system.entry.js +1 -0
- package/dist/roadtrip/{p-39f45672.entry.js → p-24234448.entry.js} +1 -1
- package/dist/roadtrip/{p-438be30d.system.entry.js → p-25c303d8.system.entry.js} +1 -1
- package/dist/roadtrip/p-26b3aa33.system.entry.js +1 -0
- package/dist/roadtrip/{p-355be3ad.system.entry.js → p-2740d308.system.entry.js} +1 -1
- package/dist/roadtrip/p-287f1612.system.entry.js +1 -0
- package/dist/roadtrip/{p-57a5b6ee.js → p-33e38a04.js} +1 -1
- package/dist/roadtrip/p-3683fe49.system.js +13 -0
- package/dist/roadtrip/p-3cb3107f.entry.js +1 -0
- package/dist/roadtrip/{p-45589dc8.entry.js → p-44576eac.entry.js} +1 -1
- package/dist/roadtrip/p-46c22946.js +1 -0
- package/dist/roadtrip/p-4742a822.system.entry.js +1 -0
- package/dist/roadtrip/{p-e4f0bdc9.entry.js → p-4ef3684e.entry.js} +1 -1
- package/dist/roadtrip/{p-b0d85186.system.entry.js → p-52f05a7c.system.entry.js} +1 -1
- package/dist/roadtrip/{p-86d407db.system.entry.js → p-54635daa.system.entry.js} +1 -1
- package/dist/roadtrip/p-5bcd3e1f.entry.js +1 -0
- package/dist/roadtrip/{p-07a0be0c.system.entry.js → p-5e8571d3.system.entry.js} +1 -1
- package/dist/roadtrip/p-6195c41f.system.entry.js +1 -0
- package/dist/roadtrip/{p-c68c4c08.entry.js → p-63aa411f.entry.js} +1 -1
- package/dist/roadtrip/p-68af3047.entry.js +1 -0
- package/dist/roadtrip/p-6a123e72.system.entry.js +1 -0
- package/dist/roadtrip/{p-fcd6d9ee.system.entry.js → p-6cf85ea2.system.entry.js} +1 -1
- package/dist/roadtrip/{p-a4f564ff.entry.js → p-6f744bd8.entry.js} +1 -1
- package/dist/roadtrip/{p-d266b343.system.js → p-7154119b.system.js} +0 -0
- package/dist/roadtrip/{p-5e0abf8a.system.entry.js → p-74218654.system.entry.js} +1 -1
- package/dist/roadtrip/{p-4db46d4e.system.entry.js → p-766f8a2a.system.entry.js} +1 -1
- package/dist/roadtrip/p-76885294.system.entry.js +1 -0
- package/dist/roadtrip/p-768d1a90.entry.js +1 -0
- package/dist/roadtrip/{p-ce911622.system.entry.js → p-76f26f2b.system.entry.js} +1 -1
- package/dist/roadtrip/{p-907af5c4.entry.js → p-78315356.entry.js} +1 -1
- package/dist/roadtrip/{p-7a3cc989.js → p-7b733694.js} +1 -1
- package/dist/roadtrip/{p-5457d69f.entry.js → p-7fe4f8f3.entry.js} +1 -1
- package/dist/roadtrip/{p-7e6d339b.entry.js → p-82a07b27.entry.js} +1 -1
- package/dist/roadtrip/{p-b743a929.system.entry.js → p-835d550a.system.entry.js} +1 -1
- package/dist/roadtrip/{p-1879601d.entry.js → p-8d18ebce.entry.js} +1 -1
- package/dist/roadtrip/p-8e21df57.system.entry.js +1 -0
- package/dist/roadtrip/{p-f470f97c.entry.js → p-92300d3f.entry.js} +1 -1
- package/dist/roadtrip/p-93345613.system.entry.js +1 -0
- package/dist/roadtrip/{p-1327abae.entry.js → p-93ccfda6.entry.js} +1 -1
- package/dist/roadtrip/p-93dab753.js +12 -0
- package/dist/roadtrip/{p-5b2de675.entry.js → p-9567d161.entry.js} +1 -1
- package/dist/roadtrip/{p-8934d5fc.entry.js → p-9a1a293c.entry.js} +1 -1
- package/dist/roadtrip/p-9a36bd11.system.entry.js +1 -0
- package/dist/roadtrip/{p-7e528855.entry.js → p-9dd72bfa.entry.js} +1 -1
- package/dist/roadtrip/p-a1168bd5.system.entry.js +1 -0
- package/dist/roadtrip/{p-5f4c4992.system.entry.js → p-a1628953.system.entry.js} +1 -1
- package/dist/roadtrip/p-a3bc0e5b.entry.js +1 -0
- package/dist/roadtrip/{p-d1d86108.system.entry.js → p-a467913d.system.entry.js} +1 -1
- package/dist/roadtrip/p-a61e04a1.entry.js +1 -0
- package/dist/roadtrip/p-a64c67ad.system.entry.js +1 -0
- package/dist/roadtrip/{p-e1ecf3e2.entry.js → p-a7dc1c0c.entry.js} +1 -1
- package/dist/roadtrip/{p-48e5ee18.system.entry.js → p-a87e8b19.system.entry.js} +1 -1
- package/dist/roadtrip/p-a9c74737.entry.js +1 -0
- package/dist/roadtrip/{p-9e2990f1.js → p-ac0761c3.js} +0 -0
- package/dist/roadtrip/{p-870401c7.system.js → p-ad92df4f.system.js} +1 -1
- package/dist/roadtrip/p-adbaa790.entry.js +1 -0
- package/dist/roadtrip/{p-e10e3018.system.entry.js → p-b0ec7122.system.entry.js} +1 -1
- package/dist/roadtrip/{p-92a913e8.entry.js → p-b0ed748a.entry.js} +1 -1
- package/dist/roadtrip/p-b205281e.system.js +1 -0
- package/dist/roadtrip/{p-71cd56c1.entry.js → p-b501c4b2.entry.js} +1 -1
- package/dist/roadtrip/{p-ba19e220.system.entry.js → p-b591a3f7.system.entry.js} +1 -1
- package/dist/roadtrip/p-b6e60fca.system.entry.js +1 -0
- package/dist/roadtrip/{p-f10ecc10.entry.js → p-bba29599.entry.js} +1 -1
- package/dist/roadtrip/{p-4e11546d.system.entry.js → p-bd2a89d4.system.entry.js} +1 -1
- package/dist/roadtrip/{p-9e689ce3.system.entry.js → p-c0429d42.system.entry.js} +1 -1
- package/dist/roadtrip/{p-770605d6.entry.js → p-ced4c451.entry.js} +1 -1
- package/dist/roadtrip/{p-d8c05f0b.system.entry.js → p-cf4b48af.system.entry.js} +1 -1
- package/dist/roadtrip/p-d5607a82.system.entry.js +1 -0
- package/dist/roadtrip/{p-e0990af2.system.entry.js → p-d861032d.system.entry.js} +1 -1
- package/dist/roadtrip/{p-fb2e1da0.entry.js → p-dcfc236e.entry.js} +1 -1
- package/dist/roadtrip/{p-634bb469.system.entry.js → p-de1a3a53.system.entry.js} +1 -1
- package/dist/roadtrip/{p-f63b910b.entry.js → p-e4b0578a.entry.js} +1 -1
- package/dist/roadtrip/p-e56b3c0f.system.entry.js +1 -0
- package/dist/roadtrip/p-e5756d79.entry.js +1 -0
- package/dist/roadtrip/p-e70b2a21.entry.js +1 -0
- package/dist/roadtrip/p-e9a6f1fb.entry.js +1 -0
- package/dist/roadtrip/{p-ff0c3182.system.entry.js → p-eaf8ddaf.system.entry.js} +1 -1
- package/dist/roadtrip/p-ed2dbf57.entry.js +1 -0
- package/dist/roadtrip/{p-e956996a.system.js → p-efa19d38.system.js} +0 -0
- package/dist/roadtrip/{p-33c4dca7.entry.js → p-f0ec3a64.entry.js} +1 -1
- package/dist/roadtrip/p-f22c63b7.entry.js +1 -0
- package/dist/roadtrip/p-f2593f4b.system.entry.js +1 -0
- package/dist/roadtrip/{p-c2373cf9.system.js → p-f33e4ac5.system.js} +1 -1
- package/dist/roadtrip/{p-f38a8df4.js → p-f6631560.js} +0 -0
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/roadtrip.js +1 -1
- package/dist/roadtrip/svg/app.svg +1 -1
- package/dist/roadtrip/svg/archive-outline-color.svg +1 -0
- package/dist/roadtrip/svg/archive-outline.svg +1 -0
- package/dist/roadtrip/svg/archive.svg +1 -0
- package/dist/roadtrip/svg/attachment.svg +1 -0
- package/dist/roadtrip/svg/brake-color.svg +1 -1
- package/dist/roadtrip/svg/check-list-color.svg +1 -0
- package/dist/roadtrip/svg/check-list.svg +1 -0
- package/dist/roadtrip/svg/data-bar-color.svg +1 -0
- package/dist/roadtrip/svg/data-bar.svg +1 -0
- package/dist/roadtrip/svg/fuse-color.svg +1 -0
- package/dist/roadtrip/svg/location-pin-all-outline-color.svg +1 -0
- package/dist/roadtrip/svg/location-pin-all-outline.svg +1 -0
- package/dist/roadtrip/svg/location-pin-all.svg +1 -1
- package/dist/roadtrip/svg/navigation-app.svg +1 -0
- package/dist/roadtrip/svg/secure-level-first-color.svg +1 -0
- package/dist/roadtrip/svg/secure-level-first.svg +1 -0
- package/dist/roadtrip/svg/secure-level-hours-color.svg +1 -0
- package/dist/roadtrip/svg/secure-level-hours.svg +1 -0
- package/dist/roadtrip/svg/secure-level-minute-color.svg +1 -0
- package/dist/roadtrip/svg/secure-level-minute.svg +1 -0
- package/dist/roadtrip/svg/secure-level-night-and-day-color.svg +1 -0
- package/dist/roadtrip/svg/secure-level-night-and-day.svg +1 -0
- package/dist/roadtrip/svg/secure-level-second-color.svg +1 -0
- package/dist/roadtrip/svg/secure-level-second.svg +1 -0
- package/dist/roadtrip/svg/secure-level-third-color.svg +1 -0
- package/dist/roadtrip/svg/secure-level-third.svg +1 -0
- package/dist/roadtrip/svg/star-half.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-all-authorize-outline-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-all-authorize-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-all-unauthorize-outline-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-all-unauthorize-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-bodywork-outline-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-bodywork-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-car-bodywork.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delevery-outline.svg +1 -0
- package/dist/roadtrip/svg/vehicle-delevery-van.svg +1 -1
- package/dist/roadtrip/svg/vehicle-delevery.svg +1 -1
- package/dist/roadtrip/svg/windscreen-wiper-color.svg +1 -1
- package/dist/roadtrip/svg/windscreen-wiper.svg +1 -1
- package/dist/roadtrip/svg/windscreen-wipers-color.svg +1 -1
- package/dist/roadtrip/svg/windscreen-wipers-left-color.svg +1 -1
- package/dist/roadtrip/svg/windscreen-wipers-left.svg +1 -1
- package/dist/roadtrip/svg/windscreen-wipers-right-color.svg +1 -1
- package/dist/roadtrip/svg/windscreen-wipers-right.svg +1 -1
- package/dist/roadtrip/svg/windscreen-wipers.svg +1 -1
- package/dist/roadtrip/svg/work-order-awaiting-approval-color.svg +1 -0
- package/dist/roadtrip/svg/work-order-awaiting-approval-outline.svg +1 -0
- package/dist/roadtrip/svg/work-order-awaiting-approval.svg +1 -0
- package/dist/types/components/accordion/accordion.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +2 -2
- package/dist/types/components/checkbox/checkbox.d.ts +3 -3
- package/dist/types/components/chip/chip.d.ts +3 -3
- package/dist/types/components/collapse/collapse.d.ts +4 -4
- package/dist/types/components/counter/counter.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown.d.ts +15 -0
- package/dist/types/components/plate-number/plate-number.d.ts +4 -0
- package/dist/types/components/select-filter/select-filter.d.ts +5 -0
- package/dist/types/components/switch/switch.d.ts +5 -5
- package/dist/types/components/textarea/textarea.d.ts +8 -8
- package/dist/types/components/toast/toast.d.ts +2 -2
- package/dist/types/components/tooltip/tooltip.d.ts +2 -2
- package/dist/types/components.d.ts +88 -51
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/icons/icons.svg +1 -1
- package/icons/index.d.ts +35 -2
- package/icons/index.js +49 -16
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +11 -8
- package/dist/collection/components/icon/svg/vehicle-car-outline-side.svg +0 -1
- package/dist/collection/components/icon/svg/vehicle-delevery-privilege.svg +0 -1
- package/dist/esm-es5/app-292fcdfa.js +0 -1
- package/dist/esm-es5/index-ca0a4edb.js +0 -1
- package/dist/esm-es5/shadow-css-c1fdfa9f.js +0 -12
- package/dist/roadtrip/p-01135bcf.system.entry.js +0 -1
- package/dist/roadtrip/p-0599269b.system.entry.js +0 -1
- package/dist/roadtrip/p-07e0e430.js +0 -1
- package/dist/roadtrip/p-08b5f69e.entry.js +0 -1
- package/dist/roadtrip/p-09c241ad.entry.js +0 -1
- package/dist/roadtrip/p-114c8027.entry.js +0 -1
- package/dist/roadtrip/p-1df09c8b.system.entry.js +0 -1
- package/dist/roadtrip/p-28d034bb.entry.js +0 -1
- package/dist/roadtrip/p-2a02e7ca.system.entry.js +0 -1
- package/dist/roadtrip/p-3a2bd53d.system.entry.js +0 -1
- package/dist/roadtrip/p-4972df5f.system.entry.js +0 -1
- package/dist/roadtrip/p-4ed66188.entry.js +0 -1
- package/dist/roadtrip/p-4ef32250.system.entry.js +0 -1
- package/dist/roadtrip/p-5d801a6d.entry.js +0 -1
- package/dist/roadtrip/p-5db7ec05.system.entry.js +0 -1
- package/dist/roadtrip/p-6fd29998.system.entry.js +0 -1
- package/dist/roadtrip/p-858200a0.system.entry.js +0 -1
- package/dist/roadtrip/p-90069a64.entry.js +0 -1
- package/dist/roadtrip/p-93468129.entry.js +0 -1
- package/dist/roadtrip/p-9b7fa180.system.js +0 -1
- package/dist/roadtrip/p-a51ceef7.system.entry.js +0 -1
- package/dist/roadtrip/p-a6bf7d9a.entry.js +0 -1
- package/dist/roadtrip/p-accf62b5.entry.js +0 -1
- package/dist/roadtrip/p-b32c5fc9.entry.js +0 -1
- package/dist/roadtrip/p-b3da87d9.entry.js +0 -1
- package/dist/roadtrip/p-b6750852.entry.js +0 -1
- package/dist/roadtrip/p-bb3dd068.system.entry.js +0 -1
- package/dist/roadtrip/p-bd3cee80.system.js +0 -1
- package/dist/roadtrip/p-c257e55b.system.entry.js +0 -1
- package/dist/roadtrip/p-c8a2384d.system.entry.js +0 -1
- package/dist/roadtrip/p-ce6bd79c.entry.js +0 -1
- package/dist/roadtrip/p-ea858ec9.system.entry.js +0 -1
- package/dist/roadtrip/p-f4d979bb.system.js +0 -13
- package/dist/roadtrip/p-f566887e.js +0 -12
- package/dist/roadtrip/svg/vehicle-car-outline-side.svg +0 -1
- package/dist/roadtrip/svg/vehicle-delevery-privilege.svg +0 -1
|
@@ -7,11 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Index
|
|
9
9
|
* - Switch
|
|
10
|
-
* -
|
|
11
|
-
* -
|
|
12
|
-
* -
|
|
13
|
-
* -
|
|
14
|
-
*
|
|
10
|
+
* - Label
|
|
11
|
+
* - Lever
|
|
12
|
+
* - Feedback
|
|
13
|
+
* - Position
|
|
15
14
|
*/
|
|
16
15
|
|
|
17
16
|
/**
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
opacity: 0;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
/*
|
|
44
|
+
/* LABEL
|
|
46
45
|
-------------------- */
|
|
47
46
|
|
|
48
47
|
.form-switch-label {
|
|
@@ -52,7 +51,7 @@
|
|
|
52
51
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
/*
|
|
54
|
+
/* LEVER
|
|
56
55
|
-------------------- */
|
|
57
56
|
|
|
58
57
|
.form-switch-lever {
|
|
@@ -130,7 +129,7 @@
|
|
|
130
129
|
box-shadow: 0 0 0 0.125rem var(--white), 0 0 0 0.1875rem var(--secondary);
|
|
131
130
|
}
|
|
132
131
|
|
|
133
|
-
/*
|
|
132
|
+
/* FEEDBACK
|
|
134
133
|
-------------------- */
|
|
135
134
|
|
|
136
135
|
/**
|
|
@@ -146,7 +145,7 @@
|
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
/**
|
|
149
|
-
*
|
|
148
|
+
* Info
|
|
150
149
|
*/
|
|
151
150
|
|
|
152
151
|
.form-switch-input:checked ~ .form-switch-info .form-switch-lever {
|
|
@@ -193,7 +192,7 @@
|
|
|
193
192
|
color: var(--danger-contrast);
|
|
194
193
|
}
|
|
195
194
|
|
|
196
|
-
/*
|
|
195
|
+
/* POSITION
|
|
197
196
|
-------------------- */
|
|
198
197
|
|
|
199
198
|
.form-switch-right {
|
|
@@ -3,7 +3,7 @@ import './../../utils/polyfill';
|
|
|
3
3
|
export class Switch {
|
|
4
4
|
constructor() {
|
|
5
5
|
/**
|
|
6
|
-
* The id of
|
|
6
|
+
* The id of switch
|
|
7
7
|
*/
|
|
8
8
|
this.switchId = `road-switch-${switchIds++}`;
|
|
9
9
|
/**
|
|
@@ -11,11 +11,11 @@ export class Switch {
|
|
|
11
11
|
*/
|
|
12
12
|
this.name = this.switchId;
|
|
13
13
|
/**
|
|
14
|
-
* If `true`, the
|
|
14
|
+
* If `true`, the switch is checked.
|
|
15
15
|
*/
|
|
16
16
|
this.checked = false;
|
|
17
17
|
/**
|
|
18
|
-
* If `true`, the user cannot interact with the
|
|
18
|
+
* If `true`, the user cannot interact with the switch.
|
|
19
19
|
*/
|
|
20
20
|
this.disabled = false;
|
|
21
21
|
/**
|
|
@@ -96,7 +96,7 @@ export class Switch {
|
|
|
96
96
|
"optional": false,
|
|
97
97
|
"docs": {
|
|
98
98
|
"tags": [],
|
|
99
|
-
"text": "The id of
|
|
99
|
+
"text": "The id of switch"
|
|
100
100
|
},
|
|
101
101
|
"attribute": "switch-id",
|
|
102
102
|
"reflect": false,
|
|
@@ -132,7 +132,7 @@ export class Switch {
|
|
|
132
132
|
"optional": false,
|
|
133
133
|
"docs": {
|
|
134
134
|
"tags": [],
|
|
135
|
-
"text": "If `true`, the
|
|
135
|
+
"text": "If `true`, the switch is checked."
|
|
136
136
|
},
|
|
137
137
|
"attribute": "checked",
|
|
138
138
|
"reflect": false,
|
|
@@ -150,7 +150,7 @@ export class Switch {
|
|
|
150
150
|
"optional": false,
|
|
151
151
|
"docs": {
|
|
152
152
|
"tags": [],
|
|
153
|
-
"text": "If `true`, the user cannot interact with the
|
|
153
|
+
"text": "If `true`, the user cannot interact with the switch."
|
|
154
154
|
},
|
|
155
155
|
"attribute": "disabled",
|
|
156
156
|
"reflect": false,
|
|
@@ -311,7 +311,7 @@ export class Switch {
|
|
|
311
311
|
"composed": true,
|
|
312
312
|
"docs": {
|
|
313
313
|
"tags": [],
|
|
314
|
-
"text": "Emitted when the
|
|
314
|
+
"text": "Emitted when the switch has focus."
|
|
315
315
|
},
|
|
316
316
|
"complexType": {
|
|
317
317
|
"original": "void",
|
|
@@ -326,7 +326,7 @@ export class Switch {
|
|
|
326
326
|
"composed": true,
|
|
327
327
|
"docs": {
|
|
328
328
|
"tags": [],
|
|
329
|
-
"text": "Emitted when the
|
|
329
|
+
"text": "Emitted when the switch loses focus."
|
|
330
330
|
},
|
|
331
331
|
"complexType": {
|
|
332
332
|
"original": "void",
|
|
@@ -9,95 +9,107 @@ export default {
|
|
|
9
9
|
handles: ['roadBlur', 'roadFocus'],
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
|
+
argTypes: {
|
|
13
|
+
checked: {
|
|
14
|
+
control: 'boolean',
|
|
15
|
+
},
|
|
16
|
+
disabled: {
|
|
17
|
+
control: 'boolean',
|
|
18
|
+
},
|
|
19
|
+
label: {
|
|
20
|
+
control: 'text',
|
|
21
|
+
},
|
|
22
|
+
name: {
|
|
23
|
+
control: 'text',
|
|
24
|
+
},
|
|
25
|
+
'switch-id': {
|
|
26
|
+
control: 'text',
|
|
27
|
+
},
|
|
28
|
+
value: {
|
|
29
|
+
control: 'text',
|
|
30
|
+
},
|
|
31
|
+
off: {
|
|
32
|
+
control: 'text',
|
|
33
|
+
},
|
|
34
|
+
on: {
|
|
35
|
+
control: 'text',
|
|
36
|
+
},
|
|
37
|
+
color: {
|
|
38
|
+
options: ['secondary', 'info', 'success', 'danger', 'warning'],
|
|
39
|
+
control: {
|
|
40
|
+
type: 'radio',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
'has-left-label': {
|
|
44
|
+
control: 'boolean',
|
|
45
|
+
},
|
|
46
|
+
'is-spaced': {
|
|
47
|
+
control: 'boolean',
|
|
48
|
+
},
|
|
49
|
+
roadBlur: {
|
|
50
|
+
control: {
|
|
51
|
+
type: null,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
roadFocus: {
|
|
55
|
+
control: {
|
|
56
|
+
type: null,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
roadChange: {
|
|
60
|
+
action: 'roadChange',
|
|
61
|
+
control: {
|
|
62
|
+
type: null,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
'--switch-lever-width': {
|
|
66
|
+
table: {
|
|
67
|
+
defaultValue: { summary: '4.5rem' },
|
|
68
|
+
},
|
|
69
|
+
control: {
|
|
70
|
+
type: null,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
args: {
|
|
75
|
+
checked: null,
|
|
76
|
+
color: null,
|
|
77
|
+
'has-left-label': null,
|
|
78
|
+
'is-spaced': null,
|
|
79
|
+
label: 'Label',
|
|
80
|
+
value: 'on',
|
|
81
|
+
off: 'no',
|
|
82
|
+
on: 'yes',
|
|
83
|
+
disabled: null,
|
|
84
|
+
},
|
|
12
85
|
};
|
|
13
86
|
|
|
14
|
-
|
|
87
|
+
const Template = (args) => html`
|
|
15
88
|
<road-switch
|
|
16
|
-
checked="${args.checked}"
|
|
17
|
-
disabled="${args.disabled}"
|
|
18
|
-
color="${args.color}"
|
|
19
|
-
label="${args.label}"
|
|
89
|
+
checked="${ifDefined(args.checked)}"
|
|
90
|
+
disabled="${ifDefined(args.disabled)}"
|
|
91
|
+
color="${ifDefined(args.color)}"
|
|
92
|
+
label="${ifDefined(args.label)}"
|
|
20
93
|
name="${ifDefined(args.name)}"
|
|
21
|
-
value="${args.value}"
|
|
22
|
-
off="${args.off}"
|
|
23
|
-
on="${args.on}"
|
|
24
|
-
has-left-label="${args['has-left-label']}"
|
|
25
|
-
is-spaced="${args['is-spaced']}"
|
|
94
|
+
value="${ifDefined(args.value)}"
|
|
95
|
+
off="${ifDefined(args.off)}"
|
|
96
|
+
on="${ifDefined(args.on)}"
|
|
97
|
+
has-left-label="${ifDefined(args['has-left-label'])}"
|
|
98
|
+
is-spaced="${ifDefined(args['is-spaced'])}"
|
|
99
|
+
switch-id="${ifDefined(args['switch-id'])}"
|
|
26
100
|
@roadChange=${event => args.roadChange(event.detail)}
|
|
27
|
-
style="--switch-lever-width: ${args['--switch-lever-width']}"
|
|
28
101
|
></road-switch>
|
|
29
102
|
`;
|
|
30
|
-
Playground.args = {
|
|
31
|
-
checked: false,
|
|
32
|
-
color: 'secondary',
|
|
33
|
-
disabled: false,
|
|
34
|
-
'has-left-label': false,
|
|
35
|
-
'is-spaced': false,
|
|
36
|
-
label: 'Label',
|
|
37
|
-
value: 'on',
|
|
38
|
-
off: 'no',
|
|
39
|
-
on: 'yes',
|
|
40
|
-
'--switch-lever-width': '4.5rem',
|
|
41
|
-
};
|
|
42
|
-
Playground.argTypes = {
|
|
43
|
-
checked: {
|
|
44
|
-
control: 'boolean',
|
|
45
|
-
},
|
|
46
|
-
disabled: {
|
|
47
|
-
control: 'boolean',
|
|
48
|
-
},
|
|
49
|
-
label: {
|
|
50
|
-
control: 'text',
|
|
51
|
-
},
|
|
52
|
-
name: {
|
|
53
|
-
control: 'text',
|
|
54
|
-
},
|
|
55
|
-
value: {
|
|
56
|
-
control: 'text',
|
|
57
|
-
},
|
|
58
|
-
off: {
|
|
59
|
-
control: 'text',
|
|
60
|
-
},
|
|
61
|
-
on: {
|
|
62
|
-
control: 'text',
|
|
63
|
-
},
|
|
64
|
-
color: {
|
|
65
|
-
options: ['secondary', 'info', 'success', 'danger', 'warning'],
|
|
66
|
-
control: {
|
|
67
|
-
type: 'radio',
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
'has-left-label': {
|
|
71
|
-
control: 'boolean',
|
|
72
|
-
},
|
|
73
|
-
'is-spaced': {
|
|
74
|
-
control: 'boolean',
|
|
75
|
-
},
|
|
76
|
-
'--switch-lever-width': {
|
|
77
|
-
control: 'text',
|
|
78
|
-
},
|
|
79
|
-
roadChange: {
|
|
80
|
-
action: 'roadChange',
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export const Default = () => html`
|
|
85
|
-
<road-switch label="Label"></road-switch>
|
|
86
|
-
`;
|
|
87
|
-
|
|
88
|
-
export const Checked = () => html`
|
|
89
|
-
<road-switch label="Label" checked></road-switch>
|
|
90
|
-
`;
|
|
91
103
|
|
|
92
|
-
export const
|
|
93
|
-
<road-switch label="Label" color="info" checked></road-switch>
|
|
94
|
-
<road-switch label="Label" color="success" checked></road-switch>
|
|
95
|
-
<road-switch label="Label" color="warning" checked></road-switch>
|
|
96
|
-
<road-switch label="Label" color="danger" checked></road-switch>
|
|
97
|
-
`;
|
|
104
|
+
export const Playground = Template.bind({});
|
|
98
105
|
|
|
99
|
-
export const
|
|
100
|
-
|
|
106
|
+
export const Checked = Template.bind({});
|
|
107
|
+
Checked.args = {
|
|
108
|
+
checked: true,
|
|
109
|
+
};
|
|
101
110
|
|
|
102
|
-
|
|
103
|
-
|
|
111
|
+
export const Inverse = Template.bind({});
|
|
112
|
+
Inverse.args = {
|
|
113
|
+
'has-left-label': true,
|
|
114
|
+
'is-spaced': true,
|
|
115
|
+
};
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* Tab button
|
|
3
3
|
*
|
|
4
4
|
* Index
|
|
5
|
-
* -
|
|
6
|
-
* -
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
5
|
+
* - Button
|
|
6
|
+
* - Native
|
|
7
|
+
* - Underline
|
|
8
|
+
* - Inner
|
|
9
|
+
* - Icon
|
|
10
|
+
* - Label
|
|
10
11
|
*
|
|
11
12
|
*/
|
|
12
13
|
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
*/
|
|
22
23
|
|
|
23
24
|
|
|
24
|
-
/*
|
|
25
|
+
/* BUTTON
|
|
25
26
|
-------------------- */
|
|
26
27
|
|
|
27
28
|
:host {
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
|
|
71
|
-
/*
|
|
72
|
+
/* NATIVE
|
|
72
73
|
-------------------- */
|
|
73
74
|
|
|
74
75
|
.button-native {
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
/*
|
|
112
|
+
/* UNDERLINE
|
|
112
113
|
-------------------- */
|
|
113
114
|
|
|
114
115
|
.button-native::after {
|
|
@@ -125,7 +126,7 @@
|
|
|
125
126
|
transform-origin: center;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
|
-
/*
|
|
129
|
+
/* INNER
|
|
129
130
|
-------------------- */
|
|
130
131
|
|
|
131
132
|
.button-inner {
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
height: 100%;
|
|
140
141
|
}
|
|
141
142
|
|
|
142
|
-
/*
|
|
143
|
+
/* ICON
|
|
143
144
|
-------------------- */
|
|
144
145
|
|
|
145
146
|
:host ::slotted(road-icon) {
|
|
@@ -154,7 +155,7 @@
|
|
|
154
155
|
flex-direction: column;
|
|
155
156
|
}
|
|
156
157
|
|
|
157
|
-
/*
|
|
158
|
+
/* LABEL
|
|
158
159
|
-------------------- */
|
|
159
160
|
|
|
160
161
|
:host(.tab-layout-icon-top) ::slotted(road-label) {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, h } from '@stencil/core';
|
|
2
2
|
/**
|
|
3
3
|
* @slot - Content of table, it should be an html table (https://developer.mozilla.org/fr/docs/Web/HTML/Element/table).
|
|
4
4
|
*/
|
|
5
5
|
export class Table {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(
|
|
8
|
-
h("slot", null)));
|
|
7
|
+
return (h("slot", null));
|
|
9
8
|
}
|
|
10
9
|
static get is() { return "road-table"; }
|
|
11
10
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { html } from 'lit-html';
|
|
2
|
+
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
title: 'Layout/Table',
|
|
5
6
|
component: 'road-table',
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
argTypes: {
|
|
8
|
+
' ': {
|
|
9
|
+
control: 'text',
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
args: {
|
|
13
|
+
' ': `<table class="table">
|
|
11
14
|
<thead>
|
|
12
15
|
<tr>
|
|
13
16
|
<th scope="col">Title</th>
|
|
@@ -37,6 +40,12 @@ export const Default = () => html`
|
|
|
37
40
|
<td>Cell</td>
|
|
38
41
|
</tr>
|
|
39
42
|
</tbody>
|
|
40
|
-
</table
|
|
43
|
+
</table>`,
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const Playground = (args) => html`
|
|
48
|
+
<road-table>
|
|
49
|
+
${unsafeHTML(args[' '])}
|
|
41
50
|
</road-table>
|
|
42
51
|
`;
|
|
@@ -139,8 +139,8 @@ export class Tabs {
|
|
|
139
139
|
"signature": "(tab: string | HTMLRoadTabElement) => Promise<boolean>",
|
|
140
140
|
"parameters": [{
|
|
141
141
|
"tags": [{
|
|
142
|
-
"
|
|
143
|
-
"
|
|
142
|
+
"name": "param",
|
|
143
|
+
"text": "tab The tab instance to select. If passed a string, it should be the value of the tab's `tab` property."
|
|
144
144
|
}],
|
|
145
145
|
"text": "The tab instance to select. If passed a string, it should be the value of the tab's `tab` property."
|
|
146
146
|
}],
|
|
@@ -167,8 +167,8 @@ export class Tabs {
|
|
|
167
167
|
"signature": "(tab: string | HTMLRoadTabElement) => Promise<HTMLRoadTabElement | undefined>",
|
|
168
168
|
"parameters": [{
|
|
169
169
|
"tags": [{
|
|
170
|
-
"
|
|
171
|
-
"
|
|
170
|
+
"name": "param",
|
|
171
|
+
"text": "tab The tab instance to select. If passed a string, it should be the value of the tab's `tab` property."
|
|
172
172
|
}],
|
|
173
173
|
"text": "The tab instance to select. If passed a string, it should be the value of the tab's `tab` property."
|
|
174
174
|
}],
|