@roadtrip/components 3.32.4 → 3.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/road-badge_14.cjs.entry.js +17 -15
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/road-phone-number-input.cjs.entry.js +26 -61
- package/dist/cjs/road-phone-number-input.cjs.entry.js.map +1 -1
- 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-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 +2 -2
- 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 +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-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/accordion/accordion.stories.js +38 -4
- package/dist/collection/components/alert/alert.stories.js +7 -0
- package/dist/collection/components/asset/asset.stories.js +6 -0
- package/dist/collection/components/autocomplete/autocomplete.stories.js +43 -47
- package/dist/collection/components/avatar/avatar.stories.js +6 -0
- package/dist/collection/components/badge/badge.stories.js +6 -0
- package/dist/collection/components/banner/banner.stories.js +33 -3
- package/dist/collection/components/button/button.stories.js +58 -67
- package/dist/collection/components/button-floating/button-floating.stories.js +32 -23
- package/dist/collection/components/card/card.stories.js +25 -15
- package/dist/collection/components/carousel/carousel.stories.js +72 -280
- package/dist/collection/components/checkbox/checkbox.stories.js +54 -33
- package/dist/collection/components/chip/chip.stories.js +32 -47
- package/dist/collection/components/collapse/collapse.stories.js +88 -78
- package/dist/collection/components/content-card/content-card.stories.js +30 -11
- package/dist/collection/components/counter/counter.stories.js +40 -11
- package/dist/collection/components/dialog/dialog.stories.js +37 -51
- package/dist/collection/components/drawer/drawer.css +9 -0
- package/dist/collection/components/drawer/drawer.js +34 -12
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer/drawer.stories.js +70 -134
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.stories.js +69 -53
- package/dist/collection/components/duration/duration.stories.js +49 -45
- package/dist/collection/components/flap/flap.stories.js +22 -10
- package/dist/collection/components/input/input.stories.js +33 -0
- package/dist/collection/components/item/item.stories.js +25 -0
- package/dist/collection/components/list/list.stories.js +2 -0
- package/dist/collection/components/modal/modal.stories.js +14 -0
- package/dist/collection/components/navbar/navbar.stories.js +3 -0
- package/dist/collection/components/navbar-v2/navbar-v2.stories.js +4 -0
- package/dist/collection/components/phone-number-input/constants.js +3 -0
- package/dist/collection/components/phone-number-input/constants.js.map +1 -0
- package/dist/collection/components/phone-number-input/phone-number-input.css +198 -129
- package/dist/collection/components/phone-number-input/phone-number-input.js +23 -63
- package/dist/collection/components/phone-number-input/phone-number-input.js.map +1 -1
- package/dist/collection/components/phone-number-input/phone-number-input.stories.js +15 -1
- package/dist/collection/components/plate-number/plate-number.js +2 -2
- package/dist/collection/components/plate-number/plate-number.stories.js +13 -0
- package/dist/collection/components/profil-dropdown/profil-dropdown.js +1 -1
- package/dist/collection/components/profil-dropdown/profil-dropdown.stories.js +8 -0
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/progress/progress.stories.js +12 -0
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.js +1 -1
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.stories.js +8 -0
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.js +1 -1
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.stories.js +1 -0
- 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/progress-tracker.stories.js +1 -0
- 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/radio.stories.js +13 -0
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +2 -2
- package/dist/collection/components/range/range.stories.js +11 -0
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/rating/rating.stories.js +7 -0
- 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/segmented-buttons/segmented-buttons.stories.js +2 -0
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/select/select.stories.js +13 -0
- package/dist/collection/components/select-filter/select-filter.js +2 -2
- package/dist/collection/components/select-filter/select-filter.stories.js +5 -0
- package/dist/collection/components/skeleton/skeleton.js +1 -1
- package/dist/collection/components/skeleton/skeleton.stories.js +2 -0
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/spinner/spinner.stories.js +2 -0
- 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/table/table.stories.js +1 -0
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tabs/tabs.stories.js +2 -0
- package/dist/collection/components/tag/tag.js +1 -1
- package/dist/collection/components/tag/tag.stories.js +3 -0
- package/dist/collection/components/text/text.js +1 -1
- package/dist/collection/components/text/text.stories.js +2 -0
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/textarea/textarea.stories.js +26 -0
- package/dist/collection/components/toast/toast.js +1 -1
- package/dist/collection/components/toast/toast.stories.js +6 -0
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/toggle/toggle.stories.js +14 -0
- package/dist/collection/components/toolbar/toolbar.js +1 -1
- package/dist/collection/components/toolbar/toolbar.stories.js +6 -0
- 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/toolbar-v2/toolbar-v2.stories.js +5 -0
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/collection/components/tooltip/tooltip.stories.js +11 -0
- package/dist/collection/components/utilities/text.stories.js +2 -0
- package/dist/collection/fonts/Muli-Black.woff +0 -0
- package/dist/collection/fonts/Muli-Black.woff2 +0 -0
- package/dist/collection/fonts/Muli-SemiBold.woff +0 -0
- package/dist/collection/fonts/Muli-SemiBold.woff2 +0 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/road-badge_14.entry.js +17 -15
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-dropdown.entry.js +1 -1
- package/dist/esm/road-dropdown.entry.js.map +1 -1
- package/dist/esm/road-phone-number-input.entry.js +26 -61
- package/dist/esm/road-phone-number-input.entry.js.map +1 -1
- 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-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 +2 -2
- 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 +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-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 +4 -0
- package/dist/roadtrip/fonts/Muli-Black.woff +0 -0
- package/dist/roadtrip/fonts/Muli-Black.woff2 +0 -0
- package/dist/roadtrip/fonts/Muli-SemiBold.woff +0 -0
- package/dist/roadtrip/fonts/Muli-SemiBold.woff2 +0 -0
- package/dist/roadtrip/{p-c1e2aa67.entry.js → p-04913d58.entry.js} +2 -2
- package/dist/roadtrip/{p-494aab48.entry.js → p-06fbd2ea.entry.js} +2 -2
- package/dist/roadtrip/{p-2a4a0928.entry.js → p-167cd2fc.entry.js} +2 -2
- package/dist/roadtrip/p-215afdbd.entry.js +2 -0
- package/dist/roadtrip/{p-8f7375bc.entry.js → p-2e049c8e.entry.js} +2 -2
- package/dist/roadtrip/{p-8ca23318.entry.js → p-37430583.entry.js} +2 -2
- package/dist/roadtrip/{p-9fce16aa.entry.js → p-3dcaa947.entry.js} +2 -2
- package/dist/roadtrip/{p-1e61ca1f.entry.js → p-3f5dff96.entry.js} +2 -2
- package/dist/roadtrip/{p-f8817c0e.entry.js → p-449affa6.entry.js} +2 -2
- package/dist/roadtrip/p-4675ea6d.entry.js +2 -0
- package/dist/roadtrip/{p-4a47999a.entry.js → p-5fea6a74.entry.js} +2 -2
- package/dist/roadtrip/{p-f9754547.entry.js → p-60bd73ad.entry.js} +2 -2
- package/dist/roadtrip/p-65f9bd9c.entry.js +2 -0
- package/dist/roadtrip/{p-c68fc795.entry.js → p-6c617506.entry.js} +2 -2
- package/dist/roadtrip/{p-4e779fd6.entry.js → p-6ff3b37c.entry.js} +2 -2
- package/dist/roadtrip/p-85b1e505.entry.js +2 -0
- package/dist/roadtrip/{p-a990a8b6.entry.js → p-862c1831.entry.js} +2 -2
- package/dist/roadtrip/{p-a990a8b6.entry.js.map → p-862c1831.entry.js.map} +1 -1
- package/dist/roadtrip/p-8b04fc62.entry.js +2 -0
- package/dist/roadtrip/{p-e2a00f9c.entry.js → p-913b72de.entry.js} +3 -3
- package/dist/roadtrip/p-913b72de.entry.js.map +1 -0
- package/dist/roadtrip/{p-87c1ff76.entry.js → p-99a6faae.entry.js} +2 -2
- package/dist/roadtrip/{p-bba18327.entry.js → p-b5fa8c5a.entry.js} +2 -2
- package/dist/roadtrip/{p-db243855.entry.js → p-b8c5d292.entry.js} +2 -2
- package/dist/roadtrip/{p-d68e64a8.entry.js → p-c28e7add.entry.js} +2 -2
- package/dist/roadtrip/{p-10e65612.entry.js → p-c47ccbf2.entry.js} +2 -2
- package/dist/roadtrip/{p-c3ef32ef.entry.js → p-c6824205.entry.js} +2 -2
- package/dist/roadtrip/{p-833c1e78.entry.js → p-cfd2919e.entry.js} +2 -2
- package/dist/roadtrip/{p-a0a95c0a.entry.js → p-d80e7563.entry.js} +2 -2
- package/dist/roadtrip/p-db77c354.entry.js +2 -0
- package/dist/roadtrip/{p-5fab1bc3.entry.js.map → p-db77c354.entry.js.map} +1 -1
- package/dist/roadtrip/{p-0cacf829.entry.js → p-ddfe088f.entry.js} +2 -2
- package/dist/roadtrip/p-ddfe088f.entry.js.map +1 -0
- package/dist/roadtrip/{p-4bbc889b.entry.js → p-e6c4c576.entry.js} +2 -2
- package/dist/roadtrip/{p-01be5517.entry.js → p-e6e9882b.entry.js} +2 -2
- package/dist/roadtrip/{p-5a6fbd7f.entry.js → p-e75ec60f.entry.js} +2 -2
- package/dist/roadtrip/{p-edbbe884.entry.js → p-ea1a175d.entry.js} +2 -2
- package/dist/roadtrip/{p-2903bdc0.entry.js → p-eac313e4.entry.js} +2 -2
- package/dist/roadtrip/{p-fb26ed7e.entry.js → p-f1b53143.entry.js} +2 -2
- package/dist/roadtrip/{p-b18cda16.entry.js → p-fd3c58b6.entry.js} +2 -2
- package/dist/roadtrip/{p-32845e72.entry.js → p-fe40ab3d.entry.js} +2 -2
- package/dist/roadtrip/roadtrip.css +1 -1
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/roadtrip.esm.js.map +1 -1
- package/dist/types/components/drawer/drawer.d.ts +4 -1
- package/dist/types/components/phone-number-input/constants.d.ts +1 -0
- package/dist/types/components/phone-number-input/phone-number-input.d.ts +3 -9
- package/dist/types/components-react.d.ts +4 -4
- package/dist/types/components.d.ts +16 -0
- package/hydrate/index.js +305 -318
- package/hydrate/index.mjs +305 -318
- package/package.json +1 -1
- package/dist/roadtrip/p-0cacf829.entry.js.map +0 -1
- package/dist/roadtrip/p-427bd935.entry.js +0 -2
- package/dist/roadtrip/p-5fab1bc3.entry.js +0 -2
- package/dist/roadtrip/p-78b51033.entry.js +0 -2
- package/dist/roadtrip/p-9737182c.entry.js +0 -2
- package/dist/roadtrip/p-a925ff64.entry.js +0 -2
- package/dist/roadtrip/p-e2a00f9c.entry.js.map +0 -1
- package/dist/roadtrip/p-ee92b78d.entry.js +0 -2
- /package/dist/roadtrip/{p-c1e2aa67.entry.js.map → p-04913d58.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-494aab48.entry.js.map → p-06fbd2ea.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2a4a0928.entry.js.map → p-167cd2fc.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-427bd935.entry.js.map → p-215afdbd.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-8f7375bc.entry.js.map → p-2e049c8e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-8ca23318.entry.js.map → p-37430583.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9fce16aa.entry.js.map → p-3dcaa947.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1e61ca1f.entry.js.map → p-3f5dff96.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f8817c0e.entry.js.map → p-449affa6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ee92b78d.entry.js.map → p-4675ea6d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4a47999a.entry.js.map → p-5fea6a74.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f9754547.entry.js.map → p-60bd73ad.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a925ff64.entry.js.map → p-65f9bd9c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c68fc795.entry.js.map → p-6c617506.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4e779fd6.entry.js.map → p-6ff3b37c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9737182c.entry.js.map → p-85b1e505.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-78b51033.entry.js.map → p-8b04fc62.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-87c1ff76.entry.js.map → p-99a6faae.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-bba18327.entry.js.map → p-b5fa8c5a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-db243855.entry.js.map → p-b8c5d292.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d68e64a8.entry.js.map → p-c28e7add.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-10e65612.entry.js.map → p-c47ccbf2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c3ef32ef.entry.js.map → p-c6824205.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-833c1e78.entry.js.map → p-cfd2919e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a0a95c0a.entry.js.map → p-d80e7563.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4bbc889b.entry.js.map → p-e6c4c576.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-01be5517.entry.js.map → p-e6e9882b.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-5a6fbd7f.entry.js.map → p-e75ec60f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-edbbe884.entry.js.map → p-ea1a175d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2903bdc0.entry.js.map → p-eac313e4.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-fb26ed7e.entry.js.map → p-f1b53143.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b18cda16.entry.js.map → p-fd3c58b6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-32845e72.entry.js.map → p-fe40ab3d.entry.js.map} +0 -0
|
@@ -13,142 +13,133 @@ export default {
|
|
|
13
13
|
argTypes: {
|
|
14
14
|
color: {
|
|
15
15
|
options: ['default', 'primary', 'secondary', 'ghost', 'destructive'],
|
|
16
|
-
control: {
|
|
17
|
-
|
|
16
|
+
control: { type: 'select' },
|
|
17
|
+
description: 'Defines the button color.',
|
|
18
|
+
table: {
|
|
19
|
+
defaultValue: { summary: 'default' },
|
|
18
20
|
},
|
|
19
21
|
},
|
|
20
22
|
'button-type': {
|
|
21
23
|
options: ['button', 'reset', 'submit'],
|
|
22
|
-
control: {
|
|
23
|
-
|
|
24
|
-
},
|
|
24
|
+
control: { type: 'select' },
|
|
25
|
+
description: 'Specifies the type of the button.',
|
|
25
26
|
},
|
|
26
27
|
disabled: {
|
|
27
28
|
control: 'boolean',
|
|
29
|
+
description: 'Disables the button when set to `true`.',
|
|
28
30
|
},
|
|
29
31
|
'icon-only': {
|
|
30
32
|
control: 'boolean',
|
|
31
|
-
|
|
32
|
-
download: {
|
|
33
|
-
control: {
|
|
34
|
-
type: null,
|
|
35
|
-
},
|
|
33
|
+
description: 'If `true`, the button will only contain an icon without text.',
|
|
36
34
|
},
|
|
37
35
|
expand: {
|
|
38
36
|
control: 'boolean',
|
|
39
|
-
|
|
40
|
-
href: {
|
|
41
|
-
control: {
|
|
42
|
-
type: null,
|
|
43
|
-
},
|
|
37
|
+
description: 'Expands the button to the full width of its container.',
|
|
44
38
|
},
|
|
45
39
|
outline: {
|
|
46
40
|
control: 'boolean',
|
|
47
|
-
|
|
48
|
-
rel: {
|
|
49
|
-
control: {
|
|
50
|
-
type: null,
|
|
51
|
-
},
|
|
41
|
+
description: 'Applies an outline style to the button.',
|
|
52
42
|
},
|
|
53
43
|
size: {
|
|
54
44
|
options: ['sm', 'md', 'lg', 'xl'],
|
|
55
|
-
control: {
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
target: {
|
|
60
|
-
control: {
|
|
61
|
-
type: null,
|
|
62
|
-
},
|
|
45
|
+
control: { type: 'select' },
|
|
46
|
+
description: 'Defines the size of the button.',
|
|
63
47
|
},
|
|
64
48
|
start: {
|
|
65
49
|
control: 'text',
|
|
50
|
+
description: 'Slot for an icon or content at the **start** of the button.',
|
|
66
51
|
},
|
|
67
52
|
' ': {
|
|
68
53
|
control: 'text',
|
|
54
|
+
description: 'Label or main content inside the button.',
|
|
69
55
|
},
|
|
70
56
|
end: {
|
|
71
57
|
control: 'text',
|
|
58
|
+
description: 'Slot for an icon or content at the **end** of the button.',
|
|
72
59
|
},
|
|
73
60
|
roadblur: {
|
|
74
|
-
|
|
75
|
-
|
|
61
|
+
action: 'roadblur',
|
|
62
|
+
description: 'Triggered when the button loses focus.',
|
|
63
|
+
table: {
|
|
64
|
+
category: 'Events',
|
|
65
|
+
type: { summary: 'CustomEvent' },
|
|
76
66
|
},
|
|
77
67
|
},
|
|
78
68
|
roadfocus: {
|
|
79
|
-
|
|
80
|
-
|
|
69
|
+
action: 'roadfocus',
|
|
70
|
+
description: 'Triggered when the button gains focus.',
|
|
71
|
+
table: {
|
|
72
|
+
category: 'Events',
|
|
73
|
+
type: { summary: 'CustomEvent' },
|
|
81
74
|
},
|
|
82
75
|
},
|
|
76
|
+
// 🔹 Ajout des CSS Variables comme contrôles
|
|
83
77
|
'--border-radius': {
|
|
78
|
+
control: 'text',
|
|
79
|
+
description: 'Defines the border radius of the button.',
|
|
84
80
|
table: {
|
|
85
81
|
defaultValue: { summary: '0.25rem' },
|
|
86
82
|
},
|
|
87
|
-
control: {
|
|
88
|
-
type: null,
|
|
89
|
-
},
|
|
90
83
|
},
|
|
91
84
|
'--font-size': {
|
|
85
|
+
control: 'text',
|
|
86
|
+
description: 'Sets the font size of the button text.',
|
|
92
87
|
table: {
|
|
93
88
|
defaultValue: { summary: '1rem' },
|
|
94
89
|
},
|
|
95
|
-
control: {
|
|
96
|
-
type: null,
|
|
97
|
-
},
|
|
98
90
|
},
|
|
99
91
|
'--margin-bottom': {
|
|
92
|
+
control: 'text',
|
|
93
|
+
description: 'Defines the margin bottom of the button.',
|
|
100
94
|
table: {
|
|
101
95
|
defaultValue: { summary: '1rem' },
|
|
102
96
|
},
|
|
103
|
-
control: {
|
|
104
|
-
type: null,
|
|
105
|
-
},
|
|
106
97
|
},
|
|
107
98
|
'--padding-start': {
|
|
99
|
+
control: 'text',
|
|
100
|
+
description: 'Sets the padding on the **left** side of the button.',
|
|
108
101
|
table: {
|
|
109
102
|
defaultValue: { summary: '1rem' },
|
|
110
103
|
},
|
|
111
|
-
control: {
|
|
112
|
-
type: null,
|
|
113
|
-
},
|
|
114
104
|
},
|
|
115
105
|
'--padding-end': {
|
|
106
|
+
control: 'text',
|
|
107
|
+
description: 'Sets the padding on the **right** side of the button.',
|
|
116
108
|
table: {
|
|
117
109
|
defaultValue: { summary: '1rem' },
|
|
118
110
|
},
|
|
119
|
-
control: {
|
|
120
|
-
type: null,
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
native: {
|
|
124
|
-
control: {
|
|
125
|
-
type: null,
|
|
126
|
-
},
|
|
127
111
|
},
|
|
128
112
|
},
|
|
129
113
|
args: {
|
|
130
|
-
'button-type':
|
|
131
|
-
'icon-only':
|
|
132
|
-
color:
|
|
133
|
-
disabled:
|
|
134
|
-
expand:
|
|
135
|
-
outline:
|
|
136
|
-
size:
|
|
137
|
-
start:
|
|
138
|
-
' ':
|
|
139
|
-
end:
|
|
114
|
+
'button-type': 'button',
|
|
115
|
+
'icon-only': false,
|
|
116
|
+
color: 'default',
|
|
117
|
+
disabled: false,
|
|
118
|
+
expand: false,
|
|
119
|
+
outline: false,
|
|
120
|
+
size: 'md',
|
|
121
|
+
start: '',
|
|
122
|
+
' ': 'Label',
|
|
123
|
+
end: '',
|
|
140
124
|
},
|
|
141
125
|
};
|
|
142
126
|
|
|
143
127
|
const Template = (args) => html`
|
|
144
128
|
<road-button
|
|
145
129
|
button-type="${ifDefined(args['button-type'])}"
|
|
146
|
-
icon-only="${
|
|
130
|
+
?icon-only="${args['icon-only']}"
|
|
147
131
|
color="${ifDefined(args.color)}"
|
|
148
|
-
disabled="${
|
|
149
|
-
expand="${
|
|
150
|
-
outline="${
|
|
132
|
+
?disabled="${args.disabled}"
|
|
133
|
+
?expand="${args.expand}"
|
|
134
|
+
?outline="${args.outline}"
|
|
151
135
|
size="${ifDefined(args.size)}"
|
|
136
|
+
style="
|
|
137
|
+
--border-radius: ${ifDefined(args['--border-radius'])};
|
|
138
|
+
--font-size: ${ifDefined(args['--font-size'])};
|
|
139
|
+
--margin-bottom: ${ifDefined(args['--margin-bottom'])};
|
|
140
|
+
--padding-start: ${ifDefined(args['--padding-start'])};
|
|
141
|
+
--padding-end: ${ifDefined(args['--padding-end'])};
|
|
142
|
+
"
|
|
152
143
|
>
|
|
153
144
|
${unsafeHTML(args.start)}
|
|
154
145
|
${unsafeHTML(args[' '])}
|
|
@@ -198,7 +189,7 @@ Destructive.args = {
|
|
|
198
189
|
};
|
|
199
190
|
|
|
200
191
|
export const DestructiveOutline = Template.bind({});
|
|
201
|
-
|
|
192
|
+
DestructiveOutline.args = {
|
|
202
193
|
color: 'destructive',
|
|
203
194
|
outline: true,
|
|
204
195
|
};
|
|
@@ -3,7 +3,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
3
3
|
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title: 'Forms/Button
|
|
6
|
+
title: 'Forms/Button Floating',
|
|
7
7
|
component: 'road-button-floating',
|
|
8
8
|
parameters: {
|
|
9
9
|
actions: {
|
|
@@ -12,57 +12,66 @@ export default {
|
|
|
12
12
|
},
|
|
13
13
|
argTypes: {
|
|
14
14
|
href: {
|
|
15
|
-
control: {
|
|
16
|
-
|
|
17
|
-
},
|
|
15
|
+
control: { type: null },
|
|
16
|
+
description: 'Defines the hyperlink reference (only applicable if the button acts as a link).',
|
|
18
17
|
},
|
|
19
18
|
position: {
|
|
20
19
|
options: ['left', 'right', 'center'],
|
|
21
|
-
control: {
|
|
22
|
-
|
|
20
|
+
control: { type: 'radio' },
|
|
21
|
+
description: 'Defines the floating button position.',
|
|
22
|
+
table: {
|
|
23
|
+
defaultValue: { summary: 'right' },
|
|
23
24
|
},
|
|
24
25
|
},
|
|
25
26
|
rel: {
|
|
26
|
-
control: {
|
|
27
|
-
|
|
28
|
-
},
|
|
27
|
+
control: { type: null },
|
|
28
|
+
description: 'Specifies the relationship between the current document and the linked document.',
|
|
29
29
|
},
|
|
30
30
|
target: {
|
|
31
|
-
control: {
|
|
32
|
-
|
|
33
|
-
},
|
|
31
|
+
control: { type: null },
|
|
32
|
+
description: 'Specifies where to open the linked document (only applicable if `href` is provided).',
|
|
34
33
|
},
|
|
35
34
|
start: {
|
|
36
35
|
control: 'text',
|
|
36
|
+
description: 'Slot for an icon or content at the **start** of the button.',
|
|
37
37
|
},
|
|
38
38
|
' ': {
|
|
39
39
|
control: 'text',
|
|
40
|
+
description: 'Label or main content inside the button.',
|
|
40
41
|
},
|
|
41
42
|
roadblur: {
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
action: 'roadblur',
|
|
44
|
+
description: 'Triggered when the button loses focus.',
|
|
45
|
+
table: {
|
|
46
|
+
category: 'Events',
|
|
47
|
+
type: { summary: 'CustomEvent' },
|
|
44
48
|
},
|
|
45
49
|
},
|
|
46
50
|
roadfocus: {
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
action: 'roadfocus',
|
|
52
|
+
description: 'Triggered when the button gains focus.',
|
|
53
|
+
table: {
|
|
54
|
+
category: 'Events',
|
|
55
|
+
type: { summary: 'CustomEvent' },
|
|
49
56
|
},
|
|
50
57
|
},
|
|
51
58
|
native: {
|
|
52
|
-
control: {
|
|
53
|
-
|
|
54
|
-
},
|
|
59
|
+
control: { type: null },
|
|
60
|
+
description: 'Internal native button element reference (if applicable).',
|
|
55
61
|
},
|
|
56
62
|
},
|
|
57
63
|
args: {
|
|
58
|
-
start:
|
|
64
|
+
start: '',
|
|
59
65
|
position: 'right',
|
|
60
|
-
' ':
|
|
66
|
+
' ': 'Label',
|
|
61
67
|
},
|
|
62
68
|
};
|
|
63
69
|
|
|
64
70
|
const Template = (args) => html`
|
|
65
|
-
<road-button-floating
|
|
71
|
+
<road-button-floating
|
|
72
|
+
position="${ifDefined(args.position)}"
|
|
73
|
+
tabindex="0"
|
|
74
|
+
>
|
|
66
75
|
${unsafeHTML(args.start)}
|
|
67
76
|
${unsafeHTML(args[' '])}
|
|
68
77
|
</road-button-floating>
|
|
@@ -72,4 +81,4 @@ export const Playground = Template.bind({});
|
|
|
72
81
|
Playground.args = {
|
|
73
82
|
start: `<road-icon slot="start" name="shopping-cart-add" role="button"></road-icon>`,
|
|
74
83
|
' ': `Add to cart`,
|
|
75
|
-
};
|
|
84
|
+
};
|
|
@@ -15,46 +15,48 @@ export default {
|
|
|
15
15
|
argTypes: {
|
|
16
16
|
elevation: {
|
|
17
17
|
options: ['none', 'lowest', 'average'],
|
|
18
|
-
control: {
|
|
19
|
-
|
|
18
|
+
control: { type: 'select' },
|
|
19
|
+
description: 'Defines the elevation (shadow effect) of the card.',
|
|
20
|
+
table: {
|
|
21
|
+
defaultValue: { summary: 'none' },
|
|
20
22
|
},
|
|
21
23
|
},
|
|
22
24
|
},
|
|
23
25
|
args: {
|
|
24
|
-
elevation:
|
|
26
|
+
elevation: 'none',
|
|
25
27
|
},
|
|
26
28
|
};
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
const Template = (args) => html`
|
|
29
31
|
<road-grid>
|
|
30
32
|
<road-row>
|
|
31
33
|
<road-col class="col-4 col-md-3 col-lg-2">
|
|
32
|
-
<road-card button value="125" elevation="${ifDefined(args.elevation)}">
|
|
34
|
+
<road-card button value="125" elevation="${ifDefined(args.elevation)}" @roadcardclick=${args.roadcardclick}>
|
|
33
35
|
<road-label>125</road-label>
|
|
34
36
|
</road-card>
|
|
35
37
|
</road-col>
|
|
36
38
|
<road-col class="col-4 col-md-3 col-lg-2">
|
|
37
|
-
<road-card button value="135" elevation="${ifDefined(args.elevation)}">
|
|
39
|
+
<road-card button value="135" elevation="${ifDefined(args.elevation)}" @roadcardclick=${args.roadcardclick}>
|
|
38
40
|
<road-label>135</road-label>
|
|
39
41
|
</road-card>
|
|
40
42
|
</road-col>
|
|
41
43
|
<road-col class="col-4 col-md-3 col-lg-2">
|
|
42
|
-
<road-card button value="145" elevation="${ifDefined(args.elevation)}">
|
|
44
|
+
<road-card button value="145" elevation="${ifDefined(args.elevation)}" @roadcardclick=${args.roadcardclick}>
|
|
43
45
|
<road-label>145</road-label>
|
|
44
46
|
</road-card>
|
|
45
47
|
</road-col>
|
|
46
48
|
<road-col class="col-4 col-md-3 col-lg-2">
|
|
47
|
-
<road-card button value="155" elevation="${ifDefined(args.elevation)}">
|
|
49
|
+
<road-card button value="155" elevation="${ifDefined(args.elevation)}" @roadcardclick=${args.roadcardclick}>
|
|
48
50
|
<road-label>155</road-label>
|
|
49
51
|
</road-card>
|
|
50
52
|
</road-col>
|
|
51
53
|
<road-col class="col-4 col-md-3 col-lg-2">
|
|
52
|
-
<road-card button value="165" elevation="${ifDefined(args.elevation)}">
|
|
54
|
+
<road-card button value="165" elevation="${ifDefined(args.elevation)}" @roadcardclick=${args.roadcardclick}>
|
|
53
55
|
<road-label>165</road-label>
|
|
54
56
|
</road-card>
|
|
55
57
|
</road-col>
|
|
56
58
|
<road-col class="col-4 col-md-3 col-lg-2">
|
|
57
|
-
<road-card button value="175" elevation="${ifDefined(args.elevation)}">
|
|
59
|
+
<road-card button value="175" elevation="${ifDefined(args.elevation)}" @roadcardclick=${args.roadcardclick}>
|
|
58
60
|
<road-label>175</road-label>
|
|
59
61
|
</road-card>
|
|
60
62
|
</road-col>
|
|
@@ -62,29 +64,34 @@ export const Value = (args) => html`
|
|
|
62
64
|
</road-grid>
|
|
63
65
|
`;
|
|
64
66
|
|
|
65
|
-
export const
|
|
67
|
+
export const Value = Template.bind({});
|
|
68
|
+
Value.args = {
|
|
69
|
+
elevation: 'average',
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const Vehicle = (args) => html`
|
|
66
73
|
<road-grid>
|
|
67
74
|
<road-row>
|
|
68
75
|
<road-col class="col-6 col-md-4 col-lg-3">
|
|
69
|
-
<road-card button value="car" elevation="${ifDefined(args.elevation)}">
|
|
76
|
+
<road-card button value="car" elevation="${ifDefined(args.elevation)}" @roadcardclick=${args.roadcardclick}>
|
|
70
77
|
<road-icon name="vehicle-car" size="3x" role="img"></road-icon>
|
|
71
78
|
<road-label>Car</road-label>
|
|
72
79
|
</road-card>
|
|
73
80
|
</road-col>
|
|
74
81
|
<road-col class="col-6 col-md-4 col-lg-3">
|
|
75
|
-
<road-card button value="4x4" elevation="${ifDefined(args.elevation)}">
|
|
82
|
+
<road-card button value="4x4" elevation="${ifDefined(args.elevation)}" @roadcardclick=${args.roadcardclick}>
|
|
76
83
|
<road-icon name="vehicle-suv" size="3x" role="img"></road-icon>
|
|
77
84
|
<road-label>4x4</road-label>
|
|
78
85
|
</road-card>
|
|
79
86
|
</road-col>
|
|
80
87
|
<road-col class="col-6 col-md-4 col-lg-3">
|
|
81
|
-
<road-card button value="truck" elevation="${ifDefined(args.elevation)}">
|
|
88
|
+
<road-card button value="truck" elevation="${ifDefined(args.elevation)}" @roadcardclick=${args.roadcardclick}>
|
|
82
89
|
<road-icon name="vehicle-pickup-van" size="3x" role="img"></road-icon>
|
|
83
90
|
<road-label>Truck</road-label>
|
|
84
91
|
</road-card>
|
|
85
92
|
</road-col>
|
|
86
93
|
<road-col class="col-6 col-md-4 col-lg-3">
|
|
87
|
-
<road-card button value="bike" elevation="${ifDefined(args.elevation)}">
|
|
94
|
+
<road-card button value="bike" elevation="${ifDefined(args.elevation)}" @roadcardclick=${args.roadcardclick}>
|
|
88
95
|
<road-icon name="vehicle-moto" size="3x" role="img"></road-icon>
|
|
89
96
|
<road-label>Bike</road-label>
|
|
90
97
|
</road-card>
|
|
@@ -92,3 +99,6 @@ export const vehicle = (args) => html`
|
|
|
92
99
|
</road-row>
|
|
93
100
|
</road-grid>
|
|
94
101
|
`;
|
|
102
|
+
Vehicle.args = {
|
|
103
|
+
elevation: 'average',
|
|
104
|
+
};
|