@udixio/ui-react 2.8.1 → 2.8.2
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 +10 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +256 -256
- package/dist/lib/components/FabMenu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/lib/components/FabMenu.tsx +5 -2
|
@@ -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,4CAsM9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -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
|
|
@@ -88,6 +89,8 @@ export const FabMenu = ({
|
|
|
88
89
|
/>
|
|
89
90
|
);
|
|
90
91
|
|
|
92
|
+
const [uuid] = useState(v4());
|
|
93
|
+
|
|
91
94
|
return (
|
|
92
95
|
<div className={styles.fabMenu} ref={resolvedRef} {...restProps}>
|
|
93
96
|
<AnimatePresence>
|
|
@@ -179,13 +182,13 @@ export const FabMenu = ({
|
|
|
179
182
|
renderFab({
|
|
180
183
|
className: '',
|
|
181
184
|
layout: true,
|
|
182
|
-
layoutId: 'fab-menu',
|
|
185
|
+
layoutId: 'fab-menu' + uuid,
|
|
183
186
|
})}
|
|
184
187
|
{open && (
|
|
185
188
|
<>
|
|
186
189
|
<MotionIconButton
|
|
187
190
|
layout
|
|
188
|
-
layoutId=
|
|
191
|
+
layoutId={'fab-menu' + uuid}
|
|
189
192
|
variant={'filled'}
|
|
190
193
|
className={() => ({
|
|
191
194
|
iconButton: classNames('', {
|