Skip to content

Commit

Permalink
feat: added utility theme to Alert, Button, Card, Toast sandboxes (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
spotikhanov authored Aug 24, 2024
1 parent 67987b3 commit eac6385
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/content/components/uikit/Alert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ export const alertConfig = {
props: {
theme: {
type: 'select',
values: mappingOptions(['normal', 'info', 'success', 'warning', 'danger']),
values: mappingOptions([
'normal',
'info',
'success',
'warning',
'danger',
'utility',
]),
defaultValue: 'normal',
},
view: {
Expand Down
2 changes: 2 additions & 0 deletions src/content/components/uikit/Button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ export const buttonConfig = {
'outlined-success',
'outlined-warning',
'outlined-danger',
'outlined-utility',
'flat',
'flat-action',
'flat-info',
'flat-success',
'flat-warning',
'flat-danger',
'flat-utility',
'flat-secondary',
'normal-contrast',
'outlined-contrast',
Expand Down
9 changes: 8 additions & 1 deletion src/content/components/uikit/Card/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ export const cardConfig = {
props: {
theme: {
type: 'select',
values: mappingOptions(['normal', 'info', 'success', 'warning', 'danger']),
values: mappingOptions([
'normal',
'info',
'success',
'warning',
'danger',
'utility',
]),
defaultValue: 'normal',
},
type: {
Expand Down
2 changes: 1 addition & 1 deletion src/content/components/uikit/Toaster/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const sandboxProps: Partial<ToasterSandboxProps> = {
},
theme: {
type: 'select',
values: [undefined, 'info', 'success', 'warning', 'danger'].map((value) => ({
values: [undefined, 'info', 'success', 'warning', 'danger', 'utility'].map((value) => ({
value: value === undefined ? 'undefined' : value,
content: value === undefined ? 'none' : value,
})),
Expand Down

0 comments on commit eac6385

Please sign in to comment.