@xylabs/react-accordion 6.3.7 → 6.3.8
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { AccordionProps } from '@mui/material';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
|
+
|
|
4
4
|
type Override<T1, T2> = Omit<T1, keyof T2> & T2;
|
|
5
5
|
interface SimpleAccordionCardAdditionalProps extends AccordionProps {
|
|
6
6
|
description?: string;
|
|
@@ -14,12 +14,13 @@ interface SimpleAccordionCardAdditionalProps extends AccordionProps {
|
|
|
14
14
|
interface OptionalChildren {
|
|
15
15
|
children?: ReactNode;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
type SimpleAccordionCardProps = Override<SimpleAccordionCardAdditionalProps, OptionalChildren>;
|
|
18
18
|
interface AccordionGroupProps {
|
|
19
19
|
data?: SimpleAccordionCardProps[];
|
|
20
20
|
defaultExpandedName?: string;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
declare const AccordionGroup: React.FC<AccordionGroupProps>;
|
|
23
|
+
declare const SimpleAccordion: React.FC<SimpleAccordionCardProps>;
|
|
24
|
+
|
|
25
|
+
export { AccordionGroup, SimpleAccordion };
|
|
26
|
+
export type { SimpleAccordionCardProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/react-accordion",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.8",
|
|
4
4
|
"description": "Common React library for all XY Labs projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"utility",
|
|
@@ -26,30 +26,31 @@
|
|
|
26
26
|
"type": "module",
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
|
-
"types": "./dist/
|
|
29
|
+
"types": "./dist/browser/index.d.ts",
|
|
30
30
|
"default": "./dist/browser/index.mjs"
|
|
31
31
|
},
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"module": "./dist/browser/index.mjs",
|
|
35
|
-
"types": "dist/
|
|
35
|
+
"types": "dist/browser/index.d.ts",
|
|
36
36
|
"workspaces": [
|
|
37
37
|
"packages/*"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@xylabs/react-button": "^6.3.
|
|
40
|
+
"@xylabs/react-button": "^6.3.8"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@mui/icons-material": "^7.
|
|
44
|
-
"@mui/material": "^7.
|
|
43
|
+
"@mui/icons-material": "^7.2.0",
|
|
44
|
+
"@mui/material": "^7.2.0",
|
|
45
|
+
"@storybook/react-vite": "^9.0.16",
|
|
45
46
|
"@types/react": "^19.1.8",
|
|
46
|
-
"@xylabs/react-flexbox": "^6.3.
|
|
47
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
48
|
-
"@xylabs/tsconfig-react": "^
|
|
49
|
-
"knip": "^5.61.
|
|
47
|
+
"@xylabs/react-flexbox": "^6.3.8",
|
|
48
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.8",
|
|
49
|
+
"@xylabs/tsconfig-react": "^7.0.0-rc.8",
|
|
50
|
+
"knip": "^5.61.3",
|
|
50
51
|
"react": "^19.1.0",
|
|
51
52
|
"react-dom": "^19.1.0",
|
|
52
|
-
"storybook": "^9.0.
|
|
53
|
+
"storybook": "^9.0.16",
|
|
53
54
|
"typescript": "^5.8.3"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionGroup.d.ts","sourceRoot":"","sources":["../../src/AccordionGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAKnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,KAAK,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,CAAA;AAE/C,UAAU,kCAAmC,SAAQ,cAAc;IACjE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC,kCAAkC,EAAE,gBAAgB,CAAC,CAAA;AAErG,UAAU,mBAAmB;IAC3B,IAAI,CAAC,EAAE,wBAAwB,EAAE,CAAA;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAUxD,CAAA;AACD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAuC9D,CAAA"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|