lambda-ui-components 1.2.0 → 1.3.1
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/main.d.ts +17 -3
- package/dist/main.mjs +5062 -5038
- package/dist/main.umd.js +67 -67
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -2170,9 +2170,11 @@ export declare const Radio: default_2.ForwardRefExoticComponent<RadioProps & def
|
|
|
2170
2170
|
} & default_2.RefAttributes<HTMLInputElement>>;
|
|
2171
2171
|
};
|
|
2172
2172
|
|
|
2173
|
-
export declare const RadioGroup:
|
|
2173
|
+
export declare const RadioGroup: default_2.ForwardRefExoticComponent<RadioGroupProps & {
|
|
2174
|
+
children?: ReactNode | undefined;
|
|
2175
|
+
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
2174
2176
|
|
|
2175
|
-
export declare interface RadioGroupProps {
|
|
2177
|
+
export declare interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "color"> {
|
|
2176
2178
|
/**
|
|
2177
2179
|
* Defines the layout direction of the radio buttons within the group (e.g., 'horizontal' or 'vertical').
|
|
2178
2180
|
*/
|
|
@@ -2207,12 +2209,24 @@ export declare interface RadioGroupProps {
|
|
|
2207
2209
|
* The HTML `name` attribute applied to all radio buttons. Essential for grouping and ensuring only one option can be selected at a time.
|
|
2208
2210
|
*/
|
|
2209
2211
|
name?: string;
|
|
2212
|
+
/**
|
|
2213
|
+
* The current value of the selected radio button (controlled mode).
|
|
2214
|
+
* Takes precedence over selectedOption.
|
|
2215
|
+
*/
|
|
2216
|
+
value?: string;
|
|
2217
|
+
/**
|
|
2218
|
+
* Callback fired when a radio button is selected.
|
|
2219
|
+
* Takes precedence over onChangeOption.
|
|
2220
|
+
*/
|
|
2221
|
+
onChange?: (value: string) => void;
|
|
2210
2222
|
/**
|
|
2211
2223
|
* The currently selected radio button's `value` (for use as a controlled component).
|
|
2224
|
+
* Legacy prop: Prefer `value` for standard form integration.
|
|
2212
2225
|
*/
|
|
2213
2226
|
selectedOption?: string;
|
|
2214
2227
|
/**
|
|
2215
2228
|
* Callback function executed when the user selects a different radio button. Receives the `value` of the newly selected radio.
|
|
2229
|
+
* Legacy prop: Prefer `onChange` for standard form integration.
|
|
2216
2230
|
*/
|
|
2217
2231
|
onChangeOption?: (value: string) => void;
|
|
2218
2232
|
/**
|
|
@@ -2318,7 +2332,7 @@ declare interface ScriptProps extends React_2.DetailedHTMLProps<React_2.ScriptHT
|
|
|
2318
2332
|
[dataAttribute: DataAttribute]: any;
|
|
2319
2333
|
}
|
|
2320
2334
|
|
|
2321
|
-
export declare const Select: default_2.ForwardRefExoticComponent<SelectProps & default_2.RefAttributes<
|
|
2335
|
+
export declare const Select: default_2.ForwardRefExoticComponent<SelectProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
2322
2336
|
|
|
2323
2337
|
declare const selectContainerVariants: (props?: ({
|
|
2324
2338
|
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|