@gnist/design-system 3.9.3 → 3.10.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 +6 -0
- package/dist/components/feedback/notifications/index.d.ts +1 -0
- package/dist/components/feedback/notifications/index.d.ts.map +1 -1
- package/dist/components/feedback/notifications/lozenge.css.cjs +15 -10
- package/dist/components/feedback/notifications/lozenge.css.d.ts +1 -1
- package/dist/components/feedback/notifications/lozenge.css.d.ts.map +1 -1
- package/dist/components/feedback/notifications/lozenge.css.js +15 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.10.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@3.9.3...@gnist/design-system@3.10.0) (2025-09-05)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* export LozengeColorVariants to consumers ([bd384ca](https://github.com/mollerdigital/design-system-design-system/commit/bd384cacfe737893fe50a30156974eb8d00e15fa))
|
|
11
|
+
|
|
6
12
|
## [3.9.3](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@3.9.2...@gnist/design-system@3.9.3) (2025-09-05)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -6,11 +6,20 @@ const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
|
6
6
|
const css = require("@vanilla-extract/css");
|
|
7
7
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
8
8
|
const recipes = require("@vanilla-extract/recipes");
|
|
9
|
-
const getColors = (variant) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const getColors = (variant) => {
|
|
10
|
+
if (variant === "neutral") {
|
|
11
|
+
return atoms_css_js.atoms({
|
|
12
|
+
backgroundColor: "background",
|
|
13
|
+
borderColor: "on-background",
|
|
14
|
+
color: "on-background"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return atoms_css_js.atoms({
|
|
18
|
+
backgroundColor: `${variant}-container`,
|
|
19
|
+
color: `on-${variant}-container`,
|
|
20
|
+
borderColor: `on-${variant}-container`
|
|
21
|
+
});
|
|
22
|
+
};
|
|
14
23
|
const largeBody = tokens_css_js.tokens.type.large.body;
|
|
15
24
|
const lozengeRecipe = recipes.recipe({
|
|
16
25
|
base: [
|
|
@@ -39,11 +48,7 @@ const lozengeRecipe = recipes.recipe({
|
|
|
39
48
|
success: getColors("success"),
|
|
40
49
|
warning: getColors("warning"),
|
|
41
50
|
error: getColors("error"),
|
|
42
|
-
neutral:
|
|
43
|
-
backgroundColor: "background",
|
|
44
|
-
borderColor: "on-background",
|
|
45
|
-
color: "on-background"
|
|
46
|
-
})
|
|
51
|
+
neutral: getColors("neutral")
|
|
47
52
|
},
|
|
48
53
|
density: {
|
|
49
54
|
compact: { fontSize: tokens_css_js.tokens.type.small.detail.fontSize },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ColorVariants = "primary" | "secondary" | "info" | "success" | "warning" | "error";
|
|
1
|
+
export type ColorVariants = "primary" | "secondary" | "info" | "success" | "warning" | "error" | "neutral";
|
|
2
2
|
export declare const lozengeRecipe: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
3
|
colorVariant: {
|
|
4
4
|
primary: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lozenge.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/notifications/lozenge.css.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,aAAa,GACnB,SAAS,GACT,WAAW,GACX,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"lozenge.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/notifications/lozenge.css.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,aAAa,GACnB,SAAS,GACT,WAAW,GACX,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,CAAC;AAmBhB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;EAsCxB,CAAC"}
|
|
@@ -4,11 +4,20 @@ import { tokens } from "@gnist/themes/tokens.css.js";
|
|
|
4
4
|
import { globalStyle } from "@vanilla-extract/css";
|
|
5
5
|
import { calc } from "@vanilla-extract/css-utils";
|
|
6
6
|
import { recipe } from "@vanilla-extract/recipes";
|
|
7
|
-
const getColors = (variant) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const getColors = (variant) => {
|
|
8
|
+
if (variant === "neutral") {
|
|
9
|
+
return atoms({
|
|
10
|
+
backgroundColor: "background",
|
|
11
|
+
borderColor: "on-background",
|
|
12
|
+
color: "on-background"
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return atoms({
|
|
16
|
+
backgroundColor: `${variant}-container`,
|
|
17
|
+
color: `on-${variant}-container`,
|
|
18
|
+
borderColor: `on-${variant}-container`
|
|
19
|
+
});
|
|
20
|
+
};
|
|
12
21
|
const largeBody = tokens.type.large.body;
|
|
13
22
|
const lozengeRecipe = recipe({
|
|
14
23
|
base: [
|
|
@@ -37,11 +46,7 @@ const lozengeRecipe = recipe({
|
|
|
37
46
|
success: getColors("success"),
|
|
38
47
|
warning: getColors("warning"),
|
|
39
48
|
error: getColors("error"),
|
|
40
|
-
neutral:
|
|
41
|
-
backgroundColor: "background",
|
|
42
|
-
borderColor: "on-background",
|
|
43
|
-
color: "on-background"
|
|
44
|
-
})
|
|
49
|
+
neutral: getColors("neutral")
|
|
45
50
|
},
|
|
46
51
|
density: {
|
|
47
52
|
compact: { fontSize: tokens.type.small.detail.fontSize },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"optional": true
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "f9dc0e36c17acc63190ff14f0e2f7dba96084c9e"
|
|
106
106
|
}
|