@llmnative/react 1.39.1 → 1.40.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.
@@ -27,9 +27,12 @@ interface LabelProps {
27
27
  }
28
28
  export type InputProps = Omit<BaseInputProps, 'type'>;
29
29
  export interface CheckboxProps extends FormFieldProps {
30
+ /** Shown on hover, on the label too: with `disabled`, why it cannot be changed. */
30
31
  title?: string;
31
32
  ariaLabel?: string;
32
33
  valueChecked?: string | number;
34
+ /** It cannot be changed, by click nor keyboard (CR-116); its value stays in the form. */
35
+ disabled?: boolean;
33
36
  }
34
37
  export interface HiddenProps extends FormFieldProps {
35
38
  id?: string;
@@ -84,8 +87,8 @@ export declare const Month: (props: InputProps) => React.JSX.Element;
84
87
  export declare const Range: (props: InputProps) => React.JSX.Element;
85
88
  export declare const Url: (props: InputProps) => React.JSX.Element;
86
89
  export declare const Hidden: ({ name, onChange, defaultValue, value, id, inheritWrapperClassName, wrapperClassName, }: HiddenProps) => React.JSX.Element;
87
- export declare const Checkbox: ({ name, onChange, defaultValue, label, title, ariaLabel, required, valueChecked, before, after, inheritWrapperClassName, wrapperClassName, className }: CheckboxProps) => React.JSX.Element;
88
- export declare const Switch: ({ name, onChange, defaultValue, label, title, ariaLabel, required, valueChecked, before, after, inheritWrapperClassName, wrapperClassName, className }: CheckboxProps) => React.JSX.Element;
90
+ export declare const Checkbox: ({ name, onChange, defaultValue, label, title, ariaLabel, required, valueChecked, disabled, before, after, inheritWrapperClassName, wrapperClassName, className }: CheckboxProps) => React.JSX.Element;
91
+ export declare const Switch: ({ name, onChange, defaultValue, label, title, ariaLabel, required, valueChecked, disabled, before, after, inheritWrapperClassName, wrapperClassName, className }: CheckboxProps) => React.JSX.Element;
89
92
  export declare const Label: ({ label, required, htmlFor, className }: LabelProps) => React.JSX.Element;
90
93
  export declare const TextArea: ({ name, onChange, defaultValue, placeholder, label, required, readOnlyAfterSet, disabled, minHeight, maxHeight, textareaRef, before, after, feedback, id, labelClassName, inheritWrapperClassName, className, wrapperClassName, validator, onKeyDown, onClick, onBlur, labelMode, }: TextAreaProps) => React.JSX.Element;
91
94
  export declare const ListGroup: ({ children, onClick, label, activeIndices, draggable, onDrop, disabledIndices, loadingIndices, before, after, wrapperClassName, className, itemClassName }: ListGroupProps) => React.JSX.Element;
package/llms-full.txt CHANGED
@@ -362,6 +362,7 @@ Azioni: `save()`, `delete()`, `reset()`, `restoreDraft()`, `discardDraft()`.
362
362
  <Input name="color" type="color" />
363
363
  <TextArea name="bio" minHeight={96} />
364
364
  <Checkbox name="active" valueChecked="yes" />
365
+ <Switch name="gate" label="Passa dalla CI" disabled title="L'agente non committa" /> // CR-116: disabled (non cambia né con il clic né da tastiera), title anche sull'etichetta: il motivo al passaggio del mouse
365
366
  ```
366
367
  `Input` props: `name`(req) `label` `type` `required` `disabled` `placeholder` `min` `max` `step` `validator:(v)=>string|undefined`
367
368
  `type`: `'text' | 'number' | 'email' | 'password' | 'color' | 'date' | 'time' | 'datetime-local' | 'week' | 'month' | 'range' | 'checkbox' | 'radio' | 'url'`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmnative/react",
3
- "version": "1.39.1",
3
+ "version": "1.40.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",