@coreui/react-pro 5.0.0-alpha.1 → 5.0.0-alpha.2
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/README.md +1 -1
- package/dist/components/avatar/CAvatar.d.ts +1 -1
- package/dist/components/badge/CBadge.d.ts +1 -1
- package/dist/components/card/CCard.d.ts +1 -1
- package/dist/components/dropdown/CDropdown.d.ts +1 -0
- package/dist/components/smart-table/CSmartTableHead.d.ts +1 -1
- package/dist/index.es.js +80 -33
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +80 -33
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/avatar/CAvatar.tsx +1 -1
- package/src/components/badge/CBadge.tsx +1 -1
- package/src/components/button/CButton.tsx +1 -1
- package/src/components/button/__tests__/__snapshots__/CButton.spec.tsx.snap +0 -1
- package/src/components/card/CCard.tsx +1 -1
- package/src/components/carousel/__tests__/__snapshots__/CCarousel.spec.tsx.snap +9 -5
- package/src/components/dropdown/CDropdown.tsx +43 -1
- package/src/components/dropdown/CDropdownToggle.tsx +3 -12
- package/src/components/nav/__tests__/__snapshots__/CNav.spec.tsx.snap +5 -4
- package/src/components/navbar/__tests__/CNavbar.spec.tsx +1 -1
- package/src/components/navbar/__tests__/__snapshots__/CNavbar.spec.tsx.snap +2 -1
- package/src/components/progress/__tests__/__snapshots__/CProgress.spec.tsx.snap +10 -5
- package/src/components/progress/__tests__/__snapshots__/CProgressBar.spec.tsx.snap +0 -8
- package/src/components/smart-table/CSmartTable.tsx +11 -5
- package/src/components/smart-table/CSmartTableHead.tsx +31 -11
- package/src/components/widgets/CWidgetStatsA.tsx +1 -1
- package/src/components/widgets/CWidgetStatsB.tsx +2 -2
- package/src/components/widgets/CWidgetStatsC.tsx +4 -12
- package/src/components/widgets/CWidgetStatsD.tsx +1 -1
- package/src/components/widgets/CWidgetStatsE.tsx +1 -1
- package/src/components/widgets/CWidgetStatsF.tsx +1 -1
- package/src/components/widgets/__tests__/CWidgetStatsA.spec.tsx +1 -1
- package/src/components/widgets/__tests__/CWidgetStatsB.spec.tsx +1 -1
- package/src/components/widgets/__tests__/CWidgetStatsC.spec.tsx +1 -1
- package/src/components/widgets/__tests__/CWidgetStatsD.spec.tsx +1 -1
- package/src/components/widgets/__tests__/CWidgetStatsE.spec.tsx +1 -1
- package/src/components/widgets/__tests__/CWidgetStatsF.spec.tsx +1 -1
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsA.spec.tsx.snap +1 -1
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsB.spec.tsx.snap +12 -7
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsC.spec.tsx.snap +14 -9
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsD.spec.tsx.snap +2 -2
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsE.spec.tsx.snap +1 -1
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsF.spec.tsx.snap +2 -2
- package/src/types.ts +14 -7
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`CWidgetStatsB customize 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<div
|
|
6
|
-
class="card bg-info text-
|
|
6
|
+
class="card bg-info text-white bazinga"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
9
|
class="card-body"
|
|
@@ -17,20 +17,20 @@ exports[`CWidgetStatsB customize 1`] = `
|
|
|
17
17
|
title
|
|
18
18
|
</div>
|
|
19
19
|
<div
|
|
20
|
+
aria-valuemax="100"
|
|
21
|
+
aria-valuemin="0"
|
|
22
|
+
aria-valuenow="75"
|
|
20
23
|
class="progress progress-white my-2"
|
|
24
|
+
role="progressbar"
|
|
21
25
|
style="height: 4px;"
|
|
22
26
|
>
|
|
23
27
|
<div
|
|
24
|
-
aria-valuemax="100"
|
|
25
|
-
aria-valuemin="0"
|
|
26
|
-
aria-valuenow="75"
|
|
27
28
|
class="progress-bar bg-warning"
|
|
28
|
-
role="progressbar"
|
|
29
29
|
style="width: 75%;"
|
|
30
30
|
/>
|
|
31
31
|
</div>
|
|
32
32
|
<small
|
|
33
|
-
class="text-
|
|
33
|
+
class="text-white text-opacity-75"
|
|
34
34
|
>
|
|
35
35
|
text
|
|
36
36
|
</small>
|
|
@@ -50,7 +50,12 @@ exports[`loads and displays CWidgetStatsB component 1`] = `
|
|
|
50
50
|
<div
|
|
51
51
|
class="progress my-2"
|
|
52
52
|
style="height: 4px;"
|
|
53
|
-
|
|
53
|
+
>
|
|
54
|
+
<div
|
|
55
|
+
class="progress-bar"
|
|
56
|
+
style="width: 0%;"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
54
59
|
</div>
|
|
55
60
|
</div>
|
|
56
61
|
</div>
|
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
exports[`CWidgetStatsC customize 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<div
|
|
6
|
-
class="card bg-info text-
|
|
6
|
+
class="card bg-info text-white bazinga"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
9
|
class="card-body"
|
|
10
10
|
>
|
|
11
11
|
<div
|
|
12
|
-
class="text-
|
|
12
|
+
class="text-end mb-4"
|
|
13
13
|
>
|
|
14
14
|
icon
|
|
15
15
|
</div>
|
|
16
16
|
<div
|
|
17
|
-
class="
|
|
17
|
+
class="fs-4 fw-semibold"
|
|
18
18
|
>
|
|
19
19
|
value
|
|
20
20
|
</div>
|
|
21
21
|
<div
|
|
22
|
-
class="text-
|
|
22
|
+
class="text-white text-opacity-75"
|
|
23
23
|
>
|
|
24
24
|
title
|
|
25
25
|
</div>
|
|
26
26
|
<div
|
|
27
|
+
aria-valuemax="100"
|
|
28
|
+
aria-valuemin="0"
|
|
29
|
+
aria-valuenow="75"
|
|
27
30
|
class="progress progress-white mt-3 mb-0"
|
|
31
|
+
role="progressbar"
|
|
28
32
|
style="height: 4px;"
|
|
29
33
|
>
|
|
30
34
|
<div
|
|
31
|
-
aria-valuemax="100"
|
|
32
|
-
aria-valuemin="0"
|
|
33
|
-
aria-valuenow="75"
|
|
34
35
|
class="progress-bar bg-warning"
|
|
35
|
-
role="progressbar"
|
|
36
36
|
style="width: 75%;"
|
|
37
37
|
/>
|
|
38
38
|
</div>
|
|
@@ -52,7 +52,12 @@ exports[`loads and displays CWidgetStatsC component 1`] = `
|
|
|
52
52
|
<div
|
|
53
53
|
class="progress mt-3 mb-0"
|
|
54
54
|
style="height: 4px;"
|
|
55
|
-
|
|
55
|
+
>
|
|
56
|
+
<div
|
|
57
|
+
class="progress-bar"
|
|
58
|
+
style="width: 0%;"
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
56
61
|
</div>
|
|
57
62
|
</div>
|
|
58
63
|
</div>
|
|
@@ -20,7 +20,7 @@ exports[`CWidgetStatsD customize 1`] = `
|
|
|
20
20
|
89K
|
|
21
21
|
</div>
|
|
22
22
|
<div
|
|
23
|
-
class="text-uppercase text-
|
|
23
|
+
class="text-uppercase text-body-secondary small"
|
|
24
24
|
>
|
|
25
25
|
friends
|
|
26
26
|
</div>
|
|
@@ -37,7 +37,7 @@ exports[`CWidgetStatsD customize 1`] = `
|
|
|
37
37
|
459
|
|
38
38
|
</div>
|
|
39
39
|
<div
|
|
40
|
-
class="text-uppercase text-
|
|
40
|
+
class="text-uppercase text-body-secondary small"
|
|
41
41
|
>
|
|
42
42
|
feeds
|
|
43
43
|
</div>
|
|
@@ -20,7 +20,7 @@ exports[`CWidgetStatsF customize 1`] = `
|
|
|
20
20
|
value
|
|
21
21
|
</div>
|
|
22
22
|
<div
|
|
23
|
-
class="text-
|
|
23
|
+
class="text-body-secondary text-uppercase fw-semibold small"
|
|
24
24
|
>
|
|
25
25
|
title
|
|
26
26
|
</div>
|
|
@@ -51,7 +51,7 @@ exports[`loads and displays CWidgetStatsF component 1`] = `
|
|
|
51
51
|
class="fs-6 fw-semibold text-undefined"
|
|
52
52
|
/>
|
|
53
53
|
<div
|
|
54
|
-
class="text-
|
|
54
|
+
class="text-body-secondary text-uppercase fw-semibold small"
|
|
55
55
|
/>
|
|
56
56
|
</div>
|
|
57
57
|
</div>
|
package/src/types.ts
CHANGED
|
@@ -55,14 +55,21 @@ export type Shapes =
|
|
|
55
55
|
|
|
56
56
|
export type TextColors =
|
|
57
57
|
| Colors
|
|
58
|
+
| 'primary-emphasis'
|
|
59
|
+
| 'secondary-emphasis'
|
|
60
|
+
| 'success-emphasis'
|
|
61
|
+
| 'danger-emphasis'
|
|
62
|
+
| 'warning-emphasis'
|
|
63
|
+
| 'info-emphasis'
|
|
64
|
+
| 'light-emphasis'
|
|
65
|
+
| 'body'
|
|
66
|
+
| 'body-emphasis'
|
|
67
|
+
| 'body-secondary'
|
|
68
|
+
| 'body-tertiary'
|
|
69
|
+
| 'black'
|
|
70
|
+
| 'black-50'
|
|
58
71
|
| 'white'
|
|
59
|
-
| '
|
|
60
|
-
| 'high-emphasis'
|
|
61
|
-
| 'medium-emphasis'
|
|
62
|
-
| 'disabled'
|
|
63
|
-
| 'high-emphasis-inverse'
|
|
64
|
-
| 'medium-emphasis-inverse'
|
|
65
|
-
| 'disabled-inverse'
|
|
72
|
+
| 'white-50'
|
|
66
73
|
| string
|
|
67
74
|
|
|
68
75
|
export type Triggers = 'hover' | 'focus' | 'click'
|