@beweco/aurora-ui 1.0.0-beta.116 → 1.0.0-beta.117
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/index.cjs.js +11 -2
- package/dist/index.esm.js +11 -2
- package/dist/types/__smoke__/v2-api-surface.d.ts +41 -1
- package/dist/types/__smoke__/v2-api-surface.d.ts.map +1 -1
- package/dist/types/components/select/Select.d.ts.map +1 -1
- package/dist/types/components/select/Select.types.d.ts +30 -4
- package/dist/types/components/select/Select.types.d.ts.map +1 -1
- package/dist/types/components/select/index.d.ts +1 -1
- package/dist/types/components/select/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8416,8 +8416,14 @@ const INVALID_VARIANT_CLASS = {
|
|
|
8416
8416
|
// Lo que v2 teñía de `danger` además del borde (variante base `isInvalid` de su `tv`).
|
|
8417
8417
|
const INVALID_LABEL_CLASS$1 = "text-danger";
|
|
8418
8418
|
const INVALID_TEXT_CLASS$1 = "text-danger";
|
|
8419
|
-
/**
|
|
8420
|
-
*
|
|
8419
|
+
/**
|
|
8420
|
+
* `"all" | Set<Key> | readonly Key[] | undefined` → array de claves (`"all"` no se puede expandir
|
|
8421
|
+
* sin el listado completo de items — se trata como `undefined`, ver README para la limitación).
|
|
8422
|
+
*
|
|
8423
|
+
* El cuerpo ya servía para un array (`Array.from` acepta `Set` e `ArrayLike` por igual): lo único
|
|
8424
|
+
* que había que ampliar era la FIRMA. Ver `SelectSelection` en `Select.types.ts` para el porqué
|
|
8425
|
+
* del tipo de entrada (y por qué NO es `Iterable<Key>`).
|
|
8426
|
+
*/
|
|
8421
8427
|
function toArray(selection) {
|
|
8422
8428
|
if (selection === undefined) {
|
|
8423
8429
|
return undefined;
|
|
@@ -8517,6 +8523,9 @@ fullWidth = true, isOpen, defaultOpen, onOpenChange, className, classNames, }) =
|
|
|
8517
8523
|
if (selectionMode === "multiple") {
|
|
8518
8524
|
return (jsxRuntime.jsx(react.Select, { ...commonProps, selectionMode: "multiple", value: toArray(selectedKeys), defaultValue: toArray(defaultSelectedKeys), onChange: (keys) => onSelectionChange?.(new Set(keys)), children: inner }));
|
|
8519
8525
|
}
|
|
8526
|
+
// `Array.from` cubre las tres formas de `SelectSelection` sin ramas nuevas: `"all"` sigue
|
|
8527
|
+
// cayendo a `null` (v3 no admite "todo" en selección única) y un array se lee igual que un
|
|
8528
|
+
// `Set`. Sin castings: el tipo ya lo permite.
|
|
8520
8529
|
const singleValue = selectedKeys === undefined
|
|
8521
8530
|
? undefined
|
|
8522
8531
|
: selectedKeys === "all"
|
package/dist/index.esm.js
CHANGED
|
@@ -8416,8 +8416,14 @@ const INVALID_VARIANT_CLASS = {
|
|
|
8416
8416
|
// Lo que v2 teñía de `danger` además del borde (variante base `isInvalid` de su `tv`).
|
|
8417
8417
|
const INVALID_LABEL_CLASS$1 = "text-danger";
|
|
8418
8418
|
const INVALID_TEXT_CLASS$1 = "text-danger";
|
|
8419
|
-
/**
|
|
8420
|
-
*
|
|
8419
|
+
/**
|
|
8420
|
+
* `"all" | Set<Key> | readonly Key[] | undefined` → array de claves (`"all"` no se puede expandir
|
|
8421
|
+
* sin el listado completo de items — se trata como `undefined`, ver README para la limitación).
|
|
8422
|
+
*
|
|
8423
|
+
* El cuerpo ya servía para un array (`Array.from` acepta `Set` e `ArrayLike` por igual): lo único
|
|
8424
|
+
* que había que ampliar era la FIRMA. Ver `SelectSelection` en `Select.types.ts` para el porqué
|
|
8425
|
+
* del tipo de entrada (y por qué NO es `Iterable<Key>`).
|
|
8426
|
+
*/
|
|
8421
8427
|
function toArray(selection) {
|
|
8422
8428
|
if (selection === undefined) {
|
|
8423
8429
|
return undefined;
|
|
@@ -8517,6 +8523,9 @@ fullWidth = true, isOpen, defaultOpen, onOpenChange, className, classNames, }) =
|
|
|
8517
8523
|
if (selectionMode === "multiple") {
|
|
8518
8524
|
return (jsx(Select$1, { ...commonProps, selectionMode: "multiple", value: toArray(selectedKeys), defaultValue: toArray(defaultSelectedKeys), onChange: (keys) => onSelectionChange?.(new Set(keys)), children: inner }));
|
|
8519
8525
|
}
|
|
8526
|
+
// `Array.from` cubre las tres formas de `SelectSelection` sin ramas nuevas: `"all"` sigue
|
|
8527
|
+
// cayendo a `null` (v3 no admite "todo" en selección única) y un array se lee igual que un
|
|
8528
|
+
// `Set`. Sin castings: el tipo ya lo permite.
|
|
8520
8529
|
const singleValue = selectedKeys === undefined
|
|
8521
8530
|
? undefined
|
|
8522
8531
|
: selectedKeys === "all"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* publica bajo ese nombre (ver el histórico al final de `heroui-v2-shims.tsx`), así que aquí se
|
|
28
28
|
* ejercita con el JSX v2 completo, como Alert y Checkbox.
|
|
29
29
|
*/
|
|
30
|
-
import { type AlertProps, type CheckboxProps, type SortDescriptor, type SwitchProps, type SwitchPropsComponent, type TextAreaProps } from "../index";
|
|
30
|
+
import { type AlertProps, type CheckboxProps, type Selection, type SortDescriptor, type SwitchProps, type SwitchPropsComponent, type TextAreaProps } from "../index";
|
|
31
31
|
/** AuraAutocomplete: API v2 (label, icon, children con AutocompleteItem). */
|
|
32
32
|
declare function smokeAutocomplete(): import("react").JSX.Element;
|
|
33
33
|
/** `Autocomplete` crudo (beweosagency, 1 fichero) sigue resolviendo. */
|
|
@@ -85,6 +85,44 @@ declare function smokeSwitchProps(): SwitchProps;
|
|
|
85
85
|
declare function smokeSwitchLegacyAlias(props: SwitchPropsComponent): import("react").JSX.Element;
|
|
86
86
|
/** Switch con la API compound de v3 a través de la fachada. */
|
|
87
87
|
declare function smokeSwitchV3Compound(): import("react").JSX.Element;
|
|
88
|
+
/**
|
|
89
|
+
* Los patrones REALES de las apps, uno a uno (extraídos del tag, con su `file:line`):
|
|
90
|
+
*
|
|
91
|
+
* 1. **Array literal** sobre el valor de un formulario — beweossmbs
|
|
92
|
+
* `clients/…/general-data/attendance-card.component.tsx:128` y backoffice
|
|
93
|
+
* `whatsapp-templates/ui/components/TemplateForm.tsx:222` (`selectedKeys={[field.value]}`).
|
|
94
|
+
* 2. **Ternario que puede devolver array VACÍO** — backoffice
|
|
95
|
+
* `shared/ui/components/gender-select/gender-select.component.tsx:92` y beweossmbs
|
|
96
|
+
* `settings/location/ui/components/timezone-manager.component.tsx:52`
|
|
97
|
+
* (`selectedKeys={value ? [value] : []}`). Es el patrón mayoritario en backoffice: 52 de sus 78
|
|
98
|
+
* líneas.
|
|
99
|
+
* 3. **`new Set(...)`** — beweossmbs
|
|
100
|
+
* `clients/…/saved-views-dropdown/saved-views-dropdown.component.tsx:208` y backoffice
|
|
101
|
+
* `billing/sell/ui/components/SellPricingStep.tsx:76`. Lo usan 14 ficheros ya migrados: fijarlo
|
|
102
|
+
* aquí es lo que garantiza que ensanchar el tipo no los rompe.
|
|
103
|
+
* 4. **`defaultSelectedKeys` con array** — beweossmbs
|
|
104
|
+
* `settings/users/ui/components/invite-user-modal.component.tsx:162` (`["admin"]`) y
|
|
105
|
+
* beweosagency `settings/profile/ui/Profile.tsx:431` (`[formData.language]`).
|
|
106
|
+
* 5. **`string[]` mutable de React Hook Form en modo múltiple** — beweossmbs
|
|
107
|
+
* `clients/…/custom-fields-card/custom-field-controller.component.tsx:204`. No es un literal:
|
|
108
|
+
* su tipo es `string[]`, y por eso el tipo de la prop lleva `readonly` (acepta ambos) en vez de
|
|
109
|
+
* pedir una copia.
|
|
110
|
+
*
|
|
111
|
+
* La SALIDA no se ensancha: `onSelectionChange` sigue recibiendo `Selection` de v3, que es lo que
|
|
112
|
+
* ya esperan los handlers de las apps (`if (keys === "all")`, `Array.from(keys)`).
|
|
113
|
+
*/
|
|
114
|
+
declare function smokeSelectV2SelectedKeys(value: string, multiValue: string[], onSelectionChange: (keys: Selection) => void): import("react").JSX.Element;
|
|
115
|
+
/**
|
|
116
|
+
* El límite del ensanchado, fijado a propósito: el tipo es `Selection | readonly Key[]`, **NO**
|
|
117
|
+
* `Iterable<Key>`. `Key` es `string | number` y un `string` plano ES un `Iterable<string>`, así que
|
|
118
|
+
* con `Iterable<Key>` este JSX compilaría y el `Array.from` de la fachada expandiría el valor
|
|
119
|
+
* **letra a letra** (`["m","x"]`), en silencio y sin error en consola. Hoy ninguna de las 4 apps
|
|
120
|
+
* pasa un string plano (verificado por grep), así que nadie pierde nada.
|
|
121
|
+
*
|
|
122
|
+
* Si alguien "simplifica" el tipo a `Iterable<Key>`, este `@ts-expect-error` se queda sin error que
|
|
123
|
+
* esperar y `tsc` falla con «Unused '@ts-expect-error' directive» — que es el punto.
|
|
124
|
+
*/
|
|
125
|
+
declare function smokeSelectRejectsBareString(): import("react").JSX.Element;
|
|
88
126
|
/** Selection/SortDescriptor: mismas formas que en v2 (pass-through verificado, no shim real). */
|
|
89
127
|
declare function smokeCollectionTypes(): {
|
|
90
128
|
selection: "all";
|
|
@@ -136,6 +174,8 @@ export declare const v2ApiSurfaceSmokeTest: {
|
|
|
136
174
|
smokeSwitchProps: typeof smokeSwitchProps;
|
|
137
175
|
smokeSwitchLegacyAlias: typeof smokeSwitchLegacyAlias;
|
|
138
176
|
smokeSwitchV3Compound: typeof smokeSwitchV3Compound;
|
|
177
|
+
smokeSelectV2SelectedKeys: typeof smokeSelectV2SelectedKeys;
|
|
178
|
+
smokeSelectRejectsBareString: typeof smokeSelectRejectsBareString;
|
|
139
179
|
smokeCollectionTypes: typeof smokeCollectionTypes;
|
|
140
180
|
smokeAlertProps: typeof smokeAlertProps;
|
|
141
181
|
smokeAlertColorUnion: typeof smokeAlertColorUnion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2-api-surface.d.ts","sourceRoot":"","sources":["../../../src/__smoke__/v2-api-surface.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAIN,KAAK,UAAU,EAUf,KAAK,aAAa,EAqBlB,KAAK,cAAc,EAGnB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EASzB,KAAK,aA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,OAAO,CAAC,CAAC,EAAE,CAElE;AAOD,0GAA0G;AAC1G,iBAAS,YAAY,gCA+BpB;AAED,wFAAwF;AACxF,iBAAS,oBAAoB,gCAW5B;AAED,yGAAyG;AACzG,iBAAS,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,+BAyBtE;AAED,iEAAiE;AACjE,iBAAS,uBAAuB,gCAS/B;AAED,gEAAgE;AAChE,iBAAS,kBAAkB,IAAI,aAAa,CAE3C;AAED,iGAAiG;AACjG,iBAAS,kBAAkB,IAAI,aAAa,CAU3C;AAMD,iBAAS,kBAAkB;;iBAMP,IAAI;kBACH,IAAI;sBACA,OAAO,KAAK,IAAI;mBACnB,IAAI;EAEzB;AAKD,iBAAS,OAAO,yCAEf;AAKD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/select/Select.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/select/Select.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EACX,WAAW,EAIX,MAAM,gBAAgB,CAAC;AAySxB;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuLxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -9,6 +9,28 @@ export interface SelectClassNames {
|
|
|
9
9
|
trigger?: string;
|
|
10
10
|
popoverContent?: string;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Entrada de selección de la fachada: el vocabulario v2 (`Selection` = `"all" | Set<Key>`) **más
|
|
14
|
+
* arrays**, que es la forma en la que realmente escriben las apps (medido 08-sep-2026 por grep de
|
|
15
|
+
* `selectedKeys=`/`defaultSelectedKeys=` en los `.tsx` de los 4 repos: 116 usos en beweossmbs, 78
|
|
16
|
+
* en backoffice-beweos, 25 en beweosagency, 0 en loginos; la mayoría arrays, literales o por
|
|
17
|
+
* ternario).
|
|
18
|
+
*
|
|
19
|
+
* Por qué existe: en v2 el `Select` de HeroUI heredaba `MultipleSelection` de React Aria, cuyo
|
|
20
|
+
* `selectedKeys` es **`"all" | Iterable<Key>`** (`@react-types/shared/src/selection.d.ts:35`), no
|
|
21
|
+
* `Selection` — o sea, en v2 un array compilaba. Esta fachada lo declaró como `Selection` al
|
|
22
|
+
* migrar y estrechó la API sin cambiar el nombre de la prop, así que el fallo se cuela en
|
|
23
|
+
* cualquier auditoría de nombres: 71 errores de tipos en 30 ficheros solo en backoffice.
|
|
24
|
+
*
|
|
25
|
+
* ⚠️ Es `Selection | readonly Key[]`, **NO `Iterable<Key>`**, y no es simplificable: `Key` es
|
|
26
|
+
* `string | number`, y un `string` plano ES un `Iterable<string>`. Con `Iterable<Key>` un
|
|
27
|
+
* `selectedKeys="abc"` compilaría y el `Array.from` de la fachada lo expandiría **letra a letra**
|
|
28
|
+
* (`["a","b","c"]`), en silencio y sin error en consola. Con `readonly Key[]` ese JSX no compila,
|
|
29
|
+
* y los usos reales quedan cubiertos igual porque todos son arrays (verificado: ninguna de las 4
|
|
30
|
+
* apps pasa hoy un string plano). El `readonly` está para aceptar tanto `string[]` mutable —el
|
|
31
|
+
* caso de `f.value` de React Hook Form— como una tupla congelada, sin obligar a nadie a copiar.
|
|
32
|
+
*/
|
|
33
|
+
export type SelectSelection = Selection | readonly Key[];
|
|
12
34
|
export interface SelectProps {
|
|
13
35
|
children?: ReactNode;
|
|
14
36
|
label?: ReactNode;
|
|
@@ -25,10 +47,14 @@ export interface SelectProps {
|
|
|
25
47
|
radius?: SelectRadius;
|
|
26
48
|
/** @default "single" */
|
|
27
49
|
selectionMode?: "single" | "multiple";
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Claves seleccionadas (controlado). Vocabulario v2: `"all"`, un `Set` o un **array** de claves
|
|
52
|
+
* (ver `SelectSelection` para por qué es `readonly Key[]` y no `Iterable<Key>`).
|
|
53
|
+
*/
|
|
54
|
+
selectedKeys?: SelectSelection;
|
|
55
|
+
/** Claves seleccionadas por defecto (no controlado). Mismas formas que `selectedKeys`. */
|
|
56
|
+
defaultSelectedKeys?: SelectSelection;
|
|
57
|
+
/** La SALIDA no cambia: v3 manda, y sigue siendo `Selection` (`"all" | Set<Key>`). */
|
|
32
58
|
onSelectionChange?: (keys: Selection) => void;
|
|
33
59
|
disabledKeys?: Iterable<Key>;
|
|
34
60
|
isInvalid?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.types.d.ts","sourceRoot":"","sources":["../../../../src/components/select/Select.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5C,mEAAmE;AACnE,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;AACzE,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAEhE,MAAM,WAAW,gBAAgB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;
|
|
1
|
+
{"version":3,"file":"Select.types.d.ts","sourceRoot":"","sources":["../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AAE,eAAe,CAAC;IACtC,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAC9C,YAAY,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAG3C,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
|