@roadtrip/components 2.25.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-04553107.js → app-79994847.js} +1 -1
- package/dist/cjs/{css-shim-cf2d8057.js → css-shim-9a05bb86.js} +1 -1
- package/dist/cjs/{dom-ba87b185.js → dom-417ccd20.js} +1 -1
- package/dist/cjs/{index-d47fa3c0.js → index-9b63596c.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- 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 +1 -1
- package/dist/cjs/road-avatar.cjs.entry.js +1 -1
- package/dist/cjs/road-badge_11.cjs.entry.js +12 -4
- package/dist/cjs/road-card.cjs.entry.js +1 -1
- 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 +3 -3
- package/dist/cjs/road-dialog.cjs.entry.js +1 -1
- package/dist/cjs/road-dropdown.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/road-input.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/road-progress.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 +1 -1
- package/dist/cjs/road-rating.cjs.entry.js +1 -1
- package/dist/cjs/road-select-filter.cjs.entry.js +44 -47
- 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-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 +1 -1
- 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 +1 -1
- package/dist/cjs/road-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/roadtrip.cjs.js +4 -4
- package/dist/cjs/{shadow-css-7fb0b43f.js → shadow-css-432b27e3.js} +1 -1
- package/dist/cjs/{utils-ade59127.js → utils-90171b88.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.css +6 -6
- 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.stories.js +51 -45
- package/dist/collection/components/autocomplete/autocomplete.stories.js +50 -18
- package/dist/collection/components/avatar/avatar.stories.js +39 -14
- package/dist/collection/components/badge/badge.stories.js +33 -35
- package/dist/collection/components/button/button.css +4 -4
- package/dist/collection/components/button/button.js +16 -6
- package/dist/collection/components/button/button.stories.js +161 -70
- package/dist/collection/components/carousel/carousel.css +2 -2
- package/dist/collection/components/carousel/carousel.stories.js +317 -73
- 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/collapse/collapse.js +7 -7
- package/dist/collection/components/collapse/collapse.stories.js +141 -126
- package/dist/collection/components/counter/counter.js +4 -4
- package/dist/collection/components/counter/counter.stories.js +64 -30
- package/dist/collection/components/dialog/dialog.stories.js +81 -37
- package/dist/collection/components/drawer/drawer.stories.js +187 -79
- package/dist/collection/components/dropdown/dropdown.js +2 -2
- package/dist/collection/components/dropdown/dropdown.stories.js +41 -21
- package/dist/collection/components/flap/flap.stories.js +35 -31
- package/dist/collection/components/grid/grid.stories.js +5 -5
- package/dist/collection/components/icon/icon.stories.js +88 -62
- package/dist/collection/components/icon/svg/attachment.svg +1 -0
- 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/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/input/input.css +4 -4
- package/dist/collection/components/input/input.stories.js +192 -126
- package/dist/collection/components/input-group/input-group.stories.js +44 -35
- package/dist/collection/components/item/item.css +2 -2
- package/dist/collection/components/item/item.stories.js +118 -24
- package/dist/collection/components/list/list.stories.js +48 -46
- package/dist/collection/components/modal/modal.stories.js +46 -30
- package/dist/collection/components/navbar/navbar.stories.js +40 -23
- package/dist/collection/components/plate-number/plate-number.stories.js +33 -14
- package/dist/collection/components/progress/progress.stories.js +3 -3
- package/dist/collection/components/radio/radio.stories.js +47 -30
- package/dist/collection/components/range/range.stories.js +39 -32
- package/dist/collection/components/rating/rating.stories.js +40 -31
- package/dist/collection/components/select/select.stories.js +81 -89
- package/dist/collection/components/select-filter/select-filter.stories.js +81 -100
- package/dist/collection/components/switch/switch.js +8 -8
- package/dist/collection/components/switch/switch.stories.js +94 -82
- package/dist/collection/components/table/table.stories.js +15 -6
- package/dist/collection/components/tabs/tabs.stories.js +106 -57
- package/dist/collection/components/text/text.stories.js +8 -4
- 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.js +4 -4
- package/dist/collection/components/toast/toast.stories.js +60 -46
- package/dist/collection/components/toolbar/toolbar.stories.js +50 -13
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/components/tooltip/tooltip.stories.js +78 -11
- package/dist/esm/{app-6a43d362.js → app-a32f9d74.js} +1 -1
- package/dist/esm/{css-shim-aea0f6cc.js → css-shim-17041dc7.js} +1 -1
- package/dist/esm/{dom-c7604576.js → dom-ba83fb9d.js} +1 -1
- package/dist/esm/{index-4e5ea092.js → index-0c8a0e04.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +4 -4
- 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 +1 -1
- package/dist/esm/road-avatar.entry.js +1 -1
- package/dist/esm/road-badge_11.entry.js +12 -4
- package/dist/esm/road-card.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/road-dialog.entry.js +1 -1
- package/dist/esm/road-dropdown.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/road-input.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/road-progress.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 +1 -1
- package/dist/esm/road-rating.entry.js +1 -1
- package/dist/esm/road-select-filter.entry.js +44 -47
- 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-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 +1 -1
- 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 +1 -1
- package/dist/esm/road-tooltip.entry.js +3 -3
- package/dist/esm/roadtrip.js +4 -4
- package/dist/esm/{shadow-css-83bb1d14.js → shadow-css-bfd5796e.js} +1 -1
- package/dist/esm/{utils-23aa19c1.js → utils-39de47f7.js} +1 -1
- package/dist/esm-es5/app-a32f9d74.js +1 -0
- package/dist/esm-es5/{css-shim-aea0f6cc.js → css-shim-17041dc7.js} +0 -0
- package/dist/esm-es5/{dom-c7604576.js → dom-ba83fb9d.js} +0 -0
- package/dist/esm-es5/{index-4e5ea092.js → index-0c8a0e04.js} +1 -1
- 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 -1
- 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-83bb1d14.js → shadow-css-bfd5796e.js} +0 -0
- package/dist/esm-es5/{utils-23aa19c1.js → utils-39de47f7.js} +1 -1
- package/dist/html.html-data.json +24 -21
- package/dist/icons/icons.svg +1 -1
- package/dist/icons/index.d.ts +7 -0
- package/dist/icons/index.js +7 -0
- package/dist/roadtrip/index.esm.js +1 -1
- package/dist/roadtrip/{p-05373846.system.js → p-05961c88.system.js} +1 -1
- package/dist/roadtrip/{p-b1a05290.system.entry.js → p-06a743b4.system.entry.js} +1 -1
- package/dist/roadtrip/{p-78143a79.system.entry.js → p-093a2288.system.entry.js} +1 -1
- package/dist/roadtrip/{p-88179272.entry.js → p-0a5f2c0f.entry.js} +1 -1
- package/dist/roadtrip/{p-aa63d5e9.system.entry.js → p-0b4b6077.system.entry.js} +1 -1
- package/dist/roadtrip/{p-9bbeb646.entry.js → p-0e5cecff.entry.js} +1 -1
- package/dist/roadtrip/{p-cb2bebde.entry.js → p-0f8da68b.entry.js} +1 -1
- package/dist/roadtrip/p-102d3882.system.js +1 -0
- package/dist/roadtrip/{p-79a745a7.entry.js → p-1347a27e.entry.js} +1 -1
- package/dist/roadtrip/{p-f62ebe3f.system.entry.js → p-13c18cec.system.entry.js} +1 -1
- package/dist/roadtrip/{p-d39f805b.entry.js → p-16a1b3cb.entry.js} +1 -1
- package/dist/roadtrip/{p-0205d149.entry.js → p-194b2934.entry.js} +1 -1
- package/dist/roadtrip/{p-0245b436.system.entry.js → p-19c89e8f.system.entry.js} +1 -1
- package/dist/roadtrip/p-1c0851b0.entry.js +1 -0
- package/dist/roadtrip/{p-bc8a92cf.system.entry.js → p-1ef8acf8.system.entry.js} +1 -1
- package/dist/roadtrip/{p-1d83535a.entry.js → p-24234448.entry.js} +1 -1
- package/dist/roadtrip/{p-cedaf396.system.entry.js → p-25c303d8.system.entry.js} +1 -1
- package/dist/roadtrip/{p-45b87537.system.entry.js → p-26b3aa33.system.entry.js} +1 -1
- package/dist/roadtrip/{p-e5eda362.system.entry.js → p-2740d308.system.entry.js} +1 -1
- package/dist/roadtrip/{p-d5da11ca.system.entry.js → p-287f1612.system.entry.js} +1 -1
- package/dist/roadtrip/{p-8cb74e64.js → p-33e38a04.js} +1 -1
- package/dist/roadtrip/{p-c7895d95.system.js → p-3683fe49.system.js} +0 -0
- package/dist/roadtrip/p-3cb3107f.entry.js +1 -0
- package/dist/roadtrip/{p-8374797d.entry.js → p-44576eac.entry.js} +1 -1
- package/dist/roadtrip/p-46c22946.js +1 -0
- package/dist/roadtrip/{p-41bcd21c.system.entry.js → p-4742a822.system.entry.js} +1 -1
- package/dist/roadtrip/{p-a082797b.entry.js → p-4ef3684e.entry.js} +1 -1
- package/dist/roadtrip/{p-5cfcbccd.system.entry.js → p-52f05a7c.system.entry.js} +1 -1
- package/dist/roadtrip/{p-41aa7a41.system.entry.js → p-54635daa.system.entry.js} +1 -1
- package/dist/roadtrip/{p-adfa74db.entry.js → p-5bcd3e1f.entry.js} +1 -1
- package/dist/roadtrip/{p-694eee8e.system.entry.js → p-5e8571d3.system.entry.js} +1 -1
- package/dist/roadtrip/p-6195c41f.system.entry.js +1 -0
- package/dist/roadtrip/{p-c9b37cd7.entry.js → p-63aa411f.entry.js} +1 -1
- package/dist/roadtrip/{p-3d2cf159.entry.js → p-68af3047.entry.js} +1 -1
- package/dist/roadtrip/{p-43da88c6.system.entry.js → p-6a123e72.system.entry.js} +1 -1
- package/dist/roadtrip/{p-0626f8a2.system.entry.js → p-6cf85ea2.system.entry.js} +1 -1
- package/dist/roadtrip/{p-fe45a922.entry.js → p-6f744bd8.entry.js} +1 -1
- package/dist/roadtrip/{p-8649dccc.system.js → p-7154119b.system.js} +0 -0
- package/dist/roadtrip/{p-a1f59f11.system.entry.js → p-74218654.system.entry.js} +1 -1
- package/dist/roadtrip/{p-085aad0a.system.entry.js → p-766f8a2a.system.entry.js} +1 -1
- package/dist/roadtrip/{p-628f5836.system.entry.js → p-76885294.system.entry.js} +1 -1
- package/dist/roadtrip/{p-8b445fbd.entry.js → p-768d1a90.entry.js} +1 -1
- package/dist/roadtrip/{p-ffd2a5c1.system.entry.js → p-76f26f2b.system.entry.js} +1 -1
- package/dist/roadtrip/{p-923c9893.entry.js → p-78315356.entry.js} +1 -1
- package/dist/roadtrip/p-7b733694.js +1 -0
- package/dist/roadtrip/{p-ad3b839e.entry.js → p-7fe4f8f3.entry.js} +1 -1
- package/dist/roadtrip/{p-89fb8799.entry.js → p-82a07b27.entry.js} +1 -1
- package/dist/roadtrip/{p-6688d8f8.system.entry.js → p-835d550a.system.entry.js} +1 -1
- package/dist/roadtrip/{p-acc76968.entry.js → p-8d18ebce.entry.js} +1 -1
- package/dist/roadtrip/{p-11db7868.system.entry.js → p-8e21df57.system.entry.js} +1 -1
- package/dist/roadtrip/{p-dad9d770.entry.js → p-92300d3f.entry.js} +1 -1
- package/dist/roadtrip/{p-8067c254.system.entry.js → p-93345613.system.entry.js} +1 -1
- package/dist/roadtrip/{p-9846103f.entry.js → p-93ccfda6.entry.js} +1 -1
- package/dist/roadtrip/{p-356163fb.js → p-93dab753.js} +0 -0
- package/dist/roadtrip/{p-39dd9c7f.entry.js → p-9567d161.entry.js} +1 -1
- package/dist/roadtrip/{p-a671df87.entry.js → p-9a1a293c.entry.js} +1 -1
- package/dist/roadtrip/p-9a36bd11.system.entry.js +1 -0
- package/dist/roadtrip/{p-be0b7289.entry.js → p-9dd72bfa.entry.js} +1 -1
- package/dist/roadtrip/{p-25ea233f.system.entry.js → p-a1168bd5.system.entry.js} +1 -1
- package/dist/roadtrip/{p-2cf6206e.system.entry.js → p-a1628953.system.entry.js} +1 -1
- package/dist/roadtrip/p-a3bc0e5b.entry.js +1 -0
- package/dist/roadtrip/{p-3c7147c6.system.entry.js → p-a467913d.system.entry.js} +1 -1
- package/dist/roadtrip/{p-a567cedb.entry.js → p-a61e04a1.entry.js} +1 -1
- package/dist/roadtrip/{p-85aa4543.system.entry.js → p-a64c67ad.system.entry.js} +1 -1
- package/dist/roadtrip/{p-06049c44.entry.js → p-a7dc1c0c.entry.js} +1 -1
- package/dist/roadtrip/{p-8fc0f477.system.entry.js → p-a87e8b19.system.entry.js} +1 -1
- package/dist/roadtrip/{p-f95a155f.entry.js → p-a9c74737.entry.js} +1 -1
- package/dist/roadtrip/{p-ad4a83f1.js → p-ac0761c3.js} +0 -0
- package/dist/roadtrip/{p-b862fe1a.system.js → p-ad92df4f.system.js} +1 -1
- package/dist/roadtrip/{p-d0a42614.entry.js → p-adbaa790.entry.js} +1 -1
- package/dist/roadtrip/{p-84578822.system.entry.js → p-b0ec7122.system.entry.js} +1 -1
- package/dist/roadtrip/{p-17ed8237.entry.js → p-b0ed748a.entry.js} +1 -1
- package/dist/roadtrip/{p-36a7c233.system.js → p-b205281e.system.js} +1 -1
- package/dist/roadtrip/{p-a6827ec2.entry.js → p-b501c4b2.entry.js} +1 -1
- package/dist/roadtrip/{p-b6ea7ba9.system.entry.js → p-b591a3f7.system.entry.js} +1 -1
- package/dist/roadtrip/{p-c873409a.system.entry.js → p-b6e60fca.system.entry.js} +1 -1
- package/dist/roadtrip/{p-ffacdd19.entry.js → p-bba29599.entry.js} +1 -1
- package/dist/roadtrip/{p-d3e3af9e.system.entry.js → p-bd2a89d4.system.entry.js} +1 -1
- package/dist/roadtrip/{p-f907849c.system.entry.js → p-c0429d42.system.entry.js} +1 -1
- package/dist/roadtrip/{p-f10872aa.entry.js → p-ced4c451.entry.js} +1 -1
- package/dist/roadtrip/{p-9b04e0cb.system.entry.js → p-cf4b48af.system.entry.js} +1 -1
- package/dist/roadtrip/p-d5607a82.system.entry.js +1 -0
- package/dist/roadtrip/{p-790067ad.system.entry.js → p-d861032d.system.entry.js} +1 -1
- package/dist/roadtrip/{p-f6d6d227.entry.js → p-dcfc236e.entry.js} +1 -1
- package/dist/roadtrip/{p-13b46f63.system.entry.js → p-de1a3a53.system.entry.js} +1 -1
- package/dist/roadtrip/{p-3e56faf1.entry.js → p-e4b0578a.entry.js} +1 -1
- package/dist/roadtrip/{p-f0704f07.system.entry.js → p-e56b3c0f.system.entry.js} +1 -1
- package/dist/roadtrip/{p-0bc3262d.entry.js → p-e5756d79.entry.js} +1 -1
- package/dist/roadtrip/{p-82d3347b.entry.js → p-e70b2a21.entry.js} +1 -1
- package/dist/roadtrip/{p-2d8ba6be.entry.js → p-e9a6f1fb.entry.js} +1 -1
- package/dist/roadtrip/{p-388a7f61.system.entry.js → p-eaf8ddaf.system.entry.js} +1 -1
- package/dist/roadtrip/{p-e719a34e.entry.js → p-ed2dbf57.entry.js} +1 -1
- package/dist/roadtrip/{p-72b3db6d.system.js → p-efa19d38.system.js} +0 -0
- package/dist/roadtrip/{p-9233dfbe.entry.js → p-f0ec3a64.entry.js} +1 -1
- package/dist/roadtrip/{p-8a9626cc.entry.js → p-f22c63b7.entry.js} +1 -1
- package/dist/roadtrip/p-f2593f4b.system.entry.js +1 -0
- package/dist/roadtrip/{p-2b0d3888.system.js → p-f33e4ac5.system.js} +1 -1
- package/dist/roadtrip/{p-112e8d3f.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/attachment.svg +1 -0
- package/dist/roadtrip/svg/check-list-color.svg +1 -0
- package/dist/roadtrip/svg/check-list.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/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 +1 -1
- 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 +53 -53
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/icons/icons.svg +1 -1
- package/icons/index.d.ts +7 -0
- package/icons/index.js +7 -0
- package/package.json +7 -6
- package/dist/esm-es5/app-6a43d362.js +0 -1
- package/dist/roadtrip/p-10cc8504.system.entry.js +0 -1
- package/dist/roadtrip/p-55c19c46.system.entry.js +0 -1
- package/dist/roadtrip/p-70d0fb28.entry.js +0 -1
- package/dist/roadtrip/p-95dd1ee4.system.entry.js +0 -1
- package/dist/roadtrip/p-9d3921a8.system.js +0 -1
- package/dist/roadtrip/p-c6b70e6f.js +0 -1
- package/dist/roadtrip/p-c94f70de.entry.js +0 -1
- package/dist/roadtrip/p-d11931f0.js +0 -1
- package/dist/roadtrip/p-da3ea4e5.entry.js +0 -1
- package/dist/roadtrip/p-fe70fb94.system.entry.js +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
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: 'Navigation/Tabs',
|
|
5
6
|
component: 'road-tabs',
|
|
6
7
|
subcomponents: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
'road-tab-bar': 'road-tab-bar',
|
|
9
|
+
'road-tab-button': 'road-tab-button',
|
|
10
|
+
'road-tab': 'road-tab',
|
|
10
11
|
},
|
|
11
12
|
parameters: {
|
|
12
13
|
actions: {
|
|
@@ -15,13 +16,73 @@ export default {
|
|
|
15
16
|
backgrounds: {
|
|
16
17
|
default: 'grey',
|
|
17
18
|
},
|
|
18
|
-
|
|
19
|
+
},
|
|
20
|
+
argTypes: {
|
|
21
|
+
top: {
|
|
22
|
+
control: 'text',
|
|
23
|
+
},
|
|
24
|
+
' ': {
|
|
25
|
+
control: 'text',
|
|
26
|
+
},
|
|
27
|
+
roadTabsDidChange: {
|
|
28
|
+
control: {
|
|
29
|
+
type: null,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
roadTabsWillChange: {
|
|
33
|
+
control: {
|
|
34
|
+
type: null,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
getSelected : {
|
|
38
|
+
description: 'Get the currently selected tab.',
|
|
39
|
+
table: {
|
|
40
|
+
category: 'methods',
|
|
41
|
+
type: {
|
|
42
|
+
summary: 'getSelected() => Promise<string | undefined>',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
defaultValue: {
|
|
46
|
+
summary: null,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
getTab : {
|
|
50
|
+
description: 'Get a specific tab by the value of its `tab` property or an element reference.',
|
|
51
|
+
table: {
|
|
52
|
+
category: 'methods',
|
|
53
|
+
type: {
|
|
54
|
+
summary: 'getTab(tab: string | HTMLRoadTabElement) => Promise<HTMLRoadTabElement | undefined>',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
defaultValue: {
|
|
58
|
+
summary: null,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
select : {
|
|
62
|
+
description: 'Select a tab by the value of its `tab` property or an element reference.',
|
|
63
|
+
table: {
|
|
64
|
+
category: 'methods',
|
|
65
|
+
type: {
|
|
66
|
+
summary: 'select(tab: string | HTMLRoadTabElement) => Promise<boolean>',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
defaultValue: {
|
|
70
|
+
summary: null,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
19
73
|
},
|
|
20
74
|
};
|
|
21
75
|
|
|
22
|
-
|
|
76
|
+
const Template = (args) => html`
|
|
23
77
|
<road-tabs>
|
|
24
|
-
|
|
78
|
+
${unsafeHTML(args.top)}
|
|
79
|
+
${unsafeHTML(args[' '])}
|
|
80
|
+
</road-tabs>
|
|
81
|
+
`;
|
|
82
|
+
|
|
83
|
+
export const Playground = Template.bind({});
|
|
84
|
+
Playground.args = {
|
|
85
|
+
top: `<road-tab-bar slot="top" selected-tab="tab-description">
|
|
25
86
|
<road-tab-button tab="tab-description">
|
|
26
87
|
<road-label>Description</road-label>
|
|
27
88
|
</road-tab-button>
|
|
@@ -29,21 +90,19 @@ export const Default = () => html`
|
|
|
29
90
|
<road-tab-button tab="tab-services">
|
|
30
91
|
<road-label>Service</road-label>
|
|
31
92
|
</road-tab-button>
|
|
32
|
-
</road-tab-bar
|
|
33
|
-
|
|
34
|
-
<road-tab tab="tab-description">
|
|
93
|
+
</road-tab-bar>`,
|
|
94
|
+
' ': `<road-tab tab="tab-description">
|
|
35
95
|
Description
|
|
36
96
|
</road-tab>
|
|
37
97
|
|
|
38
98
|
<road-tab tab="tab-services">
|
|
39
99
|
Services
|
|
40
|
-
</road-tab
|
|
41
|
-
|
|
42
|
-
`;
|
|
100
|
+
</road-tab>`,
|
|
101
|
+
};
|
|
43
102
|
|
|
44
|
-
export const Scrollable = ()
|
|
45
|
-
|
|
46
|
-
|
|
103
|
+
export const Scrollable = Template.bind({});
|
|
104
|
+
Scrollable.args = {
|
|
105
|
+
top: `<road-tab-bar slot="top" selected-tab="tab-description">
|
|
47
106
|
<road-tab-button tab="tab-description">
|
|
48
107
|
<road-label>Description</road-label>
|
|
49
108
|
</road-tab-button>
|
|
@@ -59,9 +118,8 @@ export const Scrollable = () => html`
|
|
|
59
118
|
<road-tab-button tab="tab-reviews">
|
|
60
119
|
<road-label>Reviews</road-label>
|
|
61
120
|
</road-tab-button>
|
|
62
|
-
</road-tab-bar
|
|
63
|
-
|
|
64
|
-
<road-tab tab="tab-description">
|
|
121
|
+
</road-tab-bar>`,
|
|
122
|
+
' ': `<road-tab tab="tab-description">
|
|
65
123
|
Description
|
|
66
124
|
</road-tab>
|
|
67
125
|
|
|
@@ -75,13 +133,12 @@ export const Scrollable = () => html`
|
|
|
75
133
|
|
|
76
134
|
<road-tab tab="tab-reviews">
|
|
77
135
|
Reviews
|
|
78
|
-
</road-tab
|
|
79
|
-
|
|
80
|
-
`;
|
|
136
|
+
</road-tab>`,
|
|
137
|
+
};
|
|
81
138
|
|
|
82
|
-
export const Center = ()
|
|
83
|
-
|
|
84
|
-
|
|
139
|
+
export const Center = Template.bind({});
|
|
140
|
+
Center.args = {
|
|
141
|
+
top: `<road-tab-bar slot="top" center="true">
|
|
85
142
|
<road-tab-button tab="tab-list">
|
|
86
143
|
<road-label>List</road-label>
|
|
87
144
|
</road-tab-button>
|
|
@@ -89,21 +146,19 @@ export const Center = () => html`
|
|
|
89
146
|
<road-tab-button tab="tab-map">
|
|
90
147
|
<road-label>Map</road-label>
|
|
91
148
|
</road-tab-button>
|
|
92
|
-
</road-tab-bar
|
|
93
|
-
|
|
94
|
-
<road-tab tab="tab-list">
|
|
149
|
+
</road-tab-bar>`,
|
|
150
|
+
' ': `<road-tab tab="tab-list">
|
|
95
151
|
List
|
|
96
152
|
</road-tab>
|
|
97
153
|
|
|
98
154
|
<road-tab tab="tab-map">
|
|
99
155
|
Map
|
|
100
|
-
</road-tab
|
|
101
|
-
|
|
102
|
-
`;
|
|
156
|
+
</road-tab>`,
|
|
157
|
+
};
|
|
103
158
|
|
|
104
|
-
export const Expand = ()
|
|
105
|
-
|
|
106
|
-
|
|
159
|
+
export const Expand = Template.bind({});
|
|
160
|
+
Expand.args = {
|
|
161
|
+
top: `<road-tab-bar slot="top" expand="true">
|
|
107
162
|
<road-tab-button tab="tab-list">
|
|
108
163
|
<road-label>List</road-label>
|
|
109
164
|
</road-tab-button>
|
|
@@ -111,21 +166,19 @@ export const Expand = () => html`
|
|
|
111
166
|
<road-tab-button tab="tab-map">
|
|
112
167
|
<road-label>Map</road-label>
|
|
113
168
|
</road-tab-button>
|
|
114
|
-
</road-tab-bar
|
|
115
|
-
|
|
116
|
-
<road-tab tab="tab-list">
|
|
169
|
+
</road-tab-bar>`,
|
|
170
|
+
' ': `<road-tab tab="tab-list">
|
|
117
171
|
List
|
|
118
172
|
</road-tab>
|
|
119
173
|
|
|
120
174
|
<road-tab tab="tab-map">
|
|
121
175
|
Map
|
|
122
|
-
</road-tab
|
|
123
|
-
|
|
124
|
-
`;
|
|
176
|
+
</road-tab>`,
|
|
177
|
+
};
|
|
125
178
|
|
|
126
|
-
export const LeadingIcon = ()
|
|
127
|
-
|
|
128
|
-
|
|
179
|
+
export const LeadingIcon = Template.bind({});
|
|
180
|
+
LeadingIcon.args = {
|
|
181
|
+
top: `<road-tab-bar slot="top" expand="true">
|
|
129
182
|
<road-tab-button tab="tab-list">
|
|
130
183
|
<road-icon name="garage"></road-icon>
|
|
131
184
|
<road-label>List</road-label>
|
|
@@ -135,21 +188,19 @@ export const LeadingIcon = () => html`
|
|
|
135
188
|
<road-icon name="location-pin-all"></road-icon>
|
|
136
189
|
<road-label>Map</road-label>
|
|
137
190
|
</road-tab-button>
|
|
138
|
-
</road-tab-bar
|
|
139
|
-
|
|
140
|
-
<road-tab tab="tab-list">
|
|
191
|
+
</road-tab-bar>`,
|
|
192
|
+
' ': `<road-tab tab="tab-list">
|
|
141
193
|
List
|
|
142
194
|
</road-tab>
|
|
143
195
|
|
|
144
196
|
<road-tab tab="tab-map">
|
|
145
197
|
Map
|
|
146
|
-
</road-tab
|
|
147
|
-
|
|
148
|
-
`;
|
|
198
|
+
</road-tab>`,
|
|
199
|
+
};
|
|
149
200
|
|
|
150
|
-
export const TopIcon = ()
|
|
151
|
-
|
|
152
|
-
|
|
201
|
+
export const TopIcon = Template.bind({});
|
|
202
|
+
TopIcon.args = {
|
|
203
|
+
top: `<road-tab-bar slot="top" expand="true">
|
|
153
204
|
<road-tab-button tab="tab-shops" layout="icon-top">
|
|
154
205
|
<road-icon name="shop"></road-icon>
|
|
155
206
|
<road-label>Shops</road-label>
|
|
@@ -164,9 +215,8 @@ export const TopIcon = () => html`
|
|
|
164
215
|
<road-icon name="factory"></road-icon>
|
|
165
216
|
<road-label>Factories</road-label>
|
|
166
217
|
</road-tab-button>
|
|
167
|
-
</road-tab-bar
|
|
168
|
-
|
|
169
|
-
<road-tab tab="tab-shops">
|
|
218
|
+
</road-tab-bar>`,
|
|
219
|
+
' ': `<road-tab tab="tab-shops">
|
|
170
220
|
Shops
|
|
171
221
|
</road-tab>
|
|
172
222
|
|
|
@@ -176,6 +226,5 @@ export const TopIcon = () => html`
|
|
|
176
226
|
|
|
177
227
|
<road-tab tab="tab-factories">
|
|
178
228
|
Factories
|
|
179
|
-
</road-tab
|
|
180
|
-
|
|
181
|
-
`;
|
|
229
|
+
</road-tab>`,
|
|
230
|
+
};
|
|
@@ -5,13 +5,14 @@ export default {
|
|
|
5
5
|
component: 'road-text',
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
export const Playground = (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export const Playground = (args) => html`
|
|
9
|
+
<road-text color="${args.color}">
|
|
10
|
+
${args[' ']}
|
|
11
|
+
</road-text>
|
|
12
12
|
`;
|
|
13
13
|
Playground.args = {
|
|
14
14
|
color: 'info',
|
|
15
|
+
' ': 'Text',
|
|
15
16
|
};
|
|
16
17
|
Playground.argTypes = {
|
|
17
18
|
color: {
|
|
@@ -20,4 +21,7 @@ Playground.argTypes = {
|
|
|
20
21
|
type: 'radio',
|
|
21
22
|
},
|
|
22
23
|
},
|
|
24
|
+
' ': {
|
|
25
|
+
control: 'text',
|
|
26
|
+
},
|
|
23
27
|
};
|
|
@@ -2,7 +2,7 @@ import { Component, Event, Host, Prop, Watch, h } from '@stencil/core';
|
|
|
2
2
|
export class Textarea {
|
|
3
3
|
constructor() {
|
|
4
4
|
/**
|
|
5
|
-
* The id of
|
|
5
|
+
* The id of textarea
|
|
6
6
|
*/
|
|
7
7
|
this.textareaId = `road-textarea-${textareaIds++}`;
|
|
8
8
|
/**
|
|
@@ -10,11 +10,11 @@ export class Textarea {
|
|
|
10
10
|
*/
|
|
11
11
|
this.autocapitalize = 'none';
|
|
12
12
|
/**
|
|
13
|
-
* This Boolean attribute lets you specify that a form control should have
|
|
13
|
+
* This Boolean attribute lets you specify that a form control should have focus when the page loads.
|
|
14
14
|
*/
|
|
15
15
|
this.autofocus = false;
|
|
16
16
|
/**
|
|
17
|
-
* If `true`, the user cannot interact with the
|
|
17
|
+
* If `true`, the user cannot interact with the textarea.
|
|
18
18
|
*/
|
|
19
19
|
this.disabled = false;
|
|
20
20
|
/**
|
|
@@ -34,7 +34,7 @@ export class Textarea {
|
|
|
34
34
|
*/
|
|
35
35
|
this.spellcheck = false;
|
|
36
36
|
/**
|
|
37
|
-
* The value of the
|
|
37
|
+
* The value of the textarea.
|
|
38
38
|
*/
|
|
39
39
|
this.value = '';
|
|
40
40
|
/**
|
|
@@ -56,7 +56,7 @@ export class Textarea {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Update the native
|
|
59
|
+
* Update the native textarea element when the value changes
|
|
60
60
|
*/
|
|
61
61
|
valueChanged() {
|
|
62
62
|
this.roadChange.emit({ value: this.value });
|
|
@@ -95,7 +95,7 @@ export class Textarea {
|
|
|
95
95
|
"optional": false,
|
|
96
96
|
"docs": {
|
|
97
97
|
"tags": [],
|
|
98
|
-
"text": "The id of
|
|
98
|
+
"text": "The id of textarea"
|
|
99
99
|
},
|
|
100
100
|
"attribute": "textarea-id",
|
|
101
101
|
"reflect": false,
|
|
@@ -131,7 +131,7 @@ export class Textarea {
|
|
|
131
131
|
"optional": false,
|
|
132
132
|
"docs": {
|
|
133
133
|
"tags": [],
|
|
134
|
-
"text": "This Boolean attribute lets you specify that a form control should have
|
|
134
|
+
"text": "This Boolean attribute lets you specify that a form control should have focus when the page loads."
|
|
135
135
|
},
|
|
136
136
|
"attribute": "autofocus",
|
|
137
137
|
"reflect": false,
|
|
@@ -149,7 +149,7 @@ export class Textarea {
|
|
|
149
149
|
"optional": false,
|
|
150
150
|
"docs": {
|
|
151
151
|
"tags": [],
|
|
152
|
-
"text": "If `true`, the user cannot interact with the
|
|
152
|
+
"text": "If `true`, the user cannot interact with the textarea."
|
|
153
153
|
},
|
|
154
154
|
"attribute": "disabled",
|
|
155
155
|
"reflect": false,
|
|
@@ -253,7 +253,7 @@ export class Textarea {
|
|
|
253
253
|
"optional": true,
|
|
254
254
|
"docs": {
|
|
255
255
|
"tags": [],
|
|
256
|
-
"text": "Instructional text that shows before the
|
|
256
|
+
"text": "Instructional text that shows before the textarea has a value."
|
|
257
257
|
},
|
|
258
258
|
"attribute": "placeholder",
|
|
259
259
|
"reflect": false
|
|
@@ -375,7 +375,7 @@ export class Textarea {
|
|
|
375
375
|
"optional": true,
|
|
376
376
|
"docs": {
|
|
377
377
|
"tags": [],
|
|
378
|
-
"text": "The value of the
|
|
378
|
+
"text": "The value of the textarea."
|
|
379
379
|
},
|
|
380
380
|
"attribute": "value",
|
|
381
381
|
"reflect": false,
|
|
@@ -459,7 +459,7 @@ export class Textarea {
|
|
|
459
459
|
"composed": true,
|
|
460
460
|
"docs": {
|
|
461
461
|
"tags": [],
|
|
462
|
-
"text": "Emitted when the
|
|
462
|
+
"text": "Emitted when the textarea loses focus."
|
|
463
463
|
},
|
|
464
464
|
"complexType": {
|
|
465
465
|
"original": "void",
|
|
@@ -474,7 +474,7 @@ export class Textarea {
|
|
|
474
474
|
"composed": true,
|
|
475
475
|
"docs": {
|
|
476
476
|
"tags": [],
|
|
477
|
-
"text": "Emitted when the
|
|
477
|
+
"text": "Emitted when the textarea has focus."
|
|
478
478
|
},
|
|
479
479
|
"complexType": {
|
|
480
480
|
"original": "void",
|
|
@@ -9,133 +9,155 @@ export default {
|
|
|
9
9
|
handles: ['roadBlur', 'roadFocus'],
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
|
+
argTypes: {
|
|
13
|
+
disabled: {
|
|
14
|
+
control: 'boolean',
|
|
15
|
+
},
|
|
16
|
+
readonly: {
|
|
17
|
+
control: 'boolean',
|
|
18
|
+
},
|
|
19
|
+
required: {
|
|
20
|
+
control: 'boolean',
|
|
21
|
+
},
|
|
22
|
+
autofocus: {
|
|
23
|
+
control: 'boolean',
|
|
24
|
+
},
|
|
25
|
+
spellcheck: {
|
|
26
|
+
control: 'boolean',
|
|
27
|
+
},
|
|
28
|
+
error: {
|
|
29
|
+
control: 'text',
|
|
30
|
+
},
|
|
31
|
+
label: {
|
|
32
|
+
control: 'text',
|
|
33
|
+
},
|
|
34
|
+
name: {
|
|
35
|
+
control: 'text',
|
|
36
|
+
},
|
|
37
|
+
placeholder: {
|
|
38
|
+
control: 'text',
|
|
39
|
+
},
|
|
40
|
+
minlength: {
|
|
41
|
+
control: 'number',
|
|
42
|
+
},
|
|
43
|
+
maxlength: {
|
|
44
|
+
control: 'number',
|
|
45
|
+
},
|
|
46
|
+
value: {
|
|
47
|
+
control: 'text',
|
|
48
|
+
},
|
|
49
|
+
autocapitalize: {
|
|
50
|
+
options: ['on', 'off'],
|
|
51
|
+
control: {
|
|
52
|
+
type: 'select',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
enterkeyhint: {
|
|
56
|
+
options: ['enter', 'done', 'go', 'next', 'previous', 'search', 'send'],
|
|
57
|
+
control: {
|
|
58
|
+
type: 'select',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
inputmode: {
|
|
62
|
+
options: ['none', 'text', 'tel', 'url', 'email', 'numeric', 'decimal', 'search'],
|
|
63
|
+
control: {
|
|
64
|
+
type: 'select',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
rows: {
|
|
68
|
+
control: {
|
|
69
|
+
type: 'number',
|
|
70
|
+
min: 0,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
cols: {
|
|
74
|
+
control: {
|
|
75
|
+
type: 'number',
|
|
76
|
+
min: 0,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
'textarea-id' : {
|
|
80
|
+
control: 'text',
|
|
81
|
+
},
|
|
82
|
+
wrap: {
|
|
83
|
+
options: ['hard', 'off', 'soft'],
|
|
84
|
+
control: {
|
|
85
|
+
type: 'select',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
roadBlur: {
|
|
89
|
+
control: {
|
|
90
|
+
type: null,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
roadFocus: {
|
|
94
|
+
control: {
|
|
95
|
+
type: null,
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
roadChange: {
|
|
99
|
+
action: 'roadChange',
|
|
100
|
+
control: {
|
|
101
|
+
type: null,
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
roadInput: {
|
|
105
|
+
action: 'roadInput',
|
|
106
|
+
control: {
|
|
107
|
+
type: null,
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
args: {
|
|
112
|
+
label: 'Label',
|
|
113
|
+
disabled: null,
|
|
114
|
+
readonly: null,
|
|
115
|
+
required: null,
|
|
116
|
+
autofocus: null,
|
|
117
|
+
spellcheck: null,
|
|
118
|
+
rows: 5,
|
|
119
|
+
},
|
|
12
120
|
};
|
|
13
121
|
|
|
14
|
-
|
|
122
|
+
const Template = (args) => html`
|
|
15
123
|
<road-textarea
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
124
|
+
textarea-id="${ifDefined(args['textarea-id'])}"
|
|
125
|
+
label="${ifDefined(args.label)}"
|
|
126
|
+
disabled="${ifDefined(args.disabled)}"
|
|
127
|
+
required="${ifDefined(args.required)}"
|
|
128
|
+
autofocus="${ifDefined(args.autofocus)}"
|
|
20
129
|
error="${ifDefined(args.error)}"
|
|
21
130
|
maxlength="${ifDefined(args.maxlength)}"
|
|
22
131
|
minlength="${ifDefined(args.minlength)}"
|
|
23
132
|
value="${ifDefined(args.value)}"
|
|
24
|
-
spellcheck="${args.spellcheck}"
|
|
133
|
+
spellcheck="${ifDefined(args.spellcheck)}"
|
|
25
134
|
placeholder="${ifDefined(args.placeholder)}"
|
|
26
|
-
autocapitalize="${args.autocapitalize}"
|
|
135
|
+
autocapitalize="${ifDefined(args.autocapitalize)}"
|
|
27
136
|
enterkeyhint="${ifDefined(args.enterkeyhint)}"
|
|
28
137
|
inputmode="${ifDefined(args.inputmode)}"
|
|
29
|
-
rows="${args.rows}"
|
|
138
|
+
rows="${ifDefined(args.rows)}"
|
|
30
139
|
cols="${ifDefined(args.cols)}"
|
|
31
140
|
wrap="${ifDefined(args.wrap)}"
|
|
32
|
-
readonly="${args.readonly}"
|
|
141
|
+
readonly="${ifDefined(args.readonly)}"
|
|
33
142
|
@roadChange=${event => args.roadChange(event.detail.value)}
|
|
34
143
|
@roadInput=${event => args.roadInput(event.target.value)}
|
|
35
144
|
></road-textarea>
|
|
36
145
|
`;
|
|
37
|
-
Playground.args = {
|
|
38
|
-
label: 'Label',
|
|
39
|
-
disabled: false,
|
|
40
|
-
readonly: false,
|
|
41
|
-
required: false,
|
|
42
|
-
autofocus: false,
|
|
43
|
-
spellcheck: false,
|
|
44
|
-
rows: 5,
|
|
45
|
-
};
|
|
46
|
-
Playground.argTypes = {
|
|
47
|
-
disabled: {
|
|
48
|
-
control: 'boolean',
|
|
49
|
-
},
|
|
50
|
-
readonly: {
|
|
51
|
-
control: 'boolean',
|
|
52
|
-
},
|
|
53
|
-
required: {
|
|
54
|
-
control: 'boolean',
|
|
55
|
-
},
|
|
56
|
-
autofocus: {
|
|
57
|
-
control: 'boolean',
|
|
58
|
-
},
|
|
59
|
-
spellcheck: {
|
|
60
|
-
control: 'boolean',
|
|
61
|
-
},
|
|
62
|
-
error: {
|
|
63
|
-
control: 'text',
|
|
64
|
-
},
|
|
65
|
-
label: {
|
|
66
|
-
control: 'text',
|
|
67
|
-
},
|
|
68
|
-
name: {
|
|
69
|
-
control: 'text',
|
|
70
|
-
},
|
|
71
|
-
placeholder: {
|
|
72
|
-
control: 'text',
|
|
73
|
-
},
|
|
74
|
-
minlength: {
|
|
75
|
-
control: 'number',
|
|
76
|
-
},
|
|
77
|
-
maxlength: {
|
|
78
|
-
control: 'number',
|
|
79
|
-
},
|
|
80
|
-
value: {
|
|
81
|
-
control: 'number',
|
|
82
|
-
},
|
|
83
|
-
autocapitalize: {
|
|
84
|
-
options: ['on', 'off'],
|
|
85
|
-
control: {
|
|
86
|
-
type: 'select',
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
enterkeyhint: {
|
|
90
|
-
options: ['enter', 'done', 'go', 'next', 'previous', 'search', 'send'],
|
|
91
|
-
control: {
|
|
92
|
-
type: 'select',
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
inputmode: {
|
|
96
|
-
options: ['none', 'text', 'tel', 'url', 'email', 'numeric', 'decimal', 'search'],
|
|
97
|
-
control: {
|
|
98
|
-
type: 'select',
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
rows: {
|
|
102
|
-
control: {
|
|
103
|
-
type: 'number',
|
|
104
|
-
min: 0,
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
cols: {
|
|
108
|
-
control: {
|
|
109
|
-
type: 'number',
|
|
110
|
-
min: 0,
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
wrap: {
|
|
114
|
-
options: ['hard', 'off', 'soft'],
|
|
115
|
-
control: {
|
|
116
|
-
type: 'select',
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
roadChange: {
|
|
120
|
-
action: 'roadChange',
|
|
121
|
-
},
|
|
122
|
-
roadInput: {
|
|
123
|
-
action: 'roadInput',
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
146
|
|
|
127
|
-
export const
|
|
128
|
-
<road-textarea label="Label" rows="5"></road-textarea>
|
|
129
|
-
`;
|
|
147
|
+
export const Playground = Template.bind({});
|
|
130
148
|
|
|
131
|
-
export const WithValue = ()
|
|
132
|
-
|
|
133
|
-
|
|
149
|
+
export const WithValue = Template.bind({});
|
|
150
|
+
WithValue.args = {
|
|
151
|
+
value: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec pretium pharetra semper. Fusce lacus metus, facilisis sit amet lacus ut, facilisis dapibus urna.',
|
|
152
|
+
};
|
|
134
153
|
|
|
135
|
-
export const Disabled = ()
|
|
136
|
-
|
|
137
|
-
|
|
154
|
+
export const Disabled = Template.bind({});
|
|
155
|
+
Disabled.args = {
|
|
156
|
+
disabled: true,
|
|
157
|
+
};
|
|
138
158
|
|
|
139
|
-
export const Error = ()
|
|
140
|
-
|
|
141
|
-
|
|
159
|
+
export const Error = Template.bind({});
|
|
160
|
+
Error.args = {
|
|
161
|
+
error: 'This field is required',
|
|
162
|
+
required: true,
|
|
163
|
+
};
|
|
@@ -3,11 +3,11 @@ import { navigationClose, alertDanger, alertInfo, alertSuccess, alertWarning } f
|
|
|
3
3
|
export class Toast {
|
|
4
4
|
constructor() {
|
|
5
5
|
/**
|
|
6
|
-
* Set open propertie to true to
|
|
6
|
+
* Set `open` propertie to `true` to open the toast
|
|
7
7
|
*/
|
|
8
8
|
this.isOpen = false;
|
|
9
9
|
/**
|
|
10
|
-
* Set the color of toast. e.g. info, success, warning, danger
|
|
10
|
+
* Set the color of the toast. e.g. info, success, warning, danger
|
|
11
11
|
*/
|
|
12
12
|
this.color = 'info';
|
|
13
13
|
/**
|
|
@@ -107,7 +107,7 @@ export class Toast {
|
|
|
107
107
|
"optional": false,
|
|
108
108
|
"docs": {
|
|
109
109
|
"tags": [],
|
|
110
|
-
"text": "Set open propertie to true to
|
|
110
|
+
"text": "Set `open` propertie to `true` to open the toast"
|
|
111
111
|
},
|
|
112
112
|
"attribute": "is-open",
|
|
113
113
|
"reflect": false,
|
|
@@ -130,7 +130,7 @@ export class Toast {
|
|
|
130
130
|
"optional": false,
|
|
131
131
|
"docs": {
|
|
132
132
|
"tags": [],
|
|
133
|
-
"text": "Set the color of toast. e.g. info, success, warning, danger"
|
|
133
|
+
"text": "Set the color of the toast. e.g. info, success, warning, danger"
|
|
134
134
|
},
|
|
135
135
|
"attribute": "color",
|
|
136
136
|
"reflect": false,
|