@pipelinesolucoes/form 1.2.0-beta.2 → 1.2.0-beta.21

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.
Files changed (56) hide show
  1. package/dist/components/ChipList.d.ts +9 -0
  2. package/dist/components/ChipList.js +60 -0
  3. package/dist/components/ChipList.js.map +1 -0
  4. package/dist/components/SelectField.d.ts +73 -0
  5. package/dist/components/SelectField.js +142 -0
  6. package/dist/components/SelectField.js.map +1 -0
  7. package/dist/components/TextFieldPassword.d.ts +141 -43
  8. package/dist/components/TextFieldPassword.js +160 -98
  9. package/dist/components/TextFieldPassword.js.map +1 -1
  10. package/dist/components/TextFieldValidate.d.ts +85 -38
  11. package/dist/components/TextFieldValidate.js +102 -94
  12. package/dist/components/TextFieldValidate.js.map +1 -1
  13. package/dist/components/login/ClickResult.d.ts +11 -0
  14. package/dist/components/login/ClickResult.js +2 -0
  15. package/dist/components/login/ClickResult.js.map +1 -0
  16. package/dist/components/login/FormLogin.d.ts +113 -94
  17. package/dist/components/login/FormLogin.js +136 -141
  18. package/dist/components/login/FormLogin.js.map +1 -1
  19. package/dist/components/login/FormPasswordRecovery.d.ts +97 -89
  20. package/dist/components/login/FormPasswordRecovery.js +131 -124
  21. package/dist/components/login/FormPasswordRecovery.js.map +1 -1
  22. package/dist/components/login/FormSignUp.d.ts +114 -100
  23. package/dist/components/login/FormSignUp.js +138 -153
  24. package/dist/components/login/FormSignUp.js.map +1 -1
  25. package/dist/components/login/StyleLogin.d.ts +14 -0
  26. package/dist/components/login/StyleLogin.js +57 -0
  27. package/dist/components/login/StyleLogin.js.map +1 -0
  28. package/dist/components/recaptcha/RecaptchaForm.d.ts +7 -13
  29. package/dist/components/recaptcha/RecaptchaForm.js +26 -25
  30. package/dist/components/recaptcha/RecaptchaForm.js.map +1 -1
  31. package/dist/constant.d.ts +11 -0
  32. package/dist/constant.js +12 -0
  33. package/dist/constant.js.map +1 -0
  34. package/dist/index.d.ts +2 -0
  35. package/dist/index.js +2 -0
  36. package/dist/index.js.map +1 -1
  37. package/dist/{components/style → style}/ButtonFormStyled.d.ts +1 -1
  38. package/dist/{components/style → style}/ButtonFormStyled.js +6 -5
  39. package/dist/style/ButtonFormStyled.js.map +1 -0
  40. package/dist/{components/style → style}/LinkFormStyled.d.ts +3 -3
  41. package/dist/style/LinkFormStyled.js +16 -0
  42. package/dist/style/LinkFormStyled.js.map +1 -0
  43. package/dist/style/TextFieldStyle.d.ts +18 -0
  44. package/dist/style/TextFieldStyle.js +60 -0
  45. package/dist/style/TextFieldStyle.js.map +1 -0
  46. package/dist/theme.js +46 -18
  47. package/dist/theme.js.map +1 -1
  48. package/dist/tsconfig.tsbuildinfo +1 -1
  49. package/dist/types/FieldProps.d.ts +1 -0
  50. package/package.json +2 -2
  51. package/dist/components/recaptcha/FormStyled.d.ts +0 -30
  52. package/dist/components/recaptcha/FormStyled.js +0 -67
  53. package/dist/components/recaptcha/FormStyled.js.map +0 -1
  54. package/dist/components/style/ButtonFormStyled.js.map +0 -1
  55. package/dist/components/style/LinkFormStyled.js +0 -15
  56. package/dist/components/style/LinkFormStyled.js.map +0 -1
@@ -10,4 +10,5 @@ export interface FieldProps {
10
10
  borderColorField?: string;
11
11
  paddingField?: string;
12
12
  marginField?: string;
13
+ heightField?: string;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelinesolucoes/form",
3
- "version": "1.2.0-beta.2",
3
+ "version": "1.2.0-beta.21",
4
4
  "license": "UNLICENSED",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,7 @@
39
39
  "release-theme": "npm uninstall @pipelinesolucoes/theme && npm install @pipelinesolucoes/theme"
40
40
  },
41
41
  "dependencies": {
42
- "@pipelinesolucoes/theme": "^1.0.7-beta.0",
42
+ "@pipelinesolucoes/theme": "^1.0.7-beta.8",
43
43
  "react-google-recaptcha": "^3.1.0"
44
44
  },
45
45
  "peerDependencies": {
@@ -1,30 +0,0 @@
1
- interface TextFieldStyledProps {
2
- background_color: string;
3
- text_color: string;
4
- text_color_error: string;
5
- border_radius: string;
6
- width?: string;
7
- }
8
- export declare const TextFieldStyled: import("@emotion/styled").StyledComponent<{
9
- variant?: import("@mui/material").TextFieldVariants | undefined;
10
- } & Omit<import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps | import("@mui/material").StandardTextFieldProps, "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & TextFieldStyledProps, {}, {}>;
11
- interface TextFieldFixedSizeStyledProps {
12
- background_color: string;
13
- text_color: string;
14
- text_color_error: string;
15
- border_radius: string;
16
- }
17
- export declare const TextFieldFixedSizeStyled: import("@emotion/styled").StyledComponent<{
18
- variant?: import("@mui/material").TextFieldVariants | undefined;
19
- } & Omit<import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps | import("@mui/material").StandardTextFieldProps, "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & TextFieldFixedSizeStyledProps, {}, {}>;
20
- interface ButtonFormStyledProps {
21
- width: string;
22
- height: string;
23
- background_color: string;
24
- text_color: string;
25
- border_radius: string;
26
- border_color?: string;
27
- margin?: string;
28
- }
29
- export declare const ButtonFormStyled: 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> & ButtonFormStyledProps, {}, {}>;
30
- export {};
@@ -1,67 +0,0 @@
1
- import { Button } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
3
- import TextField from '@mui/material/TextField';
4
- export const TextFieldStyled = styled(TextField, {
5
- shouldForwardProp: (prop) => !['background_color', 'text_color', 'text_color_error', 'border_radius', 'width'].includes(prop),
6
- })(({ theme, background_color, text_color, text_color_error, border_radius, error, width = '100%' }) => ({
7
- '& .MuiInputLabel-root': {
8
- color: error ? text_color_error : text_color, // Label em vermelho em caso de erro
9
- },
10
- '& .MuiInputBase-input::placeholder': {
11
- color: error ? text_color_error : text_color, // Placeholder também em vermelho, opcional
12
- },
13
- '& .MuiInputBase-root': {
14
- backgroundColor: background_color,
15
- borderRadius: border_radius,
16
- color: text_color,
17
- },
18
- '& .MuiOutlinedInput-notchedOutline': {
19
- borderColor: error ? text_color_error : 'transparent', // Borda em vermelho em caso de erro
20
- },
21
- width: width,
22
- }));
23
- export const TextFieldFixedSizeStyled = styled(TextField, {
24
- shouldForwardProp: (prop) => !['background_color', 'text_color', 'text_color_error', 'border_radius'].includes(prop),
25
- })(({ theme, background_color, text_color, text_color_error, border_radius, error }) => ({
26
- '& .MuiInputLabel-root': {
27
- color: error ? text_color_error : text_color, // Label em vermelho em caso de erro
28
- },
29
- '& .MuiInputBase-input::placeholder': {
30
- color: error ? text_color_error : text_color, // Placeholder também em vermelho, opcional
31
- },
32
- '& .MuiInputBase-root': {
33
- transition: 'none !important',
34
- alignItems: 'flex-start',
35
- width: '100%',
36
- overflowY: 'auto',
37
- height: '150px',
38
- backgroundColor: background_color,
39
- borderRadius: border_radius,
40
- color: text_color,
41
- },
42
- '& .MuiOutlinedInput-notchedOutline': {
43
- borderColor: error ? text_color_error : 'transparent', // Borda em vermelho em caso de erro
44
- },
45
- }));
46
- export const ButtonFormStyled = styled(Button, {
47
- shouldForwardProp: (prop) => !['width', 'height', 'background_color', 'text_color',
48
- 'border_radius', 'border_color', 'margin'].includes(prop),
49
- })(({ theme, width, height, background_color, text_color, border_radius, border_color = 'transparent', margin = '0' }) => ({
50
- color: text_color,
51
- backgroundColor: background_color,
52
- borderRadius: border_radius,
53
- textTransform: 'none',
54
- cursor: 'pointer',
55
- padding: '8px 24px',
56
- boxShadow: 'none',
57
- width: width,
58
- height: height,
59
- border: (border_color == "transparent" ? "none" : `1px solid ${border_color}`),
60
- margin: margin,
61
- // Hover state (opcional)
62
- '&:hover': {
63
- backgroundColor: background_color,
64
- opacity: 0.9,
65
- },
66
- }));
67
- //# sourceMappingURL=FormStyled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormStyled.js","sourceRoot":"","sources":["../../../src/components/recaptcha/FormStyled.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAUhD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,SAAS,EAAE;IAC/C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC,CAAC,kBAAkB,EAAE,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAc,CAAC;CAC7G,CAAC,CAAuB,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,GAAC,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAE3H,uBAAuB,EAAE;QACvB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU,EAAE,oCAAoC;KACnF;IACD,oCAAoC,EAAE;QACpC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU,EAAE,2CAA2C;KAC1F;IACD,sBAAsB,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AC,CACA,CAAC,EACC,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,GACb,EAAE,EAAE,CAAC,CAAC;IACL,KAAK,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,MAAM;IAC5B,UAAU,EAAE,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,GAAI,aAAa;IAC7C,YAAY,EAAE,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,GAAG;IACvC,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,SAAS;IAEjB,OAAO,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,UAAU;IACpC,SAAS,EAAE,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,MAAM;IACpC,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IAEpB,SAAS,EAAE;QACT,UAAU,EAAE,qBAAqB,aAArB,qBAAqB,cAArB,qBAAqB,GAAI,aAAa;QAClD,KAAK,EAAE,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,GAAI,MAAM;KAClC;CACF,CAAC,CACH,CAAC"}
@@ -1,15 +0,0 @@
1
- import { Button, styled } from "@mui/material";
2
- export const LinkFormStyled = styled(Button, {
3
- shouldForwardProp: (prop) => !['width', 'height', 'text_color', 'margin', 'font_size'].includes(prop),
4
- })(({ width, height, text_color, margin = 0 }) => ({
5
- color: text_color,
6
- width: width,
7
- height: height,
8
- textTransform: 'none',
9
- border: 'none',
10
- cursor: 'pointer',
11
- padding: '0',
12
- boxShadow: 'none',
13
- margin: margin,
14
- }));
15
- //# sourceMappingURL=LinkFormStyled.js.map
@@ -1 +0,0 @@
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,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAE/C,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"}