@gnist/design-system 4.1.1 → 4.2.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
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
|
+
## [4.2.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@4.1.1...@gnist/design-system@4.2.0) (2025-10-03)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Export subtypes of InputFieldValidity ([a93e6c1](https://github.com/mollerdigital/design-system-design-system/commit/a93e6c13aaa8e87f8b9b864ff8a35fa283f99bbc))
|
|
11
|
+
|
|
6
12
|
## [4.1.1](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@4.1.0...@gnist/design-system@4.1.1) (2025-09-30)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -3,9 +3,17 @@ export type ValidityConfig = {
|
|
|
3
3
|
};
|
|
4
4
|
export type InputFieldValidity<TOptions extends ValidityConfig = {
|
|
5
5
|
errorMsgRequired: true;
|
|
6
|
-
}> =
|
|
6
|
+
}> = InputFieldValidityNone | InputFieldValiditySuccess | InputFieldValidityError<TOptions>;
|
|
7
|
+
export type InputFieldValidityNone = {
|
|
7
8
|
type: "none";
|
|
8
|
-
}
|
|
9
|
+
};
|
|
10
|
+
export type InputFieldValiditySuccess = {
|
|
11
|
+
type: "success";
|
|
12
|
+
message?: string;
|
|
13
|
+
};
|
|
14
|
+
export type InputFieldValidityError<TOptions extends ValidityConfig = {
|
|
15
|
+
errorMsgRequired: true;
|
|
16
|
+
}> = TOptions extends {
|
|
9
17
|
errorMsgRequired: true;
|
|
10
18
|
} ? {
|
|
11
19
|
type: "error";
|
|
@@ -13,8 +21,5 @@ export type InputFieldValidity<TOptions extends ValidityConfig = {
|
|
|
13
21
|
} : {
|
|
14
22
|
type: "error";
|
|
15
23
|
message?: string;
|
|
16
|
-
}) | {
|
|
17
|
-
type: "success";
|
|
18
|
-
message?: string;
|
|
19
24
|
};
|
|
20
25
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/building-blocks/inputs/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAAE,gBAAgB,EAAE,OAAO,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,kBAAkB,CAC1B,QAAQ,SAAS,cAAc,GAAG;IAAE,gBAAgB,EAAE,IAAI,CAAA;CAAE,IAE1D;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/building-blocks/inputs/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAAE,gBAAgB,EAAE,OAAO,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,kBAAkB,CAC1B,QAAQ,SAAS,cAAc,GAAG;IAAE,gBAAgB,EAAE,IAAI,CAAA;CAAE,IAE1D,sBAAsB,GACtB,yBAAyB,GACzB,uBAAuB,CAAC,QAAQ,CAAC,CAAC;AAExC,MAAM,MAAM,sBAAsB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AACtD,MAAM,MAAM,yBAAyB,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC9E,MAAM,MAAM,uBAAuB,CAC/B,QAAQ,SAAS,cAAc,GAAG;IAAE,gBAAgB,EAAE,IAAI,CAAA;CAAE,IAC5D,QAAQ,SAAS;IAAE,gBAAgB,EAAE,IAAI,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.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": "435c57531eeb978ac1dd0a7127c4918106c5d215"
|
|
106
106
|
}
|