@grantbii/design-system 1.0.59 → 1.0.60

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.
@@ -11,5 +11,8 @@ type LinkButtonProps = {
11
11
  backgroundColor?: string;
12
12
  color?: string;
13
13
  };
14
+ /**
15
+ * A link that looks like a button
16
+ */
14
17
  declare const LinkButton: ({ href, target, disabled, ...contentProps }: LinkButtonProps) => import("react/jsx-runtime").JSX.Element;
15
18
  export default LinkButton;
@@ -12,6 +12,9 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import Link from "next/link";
14
14
  import { BaseButton } from "./shared";
15
+ /**
16
+ * A link that looks like a button
17
+ */
15
18
  const LinkButton = (_a) => {
16
19
  var { href, target, disabled } = _a, contentProps = __rest(_a, ["href", "target", "disabled"]);
17
20
  return disabled ? (_jsx(Content, Object.assign({}, contentProps))) : (_jsx(Link, { href: href, target: target, children: _jsx(Content, Object.assign({}, contentProps)) }));
@@ -1,3 +1,6 @@
1
1
  import { LoaderSizeProps } from "react-spinners/helpers/props";
2
+ /**
3
+ * The animation to show when loading the whole page
4
+ */
2
5
  declare const PageLoader: ({ color, size, ...restOfProps }: LoaderSizeProps) => import("react/jsx-runtime").JSX.Element;
3
6
  export default PageLoader;
@@ -13,16 +13,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { MoonLoader } from "react-spinners";
14
14
  import styled from "styled-components";
15
15
  import { Colors } from "../foundations";
16
+ /**
17
+ * The animation to show when loading the whole page
18
+ */
16
19
  const PageLoader = (_a) => {
17
20
  var { color = Colors.accent.blue1, size = 32 } = _a, restOfProps = __rest(_a, ["color", "size"]);
18
21
  return (_jsx(BasePageLoader, { children: _jsx(MoonLoader, Object.assign({ color: color, size: size }, restOfProps)) }));
19
22
  };
20
23
  export default PageLoader;
21
24
  const BasePageLoader = styled.div `
22
- display: flex;
23
- align-items: center;
24
- justify-content: center;
25
-
26
- width: 100%;
27
- height: 100%;
25
+ margin: auto;
28
26
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grantbii/design-system",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "description": "Grantbii's Design System",
5
5
  "homepage": "https://design.grantbii.com",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  import { Colors, Icons, LinkButton } from "@/.";
2
2
  const meta = {
3
- title: "Atoms/LinkButton",
3
+ title: "Atoms/Link Button",
4
4
  component: LinkButton,
5
5
  tags: ["autodocs"],
6
6
  parameters: {