@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
|
@@ -8,84 +8,100 @@ export default {
|
|
|
8
8
|
argTypes: {
|
|
9
9
|
'is-open': {
|
|
10
10
|
control: 'boolean',
|
|
11
|
+
description: 'Defines whether the dropdown is open or closed.',
|
|
11
12
|
},
|
|
12
13
|
'is-light': {
|
|
13
14
|
control: 'boolean',
|
|
15
|
+
description: 'Applies a light style to the dropdown.',
|
|
14
16
|
},
|
|
15
17
|
'is-medium': {
|
|
16
18
|
control: 'boolean',
|
|
19
|
+
description: 'Applies a medium-sized style to the dropdown.',
|
|
17
20
|
},
|
|
18
21
|
position: {
|
|
19
22
|
options: ['left', 'right'],
|
|
20
|
-
control: {
|
|
21
|
-
|
|
23
|
+
control: { type: 'radio' },
|
|
24
|
+
description: 'Sets the horizontal position of the dropdown.',
|
|
25
|
+
table: {
|
|
26
|
+
defaultValue: { summary: 'left' },
|
|
22
27
|
},
|
|
23
28
|
},
|
|
24
29
|
direction: {
|
|
25
30
|
options: ['top', 'bottom'],
|
|
26
|
-
control: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
' ': {
|
|
31
|
-
control: {
|
|
32
|
-
type: null,
|
|
31
|
+
control: { type: 'radio' },
|
|
32
|
+
description: 'Sets the vertical direction in which the dropdown expands.',
|
|
33
|
+
table: {
|
|
34
|
+
defaultValue: { summary: 'bottom' },
|
|
33
35
|
},
|
|
34
36
|
},
|
|
35
37
|
list: {
|
|
36
|
-
control:
|
|
37
|
-
|
|
38
|
-
},
|
|
38
|
+
control: 'text',
|
|
39
|
+
description: 'Defines the list of items inside the dropdown.',
|
|
39
40
|
},
|
|
40
41
|
'--margin-top': {
|
|
41
|
-
table: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
control: {
|
|
45
|
-
type: null,
|
|
46
|
-
},
|
|
42
|
+
table: { defaultValue: { summary: '0.5rem' } },
|
|
43
|
+
control: 'text',
|
|
44
|
+
description: 'Sets the margin-top of the dropdown.',
|
|
47
45
|
},
|
|
48
46
|
},
|
|
49
47
|
args: {
|
|
48
|
+
'is-open': true,
|
|
49
|
+
'is-light': false,
|
|
50
|
+
'is-medium': false,
|
|
50
51
|
position: 'left',
|
|
51
52
|
direction: 'bottom',
|
|
52
|
-
'is-open': true,
|
|
53
|
-
'is-light': null,
|
|
54
|
-
'is-medium': null,
|
|
55
53
|
list: `<road-list slot="list">
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<road-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</road-item>
|
|
74
|
-
<road-item button class="border-0">
|
|
75
|
-
<road-icon slot="start" name="picture" size="md" aria-hidden="true"></road-icon>
|
|
76
|
-
<road-label>
|
|
77
|
-
Label
|
|
78
|
-
</road-label>
|
|
79
|
-
</road-item>
|
|
80
|
-
</road-list>`,
|
|
54
|
+
<road-item button class="border-0">
|
|
55
|
+
<road-icon slot="start" name="picture" size="md" aria-hidden="true"></road-icon>
|
|
56
|
+
<road-label>Label</road-label>
|
|
57
|
+
</road-item>
|
|
58
|
+
<road-item button class="border-0">
|
|
59
|
+
<road-icon slot="start" name="picture" size="md" aria-hidden="true"></road-icon>
|
|
60
|
+
<road-label>Label</road-label>
|
|
61
|
+
</road-item>
|
|
62
|
+
<road-item button class="border-0">
|
|
63
|
+
<road-icon slot="start" name="picture" size="md" aria-hidden="true"></road-icon>
|
|
64
|
+
<road-label>Label</road-label>
|
|
65
|
+
</road-item>
|
|
66
|
+
<road-item button class="border-0">
|
|
67
|
+
<road-icon slot="start" name="picture" size="md" aria-hidden="true"></road-icon>
|
|
68
|
+
<road-label>Label</road-label>
|
|
69
|
+
</road-item>
|
|
70
|
+
</road-list>`,
|
|
81
71
|
},
|
|
82
72
|
};
|
|
83
73
|
|
|
84
|
-
|
|
85
|
-
<road-dropdown
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
74
|
+
const Template = (args) => html`
|
|
75
|
+
<road-dropdown
|
|
76
|
+
?is-open="${args['is-open']}"
|
|
77
|
+
?is-light="${args['is-light']}"
|
|
78
|
+
?is-medium="${args['is-medium']}"
|
|
79
|
+
position="${ifDefined(args.position)}"
|
|
80
|
+
direction="${ifDefined(args.direction)}"
|
|
81
|
+
style="--margin-top: ${ifDefined(args['--margin-top'])};"
|
|
82
|
+
>
|
|
83
|
+
${unsafeHTML(args.list)}
|
|
84
|
+
</road-dropdown>
|
|
91
85
|
`;
|
|
86
|
+
|
|
87
|
+
export const Playground = Template.bind({});
|
|
88
|
+
|
|
89
|
+
export const RightPosition = Template.bind({});
|
|
90
|
+
RightPosition.args = {
|
|
91
|
+
position: 'right',
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export const TopDirection = Template.bind({});
|
|
95
|
+
TopDirection.args = {
|
|
96
|
+
direction: 'top',
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const LightDropdown = Template.bind({});
|
|
100
|
+
LightDropdown.args = {
|
|
101
|
+
'is-light': true,
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export const MediumDropdown = Template.bind({});
|
|
105
|
+
MediumDropdown.args = {
|
|
106
|
+
'is-medium': true,
|
|
107
|
+
};
|
|
@@ -10,93 +10,97 @@ export default {
|
|
|
10
10
|
},
|
|
11
11
|
layout: 'fullscreen',
|
|
12
12
|
actions: {
|
|
13
|
-
handles: ['open', 'close'],
|
|
13
|
+
handles: ['open', 'close', 'roadselected'],
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
argTypes: {
|
|
17
17
|
'is-open': {
|
|
18
18
|
control: 'boolean',
|
|
19
|
+
description: 'Defines whether the duration picker is open or closed.',
|
|
19
20
|
},
|
|
20
21
|
header: {
|
|
21
22
|
control: 'text',
|
|
23
|
+
description: 'Title displayed in the duration picker.',
|
|
22
24
|
},
|
|
23
25
|
min: {
|
|
24
26
|
control: 'number',
|
|
27
|
+
description: 'Minimum selectable duration in minutes.',
|
|
25
28
|
},
|
|
26
29
|
max: {
|
|
27
30
|
control: 'number',
|
|
31
|
+
description: 'Maximum selectable duration in minutes.',
|
|
28
32
|
},
|
|
29
33
|
step: {
|
|
30
34
|
control: 'number',
|
|
31
35
|
min: 15,
|
|
36
|
+
description: 'Step interval for selecting the duration (in minutes).',
|
|
37
|
+
table: {
|
|
38
|
+
defaultValue: { summary: 15 },
|
|
39
|
+
},
|
|
32
40
|
},
|
|
33
41
|
roadselected: {
|
|
34
42
|
action: 'roadselected',
|
|
35
|
-
|
|
36
|
-
|
|
43
|
+
description: 'Triggered when a duration is selected.',
|
|
44
|
+
table: {
|
|
45
|
+
category: 'Events',
|
|
46
|
+
type: { summary: 'CustomEvent<{ value: number, label: string }>' },
|
|
37
47
|
},
|
|
38
48
|
},
|
|
39
|
-
open
|
|
40
|
-
description: '
|
|
49
|
+
open: {
|
|
50
|
+
description: 'Opens the duration picker.',
|
|
41
51
|
table: {
|
|
42
|
-
category: '
|
|
43
|
-
type: {
|
|
44
|
-
summary: 'void',
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
defaultValue: {
|
|
48
|
-
summary: null,
|
|
52
|
+
category: 'Methods',
|
|
53
|
+
type: { summary: 'void' },
|
|
49
54
|
},
|
|
50
55
|
},
|
|
51
|
-
close
|
|
52
|
-
description: '
|
|
56
|
+
close: {
|
|
57
|
+
description: 'Closes the duration picker.',
|
|
53
58
|
table: {
|
|
54
|
-
category: '
|
|
55
|
-
type: {
|
|
56
|
-
summary: 'void',
|
|
57
|
-
},
|
|
58
|
-
defaultValue: {
|
|
59
|
-
summary: null,
|
|
60
|
-
},
|
|
59
|
+
category: 'Methods',
|
|
60
|
+
type: { summary: 'void' },
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
64
|
args: {
|
|
65
65
|
'is-open': true,
|
|
66
|
+
header: 'Select a duration',
|
|
67
|
+
min: 15,
|
|
68
|
+
max: 240,
|
|
69
|
+
step: 15,
|
|
66
70
|
},
|
|
67
71
|
};
|
|
68
72
|
|
|
69
73
|
const Template = (args) => html`
|
|
70
|
-
<road-duration
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
></road-duration>
|
|
74
|
+
<road-duration
|
|
75
|
+
?is-open="${args['is-open']}"
|
|
76
|
+
header="${ifDefined(args.header)}"
|
|
77
|
+
min="${ifDefined(args.min)}"
|
|
78
|
+
max="${ifDefined(args.max)}"
|
|
79
|
+
step="${ifDefined(args.step)}"
|
|
80
|
+
@roadselected=${event => args.roadselected(event.detail)}
|
|
81
|
+
></road-duration>
|
|
78
82
|
`;
|
|
79
83
|
|
|
80
84
|
export const Playground = Template.bind({});
|
|
81
85
|
|
|
82
86
|
export const Example = () => html`
|
|
83
|
-
<road-label class="mb-8">Duration of the service</road-label>
|
|
84
|
-
<div class="d-flex align-items-center">
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
</div>
|
|
87
|
+
<road-label class="mb-8">Duration of the service</road-label>
|
|
88
|
+
<div class="d-flex align-items-center">
|
|
89
|
+
<road-input
|
|
90
|
+
class="input"
|
|
91
|
+
aria-label="Duration of the service"
|
|
92
|
+
style="width: 100px"
|
|
93
|
+
placeholder="00:15"
|
|
94
|
+
@roadfocus=${() => document.querySelector('.duration').open()}
|
|
95
|
+
></road-input>
|
|
96
|
+
<div class="text-content ml-8">hour(s)</div>
|
|
97
|
+
</div>
|
|
94
98
|
|
|
95
|
-
<road-duration
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
></road-duration>
|
|
99
|
+
<road-duration
|
|
100
|
+
class="duration"
|
|
101
|
+
header="Duration of the service"
|
|
102
|
+
@roadselected=${event => document.querySelector('.input').value = event.detail.label}
|
|
103
|
+
></road-duration>
|
|
100
104
|
`;
|
|
101
105
|
Example.parameters = {
|
|
102
106
|
docs: {
|
|
@@ -8,34 +8,45 @@ export default {
|
|
|
8
8
|
argTypes: {
|
|
9
9
|
color: {
|
|
10
10
|
options: ['promo', 'exclu', 'info', 'ecology', 'blackfriday'],
|
|
11
|
-
control: {
|
|
12
|
-
|
|
11
|
+
control: { type: 'select' },
|
|
12
|
+
description: 'Defines the color theme of the flap.',
|
|
13
|
+
table: {
|
|
14
|
+
defaultValue: { summary: 'promo' },
|
|
13
15
|
},
|
|
14
16
|
},
|
|
15
17
|
size: {
|
|
16
18
|
options: ['sm', 'md'],
|
|
17
|
-
control: {
|
|
18
|
-
|
|
19
|
+
control: { type: 'select' },
|
|
20
|
+
description: 'Sets the size of the flap.',
|
|
21
|
+
table: {
|
|
22
|
+
defaultValue: { summary: 'md' },
|
|
19
23
|
},
|
|
20
24
|
},
|
|
21
25
|
filled: {
|
|
22
26
|
control: 'boolean',
|
|
27
|
+
description: 'Determines if the flap has a filled background.',
|
|
23
28
|
},
|
|
24
29
|
' ': {
|
|
25
30
|
control: 'text',
|
|
31
|
+
description: 'Content displayed inside the flap.',
|
|
26
32
|
},
|
|
27
33
|
},
|
|
28
34
|
args: {
|
|
29
35
|
color: 'promo',
|
|
36
|
+
size: 'md',
|
|
30
37
|
' ': 'Promo',
|
|
31
|
-
filled:
|
|
38
|
+
filled: false,
|
|
32
39
|
},
|
|
33
40
|
};
|
|
34
41
|
|
|
35
42
|
const Template = (args) => html`
|
|
36
|
-
<road-flap
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
<road-flap
|
|
44
|
+
color="${ifDefined(args.color)}"
|
|
45
|
+
size="${ifDefined(args.size)}"
|
|
46
|
+
?filled="${args.filled}"
|
|
47
|
+
>
|
|
48
|
+
${unsafeHTML(args[' '])}
|
|
49
|
+
</road-flap>
|
|
39
50
|
`;
|
|
40
51
|
|
|
41
52
|
export const Playground = Template.bind({});
|
|
@@ -61,12 +72,13 @@ Ecology.args = {
|
|
|
61
72
|
export const BlackFriday = Template.bind({});
|
|
62
73
|
BlackFriday.args = {
|
|
63
74
|
color: 'blackfriday',
|
|
64
|
-
' ': '
|
|
75
|
+
' ': 'Black Friday',
|
|
65
76
|
};
|
|
66
77
|
|
|
67
78
|
export const Sizes = Template.bind({});
|
|
68
79
|
Sizes.args = {
|
|
69
|
-
size: '
|
|
80
|
+
size: 'sm',
|
|
81
|
+
' ': 'Small Size',
|
|
70
82
|
};
|
|
71
83
|
|
|
72
84
|
export const Filled = Template.bind({});
|
|
@@ -12,113 +12,142 @@ export default {
|
|
|
12
12
|
},
|
|
13
13
|
argTypes: {
|
|
14
14
|
disabled: {
|
|
15
|
+
description: "If `true`, the user cannot interact with the input.",
|
|
15
16
|
control: 'boolean',
|
|
16
17
|
},
|
|
17
18
|
readonly: {
|
|
19
|
+
description: "If `true`, the user cannot modify the value.",
|
|
18
20
|
control: 'boolean',
|
|
19
21
|
},
|
|
20
22
|
required: {
|
|
23
|
+
description: "If `true`, the user must fill in a value before submitting a form.",
|
|
21
24
|
control: 'boolean',
|
|
22
25
|
},
|
|
23
26
|
autofocus: {
|
|
27
|
+
description: "This Boolean attribute lets you specify that a form control should have input focus when the page loads.",
|
|
24
28
|
control: 'boolean',
|
|
25
29
|
},
|
|
26
30
|
spellcheck: {
|
|
31
|
+
description: "If `true`, the element will have its spelling and grammar checked.",
|
|
27
32
|
control: 'boolean',
|
|
28
33
|
},
|
|
29
34
|
blockdecimal: {
|
|
35
|
+
description: "If `true`, block decimal.",
|
|
30
36
|
control: 'boolean',
|
|
31
37
|
},
|
|
32
38
|
error: {
|
|
39
|
+
description: "Error message for the field",
|
|
33
40
|
control: 'text',
|
|
34
41
|
},
|
|
35
42
|
helper: {
|
|
43
|
+
description: "Helper message for the field",
|
|
36
44
|
control: 'text',
|
|
37
45
|
},
|
|
38
46
|
label: {
|
|
47
|
+
description: "Label for the field",
|
|
39
48
|
control: 'text',
|
|
40
49
|
},
|
|
41
50
|
name: {
|
|
51
|
+
description: "The name of the control, which is submitted with the form data.",
|
|
42
52
|
control: 'text',
|
|
43
53
|
},
|
|
44
54
|
placeholder: {
|
|
55
|
+
description: "Instructional text that shows before the input has a value.",
|
|
45
56
|
control: 'text',
|
|
46
57
|
},
|
|
47
58
|
size: {
|
|
59
|
+
description: "The initial size of the control. This value is in pixels unless the value of the type attribute is `\"text\"` or `\"password\"`, in which case it is an integer number of characters. This attribute applies only when the `type` attribute is set to `\"text\"`, `\"search\"`, `\"tel\"`, `\"url\"`, `\"email\"`, or `\"password\"`, otherwise it is ignored.",
|
|
48
60
|
control: 'number',
|
|
49
61
|
},
|
|
50
62
|
min: {
|
|
63
|
+
description: "The minimum value, which must not be greater than its maximum (max attribute) value.",
|
|
51
64
|
control: 'text',
|
|
52
65
|
},
|
|
53
66
|
minlength: {
|
|
67
|
+
description: "If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter.",
|
|
54
68
|
control: 'number',
|
|
55
69
|
},
|
|
56
70
|
max: {
|
|
71
|
+
description: "The maximum value, which must not be less than its minimum (min attribute) value.",
|
|
57
72
|
control: 'text',
|
|
58
73
|
},
|
|
59
74
|
maxlength: {
|
|
75
|
+
description: "If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter.",
|
|
60
76
|
control: 'number',
|
|
61
77
|
},
|
|
62
78
|
step: {
|
|
79
|
+
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.",
|
|
63
80
|
control: 'number',
|
|
64
81
|
},
|
|
65
82
|
pattern: {
|
|
83
|
+
description: "A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `\"text\"`, `\"search\"`, `\"tel\"`, `\"url\"`, `\"email\"`, or `\"password\"`, otherwise it is ignored.",
|
|
66
84
|
control: 'text',
|
|
67
85
|
},
|
|
68
86
|
value: {
|
|
87
|
+
description: "The value of the input.(for dynamic use use v-model for vue instead)",
|
|
69
88
|
control: 'text',
|
|
70
89
|
},
|
|
71
90
|
sizes: {
|
|
91
|
+
description: "The sizes of the input.",
|
|
72
92
|
options: ['lg', 'xl'],
|
|
73
93
|
control: {
|
|
74
94
|
type: 'select',
|
|
75
95
|
},
|
|
76
96
|
},
|
|
77
97
|
type: {
|
|
98
|
+
description: "The type of control to display. The default type is text.",
|
|
78
99
|
options: ['date', 'email', 'number', 'password', 'search', 'tel', 'text', 'url', 'time'],
|
|
79
100
|
control: {
|
|
80
101
|
type: 'select',
|
|
81
102
|
},
|
|
82
103
|
},
|
|
83
104
|
autocapitalize: {
|
|
105
|
+
description: "Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.",
|
|
84
106
|
options: ['on', 'off'],
|
|
85
107
|
control: {
|
|
86
108
|
type: 'select',
|
|
87
109
|
},
|
|
88
110
|
},
|
|
89
111
|
autocomplete: {
|
|
112
|
+
description: "Indicates whether the value of the control can be automatically completed by the browser.",
|
|
90
113
|
options: ['on', 'off', 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'email', 'username', 'new-password', 'current-password', 'one-time-code', 'organization-title', 'organization', 'street-address', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-extension', 'impp', 'url', 'photo'],
|
|
91
114
|
control: {
|
|
92
115
|
type: 'select',
|
|
93
116
|
},
|
|
94
117
|
},
|
|
95
118
|
autocorrect: {
|
|
119
|
+
description: "Whether auto correction should be enabled when the user is entering/editing the text value.",
|
|
96
120
|
options: ['on', 'off'],
|
|
97
121
|
control: {
|
|
98
122
|
type: 'select',
|
|
99
123
|
},
|
|
100
124
|
},
|
|
101
125
|
enterkeyhint: {
|
|
126
|
+
description: "A hint to the browser for which enter key to display.\nPossible values: `\"enter\"`, `\"done\"`, `\"go\"`, `\"next\"`,\n`\"previous\"`, `\"search\"`, and `\"send\"`.",
|
|
102
127
|
options: ['enter', 'done', 'go', 'next', 'previous', 'search', 'send'],
|
|
103
128
|
control: {
|
|
104
129
|
type: 'select',
|
|
105
130
|
},
|
|
106
131
|
},
|
|
107
132
|
inputmode: {
|
|
133
|
+
description: "A hint to the browser for which keyboard to display.\nThis attribute applies when the value of the type attribute is `\"text\"`, `\"password\"`, `\"email\"`, or `\"url\"`. Possible values are: `\"verbatim\"`, `\"latin\"`, `\"latin-name\"`, `\"latin-prose\"`, `\"full-width-latin\"`, `\"kana\"`, `\"katakana\"`, `\"numeric\"`, `\"tel\"`, `\"email\"`, `\"url\"`.",
|
|
108
134
|
options: ['none', 'text', 'tel', 'url', 'email', 'numeric', 'decimal', 'search'],
|
|
109
135
|
control: {
|
|
110
136
|
type: 'select',
|
|
111
137
|
},
|
|
112
138
|
},
|
|
113
139
|
checklistPassword: {
|
|
140
|
+
description: "Content the checklist Password exemple.\n`<div class=\"checklist-password mt-16\" slot=\"checklistPassword\">`\n`<span class=\"checklist-password-label\"><strong>Low Safety</strong></span>`\n`<road-progress color=\"danger\" value=\"25\" class=\"mt-8 mb-16\"></road-progress>`\n`<p class=\"text-medium mb-8\">For optimal safety your password must have at least :</p>`\n`<ul class=\"m-0 pl-16\">`\n`<li id=\"letter\" class=\"invalid mb-8\">1 lowercase and 1 uppercase</li>`\n`<li id=\"number\" class=\"invalid mb-8\">1 digit</li>`\n`<li id=\"length\" class=\"invalid\">8 characters minimum</li>`\n`</ul>`\n`</div>`",
|
|
114
141
|
control: {
|
|
115
142
|
type: 'text',
|
|
116
143
|
},
|
|
117
144
|
},
|
|
118
145
|
debounce: {
|
|
146
|
+
description: "Set the amount of time, in milliseconds, to wait to trigger the `roadChange` event after each keystroke.",
|
|
119
147
|
control: 'number',
|
|
120
148
|
},
|
|
121
149
|
'input-id': {
|
|
150
|
+
description: "The id of input",
|
|
122
151
|
control: 'text',
|
|
123
152
|
},
|
|
124
153
|
roadblur: {
|
|
@@ -144,6 +173,7 @@ export default {
|
|
|
144
173
|
},
|
|
145
174
|
},
|
|
146
175
|
'--height': {
|
|
176
|
+
description: "height of the field",
|
|
147
177
|
table: {
|
|
148
178
|
defaultValue: { summary: '3rem' },
|
|
149
179
|
},
|
|
@@ -152,6 +182,7 @@ export default {
|
|
|
152
182
|
},
|
|
153
183
|
},
|
|
154
184
|
'--border-radius': {
|
|
185
|
+
description: "Border radius of the field",
|
|
155
186
|
table: {
|
|
156
187
|
defaultValue: { summary: '0.25rem' },
|
|
157
188
|
},
|
|
@@ -160,6 +191,7 @@ export default {
|
|
|
160
191
|
},
|
|
161
192
|
},
|
|
162
193
|
'--input-text-align': {
|
|
194
|
+
description: "align the content of the field",
|
|
163
195
|
table: {
|
|
164
196
|
defaultValue: { summary: 'left' },
|
|
165
197
|
},
|
|
@@ -168,6 +200,7 @@ export default {
|
|
|
168
200
|
},
|
|
169
201
|
},
|
|
170
202
|
'--margin-bottom': {
|
|
203
|
+
description: "Bottom margin of the field",
|
|
171
204
|
table: {
|
|
172
205
|
defaultValue: { summary: '1rem' },
|
|
173
206
|
},
|