@roadtrip/components 3.32.4 → 3.32.5
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/road-badge_14.cjs.entry.js +9 -12
- package/dist/cjs/road-badge_14.cjs.entry.js.map +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.js +9 -12
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer/drawer.stories.js +64 -134
- 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/phone-number-input.stories.js +15 -1
- package/dist/collection/components/plate-number/plate-number.stories.js +13 -0
- package/dist/collection/components/profil-dropdown/profil-dropdown.stories.js +8 -0
- package/dist/collection/components/progress/progress.stories.js +12 -0
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.stories.js +8 -0
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.stories.js +1 -0
- package/dist/collection/components/progress-tracker/progress-tracker.stories.js +1 -0
- package/dist/collection/components/radio/radio.stories.js +13 -0
- package/dist/collection/components/range/range.stories.js +11 -0
- package/dist/collection/components/rating/rating.stories.js +7 -0
- package/dist/collection/components/segmented-buttons/segmented-buttons.stories.js +2 -0
- package/dist/collection/components/select/select.stories.js +13 -0
- package/dist/collection/components/select-filter/select-filter.stories.js +5 -0
- package/dist/collection/components/skeleton/skeleton.stories.js +2 -0
- package/dist/collection/components/spinner/spinner.stories.js +2 -0
- package/dist/collection/components/table/table.stories.js +1 -0
- package/dist/collection/components/tabs/tabs.stories.js +2 -0
- package/dist/collection/components/tag/tag.stories.js +3 -0
- package/dist/collection/components/text/text.stories.js +2 -0
- package/dist/collection/components/textarea/textarea.stories.js +26 -0
- package/dist/collection/components/toast/toast.stories.js +6 -0
- package/dist/collection/components/toggle/toggle.stories.js +14 -0
- package/dist/collection/components/toolbar/toolbar.stories.js +6 -0
- package/dist/collection/components/toolbar-v2/toolbar-v2.stories.js +5 -0
- package/dist/collection/components/tooltip/tooltip.stories.js +11 -0
- package/dist/esm/road-badge_14.entry.js +9 -12
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/roadtrip/{p-e2a00f9c.entry.js → p-b5c4455e.entry.js} +3 -3
- package/dist/roadtrip/p-b5c4455e.entry.js.map +1 -0
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/types/components/drawer/drawer.d.ts +0 -1
- package/hydrate/index.js +271 -255
- package/hydrate/index.mjs +271 -255
- package/package.json +1 -1
- package/dist/roadtrip/p-e2a00f9c.entry.js.map +0 -1
|
@@ -45,76 +45,94 @@ Playground.args = {
|
|
|
45
45
|
};
|
|
46
46
|
Playground.argTypes = {
|
|
47
47
|
button: {
|
|
48
|
+
description: "If `true`, a button tag will be rendered and the item will be tappable.",
|
|
48
49
|
control: 'boolean',
|
|
49
50
|
},
|
|
50
51
|
detail: {
|
|
52
|
+
description: "If `true`, a detail arrow will appear on the item. Defaults to `false` unless the `mode`\nis `ios` and an `href` or `button` property is present.",
|
|
51
53
|
control: 'boolean',
|
|
52
54
|
},
|
|
53
55
|
active: {
|
|
56
|
+
description: "If `true`, display an active state item",
|
|
54
57
|
control: 'boolean',
|
|
55
58
|
},
|
|
56
59
|
layout: {
|
|
60
|
+
description: "How the bottom border should be displayed on the item.",
|
|
57
61
|
options: ['horizontal', 'vertical'],
|
|
58
62
|
control: {
|
|
59
63
|
type: 'radio',
|
|
60
64
|
},
|
|
61
65
|
},
|
|
62
66
|
lines: {
|
|
67
|
+
description: "How the bottom border should be displayed on the item.",
|
|
63
68
|
options: ['full', 'inset', 'none'],
|
|
64
69
|
control: {
|
|
65
70
|
type: 'radio',
|
|
66
71
|
},
|
|
67
72
|
},
|
|
68
73
|
'detail-icon': {
|
|
74
|
+
description: "The icon to use when `detail` is set to `true`.",
|
|
69
75
|
options: list,
|
|
70
76
|
control: {
|
|
71
77
|
type: 'select',
|
|
72
78
|
},
|
|
73
79
|
},
|
|
74
80
|
disabled: {
|
|
81
|
+
description: "If `true`, the user cannot interact with the item.",
|
|
75
82
|
control: 'boolean',
|
|
76
83
|
},
|
|
77
84
|
download: {
|
|
85
|
+
description: "This attribute instructs browsers to download a URL instead of navigating to\nit, so the user will be prompted to save it as a local file. If the attribute\nhas a value, it is used as the pre-filled file name in the Save prompt\n(the user can still change the file name if they want).",
|
|
78
86
|
control: {
|
|
79
87
|
type: null,
|
|
80
88
|
},
|
|
81
89
|
},
|
|
82
90
|
'title-item': {
|
|
91
|
+
description: "Title for the item",
|
|
83
92
|
control: 'text',
|
|
84
93
|
},
|
|
85
94
|
text: {
|
|
95
|
+
description: "Description for the item",
|
|
86
96
|
control: 'text',
|
|
87
97
|
},
|
|
88
98
|
href: {
|
|
99
|
+
description: "Contains a URL or a URL fragment that the hyperlink points to.\nIf this property is set, an anchor tag will be rendered.",
|
|
89
100
|
control: {
|
|
90
101
|
type: null,
|
|
91
102
|
},
|
|
92
103
|
},
|
|
93
104
|
rel: {
|
|
105
|
+
description: "Specifies the relationship of the target object to the link object.\nThe value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).",
|
|
94
106
|
control: {
|
|
95
107
|
type: null,
|
|
96
108
|
},
|
|
97
109
|
},
|
|
98
110
|
target: {
|
|
111
|
+
description: "Specifies where to display the linked URL.\nOnly applies when an `href` is provided.\nSpecial keywords: `\"_blank\"`, `\"_self\"`, `\"_parent\"`, `\"_top\"`.",
|
|
99
112
|
control: {
|
|
100
113
|
type: null,
|
|
101
114
|
},
|
|
102
115
|
},
|
|
103
116
|
type: {
|
|
117
|
+
description: "The type of the button. Only used when an `onclick` or `button` property is present.",
|
|
104
118
|
control: {
|
|
105
119
|
type: null,
|
|
106
120
|
},
|
|
107
121
|
},
|
|
108
122
|
start: {
|
|
123
|
+
description: "Placed to the left of all other content.",
|
|
109
124
|
control: 'text',
|
|
110
125
|
},
|
|
111
126
|
' ': {
|
|
127
|
+
description: "Content of the item.",
|
|
112
128
|
control: 'text',
|
|
113
129
|
},
|
|
114
130
|
end: {
|
|
131
|
+
description: "Placed to the right of all other content.",
|
|
115
132
|
control: 'text',
|
|
116
133
|
},
|
|
117
134
|
'--border-radius': {
|
|
135
|
+
description: "Radius of the item border",
|
|
118
136
|
table: {
|
|
119
137
|
defaultValue: { summary: '0.25rem' },
|
|
120
138
|
},
|
|
@@ -123,6 +141,7 @@ Playground.argTypes = {
|
|
|
123
141
|
},
|
|
124
142
|
},
|
|
125
143
|
'--background-color': {
|
|
144
|
+
description: "Background of the item",
|
|
126
145
|
table: {
|
|
127
146
|
defaultValue: { summary: 'transparent' },
|
|
128
147
|
},
|
|
@@ -131,6 +150,7 @@ Playground.argTypes = {
|
|
|
131
150
|
},
|
|
132
151
|
},
|
|
133
152
|
'--border-color': {
|
|
153
|
+
description: "Border of the item button",
|
|
134
154
|
table: {
|
|
135
155
|
defaultValue: { summary: 'var(--road-outline-variant)' },
|
|
136
156
|
},
|
|
@@ -139,6 +159,7 @@ Playground.argTypes = {
|
|
|
139
159
|
},
|
|
140
160
|
},
|
|
141
161
|
'--detail-color': {
|
|
162
|
+
description: "color of the detail icon",
|
|
142
163
|
table: {
|
|
143
164
|
defaultValue: { summary: 'var(--road-grey-900)' },
|
|
144
165
|
},
|
|
@@ -147,6 +168,7 @@ Playground.argTypes = {
|
|
|
147
168
|
},
|
|
148
169
|
},
|
|
149
170
|
'--inner-padding': {
|
|
171
|
+
description: "inner padding of the item",
|
|
150
172
|
table: {
|
|
151
173
|
defaultValue: { summary: '1rem 0.5rem 1rem 0' },
|
|
152
174
|
},
|
|
@@ -155,6 +177,7 @@ Playground.argTypes = {
|
|
|
155
177
|
},
|
|
156
178
|
},
|
|
157
179
|
'--min-height': {
|
|
180
|
+
description: "Minimum height of the item",
|
|
158
181
|
table: {
|
|
159
182
|
defaultValue: { summary: '3.5rem' },
|
|
160
183
|
},
|
|
@@ -163,6 +186,7 @@ Playground.argTypes = {
|
|
|
163
186
|
},
|
|
164
187
|
},
|
|
165
188
|
'--padding-left': {
|
|
189
|
+
description: "Padding left of the native element",
|
|
166
190
|
table: {
|
|
167
191
|
defaultValue: { summary: '1rem' },
|
|
168
192
|
},
|
|
@@ -171,6 +195,7 @@ Playground.argTypes = {
|
|
|
171
195
|
},
|
|
172
196
|
},
|
|
173
197
|
native: {
|
|
198
|
+
description: "The native HTML button, anchor or div element that wraps all child elements.",
|
|
174
199
|
control: {
|
|
175
200
|
type: null,
|
|
176
201
|
},
|
|
@@ -12,12 +12,14 @@ export default {
|
|
|
12
12
|
},
|
|
13
13
|
argTypes: {
|
|
14
14
|
lines: {
|
|
15
|
+
description: "How the bottom border should be displayed on all items.",
|
|
15
16
|
options: ['full', 'inset', 'none'],
|
|
16
17
|
control: {
|
|
17
18
|
type: 'radio',
|
|
18
19
|
},
|
|
19
20
|
},
|
|
20
21
|
' ': {
|
|
22
|
+
description: "Content of the list, it should be road-item elements.",
|
|
21
23
|
control: 'text',
|
|
22
24
|
},
|
|
23
25
|
},
|
|
@@ -13,30 +13,44 @@ export default {
|
|
|
13
13
|
},
|
|
14
14
|
argTypes: {
|
|
15
15
|
'is-open': {
|
|
16
|
+
description: "Set isOpen propertie to true to show the modal",
|
|
16
17
|
control: 'boolean',
|
|
17
18
|
},
|
|
18
19
|
'has-close-icon': {
|
|
20
|
+
description: "Show / hide close icon",
|
|
19
21
|
control: 'boolean',
|
|
22
|
+
table: {
|
|
23
|
+
defaultValue: { summary: 'true' },
|
|
24
|
+
},
|
|
20
25
|
},
|
|
21
26
|
'has-inverse-header': {
|
|
27
|
+
description: "inverse header colors",
|
|
22
28
|
control: 'boolean',
|
|
23
29
|
},
|
|
24
30
|
'max-width': {
|
|
31
|
+
description: "Max width of the modal on desktop",
|
|
25
32
|
control: 'number',
|
|
26
33
|
min: 0,
|
|
34
|
+
table: {
|
|
35
|
+
defaultValue: { summary: '696' },
|
|
36
|
+
},
|
|
27
37
|
},
|
|
28
38
|
'modal-title': {
|
|
39
|
+
description: "Title of the modal in the header bar",
|
|
29
40
|
control: 'text',
|
|
30
41
|
},
|
|
31
42
|
' ': {
|
|
43
|
+
description: "Content of the modal.",
|
|
32
44
|
control: 'text',
|
|
33
45
|
},
|
|
34
46
|
close: {
|
|
47
|
+
description: "Indicate when closing the modal",
|
|
35
48
|
control: {
|
|
36
49
|
type: null,
|
|
37
50
|
},
|
|
38
51
|
},
|
|
39
52
|
'--z-index': {
|
|
53
|
+
description: "The z-index of the Modal.",
|
|
40
54
|
table: {
|
|
41
55
|
defaultValue: { summary: '3' },
|
|
42
56
|
},
|
|
@@ -20,12 +20,15 @@ export default {
|
|
|
20
20
|
},
|
|
21
21
|
argTypes: {
|
|
22
22
|
' ': {
|
|
23
|
+
description: "Content of the navbar, it should be road-navbar-item elements. Max 5 items on Mobile",
|
|
23
24
|
control: 'text',
|
|
24
25
|
},
|
|
25
26
|
'selected-tab': {
|
|
27
|
+
description: "The selected tab component",
|
|
26
28
|
control: 'text',
|
|
27
29
|
},
|
|
28
30
|
'--z-index': {
|
|
31
|
+
description: "The z-index of the Navbar.",
|
|
29
32
|
table: {
|
|
30
33
|
defaultValue: { summary: '10' },
|
|
31
34
|
},
|
|
@@ -20,15 +20,19 @@ export default {
|
|
|
20
20
|
},
|
|
21
21
|
argTypes: {
|
|
22
22
|
' ': {
|
|
23
|
+
description: "Content of the navbar, it should be road-navbar-item elements. Max 5 items on Mobile",
|
|
23
24
|
control: 'text',
|
|
24
25
|
},
|
|
25
26
|
'selected-tab': {
|
|
27
|
+
description: "The selected tab component",
|
|
26
28
|
control: 'text',
|
|
27
29
|
},
|
|
28
30
|
compact: {
|
|
31
|
+
description: "Set to `true` for a compact navbar.",
|
|
29
32
|
control: 'boolean',
|
|
30
33
|
},
|
|
31
34
|
'--z-index': {
|
|
35
|
+
description: "The z-index of the Navbar.",
|
|
32
36
|
table: {
|
|
33
37
|
defaultValue: { summary: '10' },
|
|
34
38
|
},
|
|
@@ -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
|
},
|
|
@@ -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,
|
|
@@ -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
|
},
|
|
@@ -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
|
},
|
|
@@ -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': {
|
|
@@ -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
|
},
|
|
@@ -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
|
},
|
|
@@ -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
|
},
|
|
@@ -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
|
},
|
|
@@ -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
|
},
|