@kiva/kv-components 3.101.3 → 3.102.1
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.102.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.102.0...@kiva/kv-components@3.102.1) (2024-09-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* pie chart not visible with only one value MP-791 ([6419cd8](https://github.com/kiva/kv-ui-elements/commit/6419cd8d0f348d32dddadd4170f87a6442bf1b29))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.102.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.101.3...@kiva/kv-components@3.102.0) (2024-09-16)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add underline styles for h3 ([#460](https://github.com/kiva/kv-ui-elements/issues/460)) ([b9ea2c4](https://github.com/kiva/kv-ui-elements/commit/b9ea2c4c56108064ad016f4c3c3376f2208f08dd))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [3.101.3](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.101.2...@kiva/kv-components@3.101.3) (2024-09-13)
|
|
7
29
|
|
|
8
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.102.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"optional": true
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "6e2360df11de20e781c327c45d43fd8d4dae1c58"
|
|
87
87
|
}
|
package/vue/KvPieChart.vue
CHANGED
|
@@ -174,10 +174,18 @@ export default {
|
|
|
174
174
|
const value = values.value[i];
|
|
175
175
|
const end = start + value.percent;
|
|
176
176
|
const [startX, startY] = circumPointFromAngle(cX, cY, r, start * Math.PI * 2);
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
let path = `M ${startX},${startY} `;
|
|
178
|
+
if (value.percent === 1) {
|
|
179
|
+
// Draw a full circle in two arcs
|
|
180
|
+
const [midX, midY] = circumPointFromAngle(cX, cY, r, (start + end) * Math.PI);
|
|
181
|
+
path += `A ${r},${r} 0 0,1 ${midX},${midY} `;
|
|
182
|
+
path += `A ${r},${r} 0 0,1 ${startX},${startY}`;
|
|
183
|
+
} else {
|
|
184
|
+
// Draw just the outer arc of the slice
|
|
185
|
+
const [endX, endY] = circumPointFromAngle(cX, cY, r, end * Math.PI * 2);
|
|
186
|
+
const largeArc = value.percent > 0.5 ? 1 : 0;
|
|
187
|
+
path += `A ${r},${r} 0 ${largeArc},1 ${endX},${endY}`;
|
|
188
|
+
}
|
|
181
189
|
slicesArr.push({
|
|
182
190
|
...value,
|
|
183
191
|
path,
|
package/vue/KvThemeProvider.vue
CHANGED
|
@@ -84,8 +84,10 @@ export default {
|
|
|
84
84
|
.tw-text-jumbo u,
|
|
85
85
|
.tw-text-h1 u,
|
|
86
86
|
.tw-text-h2 u,
|
|
87
|
+
.tw-text-h3 u,
|
|
87
88
|
h1 u,
|
|
88
|
-
h2 u
|
|
89
|
+
h2 u,
|
|
90
|
+
h3 u {
|
|
89
91
|
text-decoration: none;
|
|
90
92
|
box-decoration-break: clone;
|
|
91
93
|
background-image: var(--heading-underline-primary);
|
|
@@ -106,7 +108,11 @@ h2 u {
|
|
|
106
108
|
background-size: 100% 0.375rem;
|
|
107
109
|
padding-bottom: 0.125rem;
|
|
108
110
|
}
|
|
109
|
-
|
|
111
|
+
.tw-text-h3 u,
|
|
112
|
+
h3 u {
|
|
113
|
+
background-size: 100% 0.375rem;
|
|
114
|
+
padding-bottom: 0.2rem;
|
|
115
|
+
}
|
|
110
116
|
@screen lg {
|
|
111
117
|
.tw-text-jumbo u {
|
|
112
118
|
background-size: 100% 1rem;
|
|
@@ -50,6 +50,7 @@ const demoTemplate = `
|
|
|
50
50
|
<h1 class="tw-text-jumbo tw-mb-2">Jumbo: The quick <u>brown fox</u> jumped <u>over the lazy dog</u></h1>
|
|
51
51
|
<h1 class="tw-mb-2">H1: The quick <u>brown fox</u> jumped <u>over the lazy dog</u></h1>
|
|
52
52
|
<h2 class="tw-mb-2">H2: The quick <u>brown fox</u> jumped <u>over the lazy dog</u></h2>
|
|
53
|
+
<h3 class="tw-mb-2">H3: The quick <u>brown fox</u> jumped <u>over the lazy dog</u></h3>
|
|
53
54
|
<p>Body text: Voluptate culpa qui excepteur irure ad. Culpa commodo aliquip irure sunt do. Irure incididunt consequat reprehenderit ipsum mollit esse. Ex veniam nulla consequat deserunt fugiat est do in do sint sint ex.</p>
|
|
54
55
|
</section>
|
|
55
56
|
<kv-grid as="section" class="tw-grid-cols-2 tw-p-4 tw-gap-2" style="background-color: gray;">
|