@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
|
@@ -9,30 +9,44 @@ export default {
|
|
|
9
9
|
argTypes: {
|
|
10
10
|
countryData: { control: 'object' },
|
|
11
11
|
language: {
|
|
12
|
+
description: "Used to display countries with the right language",
|
|
12
13
|
control: {
|
|
13
14
|
type: 'select',
|
|
14
15
|
options: ['en', 'fr', 'es', 'pt', 'it', 'nl', 'de']
|
|
15
|
-
}
|
|
16
|
+
},
|
|
17
|
+
table: {
|
|
18
|
+
defaultValue: { summary: 'fr' },
|
|
19
|
+
},
|
|
16
20
|
},
|
|
17
21
|
required: {
|
|
22
|
+
description: "Add a star in the phone input",
|
|
18
23
|
control: 'boolean',
|
|
19
24
|
},
|
|
20
25
|
disabled: {
|
|
26
|
+
description: "Disable both fields",
|
|
21
27
|
control: 'boolean',
|
|
22
28
|
},
|
|
23
29
|
'country-code': {
|
|
30
|
+
description: "Selected country code",
|
|
24
31
|
control: 'text',
|
|
25
32
|
},
|
|
26
33
|
'code-label': {
|
|
34
|
+
description: "Country selection placeHolder",
|
|
27
35
|
control: 'text',
|
|
36
|
+
table: {
|
|
37
|
+
defaultValue: { summary: '' },
|
|
38
|
+
},
|
|
28
39
|
},
|
|
29
40
|
'phone-label': {
|
|
41
|
+
description: "Phone input placeHolder",
|
|
30
42
|
control: 'text',
|
|
31
43
|
},
|
|
32
44
|
'phone-value': {
|
|
45
|
+
description: "Value displayed in the phone input",
|
|
33
46
|
control: 'text',
|
|
34
47
|
},
|
|
35
48
|
'error-message': {
|
|
49
|
+
description: "Error message (displayed only if ther is a message)",
|
|
36
50
|
control: 'text',
|
|
37
51
|
},
|
|
38
52
|
},
|
|
@@ -92,10 +92,10 @@ export class PlateNumber {
|
|
|
92
92
|
render() {
|
|
93
93
|
const value = this.getValue();
|
|
94
94
|
const motorbikeClass = this.motorbike ? 'motorbike-plate' : '';
|
|
95
|
-
return (h("road-input-group", { key: '
|
|
95
|
+
return (h("road-input-group", { key: 'd99ec720113a121c58794385a2a697459cc4e0eb', class: `plate-number plate-number-${this.country.toLowerCase()} ${motorbikeClass}` }, h("label", { key: '559c8428a6403ee087bc219b6027b12a48c658d8', slot: "prepend", class: "input-group-prepend" }, h("div", { key: '8483940a622fb54e8bc29dfeaf3ade7aaeeb0e8c', class: "plate-number-start" }, h("road-icon", { key: 'ba60f444919f5b6221fe4d910ced4bec521e4101', class: "plate-number-icon", icon: licensePlateStarEu }), h("div", { key: '095d70b607191a292c5857559566954122c5081c', class: "plate-number-location", "aria-label": this.country, role: "img" }, this.countries
|
|
96
96
|
.filter(item => item.country === this.country)[0].letter))), this.motorbike
|
|
97
97
|
? (h("textarea", { class: "form-control plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, maxlength: "9", rows: 2, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }))
|
|
98
|
-
: (h("input", { class: "plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })), h("label", { key: '
|
|
98
|
+
: (h("input", { class: "plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })), h("label", { key: '28ce8da1e17d33750056cbbb7b62686f492b4f6d', slot: "append", class: "input-group-append" }, h("div", { key: 'a7fd028f9e8457e1b865abbe79539223d64c7087', class: "plate-number-end" }))));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "road-plate-number"; }
|
|
101
101
|
static get encapsulation() { return "scoped"; }
|
|
@@ -11,43 +11,56 @@ export default {
|
|
|
11
11
|
},
|
|
12
12
|
argTypes: {
|
|
13
13
|
country: {
|
|
14
|
+
description: "country of the plate",
|
|
14
15
|
options: ['FR', 'BE', 'IT', 'ES', 'PT', 'PL', 'AT', 'DE'],
|
|
15
16
|
control: {
|
|
16
17
|
type: 'select',
|
|
17
18
|
},
|
|
19
|
+
table: {
|
|
20
|
+
defaultValue: { summary: 'FR' },
|
|
21
|
+
},
|
|
18
22
|
},
|
|
19
23
|
disabled: {
|
|
24
|
+
description: "If `true`, the user cannot interact with the input.",
|
|
20
25
|
control: 'boolean',
|
|
21
26
|
},
|
|
22
27
|
readonly: {
|
|
28
|
+
description: "If `true`, the user cannot modify the value.",
|
|
23
29
|
control: 'boolean',
|
|
24
30
|
},
|
|
25
31
|
placeholder: {
|
|
32
|
+
description: "overwrite the default placeholder",
|
|
26
33
|
control: 'text',
|
|
27
34
|
},
|
|
28
35
|
motorbike: {
|
|
36
|
+
description: "Enable motorbike display",
|
|
29
37
|
control: 'boolean',
|
|
30
38
|
},
|
|
31
39
|
value: {
|
|
40
|
+
description: "The value of the input.",
|
|
32
41
|
control: 'text',
|
|
33
42
|
},
|
|
34
43
|
roadblur: {
|
|
44
|
+
description: "Emitted when the input loses focus.",
|
|
35
45
|
control: {
|
|
36
46
|
type: null,
|
|
37
47
|
},
|
|
38
48
|
},
|
|
39
49
|
roadfocus: {
|
|
50
|
+
description: "Emitted when the input has focus.",
|
|
40
51
|
control: {
|
|
41
52
|
type: null,
|
|
42
53
|
},
|
|
43
54
|
},
|
|
44
55
|
roadchange: {
|
|
56
|
+
description: "Emitted when the value has changed.",
|
|
45
57
|
action: 'roadchange',
|
|
46
58
|
control: {
|
|
47
59
|
type: null,
|
|
48
60
|
},
|
|
49
61
|
},
|
|
50
62
|
roadinput: {
|
|
63
|
+
description: "Emitted when a keyboard input occurred.",
|
|
51
64
|
action: 'roadinput',
|
|
52
65
|
control: {
|
|
53
66
|
type: null,
|
|
@@ -31,7 +31,7 @@ export class Dropdown {
|
|
|
31
31
|
this.isOpen = false;
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("details", { key: '
|
|
34
|
+
return (h("details", { key: '1ea3c85ea39041b51cd7b87e5e3bf8457d04d8d2', class: "dropdown", open: this.isOpen }, h("summary", { key: '31722222765df7c7fb7716f1d28c719e71e3c50b', "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, h("div", { key: 'e395e588854018e3aa01a535df994281a17e76e7', class: `d-flex` }, h("div", { key: '8bb2ba7393ad71a0fb01bfaae2626cddff73b974' }, h("road-avatar", { key: '6d05a101ce8015714a85fea57c583f8cf20e8ce4' }, h("slot", { key: 'c1a1408aa8e9eafedb2f3cb1791dcc02a2aba504', name: "avatar" }))))), h("div", { key: '31b4b8e31798cdbba1f144cd7c75417e5aed1dcc', class: `dropdown-menu` }, h("div", { key: 'daaa7e6156bd9e4cf093dcd895aabc58a5a75835', class: "profil-item" }, h("road-avatar", { key: 'efe9b628482a2f27c8224e5a836677e55aab0a53', size: "sm" }, h("slot", { key: 'b9def88d2732c0ff87353e163437f303bf921175', name: "avatarItem" })), h("div", { key: 'de3f1acfabff5c15cb409ff32c9f3d03ff80b256', class: "profil-item-info" }, h("span", { key: '01909017ffda821626024a5db9c77b5a5fa79988', class: "profil-item-info-name" }, h("slot", { key: 'e7ecab682533008f8aa41deb00a30a80ba027c09', name: "name" })), h("road-label", { key: 'e23ae331f406c69d5702055a31f8445518983fbc' }, h("slot", { key: '4ee00896125440f2f3a904516052edecc3ccaefc', name: "email" })))), h("slot", { key: '51a8603e7be8c8df634d69fe74a34845b75aff2f', name: "list" }))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "road-profil-dropdown"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,39 +7,47 @@ export default {
|
|
|
7
7
|
component: 'road-profil-dropdown',
|
|
8
8
|
argTypes: {
|
|
9
9
|
'is-open': {
|
|
10
|
+
description: "Set to `true` to open the dropdown menu and to `false` to close it.",
|
|
10
11
|
control: 'boolean',
|
|
11
12
|
},
|
|
12
13
|
' ': {
|
|
14
|
+
description: "Element how will open the dropdown when clicked",
|
|
13
15
|
control: {
|
|
14
16
|
type: null,
|
|
15
17
|
},
|
|
16
18
|
},
|
|
17
19
|
list: {
|
|
20
|
+
description: "List of item values (you can add border with lines=`full` but not on the last item)",
|
|
18
21
|
control: {
|
|
19
22
|
type: 'text',
|
|
20
23
|
},
|
|
21
24
|
},
|
|
22
25
|
avatar: {
|
|
26
|
+
description: "Content of the avatar (img or First letter) <road-img> or <road-label>.",
|
|
23
27
|
control: {
|
|
24
28
|
type: 'text',
|
|
25
29
|
},
|
|
26
30
|
},
|
|
27
31
|
avatarItem: {
|
|
32
|
+
description: "Content of the avatar item (img or First letter) <road-img> or <road-label>.",
|
|
28
33
|
control: {
|
|
29
34
|
type: 'text',
|
|
30
35
|
},
|
|
31
36
|
},
|
|
32
37
|
name: {
|
|
38
|
+
description: "Content First and Last Name.",
|
|
33
39
|
control: {
|
|
34
40
|
type: 'text',
|
|
35
41
|
},
|
|
36
42
|
},
|
|
37
43
|
email: {
|
|
44
|
+
description: "Content email.",
|
|
38
45
|
control: {
|
|
39
46
|
type: 'text',
|
|
40
47
|
},
|
|
41
48
|
},
|
|
42
49
|
'--margin-top': {
|
|
50
|
+
description: "Top margin of the menu",
|
|
43
51
|
table: {
|
|
44
52
|
defaultValue: { summary: '0.5rem' },
|
|
45
53
|
},
|
|
@@ -40,7 +40,7 @@ export class ProgressBar {
|
|
|
40
40
|
const fullwidth = this.fullwidth ? 'progress-element-info-full-width' : 'progress-element-info';
|
|
41
41
|
const light = this.light ? 'progress progress-light' : 'progress';
|
|
42
42
|
const animation = this.animation ? 'animation' : '';
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: '6c93b381f40367646f5ccb653a9062c7ac342679', class: "progress-element" }, h("div", { key: 'cb975e51bd98f03fa7d52bd3f20af7b5f8f25379', class: `${light} progress-${this.color} ${animation}` }, h("div", { key: '33b21314f01938916afaea7a58e0425b03616d06', class: "progress-bar", role: "progressbar", style: { width: `${this.value}%` }, "aria-valuenow": this.value, "aria-valuemin": "0", "aria-valuemax": "100", "aria-label": "progress bar" })), h("div", { key: '3d31e5265359ddb21a8517ccdb6408c3a0503478', class: `${fullwidth}` }, h("span", { key: '0965abaec5dc0737d04ddc05da7b4a6423fe6bb1', class: "progress-element-label" }, this.label), this.showstep && h("span", { key: '1f8b48a83db7c3d70f4a7756a43969d0782ee35a', class: "progress-element-step" }, valueRound, "/", this.numbersteps))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "road-progress"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,6 +20,7 @@ Playground.args = {
|
|
|
20
20
|
};
|
|
21
21
|
Playground.argTypes = {
|
|
22
22
|
value: {
|
|
23
|
+
description: "The value determines how much of the active bar should display.\nThe value should be between [0, 100].",
|
|
23
24
|
control: {
|
|
24
25
|
type: 'number',
|
|
25
26
|
min: '0',
|
|
@@ -27,6 +28,7 @@ Playground.argTypes = {
|
|
|
27
28
|
},
|
|
28
29
|
},
|
|
29
30
|
numbersteps: {
|
|
31
|
+
description: "The number of steps should be 4 or 5.",
|
|
30
32
|
options: ['4', '5'],
|
|
31
33
|
control: {
|
|
32
34
|
type: 'select',
|
|
@@ -35,27 +37,37 @@ Playground.argTypes = {
|
|
|
35
37
|
},
|
|
36
38
|
},
|
|
37
39
|
label: {
|
|
40
|
+
description: "Label display in progress bar",
|
|
38
41
|
control: 'text',
|
|
39
42
|
},
|
|
40
43
|
showstep: {
|
|
44
|
+
description: "Show step",
|
|
41
45
|
control: 'boolean',
|
|
42
46
|
},
|
|
43
47
|
animation: {
|
|
48
|
+
description: "Animation progress bar",
|
|
44
49
|
control: 'boolean',
|
|
45
50
|
},
|
|
46
51
|
light: {
|
|
52
|
+
description: "Light progress background",
|
|
47
53
|
control: 'boolean',
|
|
48
54
|
},
|
|
49
55
|
fullwidth: {
|
|
56
|
+
description: "Add padding if the progress is full width",
|
|
50
57
|
control: 'boolean',
|
|
51
58
|
},
|
|
52
59
|
color: {
|
|
60
|
+
description: "The color to use from your application's color palette.",
|
|
53
61
|
options: ['primary', 'secondary', 'info', 'success', 'warning', 'danger', 'rating'],
|
|
54
62
|
control: {
|
|
55
63
|
type: 'radio',
|
|
56
64
|
},
|
|
65
|
+
table: {
|
|
66
|
+
defaultValue: { summary: 'primary' },
|
|
67
|
+
},
|
|
57
68
|
},
|
|
58
69
|
'--border-radius': {
|
|
70
|
+
description: "Border radius of the progress",
|
|
59
71
|
table: {
|
|
60
72
|
defaultValue: { summary: '0.25rem' },
|
|
61
73
|
},
|
package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.js
CHANGED
|
@@ -29,7 +29,7 @@ export class Stepper {
|
|
|
29
29
|
const urlStep1 = this.urlStep1 !== undefined ? `${this.urlStep1}` : '#';
|
|
30
30
|
const urlStep2 = this.urlStep2 !== undefined ? `${this.urlStep2}` : '#';
|
|
31
31
|
const urlStep3 = this.urlStep3 !== undefined ? `${this.urlStep3}` : '#';
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '92b255c26f67f4aad1051adc570b4838064b050b' }, h("nav", { key: '44f9ff6889874b55dc5078d1571cde655afc3a6b' }, h("ul", { key: 'e6b0e5e75db170bd8bf6412ed1d6bb5f228eda4b', class: `${colorClass}` }, h("li", { key: 'f48231734646f68f91bc256cd935a13dfe5277cf', class: `${stateClass}` }, h("a", { key: '8ca3bebb5e710c5a3fbbada6ef1f6f0ad6518956', class: "progress-indicator-horizontal-link", href: `${urlStep1}` }, h("span", { key: '752b27e04ab6799c19912a193a89e8084dc82ff9', class: "progress-indicator-horizontal-icon" }, h("slot", { key: '3c25ed41f39a011e61aafec0ca65917b72dbe967', name: "progress-indicator-horizontal-icon" })), h("span", { key: '2bf09fe120b2ae4c4074a5357f5133bc22120e2c', class: "progress-indicator-horizontal-title" }, h("slot", { key: '752e16d8c3895c2ee91a222c7789431ad27e34dd', name: "progress-indicator-horizontal-title" })))), h("li", { key: '09bcfc2711dc68b5b233b0306fa7d3d2b8e753c3', class: `${stateSecondStepClass}` }, h("a", { key: '9b5c9c60abecfed752c0332696c3c509ef4d5074', class: "progress-indicator-horizontal-link", href: `${urlStep2}` }, h("span", { key: '1e3c3113967379a97597c13044493ff3693d1b4e', class: "progress-indicator-horizontal-icon" }, h("slot", { key: 'fe8312cd31ca099c690379f500f20466a3f76555', name: "progress-indicator-horizontal-icon2" })), h("span", { key: '885e16b9917fbbcc0df05c2960083cb679902d2d', class: "progress-indicator-horizontal-title" }, h("slot", { key: '0b6709b4b8390f58854d2a37528fe1b98a0b4481', name: "progress-indicator-horizontal-title2" })))), this.numberStep == 3 && h("li", { key: 'fa106837abe66d6ee557f800916b39df8efac9a7', class: `${stateThirdStepClass}` }, h("a", { key: '9607d28f066e4b22778f66d0b5657611af3b15ed', class: "progress-indicator-horizontal-link", href: `${urlStep3}` }, h("span", { key: 'ce19ae6a6b774c0d5cb8c7b91af8d03ee88400a4', class: "progress-indicator-horizontal-icon" }, h("slot", { key: 'e0a52ce61b043af9137340a5651a120f1a8ff0dd', name: "progress-indicator-horizontal-icon3" })), h("span", { key: '1c8870afc7dc2630fb58c4c2f17d4f4f9109dea6', class: "progress-indicator-horizontal-title" }, h("slot", { key: '91fb0f5283ddbe5c62c2292579df9045b4c543f7', name: "progress-indicator-horizontal-title3" }))))))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "road-progress-indicator-horizontal"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,42 +7,50 @@ export default {
|
|
|
7
7
|
component: 'road-progress-indicator-horizontal',
|
|
8
8
|
argTypes: {
|
|
9
9
|
color: {
|
|
10
|
+
description: "The color progress-indicator-horizontal.",
|
|
10
11
|
options: ['default', 'header'],
|
|
11
12
|
control: {
|
|
12
13
|
type: 'select',
|
|
13
14
|
},
|
|
14
15
|
},
|
|
15
16
|
'number-step': {
|
|
17
|
+
description: "The nombre of steps.",
|
|
16
18
|
options: [3, 2],
|
|
17
19
|
control: {
|
|
18
20
|
type: 'select',
|
|
19
21
|
},
|
|
20
22
|
},
|
|
21
23
|
'state-first-step': {
|
|
24
|
+
description: "The color of the first step.",
|
|
22
25
|
options: ['default', 'current', 'completed', 'in-progress'],
|
|
23
26
|
control: {
|
|
24
27
|
type: 'select',
|
|
25
28
|
},
|
|
26
29
|
},
|
|
27
30
|
'state-second-step': {
|
|
31
|
+
description: "The color of the second step.",
|
|
28
32
|
options: ['default', 'current', 'completed', 'in-progress'],
|
|
29
33
|
control: {
|
|
30
34
|
type: 'select',
|
|
31
35
|
},
|
|
32
36
|
},
|
|
33
37
|
'state-third-step': {
|
|
38
|
+
description: "The color of the third step.",
|
|
34
39
|
options: ['default', 'current', 'completed', 'in-progress'],
|
|
35
40
|
control: {
|
|
36
41
|
type: 'select',
|
|
37
42
|
},
|
|
38
43
|
},
|
|
39
44
|
'progress-indicator-horizontal-icon': {
|
|
45
|
+
description: "if the state of the step 1 is completed add\n`<road-icon name=\"check-small\" class=\"d-block\" style=\"color: currentColor;\"></road-icon>` by default.",
|
|
40
46
|
control: 'text',
|
|
41
47
|
},
|
|
42
48
|
'progress-indicator-horizontal-title': {
|
|
49
|
+
description: "if the state of the step 2 is completed add\n`<road-icon name=\"check-small\" class=\"d-block\" style=\"color: currentColor;\"></road-icon>` by default.",
|
|
43
50
|
control: 'text',
|
|
44
51
|
},
|
|
45
52
|
'progress-indicator-horizontal-icon2': {
|
|
53
|
+
description: "if the state of the step 3 is completed add\n`<road-icon name=\"check-small\" class=\"d-block\" style=\"color: currentColor;\"></road-icon>` by default.",
|
|
46
54
|
control: 'text',
|
|
47
55
|
},
|
|
48
56
|
'progress-indicator-horizontal-title2': {
|
package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.js
CHANGED
|
@@ -12,7 +12,7 @@ import { Host, h } from "@stencil/core";
|
|
|
12
12
|
*/
|
|
13
13
|
export class ProgressIndicatorVertical {
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '53374580ae8974a098d78a601f16c11d046d05a0' }, h("nav", { key: '172b56e4f067cd3aff24cbc8f619f623cee6e7fc' }, h("ul", { key: '76fc4af3a83915d53365f3e813612e10ac7bbca7' }, h("li", { key: 'a30ca0d908dc432e31cf04748df08d87bc527f61' }, h("slot", { key: '2bb8112daa5f3799b8936939dce9818fa17f756d' }))))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "road-progress-indicator-vertical"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,6 +10,7 @@ export default {
|
|
|
10
10
|
},
|
|
11
11
|
argTypes: {
|
|
12
12
|
' ': {
|
|
13
|
+
description: "content of the stepper item, it should be road-vertical-stepper-item elements.\n\nif the state of the step is completed add the class `completed` on the road-vertical-stepper-item\n\nif the state of the step is in-progress add the class `in-progress` on the road-vertical-stepper-item\n\nif the state of the step is current add the class `current` on the road-vertical-stepper-item\n\n`<road-icon name=\"check-small\" class=\"d-block\" style=\"color: currentColor;\"></road-icon>`",
|
|
13
14
|
control: 'text',
|
|
14
15
|
},
|
|
15
16
|
},
|
|
@@ -4,7 +4,7 @@ import { Host, h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class ProgressIndicatorVerticalItem {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: 'd3ba92c8ba422c910a790c232cc6c43acf21a316' }, h("slot", { key: '471a58e0dbbcad1601c6bfec7e90cc4ced55f172' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "road-progress-indicator-vertical-item"; }
|
|
10
10
|
static get originalStyleUrls() {
|
|
@@ -9,7 +9,7 @@ import { Host, h } from "@stencil/core";
|
|
|
9
9
|
*/
|
|
10
10
|
export class ProgressTracker {
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '9a0c92424113ac6ed3a422e2b72a597a1c7e56ae' }, h("nav", { key: '1f4a7756e005ecaac2ae04d69cfa56f44a3db114' }, h("ul", { key: 'dd386017509fcabfbc30d8970fa60d293d209e9e' }, h("li", { key: '1e2ca3005116579b3917b51867a09d975c9c1891' }, h("slot", { key: 'aa5268a3e7f35906bb37354e88b825f839d2774d' }))))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "road-progress-tracker"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,6 +10,7 @@ export default {
|
|
|
10
10
|
},
|
|
11
11
|
argTypes: {
|
|
12
12
|
' ': {
|
|
13
|
+
description: "content of the progress stepper tracker item, it should be road-progress-tracker-item elements.\n\nif the state of the step is completed add the class `completed` on the road-progress-tracker-item\nif the state of the step is in progress add the class `in-progress` on the road-progress-tracker-item\nif the state of the step is current add the class `current` on the road-progress-tracker-item",
|
|
13
14
|
control: 'text',
|
|
14
15
|
},
|
|
15
16
|
},
|
|
@@ -12,7 +12,7 @@ import { Host, h } from "@stencil/core";
|
|
|
12
12
|
*/
|
|
13
13
|
export class ProgressTrackerItem {
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'fa846bf7750217b756e2c63925636d75100e52f0' }, h("slot", { key: '3b37dca6ac078595ce7e739cd980661387f50e59' })));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "road-progress-tracker-item"; }
|
|
18
18
|
static get originalStyleUrls() {
|
|
@@ -72,7 +72,7 @@ export class Radio {
|
|
|
72
72
|
const inverseClass = this.inverse && 'form-radio-inverse';
|
|
73
73
|
const isInvalidClass = this.error ? 'is-invalid' : '';
|
|
74
74
|
const inlineClass = this.inline ? 'form-radio-inline' : '';
|
|
75
|
-
return (h(Host, { key: '
|
|
75
|
+
return (h(Host, { key: 'fbec228f3266ccdef92e82ee29b7aa9f604f603a', class: `form-radio ${inlineClass}` }, h("input", { key: '4493e3345ad10d983dab715035a77fe66025e3ba', class: `form-radio-input ${isInvalidClass}`, type: "radio", id: this.radioId, name: this.name, required: this.required, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null, checked: this.checked, "aria-checked": `${this.checked}`, "aria-labelledby": labelId, value: this.value, onFocus: this.onFocus, onBlur: this.onBlur }), h("label", { key: '85b6bc778ca441e37bd47a51227307051a9bc80a', class: `form-radio-label ${inverseClass}`, id: labelId, htmlFor: this.radioId }, this.label, " ", h("span", { key: '22b184045be0995831f3b34065d0e8d97cf90cdc', class: "form-radio-label-span" }, this.secondaryLabel))));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "road-radio"; }
|
|
78
78
|
static get encapsulation() { return "scoped"; }
|
|
@@ -52,47 +52,60 @@ Playground.args = {
|
|
|
52
52
|
};
|
|
53
53
|
Playground.argTypes = {
|
|
54
54
|
disabled: {
|
|
55
|
+
description: "If `true`, the user cannot interact with the radio.",
|
|
55
56
|
control: 'boolean',
|
|
56
57
|
},
|
|
57
58
|
required: {
|
|
59
|
+
description: "If `true`, the user must fill in a value before submitting a form.",
|
|
58
60
|
control: 'boolean',
|
|
59
61
|
},
|
|
60
62
|
inverse: {
|
|
63
|
+
description: "If `true`, the label and the radio are inverse and spaced",
|
|
61
64
|
control: 'boolean',
|
|
62
65
|
},
|
|
63
66
|
inline: {
|
|
67
|
+
description: "Inline multiple radio",
|
|
64
68
|
control: 'boolean',
|
|
65
69
|
},
|
|
66
70
|
error: {
|
|
71
|
+
description: "Error message for the field",
|
|
67
72
|
control: 'text',
|
|
68
73
|
},
|
|
69
74
|
helper: {
|
|
75
|
+
description: "Helper message for the field",
|
|
70
76
|
control: 'text',
|
|
71
77
|
},
|
|
72
78
|
label: {
|
|
79
|
+
description: "Label for the field",
|
|
73
80
|
control: 'text',
|
|
74
81
|
},
|
|
75
82
|
'secondary-label': {
|
|
83
|
+
description: "Secondary Label for the field",
|
|
76
84
|
control: 'text',
|
|
77
85
|
},
|
|
78
86
|
asterisk: {
|
|
79
87
|
control: 'boolean',
|
|
80
88
|
},
|
|
81
89
|
name: {
|
|
90
|
+
description: "The name of the control, which is submitted with the form data.",
|
|
82
91
|
control: 'text',
|
|
83
92
|
},
|
|
84
93
|
value: {
|
|
94
|
+
description: "Value the form will get",
|
|
85
95
|
control: 'text',
|
|
86
96
|
},
|
|
87
97
|
'radio-id': {
|
|
98
|
+
description: "The id of radio",
|
|
88
99
|
control: 'text',
|
|
89
100
|
},
|
|
90
101
|
roadblur: {
|
|
102
|
+
description: "Emitted when the radio button loses focus.",
|
|
91
103
|
control: {
|
|
92
104
|
type: null,
|
|
93
105
|
},
|
|
94
106
|
},
|
|
95
107
|
roadfocus: {
|
|
108
|
+
description: "Emitted when the radio button has focus.",
|
|
96
109
|
control: {
|
|
97
110
|
type: null,
|
|
98
111
|
},
|
|
@@ -59,7 +59,7 @@ export class RadioGroup {
|
|
|
59
59
|
render() {
|
|
60
60
|
const labelId = `${this.radioGroupId}-label`;
|
|
61
61
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '6c3948ad9428d3ae8aeb411a776419784831c714', role: "radiogroup", class: `form-group ${isInvalidClass}`, "aria-label": this.ariaLabel, onClick: this.onClick }, this.label && h("p", { key: '943199c6a4eda68c82245660e81ba04032a62209', class: "text-content", id: labelId }, this.label, " ", this.asterisk && h("span", { key: '772ae18837d54d6aa313e3a8791bc715f66c183d', class: "asterisk" }, "*")), h("slot", { key: '7f4a8c9ec3a201f695a6731467c138abf587e52f' }), this.error && this.error !== '' && h("p", { key: '9149bc1981323584219a13a392e77c8313f7fd58', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && h("p", { key: 'a662d0e810e27d6392750d778e13573ed365e358', class: "helper" }, this.helper)));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "road-radio-group"; }
|
|
65
65
|
static get encapsulation() { return "scoped"; }
|
|
@@ -95,14 +95,14 @@ export class Range {
|
|
|
95
95
|
render() {
|
|
96
96
|
const value = this.getValue();
|
|
97
97
|
const datalist = this.showLabels !== undefined ? `tickmarks` : "";
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: 'b2c9aa060ae841e99ba5751c128e8df1fa257277', tabindex: "0", class: { disabled: this.disabled } }, h("div", { key: 'b7696f36afd6083f61b0498ff80b911743f6713e', class: "form-group d-flex align-items-end" }, this.showTick && (h("road-icon", { key: '9c09977ad8ea7b60380cd0b245b2b78df75a851e', icon: navigationAddLessSolid, class: "mr-8", size: "sm" })), h("div", { key: 'dbcf378a5ce259394cc0ed12f6437100292aa015', class: "form-range", style: {
|
|
99
99
|
"--min": this.min,
|
|
100
100
|
"--max": this.max,
|
|
101
101
|
"--value": value,
|
|
102
102
|
"--background-color": this.disabled
|
|
103
103
|
? "var(--road-surface-disabled)"
|
|
104
104
|
: "initial",
|
|
105
|
-
} }, this.showValue && h("output", { key: '
|
|
105
|
+
} }, this.showValue && h("output", { key: '11fbbec081e1ae2b86a5ad5d387b91f26104d6e8' }), this.showLabels && h("slot", { key: '1dd932c4e17968e794370c5468e13fed1b84df25', name: "datalist" }), h("input", { key: 'afe1c2ef6f8006e2c0dcbd3cbe14103393a57a4a', type: "range", class: "form-range-input", id: this.rangeId, min: this.min, max: this.max, value: value, onInput: this.onInput, list: datalist, "aria-label": "Valeur", tabindex: "0", disabled: this.disabled }), h("label", { key: '6f2bca3f10bdc5dcadf6756bfe953afffe4bf2c7', class: "form-range-label" }, "Valeur"), h("div", { key: '065f974aa51980322402a0c3d0c168a96c076ecf', class: "form-range-progress" })), this.showTick && (h("road-icon", { key: '283d46c77a585064840ee91a861fbd2c0bdaa5aa', icon: navigationAddMoreSolid, class: "ml-8", size: "sm" })))));
|
|
106
106
|
}
|
|
107
107
|
static get is() { return "road-range"; }
|
|
108
108
|
static get encapsulation() { return "scoped"; }
|
|
@@ -7,39 +7,50 @@ export default {
|
|
|
7
7
|
component: 'road-range',
|
|
8
8
|
argTypes: {
|
|
9
9
|
min: {
|
|
10
|
+
description: "The minimum value, which must not be greater than its maximum (max attribute) value.",
|
|
10
11
|
control: 'number',
|
|
11
12
|
},
|
|
12
13
|
max: {
|
|
14
|
+
description: "The maximum value, which must not be less than its minimum (min attribute) value.",
|
|
13
15
|
control: 'number',
|
|
14
16
|
},
|
|
15
17
|
step: {
|
|
18
|
+
description: "Works with the min and max attributes to limit the increments at which a value can be set.\nPossible values are: `\"any\"` or a positive floating point number.",
|
|
16
19
|
control: 'number',
|
|
17
20
|
},
|
|
18
21
|
value: {
|
|
22
|
+
description: "The value of the range.",
|
|
19
23
|
control: 'number',
|
|
20
24
|
},
|
|
21
25
|
'show-value': {
|
|
26
|
+
description: "Display the current value of the range",
|
|
22
27
|
control: 'boolean',
|
|
23
28
|
},
|
|
24
29
|
'show-tick': {
|
|
30
|
+
description: "Display Tick of the range",
|
|
25
31
|
control: 'boolean',
|
|
26
32
|
},
|
|
27
33
|
'show-labels': {
|
|
34
|
+
description: "Display labels of the range",
|
|
28
35
|
control: 'boolean',
|
|
29
36
|
},
|
|
30
37
|
datalist: {
|
|
38
|
+
description: "list of labels. also put show-labels=\"true\" and max=\"10\" for this exemple\n`<datalist id=\"tickmarks\" slot=\"datalist\" class=\"tickmarks\">`\n`<option value=\"0\" label=\"0%\"></option>`\n`<option value=\"10\" label=\"10%\"></option>`\n`<option value=\"20\" label=\"20%\"></option>`\n`<option value=\"30\" label=\"30%\"></option>`\n`<option value=\"40\" label=\"40%\"></option>`\n`<option value=\"50\" label=\"50%\"></option>`\n`<option value=\"60\" label=\"60%\"></option>`\n`<option value=\"70\" label=\"70%\"></option>`\n`<option value=\"80\" label=\"80%\"></option>`\n`<option value=\"90\" label=\"90%\"></option>`\n`<option value=\"100\" label=\"100%\"></option>`\n`</datalist>`",
|
|
31
39
|
control: 'text',
|
|
32
40
|
},
|
|
33
41
|
'range-id': {
|
|
42
|
+
description: "The id of range",
|
|
34
43
|
control: 'text',
|
|
35
44
|
},
|
|
36
45
|
roadchange: {
|
|
46
|
+
description: "Emitted when the value has changed.",
|
|
37
47
|
action: 'roadchange',
|
|
38
48
|
control: {
|
|
39
49
|
type: null,
|
|
40
50
|
},
|
|
41
51
|
},
|
|
42
52
|
disabled: {
|
|
53
|
+
description: "If true, the range will be disabled",
|
|
43
54
|
control: 'boolean',
|
|
44
55
|
},
|
|
45
56
|
},
|
|
@@ -37,7 +37,7 @@ export class Rating {
|
|
|
37
37
|
const sizeRatingStarsClass = this.size !== undefined ? `rating-stars rating-stars--${this.size}` : 'rating-stars';
|
|
38
38
|
const sizeRatingNumberClass = this.size !== undefined ? `rating-number rating-number--${this.size}` : 'rating-number';
|
|
39
39
|
const readOnly = this.readonly == true ? `readonly` : '';
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'd81a376cdf8e7a268335c62cadff3a3a5945c334' }, h("div", { key: 'c7f9a63a11399a60d3daa6e3f8f11b8b4f640e96', class: `${sizeRatingStarsClass}` }, [...Array(rate)].map(() => h("road-icon", { icon: star, size: "sm", color: "warning" })), [...Array(rateDecimale)].map(() => h("road-icon", { icon: starHalfColor, size: "sm", class: "rating-star" })), [...Array(5 - rate - rateDecimale)].map(() => h("road-icon", { icon: star, size: "sm", class: "rating-star" }))), this.readonly == false && this.showreviews && h("a", { key: '5b1a38a0f8fdabe757a79f7b5000481d03d8225e', class: `${sizeRatingNumberClass}`, href: this.url }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")"), this.readonly == true && this.showreviews && h("road-label", { key: '337a9e94914d57278d8d15c8889b258bff8ea751', class: `${sizeRatingNumberClass} ${readOnly}` }, "(", this.reviews, this.reviewsText && ` ${this.reviewsText}`, ")")));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "road-rating"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,12 +6,14 @@ export default {
|
|
|
6
6
|
component: 'road-rating',
|
|
7
7
|
argTypes: {
|
|
8
8
|
size: {
|
|
9
|
+
description: "The button size.",
|
|
9
10
|
options: ['extra-small', 'small', 'medium'],
|
|
10
11
|
control: {
|
|
11
12
|
type: 'select',
|
|
12
13
|
},
|
|
13
14
|
},
|
|
14
15
|
rate: {
|
|
16
|
+
description: "Rate review between 0 and 5",
|
|
15
17
|
control: {
|
|
16
18
|
type: 'number',
|
|
17
19
|
min: '0',
|
|
@@ -19,21 +21,26 @@ export default {
|
|
|
19
21
|
},
|
|
20
22
|
},
|
|
21
23
|
showreviews: {
|
|
24
|
+
description: "Show reviews",
|
|
22
25
|
control: 'boolean',
|
|
23
26
|
},
|
|
24
27
|
reviews: {
|
|
28
|
+
description: "number of reviews",
|
|
25
29
|
control: {
|
|
26
30
|
type: 'number',
|
|
27
31
|
min: '0',
|
|
28
32
|
},
|
|
29
33
|
},
|
|
30
34
|
'reviews-text': {
|
|
35
|
+
description: "Word display next to the number of reviews.",
|
|
31
36
|
control: 'text',
|
|
32
37
|
},
|
|
33
38
|
url: {
|
|
39
|
+
description: "Url.",
|
|
34
40
|
control: 'text',
|
|
35
41
|
},
|
|
36
42
|
readonly: {
|
|
43
|
+
description: "Read Only",
|
|
37
44
|
control: 'boolean',
|
|
38
45
|
},
|
|
39
46
|
},
|
|
@@ -4,7 +4,7 @@ import { Host, h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class Row {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '891c70924e7955aa953e3e233cd57dd6aff4068a' }, h("slot", { key: 'acb726260f4492a126b9aa1f51d89b329bf6a09c' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "road-row"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,10 +52,10 @@ export class SegmentedButton {
|
|
|
52
52
|
render() {
|
|
53
53
|
const { tabIndex, selected, tab } = this;
|
|
54
54
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'c94bfffcbff45b20dc349a3545bd195a95d68273', onClick: this.onClick, onKeyup: this.onKeyUp, role: "tab", tabindex: tabIndex, "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
56
56
|
'tab-selected': selected,
|
|
57
57
|
[`${sizeClass}`]: true,
|
|
58
|
-
} }, h("span", { key: '
|
|
58
|
+
} }, h("span", { key: '87ee95ccb7c44cfe7bff797d1b693f1ae4cf0ad7', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, h("slot", { key: 'a6fd94b01bba4f71b3689f62a736050e7132add0' }))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "road-segmented-button"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|