Začetni commit projekta rezervacije

This commit is contained in:
Mark Poljanšek committed 2025-04-23 20:19:33 +02:00
commit 328731b32f
56062 files changed
+2485242

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
import * as React from 'react';
import { FormGroupProps } from "../FormGroup/index.js";
export interface RadioGroupProps extends Omit<FormGroupProps, 'onChange'> {
/**
* The default value. Use when the component is not controlled.
*/
defaultValue?: any;
/**
* The name used to reference the value of the control.
* If you don't provide this prop, it falls back to a randomly generated name.
*/
name?: string;
/**
* Callback fired when a radio button is selected.
*
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
* @param {string} value The value of the selected radio button.
* You can pull out the new value by accessing `event.target.value` (string).
*/
onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: string) => void;
/**
* Value of the selected radio button. The DOM API casts this to a string.
*/
value?: any;
}
/**
*
* Demos:
*
* - [Radio Group](https://mui.com/material-ui/react-radio-button/)
*
* API:
*
* - [RadioGroup API](https://mui.com/material-ui/api/radio-group/)
* - inherits [FormGroup API](https://mui.com/material-ui/api/form-group/)
*/
export default function RadioGroup(props: RadioGroupProps): React.JSX.Element;
+11
View File
@@ -0,0 +1,11 @@
import * as React from 'react';
export interface RadioGroupContextValue {
name: string | undefined;
onChange: (event: React.ChangeEvent<HTMLInputElement>, value: string) => void;
value: any;
}
/**
* @ignore - internal component.
*/
declare const RadioGroupContext: React.Context<RadioGroupContextValue | undefined>;
export default RadioGroupContext;
+5
View File
@@ -0,0 +1,5 @@
export { default } from "./RadioGroup.js";
export * from "./RadioGroup.js";
export { default as useRadioGroup, RadioGroupState } from "./useRadioGroup.js";
export { default as radioGroupClasses } from "./radioGroupClasses.js";
export * from "./radioGroupClasses.js";
+6
View File
@@ -0,0 +1,6 @@
import { FormGroupClasses } from "../FormGroup/index.js";
export type RadioGroupClassKey = keyof FormGroupClasses;
export type RadioGroupClasses = FormGroupClasses;
export declare function getRadioGroupUtilityClass(slot: string): string;
declare const radioGroupClasses: RadioGroupClasses;
export default radioGroupClasses;
+3
View File
@@ -0,0 +1,3 @@
import { RadioGroupContextValue } from "./RadioGroupContext.js";
export interface RadioGroupState extends RadioGroupContextValue {}
export default function useRadioGroup(): RadioGroupState | undefined;