pipesol-button 1.0.14-beta.3 → 1.0.14-beta.5

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,7 +1,7 @@
1
1
  import React from "react";
2
- import { ButtonKind } from "@/types/ButtonKind";
2
+ import { ButtonKind } from "../types/ButtonKind";
3
3
  import { TypographyVariant } from "@mui/material/styles";
4
- import { CommonStyleProps } from "@/types/style/CommonStyleProps";
4
+ import { CommonStyleProps } from "../types/style/CommonStyleProps";
5
5
  export interface ActionButtonProps extends CommonStyleProps {
6
6
  kind?: ButtonKind;
7
7
  text: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TypographyVariant } from '@mui/material/styles';
3
3
  import { ButtonKind } from '../types/ButtonKind';
4
- import { CommonStyleProps } from '@/types/style/CommonStyleProps';
4
+ import { CommonStyleProps } from "../types/style/CommonStyleProps";
5
5
  interface NavigationButtonProps extends CommonStyleProps {
6
6
  kind?: ButtonKind;
7
7
  variant?: TypographyVariant;
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
2
  import { TypographyVariant } from '@mui/material/styles';
3
- import { LayoutProps } from '@/types/style/LayoutProps';
4
- import { ColorProps } from '@/types/style/ColorProps';
3
+ import { LayoutProps } from '../types/style/LayoutProps';
4
+ import { ColorProps } from '../types/style/ColorProps';
5
5
  export interface LinkStyleProps extends LayoutProps, ColorProps {
6
6
  textDecoration: 'none' | 'underline';
7
7
  }
8
8
  interface NavigationLinkProps extends LinkStyleProps {
9
9
  url: string;
10
10
  aria_label: string;
11
- text_decoration: 'none' | 'underline';
11
+ textDecoration: 'none' | 'underline';
12
12
  text: string;
13
13
  variant?: TypographyVariant;
14
14
  }
@@ -86,15 +86,15 @@ const ButtonStyled = styled('a', {
86
86
  * };
87
87
  * ```
88
88
  */
89
- const NavigationLink = ({ url, aria_label, background = 'transparent', backgroundHover, colorText, colorHover, text_decoration = 'none', width, margin = '0', padding = '0', text, variant = "body1", }) => {
89
+ const NavigationLink = ({ url, aria_label, background = 'transparent', backgroundHover, colorText, colorHover, textDecoration = 'none', width, margin = '0', padding = '0', text, variant = "body1", }) => {
90
90
  const backgroundColor = background;
91
91
  const backgroundColorHover = backgroundHover !== null && backgroundHover !== void 0 ? backgroundHover : backgroundColor;
92
92
  const color_hover = colorHover ? colorHover : (colorText !== null && colorText !== void 0 ? colorText : 'black');
93
93
  if (url.indexOf('http') != -1) {
94
- return (_jsx(ButtonStyled, { href: url, width: width, background: backgroundColor, backgroundHover: backgroundColorHover, colorText: colorText, colorHover: color_hover, padding: padding, margin: margin, textDecoration: text_decoration, "aria-label": aria_label, target: "_blank", rel: "noopener noreferrer", children: _jsx(Typography, { variant: variant, children: text }) }));
94
+ return (_jsx(ButtonStyled, { href: url, width: width, background: backgroundColor, backgroundHover: backgroundColorHover, colorText: colorText, colorHover: color_hover, padding: padding, margin: margin, textDecoration: textDecoration, "aria-label": aria_label, target: "_blank", rel: "noopener noreferrer", children: _jsx(Typography, { variant: variant, children: text }) }));
95
95
  }
96
96
  else {
97
- return (_jsx(ButtonStyled, { href: url, width: width, background: backgroundColor, backgroundHover: backgroundColorHover, colorText: colorText, colorHover: color_hover, padding: padding, margin: margin, "aria-label": aria_label, textDecoration: text_decoration, children: _jsx(Typography, { variant: variant, children: text }) }));
97
+ return (_jsx(ButtonStyled, { href: url, width: width, background: backgroundColor, backgroundHover: backgroundColorHover, colorText: colorText, colorHover: color_hover, padding: padding, margin: margin, "aria-label": aria_label, textDecoration: textDecoration, children: _jsx(Typography, { variant: variant, children: text }) }));
98
98
  }
99
99
  };
100
100
  export default NavigationLink;
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationLink.js","sourceRoot":"","sources":["../../src/components/NavigationLink.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,MAAM,EAAqB,MAAM,sBAAsB,CAAC;AAGjE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,MA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