namirasoft-site-react 1.3.451 → 1.3.453
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,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IBaseComponentProps } from '../
|
|
2
|
+
import { IBaseComponentProps } from '../props/IBaseComponentProps';
|
|
3
3
|
interface NSAccordionProps extends IBaseComponentProps {
|
|
4
4
|
getHeader: () => React.ReactNode;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare
|
|
7
|
+
export declare function NSAccordion(props: NSAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import Styles from "./NSAccordion.module.css";
|
|
4
|
-
export
|
|
4
|
+
export function NSAccordion(props) {
|
|
5
5
|
var _a;
|
|
6
6
|
const [isOpen, setIsOpen] = useState(false);
|
|
7
7
|
const [height, setHeight] = useState(0);
|
|
@@ -23,5 +23,6 @@ export const NSAccordion = (props) => {
|
|
|
23
23
|
overflow: 'hidden',
|
|
24
24
|
transition: 'height 0.3s ease',
|
|
25
25
|
}, children: props.children })] }));
|
|
26
|
-
}
|
|
26
|
+
}
|
|
27
|
+
;
|
|
27
28
|
//# sourceMappingURL=NSAccordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSAccordion.js","sourceRoot":"","sources":["../../src/components/NSAccordion.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAQ7C,MAAM,
|
|
1
|
+
{"version":3,"file":"NSAccordion.js","sourceRoot":"","sources":["../../src/components/NSAccordion.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
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.3.
|
|
11
|
+
"version": "1.3.453",
|
|
12
12
|
"author": "Amir Abolhasani, Alireza Esmaeeli, Sepideh Mazloumi, Hooman Shashaeh, Mehrab Bahramian",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect } from 'react';
|
|
2
|
-
import { IBaseComponentProps } from '../
|
|
2
|
+
import { IBaseComponentProps } from '../props/IBaseComponentProps';
|
|
3
3
|
import Styles from "./NSAccordion.module.css"
|
|
4
4
|
|
|
5
5
|
interface NSAccordionProps extends IBaseComponentProps
|
|
@@ -8,7 +8,7 @@ interface NSAccordionProps extends IBaseComponentProps
|
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export
|
|
11
|
+
export function NSAccordion(props: NSAccordionProps)
|
|
12
12
|
{
|
|
13
13
|
const [isOpen, setIsOpen] = useState(false);
|
|
14
14
|
const [height, setHeight] = useState<number | 'auto'>(0);
|