@kiva/kv-tokens 2.14.0 → 2.15.0
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 +11 -0
- package/build/build.cjs +1 -1
- package/configs/kivaColors.cjs +1 -1
- package/configs/kivaHeadingUnderline.cjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [2.15.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-tokens@2.14.0...@kiva/kv-tokens@2.15.0) (2024-11-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* serve static assets from kvui directory MP-544 ([840f6de](https://github.com/kiva/kv-ui-elements/commit/840f6de89f213143218d28e82a7ef0be1de319b6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [2.14.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-tokens@2.13.0...@kiva/kv-tokens@2.14.0) (2024-11-15)
|
|
7
18
|
|
|
8
19
|
|
package/build/build.cjs
CHANGED
|
@@ -2,7 +2,7 @@ const fs = require('node:fs');
|
|
|
2
2
|
const { generateExternalSVG } = require('../configs/kivaHeadingUnderline.cjs');
|
|
3
3
|
|
|
4
4
|
// Note: dir is relative to the root of the kv-tokens package
|
|
5
|
-
const dir = '../../dist/
|
|
5
|
+
const dir = '../../dist/kvui';
|
|
6
6
|
|
|
7
7
|
// Create dist folder
|
|
8
8
|
if (!fs.existsSync(dir)) {
|
package/configs/kivaColors.cjs
CHANGED
|
@@ -33,7 +33,7 @@ const buildCSSVarsFromTokens = (theme) => {
|
|
|
33
33
|
properties.forEach((property) => {
|
|
34
34
|
const key = `--${twPrefix}-${property}`;
|
|
35
35
|
if (category === 'heading-underline') {
|
|
36
|
-
customProperties[key] = `url('/heading-underline.svg${theme[category][property]}')`;
|
|
36
|
+
customProperties[key] = `url('/kvui/heading-underline.svg${theme[category][property]}')`;
|
|
37
37
|
} else {
|
|
38
38
|
customProperties[key] = hexToRGB(theme[category][property]);
|
|
39
39
|
}
|
|
@@ -10,7 +10,7 @@ const svgOpenTag = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 921 16"
|
|
|
10
10
|
* achieved by creating one path for the brush stroke, and then using multiple <use> elements to
|
|
11
11
|
* reference the path and fill it with the desired color (a sprite sheet technique from
|
|
12
12
|
* https://css-tricks.com/svg-fragment-identifiers-work/). The SVG is then used as a background
|
|
13
|
-
* image, and can be referenced by the color hex code, e.g. `url('/heading-underline.svg#2AA967')`.
|
|
13
|
+
* image, and can be referenced by the color hex code, e.g. `url('/kvui/heading-underline.svg#2AA967')`.
|
|
14
14
|
* This allows us to use the same SVG for all themes, and change the color with CSS custom
|
|
15
15
|
* properties, rather than having to generate a new SVG for each color.
|
|
16
16
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-tokens",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"@tailwindcss/typography": "^0.5.1",
|
|
16
16
|
"tailwindcss": "^3.4.3"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "fab4917b631c7c5491a23d7cd88ec2f65a5fa928"
|
|
19
19
|
}
|