@udixio/ui-react 2.8.1 → 2.8.3
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 +17 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +319 -321
- package/dist/lib/components/FabMenu.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/lib/components/FabMenu.tsx +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FabMenu.d.ts","sourceRoot":"","sources":["../../../src/lib/components/FabMenu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"FabMenu.d.ts","sourceRoot":"","sources":["../../../src/lib/components/FabMenu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUhD;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,+IAerB,UAAU,CAAC,gBAAgB,CAAC,4CAoM9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@udixio/ui-react",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"react": "^19.1.1",
|
|
38
38
|
"react-dom": "^19.1.1",
|
|
39
|
-
"@udixio/theme": "2.1.
|
|
40
|
-
"@udixio/tailwind": "2.4.
|
|
39
|
+
"@udixio/theme": "2.1.3",
|
|
40
|
+
"@udixio/tailwind": "2.4.1"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
|
@@ -9,6 +9,7 @@ import { classNames } from '../utils';
|
|
|
9
9
|
import { IconButton } from './IconButton';
|
|
10
10
|
import { faClose } from '@fortawesome/free-solid-svg-icons';
|
|
11
11
|
import { AnimatePresence, motion } from 'motion/react';
|
|
12
|
+
import { v4 } from 'uuid';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Floating action buttons (FABs) help people take primary actions
|
|
@@ -64,8 +65,6 @@ export const FabMenu = ({
|
|
|
64
65
|
|
|
65
66
|
const MotionFab = motion.create(Fab);
|
|
66
67
|
const MotionIconButton = motion.create(IconButton);
|
|
67
|
-
const MotionButton = motion.create(Button);
|
|
68
|
-
|
|
69
68
|
const renderFab = (props) => (
|
|
70
69
|
<MotionFab
|
|
71
70
|
icon={icon}
|
|
@@ -88,6 +87,8 @@ export const FabMenu = ({
|
|
|
88
87
|
/>
|
|
89
88
|
);
|
|
90
89
|
|
|
90
|
+
const [uuid] = useState(v4());
|
|
91
|
+
|
|
91
92
|
return (
|
|
92
93
|
<div className={styles.fabMenu} ref={resolvedRef} {...restProps}>
|
|
93
94
|
<AnimatePresence>
|
|
@@ -179,13 +180,13 @@ export const FabMenu = ({
|
|
|
179
180
|
renderFab({
|
|
180
181
|
className: '',
|
|
181
182
|
layout: true,
|
|
182
|
-
layoutId: 'fab-menu',
|
|
183
|
+
layoutId: 'fab-menu' + uuid,
|
|
183
184
|
})}
|
|
184
185
|
{open && (
|
|
185
186
|
<>
|
|
186
187
|
<MotionIconButton
|
|
187
188
|
layout
|
|
188
|
-
layoutId=
|
|
189
|
+
layoutId={'fab-menu' + uuid}
|
|
189
190
|
variant={'filled'}
|
|
190
191
|
className={() => ({
|
|
191
192
|
iconButton: classNames('', {
|