@gnist/design-system 1.0.4 → 2.0.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,26 @@
|
|
|
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.0.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@1.0.5...@gnist/design-system@2.0.0) (2025-01-22)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* Package is no longer compatible with React 17. Please upgrade to React 18 to use this package.
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* Add react18 compatibility ([2a3df56](https://github.com/mollerdigital/design-system-design-system/commit/2a3df56ab43f372d8498899eca03cb21548f247e))
|
|
15
|
+
|
|
16
|
+
### Miscellaneous Chores
|
|
17
|
+
|
|
18
|
+
* Bump design-system to React 18 ([13d5ac1](https://github.com/mollerdigital/design-system-design-system/commit/13d5ac134946aee318d350cf86f78267d7f2a127))
|
|
19
|
+
|
|
20
|
+
## [1.0.5](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@1.0.4...@gnist/design-system@1.0.5) (2025-01-22)
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* expanded prop does not exist on detail in Accordion ([0909d53](https://github.com/mollerdigital/design-system-design-system/commit/0909d532955904f8ef24394922cdfec4858e191d))
|
|
25
|
+
|
|
6
26
|
## [1.0.4](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@1.0.3...@gnist/design-system@1.0.4) (2025-01-20)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @gnist/design-system
|
|
@@ -13,9 +13,9 @@ require("classnames");
|
|
|
13
13
|
require("../../../foundation/logos/Logo.css.cjs");
|
|
14
14
|
const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
15
15
|
const accordion_css = require("./accordion.css.cjs");
|
|
16
|
-
const AccordionElement = React.forwardRef(function AccordionElement2({ head, children, ...props }, ref) {
|
|
16
|
+
const AccordionElement = React.forwardRef(function AccordionElement2({ head, expanded, children, ...props }, ref) {
|
|
17
17
|
const headElement = typeof head === "string" ? jsxRuntime.jsx(index.Heading3Text, { className: atoms_css_js.atoms({ typography: "heading3-small" }), children: head }) : head;
|
|
18
|
-
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("details", { ...props, open:
|
|
18
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("details", { ...props, open: expanded, ref, children: [jsxRuntime.jsxs("summary", { className: accordion_css.head, children: [jsxRuntime.jsx("div", { className: accordion_css.headBackground }), headElement, jsxRuntime.jsx(Icon.Icon, { icon: "expand_more" })] }), jsxRuntime.jsx("div", { className: accordion_css.body, children })] }) });
|
|
19
19
|
});
|
|
20
20
|
const Accordion = componentUtils.component("Accordion", accordion_css.accordionRecipe, AccordionElement);
|
|
21
21
|
exports.Accordion = Accordion;
|
|
@@ -11,9 +11,9 @@ import "classnames";
|
|
|
11
11
|
import "../../../foundation/logos/Logo.css.js";
|
|
12
12
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
13
13
|
import { head, headBackground, body, accordionRecipe } from "./accordion.css.js";
|
|
14
|
-
const AccordionElement = forwardRef(function AccordionElement2({ head: head$1, children, ...props }, ref) {
|
|
14
|
+
const AccordionElement = forwardRef(function AccordionElement2({ head: head$1, expanded, children, ...props }, ref) {
|
|
15
15
|
const headElement = typeof head$1 === "string" ? jsx(Heading3Text, { className: atoms({ typography: "heading3-small" }), children: head$1 }) : head$1;
|
|
16
|
-
return jsx(Fragment, { children: jsxs("details", { ...props, open:
|
|
16
|
+
return jsx(Fragment, { children: jsxs("details", { ...props, open: expanded, ref, children: [jsxs("summary", { className: head, children: [jsx("div", { className: headBackground }), headElement, jsx(Icon, { icon: "expand_more" })] }), jsx("div", { className: body, children })] }) });
|
|
17
17
|
});
|
|
18
18
|
const Accordion = component("Accordion", accordionRecipe, AccordionElement);
|
|
19
19
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@formkit/auto-animate": "^0.7.0",
|
|
51
|
-
"@gnist/component-utils": "
|
|
52
|
-
"@gnist/themes": "^
|
|
51
|
+
"@gnist/component-utils": "3.0.0",
|
|
52
|
+
"@gnist/themes": "^2.0.0",
|
|
53
53
|
"@mui/base": "^5.0.0-beta.36",
|
|
54
54
|
"@vanilla-extract/css": "^1.14.1",
|
|
55
55
|
"@vanilla-extract/css-utils": "^0.1.3",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"react-content-loader": "^6.2.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@types/react": "^
|
|
65
|
-
"@types/react-dom": "^
|
|
66
|
-
"react": "^
|
|
67
|
-
"react-dom": "^
|
|
64
|
+
"@types/react": "^18.0.0 || ^19.0.0",
|
|
65
|
+
"@types/react-dom": "^18.0.0 || ^19.0.0",
|
|
66
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
67
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@gnist/eslint-config": "0.0.0",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"globby": "^13.1.2",
|
|
91
91
|
"madge": "^6.1.0",
|
|
92
92
|
"prettier": "^2.7.1",
|
|
93
|
-
"react": "^
|
|
94
|
-
"react-dom": "^
|
|
93
|
+
"react": "^18.3.1",
|
|
94
|
+
"react-dom": "^18.3.1",
|
|
95
95
|
"rollup-plugin-copy": "^3.4.0",
|
|
96
96
|
"semver": "^7.5.2",
|
|
97
97
|
"svgo": "^2.8.0",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"optional": true
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "37c44e7b40b7e948c71648b419fa2a6bf8d9f850"
|
|
117
117
|
}
|