@dtdot/lego 2.0.0-35 → 2.0.0-36
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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
const FloatingActionContainer = styled.div `
|
|
4
|
+
position: sticky;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
background-color: ${(props) => props.theme.colours.background};
|
|
7
|
+
`;
|
|
8
|
+
const FloatingAction = ({ children }) => {
|
|
9
|
+
return React.createElement(FloatingActionContainer, null, children);
|
|
10
|
+
};
|
|
11
|
+
export default FloatingAction;
|
package/build/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { default as Checklist } from './components/Checklist/Checklist.component
|
|
|
14
14
|
export { default as ControlGroup } from './components/ControlGroup/ControlGroup.component';
|
|
15
15
|
export { default as ControlLine } from './components/ControlLine/ControlLine.component';
|
|
16
16
|
export { default as FancyCheckbox } from './components/FancyCheckbox/FancyCheckbox.component';
|
|
17
|
+
export { default as FloatingAction } from './components/FloatingAction/FloatingAction.component';
|
|
17
18
|
export { default as Form } from './components/Form/Form.component';
|
|
18
19
|
export { default as Notification } from './components/Notification/Notification.component';
|
|
19
20
|
export { default as Notifications } from './components/Notifications/Notifications.component';
|
package/build/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export { default as Checklist } from './components/Checklist/Checklist.component
|
|
|
14
14
|
export { default as ControlGroup } from './components/ControlGroup/ControlGroup.component';
|
|
15
15
|
export { default as ControlLine } from './components/ControlLine/ControlLine.component';
|
|
16
16
|
export { default as FancyCheckbox } from './components/FancyCheckbox/FancyCheckbox.component';
|
|
17
|
+
export { default as FloatingAction } from './components/FloatingAction/FloatingAction.component';
|
|
17
18
|
export { default as Form } from './components/Form/Form.component';
|
|
18
19
|
export { default as Notification } from './components/Notification/Notification.component';
|
|
19
20
|
export { default as Notifications } from './components/Notifications/Notifications.component';
|