@geoinsight/react-components 0.2.2 → 0.2.4

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.
@@ -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(className, "button", mode === "secondary" ? `button button__${mode}` : "button__link", `button__${size}`), ...rest, children: [children, icon] })) : (jsxRuntime.jsxs("button", { className: clsx(className, "button", `button__${mode}`, `button__${size}`), ...rest, children: [children, icon] }));
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 }) {
@@ -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(className, "button", mode === "secondary" ? `button button__${mode}` : "button__link", `button__${size}`), ...rest, children: [children, icon] })) : (jsxs("button", { className: clsx(className, "button", `button__${mode}`, `button__${size}`), ...rest, children: [children, icon] }));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geoinsight/react-components",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "This library is the main UI component library for geoinsight",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -13,6 +13,7 @@
13
13
  "build-storybook": "storybook build"
14
14
  },
15
15
  "dependencies": {
16
+ "@geoinsight/react-components": "^0.2.3",
16
17
  "@types/react": "^18.0.27",
17
18
  "clsx": "^1.2.1",
18
19
  "react": "^18.2.0",