@pipelinesolucoes/form 1.2.0-beta.3 → 1.2.0-beta.31

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 (73) hide show
  1. package/README.md +16 -2
  2. package/dist/components/ChipList.d.ts +9 -0
  3. package/dist/components/ChipList.js +60 -0
  4. package/dist/components/ChipList.js.map +1 -0
  5. package/dist/components/SelectField.d.ts +73 -0
  6. package/dist/components/SelectField.js +142 -0
  7. package/dist/components/SelectField.js.map +1 -0
  8. package/dist/components/TextFieldBirthDateWithAge.d.ts +83 -0
  9. package/dist/components/TextFieldBirthDateWithAge.js +277 -0
  10. package/dist/components/TextFieldBirthDateWithAge.js.map +1 -0
  11. package/dist/components/TextFieldCPFValidate.d.ts +37 -0
  12. package/dist/components/TextFieldCPFValidate.js +147 -0
  13. package/dist/components/TextFieldCPFValidate.js.map +1 -0
  14. package/dist/components/TextFieldNumberValidate.d.ts +110 -0
  15. package/dist/components/TextFieldNumberValidate.js +196 -0
  16. package/dist/components/TextFieldNumberValidate.js.map +1 -0
  17. package/dist/components/TextFieldPassword.d.ts +141 -53
  18. package/dist/components/TextFieldPassword.js +161 -98
  19. package/dist/components/TextFieldPassword.js.map +1 -1
  20. package/dist/components/TextFieldValidate.d.ts +89 -43
  21. package/dist/components/TextFieldValidate.js +103 -94
  22. package/dist/components/TextFieldValidate.js.map +1 -1
  23. package/dist/components/login/FormLogin.d.ts +129 -6
  24. package/dist/components/login/FormLogin.js +155 -29
  25. package/dist/components/login/FormLogin.js.map +1 -1
  26. package/dist/components/login/FormPasswordRecovery.d.ts +97 -89
  27. package/dist/components/login/FormPasswordRecovery.js +131 -124
  28. package/dist/components/login/FormPasswordRecovery.js.map +1 -1
  29. package/dist/components/login/FormSignUp.d.ts +130 -11
  30. package/dist/components/login/FormSignUp.js +154 -29
  31. package/dist/components/login/FormSignUp.js.map +1 -1
  32. package/dist/components/login/StyleLogin.d.ts +7 -0
  33. package/dist/components/login/StyleLogin.js +16 -1
  34. package/dist/components/login/StyleLogin.js.map +1 -1
  35. package/dist/components/recaptcha/RecaptchaForm.d.ts +8 -14
  36. package/dist/components/recaptcha/RecaptchaForm.js +30 -25
  37. package/dist/components/recaptcha/RecaptchaForm.js.map +1 -1
  38. package/dist/constant.d.ts +11 -0
  39. package/dist/constant.js +12 -0
  40. package/dist/constant.js.map +1 -0
  41. package/dist/index.d.ts +8 -0
  42. package/dist/index.js +8 -0
  43. package/dist/index.js.map +1 -1
  44. package/dist/{components/style → style}/ButtonFormStyled.d.ts +1 -1
  45. package/dist/{components/style → style}/ButtonFormStyled.js +6 -5
  46. package/dist/style/ButtonFormStyled.js.map +1 -0
  47. package/dist/{components/style → style}/LinkFormStyled.d.ts +1 -1
  48. package/dist/{components/style → style}/LinkFormStyled.js +5 -4
  49. package/dist/style/LinkFormStyled.js.map +1 -0
  50. package/dist/style/TextFieldStyle.d.ts +19 -0
  51. package/dist/style/TextFieldStyle.js +61 -0
  52. package/dist/style/TextFieldStyle.js.map +1 -0
  53. package/dist/theme.js +46 -18
  54. package/dist/theme.js.map +1 -1
  55. package/dist/tsconfig.tsbuildinfo +1 -1
  56. package/dist/types/FieldProps.d.ts +1 -0
  57. package/dist/utils/formatCEP.d.ts +20 -0
  58. package/dist/utils/formatCEP.js +35 -0
  59. package/dist/utils/formatCEP.js.map +1 -0
  60. package/dist/utils/formatCpf.d.ts +14 -0
  61. package/dist/utils/formatCpf.js +35 -0
  62. package/dist/utils/formatCpf.js.map +1 -0
  63. package/dist/utils/validateCpf.d.ts +40 -0
  64. package/dist/utils/validateCpf.js +67 -0
  65. package/dist/utils/validateCpf.js.map +1 -0
  66. package/dist/utils/validateEmail.js +1 -1
  67. package/dist/utils/validateEmail.js.map +1 -1
  68. package/package.json +4 -2
  69. package/dist/components/recaptcha/FormStyled.d.ts +0 -30
  70. package/dist/components/recaptcha/FormStyled.js +0 -67
  71. package/dist/components/recaptcha/FormStyled.js.map +0 -1
  72. package/dist/components/style/ButtonFormStyled.js.map +0 -1
  73. 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
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Formata CEP automaticamente para máscara 00000-000.
3
+ *
4
+ * - Remove caracteres não numéricos
5
+ * - Limita a 8 dígitos
6
+ * - Aplica o hífen progressivamente
7
+ *
8
+ * @example
9
+ * formatCep("24210310") // "24210-310"
10
+ * formatCep("24210") // "24210"
11
+ * formatCep("24210-310999") // "24210-310"
12
+ */
13
+ export declare const formatCep: (value?: string) => string;
14
+ /**
15
+ * Remove máscara do CEP (mantém apenas dígitos).
16
+ *
17
+ * @example
18
+ * unformatCep("24210-310") // "24210310"
19
+ */
20
+ export declare const unformatCep: (value?: string) => string;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Formata CEP automaticamente para máscara 00000-000.
3
+ *
4
+ * - Remove caracteres não numéricos
5
+ * - Limita a 8 dígitos
6
+ * - Aplica o hífen progressivamente
7
+ *
8
+ * @example
9
+ * formatCep("24210310") // "24210-310"
10
+ * formatCep("24210") // "24210"
11
+ * formatCep("24210-310999") // "24210-310"
12
+ */
13
+ export const formatCep = (value) => {
14
+ if (!value)
15
+ return "";
16
+ const digits = value.replace(/\D/g, "").slice(0, 8);
17
+ const p1 = digits.slice(0, 5);
18
+ const p2 = digits.slice(5, 8);
19
+ let out = p1;
20
+ if (p2)
21
+ out += `-${p2}`;
22
+ return out;
23
+ };
24
+ /**
25
+ * Remove máscara do CEP (mantém apenas dígitos).
26
+ *
27
+ * @example
28
+ * unformatCep("24210-310") // "24210310"
29
+ */
30
+ export const unformatCep = (value) => {
31
+ if (!value)
32
+ return "";
33
+ return value.replace(/\D/g, "");
34
+ };
35
+ //# sourceMappingURL=formatCEP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatCEP.js","sourceRoot":"","sources":["../../src/utils/formatCEP.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAc,EAAU,EAAE;IAClD,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAEpD,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAE9B,IAAI,GAAG,GAAG,EAAE,CAAC;IAEb,IAAI,EAAE;QAAE,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;IAExB,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAc,EAAU,EAAE;IACpD,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IACtB,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Formata CPF automaticamente para máscara 000.000.000-00.
3
+ *
4
+ * - Remove não-dígitos
5
+ * - Limita a 11 dígitos
6
+ * - Aplica pontos e hífen progressivamente
7
+ *
8
+ * @example
9
+ * formatCpf("39053344705") // "390.533.447-05"
10
+ * formatCpf("390.533") // "390.533"
11
+ * formatCpf("39053344705999") // "390.533.447-05"
12
+ */
13
+ export declare const formatCpf: (value?: string) => string;
14
+ export declare const unformatCpf: (value?: string) => string;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Formata CPF automaticamente para máscara 000.000.000-00.
3
+ *
4
+ * - Remove não-dígitos
5
+ * - Limita a 11 dígitos
6
+ * - Aplica pontos e hífen progressivamente
7
+ *
8
+ * @example
9
+ * formatCpf("39053344705") // "390.533.447-05"
10
+ * formatCpf("390.533") // "390.533"
11
+ * formatCpf("39053344705999") // "390.533.447-05"
12
+ */
13
+ export const formatCpf = (value) => {
14
+ if (!value)
15
+ return "";
16
+ const digits = value.replace(/\D/g, "").slice(0, 11);
17
+ const p1 = digits.slice(0, 3);
18
+ const p2 = digits.slice(3, 6);
19
+ const p3 = digits.slice(6, 9);
20
+ const p4 = digits.slice(9, 11);
21
+ let out = p1;
22
+ if (p2)
23
+ out += `.${p2}`;
24
+ if (p3)
25
+ out += `.${p3}`;
26
+ if (p4)
27
+ out += `-${p4}`;
28
+ return out;
29
+ };
30
+ export const unformatCpf = (value) => {
31
+ if (!value)
32
+ return "";
33
+ return value.replace(/\D/g, "");
34
+ };
35
+ //# sourceMappingURL=formatCpf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatCpf.js","sourceRoot":"","sources":["../../src/utils/formatCpf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAc,EAAU,EAAE;IAClD,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAErD,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAE/B,IAAI,GAAG,GAAG,EAAE,CAAC;IAEb,IAAI,EAAE;QAAE,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;IACxB,IAAI,EAAE;QAAE,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;IACxB,IAAI,EAAE;QAAE,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;IAExB,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAc,EAAU,EAAE;IACpD,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IACtB,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * validateCpf Utility
3
+ *
4
+ * Função utilitária para validação de CPF (Brasil).
5
+ * Aceita string com ou sem máscara e valida:
6
+ * - 11 dígitos
7
+ * - não permite sequências repetidas (ex: 11111111111)
8
+ * - valida dígitos verificadores
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { validateCpf } from '@/utils/validateCpf';
13
+ *
14
+ * validateCpf('39053344705'); // true
15
+ * validateCpf('390.533.447-05'); // true
16
+ * validateCpf('12345678900'); // false
17
+ * ```
18
+ *
19
+ * @param cpf - String contendo o CPF (com ou sem máscara).
20
+ * @returns `true` se o CPF for válido, caso contrário `false`.
21
+ */
22
+ export declare const validateCpf: (cpf?: string) => boolean;
23
+ /**
24
+ * Função auxiliar para uso direto no TextFiledCustom.
25
+ *
26
+ * Retorna `null` se válido, ou uma mensagem de erro se inválido.
27
+ * Pode ser usada diretamente na prop `validate` do componente.
28
+ *
29
+ * @example
30
+ * ```tsx
31
+ * <TextFiledCustom
32
+ * label="CPF"
33
+ * validate={validateCpfMessage}
34
+ * />
35
+ * ```
36
+ *
37
+ * @param cpf - String com o valor do campo.
38
+ * @returns Mensagem de erro ou `null`.
39
+ */
40
+ export declare const validateCpfMessage: (cpf: string) => string | null;
@@ -0,0 +1,67 @@
1
+ /**
2
+ * validateCpf Utility
3
+ *
4
+ * Função utilitária para validação de CPF (Brasil).
5
+ * Aceita string com ou sem máscara e valida:
6
+ * - 11 dígitos
7
+ * - não permite sequências repetidas (ex: 11111111111)
8
+ * - valida dígitos verificadores
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { validateCpf } from '@/utils/validateCpf';
13
+ *
14
+ * validateCpf('39053344705'); // true
15
+ * validateCpf('390.533.447-05'); // true
16
+ * validateCpf('12345678900'); // false
17
+ * ```
18
+ *
19
+ * @param cpf - String contendo o CPF (com ou sem máscara).
20
+ * @returns `true` se o CPF for válido, caso contrário `false`.
21
+ */
22
+ export const validateCpf = (cpf) => {
23
+ if (!cpf)
24
+ return false;
25
+ const digits = cpf.trim().replace(/\D/g, "");
26
+ if (!/^\d{11}$/.test(digits))
27
+ return false;
28
+ // bloqueia sequências repetidas: 00000000000, 11111111111, etc.
29
+ if (/^(\d)\1{10}$/.test(digits))
30
+ return false;
31
+ const calcCheckDigit = (base, factor) => {
32
+ let sum = 0;
33
+ for (let i = 0; i < base.length; i++) {
34
+ sum += Number(base[i]) * (factor - i);
35
+ }
36
+ const mod = sum % 11;
37
+ return mod < 2 ? 0 : 11 - mod;
38
+ };
39
+ const base9 = digits.slice(0, 9);
40
+ const d1 = calcCheckDigit(base9, 10);
41
+ const base10 = digits.slice(0, 10);
42
+ const d2 = calcCheckDigit(base10, 11);
43
+ return digits === `${base9}${d1}${d2}`;
44
+ };
45
+ /**
46
+ * Função auxiliar para uso direto no TextFiledCustom.
47
+ *
48
+ * Retorna `null` se válido, ou uma mensagem de erro se inválido.
49
+ * Pode ser usada diretamente na prop `validate` do componente.
50
+ *
51
+ * @example
52
+ * ```tsx
53
+ * <TextFiledCustom
54
+ * label="CPF"
55
+ * validate={validateCpfMessage}
56
+ * />
57
+ * ```
58
+ *
59
+ * @param cpf - String com o valor do campo.
60
+ * @returns Mensagem de erro ou `null`.
61
+ */
62
+ export const validateCpfMessage = (cpf) => {
63
+ return validateCpf(cpf)
64
+ ? null
65
+ : "CPF inválido. Use 11 dígitos (ex: 39053344705) ou com máscara (ex: 390.533.447-05).";
66
+ };
67
+ //# sourceMappingURL=validateCpf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateCpf.js","sourceRoot":"","sources":["../../src/utils/validateCpf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAY,EAAW,EAAE;IACnD,IAAI,CAAC,GAAG;QAAE,OAAO,KAAK,CAAC;IAEvB,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;QAAE,OAAO,KAAK,CAAC;IAE3C,gEAAgE;IAChE,IAAI,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC;QAAE,OAAO,KAAK,CAAC;IAE9C,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,MAAc,EAAE,EAAE;QACtD,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACxC,CAAC;QACD,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;QACrB,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC;IAChC,CAAC,CAAC;IAEF,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACjC,MAAM,EAAE,GAAG,cAAc,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACrC,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACnC,MAAM,EAAE,GAAG,cAAc,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAEtC,OAAO,MAAM,KAAK,GAAG,KAAK,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC;AACzC,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,GAAW,EAAiB,EAAE;IAC/D,OAAO,WAAW,CAAC,GAAG,CAAC;QACrB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,qFAAqF,CAAC;AAC5F,CAAC,CAAC"}
@@ -17,7 +17,7 @@
17
17
  */
18
18
  export const validateEmail = (email) => {
19
19
  if (!email) {
20
- return false;
20
+ return true;
21
21
  }
22
22
  const cleanedEmail = email.trim();
23
23
  const regex = /^\S+@\S+\.\S+$/;
@@ -1 +1 @@
1
- {"version":3,"file":"validateEmail.js","sourceRoot":"","sources":["../../src/utils/validateEmail.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAa,EAAW,EAAE;IAEtD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAClC,MAAM,KAAK,GAAG,gBAAgB,CAAC;IAC/B,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACzC,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAa,EAAiB,EAAE;IACnE,OAAO,aAAa,CAAC,KAAK,CAAC;QACzB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,kEAAkE,CAAC;AACzE,CAAC,CAAC"}
1
+ {"version":3,"file":"validateEmail.js","sourceRoot":"","sources":["../../src/utils/validateEmail.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAa,EAAW,EAAE;IAEtD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAClC,MAAM,KAAK,GAAG,gBAAgB,CAAC;IAC/B,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACzC,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAa,EAAiB,EAAE;IACnE,OAAO,aAAa,CAAC,KAAK,CAAC;QACzB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,kEAAkE,CAAC;AACzE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelinesolucoes/form",
3
- "version": "1.2.0-beta.3",
3
+ "version": "1.2.0-beta.31",
4
4
  "license": "UNLICENSED",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,11 +35,13 @@
35
35
  "build": "tsc",
36
36
  "lint": "eslint .",
37
37
  "prepublishOnly": "npm run build",
38
+ "release-notification-beta": "npm uninstall @pipelinesolucoes/notification && npm install @pipelinesolucoes/notification@beta",
39
+ "release-notification": "npm uninstall @pipelinesolucoes/notification && npm install @pipelinesolucoes/notification",
38
40
  "release-theme-beta": "npm uninstall @pipelinesolucoes/theme && npm install @pipelinesolucoes/theme@beta",
39
41
  "release-theme": "npm uninstall @pipelinesolucoes/theme && npm install @pipelinesolucoes/theme"
40
42
  },
41
43
  "dependencies": {
42
- "@pipelinesolucoes/theme": "^1.0.7-beta.1",
44
+ "@pipelinesolucoes/theme": "^1.0.7-beta.10",
43
45
  "react-google-recaptcha": "^3.1.0"
44
46
  },
45
47
  "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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