diff --git a/.cache/325c8f456729b912b0d2134054eb7448-dfeeb2271cc2857eb0a45a5003c8bbee b/.cache/325c8f456729b912b0d2134054eb7448-dfeeb2271cc2857eb0a45a5003c8bbee deleted file mode 100644 index 7c41cdc9..00000000 --- a/.cache/325c8f456729b912b0d2134054eb7448-dfeeb2271cc2857eb0a45a5003c8bbee +++ /dev/null @@ -1 +0,0 @@ -{"value":{"success":true,"data":{"latest":{"version":"4.0.0","info":{"plain":"- upgrade webpack & babel to latest\n- new addParameters and third argument to .add to pass data to addons\n- added the ability to theme storybook\n- improved ui for mobile devices\n- improved performance of addon-knobs"}}},"time":1543343219209},"type":"Object"} \ No newline at end of file diff --git a/package.json b/package.json index 42b70930..db23c8c2 100644 --- a/package.json +++ b/package.json @@ -29,13 +29,13 @@ "interact.js": "^1.2.8", "moment": "^2.22.2", "raw-loader": "0.5.1", + "react-accessible-tooltip": "^2.0.3", "react-collapse": "^4.0.3", "react-custom-scrollbars": "^4.2.1", "react-day-picker": "^7.1.10", "react-height": "^3.0.0", "react-modal": "^3.5.1", "react-motion": "^0.5.2", - "react-portal-tooltip": "^2.4.3", "react-scrollbar": "^0.5.4", "react-slider": "0.11.2", "react-tabs": "2.3.0", diff --git a/src/Checkbox/checkbox.stories.js b/src/Checkbox/checkbox.stories.js index 128f2852..0f4e0bb7 100644 --- a/src/Checkbox/checkbox.stories.js +++ b/src/Checkbox/checkbox.stories.js @@ -10,3 +10,35 @@ storiesOf("Checkbox", module).add("with text", () => ( storiesOf("Checkbox", module).add("already checked", () => ( )); + +storiesOf("Checkbox", module).add("with label and tooltip", () => ( + +)) + + + +// -------- CHECKBOX AVAILABLE PROPS ------------- + +// Checkbox.propTypes = { +// value: PropTypes.bool.isRequired, +// labelPlace: PropTypes.oneOf(["left", "right"]), +// size: PropTypes.number, +// checkBoxStyle: PropTypes.object, +// label: PropTypes.string, +// onChange: PropTypes.func, +// enabled: PropTypes.bool, +// tooltipMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.array]), +// tooltipPlace: PropTypes.string +// }; + +// Checkbox.defaultProps = { +// enabled: true, +// size: 13, +// labelPlace: "right" +// }; \ No newline at end of file diff --git a/src/Label/label.stories.js b/src/Label/label.stories.js index e4d3e79a..59946c10 100644 --- a/src/Label/label.stories.js +++ b/src/Label/label.stories.js @@ -2,4 +2,79 @@ import React from "react"; import { storiesOf } from "@storybook/react"; import Label from "./index"; -storiesOf("Label", module).add("with content", () =>