w-design-system 0.4.205 → 0.4.208
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.
- package/dist/components/CNPJInput/index.d.ts +1 -1
- package/dist/components/CNPJInput/index.d.ts.map +1 -1
- package/dist/components/DocumentNumberInput/index.d.ts.map +1 -1
- package/dist/components/Themes/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/utils/cnpj.d.ts +23 -0
- package/dist/utils/cnpj.d.ts.map +1 -0
- package/dist/utils/cnpj.test.d.ts +2 -0
- package/dist/utils/cnpj.test.d.ts.map +1 -0
- package/dist/w-design-system.css +1 -1
- package/dist/w-design-system.js +570 -554
- package/dist/w-design-system.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormattedInputProps } from '../FormattedInputGenerator';
|
|
2
|
-
export
|
|
2
|
+
export { formatCNPJ, isValidCNPJ, unmaskCNPJ } from '../../utils/cnpj';
|
|
3
3
|
export type CNPJInputProps = FormattedInputProps;
|
|
4
4
|
export declare const CNPJMask: (string | RegExp)[];
|
|
5
5
|
export declare const CNPJInput: import('react').ForwardRefExoticComponent<FormattedInputProps & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CNPJInput/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA2B,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CNPJInput/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA2B,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAIzF,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAEtE,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAA;AAEhD,eAAO,MAAM,QAAQ,qBAmBpB,CAAA;AAwBD,eAAO,MAAM,SAAS;;0GAAqF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DocumentNumberInput/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA2B,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAIzF,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DocumentNumberInput/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA2B,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAIzF,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAA;AAuC1D,eAAO,MAAM,mBAAmB;;0GAAqF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Themes/index.ts"],"names":[],"mappings":"AAyDA,eAAO,MAAM,OAAO;;;;;;;;;;CAUnB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Themes/index.ts"],"names":[],"mappings":"AAyDA,eAAO,MAAM,OAAO;;;;;;;;;;CAUnB,CAAC;AAiCF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CR,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export { Text } from './components/Text/index';
|
|
|
37
37
|
export { TextArea } from './components/TextArea/index';
|
|
38
38
|
export { TextLink } from './components/TextLink/index';
|
|
39
39
|
export { SmallPaginate } from './components/SmallPaginate/index';
|
|
40
|
+
export { isValidCNPJ, formatCNPJ, unmaskCNPJ, CNPJ_LENGTH } from './utils/cnpj';
|
|
40
41
|
export * from './assets/icon/index';
|
|
41
42
|
export * from './components/Types/index';
|
|
42
43
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;A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,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhF,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CNPJ alfanumérico (IN RFB nº 2.229/2024, vigente a partir de jul/2026).
|
|
3
|
+
*
|
|
4
|
+
* - 14 caracteres: as 12 primeiras posições podem ser letras (A-Z) ou dígitos;
|
|
5
|
+
* os 2 últimos (dígitos verificadores) continuam numéricos.
|
|
6
|
+
* - O cálculo do DV usa módulo 11, onde o valor de cada caractere é
|
|
7
|
+
* `ASCII(char) - 48` (logo '0'..'9' = 0..9 e 'A'..'Z' = 17..42).
|
|
8
|
+
* - CNPJs antigos (100% numéricos) continuam válidos com o mesmo cálculo.
|
|
9
|
+
*/
|
|
10
|
+
export declare const CNPJ_LENGTH = 14;
|
|
11
|
+
/** Remove a máscara, mantém apenas [A-Z0-9], em maiúsculas, limitado a 14. */
|
|
12
|
+
export declare const unmaskCNPJ: (value: string) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Formata um CNPJ (parcial ou completo) como `XX.XXX.XXX/XXXX-XX`.
|
|
15
|
+
* Progressivo: valores incompletos também aparecem formatados.
|
|
16
|
+
*/
|
|
17
|
+
export declare const formatCNPJ: (value: string) => string;
|
|
18
|
+
/**
|
|
19
|
+
* Valida um CNPJ alfanumérico (também aceita o formato 100% numérico antigo).
|
|
20
|
+
* Aceita valor com ou sem máscara.
|
|
21
|
+
*/
|
|
22
|
+
export declare const isValidCNPJ: (value: string) => boolean;
|
|
23
|
+
//# sourceMappingURL=cnpj.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cnpj.d.ts","sourceRoot":"","sources":["../../src/utils/cnpj.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,WAAW,KAAK,CAAA;AAE7B,8EAA8E;AAC9E,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MAIjB,CAAA;AAE1B;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MAQ1C,CAAA;AAaD;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,OAa3C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cnpj.test.d.ts","sourceRoot":"","sources":["../../src/utils/cnpj.test.ts"],"names":[],"mappings":""}
|
package/dist/w-design-system.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--theme-colors-cyan50: #001640;--theme-colors-cyan40: #1A3D7F;--theme-colors-cyan30: #025FDE;--theme-colors-cyan20: #217EFD;--theme-colors-cyan15: #bad8ff;--theme-colors-cyan10: #EEF5FF;--theme-colors-shade70: #262930;--theme-colors-shade60: #4A4F58;--theme-colors-shade50: #333333;--theme-colors-shade40: #666666;--theme-colors-shade30: #999999;--theme-colors-shade20: #EEEEEE;--theme-colors-shade10: #EFF1F3;--theme-colors-shade05: #FAFAFA;--theme-colors-red40: #981010;--theme-colors-red30: #B41313;--theme-colors-red20: #F3D9D9;--theme-colors-red10: #F9EDED;--theme-colors-honey40: #F77202;--theme-colors-honey30: #F77202;--theme-colors-honey20: #FCCEA7;--theme-colors-honey10: #FDE3CC;--theme-colors-yellow30: #D08007;--theme-colors-yellow20: #EFD3A8;--theme-colors-yellow10: #FAF2E6;--theme-colors-mint40: #059D2F;--theme-colors-mint30: #06B737;--theme-colors-mint20: #D7EFDE;--theme-colors-mint10: #EBF8EF;--theme-colors-cyan30opacity16: rgba(33, 126, 253, .16);--theme-colors-white: #FFFFFF;--theme-colors-black: #000000;--theme-colors-transparent: transparent;--theme-spacing-space1: 4px;--theme-spacing-space2: 8px;--theme-spacing-space3: 16px;--theme-spacing-space4: 24px;--theme-spacing-space5: 32px;--theme-spacing-space6: 40px;--theme-spacing-space7: 48px;--theme-spacing-space8: 56px;--theme-spacing-space9: 64px;--theme-zIndex-z1: 1;--theme-zIndex-z2: 2;--theme-zIndex-z3: 3;--theme-zIndex-z4: 4;--theme-zIndex-z5: 5;--theme-zIndex-z6: 6;--theme-zIndex-z7: 7;--theme-zIndex-z8: 8;--theme-zIndex-z9: 9;--theme-zIndex-full: 10000;--theme-title-medium: 24px;--theme-title-large: 34px;--theme-paragraph-xx-small: 10px;--theme-paragraph-x-small: 12px;--theme-paragraph-small: 14px;--theme-paragraph-medium: 16px;--theme-paragraph-large: 18px;--theme-fontSizes-small: 1em;--theme-fontSizes-medium: 2em;--theme-fontSizes-large: 3em;--theme-fontSizes-h1: 36px;--theme-fontSizes-h2: 34px;--theme-fontSizes-h3: 32px;--theme-fontSizes-h4: 28px;--theme-fontSizes-h5: 24px;--theme-fontSizes-p0: 20px;--theme-fontSizes-p1: 16px;--theme-fontSizes-p2: 14px;--theme-fontSizes-p3: 13px;--theme-fontSizes-p4: 11px}.defaultFont{font-family
|
|
1
|
+
:root{--theme-colors-cyan50: #001640;--theme-colors-cyan40: #1A3D7F;--theme-colors-cyan30: #025FDE;--theme-colors-cyan20: #217EFD;--theme-colors-cyan15: #bad8ff;--theme-colors-cyan10: #EEF5FF;--theme-colors-shade70: #262930;--theme-colors-shade60: #4A4F58;--theme-colors-shade50: #333333;--theme-colors-shade40: #666666;--theme-colors-shade30: #999999;--theme-colors-shade20: #EEEEEE;--theme-colors-shade10: #EFF1F3;--theme-colors-shade05: #FAFAFA;--theme-colors-red40: #981010;--theme-colors-red30: #B41313;--theme-colors-red20: #F3D9D9;--theme-colors-red10: #F9EDED;--theme-colors-honey40: #F77202;--theme-colors-honey30: #F77202;--theme-colors-honey20: #FCCEA7;--theme-colors-honey10: #FDE3CC;--theme-colors-yellow30: #D08007;--theme-colors-yellow20: #EFD3A8;--theme-colors-yellow10: #FAF2E6;--theme-colors-mint40: #059D2F;--theme-colors-mint30: #06B737;--theme-colors-mint20: #D7EFDE;--theme-colors-mint10: #EBF8EF;--theme-colors-cyan30opacity16: rgba(33, 126, 253, .16);--theme-colors-white: #FFFFFF;--theme-colors-black: #000000;--theme-colors-transparent: transparent;--theme-spacing-space1: 4px;--theme-spacing-space2: 8px;--theme-spacing-space3: 16px;--theme-spacing-space4: 24px;--theme-spacing-space5: 32px;--theme-spacing-space6: 40px;--theme-spacing-space7: 48px;--theme-spacing-space8: 56px;--theme-spacing-space9: 64px;--theme-zIndex-z1: 1;--theme-zIndex-z2: 2;--theme-zIndex-z3: 3;--theme-zIndex-z4: 4;--theme-zIndex-z5: 5;--theme-zIndex-z6: 6;--theme-zIndex-z7: 7;--theme-zIndex-z8: 8;--theme-zIndex-z9: 9;--theme-zIndex-full: 10000;--theme-title-medium: 24px;--theme-title-large: 34px;--theme-paragraph-xx-small: 10px;--theme-paragraph-x-small: 12px;--theme-paragraph-small: 14px;--theme-paragraph-medium: 16px;--theme-paragraph-large: 18px;--theme-fontSizes-small: 1em;--theme-fontSizes-medium: 2em;--theme-fontSizes-large: 3em;--theme-fontSizes-h1: 36px;--theme-fontSizes-h2: 34px;--theme-fontSizes-h3: 32px;--theme-fontSizes-h4: 28px;--theme-fontSizes-h5: 24px;--theme-fontSizes-p0: 20px;--theme-fontSizes-p1: 16px;--theme-fontSizes-p2: 14px;--theme-fontSizes-p3: 13px;--theme-fontSizes-p4: 11px}.defaultFont{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-optical-sizing:auto;font-feature-settings:"ss01","ss02","ss07"}
|