@llmnative/react 1.19.5 → 1.20.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/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1871 -1855
- package/dist/index.mjs.map +1 -1
- package/dist/types/src/components/ui/Modal.d.ts +2 -0
- package/llms-full.txt +5 -2
- package/package.json +1 -1
|
@@ -38,6 +38,8 @@ export interface ModalProps extends MotionUIProps {
|
|
|
38
38
|
footerClassName?: string;
|
|
39
39
|
/** Close the modal when the user clicks the backdrop. Defaults to `true`. */
|
|
40
40
|
closeOnBackdrop?: boolean;
|
|
41
|
+
/** Close the modal with the Escape key (only the top-most open modal reacts). Defaults to `true`. */
|
|
42
|
+
closeOnEscape?: boolean;
|
|
41
43
|
/** CSS `z-index` override (useful when stacking modals). */
|
|
42
44
|
zIndex?: number;
|
|
43
45
|
/**
|
package/llms-full.txt
CHANGED
|
@@ -551,11 +551,13 @@ Quando `commands` e presente in `mode="run"`, `Prompt` monta internamente `Conte
|
|
|
551
551
|
<Modal title="Conferma" size="md" position="center" onClose={() => {}} onSave={handleSave} onDelete={handleDelete} motion="fade" allowFullscreen stackedBehind>
|
|
552
552
|
{content}
|
|
553
553
|
</Modal>
|
|
554
|
-
<
|
|
555
|
-
<
|
|
554
|
+
<ModalYesNo title="Sicuro?" onClose={() => {}} onYes={async () => true}>Eliminare il record?</ModalYesNo>
|
|
555
|
+
<ModalOk title="Completato!" onClose={() => {}}>Salvato.</ModalOk>
|
|
556
556
|
```
|
|
557
557
|
`size`: `'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'fullscreen'`
|
|
558
558
|
`position`: `'center' | 'top' | 'left' | 'right' | 'bottom'`
|
|
559
|
+
`ModalYesNo` e `ModalOk` sono export separati: `Modal.YesNo` e `Modal.Ok` non esistono.
|
|
560
|
+
Tastiera: Esc chiude il modal in cima alla pila (`closeOnEscape`, default `true`).
|
|
559
561
|
Accessibilità: il dialog ha `role="dialog"`, `aria-modal="true"` (non con `stackedBehind`) e `aria-labelledby` verso `title` (o `header` stringa) — nei test si trova con `getByRole('dialog', { name })`.
|
|
560
562
|
|
|
561
563
|
| Prop | Tipo | Note |
|
|
@@ -570,6 +572,7 @@ Accessibilità: il dialog ha `role="dialog"`, `aria-modal="true"` (non con `stac
|
|
|
570
572
|
| `showCancel` | `boolean` | Default `true` |
|
|
571
573
|
| `stackedBehind` | `boolean` | Modal seconda in pila |
|
|
572
574
|
| `closeOnBackdrop` | `boolean` | Default `true` |
|
|
575
|
+
| `closeOnEscape` | `boolean` | Default `true` — solo il modal in cima reagisce |
|
|
573
576
|
| `zIndex` | `number` | |
|
|
574
577
|
| `motion` | `MotionReference` | Preset animazione |
|
|
575
578
|
| Classi CSS header/title/subtitle/body/footer | `string` | |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmnative/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "LLM-native React framework for deterministic UI generation. Data-driven by default, schema-driven optional. Ultra-low token consumption — built for AI agents, not just humans.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|