@kiva/kv-tokens 3.5.0 → 3.6.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 +22 -0
- package/configs/kivaTypography.js +4 -4
- package/package.json +2 -2
- package/primitives.js +10 -0
- package/.eslintrc.cjs +0 -8
- package/build/build.js +0 -25
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.6.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-tokens@3.5.1...@kiva/kv-tokens@3.6.0) (2025-11-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* provide fonts from kv-tokens ([bb82d28](https://github.com/kiva/kv-ui-elements/commit/bb82d28112507e4c66ef85dfbbd3340ff89211d4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.5.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-tokens@3.5.0...@kiva/kv-tokens@3.5.1) (2025-11-06)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* add half sizes to remaining space primitives to ensure they render in storybook ([d94e24b](https://github.com/kiva/kv-ui-elements/commit/d94e24be12974b8f54b40fc4076c93cace9ad86e))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [3.5.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-tokens@3.4.1...@kiva/kv-tokens@3.5.0) (2025-09-26)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -120,7 +120,7 @@ export const webFonts = [
|
|
|
120
120
|
fontStyle: 'normal',
|
|
121
121
|
fontDisplay: 'swap',
|
|
122
122
|
// eslint-disable-next-line max-len
|
|
123
|
-
src: 'url(//www.kiva.org/
|
|
123
|
+
src: 'url(//www.kiva.org/kvui/PostGrotesk-Medium.woff2) format(\'woff2\')',
|
|
124
124
|
},
|
|
125
125
|
},
|
|
126
126
|
/**
|
|
@@ -161,7 +161,7 @@ export const webFonts = [
|
|
|
161
161
|
fontStyle: 'italic',
|
|
162
162
|
fontDisplay: 'swap',
|
|
163
163
|
// eslint-disable-next-line max-len
|
|
164
|
-
src: 'url(//www.kiva.org/
|
|
164
|
+
src: 'url(//www.kiva.org/kvui/PostGrotesk-MediumItalic.woff2) format(\'woff2\')',
|
|
165
165
|
},
|
|
166
166
|
},
|
|
167
167
|
/**
|
|
@@ -202,7 +202,7 @@ export const webFonts = [
|
|
|
202
202
|
fontWeight: '300',
|
|
203
203
|
fontStyle: 'normal',
|
|
204
204
|
fontDisplay: 'swap',
|
|
205
|
-
src: 'url(//www.kiva.org/
|
|
205
|
+
src: 'url(//www.kiva.org/kvui/PostGrotesk-Book.woff2) format(\'woff2\')',
|
|
206
206
|
},
|
|
207
207
|
},
|
|
208
208
|
/**
|
|
@@ -243,7 +243,7 @@ export const webFonts = [
|
|
|
243
243
|
fontStyle: 'italic',
|
|
244
244
|
fontDisplay: 'swap',
|
|
245
245
|
// eslint-disable-next-line max-len
|
|
246
|
-
src: 'url(//www.kiva.org/
|
|
246
|
+
src: 'url(//www.kiva.org/kvui/PostGrotesk-BookItalic.woff2) format(\'woff2\')',
|
|
247
247
|
},
|
|
248
248
|
},
|
|
249
249
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-tokens",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.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": "0904f531bd60326a698c15461873188e1f8db4c9"
|
|
19
19
|
}
|
package/primitives.js
CHANGED
|
@@ -400,17 +400,27 @@ export default {
|
|
|
400
400
|
4: 32,
|
|
401
401
|
4.5: 36,
|
|
402
402
|
5: 40,
|
|
403
|
+
5.5: 44,
|
|
403
404
|
6: 48,
|
|
404
405
|
6.5: 52,
|
|
405
406
|
7: 56,
|
|
407
|
+
7.5: 60,
|
|
406
408
|
8: 64,
|
|
409
|
+
8.5: 68,
|
|
407
410
|
9: 72,
|
|
411
|
+
9.5: 76,
|
|
408
412
|
10: 80,
|
|
413
|
+
10.5: 84,
|
|
409
414
|
11: 88,
|
|
415
|
+
11.5: 92,
|
|
410
416
|
12: 96,
|
|
417
|
+
12.5: 100,
|
|
411
418
|
13: 104,
|
|
419
|
+
13.5: 108,
|
|
412
420
|
14: 112,
|
|
421
|
+
14.5: 116,
|
|
413
422
|
15: 120,
|
|
423
|
+
15.5: 124,
|
|
414
424
|
16: 128,
|
|
415
425
|
},
|
|
416
426
|
fonts: {
|
package/.eslintrc.cjs
DELETED
package/build/build.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
|
-
import designTokens from '../primitives.js';
|
|
3
|
-
import { generateExternalSVG } from '../configs/kivaHeadingUnderline.js';
|
|
4
|
-
import { flattenJSON } from '../configs/util.js';
|
|
5
|
-
|
|
6
|
-
// Note: dir is relative to the root of the kv-tokens package
|
|
7
|
-
const dir = '../../dist/kvui';
|
|
8
|
-
|
|
9
|
-
// Create dist folder
|
|
10
|
-
if (!fs.existsSync(dir)) {
|
|
11
|
-
fs.mkdirSync(dir, { recursive: true });
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// Generate Heading Underline SVG
|
|
15
|
-
const svg = generateExternalSVG();
|
|
16
|
-
fs.writeFileSync(`${dir}/heading-underline.svg`, svg);
|
|
17
|
-
|
|
18
|
-
// Generate SCSS variables
|
|
19
|
-
const today = new Date().toUTCString();
|
|
20
|
-
const variables = flattenJSON(designTokens);
|
|
21
|
-
const scss = Object.keys(variables)
|
|
22
|
-
.map((key) => `$${key.toLowerCase().replace('.', '-')}: ${variables[key]};`)
|
|
23
|
-
.join('\n');
|
|
24
|
-
const withComment = `// Do not edit directly.\n// Generated on ${today}. \n\n${scss}\n`;
|
|
25
|
-
fs.writeFileSync(`${dir}/tw-exported-vars.scss`, withComment);
|