@aspprev/versi-ds 0.3.0 → 0.4.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/README.md +7 -1
- package/dist/{chunk-OQECJKGA.js → chunk-LPLXAKPJ.js} +6 -6
- package/dist/chunk-LPLXAKPJ.js.map +1 -0
- package/dist/{chunk-EPV6UNUQ.js → chunk-LTW323JQ.js} +5 -2
- package/dist/chunk-LTW323JQ.js.map +1 -0
- package/dist/{chunk-DO5C67KS.js → chunk-WOD44OEH.js} +63 -34
- package/dist/chunk-WOD44OEH.js.map +1 -0
- package/dist/core.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +3 -3
- package/dist/manifest.json +4 -4
- package/dist/overlays.d.ts +1 -1
- package/dist/overlays.js +1 -1
- package/package.json +8 -2
- package/dist/chunk-DO5C67KS.js.map +0 -1
- package/dist/chunk-EPV6UNUQ.js.map +0 -1
- package/dist/chunk-OQECJKGA.js.map +0 -1
package/README.md
CHANGED
|
@@ -65,6 +65,12 @@ export function Resumo() {
|
|
|
65
65
|
| `/styles.css` | estilos e tokens base |
|
|
66
66
|
| `/themes.css` | presets de tema |
|
|
67
67
|
|
|
68
|
+
Na linha 0.4.x, todos os nove caminhos acima fazem parte do contrato público,
|
|
69
|
+
incluindo `@aspprev/versi-ds/charts`, `@aspprev/versi-ds/countries`, os cinco
|
|
70
|
+
entrypoints de componentes e os dois entrypoints CSS. Eles são definidos no
|
|
71
|
+
campo `exports` do `package.json`; arquivos internos de `src` não fazem parte
|
|
72
|
+
do contrato.
|
|
73
|
+
|
|
68
74
|
Evite deep imports. Use somente os entrypoints públicos documentados no `package.json`.
|
|
69
75
|
|
|
70
76
|
### APIs desta versão
|
|
@@ -172,7 +178,7 @@ npm run check:package
|
|
|
172
178
|
npm run prepack
|
|
173
179
|
```
|
|
174
180
|
|
|
175
|
-
O script `prepack` valida tokens, governança, segurança, TypeScript, build, tamanho e conteúdo do pacote.
|
|
181
|
+
O script `prepack` valida tokens, governança, segurança, lint, TypeScript, build, tamanho e conteúdo do pacote.
|
|
176
182
|
|
|
177
183
|
Para testar o exemplo integrado:
|
|
178
184
|
|
|
@@ -199,7 +199,7 @@ var Input = (_a) => {
|
|
|
199
199
|
const isPasswordType = type === "password";
|
|
200
200
|
const [showPassword, setShowPassword] = useState(false);
|
|
201
201
|
const currentType = isPasswordType ? showPassword ? "text" : "password" : type;
|
|
202
|
-
const hasError = Boolean(meta.touched && meta.error);
|
|
202
|
+
const hasError = Boolean(meta.touched && meta.error || error);
|
|
203
203
|
const inputId = (_a2 = rest.id) != null ? _a2 : name;
|
|
204
204
|
const errorId = `${inputId}-error`;
|
|
205
205
|
const ariaDescribedBy = mergeAriaDescribedBy(
|
|
@@ -2474,7 +2474,7 @@ var UnifiedDatePicker = ({
|
|
|
2474
2474
|
);
|
|
2475
2475
|
const currentIndex = buttons.indexOf(event.currentTarget);
|
|
2476
2476
|
if (currentIndex < 0) return;
|
|
2477
|
-
let nextIndex
|
|
2477
|
+
let nextIndex;
|
|
2478
2478
|
if (event.key in movement) {
|
|
2479
2479
|
nextIndex = currentIndex + movement[event.key];
|
|
2480
2480
|
} else if (event.key === "Home") {
|
|
@@ -2668,7 +2668,7 @@ var UnifiedDatePicker = ({
|
|
|
2668
2668
|
ref: dropdownRef,
|
|
2669
2669
|
id: calendarId,
|
|
2670
2670
|
role: "dialog",
|
|
2671
|
-
"aria-label": selectionMode === "year" ? "Selecionar ano" : selectionMode === "month" ? "Selecionar m\
|
|
2671
|
+
"aria-label": selectionMode === "year" ? "Selecionar ano" : selectionMode === "month" ? "Selecionar m\xEAs" : "Selecionar data",
|
|
2672
2672
|
style: dropdownStyle,
|
|
2673
2673
|
className: classNames6(
|
|
2674
2674
|
getFloatingLayerClass(containerRef.current, "popover"),
|
|
@@ -2833,7 +2833,7 @@ var UnifiedDatePicker = ({
|
|
|
2833
2833
|
{
|
|
2834
2834
|
className: "grid grid-cols-3 gap-1 px-3",
|
|
2835
2835
|
role: "group",
|
|
2836
|
-
"aria-label": "Meses do calend\
|
|
2836
|
+
"aria-label": "Meses do calend\xE1rio",
|
|
2837
2837
|
children: MONTHS.map((month, index) => {
|
|
2838
2838
|
const selected = index === viewDate.getMonth();
|
|
2839
2839
|
const monthDate = new Date(viewDate.getFullYear(), index, 1);
|
|
@@ -2866,7 +2866,7 @@ var UnifiedDatePicker = ({
|
|
|
2866
2866
|
{
|
|
2867
2867
|
className: "grid grid-cols-3 gap-1 px-3",
|
|
2868
2868
|
role: "group",
|
|
2869
|
-
"aria-label": "Anos do calend\
|
|
2869
|
+
"aria-label": "Anos do calend\xE1rio",
|
|
2870
2870
|
children: years.map((year) => {
|
|
2871
2871
|
const selected = year === viewDate.getFullYear();
|
|
2872
2872
|
const yearDisabled = year < minYear || year > maxYear;
|
|
@@ -3689,4 +3689,4 @@ export {
|
|
|
3689
3689
|
RadioCardGroup,
|
|
3690
3690
|
OtpCodeInput_default
|
|
3691
3691
|
};
|
|
3692
|
-
//# sourceMappingURL=chunk-
|
|
3692
|
+
//# sourceMappingURL=chunk-LPLXAKPJ.js.map
|