Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit213955f

Browse files
committed
refactor: update text colors
1 parent8fff9ab commit213955f

File tree

7 files changed

+37
-30
lines changed

7 files changed

+37
-30
lines changed

‎packages/coreui-vue/src/components/avatar/CAvatar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const CAvatar = defineComponent({
5555
/**
5656
* Sets the text color of the component to one of CoreUI’s themed colors.
5757
*
58-
*@values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', 'white', 'muted', 'high-emphasis', 'medium-emphasis', 'disabled', 'high-emphasis-inverse', 'medium-emphasis-inverse', 'disabled-inverse'
58+
*@values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', 'primary-emphasis', 'secondary-emphasis', 'success-emphasis', 'danger-emphasis', 'warning-emphasis', 'info-emphasis', 'light-emphasis', 'body', 'body-emphasis', 'body-secondary', 'body-tertiary', 'black', 'black-50', 'white', 'white-50'
5959
*/
6060
textColor:TextColor,
6161
},

‎packages/coreui-vue/src/components/badge/CBadge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const CBadge = defineComponent({
4949
/**
5050
* Sets the text color of the component to one of CoreUI’s themed colors.
5151
*
52-
*@values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', 'white', 'muted', 'high-emphasis', 'medium-emphasis', 'disabled', 'high-emphasis-inverse', 'medium-emphasis-inverse', 'disabled-inverse'
52+
*@values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', 'primary-emphasis', 'secondary-emphasis', 'success-emphasis', 'danger-emphasis', 'warning-emphasis', 'info-emphasis', 'light-emphasis', 'body', 'body-emphasis', 'body-secondary', 'body-tertiary', 'black', 'black-50', 'white', 'white-50'
5353
*/
5454
textColor:TextColor,
5555
},

‎packages/coreui-vue/src/components/card/CCard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const CCard = defineComponent({
1414
/**
1515
* Sets the text color context of the component to one of CoreUI’s themed colors.
1616
*
17-
*@values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', 'white', 'muted', 'high-emphasis', 'medium-emphasis', 'disabled', 'high-emphasis-inverse', 'medium-emphasis-inverse', 'disabled-inverse'
17+
*@values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', 'primary-emphasis', 'secondary-emphasis', 'success-emphasis', 'danger-emphasis', 'warning-emphasis', 'info-emphasis', 'light-emphasis', 'body', 'body-emphasis', 'body-secondary', 'body-tertiary', 'black', 'black-50', 'white', 'white-50'
1818
*/
1919
textColor:TextColor,
2020
},

‎packages/coreui-vue/src/props.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,21 @@ export const TextColor = {
5757
'info',
5858
'dark',
5959
'light',
60+
'primary-emphasis',
61+
'secondary-emphasis',
62+
'success-emphasis',
63+
'danger-emphasis',
64+
'warning-emphasis',
65+
'info-emphasis',
66+
'light-emphasis',
67+
'body',
68+
'body-emphasis',
69+
'body-secondary',
70+
'body-tertiary',
71+
'black',
72+
'black-50',
6073
'white',
61-
'muted',
62-
'high-emphasis',
63-
'medium-emphasis',
64-
'disabled',
65-
'high-emphasis-inverse',
66-
'medium-emphasis-inverse',
67-
'disabled-inverse',
74+
'white-50',
6875
].includes(value)
6976
},
7077
}

‎packages/docs/api/avatar/CAvatar.api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import CAvatar from '@coreui/vue/src/components/avatar/CAvatar'
88

99
####Props
1010

11-
| Prop name| Description| Type| Values| Default|
12-
| --------------| --------------------------------------------------------------------------------| ------| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -------|
13-
|**color**| Sets the color context of the component to one of CoreUI’s themed colors.| string|`'primary'`,`'secondary'`,`'success'`,`'danger'`,`'warning'`,`'info'`,`'dark'`,`'light'`| -|
14-
|**shape**| Select the shape of the component.| string|`'rounded'`,`'rounded-top'`,`'rounded-end'`,`'rounded-bottom'`,`'rounded-start'`,`'rounded-circle'`,`'rounded-pill'`,`'rounded-0'`,`'rounded-1'`,`'rounded-2'`,`'rounded-3'`| -|
15-
|**size**| Size the component small, large, or extra large.| string|`'sm'`,`'md'`,`'lg'`,`'xl'`| -|
16-
|**src**| The src attribute for the img element.| string| -| -|
17-
|**status**| Sets the color context of the status indicator to one of CoreUI’s themed colors.| string|`'primary'`,`'secondary'`,`'success'`,`'danger'`,`'warning'`,`'info'`,`'dark'`,`'light'`| -|
18-
|**text-color**| Sets the text color of the component to one of CoreUI’s themed colors.| string|`'primary'`,`'secondary'`,`'success'`,`'danger'`,`'warning'`,`'info'`,`'dark'`,`'light'`,`'white'`,`'muted'`,`'high-emphasis'`,`'medium-emphasis'`,`'disabled'`,`'high-emphasis-inverse'`,`'medium-emphasis-inverse'`,`'disabled-inverse'`| -|
11+
| Prop name| Description| Type| Values| Default|
12+
| --------------| --------------------------------------------------------------------------------| ------| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -------|
13+
|**color**| Sets the color context of the component to one of CoreUI’s themed colors.| string|`'primary'`,`'secondary'`,`'success'`,`'danger'`,`'warning'`,`'info'`,`'dark'`,`'light'`| -|
14+
|**shape**| Select the shape of the component.| string|`'rounded'`,`'rounded-top'`,`'rounded-end'`,`'rounded-bottom'`,`'rounded-start'`,`'rounded-circle'`,`'rounded-pill'`,`'rounded-0'`,`'rounded-1'`,`'rounded-2'`,`'rounded-3'`| -|
15+
|**size**| Size the component small, large, or extra large.| string|`'sm'`,`'md'`,`'lg'`,`'xl'`| -|
16+
|**src**| The src attribute for the img element.| string| -| -|
17+
|**status**| Sets the color context of the status indicator to one of CoreUI’s themed colors.| string|`'primary'`,`'secondary'`,`'success'`,`'danger'`,`'warning'`,`'info'`,`'dark'`,`'light'`| -|
18+
|**text-color**| Sets the text color of the component to one of CoreUI’s themed colors.| string|`'primary'`,`'secondary'`,`'success'`,`'danger'`,`'warning'`,`'info'`,`'dark'`,`'light'`,`'primary-emphasis'`,`'secondary-emphasis'`,`'success-emphasis'`,`'danger-emphasis'`,`'warning-emphasis'`,`'info-emphasis'`,`'light-emphasis'`,`'body'`,`'body-emphasis'`,`'body-secondary'`,`'body-tertiary'`,`'black'`,`'black-50'`,`'white'`,`'white-50'`| -|

‎packages/docs/api/badge/CBadge.api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import CBadge from '@coreui/vue/src/components/badge/CBadge'
88

99
####Props
1010

11-
| Prop name| Description| Type| Values| Default|
12-
| --------------| ---------------------------------------------------------------------------------------| ------| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -------|
13-
|**color**| Sets the color context of the component to one of CoreUI’s themed colors.| string|`'primary'`,`'secondary'`,`'success'`,`'danger'`,`'warning'`,`'info'`,`'dark'`,`'light'`| -|
14-
|**component**| Component used for the root node. Either a string to use a HTML element or a component.| string| -| 'span'|
15-
|**position**| Position badge in one of the corners of a link or button.| string|`'top-start'`,`'top-end'`,`'bottom-end'`,`'bottom-start'`| -|
16-
|**shape**| Select the shape of the component.| string|`'rounded'`,`'rounded-top'`,`'rounded-end'`,`'rounded-bottom'`,`'rounded-start'`,`'rounded-circle'`,`'rounded-pill'`,`'rounded-0'`,`'rounded-1'`,`'rounded-2'`,`'rounded-3'`| -|
17-
|**size**| Size the component small.| string|`'sm'`| -|
18-
|**text-color**| Sets the text color of the component to one of CoreUI’s themed colors.| string|`'primary'`,`'secondary'`,`'success'`,`'danger'`,`'warning'`,`'info'`,`'dark'`,`'light'`,`'white'`,`'muted'`,`'high-emphasis'`,`'medium-emphasis'`,`'disabled'`,`'high-emphasis-inverse'`,`'medium-emphasis-inverse'`,`'disabled-inverse'`| -|
11+
| Prop name| Description| Type| Values| Default|
12+
| --------------| ---------------------------------------------------------------------------------------| ------| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -------|
13+
|**color**| Sets the color context of the component to one of CoreUI’s themed colors.| string|`'primary'`,`'secondary'`,`'success'`,`'danger'`,`'warning'`,`'info'`,`'dark'`,`'light'`| -|
14+
|**component**| Component used for the root node. Either a string to use a HTML element or a component.| string| -| 'span'|
15+
|**position**| Position badge in one of the corners of a link or button.| string|`'top-start'`,`'top-end'`,`'bottom-end'`,`'bottom-start'`| -|
16+
|**shape**| Select the shape of the component.| string|`'rounded'`,`'rounded-top'`,`'rounded-end'`,`'rounded-bottom'`,`'rounded-start'`,`'rounded-circle'`,`'rounded-pill'`,`'rounded-0'`,`'rounded-1'`,`'rounded-2'`,`'rounded-3'`| -|
17+
|**size**| Size the component small.| string|`'sm'`| -|
18+
|**text-color**| Sets the text color of the component to one of CoreUI’s themed colors.| string|`'primary'`,`'secondary'`,`'success'`,`'danger'`,`'warning'`,`'info'`,`'dark'`,`'light'`,`'primary-emphasis'`,`'secondary-emphasis'`,`'success-emphasis'`,`'danger-emphasis'`,`'warning-emphasis'`,`'info-emphasis'`,`'light-emphasis'`,`'body'`,`'body-emphasis'`,`'body-secondary'`,`'body-tertiary'`,`'black'`,`'black-50'`,`'white'`,`'white-50'`| -|

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp