@@ -14,7 +14,7 @@ const component = "ui5-rating-indicator";
14
14
let index = 0 ;
15
15
16
16
export default {
17
- title : "Main/RatingIndicator " ,
17
+ title : "Main/Rating Indicator " ,
18
18
component : "RatingIndicator" ,
19
19
parameters : {
20
20
docs : {
@@ -36,41 +36,25 @@ const Template: UI5StoryArgs<RatingIndicator, StoryArgsSlots> = (args) => html`
36
36
accessible-name-ref ="${ ifDefined ( args . accessibleNameRef ) } "
37
37
> </ ui5-rating-indicator > `;
38
38
39
- export const BasicRatingIndicator = Template . bind ( { } ) ;
40
- BasicRatingIndicator . args = {
39
+ export const Basic = Template . bind ( { } ) ;
40
+ Basic . args = {
41
41
value : 3.7
42
42
} ;
43
43
44
- export const RatingIndicatorMax = Template . bind ( { } ) ;
45
- RatingIndicatorMax . args = {
44
+ export const WithMaxValue = Template . bind ( { } ) ;
45
+ WithMaxValue . args = {
46
46
value : 5 ,
47
47
max : 10
48
48
} ;
49
- RatingIndicatorMax . storyName = "Rating Indicator with Max Value" ;
50
49
51
-
52
- export const DisabledRatingIndicator : StoryFn = Template . bind ( { } ) ;
53
- DisabledRatingIndicator . args = {
54
- value : 5 ,
55
- max : 10 ,
56
- disabled : true
57
- } ;
58
-
59
- export const ReadonlyRatingIndicator : StoryFn = Template . bind ( { } ) ;
60
- ReadonlyRatingIndicator . args = {
61
- value : 5 ,
62
- max : 7 ,
63
- readonly : true
64
- } ;
65
-
66
- export const RequiredRatingIndicatorWithLabel : StoryFn = Template . bind ( { } ) ;
67
- RequiredRatingIndicatorWithLabel . args = {
50
+ export const WithRequiredLabel : StoryFn = Template . bind ( { } ) ;
51
+ WithRequiredLabel . args = {
68
52
value : 5 ,
69
53
max : 7 ,
70
54
accessibleNameRef : "label-acc-name-ref" ,
71
55
required : true
72
56
} ;
73
- RequiredRatingIndicatorWithLabel . decorators = [
57
+ WithRequiredLabel . decorators = [
74
58
( story ) => {
75
59
return html `
76
60
< ui5-label id ="label-acc-name-ref " required ="true " for ="rating-indicator- ${ index + 1 } "> Rate us</ ui5-label >
0 commit comments