@kalink-ui/seedly 0.26.0 → 0.26.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
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @kalink-ui/seedly
|
|
2
2
|
|
|
3
|
+
## 0.26.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fef7681: Text/Heading: fix responsive typography by carrying forward `variant` and `size` across breakpoints so larger viewports don't reapply base styles. Also updates Heading story to demonstrate responsive behavior.
|
|
8
|
+
|
|
3
9
|
## 0.26.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kalink-ui/seedly",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"description": "A set of components for building UIs with React and TypeScript",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"vite-tsconfig-paths": "^5.1.4",
|
|
45
45
|
"vitest": "^3.2.3",
|
|
46
46
|
"@kalink-ui/dibbly": "0.5.0",
|
|
47
|
-
"@kalink-ui/
|
|
48
|
-
"@kalink-ui/
|
|
47
|
+
"@kalink-ui/eslint-config": "0.10.0",
|
|
48
|
+
"@kalink-ui/typescript-config": "0.4.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@vanilla-extract/css": "^1.17.1",
|
|
@@ -30,8 +30,10 @@ export function buildTypographyOverrides(opts: {
|
|
|
30
30
|
defaultOrder,
|
|
31
31
|
);
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
// Carry forward variant/size values across breakpoints so that
|
|
34
|
+
// a value set at md persists to lg/xl/... unless overridden again.
|
|
35
|
+
let currentVariant = varMap.xs ?? (variant as TypographyVariant | undefined);
|
|
36
|
+
let currentSize = sizeMap.xs ?? (size as TypographySize | undefined);
|
|
35
37
|
|
|
36
38
|
const classes: string[] = [];
|
|
37
39
|
|
|
@@ -40,11 +42,16 @@ export function buildTypographyOverrides(opts: {
|
|
|
40
42
|
continue;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
if (varMap[bp] != null) {
|
|
46
|
+
currentVariant = varMap[bp];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (sizeMap[bp] != null) {
|
|
50
|
+
currentSize = sizeMap[bp];
|
|
51
|
+
}
|
|
45
52
|
|
|
46
|
-
if (
|
|
47
|
-
const key = `${String(
|
|
53
|
+
if (currentVariant && currentSize) {
|
|
54
|
+
const key = `${String(currentVariant)}.${String(currentSize)}`;
|
|
48
55
|
const cls = (
|
|
49
56
|
typographyAt as Record<
|
|
50
57
|
Exclude<BreakpointWithBase, 'xs'>,
|