@pipelinesolucoes/form 1.2.0-beta.3 → 1.2.0-beta.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.
@@ -15,8 +15,8 @@ export interface FormLoginProps extends ColorProps, BorderProps, ButtonProps, Fi
15
15
  variantButton?: TypographyVariant;
16
16
  color_message_sucess: string;
17
17
  color_message_erro: string;
18
- colorLink: string;
19
- divider: string;
18
+ colorLink?: string;
19
+ divider?: string;
20
20
  children?: React.ReactNode;
21
21
  onClick?: (data: {
22
22
  email: string;
@@ -11,8 +11,8 @@ export interface FormSignUpProps extends ColorProps, BorderProps, ButtonProps, F
11
11
  /** Cores padrão para mensagem (caso o pai não retorne color no ClickResult) */
12
12
  color_message_sucess: string;
13
13
  color_message_erro: string;
14
- colorLink: string;
15
- divider: string;
14
+ colorLink?: string;
15
+ divider?: string;
16
16
  urlLogin: string;
17
17
  children?: React.ReactNode;
18
18
  /**
@@ -1,7 +1,7 @@
1
1
  export declare const LinkFormStyled: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "href" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "loading" | "loadingIndicator" | "loadingPosition" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
2
2
  width?: string;
3
3
  height?: string;
4
- text_color: string;
4
+ text_color?: string;
5
5
  margin?: string;
6
6
  font_size?: string;
7
7
  }, {}, {}>;
@@ -2,7 +2,7 @@ import { Button, styled } from "@mui/material";
2
2
  export const LinkFormStyled = styled(Button, {
3
3
  shouldForwardProp: (prop) => !['width', 'height', 'text_color', 'margin', 'font_size'].includes(prop),
4
4
  })(({ width = 'auto', height = 'auto', text_color, margin = 0 }) => ({
5
- color: text_color,
5
+ color: text_color !== null && text_color !== void 0 ? text_color : '#000',
6
6
  width: width,
7
7
  height: height,
8
8
  textTransform: 'none',
@@ -1 +1 @@
1
- {"version":3,"file":"LinkFormStyled.js","sourceRoot":"","sources":["../../../src/components/style/LinkFormStyled.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE;IAC3C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,IAAc,CAAC;CACrF,CAAC,CACD,CAAC,EAAE,KAAK,GAAC,MAAM,EAAE,MAAM,GAAC,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAE7D,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM;IACd,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,GAAG;IACZ,SAAS,EAAE,MAAM;IACjB,MAAM,EAAE,MAAM;CACf,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"LinkFormStyled.js","sourceRoot":"","sources":["../../../src/components/style/LinkFormStyled.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE;IAC3C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,IAAc,CAAC;CACrF,CAAC,CACD,CAAC,EAAE,KAAK,GAAC,MAAM,EAAE,MAAM,GAAC,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAE7D,KAAK,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,MAAM;IAC3B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM;IACd,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,GAAG;IACZ,SAAS,EAAE,MAAM;IACjB,MAAM,EAAE,MAAM;CACf,CAAC,CAAC,CAAC"}
package/dist/theme.js CHANGED
@@ -3,6 +3,33 @@ const forms = {
3
3
  notification: {
4
4
  background: '#fff',
5
5
  },
6
+ login: {
7
+ background: 'linear-gradient(180deg, white, #d1e6ff)',
8
+ borderRadius: "24px",
9
+ divider: '#8c8c8c',
10
+ link: {
11
+ color: '#216fed',
12
+ },
13
+ field: {
14
+ background: '#fff',
15
+ backgroundDisabled: "#9CA3AF",
16
+ color: "#000",
17
+ colorFocused: "#000",
18
+ colorDisabled: "#9CA3AF",
19
+ borderRadius: "10px",
20
+ boxShadow: "none",
21
+ borderColor: "#ccc",
22
+ padding: "4px 8px",
23
+ },
24
+ button: {
25
+ background: "#216fed",
26
+ backgroundHover: "#005ce3",
27
+ color: "#fff",
28
+ colorHover: "#fff",
29
+ borderRadius: "9999px",
30
+ padding: "8px 24px",
31
+ }
32
+ },
6
33
  field: {
7
34
  background: '#fff',
8
35
  backgroundDisabled: "#9CA3AF",
package/dist/theme.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"AA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