/*! * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and limitations under the License. */ import { CheckboxProps as MuiCheckboxProps, FormControlLabelProps as MuiFormControlLabelProps } from "@mui/material"; import type { HtmlProps } from "../HtmlProps.js"; import { FieldComponentProps } from "../FieldComponentProps.js"; import { CheckedFieldProps } from "../FormCheckedProps.js"; import { FocusHandle } from "../inputUtils.js"; export declare const checkboxValidityValues: readonly ["valid", "invalid", "inherit"]; export type CheckboxProps = { /** * Ref attached to the underlying `` element. */ inputRef?: React.RefObject; /** * If `true`, the checkbox is in an indeterminate state, displayed as a dash rather than checked or unchecked. */ isIndeterminate?: boolean; /** * If `true`, the checkbox is required. */ isRequired?: boolean; /** * The label text for the Checkbox */ label?: string; /** * Called when the checkbox loses focus. */ onBlur?: MuiFormControlLabelProps["onBlur"]; /** * The checkbox validity, if different from its enclosing group. * @default "inherit" */ validity?: (typeof checkboxValidityValues)[number]; /** * The value attribute of the Checkbox */ value?: string; } & Pick & CheckedFieldProps & Pick; declare const MemoizedCheckbox: import("react").MemoExoticComponent<({ ariaLabel, ariaLabelledBy, id: idOverride, inputRef, isChecked, isDefaultChecked, isDisabled, isIndeterminate, isReadOnly, isRequired, label: labelProp, hint, name: nameOverride, onChange: onChangeProp, onBlur: onBlurProp, testId, translate, validity, value, }: CheckboxProps) => import("@emotion/react/jsx-runtime").JSX.Element>; export { MemoizedCheckbox as Checkbox }; //# sourceMappingURL=Checkbox.d.ts.map