ehscan-react-components 0.1.52 → 0.1.54
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/README.md +12 -4
- package/dist/Components.d.ts +1 -0
- package/dist/Components.js +1 -0
- package/dist/text/FoldedElement.d.ts +7 -0
- package/dist/text/FoldedElement.js +5 -0
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -11,10 +11,14 @@ This library is ideal for dashboards, admin panels, internal tools, and feature-
|
|
|
11
11
|
- [Drag And Drop](#drag-and-drop)
|
|
12
12
|
- [AddBox](#addbox)
|
|
13
13
|
- [Window](#window)
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
14
|
+
|
|
15
|
+
- Input
|
|
16
|
+
- textarea
|
|
17
|
+
- TextAreaDropDown
|
|
18
|
+
|
|
19
|
+
- Text or Content Elements
|
|
20
|
+
- TextElementStretch
|
|
21
|
+
- FoldedElement
|
|
18
22
|
|
|
19
23
|
## Installation
|
|
20
24
|
|
|
@@ -323,6 +327,10 @@ const WindowWrapper = ({ windowOpen, setWindowOpen }) => {
|
|
|
323
327
|
----
|
|
324
328
|
# Changelog
|
|
325
329
|
|
|
330
|
+
|
|
331
|
+
## [0.1.53] - 2025-12-16
|
|
332
|
+
- Added FoldedElement
|
|
333
|
+
|
|
326
334
|
## [0.1.51] - 2025-12-16
|
|
327
335
|
- Added TextElementStretch
|
|
328
336
|
|
package/dist/Components.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ export { DragAndDrop } from './dnd/DragAndDrop';
|
|
|
4
4
|
export { TextArea } from './text/TextArea';
|
|
5
5
|
export { TextElementStretch } from './text/TextElementStretch';
|
|
6
6
|
export { TextAreaDropDown } from './text/TextAreaDropDown';
|
|
7
|
+
export { FoldedElement } from './text/FoldedElement';
|
|
7
8
|
export { AddBox } from './AddBox';
|
|
8
9
|
export { useChangeAddBox } from './tools/useChangeAddBox';
|
package/dist/Components.js
CHANGED
|
@@ -5,5 +5,6 @@ export { DragAndDrop } from './dnd/DragAndDrop';
|
|
|
5
5
|
export { TextArea } from './text/TextArea';
|
|
6
6
|
export { TextElementStretch } from './text/TextElementStretch';
|
|
7
7
|
export { TextAreaDropDown } from './text/TextAreaDropDown';
|
|
8
|
+
export { FoldedElement } from './text/FoldedElement';
|
|
8
9
|
export { AddBox } from './AddBox';
|
|
9
10
|
export { useChangeAddBox } from './tools/useChangeAddBox';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
3
|
+
export const FoldedElement = ({ folded, children }) => {
|
|
4
|
+
return (_jsx(AnimatePresence, { initial: false, children: !folded && (_jsx(motion.div, { initial: { height: 0, opacity: 0 }, animate: { height: "auto", opacity: 1 }, exit: { height: 0, opacity: 0 }, transition: { duration: 0.3, ease: "easeInOut" }, style: { overflow: "hidden" }, children: children }, "content")) }));
|
|
5
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ehscan-react-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"description": "components",
|
|
5
5
|
"main": "dist/Components.js",
|
|
6
6
|
"types": "dist/Components.d.ts",
|
|
@@ -31,5 +31,8 @@
|
|
|
31
31
|
"glob": "8",
|
|
32
32
|
"minimatch": "5",
|
|
33
33
|
"typescript": "^5.6.3"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"framer-motion": "^12.23.26"
|
|
34
37
|
}
|
|
35
38
|
}
|