@geoinsight/react-components 0.2.2 → 0.2.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/dist/cjs/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
|
|
1
|
+
/* @import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
--color-primary-700: #3b7e25;
|
|
113
113
|
--color-primary-800: #2c5f1c;
|
|
114
114
|
--color-primary-900: #1e3f12;
|
|
115
|
-
}
|
|
115
|
+
} */
|
|
116
116
|
.button {
|
|
117
117
|
align-items: center;
|
|
118
118
|
border-radius: var(--spacing-32);
|
package/dist/cjs/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var tb = require('react-icons/tb');
|
|
|
7
7
|
|
|
8
8
|
const Anchor = ({ Custom, children, ...rest }) => Custom ? jsxRuntime.jsx(Custom, { ...rest, children: children }) : jsxRuntime.jsx("a", { ...rest, children: children });
|
|
9
9
|
function Button({ children = "Click me", className = "", icon = undefined, isNewWindow = false, mode = "primary", size = "medium", as = "button", CustomAnchor, ...rest }) {
|
|
10
|
-
return as === "link" ? (jsxRuntime.jsxs(Anchor, { Custom: CustomAnchor, ...(isNewWindow && { target: "_blank" }), className: clsx(
|
|
10
|
+
return as === "link" ? (jsxRuntime.jsxs(Anchor, { Custom: CustomAnchor, ...(isNewWindow && { target: "_blank" }), className: clsx("button", mode === "secondary" ? `button button__${mode}` : "button__link", `button__${size}`, className), ...rest, children: [children, icon] })) : (jsxRuntime.jsxs("button", { className: clsx("button", `button__${mode}`, `button__${size}`, className), ...rest, children: [children, icon] }));
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
function Input({ className = "", classNameGroup = "", errorMessage = "", inputRef, styleGroup, ...rest }) {
|
package/dist/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
|
|
1
|
+
/* @import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
--color-primary-700: #3b7e25;
|
|
113
113
|
--color-primary-800: #2c5f1c;
|
|
114
114
|
--color-primary-900: #1e3f12;
|
|
115
|
-
}
|
|
115
|
+
} */
|
|
116
116
|
.button {
|
|
117
117
|
align-items: center;
|
|
118
118
|
border-radius: var(--spacing-32);
|
package/dist/esm/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { TbArrowsDiagonal2 } from 'react-icons/tb';
|
|
|
5
5
|
|
|
6
6
|
const Anchor = ({ Custom, children, ...rest }) => Custom ? jsx(Custom, { ...rest, children: children }) : jsx("a", { ...rest, children: children });
|
|
7
7
|
function Button({ children = "Click me", className = "", icon = undefined, isNewWindow = false, mode = "primary", size = "medium", as = "button", CustomAnchor, ...rest }) {
|
|
8
|
-
return as === "link" ? (jsxs(Anchor, { Custom: CustomAnchor, ...(isNewWindow && { target: "_blank" }), className: clsx(
|
|
8
|
+
return as === "link" ? (jsxs(Anchor, { Custom: CustomAnchor, ...(isNewWindow && { target: "_blank" }), className: clsx("button", mode === "secondary" ? `button button__${mode}` : "button__link", `button__${size}`, className), ...rest, children: [children, icon] })) : (jsxs("button", { className: clsx("button", `button__${mode}`, `button__${size}`, className), ...rest, children: [children, icon] }));
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
function Input({ className = "", classNameGroup = "", errorMessage = "", inputRef, styleGroup, ...rest }) {
|
package/package.json
CHANGED
|
Binary file
|