@kenlo/kdls-design-system 2.10.1 → 2.11.0
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/Input/Input.d.ts +4 -5
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/phone.d.ts +28 -0
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +3494 -3397
- package/kdls-manifest.json +10 -3
- package/package.json +3 -2
package/kdls-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": {
|
|
3
3
|
"name": "@kenlo/kdls-design-system",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.11.0"
|
|
5
5
|
},
|
|
6
6
|
"install": {
|
|
7
7
|
"add": "npm install @kenlo/kdls-design-system",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"counts": {
|
|
15
15
|
"components": 60,
|
|
16
16
|
"propsTables": 85,
|
|
17
|
-
"props":
|
|
17
|
+
"props": 734,
|
|
18
18
|
"tokens": 552,
|
|
19
19
|
"api": 12,
|
|
20
20
|
"icons": 49
|
|
@@ -2759,7 +2759,7 @@
|
|
|
2759
2759
|
"name": "phoneInternational",
|
|
2760
2760
|
"type": "boolean",
|
|
2761
2761
|
"default": "false",
|
|
2762
|
-
"description": "Habilita o seletor de país para type='tel'.
|
|
2762
|
+
"description": "Habilita o seletor de país para type='tel' ou 'cel'. A bandeira e o código do país ficam dentro do campo; a lista traz todos os países com nome em português, o Brasil no topo e busca por nome ou código. Máscara e conferência de cada país vêm da libphonenumber-js, carregada só quando o campo aparece. Um número colado com '+' escolhe o país sozinho",
|
|
2763
2763
|
"example": "phoneInternational"
|
|
2764
2764
|
},
|
|
2765
2765
|
{
|
|
@@ -2790,6 +2790,13 @@
|
|
|
2790
2790
|
"description": "Chamado quando o usuário seleciona um país no seletor. Recebe { code, ddi, name } do país escolhido",
|
|
2791
2791
|
"example": "country => setCountry(country)"
|
|
2792
2792
|
},
|
|
2793
|
+
{
|
|
2794
|
+
"name": "onPhoneChange",
|
|
2795
|
+
"type": "(phone: PhoneValue) => void",
|
|
2796
|
+
"default": "—",
|
|
2797
|
+
"description": "Chamado a cada mudança de um telefone com país. Recebe { country, national, e164, valid }: e164 é o número no formato internacional (+5511987654321) quando válido, e null enquanto não for",
|
|
2798
|
+
"example": "phone => setPhone(phone.e164)"
|
|
2799
|
+
},
|
|
2793
2800
|
{
|
|
2794
2801
|
"name": "pattern",
|
|
2795
2802
|
"type": "string",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenlo/kdls-design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "KDLS Design System — componentes React + TypeScript",
|
|
@@ -72,7 +72,8 @@
|
|
|
72
72
|
"react-dom": ">=18"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@fluentui/react-icons": "^2.0.320"
|
|
75
|
+
"@fluentui/react-icons": "^2.0.320",
|
|
76
|
+
"libphonenumber-js": "^1.13.15"
|
|
76
77
|
},
|
|
77
78
|
"devDependencies": {
|
|
78
79
|
"@testing-library/jest-dom": "^6.9.1",
|