From 0f819b9960e45f43992af7a845037abf0328653d Mon Sep 17 00:00:00 2001 From: Jon Thompson Date: Sat, 2 Jun 2018 19:36:43 +0100 Subject: [PATCH 1/3] build(rollup): remove css modules support --- rollup.config.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 805307cb..7a9d5869 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -12,23 +12,23 @@ export default { output: [ { file: pkg.main, - format: "cjs" + format: "cjs", }, { file: pkg.module, - format: "es" - } + format: "es", + }, ], plugins: [ external(), postcss({ - modules: true + modules: false, }), url(), babel({ - exclude: "node_modules/**" + exclude: "node_modules/**", }), resolve(), - commonjs() - ] + commonjs(), + ], }; From 4abb1e1bfd9fadebd3cc14f7a6e02a99ec37f79d Mon Sep 17 00:00:00 2001 From: Jon Thompson Date: Sat, 2 Jun 2018 19:37:53 +0100 Subject: [PATCH 2/3] fix(): remove css modules style imports --- src/components/Tabs/Tabs.react.js | 4 ++-- src/components/Tooltip/Tooltip.react.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Tabs/Tabs.react.js b/src/components/Tabs/Tabs.react.js index 3f6beba0..e502d3cc 100644 --- a/src/components/Tabs/Tabs.react.js +++ b/src/components/Tabs/Tabs.react.js @@ -6,7 +6,7 @@ import Tab from "./Tab.react"; import TabbedContainer from "./TabbedContainer.react"; import TabbedHeader from "./TabbedHeader.react"; -import styles from "./Tabs.css"; +import "./Tabs.css"; type Props = {| +initialTab: string, @@ -33,7 +33,7 @@ class Tabs extends React.PureComponent { > {children} -
+
{children} diff --git a/src/components/Tooltip/Tooltip.react.js b/src/components/Tooltip/Tooltip.react.js index ae8169cc..43047723 100644 --- a/src/components/Tooltip/Tooltip.react.js +++ b/src/components/Tooltip/Tooltip.react.js @@ -4,7 +4,7 @@ import * as React from "react"; import cn from "classnames"; import { Manager, Placement, Reference, Popper } from "react-popper"; import type { PopperChildrenProps, ReferenceChildrenProps } from "react-popper"; -import styles from "./Tooltip.css"; +import "./Tooltip.css"; type Props = {| /** @@ -58,8 +58,8 @@ class Tooltip extends React.Component { const arrowClasses = cn( "arrow", placement === "top" || placement === "bottom" - ? styles["tbr-arrow-vertical"] - : styles["tbr-arrow-horizontal"] + ? "tbr-arrow-vertical" + : "tbr-arrow-horizontal" ); return ( From b7bc88f284e4ad4e5c36144de2b796c410fa6834 Mon Sep 17 00:00:00 2001 From: Jon Thompson Date: Sat, 2 Jun 2018 19:41:24 +0100 Subject: [PATCH 3/3] docs(): rebuild docs --- example/public/documentation/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/public/documentation/index.html b/example/public/documentation/index.html index a67f8b4d..7c0292e5 100644 --- a/example/public/documentation/index.html +++ b/example/public/documentation/index.html @@ -1 +1 @@ -Tabler React Style Guide
+Tabler React Style Guide
\ No newline at end of file