Skip to content

Commit 4bf572b

Browse files
authored
Merge pull request #1474 from db-ui/1470-power-apps-default-values-for-components
refactor(Power Apps): added correct default component values
2 parents 689197a + a6add68 commit 4bf572b

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

packages/components/src/components/alert/alert.lite.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ useMetadata({
2626
},
2727
{
2828
name: 'icon',
29-
type: 'Icon' // this is a custom type not provided by ms
29+
type: 'Icon', // this is a custom type not provided by ms
30+
defaultValue: 'info'
3031
},
3132
{
3233
name: 'variant',
33-
type: 'DefaultVariant' // this is a custom type not provided by ms
34+
type: 'DefaultVariant', // this is a custom type not provided by ms
35+
defaultValue: 'adaptive'
3436
}
3537
]
3638
}

packages/components/src/components/infotext/infotext.lite.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,17 @@ useMetadata({
3333
name: 'Successful',
3434
value: 'successful'
3535
}
36-
]
36+
],
37+
defaultValue: 'adaptive'
3738
},
3839
{
3940
name: 'size',
4041
type: 'Enum',
4142
values: [
42-
{ key: 'Sedium', name: 'Medium', value: 'medium' },
43+
{ key: 'Medium', name: 'Medium', value: 'medium' },
4344
{ key: 'Small', name: 'Small', value: 'small' }
44-
]
45+
],
46+
defaultValue: 'medium'
4547
}
4648
// jscpd:ignore-end
4749
]

packages/components/src/components/input/input.lite.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ useMetadata({
3939
},
4040
{
4141
name: 'variant',
42-
type: 'DefaultVariant' // this is a custom type not provided by ms
42+
type: 'DefaultVariant', // this is a custom type not provided by ms
43+
defaultValue: 'adaptive'
4344
}
4445
]
4546
}

packages/components/src/components/link/link.lite.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ useMetadata({
3131
name: 'Inline',
3232
value: 'inline'
3333
}
34-
]
34+
],
35+
defaultValue: 'adaptive'
3536
}
3637
// jscpd:ignore-end
3738
]

packages/components/src/components/tag/tag.lite.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ useMetadata({
4040
name: 'Successful',
4141
value: 'successful'
4242
}
43-
]
43+
],
44+
defaultValue: 'adaptive'
4445
}
4546
// type
4647
]

0 commit comments

Comments
 (0)